1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f36351aa-5727-578a-a1f0-093d48364cae")}catch(e){}}(); 3(self.rspackChunkvueApp=self.rspackChunkvueApp||[]).push([[5068],{12239:function(t){"use strict";var e={single_source_shortest_paths:function(t,i,s){var a,n,o,r,l,d,c,u={},p={};p[i]=0;var h=e.PriorityQueue.make();for(h.push(i,0);!h.empty();)for(o in n=(a=h.pop()).value,r=a.cost,l=t[n]||{})l.hasOwnProperty(o)&&(d=r+l[o],c=p[o],(void 0===p[o]||c>d)&&(p[o]=d,h.push(o,d),u[o]=n));if(void 0!==s&&void 0===p[s])throw Error(["Could not find a path from ",i," to ",s,"."].join(""));return u},extract_shortest_path_from_predecessor_list:function(t,e){for(var i=[],s=e;s;)i.push(s),t[s],s=t[s];return i.reverse(),i},find_path:function(t,i,s){var a=e.single_source_shortest_paths(t,i,s);return e.extract_shortest_path_from_predecessor_list(a,s)},PriorityQueue:{make:function(t){var i,s=e.PriorityQueue,a={};for(i in t=t||{},s)s.hasOwnProperty(i)&&(a[i]=s[i]);return a.queue=[],a.sorter=t.sorter||s.default_sorter,a},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){this.queue.push({value:t,cost:e}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e},8241:function(t,e,i){var s=i(5668);function a(t,e){try{var i=s.process(t);if(-1===e.indexOf("/")){var a=s.process(e);if("ipv6"===i.kind()&&"ipv6"===a.kind())return i.toNormalizedString()===a.toNormalizedString();return i.toString()==a.toString()}var n=s.parseCIDR(e);return i.match(n)}catch(t){return!1}}t.exports=function(t,e){if("string"==typeof e)return a(t,e);if("object"==typeof e){for(var i=!1,s=0;s<e.length;s++)if(a(t,e[s])){i=!0;break}return i}}},5668:function(t,e,i){t=i.nmd(t),(function(){var e,i,s,a,n,o,r,l;i={},null!==t&&t.exports?t.exports=i:this.ipaddr=i,r=function(t,e,i,s){var a,n;if(t.length!==e.length)throw Error("ipaddr: cannot match CIDR for objects with different lengths");for(a=0;s>0;){if((n=i-s)<0&&(n=0),t[a]>>n!=e[a]>>n)return!1;s-=i,a+=1}return!0},i.subnetMatch=function(t,e,i){var s,a,n,o,r;for(n in null==i&&(i="unicast"),e)for(!(o=e[n])[0]||o[0]instanceof Array||(o=[o]),s=0,a=o.length;s<a;s++)if(r=o[s],t.kind()===r[0].kind()&&t.match.apply(t,r))return n;return i},i.IPv4=function(){function t(t){var e,i,s;if(4!==t.length)throw Error("ipaddr: ipv4 octet count should be 4");for(e=0,i=t.length;e<i;e++)if(!(0<=(s=t[e])&&s<=255))throw Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=t}return t.prototype.kind=function(){return"ipv4"},t.prototype.toString=function(){return this.octets.join(".")},t.prototype.toNormalizedString=function(){return this.toString()},t.prototype.toByteArray=function(){return this.octets.slice(0)},t.prototype.match=function(t,e){var i;if(void 0===e&&(t=(i=t)[0],e=i[1]),"ipv4"!==t.kind())throw Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return r(this.octets,t.octets,8,e)},t.prototype.SpecialRanges={unspecified:[[new t([0,0,0,0]),8]],broadcast:[[new t([255,255,255,255]),32]],multicast:[[new t([224,0,0,0]),4]],linkLocal:[[new t([169,254,0,0]),16]],loopback:[[new t([127,0,0,0]),8]],carrierGradeNat:[[new t([100,64,0,0]),10]],private:[[new t([10,0,0,0]),8],[new t([172,16,0,0]),12],[new t([192,168,0,0]),16]],reserved:[[new t([192,0,0,0]),24],[new t([192,0,2,0]),24],[new t([192,88,99,0]),24],[new t([198,51,100,0]),24],[new t([203,0,113,0]),24],[new t([240,0,0,0]),4]]},t.prototype.range=function(){return i.subnetMatch(this,this.SpecialRanges)},t.prototype.toIPv4MappedAddress=function(){return i.IPv6.parse("::ffff:"+this.toString())},t.prototype.prefixLengthFromSubnetMask=function(){var t,e,i,s,a,n,o;for(o={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},t=0,a=!1,e=i=3;i>=0;e=i+=-1){if(!((s=this.octets[e])in o)||(n=o[s],a&&0!==n))return null;8!==n&&(a=!0),t+=n}return 32-t},t}(),a={fourOctet:RegExp("^"+(s="(0?\\d+|0x[a-f0-9]+)")+"\\."+s+"\\."+s+"\\."+s+"$","i"),longValue:RegExp("^"+s+"$","i")},i.IPv4.parser=function(t){var e,i,s,n,o,r,l,d,c;if(i=function(t){return"0"===t[0]&&"x"!==t[1]?parseInt(t,8):parseInt(t)},e=t.match(a.fourOctet)){for(d=e.slice(1,6),c=[],r=0,l=d.length;r<l;r++)s=d[r],c.push(i(s));return c}if(!(e=t.match(a.longValue)))return null;if((o=i(e[1]))>0xffffffff||o<0)throw Error("ipaddr: address outside defined range");return(function(){var t,e;for(e=[],n=t=0;t<=24;n=t+=8)e.push(o>>n&255);return e})().reverse()},i.IPv6=function(){function t(t,e){var i,s,a,n,o,r;if(16===t.length)for(this.parts=[],i=s=0;s<=14;i=s+=2)this.parts.push(t[i]<<8|t[i+1]);else if(8===t.length)this.parts=t;
3else throw Error("ipaddr: ipv6 part count should be 8 or 16");for(a=0,n=(r=this.parts).length;a<n;a++)if(!(0<=(o=r[a])&&o<=65535))throw Error("ipaddr: ipv6 part should fit in 16 bits");e&&(this.zoneId=e)}return t.prototype.kind=function(){return"ipv6"},t.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},t.prototype.toRFC5952String=function(){var t,e,i,s,a;for(s=/((^|:)(0(:|$)){2,})/g,a=this.toNormalizedString(),t=0,e=-1;i=s.exec(a);)i[0].length>e&&(t=i.index,e=i[0].length);return e<0?a:a.substring(0,t)+"::"+a.substring(t+e)},t.prototype.toByteArray=function(){var t,e,i,s,a;for(e=0,t=[],i=(a=this.parts).length;e<i;e++)s=a[e],t.push(s>>8),t.push(255&s);return t},t.prototype.toNormalizedString=function(){var t,e,i;return t=(function(){var t,i,s,a;for(s=this.parts,a=[],t=0,i=s.length;t<i;t++)e=s[t],a.push(e.toString(16));return a}).call(this).join(":"),i="",this.zoneId&&(i="%"+this.zoneId),t+i},t.prototype.toFixedLengthString=function(){var t,e,i;return t=(function(){var t,i,s,a;for(s=this.parts,a=[],t=0,i=s.length;t<i;t++)e=s[t],a.push(e.toString(16).padStart(4,"0"));return a}).call(this).join(":"),i="",this.zoneId&&(i="%"+this.zoneId),t+i},t.prototype.match=function(t,e){var i;if(void 0===e&&(t=(i=t)[0],e=i[1]),"ipv6"!==t.kind())throw Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return r(this.parts,t.parts,16,e)},t.prototype.SpecialRanges={unspecified:[new t([0,0,0,0,0,0,0,0]),128],linkLocal:[new t([65152,0,0,0,0,0,0,0]),10],multicast:[new t([65280,0,0,0,0,0,0,0]),8],loopback:[new t([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new t([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new t([0,0,0,0,0,65535,0,0]),96],rfc6145:[new t([0,0,0,0,65535,0,0,0]),96],rfc6052:[new t([100,65435,0,0,0,0,0,0]),96],"6to4":[new t([8194,0,0,0,0,0,0,0]),16],teredo:[new t([8193,0,0,0,0,0,0,0]),32],reserved:[[new t([8193,3512,0,0,0,0,0,0]),32]]},t.prototype.range=function(){return i.subnetMatch(this,this.SpecialRanges)},t.prototype.isIPv4MappedAddress=function(){return"ipv4Mapped"===this.range()},t.prototype.toIPv4Address=function(){var t,e,s;if(!this.isIPv4MappedAddress())throw Error("ipaddr: trying to convert a generic ipv6 address to ipv4");return t=(s=this.parts.slice(-2))[0],e=s[1],new i.IPv4([t>>8,255&t,e>>8,255&e])},t.prototype.prefixLengthFromSubnetMask=function(){var t,e,i,s,a,n,o;for(o={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},t=0,a=!1,e=i=7;i>=0;e=i+=-1){if(!((s=this.parts[e])in o)||(n=o[s],a&&0!==n))return null;16!==n&&(a=!0),t+=n}return 128-t},t}(),n="(?:[0-9a-f]+::?)+",o={zoneIndex:RegExp(l="%[0-9a-z]{1,}","i"),native:RegExp("^(::)?("+n+")?([0-9a-f]+)?(::)?("+l+")?$","i"),transitional:RegExp("^((?:"+n+")|(?:::)(?:"+n+")?)"+(s+"\\."+s+"\\."+s)+"\\."+s+"("+l+")?$","i")},e=function(t,e){var i,s,a,n,r,l;if(t.indexOf("::")!==t.lastIndexOf("::"))return null;for((l=(t.match(o.zoneIndex)||[])[0])&&(l=l.substring(1),t=t.replace(/%.+$/,"")),i=0,s=-1;(s=t.indexOf(":",s+1))>=0;)i++;if("::"===t.substr(0,2)&&i--,"::"===t.substr(-2,2)&&i--,i>e)return null;for(r=e-i,n=":";r--;)n+="0:";return":"===(t=t.replace("::",n))[0]&&(t=t.slice(1)),":"===t[t.length-1]&&(t=t.slice(0,-1)),{parts:e=function(){var e,i,s,n;for(s=t.split(":"),n=[],e=0,i=s.length;e<i;e++)a=s[e],n.push(parseInt(a,16));return n}(),zoneId:l}},i.IPv6.parser=function(t){var i,s,a,n,r,l,d;if(o.native.test(t))return e(t,8);if((n=t.match(o.transitional))&&(d=n[6]||"",(i=e(n[1].slice(0,-1)+d,6)).parts)){for(s=0,a=(l=[parseInt(n[2]),parseInt(n[3]),parseInt(n[4]),parseInt(n[5])]).length;s<a;s++)if(!(0<=(r=l[s])&&r<=255))return null;return i.parts.push(l[0]<<8|l[1]),i.parts.push(l[2]<<8|l[3]),{parts:i.parts,zoneId:i.zoneId}}return null},i.IPv4.isIPv4=i.IPv6.isIPv6=function(t){return null!==this.parser(t)},i.IPv4.isValid=function(t){try{return new this(this.parser(t)),!0}catch(t){return!1}},i.IPv4.isValidFourPartDecimal=function(t){return!!(i.IPv4.isValid(t)&&t.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},i.IPv6.isValid=function(t){var e;if("string"==typeof t&&-1===t.indexOf(":"))return!1;try{return e=this.parser(t),new this(e.parts,e.zoneId),!0}catch(t){return!1}},i.IPv4.parse=function(t){var e;if(null===(e=this.parser(t)))throw Error("ipaddr: string is not formatted like ip address");return new this(e)},i.IPv6.parse=function(t){var e;if(null===(e=this.parser(t)).parts)throw Error("ipaddr: string is not formatted like ip address");return new this(e.parts,e.zoneId)},i.IPv4.parseCIDR=function(t){var e,i,s;if((i=t.match(/^(.+)\/(\d+)$/))&&(e=parseInt(i[2]))>=0&&e<=32)return Object.defineProperty(s=[this.parse(i[1]),e],"toString",{value:function(){return this.join("/")}}),s;throw Error("ipaddr: string is not formatted like an IPv4 CIDR range")},i.IPv4.subnetMaskFromPrefixLength=function(t){var e,i,s;if((t=parseInt(t))<0||t>32)throw Error("ipaddr: invalid IPv4 prefix length");for(s=[0,0,0,0],i=0,e=Math.floor(t/8);i<e;)s[i]=255,i++;return e<4&&(s[e]=Math.pow(2,t%8)-1<<8-t%8),new this(s)},i.IPv4.broadcastAddressFromCIDR=function(t){var e,i,s,a,n;try{for(s=(e=this.parseCIDR(t))[0].toByteArray(),n=this.subnetMaskFromPrefixLength(e[1]).toByteArray(),a=[],i=0;i<4;)a.push(parseInt(s[i],10)|255^parseInt(n[i],10)),i++;return new this(a)}catch(t){throw Error("ipaddr: the address does not have IPv4 CIDR format")}},i.IPv4.networkAddressFromCIDR=function(t){var e,i,s,a,n;try{for(s=(e=this.parseCIDR(t))[0].toByteArray(),n=this.subnetMaskFromPrefixLength(e[1]).toByteArray(),a=[],i=0;i<4;)a.push(parseInt(s[i],10)&parseInt(n[i],10)),i++;return new this(a)}catch(t){throw Error("ipaddr: the address does not have IPv4 CIDR format")}},i.IPv6.parseCIDR=function(t){var e,i,s;if((i=t.match(/^(.+)\/(\d+)$/))&&(e=parseInt(i[2]))>=0&&e<=128)return Object.defineProperty(s=[this.parse(i[1]),e],"toString",{value:function(){return this.join("/")}}),s;throw Error("ipaddr: string is not formatted like an IPv6 CIDR range")},i.isValid=function(t){return i.IPv6.isValid(t)||i.IPv4.isValid(t)},i.parse=function(t){if(i.IPv6.isValid(t))return i.IPv6.parse(t);if(i.IPv4.isValid(t))return i.IPv4.parse(t);throw Error("ipaddr: the address has neither IPv6 nor IPv4 format")},i.parseCIDR=function(t){try{return i.IPv6.parseCIDR(t)}catch(e){try{return i.IPv4.parseCIDR(t)}catch(t){throw Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},i.fromByteArray=function(t){var e;if(4===(e=t.length))return new i.IPv4(t);if(16===e)return new i.IPv6(t);throw Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},i.process=function(t){var e;return"ipv6"===(e=this.parse(t)).kind()&&e.isIPv4MappedAddress()?e.toIPv4Address():e}}).call(this)}
3,89525:function(t,e,i){t.exports=i(5583)("length")},53524:function(t){t.exports=function(t){return t.split("")}},44128:function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t,i){return null!=t&&e.call(t,i)}},50711:function(t,e,i){var s=i(45878),a=i(78441);t.exports=function(t,e){return s(t,e,function(e,i){return a(t,i)})}},43536:function(t,e,i){var s=i(78661),a=i(62579),n=Array.prototype.splice;t.exports=function(t,e){for(var i=t?e.length:0,o=i-1;i--;){var r=e[i];if(i==o||r!==l){var l=r;a(r)?n.call(t,r,1):s(t,r)}}return t}},62629:function(t){var e=Math.ceil,i=Math.max;t.exports=function(t,s,a,n){for(var o=-1,r=i(e((s-t)/(a||1)),0),l=Array(r);r--;)l[n?r:++o]=t,t+=a;return l}},54885:function(t){var e=Math.floor;t.exports=function(t,i){var s="";if(!t||i<1||i>0x1fffffffffffff)return s;do i%2&&(s+=t),(i=e(i/2))&&(t+=t);while(i)return s}},6130:function(t,e,i){var s=i(16334),a=/^\s+/;t.exports=function(t){return t?t.slice(0,s(t)+1).replace(a,""):t}},73636:function(t,e,i){var s=i(48290);t.exports=function(t,e,i){var a=t.length;return i=void 0===i?a:i,!e&&i>=a?t:s(t,e,i)}},16146:function(t,e,i){var s=i(54885),a=i(53998),n=i(73636),o=i(54544),r=i(71743),l=i(8526),d=Math.ceil;t.exports=function(t,e){var i=(e=void 0===e?" ":a(e)).length;if(i<2)return i?s(e,t):e;var c=s(e,d(t/r(e)));return o(e)?n(l(c),0,t).join(""):c.slice(0,t)}},59042:function(t,e,i){var s=i(62629),a=i(7474),n=i(92970);t.exports=function(t){return function(e,i,o){return o&&"number"!=typeof o&&a(e,i,o)&&(i=o=void 0),e=n(e),void 0===i?(i=e,e=0):i=n(i),o=void 0===o?e<i?1:-1:n(o),s(e,i,o,t)}}},29427:function(t,e,i){var s=i(40631),a=i(62595),n=i(7580),o=i(52936),r=s.isFinite,l=Math.min;t.exports=function(t){var e=Math[t];return function(t,i){if(t=n(t),(i=null==i?0:l(a(i),292))&&r(t)){var s=(o(t)+"e").split("e");return+((s=(o(e(s[0]+"e"+(+s[1]+i)))+"e").split("e"))[0]+"e"+(s[1]-i))}return e(t)}}},54544:function(t){var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},71743:function(t,e,i){var s=i(89525),a=i(54544),n=i(99733);t.exports=function(t){return a(t)?n(t):s(t)}},8526:function(t,e,i){var s=i(53524),a=i(54544),n=i(45108);t.exports=function(t){return a(t)?n(t):s(t)}},16334:function(t){var e=/\s/;t.exports=function(t){for(var i=t.length;i--&&e.test(t.charAt(i)););return i}},99733:function(t){var e="\\ud800-\\udfff",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",s="\\ud83c[\\udffb-\\udfff]",a="[^"+e+"]",n="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",r="(?:"+i+"|"+s+")?",l="[\\ufe0e\\ufe0f]?",d="(?:\\u200d(?:"+[a,n,o].join("|")+")"+l+r+")*",c=RegExp(s+"(?="+s+")|"+("(?:"+[a+i+"?",i,n,o,"["+e+"]"].join("|"))+")"+(l+r+d),"g");t.exports=function(t){for(var e=c.lastIndex=0;c.test(t);)++e;return e}},45108:function(t){var e="\\ud800-\\udfff",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",s="\\ud83c[\\udffb-\\udfff]",a="[^"+e+"]",n="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",r="(?:"+i+"|"+s+")?",l="[\\ufe0e\\ufe0f]?",d="(?:\\u200d(?:"+[a,n,o].join("|")+")"+l+r+")*",c=RegExp(s+"(?="+s+")|"+("(?:"+[a+i+"?",i,n,o,"["+e+"]"].join("|"))+")"+(l+r+d),"g");t.exports=function(t){return t.match(c)||[]}},63571:function(t,e,i){var s=i(75943),a=i(53146),n=i(7580),o=Math.max,r=Math.min;t.exports=function(t,e,i){var l,d,c,u,p,h,_=0,m=!1,g=!1,v=!0;if("function"!=typeof t)throw TypeError("Expected a function");function f(e){var i=l,s=d;return l=d=void 0,_=e,u=t.apply(s,i)}function y(t){var i=t-h,s=t-_;return void 0===h||i>=e||i<0||g&&s>=c}function b(){var t,i,s,n=a();if(y(n))return C(n);p=setTimeout(b,(t=n-h,i=n-_,s=e-t,g?r(s,c-i):s))}function C(t){return(p=void 0,v&&l)?f(t):(l=d=void 0,u)}function w(){var t,i=a(),s=y(i);if(l=arguments,d=this,h=i,s){if(void 0===p)return _=t=h,p=setTimeout(b,e),m?f(t):u;if(g)return clearTimeout(p),p=setTimeout(b,e),f(h)}return void 0===p&&(p=setTimeout(b,e)),u}return e=n(e)||0,s(i)&&(m=!!i.leading,c=(g="maxWait"in i)?o(n(i.maxWait)||0,e):c,v="trailing"in i?!!i.trailing:v),w.cancel=function(){void 0!==p&&clearTimeout(p),_=0,l=h=d=p=void 0},w.flush=function(){return void 0===p?u:C(a())},w}}
3,6008:function(t,e,i){t.exports=i(29427)("floor")},24926:function(t,e,i){var s=i(44128),a=i(19492);t.exports=function(t,e){return null!=t&&a(t,e,s)}},53146:function(t,e,i){var s=i(40631);t.exports=function(){return s.Date.now()}},74963:function(t,e,i){var s=i(16146),a=i(71743),n=i(62595),o=i(52936);t.exports=function(t,e,i){t=o(t);var r=(e=n(e))?a(t):0;return e&&r<e?s(e-r,i)+t:t}},10992:function(t,e,i){t.exports=i(15982)(function(t,e,i){t[+!i].push(e)},function(){return[[],[]]})},84525:function(t,e,i){var s=i(50711);t.exports=i(91226)(function(t,e){return null==t?{}:s(t,e)})},97587:function(t,e,i){t.exports=i(59042)()},83800:function(t,e,i){var s=i(60263),a=i(43536);t.exports=function(t,e){var i=[];if(!(t&&t.length))return i;var n=-1,o=[],r=t.length;for(e=s(e,3);++n<r;){var l=t[n];e(l,n,t)&&(i.push(l),o.push(n))}return a(t,o),i}},44615:function(t,e,i){var s=i(54885),a=i(7474),n=i(62595),o=i(52936);t.exports=function(t,e,i){return e=(i?a(t,e,i):void 0===e)?1:n(e),s(o(t),e)}},57724:function(t,e,i){var s=i(63571),a=i(75943);t.exports=function(t,e,i){var n=!0,o=!0;if("function"!=typeof t)throw TypeError("Expected a function");return a(i)&&(n="leading"in i?!!i.leading:n,o="trailing"in i?!!i.trailing:o),s(t,e,{leading:n,maxWait:e,trailing:o})}},92970:function(t,e,i){var s=i(7580);t.exports=function(t){return t?1/0===(t=s(t))||-1/0===t?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}},62595:function(t,e,i){var s=i(92970);t.exports=function(t){var e=s(t),i=e%1;return e==e?i?e-i:e:0}},7580:function(t,e,i){var s=i(6130),a=i(75943),n=i(36024),o=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,l=/^0o[0-7]+$/i,d=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(n(t))return 0/0;if(a(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=a(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=s(t);var i=r.test(t);return i||l.test(t)?d(t.slice(2),i?2:8):o.test(t)?0/0:+t}},18335:function(t,e,i){let s=i(97541),a=i(16909),n=i(52219),o=i(98676);function r(t,e,i,n,o){let r=[].slice.call(arguments,1),l=r.length,d="function"==typeof r[l-1];if(!d&&!s())throw Error("Callback required as last argument");if(d){if(l<2)throw Error("Too few arguments provided");2===l?(o=i,i=e,e=n=void 0):3===l&&(e.getContext&&void 0===o?(o=n,n=void 0):(o=n,n=i,i=e,e=void 0))}else{if(l<1)throw Error("Too few arguments provided");return 1===l?(i=e,e=n=void 0):2!==l||e.getContext||(n=i,i=e,e=void 0),new Promise(function(s,o){try{let o=a.create(i,n);s(t(o,e,n))}catch(t){o(t)}})}try{let s=a.create(i,n);o(null,t(s,e,n))}catch(t){o(t)}}a.create,r.bind(null,n.render),e.dY=r.bind(null,n.renderToDataURL),r.bind(null,function(t,e,i){return o.render(t,i)})},97541:function(t){t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},83701:function(t,e,i){let s=i(14902).getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];let e=Math.floor(t/7)+2,i=s(t),a=145===i?26:2*Math.ceil((i-13)/(2*e-2)),n=[i-7];for(let t=1;t<e-1;t++)n[t]=n[t-1]-a;return n.push(6),n.reverse()},e.getPositions=function(t){let i=[],s=e.getRowColCoords(t),a=s.length;for(let t=0;t<a;t++)for(let e=0;e<a;e++)(0!==t||0!==e)&&(0!==t||e!==a-1)&&(t!==a-1||0!==e)&&i.push([s[t],s[e]]);return i}},10505:function(t,e,i){let s=i(81088),a=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(t){this.mode=s.ALPHANUMERIC,this.data=t}n.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let i=45*a.indexOf(this.data[e]);i+=a.indexOf(this.data[e+1]),t.put(i,11)}this.data.length%2&&t.put(a.indexOf(this.data[e]),6)},t.exports=n},69499:function(t){function e(){this.buffer=[],this.length=0}e.prototype={get:function(t){let e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)==1},put:function(t,e){for(let i=0;i<e;i++)this.putBit((t>>>e-i-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(t){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=e},69364:function(t){function e(t){if(!t||t<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}
vendor: 19,194 bytes, line 3
3e.prototype.set=function(t,e,i,s){let a=t*this.size+e;this.data[a]=i,s&&(this.reservedBit[a]=!0)},e.prototype.get=function(t,e){return this.data[t*this.size+e]},e.prototype.xor=function(t,e,i){this.data[t*this.size+e]^=i},e.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=e},23774:function(t,e,i){let s=i(81088);function a(t){this.mode=s.BYTE,"string"==typeof t?this.data=new TextEncoder().encode(t):this.data=new Uint8Array(t)}a.getBitsLength=function(t){return 8*t},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(t){for(let e=0,i=this.data.length;e<i;e++)t.put(this.data[e],8)},t.exports=a},91278:function(t,e,i){let s=i(36929),a=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case s.L:return a[(t-1)*4+0];case s.M:return a[(t-1)*4+1];case s.Q:return a[(t-1)*4+2];case s.H:return a[(t-1)*4+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case s.L:return n[(t-1)*4+0];case s.M:return n[(t-1)*4+1];case s.Q:return n[(t-1)*4+2];case s.H:return n[(t-1)*4+3];default:return}}},36929:function(t,e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,i){if(e.isValid(t))return t;try{if("string"!=typeof t)throw Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw Error("Unknown EC Level: "+t)}}catch(t){return i}}},29196:function(t,e,i){let s=i(14902).getSymbolSize;e.getPositions=function(t){let e=s(t);return[[0,0],[e-7,0],[0,e-7]]}},64917:function(t,e,i){let s=i(14902),a=s.getBCHDigit(1335);e.getEncodedBits=function(t,e){let i=t.bit<<3|e,n=i<<10;for(;s.getBCHDigit(n)-a>=0;)n^=1335<<s.getBCHDigit(n)-a;return(i<<10|n)^21522}},68299:function(t,e){let i=new Uint8Array(512),s=new Uint8Array(256),a=1;for(let t=0;t<255;t++)i[t]=a,s[a]=t,256&(a<<=1)&&(a^=285);for(let t=255;t<512;t++)i[t]=i[t-255];e.exp=function(t){return i[t]},e.mul=function(t,e){return 0===t||0===e?0:i[s[t]+s[e]]}},76445:function(t,e,i){let s=i(81088),a=i(14902);function n(t){this.mode=s.KANJI,this.data=t}n.getBitsLength=function(t){return 13*t},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let i=a.toSJIS(this.data[e]);if(i>=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");i=(i>>>8&255)*192+(255&i),t.put(i,13)}},t.exports=n},82612:function(t,e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){let e=t.size,i=0,s=0,a=0,n=null,o=null;for(let r=0;r<e;r++){s=a=0,n=o=null;for(let l=0;l<e;l++){let e=t.get(r,l);e===n?s++:(s>=5&&(i+=3+(s-5)),n=e,s=1),(e=t.get(l,r))===o?a++:(a>=5&&(i+=3+(a-5)),o=e,a=1)}s>=5&&(i+=3+(s-5)),a>=5&&(i+=3+(a-5))}return i},e.getPenaltyN2=function(t){let e=t.size,i=0;for(let s=0;s<e-1;s++)for(let a=0;a<e-1;a++){let e=t.get(s,a)+t.get(s,a+1)+t.get(s+1,a)+t.get(s+1,a+1);(4===e||0===e)&&i++}return 3*i},e.getPenaltyN3=function(t){let e=t.size,i=0,s=0,a=0;for(let n=0;n<e;n++){s=a=0;for(let o=0;o<e;o++)s=s<<1&2047|t.get(n,o),o>=10&&(1488===s||93===s)&&i++,a=a<<1&2047|t.get(o,n),o>=10&&(1488===a||93===a)&&i++}return 40*i},e.getPenaltyN4=function(t){let e=0,i=t.data.length;for(let s=0;s<i;s++)e+=t.data[s];return 10*Math.abs(Math.ceil(100*e/i/5)-10)},e.applyMask=function(t,i){let s=i.size;for(let a=0;a<s;a++)for(let n=0;n<s;n++)i.isReserved(n,a)||i.xor(n,a,function(t,i,s){switch(t){case e.Patterns.PATTERN000:return(i+s)%2==0;case e.Patterns.PATTERN001:return i%2==0;case e.Patterns.PATTERN010:return s%3==0;case e.Patterns.PATTERN011:return(i+s)%3==0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(s/3))%2==0;case e.Patterns.PATTERN101:return i*s%2+i*s%3==0;case e.Patterns.PATTERN110:return(i*s%2+i*s%3)%2==0;case e.Patterns.PATTERN111:return(i*s%3+(i+s)%2)%2==0;default:throw Error("bad maskPattern:"+t)}}(t,n,a))},e.getBestMask=function(t,i){let s=Object.keys(e.Patterns).length,a=0,n=1/0;for(let o=0;o<s;o++){i(o),e.applyMask(o,t);let s=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),s<n&&(n=s,a=o)}return a}},81088:function(t,e,i){let s=i(75382),a=i(84484);e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw Error("Invalid mode: "+t);if(!s.isValid(e))throw Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return a.testNumeric(t)?e.NUMERIC:a.testAlphanumeric(t)?e.ALPHANUMERIC:a.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,i){if(e.isValid(t))return t;try{if("string"!=typeof t)throw Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw Error("Unknown mode: "+t)}}catch(t){return i}}},40997:function(t,e,i){let s=i(81088);function a(t){this.mode=s.NUMERIC,this.data=t.toString()}a.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(t){let e,i;for(e=0;e+3<=this.data.length;e+=3)i=parseInt(this.data.substr(e,3),10),t.put(i,10);let s=this.data.length-e;s>0&&(i=parseInt(this.data.substr(e),10),t.put(i,3*s+1))},t.exports=a},77801:function(t,e,i){let s=i(68299);e.mul=function(t,e){let i=new Uint8Array(t.length+e.length-1);for(let a=0;a<t.length;a++)for(let n=0;n<e.length;n++)i[a+n]^=s.mul(t[a],e[n]);return i},e.mod=function(t,e){let i=new Uint8Array(t);for(;i.length-e.length>=0;){let t=i[0];for(let a=0;a<e.length;a++)i[a]^=s.mul(e[a],t);let a=0;for(;a<i.length&&0===i[a];)a++;i=i.slice(a)}return i},e.generateECPolynomial=function(t){let i=new Uint8Array([1]);for(let a=0;a<t;a++)i=e.mul(i,new Uint8Array([1,s.exp(a)]));return i}},16909:function(t,e,i){let s=i(14902),a=i(36929),n=i(69499),o=i(69364),r=i(83701),l=i(29196),d=i(82612),c=i(91278),u=i(30220),p=i(87299),h=i(64917),_=i(81088),m=i(31465);function g(t,e,i){let s,a,n=t.size,o=h.getEncodedBits(e,i);for(s=0;s<15;s++)a=(o>>s&1)==1,s<6?t.set(s,8,a,!0):s<8?t.set(s+1,8,a,!0):t.set(n-15+s,8,a,!0),s<8?t.set(8,n-s-1,a,!0):s<9?t.set(8,15-s-1+1,a,!0):t.set(8,15-s-1,a,!0);t.set(n-8,8,1,!0)}e.create=function(t,e){let i,h;if(void 0===t||""===t)throw Error("No input text");let v=a.M;return void 0!==e&&(v=a.from(e.errorCorrectionLevel,a.M),i=p.from(e.version),h=d.from(e.maskPattern),e.toSJISFunc&&s.setToSJISFunction(e.toSJISFunc)),function(t,e,i,a){let h;if(Array.isArray(t))h=m.fromArray(t);else if("string"==typeof t){let s=e;if(!s){let e=m.rawSplit(t);s=p.getBestVersionForData(e,i)}h=m.fromString(t,s||40)}else throw Error("Invalid data");let v=p.getBestVersionForData(h,i);if(!v)throw Error("The amount of data is too big to be stored in a QR Code");if(e){if(e<v)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+v+".\n")}else e=v;let f=function(t,e,i){let a=new n;i.forEach(function(e){a.put(e.mode.bit,4),a.put(e.getLength(),_.getCharCountIndicator(e.mode,t)),e.write(a)});let o=(s.getSymbolTotalCodewords(t)-c.getTotalCodewordsCount(t,e))*8;for(a.getLengthInBits()+4<=o&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);let r=(o-a.getLengthInBits())/8;for(let t=0;t<r;t++)a.put(t%2?17:236,8);return function(t,e,i){let a,n,o=s.getSymbolTotalCodewords(e),r=o-c.getTotalCodewordsCount(e,i),l=c.getBlocksCount(e,i),d=o%l,p=l-d,h=Math.floor(o/l),_=Math.floor(r/l),m=_+1,g=h-_,v=new u(g),f=0,y=Array(l),b=Array(l),C=0,w=new Uint8Array(t.buffer);for(let t=0;t<l;t++){let e=t<p?_:m;y[t]=w.slice(f,f+e),b[t]=v.encode(y[t]),f+=e,C=Math.max(C,e)}let S=new Uint8Array(o),M=0;for(a=0;a<C;a++)for(n=0;n<l;n++)a<y[n].length&&(S[M++]=y[n][a]);for(a=0;a<g;a++)for(n=0;n<l;n++)S[M++]=b[n][a];return S}(a,t,e)}(e,i,h),y=new o(s.getSymbolSize(e));!function(t,e){let i=t.size,s=l.getPositions(e);for(let e=0;e<s.length;e++){let a=s[e][0],n=s[e][1];for(let e=-1;e<=7;e++)if(!(a+e<=-1)&&!(i<=a+e))for(let s=-1;s<=7;s++)n+s<=-1||i<=n+s||(e>=0&&e<=6&&(0===s||6===s)||s>=0&&s<=6&&(0===e||6===e)||e>=2&&e<=4&&s>=2&&s<=4?t.set(a+e,n+s,!0,!0):t.set(a+e,n+s,!1,!0))}}(y,e);let b=y.size;for(let t=8;t<b-8;t++){let e=t%2==0;y.set(t,6,e,!0),y.set(6,t,e,!0)}return!function(t,e){let i=r.getPositions(e);for(let e=0;e<i.length;e++){let s=i[e][0],a=i[e][1];for(let e=-2;e<=2;e++)for(let i=-2;i<=2;i++)-2===e||2===e||-2===i||2===i||0===e&&0===i?t.set(s+e,a+i,!0,!0):t.set(s+e,a+i,!1,!0)}}(y,e),g(y,i,0),e>=7&&function(t,e){let i,s,a,n=t.size,o=p.getEncodedBits(e);for(let e=0;e<18;e++)i=Math.floor(e/3),s=e%3+n-8-3,a=(o>>e&1)==1,t.set(i,s,a,!0),t.set(s,i,a,!0)}(y,e),!function(t,e){let i=t.size,s=-1,a=i-1,n=7,o=0;for(let r=i-1;r>0;r-=2)for(6===r&&r--;;){for(let i=0;i<2;i++)if(!t.isReserved(a,r-i)){let s=!1;o<e.length&&(s=(e[o]>>>n&1)==1),t.set(a,r-i,s),-1==--n&&(o++,n=7)}if((a+=s)<0||i<=a){a-=s,s=-s;break}}}(y,f),isNaN(a)&&(a=d.getBestMask(y,g.bind(null,y,i))),d.applyMask(a,y),g(y,i,a),{modules:y,version:e,errorCorrectionLevel:i,maskPattern:a,segments:h}}(t,i,v,h)}},30220:function(t,e,i){let s=i(77801);function a(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}a.prototype.initialize=function(t){this.degree=t,this.genPoly=s.generateECPolynomial(this.degree)},a.prototype.encode=function(t){if(!this.genPoly)throw Error("Encoder not initialized");let e=new Uint8Array(t.length+this.degree);e.set(t);let i=s.mod(e,this.genPoly),a=this.degree-i.length;if(a>0){let t=new Uint8Array(this.degree);return t.set(i,a),t}return i},t.exports=a},84484:function(t,e){let i="[0-9]+",s="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",a="(?:(?![A-Z0-9 $%*+\\-./:]|"+(s=s.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";e.KANJI=RegExp(s,"g"),e.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=RegExp(a,"g"),e.NUMERIC=RegExp(i,"g"),e.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let n=RegExp("^"+s+"$"),o=RegExp("^"+i+"$"),r=RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return n.test(t)},e.testNumeric=function(t){return o.test(t)},e.testAlphanumeric=function(t){return r.test(t)}},31465:function(t,e,i){let s=i(81088),a=i(40997),n=i(10505),o=i(23774),r=i(76445),l=i(84484),d=i(14902),c=i(12239);function u(t){return unescape(encodeURIComponent(t)).length}function p(t,e,i){let s,a=[];for(;null!==(s=t.exec(i));)a.push({data:s[0],index:s.index,mode:e,length:s[0].length});return a}function h(t){let e,i,a=p(l.NUMERIC,s.NUMERIC,t),n=p(l.ALPHANUMERIC,s.ALPHANUMERIC,t);return d.isKanjiModeEnabled()?(e=p(l.BYTE,s.BYTE,t),i=p(l.KANJI,s.KANJI,t)):(e=p(l.BYTE_KANJI,s.BYTE,t),i=[]),a.concat(n,e,i).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function _(t,e){switch(e){case s.NUMERIC:return a.getBitsLength(t);case s.ALPHANUMERIC:return n.getBitsLength(t);case s.KANJI:return r.getBitsLength(t);case s.BYTE:return o.getBitsLength(t)}}function m(t,e){let i,l=s.getBestModeForData(t);if((i=s.from(e,l))!==s.BYTE&&i.bit<l.bit)throw Error('"'+t+'" cannot be encoded with mode '+s.toString(i)+".\n Suggested mode is: "+s.toString(l));switch(i===s.KANJI&&!d.isKanjiModeEnabled()&&(i=s.BYTE),i){case s.NUMERIC:return new a(t);case s.ALPHANUMERIC:return new n(t);case s.KANJI:return new r(t);case s.BYTE:return new o(t)}}e.fromArray=function(t){return t.reduce(function(t,e){return"string"==typeof e?t.push(m(e,null)):e.data&&t.push(m(e.data,e.mode)),t},[])},e.fromString=function(t,i){let a=function(t,e){let i={},a={start:{}},n=["start"];for(let o=0;o<t.length;o++){let r=t[o],l=[];for(let t=0;t<r.length;t++){let d=r[t],c=""+o+t;l.push(c),i[c]={node:d,lastCount:0},a[c]={};for(let t=0;t<n.length;t++){let o=n[t];i[o]&&i[o].node.mode===d.mode?(a[o][c]=_(i[o].lastCount+d.length,d.mode)-_(i[o].lastCount,d.mode),i[o].lastCount+=d.length):(i[o]&&(i[o].lastCount=d.length),a[o][c]=_(d.length,d.mode)+4+s.getCharCountIndicator(d.mode,e))}}n=l}for(let t=0;t<n.length;t++)a[n[t]].end=0;return{map:a,table:i}}(function(t){let e=[];for(let i=0;i<t.length;i++){let a=t[i];switch(a.mode){case s.NUMERIC:e.push([a,{data:a.data,mode:s.ALPHANUMERIC,length:a.length},{data:a.data,mode:s.BYTE,length:a.length}]);break;case s.ALPHANUMERIC:e.push([a,{data:a.data,mode:s.BYTE,length:a.length}]);break;case s.KANJI:e.push([a,{data:a.data,mode:s.BYTE,length:u(a.data)}]);break;case s.BYTE:e.push([{data:a.data,mode:s.BYTE,length:u(a.data)}])}}return e}(h(t,d.isKanjiModeEnabled())),i),n=c.find_path(a.map,"start","end"),o=[];for(let t=1;t<n.length-1;t++)o.push(a.table[n[t]].node);return e.fromArray(o.reduce(function(t,e){let i=t.length-1>=0?t[t.length-1]:null;return i&&i.mode===e.mode?t[t.length-1].data+=e.data:t.push(e),t},[]))},e.rawSplit=function(t){return e.fromArray(h(t,d.isKanjiModeEnabled()))}},14902:function(t,e){let i,s=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw Error('"version" cannot be null or undefined');if(t<1||t>40)throw Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return s[t]},e.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!=typeof t)throw Error('"toSJISFunc" is not a valid function.');i=t},e.isKanjiModeEnabled=function(){return void 0!==i},e.toSJIS=function(t){return i(t)}},75382:function(t,e){e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},87299:function(t,e,i){let s=i(14902),a=i(91278),n=i(36929),o=i(81088),r=i(75382),l=s.getBCHDigit(7973);function d(t,e){return o.getCharCountIndicator(t,e)+4}e.from=function(t,e){return r.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,i){if(!r.isValid(t))throw Error("Invalid QR Code version");void 0===i&&(i=o.BYTE);let n=(s.getSymbolTotalCodewords(t)-a.getTotalCodewordsCount(t,e))*8;if(i===o.MIXED)return n;let l=n-d(i,t);switch(i){case o.NUMERIC:return Math.floor(l/10*3);case o.ALPHANUMERIC:return Math.floor(l/11*2);case o.KANJI:return Math.floor(l/13);case o.BYTE:default:return Math.floor(l/8)}},e.getBestVersionForData=function(t,i){let s,a=n.from(i,n.M);if(Array.isArray(t)){if(t.length>1){for(let i=1;i<=40;i++)if(function(t,e){let i=0;return t.forEach(function(t){let s=d(t.mode,e);i+=s+t.getBitsLength()}),i}(t,i)<=e.getCapacity(i,a,o.MIXED))return i;return}if(0===t.length)return 1;s=t[0]}else s=t;return function(t,i,s){for(let a=1;a<=40;a++)if(i<=e.getCapacity(a,s,t))return a}(s.mode,s.getLength(),a)},e.getEncodedBits=function(t){if(!r.isValid(t)||t<7)throw Error("Invalid QR Code version");let e=t<<12;for(;s.getBCHDigit(e)-l>=0;)e^=7973<<s.getBCHDigit(e)-l;return t<<12|e}},52219:function(t,e,i){let s=i(78006);e.render=function(t,e,i){var a;let n=i,o=e;void 0!==n||e&&e.getContext||(n=e,e=void 0),e||(o=function(){try{return document.createElement("canvas")}catch(t){throw Error("You need to specify a canvas element")}}()),n=s.getOptions(n);let r=s.getImageWidth(t.modules.size,n),l=o.getContext("2d"),d=l.createImageData(r,r);return s.qrToImageData(d.data,t,n),a=o,l.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=r,a.width=r,a.style.height=r+"px",a.style.width=r+"px",l.putImageData(d,0,0),o},e.renderToDataURL=function(t,i,s){let a=s;void 0!==a||i&&i.getContext||(a=i,i=void 0),a||(a={});let n=e.render(t,i,a),o=a.type||"image/png",r=a.rendererOpts||{};return n.toDataURL(o,r.quality)}},98676:function(t,e,i){let s=i(78006);function a(t,e){let i=t.a/255,s=e+'="'+t.hex+'"';return i<1?s+" "+e+'-opacity="'+i.toFixed(2).slice(1)+'"':s}function n(t,e,i){let s=t+e;return void 0!==i&&(s+=" "+i),s}e.render=function(t,e,i){let o=s.getOptions(e),r=t.modules.size,l=t.modules.data,d=r+2*o.margin,c=o.color.light.a?"<path "+a(o.color.light,"fill")+' d="M0 0h'+d+"v"+d+'H0z"/>':"",u="<path "+a(o.color.dark,"stroke")+' d="'+function(t,e,i){let s="",a=0,o=!1,r=0;for(let l=0;l<t.length;l++){let d=Math.floor(l%e),c=Math.floor(l/e);d||o||(o=!0),t[l]?(r++,l>0&&d>0&&t[l-1]||(s+=o?n("M",d+i,.5+c+i):n("m",a,0),a=0,o=!1),d+1<e&&t[l+1]||(s+=n("h",r),r=0)):a++}return s}(l,r,o.margin)+'"/>',p='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+('viewBox="0 0 '+d+" ")+d+'" shape-rendering="crispEdges">'+c+u+"</svg>\n";return"function"==typeof i&&i(null,p),p}},78006:function(t,e){function i(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw Error("Invalid hex color: "+t);(3===e.length||4===e.length)&&(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");let i=parseInt(e.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:255&i,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});let e=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,s=t.width&&t.width>=21?t.width:void 0,a=t.scale||4;
3return{width:s,scale:s?4:a,margin:e,color:{dark:i(t.color.dark||"#000000ff"),light:i(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,i){let s=e.getScale(t,i);return Math.floor((t+2*i.margin)*s)},e.qrToImageData=function(t,i,s){let a=i.modules.size,n=i.modules.data,o=e.getScale(a,s),r=Math.floor((a+2*s.margin)*o),l=s.margin*o,d=[s.color.light,s.color.dark];for(let e=0;e<r;e++)for(let i=0;i<r;i++){let c=(e*r+i)*4,u=s.color.light;e>=l&&i>=l&&e<r-l&&i<r-l&&(u=d[+!!n[Math.floor((e-l)/o)*a+Math.floor((i-l)/o)]]),t[c++]=u.r,t[c++]=u.g,t[c++]=u.b,t[c]=u.a}}},35406:function(t,e,i){"use strict";i.d(e,{A:function(){return I}});var s=i(32198),a=i(58294),n=i(62765),o=i(94182),r=i(67953);class l extends r.lD{}(0,s.Cg)([(0,r.kv)({type:String,required:!0})],l.prototype,"content",void 0);var d=l=(0,s.Cg)([r.uA],l),c=i(41618),u=(0,c.A)(d,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"FiberUpgradeBanner"},[this._m(0),t("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.content,expression:"content"}],staticClass:"FiberUpgradeBanner__text"})])},[function(){var t=this._self._c;return this._self._setupProxy,t("span",{staticClass:"FiberUpgradeBanner__icon"},[t("span",{staticClass:"FiberUpgradeBanner__iconGlyph"},[this._v("+")])])}],!1,null,"df6c2ba4",null).exports,p=i(15049),h=i(69607),_=i(79847),m=i(99168),g=i(13352),v=i(61931),f=i(54466),y=i(50778),b=i(78906),C=i(83301),w=i(83487);let S=(0,a.tZ)("BroadbandSelector");class M extends r.lD{async mounted(){try{this.advantages=(await this.productService.getAvailableAdvantages()).filter(t=>"fixed_internet_fee_reduction"===t.type)}catch(t){S.error("Failed to load advantages",t),this.notifyGenericErrors(t)}}get styleLevelClass(){return(0,C.yu)(this.styleLevel)}get loading(){return!this.broadbandSubscriptionProducts||!this.broadbandSubscriptionProducts.length}onBroadbandSubscriptionProductsChanged(){if(!this.loading&&!this.value){let t=this.sortedProducts[0];this.$emit("input",t)}}get sortedProducts(){return[...(0,b.bp)(this.broadbandSubscriptionProducts)].sort((t,e)=>t.monthly-e.monthly)}get isInvalid(){return!!this.errors?.items.find(t=>t.field===this.name)}title(t){return this.useShortProductTitle&&t.slug&&this.$t(`product.${t.slug}_title_short`)?this.$t(`product.${t.slug}_title_short`):t.title}price(t){return Math.max(0,t.monthly-this.productPriceReductionAmount-this.combinedPromotion(t))}oldPrice(t){return 0===this.combinedPromotion(t)?null:t.monthly-this.productPriceReductionAmount}comboAdvantagePromoMessage(t){return 0===this.combinedPromotion(t)?null:this.$t("bb_product_selector_combo.combo_advantage_{amount}",{amount:(0,n.up)(this.combinedPromotion(t),"two_if_significant")})}combinedPromotion(t){if(!this.advantages.length)return 0;let e=0;return this.receivesComboBenefits&&(e+=this.advantages.reduce((t,e)=>t+e.amount,0)),this.promo&&(e-=this.promo.effectiveReduction(t)),e}describeProduct(t){let e=(0,o.DB)(t.definitions.maxUploadSpeed),i=(0,o.DB)(t.definitions.maxDownloadSpeed);return this.showNotFiberEligibleMessaging?this.$t("registration_select_products.copper_productDescription{downloadSpeed}{uploadSpeed}_new",{uploadSpeed:e,downloadSpeed:i}).toString():this.$t(`registration_select_products.${t.lineType}_productDescription{downloadSpeed}{uploadSpeed}`,{uploadSpeed:e,downloadSpeed:i}).toString()}get showNotFiberEligibleMessaging(){return"order-fiber"===this.intent&&!this.fiberEligible}tagForProduct(t){return"fast"===t.connectivityClass&&this.highlightProduct?this.$t("broadbandSelector.fast_fiber_label").toString():this.disallowedProducts?.find(e=>e.product.id===t.id)?.reason??null}buildJsonLd(t,e){let i=this.buildStructuredProducts(t,e);return 0===i.length?[]:[{"@type":"ItemList",url:t,numberOfItems:i.length,itemListElement:i.map((t,e)=>({"@type":"ListItem",position:e+1,item:{"@id":t["@id"]}}))},...i]}buildStructuredProducts(t,e){let i={"@type":"Organization","@id":"https://mobilevikings.be/#organization",name:"Mobile Vikings"};return e.map(e=>{let s=this.price(e),a=this.title(e)?.toString?.()??e.title,n=this.describeProduct(e)?.toString?.().replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim(),o=`${t}#product-broadband-${e.id}`,r={"@type":"Offer","@id":`${t}#offer-broadband-${e.id}`,url:o,availability:"https://schema.org/InStock",offeredBy:i,seller:i,price:s,priceCurrency:"EUR",priceSpecification:{"@type":"UnitPriceSpecification",priceCurrency:"EUR",price:s,priceComponentType:"https://schema.org/Subscription",unitText:"month"}};return{"@type":"Product","@id":o,name:a,sku:String(e.id),url:o,image:(0,f.g)("broadband"),category:"Broadband subscription",description:n,brand:i,offers:r}})}constructor(...t){super(...t),this.advantages=[],this.formatMoney=n.up}}(0,s.Cg)([(0,r.kv)()],M.prototype,"value",void 0),(0,s.Cg)([(0,r.kv)()],M.prototype,"referenceProduct",void 0),(0,s.Cg)([(0,r.kv)()],M.prototype,"broadbandSubscriptionProducts",void 0),(0,s.Cg)([(0,r.kv)({default:null})],M.prototype,"fiberEligible",void 0),(0,s.Cg)([(0,r.kv)()],M.prototype,"promo",void 0),(0,s.Cg)([(0,r.kv)({default:!1})],M.prototype,"receivesComboBenefits",void 0),(0,s.Cg)([(0,r.kv)({type:Number,default:2})],M.prototype,"numberOfLoadingItems",void 0),(0,s.Cg)([(0,r.kv)({type:String,default:function(){return`broadbandSelector-${A++}`}})],M.prototype,"name",void 0),(0,s.Cg)([(0,r.kv)({type:Number,required:!1,default:1})],M.prototype,"styleLevel",void 0),(0,s.Cg)([(0,r.kv)({type:Boolean,default:!1})],M.prototype,"createdDuringDowntime",void 0),(0,s.Cg)([(0,r.kv)({type:Array,required:!1,default:()=>[]})],M.prototype,"disallowedProducts",void 0),(0,s.Cg)([(0,r.kv)({type:Number,required:!1,default:0})],M.prototype,"productPriceReductionAmount",void 0),(0,s.Cg)([(0,r.kv)({default:!0})],M.prototype,"highlightProduct",void 0),(0,s.Cg)([(0,r.kv)({default:!1})],M.prototype,"useShortProductTitle",void 0),(0,s.Cg)([(0,r.kv)({type:String,required:!1,default:null})],M.prototype,"intent",void 0),(0,s.Cg)([(0,r.y_)()],M.prototype,"productService",void 0),(0,s.Cg)([(0,r.ox)("broadbandSubscriptionProducts",{immediate:!0})],M.prototype,"onBroadbandSubscriptionProductsChanged",null);let A=0;var k=M=(0,s.Cg)([(0,w.My)(),(0,r.uA)({components:{FiberUpgradeBanner:u,Tag:y.A,RadioButton:p.A,RadioButtons:h.A,RadioGroup:_.A,MonthlyPrice:g.A,Heading:m.A,LdJs
3on:v.A}})],M),I=(0,c.A)(k,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"broadbandSelector",class:[{"is-invalid":t.isInvalid},t.styleLevelClass]},[t.loading?[e("RadioGroup",{attrs:{numberOfLoadingItems:t.numberOfLoadingItems,topAlignChecks:!0}},[e("div",{staticClass:"broadbandSelectorProduct broadbandSelectorProduct--isLoading"},[e("div",{staticClass:"broadbandSelectorProduct__container"},[e("div",{staticClass:"broadbandSelectorProduct__title shimmer",attrs:{"data-qa":"broadband-selector-product-title"}},[t._v("Â ")]),e("div",{staticClass:"broadbandSelectorProduct__price shimmer",attrs:{"data-qa":"broadband-selector-product-price"}},[t._v("Â ")]),e("div",{staticClass:"broadbandSelectorProduct__description shimmer",attrs:{"data-qa":"broadband-selector-product-description"}},[t._v(" Â ")])])])])]:[e("RadioButtons",{attrs:{value:t.value,optionKey:"id"},on:{input:function(e){return t.$emit("input",e)}}},t._l(t.sortedProducts,function(i){return e("RadioButton",{key:i.id,staticClass:"BroadbandSelector__option",attrs:{value:i,topAlignCheck:!0,highlight:"fast"===i.connectivityClass&&t.highlightProduct,tagAppearance:t.disallowedProducts&&t.disallowedProducts.find(t=>t.product.id===i.id)?"redOrange":"blue",disabled:t.disallowedProducts&&t.disallowedProducts.find(t=>t.product.id===i.id),tagMessage:t.tagForProduct(i)}},[e("div",{staticClass:"broadbandSelectorProduct"},[e("div",{staticClass:"broadbandSelectorProduct__container"},[e("Heading",{staticClass:"broadbandSelectorProduct__title",attrs:{tagType:"div",appearance:"h5","data-qa":"broadband-selector-product-title"}},[t._v(" "+t._s(t.title(i))+" ")]),e("div",{staticClass:"broadbandSelectorProduct__price",class:{"broadbandSelectorProduct__price--hasTag":t.referenceProduct&&t.referenceProduct.monthly===i.monthly},attrs:{"data-qa":"broadband-selector-product-price"}},[t.referenceProduct?t.referenceProduct.monthly!==i.monthly?e("MonthlyPrice",{staticClass:"broadbandSelectorProduct__monthlyPrice",attrs:{footNote:t.comboAdvantagePromoMessage(i),referencePrice:t.price(t.referenceProduct),price:t.price(i)}}):e("Tag",{attrs:{appearance:"turquoise"}},[t._v(t._s(t.$t("broadband_product.same_price")))]):e("MonthlyPrice",{staticClass:"broadbandSelectorProduct__monthlyPrice",attrs:{footNote:t.comboAdvantagePromoMessage(i),oldPrice:t.oldPrice(i),price:t.price(i)}})],1),t.showNotFiberEligibleMessaging?e("div",{staticClass:"broadbandSelectorProduct__extraInfo",attrs:{"data-qa":"broadband-selector-product-extra-info"}},[t._v(" "+t._s(t.$t("broadband_product.normalUsage"))+" ")]):t._e(),e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.describeProduct(i),expression:"describeProduct(product)"}],staticClass:"broadbandSelectorProduct__description ExternalContent",attrs:{"data-qa":"broadband-selector-product-description"}}),t.showNotFiberEligibleMessaging?e("FiberUpgradeBanner",{attrs:{content:t.$t("broadband_product.fiber_upgrade__html")}}):t._e()],1)])])}),1)],t.loading?t._e():e("LdJson",{attrs:{active:t.sortedProducts.length>0,data:t.sortedProducts,builder:t.buildJsonLd}})],2)},[],!1,null,"72bb0b11",null).exports},72208:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{get supports5g(){return!!this.fiveGSupport||!!this.product&&this.product.definitions?.features?.has5G}}(0,s.Cg)([(0,a.kv)({required:!1})],n.prototype,"product",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,default:!1})],n.prototype,"fiveGSupport",void 0);var o=n=(0,s.Cg)([(0,a.uA)({})],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,t("span",{staticClass:"FourGFiveGLabel",class:{"FourGFiveG--has5g":this.supports5g}},[t("span",{staticClass:"FourGFiveGLabel__4g"},[this._v("4G")]),this.supports5g?[t("span",{staticClass:"FourGFiveGLabel__slash"},[this._v("Â /Â ")]),this._v("5G")]:this._e()],2)},[],!1,null,"66115fe9",null).exports},78098:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(67953),n=i(28687);class o extends a.lD{}(0,s.Cg)([(0,a.kv)()],o.prototype,"iconUrl",void 0),(0,s.Cg)([(0,a.kv)()],o.prototype,"text",void 0),(0,s.Cg)([(0,a.kv)({required:!1,default:null})],o.prototype,"cta",void 0),(0,s.Cg)([(0,a.kv)({required:!1,default:""})],o.prototype,"ctaText",void 0);var r=o=(0,s.Cg)([(0,a.uA)({components:{Icon:n.A}})],o),l=(0,i(41618).A)(r,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"iconWithText",attrs:{"data-qa":"icon-with-text"}},[t("Icon",{staticClass:"iconWithText__icon",attrs:{iconUrl:this.iconUrl,appearance:"inCircle"}}),t("div",{staticClass:"iconWithText__content"},[t("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.text,expression:"text"}],staticClass:"content__text"}),this.cta&&this.ctaText?t("div",[t("a",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.ctaText,expression:"ctaText"}],staticClass:"content__ctaText",attrs:{href:"javascript:;"},on:{click:this.cta}})]):this._e()])],1)},[],!1,null,"6f861f7e",null).exports}
3,59838:function(t,e,i){"use strict";i.d(e,{A:function(){return d}});var s=i(32198),a=i(67953),n=i(99168),o=i(13352);class r extends a.lD{}(0,s.Cg)([(0,a.kv)({type:Number,required:!1,default:void 0})],r.prototype,"originalInstallationTotal",void 0),(0,s.Cg)([(0,a.kv)({type:Number,required:!0})],r.prototype,"installationTotal",void 0),(0,s.Cg)([(0,a.kv)()],r.prototype,"description",void 0);var l=r=(0,s.Cg)([(0,a.uA)({components:{MonthlyPrice:o.A,Heading:n.A}})],r),d=(0,i(41618).A)(l,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"InstallationCostWizardStepFooter"},[t("Heading",{staticClass:"InstallationCostWizardStepFooter__heading",attrs:{tagType:"h5",appearance:"h5"}},[t("span",[this._v(this._s(this.$t("registration_bb.installation_title")))]),t("MonthlyPrice",{attrs:{hidePerMonthLabel:!0,appearance:"centeredUntil600",price:this.installationTotal,oldPrice:this.originalInstallationTotal}})],1),t("p",{staticClass:"InstallationCostWizardStepFooter__description"},this.description?[this._v(" "+this._s(this.description)+" ")]:[this._v(" "+this._s(this.$t("installation_cost_description"))+" ")])],1)},[],!1,null,"ba9d334a",null).exports},25865:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(62765),n=i(67953);class o extends n.lD{get formatted(){let t=this.displayCents?"always_two":"round_to_whole";return(0,a.up)(this.amount,t)}}(0,s.Cg)([(0,n.kv)({type:Number,required:!1})],o.prototype,"amount",void 0),(0,s.Cg)([(0,n.kv)({type:Boolean,required:!1,default:!0})],o.prototype,"displayCents",void 0);var r=o=(0,s.Cg)([n.uA],o),l=(0,i(41618).A)(r,function(){var t=this._self._c;return this._self._setupProxy,t("span",{staticClass:"money"},[this._v(this._s(this.formatted))])},[],!1,null,"8d231b34",null).exports},79770:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(62765),n=i(67953);class o extends n.lD{onValueChange(t){null===t||"number"!=typeof t||Number.isNaN(t)||t!==this.getCurrentNumericValue()&&this.setInputValue(t)}beforeMount(){this.formValidator&&(this.$validator=this.formValidator)}created(){(0,a.Uc)("with_currency","force-override")}mounted(){this.moneyField&&this.value&&this.setInputValue(this.value);let t=(t,e)=>!!e&&!!Array.isArray(e)&&1===e.length&&t(e[0]),e=t=>{let e=Number(t.toString().replace(",","."));return Number.isNaN(e)?null:e};this.formValidator.extend("min_value_any_decimal_separator",{getMessage:(t,e)=>`${t} ${this.$t("giftCardSelector.minimumIs{number}",{number:this.formatMoney(Number(e[0]))})}`,validate:(i,s)=>{if(!t(t=>!Number.isNaN(Number(t)),s))return!1;let a=Number(s[0]),n=e(i);return null!==n&&n>=a}}),this.formValidator.extend("max_value_any_decimal_separator",{getMessage:(t,e)=>`${t} ${this.$t("giftCardSelector.maximumIs{number}",{number:this.formatMoney(Number(e[0]))})}`,validate:(i,s)=>{if(!t(t=>!Number.isNaN(Number(t)),s))return!1;let a=Number(s[0]),n=e(i);return null!==n&&n<=a}}),this.formValidator.extend("decimal_any_separator",{getMessage:(t,e)=>`${t} ${this.$t("giftCardSelector.shouldBeDecimalWithMax{number}Decimals",{number:e[0]})}`,validate:(e,i)=>{if(!t(t=>!Number.isNaN(Number(t)),i))return!1;let s=Number(i[0]);return!(e.match(/[.,]/)&&e.match(/\d$/))||null===e.match(RegExp(`\\d{${s+1},}$`))}}),this.formValidator.extend("at_most_one_decimal_separator",{getMessage:t=>`${t} ${this.$t("giftCardSelector.mustNotContainMoreThanOneDecimalSeparator")}`,validate:t=>t.split(/[.,]/).length<=2})}handleInput(t){let e=t.target;e.value=e.value.replace(/[^0-9,.]/g,""),e.value.match(/[,.]/)&&(e.value=e.value.replace(/(\d{3,})$/,t=>t.slice(0,2))),this.$emit("input",Number(e.value.replace(",",".")))}formatMoney(t){return(0,a.up)(t,"two_if_significant")}setInputValue(t){this.moneyField&&(this.moneyField.value=(0,a.ZF)(t,"","two_if_significant"))}getCurrentNumericValue(){return this.moneyField?Number(this.moneyField.value.replace(",",".")):null}}(0,s.Cg)([(0,n.kv)({required:!1})],o.prototype,"value",void 0),(0,s.Cg)([(0,n.kv)({required:!1,default:0})],o.prototype,"min",void 0),(0,s.Cg)([(0,n.kv)({required:!1,default:1/0})],o.prototype,"max",void 0),(0,s.Cg)([(0,n.kv)({required:!1})],o.prototype,"label",void 0),(0,s.Cg)([(0,n.kv)({required:!0})],o.prototype,"name",void 0),(0,s.Cg)([(0,n.kv)({required:!1,default:!1})],o.prototype,"required",void 0),(0,s.Cg)([(0,n.kv)({required:!1})],o.prototype,"formValidator",void 0),(0,s.Cg)([(0,n.oS)("moneyField")],o.prototype,"moneyField",void 0),(0,s.Cg)([(0,n.ox)("value")],o.prototype,"onValueChange",null);var r=o=(0,s.Cg)([n.uA],o),l=(0,i(41618).A)(r,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"MoneyField",attrs:{"data-qa":"money-field"}},[e("input",{directives:[{name:"validate",rawName:"v-validate",value:{required:t.required,at_most_one_decimal_separator:!0,min_value_any_decimal_separator:t.min,max_value_any_decimal_separator:t.max,decimal_any_separator:2},expression:"{\n required: required,\n at_most_one_decimal_separator: true,\n min_value_any_decimal_separator: min,\n max_value_any_decimal_separator: max,\n decimal_any_separator: 2,\n }"}],ref:"moneyField",staticClass:"MoneyField__input",attrs:{"data-vv-as":t.label,"data-qa":"money-field-input",type:"text",inputmode:"decimal",autocomplete:"off",name:t.name},on:{input:function(e){return t.handleInput(e)}}})])},[],!1,null,"0d03f412",null).exports}
3,13352:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{}(0,s.Cg)([(0,a.kv)()],n.prototype,"price",void 0),(0,s.Cg)([(0,a.kv)()],n.prototype,"oldPrice",void 0),(0,s.Cg)([(0,a.kv)()],n.prototype,"referencePrice",void 0),(0,s.Cg)([(0,a.kv)({default:!1})],n.prototype,"showFromLabel",void 0),(0,s.Cg)([(0,a.kv)()],n.prototype,"size",void 0),(0,s.Cg)([(0,a.kv)()],n.prototype,"appearance",void 0),(0,s.Cg)([(0,a.kv)()],n.prototype,"footNote",void 0),(0,s.Cg)([(0,a.kv)()],n.prototype,"highlightPrice",void 0),(0,s.Cg)([(0,a.kv)({default:""})],n.prototype,"monthLabel",void 0),(0,s.Cg)([(0,a.kv)({default:!1})],n.prototype,"hidePerMonthLabel",void 0),(0,s.Cg)([(0,a.kv)({default:!1})],n.prototype,"showZeroAsFree",void 0);var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"monthlyPrice",class:{"monthlyPrice--promo":this.oldPrice,"monthlyPrice--large":"large"===this.size,"monthlyPrice--xtraLarge":"xtraLarge"===this.size,"monthlyPrice--xtraXtraLarge":"xtraXtraLarge"===this.size,"monthlyPrice--centeredUntil600":"centeredUntil600"===this.appearance,"monthlyPrice--centeredUntil800":"centeredUntil800"===this.appearance,"monthlyPrice--centered":"centered"===this.appearance,"monthlyPrice--leftAlignedUntil400":"leftAlignedUntil400"===this.appearance,"monthlyPrice--inherit":"inherit"===this.appearance,"monthlyPrice--highlightPrice":this.highlightPrice}},[t("div",{staticClass:"monthlyPrice__top"},[this.showFromLabel?t("div",{staticClass:"monthlyPrice__fromLabel"},[this._v(" "+this._s(this.$t("discount.from"))+" ")]):this._e(),this.oldPrice?t("div",{staticClass:"monthlyPrice__oldPrice original-fee"},[this.showZeroAsFree&&0==this.oldPrice?[this._v(" "+this._s(this.$t("free"))+" ")]:[this._v(this._s(this._f("moneyCentsCompact")(this.oldPrice)))]],2):this._e(),this.referencePrice?t("div",{staticClass:"monthlyPrice__price"},[this.price-this.referencePrice>=0?t("span",[this._v("+")]):this._e(),this._v("Â "+this._s(this._f("moneyCentsCompact")(this.price-this.referencePrice))+" ")]):t("div",{staticClass:"monthlyPrice__price fee"},[this.showZeroAsFree&&0==this.price?[this._v(" "+this._s(this.$t("free"))+" ")]:[this._v(this._s(this._f("moneyCentsCompact")(this.price)))]],2),t("div",{staticClass:"monthlyPrice__monthLabel"},[this.hidePerMonthLabel?this._e():[this._v("Â /Â "+this._s(this.monthLabel||this.$t("month")))],this._t("footNoteSups")],2)]),this.footNote?t("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.footNote,expression:"footNote"}],staticClass:"monthlyPrice__discountMessage"}):this._e()])},[],!1,null,"42efe4aa",null).exports},76802:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(61438),n=i(67953);class o extends n.lD{get filteredPaymentMethods(){return this.allowedMethods}}(0,s.Cg)([(0,n.kv)({type:Array,required:!1,default:()=>a.U})],o.prototype,"allowedMethods",void 0),(0,s.Cg)([(0,n.kv)({type:Boolean,required:!1,default:!1})],o.prototype,"hideDisclaimer",void 0),(0,s.Cg)([(0,n.y_)()],o.prototype,"config",void 0);var r=o=(0,s.Cg)([n.uA],o),l=(0,i(41618).A)(r,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"paymentMethodOverview"},[e("strong",{staticClass:"paymentMethodOverview__title"},[t._v(t._s(t.$t("registration.pay_safely_with")))]),e("div",t._l(t.filteredPaymentMethods,function(i,s){return e("img",{key:`pm-${s}`,attrs:{src:`${t.config.vueRoot}/img/paymentMethods/${i}.svg`,alt:`${i}`}})}),0),t.hideDisclaimer?t._e():e("p",{staticClass:"paymentMethodOverview__disclaimer"},[t._v(t._s(t.$t("payment_method_disclaimer")))])])},[],!1,null,null,null).exports},99239:function(t,e,i){"use strict";i.d(e,{A:function(){return _}});var s=i(32198),a=i(58294),n=i(8921),o=i(70180),r=i(67953),l=i(28687),d=i(33497),c=i(20684);let u=(0,a.tZ)("WhoAmI");class p extends r.lD{doLogout(){this.session.destroy(),this.$emit("logout")}get loggedOutDescription(){return this.customLoggedOutDescription?this.customLoggedOutDescription:this.$t("whoAmI.default_logged_out_message")}get formattedName(){return this.user&&this.user?.firstName&&this.user?.lastName?`${this.user.firstName} ${this.user.lastName}`:""}get initials(){return this.user&&this.user?.firstName&&this.user?.lastName?`${this.user.firstName.charAt(0)}${this.user.lastName.charAt(0)}`:""}get vikingSince(){return this.user&&this.user?.joined?(0,o.dH)(this.user.joined,this.$t.bind(this),this.clock):""}async login(){if(!this.hideLogInLogOut)try{await this.authService.requireLogin(),this.$emit("login")}catch(t){if(n.Ay.of(t).code===n.O4.LOGIN_ABORTED)return;u.error("Error during login via modal",t)}}get user(){return this.userProfile?this.userProfile:this.session?.profile?this.session.profile:null}}(0,s.Cg)([(0,r.kv)({default:"navigate"})],p.prototype,"logout",void 0),(0,s.Cg)([(0,r.kv)({type:String,required:!1})],p.prototype,"customLoggedOutDescription",void 0),(0,s.Cg)([(0,r.kv)({type:Object,required:!1})],p.prototype,"userProfile",void 0),(0,s.Cg)([(0,r.kv)({default:!1})],p.prototype,"showLoggedInAsLabel",void 0),(0,s.Cg)([(0,r.kv)({type:Boolean,default:!1})],p.prototype,"hasWarning",void 0),(0,s.Cg)([(0,r.kv)({type:Boolean,required:!1,default:!1})],p.prototype,"showVikingSince",void 0),(0,s.Cg)([(0,r.kv)({type:Boolean,required:!1,default:!1})],p.prototype,"hideLogInLogOut",void 0),(0,s.Cg)([(0,r.kv)({type:String,required:!1,default:""})],p.prototype,"appearance",void 0),(0,s.Cg)([(0,r.y_)()],p.prototype,"session",void 0),(0,s.Cg)([(0,r.y_)()],p.prototype,"authService",void 0),(0,s.Cg)([(0,r.y_)()],p.prototype,"clock",void 0);var h=p=(0,s.Cg)([(0,r.uA)({components:{AvatarInitials:d.A,AvatarRoot:c.A,Icon:l.A}})],p),_=(0,i(41618).A)(h,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"whoAmI who-am-i",class:{"whoAmI--isLoggedOut":!t.user,"whoAmI--noLogInLogOut":t.hideL
3ogInLogOut,"whoAmI--asWizardStep":"wizardStep"===t.appearance},attrs:{"data-qa":"who-am-i"}},[t.user?[t.hideLogInLogOut?e("div",{staticClass:"whoAmI__container"},[t.showLoggedInAsLabel?e("strong",{staticClass:"whoAmI__intro user-info-intro"},[t._v(t._s(t.$t("you_are_logged_in_as")))]):t._e(),e("div",{staticClass:"whoAmI__info user-info"},[e("AvatarRoot",{staticClass:"whoAmI__avatar",attrs:{hasWarning:t.hasWarning}},[e("AvatarInitials",{attrs:{initials:t.initials}})],1),e("div",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],staticClass:"whoAmI__titleDescription"},[e("div",{staticClass:"whoAmI__title name"},[t._v(t._s(t.formattedName))]),e("div",{staticClass:"whoAmI__description email"},[e("span",[t._v(t._s(t.user.email))]),t.showVikingSince?e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:` - ${t.$t("youve_been_a_viking_for_{period}",{period:t.vikingSince})}`,expression:"` - ${$t('youve_been_a_viking_for_{period}', { period: vikingSince })}`"}]}):t._e()]),t.hideLogInLogOut?t._e():e("div",{staticClass:"whoAmI__loggedInState"},[t._v(" "+t._s(t.$t("logout"))+" ")])])],1)]):"inline"===t.logout?[e("button",{staticClass:"whoAmI__container login-logout-element",on:{click:function(e){return e.preventDefault(),t.doLogout.apply(null,arguments)}}},[t.showLoggedInAsLabel?e("strong",{staticClass:"whoAmI__intro user-info-intro"},[t._v(t._s(t.$t("you_are_logged_in_as")))]):t._e(),e("span",{staticClass:"whoAmI__info user-info"},[e("AvatarRoot",{staticClass:"whoAmI__avatar",attrs:{hasWarning:t.hasWarning}},[e("AvatarInitials",{attrs:{initials:t.initials}})],1),e("span",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],staticClass:"whoAmI__titleDescription"},[e("span",{staticClass:"whoAmI__title name"},[t._v(t._s(t.formattedName))]),e("span",{staticClass:"whoAmI__description email"},[e("span",[t._v(t._s(t.user.email))]),t.showVikingSince?e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:` - ${t.$t("youve_been_a_viking_for_{period}",{period:t.vikingSince})}`,expression:"` - ${$t('youve_been_a_viking_for_{period}', { period: vikingSince })}`"}]}):t._e()]),t.hideLogInLogOut?t._e():e("span",{staticClass:"whoAmI__loggedInState"},[t._v(" "+t._s(t.$t("logout"))+" ")])])],1)])]:e("a",{staticClass:"whoAmI__container login-logout-element",attrs:{href:t.$router.resolve({name:"logout"}).href}},[t.showLoggedInAsLabel?e("strong",{staticClass:"whoAmI__intro user-info-intro"},[t._v(t._s(t.$t("you_are_logged_in_as")))]):t._e(),e("span",{staticClass:"whoAmI__info user-info"},[e("AvatarRoot",{staticClass:"whoAmI__avatar",attrs:{hasWarning:t.hasWarning,size:"sm"}},[e("AvatarInitials",{attrs:{initials:t.initials}})],1),e("span",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],staticClass:"whoAmI__titleDescription"},[e("span",{staticClass:"whoAmI__title name"},[t._v(t._s(t.formattedName))]),e("span",{staticClass:"whoAmI__description email"},[e("span",[t._v(t._s(t.user.email))]),t.showVikingSince?e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:` - ${t.$t("youve_been_a_viking_for_{period}",{period:t.vikingSince})}`,expression:"` - ${$t('youve_been_a_viking_for_{period}', { period: vikingSince })}`"}]}):t._e()]),t.hideLogInLogOut?t._e():e("span",{staticClass:"whoAmI__loggedInState"},[t._v(" "+t._s(t.$t("logout"))+" ")])])],1)])]:e(t.hideLogInLogOut?"div":"button",{tag:"Component",staticClass:"whoAmI__container login-logout-element",class:{"whoami-login":!t.hideLogInLogOut&&!t.user,"whoami-logout":!t.hideLogInLogOut&&t.user},attrs:{type:!t.hideLogInLogOut&&"button"},on:{click:function(e){return e.preventDefault(),t.login.apply(null,arguments)}}},[e("span",{staticClass:"whoAmI__info user-info"},[e("Icon",{staticClass:"whoAmI__avatar",attrs:{iconUrl:"--icon-helmet-bg-url",appearance:"inCircle"}}),e("span",{staticClass:"whoAmI__titleDescription"},[e("span",{staticClass:"whoAmI__title"},[t._v(t._s(t.$t("whoami.do_you_want_to_log_in")))]),e("span",{staticClass:"whoAmI__description whoami-loggedout-message"},[t._v(t._s(t.loggedOutDescription))]),t.hideLogInLogOut?t._e():e("span",{staticClass:"whoAmI__loggedInState"}
3,[t._v(t._s(t.$t("whoami.login_now")))])])],1)])],2)},[],!1,null,"0b1cc23a",null).exports},62526:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(67953),n=i(58249);class o extends a.lD{created(){this.fillAddress()}onUpdateBuildingType(){"house"===this.buildingType&&(this.box=null,this.$nextTick(()=>{this.disableBox=!0})),"apartment"===this.buildingType&&(this.disableBox=!1),this.updateAddress()}fillAddress(){this.street=this.value?this.value.street:"",this.number=this.value?this.value.number:"",this.box=(this.value?this.value.box:null)||null,this.postcode=this.value?this.value.postcode:"",this.city=this.value?this.value.city:"",this.country=this.value&&this.value.country||"be"}updateAddress(){let t={street:this.street,number:this.number,box:this.box||void 0,postcode:(this.postcode??"").replace(/^0*/,""),city:this.city,country:this.country};this.$emit("input",t)}get acceptedCountries(){let t=t=>t.map(t=>({code:t,label:this.$t(`country_${t}`).toString()})),e=t(["be"]);if(!this.allowNeighboringCountries)return e;let i=t(["nl","fr","de","lu"]);return i.sort((t,e)=>t.label.localeCompare(e.label)),e.concat(i)}constructor(...t){super(...t),this.street="",this.number="",this.box=null,this.postcode="",this.city="",this.country="be",this.disableBox=!1,this.inputNameStreet=this.prefix?`${this.prefix}__address_street`:"address_street",this.inputNameNumber=this.prefix?`${this.prefix}__address_number`:"address_number",this.inputNameBox=this.prefix?`${this.prefix}__address_box`:"address_box",this.inputNamePostcode=this.prefix?`${this.prefix}__address_postalcode`:"address_postalcode",this.inputNameCity=this.prefix?`${this.prefix}__address_city`:"address_city"}}(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],o.prototype,"required",void 0),(0,s.Cg)([(0,a.kv)()],o.prototype,"value",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],o.prototype,"countryHint",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],o.prototype,"prefix",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,default:!1})],o.prototype,"allowNeighboringCountries",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,default:!0})],o.prototype,"showCountry",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],o.prototype,"buildingType",void 0),(0,s.Cg)([(0,a.kv)({type:RegExp,required:!1,default:()=>/^[1-9]((?![.,]).)*$/})],o.prototype,"numberPattern",void 0),(0,s.Cg)([(0,a.ox)("buildingType")],o.prototype,"onUpdateBuildingType",null),(0,s.Cg)([(0,a.ox)("value")],o.prototype,"fillAddress",null);var r=o=(0,s.Cg)([(0,a.uA)({inject:["$validator"],components:{Field:n.A}})],o),l=(0,i(41618).A)(r,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"address-form"},[e("Field",{staticClass:"street field--noMargin",attrs:{label:t.$t("field_address_street")}},[e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.street,expression:"street",modifiers:{trim:!0}},{name:"validate",rawName:"v-validate",value:{required:t.required,regex:/^[^\,\;\:\/\\\(\)\<\>\?\!\$\#\@\&\*\_\+\=\~\|]*$/,max:40},expression:"{\n required: required,\n regex: /^[^\\,\\;\\:\\/\\\\\\(\\)\\<\\>\\?\\!\\$\\#\\@\\&\\*\\_\\+\\=\\~\\|]*$/,\n max: 40,\n }"}],attrs:{required:"","data-qa":"address-form-street-input",autocomplete:"address-line1",type:"text",name:t.inputNameStreet},domProps:{value:t.street},on:{input:[function(e){e.target.composing||(t.street=e.target.value.trim())},t.updateAddress],blur:[function(e){return t.$emit("blurField")},function(e){return t.$forceUpdate()}]}})]),e("Field",{staticClass:"nr field--noMargin",attrs:{label:t.$t("field_address_number")}},[e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.number,expression:"number",modifiers:{trim:!0}},{name:"validate",rawName:"v-validate",value:{required:t.required,regex:t.numberPattern,max:5},expression:"{\n required: required,\n regex: numberPattern,\n max: 5,\n }"}],attrs:{required:"","data-qa":"address-form-number-input",autocomplete:"address-line2",type:"text",name:t.inputNameNumber},domProps:{value:t.number},on:{input:[function(e){e.target.composing||(t.number=e.target.value.trim())},t.updateAddress],blur:[function(e){return t.$emit("blurField")},function(e){return t.$forceUpdate()}]}})]),e("Field",{staticClass:"box field--noMargin",attrs:{label:t.$t("field_address_box")}},[e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.box,expression:"box",modifiers:{trim:!0}},{name:"validate",rawName:"v-validate",value:{required:"apartment"===t.buildingType,max:5,regex:/^(?!(\W+||0+)$)[\dA-Za-z.\-\/ ]+$/},expression:"{\n required: buildingType === 'apartment',\n max: 5,\n regex: /^(?!(\\W+||0+)$)[\\dA-Za-z.\\-\\/ ]+$/,\n }"}],attrs:{"data-qa":"address-form-box-input",disabled:t.disableBox,type:"text",autocomplete:"off",name:t.inputNameBox},domProps:{value:t.box},on:{input:[function(e){e.target.composing||(t.box=e.target.value.trim())},t.updateAddress],blur:[function(e){return t.$emit("blurField")},function(e){return t.$forceUpdate()}]}})]),e("Field",{staticClass:"postalCode field--noMargin",attrs:{label:t.$t("field_address_postal_code")}},[e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.postcode,expression:"postcode",modifiers:{trim:!0}},{name:"validate",rawName:"v-validate",value:{required:t.required},expression:"{ required: required }"}],staticClass:"hide-spinner",attrs:{required:"",min:"1000",max:"9999",autocomplete:"postal-code",type:"number","data-qa":"address-form-postcode-input",n
3ame:t.inputNamePostcode},domProps:{value:t.postcode},on:{input:[function(e){e.target.composing||(t.postcode=e.target.value.trim())},t.updateAddress],wheel:function(t){return t.target.blur()},blur:[function(e){return t.$emit("blurField")},function(e){return t.$forceUpdate()}]}})]),e("Field",{staticClass:"city field--noMargin",attrs:{label:t.$t("field_address_city")}},[e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.city,expression:"city",modifiers:{trim:!0}},{name:"validate",rawName:"v-validate",value:{required:t.required,regex:/^[^0-9@]+$/,max:40},expression:"{\n required: required,\n regex: /^[^0-9@]+$/,\n max: 40,\n }"}],attrs:{required:"","data-qa":"address-form-city-input",autocomplete:"address-level2",type:"text",name:t.inputNameCity},domProps:{value:t.city},on:{input:[function(e){e.target.composing||(t.city=e.target.value.trim())},t.updateAddress],blur:[function(e){return t.$emit("blurField")},function(e){return t.$forceUpdate()}]}})]),t.acceptedCountries.length>1?e("Field",{staticClass:"field--noMargin",attrs:{label:t.$t("field_address_country")}},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.country,expression:"country"}],attrs:{name:"inputNameCountry"},on:{change:[function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.country=e.target.multiple?i:i[0]},t.updateAddress]}},t._l(t.acceptedCountries,function(i){return e("option",{key:i.code,domProps:{value:i.code}},[t._v(" "+t._s(i.label)+" ")])}),0)]):t.showCountry?e("div",{staticClass:"staticCountryField"},[e("label",[t._v(t._s(t.$t("field_address_country")))]),e("div",{staticClass:"value"},[t._v(t._s(t.$t(`country_${t.country}`)))]),t.countryHint&&""!=t.countryHint?e("div",{staticClass:"hint"},[t._v(t._s(t.countryHint))]):t._e()]):t._e()],1)},[],!1,null,null,null).exports},69965:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{}(0,s.Cg)([(0,a.y_)()],n.prototype,"config",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:""})],n.prototype,"appearance",void 0);var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"appStoreButtons",class:{"appStoreButtons--horizontallyCentered":"horizontallyCentered"===this.appearance}},[t("a",{staticClass:"appStoreButtons__lnk",attrs:{href:`https://itunes.apple.com/be/app/viking-app/id893916390?l=${this.locale}`,title:this.$t("appStoreButtons.appStoreTitle"),target:"_blank"}},[t("img",{attrs:{src:`${this.config.vueRoot}/img/stores/apple-store-${this.locale}.svg`,alt:""}})]),t("a",{staticClass:"appStoreButtons__lnk",attrs:{href:`https://play.google.com/store/apps/details?id=com.vikingco.vikingapp&hl=${this.locale}`,title:this.$t("appStoreButtons.googlePlayTitle"),target:"_blank"}},[t("img",{attrs:{src:`${this.config.vueRoot}/img/stores/google-play-${this.locale}.svg`,alt:""}})])])},[],!1,null,"450c9d8b",null).exports},31897:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return h}});var s=i(32198),a=i(58294),n=i(8921),o=i(73235),r=i.n(o),l=i(67953),d=i(24176);let c=(0,a.tZ)("best-tariff");class u extends l.lD{onSubscriptionChange(){if(this.subscriptionId){let t=(this.session.mobileSubscriptions||[]).find(t=>t.id===this.subscriptionId);this.loadBestTarifData(t)}else this.loadBestTarifData(this.session.mobileSubscription)}async loadBestTarifData(t){if(!t||"enabled"!==t.state){this.validSubscription=!1;return}try{this.validSubscription=!0,this.loading=!0;let e=(await this.uwa.getUsageTotals(t.id,this.filters())).getSummary({direction:"outgoing",regionality:"national"});this.loading=!1,this.bestTariffLink=this.formatBestTariffUrl(e.voiceSeconds,e.dataBytes,e.smses)}catch(t){if(n.Ay.of(t).code===n.O4.SUBSCRIPTION_CANNOT_BE_FOUND){this.validSubscription=!1;return}c.error("Failed to load best tariff \n",t),this.loading=!1}}get configured(){return!!this.config.biptBestTariffRoot}formatBestTariffUrl(t,e,i){return new(r())(`${this.config.biptBestTariffRoot}/myusage/`).setQuery({svc:"mo",ul:this.locale,op:"MOE",sms:Math.ceil(i),monat:Math.ceil(t/60),modata:Math.ceil(e/1024/1024)}).toString()}filters(){return{regionality:"national",dateFrom:this.clock.today().minusDays(30),dateTo:this.clock.today().minusDays(1)}}constructor(...t){super(...t),this.bestTariffLink="",this.loading=!1,this.validSubscription=!0}
3}(0,s.Cg)([(0,l.y_)()],u.prototype,"config",void 0),(0,s.Cg)([(0,l.y_)()],u.prototype,"uwa",void 0),(0,s.Cg)([(0,l.y_)()],u.prototype,"session",void 0),(0,s.Cg)([(0,l.y_)()],u.prototype,"clock",void 0),(0,s.Cg)([(0,l.kv)({default:null})],u.prototype,"appearance",void 0),(0,s.Cg)([(0,l.kv)()],u.prototype,"subscriptionId",void 0),(0,s.Cg)([(0,l.ox)("session.mobileSubscriptions"),(0,l.ox)("session.mobileSubscription"),(0,l.ox)("subscriptionId",{immediate:!0})],u.prototype,"onSubscriptionChange",null);var p=u=(0,s.Cg)([(0,l.uA)({components:{CallToAction:d.A}})],u),h=(0,i(41618).A)(p,function(){var t=this._self._c;return this._self._setupProxy,this.configured&&this.validSubscription?t("div",{staticClass:"BestTariff nextStyleLevel"},[t("div",[this._v(this._s(this.$t("best_tariff_intro")))]),t("div",{staticClass:"BestTariff__ctaContainer"},[this.loading?this._e():t("CallToAction",{attrs:{appearance:"secondary",href:this.bestTariffLink,externalLink:!0}},[this._v(" "+this._s(this.$t("best_tariff_button"))+" ")]),t("span",{staticClass:"BestTariff__linkExplanation"},[this._v(this._s(this.$t("best_tariff_button_explanation")))])],1)]):this._e()},[],!1,null,"698f0e80",null).exports},21076:function(t,e,i){"use strict";i.d(e,{A:function(){return h}});var s=i(32198),a=i(67953),n=i(7130),o=i(50778);class r extends a.lD{titleAttribute(t){return this.$t("hardwareGridItem.title_attribute{hardwareLabel}",{hardwareLabel:t})}hardwareImageSource(t,e="full",i){let s=`${this.config.vueRoot}/img/bbHardware/withBg/${t}`;return"thumbnail"===e&&(s+="_thumb"),i?s+=`@${i}x.webp ${i}x`:s+=".webp",s}detailsRoute(t){return t?{...this.$route,query:{...this.$route.query,hardwareId:t}}:this.$route}get selectedHardwareId(){return Array.isArray(this.$route.query.hardwareId)?this.$route.query.hardwareId[0]:this.$route.query.hardwareId||null}set selectedHardwareId(t){this.$router.push({...this.$route,query:{...this.$route.query,hardwareId:t}})}}(0,s.Cg)([(0,a.kv)({type:Number,required:!1,default:3})],r.prototype,"numberOfLoadingItems",void 0),(0,s.Cg)([(0,a.kv)({type:Array,default:null})],r.prototype,"hardwareList",void 0),(0,s.Cg)([(0,a.y_)()],r.prototype,"config",void 0);var l=r=(0,s.Cg)([(0,a.uA)({components:{Tag:o.A,ModalPopup:n.A}})],r),d=i(41618),c=(0,d.A)(l,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("section",{staticClass:"hardwareGrid"},[t.hardwareList?t._l(t.hardwareList,function(i,s){return e("div",{key:`hardwareGridItem-${s}`,staticClass:"hardwareGrid__item hardware-item"},[e("RouterLink",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"hardwareGridItem",attrs:{title:t.titleAttribute(i.label),to:t.detailsRoute(i.id)}},[i.status?e("Tag",{staticClass:"hardwareGridItem__tag hardware-item-status",attrs:{appearance:"white"}},[t._v(" "+t._s(i.status)+" ")]):t._e(),e("div",{staticClass:"hardwareGridItem__labelImg"},[e("img",{staticClass:"hardwareGridItem__img",attrs:{src:t.hardwareImageSource(i.id,"thumbnail"),srcset:`${t.hardwareImageSource(i.id,"thumbnail",2)}, ${t.hardwareImageSource(i.id,"thumbnail",3)}`}}),e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:i.label,expression:"hardwareGridItem.label"}],staticClass:"hardwareGridItem__label hardware-item-label"})])],1)],1)}):t._l(t.numberOfLoadingItems,function(i){return e("div",{key:`hardwareGridItemLoading-${i}`,staticClass:"hardwareGrid__item"},[t._m(0,!0)])}),t.selectedHardwareId?e("ModalPopup",{staticClass:"hardwareLightbox",attrs:{appearance:"2020"},on:{close:()=>t.selectedHardwareId=void 0}},[e("img",{staticClass:"hardwareLightbox__img",attrs:{src:t.hardwareImageSource(t.selectedHardwareId),srcset:`${t.hardwareImageSource(t.selectedHardwareId,"full",2)}, ${t.hardwareImageSource(t.selectedHardwareId,"full",3)}`}})]):t._e()],2)},[function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"hardwareGridItem hardwareGridItem--isLoading"},[t("div",{staticClass:"hardwareGridItem__labelImg"},[t("div",{staticClass:"hardwareGridItem__img shimmer"},[this._v("Â ")]),t("div",{staticClass:"hardwareGridItem__label shimmer"},[this._v("Â ")])])])}],!1,null,"181335b8",null).exports;class u extends a.lD{onBroadbandSubscriptionChange(){if(!this.hardwareReturn){this.hardwareList=[];return}let t=this.hardwareReturn.items.reduce((t,e)=>(t[e.type]||(t[e.type]={count:0,type:e.type}),t[e.type].count+=1,t),{});this.hardwareList=Object.values(t).map(this.asHardwareGridItem)}asHardwareGridItem(t){let e=this.$t(`bb_hardware_to_return.hardware_item_name_${t.type}`).toString(),i=this.$t("bb_hardware_to_return.still_to_return_{amount}",{amount:t.count}).toString();return{id:t.type,label:e,status:i}}constructor(...t){super(...t),this.hardwareList=null}}(0,s.Cg)([(0,a.kv)()],u.prototype,"hardwareReturn",void 0),(0,s.Cg)([(0,a.ox)("hardwareReturn",{immediate:!0})],u.prototype,"onBroadbandSubscriptionChange",null);var p=u=(0,s.Cg)([(0,a.uA)({components:{HardwareGrid:c}})],u),h=(0,d.A)(p,function(){var t=this._self._c;return this._self._setupProxy,t("HardwareGrid",{attrs:{hardwareList:this.hardwareList}})},[],!1,null,null,null).exports}
3,4568:function(t,e,i){"use strict";i.d(e,{A:function(){return p}});var s=i(32198),a=i(47352),n=i(67953),o=i(99168),r=i(52887),l=i(42580),d=i(3231);class c extends n.lD{async mounted(){this.lineSpeedAvailable=await this.broadbandService.lineSpeedAvailable()}get formattedAddress(){return this.installationAddress?(0,l.H8)(this.installationAddress,this.locale,this.$t.bind(this)):""}get isLineSpeedAvailable(){return!!this.config.featureFlags.lineSpeed&&this.lineSpeedAvailable}openLineSpeedSpc(){this.showInSidePanel(r.A,{address:this.installationAddress,productId:this.product?.id})}get checkAddressRoute(){let t={intent:this.intent};return(0,a.Bb)({name:d.A.registrationBroadbandCheckAddress,query:this.intent?t:void 0})}async requestAddressChange(){await this.confirm(this.$t("registration_bb.change_address_means_reentering_all_data"),this.$t("registration_bb.change_address"),this.$t("registration_bb.cancel_confirm_cta_text"),this.$t("cancel"))&&this.$router.push(this.checkAddressRoute)}constructor(...t){super(...t),this.lineSpeedAvailable=!0}}(0,s.Cg)([(0,n.kv)({type:Object,required:!1})],c.prototype,"installationAddress",void 0),(0,s.Cg)([(0,n.kv)({type:Object,required:!1})],c.prototype,"product",void 0),(0,s.Cg)([(0,n.kv)({required:!1,default:!1})],c.prototype,"inSmallPanel",void 0),(0,s.Cg)([(0,n.kv)({type:String,required:!1})],c.prototype,"intent",void 0),(0,s.Cg)([(0,n.y_)()],c.prototype,"confirm",void 0),(0,s.Cg)([(0,n.y_)()],c.prototype,"config",void 0),(0,s.Cg)([(0,n.y_)()],c.prototype,"showInSidePanel",void 0),(0,s.Cg)([(0,n.y_)()],c.prototype,"broadbandService",void 0);var u=c=(0,s.Cg)([(0,n.uA)({components:{Heading:o.A}})],c),p=(0,i(41618).A)(u,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"broadbandInstallationAddress"},[e("div",{staticClass:"broadbandInstallationAddress__heading installationAddressHeading",class:{"installationAddressHeading--inSmallPanel":t.inSmallPanel}},[e("Heading",{staticClass:"installationAddressHeading__title",attrs:{appearance:"h5",tagType:"h3"}},[t._v(" "+t._s(t.$t("registration.installation_address"))+" ")]),e("button",{staticClass:"installationAddressHeading__addressChangeLink",on:{click:function(e){return e.preventDefault(),t.requestAddressChange()}}},[e("span",{staticClass:"sr-only"},[t._v(t._s(t.$t("change_question")))])])],1),e("address",{directives:[{name:"pii-mask",rawName:"v-pii-mask"},{name:"html-safe",rawName:"v-html-safe",value:t.formattedAddress,expression:"formattedAddress"}]}),t.isLineSpeedAvailable?e("a",{staticClass:"broadbandInstallationAddress__checkSpeedLink",attrs:{href:""},on:{click:function(e){return e.preventDefault(),t.openLineSpeedSpc.apply(null,arguments)}}},[t._v(" "+t._s(t.$t("registration.line_speed_info"))+" ")]):t._e()])},[],!1,null,"056fd8b8",null).exports},27680:function(t,e,i){"use strict";i.d(e,{A:function(){return y}});var s=i(32198),a=i(76565),n=i(58294),o=i(90523),r=i(74963),l=i.n(r),d=i(97
3587),c=i.n(d),u=i(67953),p=i(83301),h=i(78014);let _=(0,n.tZ)("Calendar");class m extends u.lD{mounted(){this.combinationOfOptionsAllowed||_.warning("A combination of rangeselector and enabled dates isnot supported. All dates will be disabled.")}get styleLevelClass(){return(0,p.yu)(this.styleLevel)}get combinationOfOptionsAllowed(){return!(this.rangeSelector&&this.enabledDates)}setSelection(){this.selection=this.combinationOfOptionsAllowed?this.initialSelection:null}onSelectionChange(t){t&&t.length>0?this.currentMonth=g.ofDate(t.slice(-1)[0]):this.enabledDates||(this.currentMonth=g.ofDate(this.clock.today()))}onEnabledDatesChange(t,e){if(this.combinationOfOptionsAllowed&&!this.selection&&t){let i=g.now(this.clock),s=(0,h.Qd)(t);s&&!e&&g.ofDate(s).isAfter(i)||s&&g.ofDate(s).isAfter(this.currentMonth)?this.currentMonth=g.ofDate(s):!s&&i.isAfter(this.currentMonth)?this.currentMonth=i:e||(this.currentMonth=i)}}get weeks(){let t=[],e=this.currentMonth.firstDay.with(v),i=e;for(;[e.month(),this.currentMonth.month].includes(i.month());)t.push(c()(0,7).map(t=>i.plusDays(t))),i=i.plusDays(7);return t}get monthOptions(){let t=this.minDate?g.ofDate(this.minDate):g.ofDate(this.clock.today().minusMonths(11)),e=this.maxDate?g.ofDate(this.maxDate):g.ofDate(this.clock.today().plusYears(1)),i=[];for(let s=t;!s.isAfter(e);s=s.next)i.push(s);return i}get showLegend(){return""!==this.legendLabel||""!==this.legendLabelSelected}monthInRange(t){return(!this.maxDate||t.firstDay.isBefore(this.maxDate))&&(!this.minDate||t.lastDay.isAfter(this.minDate))}get nextMonthInRange(){return this.monthInRange(this.currentMonth.next)}get prevMonthInRange(){return this.monthInRange(this.currentMonth.previous)}formatCell(t){return l()(`${t.dayOfMonth()}`,2,"0")}inMonth(t){return t.month()===this.currentMonth.month}inRange(t){return null!==this.selection&&this.selection.some(e=>e.equals(t))}inSelectableRange(t){return(!this.minDate||!this.minDate.isAfter(t))&&(!this.maxDate||!this.maxDate.isBefore(t))}inEnabledDates(t){return null===this.enabledDates||!this.rangeSelector&&this.enabledDates.filter(e=>e.toString()===t.toString()).length>0}select(t,e=!1){if(this.minDate&&t.isBefore(this.minDate))return void this.select(this.minDate,!0);if(this.maxDate&&t.isAfter(this.maxDate))return void this.select(this.maxDate,!0);if(this.dateOne&&this.rangeSelector){let i;i=this.dateOne.isEqual(t)?[this.dateOne,t]:this.dateOne.isBefore(t)?(0,h.Tk)(this.dateOne,t):(0,h.Tk)(t,this.dateOne),this.selection=i,e||this.$emit("datesSelected",i),this.dateOne=null}else this.dateOne=t,this.selection=[t],e||this.$emit("datesSelected",[t])}selectMonth(t){t instanceof a.LocalDate&&(t=g.ofDate(t)),this.monthInRange(t)&&(this.currentMonth=t,this.pickMonth=!1)}loadPreviousMonth(){this.monthInRange(this.currentMonth.previous)?this.currentMonth=this.currentMonth.previous:this.$emit("previousMonthOutOfRange")}loadNextMonth(){this.monthInRange(this.currentMonth.next)?this.currentMonth=this.currentMonth.next:this.$emit("nextMonthOutOfRange")}onMonthSelected(t,e){e?t.equals(e)||this.$emit("monthSelected",t.asJodaYearMonth()):this.$emit("initialMonthSelected",t.asJodaYearMonth())}constructor(...t){super(...t),this.currentMonth=g.now(),this.dateOne=null,this.pickMonth=!1,this.selection=null}}(0,s.Cg)([(0,u.y_)()],m.prototype,"clock",void 0),(0,s.Cg)([(0,u.kv)({default:null})],m.prototype,"initialSelection",void 0),(0,s.Cg)([(0,u.kv)()],m.prototype,"minDate",void 0),(0,s.Cg)([(0,u.kv)()],m.prototype,"maxDate",void 0),(0,s.Cg)([(0,u.kv)({type:Boolean,required:!1,default:!1})],m.prototype,"rangeSelector",void 0),(0,s.Cg)([(0,u.kv)({type:Array,required:!1,default:null})],m.prototype,"enabledDates",void 0),(0,s.Cg)([(0,u.kv)({type:String,required:!1,default:""})],m.prototype,"legendLabelSelected",void 0),(0,s.Cg)([(0,u.kv)({type:String,required:!1,default:""})],m.prototype,"legendLabel",void 0),(0,s.Cg)([(0,u.kv)({type:String,required:!1,default:""})],m.prototype,"appearance",void 0),(0,s.Cg)([(0,u.kv)({type:Boolean,required:!1,default:!1})],m.prototype,"showPrevMonthButtonWhenNotInRange",void 0),(0,s.Cg)([(0,u.kv)({type:Number,required:!1,default:null})],m.prototype,"styleLevel",void 0),(0,s.Cg)([(0,u.kv)({type:Function,default:()=>!1})],m.prototype,"dayLoading",void 0),(0,s.Cg)([(0,u.ox)("initialSelection",{immediate:!0})],m.prototype,"setSelection",null),(0,s.Cg)([(0,u.ox)("selection",{immediate:!0})],m.prototype,"onSelectionChange",null),(0,s.Cg)([(0,u.ox)("enabledDates",{immediate:!0})],m.prototype,"onEnabledDatesChange",null),(0,s.Cg)([(0,u.ox)("currentMonth",{immediate:!0})],m.prototype,"onMonthSelected",null),m=(0,s.Cg)([u.uA],m);let g=class t{constructor(t,e){this.year=t,this.month=e}static now(e=o.m){return t.ofDate(e.today())}static ofDate(e){return new t(e.year(),e.month())}get firstDay(){return a.LocalDate.of(this.year,this.month,1)}get lastDay(){return a.LocalDate.of(this.year,this.month,1).with(a.TemporalAdjusters.lastDayOfMonth())}get next(){return t.ofDate(this.firstDay.plusMonths(1))}get previous(){return t.ofDate(this.firstDay.minusMonths(1))}isAfter(t){return this.year>t.year||this.year===t.year&&this.month.get(a.ChronoField.MONTH_OF_YEAR)>t.month.get(a.ChronoField.MONTH_OF_YEAR)}equals(t){return t.month===this.month&&t.year===this.year}asJodaYearMonth(){return a.YearMonth.of(this.year,this.month)}},v={adjustInto:t=>{let e=t.get(a.ChronoField.DAY_OF_WEEK);return t.minusDays(e-1)}};var f=m,y=(0,i(41618).A)(f,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"calendarDatePicker",class:[t.styleLevelClass,{"calendarDatePicker--inUsagePopup":"inUsagePopup"===t.a
3ppearance}]},[e("div",{staticClass:"monthPicker",class:{"monthPicker--inUsagePopup":"inUsagePopup"===t.appearance,"monthPicker--alwaysShowPrevMonthBtn":t.showPrevMonthButtonWhenNotInRange}},[t.pickMonth?e("div",{staticClass:"monthPicker__allMonths"},t._l(t.monthOptions,function(i,s){return e("a",{key:`month_${s}`,staticClass:"yearMonth",attrs:{href:""},on:{click:function(e){return e.preventDefault(),t.selectMonth(i)}}},[e("span",{staticClass:"yearMonth__month"},[t._v(t._s(t.$t(`calendar.month__${i.month}`)))]),t._v("Â "),e("span",{staticClass:"yearMonth__year"},[t._v(t._s(i.year))])])}),0):t._e(),e("button",{staticClass:"monthPicker__button monthPicker__button--prev",class:{"monthPicker__button--unavailable":!t.prevMonthInRange},attrs:{title:t.$t("calendar.previous_month")},on:{click:function(e){return e.preventDefault(),t.loadPreviousMonth()}}},[e("span",[t._v(t._s(t.$t("calendar.previous_month")))])]),e("button",{staticClass:"monthPicker__button current-month yearMonth",on:{click:function(e){e.preventDefault(),t.pickMonth=!t.pickMonth}}},[e("span",{staticClass:"yearMonth__month"},[t._v(t._s(t.$t(`calendar.month__${t.currentMonth.month}`)))]),t._v(" Â "),e("span",{staticClass:"yearMonth__year"},[t._v(t._s(t.currentMonth.year))])]),e("button",{staticClass:"monthPicker__button monthPicker__button--next",class:{"monthPicker__button--unavailable":!t.nextMonthInRange},attrs:{title:t.$t("calendar.next_month")},on:{click:function(e){return e.preventDefault(),t.loadNextMonth()}}},[e("span",[t._v(t._s(t.$t("calendar.next_month")))])])]),e("table",{staticClass:"calendarTable",class:{"calendarTable--markAvailableDates":null!==t.enabledDates,"calendarTable--inUsagePopup":"inUsagePopup"===t.appearance,"calendarTable--rangeselector":t.rangeSelector}},[e("thead",[e("tr",[e("th",[t._v(t._s(t.$t("calendar.day_mo")))]),e("th",[t._v(t._s(t.$t("calendar.day_tu")))]),e("th",[t._v(t._s(t.$t("calendar.day_we")))]),e("th",[t._v(t._s(t.$t("calendar.day_th")))]),e("th",[t._v(t._s(t.$t("calendar.day_fr")))]),e("th",[t._v(t._s(t.$t("calendar.day_sa")))]),e("th",[t._v(t._s(t.$t("calendar.day_su")))])])]),e("tbody",t._l(t.weeks,function(i,s){return e("tr",{key:`week_${s}`},t._l(i,function(i,s){return e("td",{key:`date_${s}`},[e("a",{staticClass:"calendarDate",class:{"calendarDate--inUsagePopup":"inUsagePopup"===t.appearance,"calendarDate--selectedDate":t.inRange(i),"calendarDate--activeDateStart":!!t.selection&&t.selection.length>0&&t.selection[0].equals(i),"calendarDate--activeDateEnd":!!t.selection&&t.selection.length>0&&t.selection.slice(-1)[0].equals(i),"calendarDate--outOfRange":!t.inSelectableRange(i),"calendarDate--isDisabled":!t.dayLoading(i)&&!t.inEnabledDates(i),"calendarDate--loading":t.dayLoading(i),"calendarDate--hidden":!t.rangeSelector&&!t.inMonth(i),"calendarDate--otherMonth":t.rangeSelector&&!t.inMonth(i)},attrs:{href:"","data-qa":"calendar-date",tabindex:t.inEnabledDates(i)&&t.inSelectableRange(i)?0:-1},on:{click:function(e){e.preventDefault(),t.select(i,!t.inEnabledDates(i)||!t.inSelectableRange(i))}}},[e("span",{staticClass:"calendarDate__item"},[t._v(t._s(t.formatCell(i)))])])])}),0)}),0)]),t.showLegend?e("div",{staticClass:"calendarDatePicker__legend"},[t.legendLabelSelected?e("div",{staticClass:"calenderLegendItem calenderLegendItem--selected",class:{"calenderLegendItem--inUsagePopup":"inUsagePopup"===t.appearance}},[t._v(" "+t._s(t.legendLabelSelected)+" ")]):t._e(),t.legendLabel?e("div",{staticClass:"calenderLegendItem",class:{"calenderLegendItem--inUsagePopup":"inUsagePopup"===t.appearance}},[t._v(" "+t._s(t.legendLabel)+" ")]):t._e()]):t._e()])},[],!1,null,"6a15f0b4",null).exports},17945:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(67953),n=i(22708);class o extends a.lD{mounted(){this.openCloseDetails()}openCloseDetails(){this.details&&(this.details.open=this.expanded)}open(){this.details&&(this.details.style.height=`${this.details.offsetHeight}px`,this.details.open=!0,window.requestAnimationFrame(()=>this.expand()))}shrink(){if(!this.details||!this.summary)return;this.isClosing=!0;let t=`${this.details.offsetHeight}px`,e=`${this.summary.offsetHeight}px`;(this.animation&&this.animation.cancel(),this.details.animate)?(this.animation=this.details.animate({height:[t,e]},{duration:400,easing:"ease-out"}),this.animation.onfinish=()=>this.onAnimationFinish(!1),this.animation.oncancel=()=>{this.isClosing=!1}):this.onAnimationFinish(!1)}expand(){if(!this.details)return;this.isExpanding=!0;let t=`${this.details.offsetHeight}px`,e=`${this.summary.offsetHeight+this.content.offsetHeight}px`;(this.animation&&this.animation.cancel(),this.details.animate)?(this.animation=this.details.animate({height:[t,e]},{duration:400,easing:"ease-out"}),this.animation.onfinish=()=>this.onAnimationFinish(!0),this.animation.oncancel=()=>{this.isExpanding=!1}):this.onAnimationFinish(!0)}onAnimationFinish(t){this.details&&(this.details.open=t,this.animation=null,this.isClosing=!1,this.isExpanding=!1,this.details.style.height="",this.details.style.overflow="")}toggleExpand(t){!this.details||(this.$emit(this.details.open?"panelClosed":"panelOpened"),this.enableAnimations&&(t.preventDefault(),this.details.style.overflow="hidden",this.isClosing||!this.details.open?this.open():(this.isExpanding||this.details.open)&&this.shrink()))}get enableAnimations(){return!this.client.prefersReducedMotion}constructor(...t){super(...t),this.isExpanding=!1,this.isClosing=!1,this.animation=null}}(0,s.Cg)([(0,a.y_)()],o.prototype,"domUtils",void 0),(0,s.Cg)([(0,a.y_)({default:()=>new n.K})],o.prototype,"client",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:"2020"})],o.prototype,"appearance",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:"chevron"})],o.prototype,"openCloseIndicator",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],o.prototype,"expanded",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],o.prototype,"removeHorizontalPadding",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],o.prototype,"centerIndicator",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],o.prototype,"inSidePanel",void 0),(0,s.Cg)([(0,a.oS)()],o.prototype,"details",void 0),(0,s.Cg)([(0,a.oS)()],o.prototype,"summary",void 0),(0,s.Cg)([(0,a.oS)()],o.prototype,"content",void 0),(0,s.Cg)([(0,a.ox)("expanded")],o.prototype,"openCloseDetails",null);var r=o=(0,s.Cg)([a.uA],o),l=(0,i(41618).A)(r,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("details",{ref:"details",staticClass:"CollapsiblePanel",class:{"CollapsiblePanel--marketing nextStyleLevel":"marketing"===t.appearance,"CollapsiblePanel--emphasised":"emphasised"===t.a
3ppearance,"CollapsiblePanel--plusIndicator":"plus"===t.openCloseIndicator,"CollapsiblePanel--chevronIndicator":"chevron"===t.openCloseIndicator,"CollapsiblePanel--chevronIndicatorEmphasised":"chevron-emphasised"===t.openCloseIndicator,"CollapsiblePanel--indicatorCentered":t.centerIndicator,"CollapsiblePanel--inSidePanel":t.inSidePanel,"CollapsiblePanel--noHorizontalPadding":t.removeHorizontalPadding}},[e("summary",{ref:"summary",staticClass:"CollapsiblePanel__header",attrs:{"data-qa":"collapsible-panel-header"},on:{click:function(e){return t.toggleExpand(e)}}},[t._t("header")],2),e("p",{ref:"content",staticClass:"CollapsiblePanel__content"},[t._t("content")],2)])},[],!1,null,"4fb43405",null).exports},87417:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{}(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:null})],n.prototype,"horAlign",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:null})],n.prototype,"vertAlign",void 0);var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"column",class:{"column--hal":"left"===this.horAlign,"column--hac":"center"===this.horAlign,"column--har":"right"===this.horAlign,"column--vat":"top"===this.vertAlign,"column--vam":"middle"===this.vertAlign,"column--vab":"bottom"===this.vertAlign}},[this._t("default")],2)},[],!1,null,"5d973310",null).exports},90089:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{}(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],n.prototype,"reverseDesktop",void 0);var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"columns",class:{"columns--reverseDesktop":this.reverseDesktop}},[this._t("default")],2)},[],!1,null,"0ae5ff57",null).exports},5669:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{get isDiamondCssVar(){return this.diamondImage.startsWith("--")}get diamondImageStyleString(){return this.isDiamondCssVar?`--icon-bg-url: var(${this.diamondImage});`:""}get isDiamondSvg(){return this.diamondImage.endsWith(".svg")}get diamondSourceSet(){return` 4 ${this.diamondImage}_300.jpg 300w, 5 ${this.diamondImage}_400.jpg 400w, 6 ${this.diamondImage}_500.jpg 500w, 7 ${this.diamondImage}[email protected] 600w, 8 ${this.diamondImage}[email protected] 800w, 9 ${this.diamondImage}[email protected] 900w, 10 ${this.diamondImage}[email protected] 1000w, 11 ${this.diamondImage}[email protected] 1200w, 12 ${this.diamondImage}[email protected] 1500w 13 `}get smallestDiamond(){return`${this.diamondImage}_300.jpg`}}(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],n.prototype,"debug",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:""})],n.prototype,"diamondImage",void 0);var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,t("section",{staticClass:"contentPanel",class:{debugMode:this.debug}},[t("div",{staticClass:"contentPanel__container"},[t("div",{staticClass:"contentPanel__ribbonContainer"},[t("div",{staticClass:"ribbon styleLevel2"},[this.isDiamondCssVar||!this.diamondImage||this.isDiamondSvg?this._e():t("img",{staticClass:"ribbon__image",attrs:{src:this.smallestDiamond,sizes:"(min-width: 1055px) 500px,\n (min-width: 800px) 400px,\n (min-width: 640px) 300px,\n (min-width: 550px) 500px,\n (min-width: 350px) 400px,\n 300px",srcset:this.diamondSourceSet,alt:""}}),!this.isDiamondCssVar&&this.diamondImage&&this.isDiamondSvg?t("svg",{staticClass:"ribbon__image",attrs:{viewBox:"0 0 200 200"}},[t("rect",{attrs:{width:"200",height:"200",fill:"rgba(0,0,0,.1)"}}),t("image",{attrs:{x:"25",y:"25",width:"150",height:"150",transform:"rotate(45 100 100)","xlink:href":this.diamondImage}})]):this._e(),this.isDiamondCssVar?t("div",{staticClass:"ribbon__image ribbon__image--cssVarImg",style:this.diamondImageStyleStr
13ing},[t("div")]):this._e()])]),t("div",{staticClass:"contentPanel__content"},[this._t("default")],2)])])},[],!1,null,"69e41310",null).exports},33584:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{get copyBtnText(){return"copy-success"===this.codeCopied?this.$t("copyField.copySuccess"):"copy-failed"===this.codeCopied?this.$t("copyField.copyFailed"):this.$t("copyField.copy")}copyField(){let t=this.theInput;t.focus(),t.select();try{document.execCommand("copy"),this.codeCopied="copy-success",this.onCopy?.(this.value)}catch{this.codeCopied="copy-failed"}finally{this.$emit("valueCopied"),setTimeout(()=>{this.codeCopied=null},3e3)}}constructor(...t){super(...t),this.codeCopied=null}}(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:""})],n.prototype,"value",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:null})],n.prototype,"appearance",void 0),(0,s.Cg)([(0,a.kv)({type:String,default:"copyField"})],n.prototype,"name",void 0),(0,s.Cg)([(0,a.kv)({type:Function,required:!1})],n.prototype,"onCopy",void 0),(0,s.Cg)([(0,a.oS)()],n.prototype,"theInput",void 0);var o=n=(0,s.Cg)([(0,a.uA)({components:{}})],n),r=(0,i(41618).A)(o,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"copyField",class:{"copyField--voucherCode":"voucherCode"===t.appearance}},[e("div",{ref:"copyFieldContainer",staticClass:"copyField__container"},[e("input",{ref:"theInput",staticClass:"copyField__input",attrs:{readonly:"",type:"text",name:t.name},domProps:{value:t.value},on:{focus:function(t){return t.target.select()}}}),e("button",{staticClass:"copyField__btn",class:{"copyField__btn--copyOk":"copy-success"===t.codeCopied,"copyField__btn--copyNok":"copy-failed"===t.codeCopied},on:{click:function(e){return e.preventDefault(),t.copyField()}}},[e("span",[t._v(t._s(t.copyBtnText))])])])])},[],!1,null,"4e028981",null).exports},73807:function(t,e,i){"use strict";i.d(e,{A:function(){return k}});var s=i(32198),a=i(58294),n=i(29173),o=i(8921),r=i(67953),l=i(62526),d=i(97564),c=i(58249);class u extends r.lD{}(0,s.Cg)([(0,r.kv)({})],u.prototype,"value",void 0),(0,s.Cg)([(0,r.kv)({})],u.prototype,"enterpriseNumberErrors",void 0);var p=u=(0,s.Cg)([(0,r.uA)({inject:["$validator"],components:{EnterpriseNumberInput:d.A,Field:c.A}})],u),h=i(41618),_=(0,h.A)(p,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"business-details"},[e("Field",{attrs:{label:t.$t("enterprise_number_label"),validationErrors:t.enterpriseNumberErrors}},[e("EnterpriseNumberInput",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"enterpriseNumber",required:""},on:{blurField:function(e){return t.$emit("blurField")}},model:{value:t.value.enterpriseNumber,callback:function(e){t.$set(t.value,"enterpriseNumber",e)},expression:"value.enterpriseNumber"}})],1)],1)},[],!1,null,"707d06bc",null).exports,m=i(14806),g=i(72119),v=i(49842),f=i(76573),y=i(1123),b=i(99239),C=i(78906),w=i(20020);let S=(0,a.tZ)("CreateAccount");class M extends r.lD{created(){this.account.language=this.locale}resetBusiness(){this.isBusinessViking||(this.account.company={enterpriseNumber:"",address:(0,n.wI)()},this.$emit("blurField"))}getValidationErrors(t){let e=this.uwaValidationErrors[t]||(this.fieldErrors||{})[t];return e?this.$tList(e,"validationError__"):[]}clearValidationErrors(t){delete this.uwaValidationErrors[t],this.fieldErrors&&delete this.fieldErrors[t]}get passwordsMatch(){return!this.fields||!this.fields.password||!this.fields.repeatedPassword||!this.fields.password.dirty||!this.fields.repeatedPassword.dirty||this.account.password===this.repeatedPassword}get phoneNumberHint(){return"allow_onboarding"===this.phoneNumberMode?this.$t("create_account.phone_number_hint_allow_onboarding"):"optional"===this.phoneNumberMode?"":this.$t("create_account.phone_number_hint")}get phoneNumberPlaceholder(){if("allow_onboarding"===this.phoneNumberMode)return this.$t("create_account.phone_number_use_my_new_number")}toggleSameAddress(t){t&&"be"===this.installationAddress.country?this.account.address={...this.installationAddress}:this.account.address=(0,n.wI)()}async assureAuthenticated(){this.session.authenticated?S.info(`Onboarding... Using existing customer ${this.session.profile&&this.session.profile.id}`):await this.createNewUser()}async createNewUser(){this.uwaValidationErrors={};try{S.info("Onboarding... Creating customer");let t=this.gatherCustomerData(),e=await this.uwa.createCustomer(t,await this.recaptcha.getRecaptchaToken());await this.authService.login(e,this.account.password),this.$emit("userCreated",this.session.profile)}
13catch(i){let t=o.Ay.of(i);t.fieldCode("password")===o.O4.PASSWORD_EXPOSED_IN_DATA_BREACH&&this.notify.error("newly_entered_password_exposed_in_data_breach");let e=(0,w.v)(t,[{code:o.O4.PASSWORD_TOO_COMMON,field:"password",on:"password",message:"password_too_common"},{code:o.O4.PASSWORD_TOO_SIMILAR,field:"password",on:"password",message:"password_too_similar"},{code:o.O4.PASSWORD_SIMILAR_TO_DETAILS,field:"password",on:"password",message:"password_similar_to_details"},{code:o.O4.PASSWORD_ENTIRELY_NUMERIC,field:"password",on:"password",message:"password_rules"},{code:o.O4.PASSWORD_EXPOSED_IN_DATA_BREACH,field:"password",on:"password",message:"password_exposed_in_data_breach"},{code:o.O4.EMAIL_ADDRESS_ALREADY_IN_USE,field:"email",on:"email",message:"email_address_taken__please_log_in"},{code:o.O4.EMAIL_ADDRESS_ALREADY_IN_USE,on:"email",message:"email_address_taken__please_log_in"},{code:o.O4.EMAIL_NOT_VERIFIED,on:"email",message:"email_address_not_verified"},{code:o.O4.INVALID_VALUE,field:"email",on:"email",message:"email_invalid"},{code:o.O4.INVALID_VALUE,field:"date_of_birth",on:"date_of_birth",message:"date_of_birth_invalid"},{code:o.O4.EMAIL_DOMAIN_NOT_ALLOWED,on:"email",message:"email_domain_not_allowed"},{code:o.O4.INVALID_VALUE,field:"enterprise_number",on:"enterprise_number",message:"enterprise_number"}]);if(this.uwaValidationErrors=e.result,e.firstIssue)throw this.domUtils.scrollToFirst(".is-invalid",20),Error("user_authentication_aborted");if(t.code===o.O4.RECAPTCHA_TECHNICAL_ERROR)throw this.notify.error("recaptcha_technical_error"),Error("user_authentication_aborted");throw i}}populateDataFromSession(){try{this.session.authenticated&&this.session.profile?(this.account.language=this.session.profile.language,this.account.birthDate=this.session.profile.birthDate,this.account.email=this.session.profile.email||"",this.account.phoneNumber=this.session.profile.phone||"","be"===this.session.profile.address.country&&(this.account.address={...this.session.profile.address})):this.installationAddress&&"be"===this.installationAddress.country&&(this.account.address={...this.installationAddress},this.isSameAddressAsInstallation=!0)}catch(t){S.error("Failed to populate address based on session",t)}}clearDataFromSession(){this.session.authenticated||(this.account.firstName="",this.account.lastName="",this.account.email="",this.account.password="",this.account.language=this.locale,this.account.birthPlace="",this.account.birthDate=void 0,this.account.address=(0,n.wI)(),this.account.phoneNumber=void 0,this.account.company={enterpriseNumber:"",address:(0,n.wI)()})}gatherCustomerData(){let t=this.account.company?.enterpriseNumber?{enterpriseNumber:(0,C._w)(this.account.company?.enterpriseNumber)}:void 0;return{language:(0,C._w)(this.account.language),email:(0,C._w)(this.account.email),password:(0,C._w)(this.account.password),firstName:(0,C._w)(this.account.firstName),lastName:(0,C._w)(this.account.lastName),birthDate:(0,C._w)(this.account.birthDate),birthPlace:(0,C._w)(this.account.birthPlace),address:(0,C._w)(this.account.address),phoneNumber:this.account.phoneNumber||void 0,company:t}}constructor(...t){super(...t),this.repeatedPassword="",this.passwordsAreFocused=!1,this.uwaValidationErrors={},this.isBusinessViking=!1,this.isSameAddressAsInstallation=!1}}(0,s.Cg)([(0,r.y_)()],M.prototype,"session",void 0),(0,s.Cg)([(0,r.y_)()],M.prototype,"authService",void 0),(0,s.Cg)([(0,r.y_)()],M.prototype,"uwa",void 0),(0,s.Cg)([(0,r.y_)()],M.prototype,"domUtils",void 0),(0,s.Cg)([(0,r.oS)()],M.prototype,"recaptcha",void 0),(0,s.Cg)([(0,r.kv)({default:()=>({})})],M.prototype,"account",void 0),(0,s.Cg)([(0,r.kv)({default:()=>({})})],M.prototype,"installationAddress",void 0),(0,s.Cg)([(0,r.kv)({required:!1,default:"require"})],M.prototype,"phoneNumberMode",void 0),(0,s.Cg)([(0,r.kv)({required:!1,type:Boolean,default:!1})],M.prototype,"showIsBusinessViking",void 0),(0,s.Cg)([(0,r.kv)({required:!1,type:Boolean,default:!0})],M.prototype,"showRepeatPassword",void 0),(0,s.Cg)([(0,r.kv)({default:()=>({})})],M.prototype,"fieldErrors",void 0),(0,s.Cg)([(0,r.kv)({type:String,required:!1,default:""})],M.prototype,"countryHint",void 0),(0,s.Cg)([(0,r.ox)("session.profile",{deep:!0,immediate:!0})],M.prototype,"populateDataFromSession",null);var A=M=(0,s.Cg)([(0,r.uA)({inject:["$validator","session","uwa","domUtils","authService"],components:{Recaptcha:y.A,WhoAmI:b.A,Field:c.A,Password:f.A,DateInput:g.A,AddressForm:l.A,Checkbox:m.A,BusinessDetail
13s:_,MsisdnInput:v.A}})],M),k=(0,h.A)(A,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"createAccountForm",class:{"createAccountForm--hideRepeatPassword":!t.showRepeatPassword}},[e("WhoAmI",{staticClass:"nextStyleLevel",attrs:{logout:"inline",showLoggedInAsLabel:!0},on:{logout:function(e){t.clearDataFromSession(),t.$emit("logout")},login:function(e){return t.$emit("login")}}}),e("Recaptcha",{ref:"recaptcha"}),t.session.authenticated?t._e():e("div",{staticClass:"createAccountForm__formFields"},[e("Field",{staticClass:"email",class:{"no-repeat-pwd":!t.showRepeatPassword},attrs:{label:t.$t("field_email"),validationErrors:t.getValidationErrors("email")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.account.email,expression:"account.email"},{name:"validate",rawName:"v-validate",value:"email",expression:"'email'"}],attrs:{autocomplete:"email",type:"email",name:"email",required:"","data-qa":"create-account-form-email-input"},domProps:{value:t.account.email},on:{blur:function(e){t.clearValidationErrors("email"),t.$emit("blurField")},input:function(e){e.target.composing||t.$set(t.account,"email",e.target.value)}}})]),e("Field",{staticClass:"password",class:{"no-repeat-pwd":!t.showRepeatPassword},attrs:{label:t.$t("field_password"),validationErrors:t.getValidationErrors("password")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0,min:8},expression:"{ required: true, min: 8 }"}],attrs:{name:"password","data-qa":"create-account-form-password-input","data-vv-as":t.$t("field_password_in_sentence")},on:{focus:function(e){t.passwordsAreFocused=!0},blur:function(e){t.passwordsAreFocused=!1,t.clearValidationErrors("password")}},model:{value:t.account.password,callback:function(e){t.$set(t.account,"password","string"==typeof e?e.trim():e)},expression:"account.password"}}),t.passwordsAreFocused||t.passwordsMatch?t._e():e("div",{staticClass:"validation-message"},[t._v(" "+t._s(t.$t("validationError__passwords_should_match"))+" ")])],1),t.showRepeatPassword?e("Field",{staticClass:"repeat-password",attrs:{label:t.$t("field_password_repeat")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0,min:8},expression:"{ required: true, min: 8 }"}],attrs:{name:"repeatedPassword","data-qa":"create-account-form-password-repeat-input","data-vv-as":t.$t("field_password_repeat_in_sentence"),required:""},on:{focus:function(e){t.passwordsAreFocused=!0},blur:function(e){t.passwordsAreFocused=!1,t.clearValidationErrors("password")}},model:{value:t.repeatedPassword,callback:function(e){t.repeatedPassword="string"==typeof e?e.trim():e},expression:"repeatedPassword"}})],1):t._e(),e("Field",{staticClass:"first-name",attrs:{label:t.$t("field_first_name")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.account.firstName,expression:"account.firstName"},{name:"validate",rawName:"v-validate",value:{max:40},expression:"{ max: 40 }"}],attrs:{type:"text","data-qa":"create-account-form-first-name-input",name:"firstName",required:"",autocomplete:"given-name"},domProps:{value:t.account.firstName},on:{blur:function(e){return t.$emit("blurField")},input:function(e){e.target.composing||t.$set(t.account,"firstName",e.target.value)}}})]),e("Field",{staticClass:"last-name",attrs:{label:t.$t("field_last_name")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.account.lastName,expression:"account.lastName"},{name:"validate",rawName:"v-validate",value:{max:40},expression:"{ max: 40 }"}],attrs:{type:"text","data-qa":"create-account-form-last-name-input",name:"lastName",required:"",autocomplete:"family-name"},domProps:{value:t.account.lastName},on:{blur:function(e){return t.$emit("blurField")},input:function(e){e.target.composing||t.$set(t.account,"lastName",e.target.value)}}})]),e("Field",{staticClass:"phone-number",attrs:{label:t.$t("field_phone_number"),hint:t.phoneNumberHint,validationErrors:t.getValidationErrors("phone")}},[e("MsisdnInput",{directives:[{name:"validate",rawName:"v-validate",value:{required:"require"===t.phoneNumberMode},expression:"{ required: phoneNumberMode === 'require' }"}],attrs:{placeholder:t.phoneNumberPlaceholder,"data-qa":"create-account-form-msisdn-input",n
13ame:"phoneNumber"},on:{blur:function(e){return t.$emit("blurField")}},model:{value:t.account.phoneNumber,callback:function(e){t.$set(t.account,"phoneNumber",e)},expression:"account.phoneNumber"}})],1),e("Field",{staticClass:"birth-date",attrs:{label:t.$t("field_birth_date"),validationErrors:t.getValidationErrors("date_of_birth")}},[e("DateInput",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"birth_date","data-qa":"create-account-form-birthdate-input",required:""},on:{blur:function(e){return t.$emit("blurField")}},model:{value:t.account.birthDate,callback:function(e){t.$set(t.account,"birthDate",e)},expression:"account.birthDate"}})],1),e("Field",{staticClass:"birth-place",attrs:{label:t.$t("field_birth_place")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.account.birthPlace,expression:"account.birthPlace"},{name:"validate",rawName:"v-validate",value:{regex:/^\D+$/,max:40},expression:"{ regex: /^\\D+$/, max: 40 }"}],attrs:{name:"birth_place",autocomplete:"off",type:"text",required:"","data-qa":"create-account-form-birthplace-input"},domProps:{value:t.account.birthPlace},on:{blur:function(e){return t.$emit("blurField")},input:function(e){e.target.composing||t.$set(t.account,"birthPlace",e.target.value)}}})]),!t.session.authenticated&&t.installationAddress&&"be"===t.installationAddress.country?e("Checkbox",{staticClass:"address-check use-installation-address createAccountForm__addressCheckBox",attrs:{label:t.$t("is_the_same_address_as_installation")},on:{input:t.toggleSameAddress},model:{value:t.isSameAddressAsInstallation,callback:function(e){t.isSameAddressAsInstallation=e},expression:"isSameAddressAsInstallation"}}):t._e(),t.isSameAddressAsInstallation?t._e():[e("AddressForm",{staticClass:"address-section createAccountForm__addressDetails",attrs:{countryHint:t.countryHint},on:{blurField:function(e){return t.$emit("blurField")}},model:{value:t.account.address,callback:function(e){t.$set(t.account,"address",e)},expression:"account.address"}})],t.showIsBusinessViking&&!t.session.authenticated?e("Checkbox",{staticClass:"business-viking-check createAccountForm__businessCheckBox",attrs:{label:t.$t("i_am_business_viking")},on:{input:function(e){return t.resetBusiness()}},model:{value:t.isBusinessViking,callback:function(e){t.isBusinessViking=e},expression:"isBusinessViking"}}):t._e(),t.isBusinessViking&&!t.session.authenticated?e("BusinessDetails",{staticClass:"createAccountForm__businessDetails",attrs:{enterpriseNumberErrors:t.getValidationErrors("enterprise_number")},on:{blurField:function(e){return t.$emit("blurField")}},model:{value:t.account.company,callback:function(e){t.$set(t.account,"company",e)},expression:"account.company"}}):t._e()],2)],1)},[],!1,null,null,null).exports},6682:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(67953),n=i(27680);class o extends a.lD{get initialSelection(){return this.value?[this.value]:null}mounted(){this.initialMonth&&this.selectMonth(this.initialMonth)}datesSelected(t){this.$emit("input",t[0])}selectMonth(t){this.$refs.calendar.selectMonth(t)}previousMonthOutOfRange(){this.$emit("previousMonthOutOfRange")}}(0,s.Cg)([(0,a.kv)()],o.prototype,"minDate",void 0),(0,s.Cg)([(0,a.kv)()],o.prototype,"maxDate",void 0),(0,s.Cg)([(0,a.kv)({type:Array,required:!1,default:null})],o.prototype,"enabledDates",void 0),(0,s.Cg)([(0,a.kv)({default:null})],o.prototype,"value",void 0),(0,s.Cg)([(0,a.kv)({default:null})],o.prototype,"initialMonth",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],o.prototype,"showPrevMonthButtonWhenNotInRange",void 0),(0,s.Cg)([(0,a.kv)({type:Number,required:!1,default:1})],o.prototype,"styleLevel",void 0),(0,s.Cg)([(0,a.kv)({type:Function,default:()=>!1})],o.prototype,"dayLoading",void 0);var r=o=(0,s.Cg)([(0,a.uA)({components:{Calendar:n.A}})],o),l=(0,i(41618).A)(r,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"datePicker"},[e("Calendar",{ref:"calendar",attrs:{minDate:t.minDate,maxDate:t.maxDate,enabledDates:t.enabledDates,initialSelection:t.initialSelection,showPrevMonthButtonWhenNotInRange:t.showPrevMonthButtonWhenNotInRange,styleLevel:t.styleLevel,dayLoading:t.dayLoading},on:{previousMonthOutOfRange:t.previousMonthOutOfRange,datesSelected:t.datesSelected,initialMonthSelected:function(e){return t.$emit("initialMonthSelected",e)},monthSelected:function(e){return t.$emit("monthSelected",e)}}})],1)},[],!1,null,null,null).exports}
13,11774:function(t,e,i){"use strict";i.d(e,{A:function(){return c}});var s=i(32198),a=i(67953),n=i(28759),o=i(66090),r=i(3231);class l extends a.lD{get vikingDealsRedirectUrl(){return this.absoluteUrl(this.$router.resolve({name:r.A.vikingDeals}).href)}constructor(...t){super(...t),this.RouteName=r.A}}(0,s.Cg)([(0,a.y_)()],l.prototype,"absoluteUrl",void 0);var d=l=(0,s.Cg)([(0,a.uA)({components:{WizardStep:o.A,IntroBlock:n.A}})],l),c=(0,i(41618).A)(d,function(){var t=this._self._c;return this._self._setupProxy,t("WizardStep",{staticClass:"DealsAdvert MyVikingTP",attrs:{hideNumber:!0}},[t("IntroBlock",{attrs:{title:this.$t("get_discount_via_viking_deals_title"),titleAppearance:"h3",titleTag:"h3",description:this.$t("get_discount_via_viking_deals"),ctaText:this.$t("check_our_partners"),ctaHref:this.vikingDealsRedirectUrl}})],1)},[],!1,null,"6eb485c9",null).exports},74326:function(t,e,i){"use strict";i.d(e,{A:function(){return h}});var s=i(32198),a=i(47352),n=i(60321),o=i.n(n),r=i(67953),l=i(58249),d=i(21395);class c extends r.lD{mounted(){this.selectedDevice=this.convertModelToPartialDevice(this.value)}onSelectedDeviceChanged(){this.value&&this.value.brand!==this.selectedDevice.brand&&delete this.selectedDevice.name;let t=this.convertPartialDeviceToModel(this.selectedDevice);(0,d.c2)(this.value,t)||this.$emit("input",t)}onModelChanged(){(null!==this.value||this.selectedDevice.brand===this.otherBrand||this.selectedDevice.name)&&(this.selectedDevice=this.convertModelToPartialDevice(this.value))}get errorsForBrand(){return this.validationError&&!this.isActualBrandSelected?[this.validationError]:[]}get errorsForName(){return this.validationError&&this.isActualBrandSelected?[this.validationError]:[]}get allDevices(){let t=(0,a.di)(this.devices,(0,a.by)("brand"),(0,a.by)("name"));if(!this.addFallbackDevices)return t;let e=o()(t.map(t=>t.brand));return[...t,...e.map(t=>({brand:t,name:this.otherName})),{brand:this.otherBrand,name:this.otherName}]}get brands(){return o()(this.allDevices.map(t=>t.brand))}get names(){return this.selectedDevice.brand?this.allDevices.filter(t=>t.brand===this.selectedDevice.brand).map(t=>t.name):[]}get isActualBrandSelected(){return!!this.selectedDevice.brand&&this.selectedDevice.brand!==this.otherBrand}convertPartialDeviceToModel(t){if(!t.brand)return null;let e=this.allDevices.filter(e=>e.brand===t.brand);return(t.name||1!==e.length||(t.name=e[0].name),t.name)?this.allDevices.find(e=>e.brand===t.brand&&e.name===t.name)||null:null}convertModelToPartialDevice(t){if(!t)return{};if(t.brand===this.otherBrand&&t.name===this.otherName)return{brand:this.otherBrand};let e=this.allDevices.find(e=>e.brand===t.brand&&e.name===t.name);return e?{brand:e.brand,name:e.name}:{}}get otherBrand(){return this.$t("deviceSelector.brand_other").toString()}get otherName(){return this.$t("deviceSelector.name_other").toString()}constructor(...t){super(...t),this.selectedDevice={}}}(0,s.Cg)([(0,r.kv)()],c.prototype,"value",void 0),(0,s.Cg)([(0,r.kv)({type:String,required:!1,default:function(){return`device_selector__${u++}`}})],c.prototype,"id",void 0),(0,s.Cg)([(0,r.kv)({type:Array,required:!0})],c.prototype,"devices",void 0),(0,s.Cg)([(0,r.kv)({type:Boolean,required:!1,default:!1})],c.prototype,"required",void 0),(0,s.Cg)([(0,r.kv)({type:Boolean,required:!1,default:!1})],c.prototype,"addFallbackDevices",void 0),(0,s.Cg)([(0,r.kv)({type:String,required:!1,default:null})],c.prototype,"validationError",void 0),(0,s.Cg)([(0,r.kv)({type:Boolean,default:!1})],c.prototype,"showFullForm",void 0),(0,s.Cg)([(0,r.ox)("selectedDevice",{deep:!0})],c.prototype,"onSelectedDeviceChanged",null),(0,s.Cg)([(0,r.ox)("value")],c.prototype,"onModelChanged",null);let u=0;var p=c=(0,s.Cg)([(0,r.uA)({inject:["$validator"],components:{Field:l.A}})],c),h=(0,i(41618).A)(p,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"DeviceSelector styleLevel2"},[e("Field",{staticClass:"DeviceSelector__deviceBrand",attrs:{label:t.$t("deviceSelector.device_brand"),validationErrors:t.errorsForBrand,validation:"immediate"}},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedDevice.brand,expression:"selectedDevice.brand"},{name:"validate",rawName:"v-validate",value:{required:t.required},expression:"{ required: required }"}],attrs:{id:`${t.id}__brand`,"data-vv-as":t.$t("deviceSelector.device_brand_short"),name:`${t.id}__brand`,required:t.required},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.selectedDevice,"brand",e.target.multiple?i:i[0])}}},[e("option",{domProps:{value:null}}),t._l(t.brands,function(i){return e("option",{key:i,domProps:{value:i}},[t._v(t._s(i))])})],2)]),e("Field",{directives:[{name:"show",rawName:"v-show",value:t.isActualBrandSelected||t.showFullForm,expression:"isActualBrandSelected || showFullForm"}],staticClass:"DeviceSelector__deviceName",attrs:{label:t.$t("deviceSelector.device_name"),validationErrors:t.errorsForName,validation:"immediate"}},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedDevice.name,expression:"selectedDevice.name"},{name:"validate",rawName:"v-validate",value:{required:t.isActualBrandSelected&&t.required},expression:"{ required: isActualBrandSelected && required }"}],attrs:{id:`${t.id}__name`,"data-vv-as":t.$t("deviceSelector.device_name_short"),name:`${t.id}__name`,required:t.isActualBrandSelected&&t.required},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.selectedDevice,"name",e.target.multiple?i:i[0])}}},[e("option",{domProps:{value:null}}),t._l(t.names,function(i){return e("option",{key:i,domProps:{value:i}},[t._v(t._s(i))])})],2)])],1)},[],!1,null,null,null).exports}
13,70029:function(t,e,i){"use strict";i.d(e,{A:function(){return m}});var s=i(32198),a=i(58294),n=i(27511),o=i(67953),r=i(74326),l=i(20174),d=i(99679),c=i(68096);let u=(0,a.tZ)("ESimDeviceSelector");class p extends o.lD{async mounted(){this.devices=await this.getESimCompatibleDevices(),this.devices&&this.autoSelect&&this.client.isMobile()&&(this.device=this.autoSelectWithUserAgent(this.devices,this.client.userAgent))}async getESimCompatibleDevices(){try{return await this.heimClient.getESimCompatibleDevices()}catch(t){return u.error("failed to load eSIM devices",t),this.notifyGenericErrors(t),null}}autoSelectWithUserAgent(t,e){for(let i of t)if(i.userAgent&&RegExp(i.userAgent,"i").test(e))return i;return{brand:this.$t("deviceSelector.brand_other").toString(),name:this.$t("deviceSelector.name_other").toString()}}get device(){return this.storedDevice}set device(t){if(this.storedDevice=t,t){let e=this.isESimCompatible(t);e||this.trackingService.onInputErrorNotification((0,n.r)("esim_incompatible_device_selected"),this.$t.bind(this));let i=this.getDeviceCompatibility(t);this.$emit("deviceSelectionChanged",{device:t,compatibility:i}),this.emitModel(e?t:null)}else this.emitModel(null)}get deviceFeedback(){return this.feedback?this.feedback:{compatible:{notificationType:"success",message:this.$t("esim.your_device_is_esim_compatible")},incompatible:{notificationType:"danger-no-icon",message:this.$t("esim.your_device_is_not_esim_compatible")}}}get deviceFeedbackOption(){return this.device&&this.device.brand&&this.device.name?this.device.note?{notificationType:"warning",message:this.device.note}:this.isESimCompatible(this.device)?this.deviceFeedback.compatible:this.deviceFeedback.incompatible:null}isESimCompatible(t){return!!t&&!!t.simTypes&&-1!==t.simTypes.indexOf("embedded")}getDeviceCompatibility(t){return this.isESimCompatible(t)?t.note?"warning":"compatible":"incompatible"}emitModel(t){(t||this.lastSentModel!==t)&&(this.lastSentModel=t,this.$emit("input",t))}constructor(...t){super(...t),this.devices=null,this.storedDevice=null}}(0,s.Cg)([(0,o.kv)()],p.prototype,"value",void 0),(0,s.Cg)([(0,o.kv)({type:String,required:!1,default:function(){return`esim_device_selector__${h++}`}})],p.prototype,"id",void 0),(0,s.Cg)([(0,o.kv)({type:Boolean,required:!1,default:!1})],p.prototype,"required",void 0),(0,s.Cg)([(0,o.kv)({type:Boolean,required:!1,default:!1})],p.prototype,"autoSelect",void 0),(0,s.Cg)([(0,o.kv)({type:Boolean,default:!1})],p.prototype,"showFullForm",void 0),(0,s.Cg)([(0,o.kv)({default:null})],p.prototype,"feedback",void 0),(0,s.Cg)([(0,o.y_)()],p.prototype,"trackingService",void 0),(0,s.Cg)([(0,o.y_)()],p.prototype,"heimClient",void 0),(0,s.Cg)([(0,o.y_)()],p.prototype,"client",void 0);let h=0;var _=p=(0,s.Cg)([(0,o.uA)({inject:["$validator","trackingService","heimClient","client"],components:{Loading:l.A,DeviceSelector:r.A,InlineNotification:d.A,RichText:c.A}})],p),m=(0,i(41618).A)(_,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"eSimDeviceSelector"},[t.devices?e("DeviceSelector",{attrs:{id:t.id,showFullForm:t.showFullForm,devices:t.devices,required:t.required,addFallbackDevices:!0},model:{value:t.device,callback:function(e){t.device=e},expression:"device"}}):e("div",[e("Loading"),t.required?e("input",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],staticClass:"invalid-while-loading",attrs:{type:"hidden",name:"invalid-while-loading"}}):t._e()],1),t.deviceFeedbackOption?e("InlineNotification",{staticClass:"eSimDeviceSelector__inlineNotification dark-theme",attrs:{notificationType:t.deviceFeedbackOption.notificationType}},["string"==typeof t.deviceFeedbackOption.message?e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.deviceFeedbackOption.message,expression:"deviceFeedbackOption.message"}],staticClass:"externalContent"}):e("RichText",{attrs:{content:t.deviceFeedbackOption.message}})],1):t._e()],1)},[],!1,null,"3accb86f",null).exports},95990:function(t,e,i){"use strict";i.d(e,{A:function(){return d}});var s=i(32198),a=i(67953),n=i(5669),o=i(28759);class r extends a.lD{constructor(...t){super(...t),this.cp=n.A}}(0,s.Cg)([(0,a.kv)({type:String,required:!0})],r.prototype,"title",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!0})],r.prototype,"description",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],r.prototype,"size",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],r.prototype,"appearance",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],r.prototype,"ctaText",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:null})],r.prototype,"ctaHref",void 0),(0,s.Cg)([(0,a.kv)({type:Object,required:!1})],r.prototype,"ctaRoute",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],r.prototype,"ctaIsExternalLink",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:"secondary"})],r.prototype,"ctaAppearance",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:null})],r.prototype,"ctaIdentifier",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],r.prototype,"secCtaText",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:null})],r.prototype,"secCtaHref",void 0),(0,s.Cg)([(0,a.kv)({type:Object,required:!1})],r.prototype,"secCtaRoute",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],r.prototype,"secCtaIsExternalLink",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:null})],r.prototype,"secCtaIdentifier",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:"--icon-octopus-bg-url"})],r.prototype,"iconCssVar",void 0);var l=r=(0,s.Cg)([(0,a.uA)({components:{IntroBlock:o.A,ContentPanel:n.A}})],r),d=(0,i(41618).A)(l,function(){var t=this,e=t._self._c;
13return t._self._setupProxy,e("ribbon"===t.appearance?t.cp:"section",{tag:"Component",staticClass:"MyVikingTP errorPanel",class:{"errorPanel--ribbon contentPanel-pattern20 layout-1":"ribbon"===t.appearance,"errorPanel--corner nextStyleLevel":"ribbon"!==t.appearance},style:`--icon-bg-url: var(${t.iconCssVar});`,attrs:{"data-qa":"error-panel",diamondImage:"ribbon"===t.appearance?t.iconCssVar:null}},[e("IntroBlock",{attrs:{title:t.title,titleTag:"inline"!==t.size?"h1":"h2",titleAppearance:"inline"!==t.size?"h3":"h4",description:t.description,ctaText:t.ctaText,ctaHref:t.ctaHref,ctaRoute:t.ctaRoute,ctaIsExternalLink:t.ctaIsExternalLink,ctaAppearance:t.ctaAppearance,ctaIdentifier:t.ctaIdentifier,secCtaText:t.secCtaText,secCtaHref:t.secCtaHref,secCtaRoute:t.secCtaRoute,secCtaIsExternalLink:t.secCtaIsExternalLink,secCtaIdentifier:t.secCtaIdentifier},on:{primaryCtaClicked:()=>{t.$emit("click")}}})],1)},[],!1,null,"48001a2c",null).exports},12288:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(67953),n=i(68096);class o extends a.lD{get preppedBody(){let t=this.faqItem.content;if("string"!=typeof t)return t;let e=t=>{let e=t.getAttribute("href");return!!e&&(e.startsWith("#")||e.includes("/my-viking/"))};return t=this.domUtils.targetizeLinks(t,"_blank",t=>!e(t)),t=this.domUtils.targetizeLinks(t,null,e)}}(0,s.Cg)([(0,a.y_)()],o.prototype,"domUtils",void 0),(0,s.Cg)([(0,a.kv)({required:!0})],o.prototype,"faqItem",void 0);var r=o=(0,s.Cg)([(0,a.uA)({components:{RichText:n.A}})],o),l=(0,i(41618).A)(r,function(){var t=this._self._c;return this._self._setupProxy,"string"==typeof this.faqItem.content?t("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.preppedBody,expression:"preppedBody"}],staticClass:"ExternalContent"}):t("RichText",{attrs:{content:this.faqItem.content}})},[],!1,null,null,null).exports},37223:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return p}});var s=i(32198),a=i(58294),n=i(67953),o=i(17945),r=i(12288),l=i(20174);let d=(0,a.tZ)("FaqItems");class c extends n.lD{async loadFaqItems(t){try{if(this.loading=!0,this.serverData&&this.serverData.faqItemsCategory===t&&Array.isArray(this.serverData.faqItems)){let t=this.serverData.faqItems.filter(t=>!!t.title);if(t.length>0){this.items=t;return}}this.items=(await this.heimClient.getFaqItems(t)).filter(t=>!!t.title)}catch(e){d.error(`Failed to load faq items from heim for category ${t}`,e)}finally{this.loading=!1}}faqItemOpened(t){this.trackingService.faqItemOpened(t)}constructor(...t){super(...t),this.loading=!1,this.items=[]}}(0,s.Cg)([(0,n.y_)()],c.prototype,"heimClient",void 0),(0,s.Cg)([(0,n.y_)()],c.prototype,"trackingService",void 0),(0,s.Cg)([(0,n.kv)()],c.prototype,"category",void 0),(0,s.Cg)([(0,n.kv)({type:String,required:!1})],c.prototype,"appearance",void 0),(0,s.Cg)([(0,n.kv)({type:String,required:!1,default:"chevron"})],c.prototype,"openCloseIndicator",void 0),(0,s.Cg)([(0,n.kv)({type:Boolean,required:!1,default:!1})],c.prototype,"inSidePanel",void 0),(0,s.Cg)([(0,n.kv)({type:Object,required:!1,default:null})],c.prototype,"serverData",void 0),(0,s.Cg)([(0,n.ox)("category",{immediate:!0})],c.prototype,"loadFaqItems",null);var u=c=(0,s.Cg)([(0,n.uA)({components:{FaqItemBody:r.A,Loading:l.A,SidePanelError:()=>i.e(5033).then(i.bind(i,85856)),CollapsiblePanel:o.A}})],c),p=(0,i(41618).A)(u,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"faqItems",class:{"faqItems--inSidePanel":t.inSidePanel}},[t.loading?e("Loading",{staticClass:"faqItems__loading"}):0===t.items.length&&t.inSidePanel?e("SidePanelError",{staticClass:"faqItems__noArticles",attrs:{title:t.$t("faq_section_spc.no_articles_found"),description:t.$t("faq_section_spc.technical_error")}}):t._l(t.items,function(i){return e("CollapsiblePanel",{key:i.title,staticClass:"faqItems__item faq-item",attrs:{appearance:t.appearance,inSidePanel:t.inSidePanel,removeHorizontalPadding:"marketing"!==t.appearance,openCloseIndicator:t.openCloseIndicator},on:{panelOpened:function(e){return t.faqItemOpened(i)}},scopedSlots:t._u([{key:"header",fn:function(){return[t._v(t._s(i.title))]},proxy:!0},{key:"content",fn:function(){return[e("FaqItemBody",{attrs:{faqItem:i}})]},proxy:!0}],null,!0)})})],2)},[],!1,null,"7ff57094",null).exports}
13,47797:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(67953),n=i(78307);class o extends a.lD{get showSearch(){return this.items.length>this.maxItems}get visibleItems(){let t=this.items.filter(t=>this.match(t,this.searchText));return{items:this.showAll?t:t.slice(0,this.maxItems),totalItems:t.length}}get showNumResults(){return!this.showAll&&this.visibleItems.items.length>0&&this.visibleItems.totalItems>this.maxItems}showAllResults(){this.showAll=!0}resetShowAll(){this.showAll=!1}constructor(...t){super(...t),this.searchText="",this.showAll=!1}}(0,s.Cg)([(0,a.kv)({default:[]})],o.prototype,"items",void 0),(0,s.Cg)([(0,a.kv)({required:!0})],o.prototype,"match",void 0),(0,s.Cg)([(0,a.kv)({required:!0})],o.prototype,"searchInputScreenReaderInstructions",void 0),(0,s.Cg)([(0,a.kv)({default:null})],o.prototype,"noDataMessage",void 0),(0,s.Cg)([(0,a.kv)({default:null})],o.prototype,"noMatchesMessage",void 0),(0,s.Cg)([(0,a.kv)({default:null})],o.prototype,"placeholderMessage",void 0),(0,s.Cg)([(0,a.kv)({default:10})],o.prototype,"maxItems",void 0),(0,s.Cg)([(0,a.ox)("searchText")],o.prototype,"resetShowAll",null);var r=o=(0,s.Cg)([(0,a.uA)({components:{SearchInput:n.A}})],o),l=(0,i(41618).A)(r,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"filteredItems"},[t.showSearch?e("SearchInput",{staticClass:"sim-search filteredItems__search",attrs:{describedBy:"filtered-items-search-input-instructions filtered-items-num-results",placeholderText:t.placeholderMessage},model:{value:t.searchText,callback:function(e){t.searchText="string"==typeof e?e.trim():e},expression:"searchText"}}):t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{id:"filtered-items-search-input-instructions"}},[t._v(" Start typing to filter the search results below. ")]),t.visibleItems.items.length>0?[t._t("default",null,{filteredItems:t.visibleItems.items})]:t._e(),e("div",{staticClass:"filteredItems__numResults",attrs:{id:"filtered-items-num-results","aria-live":"polite","aria-atomic":"true"}},[t.showNumResults?e("div",{staticClass:"filteredItems__numResultsMsg"},[t._v(" "+t._s(t.$t("{items}_entries_visible_of_{total}",{items:t.visibleItems.items.length,total:t.visibleItems.totalItems}))+" - "),e("a",{attrs:{href:""},on:{click:function(e){return e.preventDefault(),t.showAllResults()}}},[t._v(t._s(t.$t("show_all_results")))])]):t._e(),0===t.items.length?e("div",{staticClass:"filteredItems__numResultsNoResult ExternalContent"},[t._t("emptySubscriptionsList",function(){return[t._v(" "+t._s(t.noDataMessage||t.$t("no_data_found"))+" ")]})],2):0===t.visibleItems.items.length?e("div",{staticClass:"filteredItems__numResultsNoResult ExternalContent"},[t._v(" "+t._s(t.noMatchesMessage||t.$t("no_data_found"))+" ")]):t._e()])],2)},[],!1,null,"d15d256a",null).exports},60848:function(t,e,i){"use strict";i.d(e,{A:function(){return g}});var s=i(32198),a=i(18966),n=i(57399),o=i(77133),r=i.n(o),l=i(67953),d=i(47797),c=i(15049),u=i(69607),p=i(91543),h=i(42580);class _ extends l.lD{formattedDetails(t){let e=(0,h.vY)(t.installationAddress,this.locale,this.$t.bind(this),"single_line");if(void 0!==t.installationAddress.floor){let i=this.$t("{nr}_floor",{nr:(0,a.bQ)(Number.parseInt(t.installationAddress.floor,10),this.locale)});return`${e} (${i})`}return e}get subscriptions(){var t,e;let i;return this.session.broadbandSubscriptions?this.session.broadbandSubscription?this.filterSubscriptions((t=this.session.broadbandSubscriptions,e=t=>t.id===this.session.broadbandSubscription?.id,(i=t.find(e))?[i,...t.filter(t=>!e(t))]:t)):this.filterSubscriptions(this.session.broadbandSubscriptions):[]}get selection(){return this.value}set selection(t){this.$emit("input",t)}filterSubscriptions(t){return t?this.onlyActive?t.filter(t=>"enabled"===t.state):t:[]}routeForSubscription(t){return{name:this.$route.name||void 0,path:this.$route.path,hash:this.$route.hash,query:r()(this.$route.query||{},"spc"),params:{bbSubscriptionId:t.id}}}isCurrentSub(t){return this.session.broadbandSubscription?.id===t.id}disabledReasonFor(t){return this.disabledSubscriptions.find(e=>e.subscription.id===t.id)?.reason}constructor(...t){super(...t),this.matchSubscription=(t,e)=>t.matchesFilter(e)}}(0,s.Cg)([(0,l.y_)()],_.prototype,"session",void 0),(0,s.Cg)([(0,l.kv)({default:5})],_.prototype,"maxItems",void 0),(0,s.Cg)([(0,l.kv)()],_.prototype,"value",void 0),(0,s.Cg)([(0,l.kv)({default:null})],_.prototype,"appearance",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:!1})],_.prototype,"keepSmallLook",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:!1})],_.prototype,"onlyActive",void 0),(0,s.Cg)([(0,l.kv)({type:Array,required:!1,default:()=>[]})],_.prototype,"disabledSubscriptions",void 0);var m=_=(0,s.Cg)([(0,l.uA)({components:{RadioButtons:u.A,RadioButton:c.A,SubscriptionDetail
13s:p.A,FilteredItems:d.A},filters:{formatMsisdn:n.i}})],_),g=(0,i(41618).A)(m,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"fixedLineSelector"},[e("FilteredItems",{attrs:{items:t.subscriptions,maxItems:t.maxItems,match:t.matchSubscription,noDataMessage:t.$t("filter_returned_0_lines"),searchInputScreenReaderInstructions:t.$t("fixedLineSelector.search_input_instructions__screenread"),placeholderMessage:t.$t("search_via_line_alias_or_address"),noMatchesMessage:t.$t("fixed_line_search_returned_no_matches")},scopedSlots:t._u([{key:"default",fn:function({filteredItems:i}){return["radioGroup"===t.appearance?e("RadioButtons",{attrs:{name:"fixed_subscription",optionKey:"id",animated:""},model:{value:t.selection,callback:function(e){t.selection=e},expression:"selection"}},t._l(i,function(i){return e("RadioButton",{key:i.id,staticClass:"fixedLineSelector__option",attrs:{value:i,disabled:t.disabledReasonFor(i),tagMessage:t.disabledReasonFor(i)},scopedSlots:t._u([{key:"default",fn:function(){return[e("div",[e("SubscriptionDetails",{attrs:{subscription:i,keepSmallLook:t.keepSmallLook}})],1)]},proxy:!0}],null,!0)})}),1):e("ul",{staticClass:"fixedLineSelector__list"},t._l(i,function(i,s){return e("li",{key:s},[e("RouterLink",{class:{"inactive-sub":"enabled"!==i.state,"current-sub":t.isCurrentSub(i)},attrs:{to:t.routeForSubscription(i)}},[e("strong",[t._v(t._s(i.label))]),e("div",{staticClass:"fixedLineSubscription__type"},[t._v(" "+t._s(t.formattedDetails(i))+" ")])])],1)}),0)]}}])})],1)},[],!1,null,"5594e5d8",null).exports},18456:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{updateNote(){if(!this.footnotes)throw Error("Footnote rendered without a manager");this.note?this.registered=this.footnotes.register(this.slug,this.note,this.marker):(this.footnotes.remove(this.slug),this.registered=null)}beforeDestroy(){if(!this.footnotes)throw Error("Footnote rendered without a manager");this.footnotes.remove(this.slug)}constructor(...t){super(...t),this.registered=null}}(0,s.Cg)([(0,a.y_)({default:null})],n.prototype,"footnotes",void 0),(0,s.Cg)([(0,a.kv)()],n.prototype,"slug",void 0),(0,s.Cg)([(0,a.kv)()],n.prototype,"note",void 0),(0,s.Cg)([(0,a.kv)({default:null})],n.prototype,"marker",void 0),(0,s.Cg)([(0,a.ox)("note",{immediate:!0})],n.prototype,"updateNote",null);var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,this.registered?t("sup",{staticClass:"footnote"},[t("a",{staticClass:"footnote__lnk",attrs:{id:`${this.registered.anchor}-ref`,href:`#${this.registered.anchor}`,"aria-describedby":this.registered.anchor}},[this._v("["+this._s(this.registered.marker)+"]")])]):this._e()},[],!1,null,"53e74bc4",null).exports},58442:function(t,e,i){"use strict";i.d(e,{A:function(){return _}});var s=i(32198),a=i(67953);let n=(0,i(58294).tZ)("footnotes");class o{constructor(t){this.id=t,this.notes=[]}register(t,e,i){i&&this.notes.map(t=>t.marker).includes(i)&&(n.warning(`Duplicate footnote marker: ${i}. Falling back to default.`),i=null);let s=this.notes.map(t=>t.slug).indexOf(t);if(s<0){let s={slug:t,note:e,marker:i||`${this.notes.length+1}`,anchor:`${this.id}_${t}`,usages:1};return this.notes=[...this.notes,s],s}let a=this.notes[s];return a.note=e,a.usages++,a}remove(t){let e=this.notes.map(t=>t.slug).indexOf(t);if(e<0)return;let i=this.notes[e];i.usages--,i.usages<=0&&(this.notes=this.notes.filter(e=>e.slug!==t))}}class r extends a.lD{}(0,s.Cg)([(0,a.kv)({required:!1,default:()=>[]})],r.prototype,"notes",void 0),(0,s.Cg)([(0,a.kv)({required:!1,default:"default"})],r.prototype,"appearance",void 0);var l=r=(0,s.Cg)([a.uA],r),d=i(41618),c=(0,d.A)(l,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.notes.length?e("ul",{class:["footnotesList",{"footnotesList--centered":"centered"===t.appearance}]},t._l(t.notes,function(i){return e("li",{key:i.anchor,staticClass:"footnotesList__item",attrs:{id:i.anchor,"data-slug":i.slug}},[e("span",{staticClass:"footnote-marker"}
13,[t._v("["+t._s(i.marker)+"]")]),t._v("Â "),e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:i.note,expression:"note.note"}],staticClass:"footnote-desc"}),e("a",{staticClass:"footnotesList__backToContent",attrs:{href:"#"+i.anchor+"-ref","aria-label":t.$t("back_to_reference__screenread")}},[t._v("âµ")])])}),0):t._e()},[],!1,null,"e3b67534",null).exports;let u=0;class p extends a.lD{constructor(...t){super(...t),this.footnotes=a.lD.observable(new o(`fn_${u++}`))}}(0,s.Cg)([(0,a.kv)()],p.prototype,"footerClass",void 0),(0,s.Cg)([(0,a.kv)({required:!1,default:null})],p.prototype,"footerAppearance",void 0),(0,s.Cg)([(0,a.ku)()],p.prototype,"footnotes",void 0);var h=p=(0,s.Cg)([(0,a.uA)({components:{FootnotesList:c}})],p),_=(0,d.A)(h,function(){var t=this._self._c;return this._self._setupProxy,t("section",{staticClass:"footnotes"},[this._t("default"),this.footnotes.notes.length?t("footer",{class:this.footerClass},[t("FootnotesList",{attrs:{notes:this.footnotes.notes,appearance:this.footerAppearance}})],1):this._e()],2)},[],!1,null,null,null).exports},72119:function(t,e,i){"use strict";i.d(e,{A:function(){return u}});var s=i(32198),a=i(76565),n=i(70908),o=i(67953),r=i(64994);let l=a.DateTimeFormatter.ofPattern("dd/MM/yyyy");class d extends r.A{created(){super.created(),this.parseErrorString=this.$t("not_a_valid_date_format").toString()}retranslate(){this.parseErrorString=this.$t("not_a_valid_date_format").toString()}format(t){return t?t.format(l):""}parse(t){try{return{valid:!0,normalized:a.LocalDate.parse(t,l)}}catch{return{valid:!1}}}}(0,s.Cg)([(0,o.ox)("locale")],d.prototype,"retranslate",null);var c=d=(0,s.Cg)([(0,o.uA)({extends:r.s,components:{MaskedInput:n.A}})],d),u=(0,i(41618).A)(c,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MaskedInput",{staticClass:"date-input",attrs:{id:t.id,name:t.name,placeholder:t.$t("dd/mm/yyyy"),type:"text","data-qa":t.dataQa,value:t.rendered,mask:{pattern:"X1/Y1/ZV11",formatCharacters:{X:{validate:t=>/[0-3]/.test(t)},Y:{validate:t=>/[01]/.test(t)},Z:{validate:t=>/[12]/.test(t)},V:{validate:t=>/[90]/.test(t)}}},autocomplete:"off"},on:{input:function(e){return t.onInput(e)}},nativeOn:{blur:function(e){t.focused=!1,t.parseError||t.$forceUpdate()},focus:function(e){t.focused=!0}}})},[],!1,null,null,null).exports},97564:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(67953),n=i(64994);class o extends n.A{created(){super.created(),this.parseErrorString=this.$t("not_a_valid_enterprise_number_format").toString()}retranslate(){this.parseErrorString=this.$t("not_a_valid_enterprise_number_format").toString()}format(t){return t}parse(t){if(!t)return{valid:!1};t=t.replace(/[. ]/g,"");let e=/^([0-1][0-9]{3})([0-9]{3})([0-9]{3})$/.exec(t);return e?{valid:!0,normalized:`${e[1]}.${e[2]}.${e[3]}`}:{valid:!1}}constructor(...t){super(...t),this.validateOnRaw=!1}}(0,s.Cg)([(0,a.kv)({type:Boolean,default:!1})],o.prototype,"disabled",void 0),(0,s.Cg)([(0,a.kv)({type:String,default:"text"})],o.prototype,"inputType",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],o.prototype,"describedBy",void 0),(0,s.Cg)([(0,a.ox)("locale")],o.prototype,"retranslate",null);var r=o=(0,s.Cg)([(0,a.uA)({extends:n.s})],o),l=(0,i(41618).A)(r,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("input",{staticClass:"en-input",attrs:{id:t.id,type:t.inputType,name:t.name,autocomplete:"off",placeholder:"0123.456.789",disabled:t.disabled,"aria-describedby":t.describedBy},domProps:{value:t.rendered},on:{focus:function(e){t.focused=!0},blur:function(e){t.focused=!1,t.$forceUpdate(),t.$emit("blurField")},input:function(e){return t.onInput(e.target.value)}}})},[],!1,null,null,null).exports},62447:function(t,e,i){"use strict";i.d(e,{A:function(){return d}});var s=i(32198),a=i(67953),n=i(64994);function o(t){return 0!==t.replace(/\D/g,"").length&&0===function(t){let e=t.length,i=e%2,s=0;for(let a=e-1;a>=0;a--){let e=parseInt(t.charAt(a),10);a%2===i&&(e*=2),e>9&&(e-=9),s+=e}return s%10}(t)}class r extends n.A{get placeholder(){return this.operator&&this.operator.iccid_information||""}created(){super.created(),this.parseErrorString=this.$t("not_a_valid_iccid").toString()}retranslate(){this.parseErrorString=this.$t("not_a_valid_iccid").toString()}format(t){let e=[];for(let i=0;i<t.length;i++)e.unshift(t[t.length-i-1]),i%4==3&&e.unshift(" ");return e.join("").trim()}parse(t){var e,i;return(this.fieldContext.warning=null,!t||(t=t.toUpperCase().replace(/[^A-Z\d]/g,""),!/[1-9]/.exec(t)||t.length<13||t.length>22))?{valid:!1}:(e=t,this.fieldContext.warning=!(i=this.operator?.name)||e&&function(t,e){switch(e){case"proximus":if(![19,13].includes(t.length))return!1;return o(t.startsWith("893200")?t:`893200${t}`);case"mobile vikings":case"base":case"telenet":if(![19].includes(t.length))return!1;return o(t);case"orange":if(![13,16,19].includes(t.length))return!1;if(t.startsWith("893202"))return!0;return o(t.replace(/B\d{2}$/,""));case"digi":if(![19,20].includes(t.length))return!1;return o(t.replace(/F$/,""));default:return!0}}(e,i.toLowerCase())?null:`${this.$t("iccid_input.invalid_luhn_check")}`,{valid:!0,normalized:t})}}(0,s.Cg)([(0,a.kv)({required:!1,default:null})],r.prototype,"operator",void 0),(0,s.Cg)([(0,a.kv)({required:!1,default:!1})],r.prototype,"disabled",void 0),(0,s.Cg)([(0,a.y_)()],r.prototype,"fieldContext",void 0),(0,s.Cg)([(0,a.ox)("locale")],r.prototype,"retranslate",null);var l=r=(0,s.Cg)([(0,a.uA)({extends:n.s})],r),d=(0,i(41618).A)(l,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",[e("input",{attrs:{id:t.id,"data-qa":"iccid-input",n
13ame:t.name,placeholder:t.placeholder,type:"text",disabled:t.disabled,autocomplete:"off"},domProps:{value:t.rendered},on:{focus:function(e){t.focused=!0},blur:function(e){t.focused=!1,t.$forceUpdate(),t.$emit("blurField")},input:function(e){return t.onInput(e.target.value)}}})])},[],!1,null,null,null).exports},54285:function(t,e,i){"use strict";i.d(e,{A:function(){return d}});var s=i(32198),a=i(67953),n=i(64994),o=i(19339);class r extends n.A{created(){super.created(),this.parseErrorString=this.$t("not_a_valid_mac_address").toString()}retranslate(){this.parseErrorString=this.$t("not_a_valid_mac_address").toString()}format(t){return t}parse(t){let e=(0,o.J)(t);return e?{set:!0,valid:!0,normalized:e}:{set:!0,valid:!1}}}(0,s.Cg)([(0,a.ox)("locale")],r.prototype,"retranslate",null);var l=r=(0,s.Cg)([(0,a.uA)({extends:n.s})],r),d=(0,i(41618).A)(l,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("input",{staticClass:"MacInput",attrs:{id:t.id,type:"text",name:t.name,placeholder:t.format("AA:BB:CC:DD:EE:FF"),autocomplete:"off"},domProps:{value:t.rendered},on:{focus:function(e){t.focused=!0},blur:function(e){t.focused=!1,t.$forceUpdate(),t.$emit("blurField")},input:function(e){return t.onInput(e.target.value)}}})},[],!1,null,null,null).exports},49842:function(t,e,i){"use strict";i.d(e,{A:function(){return c}});var s=i(32198),a=i(57399),n=i(67953),o=i(64994),r=i(19339);class l extends o.A{created(){super.created(),this.parseErrorString=this.acceptLandlines?this.$t("not_a_valid_phone_number").toString():this.$t("not_a_valid_msisdn").toString()}retranslate(){this.parseErrorString=this.$t("not_a_valid_msisdn").toString()}format(t){return(0,a.i)(t,"no-spell-out")}parse(t){let e=(0,r.E)(t,this.acceptLandlines);return e?{set:!0,valid:!0,normalized:e}:{set:!0,valid:!1}}}(0,s.Cg)([(0,n.kv)({default:!1})],l.prototype,"acceptLandlines",void 0),(0,s.Cg)([(0,n.kv)({default:()=>(0,a.i)("32456123456","no-spell-out")})],l.prototype,"placeholder",void 0),(0,s.Cg)([(0,n.ox)("locale")],l.prototype,"retranslate",null);var d=l=(0,s.Cg)([(0,n.uA)({extends:o.s})],l),c=(0,i(41618).A)(d,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("input",{attrs:{id:t.id,type:"tel","data-qa":t.dataQa,name:t.name,placeholder:t.placeholder,autocomplete:"off"},domProps:{value:t.rendered},on:{focus:function(e){t.focused=!0},blur:function(e){t.focused=!1,t.$forceUpdate(),t.$emit("blurField")},input:function(e){return t.onInput(e.target.value)}}})},[],!1,null,null,null).exports},3470:function(t,e,i){"use strict";i.d(e,{A:function(){return c}});var s=i(32198),a=i(57399),n=i(67953),o=i(64994),r=i(19339);class l extends o.A{created(){super.created(),this.parseErrorString=this.acceptLandlines?this.$t("contains_an_invalid_phone_number").toString():this.$t("contains_an_invalid_msisdn").toString()}retranslate(){this.parseErrorString=this.$t("contains_an_invalid_msisdn").toString()}format(t){return this.preprocessMsisdnInput(t).map(t=>{let e=(0,a.i)((0,r.E)(t,this.acceptLandlines),"no-spell-out");return""===e?t:e}).join(", ")}hasValidMsisdnCharacters(t){return/[0-9,.\s()+/]*$/.test(t)}preprocessMsisdnInput(t){return t?[...new Set(t.replace(/ /g,"").split(","))]:[]}normalizeAndFilterValidMsisdns(t){return t.reduce((t,e)=>{let i=(0,r.E)(e,this.acceptLandlines);return void 0!==i&&t.push(i),t},[])}parse(t){if(!t||!this.hasValidMsisdnCharacters(t))return{valid:!1};let e=this.preprocessMsisdnInput(t),i=this.normalizeAndFilterValidMsisdns(e);return e&&i.length===e.length?{valid:!0,normalized:i.join(", ")}:{valid:!1}}}(0,s.Cg)([(0,n.kv)({default:!1})],l.prototype,"acceptLandlines",void 0),(0,s.Cg)([(0,n.kv)({type:Boolean,default:!1})],l.prototype,"disabled",void 0),(0,s.Cg)([(0,n.ox)("locale")],l.prototype,"retranslate",null);var d=l=(0,s.Cg)([(0,n.uA)({extends:o.s})],l),c=(0,i(41618).A)(d,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("input",{staticClass:"msisdn-input",attrs:{id:t.id,type:"text",name:t.name,placeholder:t.format("32456123456, 32456345678"),autocomplete:"off",readonly:t.disabled},domProps:{value:t.rendered},on:{focus:function(e){t.focused=!0},blur:function(e){t.focused=!1,t.$forceUpdate(),t.$emit("blurField")}
13,input:function(e){return t.onInput(e.target.value)}}})},[],!1,null,null,null).exports},24242:function(t,e,i){"use strict";i.d(e,{A:function(){return c}});var s=i(32198),a=i(67953),n=i(14806);class o extends a.lD{isActive(t){return null!=t&&this.value.some(e=>this.isSame(t,e))}get isInvalid(){return!!this.errors.items.find(t=>t.field===this.name)}isDisabled(t){return null!=t&&(!this.disabledOptions||this.disabledOptions.length>0)&&this.disabledOptions.some(e=>this.isSame(t,e))}toggleValue(t){if(this.isActive(t))this.$emit("input",this.value.filter(e=>!this.isSame(e,t)));else{let e=[...this.value,t];this.$emit("input",this.options.filter(t=>e.some(e=>this.isSame(t,e))))}}isSame(t,e){return this.optionKey?t[this.optionKey]===e[this.optionKey]:t===e}classesFor(t){let e=[];return this.isActive(t)&&e.push("multiSelectItem--isChecked"),this.optionClass&&this.optionClass(t)&&e.push(this.optionClass(t)),e}}(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:l})],o.prototype,"id",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:l})],o.prototype,"name",void 0),(0,s.Cg)([(0,a.kv)({type:Array,required:!0})],o.prototype,"options",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:null})],o.prototype,"optionKey",void 0),(0,s.Cg)([(0,a.kv)({type:Function,required:!1,default:null})],o.prototype,"optionClass",void 0),(0,s.Cg)([(0,a.kv)({default:()=>[]})],o.prototype,"value",void 0),(0,s.Cg)([(0,a.kv)({default:()=>[]})],o.prototype,"disabledOptions",void 0),(0,s.Cg)([(0,a.kv)({default:"default"})],o.prototype,"appearance",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],o.prototype,"loading",void 0);let r=0;function l(){return`multi_select__${r++}`}var d=o=(0,s.Cg)([(0,a.uA)({components:{Checkbox:n.A}})],o),c=(0,i(41618).A)(d,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"multiSelect",class:{"multiSelect--default":"default"===t.appearance,"multiSelect--inSidePanel":"in-sidepanel"===t.appearance,"multiSelect--isInvalid":t.isInvalid}},t._l(t.options,function(i,s){return e("Checkbox",{key:s,staticClass:"multiSelect__item",class:t.classesFor(i),attrs:{value:t.isActive(i),rtl:"in-sidepanel"===t.appearance,name:t.name,loading:t.loading,disabled:t.isDisabled(i),appearance:"in-sidepanel"!==t.appearance?"boxed":null},on:{input:function(e){return t.toggleValue(i)}}},[t._t("default",function(){return[t._v(t._s(i))]},{option:i})],2)}),1)},[],!1,null,"7ee5615d",null).exports},21638:function(t,e,i){"use strict";i.d(e,{A:function(){return p}});var s=i(32198),a=i(44739),n=i(67953),o=i(50778);let r=["ArrowRight","ArrowDown"],l=["ArrowLeft","ArrowUp"];class d extends n.lD{get inputPattern(){return this.allowAlphanumericCharacters?"^[A-Z0-9]$":"^[0-9]$"}async updateCells(){await (0,a.yy)(0),this.cells.forEach((t,e)=>{t.value=e>=this.value.length||!this.isValidCharacter(this.value[e])?"":this.value[e]}),this.updateValue()}calculateValue(){return this.cells.map(t=>t.value[0]||"-").join("").toUpperCase()}async onFocus(t){await (0,a.yy)(0),t.target.select()}onInput(t,e){let i=t.target,s=i.value;s&&this.isValidCharacter(s[0])?(i.value=s[0],this.updateValue(),this.focusCell(e+1)):s||this.updateValue()}onKeyPress(t){this.isValidCharacter(t.key)||t.preventDefault()}onKeyDown(t,e){"Backspace"===t.key&&this.cells[e].value?.length<1?(this.focusCell(e-1),e>0&&(this.cells[e-1].value="")):l.includes(t.key)?this.focusCell(e-1):r.includes(t.key)?this.focusCell(e+1):"Enter"===t.key&&this.submit()}async focusCell(t=0){if(!(t<0)){if(t>this.numberOfFields-1){let t=this.cells[this.numberOfFields-1];t.blur(),t.focus(),await (0,a.yy)(0),t.setSelectionRange(1,1);return}await (0,a.yy)(0),this.cells[t].focus()}}isValidCharacter(t="",e=!0){return!(t.length>1)&&(""===t?e:RegExp(this.inputPattern,"i").test(t))}updateValue(){let t=this.calculateValue();t!==this.value&&this.$emit("input",t)}submit(){return this.value}onPaste(t){return t.preventDefault(),t&&t.clipboardData&&t.clipboardData.getData("text")&&this.$emit("input",t.clipboardData.getData("text")),!0}}(0,s.Cg)([(0,n.kv)({type:String,default:""})],d.prototype,"value",void 0),(0,s.Cg)([(0,n.kv)({type:Boolean,default:!0})],d.prototype,"inputIsValid",void 0),(0,s.Cg)([(0,n.kv)({type:Number,default:4})],d.prototype,"numberOfFields",void 0),(0,s.Cg)([(0,n.kv)({type:Boolean,default:!1})],d.prototype,"blocked",void 0),(0,s.Cg)([(0,n.kv)({type:String,required:!1,default:function(){return`pinLikeInput__${c++}`}})],d.prototype,"name",void 0),(0,s.Cg)([(0,n.kv)({type:Boolean,default:!1})],d.prototype,"allowAlphanumericCharacters",void 0),(0,s.Cg)([(0,n.oS)("character")],d.prototype,"cells",void 0),(0,s.Cg)([(0,n.ox)("numberOfFields",{immediate:!0}),(0,n.ox)("value")],d.prototype,"updateCells",null),(0,s.Cg)([(0,n.O5)("submit")],d.prototype,"submit",null);let c=0;var u=d=(0,s.Cg)([(0,n.uA)({components:{Tag:o.A}})],d),p=(0,i(41618).A)(u,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"pinLikeInput",class:{"pinLikeInput--blocked":t.blocked}}
13,[e("div",{staticClass:"pinLikeInput__container",class:{"is-invalid":!t.inputIsValid}},[t._l(t.numberOfFields,function(i){return e("div",{key:i,staticClass:"pinLikeInput__container__field"},[e("input",{ref:"character",refInFor:!0,staticClass:"pinLikeInput__container__field__cell",attrs:{name:`character_${i-1}`,pattern:t.inputPattern,maxlength:"1",disabled:t.blocked,tabIndex:"0"},on:{keydown:function(e){return t.onKeyDown(e,i-1)},keypress:t.onKeyPress,input:function(e){return t.onInput(e,i-1)},focus:t.onFocus,paste:t.onPaste}})])}),t.blocked?e("div",{staticClass:"pinLikeInput__blocked"},[e("Tag",[t._v(t._s(t.$t("pinLikeInput.blocked")))])],1):t._e()],2),e("input",{attrs:{type:"hidden",name:t.name},domProps:{value:t.value}})])},[],!1,null,null,null).exports},78307:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{giveFocus(){this.searchInput&&this.searchInput.focus()}get parseError(){let t=(this.$slots.default||[])[0];return t&&t.componentInstance&&t.componentInstance.parseError||null}}(0,s.Cg)([(0,a.kv)({type:String,default:""})],n.prototype,"placeholderText",void 0),(0,s.Cg)([(0,a.kv)()],n.prototype,"value",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],n.prototype,"describedBy",void 0),(0,s.Cg)([(0,a.oS)()],n.prototype,"searchInput",void 0);var o=n=(0,s.Cg)([(0,a.uA)({})],n),r=(0,i(41618).A)(o,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"searchInput"},[e("div",{staticClass:"searchInput__input"},[t._t("default",function(){return[e("input",{ref:"searchInput",attrs:{type:"search",name:"searchInputSearchInput","data-qa":"search-input-input",placeholder:t.placeholderText,"aria-label":t.placeholderText,"aria-describedby":t.describedBy},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}})]})],2),e("button",{staticClass:"searchInput__btn",attrs:{"data-qa":"search-input-button"},on:{click:function(e){return t.$emit("searchClicked")}}},[e("span",[t._v(t._s(t.$t("search")))])])])},[],!1,null,null,null).exports},49971:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(67953),n=i(64994);class o extends n.A{get placeholder(){return this.operator?"accountNumberInformation"in this.operator&&this.operator.accountNumberInformation?this.operator.accountNumberInformation:"account_number_information"in this.operator&&this.operator.account_number_information?this.operator.account_number_information:"":""}created(){super.created(),this.parseErrorString=this.$t("not_a_valid_account_number").toString()}retranslate(){this.parseErrorString=this.$t("not_a_valid_account_number").toString()}format(t){return t.replace(/\s/g,"")}parse(t){return 0===(t=t.replace(/\s/g,"")).length||t.length>20?{valid:!1}:{valid:!0,normalized:t}}}(0,s.Cg)([(0,a.kv)({required:!1,default:null})],o.prototype,"operator",void 0),(0,s.Cg)([(0,a.kv)({required:!1,default:!1})],o.prototype,"disabled",void 0),(0,s.Cg)([(0,a.ox)("locale")],o.prototype,"retranslate",null);var r=o=(0,s.Cg)([(0,a.uA)({extends:n.s})],o),l=(0,i(41618).A)(r,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("input",{attrs:{id:t.id,type:"text","data-qa":"account-number-input",name:t.name,placeholder:t.placeholder,disabled:t.disabled,autocomplete:"off"},domProps:{value:t.rendered},on:{focus:function(e){t.focused=!0},blur:function(e){t.focused=!1,t.$forceUpdate(),t.$emit("blurField")},input:function(e){return t.onInput(e.target.value)}}})},[],!1,null,null,null).exports},711:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(67953);class n extends a.lD{get internalValue(){return Number.isInteger(this.value)?null!==this.maxValue&&this.value>=this.maxValue?this.maxValue:null!==this.minValue&&this.value<this.minValue?this.minValue:this.value:(this.internalValue=0,0)}set internalValue(t){Number.isInteger(t)||(t=0),null!==this.maxValue&&t>=this.maxValue?(t=this.maxValue,this.$emit("showMaxAmountHint",t)):null!==this.minValue&&t<this.minValue&&(t=this.minValue),this.$emit("input",t)}decrease(){--this.internalValue}increase(){++this.internalValue}handleInput(t){let e=parseInt(t.target.value,10);if("End"===t.key&&this.maxValue&&1/0!==this.maxValue){t.preventDefault(),this.internalValue=this.maxValue;return}if("Home"===t.key&&(t.preventDefault(),null!==this.minValue)){this.internalValue=this.minValue;return}this.internalValue=e}selectAllInField(t){t.target.select()}}(0,s.Cg)([(0,a.kv)({type:String,required:!0})],n.prototype,"title",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:function(){return`increaseDecrease__${o++}`}})],n.prototype,"id",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!0})],n.prototype,"name",void 0),(0,s.Cg)([(0,a.kv)({type:Number,required:!1,default:0})],n.prototype,"value",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],n.prototype,"required",void 0),(0,s.Cg)([(0,a.kv)({type:Number,required:!1,default:null})],n.prototype,"minValue",void 0),(0,s.Cg)([(0,a.kv)({type:Number,required:!1,default:1/0})],n.prototype,"maxValue",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:null})],n.prototype,"maxAmountHint",void 0);let o=0;var r=n=(0,s.Cg)([a.uA],n),l=(0,i(41618).A)(r,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"increaseDecreaseField",class:{"
13is-required":t.required}},[t.title?e("label",{staticClass:"increaseDecreaseField__label",attrs:{id:`${t.id}-label`,for:t.id}},[t._v(t._s(t.title))]):t._e(),e("div",{staticClass:"increaseDecreaseField__inputs",attrs:{"data-qa":"increase-decrease-field--inputs",role:"spinbutton","aria-labelledby":`${t.id}-label`,"aria-valuemin":t.minValue,"aria-valuemax":t.maxValue,"aria-valuenow":t.internalValue}},[e("button",{staticClass:"increaseDecreaseField__btn increaseDecreaseField__btn--decrease nextStyleLevel",attrs:{type:"button","data-qa":"increase-decrease-field--decrease-btn",tabindex:"-1"},on:{click:function(e){return e.preventDefault(),t.decrease.apply(null,arguments)}}},[t._v(" - ")]),e("input",{directives:[{name:"model",rawName:"v-model.number",value:t.internalValue,expression:"internalValue",modifiers:{number:!0}}],staticClass:"increaseDecreaseField__input",attrs:{id:t.id,name:t.name,"data-qa":"increase-decrease-field--input",type:"number",min:t.minValue,max:t.maxValue,autocomplete:"off"},domProps:{value:t.internalValue},on:{keydown:function(e){return t.handleInput(e)},focusout:function(e){return t.handleInput(e)},focus:function(e){return t.selectAllInField(e)},input:function(e){e.target.composing||(t.internalValue=t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}),e("button",{staticClass:"increaseDecreaseField__btn increaseDecreaseField__btn--increase nextStyleLevel",attrs:{type:"button","data-qa":"increase-decrease-field--increase-btn",tabindex:"-1"},on:{click:function(e){return e.preventDefault(),t.increase.apply(null,arguments)}}},[t._v(" + ")])]),t.maxAmountHint&&t.maxValue&&t.internalValue===t.maxValue?e("div",{staticClass:"increaseDecreaseField__hint",attrs:{"data-qa":"increase-decrease-field--hint","aria-live":"polite"}},[t._v(" "+t._s(t.maxAmountHint)+" ")]):t._e()])},[],!1,null,"30cc991c",null).exports},78365:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(67953),n=i(99679);class o extends a.lD{get textToDisplay(){return this.loading?this.loadingText?this.loadingText:this.$t("inputplaceholder.defaultLoadingText"):this.error?this.errorText?this.errorText:this.$t("inputplaceholder.defaultErrorText"):this.text}}(0,s.Cg)([(0,a.kv)({type:String,required:!0})],o.prototype,"text",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],o.prototype,"loading",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],o.prototype,"loadingText",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],o.prototype,"error",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],o.prototype,"errorText",void 0);var r=o=(0,s.Cg)([(0,a.uA)({components:{InlineNotification:n.A}})],o),l=(0,i(41618).A)(r,function(){var t=this._self._c;return this._self._setupProxy,this.error?t("InlineNotification",{attrs:{notificationType:"error"}},[t("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.textToDisplay,expression:"textToDisplay"}],staticClass:"inputPlaceholderError",attrs:{"data-qa":"input-placeholder-error"}})]):t("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.textToDisplay,expression:"textToDisplay"}],staticClass:"inputPlaceholder",class:{"inputPlaceholder--loading":this.loading},attrs:{"data-qa":"input-placeholder"}})},[],!1,null,"7ca38043",null).exports},28687:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{get isCssVar(){return this.iconUrl.startsWith("--")}get styleString(){return this.isCssVar?`--icon-bg-url: var(${this.iconUrl});`:""}}(0,s.Cg)([(0,a.kv)({type:String,required:!1})],n.prototype,"appearance",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:"counterclockwise"})],n.prototype,"rotation",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!0})],n.prototype,"iconUrl",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:"contain"})],n.prototype,"backgroundSize",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],n.prototype,"subIconUrl",void 0);var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,t("span",{staticClass:"icon",class:{"
13icon--withBackground":"withBackground"===this.appearance,"icon--inCircle":"inCircle"===this.appearance,"icon--coverBackground":"cover"===this.backgroundSize,"icon--rotateClockwise":"clockwise"===this.rotation,"icon--viaCssVar":this.isCssVar},style:this.styleString},[this.isCssVar?[this._v("Â ")]:t("img",{attrs:{src:this.iconUrl,alt:""}}),this.subIconUrl?t("span",{staticClass:"icon__subIcon"},[t("img",{attrs:{src:this.subIconUrl,alt:""}})]):this._e()],2)},[],!1,null,null,null).exports},61386:function(t,e,i){"use strict";i.d(e,{A:function(){return d}});var s=i(32198),a=i(67953),n=i(99168),o=i(28687);class r extends a.lD{hasDefaultSlotContent(){return!!this.$slots.default}}(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:null})],r.prototype,"title",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:null})],r.prototype,"text",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:null})],r.prototype,"icon",void 0);var l=r=(0,s.Cg)([(0,a.uA)({components:{Heading:n.A,Icon:o.A}})],r),d=(0,i(41618).A)(l,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"InfoBox",class:{"InfoBox--withIcon":!!this.icon}},[this.icon?t("span",{staticClass:"InfoBox__icon"},[t("Icon",{attrs:{appearance:"withBackground",iconUrl:this.icon}})],1):this._e(),t("Heading",{staticClass:"InfoBox__title",attrs:{appearance:"h5"}},[this._v(" "+this._s(this.title)+" ")]),t("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.text,expression:"text"}],staticClass:"InfoBox__text ExternalContent"}),this._t("default")],2)},[],!1,null,"5f0f1708",null).exports},52202:function(t,e,i){"use strict";i.d(e,{A:function(){return h}});var s=i(32198),a=i(67953),n=i(44615),o=i.n(n);class r extends a.lD{toggleReveal(){this.revealed=!this.revealed}get placeholder(){return o()("â",this.length)}constructor(...t){super(...t),this.revealed=!1}}(0,s.Cg)([(0,a.kv)({default:10})],r.prototype,"length",void 0),(0,s.Cg)([(0,a.kv)({default:""})],r.prototype,"screenReaderLabel",void 0);var l=r=(0,s.Cg)([a.uA],r),d=i(41618),c=(0,d.A)(l,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"Secret",class:{"Secret--revealed":t.revealed}},[t.revealed?e("div",{staticClass:"Secret__content secret-content",attrs:{"aria-live":"polite"}},[t._t("default")],2):e("div",{staticClass:"Secret__content secret-content",attrs:{"aria-hidden":"true"}},[t._v(t._s(t.placeholder))]),e("button",{staticClass:"Secret__revealButton reveal-button",attrs:{"aria-label":`${t.revealed?t.$t("secret.hide"):t.$t("secret.show")} ${t.screenReaderLabel}`},on:{click:function(e){return e.preventDefault(),t.toggleReveal()}}},[t._v(" Â ")])])},[],!1,null,"ce87da4c",null).exports;class u extends a.lD{}(0,s.Cg)([(0,a.kv)()],u.prototype,"data",void 0),(0,s.Cg)([(0,a.kv)({default:"default"})],u.prototype,"appearance",void 0);var p=u=(0,s.Cg)([(0,a.uA)({components:{Secret:c}})],u),h=(0,d.A)(p,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("ul",{staticClass:"infoList",class:{"infoList--narrow":"narrow"===t.appearance}},[t._l(t.data,function(i,s){return[i.value?e("li",{key:s,staticClass:"infoListItem",class:{"infoListItem--narrow":"narrow"===t.appearance,"infoListItem--hasDescription":i.description}},[e("strong",{staticClass:"infoListItem__title"},[t._v(t._s(i.title))]),e("div",{directives:[{name:"pii-mask",rawName:"v-pii-mask",value:i.piiMask,expression:"info.piiMask"}],staticClass:"infoListItem__value"},[i.secret?e("Secret",{attrs:{screenReaderLabel:i.title}},[t._v(t._s(i.value))]):e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:i.value,expression:"info.value"}]})],1),i.description?e("div",{staticClass:"infoListItem__description"},[t._v(" "+t._s(i.description)+" ")]):t._e()]):t._e()]})],2)},[],!1,null,"ac28c4a0",null).exports},41188:function(t,e,i){"use strict";i.d(e,{A:function(){return b}});var s=i(32198),a=i(58294),n=i(71229),o=i(42291),r=i(50034),l=i(67953),d=i(99168),c=i(28759),u=i(99679),p=i(40588),h=i(50778),_=i(42580),m=i(3231);let g=(0,a.tZ)("InstallationDetailsPanel"),v=["discarded","discarded__no_infra_available","discarded__technician_type_not_allowed","discarded__fiber_infrastru
13cture_not_ready","discarded__product_no_longer_available","discarded__service_already_active","discarded__invalid_address"];class f extends l.lD{async mounted(){try{this.canChangeOrder=await this.broadbandService.canChangeOrder()}catch(t){g.error("Failed to get WSO availability status",t),this.canChangeOrder=!1}}get showAppointmentDetails(){return this.appointmentTimeSlot&&!this.hasInternalState("order_incomplete","appointment_postponed","wait_for_package_shipment","wait_for_package_delivery","wait_for_activation_request","activating")}get showShipmentDetails(){return this.order&&("wait_for_package_delivery"===this.order.state||"wait_for_package_shipment"===this.order.state)}get isSelfInstall(){return this.order?.installation?.method==="self_install"}get isWaitingForOnboardingCompletion(){return["wait_for_appointment_booking","wait_for_identification"].includes(this.order?.state)}get isWaitingForExecution(){return["wait_for_appointment_confirmation","wait_for_execution"].includes(this.order?.state)}get isWaitingForInfo(){return["wait_for_downtime_end","waiting_for_internal_processing"].includes(this.order?.state||"")}mapDiscardedState(t){return t?(0,r.YW)(t).returnType().with("fiber_infrastructure_not_ready",()=>"discarded__fiber_infrastructure_not_ready").with("invalid_address",()=>"discarded__invalid_address").with("no_infra_available",()=>"discarded__no_infra_available").with("product_no_longer_available",()=>"discarded__product_no_longer_available").with("service_already_active",()=>"discarded__service_already_active").with("technician_type_not_allowed",()=>"discarded__technician_type_not_allowed").otherwise(()=>"discarded"):"discarded"}get state(){if(["discarded","wait_for_order_validation","review_needed"].includes(this.order.state))return this.mapDiscardedState(this.order?.installation?.discardReason);if((0,n.V5)(this.order)&&(0,o.L)(this.order.state))return this.order.state;if(this.order.installation?.appointmentNeedsUserConfirmation)return"wait_for_user_appointment_confirmation";if(this.isWaitingForOnboardingCompletion)return this.appointmentTimeSlot&&this.appointmentTimeSlot.to?.isBefore(this.clock.now())?"appointment_postponed":"wait_for_appointment_booking"===this.order.state?this.canChangeOrder?"wait_for_appointment_booking":"cannot_edit_order":this.canChangeOrder?"order_incomplete":"cannot_edit_order";if(this.isWaitingForInfo)return this.appointmentTimeSlot?"wait_for_info_with_appointment":this.isSelfInstall?"wait_for_info_no_installation":"wait_for_info_no_appointment";if(this.isWaitingForExecution){if(this.appointmentTimeSlot){let t=this.clock.today(),e=this.clock.now(),i=this.appointmentTimeSlot.to,s=i.toLocalDate(),a=s.minusDays(2);return this.order?.state==="wait_for_appointment_confirmation"?"wait_appointment_confirmation":t.isBefore(a)?this.canChangeOrder?"appointment_created":"cannot_edit_appointment":t.isBefore(s)?"few_days_before_appointment":t.equals(s)?i.isBefore(e)&&i.plusHours(2).isAfter(e)?"technician_delayed":e.isAfter(i.plusHours(2))?"technician_no_show":"day_of_appointment":"appointment_postponed"}return this.canChangeOrder?"appointment_created":"cannot_make_appointment"}return this.canChangeOrder?"order_incomplete":"cannot_edit_order"}get inlineNotificationType(){return["wait_for_info_no_installation","wait_for_info_no_appointment","wait_for_appointment_booking","wait_for_info_with_appointment","wait_for_user_appointment_confirmation","cannot_edit_appointment","cannot_edit_order","order_incomplete","appointment_postponed","technician_delayed"].includes(this.state)?"warning":["wait_appointment_confirmation","appointment_created","few_days_before_appointment","day_of_appointment","wait_for_package_shipment","wait_for_package_delivery","wait_for_activation_request","activating"].includes(this.state)?"success":["technician_no_show","discarded","discarded__no_infra_available","discarded__technician_type_not_allowed","discarded__fiber_infrastructure_not_ready","discarded__product_no_longer_available","discarded__service_already_active","discarded__invalid_address"].includes(this.state)?"danger-no-icon":"default"}get inlineNotificationMessage(){return(0,r.YW)(this.state).with("wait_for_package_shipment",()=>this.$t("line_not_active.waiting_for_package_shipment")).with("wait_for_package_delivery",()=>this.$t("line_not_active.waiting_for_package_delivery")).with("wait_for_activation_request",()=>this.$t("line_not_active.waiting_for_activation_request")).with("wait_for_info_no_appointment",()=>this.$t("line_not_active.waiting_for_info")).with("wait_for_info_no_installation",()=>
13this.$t("installationDetailsPanel.self_install_waiting_for_info")).with("wait_for_info_with_appointment",()=>this.$t("line_not_active.waiting_for_info_with_appointment")).with("wait_appointment_confirmation",()=>this.$t("appointmentDetailsPanel.notification_appointment_wait_for_confirmation")).with("wait_for_appointment_booking",()=>this.$t("installationDetailsPanel.notification_order_incomplete")).with("wait_for_user_appointment_confirmation",()=>this.$t("line_not_active.additional_appointment_needed")).with("cannot_make_appointment",()=>this.$t("line_not_active.cannot_cancel_order_or_make_appointment")).with("cannot_edit_appointment",()=>this.$t("line_not_active.cannot_cancel_order_or_edit_appointment")).with("cannot_edit_order",()=>this.$t("installationDetailsPanel.cannot_edit_order")).with("appointment_created",()=>(0,n.V5)(this.order)&&this.order.multipleAppointmentsNeeded?this.$t("appointmentDetailsPanel.notification_first_appointment_will_take_place_on_your_chosen_time"):this.$t("appointmentDetailsPanel.notification_appointment_will_take_place_on_your_chosen_time")).with("appointment_postponed",()=>this.$t("appointmentDetailsPanel.notification_installation_could_not_be_completed")).with("few_days_before_appointment",()=>(0,n.V5)(this.order)&&this.order.multipleAppointmentsNeeded?this.$t("appointmentDetailsPanel.first_notification_appointment_cant_be_changed_anymore"):this.$t("appointmentDetailsPanel.notification_appointment_cant_be_changed_anymore")).with("day_of_appointment",()=>this.$t("appointmentDetailsPanel.notification_technician_will_come_by_today")).with("order_incomplete",()=>this.$t("installationDetailsPanel.notification_order_incomplete")).with("activating",()=>this.$t("line_not_active.waiting_for_installation_activation")).with("technician_delayed",()=>this.$t("appointmentDetailsPanel.notification_technician_delayed")).with("technician_no_show",()=>this.$t("appointmentDetailsPanel.notification_technician_no_show")).with("discarded",()=>this.$t("installation_details_panel.notification_order_discarded")).with("discarded__service_already_active",()=>this.$t("installation_details_panel.notification_order_discarded__service_already_active")).with("discarded__no_infra_available",()=>this.$t("installation_details_panel.notification_order_discarded__no_infra_available")).with("discarded__technician_type_not_allowed",()=>this.$t("installation_details_panel.notification_order_discarded__technician_type_not_allowed")).with("discarded__fiber_infrastructure_not_ready",()=>this.$t("installation_details_panel.notification_order_discarded__fiber_infrastructure_not_ready")).with("discarded__product_no_longer_available",()=>this.$t("installation_details_panel.notification_order_discarded__product_no_longer_available")).with("discarded__invalid_address",()=>this.$t("installation_details_panel.notification_order_discarded__invalid_address")).exhaustive()}get inlineNotificationCtaText(){return v.includes(this.state)?this.$t("installation_details_panel.order_discarded_cta_text"):(0,r.YW)(this.state).with("order_incomplete",()=>this.$t("installationDetailsPanel.choose_installation_method")).with("appointment_postponed",()=>this.$t("appointmentDetailsPanel.create_new_appointment")).with("appointment_created",()=>this.$t("appointmentDetailsPanel.change_appointment")).with("activating",()=>this.$t("installationDetailsPanel.modem_installation_instructions")).with("wait_for_appointment_booking",()=>this.$t("installationDetailsPanel.notification_book_appointment")).with("wait_for_user_appointment_confirmation",()=>this.$t("installationDetailsPanel.notification_review_and_confirm_appointment")).otherwise(()=>"")}get inlineNotificationCtaRoute(){return["order_incomplete","appointment_postponed","appointment_created","wait_for_appointment_booking","wait_for_user_appointment_confirmation"].includes(this.state)?this.changeAppointmentRoute:""}get inlineNotificationCtaUrl(){return(0,r.YW)(this.state).with("activating",()=>this.$t("installationDetailsPanel.modem_installation_instructions_url")).with("discarded",()=>this.$t("installation_details_panel.order_discarded_cta_url")).with("discarded__service_already_active",()=>this.$t("installation_details_panel.order_discarded__service-already-active_cta_url")).with("discarded__no_infra_available",()=>this.$t("installation_details_panel.order_discarded__no-infra-available_cta_url")).with("discarded__technician_type_not_allowed",()=>this.$t("installation_details_panel.order_discarded__technician-type-not-allowed_cta_url")).with("discarded__fiber_infrastru
13cture_not_ready",()=>this.$t("installation_details_panel.order_discarded__fiber-infrastructure-not-ready_cta_url")).with("discarded__product_no_longer_available",()=>this.$t("installation_details_panel.order_discarded__product-no-longer-available_cta_url")).with("discarded__invalid_address",()=>this.$t("installation_details_panel.order_discarded__invalid-address_cta_url")).otherwise(()=>"")}get panelTitle(){return this.order?(0,n.V5)(this.order)&&(0,o.L)(this.order.state)||this.hasInternalState("wait_for_info_no_installation")?this.$t("installationDetailsPanel.installation_info"):this.order.installation?.appointmentNeedsUserConfirmation?this.$t("installationDetailsPanel.installation_info_please_confirm_next_appointment"):this.appointmentTimeSlot||this.hasInternalState("wait_for_info_no_appointment")?this.$t("installationDetailsPanel.appointment_info"):this.$t("installationDetailsPanel.general_info"):""}get footnoteTitle(){return this.$t("appointmentDetailsPanel.what_you_need_to_know_about_your_appointment")}get footnoteDescription(){return(0,r.YW)(this.state).with("appointment_postponed",()=>this.$t("appointmentDetailsPanel.bottom_message_appointment_postponed").toString()).with("day_of_appointment",()=>this.$t("appointmentDetailsPanel.bottom_message_day_of_appointment").toString()).with("wait_appointment_confirmation",()=>this.$t("appointmentDetailsPanel.bottom_message_wait_appointment_confirmation").toString()).with("appointment_created",()=>this.$t("appointmentDetailsPanel.bottom_message_appointment_created_{daysBeforeAppointmentChangeBlocked}",{daysBeforeAppointmentChangeBlocked:2}).toString()).with("cannot_edit_appointment",()=>this.$t("appointmentDetailsPanel.bottom_message_appointment_created_{daysBeforeAppointmentChangeBlocked}",{daysBeforeAppointmentChangeBlocked:2}).toString()).with("wait_for_info_with_appointment",()=>this.$t("appointmentDetailsPanel.bottom_message_appointment_created_{daysBeforeAppointmentChangeBlocked}",{daysBeforeAppointmentChangeBlocked:2}).toString()).with("few_days_before_appointment",()=>this.$t("appointmentDetailsPanel.bottom_message_few_days_before_appointment").toString()).with("technician_no_show",()=>this.$t("appointmentDetailsPanel.bottom_message_technician_no_show").toString()).otherwise(()=>"")}get stateTag(){return this.order?(0,r.YW)(this.state).with("wait_for_package_shipment",()=>this.$t("installationDetailsPanel.status__waiting_for_package_shipment").toString()).with("wait_for_package_delivery",()=>this.$t("installationDetailsPanel.status__waiting_for_package_delivery").toString()).with("wait_for_activation_request",()=>this.$t("installationDetailsPanel.status__wait_for_activation_request").toString()).with("activating",()=>this.$t("installationDetailsPanel.status__activating").toString()).with("order_incomplete",()=>this.$t("installationDetailsPanel.status__order_incomplete").toString()).with("cannot_edit_order",()=>this.$t("installationDetailsPanel.status__order_incomplete").toString()).with("technician_delayed",()=>this.$t("appointmentDetailsPanel.status__technician_delayed").toString()).with("technician_no_show",()=>this.$t("appointmentDetailsPanel.status__appointment_postponed").toString()).with("appointment_postponed",()=>this.$t("appointmentDetailsPanel.status__appointment_postponed").toString()).with("day_of_appointment",()=>this.$t("appointmentDetailsPanel.status__day_of_appointment").toString()).with("wait_for_appointment_booking",()=>this.$t("installationDetailsPanel.status__order_incomplete").toString()).with("wait_appointment_confirmation",()=>this.$t("appointmentDetailsPanel.status__appointment_created").toString()).with("wait_for_user_appointment_confirmation",()=>this.$t("installationDetailsPanel.status__order_incomplete").toString()).with("appointment_created",()=>this.$t("appointmentDetailsPanel.status__appointment_created").toString()).with("cannot_edit_appointment",()=>this.$t("appointmentDetailsPanel.status__appointment_created").toString()).with("wait_for_info_with_appointment",()=>this.$t("appointmentDetailsPanel.status__appointment_created").toString()).with("few_days_before_appointment",()=>this.$t("appointmentDetailsPanel.status__few_days_before_appointment").toString()).with("cannot_make_appointment",()=>"").with("wait_for_info_no_appointment",()=>"").with("wait_for_info_no_installation",()=>"").with("discarded",()=>this.$t("installation_details_panel.status__order_incomplete").toString()).with("discarded__service_already_active",()=>this.$t("installation_details_panel.status__order_incomplete").toString()).with("discarded__no_infra_available",()=>this.$t("installation_details_panel.status__order_incomplete").toString()).with("discarded__technician_type_not_allowed",()=>this.$t("installation_details_panel.status__order_incomplete").toString()).with("discarded__fiber_infrastru
13cture_not_ready",()=>this.$t("installation_details_panel.status__order_incomplete").toString()).with("discarded__product_no_longer_available",()=>this.$t("installation_details_panel.status__order_incomplete").toString()).with("discarded__invalid_address",()=>this.$t("installation_details_panel.status__order_incomplete").toString()).exhaustive():""}get changeAppointmentRoute(){return this.order?{name:m.A.broadbandMakeAppointment,params:{lang:this.locale,orderId:this.order.id}}:{}}get appointmentTimeSlot(){return this.order?.installation?.timeSlot}get formattedAppointmentTimeSlot(){if(this.appointmentTimeSlot)return(0,_.BE)(this.appointmentTimeSlot,this.$t.bind(this),this.locale,"time_only_long")}get contactPersonFullName(){return this.order?.installation?.contactPerson?.fullName??""}get supportUrl(){let t=this.session?.profile;return this.$t("installationDetailsPanel.modem_installation_help_url_{email}",{email:t?.email})}get contactPersonMsisdn(){return this.order?.installation?.contactPerson?.phoneNumber??""}get installationRemark(){return this.order?.installation?.contactPerson?.remark??""}hasInternalState(...t){return t.includes(this.state)}constructor(...t){super(...t),this.canChangeOrder=!1,this.formatInstallationAddress=_.H8}}(0,s.Cg)([(0,l.y_)()],f.prototype,"clock",void 0),(0,s.Cg)([(0,l.y_)()],f.prototype,"config",void 0),(0,s.Cg)([(0,l.y_)()],f.prototype,"broadbandService",void 0),(0,s.Cg)([(0,l.y_)()],f.prototype,"session",void 0),(0,s.Cg)([(0,l.kv)({required:!0})],f.prototype,"order",void 0),(0,s.Cg)([(0,l.kv)({required:!1})],f.prototype,"activateInstallation",void 0);var y=f=(0,s.Cg)([(0,l.uA)({components:{IntroBlock:c.A,InlineNotification:u.A,Heading:d.A,Tag:h.A,Panel:p.A}})],f),b=(0,i(41618).A)(y,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("Panel",{staticClass:"installationDetailsPanel",class:{"has-appointment":t.appointmentTimeSlot},attrs:{title:t.panelTitle,titleTag:"h3"},scopedSlots:t._u([t.stateTag?{key:"headerRight",fn:function(){return[e("div",{staticClass:"installationDetailsPanel__status"},[e("span",{staticClass:"installationDetailsPanel__status__label"},[t._v(t._s(t.$t("appointmentDetailsPanel.status"))+":")]),e("Tag",{staticClass:"installationDetailsPanel__status__tag appointment-details-panel-status-tag",attrs:{appearance:"neroWhite"}},[t._v(t._s(t.stateTag))])],1)]},proxy:!0}:null],null,!0)},[!t.canChangeOrder&&t.hasInternalState("wait_for_activation_request")?[e("InlineNotification",{staticClass:"installationDetailsPanel__temporarilyDisabledNotification",attrs:{notificationType:"error"}},[t._v(" "+t._s(t.$t("installationDetailsPanel.notification_temporarily_disabled_line_activation"))+" ")])]:e("section",[t.inlineNotificationMessage?e("InlineNotification",{staticClass:"installationDetailsPanel__notification installation-details-notification",attrs:{"data-qa":`inline-notification-${t.state}`,notificationType:t.inlineNotificationType},scopedSlots:t._u([t.inlineNotificationCtaRoute||t.inlineNotificationCtaUrl?{key:"cta",fn:function(){return[t.inlineNotificationCtaRoute?e("RouterLink",{staticClass:"make-appointment",attrs:{to:t.inlineNotificationCtaRoute,tag:"a"}},[t._v(" "+t._s(t.inlineNotificationCtaText)+" ")]):t.inlineNotificationCtaUrl?e("a",{attrs:{href:t.inlineNotificationCtaUrl,target:"_blank"}},[t._v(" "+t._s(t.inlineNotificationCtaText)+" ")]):t._e()]},proxy:!0}:null],null,!0)},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.inlineNotificationMessage,expression:"inlineNotificationMessage"}]})]):t._e()],1),t.showShipmentDetails?e("section",[e("div",{staticClass:"installationDetailsPanel__details installationDetailsPanelDetails installationDetailsPanelDetails--twoColumns nextStyleLevel"},[e("div",{staticClass:"installationDetailsPanelDetails__block installationDetails"},[e("Heading",{staticClass:"installationDetails__title",attrs:{tagType:"h6",appearance:"h6"}},[t._v(t._s(t.$t("installationDetailsPanel.delivery_address_subtitle")))]),e("p",{directives:[{name:"pii-mask",rawName:"v-pii-mask"},{name:"html-safe",rawName:"v-html-safe",value:t.formatInstallationAddress(t.order.installation.address,t.locale,t.$t.bind(this),"multi_line",!1),expression:"\n formatInstallationAddress(order.installation.address, locale, $t.bind(this), 'multi_line', false)\n "}
13],staticClass:"installationDetails__value"})],1),e("div",{staticClass:"installationDetailsPanelDetails__block installationDetails"},[e("Heading",{staticClass:"installationDetails__title",attrs:{tagType:"h6",appearance:"h6"}},[t._v(t._s(t.$t("installationDetailsPanel.delivery_expected_in_subtitle")))]),e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("installationDetailsPanel.delivery_expected_in"),expression:"$t('installationDetailsPanel.delivery_expected_in')"}],staticClass:"installationDetails__value"})],1)])]):t._e(),t.showAppointmentDetails?e("section",[e("div",{staticClass:"installationDetailsPanel__details installationDetailsPanelDetails nextStyleLevel"},[e("div",{staticClass:"installationDetailsPanelDetails__block installationDetails appointment-date"},[e("Heading",{staticClass:"installationDetails__title",attrs:{tagType:"h6",appearance:"h6"}},[t._v(t._s(t.$t("appointmentDetailsPanel.appointment_date")))]),e("p",{staticClass:"installationDetails__value appointmentDate timeslot-date"},[t._v(t._s(t._f("date")(t.appointmentTimeSlot.from)))])],1),t.formattedAppointmentTimeSlot?e("div",{staticClass:"installationDetailsPanelDetails__block installationDetails appointment-hours"},[e("Heading",{staticClass:"installationDetails__title",attrs:{tagType:"h6",appearance:"h6"}},[t._v(t._s(t.$t("appointmentDetailsPanel.point_of_time")))]),e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.formattedAppointmentTimeSlot,expression:"formattedAppointmentTimeSlot"}],staticClass:"installationDetails__value appointmentHours"})],1):t._e(),t.contactPersonFullName||t.contactPersonMsisdn?e("div",{staticClass:"installationDetailsPanelDetails__block installationDetails contact"},[e("Heading",{staticClass:"installationDetails__title",attrs:{tagType:"h6",appearance:"h6"}},[t._v(t._s(t.$t("appointmentDetailsPanel.present_during_installation")))]),e("p",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],staticClass:"installationDetails__value appointmentContactPerson appointment-contact-person-name"},[t._v(" "+t._s(t.contactPersonFullName)+" ")]),e("p",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],staticClass:"installationDetails__extraValue text appointmentContactPersonMsisdn appointment-contact-person-phone"},[t._v(" "+t._s(t._f("msisdn")(t.contactPersonMsisdn))+" ")])],1):t._e()])]):t._e(),t.hasInternalState("wait_for_activation_request","activating")?e("section",[e("div",{staticClass:"installationDetailsPanel__buttonGroup installation-details-button-group"},[t.activateInstallation&&t.hasInternalState("wait_for_activation_request")?e("IntroBlock",{attrs:{titleTag:"h4",titleAppearance:"h6",title:t.$t("installationDetailsPanel.activate_modem_title"),description:t.$t("installationDetailsPanel.activate_modem_description"),ctaText:t.$t("installationDetailsPanel.activate_modem_cta"),ctaDisabled:!t.canChangeOrder,horizontalChildAlignment:"center",verticalChildAlignment:"spaceBetween",once:t.activateInstallation}}):t._e(),e("IntroBlock",{attrs:{titleTag:"h4",titleAppearance:"h6",title:t.$t("installationDetailsPanel.activate_modem_support_title"),description:t.$t("installationDetailsPanel.activate_modem_support_description"),ctaText:t.$t("installationDetailsPanel.activate_modem_support_cta"),ctaHref:t.supp
13ortUrl,ctaIsExternalLink:!0,ctaAppearance:"secondary",verticalChildAlignment:"spaceBetween",horizontalChildAlignment:"center"}})],1)]):t._e(),t.showAppointmentDetails&&t.installationRemark?e("section",[e("div",{staticClass:"installationDetailsPanel__details installationDetailsPanelDetails nextStyleLevel"},[e("div",{staticClass:"installationDetails installationDetailsPanelDetails__full_width"},[e("Heading",{staticClass:"installationDetails__title",attrs:{tagType:"h6",appearance:"h6"}},[t._v(t._s(t.$t("appointmentDetailsPanel.installer_remark")))]),e("p",{staticClass:"installationDetails__extraValue"},[t._v(t._s(t.installationRemark))])],1)])]):t._e(),t.footnoteDescription?e("section",{staticClass:"footnote"},[e("Heading",{staticClass:"installationDetailsPanel__footnoteTitle",attrs:{tagType:"h6",appearance:"h6"}},[t._v(" "+t._s(t.footnoteTitle)+" ")]),e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.footnoteDescription,expression:"footnoteDescription"}],staticClass:"installationDetailsPanel__footnoteDetails appointment-details-panel-footnote-details text"})],1):t._e()],2)},[],!1,null,"29b7510b",null).exports},28759:function(t,e,i){"use strict";i.d(e,{A:function(){return c}});var s=i(32198),a=i(67953),n=i(24176),o=i(99168),r=i(50778);class l extends a.lD{get hcaTablet(){return null===this.horizontalChildAlignmentTablet?this.horizontalChildAlignment:this.horizontalChildAlignmentTablet}get hcaDesktop(){return null===this.horizontalChildAlignmentDesktop?this.horizontalChildAlignment:this.horizontalChildAlignmentDesktop}}(0,s.Cg)([(0,a.kv)({type:String,required:!1})],l.prototype,"tagText",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],l.prototype,"tagAppearance",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],l.prototype,"tagSize",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],l.prototype,"title",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],l.prototype,"titleTag",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],l.prototype,"titleAppearance",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],l.prototype,"subTitle",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],l.prototype,"subTitleTag",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],l.prototype,"subTitleAppearance",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],l.prototype,"description",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],l.prototype,"ctaText",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:null})],l.prototype,"ctaHref",void 0),(0,s.Cg)([(0,a.kv)({type:Object,required:!1})],l.prototype,"ctaRoute",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],l.prototype,"ctaIsExternalLink",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:"primary"})],l.prototype,"ctaAppearance",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:null})],l.prototype,"ctaIcon",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:null})],l.prototype,"ctaIdentifier",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:null})],l.prototype,"ctaDisabled",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],l.prototype,"secCtaText",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:null})],l.prototype,"secCtaHref",void 0),(0,s.Cg)([(0,a.kv)({type:Object,required:!1})],l.prototype,"secCtaRoute",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],l.prototype,"secCtaIsExternalLink",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:null})],l.prototype,"secCtaIdentifier",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:"left"})],l.prototype,"horizontalChildAlignment",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],l.prototype,"accessibilityDescriptionRef",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:null})],l.prototype,"horizontalChildAlignmentTablet",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:null})],l.prototype,"horizontalChildAlignmentDesktop",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:""})],l.prototype,"verticalChildAlignment",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:null})],l.prototype,"appearance",void 0),(0,s.Cg)([(0,a.kv)({required:!1})],l.prototype,"once",void 0);var d=l=(0,s.Cg)([(0,a.uA)({components:{CallToAction:n.A,Heading:o.A,Tag:r.A}})],l),c=(0,i(41618).A)(d,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"introBlock",class:{"
13introBlock--caCenter":"center"===t.horizontalChildAlignment,"introBlock--caRight":"right"===t.horizontalChildAlignment,"introBlock--caLeftDesktop":"left"===t.hcaDesktop,"introBlock--caCenterDesktop":"center"===t.hcaDesktop,"introBlock--caRightDesktop":"right"===t.hcaDesktop,"introBlock--caLeftTablet":"left"===t.hcaTablet,"introBlock--caCenterTablet":"center"===t.hcaTablet,"introBlock--caRightTablet":"right"===t.hcaTablet,"introBlock--vaSpaceBetween":"spaceBetween"===t.verticalChildAlignment,"introBlock--inBanner":"inBanner"===t.appearance}},[t.tagText?e("Tag",{staticClass:"introBlock__tag",attrs:{size:t.tagSize,appearance:t.tagAppearance}},[t._v(" "+t._s(t.tagText)+" ")]):t._e(),t.title?e("Heading",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.title,expression:"title"}],staticClass:"introBlock__title title",attrs:{appearance:t.titleAppearance,tagType:t.titleTag}}):t._e(),t.subTitle?e("Heading",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.subTitle,expression:"subTitle"}],staticClass:"introBlock__subTitle subtitle",attrs:{appearance:t.subTitleAppearance,tagType:t.subTitleTag}}):t._e(),t.description?e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.description,expression:"description"}],staticClass:"introBlock__description text ExternalContent",attrs:{"data-ref":t.accessibilityDescriptionRef,tabindex:t.accessibilityDescriptionRef?-1:void 0}}):t._e(),t.ctaText?e("div",{staticClass:"introBlock__ctaContainer"},[t.ctaText?e("CallToAction",{class:["introBlock__cta",t.ctaIdentifier],attrs:{appearance:t.ctaAppearance,href:t.ctaHref,icon:t.ctaIcon,externalLink:t.ctaIsExternalLink,disabled:t.ctaDisabled,to:t.ctaRoute,once:t.once,"data-qa":t.ctaIdentifier},on:{click:function(e){return t.$emit("primaryCtaClicked")}}},[t._v(" "+t._s(t.ctaText)+" ")]):t._e(),t.secCtaText&&t.ctaText?e("CallToAction",{class:["introBlock__secCta",t.secCtaIdentifier],attrs:{appearance:"link",href:t.secCtaHref,externalLink:t.secCtaIsExternalLink,to:t.secCtaRoute},on:{click:function(e){return t.$emit("secondaryCtaClicked")}}},[t._v(" "+t._s(t.secCtaText)+" ")]):t._e()],1):t._e()],1)},[],!1,null,"13e4082b",null).exports},68850:function(t,e,i){"use strict";i.d(e,{A:function(){return m}});var s=i(32198),a=i(67953),n=i(79847),o=i(99168),r=i(24176),l=i(61386);class d extends a.lD{}(0,s.Cg)([(0,a.kv)({type:String,required:!0})],d.prototype,"title",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],d.prototype,"description",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],d.prototype,"infoTitle",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],d.prototype,"infoDescription",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!0})],d.prototype,"ctaText",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],d.prototype,"ctaHref",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],d.prototype,"icon",void 0);var c=d=(0,s.Cg)([(0,a.uA)({components:{Heading:o.A,CallToAction:r.A,InfoBox:l.A}})],d),u=i(41618),p=(0,u.A)(c,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"LandingOnboardSelectOption",class:{"LandingOnboardSelectOption--singleColumn":!t.infoTitle&&!t.infoDescription}},[e("div",{staticClass:"LandingOnboardSelectOption__intro"},[e("Heading",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.title,expression:"title"}],attrs:{appearance:"h4"}}),e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.description,expression:"description"}],staticClass:"LandingOnboardSelectOption__introDescription ExternalContent"})],1),e("div",{staticClass:"LandingOnboardSelectOption__infoBox"},[t.infoTitle&&t.infoDescription?e("InfoBox",{attrs:{title:t.infoTitle,text:t.infoDescription,icon:t.icon}}):t._e()],1),e("div",{staticClass:"LandingOnboardSelectOption__cta"},[e("CallToAction",{attrs:{href:t.ctaHref},on:{click:function(e){return t.$emit("click")}}},[t._v(t._s(t.ctaText))])],1)])},[],!1,null,"b1408d02",null).exports;class h extends a.lD{get labels(){return null===this.options?null:this.options.map(t=>t.label.toString())}onOptionsChange(t){if(null===t){this.selectedOption="";return}let e=t.filter(t=>t.expanded);e.length>0&&(this.selectedOption=e[0].label.toString())}get showIntro(){return this.loading||!!this.title||!!this.description}constructor(...t){super(...t),this.selectedOption=""}}(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],h.prototype,"loading",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],h.prototype,"title",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],h.prototype,"description",void 0),(0,s.Cg)([(0,a.kv)({required:!1,default:null})],h.prototype,"options",void 0),(0,s.Cg)([(0,a.ox)("options",{immediate:!0})],h.prototype,"onOptionsChange",null);var _=h=(0,s.Cg)([(0,a.uA)({components:{LandingOnboardSelectOption:p,RadioGroup:n.A,Heading:o.A}})],h),m=(0,u.A)(_,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"LandingOnboardSelect",class:{"LandingOnboardSelect--isLoading":t.loading}},[t.showIntro?e("div",{staticClass:"LandingOnboardSelect__intro"},[t.loading?[e("div",{staticClass:"shimmer LandingOnboardSelect__introTitle"},[t._v("Â ")]),e("div",{staticClass:"shimmer LandingOnboardSelect__introDescription"},[t._v("Â ")])]:[t.title?e("Heading",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.title,expression:"title"}],attrs:{appearance:"h2"}}):t._e(),t.description?e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.description,expression:"description"}
13],staticClass:"LandingOnboardSelect__introDescription ExternalContent"}):t._e()]],2):t._e(),e("RadioGroup",{attrs:{name:"landingOnboardSelect",appearance:"large",numberOfLoadingItems:2,options:t.labels},scopedSlots:t._u([null!==t.labels?{key:"default",fn:function({option:i}){return[e("span",[t._v(t._s(i))])]}}:null,{key:"radioGroupDescription",fn:function({option:i}){return[t._l(t.options,function(s){return[i===s.label?[e("LandingOnboardSelectOption",{key:`vcso-${s.label}`,staticClass:"styleLevel2",attrs:{title:s.title,description:s.description,infoTitle:s.infoTitle,infoDescription:s.infoDescription,ctaText:s.cta,ctaHref:s.ctaHref,icon:s.icon},on:{click:function(t){s.clickListener&&s.clickListener()}}})]:t._e()]})]}}],null,!0),model:{value:t.selectedOption,callback:function(e){t.selectedOption=e},expression:"selectedOption"}})],1)},[],!1,null,"4d3030a4",null).exports},1001:function(t,e,i){"use strict";i.d(e,{A:function(){return h}});var s=i(32198),a=i(10992),n=i.n(a),o=i(67953),r=i(24242),l=i(91543),d=i(46242);let c="all_owned";class u extends o.lD{set selectedSubscriptionsOrGroup(t){this.$emit("input",this.mapToSubscriptionSelection(t))}get selectedSubscriptionsOrGroup(){return this.value.groupIsSelected?this.groupSubscriptions(this.value.subscriptions):[...this.value.subscriptions]}get options(){return 0===this.subscriptions.length?[]:this.shouldGroupSubscriptions?this.groupSubscriptions(this.withActiveSubscriptionOnTop(this.subscriptions)):this.withActiveSubscriptionOnTop(this.subscriptions)}mapToSubscriptionSelection(t){let[e,i]=n()(t,t=>!this.isGroupedSubscription(t));return{subscriptions:e,groupIsSelected:i&&i.length>0}}isGroupedSubscription(t){return t.id===c}withActiveSubscriptionOnTop(t){return this.session.subscription&&t.some(t=>t.id===this.session.subscription?.id)?[this.session.subscription,...t.filter(t=>t.id!==this.session.subscription.id)]:t}groupSubscriptions(t){return[{id:c},...t.filter(t=>!t.isOwner)]}isSubscriptionDisabled(t){return(!this.disallowedSubscriptions||this.disallowedSubscriptions.length>0)&&this.disallowedSubscriptions.some(e=>e.id===t.id)}subscriptionTagAppearance(t){return this.isSubscriptionDisabled(t)?"redOrange":""}subscriptionTagMessage(t){return this.isSubscriptionDisabled(t)?this.$t("multi_select_subscription.already_linked_label").toString():null}}(0,s.Cg)([(0,o.y_)()],u.prototype,"customerService",void 0),(0,s.Cg)([(0,o.y_)()],u.prototype,"session",void 0),(0,s.Cg)([(0,o.y_)()],u.prototype,"config",void 0),(0,s.Cg)([(0,o.kv)({default:!1})],u.prototype,"shouldGroupSubscriptions",void 0),(0,s.Cg)([(0,o.kv)({required:!0})],u.prototype,"subscriptions",void 0),(0,s.Cg)([(0,o.kv)({type:Array,required:!1,default:()=>[]})],u.prototype,"disallowedSubscriptions",void 0),(0,s.Cg)([(0,o.kv)()],u.prototype,"value",void 0),(0,s.Cg)([(0,o.kv)({type:Boolean,required:!1,default:!1})],u.prototype,"keepSmallLook",void 0);var p=u=(0,s.Cg)([(0,o.uA)({components:{MultiSelect:r.A,SubscriptionDetails:l.A,SubscriptionGroupDetails:d.A}})],u),h=(0,i(41618).A)(p,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"multiSelectSubscription"},[[t.options&&t.options.length>0?e("MultiSelect",{staticClass:"sim-selector-multiSelect",attrs:{id:"simSelectorMultiSelect",options:t.options,disabledOptions:t.disallowedSubscriptions,optionKey:"id"},scopedSlots:t._u([{key:"default",fn:function({option:i}){return[t.isGroupedSubscription(i)?e("SubscriptionGroupDetails",{staticClass:"subscriptionPaymentMethodSettings__sim",attrs:{appearance:"inList"}}):e("SubscriptionDetails",{staticClass:"subscriptionPaymentMethodSettings__sim current-sim",attrs:{keepSmallLook:t.keepSmallLook,subscription:i,tagMessage:t.subscriptionTagMessage(i),tagAppearance:t.subscriptionTagAppearance(i),disabled:t.isSubscriptionDisabled(i),appearance:"inList"}})]}}],null,!1,0xb75ffe77),model:{value:t.selectedSubscriptionsOrGroup,callback:function(e){t.selectedSubscriptionsOrGroup=e},expression:"selectedSubscriptionsOrGroup"}}):e("div",{staticClass:"sim-selector-numResults"},[e("div",{staticClass:"sim-selector-numResults-no-result"},[t._t("emptySubscriptionsList",function(){return[t._v(" "+t._s(t.$t("filter_returned_0_simcards"))+" ")]})],2)])]],2)},[],!1,null,"4bc8f8a7",null).exports}
13,43979:function(t,e,i){"use strict";i.d(e,{A:function(){return _}});var s=i(32198),a=i(58294),n=i(8921),o=i(67953),r=i(97564),l=i(58249),d=i(78365),c=i(78307);let u=(0,a.tZ)("CompanyDetailsLookup");class p extends o.lD{async created(){if(this.seed)if(this.seedContainsPendingEnterpriseNumber){let{pendingEnterpriseNumber:t}=this.seed;this.enterpriseNumber=t,this.originalDetails=await this.getEnterpriseDetails(t),"kboIsDownError"===this.errorCategory&&(this.originalDetails={...this.emptyDetails(),enterpriseNumber:t})}else{let{name:t,enterpriseNumber:e,address:i}=this.seed;e&&(this.enterpriseNumber=e),this.originalDetails={name:t,enterpriseNumber:e,address:i}}this.$emit("input",this.originalDetails)}async onEnterpriseNumberChange(){if(!this.seedContainsPendingEnterpriseNumber)try{if(this.originalDetails&&this.enterpriseNumber===this.originalDetails.enterpriseNumber){this.detailsFromKbo=null,this.$emit("input",this.originalDetails);return}if(this.detailsFromKbo&&this.enterpriseNumber===this.detailsFromKbo.enterpriseNumber)return void this.$emit("input",this.detailsFromKbo);if(this.$emit("input",null),!await this.$validator.validate("enterprise_number"))return;this.detailsFromKbo=await this.getEnterpriseDetails(this.enterpriseNumber),this.detailsFromKbo?this.$emit("input",this.detailsFromKbo):this.errorCategory&&(this.originalDetails&&this.originalDetails.enterpriseNumber&&(this.enterpriseNumber=this.originalDetails.enterpriseNumber),this.$emit("input",this.originalDetails))}catch(t){u.error("Failed to get enterprise details",t),this.notifyGenericErrors(t)}}async getEnterpriseDetails(t){try{return this.loadingCompanyDetails=!0,this.errorCategory=null,await this.uwa.getCompanyDetails(t)}catch(e){let t=n.Ay.of(e);t.code===n.O4.SERVER_ERROR?this.errorCategory="kboIsDownError":t.code===n.O4.INVALID_ENTERPRISE_NUMBER?this.errorCategory="kboRejectedError":(u.error("Unable to load company details",e),this.notifyGenericErrors(e))}finally{this.loadingCompanyDetails=!1}return null}get seedContainsPendingEnterpriseNumber(){return!!this.seed&&!!this.seed.pendingEnterpriseNumber}get errorText(){return"kboRejectedError"===this.errorCategory?this.originalDetails?this.$t("company_details_lookup.kbo_unknown_enterprise_number").toString():this.$t("company_details_lookup.kbo_unknown_enterprise_number_b2c_option").toString():"kboIsDownError"===this.errorCategory?this.seedContainsPendingEnterpriseNumber?this.$t("company_details_lookup.kbo_is_down_fetching_already_pending").toString():this.$t("company_details_lookup.kbo_is_down_try_later").toString():null}get inputPlaceHolderText(){return this.detailsFromKbo?null:this.$t("company_details_lookup.fill_in_enterprise_number").toString()}get enterpriseNumberFieldHintText(){return this.seed&&this.seedContainsPendingEnterpriseNumber?this.$t("company_details_lookup.enterprise_number_already_pending").toString():null}get shouldDetailsBeShown(){return(!this.seedContainsPendingEnterpriseNumber||"kboIsDownError"!==this.errorCategory)&&!!this.shownDetails}get shownDetails(){return this.detailsFromKbo||this.originalDetails}emptyDetails(){return{name:"",enterpriseNumber:"",address:{street:"",number:"",postcode:"",city:"",country:""}}}constructor(...t){super(...t),this.errorCategory=null,this.enterpriseNumber="",this.originalDetails=null,this.detailsFromKbo=null,this.loadingCompanyDetails=!1}}(0,s.Cg)([(0,o.y_)()],p.prototype,"uwa",void 0),(0,s.Cg)([(0,o.kv)({required:!1})],p.prototype,"seed",void 0),(0,s.Cg)([(0,o.kv)({required:!1,type:String})],p.prototype,"appearance",void 0),(0,s.Cg)([(0,o.kv)({type:Array,required:!1,default:()=>[]})],p.prototype,"validationErrors",void 0),(0,s.Cg)([(0,o.ox)("enterpriseNumber")],p.prototype,"onEnterpriseNumberChange",null);var h=p=(0,s.Cg)([(0,o.uA)({inject:["$validator","uwa"],components:{Field:l.A,EnterpriseNumberInput:r.A,SearchInput:c.A,InputPlaceholder:d.A}})],p),_=(0,i(41618).A)(h,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"companyDetailsLookup",class:{"companyDetailsLookup--narrow":"narrow"===t.appearance}},[e("Field",{staticClass:"companyDetailsLookup__field",attrs:{label:t.$t("company_details_lookup.enterprise_number"),hint:t.enterpriseNumberFieldHintText,validationErrors:t.validationErrors}},[e("SearchInput",{on:{searchClicked:t.onEnterpriseNumberChange}},[e("EnterpriseNumberInput",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],attrs:{disabled:t.loadingCompanyDetails||t.seedContainsPendingEnterpriseNumber,inputType:"search",describedBy:"companyDetailsLookup-field-instructions",name:"enterprise_number"},model:{value:t.enterpriseNumber,callback:function(e){t.enterpriseNumber=e},expression:"enterpriseNumber"}})],1)],1),e("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}
13],attrs:{id:"companyDetailsLookup-field-instructions"}},[t._v(" "+t._s(t.$t("company_details_lookup.field_instructions__screenread"))+" ")]),e("div",{attrs:{"aria-live":"polite","aria-atomic":"true"}},[!t.shouldDetailsBeShown||t.errorCategory?e("InputPlaceholder",{staticClass:"companyDetailsLookup__inputplaceholder",attrs:{loading:t.loadingCompanyDetails,loadingText:t.$t("company_details_lookup.loadingDetailsFromKBO"),error:!!t.errorCategory,errorText:t.errorText,text:t.inputPlaceHolderText}}):t._e(),t.shouldDetailsBeShown?e("div",{staticClass:"companyDetailsLookup__data nextStyleLevel"},[e("div",{staticClass:"companyDetailsLookup__dataset companyDetailsLookup__name"},[e("strong",[t._v(t._s(t.$t("company_details_lookup.enterprise_name")))]),e("div",[t._v(t._s(t.shownDetails.name))])]),e("div",{staticClass:"companyDetailsLookup__dataset companyDetailsLookup__address"},[e("strong",[t._v(t._s(t.$t("company_details_lookup.enterprise_address")))]),e("div",[e("div",[t._v(" "+t._s(t.shownDetails.address.street)+" "+t._s(t.shownDetails.address.number)+" "+t._s(t.shownDetails.address.box)+" ")]),e("div",[t._v(t._s(t.shownDetails.address.postcode)+" "+t._s(t.shownDetails.address.city))]),e("div",[t._v(t._s(t.$t(`country_${t.shownDetails.address.country}`)))])])])]):t._e()],1)],1)},[],!1,null,"a3de1206",null).exports},14306:function(t,e,i){"use strict";i.d(e,{A:function(){return m}});var s=i(32198),a=i(58294),n=i(71229),o=i(62765),r=i(67953),l=i(99168),d=i(13352),c=i(40588),u=i(78906);let p=(0,a.tZ)("BroadbandOrderContents");class h extends r.lD{async onSubscriptionChange(){this.loading=!0;try{this.bbPriceGuaranteeReduction=this.order.subscriptionId?await this.subscriptionService.getBroadbandPriceGuaranteeReduction(this.order.subscriptionId):0,this.loading=!1}catch(t){this.notifyGenericErrors(t),p.error("Failed fetch price guarantee",t)}}get product(){return(0,n.V5)(this.order)?this.order.product??null:this.order.toProduct}get fee(){let t=(0,u.bp)((0,u._w)(this.product?.monthly));return this.config.featureFlags.deductBbPriceGuarantee?t-this.bbPriceGuaranteeReduction:t}get oneOffTotal(){return"wait_for_appointment_booking"===this.order.state||"wait_for_identification"===this.order.state?0:this.installationFee}get productProperties(){let t=this.product?.definitions;return t?` 14 <li>${this.$t("broadband_usps.unlimited_internet")}</li> 15 <li>${this.$t("broadband_usps.download_up_to_{speed}",{speed:t.maxDownloadSpeed})}</li> 16 <li>${this.$t("broadband_usps.upload_up_to_{speed}",{speed:t.maxUploadSpeed})}</li> 17 `:""}get oneOffFees(){return"wait_for_appointment_booking"!==this.order.state&&"wait_for_identification"!==this.order.state&&this.order.installation?.fee?` 18 <li> 19 <span class="fee-description">${this.$t("installation")}</span> 20 <span class="fee-fee">${(0,o.up)(this.installationFee,"two_if_significant")}</span> 21 </li> 22 `:""}get installationFee(){return this.order.installation?.fee?this.order.installation.fee:0}constructor(...t){super(...t),this.loading=!1,this.bbPriceGuaranteeReduction=0}}(0,s.Cg)([(0,r.kv)()],h.prototype,"order",void 0),(0,s.Cg)([(0,r.y_)()],h.prototype,"config",void 0),(0,s.Cg)([(0,r.y_)()],h.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,r.ox)("creationOrder.subscriptionId",{immediate:!0})],h.prototype,"onSubscriptionChange",null);var _=h=(0,s.Cg)([(0,r.uA)({components:{Panel:c.A,MonthlyPrice:d.A,Heading:l.A}})],h),m=(0,i(41618).A)(_,function(){var t=this._self._c;return this._self._setupProxy,t("Panel",{staticClass:"BroadbandProductOrderOverview",attrs:{"data-qa":"broadband-product-order-overview"}},[t("Heading",{staticClass:"BroadbandProductOrderOverview__heading"},[this._v(this._s(this.$t("line_not_active.your_order_contents")))]),t("div",{staticClass:"BroadbandProductOrderOverview__product nextStyleLevel"},[t("div",{staticClass:"BroadbandProductOrderOverview__costTop"},[t("Heading",{staticClass:"BroadbandProductOrderOverview__boxHeading",attrs:{appearance:"h4"}},[this._v(" "+this._s(this.product.title)+" ")]),this.loading?t("div",{staticClass:"BroadbandProductOrderOverview__productMonthlyRate BroadbandProductOrderOverview__productMonthlyRate--loading shimmer"},[this._v(" Â ")]):t("div",{staticClass:"BroadbandProductOrderOverview__productMonthlyRate"},[t("MonthlyPrice",{attrs:{price:this.fee,hidePerMonthLabel:!0,size:"large"}})],1)],1),t("ul",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.productProperties,expression:"productProperties"}],staticClass:"BroadbandProductOrderOverview__productProperties okNokList"})]),this.oneOffTotal>0?t("div",{staticClass:"BroadbandProductOrderOverview__oneOffFees nextStyleLevel one-
22off-fees"},[t("div",{staticClass:"BroadbandProductOrderOverview__costTop"},[t("Heading",{staticClass:"BroadbandProductOrderOverview__boxHeading",attrs:{appearance:"h4"}},[this._v(" + "+this._s(this.$t("line_not_active.one_time_fees"))+" ")]),t("div",{staticClass:"BroadbandProductOrderOverview__oneOffFeeTotal one-off-total"},[t("MonthlyPrice",{attrs:{price:this.oneOffTotal,hidePerMonthLabel:!0,appearance:"leftAlignedUntil400",footNote:this.$t("line_not_active.will_appear_on_your_first_invoice"),size:"large"}})],1)],1),t("ul",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.oneOffFees,expression:"oneOffFees"}],staticClass:"BroadbandProductOrderOverview__productOneOffFees okNokList"})]):this._e()],1)},[],!1,null,"4740e0e2",null).exports},2202:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(67953),n=i(42123);class o extends a.lD{created(){this.selectedLanguage=this.$router.currentRoute.params.lang}get isBusinessContext(){return"my-business"===this.site.context}get topLine(){let t=new Date().getFullYear();return this.isBusinessContext?this.$t("footer.top_line_b2b",{currYear:t}):this.$t("footer.top_line_b2c",{currYear:t})}get footerLinks(){return this.isBusinessContext?this.$t("footer.links_b2b"):this.$t("footer.links_b2c")}constructor(...t){super(...t),this.selectedLanguage=null}}(0,s.Cg)([(0,a.y_)()],o.prototype,"site",void 0),(0,s.Cg)([(0,a.y_)()],o.prototype,"changeLanguage",void 0);var r=o=(0,s.Cg)([(0,a.uA)({components:{MvForm:n.A}})],o),l=(0,i(41618).A)(r,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("footer",{directives:[{name:"trackingSection",rawName:"v-trackingSection",value:"footer",expression:"'footer'"}],staticClass:"myViking-footer"},[e("div",{staticClass:"container"},[e("div",{staticClass:"column"},[e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.topLine,expression:"topLine"}]}),e("p",[t._v(" "+t._s(t.$t("footer.unleashed_ltd"))+", Kempische Steenweg 309/1, 3500 Hasselt, "+t._s(t.$t("footer.kbo_no"))+" 886.946.917. ")]),e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("footer.recaptcha_notice"),expression:"$t('footer.recaptcha_notice')"}],staticClass:"recaptcha-notice"}),e("nav",[e("ul",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.footerLinks,expression:"footerLinks"}]})])]),e("div",{staticClass:"column"},[e("div",{staticClass:"socialButtons nextStyleLevel"},[t.isBusinessContext?t._e():e("a",{staticClass:"socialButtons__button icon-instagram",attrs:{href:"https://www.instagram.com/mobilevikingsbe/",target:"_blank"}},[e("span",[t._v(t._s(t.$t("visit_our_instagram_page")))])]),t.isBusinessContext?t._e():e("a",{staticClass:"socialButtons__button icon-youtube",attrs:{href:"https://www.youtube.com/@MobileVikings/",target:"_blank"}},[e("span",[t._v(t._s(t.$t("visit_our_youtube_page")))])]),t.isBusinessContext?t._e():e("a",{staticClass:"socialButtons__button icon-tiktok",attrs:{href:"https://www.tiktok.com/@mobilevikingsbe",target:"_blank"}},[e("span",[t._v(t._s(t.$t("visit_our_tiktok_page")))])]),t.isBusinessContext?t._e():e("a",{staticClass:"socialButtons__button icon-facebook",attrs:{href:"https://fb.com/mobilevikings",target:"_blank"}},[e("span",[t._v(t._s(t.$t("visit_our_facebook_page")))])])]),e("MvForm",{staticClass:"languageSwitchContainer styleLevel1",attrs:{name:"languageSelection"}},[e("label",{attrs:{for:"sel_language"}},[t._v(t._s(t.$t("footer.language"))+":")]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedLanguage,expression:"selectedLanguage"}],staticClass:"select--small",attrs:{id:"sel_language",name:"sel_language"},on:{change:[function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selectedLanguage=e.target.multiple?i:i[0]},function(e){return t.changeLanguage(e.target.value)}]}},[e("option",{attrs:{lang:"nl",value:"nl"}},[t._v("Nederlands")]),e("option",{attrs:{lang:"fr",value:"fr"}},[t._v("Français")]),e("option",{attrs:{lang:"en",value:"en"}}
22,[t._v("English")])])])],1)])])},[],!1,null,"b25bfc52",null).exports},86904:function(t,e,i){"use strict";i.d(e,{A:function(){return d}});var s=i(32198),a=i(67953),n=i(99679),o=i(83487);class r extends a.lD{created(){this.showImpersonatingBanner=this.session.isImpersonating}get logoutLink(){return(0,o.bH)(this.$route,this.$router)}constructor(...t){super(...t),this.showImpersonatingBanner=!1}}(0,s.Cg)([(0,a.y_)()],r.prototype,"session",void 0);var l=r=(0,s.Cg)([(0,a.uA)({components:{InlineNotification:n.A}})],r),d=(0,i(41618).A)(l,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.showImpersonatingBanner?e("InlineNotification",{attrs:{notificationType:"error"},scopedSlots:t._u([{key:"secCta",fn:function(){return[e("RouterLink",{attrs:{to:t.logoutLink}},[t._v(" Log out ")])]},proxy:!0}],null,!1,0x10694315)},[t._v(" You are impersonating. If that is not your intention, please log out. ")]):t._e()},[],!1,null,null,null).exports},52138:function(t,e,i){"use strict";i.d(e,{A:function(){return p}});var s=i(32198),a=i(45556),n=i(5717),o=i(73603),r=i(67953),l=i(2202),d=i(86904);class c extends r.lD{get logoObj(){return"my-business"===this.mode?a:this.isChristmasTime?o:n}get isChristmasTime(){return this.config.isChristmasTime}get wrapperClasses(){return{"myViking-frameBasicWrapper":!0}}constructor(...t){super(...t),this.notifications=["dummy notification"]}}(0,s.Cg)([(0,r.kv)({default:"my-viking"})],c.prototype,"mode",void 0),(0,s.Cg)([(0,r.y_)()],c.prototype,"session",void 0),(0,s.Cg)([(0,r.y_)()],c.prototype,"config",void 0);var u=c=(0,s.Cg)([(0,r.uA)({components:{ImpersonationBanner:d.A,MyVikingFooter:l.A}})],c),p=(0,i(41618).A)(u,function(){var t=this._self._c;return this._self._setupProxy,t("div",{class:this.wrapperClasses},[t("ImpersonationBanner"),t("div",{staticClass:"myViking-frameBasic MyVikingTP"},[t("nav",[t("a",{attrs:{href:"/"}},[t("img",{attrs:{src:this.logoObj,alt:"Mobile Vikings logo"}})])]),t("div",{staticClass:"myViking-frameBasic__content"},[t("main",[t("section",[t("div",{staticClass:"loginBox"},[this._t("default")],2),t("div",{staticClass:"backOption"},[t("a",{attrs:{href:this.config.baseUrl}},[t("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("login.back_to_home"),expression:"$t('login.back_to_home')"}]})])])])]),t("MyVikingFooter")],1)])],1)},[],!1,null,null,null).exports},60490:function(t,e,i){"use strict";i.d(e,{A:function(){return m}});var s=i(32198),a=i(67953),n=i(2202),o=i(86904),r=i(8078);class l extends a.lD{}(0,s.Cg)([(0,a.kv)({type:Number,required:!1,default:1})],l.prototype,"currentPageNumber",void 0),(0,s.Cg)([(0,a.kv)({type:Array,required:!0})],l.prototype,"pageLabels",void 0);var d=l=(0,s.Cg)([(0,a.uA)({components:{}})],l),c=i(41618),u=(0,c.A)(d,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("ol",{staticClass:"wizardPageIndicator"},t._l(t.pageLabels,function(i,s){return e("li",{key:`pageIndicator-${s}`,class:["wizardPageIndicator__item",{"wizardPageIndicator__item--current":s===t.currentPageNumber-1,"wizardPageIndicator__item--passed":s<t.currentPageNumber-1}]},[e("span",{staticClass:"wizardPageIndicator__itemText"},[t._v(t._s(i))])])}),0)},[],!1,null,"2d25d861",null).exports,p=i(3231);class h extends a.lD{get headerTitle(){return this.title||this.titleService.pageTitle}get description(){return this.titleService.pageDescription}get hasNoCompanies(){return this.session.companies&&0===this.session.companies.length}get showPageIndicator(){return!!this.pageLabels}get hideBackLink(){return this.isBroadband||this.showPageIndicator||this.hideBackToMyViking}hasSidebarContent(){return!!this.$slots.sidebar}hasFormFooterContent(){return!!this.$slots.formFooter}constructor(...t){super(...t),this.notifications=["dummy notification"],this.RouteName=p.A}}(0,s.Cg)([(0,a.y_)()],h.prototype,"session",void 0),(0,s.Cg)([(0,a.y_)()],h.prototype,"config",void 0),(0,s.Cg)([(0,a.y_)()],h.prototype,"titleService",void 0),(0,s.Cg)([(0,a.y_)()],h.prototype,"site",void 0),(0,s.Cg)([(0,a.y_)()],h.prototype,"$validator",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:null})],h.prototype,"title",void 0),(0,s.Cg)([(0,a.kv)({required:!1,type:Boolean,default:!1})],h.prototype,"isBroadband",void 0),(0,s.Cg)([(0,a.kv)({required:!1,default:null})],h.prototype,"pageLabels",void 0),(0,s.Cg)([(0,a.kv)({type:Number,default:1})],h.prototype,"currentPageNumber",void 0),(0,s.Cg)([(0,a.kv)({required:!1,type:Boolean,default:!1})],h.prototype,"hideUserMenu",void 0),(0,s.Cg)([(0,a.kv)({required:!1,type:Boolean,default:!1})],h.prototype,"hideBackToMyViking",void 0),(0,s.Cg)([(0,a.kv)({required:!1,type:Boolean,default:!1})],h.prototype,"enableStickySidebar",void 0);var _=h=(0,s.Cg)([(0,a.uA)({components:{WizardPageIndicator:u,MyVikingFooter:n.A,MyVikingUserMenu:r.A,ImpersonationBanner:o.A}})],h),m=(0,c.A)(_,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"myVikingFrameWizard MyVikingTP",class:{"myVikingFrameWizard--withSideBar":this.hasSidebarContent()}},[t("ImpersonationBanner"),t("header",{staticClass:"myVikingFrameWizard__header"},[t("div",{staticClass:"myViking-frame-headerContainer"},[t("nav",["my-viking"===this.site.context&&this.isBroadband?[t("RouterLink",{staticClass:"headerLogo",attrs:{to:{name:this.RouteName.fixedLines},title:this.$t("back_to_{location}",{location:this.$t("fixed_lines")})}},[t("span",[this._v(this._s(this.$t("back_to_{location}",{location:this.$t("fixed_lines")})))])])]:"my-viking"===this.site.context?[t("RouterLink",{staticClass:"headerLogo",attrs:{to:{name:this.RouteName.myViking},title:this.$t("back_to_{location}",{location:this.$t("sim_balance")})}},[t("span",[this._v(this._s(this.$t("back_to_{location}",{location:this.$t("sim_balance")})))])]),t("div",{staticClass:"headerButtons"},[this.hideBackLink?this._e():t("RouterLink",{staticClass:"back-to-mv",attrs:{to:{name:this.RouteName.myViking}}},[t("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("back_to_my_viking"),expression:"$t('back_to_my_viking')"}]}
22)])],1)]:"my-business"===this.site.context&&this.hasNoCompanies?[t("a",{staticClass:"headerLogo headerLogo--b2b",attrs:{href:`/${this.locale}/business`}},[t("span",[this._v(this._s(this.$t("back_to_business_overview")))])]),t("div",{staticClass:"headerButtons"},[this.hideBackLink?this._e():t("a",{staticClass:"back-to-mv",attrs:{href:`/${this.locale}/business`}},[t("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("back_to_business_overview"),expression:"$t('back_to_business_overview')"}]})])])]:"my-business"===this.site.context?[t("RouterLink",{staticClass:"headerLogo headerLogo--b2b",attrs:{to:{name:this.RouteName.myBusiness}}},[t("span",[this._v(this._s(this.$t("back_to_my_business")))])]),this.hideBackLink?this._e():t("div",{staticClass:"headerButtons"},[t("RouterLink",{staticClass:"back-to-mv",attrs:{to:{name:this.RouteName.myBusiness}}},[t("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("back_to_my_business"),expression:"$t('back_to_my_business')"}]})])],1)]:[t("RouterLink",{staticClass:"headerLogo",attrs:{to:{name:this.RouteName.homePage}}},[t("span",[this._v(this._s(this.$t("back_to_homepage")))])])],this.hideUserMenu||this.showPageIndicator?this._e():t("MyVikingUserMenu",{staticClass:"user-menu",attrs:{notifications:this.notifications}}),this.showPageIndicator?t("div",{staticClass:"wizard-pagination myVikingFrameWizard__pageIndicator"},[t("WizardPageIndicator",{attrs:{pageLabels:this.pageLabels,currentPageNumber:this.currentPageNumber}})],1):this._e()],2),t("div",{staticClass:"myViking-frame-headerContainer-content"},[t("h1",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.headerTitle,expression:"headerTitle"}],staticClass:"title"}),this.description?t("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.description,expression:"description"}],staticClass:"title-description"}):this._e()])]),t("div",{staticClass:"myViking-frame-headerBackground"},[t("div",{staticClass:"ribbonContainer"},[t("div",{staticClass:"ribbon"},[t("div",{staticClass:"ribbon__image ribbon__image--bgImage",style:` 23 --bg-img-url: var(--myVikingFrame-ribbon-bg-url); 24 --bg-img-2x-url: var(--myVikingFrame-ribbon-bg-2x-url); 25 `},[this._v(" Â ")])])])])]),t("div",{staticClass:"myVikingFrameWizard__body myViking-frame-content"},[t("div",{staticClass:"myVikingFrameWizard__innerBody"},[t("main",{staticClass:"myVikingFrameWizard__main"},[this._t("default")],2),this.hasSidebarContent()?t("aside",{directives:[{name:"sticky-box",rawName:"v-sticky-box",value:{offset:16,disabled:!this.enableStickySidebar},expression:"{ offset: 16, disabled: !enableStickySidebar }"}],staticClass:"myVikingFrameWizard__sidebar"},[this._t("sidebar")],2):this._e(),this.hasFormFooterContent()?t("div",{staticClass:"myVikingFrameWizard__formFooter"},[this._t("formFooter")],2):this._e()])]),t("MyVikingFooter")],1)},[],!1,null,"3e5128c7",null).exports},15419:function(t,e,i){"use strict";i.d(e,{A:function(){return d}});var s=i(32198),a=i(67953),n=i(96681),o=i(32100);class r extends a.lD{get options(){return this.routes.filter(t=>(0,o.e2)(t,this.session)).map(t=>({path:t.path,name:t.name,label:t.meta&&t.meta.label?this.$t(t.meta.label).toString():t.meta&&t.meta.title?this.$t(t.meta.title).toString():t.name}))}get currentRoute(){let t=this.$route;return{path:t.path,name:t.name||"",label:t.meta&&t.meta.label}}set currentRoute(t){this.$router.push(t.path)}}(0,s.Cg)([(0,a.y_)()],r.prototype,"session",void 0),(0,s.Cg)([(0,a.kv)({type:Array,required:!0})],r.prototype,"routes",void 0),(0,s.Cg)([(0,a.kv)({type:Number,required:!1,default:1})],r.prototype,"styleLevel",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!0})],r.prototype,"ariaLabel",void 0);var l=r=(0,s.Cg)([(0,a.uA)({components:{TabsHeader:n.A}})],r),d=(0,i(41618).A)(l,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("TabsHeader",{attrs:{"aria-label":t.ariaLabel,optionKey:"name",options:t.options,styleLevel:t.styleLevel,realTabsList:!1,hrefKey:"path"},scopedSlots:t._u([{key:"default",fn:function({option:e}){return[t._v(" "+t._s(e.label)+" ")]}}]),model:{value:t.currentRoute,callback:function(e){t.currentRoute=e},expression:"currentRoute"}})},[],!1,null,null,null).exports}
25,33905:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{}(0,s.Cg)([(0,a.kv)()],n.prototype,"label",void 0),(0,s.Cg)([(0,a.kv)({default:"default"})],n.prototype,"appearance",void 0),(0,s.Cg)([(0,a.kv)({required:!1,default:5})],n.prototype,"valueLength",void 0);var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"info-item",class:{"infoItem--large":"large"===this.appearance},style:`--value-length: ${this.valueLength}ch`,attrs:{"data-qa":"info-item"}},[t("span",{staticClass:"label",attrs:{"data-qa":"info-item--label"}},[this._v(this._s(this.label))]),t("span",{staticClass:"value",attrs:{"data-qa":"info-item--value"}},[this._t("default")],2)])},[],!1,null,null,null).exports},74066:function(t,e,i){"use strict";i.d(e,{A:function(){return v}});var s=i(32198),a=i(67953),n=i(95990),o=i(24176),r=i(56562),l=i(47352),d=i(50778),c=i(42580);class u extends a.lD{get tagAppearance(){return this.invoice.hasScheduledPayment?"vibrantBlue":this.isUnpaid?"redOrange":this.isPaid?"green":"vibrantBlue"}get isUnpaid(){return!this.invoice.paid&&"pending_payment"!==this.invoice.state}get isPending(){return"pending_payment"===this.invoice.state}get isPaid(){return this.invoice.paid}get linkedMobileSubscription(){return this.invoice?.subscriptionId&&this.session.mobileSubscriptions?.find(t=>t.id===this.invoice.subscriptionId)||null}get linkedBroadbandSubscription(){return this.invoice?.subscriptionId&&this.session.broadbandSubscriptions?.find(t=>t.id===this.invoice.subscriptionId)||null}formattedInstallationAddress(t){return(0,c.H8)(t.installationAddress,this.locale,this.$t.bind(this),"multi_line",!1)}get invoiceDetailLink(){return{query:(0,l.Bb)({spc:this.invoice.isCreditnote?"credit-note-details":"invoice-details",id:this.invoice.id,companyId:this.invoice.companyId})}}}(0,s.Cg)([(0,a.kv)()],u.prototype,"invoice",void 0),(0,s.Cg)([(0,a.kv)()],u.prototype,"loading",void 0),(0,s.Cg)([(0,a.y_)()],u.prototype,"session",void 0);var p=u=(0,s.Cg)([(0,a.uA)({components:{Tag:d.A}})],u),h=i(41618),_=(0,h.A)(p,function(){var t=this._self._c;return this._self._setupProxy,this.loading?t("div",{staticClass:"ContentBoxList__item ContentBoxList__item--iconScroll ContentBoxList__item--withBadge ContentBoxList__item--link"},[t("div",{staticClass:"invoicesEntry invoicesEntry--isLoading"},[t("div",{staticClass:"invoicesEntry__container"},[t("div",{staticClass:"invoicesEntry__dateTypeCol"},[t("div",{staticClass:"invoicesEntry__date"},[this._v("Â ")]),t("div",{staticClass:"invoicesEntry__type"},[this._v("Â ")])]),t("div",{staticClass:"invoicesEntry__subscriptionCol"},[t("div",{staticClass:"invoicesEntry__alias"},[this._v("Â ")]),t("div",{staticClass:"invoicesEntry__msisdn"},[this._v("Â ")])]),t("div",{staticClass:"invoicesEntry__paidDateCol"},[t("div",{staticClass:"invoicesEntry__label"},[this._v("Â ")]),t("div",{staticClass:"invoicesEntry__paidDate"},[this._v("Â ")])]),t("div",{staticClass:"invoicesEntry__amountCol"},[t("div",{staticClass:"shimmer"},[this._v("Â ")])])])])]):t("RouterLink",{directives:[{name:"rippleEffect",rawName:"v-rippleEffect"}],staticClass:"ContentBoxList__item ContentBoxList__item--iconScroll ContentBoxList__item--withBadge ContentBoxList__item--link",attrs:{to:this.invoiceDetailLink}},[t("div",{staticClass:"invoicesEntry",class:{"invoicesEntry--paid":this.isPaid,"invoicesEntry--unpaid":this.isUnpaid,"invoicesEntry--pendingPayment":this.isPending}},[t("div",{staticClass:"invoicesEntry__container"},[t("div",{staticClass:"invoicesEntry__dateTypeCol"},[t("div",{staticClass:"invoicesEntry__date"},[this._v(this._s(this._f("date")(this.invoice.date)))]),t("div",{staticClass:"invoicesEntry__type"},[this._v(this._s(this.$t(`invoices.entry_type__${this.invoice.type}`)))])]),t("div",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],staticClass:"invoicesEntry__subscriptionCol"},[this.linkedMobileSubscription?[t("div",{staticClass:"invoicesEntry__alias"},[this._v(this._s(this.linkedMobileSubscription.alias))]),t("div",{staticClass:"invoicesEntry__msisdn"},[this._v(this._s(this._f("msisdn")(this.linkedMobileSubscription.msisdn)))])]:this._e(),this.linkedBroadbandSubscription?[t("div",{staticClass:"invoicesEntry__alias"},[this._v(this._s(this.linkedBroadbandSubscription.label))]),t("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.formattedInstallationAddress(this.linkedBroadbandSubscription),expression:"formattedInstallationAddress(linkedBroadbandSubscription)"}],staticClass:"invoicesEntry__address"})]:this._e()],2),t("div",{staticClass:"invoicesEntry__paidDateCol"},[this.invoice.paid&&this.invoice.paidDate?[t("div",{staticClass:"invoicesEntry__label"},[this._v(this._s(this.$t("invoices.paid_on")))]),t("div",{staticClass:"invoicesEntry__paidDate"},[this._v(this._s(this._f("date")(this.invoice.paidDate)))])]:this.invoice.hasScheduledPayment?[t("div",{staticClass:"invoicesEntry__label"},[this._v(this._s(this.$t("invoices.will_be_paid_on")))]),t("div",{staticClass:"invoicesEntry__sepaDueDate"},[this._v(this._s(this._f("date")(this.invoice.sepaDueDate)))])]:!this.invoice.paid&&this.invoice.dueDate?[t("div",{staticClass:"invoicesEntry__label"},[this._v(this._s(this.$t("invoices.pay_before")))]),t("div",{staticClass:"invoicesEntry__dueDate"},[this._v(this._s(this._f("date")(this.invoice.dueDate)))])]:this._e()],2),t("div",{staticClass:"invoicesEntry__amountCol"},[t("Tag",{staticClass:"invoicesEntry__amount",attrs:{size:"small",appearance:this.tagAppearance}},[this._v(" "+this._s(this._f("moneyCents")(this.invoice.reducedAmount))+" ")])],1)])])])},[],!1,null,"cb15df70",null).exports;class m extends a.lD{morePaid(){return this.paidInvoices.more()}moreUnpaid(){return this.unpaidInvoices.more()}}(0,s.Cg)([(0,a.kv)()],m.prototype,"loading",void 0),(0,s.Cg)([(0,a.kv)()],m.prototype,"paidInvoices",void 0),(0,s.Cg)([(0,a.kv)()],m.prototype,"unpaidInvoices",void 0);var g=m=(0,s.Cg)([(0,a.uA)({components:{ErrorPanel:n.A,InvoicesEntry:_,MvSection:r.A,CallToAction:o.A}})],m),v=(0,h.A)(g,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"invoicesList"},[this.loading?[t("MvSection",{staticClass:"invoicesList__isLoading"},[t("div",{staticClass:"ContentBoxList styleLevel1"},[t("InvoicesEntry",{attrs:{loading:!0}})],1)])]:[this.unpaidInvoices.isEmpty&&this.paidInvoices.isEmpty?t("ErrorPanel",{attrs:{"data-qa":"invoicesList-noInvoices",title:this.$t("no_invoices_banner.title"),description:this.$t("no_invoices_banner.description"),iconCssVar:"--icon-scroll-bg-url",appearance:"ribbon"}}):this._e(),this.unpaidInvoices.isEmpty?this._e():t("MvSection",{staticClass:"unpaid-invoices",attrs:{title:this.$t("invoices.unpaid_invoices_title")}},[t("div",{staticClass:"ContentBoxList styleLevel1"},this._l(this.unpaidInvoices.items,function(e){return t("InvoicesEntry",{key:e.id,attrs:{invoice:e}})}),1),this.unpaidInvoices.hasMore?t("div",{staticClass:"invoicesList__loadM
25ore"},[t("CallToAction",{staticClass:"load-more-btn",attrs:{appearance:"quarternary-small",loadingMsg:this.$t("loading"),once:this.moreUnpaid}},[this._v(" "+this._s(this.$t("load_more"))+" ")])],1):this._e()]),this.paidInvoices.isEmpty?this._e():t("MvSection",{staticClass:"paid-invoices",attrs:{title:this.$t("invoices.paid_invoices_title")}},[t("div",{staticClass:"ContentBoxList styleLevel1"},this._l(this.paidInvoices.items,function(e){return t("InvoicesEntry",{key:e.id,attrs:{invoice:e}})}),1),this.paidInvoices.hasMore?t("div",{staticClass:"invoicesList__loadMore"},[t("CallToAction",{staticClass:"load-more-btn",attrs:{appearance:"quarternary-small",loadingMsg:this.$t("loading"),once:this.morePaid}},[this._v(" "+this._s(this.$t("load_more"))+" ")])],1):this._e()])]],2)},[],!1,null,"4a8137f8",null).exports},45656:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{}(0,s.Cg)([(0,a.kv)({default:"block"})],n.prototype,"appearance",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],n.prototype,"isWarning",void 0);var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,t("div",{class:["linksetInfo",{"linksetInfo--inline":"inline"===this.appearance,"linksetInfo--isWarning":this.isWarning}]},[this._t("default")],2)},[],!1,null,"68a8e818",null).exports},59844:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(67953),n=i(95990);class o extends a.lD{}var r=o=(0,s.Cg)([(0,a.uA)({components:{ErrorPanel:n.A}})],o),l=(0,i(41618).A)(r,function(){var t=this._self._c;return this._self._setupProxy,t("ErrorPanel",{staticClass:"NoSimBanner MyVikingTP",attrs:{title:this.$t("no_sim_banner.title"),description:this.$t("no_sim_banner.description"),ctaText:this.$t("no_sim_banner.cta_view_subscriptions"),ctaHref:`/${this.$i18n.locale}/offer/subscriptions/`,ctaIsExternalLink:!0,ctaAppearance:"primary",secCtaText:this.$t("no_sim_banner.cta_view_prepaid"),secCtaHref:`/${this.$i18n.locale}/offer/prepaid/`,secCtaIsExternalLink:!0,iconCssVar:"--icon-simcard-bg-url",appearance:"ribbon"}})},[],!1,null,null,null).exports},49458:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(67953),n=i(60016);class o extends a.lD{async resolveValue(t){let e={},i={};for(let a of Object.keys(t))s(t[a].status,t=>{e[a]=t}),s(t[a].hint,t=>{i[a]=t});function s(t,e){void 0===t?e(""):null===t?e(null):(e(null),Promise.resolve(t).then(t=>e(t)))}this.statuses=e,this.hints=i}canEdit(t){return!!t}openEditPanel(t,e){this.canEdit(t)&&this.$router.push({query:{...t,selectedOption:e}})}tabIndex(t){return this.isStringOption(t)&&this.canEdit(t.query)?0:-1}isBooleanOption(t){return!!t.toggle}isStringOption(t){return!t.toggle}constructor(...t){super(...t),this.statuses={},this.hints={}}}(0,s.Cg)([(0,a.kv)()],o.prototype,"settings",void 0),(0,s.Cg)([(0,a.kv)()],o.prototype,"appearance",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],o.prototype,"hideDividers",void 0),(0,s.Cg)([(0,a.ox)("settings",{immediate:!0,deep:!0})],o.prototype,"resolveValue",null);var r=o=(0,s.Cg)([(0,a.uA)({components:{SwitchButton:n.A}})],o),l=(0,i(41618).A)(r,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("ul",{staticClass:"quickSettingsList quick-settings MyVikingTP",class:{"quickSettingsList--singleColumn":"singleColumn"===t.appearance,"quickSettingsList--noDividers":t.hideDividers},attrs:{"data-qa":"quick-settings-list"}},t._l(t.settings,function(i,s){return e("li",{directives:[{name:"rippleEffect",rawName:"v-rippleEffect",value:t.canEdit(i.query),expression:"canEdit(setting.query)"}],key:s,staticClass:"quick-setting quickSettingsList__quickSetting",class:[`quick-setting-${s}`,{"quickSettingsList__quickSetting--noLink":!t.canEdit(i.query),"quickSettingsList__quickSetting--hasToggle":t.isBooleanOption(i)}],attrs:{"data-qa":`quick-setting-list--item::${s}`,tabindex:t.tabIndex(i)},on:{keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.openEditPanel(i.query,s)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.openEditPanel(i.query,s)}],click:function(e){return t.openEditPanel(i.query,s)}}},[e("div",{staticClass:"main-info quickSettingsList__quickSetting__mainInfo",class:{"quickSettingsList__quickSetting__mainInfo--readOnly":i.isViewOnl
25y,"quickSettingsList__quickSetting__mainInfo--noIcon":!t.canEdit(i.query),"quickSettingsList__quickSetting__mainInfo--hasToggle":t.isBooleanOption(i),"quickSettingsList__quickSetting__mainInfo--addIcon":t.isStringOption(i)&&"add"===i.actionIcon}},[t.isStringOption(i)?[e("strong",[t._v(t._s(i.title))]),i.loading||!t.statuses||null===t.statuses[s]?e("div",{staticClass:"is-loading",style:`--value-length: ${i.statusLength}ch`},[t._v(" Â ")]):t.statuses[s]&&""!==t.statuses[s]?e("div",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],staticClass:"current-status"},[t._v(" "+t._s(t.statuses[s])+" ")]):t._e()]:t._e(),t.isBooleanOption(i)?e("SwitchButton",{attrs:{label:i.title,loading:i.loading,offText:i.statusText&&i.statusText[1]||t.$t("disabled"),onText:i.statusText&&i.statusText[0]||t.$t("enabled"),save:t=>i.toggle(t),disabled:i.disabled,appearance:"asQuickSetting",value:t.statuses&&t.statuses[s]}}):t._e()],2),t.hints[s]&&""!==t.hints[s]?e("div",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],staticClass:"hint"},[t._v(" "+t._s(t.hints[s])+" ")]):t._e(),null===t.hints[s]?e("div",{staticClass:"is-loading",style:`--value-length: ${i.statusLength}ch`}):t._e()])}),0)},[],!1,null,"2124f7f5",null).exports},56562:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{}(0,s.Cg)([(0,a.kv)({type:String,required:!1})],n.prototype,"title",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],n.prototype,"noTitleIndentation",void 0);var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,t("section",{staticClass:"MvSection"},[this.title?t("h4",{staticClass:"MvSection__title",class:{"MvSection__title--noIndentation":this.noTitleIndentation}},[this._v(" "+this._s(this.title)+" ")]):this._e(),this._t("default")],2)},[],!1,null,"52ed652c",null).exports},85856:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{}(0,s.Cg)([(0,a.kv)({required:!0})],n.prototype,"title",void 0),(0,s.Cg)([(0,a.kv)({required:!0})],n.prototype,"description",void 0);var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"sidePanelError"},[t("section",{staticClass:"sidePanelError__section"},[t("h3",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.title,expression:"title"}],staticClass:"sidePanelError__title"}),t("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.description,expression:"description"}],staticClass:"sidePanelError__description"})])])},[],!1,null,"374da7f3",null).exports},76370:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{hasEditListener(){return!!this.$listeners.edit}get tagType(){return(this.to||this.hasEditListener())&&!this.loading?"a":"div"}get isClickable(){return"div"!==this.tagType}get href(){if(this.isClickable)return this.to?this.to:"javascript:;"}emitEdit(){this.disabled||this.loading||this.$emit("edit")}}(0,s.Cg)([(0,a.kv)()],n.prototype,"title",void 0),(0,s.Cg)([(0,a.kv)({default:null})],n.prototype,"value",void 0),(0,s.Cg)([(0,a.kv)({default:null})],n.prototype,"to",void 0),(0,s.Cg)([(0,a.kv)({default:null})],n.prototype,"tip",void 0),(0,s.Cg)([(0,a.kv)({default:5})],n.prototype,"valueLength",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,default:!1})],n.prototype,"invalid",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,default:!1})],n.prototype,"disabled",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,default:!1})],n.prototype,"warning",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,default:!1})],n.prototype,"externalLink",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,default:!1})],n.prototype,"loading",void 0),(0,s.Cg)([(0,a.kv)({type:String,default:""})],n.prototype,"appearance",void 0);var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this,e=t._self._c;return t._self._setupProxy,e(t.tagType,{directives:[{name:"rippleEffect",rawName:"v-rippleEffect",value:t.isClickable&&!t.disabled&&!t.loading,expression:"isClickable && !disabled && !loading"}],tag:"Component",staticClass:"sidePanelItem",class:{"sidePanelItem--hasWarning":t.warning,"sidePanelItem--isInvalid":t.invali
25d,"sidePanelItem--isExternalLink":t.externalLink,"sidePanelItem--isLoading":t.loading,"sidePanelItem--isDisabled":t.disabled,"sidePanelItem--boxed":"boxed"===t.appearance},style:`--value-length: ${t.valueLength}ch`,attrs:{href:t.href,target:t.externalLink&&t.to?"_blank":void 0,"aria-disabled":t.disabled},on:{click:t.emitEdit,keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.emitEdit.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.emitEdit.apply(null,arguments)}]}},[e("div",{staticClass:"sidePanelItem__container"},[e("span",{staticClass:"sidePanelItem__label"},[e("span",[t._v(t._s(t.title))])]),e("span",{staticClass:"sidePanelItem__value value",class:{"sidePanelItem__value--slotFilled":!!t.$slots.default}},[t._t("default",function(){return[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.value,expression:"value"}]})]})],2)]),t.tip?e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.tip,expression:"tip"}],staticClass:"sidePanelItem__tip"}):t._e()])},[],!1,null,null,null).exports},95630:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(44739),n=i(67953);class o extends n.lD{static{this.SLIDE_ANIMATION_DELAY_IN_MS=250}created(){this.encompassingStepsApi.registerStep(this.stepName)}get isStepActive(){return this.encompassingStepsApi.activeStep()===this.stepName}async focusStep(){await (0,a.yy)(o.SLIDE_ANIMATION_DELAY_IN_MS),this.isStepActive&&this.$el.focus()}goToPreviousStep(t){this.isStepVisible&&this.encompassingStepsApi.initialStep()!==this.stepName&&(this.encompassingStepsApi.popStep(o.SLIDE_ANIMATION_DELAY_IN_MS),t.stopPropagation())}get isStepVisible(){return this.encompassingStepsApi.isStepVisible(this.stepName)}}(0,s.Cg)([(0,n.y_)()],o.prototype,"encompassingStepsApi",void 0),(0,s.Cg)([(0,n.kv)({required:!0})],o.prototype,"stepName",void 0),(0,s.Cg)([(0,n.ox)("isStepActive",{immediate:!0})],o.prototype,"focusStep",null);var r=o=(0,s.Cg)([n.uA],o),l=(0,i(41618).A)(r,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{directives:[{name:"trap-focus",rawName:"v-trap-focus",value:{preventTrap:!t.isStepActive},expression:"{ preventTrap: !isStepActive }"}],staticClass:"step",class:{active:t.isStepActive},attrs:{tabIndex:"-1","data-step-name":t.stepName},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.goToPreviousStep.apply(null,arguments)}}},[t.isStepVisible?t._t("default"):t._e()],2)},[],!1,null,null,null).exports},55056:function(t,e,i){"use strict";i.d(e,{A:function(){return d}});var s=i(32198),a=i(67953),n=i(44739);class o{initialize(t){this.stepStack=[t]}registerStep(t){this.stepStack.length||this.initialize(t)}pushStep(t){0===this.stepStack.length||-1===this.stepStack.indexOf(t)&&this.stepStack.push(t)}popStep(t){if(this.stepStack.length<=1)return;let e=this.stepStack[this.stepStack.length-2];this.popToStep(e,t)}async popToStep(t,e){let i=this.stepStack.indexOf(t);-1!==i&&(await (0,n.yy)(e||0),this.startRecedingToStepAtIndex(i))}async startRecedingToStepAtIndex(t){let e=this.stepStack.length-t-1,i=this.stepStack.splice(t+1,e);this.recedingStep=i[i.length-1],await (0,n.yy)(300),this.recedingStep=null}get initialStep(){return this.stepStack[0]}get activeStep(){return this.stepStack[this.stepStack.length-1]}isStepVisible(t){return this.recedingStep===t||-1!==this.stepStack.indexOf(t)}constructor(){this.stepStack=[],this.recedingStep=null}}class r extends a.lD{get activeStep(){return this.stepController.activeStep}pushStep(t){this.stepController.pushStep(t)}popStep(t){this.stepController.popStep(t)}popToStep(t,e){this.stepController.popToStep(t,e)}popToInitialStep(t){this.stepController.popToStep(this.stepController.initialStep,t)}constructor(...t){super(...t),this.stepController=new o,this.encompassingStepsApi={registerStep:t=>this.stepController.registerStep(t),activeStep:()=>this.stepController.activeStep,isStepVisible:t=>this.stepController.isStepVisible(t),popStep:t=>this.stepController.popStep(t),initialStep:()=>this.stepController.initialStep}}}(0,s.Cg)([(0,a.ku)()],r.prototype,"encompassingStepsApi",void 0);var l=r=(0,s.Cg)([(0,a.uA)({components:{}})],r),d=(0,i(41618).A)(l,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"steps"},[this._t("default")],2)},[],!1,null,null,null).exports}
25,91543:function(t,e,i){"use strict";i.d(e,{A:function(){return L}});var s=i(32198),a=i(92577),n=i(39490),o=i(97852),r=i(57399),l=i(67953);class d extends l.lD{}(0,s.Cg)([(0,l.kv)({required:!1,default:!1})],d.prototype,"isLoading",void 0),(0,s.Cg)([(0,l.kv)({required:!0,default:""})],d.prototype,"label",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:""})],d.prototype,"details",void 0),(0,s.Cg)([(0,l.kv)({required:!1})],d.prototype,"appearance",void 0);var c=d=(0,s.Cg)([(0,l.uA)({})],d),u=i(41618),p=(0,u.A)(c,function(){var t=this._self._c;return this._self._setupProxy,t("div",{class:["SubscriptionDetailsUI",{"SubscriptionDetailsUI--isLoading":this.isLoading,"SubscriptionDetailsUI--inList":"inList"===this.appearance}],attrs:{"data-qa":"subscriptionDetails"}},[t("div",{staticClass:"SubscriptionDetailsUI__container"},[this.$slots.tag&&!this.isLoading?t("div",{staticClass:"SubscriptionDetailsUI__tag",attrs:{"data-qa":"subscriptionDetails__tag"}},[this._t("tag")],2):this._e(),this.$slots.icon?t("div",{staticClass:"SubscriptionDetailsUI__icon"},[this._t("icon")],2):this._e(),t("strong",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],class:["SubscriptionDetailsUI__alias",{shimmer:this.isLoading}],attrs:{"data-qa":"subscriptionDetails__alias"}},[this._v(this._s(this.isLoading?"Â ":this.label))]),this.isLoading||this.details?t("div",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],class:["SubscriptionDetailsUI__info",{shimmer:this.isLoading}],attrs:{"data-qa":"subscriptionDetails__info"}},[this._v(" "+this._s(this.isLoading?"Â ":this.details)+" ")]):this._e()])])},[],!1,null,null,null).exports,h=i(71229),_=i(50778),m=i(80631),g=i(20684),v=i(10183),f=i(42580),y=i(2691);class b extends l.lD{async fetchHardwareReturn(){if(this.subscription&&(0,n.V)(this.subscription)){let t=await this.broadbandService.getHardwareReturnInfo(this.subscription);this.hardwareReturn=(0,y.wp)(t)}}get subscriptionOrders(){return this.subscription?.id&&this.orders?this.orders.filter(t=>t.subscriptionId===this.subscription.id):[]}get label(){return this.subscription?this.subscription.label:""}get details(){return this.subscription&&(0,n.V)(this.subscription)?(0,f.H8)(this.subscription.installationAddress,this.locale,this.$t.bind(this),"single_line",!1):""}get showTag(){return this.tagMessage&&this.tagMessage.length>0||this.subscription?.state!=="enabled"}get tagDescription(){if(this.tagMessage&&this.tagMessage.length>0)return this.tagMessage;if(!this.subscription)return"";if("enabled"===this.subscription.state)return this.$t("subscription_state.enabled");if((0,n.V)(this.subscription)){if(this.hardwareReturn)return this.$t("subscription_state.terminating");if(this.subscriptionOrders.length>0){if(C("wait_for_package_shipment",this.subscriptionOrders))return this.$t("subscription_state.self_install_wait_for_package_shipment");if(C("wait_for_package_delivery",this.subscriptionOrders))return this.$t("subscription_state.self_install_wait_for_package_delivery");if(C("wait_for_activation_request",this.subscriptionOrders))return this.$t("subscription_state.self_install_wait_for_activation");if(C("wait_for_appointment_booking",this.subscriptionOrders))return this.$t("subscription_state.technician_book_appointment");if(C("activating",this.subscriptionOrders))return this.$t("subscription_state.self_install_activating")}if("deactivated"!==this.subscription.state)return this.$t("subscription_state.broadband_not_active")}return this.$t("subscription_state.no_longer_active")}constructor(...t){super(...t),this.hardwareReturn=null}}function C(t,e){return e.some(e=>{var i,s,a;return(0,h.V5)(e)&&(i=e,i?.installation?.method==="self_install")&&(s=e,Array.isArray(a=t)||(a=[a]),a.includes(s.state))})}(0,s.Cg)([(0,l.y_)()],b.prototype,"broadbandService",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:!1})],b.prototype,"isLoading",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:null})],b.prototype,"orders",void 0),(0,s.Cg)([(0,l.kv)({required:!0,default:null})],b.prototype,"subscription",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:!1})],b.prototype,"withIcon",void 0),(0,s.Cg)([(0,l.kv)({required:!1})],b.prototype,"subIcon",void 0),(0,s.Cg)([(0,l.kv)({default:null})],b.prototype,"tagMessage",void 0),(0,s.Cg)([(0,l.kv)({default:""})],b.prototype,"tagAppearance",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:!1})],b.prototype,"keepSmallLook",void 0),(0,s.Cg)([(0,l.kv)({required:!1})],b.prototype,"appearance",void 0),(0,s.Cg)([(0,l.ox)("subscription",{immediate:!0})],b.prototype,"fetchHardwareReturn",null);var w=b=(0,s.Cg)([(0,l.uA)({components:{Badge:v.A,SubscriptionDetail
25sUi:p,Tag:_.A,AvatarRoot:g.A,AvatarImage:m.A}})],b),S=(0,u.A)(w,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("SubscriptionDetailsUi",{attrs:{details:t.details,label:t.label,isLoading:t.isLoading,appearance:t.appearance},scopedSlots:t._u([t.withIcon?{key:"icon",fn:function(){return[e("AvatarRoot",{attrs:{loading:t.isLoading,size:"smallUntil800px"},scopedSlots:t._u(["switch"===t.subIcon?{key:"badge",fn:function(){return[e("Badge",{attrs:{maintainRatio:!0,color:"red",radius:"full","aria-label":t.$t("subscription.switch_badge__screenread")}},[e("span",{staticClass:"broadbandSubscriptionDetails__switchBadge",attrs:{"aria-hidden":"true"}})])]},proxy:!0}:null],null,!0)},[e("AvatarImage",{attrs:{iconUrl:"--icon-surfboard-bg-url"}})],1)]},proxy:!0}:null,t.showTag?{key:"tag",fn:function(){return[e("Tag",{attrs:{appearance:t.tagAppearance,size:t.keepSmallLook?"small":"smallUntil800px"}},[t._v(" "+t._s(t.tagDescription)+" ")])]},proxy:!0}:null],null,!0)})},[],!1,null,"838e72ea",null).exports;class M extends l.lD{get label(){return this.subscription?this.subscription.label:""}get details(){if(!this.subscription)return"";let t="";return(0,a.sA)(this.subscription)?(this.subscription.msisdn&&(t+=(0,r.i)(this.subscription.msisdn)),this.subscription.msisdn&&this.subscription.specificSubscriptionType&&(t+=" - "),this.subscription.specificSubscriptionType&&(t+=this.$t(`subscription_type__${this.subscription.specificSubscriptionType}`)),t):""}get showTag(){return!!this.tagMessage&&!!(this.tagMessage.length>0)||!!this.subscription&&("enabled"===this.subscription.state&&!!this.authorizations&&(!this.subscription.isOwner||!!(this.authorizations.outgoingGrants.length>0)||!!(this.authorizations.outgoingInvites.length>0))||"enabled"!==this.subscription.state)}get subscriptionTagAppearance(){return this.tagAppearance?this.tagAppearance:this.subscription&&"enabled"===this.subscription.state&&this.authorizations?"neroWhite":""}get tagDescription(){if(this.tagMessage&&this.tagMessage.length>0)return this.tagMessage;if(!this.subscription)return"";if("enabled"===this.subscription.state){if(!this.subscription.isOwner)return this.$t("subscription_state.authorized");if(this.authorizations&&(this.authorizations.outgoingGrants.length>0||this.authorizations.outgoingInvites.length>0)){let t=(this.authorizations.outgoingGrants.length||0)+(this.authorizations.outgoingInvites.length||0);return this.$tc("subscription_state.watched__plural",t)}return this.$t("subscription_state.enabled")}return["disabled","scheduled"].includes(this.subscription.state)?this.$t("subscription_state.not_active"):this.$t("subscription_state.no_longer_active")}}(0,s.Cg)([(0,l.kv)({required:!1,default:!1})],M.prototype,"isLoading",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:null})],M.prototype,"subscription",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:!1})],M.prototype,"withIcon",void 0),(0,s.Cg)([(0,l.kv)({required:!1})],M.prototype,"subIcon",void 0),(0,s.Cg)([(0,l.kv)({default:null})],M.prototype,"tagMessage",void 0),(0,s.Cg)([(0,l.kv)({default:""})],M.prototype,"tagAppearance",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:!1})],M.prototype,"keepSmallLook",void 0),(0,s.Cg)([(0,l.kv)({required:!1})],M.prototype,"appearance",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:()=>null})],M.prototype,"authorizations",void 0);var A=M=(0,s.Cg)([(0,l.uA)({components:{Badge:v.A,SubscriptionDetailsUi:p,Tag:_.A,AvatarImage:m.A,AvatarRoot:g.A}})],M),k=(0,u.A)(A,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("SubscriptionDetailsUi",{attrs:{details:t.details,label:t.label,isLoading:t.isLoading,appearance:t.appearance},scopedSlots:t._u([t.withIcon?{key:"icon",fn:function(){return[e("AvatarRoot",{attrs:{loading:t.isLoading,size:"smallUntil800px"},scopedSlots:t._u(["switch"===t.subIcon?{key:"badge",fn:function(){return[e("Badge",{attrs:{maintainRatio:!0,color:"red",radius:"full","aria-label":t.$t("subscription.switch_badge__screenread")}},[e("span",{staticClass:"mobileSubscriptionDetails__switchBadge",attrs:{"aria-hidden":"true"}})])]},proxy:!0}:null],null,!0)},[e("AvatarImage",{attrs:{iconUrl:"--icon-simcard-bg-url"}})],1)]},proxy:!0}:null,t.showTag?{key:"tag",fn:function(){return[e("Tag",{attrs:{appearance:t.subscriptionTagAppearance,size:t.keepSmallLook?"small":"smallUntil800px"}},[t._v(" "+t._s(t.tagDescription)+" ")])]},proxy:!0}:null],null,!0)})},[],!1,null,"b7a4c2ac",null).exports,I=i(56270),x=i(16488);class N extends l.lD{get label(){return this.subscription?this.subscription.product.thirdPartyName:""}get image(){return this.subscription&&this.subscription.product.image||""}get details(){return this.subscription&&"inList"===this.appearance?this.subscription.product.title:""}get subscriptionOrders(){return this.orders&&this.subscription?this.orders.filter(t=>t.subscriptionId===this.subscription.id):[]}get hasTerminationOrder(){return this.subscriptionOrders.some(t=>(0,h._0)(t))}get hasMigrationToAnnounce(){return!(this.subscription&&(0,x.Ys)(this.subscription.product))&&this.subscriptionOrders.some(t=>(0,h.Mm)(t))}get isRunningAndLinked(){return this.subscription?.state==="enabled"&&this.subscription.isLinkedAtThirdParty}get needsLinking(){return!!this.subscription&&!this.subscription.isLinkedAtThirdParty}get showTag(){return this.tagMessage&&this.tagMessage.length>0||this.hasTerminationOrder||this.hasMigrationToAnnounce||this.needsLinking||this.subscription?.state!=="enabled"&&!!this.tagDescription}get tagDescription(){return this.hasTerminationOrder?this.$t("order_state.tps_scheduled_for_termination"):this.needsLinking?this.$t("order_state.wait_for_activation"):this.hasMigrationToAnnounce?this.$t("order_state.tps_scheduled_for_migration"):this.subscription&&"enabled"!==this.subscription.state?this.subscriptionOrders&&0!==this.subscriptionOrders.length?this.subscriptionOrders.some(t=>(0,I.Uw)(t)&&"wait_for_technical_execution"===t.state)?this.$t("order_state.wait_for_activation"):this.$t("order_state.wait_for_order_validation"):"disabled"===this.subscription.state?this.$t("subscription_state.not_active"):"":""}}(0,s.Cg)([(0,l.kv)({required:!1,default:!1})],N.prototype,"isLoading",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:null})],N.prototype,"subscription",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:!1})],N.prototype,"withIcon",void 0),(0,s.Cg)([(0,l.kv)({default:null})],N.prototype,"tagMessage",void 0),(0,s.Cg)([(0,l.kv)({default:""})],N.prototype,"tagAppearance",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:!1})],N.prototype,"keepSmallLook",void 0),(0,s.Cg)([(0,l.kv)({required:!1})],N.prototype,"appearance",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:null})],N.prototype,"orders",void 0);var T=N=(0,s.Cg)([(0,l.uA)({components:{Badge:v.A,SubscriptionDetail
25sUi:p,AvatarRoot:g.A,Tag:_.A,AvatarImage:m.A}})],N),D=(0,u.A)(T,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("SubscriptionDetailsUi",{attrs:{details:t.details,label:t.label,isLoading:t.isLoading,appearance:t.appearance},scopedSlots:t._u([t.withIcon?{key:"icon",fn:function(){return[e("AvatarRoot",{attrs:{loading:t.isLoading,size:"smallUntil800px"},scopedSlots:t._u([t.isRunningAndLinked?{key:"badge",fn:function(){return[e("Badge",{attrs:{size:"1",color:"green",radius:"full",maintainRatio:"true","data-qa":"tps-running-badge"}},[e("img",{staticStyle:{width:"auto",height:"10px"},attrs:{src:i(1906)}})])]},proxy:!0}:null],null,!0)},[e("AvatarImage",{attrs:{backgroundSize:"cover",iconUrl:t.image}})],1)]},proxy:!0}:null,t.showTag?{key:"tag",fn:function(){return[e("Tag",{attrs:{appearance:t.tagAppearance,size:t.keepSmallLook?"small":"smallUntil800px"}},[t._v(" "+t._s(t.tagDescription)+" ")])]},proxy:!0}:null],null,!0)})},[],!1,null,null,null).exports;class $ extends l.lD{get activeSubscription(){return this.subscription||this.session.subscription||null}get subscriptionAuthorization(){return this.authorizations&&this.activeSubscription&&(0,a.sA)(this.activeSubscription)&&this.authorizations.forSubscription(this.activeSubscription)||null}}(0,s.Cg)([(0,l.y_)()],$.prototype,"session",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:null})],$.prototype,"subscription",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:null})],$.prototype,"orders",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:null})],$.prototype,"to",void 0),(0,s.Cg)([(0,l.kv)({required:!1})],$.prototype,"appearance",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:!1})],$.prototype,"isLoading",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:!1})],$.prototype,"withIcon",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:!1})],$.prototype,"keepSmallLook",void 0),(0,s.Cg)([(0,l.kv)({required:!1})],$.prototype,"subIcon",void 0),(0,s.Cg)([(0,l.kv)({default:!1})],$.prototype,"disabled",void 0),(0,s.Cg)([(0,l.kv)({default:null})],$.prototype,"tagMessage",void 0),(0,s.Cg)([(0,l.kv)({default:""})],$.prototype,"tagAppearance",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:()=>null})],$.prototype,"authorizations",void 0);var P=$=(0,s.Cg)([(0,l.uA)({methods:{isThirdPartySubscription:o.X,isBroadbandSubscription:n.V,isMobileSubscription:a.sA},components:{SubscriptionDetailsUi:p,ThirdPartySubscriptionDetails:D,BroadbandSubscriptionDetails:S,MobileSubscriptionDetails:k},filters:{formatMsisdn:r.i}})],$),L=(0,u.A)(P,function(){var t=this._self._c;return this._self._setupProxy,t("div",[!this.activeSubscription&&this.isLoading?[t("SubscriptionDetailsUi",{attrs:{isLoading:!0,label:"''",details:"''"}})]:this.activeSubscription&&this.isMobileSubscription(this.activeSubscription)?[t("MobileSubscriptionDetails",{attrs:{subscription:this.activeSubscription,isLoading:this.isLoading,withIcon:this.withIcon,subIcon:this.subIcon,tagMessage:this.tagMessage,tagAppearance:this.tagAppearance,keepSmallLook:this.keepSmallLook,appearance:this.appearance,authorizations:this.subscriptionAuthorization}})]:this.activeSubscription&&this.isBroadbandSubscription(this.activeSubscription)?[t("BroadbandSubscriptionDetails",{attrs:{subscription:this.activeSubscription,isLoading:this.isLoading,withIcon:this.withIcon,subIcon:this.subIcon,tagMessage:this.tagMessage,tagAppearance:this.tagAppearance,keepSmallLook:this.keepSmallLook,appearance:this.appearance,orders:this.orders}})]:this.activeSubscription&&this.isThirdPartySubscription(this.activeSubscription)?[t("ThirdPartySubscriptionDetails",{attrs:{subscription:this.activeSubscription,isLoading:this.isLoading,withIcon:this.withIcon,tagMessage:this.tagMessage,tagAppearance:this.tagAppearance,keepSmallLook:this.keepSmallLook,appearance:this.appearance,orders:this.orders}})]:this._e()],2)},[],!1,null,"60cd9086",null).exports},46242:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{mounted(){this.subscriptionGroupForIcons&&this.subscriptionGroupForIcons.length>0&&(this.hasFixedIcon=this.subscriptionGroupForIcons.some(t=>"fixed_internet"===t.type),this.hasMobileIcon=this.subscriptionGroupForIcons.some(t=>"postpaid"===t.type))}get title(){return"inList"===this.appearance?this.$t("subscription_group_details.title_for_grouped_subscriptions").toString():this.$t("subscription_group_details.title_for_invoices").toString()}get subtitle(){return"inList"===this.appearance?this.$t("subscription_group_details.subtitle_for_grouped_subscriptions").toString():this.$t("subscription_group_details.subtitle_for_invoices").toString()}constructor(...t){super(...t),this.hasFixedIcon=!1,this.hasMobileIcon=!1}}(0,s.Cg)([(0,a.kv)({required:!1,default:!1})],n.prototype,"isLoading",void 0),(0,s.Cg)([(0,a.kv)({required:!1,default:null})],n.prototype,"subscriptionGroupForIcons",void 0),(0,s.Cg)([(0,a.kv)({required:!1})],n.prototype,"appearance",void 0);var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,this.isLoading?t("div",{staticClass:"subscriptionGroupDetail
25s subscriptionGroupDetails--isLoading"},[this._m(0),t("div",{staticClass:"subscriptionGroupDetails__info shimmer"},[this._v("Â ")])]):t("div",{staticClass:"subscriptionGroupDetails subscriptionGroupDetails--inList",class:{"subscriptionGroupDetails--fixedOnlyIcon":!this.hasMobileIcon&&this.hasFixedIcon,"subscriptionGroupDetails--mobileAndFixedIcon":this.hasMobileIcon&&this.hasFixedIcon,"subscriptionGroupDetails--withIcon":this.hasMobileIcon||this.hasFixedIcon}},[t("div",{staticClass:"subscriptionGroupDetails__top"},[t("strong",{staticClass:"subscriptionGroupDetails__alias"},[this._v(" "+this._s(this.title)+" ")])]),t("div",{staticClass:"subscriptionGroupDetails__info"},[this._v(" "+this._s(this.subtitle)+" ")])])},[function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"subscriptionGroupDetails__top"},[t("strong",{staticClass:"subscriptionGroupDetails__alias shimmer"},[this._v("Â ")])])}],!1,null,"ac33c4dc",null).exports},64063:function(t,e,i){"use strict";i.d(e,{A:function(){return v}});var s=i(32198),a=i(58294),n=i(71229),o=i(92577),r=i(67953),l=i(24176),d=i(15419),c=i(45656),u=i(91543),p=i(83301),h=i(3231);let _=(0,a.tZ)("subscription header");class m extends r.lD{async onSubscriptionChanged(){if(!this.subscription){this.pendingMigration=null,this.pendingOrders=[],this.authorizations=null;return}this.loading=!0;try{let[t,e,i]=await Promise.all([this.subscriptionService.getPendingMigration(this.subscription),this.orderService.getAllPendingOrders(),this.authorizationService.getAuthorizations()]);this.pendingMigration=t,this.pendingOrders=e,(0,o.sA)(this.subscription)&&(this.authorizations=i.forSubscription(this.subscription))}catch(t){_.error("Failed to load subscription data",t)}finally{this.loading=!1}}get isBroadband(){return this.subscription?.type==="fixed_internet"}get broadbandSwitchRoute(){return{...this.$route,query:{...this.$route.query,spc:"fixed-line-selector"}}}get mobileSwitchRoute(){return{...this.$route,query:{...this.$route.query,spc:"sim-selector"}}}get styleLevelClass(){return(0,p.yu)(this.styleLevel)}get nextStyleLevel(){return 2===this.styleLevel?1:this.styleLevel+1}get subscription(){return this.session.subscription||null}get canTopup(){return!(!this.subscription||"prepaid"!==this.subscription.type||"enabled"!==this.subscription.state||this.pendingMigration&&(0,n.Fs)(this.pendingMigration)&&"credit_low"===this.pendingMigration.condition)}get showHeaderNav(){return!!this.subscription&&!["disabled","deactivated","scheduled","cancelled"].includes(this.subscription.state)}get showAuthorizedNotice(){return!!this.showHeaderNav&&!!this.subscription&&(!this.subscription.isOwner||!!this.authorizations&&!!(this.authorizations.outgoingGrants.length>0))||!1}get authorizedNotice(){return this.showAuthorizedNotice&&this.authorizations?this.subscription?.isOwner?`${this.$tc("authorized_notice.you_have_given_authorization_to_{amount}_people__html__plural",this.authorizations.outgoingGrants.length,{amount:this.authorizations.outgoingGrants.length})}`:`${this.$t("you_have_fewer_options_because_this_is_not_your_sim")}`:""}constructor(...t){super(...t),this.RouteName=h.A,this.pendingMigration=null,this.pendingOrders=[],this.loading=!1,this.authorizations=null}}(0,s.Cg)([(0,r.kv)({type:Number,required:!1,default:1})],m.prototype,"styleLevel",void 0),(0,s.Cg)([(0,r.y_)()],m.prototype,"session",void 0),(0,s.Cg)([(0,r.y_)()],m.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,r.y_)()],m.prototype,"authorizationService",void 0),(0,s.Cg)([(0,r.y_)()],m.prototype,"orderService",void 0),(0,s.Cg)([(0,r.y_)()],m.prototype,"confirm",void 0),(0,s.Cg)([(0,r.y_)()],m.prototype,"config",void 0),(0,s.Cg)([(0,r.ox)("subscription",{immediate:!0})],m.prototype,"onSubscriptionChanged",null);var g=m=(0,s.Cg)([(0,r.uA)({components:{CallToAction:l.A,LinksetInfo:c.A,SubscriptionDetails:u.A,MyVikingHeaderNav:d.A}})],m),v=(0,i(41618).A)(g,function(){var t=this._self._c;return this._self._setupProxy,this.subscription&&!this.loading?t("div",{class:["subscriptionHeader",this.styleLevelClass],attrs:{"data-qa":"subscription-header"}},[t("section",{directives:[{name:"trackingSection",rawName:"v-trackingSection",value:"top_panel",expression:"'top_panel'"}],staticClass:"myViking-subscriptionHeader"}
25,[t("div",{staticClass:"myViking-subscriptionDetailsHeader"},this.isBroadband?[t("RouterLink",{staticClass:"subscriptionDetails-container myViking-subscriptionDetailsHeader__switchSubscriptionLink",attrs:{to:this.broadbandSwitchRoute,title:this.$t("change_your_fixed_line")}},[t("SubscriptionDetails",{attrs:{orders:this.pendingOrders,subscription:this.subscription,withIcon:!0,subIcon:"switch"}})],1)]:[t("RouterLink",{staticClass:"subscriptionDetails-container myViking-subscriptionDetailsHeader__switchSubscriptionLink",attrs:{to:this.mobileSwitchRoute,title:this.$t("change_your_simcard")}},[t("SubscriptionDetails",{attrs:{withIcon:!0,subIcon:"switch",subscription:this.subscription}})],1),t("div",{staticClass:"myViking-subscriptionDetailsHeader__topupButton"},[this.canTopup?t("CallToAction",{attrs:{"data-qa":"topup-button",to:{name:this.RouteName.topup}}},[this._v(" "+this._s(this.$t("top_up"))+" ")]):this._e()],1)],1),this.showAuthorizedNotice?t("div",{staticClass:"myViking-subscriptionHeader__authorizedNotice",attrs:{"data-qa":"authorized-notice"}},[t("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.authorizedNotice,expression:"authorizedNotice"}],staticClass:"ExternalContent",attrs:{appearance:"inline"}})],1):this._e(),this.showHeaderNav?t("MyVikingHeaderNav",this._b({attrs:{styleLevel:this.nextStyleLevel,ariaLabel:this.$t("my_viking_subscription_header_nav.aria_label")}},"MyVikingHeaderNav",this.$attrs,!1)):this._e()],1)]):this._e()},[],!1,null,null,null).exports},60016:function(t,e,i){"use strict";i.d(e,{A:function(){return _}});var s=i(32198),a=i(44739),n=i(67953);class o extends n.lD{}(0,s.Cg)([(0,n.kv)({default:""})],o.prototype,"state",void 0);var r=o=(0,s.Cg)([n.uA],o),l=i(41618),d=(0,l.A)(r,function(){var t=this._self._c;return this._self._setupProxy,t("svg",{staticClass:"savingIndicator",class:{"savingIndicator--isSaving":"saving"===this.state,"savingIndicator--isSuccess":"success"===this.state,"savingIndicator--hasError":"error"===this.state},attrs:{viewBox:"0 0 50 50"}},[t("circle",{staticClass:"savingIndicator__loaderPath",attrs:{cx:"25",cy:"25",r:"20",fill:"none",stroke:"#9b9b9b","stroke-width":"2"}}),t("path",{staticClass:"savingIndicator__checkmark",attrs:{fill:"none",stroke:"#5E7461","stroke-width":"2",d:"M14.1 27.2l7.1 7.2 16.7-16.8"}}),t("path",{staticClass:"savingIndicator__errorX",attrs:{fill:"none",stroke:"#cd0400","stroke-width":"2",d:"M15 15L35 35"}}),t("path",{staticClass:"savingIndicator__errorX savingIndicator__errorX--l2",attrs:{fill:"none",stroke:"#cd0400","stroke-width":"2",d:"M15 35L35 15"}})])},[],!1,null,null,null).exports;let c=0;class u extends n.lD{updateOnOffText(){this.onOffText=this.isChecked?this.onText:this.offText}get visualStateTimeout(){return this.onText||this.offText?3e3:5e3}async onValueChange(){this.state="loading",this.isChecked=await this.value,this.updateOnOffText(),this.state="default"}async toggle(){clearTimeout(this.resetVisualStateTimeout),this.state="saving",await (0,a.yy)(0);try{await this.save(this.isChecked),this.state="success"}catch{this.isChecked=!this.isChecked,this.state="error"}this.resetVisualStateTimeout=setTimeout(()=>{this.state="default"},this.visualStateTimeout)}constructor(...t){super(...t),this.state="success",this.isChecked=!1,this.resetVisualStateTimeout=void 0,this.onOffText=""}}function p(){return`switchButton_${c++}`}(0,s.Cg)([(0,n.kv)({type:String,required:!1,default:p})],u.prototype,"id",void 0),(0,s.Cg)([(0,n.kv)({type:String,required:!1,default:p})],u.prototype,"name",void 0),(0,s.Cg)([(0,n.kv)({type:String,required:!0})],u.prototype,"label",void 0),(0,s.Cg)([(0,n.kv)({type:Function,required:!0})],u.prototype,"save",void 0),(0,s.Cg)([(0,n.kv)({required:!1,default:!1})],u.prototype,"value",void 0),(0,s.Cg)([(0,n.kv)({required:!1,default:!1})],u.prototype,"loading",void 0),(0,s.Cg)([(0,n.kv)({required:!1,default:!1})],u.prototype,"disabled",void 0),(0,s.Cg)([(0,n.kv)({type:String,required:!1})],u.prototype,"appearance",void 0),(0,s.Cg)([(0,n.kv)({type:String,required:!1})],u.prototype,"onText",void 0),(0,s.Cg)([(0,n.kv)({type:String,required:!1})],u.prototype,"offText",void 0),(0,s.Cg)([(0,n.ox)("value",{immediate:!0})],u.prototype,"onValueChange",null);var h=u=(0,s.Cg)([(0,n.uA)({components:{SavingIndicator:d}})],u),_=(0,l.A)(h,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("label",{class:["myVikingSwitchButton",t.state,{"myVikingSwitchButton--isSaving":"saving"===t.state,"myVikingSwitchButton--isLoading":t.loading||"loading"===t.state,"myVikingSwitchButton--isSuccess":"success"===t.state,"myVikingSwitchButton--hasError":"error"===t.state,"myVikingSwitchButton--inSwitchList":"inSwitchList"===t.appearance,"myVikingSwitchButton--inSidePanel":"inSidePanel"===t.appearance,"myVikingSwitchButton--asQuickSetting":"asQuickSetting"===t.appearance,"myVikingSwitchButton--isDisabled":t.disabled}],attrs:{for:t.id}},[e("span",{staticClass:"myVikingSwitchButton__labelText"},[t._v(t._s(t.label))]),e("div",{staticClass:"myVikingSwitchButton__control"},[e("span",{staticClass:"myVikingSwitchButton__onOffText"},[t._v(t._s(t.onOffText))]),e("div",{staticClass:"myVikingSwitchButton__nonText"},[e("SavingIndicator",{staticClass:"myVikingSwitchButton__savingIndicator",attrs:{state:t.state}}),e("input",{directives:[{name:"model",rawName:"v-model",value:t.isChecked,expression:"isChecked"}],staticClass:"myVikingSwitchButton__theRealChk",attrs:{id:t.id,name:t.name,disabled:t.disabled||"saving"===t.state,type:"checkbox"},domProps:{checked:Array.isArray(t.isChecked)?t._i(t.isChecked,null)>-1:t.isChecked}
25,on:{click:function(e){return t.toggle()},change:function(e){var i=t.isChecked,s=e.target,a=!!s.checked;if(Array.isArray(i)){var n=t._i(i,null);s.checked?n<0&&(t.isChecked=i.concat([null])):n>-1&&(t.isChecked=i.slice(0,n).concat(i.slice(n+1)))}else t.isChecked=a}}}),e("div",{staticClass:"myVikingSwitchButton__toggle"},[t._v("Â ")])],1)])])},[],!1,null,"6c45c992",null).exports},65993:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{mounted(){this.tabController.addTab(this.name)}beforeDestroy(){this.tabController.removeTab(this.name)}get active(){return this.tabController.activeTab===this.name}get uniqueId(){return this.tabController.uniqueId}}(0,s.Cg)([(0,a.kv)()],n.prototype,"name",void 0),(0,s.Cg)([(0,a.y_)()],n.prototype,"tabController",void 0);var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"tab",class:{active:this.active},attrs:{id:`${this.uniqueId}-${this.name.replace(" ","-")}_panel`,role:"tabpanel",tabindex:"-1"}},[t("h4",{staticClass:"tab-title"},[this._v(this._s(this.name))]),this._t("default")],2)},[],!1,null,"7ae35aa8",null).exports},96681:function(t,e,i){"use strict";i.d(e,{A:function(){return c}});var s=i(32198),a=i(44739),n=i(67953),o=i(76818),r=i(83301);class l extends n.lD{mounted(){this.handleResize=this.domUtils.debounce(this.moveNavBorderToActiveElement.bind(this),200),this.moveNavBorderToActiveElement(),window.addEventListener("resize",this.handleResize)}get cssClassForLevel(){return(0,r.yu)(this.styleLevel)}beforeDestroy(){window.removeEventListener("resize",this.handleResize)}keyFor(t){return this.optionKey?t[this.optionKey]:t}hrefFor(t){return this.hrefKey?t[this.hrefKey]:"javascript:;"}tabIdFor(t){if(t)return"string"==typeof t?`${this.uniqueTabsPrefixId}-${t.replace(" ","-")}_tab`:t?.name?`${this.uniqueTabsPrefixId}-${t.name.replace(" ","-")}_tab`:`${this.uniqueTabsPrefixId}-my-viking_panel`}tabPanelIdFor(t){if(t)return"string"==typeof t?`${this.uniqueTabsPrefixId}-${t.replace(" ","-")}_panel`:t?.name?`${this.uniqueTabsPrefixId}-${t.name.replace(" ","-")}_panel`:`${this.uniqueTabsPrefixId}-my-viking_panel`}isActive(t){return this.optionKey?t[this.optionKey]===this.value[this.optionKey]:t===this.value}notificationCountForOption(t){return this.routeNotifications.countFor(t.name)}async moveNavBorderToActiveElement(){await (0,a.yy)(1);let t=this.$refs.headerNav;if(!t)return;let e=t.querySelector(".isActive");e&&(this.leftPosMovingBorder=`${Math.floor(e.offsetLeft)}px`,this.widthMovingBorder=`${Math.floor(e.getBoundingClientRect().width)}px`)}get selectedOptionIndex(){return this.value&&this.options?this.options.findIndex(t=>t.name===this.value.name):-1}navigationKeydown(t){if(!this.realTabsList)return;let e=o.s.eventMatchesKey(t,o.s.ARROW_LEFT)?Math.max(0,this.selectedOptionIndex-1):o.s.eventMatchesKey(t,o.s.ARROW_RIGHT)?Math.min(this.options.length,this.selectedOptionIndex+1):o.s.eventMatchesKey(t,o.s.HOME)?0:o.s.eventMatchesKey(t,o.s.END)?this.options.length-1:-1;if(-1===e)return;t.preventDefault();let i=this.options[e],s=this.tabIdFor(i);if(s){let t=document.getElementById(s);t?.focus()}this.$emit("input",this.options[e])}constructor(...t){super(...t),this.leftPosMovingBorder="0px",this.widthMovingBorder="0px",this.handleResize=()=>{}}}(0,s.Cg)([(0,n.kv)()],l.prototype,"options",void 0),(0,s.Cg)([(0,n.kv)()],l.prototype,"value",void 0),(0,s.Cg)([(0,n.kv)({required:!1,default:null})],l.prototype,"hrefKey",void 0),(0,s.Cg)([(0,n.kv)({required:!1,default:null})],l.prototype,"optionKey",void 0),(0,s.Cg)([(0,n.kv)({required:!1,default:null})],l.prototype,"styleLevel",void 0),(0,s.Cg)([(0,n.kv)({type:String,required:!1})],l.prototype,"appearance",void 0),(0,s.Cg)([(0,n.kv)({type:String,required:!1})],l.prototype,"uniqueTabsPrefixId",void 0),(0,s.Cg)([(0,n.kv)({type:Boolean,required:!1,default:!0})],l.prototype,"realTabsList",void 0),(0,s.Cg)([(0,n.y_)()],l.prototype,"domUtils",void 0),(0,s.Cg)([(0,n.y_)()],l.prototype,"routeNotifications",void 0),(0,s.Cg)([(0,n.ox)("value",{immediate:!0})],l.prototype,"moveNavBorderToActiveElement",null);var d=l=(0,s.Cg)([n.uA],l),c=(0,i(41618).A)(d,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("nav",{ref:"headerNav",class:["tabs-header",t.cssClassForLevel,{"tabs-header--compact":"compact"===t.appearance}],style:`--moving-border-left: ${t.leftPosMovingBorder}; --moving-border-width: ${t.widthMovingBorder}`,attrs:{role:t.realTabsList?"tablist":void 0},on:{keydown:t.navigationKeydown}},t._l(t.options,function(i){return e("a",{directives:[{name:"rippleEffect",rawName:"v-rippleEffect"}],key:t.keyFor(i),class:["tabs-header__tab",{isActive:t.isActive(i),"has-notifications":t.notificationCountForOption(i)}],attrs:{id:t.tabIdFor(i),"data-notificationsCount":t.notificationCountForOption(i)||void 0,"aria-selected":t.realTabsList?t.isActive(i):void 0,tabindex:t.realTabsList?t.isActive(i)?0:-1:void 0,role:t.realTabsList?"tab":void 0,"aria-controls":t.realTabsList?t.tabPanelIdFor(i):void 0,href:t.hrefFor(i)},on:{click:function(e){return e.preventDefault(),t.$emit("input",i)}}},[t._t("default",function(){return[t._v(t._s(i))]},{option:i})],2)}),0)},[],!1,null,"846d2110",null).exports}
25,17764:function(t,e,i){"use strict";i.d(e,{A:function(){return d}});var s=i(32198),a=i(67953),n=i(96681);class o extends a.lD{mounted(){this.activeTab||(this.activeTab=this.tabs[0]||null)}get activeTab(){return this.tabController.activeTab}set activeTab(t){this.tabController.activeTab=t}constructor(...t){super(...t),this.tabs=[],this.tabController={addTab:async t=>{this.tabs.push(t),this.activeTab||(this.activeTab=this.tabs[0]||null)},removeTab:t=>{this.tabs.splice(this.tabs.indexOf(t),1)},activeTab:null,uniqueId:this.uniqueId}}}(0,s.Cg)([(0,a.kv)({type:String,required:!1})],o.prototype,"appearance",void 0),(0,s.Cg)([(0,a.kv)({required:!1,default:1})],o.prototype,"styleLevel",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:function(){return`tabs__${r++}`}})],o.prototype,"uniqueId",void 0),(0,s.Cg)([(0,a.ku)()],o.prototype,"tabController",void 0);let r=0;var l=o=(0,s.Cg)([(0,a.uA)({components:{TabsHeader:n.A}})],o),d=(0,i(41618).A)(l,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"mv-tabs"},[e("TabsHeader",{staticClass:"mv-tabs__header",attrs:{appearance:t.appearance,styleLevel:t.styleLevel,uniqueTabsPrefixId:t.uniqueId,options:t.tabs},scopedSlots:t._u([{key:"default",fn:function({option:e}){return[t._v(" "+t._s(e)+" ")]}}]),model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}}),t._t("default")],2)},[],!1,null,"08a3e65a",null).exports},44492:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{mounted(){let t=this.$refs.tipRef;t&&t.addEventListener("click",this.handleTipClick)}handleTipClick(t){t.target instanceof HTMLAnchorElement&&t.stopPropagation()}get isExternalLink(){return!!this.href}get linkComponent(){return this.disabled||this.loading?"div":this.isExternalLink?"a":"RouterLink"}get linkAttributes(){return this.disabled||this.loading?{}:this.isExternalLink?{href:this.href,target:"_blank"}:{to:this.to??{}}}}(0,s.Cg)([(0,a.kv)()],n.prototype,"title",void 0),(0,s.Cg)([(0,a.kv)()],n.prototype,"tip",void 0),(0,s.Cg)([(0,a.kv)()],n.prototype,"to",void 0),(0,s.Cg)([(0,a.kv)()],n.prototype,"href",void 0),(0,s.Cg)([(0,a.kv)({default:!1})],n.prototype,"disabled",void 0),(0,s.Cg)([(0,a.kv)({default:!1})],n.prototype,"destructive",void 0),(0,s.Cg)([(0,a.kv)()],n.prototype,"icon",void 0),(0,s.Cg)([(0,a.kv)({default:!1})],n.prototype,"loading",void 0);var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this,e=t._self._c;return t._self._setupProxy,e(t.linkComponent,t._b({directives:[{name:"rippleEffect",rawName:"v-rippleEffect",value:!t.disabled&&!t.loading,expression:"!disabled && !loading"}],tag:"component",staticClass:"ContentBoxList__item thematicLink",class:{"ContentBoxList__item--externalLink":t.isExternalLink,"ContentBoxList__item--disabled":t.disabled,"ContentBoxList__item--destructive":t.destructive,"ContentBoxList__item--iconTransferSim":"iconTransferSim"===t.icon},attrs:{tabindex:t.disabled||t.loading?-1:0,"aria-disabled":t.disabled||t.loading?"true":"false"},nativeOn:{click:function(e){return t.$emit("click",e)}}},"component",t.linkAttributes,!1),[t.loading?e("div",{staticClass:"thematicLink thematicLink--isLoading",attrs:{"data-qa":"thematic-link-loading"}},[t.title?e("div",{staticClass:"thematicLink__title shimmer"},[t._v("Â ")]):t._e(),t.tip?e("div",{staticClass:"thematicLink__tip shimmer"},[t._v("Â ")]):t._e()]):e("div",[e("strong",{staticClass:"thematicLink__title"},[t._v(t._s(t.title))]),t.tip?e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.tip,expression:"tip"}],ref:"tipRef",staticClass:"thematicLink__tip"}):t._e()])])},[],!1,null,null,null).exports},80846:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{}var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"thematicLinkset ContentBoxList"},[this._t("default")],2)},[],!1,null,null,null).exports},43397:function(t,e,i){"use strict";i.d(e,{A:function(){return v}});var s=i(32198),a=i(58294),n=i(1122),o=i(47352),r=i(62765),l=i(94182),d=i(67953),c=i(79847),u=i(65993),p=i(17764),h=i(83487);let _=(0,a.tZ)("TopupSelector");class m extends d.lD{async onProductChanged(){this.product?await this.loadTopups(this.product):this.session.mobileSubscription&&(0,n.$o)(this.session.mobileSubscription.product)&&await this.loadTopups(this.session.mobileSubscription.product)}async loadTopups(t){try{if(this.topupOptions=t?await this.productService.getTopupProducts(t,this.exposeLegacyPrepaids):[],(0,h.EP)(this))return;this.value&&this.value.focus&&(this.$refs.focusTabs.activeTab=this.$t(`focus_${this.value.focus}`)),this.autoselect&&1===this.topupOptions.length&&this.$emit("input",this.topupOptions[0])}catch(t){_.error("Failed to load topups",t),this.notifyGenericErrors(t)}}describeTopup(t){let e=[],i=this.$t.bind(this);return t.definitions.rates.voice&&e.push(`${(0,r.up)(t.definitions.rates.voice,"two_to_four")} / min`),t.definitions.bundles.sms&&e.push((0,l.DT)(t.definitions.bundles.sms,this.$t.bind(this))),t.definitions.bundles.data&&e.push((0,l._c)(t.definitions.bundles.data,i)),e.join(" + ")}get isSingleTopUp(){return 1===this.topupOptions.length}get noFocusTopups(){return this.topupOptions.filter(t=>!t.focus).sort((0,o.by)("price"))}get voiceTopups(){return this.topupOptions.filter(t=>"voice"===t.focus).sort((0,o.by)("price"))}get dataTopups(){return this.topupOptions.filter(t=>"data"===t.focus).sort((0,o.by)("price"))}get selection(){return this.value}set selection(t){t?this.$emit("input",t):this.$emit("input",null)}get isAnyDataOnlyProduct(){let t=this.product?this.product:this.session.mobileSubscription?this.session.mobileSubscription.product:void 0;return!!t&&!!(0,n.$o)(t)&&(0,n.XQ)(t)}constructor(...t){super(...t),this.topupOptions=[]}}(0,s.Cg)([(0,d.kv)()],m.prototype,"value",void 0),(0,s.Cg)([(0,d.kv)({required:!1,default:null})],m.prototype,"product",void 0),(0,s.Cg)([(0,d.kv)({type:Boolean,required:!1,default:!0})],m.prototype,"exposeLegacyPrepaids",void 0),(0,s.Cg)([(0,d.kv)({type:Boolean,required:!1,default:!1})],m.prototype,"narrow",void 0),(0,s.Cg)([(0,d.kv)({type:Boolean,required:!1,default:!1})],m.prototype,"narrowAsColumns",void 0),(0,s.Cg)([(0,d.kv)({type:Boolean,required:!1,default:!1})],m.prototype,"asRadioGroup",void 0),(0,s.Cg)([(0,d.kv)({type:Boolean,required:!1,default:!0})],m.prototype,"autoselect",void 0),(0,s.Cg)([(0,d.y_)()],m.prototype,"session",void 0),(0,s.Cg)([(0,d.y_)()],m.prototype,"productService",void 0),(0,s.Cg)([(0,d.ox)("session.mobileSubscription",{immediate:!0}),(0,d.ox)("product",{immediate:!0}),(0,d.ox)("locale")],m.prototype,"onProductChanged",null);var g=m=(0,s.Cg)([(0,d.uA)({components:{Tabs:p.A,Tab:u.A,RadioGroup:c.A}})],m),v=(0,i(41618).A)(g,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"topup-selector",class:{"topup-selector--narrow":t.narrow,"topup-selector--narrowAsColumns":t.narrowAsColumns}},[t.isSingleTopUp?e("div",[t.asRadioGroup?e("RadioGroup",{attrs:{options:t.noFocusTopups,optionKey:"id"},on:{click:e=>t.$emit("input",e)},scopedSlots:t._u([{key:"default",fn:function({option:i}){return[e("div",{staticClass:"topup-option"},[e("strong",{staticClass:"topup-price"},[t._v(t._s(t._f("money")(i.price)))]),e("span",{staticClass:"topup-description"},[t._v(" "+t._s(t.describeTopup(i))+" ")])])]}}],null,!1,0x77dc8c0d),model:{value:t.selection,callback:function(e){t.selection=e},expression:"selection"}}):e("div",{staticClass:"topup-selector-singleTopUp"},[e("div",{staticClass:"singleTopUp-column"},[e("strong",[t._v(t._s(t._f("money")(t.topupOptions[0].price)))]),t.isAnyDataOnlyProduct?e("em",[t._v(t._s(t.$t("topupselector.onlydata-price-description")))]):t._e()]),e("div",{staticClass:"singleTopUp-column"},[e("strong",[t._v(t._s(t.describeTopup(t.topupOptions[0])))]),t.isAnyDataOnlyProduct?e("em",[t._v(" "+t._s(t.$t("topupselector.onlydata-amount-description"))+" ")]):t._e()])])],1
25):[e("Tabs",{ref:"focusTabs"},[t.dataTopups.length?e("Tab",{attrs:{name:t.$t("focus_data")}},[e("RadioGroup",{attrs:{options:t.dataTopups,optionKey:"id"},scopedSlots:t._u([{key:"default",fn:function({option:i}){return[e("div",{staticClass:"topup-option"},[e("strong",{staticClass:"topup-price"},[t._v(t._s(t._f("money")(i.price)))]),e("span",{staticClass:"topup-description"},[t._v(" "+t._s(t.describeTopup(i))+" ")])])]}}],null,!1,0x77dc8c0d),model:{value:t.selection,callback:function(e){t.selection=e},expression:"selection"}})],1):t._e(),t.voiceTopups.length?e("Tab",{attrs:{name:t.$t("focus_voice")}},[e("RadioGroup",{attrs:{options:t.voiceTopups,optionKey:"id"},scopedSlots:t._u([{key:"default",fn:function({option:i}){return[e("div",{staticClass:"topup-option"},[e("strong",{staticClass:"topup-price"},[t._v(t._s(t._f("money")(i.price)))]),e("span",{staticClass:"topup-description"},[t._v(" "+t._s(t.describeTopup(i))+" ")])])]}}],null,!1,0x77dc8c0d),model:{value:t.selection,callback:function(e){t.selection=e},expression:"selection"}})],1):t._e()],1)]],2)},[],!1,null,"20cb0dc4",null).exports},8078:function(t,e,i){"use strict";i.d(e,{A:function(){return g}});var s=i(32198),a=i(70180),n=i(57724),o=i.n(n),r=i(67953),l=i(33497),d=i(20684),c=i(21395),u=i(83487),p=i(3231);class h extends r.lD{onRouteChange(){this.close()}positionSlideOut(){this.$nextTick(()=>{let t=this.$refs["userMenu-slideOut-trigger"];if(t){let e=t.getBoundingClientRect();this.triggerTop=`${e.bottom+this.popOverMenuOffset}px`,this.triggerLeft=`${e.left-(this.popOverMenuWidth-e.width)}px`}})}recalculateMenuRoutes(){this.menuRoutes=this.getMenuRoutes()}mounted(){this.initialiseDestroyMenu()}async initialiseDestroyMenu(){this.session.authenticated?this.$nextTick(()=>{this.handleResizeDebounced=o()(this.handleResize.bind(this),200),window.addEventListener("resize",this.handleResizeDebounced),this.positionSlideOut(),this.$el.addEventListener("transitionend",this.recalculateMenuRoutes)}):this.$nextTick(()=>{window.removeEventListener("resize",this.handleResizeDebounced),this.$el.removeEventListener("transitionend",this.recalculateMenuRoutes)}),this.recalculateMenuRoutes()}handleResize(){this.session.authenticated&&this.positionSlideOut()}close(){this.$nextTick(()=>{let t=this.$refs[this.popOverMenuId];if(this.isOpenPopover(t)&&"function"==typeof t?.hidePopover)try{t.hidePopover()}catch(t){if(!(t instanceof DOMException&&"InvalidStateError"===t.name))throw t}})}isOpenPopover(t){if(!t)return!1;if("function"==typeof t.matches)try{return t.matches(":popover-open")}catch{}return"function"==typeof t.hidePopover}get logoutLink(){return(0,u.bH)(this.$route,this.$router)}getMenuRoutes(){var t;let e=this,i=[];return"my-viking"===this.site.context&&i.push(...(t=p.A.account,(0,u.Ko)(e.routes,t).filter(t=>(!t.meta||!!(0,c.RP)(t.meta.nav))&&(!t.meta||!t.meta.restrictions||t.meta.restrictions.every(t=>t(e.session)))).map(t=>({name:t.name,route:t.name||t.path,label:t.meta?.label})))),"my-business"===this.site.context&&i.push({label:"usermenu.account",route:p.A.b2bAccount},{label:"usermenu.b2b_invoices",route:p.A.companyInvoices},{label:"usermenu.b2b_settings",route:p.A.companySettings}),this.session.subscriptions?.length&&"my-viking"!==this.site.context&&i.push({label:"usermenu.product_overview",route:p.A.productsOverview}),this.session.companies?.length&&"my-business"!==this.site.context&&i.push({label:"usermenu.my_company",route:p.A.myCompany}),i}get totalNotificationCount(){return this.menuRoutes.reduce((t,e)=>e.name?t+this.routeNotifications.countFor(e.name):t,0)}notificationCount(t){return t?this.routeNotifications.countFor(t):0}get formattedName(){return this.session.profile?`${this.session.profile.firstName} ${this.session.profile.lastName}`:""}get initials(){return this.session.profile?`${this.session.profile.firstName.charAt(0)}${this.session.profile.lastName.charAt(0)}`:""}get vikingSince(){return this.session.profile&&this.session.profile.joined?(0,a.dH)(this.session.profile.joined,this.$t.bind(this)):""}constructor(...t){super(...t),this.id=`my_viking_user_menu__${_++}`,this.menuRoutes=[],this.isHovered=!1,this.popOverMenuId=`userMenu-slideOut-${this.id}`,this.popOverMenuWidth=300,this.popOverMenuOffset=15,this.triggerTop="0px",this.triggerLeft="0px",this.handleResizeDebounced=()=>{}}}(0,s.Cg)([(0,r.y_)()],h.prototype,"session",void 0),(0,s.Cg)([(0,r.y_)()],h.prototype,"routeNotifications",void 0),(0,s.Cg)([(0,r.y_)()],h.prototype,"routes",void 0),(0,s.Cg)([(0,r.y_)()],h.prototype,"site",void 0),(0,s.Cg)([(0,r.y_)()],h.prototype,"domUtils",void 0),(0,s.Cg)([(0,r.ox)("$route")],h.prototype,"onRouteChange",null),(0,s.Cg)([(0,r.ox)("session.authenticated")],h.prototype,"initialiseDestroyMenu",null);let _=0;var m=h=(0,s.Cg)([(0,r.uA)({components:{AvatarInitials:l.A,AvatarRoot:d.A}})],h),g=(0,i(41618).A)(m,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.session.authenticated?e("div",{directives:[{name:"trackingSection",rawName:"v-trackingSection",value:"account_drop_down",expression:"'account_drop_down'"}],staticClass:"myViking-usermenu userMenu"},[e("div",{directives:[{name:"trap-focus",rawName:"v-trap-focus"}],ref:t.popOverMenuId,staticClass:"userMenu__slideOut slideout",style:`top: ${t.triggerTop}; left: ${t.triggerLeft}; width: ${t.popOverMenuWidth}px`,attrs:{id:t.popOverMenuId,popover:""}},[e("div",{staticClass:"userMenu__slideOut__container"},[e("nav",{attrs:{"aria-label":t.$t("userMenu.menuLabel__screenread").toString()}},[e("ul",{attrs:{"data-qa":"slideOut"}},[t._l(t.menuRoutes,function(i){return e("li",{key:i.route,attrs:{"data-notifications":t.notificationCount(i.name)||void 0}},[e("RouterLink",{directives:[{name:"rippleEffect",rawName:"v-rippleEffect"}],attrs:{to:{name:i.route}}},[t._v(" "+t._s(t.$t(i.label||i.route))+" ")])],1)}),e("li",[e("a",{attrs:{href:t.logoutLink}},[t._v(t._s(t.$t("usermenu.logout")))])])],2)]),e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("youve_been_a_viking_for_{period}",{period:t.vikingSince}),expression:"$t('youve_been_a_viking_for_{period}', { period: vikingSince })"}],staticClass:"slideout-footer"}),e("div",{staticClass:"slideout__helmetImage nextStyleLevel"},[t._v("Â ")])])]),e("button",{directives:[{name:"rippleEffect",rawName:"v-rippleEffect"},{name:"pii-mask",rawName:"v-pii-mask"}],ref:"userMenu-slideOut-trigger",staticClass:"user-details userMenu__userDetails",class:{"has-notifications":t.totalNotificationCount>0},attrs:{type:"button",popovertarget:t.popOverMenuId,popovertargetaction:"toggle"},on:{mouseenter:function(e){t.isHovered=!0},mouseleave:function(e){t.isHovered=!1}}},[e("AvatarRoot",{staticClass:"user-details__avatar userMenu__userDetails__avatar",attrs:{size:"small",hovered:t.isHovered,"data-notificationsCount":t.totalNotificationCount}},[e("AvatarInitials",{attrs:{initials:t.initials}})],1),e("span",{staticClass:"user-name-email userMenu__userDetails__nameEmail"},[e("strong",[t._v(t._s(t.formattedName))]),e("span",{staticClass:"email"},[t._v(t._s(t.session.profile?t.session.profile.email:""))])])],1
25)]):t._e()},[],!1,null,"5f3ee666",null).exports},98073:function(t,e,i){"use strict";i.d(e,{A:function(){return p}});var s=i(32198),a=i(67953),n=i(37223),o=i(24176),r=i(28759),l=i(66090),d=i(3231);class c extends a.lD{get helpRedirectUrl(){return this.absoluteUrl(this.$router.resolve({name:d.A.help}).href)}constructor(...t){super(...t),this.RouteName=d.A}}(0,s.Cg)([(0,a.kv)({type:String,required:!1})],c.prototype,"faqCategory",void 0),(0,s.Cg)([(0,a.kv)({type:String,default:"b2c"})],c.prototype,"faqType",void 0),(0,s.Cg)([(0,a.y_)()],c.prototype,"absoluteUrl",void 0);var u=c=(0,s.Cg)([(0,a.uA)({components:{CallToAction:o.A,IntroBlock:r.A,WizardStep:l.A,FaqItems:n.default}})],c),p=(0,i(41618).A)(u,function(){var t=this._self._c;return this._self._setupProxy,t("WizardStep",{attrs:{hideNumber:!0}},[t("div",{staticClass:"wizardStep__paddedContent faqSectionWizard"},[t("div",[t("IntroBlock",{staticClass:"faqSectionWizard__intro",attrs:{title:this.$t("MigrateDone.care_header_title"),titleAppearance:"h3",description:this.$t("MigrateDone.care_header_subtitle")}}),t("CallToAction",{staticClass:"faqSectionWizard__cta faqSectionWizard__cta--desktop",attrs:{href:this.helpRedirectUrl,appearance:"secondary"}},[this._v(" "+this._s(this.$t("help_and_support"))+" ")])],1),this.faqCategory?t("div",{staticClass:"faqSectionWizard__faqContainer"},[t("FaqItems",{attrs:{category:this.faqCategory,faqType:this.faqType,appearance:"2020"}})],1):this._e(),t("CallToAction",{staticClass:"faqSectionWizard__cta faqSectionWizard__cta--mobile",attrs:{href:this.helpRedirectUrl,appearance:"secondary"}},[this._v(" "+this._s(this.$t("help_and_support"))+" ")])],1)])},[],!1,null,"180bb4e0",null).exports},78160:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(67953),n=i(83301);class o extends a.lD{slotHasEvenItems(){return!!Array.isArray(this.$slots.default)&&this.$slots.default.filter(t=>t.tag).length%2==0}get styleLevelClass(){return(0,n.yu)(this.styleLevel)}}(0,s.Cg)([(0,a.kv)({type:Number,required:!1,default:1})],o.prototype,"styleLevel",void 0);var r=o=(0,s.Cg)([(0,a.uA)({})],o),l=(0,i(41618).A)(r,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"wizardDoneSummary",class:[{"wizardDoneSummary--evenItems":this.slotHasEvenItems},this.styleLevelClass]},[this._t("default")],2)},[],!1,null,"b76fc924",null).exports},10231:function(t,e,i){"use strict";i.d(e,{A:function(){return d}});var s=i(32198),a=i(67953),n=i(24176),o=i(83301);class r extends a.lD{hasLegalSlotContent(){return!!this.$slots.legalChecks}hasDefaultSlotContent(){return!!this.$slots.default}async doOnConfirm(t){if(this.onConfirm)try{this.onConfirmLoading=!0,await this.onConfirm(t)}finally{this.onConfirmLoading=!1}}get isLoading(){return this.onConfirmLoading||this.loading}get styleLevelClass(){return(0,o.yu)(this.styleLevel)}constructor(...t){super(...t),this.onConfirmLoading=!1}}(0,s.Cg)([(0,a.kv)({type:String,required:!1})],r.prototype,"ctaText",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],r.prototype,"secCtaText",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],r.prototype,"footnoteText",void 0),(0,s.Cg)([(0,a.kv)({type:Function,required:!1})],r.prototype,"onConfirm",void 0),(0,s.Cg)([(0,a.kv)({type:Number,required:!1,default:1})],r.prototype,"styleLevel",void 0),(0,s.Cg)([(0,a.y_)()],r.prototype,"$validator",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1})],r.prototype,"loading",void 0),(0,s.Cg)([(0,a.kv)({type:Object,required:!1,default:null})],r.prototype,"slowLoadingOptions",void 0);var l=r=(0,s.Cg)([(0,a.uA)({components:{CallToAction:n.A}})],r),d=(0,i(41618).A)(l,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("footer",{class:["wizardFooter","MyVikingTP",t.styleLevelClass]},[t.hasLegalSlotContent()?e("div",{staticClass:"wizardFooter__legalChecks"},[t._t("legalChecks")],2):t.hasDefaultSlotContent()?e("div",{staticClass:"wizardFooter__default"},[t._t("default")],2):t._e(),t.ctaText||t.secCtaText?e("div",{staticClass:"wizardFooter__ctas"},[t.ctaText?e("CallToAction",{staticClass:"wizardFooter__cta",attrs:{"data-qa":"wizard-footer-cta",type:"submit",once:t.doOnConfirm,slowLoadingOptions:t.slowLoadingOptions,loading:t.loading}},[t._v(" "+t._s(t.ctaText)+" ")]):t._e(),t.secCtaText?e("CallToAction",{staticClass:"wizardFooter__secCta",attrs:{appearance:"link","data-qa":"wizard-footer-sec-cta",disabled:t.isLoading},on:{click:function(e){return e.preventDefault(),t.$emit("reject")}}},[t._v(" "+t._s(t.secCtaText)+" ")]):t._e()],1):t._e(),t.footnoteText?e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.footnoteText,expression:"footnoteText"}
25],staticClass:"wizardFooter__footnote text text--small ExternalContent"}):t._e()])},[],!1,null,"a4aa415a",null).exports},5975:function(t,e,i){"use strict";i.d(e,{A:function(){return v}});var s=i(32198),a=i(16488),n=i(18966),o=i(62765),r=i(67953),l=i(4568),d=i(24176),c=i(14806),u=i(99168),p=i(13352),h=i(76802),_=i(2508);class m extends r.lD{formatOrdinal(t){return(0,n.bQ)(t,this.locale)}get productUsps(){return this.product&&"third_party_subscription"!==this.product.type?this.$t(`product_usps.${this.product.id}`).toString():""}get hasProductUsps(){return!!this.productUsps?.trim()}async updatePromos(){this.shoppingBasketHolder.basketEntries=this.items}onCheckBoxClicked(t){this.$emit("tosAgreed",t)}get showExtraInfo(){return this.extraInfo&&!this.shoppingBasketHolder.hasMonthlyPromo}get discountedTotal(){return null===this.discountedMonthly||this.discountedMonthly>=this.shoppingBasketHolder.totalMonthly?null:this.discountedMonthly}get monthlyPrice(){return this.shoppingBasketHolder.hasMonthlyPromo?this.shoppingBasketHolder.totalMonthlyPromo:this.discountedTotal??this.shoppingBasketHolder.totalMonthly}get monthlyOldPrice(){return this.shoppingBasketHolder.hasMonthlyPromo||null!==this.discountedTotal?this.shoppingBasketHolder.totalMonthly:null}get legalDocumentCheckboxLabel(){return this.product?(0,a.ej)(this.product)?this.$t("tps.agree_to_{tosUrl}_and_{specialConditionsUrl}",{tosUrl:this.legalDocumentService.getTermsAndConditionsUrl(),specialConditionsUrl:this.legalDocumentService.getThirdPartySubscriptionSpecialConditionsUrl(this.product.id)}).toString():this.linkifiedContractSummaryList?this.$t("registration_bb.agree_to_{tosUrl}_{privacyUrl}_{linkifiedContractSummaryList}",{tosUrl:this.legalDocumentService.getTermsAndConditionsUrl(),privacyUrl:this.legalDocumentService.getPrivacyPolicyUrl(),linkifiedContractSummaryList__safe:this.linkifiedContractSummaryList}).toString():"":""}get linkifiedContractSummaryList(){let t=Object.entries(this.contractSummaries).map(([t,e])=>`<a href="${e}" target="_blank">${t}</a>`);return(0,n.PD)(t,this.$t.bind(this))}async doOnConfirm(){if(this.onCtaClicked)try{this.onConfirmLoading=!0,await this.onCtaClicked({agreedToTos:this.agreedToTos})}finally{this.onConfirmLoading=!1}}get isLoading(){return this.onConfirmLoading||this.loading}constructor(...t){super(...t),this.agreedToTos=!1,this.onConfirmLoading=!1,this.showPromoDetails=!1,this.formatMoney=o.up}}(0,s.Cg)([(0,r.kv)({type:Array,required:!0})],m.prototype,"items",void 0),(0,s.Cg)([(0,r.kv)({type:Object,required:!1})],m.prototype,"product",void 0),(0,s.Cg)([(0,r.kv)({type:String,required:!1})],m.prototype,"ctaText",void 0),(0,s.Cg)([(0,r.kv)({type:String,required:!1})],m.prototype,"extraInfo",void 0),(0,s.Cg)([(0,r.kv)({type:String,required:!1})],m.prototype,"promoExtraInfo",void 0),(0,s.Cg)([(0,r.kv)({type:Number,required:!1,default:null})],m.prototype,"discountedMonthly",void 0),(0,s.Cg)([(0,r.kv)({type:Object,required:!1})],m.prototype,"installationAddress",void 0),(0,s.Cg)([(0,r.kv)({type:Boolean,required:!1,default:!0})],m.prototype,"showLineSpeedInfoLink",void 0),(0,s.Cg)([(0,r.kv)({type:Boolean,required:!1,default:!0})],m.prototype,"showTosCheckbox",void 0),(0,s.Cg)([(0,r.kv)({type:Object,required:!1,default:()=>({})})],m.prototype,"contractSummaries",void 0),(0,s.Cg)([(0,r.kv)({type:Function})],m.prototype,"onCtaClicked",void 0),(0,s.Cg)([(0,r.kv)({type:String,required:!1})],m.prototype,"intent",void 0),(0,s.Cg)([(0,r.kv)({type:Boolean,required:!1})],m.prototype,"loading",void 0),(0,s.Cg)([(0,r.y_)()],m.prototype,"config",void 0),(0,s.Cg)([(0,r.y_)()],m.prototype,"legalDocumentService",void 0),(0,s.Cg)([(0,r.y_)()],m.prototype,"shoppingBasketHolder",void 0),(0,s.Cg)([(0,r.ox)("items",{immediate:!0})],m.prototype,"updatePromos",null),(0,s.Cg)([(0,r.ox)("agreedToTos")],m.prototype,"onCheckBoxClicked",null);var g=m=(0,s.Cg)([(0,r.uA)({components:{MonthlyPrice:p.A,Heading:u.A,BroadbandInstallationAddress:l.A,CallToAction:d.A,Checkbox:c.A,PromoDetails:_.A,PaymentMethodOverview:h.A}})],m),v=(0,i(41618).A)(g,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("footer",{staticClass:"wizardFooterShoppingBasket MyVikingTP nextStyleLevel shopping-basket"},[e("div",{staticClass:"wizardFooterShoppingBasket__panel"},[e("div",{staticClass:"wizardFooterShoppingBasket__addressColumn"},[t.installationAddress?e("BroadbandInstallationAddress",{attrs:{installationAddress:t.installationAddress,intent:t.intent,product:t.product}}):t._e()],1),e("div",{staticClass:"wizardFooterShoppingBasket__totals shoppingBasketTotals"},[e("div",{staticClass:"shoppingBasketTotals__firstline"},[e("Heading",{attrs:{tagType:"h3",appearance:"h5"}},[t._v(t._s(t.$t("registration.monthly_costs")))]),e("MonthlyPrice",{staticClass:"monthly-price-total",attrs:{oldPrice:t.monthlyOldPrice,price:t.monthlyPrice}})],1),t.shoppingBasketHolder.hasMonthlyPromo?[e("p",{staticClass:"shoppingBasketTotals__extraInfo monthly-after-promo"},[t._v(" "+t._s(t.$t("registration.after_promo_monthly_fee_is_{fee}",{fee:t.formatMoney(t.shoppingBasketHolder.totalMonthly,"always_two")}))+" "),e("button",{staticClass:"details-toggle buttonAsLink",attrs:{"aria-controls":"promo-detail
25s","aria-expanded":t.showPromoDetails.toString()},on:{click:function(e){e.preventDefault(),t.showPromoDetails=!t.showPromoDetails}}},[t._v(" "+t._s(t.showPromoDetails?t.$t("order_summary.hide_details"):t.$t("order_summary.show_details"))+" ")])]),e("PromoDetails",{staticClass:"shoppingBasketTotals__promoBreakout monthly-promo-breakout",attrs:{id:"promo-details",monthlyTotalsAfterPromo:t.shoppingBasketHolder.monthlyTotalsAfterPromo,promoExtraInfo:t.promoExtraInfo,"aria-hidden":!t.showPromoDetails}})]:t._e(),t.showExtraInfo?e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.extraInfo,expression:"extraInfo"}],staticClass:"shoppingBasketTotals__extraInfo monthly-extra-info"}):t._e(),e("div",{staticClass:"shoppingBasketTotals__uspCtaContainer"},[t.hasProductUsps?e("div",{staticClass:"shoppingBasketTotals__productUsps"},[e("ul",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.productUsps,expression:"productUsps"}],staticClass:"okNokListCondensed"})]):t._e(),e("div",{staticClass:"shoppingBasketTotals__legalCtaContainer"},[t.showTosCheckbox&&t.legalDocumentCheckboxLabel?e("Checkbox",{staticClass:"shoppingBasketTotals__legalCheckbox",attrs:{id:"tos_checkbox",label:t.legalDocumentCheckboxLabel},model:{value:t.agreedToTos,callback:function(e){t.agreedToTos=e},expression:"agreedToTos"}}):t._e(),e("CallToAction",{staticClass:"shoppingBasketTotals__orderNowCta submit-button",attrs:{type:"submit",disabled:t.isLoading,once:t.doOnConfirm}},[t._v(" "+t._s(t.ctaText)+" ")])],1)])],2)]),e("PaymentMethodOverview")],1)},[],!1,null,"6e6fc36b",null).exports},95724:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{}(0,s.Cg)([(0,a.kv)({default:""})],n.prototype,"title",void 0),(0,s.Cg)([(0,a.kv)({default:""})],n.prototype,"primaryValue",void 0),(0,s.Cg)([(0,a.kv)({default:""})],n.prototype,"secondaryValue",void 0),(0,s.Cg)([(0,a.kv)({default:!1})],n.prototype,"loading",void 0),(0,s.Cg)([(0,a.kv)({default:"short"})],n.prototype,"shimmerTypePrimaryValue",void 0),(0,s.Cg)([(0,a.kv)({default:"short"})],n.prototype,"shimmerTypeSecondaryValue",void 0),(0,s.Cg)([(0,a.kv)({required:!1,default:null})],n.prototype,"errorMessage",void 0);var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"wizardInfoItem",class:{"wizardInfoItem--isLoading":this.loading}},[t("h4",{staticClass:"wizardInfoItem__title"},[this._v(this._s(this.title))]),this.errorMessage?[t("div",{staticClass:"wizardInfoItem__error"},[this._v(" "+this._s(this.errorMessage)+" ")])]:[t("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.loading?" ":this.primaryValue,expression:"loading ? ' ' : primaryValue"}],staticClass:"wizardInfoItem__primaryValue",class:{"wizardInfoItem__primaryValue--long":"long"===this.shimmerTypePrimaryValue}}),t("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.loading?" ":this.secondaryValue,expression:"loading ? ' ' : secondaryValue"}],staticClass:"wizardInfoItem__secondaryValue",class:{"wizardInfoItem__secondaryValue--long":"long"===this.shimmerTypeSecondaryValue}})]],2)},[],!1,null,"66f4a14e",null).exports},93199:function(t,e,i){"use strict";i.d(e,{A:function(){return d}});var s=i(32198),a=i(67953),n=i(20174),o=i(66090);class r extends a.lD{get loadingAlign(){return"vertical"===this.appearance?"center":"left"}}(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:"loading"})],r.prototype,"message",void 0),(0,s.Cg)([(0,a.kv)({default:2e4})],r.prototype,"cycleInterval",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:"horizontal"})],r.prototype,"appearance",void 0);var l=r=(0,s.Cg)([(0,a.uA)({components:{Loading:n.A,WizardStep:o.A}})],r),d=(0,i(41618).A)(l,function(){var t=this._self._c;return this._self._setupProxy,t("WizardStep",{staticClass:"wizardLoading",attrs:{hideNumber:!0}},[t("div",{staticClass:"wizardStep__paddedContent"},[t("Loading",{attrs:{message:this.message,align:this.loadingAlign,spinnerSize:"2rem",cycleInterval:this.cycleInterval}})],1)])},[],!1,null,null,null).exports}
25,18569:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(67953),n=i(17655);class o extends a.lD{}(0,s.Cg)([(0,a.kv)({type:String,required:!0})],o.prototype,"title",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!0})],o.prototype,"description",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:"success"})],o.prototype,"state",void 0);var r=o=(0,s.Cg)([(0,a.uA)({components:{WizardStepIntro:n.A}})],o),l=(0,i(41618).A)(r,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"wizardNotification nextStyleLevel"},[t("WizardStepIntro",{staticClass:"wizardNotification__intro",attrs:{title:this.title,description:this.description,state:this.state}}),this._t("default")],2)},[],!1,null,"3f51b16f",null).exports},98493:function(t,e,i){"use strict";i.d(e,{A:function(){return m}});var s=i(32198),a=i(1122),n=i(94182),o=i(34313),r=i(62765),l=i(57399),d=i(70180),c=i(67953),u=i(95724),p=i(88029);class h extends c.lD{get balanceLoading(){return!this.balance}get balanceLoadingFailedErrorMessage(){return"error"===this.balance?this.$t("migrate_sim.failed_to_retrieve_renewal_or_expiry_date"):""}get currentTopupLoading(){return"loading"===this.currentTopup}get bundleExpiryInfoItem(){return"irrelevant"===this.balance?null:"error"===this.balance?{title:this.bundleExpiryTimestampTitle(this.subscription.type),primaryValue:"",secondaryValue:""}:this.subscription&&(this.balanceLoading||this.balance.bundleExpiryDate)?{title:this.bundleExpiryTimestampTitle(this.subscription.type),primaryValue:this.balanceLoading?"":this.formatDateLong(this.balance.bundleExpiryDate,this.locale),secondaryValue:this.balanceLoading?"":this.formatTime(this.balance.bundleExpiryDate,this.locale)}:null}get subscriptionType(){return this.subscription?this.subscription.isDataOnly?"data-only":this.subscription.type:null}get postpaidInfoItem(){if(!this.subscription||!(0,a.s1)(this.subscription.product))return null;let t=(0,a.hX)(this.subscription.product),e=this.formatMegsWithUnit(t?1/0:this.subscription.product.definitions.bundles.data||0,this.$t.bind(this)),i=this.formatMinutesWithUnit(this.subscription.product.definitions.bundles.voice||0,this.$t.bind(this));return{title:this.$t("migrate_sim.current_subscription"),primaryValue:this.formatMoney(this.subscription.product.monthly,"two_if_significant"),secondaryValue:`${e} ${i}`}}bundleExpiryTimestampTitle(t){return"postpaid"===t?this.$t("migrate_sim.subscription_renews_on"):this.$t("migrate_sim.bundle_expires_on")}constructor(...t){super(...t),this.formatMegsWithUnit=n._c,this.formatMinutesWithUnit=o.f3,this.formatMoney=r.up,this.formatMsisdn=l.i,this.formatDateLong=d.OS,this.formatTime=d.fU}}(0,s.Cg)([(0,c.kv)({type:Object,default:null})],h.prototype,"subscription",void 0),(0,s.Cg)([(0,c.kv)({default:null})],h.prototype,"currentTopup",void 0),(0,s.Cg)([(0,c.kv)({default:"irrelevant"})],h.prototype,"balance",void 0);var _=h=(0,s.Cg)([(0,c.uA)({components:{WizardSubscriptionInfo:p.A,WizardInfoItem:u.A}})],h),m=(0,i(41618).A)(_,function(){var t=this._self._c;return this._self._setupProxy,t("WizardSubscriptionInfo",[t("WizardInfoItem",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],staticClass:"wizardSubscriptionInfo__infoItem",attrs:{title:this.$t("migrate_sim.ph
25one_number"),primaryValue:this.formatMsisdn(this.subscription.msisdn),secondaryValue:this.subscription.alias}}),this.postpaidInfoItem?t("WizardInfoItem",{staticClass:"wizardSubscriptionInfo__infoItem",attrs:{title:this.postpaidInfoItem.title,primaryValue:this.postpaidInfoItem.primaryValue,secondaryValue:this.postpaidInfoItem.secondaryValue}}):this._e(),"data-only"===this.subscriptionType&&this.currentTopup?t("WizardInfoItem",{staticClass:"wizardSubscriptionInfo__infoItem",attrs:{title:this.$t("migrate_sim.current_prepaid_card"),primaryValue:this.$t("only_data"),secondaryValue:this.currentTopupLoading?"":this.formatMinutesWithUnit(this.currentTopup.definitions.bundles.data,this.$t),loading:this.currentTopupLoading}}):this._e(),"prepaid"===this.subscriptionType&&this.currentTopup?t("WizardInfoItem",{staticClass:"wizardSubscriptionInfo__infoItem",attrs:{title:this.$t("migrate_sim.current_prepaid_card"),primaryValue:this.currentTopupLoading?"":this.formatMoney(this.currentTopup.price,"two_if_significant"),secondaryValue:this.currentTopupLoading?"":this.$t(`focus_${this.currentTopup.focus}`),loading:this.currentTopupLoading}}):this._e(),this.bundleExpiryInfoItem?t("WizardInfoItem",{staticClass:"wizardSubscriptionInfo__infoItem",attrs:{title:this.bundleExpiryInfoItem.title,primaryValue:this.bundleExpiryInfoItem.primaryValue,secondaryValue:this.bundleExpiryInfoItem.secondaryValue,loading:this.balanceLoading,errorMessage:this.balanceLoadingFailedErrorMessage,shimmerTypePrimaryValue:"long"}}):this._e()],1)},[],!1,null,null,null).exports},66090:function(t,e,i){"use strict";i.d(e,{A:function(){return c}});var s=i(32198),a=i(67953),n=i(17655),o=i(50778),r=i(83301);class l extends a.lD{get styleLevelClass(){return(0,r.yu)(this.styleLevel)}mounted(){this.toggleEnableDisableTabbingIntoChildElements()}updated(){this.toggleEnableDisableTabbingIntoChildElements()}toggleEnableDisableTabbingIntoChildElements(){this.disabled?this.disableTabbingIntoChildElements():this.reEnableTabbingIntoChildElements()}reEnableTabbingIntoChildElements(){Array.from(this.$refs.wizardStep.getElementsByTagName("*")).filter(t=>t.hasAttribute("data-prev-tabindex")).forEach(t=>{if(t instanceof HTMLElement){let e=t.getAttribute("data-prev-tabindex");null!==e&&(t.tabIndex=parseInt(e,10),t.removeAttribute("data-prev-tabindex"))}})}disableTabbingIntoChildElements(){Array.from(this.$refs.wizardStep.getElementsByTagName("*")).forEach(t=>{t instanceof HTMLElement&&["a","button","input","textarea","select","details"].includes(t.tagName.toLowerCase())&&t.tabIndex>-1&&!t.hasAttribute("disabled")&&(t.setAttribute("data-prev-tabindex",t.tabIndex.toString()),t.tabIndex=-1)})}hasFooterSlot(){return!!this.$slots.footer}hasDefaultSlot(){return!!this.$slots.default}getKeyboardFocusableElements(t){return[...t.querySelectorAll('a, button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])')].filter(t=>!t.hasAttribute("disabled"))}}(0,s.Cg)([(0,a.kv)({type:String,required:!1})],l.prototype,"title",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],l.prototype,"description",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],l.prototype,"hideNumber",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],l.prototype,"disabled",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],l.prototype,"optional",void 0),(0,s.Cg)([(0,a.kv)({type:Number,required:!1,default:1})],l.prototype,"styleLevel",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:null})],l.prototype,"state",void 0),(0,s.Cg)([(0,a.ox)("disabled")],l.prototype,"toggleEnableDisableTabbingIntoChildElements",null);var d=l=(0,s.Cg)([(0,a.uA)({inject:["$validator"],components:{Tag:o.A,WizardStepIntro:n.A}})],l),c=(0,i(41618).A)(d,function(){var t=this._self._c;return this._self._setupProxy,t("section",{ref:"wizardStep",class:["wizardStep","MyVikingTP",{"wizardStep--noNumber":this.hideNumber,"wizardStep--isDisabled":this.disabled},this.styleLevelClass]},[t("div",[this.optional?t("Tag",{staticClass:"wizardStep__state",attrs:{appearance:"blue"}},[this._v(" "+this._s(this.$t("wizard_step.optional"))+" ")]):this._e(),this.title||this.description?t("WizardStepIntro",{staticClass:"wizardStep__intro",attrs:{title:this.title,state:this.state,description:this.description,hideNumber:this.hideNumber}}):this._e(),this.hasDefaultSlot()?t("div",{staticClass:"wizardStep__content"},[this._t("default")],2):this._e()],1),this.hasFooterSlot()?t("footer",{staticClass:"wizardStep__footer"},[this._t("footer")],2):this._e()])},[],!1,null,"7445038e",null).exports}
25,17655:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(67953),n=i(99168);class o extends a.lD{}(0,s.Cg)([(0,a.kv)({type:String,required:!1})],o.prototype,"title",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],o.prototype,"description",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],o.prototype,"hideNumber",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],o.prototype,"state",void 0);var r=o=(0,s.Cg)([(0,a.uA)({components:{Heading:n.A}})],o),l=(0,i(41618).A)(r,function(){var t=this._self._c;return this._self._setupProxy,t("header",{staticClass:"wizardStepIntro"},[this.title?t("Heading",{staticClass:"wizardStepIntro__title",class:{"wizardStepIntro__title--withNumber":!this.hideNumber&&!this.state,"wizardStepIntro__title--success":"success"===this.state,"wizardStepIntro__title--failed":"failure"===this.state,"wizardStepIntro__title--warning":"warning"===this.state,"wizardStepIntro__title--info":"info"===this.state},attrs:{appearance:"h4"}},[this._v(" "+this._s(this.title)+" ")]):this._e(),this.description?t("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.description,expression:"description"}],staticClass:"text ExternalContent"}):this._e()],1)},[],!1,null,"6b9cb55a",null).exports},88029:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{}var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"wizardSubscriptionInfo styleLevel1"},[this._t("default")],2)},[],!1,null,"b5ada4d6",null).exports},40588:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(67953),n=i(99168);class o extends a.lD{hasHeaderRightSlotContent(){return!!this.$scopedSlots.headerRight}}(0,s.Cg)([(0,a.kv)({type:String,required:!1})],o.prototype,"title",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:"h6"})],o.prototype,"titleTag",void 0);var r=o=(0,s.Cg)([(0,a.uA)({components:{Heading:n.A}})],o),l=(0,i(41618).A)(r,function(){var t=this._self._c;return this._self._setupProxy,t("section",{staticClass:"panel nextStyleLevel"},[this.title||this.hasHeaderRightSlotContent()?t("header",{staticClass:"panel__header panel-header"},[this.title?t("Heading",{attrs:{appearance:"h5",tagType:this.titleTag}},[this._v(this._s(this.title))]):this._e(),this.hasHeaderRightSlotContent()?t("div",{staticClass:"panel__header__status panel-status"},[this._t("headerRight")],2):this._e()],1):this._e(),t("div",{staticClass:"my-viking-sidePanel__main panel__main panel-main"},[this._t("default")],2)])},[],!1,null,"7d96704c",null).exports},92394:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{}(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:""})],n.prototype,"logoUrl",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:""})],n.prototype,"imageAltText",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],n.prototype,"loading",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:""})],n.prototype,"appearance",void 0);var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"partnerLogo",class:{"partnerLogo--isLoading":this.loading,"partnerLogo--circle":"circle"===this.appearance,"partnerLogo--slightlyRotatedClockwise":"slightlyRotatedClockwise"===this.appearance}},[this.logoUrl?t("img",{attrs:{src:this.logoUrl,alt:this.imageAltText}}):this._e()])},[],!1,null,"8a9293e0",null).exports},87339:function(t,e,i){"use strict";i.d(e,{A:function(){return v}});var s=i(32198),a=i(76565),n=i(90004),o=i(94182),r=i(67953),l=i(18456),d=i(79847),c=i(72208),u=i(13352),p=i(50778),h=i(78906);let _=a.DateTimeFormatter.ofPattern("dd/MM/yyyy");class m extends r.lD{mounted(){if(!this.includeVat&&this.b2bReduction)throw new n.p("Unsupported combination: We only show b2bReductions to employees")}get product(){return this.value}set product(t){t&&this.$emit("input",t)}allowsDataThrottling(t){let e=t.definitions.bundles;return e.nonFupData&&e.data&&e.nonFupData>e.data}describeVoiceAndText(t){if(t.metadata&&t.metadata.unlimited)return this.$t("postpaidselector.unlimited_data_and_calling_and_texting");let e=t.definitions.bundles.voice,i=1/0===e,s=this.allowsDataThrottling(t);return i&&s?this.$t("postpaidselector.unlimited_calling_and_texting_with_fup"):i?this.$t("postpaidselector.unlimited_calling_and_texting"):this.$t("postpaidselector.{voiceMins}_min_calling_and_unlimited_texting",{voiceMins:e})}describeSpeed(t){let e=t.definitions.features.maxDownloadMbps;return e?this.$t("postpaidselector.speed_upto_{maxSpeed}_mbps",{maxSpeed:e}):""}describeData(t){let e=t.definitions.bundles;return(0,o._c)(e.data||0,this.$t.bind(this))}optionClassForRadioGroup(t){return t===this.bestSeller||this.b2bReduction&&this.b2bReduction===t.monthly?"RadioGroup__item--childHasMarker":null}promoApplies(t){return this.promo?this.promo.applies(t):this.includeVat&&null!==this.b2bReduction}calculatePromo(t){let e=this.includeVat?t.monthly:t.monthlyExcludingVat;return this.b2bReduction?e-this.b2bReduction:(0,h.bp)(this.promo).apply(t,e,!0)}productMarker(t){return this.b2bReduction===t.monthly?this.$t("postpaidselector.paid_by_employer"):this.bestSeller===t?this.$t("postpaidselector.bestSeller"):null}supports5g(t){return t.definitions?.features?.has5G}getPromoDuration(t){let e=this.promo?.benefitsFor(t);return e&&1===e.length&&e[0]?.durationUntil?this.$t("postpaidselector.promo_duration_until_{date}",{date:e?.[0]?.durationUntil?.format(_)}
25):null}}(0,s.Cg)([(0,r.y_)()],m.prototype,"config",void 0),(0,s.Cg)([(0,r.kv)()],m.prototype,"options",void 0),(0,s.Cg)([(0,r.kv)()],m.prototype,"bestSeller",void 0),(0,s.Cg)([(0,r.kv)()],m.prototype,"value",void 0),(0,s.Cg)([(0,r.kv)({default:!1})],m.prototype,"readOnly",void 0),(0,s.Cg)([(0,r.kv)()],m.prototype,"loading",void 0),(0,s.Cg)([(0,r.kv)({required:!1,default:null})],m.prototype,"promo",void 0),(0,s.Cg)([(0,r.kv)({required:!1,default:!0})],m.prototype,"includeVat",void 0),(0,s.Cg)([(0,r.kv)({required:!1,default:null})],m.prototype,"b2bReduction",void 0),(0,s.Cg)([(0,r.kv)({type:Boolean,required:!1,default:!1})],m.prototype,"narrow",void 0),(0,s.Cg)([(0,r.kv)({type:Boolean,required:!1,default:!1})],m.prototype,"presentational",void 0);var g=m=(0,s.Cg)([(0,r.uA)({components:{Footnote:l.A,MonthlyPrice:u.A,RadioGroup:d.A,Tag:p.A,FourGFiveGLabel:c.A}})],m),v=(0,i(41618).A)(g,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"PostpaidOptions",class:{"PostpaidOptions--narrow":t.narrow,"PostpaidOptions--b2b":!t.includeVat,"PostpaidOptions--presentational":t.presentational,"PostpaidOptions--presentationalForceSingleColumn":t.presentational&&(t.narrow||1===t.options.length)},attrs:{"aria-busy":t.loading}},[t.presentational?[t.loading?t._l(6,function(i){return e("div",{key:`PostpaidOptions__option-${i}`,staticClass:"PostpaidOptions__option PostpaidOption PostpaidOption--isLoading PostpaidOption--presentational",staticStyle:{"--parentPadding":"var(--presentationalPPOPadding)"}},[t._m(0,!0),e("span",{staticClass:"PostpaidOption__voiceTextDataAmount shimmer"},[t._v("Â ")])])}):t._l(t.options,function(i){return e("div",{key:`PostpaidOptions__option-loading-${i.id}`,staticClass:"PostpaidOptions__option PostpaidOption PostpaidOption--presentational",class:{"PostpaidOption--narrow":t.narrow,"PostpaidOption--hasMarker":!!t.productMarker(i)},staticStyle:{"--parentPadding":"var(--presentationalPPOPadding)"}},[t.productMarker(i)?e("Tag",{staticClass:"PostpaidOption__productMarker",attrs:{size:"small",appearance:"blue"}},[t._v(" "+t._s(t.productMarker(i))+" ")]):t._e(),e("div",{staticClass:"PostpaidOption__top"},[e("div",{staticClass:"PostpaidOption__dataAmount"},[e("div",[e("span",{staticClass:"data-amount"},[t._v(" "+t._s(i.metadata&&i.metadata.unlimited?i.title:t.describeData(i))+" ")])]),t.config.featureFlags.show5gLabels?e("Tag",{staticClass:"PostpaidOption__dataAmount__networkTag",attrs:{appearance:"blue",size:"small",outlined:!0}},[e("FourGFiveGLabel",{attrs:{product:i}})],1):t._e()],1)]),e("div",{staticClass:"PostpaidOption__voiceTextAmount"},[t._v(" "+t._s(`${t.describeVoiceAndText(i)}`)+" "),t.config.featureFlags.pp1400enableSpeedTieringLineup?e("span",{staticClass:"PostpaidOption__speed"},[t._v(" "+t._s(`${t.describeSpeed(i)}`)+" ")]):t._e()]),e("div",{staticClass:"PostpaidOption__price"},[t.promoApplies(i)?e("MonthlyPrice",{attrs:{oldPrice:t.includeVat?i.monthly:i.monthlyExcludingVat,price:t.calculatePromo(i),footNote:t.getPromoDuration(i)},scopedSlots:t._u([{key:"footNoteSups",fn:function(){return[t.includeVat?t._e():e("Footnote",{attrs:{slug:"vat-info",note:t.$t("postpaidselector.excl_vat_information")}})]},proxy:!0}],null,!0)}):e("MonthlyPrice",{attrs:{price:t.includeVat?i.monthly:i.monthlyExcludingVat},scopedSlots:t._u([{key:"footNoteSups",fn:function(){return[t.includeVat?t._e():e("Footnote",{attrs:{slug:"vat-info",note:t.$t("postpaidselector.excl_vat_information")}})]},proxy:!0}],null,!0)})],1)],1)})]:[t.loading?e("RadioGroup",{staticClass:"PostpaidOptions__options",attrs:{numberOfLoadingItems:6,topAlignChecks:!0}},[e("div",{staticClass:"PostpaidOption PostpaidOption--isLoading",staticStyle:{"--parentPadding":"var(--radioButtonLabelPadding)"}},[e("div",{staticClass:"PostpaidOption__top"},[e("span",{staticClass:"PostpaidOption__dataAmount shimmer"},[t._v("Â ")]),e("span",{staticClass:"PostpaidOption__price shimmer"},[t._v("Â ")])]),e("span",{staticClass:"PostpaidOption__voiceTextDataAmount shimmer"},[t._v("Â ")])])]):e("RadioGroup",{staticClass:"PostpaidOptions__options",attrs:{disabled:t.readOnly,name:"postpaid_plan",topAlignChecks:!0,options:t.options,optionKey:"id",optionClass:t.optionClassForRadioGroup},on:{click:(e,i)=>t.$emit("productSelected",i)},scopedSlots:t._u([{key:"default",fn:function({option:i}){return[e("div",{staticClass:"PostpaidOption",class:{"PostpaidOption--narrow":t.narrow,"PostpaidOption--hasMarker":!!t.productMarker(i),"PostpaidOption--unlimited":i.metadata&&i.metadata.unlimited},staticStyle:{"--parentPadding":"var(--radioButtonLabelPadding)"}},[t.productMarker(i)?e("Tag",{staticClass:"PostpaidOption__productMarker",attrs:{size:"small",appearance:"blue"}},[t._v(" "+t._s(t.productMarker(i))+" ")]):t._e(),e("div",{staticClass:"PostpaidOption__top"},[e("div",{staticClass:"PostpaidOption__dataAmount"},[e("div",[e("span",{staticClass:"data-amount PostpaidOption__dataAmount__text"},[t._v(" "+t._s(i.metadata&&i.metadata.unlimited?i.title:t.describeData(i))+" ")])]),t.config.featureFlags.show5gLabels?e("Tag",{staticClass:"PostpaidOption__dataAmount__networkTag",attrs:{appearance:"blue",size:"small",outlined:!0}},[e("FourGFiveGLabel",{attrs:{product:i}})],1):t._e()],1)]),e("div",{staticClass:"PostpaidOption__voiceTextAmount"},[t._v(" "+t._s(`${t.describeVoiceAndText(i)}`)+" "),t.config.featureFlags.pp1400enableSpeedTieringLineup?e("span",{staticClass:"PostpaidOption__speed"},[t._v(" "+t._s(`${t.describeSpeed(i)}`)+" ")]):t._e(),e("span",{staticClass:"PostpaidOption__networkTagAlternative"},[t._v(" - "),e("strong",[t._v(t._s(t.$t("surf_on"))+" "),e("FourGFiveGLabel",{attrs:{product:i}})],1)])]),e("div",{staticClass:"PostpaidOption__price"},[t.promoApplies(i)?e("MonthlyPrice",{attrs:{oldPrice:t.includeVat?i.monthly:i.monthlyExcludingVat,price:t.calculatePromo(i),footNote:t.getPromoDuration(i)},scopedSlots:t._u([{key:"footNoteSups",fn:function(){return[t.includeVat?t._e():e("Footnote",{attrs:{slug:"vat-info",note:t.$t("postpaidselector.excl_vat_information")}})]},proxy:!0}],null,!0)}):e("MonthlyPrice",{attrs:{price:t.includeVat?i.monthly:i.monthlyExcludingVat},scopedSlots:t._u([{key:"footNoteSups",fn:function(){return[t.includeVat?t._e():e("Footnote",{attrs:{slug:"vat-info",note:t.$t("postpaidselector.excl_vat_information")}})]},proxy:!0}],null,!0)})],1)],1)]}}],null,!1,0x464b0ec7),model:{value:t.product,callback:function(e){t.product=e},expression:"product"}})]],2)},[function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"PostpaidOption__top"},[t("span",{staticClass:"PostpaidOption__dataAmount shimmer"},[this._v("Â ")]),t("span",{staticClass:"PostpaidOption__price shimmer"},[this._v("Â ")])])}],!1,null,null,null).exports}
25,34249:function(t,e,i){"use strict";i.d(e,{A:function(){return k}});var s=i(32198),a=i(76565),n=i(58294),o=i(1122),r=i(16488),l=i(50103),d=i(94182),c=i(62765),u=i(67953),p=i(18456),h=i(24176),_=i(72208),m=i(13352),g=i(50778);class v extends u.lD{get trustpilotUrl(){switch(this.locale){case"nl":return"https://nl.trustpilot.com/review/mobilevikings.be";case"fr":return"https://fr-be.trustpilot.com/review/mobilevikings.be";default:return"https://uk.trustpilot.com/review/mobilevikings.be"}}}var f=v=(0,s.Cg)([u.uA],v),y=i(41618),b=(0,y.A)(f,function(){var t=this._self._c;return this._self._setupProxy,t("a",{staticClass:"TrustpilotWidget",attrs:{href:this.trustpilotUrl,rel:"noopener noreferrer",target:"_blank"}},[t("svg",{staticClass:"TrustpilotWidget__logo",attrs:{role:"img","aria-labelledby":"trustpilotLogo",viewBox:"0 0 126 31",xmlns:"http://www.w3.org/2000/svg"}},[t("title",{attrs:{id:"trustpilotLogo"}},[this._v("Trustpilot")]),t("path",{staticClass:"TrustpilotWidget__logo__text",attrs:{d:"M33.074774 11.07005H45.81806v2.364196h-5.010656v13.290316h-2.755306V13.434246h-4.988435V11.07005h.01111zm12.198892 4.319629h2.355341v2.187433h.04444c.077771-.309334.222203-.60762.433295-.894859.211092-.287239.466624-.56343.766597-.79543.299972-.243048.633276-.430858.999909-.585525.366633-.14362.744377-.220953 1.12212-.220953.288863 0 .499955.011047.611056.022095.1111.011048.222202.033143.344413.04419v2.408387c-.177762-.033143-.355523-.055238-.544395-.077333-.188872-.022096-.366633-.033143-.544395-.033143-.422184 0-.822148.08838-1.199891.254096-.377744.165714-.699936.41981-.977689.740192-.277753.331429-.499955.729144-.666606 1.21524-.166652.486097-.244422 1.03848-.244422 1.668195v5.39125h-2.510883V15.38968h.01111zm18.220567 11.334883H61.02779v-1.579813h-.04444c-.311083.574477-.766597 1.02743-1.377653 1.369908-.611055.342477-1.233221.51924-1.866497.51924-1.499864 0-2.588654-.364573-3.25526-1.104765-.666606-.740193-.999909-1.856005-.999909-3.347437V15.38968h2.510883v6.948968c0 .994288.188872 1.701337.577725 2.1101.377744.408763.922139.618668 1.610965.618668.533285 0 .96658-.077333 1.322102-.243048.355524-.165714.644386-.37562.855478-.65181.222202-.265144.377744-.596574.477735-.972194.09999-.37562.144431-.784382.144431-1.226288v-6.573349h2.510883v11.323836zm4.27739-3.634675c.07777.729144.355522 1.237336.833257 1.535623.488844.287238 1.06657.441905 1.744286.441905.233312 0 .499954-.022095.799927-.055238.299973-.033143.588836-.110476.844368-.209905.266642-.099429.477734-.254096.655496-.452954.166652-.198857.244422-.452953.233312-.773335-.01111-.320381-.133321-.585525-.355523-.784382-.222202-.209906-.499955-.364573-.844368-.497144-.344413-.121525-.733267-.232-1.17767-.320382-.444405-.088381-.888809-.18781-1.344323-.287239-.466624-.099429-.922138-.232-1.355432-.37562-.433294-.14362-.822148-.342477-1.166561-.596573-.344413-.243048-.622166-.56343-.822148-.950097-.211092-.386668-.311083-.861716-.311083-1.436194 0-.618668.155542-1.12686.455515-1.54667.299972-.41981.688826-.75124 1.14434-1.005336.466624-.254095.97769-.430858 1.544304-.541334.566615-.099429 1.11101-.154667 1.622075-.154667.588836 0 1.15545.066286 1.688736.18781.533285.121524 1.02213.320381 1.455423.60762.433294.276191.788817.640764 1.07768 1.08267.288863.441905.466624.98324.544395 1.612955h-2.621984c-.122211-.596572-.388854-1.005335-.822148-1.204193-.433294-.209905-.933248-.309334-1.488753-.309334-.177762 0-.388854.011048-.633276.04419-.244422.033144-.466624.088382-.688826.165715-.211092.077334-.388854.198858-.544395.353525-.144432.154667-.222203.353525-.222203.60762 0 .309335.111101.552383.322193.740193.211092.18781.488845.342477.833258.475048.344413.121524.733267.232 1.177671.320382.444404.088381.899918.18781 1.366542.287239.455515.099429.899919.232 1.344323.37562.444404.14362.833257.342477 1.17767.596573.344414.254095.622166.56343.833258.93905.211092.37562.322193.850668.322193 1.40305 0 .673906-.155541 1.237336-.466624 1.712385-.311083.464001-.711047.850669-1.199891 1.137907-.488845.28724-1.04435.508192-1.644295.640764-.599946.132572-1.199891.198857-1.788727.198857-.722156 0-1.388762-.077333-1.999818-.243048-.611056-.165714-1.14434-.408763-1.588745-.729144-.444404-.33143-.799927-.740192-1.
2505546-1.226289-.255532-.486096-.388853-1.071621-.411073-1.745528h2.533103v-.022095zm8.288135-7.700208h1.899828v-3.402675h2.510883v3.402675h2.26646v1.867052h-2.26646v6.054109c0 .265143.01111.486096.03333.684954.02222.18781.07777.353524.155542.486096.07777.132572.199981.232.366633.298287.166651.066285.377743.099428.666606.099428.177762 0 .355523 0 .533285-.011047.177762-.011048.355523-.033143.533285-.077334v1.933338c-.277753.033143-.555505.055238-.811038.088381-.266642.033143-.533285.04419-.811037.04419-.666606 0-1.199891-.066285-1.599855-.18781-.399963-.121523-.722156-.309333-.944358-.552381-.233313-.243049-.377744-.541335-.466625-.905907-.07777-.364573-.13332-.784383-.144431-1.248384v-6.683825h-1.899827v-1.889147h-.02222zm8.454788 0h2.377562V16.9253h.04444c.355523-.662858.844368-1.12686 1.477644-1.414098.633276-.287239 1.310992-.430858 2.055369-.430858.899918 0 1.677625.154667 2.344231.475048.666606.309335 1.222111.740193 1.666515 1.292575.444405.552382.766597 1.193145.9888 1.92229.222202.729145.333303 1.513527.333303 2.3421 0 .762288-.099991 1.50248-.299973 2.20953-.199982.718096-.499955 1.347812-.899918 1.900194-.399964.552383-.911029.98324-1.533194 1.31467-.622166.33143-1.344323.497144-2.18869.497144-.366634 0-.733267-.033143-1.0999-.099429-.366634-.066286-.722157-.176762-1.05546-.320381-.333303-.14362-.655496-.33143-.933249-.56343-.288863-.232-.522175-.497144-.722157-.79543h-.04444v5.656393h-2.510883V15.38968zm8.77698 5.67849c0-.508193-.06666-1.005337-.199981-1.491433-.133321-.486096-.333303-.905907-.599946-1.281527-.266642-.37562-.599945-.673906-.988799-.894859-.399963-.220953-.855478-.342477-1.366542-.342477-1.05546 0-1.855387.364572-2.388672 1.093717-.533285.729144-.799928 1.701337-.799928 2.916578 0 .574478.066661 1.104764.211092 1.59086.144432.486097.344414.905908.633276 1.259432.277753.353525.611056.629716.99991.828574.388853.209905.844367.309334 1.355432.309334.577725 0 1.05546-.121524 1.455423-.353525.399964-.232.722157-.541335.97769-.905907.255531-.37562.444403-.79543.555504-1.270479.099991-.475049.155542-.961145.155542-1.458289zm4.432931-9.99812h2.510883v2.364197h-2.510883V11.07005zm0 4.31963h2.510883v11.334883h-2.510883V15.389679zm4.755124-4.31963h2.510883v15.654513h-2.510883V11.07005zm10.210184 15.963847c-.911029 0-1.722066-.154667-2.433113-.452953-.711046-.298287-1.310992-.718097-1.810946-1.237337-.488845-.530287-.866588-1.160002-1.12212-1.889147-.255533-.729144-.388854-1.535622-.388854-2.408386 0-.861716.133321-1.657147.388853-2.386291.255533-.729145.633276-1.35886 1.12212-1.889148.488845-.530287 1.0999-.93905 1.810947-1.237336.711047-.298286 1.522084-.452953 2.433113-.452953.911028 0 1.722066.154667 2.433112.452953.711047.298287 1.310992.718097 1.810947 1.237336.488844.530287.866588 1.160003 1.12212 1.889148.255532.729144.388854 1.524575.388854 2.38629 0 .872765-.133322 1.679243-.388854 2.408387-.255532.729145-.633276 1.35886-1.12212 1.889147-.488845.530287-1.0999.93905-1.810947 1.237337-.711046.298286-1.522084.452953-2.433112.452953zm0-1.977528c.555505 0 1.04435-.121524 1.455423-.353525.411074-.232.744377-.541335 1.01102-.916954.266642-.37562.455513-.806478.588835-1.281527.12221-.475049.188872-.961145.188872-1.45829 0-.486096-.066661-.961144-.188872-1.44724-.122211-.486097-.322193-.905907-.588836-1.281527-.266642-.37562-.599945-.673907-1.011019-.905907-.411074-.232-.899918-.353525-1.455423-.353525-.555505 0-1.04435.121524-1.455424.353525-.411073.232-.744376.541334-1.011019.905907-.266642.37562-.455514.79543-.588835 1.281526-.122211.486097-.188872.961145-.188872 1.447242 0 .497144.06666.98324.188872 1.458289.12221.475049.322193.905907.588835 1.281527.266643.37562.599946.684954 1.01102.916954.411073.243048.899918.353525 1.455423.353525zm6.4883-9.66669h1.899827v-3.402674h2.510883v3.402675h2.26646v1.867052h-2.26646v6.054109c0 .265143.01111.486096.03333.684954.02222.18781.07777.353524.155541.486096.077771.132572.199982.232.366634.298287.166651.066285.377743.099428.666606.099428.177762 0 .355523 0 .533285-.011047.177762-.011048.355523-.033143.533285-.077334v1.933338c-.277753.033143-.555505.055238-.811038.088381-.266642.033143-.533285.04419-.811037.04419-.666606 0-1.199891-.066285-1.599855-.18781-.399963-.121523-.722156-.309333-.944358-.552381-.233313-.243049-.377744-.541335-.466625-.905907-.07777-.364573-.133321-.784383-.144431-1.248384v-6.683825h-1.899827v-1.889147h-.02222z",fill:"#191919"}}
25),t("path",{attrs:{fill:"#00B67A",d:"M30.141707 11.07005H18.63164L15.076408.177071l-3.566342 10.892977L0 11.059002l9.321376 6.739063-3.566343 10.88193 9.321375-6.728016 9.310266 6.728016-3.555233-10.88193 9.310266-6.728016z"}}),t("path",{attrs:{fill:"#005128",d:"M21.631369 20.26169l-.799928-2.463625-5.755033 4.153914z"}})]),t("span",{staticClass:"TrustpilotWidget__stars"},[t("img",{attrs:{src:i(10595),alt:"trustpilot score"}}),this._v(" "+this._s(this.$t("trustpilotWidget.scoreAmount"))+" ")]),t("span",{staticClass:"TrustpilotWidget__score"},[this._v(this._s(this.$t("trustpilotWidget.scoreText")))])])},[],!1,null,"3b9224ad",null).exports,C=i(49663);let w=a.DateTimeFormatter.ofPattern("dd/MM/yyyy"),S=(0,n.tZ)("PostpaidSelection");class M extends u.lD{async mounted(){await this.loadLinkedServiceData()}get hideSelectionDetails(){return this.showTrustpilot}get loading(){return null===this.product}promoApplies(t){return!!this.promo&&!!t&&this.promo.applies(t)}get dataDescription(){if(!this.product)return"";let t=this.product.definitions.bundles;return(0,d._c)((0,o.hX)(this.product)?1/0:t.data||0,this.$t.bind(this),"long_no_unit")}allowsDataThrottling(t){let e=t.definitions.bundles;return e.nonFupData&&e.data&&e.nonFupData>e.data}showChooseMnpPopup(){if(!this.product)return;let t=this.$route.query.employerInvitationToken;this.startOnboarding(this.product,t)}get promoNote(){if(!this.product||!this.promo)return"";let[t]=this.promo.benefitsFor(this.product);return t&&t.durationUntil?this.$t("postpaidselector.promoDisclaimerUntil{date}",{date:t.durationUntil?.format(w)}):`${this.$t("postpaidselector.promoDisclaimer{pricePerMonth}",{pricePerMonth:(0,c.up)(this.product.monthly,"two_if_significant")})}`}get supports5g(){return!!this.product&&this.product.definitions?.features?.has5G}get productInformationFaqId(){return this.product?.metadata?.productInformationFaqId}showProductInformation(){this.productInformationFaqId&&this.showInSidePanel(C.default,{id:this.productInformationFaqId})}get linkedServiceTagHtml(){return this.$t("postpaidselector.linked_service_tag_for_{subhubPartner}_with_{amountWithEuroSign}_discount__html",{subhubPartner:this.linkedServiceProduct?.thirdPartyName||"",amountWithEuroSign:this.linkedServiceAmountWithEuroSign}).toString()}getLinkedServiceAmount(){if(!this.linkedServiceProduct)return"";let t=(0,l.rG)(this.thirdPartyAdvantages,this.linkedServiceProduct.id);return t?(0,c.up)(t.amount,{decimalStrategy:"two_if_significant",moneyFormat:"with_currency"}):""}async loadLinkedServiceData(){try{let[t,e]=await Promise.all([this.uwa.getProducts({type:"third_party_subscription"}),this.productService.getAvailableAdvantages()]);this.thirdPartyAdvantages=e,this.linkedServiceProduct=t.filter(r.ej).find(t=>"disney_plus"===t.variant)??null,this.linkedServiceAmountWithEuroSign=this.getLinkedServiceAmount()}catch(t){S.error("Failed to load linked service data",t)}}constructor(...t){super(...t),this.linkedServiceProduct=null,this.linkedServiceAmountWithEuroSign="",this.thirdPartyAdvantages=[]}}(0,s.Cg)([(0,u.y_)()],M.prototype,"startOnboarding",void 0),(0,s.Cg)([(0,u.y_)()],M.prototype,"config",void 0),(0,s.Cg)([(0,u.y_)()],M.prototype,"showInSidePanel",void 0),(0,s.Cg)([(0,u.y_)()],M.prototype,"uwa",void 0),(0,s.Cg)([(0,u.y_)()],M.prototype,"productService",void 0),(0,s.Cg)([(0,u.kv)({required:!1,default:null})],M.prototype,"product",void 0),(0,s.Cg)([(0,u.kv)({required:!1,default:!0})],M.prototype,"includeVat",void 0),(0,s.Cg)([(0,u.kv)({required:!1,default:!1})],M.prototype,"showBuyBtn",void 0),(0,s.Cg)([(0,u.kv)({required:!1,default:!1})],M.prototype,"narrow",void 0),(0,s.Cg)([(0,u.kv)({required:!1,default:!1})],M.prototype,"fewProducts",void 0),(0,s.Cg)([(0,u.kv)({required:!1,default:null})],M.prototype,"extraProductInformation",void 0),(0,s.Cg)([(0,u.kv)({required:!1,default:null})],M.prototype,"promo",void 0),(0,s.Cg)([(0,u.kv)({required:!1,default:!1})],M.prototype,"showTrustpilot",void 0);var A=M=(0,s.Cg)([(0,u.uA)({components:{CallToAction:h.A,TrustpilotWidget:b,FourGFiveGLabel:_.A,MonthlyPrice:m.A,Tag:g.A,Footnote:p.A}})],M),k=(0,y.A)(A,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.loading?e("div",{staticClass:"postpaidSelection postpaidSelection--isLoading",class:{"postpaidSelection--narrow":t.narrow,"postpaidSelection--fewProducts":t.fewProducts,"postpaidSelection--showBuyBtn":t.
25showBuyBtn}},[t._m(0),t.showBuyBtn?e("div",{staticClass:"postpaidSelection__buy shimmer"},[t._v("Â ")]):t._e()]):t.product?e("div",{staticClass:"postpaidSelection",class:{"postpaidSelection--narrow":t.narrow,"postpaidSelection--fewProducts":t.fewProducts,"postpaidSelection--hideSelectionDetails":t.hideSelectionDetails,"postpaidSelection--showBuyBtn":t.showBuyBtn}},[e("Tag",{staticClass:"postpaidSelection__tag"},[t._v(t._s(t.$t("postpaidselector.your_selection")))]),e("div",{staticClass:"postpaidSelection__container"},[t.hideSelectionDetails?t._e():e("div",{staticClass:"postpaidSelection__selectionBundles"},[t.product.definitions.bundles.data?e("div",{staticClass:"postpaidSelection__selectionBundles__bundle postpaidSelection__selectionBundles__bundle--data"},[e("div",{staticClass:"postpaidSelection__bundleAmount"},[e("div",[t._v(" "+t._s(t.dataDescription)+" ")])]),e("span",{staticClass:"postpaidSelection__bundleType"},[t._v(t._s(t.$t("bundle_type__data")))])]):t._e(),t.config.featureFlags.show5gLabels?e("div",{staticClass:"postpaidSelection__selectionBundles__bundle postpaidSelection__selectionBundles__bundle--network"},[e("span",{staticClass:"postpaidSelection__bundleAmount"},[e("Tag",{attrs:{appearance:"blue",outlined:!0,size:"small"}},[e("FourGFiveGLabel",{attrs:{product:t.product}})],1)],1),e("span",{staticClass:"postpaidSelection__bundleType"},[t._v(t._s(t.$t("network")))])]):t._e(),t.product.definitions.bundles.voice?e("div",{staticClass:"postpaidSelection__selectionBundles__bundle postpaidSelection__selectionBundles__bundle--voice"},[e("span",{staticClass:"postpaidSelection__bundleAmount"},[t._v(" "+t._s(t._f("voiceMinsLong")(t.product.definitions.bundles.voice))+" ")]),e("span",{staticClass:"postpaidSelection__bundleType"},[t._v(t._s(t.$t("bundle_type__voice")))])]):t._e(),t.product.definitions.bundles.sms?e("div",{staticClass:"postpaidSelection__selectionBundles__bundle postpaidSelection__selectionBundles__bundle--sms"},[e("span",{staticClass:"postpaidSelection__bundleAmount"},[t._v(" "+t._s(t._f("smsLong")(t.product.definitions.bundles.sms))+" ")]),e("span",{staticClass:"postpaidSelection__bundleType"},[t._v(t._s(t.$t("bundle_type__sms")))])]):t._e()]),e("div",{staticClass:"postpaidSelection__price"},[e("MonthlyPrice",{attrs:{price:t.promoApplies(t.product)?t.includeVat?t.promo.apply(t.product):t.promo.apply(t.product,t.product.monthlyExcludingVat):t.includeVat?t.product.monthly:t.product.monthlyExcludingVat,size:"xtraLarge",monthLabel:t.promoApplies(t.product)?t.$t("first_month"):t.$t("month")},scopedSlots:t._u([{key:"footNoteSups",fn:function(){return[t.promoApplies(t.product)?[t.includeVat?t._e():e("Footnote",{attrs:{slug:"vat-info",note:t.$t("postpaidselector.excl_vat_information")}}),e("Footnote",{attrs:{slug:"promo-info",note:t.promoNote}})]:[t.includeVat?t._e():e("Footnote",{attrs:{slug:"vat-info",note:t.$t("postpaidselector.excl_vat_information")}})]]},proxy:!0}])})],1),t.showTrustpilot?e("div",{staticClass:"postpaidSelection__trustpilot ignoreInVr"},[e("TrustpilotWidget")],1):t._e(),t.hideSelectionDetails?e("div",{staticClass:"postpaidSelection__usps"},[e("ul",{staticClass:"postpaidSelection__uspsList"},[e("li",{staticClass:"postpaidSelection__uspsList__item postpaidSelection__uspsList__item--iconNetwork"},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("postpaidselector.usp_network__html"),expression:"$t('postpaidselector.usp_network__html')"}]})]),e("li",{staticClass:"postpaidSelection__uspsList__item postpaidSelection__uspsList__item--iconHeart"},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("postpaidselector.usp_heart__html"),expression:"$t('postpaidselector.usp_heart__html')"}]})]),t.linkedServiceProduct&&t.linkedServiceAmountWithEuroSign?e("li",{staticClass:"postpaidSelection__uspsList__item postpaidSelection__uspsList__item--iconPopcorn"},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.linkedServiceTagHtml,expression:"linkedServiceTagHtml"}]})]):t._e()])]):t._e(),t.showBuyBtn?e("div",{staticClass:"postpaidSelection__cta"},[t._t("default",function(){return[e("CallToAction",{staticClass:"postpaidSelection__buy",on:{click:function(e){return t.showChooseMnpPopup()}}},[t._v(" "+t._s(t.$t("postpaidselector.buy_cta"))+" ")])]})],2):t._e(),t.productInformationFaqId?e("a",{staticClass:"postpaidSelection__informational",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.showProductInformation.apply(null,arguments)}}},[t._v(t._s(t.$t("postpaidselector.more_information_about_product")))]):t._e()])],1):t._e()},[function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"postpaidSelection__selectionBundles"},[t("div",{staticClass:"postpaidSelection__selectionBundles__bundle"},[t("span",{staticClass:"postpaidSelection__bundleAmount shimmer"},[this._v("Â ")]),t("span",{staticClass:"postpaidSelection__bundleType shimmer"},[this._v("Â ")])]),t("div",{staticClass:"postpaidSelection__selectionBundles__bundle"},[t("span",{staticClass:"postpaidSelection__bundleAmount shimmer"},[this._v("Â ")]),t("span",{staticClass:"postpaidSelection__bundleType shimmer"},[this._v("Â ")])]),t("div",{staticClass:"postpaidSelection__selectionBundles__bundle"},[t("span",{staticClass:"postpaidSelection__bundleAmount shimmer"},[this._v("Â ")]),t("span",{staticClass:"postpaidSelection__bundleType shimmer"},[this._v("Â ")])]),t("div",{staticClass:"postpaidSelection__selectionBundles__bundle"},[t("span",{staticClass:"postpaidSelection__bundleAmount shimmer"},[this._v("Â ")]),t("span",{staticClass:"postpaidSelection__bundleType shimmer"},[this._v("Â ")])])])}],!1,null,"2a5d7566",null).exports}
25,37882:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return m}});var s=i(32198),a=i(58294),n=i(67953),o=i(58442),r=i(87339),l=i(34249),d=i(61931),c=i(54466),u=i(83301);let p=(0,a.tZ)("PostpaidSelector");class h extends n.lD{get styleLevelClass(){return(0,u.yu)(this.styleLevel)}get styleNextLevelClass(){return(0,u.x)(this.styleLevel)}get showNarrow(){return this.narrow||this.fewProducts}get fewProducts(){return this.postpaidProducts.length<4}get postpaidProducts(){return this.allPostpaidProducts.filter(t=>t.isB2bProduct||!this.restrictToB2bProducts).filter(t=>t.isClanProduct||!this.restrictToClanProducts).filter(t=>!this.b2bReduction||t.monthly>=this.b2bReduction)}async mounted(){try{await this.loadProducts()}catch(t){p.error("Failed to initialize postpaid selector",t),this.notifyGenericErrors(t)}this.config.isPreRendering||this.$watch(()=>this.reductionHolder.promo,async()=>{await this.loadProducts()})}async loadProducts(){this.areProductsLoading=!0;try{let[t,e,i]=await Promise.all([this.productService.getPostpaidProducts("lineup-2020",void 0),this.productService.getPostpaidProducts("flatrate",void 0),this.config.isPreRendering?Promise.resolve(null):this.reductionHolder.promo]);this.allPostpaidProducts=[...t,...e],this.bestSeller=e[e.length-1]||null,this.promo=i}catch(t){p.error("Failed to initialize postpaid selector",t),this.notifyGenericErrors(t)}finally{this.areProductsLoading=!1}}get showShimmer(){return this.areProductsLoading||this.loading}get product(){return this.value}set product(t){t&&this.trackingService.updateProductSelector(t),this.$emit("input",t)}get extraProductInformation(){if(!this.product)return"";let t=`product_extra__${this.product.id}__in_migration_flow`;return(this.$t("postpaidselector")[t]||this.$t("postpaidselector.product_extra__generic__in_migration_flow")).toString()}promoApplies(t){return!!this.promo&&!!t&&this.promo.applies(t)}buildJsonLd(t,e){let i=this.buildStructuredProducts(t,e);return[{"@type":"ItemList",url:t,numberOfItems:e.length,itemListElement:e.map((e,i)=>({"@type":"ListItem",position:i+1,item:{"@id":`${t}#product-${e.id}`}}))},...i]}buildStructuredProducts(t,e){let i={"@type":"Organization","@id":"https://mobilevikings.be/#organization",name:"Mobile Vikings"};return e.map(e=>{let s=this.includeVat?e.monthly:e.monthlyExcludingVat,a=e.title||`Plan ${e.id}`,n=`${t}#product-${e.id}`,o={"@type":"Offer","@id":`${t}#offer-postpaid-${e.id}`,url:n,availability:"https://schema.org/InStock",offeredBy:i,seller:i,price:s,priceCurrency:"EUR",priceSpecification:{"@type":"UnitPriceSpecification",priceCurrency:"EUR",price:s,priceComponentType:"https://schema.org/Subscription",unitText:"month"}};return{"@type":"Product","@id":n,name:a,sku:String(e.id),url:n,image:(0,c.g)("mobile"),category:"Mobile subscription",brand:i,offers:o}})}constructor(...t){super(...t),this.allPostpaidProducts=[],this.bestSeller=null,this.areProductsLoading=!0,this.productPosition=0,this.promo=null}}(0,s.Cg)([(0,n.y_)()],h.prototype,"productService",void 0),(0,s.Cg)([(0,n.y_)()],h.prototype,"trackingService",void 0),(0,s.Cg)([(0,n.y_)()],h.prototype,"reductionHolder",void 0),(0,s.Cg)([(0,n.y_)()],h.prototype,"config",void 0),(0,s.Cg)([(0,n.kv)({default:null})],h.prototype,"value",void 0),(0,s.Cg)([(0,n.kv)({default:!1})],h.prototype,"readOnly",void 0),(0,s.Cg)([(0,n.kv)({type:Boolean,required:!1,default:!1})],h.prototype,"restrictToClanProducts",void 0),(0,s.Cg)([(0,n.kv)({type:Boolean,required:!1,default:!1})],h.prototype,"restrictToB2bProducts",void 0),(0,s.Cg)([(0,n.kv)({required:!1,default:!0})],h.prototype,"includeVat",void 0),(0,s.Cg)([(0,n.kv)({required:!1,default:null})],h.prototype,"b2bReduction",void 0),(0,s.Cg)([(0,n.kv)({type:Boolean,required:!1,default:!1})],h.prototype,"narrow",void 0),(0,s.Cg)([(0,n.kv)({type:Boolean,required:!1,default:!1})],h.prototype,"presentational",void 0),(0,s.Cg)([(0,n.kv)({type:Boolean,required:!1,default:!1})],h.prototype,"loading",void 0),(0,s.Cg)([(0,n.kv)({type:Number,required:!1,default:0})],h.prototype,"styleLevel",void 0),(0,s.Cg)([(0,n.kv)({type:Boolean,required:!1,default:!0}
25)],h.prototype,"showSelectionDetails",void 0);var _=h=(0,s.Cg)([(0,n.uA)({components:{Footnotes:o.A,PostpaidSelection:l.A,PostpaidOptions:r.A,LdJson:d.A}})],h),m=(0,i(41618).A)(_,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("Footnotes",{staticClass:"PostpaidSelector",class:[t.styleLevelClass,{"PostpaidSelector--narrow":t.showNarrow,"PostpaidSelector--presentational":t.presentational,"PostpaidSelector--hasSelection":t.product&&t.showSelectionDetails,"PostpaidSelector--hasFewProducts":t.fewProducts}],attrs:{"data-qa":"postpaid-selector",footerClass:"PostpaidSelector__footnotes","aria-busy":t.showShimmer,"aria-labelledby":"postpaid-selector-status"}},[e("div",{staticClass:"PostpaidSelector__top"},[e("PostpaidOptions",{staticClass:"PostpaidSelector__postpaidOptions",attrs:{options:t.postpaidProducts,bestSeller:t.bestSeller,loading:t.showShimmer,includeVat:t.includeVat,b2bReduction:t.b2bReduction,narrow:t.showNarrow,readOnly:t.readOnly,presentational:t.presentational,promo:t.promo},on:{productSelected:e=>t.productPosition=e+1},model:{value:t.product,callback:function(e){t.product=e},expression:"product"}}),t.showShimmer&&!t.presentational&&t.showSelectionDetails?[e("div",{staticClass:"PostpaidSelector__selection",class:t.styleNextLevelClass},[e("PostpaidSelection",{attrs:{narrow:t.showNarrow}})],1)]:t.product&&!t.presentational&&t.showSelectionDetails?[e("div",{staticClass:"PostpaidSelector__selection",class:t.styleNextLevelClass},[e("PostpaidSelection",{attrs:{product:t.product,narrow:t.narrow,fewProducts:t.fewProducts,includeVat:t.includeVat,promo:t.promo,extraProductInformation:t.extraProductInformation}})],1)]:t._e()],2),e("LdJson",{attrs:{active:!t.showShimmer&&t.postpaidProducts.length>0,data:t.postpaidProducts,builder:t.buildJsonLd}}),e("div",{staticClass:"sr-only",attrs:{id:"postpaid-selector-status","aria-live":"polite"}},[t._v(" "+t._s(t.showShimmer?t.$t("postpaid_selector.loading_postpaid_products__screenread"):t.$t("postpaid_selector.choose_a_postpaid_product__screenread"))+" ")])],1)},[],!1,null,"19b5de96",null).exports},26790:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{get fillPercentage(){return Math.max(Math.round(this.actualValue/this.maxValue*100),0)}}(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:"red"})],n.prototype,"accent",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],n.prototype,"startAnimation",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:"5s"})],n.prototype,"speed",void 0),(0,s.Cg)([(0,a.kv)({type:Number,required:!1,default:100})],n.prototype,"maxValue",void 0),(0,s.Cg)([(0,a.kv)({type:Number,required:!1,default:100})],n.prototype,"actualValue",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],n.prototype,"compact",void 0);var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"ProgressBar",class:{"ProgressBar--startAnimation":this.startAnimation,"ProgressBar--accentRed":"red"===this.accent,"ProgressBar--accentBlue":"blue"===this.accent,"ProgressBar--accentGreen":"green"===this.accent,"ProgressBar--accentTurquoise":"turquoise"===this.accent,"ProgressBar--compact":this.compact},style:`--animation-speed: ${this.speed}; --fill-until: ${this.fillPercentage}%`},[this._v(" Â ")])},[],!1,null,"e3614640",null).exports},2508:function(t,e,i){"use strict";i.d(e,{A:function(){return d}});var s=i(32198),a=i(62765),n=i(18966),o=i(67953);class r extends o.lD{formattedAmount(t){return`<span class="amount">${(0,a.up)(t,"always_two")}</span>`}formattedOrdinal(t){return(0,n.bQ)(t,this.locale)}}(0,s.Cg)([(0,o.kv)({type:Array,required:!0})],r.prototype,"monthlyTotalsAfterPromo",void 0),(0,s.Cg)([(0,o.kv)({type:String,required:!1})],r.prototype,"promoExtraInfo",void 0);var l=r=(0,s.Cg)([o.uA],r),d=(0,i(41618).A)(l,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"promoDetails"},[e("h3",{staticClass:"promoDetails__title"},[t._v(" "+t._s(t.$t("order_summary.promo_breakout_title"))+" ")]),e("ul",{staticClass:"promoDetailsEntriesList"},t._l(t.monthlyTotalsAfterPromo,function(i){return e("li",{key:`total_${i.months}`,staticClass:"promoDetailsEntriesList__entry promoDetailsEntry"},[e("div",{staticClass:"promoDetailsEntry__firstline"},[i.afterMonth?e("p",{staticClass:"promoDetailsEntry__description monthly-promo-desc"},[t._v(" "+t._s(t.$t("order_summary.monthly_costs__from_{nth}_month",{nth:t.formattedOrdinal(i.afterMonth+1)}))+" ")]):i.months?e("p",{staticClass:"promoDetailsEntry__description monthly-promo-desc"},[t._v(" "+t._s(t.$tc("order_summary.monthly_costs__first_{n}_months",i.months))+" ")]):e("p",{staticClass:"promoDetailsEntry__description monthly-promo-desc"},[t._v(" "+t._s(t.$t("order_summary.monthly_costs"))+" ")]),e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("{amount}_per_month",{amount__safe:t.formattedAmount(i.total)}),expression:"$t('{amount}_per_month', { amount__safe: formattedAmount(total.total) })"}],staticClass:"promoDetailsEntry__price monthly-promo-total"})])])}),0),t.promoExtraInfo?e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.promoExtraInfo,expression:"promoExtraInfo"}],staticClass:"promoDetails__footnote promo-extra-info"}):t._e()])},[],!1,null,"6fcee604",null).exports}
25,68096:function(t,e,i){"use strict";i.d(e,{A:function(){return m}});var s,a,n=i(62508),o=i.n(n),r=i(32198),l=i(67953),d=i(50802);class c extends l.lD{getIllustrationUrl(t){return(0,d.v)(t.illustration.url,this.config.heim.baseUrl)}getInternalLink(t){return`/${this.locale}/support/${t}`}getLinkAttributes(t){let e="custom"===t.link.type?t.link.custom:this.getInternalLink(t.link.internal.value.slug);return{href:e,target:t.link.newTab?"_blank":"_self",rel:t.link.newTab?"noopener noreferrer":""}}}(0,r.Cg)([(0,l.kv)({type:Array,required:!0})],c.prototype,"tiles",void 0),(0,r.Cg)([(0,l.y_)()],c.prototype,"config",void 0);var u=c=(0,r.Cg)([l.uA],c),p=i(41618),h=(0,p.A)(u,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"CtaTiles nextStyleLevel"},t._l(t.tiles,function(i){return e("a",t._b({key:i.id,staticClass:"CtaTiles__tile"},"a",t.getLinkAttributes(i),!1),[e("img",{staticClass:"CtaTiles__image",attrs:{src:t.getIllustrationUrl(i),alt:i.link.label}}),e("span",{staticClass:"CtaTiles__label"},[t._v(t._s(i.link.label))])])}),0)},[],!1,null,"1375efe4",null).exports,_=o().extend({components:{CtaTiles:h},props:{content:{type:Object,default:null},replacements:{type:Object,default:()=>({})}},methods:{replacePlaceholders(t){return Object.entries(this.replacements).reduce((t,[e,i])=>{let s=RegExp(`\\{${e}\\}`,"g");return t.replace(s,i)},t)},renderTextNode(t,e){let i=this.replacePlaceholders(t.text);if(!i)return e();let s=e("span",i);return 1&t.format&&(s=e("strong",[s])),2&t.format&&(s=e("em",[s])),s},renderChildren(t,e){return t?.map(t=>this.renderNode(t,e))||[]},renderLink(t,e){let{linkType:i,url:s,newTab:a}=t.fields||{};return e("a",{attrs:"custom"===i?{href:this.replacePlaceholders(s||""),target:a?"_blank":"_self",rel:a?"noopener noreferrer":void 0}:void 0},this.renderChildren(t.children,e))},renderList(t,e){return e("bullet"===t.listType?"ul":"ol",this.renderChildren(t.children,e))},renderListItem(t,e){return e("li",this.renderChildren(t.children,e))},renderBlock:(t,e)=>t.fields?.blockType==="ctaTiles"?e("CtaTiles",{props:{tiles:t.fields.tiles}}):null,renderNode(t,e){if(!t)return null;switch(t.type){case"text":return this.renderTextNode(t,e);case"paragraph":return e("p",this.renderChildren(t.children,e));case"link":return this.renderLink(t,e);case"block":return this.renderBlock(t,e);case"list":return this.renderList(t,e);case"listitem":return this.renderListItem(t,e);default:return null}}},render(t){return this.content.root?.children?t("div",{class:"ExternalContent"},[this.renderChildren(this.content.root.children,t)]):t()}}),m=(0,p.A)(_,s,a,!1,null,null,null).exports},21196:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(67953),n=i(83301);class o extends a.lD{get cssClassForLevel(){return(0,n.yu)(this.styleLevel)}get label(){return this.labelKey?this.$tc(this.labelKey,this.hiddenEntryCount).toString():this.$tc("showMore.show_{n}_more_entries",this.hiddenEntryCount).toString()}get showAllVisible(){return!!this.values&&!this.unlimited&&this.values.length>this.effectiveLimitFrom}get hiddenEntryCount(){return!this.values||this.unlimited||this.values.length<=this.effectiveLimitFrom?0:this.values.length-this.limit}get limitedValues(){return this.values?this.unlimited||this.values.length<=this.effectiveLimitFrom?this.values:this.values.slice(0,this.limit):null}get effectiveLimitFrom(){return this.limitFrom||this.limit}constructor(...t){super(...t),this.unlimited=!1}}(0,s.Cg)([(0,a.kv)()],o.prototype,"values",void 0),(0,s.Cg)([(0,a.kv)({default:5})],o.prototype,"limit",void 0),(0,s.Cg)([(0,a.kv)({default:null})],o.prototype,"limitFrom",void 0),(0,s.Cg)([(0,a.kv)({default:null})],o.prototype,"labelKey",void 0),(0,s.Cg)([(0,a.kv)({default:"straight"})],o.prototype,"appearance",void 0),(0,s.Cg)([(0,a.kv)({required:!1,default:1})],o.prototype,"styleLevel",void 0);var r=o=(0,s.Cg)([a.uA],o),l=(0,i(41618).A)(r,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"showAll",class:[{"showAll--rounded":"rounded"===t.appearance},t.cssClassForLevel]},[t._t("default",null,{values:t.limitedValues}),t.showAllVisible?e("button",{staticClass:"showAll__cta",on:{click:function(e){e.preventDefault(),t.unlimited=!0}}},[t._v(" "+t._s(t.label)+" ")]):t._e()],2)},[],!1,null,"c51abe4e",null).exports}
25,14064:function(t,e,i){"use strict";i.d(e,{A:function(){return y}});var s=i(32198),a=i(47352),n=i(57399),o=i(77133),r=i.n(o),l=i(67953),d=i(47797),c=i(24242),u=i(79847),p=i(20174),h=i(91543),_=i(83301),m=i(3231);class g extends l.lD{get styleLevelClass(){return(0,_.yu)(this.styleLevel)}get styleNextLevelClass(){return(0,_.x)(this.styleLevel)}get selection(){return this.value}set selection(t){this.$emit("input",t)}async updateFilteredSubscriptions(){if(!this.session.mobileSubscriptions){this.filteredSubscriptions=[];return}this.filteredSubscriptions=await (0,a.dS)(this.subscriptionsWithActiveSubscriptionOnTop,this.filter)}get subscriptionsWithActiveSubscriptionOnTop(){return this.session.mobileSubscriptions?this.session.mobileSubscription?[this.session.mobileSubscription,...this.session.mobileSubscriptions.filter(t=>t.id!==this.session.mobileSubscription.id)]:this.session.mobileSubscriptions:[]}routeForSubscription(t){return{name:(this.$route.name===m.A.simsError?m.A.sims:this.$route.name)||void 0,path:this.$route.path,hash:this.$route.hash,query:r()(this.$route.query||{},"spc"),params:{...this.$route.params,subscriptionId:t.id}}}isCurrentSim(t){return!!this.value&&t.id===this.value.id}constructor(...t){super(...t),this.matchSubscription=(t,e)=>t.matchesFilter(e),this.filteredSubscriptions=null}}function v(){return!0}(0,s.Cg)([(0,l.y_)()],g.prototype,"session",void 0),(0,s.Cg)([(0,l.kv)()],g.prototype,"value",void 0),(0,s.Cg)([(0,l.kv)({default:()=>v})],g.prototype,"filter",void 0),(0,s.Cg)([(0,l.kv)({default:null})],g.prototype,"appearance",void 0),(0,s.Cg)([(0,l.kv)({type:Number,default:5})],g.prototype,"simAmountToShowSearch",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:!1})],g.prototype,"keepSmallLook",void 0),(0,s.Cg)([(0,l.kv)({type:Number,required:!1,default:1})],g.prototype,"styleLevel",void 0),(0,s.Cg)([(0,l.ox)("subscriptionsWithActiveSubscriptionOnTop",{immediate:!0})],g.prototype,"updateFilteredSubscriptions",null);var f=g=(0,s.Cg)([(0,l.uA)({components:{FilteredItems:d.A,MultiSelect:c.A,SubscriptionDetails:h.A,RadioGroup:u.A,Loading:p.A},filters:{formatMsisdn:n.i}})],g),y=(0,i(41618).A)(f,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{class:["sim-selector",t.styleLevelClass]},[null===t.filteredSubscriptions?e("Loading"):["multiSelect"===t.appearance?[t.filteredSubscriptions.length>0?e("MultiSelect",{staticClass:"sim-selector-multiSelect",attrs:{id:"simSelectorMultiSelect",options:t.filteredSubscriptions,optionKey:"id"},scopedSlots:t._u([{key:"default",fn:function({option:t}){return[e("SubscriptionDetails",{attrs:{subscription:t}})]}}],null,!1,0x73405927),model:{value:t.selection,callback:function(e){t.selection=e},expression:"selection"}}):e("div",{staticClass:"sim-selector-numResults"},[e("div",{staticClass:"sim-selector-numResults-no-result"},[t._t("emptySubscriptionsList",function(){return[t._v(" "+t._s(t.$t("filter_returned_0_simcards"))+" ")]})],2)])]:e("FilteredItems",{attrs:{items:t.filteredSubscriptions,maxItems:t.simAmountToShowSearch,searchInputScreenReaderInstructions:t.$t("SimSelector.search_input_instructions__screenread"),match:t.matchSubscription,noDataMessage:t.$t("filter_returned_0_simcards"),placeholderMessage:t.$t("search_via_sim_alias_or_number"),noMatchesMessage:t.$t("subscription_search_returned_no_matches")},scopedSlots:t._u([{key:"default",fn:function({filteredItems:i}){return["radioGroup"===t.appearance?e("RadioGroup",{staticClass:"sim-selector-radiogroup animated",attrs:{options:i,optionKey:"id"},scopedSlots:t._u([{key:"default",fn:function({option:i}){return[e("SubscriptionDetails",{class:t.styleNextLevelClass,attrs:{subscription:i,keepSmallLook:t.keepSmallLook}})]}}],null,!0),model:{value:t.selection,callback:function(e){t.selection=e},expression:"selection"}}):e("ul",{class:["sim-selector-simsList",t.styleNextLevelClass]},t._l(i,function(i,s){return e("li",{key:s},[e("RouterLink",{class:{"inactive-sim":"enabled"!==i.state,"current-sim":t.isCurrentSim(i)},attrs:{to:t.routeForSubscription(i)}},[e("SubscriptionDetails",{attrs:{subscription:i,withIcon:!0,keepSmallLook:t.keepSmallLook,appearance:"inList"}})],1)],1)}),0)]}},{key:"emptySubscriptionsList",fn:function(){return[t._t("emptySubscriptionsList")]},proxy:!0}],null,!0)})]],2)},[],!1,null,"1b1f4c40",null).exports}
25,88214:function(t,e,i){"use strict";i.d(e,{A:function(){return h}});var s=i(32198),a=i(67953),n=i(70029),o=i(79847),r=i(21395),l=i(83487);class d extends a.lD{async mounted(){this.simType=this.convertModelToSimType(this.value)}onSimTypeChanged(){void 0!==this.simType&&("embedded"===this.simType?this.withoutDeviceSelection||this.compatibleDevice?this.emitModel("embedded"):this.emitModel(null):this.emitModel(this.simType||null))}onModelChanged(){this.value===this.simType||(null!==this.value||"embedded"!==this.simType)&&("embedded"!==this.value||this.compatibleDevice||this.withoutDeviceSelection||this.emitModel(null),this.simType=this.value)}convertModelToSimType(t){return"embedded"!==t||this.withoutDeviceSelection||this.emitModel(null),t}simTypeOptionClass(t){return"embedded"===t?"SimTypeSelector__option--embeddedSim":"SimTypeSelector__option--physicalSim"}get esimSubtitle(){return this.isMnp?this.$t("simTypeSelector.esim_subtitle_mnp").toString():this.$t("simTypeSelector.esim_subtitle_non_mnp").toString()}get physicalSimSubtitle(){return this.isMnp?this.$t("simTypeSelector.physicalsim_subtitle_mnp").toString():this.$t("simTypeSelector.physicalsim_subtitle_non_mnp").toString()}get device(){return this.compatibleDevice}set device(t){this.compatibleDevice=t,t?this.emitModel("embedded"):"embedded"===this.simType?this.emitModel(null):this.simType||this.emitModel("physical")}emitModel(t){(0,r.c2)(this.lastSentModel,t)||(this.lastSentModel=t,this.$emit("input",t))}get isESimMoreSlotUsed(){return!!this.$slots.esimMore}get deviceCompatibilityStatus(){return this.selectedDevice?this.selectedDevice.simTypes?.indexOf("embedded")===-1?"incompatible":this.selectedDevice.note?"warning":"compatible":null}onDeviceSelectionChanged(t){this.selectedDevice=t.device,"embedded"===this.simType&&this.$emit("simTypeClicked","embedded",t.device,t.compatibility)}onSimTypeClicked(t){"physical"===t?this.$emit("simTypeClicked",t,null,null):"embedded"===t&&(this.withoutDeviceSelection?this.$emit("simTypeClicked",t,null,null):this.selectedDevice&&this.$emit("simTypeClicked",t,this.selectedDevice,this.deviceCompatibilityStatus))}constructor(...t){super(...t),this.simType=null,this.compatibleDevice=null,this.selectedDevice=null}}(0,s.Cg)([(0,a.kv)()],d.prototype,"value",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:u})],d.prototype,"id",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:u})],d.prototype,"name",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],d.prototype,"required",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],d.prototype,"autoSelect",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],d.prototype,"withoutDeviceSelection",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!1})],d.prototype,"isMnp",void 0),(0,s.Cg)([(0,a.ox)("simType")],d.prototype,"onSimTypeChanged",null),(0,s.Cg)([(0,a.ox)("value")],d.prototype,"onModelChanged",null);let c=0;function u(){return`sim_type_selector__${c++}`}var p=d=(0,s.Cg)([(0,l.My)(),(0,a.uA)({components:{RadioGroup:o.A,ESimDeviceSelector:n.A}})],d),h=(0,i(41618).A)(p,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"SimTypeSelector"},[e("RadioGroup",{staticClass:"SimTypeSelector__options",attrs:{id:t.id,options:["embedded","physical"],name:t.name,optionClass:t.simTypeOptionClass,required:t.required},on:{click:t.onSimTypeClicked},scopedSlots:t._u([{key:"default",fn:function({option:i}){return["embedded"===i?e("div",[e("div",{staticClass:"SimTypeSelector__optionTitle--lowercaseEsim"},[t._v(" "+t._s(t.$t("simTypeSelector.esim_title"))+" ")]),e("div",{staticClass:"SimTypeSelector__optionSubtitle"},[t._v(t._s(t.esimSubtitle))])]):e("div",[e("div",{staticClass:"SimTypeSelector__optionTitle"},[t._v(t._s(t.$t("simTypeSelector.physicalsim_title")))]),e("div",{staticClass:"SimTypeSelector__optionSubtitle"},[t._v(t._s(t.physicalSimSubtitle))])])]}},{key:"radioGroupDescription",fn:function({option:i}){return["embedded"===i&&(!t.withoutDeviceSelection||t.isESimMoreSlotUsed)?[t.withoutDeviceSelection?t._e():e("div",[e("p",[t._v(t._s(t.$t("simTypeSelector.esim_explanation")))]),"embedded"===t.simType||t.autoSelect?e("ESimDeviceSelector",{attrs:{required:"embedded"===t.simType,autoSelect:t.autoSelect},on:{deviceSelectionChanged:t.onDeviceSelectionChanged},model:{value:t.device,callback:function(e){t.device=e},expression:"device"}}):t._e()],1),e("div",{staticClass:"SimTypeSelector__esimMore"},[t._t("esimMore")],2)]:t._e()]}}],null,!0),model:{value:t.simType,callback:function(e){t.simType=e},expression:"simType"}})],1)},[],!1,null,null,null).exports}
25,61931:function(t,e,i){"use strict";i.d(e,{A:function(){return d}});var s,a,n=i(32198),o=i(67953);class r extends o.lD{get jsonLd(){if(!this.active)return null;let t="u">typeof window&&window.location?.origin?window.location.origin:"https://mobilevikings.be",e="u">typeof window&&window.location?.href?window.location.href:t,i=this.builder(e,this.data);if(!i)return null;let s=Array.isArray(i)?i:[i];return 0===s.length?null:JSON.stringify({"@context":"https://schema.org","@graph":s})}render(t){return this.jsonLd?t("script",{attrs:{type:"application/ld+json"},domProps:{textContent:this.jsonLd}}):null}}(0,n.Cg)([(0,o.kv)({required:!0})],r.prototype,"builder",void 0),(0,n.Cg)([(0,o.kv)({required:!1,default:null})],r.prototype,"data",void 0),(0,n.Cg)([(0,o.kv)({default:!0})],r.prototype,"active",void 0);var l=r=(0,n.Cg)([o.uA],r),d=(0,i(41618).A)(l,s,a,!1,null,null,null).exports},34786:function(t,e,i){"use strict";i.d(e,{A:function(){return y}});var s=i(32198),a=i(58294),n=i(47352),o=i(10992),r=i.n(o),l=i(67953),d=i(49971),c=i(58249),u=i(99679),p=i(83487),h=i(54926);let _=(0,a.tZ)("SwitchOperatorFields"),m=["TLN","PXS","OBE"];class g extends l.lD{created(){this.$validator.extend("easySwitchSupported",new v(this.$t.bind(this)).asRule()),this.$validator.extend("isValidEasySwitchId",this.isValidEasySwitch(this.config,this.$t.bind(this),this.setShowNewEasySwitchInformation.bind(this)))}async mounted(){try{this.operatorOptions=await this.easySwitchService.getEasySwitchOperators(),this.$emit("operatorsLoaded",this.operatorOptions)}catch(t){_.error("Failed to load easy switch operators",t),this.operatorOptions=null,this.notifyGenericErrors(t)}}setShowNewEasySwitchInformation(t){this.showNewEasySwitchInformation=t}get orangeCustomerNumberHint(){return this.operator?.donor!=="OBE"||!this.customerNumber||this.customerNumber.startsWith("1.")||this.customerNumberFocused&&"1"===this.customerNumber?null:this.$t("easy_switch.customer_number_orange_format_hint").toString()||null}get visibleOperatorOptions(){if(!this.operatorOptions)return null;let[t,e]=r()(this.operatorOptions.filter(t=>t.visible||t.name===this.initialOperator?.name),t=>m.includes(t.donor));return[...(0,n.di)(t,(0,n.by)(t=>t.name.toLowerCase())),...(0,n.di)(e,(0,n.by)(t=>t.name.toLowerCase()))]}fieldIsReadonly(t){return"none"!==this.disableIntent&&"error_only"===this.disableIntent&&!t.length}onModelChanged(){this.operator=this.value?.operator||null,this.customerNumber=this.value?.customerNumber||"",this.easySwitchId=this.value?.easySwitchId||"",this.initialOperator=this.initialOperator||this.operator}async warnAboutUnselectableOperator(t){t&&!t.availableForEasySwitch&&await this.confirm(this.$t("request_broadband.operator_{name}_does_not_support_easy_switch_long",{name:t.name}),this.$t("request_broadband.operator_does_not_support_easy_switch_title"),this.$t("request_broadband.operator_does_not_support_easy_switch_cta"))&&this.$emit("confirmedUnselectableOperator")}updateSwitchOperatorDetails(){let t={operator:this.operator,customerNumber:this.customerNumber,easySwitchId:this.easySwitchId};this.$emit("input",t)}constructor(...t){super(...t),this.operatorOptions=null,this.initialOperator=null,this.operator=null,this.customerNumber="",this.customerNumberFocused=!1,this.easySwitchId="",this.showNewEasySwitchInformation=!1,this.isValidEasySwitch=(t,e,i)=>({getMessage:()=>e("request_broadband.invalid_easy_switch_id"),validate:e=>new Promise(s=>{var a;let n=!((a=e).length<6||a.length>20||Number.isNaN(+a))&&a.slice(0,-2)%97==+a.slice(-2),o=e.length<=20;return(i(!1),t.featureFlags.enableNewEasySwitchId)?t.featureFlags.forceNewEasySwitchId?s(n):n?s(!0):o?(i(!0),s(!0)):s(!1):s(o)})})}}(0,s.Cg)([(0,l.kv)({required:!1,default:null})],g.prototype,"value",void 0),(0,s.Cg)([(0,l.kv)({default:()=>[]})],g.prototype,"customerNumberErrors",void 0),(0,s.Cg)([(0,l.kv)({default:()=>[]})],g.prototype,"easySwitchIdErrors",void 0),(0,s.Cg)([(0,l.kv)({default:()=>[]})],g.prototype,"operatorErrors",void 0),(0,s.Cg)([(0,l.kv)({default:"none"})],g.prototype,"disableIntent",void 0),(0,s.Cg)([(0,l.y_)()],g.prototype,"easySwitchService",void 0),(0,s.Cg)([(0,l.y_)()],g.prototype,"confirm",void 0),(0,s.Cg)([(0,l.y_)()],g.prototype,"domUtils",void 0),(0,s.Cg)([(0,l.y_)()],g.prototype,"resolveQuery",void 0),(0,s.Cg)([(0,l.y_)()],g.prototype,"config",void 0),(0,s.Cg)([(0,l.ox)("value",{immediate:!0})],g.prototype,"onModelChanged",null),(0,s.Cg)([(0,l.ox)("operator")],g.prototype,"warnAboutUnselectableOperator",null);let v=class extends h.A{constructor(t){super(),this.$t=t}getMessage(){return this.$t("request_broadband.operator_does_not_support_easy_switch_short")}validate(t){return!!t&&t.availableForEasySwitch}};var f=g=(0,s.Cg)([(0,p.My)(),(0,l.uA)({components:{InlineNotification:u.A,Field:c.A,AccountNumberInput:d.A}})],g),y=(0,i(41618).A)(f,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"switchOperatorFields"},[e("div",{staticClass:"switchOperatorFields__formFields"},[e("Field",{staticClass:"switchOperatorFields__currentOperator current-operator",attrs:{label:t.$t("easy_switch.current_operator_label"),validationErrors:t.operatorErrors}},[null===t.visibleOperatorOptions?e("div",{staticClass:"shimmer"},[t._v("Â ")]):t._e(),e("select",{directives:[{name:"show",rawName:"v-show",value:null!==t.visibleOperatorOptions,expression:"visibleOperatorOptions !== null"},{name:"model",rawName:"v-model",value:t.operator,expression:"operator"},{name:"validate",rawName:"v-validate",value:"required|easySwitchSupported",expression:"'required|easySwitchSupported'"}],staticClass:"es-operator-selection",attrs:{name:"operator",required:!0,disabled:t.fieldIsReadonly(t.operatorErrors)},on:{change:[function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.operator=e.target.multiple?i:i[0]},t.updateSwitchOperatorDetails]}},[e("option",{domProps:{value:null}}),t.visibleOperatorOptions?t._l(t.visibleOperatorOptions,function(i){return e("option",{key:i.donor,domProps:{value:i}},[t._v(" "+t._s(i.name)+" ")])}):t._e()],2)]),e("div",{staticClass:"switchOperatorFields__customerInformationGroup"},[e("Field",{attrs:{label:t.$t("easy_switch.customer_number_label"),validationErrors:t.customerNumberErrors},scopedSlots:t._u([{key:"hint",fn:function(){return[t.orangeCustomerNumberHint?e("div",{staticClass:"switchOperatorFields__customerNumberHint--error",attrs:{"data-qa":"orange-customer-number-hint"}},[t._v(" "+t._s(t.orangeCustomerNumberHint)+" ")]):e("div",{staticClass:"hint"},[t._v(t._s(t.$t("easy_switch.customer_number_hint")))])]},proxy:!0}])},[e("AccountNumberInput",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],attrs:{operator:t.operator,name:"customerNumber",readonly:t.fieldIsReadonly(t.customerNumberErrors)},on:{blur:function(e){return t.$emit("blurField")}
25,input:t.updateSwitchOperatorDetails},nativeOn:{focus:function(e){t.customerNumberFocused=!0},blur:function(e){t.customerNumberFocused=!1}},model:{value:t.customerNumber,callback:function(e){t.customerNumber=e},expression:"customerNumber"}})],1),e("Field",{attrs:{label:t.$t("easy_switch.id_label"),hint:t.$t("easy_switch.id_hint"),validationErrors:t.easySwitchIdErrors}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.easySwitchId,expression:"easySwitchId"},{name:"validate",rawName:"v-validate",value:"required|isValidEasySwitchId",expression:"'required|isValidEasySwitchId'"}],staticClass:"es-es-id",attrs:{required:!0,name:"easySwitchID",type:"text",readonly:t.fieldIsReadonly(t.easySwitchIdErrors)},domProps:{value:t.easySwitchId},on:{blur:function(e){return t.$emit("blurField")},input:[function(e){e.target.composing||(t.easySwitchId=e.target.value)},t.updateSwitchOperatorDetails]}})])],1),e("InlineNotification",{directives:[{name:"show",rawName:"v-show",value:t.showNewEasySwitchInformation,expression:"showNewEasySwitchInformation"}],staticClass:"switchOperatorFields__notification",attrs:{type:"info"}},[t._v(t._s(t.$t("request_broadband.maybe_invalid_easy_switch_id")))])],1)])},[],!1,null,null,null).exports},82655:function(t,e,i){"use strict";i.d(e,{A:function(){return m}});var s=i(32198),a=i(28673),n=i(67953);class o extends n.lD{get ariaLabel(){return this.$t("pagination.aria_label_{componentName}_{currentPage}",{componentName:this.forComponentName,currentPage:this.data.currentPage+1})}get showFirstPageBtn(){return this.data.pageCount>3&&this.data.currentPage>1}get showLastPageBtn(){return this.data.pageCount>3&&this.data.currentPage<this.data.lastPage-1}get showLeftDots(){return this.data.pageCount>4&&this.data.currentPage>2}get showRightDots(){return this.data.pageCount>4&&this.data.currentPage<this.data.lastPage-2}get pagesVisible(){return this.data.pageCount<1?[]:(0===this.data.currentPage?[0,1,2]:this.data.currentPage===this.data.lastPage?[-2,-1,0]:[-1,0,1]).map(t=>this.data.currentPage+t).filter(t=>t>=0&&t<this.data.pageCount)}async goToPage(t){this.loading=!0,await this.data.goToPage(t),this.loading=!1}constructor(...t){super(...t),this.loading=!1}}(0,s.Cg)([(0,n.kv)({type:String,required:!0})],o.prototype,"forComponentName",void 0),(0,s.Cg)([(0,n.kv)({type:Object,required:!0})],o.prototype,"data",void 0);var r=o=(0,s.Cg)([n.uA],o),l=i(41618),d=(0,l.A)(r,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.data.pageCount>1?e("nav",{staticClass:"pagination mv-pagination",class:{"pagination--firstPageActive":0===t.data.currentPage,"pagination--lastPageActive":t.data.currentPage===t.data.lastPage},attrs:{role:"navigation","aria-label":t.ariaLabel}},[e("ul",{staticClass:"page-numbers pagination__list"},[t.showFirstPageBtn?e("li",{staticClass:"pagination__firstPageBtn"},[e("a",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"page-numbers",attrs:{href:"javascript:;","aria-label":t.$t("pagination.go_to_first_page")},on:{click:function(e){return e.preventDefault(),t.goToPage(1)}}},[t._v("1")])]):t._e(),t.showLeftDots?e("li",{staticClass:"pagination__leftDots"},[e("span",{staticClass:"dots"},[t._v("â¦")])]):t._e(),t._l(t.pagesVisible,function(i){return e("li",{key:i,attrs:{"data-page-nr":i+1}},[i===t.data.currentPage?e("span",{staticClass:"page-numbers current",attrs:{"aria-current":"page"}},[t._v(t._s(i+1))]):e("a",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"page-numbers pagination__prevNextPage",class:{"pagination__prevNextPage--isLoading":t.data.loadingPage===i},attrs:{href:"javascript:;","aria-label":t.$t("pagination.go_to_page_{pageNumber}",{pageNumber:i+1})},on:{click:function(e){return e.preventDefault(),t.goToPage(i)}}},[t._v(t._s(i+1))])])}),t.showRightDots?e("li",{staticClass:"pagination__rightDots"},[e("span",{staticClass:"dots"},[t._v("â¦")])]):t._e(),t.showLastPageBtn?e("li",{staticClass:"pagination__lastPageBtn"},[e("a",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"page-numbers",attrs:{href:"javascript:;","aria-label":t.$t("pagination.go_to_last_page")},on:{click:function(e){return e.preventDefault(),t.goToPage(t.data.lastPage)}}},[t._v(t._s(t.data.lastPage+1))])]):t._e()],2)]):t._e()},[],!1,null,"17fb32e6",null).exports;class c extends n.lD{get sortDirection(){return this.sortable?this.sorting.getColumnOrder(this.column,0):null}get sortable(){return this.sorting.isSortable(this.column)}toggleSorting(){this.sortable&&this.sorting.toggleSort(this.column)}}(0,s.Cg)([(0,n.kv)({type:String,required:!1})],c.prototype,"id",void 0),(0,s.Cg)([(0,n.kv)({type:String,required:!0})],c.prototype,"column",void 0),(0,s.Cg)([(0,n.kv)({default:a.A.empty})],c.prototype,"sorting",void 0);var u=c=(0,s.Cg)([n.uA],c),p=(0,l.A)(u,function(){var t=this._self._c;return this._self._setupProxy,t(this.sortable?"button":"span",{tag:"Component",staticClass:"tableHeaderItem",attrs:{id:this.id||this.column,"aria-sort":this.sortDirection},on:{click:this.toggleSorting}},[this._t("default"),this.sortable?t("svg",{staticClass:"tableHeaderItem__sortIcon",attrs:{viewBox:"0 0 17 22",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[t("g",{attrs:{id:"icon-sort",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd","fill-opacity":"1"}},[t("path",{staticClass:"tableHeaderItem__sortUp",attrs:{d:"M9.22975974,12.7680194 L15.5562566,20.3598156 C15.9098207,20.7840925 15.8524966,\n 21.4146572 15.4282197,21.7682213 C15.2485047,21.9179838 15.0219718,22 14.7880353,\n 22 L2.13504161,22 C1.58275686,22 1.13504161,21.5522847 1.13504161,21 C1.13504161,\n 20.7660635 1.21705783,20.5395306 1.36682033,20.3598156 L7.69331718,12.7680194 C8.04688126,\n 12.3437425 8.67744596,12.2864184 9.10172286,12.6399825 C9.14818593,12.6787017 9.19104052,\n 12.7215563 9.22975974,12.7680194 Z",transform:"translate(8.461538, 16.923077) scale(1, -1) translate(-8.461538, -16.923077)"}}),t("path",{staticClass:"tableHeaderItem__sortDown",attrs:{d:"M9.22975974,0.921865536 L15.5562566,8.51366175 C15.9098207,8.93793865 15.8524966,\n 9.56850335 15.4282197,9.92206743 C15.2485047,10.0718299 15.0219718,\n 10.1538462 14.7880353,10.1538462 L2.13504161,10.1538462 C1.58275686,\n 10.1538462 1.13504161,9.7061309 1.13504161,9.15384615 C1.13504161,\n 8.91990965 1.21705783,8.69337676 1.36682033,8.51366175 L7.69331718,\n 0.921865536 C8.04688126,0.497588638 8.67744596,0.440264575 9.10172286,\
25n 0.793828656 C9.14818593,0.832547876 9.19104052,0.875402471 9.22975974,0.921865536 Z"}})])]):this._e()],2)},[],!1,null,"0c41fcc6",null).exports;class h extends n.lD{hasEmptySlotContent(){return"function"==typeof this.$scopedSlots.empty}}(0,s.Cg)([(0,n.kv)({type:String,required:!0})],h.prototype,"ariaLabel",void 0),(0,s.Cg)([(0,n.kv)({type:Array,required:!0})],h.prototype,"columnHeaders",void 0),(0,s.Cg)([(0,n.kv)({required:!1,default:()=>a.A.empty()})],h.prototype,"sorting",void 0),(0,s.Cg)([(0,n.kv)({type:String,required:!1,default:"0"})],h.prototype,"tableMinWidth",void 0),(0,s.Cg)([(0,n.kv)({type:Object,required:!0})],h.prototype,"records",void 0);var _=h=(0,s.Cg)([(0,n.uA)({components:{Pagination:d,TableHeaderItem:p}})],h),m=(0,l.A)(_,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"mvTable nextStyleLevel"},[e("div",{staticClass:"mvTable__overflow"},[e("table",{staticClass:"mvTable__table",style:`min-width: ${t.tableMinWidth};`,attrs:{"aria-rowcount":t.records.itemCount}},[e("thead",{staticClass:"mvTable__tableHeader"},[e("tr",t._l(t.columnHeaders,function(i,s){return e("th",{key:s},[e("TableHeaderItem",{attrs:{column:i.id,sorting:t.sorting}},[t._v(" "+t._s(i.label)+" ")])],1)}),0)]),e("tbody",[t.records.isEmpty&&t.hasEmptySlotContent?[e("tr",[e("td",{staticClass:"mvTable__noRecords",attrs:{colspan:t.columnHeaders.length}},[t._t("empty")],2)])]:null===t.records.loadingPage?[t._l(t.records.items,function(e){return t._t("default",null,{record:e})})]:[t._l(t.records.items.length,function(e){return t._t("default",function(){return[t._v(t._s(e))]},{record:null})})]],2)])]),e("Pagination",{staticClass:"mvTable__pagination",attrs:{forComponentName:t.ariaLabel,data:t.records}})],1)},[],!1,null,null,null).exports},10837:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(67953),n=i(50778);class o extends a.lD{get tagAppearance(){if(!this.state)return null;switch(this.state){case"invited":return"blue";case"pending":return"vibrantBlue";case"active":return"green";default:return"white"}}get readableState(){return this.state?this.$t(`employee_state__${this.state}`).toString():null}}(0,s.Cg)([(0,a.kv)({type:String,required:!0})],o.prototype,"state",void 0),(0,s.Cg)([(0,a.kv)({type:String,default:"small"})],o.prototype,"size",void 0);var r=o=(0,s.Cg)([(0,a.uA)({components:{Tag:n.A}})],o),l=(0,i(41618).A)(r,function(){var t=this._self._c;return this._self._setupProxy,t("Tag",{attrs:{appearance:this.tagAppearance,size:this.size}},[this._v(this._s(this.readableState))])},[],!1,null,null,null).exports},29637:function(t,e,i){"use strict";i.d(e,{A:function(){return u}});var s=i(32198),a=i(58294),n=i(67953),o=i(28759),r=i(56562);let l=(0,a.tZ)("TrackHardwareReturn");class d extends n.lD{async fetchShippingLabelUrl(){if(!this.hardwareReturn){this.shippingLabelUrl=null;return}try{this.shippingLabelUrl=await this.broadbandService.getHardwareReturnShippingLabelUrl(this.subscription,this.hardwareReturn)}catch(t){l.error("Failed to fetch shipping label",t),this.shippingLabelUrl=null}}async requestShippingLabel(){try{let t=await this.broadbandService.createHardwareReturnShippingLabel(this.subscription,this.hardwareReturn);t&&this.$emit("update:hardwareReturn",t),await this.fetchShippingLabelUrl(),this.shippingLabelUrl&&this.downloadUrl(this.shippingLabelUrl,"shipping-label")}catch(t){l.error("Failed to request shipping label",t),this.notifyGenericErrors(t)}}downloadUrl(t,e){let i=document.createElement("a");i.href=t,i.download=e,i.click()}constructor(...t){super(...t),this.iconDownload="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTguNDAyIDE5LjY5NWMxLjI2IDAgMi4zNDItLjQ1IDMuMjQ0LTEuMzUzLjkwMy0uOTAzIDEuMzU0LTEuOTg0IDEuMzU0LTMuMjQ0IDAtMS4yMDMtLjQxNS0yLjI0Mi0xLjI0Ni0zLjExNi0uODMtLjg3My0xLjgzMy0xLjM1My0zLjAwOC0xLjQzOS0uMzE1LTEuNjA0LTEuMTAzLTIuOTMtMi4zNjMtMy45NzVTMTMuNjYgNSAxMiA1YTYuNTUgNi41NSAwIDAwLTMuNTY2IDEuMDMxIDcuMTg1IDcuMTg1IDAgMDAtMi41MzYgMi43MDdjLTEuMzc1LjE0NC0yLjUzNS43MzgtMy40OCAxLjc4M0MxLjQ3MyAxMS41NjcgMSAxMi43OTEgMSAxNC4xOTVjMCAxLjUxOS41MzcgMi44MTUgMS42MTEgMy44ODkgMS4wNzUgMS4wNzQgMi4zNyAxLjYxMSAz
25Ljg4OSAxLjYxMWgxMS45MDJ6TTEyIDE3Ljg0OEw3LjQwMiAxMy4yNWgyLjc1VjkuNTk4aDMuNjk2djMuNjUyaDIuNzVMMTIgMTcuODQ4eiIgZmlsbD0iI2NkMDQwMCIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9zdmc+Cg==",this.shippingLabelUrl=null}}(0,s.Cg)([(0,n.kv)()],d.prototype,"subscription",void 0),(0,s.Cg)([(0,n.kv)()],d.prototype,"hardwareReturn",void 0),(0,s.Cg)([(0,n.y_)()],d.prototype,"session",void 0),(0,s.Cg)([(0,n.y_)()],d.prototype,"broadbandService",void 0),(0,s.Cg)([(0,n.y_)()],d.prototype,"goTo",void 0),(0,s.Cg)([(0,n.ox)("hardwareReturn",{immediate:!0})],d.prototype,"fetchShippingLabelUrl",null);var c=d=(0,s.Cg)([(0,n.uA)({components:{IntroBlock:o.A,MvSection:r.A}})],d),u=(0,i(41618).A)(c,function(){var t=this._self._c;return this._self._setupProxy,this.hardwareReturn?t("MvSection",{staticClass:"trackHardwareReturn styleLevel1"},[t("div",{staticClass:"trackHardwareReturn__imageContainer"}),t("div",{staticClass:"trackHardwareReturn__content"},this.shippingLabelUrl?[t("IntroBlock",{attrs:{title:this.$t("track_hardware_return.shipment_underway__title"),titleTag:"h3",titleAppearance:"h4",description:this.$t("track_hardware_return.shipment_underway__description"),ctaHref:this.hardwareReturn.trackingUrl,ctaAppearance:"secondary",ctaIsExternalLink:!0,ctaIdentifier:"track-shipment",ctaText:this.$t("track_hardware_return.track_shipment"),secCtaText:this.$t("track_hardware_return.redownload_label"),secCtaIdentifier:"download-shipping-label",secCtaHref:this.shippingLabelUrl}})]:[t("IntroBlock",{attrs:{title:this.$t("track_hardware_return.how_to_return__title"),titleTag:"h3",titleAppearance:"h4",description:this.$t("track_hardware_return.how_to_return__steps"),ctaHref:"javascript:;",ctaAppearance:"secondary",ctaIdentifier:"request-shipping-label",ctaIcon:this.iconDownload,ctaText:this.$t("track_hardware_return.download_shipping_label")},on:{primaryCtaClicked:this.requestShippingLabel}})],1)]):this._e()},[],!1,null,"bb92f5a2",null).exports},80631:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{get isCssVar(){return this.iconUrl.startsWith("--")}get styleString(){return this.isCssVar?`--icon-bg-url: var(${this.iconUrl});`:""}}(0,s.Cg)([(0,a.kv)({type:String,required:!0})],n.prototype,"iconUrl",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:"contain"})],n.prototype,"backgroundSize",void 0);var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,t("span",{staticClass:"avatarImage",class:{"avatarImage--coverBackground":"cover"===this.backgroundSize,"avatarImage--viaCssVar":this.isCssVar},style:this.styleString},[this.isCssVar?[this._v("Â ")]:t("img",{attrs:{src:this.iconUrl,alt:""}})],2)},[],!1,null,"a26f4072",null).exports},33497:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{}(0,s.Cg)([(0,a.kv)({type:String,default:""})],n.prototype,"initials",void 0);var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"AvatarInitials"},[t("span",{staticClass:"AvatarInitials__text"},[this._v(this._s(this.initials))])])},[],!1,null,"563138dd",null).exports},20684:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{}(0,s.Cg)([(0,a.kv)({type:String,default:"large"})],n.prototype,"size",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,default:!1})],n.prototype,"hovered",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,default:!1})],n.prototype,"hasWarning",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,default:!1})],n.prototype,"loading",void 0);var o=n=(0,s.Cg)([a.uA],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,t("span",{staticClass:"Avatar",class:{"Avatar--small":"small"===this.size,"Avatar--smallUntil600px":"smallUntil600px"===this.size,"Avatar--smallUntil800px":"smallUntil800px"===this.size,"Avatar--large":"large"===this.size,"Avatar--isHovered":this.hovered,"Avatar--isloading":this.loading,"Avatar--hasWarning":this.hasWarning}},[this.loading?this._e():[this.$slots.default?t("div",{staticClass:"Avatar__content"},[this._t("default")],2):this._e(),this.$slots.badge?t("div",{staticClass:"Avatar__badge"},[this._t("badge")],2):this._e()]],2)},[],!1,null,"64a77ffd",null).exports}
25,10183:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{getSizeStyle(){let t={1:"--spacing-025",2:"--spacing-050",3:"--spacing-075",default:"--spacing-025"};return`--badge-spacing: var(${t[this.size]||t.default})`}getColorStyle(){let t={red:"--colors-primary-thunderbird",green:"--colors-aquamarine-300",nero:"--colors-nero",default:"--colors-primary-thunderbird"};return`--badge-background-color: var(${t[this.color]||t.default})`}getBorderRadiusStyle(){let t={none:"--border-radius-0",small:"--border-radius-50",medium:"--border-radius-75",large:"--border-radius-125",full:"--border-radius-full",default:"--border-radius-full"};return`--badge-border-radius: var(${t[this.radius]||t.default})`}getRatioStyle(){return`--badge-aspect-ratio: ${this.maintainRatio?"1":"unset"}`}get styleString(){return[this.getSizeStyle(),this.getColorStyle(),this.getBorderRadiusStyle(),this.getRatioStyle()].join(";")}}(0,s.Cg)([(0,a.kv)({default:"1"})],n.prototype,"size",void 0),(0,s.Cg)([(0,a.kv)({default:"red"})],n.prototype,"color",void 0),(0,s.Cg)([(0,a.kv)({default:"medium"})],n.prototype,"radius",void 0),(0,s.Cg)([(0,a.kv)({default:!1})],n.prototype,"maintainRatio",void 0);var o=n=(0,s.Cg)([(0,a.uA)({})],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,t("span",{staticClass:"badge",style:this.styleString},[this._t("default")],2)},[],!1,null,"ec5c38d8",null).exports},46535:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{get shimmerOverwrites(){return{"--shimmer-width":this.width,"--shimmer-height":this.height}}}(0,s.Cg)([(0,a.kv)({required:!1,default:"5ch"})],n.prototype,"width",void 0),(0,s.Cg)([(0,a.kv)({required:!1,default:"24px"})],n.prototype,"height",void 0);var o=n=(0,s.Cg)([(0,a.uA)({})],n),r=(0,i(41618).A)(o,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"shimmer",style:this.shimmerOverwrites})},[],!1,null,"fdc4eb8e",null).exports},99735:function(t,e,i){"use strict";i.d(e,{A:function(){return b}});var s=i(32198),a=i(28483),n=i(70180),o=i(67953),r=i(27680),l=i(78014);class d extends o.lD{mounted(){this.value&&(this.startDate=this.value[0],this.endDate=this.value[1],this.initialSelection=this.determineInitialSelection(this.startDate,this.endDate))}determineInitialSelection(t,e){return t?e?t.isEqual(e)?[t,e]:(0,l.Tk)(t,e):[t]:null}get hint(){return this.startDate&&this.isDirty?this.endDate?"":this.$t("calendar.select_end_date").toString():this.$t("calendar.select_start_date").toString()}datesSelected(t){this.isDirty=!0,1===t.length&&(this.startDate=t[0],this.endDate=null),t.length>1&&(this.startDate=t[0],this.endDate=t.slice(-1)[0],this.$emit("input",[this.startDate,this.endDate]))}constructor(...t){super(...t),this.initialSelection=null,this.startDate=null,this.endDate=null,this.isDirty=!1}}(0,s.Cg)([(0,o.kv)({type:String,required:!1,default:""})],d.prototype,"appearance",void 0),(0,s.Cg)([(0,o.kv)()],d.prototype,"minDate",void 0),(0,s.Cg)([(0,o.kv)()],d.prototype,"maxDate",void 0),(0,s.Cg)([(0,o.kv)({type:Boolean,required:!1,default:!1})],d.prototype,"showPrevMonthButtonWhenNotInRange",void 0),(0,s.Cg)([(0,o.kv)({default:null})],d.prototype,"value",void 0);var c=d=(0,s.Cg)([(0,o.uA)({components:{Calendar:r.A}})],d),u=i(41618),p=(0,u.A)(c,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"dateRangePicker",class:{"dateRangePicker--inUsagePopup":"inUsagePopup"===this.appearance,"dateRangePicker--hasHint":""!==this.hint}},[t("div",{staticClass:"dateRangePicker__hint"},[this._v(this._s(this.hint))]),t("Calendar",{staticClass:"dateRangePicker__calendar",attrs:{minDate:this.minDate,maxDate:this.maxDate,appearance:this.appearance,styleLevel:1,showPrevMonthButtonWhenNotInRange:this.showPrevMonthButtonWhenNotInRange,rangeSelector:!0,initialSelection:this.initialSelection},on:{datesSelected:this.datesSelected}})],1)},[],!1,null,"1aeffda7",null).exports,h=i(24176),_=i(14806),m=i(76370),g=i(95630),v=i(55056);class f extends o.lD{mounted(){this.$nextTick(()=>{let t=this.$refs.steps?.$el;t&&t.focus()})}
25onActiveStepChanged(){setTimeout(()=>{let t=this.$el.querySelector(`.step[stepname="${this.activeStep}"]`),e=t?.querySelector("button, input, a");e?e.focus():t&&t.focus()},this.animationDelay+50)}onValueChanged(t){this.filter={...t}}get periodDescription(){if(!this.filter)return"";if(!this.period.custom)return this.period.label;let t=this.locale;return this.filter.dateFrom.isEqual(this.filter.dateTo)?(0,n.kz)(this.filter.dateFrom,t):`${(0,n.kz)(this.filter.dateFrom,t)} - ${(0,n.kz)(this.filter.dateTo,t)}`}get minDate(){return this.clock.today().minusYears(1)}get maxDate(){return this.clock.today()}get paidOnly(){return!!this.filter&&"out"===this.filter.bundle}set paidOnly(t){this.filter&&(t?this.filter.bundle="out":this.filter.bundle=void 0)}get filterPeriod(){return this.filter?[this.filter.dateFrom,this.filter.dateTo]:[this.clock.today(),this.clock.today()]}set filterPeriod([t,e]){this.filter&&(this.filter.dateFrom=t,this.filter.dateTo=e)}get period(){return this.filter?this.periods.find(t=>t.match([this.filter.dateFrom,this.filter.dateTo])):this.periods[0]}set period(t){t.apply()}async onPeriodClick(t){this.period=t,t.custom?this.pushStep("custom-period"):this.popStep(this.animationDelay)}get periods(){let t=this.clock.today(),e=(0,a.SP)(t,{lastTopupDate:this.lastTopupDate||null,lastBundleRenewalDate:this.lastBundleRenewalDate||null}).map(t=>({label:this.$t(`default_period__${t.name}`).toString(),apply:()=>{this.filterPeriod=[t.from,t.to]},match:([e,i])=>t.matches(e,i)}));return e.push({custom:!0,label:this.$t("default_period__custom").toString(),apply:()=>{},match:([t,e])=>!0}),e}setDefaultFilter(){this.filter=this.defaultFilters}apply(){this.$emit("input",this.filter),this.$emit("close")}reset(){this.setDefaultFilter(),this.$emit("input",this.filter),this.$emit("close")}cancel(){this.$emit("close")}get stepsApi(){return this.$refs.steps}returnToInitialStep(){this.activeStep="initial",this.stepsApi.popToInitialStep(250)}pushStep(t){this.activeStep=t,this.stepsApi.pushStep(t)}popStep(t){"custom-period"===this.activeStep?this.activeStep="period":"period"===this.activeStep&&(this.activeStep="initial"),this.stepsApi.popStep(t)}constructor(...t){super(...t),this.animationDelay=250,this.filter=null,this.activeStep="initial"}}(0,s.Cg)([(0,o.kv)({required:!0})],f.prototype,"value",void 0),(0,s.Cg)([(0,o.kv)({required:!1})],f.prototype,"lastTopupDate",void 0),(0,s.Cg)([(0,o.kv)({required:!1})],f.prototype,"lastBundleRenewalDate",void 0),(0,s.Cg)([(0,o.kv)({required:!0})],f.prototype,"defaultFilters",void 0),(0,s.Cg)([(0,o.y_)()],f.prototype,"clock",void 0),(0,s.Cg)([(0,o.ox)("activeStep")],f.prototype,"onActiveStepCh
25anged",null),(0,s.Cg)([(0,o.ox)("value",{immediate:!0})],f.prototype,"onValueChanged",null);var y=f=(0,s.Cg)([(0,o.uA)({components:{SidePanelItem:m.A,DateRangePicker:p,Steps:v.A,Step:g.A,Checkbox:_.A,CallToAction:h.A}})],f),b=(0,u.A)(y,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{directives:[{name:"trap-focus",rawName:"v-trap-focus"}],staticClass:"UsageFilterPopup MyVikingTP nextStyleLevel",on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.cancel.apply(null,arguments)}}},[e("Steps",{directives:[{name:"on-click-outside",rawName:"v-on-click-outside",value:t.cancel,expression:"cancel"}],ref:"steps",attrs:{tabindex:"-1"}},[e("Step",{staticClass:"filter-main",attrs:{stepName:"initial",tabindex:"-1"}},[e("header",{staticClass:"UsageFilterPopupHeader"},[e("h2",{staticClass:"UsageFilterPopup__title"},[t._v(t._s(t.$t("usage_filter.title")))]),e("button",{staticClass:"UsageFilterPopupHeader__btn UsageFilterPopupHeader__btn--cancel",attrs:{"data-qa":"close-btn",type:"button"},on:{click:function(e){return t.cancel()}}},[e("span",[t._v(t._s(t.$t("usage_filter.close")))])])]),e("div",{staticClass:"UsageFilterPopup__main"},[e("Checkbox",{staticClass:"filter-paidonly",attrs:{label:t.$t("usage_filter.paid_only")},model:{value:t.paidOnly,callback:function(e){t.paidOnly=e},expression:"paidOnly"}}),e("SidePanelItem",{staticClass:"filter-setperiod",attrs:{value:t.periodDescription,title:t.$t("usage_filter.period")},on:{edit:function(e){return t.pushStep("period")}}})],1),e("footer",[e("CallToAction",{staticClass:"UsageFilterPopup__applyFilterCta filter-apply",on:{click:function(e){return t.apply()}}},[t._v(" "+t._s(t.$t("usage_filter.filter"))+" ")]),e("CallToAction",{staticClass:"filter-reset cancel",attrs:{appearance:"link"},on:{click:function(e){return t.reset()}}},[t._v(" "+t._s(t.$t("usage_filter.reset"))+" ")])],1)]),e("Step",{staticClass:"filter-period",attrs:{stepName:"period",tabindex:"-1"}},[e("header",{staticClass:"UsageFilterPopupHeader"},[e("button",{staticClass:"UsageFilterPopupHeader__btn UsageFilterPopupHeader__btn--back",attrs:{type:"button"},on:{click:function(e){return t.popStep()}}},[e("span",[t._v(t._s(t.$t("usage_filter.back")))])]),e("h2",{staticClass:"UsageFilterPopup__title"},[t._v(t._s(t.$t("usage_filter.period_title")))]),e("button",{staticClass:"UsageFilterPopupHeader__btn UsageFilterPopupHeader__btn--cancel",attrs:{type:"button"},on:{click:function(e){return t.cancel()}}},[e("span",[t._v(t._s(t.$t("usage_filter.close")))])])]),e("div",{staticClass:"UsageFilterPopup__main"},[e("ul",{staticClass:"periodFilterOptions nextStyleLevel"},t._l(t.periods,function(i,s){return e("li",{key:s,staticClass:"periodFilterOptions__option",on:{click:function(e){return t.onPeriodClick(i)}}},[e("button",{staticClass:"periodFilterOption",class:{"periodFilterOption--selected":i.custom?t.period.custom:i.match(t.filterPeriod)},attrs:{type:"button","data-qa":"period-filter-option"}},[t._v(" "+t._s(i.label)+" ")])])}),0)])]),e("Step",{staticClass:"filter-custom-period",attrs:{stepName:"custom-period",tabindex:"-1"}},[e("header",{staticClass:"UsageFilterPopupHeader"},[e("button",{staticClass:"UsageFilterPopupHeader__btn UsageFilterPopupHeader__btn--back",attrs:{type:"button"},on:{click:function(e){return t.popStep()}}},[e("span",[t._v(t._s(t.$t("usage_filter.back")))])]),e("h2",{staticClass:"UsageFilterPopup__title"},[t._v(t._s(t.$t("usage_filter.custom_period_title")))]),e("button",{staticClass:"UsageFilterPopupHeader__btn UsageFilterPopupHeader__btn--cancel",attrs:{type:"button"},on:{click:function(e){return t.cancel()}}},[e("span",[t._v(t._s(t.$t("usage_filter.close")))])])]),e("div",{staticClass:"UsageFilterPopup__main"},[e("div",{staticClass:"filter-custom-period__calendar"},[e("DateRangePicker",{attrs:{maxDate:t.maxDate,minDate:t.minDate,appearance:"inUsagePopup"},on:{input:function(e){return t.returnToInitialStep()}},model:{value:t.filterPeriod,callback:function(e){t.filterPeriod=e},expression:"filterPeriod"}})],1)])])],1)],1)},[],!1,null,"a9d45aaa",null).exports}
25,47619:function(t,e,i){"use strict";i.d(e,{A:function(){return O}});var s=i(32198),a=i(58294),n=i(90004),o=i(71229),r=i(98946),l=i(1122),d=i(8921),c=i(92577),u=i(47352),p=i(44739),h=i(67953),_=i(14806),m=i(58249);class g extends h.lD{translatedIdentificationMethod(t){let e=t.toLowerCase();return this.$t(`identificationMethod.${e}`)}}(0,s.Cg)([(0,h.kv)({type:String,default:"",required:!1})],g.prototype,"method",void 0),(0,s.Cg)([(0,h.kv)({type:String,default:"",required:!1})],g.prototype,"appearance",void 0),(0,s.Cg)([(0,h.y_)()],g.prototype,"config",void 0);var v=g=(0,s.Cg)([h.uA],g),f=i(41618),y=(0,f.A)(v,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"identificationMethodLabel"},[t("img",{staticClass:"identificationMethodLabel__img",class:{background:"payment"===this.method},attrs:{src:`${this.config.vueRoot}/img/identificationMethods/${this.method}.svg`,alt:""}}),t("div",{staticClass:"identificationMethodLabel__description"},[t("div",{staticClass:"identificationMethodLabel__label"},[this._v(this._s(this.translatedIdentificationMethod(this.method)))])])])},[],!1,null,"1d9ac146",null).exports,b=i(15049),C=i(69607),w=i(28759),S=i(33905),M=i(43397),A=i(66090),k=i(23087),I=i(78906);function x(t){return t&&t.replace(/[^b0-9]/gi,"").replace(/(?!^)b/gi,"").toUpperCase()||null}var N=i(83487),T=i(54926);class D extends T.A{constructor(t){super(),this.$t=t}getMessage(){return this.$t("invalid_eid")}validate(t){if(!t)return!1;let e=x(t);if(!e||!e.match(/^B?[0-9]{9}$/i)&&!e.match(/^[0-9]{12}$/i))return!1;let i=parseInt(e.replace(/[a-z]/gi,""),10),s=Math.floor(i/100),a=i%100;return s%97===a||s%97==0&&97===a}}let $=(0,a.tZ)("UserIdentification"),P="upfrontInvoice";class L extends h.lD{created(){this.$validator.extend("id_card",new D(this.$t.bind(this)).asRule())}mounted(){this.$route.query.identifiedByPayment&&this.handlePaymentResult(),this.$route.query.type&&this.handleIdentificationResult()}showIdentificationSteps(t){return!!this.isInIdentificationState&&this.currentIdentificationMethod===t}hasIdentificationMethods(){return!!this.order.allowedIdentificationMethods&&this.order.allowedIdentificationMethods.length>0}async handlePaymentResult(){this.$emit("userIdentificationInProgress"),this.checkingPaymentResult=!0;try{let t=this.$route.query.userIdentificationState?JSON.parse(this.$route.query.userIdentificationState.toString()):void 0;$.info(`Returning from payment with order: ${JSON.stringify(this.order)}`),$.info(`State stored: ${JSON.stringify(t)}`),this.$emit("restoreState",t),await this.waitUntilIdentified()}finally{this.checkingPaymentResult=!1}}async handleIdentificationResult(){this.$emit("userIdentificationInProgress"),this.checkingIdentificationResult=!0;try{let t=this.$route.query.userIdentificationState?JSON.parse(this.$route.query.userIdentificationState.toString()):void 0;$.info(`Returning from identification with order: ${JSON.stringify(this.order)}`),$.info(`State stored: ${JSON.stringify(t)}`),this.$emit("restoreState",t),await this.checkIdentificationResult()}finally{this.checkingIdentificationResult=!1}}async checkIdentificationResult(){let t=this.$route.query.error;if(t){switch(t){case d.O4.TIMEOUT:this.notify.error("user_identification.itsme_timed_out");break;case d.O4.ACCESS_DECLINED:this.notify.error("user_identification.itsme_access_declined");break;case d.O4.EXTERNAL_SERVICE_UNAVAILABLE:this.notify.error("user_identification.itsme_unavailable");break;case d.O4.IDENTIFIER_ALREADY_USED:this.notify.error("user_identification.itsme_identifier_already_used");break;default:this.notify.error("broadbandInstallationAndIdentification.unable_to_process")}this.$router.replace({query:{...this.$route.query,error:void 0}}),this.$emit("identificationError")}else await this.waitUntilIdentified()}emitIdMethod(){this.$emit("idMethodSelected",this.isInIdentificationState?this.currentIdentificationMethod:null)}get userMayIdentifyUsingIdCard(){return!!this.isInIdentificationState&&!!this.order.allowedIdentificationMethods?.includes("id_card")}get userMayIdentifyUsingPayment(){return!!this.isInIdentificationState&&!!this.order.allowedIdentificationMethods?.includes("payment")}get allowedIdentificationMethods(){return this.order.allowedIdentificationMethods?.length?this.order.allowedIdentificationMethods:[]}get currentIdentificationMethod(){if(this.config.featureFlags.pp1234allowItsmeIdentification)return this.isInIdentificationState&&this.hasIdentificationMethods()?"payment"===this.selectedIdentificationMethod?this.orderSubscription?.type==="prepaid"?"topup":"upfront":this.selectedIdentificationMethod:"care";return this.userMayIdentifyUsingIdCard&&!this.hasNoBelgianEid?"id_card":this.userMayIdentifyUsingPayment&&(this.orderSubscription?.type==="postpaid"||this.orderSubscription?.type==="fixed_internet")?"upfront":this.userMayIdentifyUsingPayment&&this.orderSubscription?.type==="prepaid"?"topup":"care"}get eidAlternativeExplanation(){return this.userMayIdentifyUsingPayment?this.$t("user_identification.no_belgian_eid_pay_upfront").toString():this.$t("user_identification.no_belgian_eid_contact_care").toString()}get upfrontPaymentIntro(){return this.order.allowedIdentificationMethods&&this.order.allowedIdentificationMethods.includes("payment")?(0,o.wg)(this.order)?1===this.order.allowedIdentificationMethods.length?this.$t("user_identification.step__upfront_payment_why_only_option").toString():this.$t("user_identification.step__upfront_payment_why_eid_problems").toString():1===this.order.allowedIdentificationMethods.length?this.$t("user_identification.step__upfront_payment_why_only_option_for_broadband").toString():this.$t("user_identification.step__upfront_payment_why_eid_problems_for_broadband_invoice").toString():""}get topupIntro(){return this.orderSubscription?(0,c.eW)(this.orderSubscription).isDataOnly?this.$t("user_identification.step2__topup_is_required_for_data_only").toString():this.$t("user_identification.step2__topup_is_required").toString():""}get isInIdentificationState(){return"wait_for_identification"===this.order.state}get orderSubscription(){return[...this.session.mobileSubscriptions||[],...this.session.broadbandSubscriptions||[]].find(t=>
25t.id===this.order.subscriptionId)||null}get orderedProduct(){return this.orderSubscription?.product||null}get allowedPaymentMethods(){let{allowedPaymentMethods:t}=this.order;return t&&t.length?t:null}async selectDefaultTopup(){if(this.allowedTopups=null,this.orderedProduct&&(0,l.$o)(this.orderedProduct)){if(this.allowedTopups=await this.productService.getTopupProducts(this.orderedProduct,!1),!this.allowedTopups)throw new n.p("Allowed products not loaded");if(!this.allowedTopups.length)throw new n.p("No topups found for product");1===this.allowedTopups.length&&(this.topup=this.allowedTopups[0]),this.topup=this.allowedTopups.find(t=>"data"===t.focus&&15===t.price)||this.topup}}onPaymentMethodChanged(){this.$emit("paymentMethodSelected",this.paymentMethod)}async identifyUser(){this.$emit("userIdentificationInProgress");try{if(this.isInIdentificationState)if("itsme"===this.currentIdentificationMethod)await this.doItsmeIdentification();else if("id_card"===this.currentIdentificationMethod)await this.saveEid();else if("upfront"===this.currentIdentificationMethod)await this.doForcedUpfrontPayment();else if("topup"===this.currentIdentificationMethod)await this.doTopup();else throw Error("User-identification was requested, but no supported idMethod found");else{let t=await this.waitForStableState();if("wait_for_identification"===t.state)throw new d.Ay(d.O4.NO_IDENTITY_VERIFICATION);this.$emit("userIdentified",{order:t})}}catch(e){let t=d.Ay.of(e);t.code===d.O4.EID_INVALID?(this.domUtils.scrollToFirst(".eid-number-step",20),this.userMayIdentifyUsingPayment?this.notify.error("user_identification.step__identification_failed_use_upfront_payment"):this.notify.error("user_identification.step__identification_failed_contact_care"),this.$emit("identificationError")):this.$emit("identificationError",t)}}async doTopup(){let t=(0,c.eW)((0,I.bp)(this.orderSubscription)),e=(0,u.Bb)({identifiedByPayment:"topup",userIdentificationState:this.state?JSON.stringify(this.state):void 0});await this.doPayment("topup",()=>this.topupService.topup(t,(0,I.bp)(this.topup),this.resolveQuery(e),new r.Ay(this.paymentMethod,void 0),[]))}async doForcedUpfrontPayment(){let t=(0,u.Bb)({identifiedByPayment:P,userIdentificationState:this.state?JSON.stringify(this.state):void 0});await this.doPayment("upfront payment",()=>this.subscriptionService.addPostpaidUpfrontPayment(this.order,this.resolveQuery(t),new r.Ay(this.paymentMethod,void 0)))}async doPayment(t,e){$.info(`Identifying by "${t}"`);try{let i=await e();$.info(`"${t}" is redirecting the customer to ${i} for payment`),this.goTo(i),await (0,p.i4)()}catch(e){throw $.debug(`Failed identification by "${t}" - ${JSON.stringify(e)}`),e}}async doItsmeIdentification(){$.info("Identifying by Itsme");let t="itsme",e=(0,u.Bb)({type:t,userIdentificationState:this.state?JSON.stringify(this.state):void 0});try{let i=await this.uwa.identifyUser(this.resolveQuery(e),t);$.info(`Itsme is redirecting the customer to ${i} for identification`),this.goTo(i),await (0,p.i4)()}catch(t){throw $.debug(`Failed identification by Itsme - ${JSON.stringify(t)}`),t}}async saveEid(){try{let t=x(this.eid);await this.uwa.saveEid(t),await this.waitUntilIdentified()}catch(t){throw $.debug(`Failed to save EID: ${t.message}`),t}}async waitUntilIdentified(){let t=null,e=this.$route.query.identifiedByPayment===P;try{t=await this.poll(()=>this.uwa.getOrder(this.order.id),t=>!t||!["wait_for_identification","processing"].includes(t.state),300,5e3,"Wait for order state to no longer be wait for identification"),this.$emit("userIdentified",(0,u.Bb)({order:t,paidUpfront:e}))}catch(i){e?$.warning(`Returning from payment, order in wrong state: (${t?.state}); orderId: ${this.order.id}: ${i}`):$.warning(`Upon identification, order in wrong state: (${t?.state}); orderId: ${this.order.id}: ${i}`),this.$emit("identificationError",i)}}async waitForStableState(){if(!["created","processing"].includes(this.order.state))return this.order;let t=await this.poll(()=>this.uwa.getOrder(this.order.id),t=>!t||!["created","processing"].includes(t.state),300,5e3,"Wait for order state to be stable");if(!t)throw new d.Ay(d.O4.ORDER_NOT_FOUND);return t}sanitizeEidInput(){let t=x(this.eid);t&&t!==this.eid&&(this.eid=t)}constructor(...t){super(...t),this.eid="",this.hasNoBelgianEid=!1,this.allowedTopups=null,this.topup=null,this.paymentMethod=null,this.uwaValidationErrors={},this.checkingPaymentResult=!1,this.checkingIdentificationResult=!1,this.selectedIdentificationMethod=null}}(0,s.Cg)([(0,h.kv)()],L.prototype,"order",void 0),(0,s.Cg)([(0,h.kv)({default:!1})],L.prototype,"hideNumber",void 0),(0,s.Cg)([(0,h.kv)({type:Object})],L.prototype,"state",void 0),(0,s.Cg)([(0,h.y_)()],L.prototype,"session",void 0),(0,s.Cg)([(0,h.y_)()],L.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,h.y_)()],L.prototype,"productService",void 0),(0,s.Cg)([(0,h.y_)()],L.prototype,"domUtils",void 0),(0,s.Cg)([(0,h.y_)()],L.prototype,"topupService",void 0),(0,s.Cg)([(0,h.y_)()],L.prototype,"goTo",void 0),(0,s.Cg)([(0,h.y_)()],L.prototype,"uwa",void 0),(0,s.Cg)([(0,h.y_)()],L.prototype,"resolveQuery",void 0),(0,s.Cg)([(0,h.y_)()],L.prototype,"poll",void 0),(0,s.Cg)([(0,h.y_)()],L.prototype,"config",void 0),(0,s.Cg)([(0,h.ox)("currentIdentificationMethod",{immediate:!0}),(0,h.ox)("isInIdentificationState")],L.prototype,"emitIdMethod",null),(0,s.Cg)([(0,h.ox)("orderedProduct",{immediate:!0})],L.prototype,"selectDefaultTopup",null),(0,s.Cg)([(0,h.ox)("paymentMethod",{immediate:!0})],L.prototype,"onPaymentMethodChanged",null);var E=L=(0,s.Cg)([(0,N.My)(),(0,h.uA)({components:{IntroBlock:w.A,IdentificationMethodLabel:y,RadioButtons:C.A,RadioButton:b.A,WizardStep:A.A,InfoItem:S.A,TopupSelector:M.A,PaymentMethodSelector:k.A,Checkbox:_.A,Field:m.A}})],L),O=(0,f.A)(E,function(){var t=this,e=t._self._c;return t._self._setupProxy,!t.isInIdentificationState||t.checkingPaymentResult||t.checkingIdentificationResult?t._e():e("div",{staticClass:"userIdentification"},[t.hasIdentificationMethods&&t.config.featureFlags.pp1234allowItsmeIdentification?e("WizardStep",{staticClass:"IdentificationMethodSelector",attrs:{title:t.$t("user_identification.step__identification"),hideNumber:t.hideNumber,description:t.$t("user_identification.step__identification_why")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("RadioButtons",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],staticClass:"IdentificationMethodSelector identification-method-selector",attrs:{required:!0,isInvalid:!!t.errors.first("identification-method-selector"),"data-qa":"identification-method-selector",name:"identification-method-selector"},model:{value:t.selectedIdentificationMethod,callback:function(e){t.selectedIdentificationMethod=e},expression:"selectedIdentificationMethod"}},t._l(t.allowedIdentificationMethods,function(i,s){return e("RadioButton",{key:`${i}_${s}`,staticClass:"IdentificationMethodSelector__option",attrs:{value:i,disabled:!t.isInIdentificationState},scopedSlots:t._u([{key:"default",fn:function(){return[e("IdentificationMethodLabel",{staticClass:"item method-option",attrs:{method:i}})]},proxy:!0},{key:"description",fn:function(){return["itsme"===t.selectedIdentificationMethod?e("div",{staticClass:"IdentificationMethodForm nextStyleLevel",attrs:{"data-qa":"identification-method-form-itsme"}},[e("section",{staticClass:"IdentificationMethodForm__section"},[e("IntroBlock",{staticClass:"IdentificationMethodForm__sectionIntro",attrs:{description:t.$t("identification_method_itmse.description")}}),e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("identification_method_itsme.disclaimer__html"),expression:"$t('identification_method_itsme.disclaimer__html')"}],staticClass:"IdentificationMethodForm__extraInfo text text--footnote"})],1)]):t._e(),"id_card"===t.selectedIdentificationMethod?e("div",{staticClass:"IdentificationMethodForm nextStyleLevel",attrs:{"data-qa":"identification-method-form--eid"}},[e("section",{staticClass:"IdentificationMethodForm__section"},[e("Field",{staticClass:"eid-number",class:{"field-label-appear-disabled":"id_card"!==t.currentIdentificationMethod},attrs:{hint:t.$t("field_eid_hint"),label:t.$t("field_eid_label")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.eid,expression:"eid"},{name:"validate",rawName:"v-validate",value:"id_card",expression:"'id_card'"}],attrs:{type:"text",name:"eid",required:"id_card"===t.currentIdentificationMethod,disabled:"id_card"!==t.currentIdentificationMethod,placeholder:"_ _ _ - _ _ _ _ _ _ _ - _ _"},domProps:{value:t.eid},on:{blur:function(e){return t.sanitizeEidInput()},input:function(e){e.target.composing||(t.eid=e.target.value)}}}
25)])],1)]):t._e()]},proxy:!0}],null,!0)})}),1)],1)]):t._e(),t.userMayIdentifyUsingIdCard&&!t.config.featureFlags.pp1234allowItsmeIdentification?e("WizardStep",{staticClass:"slide-down-fade-animation",attrs:{title:t.$t("user_identification.step__identification"),hideNumber:t.hideNumber,description:t.$t("user_identification.step__identification_why")}},[e("div",{staticClass:"wizardStep__paddedContent eid-number-step identity-verification"},[e("Field",{staticClass:"eid-number",class:{"field-label-appear-disabled":"id_card"!==t.currentIdentificationMethod},attrs:{hint:t.$t("field_eid_hint"),label:t.$t("field_eid_label")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.eid,expression:"eid"},{name:"validate",rawName:"v-validate",value:"id_card",expression:"'id_card'"}],attrs:{type:"text",name:"eid",required:"id_card"===t.currentIdentificationMethod,disabled:"id_card"!==t.currentIdentificationMethod,placeholder:"_ _ _ - _ _ _ _ _ _ _ - _ _"},domProps:{value:t.eid},on:{blur:function(e){return t.sanitizeEidInput()},input:function(e){e.target.composing||(t.eid=e.target.value)}}})]),e("hr"),e("Checkbox",{staticClass:"force-no-focus",attrs:{id:"no_belgian_eid",label:t.eidAlternativeExplanation},model:{value:t.hasNoBelgianEid,callback:function(e){t.hasNoBelgianEid=e},expression:"hasNoBelgianEid"}})],1)]):t._e(),t.showIdentificationSteps("upfront")?e("WizardStep",{class:{"slide-down-fade-animation":!t.hasNoBelgianEid},attrs:{title:t.$t("user_identification.step__upfront_payment"),hideNumber:t.hideNumber,description:t.upfrontPaymentIntro}},[e("div",{staticClass:"wizardStep__paddedContent upfront-payment-step identity-verification"},[e("hr"),e("InfoItem",{attrs:{label:t.$t("user_identification.step__upfront_payment_advance_payment")}},[e("strong",[t._v(t._s(t._f("moneyCents")(t.order.amountDue||t.order.amount)))])]),e("hr"),e("Field",{staticClass:"upfront-payment-method",attrs:{label:t.$t("topup.pick_a_payment_method")}},[e("PaymentMethodSelector",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"payment_method","data-vv-as":t.$t("field_payment_method"),options:t.allowedPaymentMethods},model:{value:t.paymentMethod,callback:function(e){t.paymentMethod=e},expression:"paymentMethod"}}),t.errors.first("payment_method")?e("span",{staticClass:"validation-message"},[t._v(" "+t._s(t.errors.first("payment_method"))+" ")]):t._e()],1)],1)]):t._e(),t.showIdentificationSteps("topup")?e("WizardStep",{staticClass:"slide-down-fade-animation",attrs:{title:t.$t("user_identification.step2__topup"),hideNumber:t.hideNumber,description:t.topupIntro}},[e("div",{staticClass:"wizardStep__paddedContent userIdentification__topupSelectorWrap identity-verification topup-step"},[e("TopupSelector",{attrs:{product:t.orderSubscription.product,exposeLegacyPrepaids:!1},model:{value:t.topup,callback:function(e){t.topup=e},expression:"topup"}})],1)]):t._e(),t.showIdentificationSteps("topup")?e("WizardStep",{staticClass:"slide-down-fade-animation",attrs:{title:t.$t("user_identification.step3__payment"),hideNumber:t.hideNumber,description:t.$t("user_identification.step3__payment_is_bancontact_only")}},[e("div",{staticClass:"wizardStep__paddedContent identity-verification topup-payment-step"},[e("hr"),t.topup?e("InfoItem",{attrs:{label:t.$t("user_identification.summary_topup")}},[e("strong",[t._v(t._s(t._f("moneyCents")(t.topup.price)))])]):t._e(),e("hr"),e("Field",{staticClass:"topup-payment-method",attrs:{label:t.$t("topup.pick_a_payment_method")}},[e("PaymentMethodSelector",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"payment_method","data-vv-as":t.$t("field_payment_method"),options:t.allowedPaymentMethods},model:{value:t.paymentMethod,callback:function(e){t.paymentMethod=e},expression:"paymentMethod"}}),t.errors.first("payment_method")?e("span",{staticClass:"validation-message"},[t._v(" "+t._s(t.errors.first("payment_method"))+" ")]):t._e()],1)],1)]):t._e(),t.showIdentificationSteps("care")?e("WizardStep",{staticClass:"slide-down-fade-animation identify-verification contact-care-step",attrs:{title:t.$t("user_identification.step__contact_care"),hideNumber:t.hideNumber,description:t.$t("user_identification.step__contact_care_intro")}}):t._e()],1)},[],!1,null,"3bb82af4",null).exports}
25,39413:function(t,e,i){"use strict";i.d(e,{A:function(){return D}});var s=i(32198),a=i(58294),n=i(1122),o=i(8921),r=i(94182),l=i(62765),d=i(67953),c=i(24176),u=i(58249),p=i(42123),h=i(49842),_=i(79847),m=i(76370),g=i(95630),v=i(55056),f=i(37882);class y extends d.lD{async mounted(){this.prepaidProduct=await this.productService.getDefaultPrepaidProduct(),this.dataOnlyProduct=await this.productService.getDefaultPrepaidProduct("data-only-2019"),this.value&&this.pricePlanTabs&&(this.pricePlanTabs.activeTab=this.$t(`add_sim_card.select_price_plan__tab_header_${this.value.type}`))}get selectedPostpaidProduct(){return this.value&&(0,n.s1)(this.value)?this.value:null}set selectedPostpaidProduct(t){this.$emit("input",t)}selectedPrepaid(){this.$emit("input",this.prepaidProduct)}selectedDataOnly(){this.$emit("input",this.dataOnlyProduct)}constructor(...t){super(...t),this.prepaidProduct=null,this.dataOnlyProduct=null}}(0,s.Cg)([(0,d.y_)()],y.prototype,"productService",void 0),(0,s.Cg)([(0,d.kv)()],y.prototype,"value",void 0),(0,s.Cg)([(0,d.oS)()],y.prototype,"pricePlanTabs",void 0);var b=y=(0,s.Cg)([(0,d.uA)({components:{SidePanelItem:m.A,PostpaidSelector:f.default}})],y),C=i(41618),w=(0,C.A)(b,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"pricePlanSelector"},[e("div",{staticClass:"option-group end-section"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("add_sim_card.select_price_plan__postpaid_intro"),expression:"$t('add_sim_card.select_price_plan__postpaid_intro')"}],staticClass:"intro"}),e("PostpaidSelector",{attrs:{narrow:!0,showSelectionDetails:!1},model:{value:t.selectedPostpaidProduct,callback:function(e){t.selectedPostpaidProduct=e},expression:"selectedPostpaidProduct"}})],1),e("div",{staticClass:"option-group"},[e("div",{staticClass:"option-group-title"},[t._v(t._s(t.$t("price_plan_selector.prefer_no_subscription_title")))]),e("p",{staticClass:"option-group__description"},[t._v(" "+t._s(t.$t("price_plan_selector.prefer_no_subscription_description"))+" ")]),e("SidePanelItem",{staticClass:"pricePlanSelector__getNewPrepaid",attrs:{title:t.$t("price_plan_selector.get_new_prepaid")},on:{edit:t.selectedPrepaid}}),e("SidePanelItem",{staticClass:"pricePlanSelector__getNewDataOnly",attrs:{title:t.$t("price_plan_selector.get_new_data_only")},on:{edit:t.selectedDataOnly}})],1)])},[],!1,null,null,null).exports,S=i(88214),M=i(78906),A=i(21395),k=i(54926);let I=(0,a.tZ)("AddSimCardSpc"),x=class extends k.A{constructor(t,e){super(),this.alreadyAddedMsisdnsRetrievalFn=t,this.$t=e}getMessage(){return this.$t("add_sim_card.number_is_already_added")}async validate(t){return!t||!this.alreadyAddedMsisdnsRetrievalFn().includes(t)}};class N extends d.lD{created(){this.$validator.extend("noAlreadyAddedMsisdn",new x(()=>this.alreadyAddedMsisdns,this.$t.bind(this)).asRule())}mounted(){this.mobileSubscriptionProduct??=this.defaultProduct}setValuesFromValue(t){if(!t){this.numberState=null,this.msisdn="",this.simType=null,this.mobileSubscriptionProduct=null;return}this.numberState=t.mnpDetails?"keep":"new",this.msisdn=t.mnpDetails?.msisdn||"",this.simType=t.simType,this.mobileSubscriptionProduct=t.product||null}get isDirty(){if(!this.value)return!!this.numberState||!!this.simType||!!this.mobileSubscriptionProduct;let t={...this.value},e={...this.newValue};return this.mayChooseSimType||(delete t.simType,delete e.simType),!(0,A.c2)(t,e)}get alreadyViking(){return!!this.errors.collect("donorMsisdn",null,!1).find(t=>"donorMsisdn"===t.rule)}get submitButtonText(){return this.isDirty?this.$t("add_sim_card.submit").toString():this.$t("close").toString()}get pricePlanLabel(){return this.mobileSubscriptionProduct?(0,n.$o)(this.mobileSubscriptionProduct)?{title:this.mobileSubscriptionProduct.title}:{title:(0,n.hX)(this.mobileSubscriptionProduct)?this.mobileSubscriptionProduct.title:(0,r._c)(this.mobileSubscriptionProduct.definitions.bundles.data||0,this.$t.bind(this),"long_no_unit"),description:`${(0,l.up)(this.mobileSubscriptionProduct.monthly,"two_if_significant")} / ${this.$t("month")}`}:{title:this.$t("add_sim_card.select_price_plan__sidePanelItem_label")}}async dismiss(){(!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$emit("dismiss")}async submit(){if(!this.isDirty)return void this.$emit("dismiss");if(!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20);return}this.mobileSubscriptionProduct?((0,M.bp)(this.newValue.simType,"Should have been caught by veevalidate"),this.$emit("input",this.newValue),this.$emit("dismiss")):this.notify.error("add_sim_card.please_select_a_price_plan")}get newValue(){return{product:this.mobileSubscriptionProduct,mnpDetails:"keep"===this.numberState?{operator:{name:""},msisdn:this.msisdn,requestType:"private_postpaid",iccid:"",accountNumber:""}:void 0,simType:this.mayChooseSimType?this.simType||void 0:"physical"}}get mayChooseSimType(){return!!this.config.featureFlags.allowEsim}async startLogin(){try{await this.authService.requireLogin(),this.$emit("dismiss")}catch(t){if(o.Ay.of(t).code===o.O4.LOGIN_ABORTED)return;I.error("Unable to log in",t),this.notifyGenericErrors(t)}}onSimTypeClicked(t,e,i){this.trackingService.trackBroadbandSimTypeChoice(t,e,i)}constructor(...t){super(...t),this.numberState=null,this.msisdn="",this.simType=null,this.mobileSubscriptionProduct=null}}(0,s.Cg)([(0,d.oS)()],N.prototype,"steps",void 0),(0,s.Cg)([(0,d.kv)({default:null})],N.prototype,"value",void 0),(0,s.Cg)([(0,d.kv)({required:!0})],N.prototype,"alreadyAddedMsisdns",void 0),(0,s.Cg)([(0,d.kv)({default:null})],N.prototype,"defaultProduct",void 0),(0,s.Cg)([(0,d.y_)()],N.prototype,"config",void 0),(0,s.Cg)([(0,d.y_)()],N.prototype,"session",void 0),(0,s.Cg)([(0,d.y_)()],N.prototype,"confirm",void 0),(0,s.Cg)([(0,d.y_)()],N.prototype,"domUtils",void 0),(0,s.Cg)([(0,d.y_)()],N.prototype,"authService",void 0),(0,s.Cg)([(0,d.y_)()],N.prototype,"trackingService",void 0),(0,s.Cg)([(0,d.ox)("value",{immediate:!0})],N.prototype,"setValuesFromValue",null);var T=N=(0,s.Cg)([(0,d.uA)({components:{PricePlanSelectorSidePanelContent:w,MvForm:p.A,Steps:v.A,Step:g.A,Field:u.A,RadioGroup:_.A,MsisdnInput
25:h.A,CallToAction:c.A,SimTypeSelector:S.A,SidePanelItem:m.A}})],N),D=(0,C.A)(T,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"addSimCard",attrs:{name:"addSimCard"}},[e("Steps",{ref:"steps"},[e("Step",{attrs:{id:"overview_step",stepName:"overview"}},[e("header",[e("h2",[t._v(t._s(t.$t("add_sim_card.overview_title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("div",{staticClass:"option-group"},[e("Field",{attrs:{label:t.$t("add_sim_card.number_state_label")}},[e("RadioGroup",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],staticClass:"number-state-options",attrs:{required:"",options:["new","keep"],name:"numberState"},scopedSlots:t._u([{key:"default",fn:function({option:e}){return[t._v(" "+t._s(t.$t(`add_sim_card.number_state_option__${e}`))+" ")]}}]),model:{value:t.numberState,callback:function(e){t.numberState=e},expression:"numberState"}})],1)],1),"keep"===t.numberState?e("div",{staticClass:"option-group"},[e("Field",{class:{validMsisdn:t.msisdn&&!t.alreadyViking},attrs:{label:t.$t("add_sim_card.number_to_transfer")}},[e("MsisdnInput",{directives:[{name:"validate",rawName:"v-validate",value:"noAlreadyAddedMsisdn|donorMsisdn|required",expression:"'noAlreadyAddedMsisdn|donorMsisdn|required'"}],attrs:{name:"donorMsisdn",required:""},model:{value:t.msisdn,callback:function(e){t.msisdn=e},expression:"msisdn"}}),t.alreadyViking?e("span",{staticClass:"validation-message"},[t.session.authenticated?[t._v(" "+t._s(t.$t("add_sim_card.number_is_already_viking"))+" ")]:[t._v(" "+t._s(t.$t("add_sim_card.is_this_your_mobile_vikings_number"))+" "),e("a",{attrs:{href:""},on:{click:function(e){return e.preventDefault(),t.startLogin()}}},[t._v(t._s(t.$t("login.title")))]),t._v(". ")]],2):t._e()],1)],1):t._e(),e("div",{staticClass:"option-group"},[e("div",{staticClass:"fakeLabel fakeLabel--required"},[t._v(" "+t._s(t.$t("rate_plan"))+" ")]),e("SidePanelItem",{staticClass:"select-price-plan",attrs:{id:"select_price_plan",appearance:"boxed",title:t.pricePlanLabel.title,value:t.pricePlanLabel.description},on:{edit:function(e){return t.steps.pushStep("pricePlan")}}})],1),t.mayChooseSimType?e("div",{staticClass:"option-group"},[e("Field",{attrs:{label:t.$t("add_sim_card.sim_type_label")}},[e("SimTypeSelector",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],staticClass:"sim-type-selection",attrs:{isMnp:"keep"===t.numberState,required:""},on:{simTypeClicked:t.onSimTypeClicked},model:{value:t.simType,callback:function(e){t.simType=e},expression:"simType"}})],1)],1):t._e()]),e("footer",[e("CallToAction",{staticClass:"addSimCard__emitSimCardInformation",attrs:{once:t.submit,type:"submit"}},[t._v(" "+t._s(t.submitButtonText)+" ")])],1)]),e("Step",{attrs:{id:"price_plan_step",stepName:"pricePlan"}},[e("header",[e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"back",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.steps.popStep()}}},[e("span",[t._v(t._s(t.$t("back")))])]),e("h2",[t._v(t._s(t.$t("add_sim_card.choose_price_plan")))])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("PricePlanSelectorSidePanelContent",{on:{input:function(e){return t.steps.popStep()}},model:{value:t.mobileSubscriptionProduct,callback:function(e){t.mobileSubscriptionProduct=e},expression:"mobileSubscriptionProduct"}})],1)])],1)],1)},[],!1,null,"607395b8",null).exports},49663:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return p}});var s=i(32198),a=i(58294),n=i(67953),o=i(12288),r=i(20174),l=i(85856);let d=(0,a.tZ)("FaqItemSpc");class c extends n.lD{async mounted(){if(this.id){this.loading=!0;try{this.article=await this.heimClient.getFaqItem(Number(this.id))}catch(t){d.error(`Failed to fetch faqItem with id ${this.id}`,t)}finally{this.loading=!1}}}
25get supportQueryUrl(){return this.searchQuery?`/${this.locale}/search?query=${this.searchQuery}`:`/${this.locale}/support`}dismiss(){delete this.$route.query.id,delete this.$route.query.searchQuery,this.$emit("dismiss")}constructor(...t){super(...t),this.article=null,this.loading=!1}}(0,s.Cg)([(0,n.y_)()],c.prototype,"heimClient",void 0),(0,s.Cg)([(0,n.kv)({default:null})],c.prototype,"id",void 0),(0,s.Cg)([(0,n.kv)({default:null})],c.prototype,"searchQuery",void 0);var u=c=(0,s.Cg)([(0,n.uA)({components:{SidePanelError:l.default,FaqItemBody:o.A,Loading:r.A}})],c),p=(0,i(41618).A)(u,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"faqArticleSpc"},[e("header",[e("h2",[t._v(t._s(t.article?t.article.title:""))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("div",{staticClass:"option-group"},[t.loading?e("Loading",{attrs:{size:"narrow"}}):t.article&&t.article.content?[e("FaqItemBody",{attrs:{faqItem:t.article}})]:e("SidePanelError",{staticClass:"faqArticleSpc__noArticle",attrs:{title:t.$t("faq_item_spc.article_not_found"),description:t.$t("faq_item_spc.article_not_found_go_to_{url}",{url:t.supportQueryUrl})}})],2)])])},[],!1,null,null,null).exports},13898:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(67953),n=i(37223);class o extends a.lD{get spcTitle(){return this.title??this.$t("faq_section_spc.title").toString()}dismiss(){this.$emit("dismiss")}}(0,s.Cg)([(0,a.kv)({required:!1})],o.prototype,"title",void 0),(0,s.Cg)([(0,a.kv)({required:!0})],o.prototype,"category",void 0),(0,s.Cg)([(0,a.kv)()],o.prototype,"description",void 0);var r=o=(0,s.Cg)([(0,a.uA)({components:{FaqItems:n.default}})],o),l=(0,i(41618).A)(r,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"faqSectionSpc"},[e("header",[e("h2",[t._v(t._s(t.spcTitle))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main",class:{noPaddingTop:!t.description},attrs:{"data-qa":"faq-section-spc-main"}},[t.description?e("div",{staticClass:"option-group end-section"},[e("p",{staticClass:"option-group__description intro"},[t._v(t._s(t.description))])]):t._e(),e("FaqItems",{staticClass:"end-section",attrs:{category:t.category,inSidePanel:!0}})],1)])},[],!1,null,null,null).exports},52887:function(t,e,i){"use strict";i.d(e,{A:function(){return y}});var s=i(32198),a=i(58294),n=i(8921),o=i(67953),r=i(99168),l=i(26790),d=i(83301);class c extends o.lD{get styleLevelClass(){return(0,d.yu)(this.styleLevel)}get title(){return"upload"===this.uploadOrDownload?this.$t("line_speed_card.title_upload").toString():this.$t("line_speed_card.title_download").toString()}get volumeLabel(){return"upload"===this.uploadOrDownload?this.$t("line_speed_card.uploadvolume").toString():this.$t("line_speed_card.downloadvolume").toString()}get showProgressBar(){return this.minSpeed!==this.maxSpeed}}(0,s.Cg)([(0,o.kv)({type:Number,required:!0})],c.prototype,"advertisedSpeed",void 0),(0,s.Cg)([(0,o.kv)({type:Number,required:!0})],c.prototype,"minSpeed",void 0),(0,s.Cg)([(0,o.kv)({type:Number,required:!0})],c.prototype,"maxSpeed",void 0),(0,s.Cg)([(0,o.kv)({default:null})],c.prototype,"actualSpeed",void 0),(0,s.Cg)([(0,o.kv)({type:String,required:!0})],c.prototype,"uploadOrDownload",void 0),(0,s.Cg)([(0,o.kv)({type:Number,required:!1,default:2})],c.prototype,"styleLevel",void 0);var u=c=(0,s.Cg)([(0,o.uA)({components:{Heading:r.A,ProgressBar:l.A}})],c),p=i(41618),h=(0,p.A)(u,function(){var t=this._self._c;return this._self._setupProxy,t("div",{class:["lineSpeedCard",this.styleLevelClass]},[t("Heading",{staticClass:"lineSpeedCard__title",attrs:{tagType:"h3"}},[this._v(this._s(this.title))]),t("div",{staticClass:"lineSpeedCard__body lineSpeedCardBody"},[t("div",{staticClass:"lineSpeedCardBody__actualSpeedTitle"},[this._v(" "+this._s(this.$t("line_speed_card.expected_speed"))+" ")]),this.actualSpeed?t("div",{staticClass:"lineSpeedCardBody__actualSpeed"},[this._v(" "+this._s(`${this.actualSpeed} M`)),t("span",{staticClass:"lineSpeedCardBody__actualSpeed lineSpeedCardBody__actualSpeed--speedPrefix"},[this._v("bps")])]):t("div",{staticClass:"lineSpeedCardBody__actualSpeedDisclaimer"},[this._v(" "+this._s(this.$t("line_speed_card.actual_speed_disclaimer"))+" ")]),t("ul",{staticClass:"lineSpeedCardBody__speeds lineSpeedCardBodySpeeds"},[t("li",{staticClass:"lineSpeedCardBodySpeeds__speedItem"},[t("span",{staticClass:"lineSpeedCardBodySpeeds__speedItemName lineSpeedCardBodySpeeds__speedItemName--minimum"},[this._v(" "+this._s(this.$t("line_speed_card.minimum_speed"))+" ")]),t("span",{staticClass:"lineSpeedCardBodySpeeds__speedItemSpeed"},[this._v(this._s(`${this.minSpeed} Mbps`))]),this.showProgressBar?t("ProgressBar",{staticClass:"lineSpeedCardBodySpeeds__progressBar nextStyleLevel",attrs:{startAnimation:!0,speed:"2s",actualValue:this.minSpeed,maxValue:this.advertisedSpeed}}):this._e()],1),t("li",{staticClass:"lineSpeedCardBodySpeeds__speedItem"},[t("span",{staticClass:"lineSpeedCardBodySpeeds__speedItemName"},[this._v(" "+this._s(this.$t("line_speed_card.maximum_guaranteed_speed"))+" ")]),t("span",{staticClass:"lineSpeedCardBodySpeeds__speedItemSpeed"},[this._v(this._s(`${this.maxSpeed} Mbps`))]),this.showProgressBar?t("ProgressBar",{staticClass:"lineSpeedCardBodySpeeds__progressBar nextStyleLevel",attrs:{startAnimation:!0,speed:"2s",actualValue:this.maxSpeed,maxValue:this.advertisedSpeed}}):this._e()],1),t("li",{staticClass:"lineSpeedCardBodySpeeds__speedItem"},[t("span",{staticClass:"lineSpeedCardBodySpeeds__speedItemName lineSpeedCardBodySpeeds__speedItemName--advertised"},[this._v(" "+this._s(this.$t("line_speed_card.advertised_speed"))+" ")]),t("span",{staticClass:"lineSpeedCardBodySpeeds__speedItemSpeed"},[this._v(this._s(`${this.advertisedSpeed} Mbps`))])])]),t("hr",{staticClass:"lineSpeedCardBody__hr"}),t("div",{staticClass:"lineSpeedCardItem"},[t("span",{staticClass:"lineSpeedCardItem__label"},[this._v(this._s(this.volumeLabel))]),t("span",{staticClass:"lineSpeedCardItem__value"},[this._v(this._s(this.$t("line_speed_card.unlimited")))])])])],1
25)},[],!1,null,"e492ed76",null).exports,_=i(20174),m=i(85856);let g=(0,a.tZ)("LineSpeedSpc");class v extends o.lD{mounted(){this.trackingService.lineSpeedSpcOpened()}async getSubscriptionLineSpeed(){let t=this.session.broadbandSubscriptions?.find(t=>t.id===this.subscriptionId);if(t)try{this.loading=!0,this.lineSpeed=await this.broadbandService.getSubscriptionLineSpeed(t),this.selectedProduct=t.product}catch(t){if([n.O4.POLL_TIMEOUT,n.O4.WIP_UNAVAILABLE_FOR_LINE_SPEED_CHECK].includes(n.Ay.of(t).code))return;g.error("Failed to get subscription line speed",t),this.notifyGenericErrors(t)}finally{this.loading=!1}}async getAddressLocationInfo(){if(this.productId&&this.address)try{this.loading=!0;let t=await this.broadbandService.getAddressLocationInfo(this.address);this.selectedProduct=t.products?.find(t=>t.id===this.productId)||null,this.lineSpeed=this.selectedProduct?.lineSpeed||null}catch(t){g.error("Failed to get line speed via address location info",t),this.notifyGenericErrors(t)}finally{this.loading=!1}}dismiss(){delete this.$route.query.subscriptionId,delete this.$route.query.productId,this.$emit("dismiss")}constructor(...t){super(...t),this.loading=!1,this.selectedProduct=null,this.lineSpeed=null}}(0,s.Cg)([(0,o.y_)()],v.prototype,"session",void 0),(0,s.Cg)([(0,o.y_)()],v.prototype,"broadbandService",void 0),(0,s.Cg)([(0,o.y_)()],v.prototype,"trackingService",void 0),(0,s.Cg)([(0,o.kv)({default:null})],v.prototype,"subscriptionId",void 0),(0,s.Cg)([(0,o.kv)({default:null})],v.prototype,"productId",void 0),(0,s.Cg)([(0,o.kv)({default:null})],v.prototype,"address",void 0),(0,s.Cg)([(0,o.ox)("subscriptionId",{immediate:!0})],v.prototype,"getSubscriptionLineSpeed",null),(0,s.Cg)([(0,o.ox)("productId",{immediate:!0})],v.prototype,"getAddressLocationInfo",null);var f=v=(0,s.Cg)([(0,o.uA)({components:{SidePanelError:m.default,LineSpeedCard:h,Loading:_.A}})],v),y=(0,p.A)(f,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"lineSpeedSpc"},[e("header",[e("h2",[t._v(t._s(t.$t("line_speed_spc.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},[t.loading?e("Loading",{staticClass:"line-speed-loading",attrs:{message:t.$t("line_speed_spc.loading_messages"),cycleInterval:1e4}}):t.selectedProduct&&t.lineSpeed?[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("line_speed_check.available_speeds_clarification_description"),expression:"$t('line_speed_check.available_speeds_clarification_description')"}],staticClass:"option-group end-section ExternalContent"}),e("div",{staticClass:"option-group"},[e("LineSpeedCard",{attrs:{uploadOrDownload:"download",title:t.$t("line_speed_spc.download_speed"),minSpeed:t.lineSpeed.minDownloadSpeed,maxSpeed:t.lineSpeed.maxDownloadSpeed,advertisedSpeed:t.lineSpeed.advertisedDownloadSpeed,actualSpeed:t.lineSpeed.actualDownloadSpeed}}),e("LineSpeedCard",{attrs:{uploadOrDownload:"upload",title:t.$t("line_speed_spc.upload_speed"),minSpeed:t.lineSpeed.minUploadSpeed,maxSpeed:t.lineSpeed.maxUploadSpeed,advertisedSpeed:t.lineSpeed.advertisedUploadSpeed,actualSpeed:t.lineSpeed.actualUploadSpeed}})],1)]:e("SidePanelError",{staticClass:"line-speed-error",attrs:{notificationType:"error",title:t.$t("line_speed_spc.technical_error_title"),description:t.$t("line_speed_spc.technical_error"),appearance:"inSidePanel"}})],2)])},[],!1,null,null,null).exports},27114:function(t,e,i){"use strict";i.d(e,{A:function(){return u}});var s=i(32198),a=i(7258),n=i(62765),o=i(50870),r=i(67953),l=i(20174);class d extends r.lD{get selection(){return this.value}set selection(t){this.$emit("input",t)}get options(){return(0,o.n)(a.Y).map(t=>({value:t,label:(0,n.up)(t,"two_if_significant")})).concat({value:1/0,label:this.$t("oob_allowance_selector.cover_all_costs").toString()})}}(0,s.Cg)([(0,r.kv)({required:!0})],d.prototype,"value",void 0),(0,s.Cg)([(0,r.kv)({default:!1})],d.prototype,"loading",void 0),(0,s.Cg)([(0,r.kv)({required:!0})],d.prototype,"name",void 0),(0,s.Cg)([(0,r.kv)({default:!1})],d.prototype,"readonly",void 0);var c=d=(0,s.Cg)([(0,r.uA)({components:{Loading:l.A}})],d),u=(0,i(41618).A)(c,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",[t.loading?e("Loading"):t._e(),t._v(" "+t._s()+" "),e("select",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:"!loading"},{name:"model",rawName:"v-model",value:t.selection,expression:"selection"}],staticClass:"oobAllowanceSelector",attrs:{name:t.name,required:"",disabled:!0===t.readonly},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selection=e.target.multiple?i:i[0]}}},t._l(t.options,function(i){return e("option",{key:i.value,domProps:{value:i.value}},[t._v(" "+t._s(i.label)+" ")])}),0)],1)},[],!1,null,null,null).exports}
25,67415:function(t,e,i){"use strict";i.d(e,{A:function(){return d}});var s=i(32198),a=i(67953),n=i(24176),o=i(20174);class r extends a.lD{async created(){this.countriesEligibleForGDP=await this.globalDataPassService.getAllCountries()}async dismiss(){this.$emit("dismiss")}constructor(...t){super(...t),this.countriesEligibleForGDP=null}}(0,s.Cg)([(0,a.y_)()],r.prototype,"globalDataPassService",void 0);var l=r=(0,s.Cg)([(0,a.uA)({components:{Loading:o.A,CallToAction:n.A}})],r),d=(0,i(41618).A)(l,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"roaming-country-list-spc RoamingCountryListSpc"},[e("header",[e("h2",[t._v(t._s(t.$t("roaming_country_spc.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("p",[t._v(t._s(t.$t("roaming_country_spc.description")))]),t.countriesEligibleForGDP?e("ul",{staticClass:"eligible-countries RoamingCountryListSpc__list"},t._l(t.countriesEligibleForGDP,function(i){return e("li",{key:i.code,staticClass:"countryOption",class:[`countryOption--${i.code}`]},[t._v(" "+t._s(i.name)+" ")])}),0):e("Loading",{attrs:{size:"narrow"}})],1),e("footer",[e("CallToAction",{attrs:{once:t.dismiss}},[t._v(" "+t._s(t.$t("close"))+" ")])],1)])},[],!1,null,"45a9a6b7",null).exports},84776:function(t,e,i){"use strict";i.d(e,{A:function(){return x}});var s=i(32198),a=i(76565),n=i(58294),o=i(90004),r=i(8921),l=i(67953),d=i(69965),c=i(33584),u=i(24176),p=i(58249),h=i(42123),_=i(49842),m=i(76573),g=i(99679),v=i(76370),f=i(95630),y=i(55056),b=i(50778),C=i(19339),w=i(54926),S=i(3231);let M=(0,n.tZ)("ClanSpc"),A=class extends w.A{constructor(t,e){super(),this.session=t,this.$t=e}getMessage(){return this.$t("clan_detail.no_self_invite")}async validate(t){return!this.session.mobileSubscription||this.session.mobileSubscription.msisdn!==t}};class k extends l.lD{async created(){this.$validator.extend("noSelfInvite",new A(this.session,this.$t.bind(this)).asRule());try{this.maxClanAdvantage=await this.clanService.getMaxClanAdvantage()}catch(t){M.error("Failed to get clan advantage tiers",t)}}async onSubscriptionChange(){let t=this.session.mobileSubscription;if(!t||!t.isOwner||"data-only"===t.specificSubscriptionType)return void this.$emit("dismiss");this.loading=!0;try{this.clan=await this.clanService.getClanForSubscription(t),this.trackingService.clanInviteOpened(this.clan),this.clan.isActive?this.ineligibleReason=null:this.ineligibleReason=await this.clanService.checkSubscriptionEligibility(t)}catch(t){M.error("Failed retrieving clan information",t),this.notifyGenericErrors(t),this.$emit("dismiss")}finally{this.loading=!1}}get canStartClan(){return!!this.session.mobileSubscription&&!this.ineligibleReason}get canInviteVikings(){return!!this.clan&&!this.ineligibleReason&&this.clan.existingVikingsAllowed}get canInviteNonVikingsToClan(){return!!this.clan&&!this.ineligibleReason&&this.clan.newVikingsAllowed}get showDownloadAppPromo(){return!!this.clan&&(this.canInviteVikings||this.canInviteNonVikingsToClan)}get panelTitle(){return this.clan&&this.clan.name?this.clan.name:this.$t("clan_detail.title").toString()}get panelIntro(){return this.clan?this.clan.isTrial?this.$t("clan_detail.trial_clan_intro_{advantage}",{advantage:this.describeAdvantage(this.clan.advantage)}).toString():this.canInviteVikings?this.$t("clan_detail.active_clan_intro_{advantage}_{next_advantage}",{advantage:this.describeAdvantage(this.clan.advantage),next_advantage:this.describeAdvantage(this.clan.advantageForNextLevel)}).toString():this.canInviteNonVikingsToClan?this.$t("clan_detail.active_clan_intro_if_can_invite_non_vikings_only_{advantage}_{next_advantage}",{advantage:this.describeAdvantage(this.clan.advantage),next_advantage:this.describeAdvantage(this.clan.advantageForNextLevel)}).toString():null:null}get notAbleToInviteReason(){if(!this.session.mobileSubscription||!this.ineligibleReason)return null;if(this.session.mobileSubscription.isCancelled)return this.$t("clan_detail.pending_termination").toString();switch(this.ineligibleReason){case"has_non_eligible_product":return this.$t("clan_detail.not_applicable_product").toString();case"left_too_recently":return this.$t("clan_detail.left_too_recently").toString();case"planned_migration_to_non_eligible_product":return this.$t("clan_detail.migrating_to_a_none_applicable_product").toString();case"subscription_not_active":return this.$t("clan_detail.subscription_not_active").toString();default:return M.error(`Unexpected eligibility reason: ${this.ineligibleReason}`),this.$t("clan_detail.cannot_invite_right_now").toString()}}get hasNoClan(){return!this.clan||!this.clan.isActive}get clanLink(){return this.clan?this.absoluteUrl(`${this.$t("clan_detail.url_clan_referral")}?clanReference=${this.clan.reference}`):""}get showMigrateButton(){return"has_non_eligible_product"===this.ineligibleReason&&!!this.session.mobileSubscription&&!this.session.mobileSubscription.isCancelled}getMemberAlias(t){return this.session.mobileSubscriptions&&t.subscription&&t.subscription.alias||t.firstName}getMemberMsisdn(t){return t.subscription&&t.subscription.msisdn||""}isYou(t){return!!t.subscription&&t.subscription.id===this.session.mobileSubscription.id}isPending(t){return"pending"===t.subscriptionState}daysToGo(t){let e=a.Duration.between(this.clock.now(),t);
25if(!e)return null;let i=e.toDays();return i<0?null:i}describeAdvantage(t){let e=/(\d+)GB/.exec(t);return e?this.$t("viking_clan_status.{amount}_gb_of_mobile_data",{amount:e[1]}):t}async invite(){if(!this.session.mobileSubscriptions||!this.session.mobileSubscription)return;if(!await this.$validator.validateAll())return void this.notify.error("still_errors_on_form");if(!this.msisdn)throw new o.p("Validator should have ensured that MSISDN is set");let t=(0,C.E)(this.msisdn);this.trackingService.clanInviteViking(this.clan);let e=this.session.mobileSubscriptions.find(e=>e.msisdn===t);if(e&&e.isOwner&&this.clan){let t=!e.product.isClanProduct,i=t?this.$t("clan_detail.invite_same_customer_with_migration_popup_body"):this.$t("clan_detail.invite_same_customer_popup_body");if(!await this.confirm(i,this.$t("clan_detail.invite_same_customer_popup_title"),this.$t("clan_detail.invite_same_customer_popup_go"),this.$t("clan_detail.invite_same_customer_popup_stay")))return;if(t){localStorage.setItem("clanReference",this.clan.reference),this.$router.push({name:S.A.migrate,params:{toType:"postpaid",subscriptionId:e.id}});return}}try{await this.clanService.inviteMsisdnToClan(this.session.mobileSubscription,this.msisdn),e&&e.isOwner?this.notify.success("clan_invite.invited_yourself_successfully"):this.notify.success("clan_invite.invited_successfully"),this.$emit("dismiss")}catch(e){let t=r.Ay.of(e).fieldCodes("subscription_id");t?t.includes(r.O4.SUBSCRIPTION_ALREADY_IS_MEMBER_OF_ANOTHER_CLAN)?this.notify.error("clan_invite.subscription_already_is_member_of_another_clan"):t.includes(r.O4.INCORRECT_SUBSCRIPTION_STATE_FOR_INVITE)?this.notify.error("clan_invite.incorrect_subscription_state_for_invite"):t.includes(r.O4.SUBSCRIPTION_CANNOT_BE_FOUND)&&this.notify.error("clan_invite.subscription_can_not_be_found"):(M.error("Failed to invite msisdn to clan",e),this.notify.error("clan_invite.invite_fail"),this.$emit("dismiss"))}}migrateRoute(){return this.session.mobileSubscription&&this.clan?{name:S.A.migrate,params:{toType:"postpaid",subscriptionId:this.session.mobileSubscription.id},query:{intent:"start_clan"}}:null}async leave(){try{if(!this.session.mobileSubscription||!this.session.profile)return;if(!await this.$validator.validateAll())return void this.notify.error("form_is_not_valid");await this.clanService.leaveClan(this.session.mobileSubscription,this.password),this.notify.success("clan_detail.leaving_successfully_notification"),this.$emit("dismiss")}catch(t){if(r.Ay.of(t).fieldCode("password")===r.O4.INVALID_VALUE){this.notify.error("form_is_not_valid"),this.uwaValidationErrors={password:["password_incorrect"]};return}M.error("Something went wrong when providing password to leave a clan",t),this.notifyGenericErrors(t)}}get steps(){return this.$refs.steps}startInvite(){this.steps.pushStep("invite-member"),this.uwaValidationErrors={},this.$validator.reset()}startLeavingClan(){this.password="",this.steps.pushStep("leave-clan"),this.uwaValidationErrors={},this.$validator.reset()}startRenameClan(){this.clan&&(this.steps.pushStep("rename-clan"),this.newName=this.clan.name||"",this.uwaValidationErrors={},this.$validator.reset())}async popRenameStep(){!this.saving&&(!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&(this.newName="",this.steps.popStep())}async rename(){if(this.clan){if(!await this.$validator.validateAll())return void this.notify.error("still_errors_on_form");try{this.saving=!0,await this.clanService.updateClanName(this.clan,this.newName),this.notify.success("clan_detail.clan_name_updated"),this.steps.popStep()}catch(t){M.error("Failed to update clan name"),this.notifyGenericErrors(t)}finally{this.saving=!1}}}async dismiss(){!this.saving&&(!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$emit("dismiss")}get isDirty(){return"rename-clan"===this.steps.activeStep&&this.newName!==this.clan.name}trackClanNotifications(t){"left_too_recently"===t&&this.trackingService.onErrorNotification("cannot_clan__left_too_recently",this.$t.bind(this))}constructor(...t){super(...t),this.uwaValidationErrors={},this.msisdn=null,this.clan=null,this.ineligibleReason=null,this.password="",this.newName="",this.saving=!1,this.loading=!1,this.maxClanAdvantage=null}}(0,s.Cg)([(0,l.y_)()],k.prototype,"session",void 0),(0,s.Cg)([(0,l.y_)()],k.prototype,"clanService",void 0),(0,s.Cg)([(0,l.y_)()],k.prototype,"config",void 0),(0,s.Cg)([(0,l.y_)()],k.prototype,"goTo",void 0),(0,s.Cg)([(0,l.y_)()],k.prototype,"absoluteUrl",void 0),(0,s.Cg)([(0,l.y_)()],k.prototype,"clock",void 0),(0,s.Cg)([(0,l.y_)()],k.prototype,"confirm",void 0),(0,s.Cg)([(0,l.y_)()],k.prototype,"trackingService",void 0),(0,s.Cg)([(0,l.y_)()],k.prototype,"stepupMode",void 0),(0,s.Cg)([(0,l.ox)("session.mobileSubscription.id",{immediate:!0})],k.prototype,"onSubscriptionChange",null),(0,s.Cg)([(0,l.ox)("ineligibleReason")],k.prototype,"trackClanNotifications",null);var I=k=(0,s.Cg)([(0,l.uA)({components:{InlineNotification:g.A,SidePanelItem:v.A,CallToAction:u.A,Steps:y.A,Step:f.A,MsisdnInput
25:_.A,Field:p.A,Tag:b.A,Password:m.A,MvForm:h.A,AppStoreButtons:d.A,CopyField:c.A}})],k),x=(0,i(41618).A)(I,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"clan-details"},[e("Steps",{ref:"steps"},[e("Step",{attrs:{stepName:"initial"}},[e("header",[e("h2",[t._v(t._s(t.panelTitle))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main sidePanelContentMain",class:{"is-loading":t.loading}},[e("div",[t.clan&&t.clan.isActive?[t.panelIntro?e("p",{staticClass:"sidePanelIntro clan-intro"},[t._v(" "+t._s(t.panelIntro)+" ")]):t._e(),e("div",{staticClass:"option-group end-section"},[e("h3",{staticClass:"option-group-title"},[t._v(t._s(t.$t("clan_detail.members_title")))]),e("ul",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],staticClass:"clanMembers"},t._l(t.clan.members,function(i,s){return e("li",{key:s,staticClass:"clanMembers__member clanMemberInfo"},[e("div",{staticClass:"clanMemberInfo__info"},[e("strong",[t._v(t._s(t.getMemberAlias(i)))]),i.subscription?e("div",[t._v(t._s(t._f("msisdn")(t.getMemberMsisdn(i))))]):t._e()]),t.isYou(i)?e("Tag",{staticClass:"clanMemberInfo__flag you-flag",attrs:{size:"small"}},[t._v(" "+t._s(t.$t("clan_detail.you"))+" ")]):t._e(),t.isPending(i)?e("Tag",{staticClass:"clanMemberInfo__flag pending-flag",attrs:{size:"small",appearance:"marine"}},[t._v(" "+t._s(t.$t("clan_detail.pending"))+" ")]):t._e()],1)}),0)]),t.canInviteVikings?e("SidePanelItem",{staticClass:"inviteLink",attrs:{title:t.$t("clan_detail.add_a_new_viking_member")},on:{edit:function(e){return t.startInvite()}}}):t._e()]:t.hasNoClan&&t.canStartClan?e("div",{staticClass:"noClanYet end-section"},[e("div",{staticClass:"noClanYet__logo"}),e("h3",[t._v(t._s(t.$t("clan_detail.no_clan_yet_title")))]),e("p",[t._v(" "+t._s(t.$t("clan_detail.no_clan_yet_description_enjoy_up_to_{maxAdvantage}__html",{maxAdvantage:t.maxClanAdvantage}))+" ")]),e("a",{attrs:{href:""},on:{click:function(e){return e.preventDefault(),t.startInvite.apply(null,arguments)}}},[t._v(t._s(t.$t("clan_detail.add_a_new_viking_member")))])]):t.hasNoClan&&"left_too_recently"===t.ineligibleReason?e("div",{staticClass:"noClanYet end-section"},[e("div",{staticClass:"noClanYet__logo"}),e("h3",[t._v(t._s(t.$t("clan_detail.left_too_recently_title")))]),e("p",[t._v(" "+t._s(t.$t("clan_detail.left_too_recently_description"))+" ")]),e("p",[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("clan_detail.days_left_to_join_clan",{days:t.daysToGo(t.clan.joiningAllowedAgainFrom)}),expression:"\n $t('clan_detail.days_left_to_join_clan', { days: daysToGo(clan.joiningAllowedAgainFrom) })\n "}],staticClass:"daysLeftWithoutClan"})]),e("a",{attrs:{href:t.$t("clan_detail.left_too_recently_faq_url")}},[t._v(" "+t._s(t.$t("clan_detail.left_too_recently_faq_label"))+" ")])]):t.ineligibleReason?e("div",{staticClass:"clanError"},[e("InlineNotification",{staticClass:"error-banner",attrs:{notificationType:"error",appearance:"inSidePanel"}},[t._v(" "+t._s(t.$t("clan_detail.impossible_to_start_a_clan"))+" ")]),e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.notAbleToInviteReason,expression:"notAbleToInviteReason"}],staticClass:"clanError__reason"})],1):t._e(),t.clan&&t.canInviteNonVikingsToClan?e("div",{staticClass:"option-group end-section inviteSection",class:{noMarginTop:t.clan.isActive,noPaddingBottom:t.showDownloadAppPromo}},[e("h3",{staticClass:"option-group-title"},[t._v(t._s(t.$t("clan_detail.share_your_link_title")))]),t.canInviteVikings?e("p",{staticClass:"option-group__description inviteSection__intro"},[t._v(" "+t._s(t.$t("clan_detail.share_your_link_description"))+" ")]):t._e(),!t.canInviteVikings&&t.canInviteNonVikingsToClan?e("p",{staticClass:"option-group__description inviteSection__intro"},[t._v(" "+t._s(t.$t("clan_detail.share_your_link_description_if_can_invite_non_vikings_only"))+" ")]):t._e(),e("CopyField",{staticClass:"inviteSection__shareLink",attrs:{value:t.clanLink}}),e("a",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("clan_detail.faq_link"),expression:"$t('clan_detail.faq_link')"}],attrs:{href:t.$t("clan_detail.faq_link_url")}})],1):t._e(),t.showDownloadAppPromo?e("div",{staticClass:"option-group downloadAppSection"},[e("h3",{staticClass:"option-group-title"},[t._v(" "+t._s(t.$t("clan_detail.download_app_title"))+" ")]),e("p",{staticClass:"option-group__description"},[t._v(" "+t._s(t.$t("clan_detail.download_app_description"))+" ")]),e("div",{staticClass:"downloadAppSection__storeButtons"},[e("AppStoreButtons",{attrs:{appearance:"horizontallyCentered"}})],1),e("div",[e("img",{staticClass:"downloadAppSection__appImg",attrs:{src:`${t.config.vueRoot}
25/img/clanInviteApp/app-viking-clan-${t.$i18n.locale}.png`,srcset:` 26 ${t.config.vueRoot}/img/clanInviteApp/app-viking-clan-${t.$i18n.locale}@2x.png 2x, 27 ${t.config.vueRoot}/img/clanInviteApp/app-viking-clan-${t.$i18n.locale}@3x.png 3x`,alt:""}})])]):t._e()],2),t.clan&&t.clan.isActive?e("div",{staticClass:"sidePanelContentMain__mainBottom clanActions"},[e("h3",{staticClass:"clanActions__title"},[t._v(t._s(t.$t("clan_detail.actions_title")))]),e("ul",{staticClass:"sidepanelBottomActionsList"},[e("li",{staticClass:"changeClanName"},[e("a",{staticClass:"linkWithIcon linkWithIcon--iconEdit rename-clan",attrs:{href:"javascript:;"},on:{click:function(e){return e.preventDefault(),t.startRenameClan()}}},[t._v(" "+t._s(t.$t("clan_detail.change_clan_name"))+" ")])]),t.clan.isTrial?t._e():e("li",{staticClass:"leaveClan"},[e("a",{staticClass:"linkWithIcon linkWithIcon--iconTrash leave-clan",attrs:{href:"javascript:;"},on:{click:function(e){return e.preventDefault(),t.startLeavingClan()}}},[t._v(" "+t._s(t.$t("clan_detail.leave_clan"))+" ")])])])]):t._e()]),t.showMigrateButton?e("footer",[e("CallToAction",{staticClass:"migrate",attrs:{to:t.migrateRoute()}},[t._v(t._s(t.$t("clan_detail.help_switch_my_subscription")))])],1):t._e()]),e("Step",{attrs:{id:"invite_step",stepName:"invite-member"}},[e("MvForm",{attrs:{name:"clan-invite"}},[e("header",[e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"back",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.steps.popStep()}}},[e("span",[t._v(t._s(t.$t("back")))])]),e("h2",[t._v(t._s(t.$t("clan_detail.invite_member_title")))])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("p",{staticClass:"sidePanelIntro"},[t._v(t._s(t.$t("clan_detail.invite_member_description")))]),e("Field",{staticClass:"mnp-msisdn",attrs:{label:t.$t("clan_detail.number_to_invite")}},[e("MsisdnInput",{directives:[{name:"validate",rawName:"v-validate",value:"knownMsisdn|required|noSelfInvite",expression:"'knownMsisdn|required|noSelfInvite'"}],attrs:{name:"invitedMsisdn"},model:{value:t.msisdn,callback:function(e){t.msisdn=e},expression:"msisdn"}})],1),e("div",{staticClass:"option-group downloadAppSection"},[e("h3",{staticClass:"option-group-title"},[t._v(" "+t._s(t.$t("clan_detail.download_app_title"))+" ")]),e("p",{staticClass:"option-group__description"},[t._v(" "+t._s(t.$t("clan_detail.download_app_description"))+" ")]),e("div",{staticClass:"downloadAppSection__storeButtons"},[e("AppStoreButtons")],1),e("div",[e("img",{staticClass:"downloadAppSection__appImg",attrs:{src:`${t.config.vueRoot}/img/clanInviteApp/app-viking-clan-${t.$i18n.locale}.png`,srcset:` 28 ${t.config.vueRoot}/img/clanInviteApp/app-viking-clan-${t.$i18n.locale}@2x.png 2x, 29 ${t.config.vueRoot}/img/clanInviteApp/app-viking-clan-${t.$i18n.locale}@3x.png 3x`,alt:""}})])])],1),e("footer",[e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("clan_detail.invite_disclaimer"),expression:"$t('clan_detail.invite_disclaimer')"}],staticClass:"inviteDisclaimer"}),e("CallToAction",{staticClass:"confirm",attrs:{once:t.invite,type:"submit"}},[t._v(" "+t._s(t.$t("clan_detail.invite_button_label"))+" ")])],1)])],1),e("Step",{attrs:{id:"leave_clan_step",stepName:"leave-clan"}},[e("MvForm",{attrs:{name:"leave-clan"}},[e("header",[e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"back",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.steps.popStep()}}},[e("span",[t._v(t._s(t.$t("back")))])]),e("h2",[t._v(t._s(t.$t("clan_detail.leave_clan_title")))])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("div",{staticClass:"option-group"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("clan_detail.leave_clan_description"),expression:"$t('clan_detail.leave_clan_description')"}],staticClass:"option-group__description"},[t._v(" "+t._s(t.$t("clan_detail.leave_clan_password_intro"))+" ")])]),"password"===t.stepupMode?e("div",{staticClass:"option-group end-section"},[e("div",{staticClass:"option-group__description"},[t._v(" "+t._s(t.$t("clan_detail.leave_clan_password_intro"))+" ")]),e("Field",{attrs:{label:t.$t("clan_detail.password"),validationErrors:t.$tList(t.uwaValidationErrors.password,"validationError__")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],attrs:{required:"",autocomplete:"password",name:"password","data-vv-as":t.$t("clan_detail.password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}}
29)],1)],1):t._e()]),e("footer",[e("CallToAction",{staticClass:"confirm",attrs:{once:t.leave,type:"submit"}},[t._v(" "+t._s(t.$t("clan_detail.leave_clan_button_label"))+" ")])],1)])],1),e("Step",{attrs:{id:"rename_step",stepName:"rename-clan"}},[e("MvForm",{attrs:{name:"rename-clan"}},[e("header",[e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"back",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.popRenameStep()}}},[e("span",[t._v(t._s(t.$t("back")))])]),e("h2",[t._v(t._s(t.$t("clan_detail.rename_clan_title")))])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("clan_detail.rename_clan_description"),expression:"$t('clan_detail.rename_clan_description')"}],staticClass:"sidePanelIntro"}),e("div",{staticClass:"option-group"},[e("Field",{attrs:{label:t.$t("clan_detail.new_name")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.newName,expression:"newName"},{name:"validate",rawName:"v-validate",value:{required:!0,max:100},expression:"{ required: true, max: 100 }"}],attrs:{type:"text",required:"",name:"newName"},domProps:{value:t.newName},on:{input:function(e){e.target.composing||(t.newName=e.target.value)}}})])],1)]),e("footer",[e("CallToAction",{staticClass:"ClanSpc__submit-new-name confirm",attrs:{once:t.rename,type:"submit"}},[t._v(" "+t._s("password"===t.stepupMode?t.$t("clan_detail.rename_clan_button_label"):t.$t("clan_detail.rename_clan_button_label_with_step_up"))+" ")])],1)])],1)],1)],1)},[],!1,null,null,null).exports},70929:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return _}});var s=i(32198),a=i(58294),n=i(67953),o=i(42123),r=i(20174),l=i(60490),d=i(99679),c=i(3231);let u=(0,a.tZ)("resend-sim-legacy");class p extends n.lD{async created(){try{let t=await this.uwa.getOrder(this.orderId);if(!t||!t.subscriptionId)return void this.$router.replace({name:c.A.notFound});this.$router.replace({name:c.A.resendSim,params:{subscriptionId:t.subscriptionId}})}catch(t){u.error("Failed to load order for resend",t),this.goToError()}}constructor(...t){super(...t),this.pageError=null}}(0,s.Cg)([(0,n.kv)()],p.prototype,"orderId",void 0),(0,s.Cg)([(0,n.y_)()],p.prototype,"uwa",void 0),(0,s.Cg)([(0,n.y_)()],p.prototype,"goToError",void 0);var h=p=(0,s.Cg)([(0,n.uA)({components:{InlineNotification:d.A,Loading:r.A,MvForm:o.A,MyVikingFrameWizard:l.A}})],p),_=(0,i(41618).A)(h,function(){var t=this._self._c;return this._self._setupProxy,t("MyVikingFrameWizard",{staticClass:"dark-theme"},[t("MvForm",[this.pageError?this._e():t("Loading"),this.pageError?t("InlineNotification",{attrs:{notificationType:"error"}},[this._v(" "+this._s(this.pageError)+" ")]):this._e()],1)],1)},[],!1,null,null,null).exports},69301:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return E}});var s=i(32198),a=i(58294),n=i(90004),o=i(48692),r=i(71229),l=i(1122),d=i(8921),c=i(47352),u=i(57399),p=i(67953),h=i(49971),_=i(58249),m=i(42123),g=i(62447),v=i(49842),f=i(79847),y=i(20174),b=i(60490),C=i(99679),w=i(10231),S=i(66090),M=i(47619),A=i(78906),k=i(20020),I=i(76690),x=i(74608),N=i(1968),T=i(58209),D=i(3231);let $=(0,a.tZ)("ActivationConfirm");class P extends p.lD{async created(){try{if(!this.session.profile)return;$.info(`ID verification state= ${JSON.stringify(this.session.profile.identity)}`);let t=await this.subscriptionService.getActivatableOrder(this.iccid);this.activatableOrder=t,$.info(`Order we want to activate: ${JSON.stringify(this.activatableOrder)}`),this.orderHasMnp&&t&&(this.operators=await this.operatorService.getOperators(),this.setMnpFormData(t)),t?.subscriptionId&&this.switchToAppropriateSessionSubscription(t.subscriptionId),this.trackActivationEvent("activation_form_load")}catch(t){$.error(`Problem initializing the activation confirm step; iccid = "${this.iccid}"`,t)}finally{this.loading=!1}}setMnpFormData(t){(0,r.$P)(t)&&t.donor&&(this.formData={...T.C,...t.donor},"prepaid"!==this.formData.requestType&&(this.formData.requestType=""),"prepaid"===this.formData.requestType&&(this.formData.verificationOption="iccid"))}switchToAppropriateSessionSubscription(t){if(!this.session.mobileSubscriptions)throw Error("No subscriptions in session");let e=this.session.mobileSubscriptions.find(e=>e.id===t);e&&(this.session.subscriptionId=e.id)}get product(){return this.session.mobileSubscription?this.session.mobileSubscription.product:null}get isPrepaid(){return!!this.product&&(0,l.$o)(this.product)}get isPostpaid(){return!!this.product&&!(0,l.$o)(this.product)}get operator(){return this.activatableOrder&&(0,r.$P)(this.activatableOrder)&&this.formData&&this.operators.find(t=>t.name===this.formData.operator.name)||null}set operator(t){this.activatableOrder&&(0,r.$P)(this.activatableOrder)&&this.activatableOrder.donor&&(this.formData.operator=t||{name:""})}get operatorName(){return this.formData.operator.name&&this.formData.operator.name.length>0?this.formData.operator.name:`${this.$t("your_operator")}`}get orderCanBeActivated(){return!!this.activatableOrder}get orderHasMnp(){return!!this.activatableOrder&&!!(0,r.$P)(this.activatableOrder)&&!!this.activatableOrder.donor}get mnpRequiresAccountNumber(){return!!this.activatableOrder&&!!(0,r.$P)(this.activatableOrder)&&(0,o.eG)(this.formData)}get mnpRequiresIccid(){return!!this.activatableOrder&&!!(0,r.$P)(this.activatableOrder)&&(0,o.NC)(this.formData)&&"prepaid"===this.formData.requestType}get accountNumberIsRequired(){return"business_postpaid"===this.formData.requestType||"account"===this.formData.verificationOption}get iccidIsRequired(){return"prepaid"===this.formData.requestType||"iccid"===this.formData.verificationOption}get isInIdentificationState(){return!!this.activatableOrder&&(0,r.wg)(this.activatableOrder)&&"wait_for_identification"===this.activatableOrder.state}get userMayIdentifyBySomeMeans(){if(!this.isInIdentificationState)return!1;let t=(0,r.kJ)((0,A.bp)(this.activatableOrder));return!!t.allowedIdentificationMethods&&t.allowedIdentificationMethods.length>0}get confirmButtonLabel(){return"upfront"===this.idMethod||"topup"===this.idMethod?this.isSimTransfer?this.$t("activation_confirm.pay_and_transfer_sim"):this.$t("activation_confirm.pay_and_activate_sim"):this.isSimTransfer?this.$t("activation_confirm.transfer_sim"):this.$t("activation_confirm.activate_sim")}get requestType(){return this.formData.requestType}set requestType(t){let e={prepaid:"iccid",business_postpaid:"account",private_postpaid:this.formData.verificationOption};this.formData.verificationOption=e[t]||"",this.formData.requestType=t}onIdMethodChange(){if(this.idMethod){let t=this.activatableOrder&&(0,r.wg)(this.activatableOrder)?this.activatableOrder:void 0;this.trackingService.updateIdentification({event:"sim_activation-identification-select",component:"ActivationConfirm",result:this.idMethod,topupProduct:t?t.topup:void 0,postpaidProduct:this.isPostpaid&&t?t.product:void 0,orderId:this.activatableOrder?.id})}this.$emit("idMethodChange",this.idMethod)}async updateMnp(t,e){try{if(!t)throw new n.p("Cannot update mnp: no order found to activate");if(!(0,r.$P)(t))return void $.debug("Order is no creation. Not updating MNP");if(!t.donor)return void $.debug("Order has no donor. Not updating MNP");$.info(`Updating mnp ${JSON.stringify(e)}`);let i=(0,T.j)(e);await this.orderService.updateMnp(t,i),this.trackActivationEvent("activation_mnp_success")}catch(t){throw $.debug(`Failed sim activation during MNP update: ${t}`),this.trackActivationEvent("activation_mnp_error"),t}}async confirmCancelMnp(){await this.confirm(this.$t("activation_confirmDeleteMnp_question").toString(),this.$t("activation_confirmDeleteMnp_title").toString(),this.$t("activation_confirmDeleteMnp_cta_confirm").toString(),this.$t("activation_confirmDeleteMnp_cta_cancel").toString())&&await this.cancelMnp()}async cancelMnp(){try{if(!this.activatableOrder||!(0,r.$P)(this.activatableOrder)||!this.activatableOrder.donor)throw new n.p("Cannot cancel MNP that doesn't exist");if(!await this.confirm(this.$t("cancel_mnp_warning.cancel_mnp_of_{number}_is_irreversible_you_will_get_a_new_number_with_{product}",{number:(0,u.i)(this.activatableOrder.donor.msisdn),product:this.activatableOrder.product?.title}),void 0,this.$t("cancel_mnp_warning.activate_new_number")))return;await this.orderService.updateMnp(this.activatableOrder,null),this.activatableOrder.donor=void 0,this.trackActivationEvent("activation_cancel_requested_mnp")}catch(t){throw $.debug(`Failed to cancel MNP: ${t.message}`),t}}async waitUntilActivatable(){if(this.activatableOrder&&(this.activatableOrder=await this.subscriptionService.waitForNextActivatableState(this.activatableOrder),"wait_for_identification"===this.activatableOrder.state))throw new d.Ay(d.O4.NO_IDENTITY_VERIFICATION,"user is not identified yet")}async submit(){if($.info("Submitting"),this.activatableOrder){if(this.uwaValidationErrors={},!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.scrollToFirstInvalid();return}try{if(await this.updateMnp(this.activatableOrder,this.formData),"wait_for_mnp_details"===this.activatableOrder.state&&await this.waitUntilActivatable(),this.idMethod){let t=["upfront","topup"].includes(this.idMethod)?this.paymentMethod?.toString():this.idMethod,e=this.activatableOrder&&(0,r.wg)(this.activatableOrder)?this.activatableOrder:void 0;this.trackingService.updateIdentification({event:"sim_activation-identification-confirm",component:"ActivationConfirm",result:t,topupProduct:e?e.topup:void 0,postpaidProduct:this.isPostpaid&&e?e.product:void 0,orderId:this.activatableOrder?.id})}await this.userIdentification.identifyUser()}catch(i){let t=d.Ay.of(i),e=(0,k.v)(t,[{code:d.O4.MSISDN_ALREADY_IN_USE,on:"msisdn",message:"this_donor_is_already_a_viking"},{code:d.O4.INVALID_MNP_ICCID_ALREADY_OWNED,on:"iccid",message:this.$t("activation.used_your_new_iccid__use_old_iccid_instead").toString()}]);if(this.uwaValidationErrors=e.result,e.firstIssue){this.notify.error("form_is_not_valid"),this.scrollToFirstInvalid();return}if(t.code===d.O4.NO_IDENTITY_VERIFICATION){$.debug("user still needs to identifiy"),this.notify.info("activation.we_could_not_verify_your_identity_please_fill_the_form"),this.domUtils.scrollToFirst(".i
29dentity-verification",20);return}$.error("Failed to update MNP or identify user",i),this.notifyGenericErrors(i)}}}async doActivate({order:t,paidUpfront:e}){this.activatableOrder=t;try{this.activating=!0,await this.waitUntilActivatable(),$.info(`Activating SIM ${this.iccid}`),await this.subscriptionService.activateSim(this.iccid),await this.authService.refreshSession(),this.activatableOrder?(this.orderService.onOrderComplete(this.activatableOrder,()=>this.authService.refreshSession().catch(t=>$.error("Failed to refresh session on order complete",t))),this.trackActivationEvent("activation_success"),this.$router.push({name:D.A.activationDone,query:(0,c.Bb)({order_id:this.activatableOrder.id,paid_upfront:e?"true":void 0,mode:this.isSimTransfer?"transfer":void 0})})):$.error("Somehow we have just successfully activated a sim without an order that could be activated"),this.activating=!1}catch(i){this.activating=!1;let t=d.Ay.of(i);t.code===d.O4.SIM_ALREADY_ACTIVE?($.debug(`SIM already activated ${JSON.stringify(i)}`),this.notify.success("sim_already_active"),this.$router.push({name:D.A.activationDone,query:(0,c.Bb)({order_id:this.activatableOrder.id,paid_upfront:e?"true":void 0,mode:this.isSimTransfer?"transfer":void 0})})):t.code===d.O4.NO_IDENTITY_VERIFICATION?($.debug("user still needs to identifiy"),this.notify.info("activation.we_could_not_verify_your_identity_please_fill_the_form"),this.domUtils.scrollToFirst(".identity-verification",20)):t.code===d.O4.SIM_NOT_IN_CORRECT_STATE_FOR_ACTIVATION?($.error("SIM not in correct state to activate"),this.notify.error("sim_not_in_correct_state_for_activation"),this.activatableOrder=await this.orderService.refreshOrder((0,A.bp)(this.activatableOrder))):t.code===d.O4.NOT_ALLOWED_BECAUSE_DUNNING?this.notify.error("activation.cannot_activate_due_to_unpaid_invoices"):d.Ay.of(i).code===d.O4.TRANSFER_NOT_ALLOWED_WITH_OPEN_INVOICES?this.notify.error("ownership_transfer.not_allowed_due_to_open_invoices"):d.Ay.of(i).code===d.O4.ACTIVATION_ONGOING?($.debug("Activation was already ongoing"),this.trackActivationEvent("activation_success"),this.$router.push({name:D.A.activationDone,query:{order_id:this.activatableOrder.id,mode:this.isSimTransfer?"transfer":void 0}})):($.error("Failed to activate sim",i),this.notifyGenericErrors(i))}}async onIdentificationError(t){try{if(this.identificationInProgress=!1,t){this.trackingService.updateIdentification({event:"sim_activation-identification-fail",component:"ActivationConfirm",result:"failure",orderId:this.activatableOrder?.id,notification:t?.message??void 0}),this.notifyGenericErrors(t),$.error("Error while identifying user",t);let e=await this.orderService.refreshOrder((0,A.bp)(this.activatableOrder));this.activatableOrder=e,this.setMnpFormData(e)}}catch(t){$.error("Failed to get new order state after identification error",t),this.notifyGenericErrors(t)}}async onUserIdentified({order:t,paidUpfront:e}){this.identificationInProgress=!1,this.trackingService.updateIdentification({event:"sim_activation-identification-success",component:"ActivationConfirm",result:"success",orderId:this.activatableOrder?.id}),this.doActivate({order:t,paidUpfront:e})}async scrollToFirstInvalid(){this.domUtils.scrollToFirst(".is-invalid",20)}ignoreActiveSims(){this.activatableOrder&&"enabled"===this.activatableOrder.state&&this.$router.push({name:D.A.activationDone,query:(0,c.Bb)({order_id:this.activatableOrder.id,mode:this.isSimTransfer?"transfer":void 0})})}trackOrderState(){this.activatableOrder&&("wait_for_mnp_details"===this.activatableOrder.state&&this.trackActivationEvent("activation_mnp_details_needed"),"wait_for_identification"===this.activatableOrder.state&&this.trackActivationEvent("activation_identification_needed"))}trackIdentificationMethodSelected(t){"upfront"===t&&this.trackActivationEvent("activation_invoice_payment_requested")}trackActivationEvent(t){try{if(!this.activatableOrder)return;let e=(0,r.wg)(this.activatableOrder)?this.activatableOrder.product.type:"swap_sim",i=(0,r.wg)(this.activatableOrder)?this.activatableOrder.product.id:"",s=(0,r.$P)(this.activatableOrder)?this.activatableOrder.simType:void 0;this.trackingService.updateActivationStatus({event:t,mnp:this.orderHasMnp,topup:"topup"===this.idMethod,productType:e,productId:i,simType:s})}catch(t){$.error("Failed to update dataLayer",t)}}constructor(...t){super(...t),this.site={context:"my-viking"},this.loading=!0,this.operators=[],this.activatableOrder=null,this.uwaValidationErrors={},this.idMethod=null,this.paymentMethod=null,this.identificationInProgress=!1,this.activating=!1,this.formData=T.C}}(0,s.Cg)([(0,p.y_)()],P.prototype,"session",void 0),(0,s.Cg)([(0,p.y_)()],P.prototype,"operatorService",void 0),(0,s.Cg)([(0,p.y_)()],P.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,p.y_)()],P.prototype,"orderService",void 0),(0,s.Cg)([(0,p.y_)()],P.prototype,"authService",void 0),(0,s.Cg)([(0,p.y_)()],P.prototype,"productService",void 0),(0,s.Cg)([(0,p.y_)()],P.prototype,"domUtils",void 0),(0,s.Cg)([(0,p.y_)()],P.prototype,"absoluteUrl",void 0),(0,s.Cg)([(0,p.y_)()],P.prototype,"goTo",void 0),(0,s.Cg)([(0,p.y_)()],P.prototype,"confirm",void 0),(0,s.Cg)([(0,p.y_)()],P.prototype,"trackingService",void 0),(0,s.Cg)([(0,p.y_)()],P.prototype,"uwa",void 0),(0,s.Cg)([(0,p.y_)()],P.prototype,"titleService",void 0),(0,s.Cg)([(0,p.kv)({required:!0,type:String})],P.prototype,"iccid",void 0),(0,s.Cg)([(0,p.kv)({type:Boolean,required:!1,default:!1})],P.prototype,"isSimTransfer",void 0),(0,s.Cg)([(0,p.ku)()],P.prototype,"site",void 0),(0,s.Cg)([(0,p.oS)()],P.prototype,"userIdentification",void 0),(0,s.Cg)([(0,p.ox)("idMethod",{immediate:!0})],P.prototype,"onIdMethodChange",null),(0,s.Cg)([(0,p.ox)("activatableOrder.state")],P.prototype,"ignoreActiveSims",null),(0,s.Cg)([(0,p.ox)("activatableOrder.state")],P.prototype,"trackOrderState",null),(0,s.Cg)([(0,p.ox)("idMethod")],P.prototype,"trackIdentificationMethodSelected",null);var L=P=(0,s.Cg)([(0,p.uA)({components:{ActivationFaq:I.A,RadioGroup:f.A,AccountNumberInput:h.A,MobileOperator:x.A,MobileSubscriptionType:N.A,UserIdentification:M.A,WizardFooter:w.A,WizardStep:S.A,Field:_.A,IccidInput:g.A,Loading:y.A,InlineNotification:C.A,MsisdnInput
29:v.A,MyVikingFrameWizard:b.A,MvForm:m.A}})],P),E=(0,i(41618).A)(L,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",[e("MyVikingFrameWizard",{staticClass:"activationConfirm dark-theme"},[t.loading?e("Loading"):e("MvForm",{staticClass:"activationConfirm__form",attrs:{name:"activation-confirm-form"}},[e("ActivationFaq",{attrs:{order:t.activatableOrder,operatorName:t.operatorName,isSimTransfer:t.isSimTransfer}}),t.orderCanBeActivated?t._e():e("InlineNotification",{staticClass:"activationConfirm__error",attrs:{notificationType:"error"}},[e("p",[e("strong",[t._v(t._s(t.$t("activation_confirm.activation_problem_title")))])]),e("p",[t._v(" "+t._s(t.$t("activation_confirm.activation_problem_description"))+" ")])]),t.orderCanBeActivated?[t.orderHasMnp?e("WizardStep",{attrs:{title:t.$t("activation_confirmation.step1__mnp_info_title"),hideNumber:!0,description:t.$t("activation_confirmation.step1__mnp_info_description")}},[e("div",{staticClass:"wizardStep__paddedContent mnp-stepbox"},[e("div",{staticClass:"activationConfirm__form__fields"},[e("Field",{attrs:{label:t.$t("field_mnp_type")}},[e("MobileSubscriptionType",{attrs:{validate:"required"},model:{value:t.requestType,callback:function(e){t.requestType=e},expression:"requestType"}})],1),e("Field",{staticClass:"actual-operator",attrs:{label:t.$t("field_mnp_operator")}},[e("MobileOperator",{attrs:{operators:t.operators,validate:"required"},model:{value:t.operator,callback:function(e){t.operator=e},expression:"operator"}})],1),e("Field",{staticClass:"actual-msisdn activationConfirm__form__fields-msisdn",attrs:{"data-qa":"actual-msisdn",label:t.$t("field_mnp_phone_number"),validationErrors:t.$tList(t.uwaValidationErrors.msisdn,"validationError__")}},[e("MsisdnInput",{directives:[{name:"validate",rawName:"v-validate",value:{required:t.orderHasMnp},expression:"{ required: orderHasMnp }"}],attrs:{name:"actualMsisdn"},on:{blur:function(e){delete t.uwaValidationErrors.msisdn}},model:{value:t.formData.msisdn,callback:function(e){t.$set(t.formData,"msisdn",e)},expression:"formData.msisdn"}})],1),e("Field",{directives:[{name:"show",rawName:"v-show",value:"private_postpaid"===t.formData.requestType,expression:"formData.requestType === 'private_postpaid'"}],staticClass:"activationConfirm__form__fields-select",attrs:{label:t.$t("mnp.select_validation_type"),"data-qa":"verification-options"}},[e("RadioGroup",{attrs:{appearance:"twoColumns",disabled:""===t.formData.requestType,options:["account","iccid"]},scopedSlots:t._u([{key:"default",fn:function({option:i}){return[e("span",{attrs:{"data-qa":`verification-option-${i}`}},[t._v(t._s("account"===i?t.$t("mnp.validation_type_account__{operator}",{operator:t.operatorName}):t.$t("mnp.validation_type_iccid__{operator}",{operator:t.operatorName})))])]}}],null,!1,0x8b78f4ac),model:{value:t.formData.verificationOption,callback:function(e){t.$set(t.formData,"verificationOption",e)},expression:"formData.verificationOption"}})],1),e("Field",{directives:[{name:"show",rawName:"v-show",value:"account"===t.formData.verificationOption,expression:"formData.verificationOption === 'account'"}],staticClass:"activationConfirm__form__fields-account-number",attrs:{"data-qa":"actual-account-number",label:t.$t("field_mnp_account_number"),hint:t.mnpRequiresIccid?`${t.$t("account_number_disabled_hint")}`:`${t.$t("account_number_hint")}`}},[e("AccountNumberInput",{directives:[{name:"validate",rawName:"v-validate",value:{required:t.accountNumberIsRequired},expression:"{ required: accountNumberIsRequired }"}],attrs:{operator:t.operator,name:"accountNumber"},model:{value:t.formData.accountNumber,callback:function(e){t.$set(t.formData,"accountNumber",e)},expression:"formData.accountNumber"}})],1),e("Field",{directives:[{name:"show",rawName:"v-show",value:"iccid"===t.formData.verificationOption,expression:"formData.verificationOption === 'iccid'"}],staticClass:"activationConfirm__form__fields-iccid",attrs:{"data-qa":"actual-iccid",label:t.$t("field_mnp_iccid"),validationErrors:t.uwaValidationErrors.iccid,hint:t.mnpRequiresAccountNumber?`${t.$t("iccid_disabled_hint")}`:`${t.$t("iccid_hint")}`}},[e("IccidInput",{directives:[{name:"validate",rawName:"v-validate",value:{required:t.iccidIsRequired},expression:"{ required: iccidIsRequired }"}],attrs:{operator:t.operator,type:"text",name:"iccid"},model:{value:t.formData.iccid,callback:function(e){t.$set(t.formData,"iccid",e)},expression:"formData.iccid"}}),e("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"hint"},[e("a",{attrs:{href:""}}
29,[t._v(t._s(t.$t("field_mnp_iccid_hint_link")))])])],1)],1),e("hr"),e("div",{staticClass:"activationConfirm_changedMind"},[e("span",[t._v(t._s(t.$t("activation_mnp_changed_your_mind")))]),e("span",[e("a",{attrs:{id:"link-confirm-cancel-mnp",href:"javascript:;"},on:{click:t.confirmCancelMnp}},[t._v(t._s(t.$t("activation_mnp_switch_to_new_number")))])])])])]):t._e(),t.activatableOrder?e("UserIdentification",{ref:"userIdentification",staticClass:"activationConfirm__identification",attrs:{order:t.activatableOrder,hideNumber:!0},on:{userIdentificationInProgress:function(e){t.identificationInProgress=!0},userIdentified:function(e){return t.onUserIdentified(e)},identificationError:t.onIdentificationError,idMethodSelected:function(e){t.idMethod=e},paymentMethodSelected:function(e){t.paymentMethod=e}}}):t._e()]:t._e(),t.loading||"care"===t.idMethod?t._e():e("WizardFooter",{staticClass:"activationConfirm_ButtonPanel",attrs:{name:"activationConfirm",ctaText:t.confirmButtonLabel,onConfirm:t.submit,loading:t.identificationInProgress||t.activating}})],2)],1)],1)},[],!1,null,null,null).exports},54252:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return N}});var s=i(32198),a=i(58294),n=i(48692),o=i(71229),r=i(8921),l=i(67953),d=i(49971),c=i(58249),u=i(62447),p=i(49842),h=i(79847),_=i(20174),m=i(60490),g=i(91543),v=i(10231),f=i(66090),y=i(78906),b=i(20020),C=i(76690),w=i(74608),S=i(1968),M=i(58209),A=i(3231);let k=(0,a.tZ)("EditMnpDetails");class I extends l.lD{async created(){try{this.operators=await this.operatorService.getOperators()}catch(t){k.error("Failed to initialize ActivationEditMnpDetails",t),this.notifyGenericErrors(t)}}async loadOrderData(){try{if(!this.session.mobileSubscriptions)throw k.warning("No subscriptions loaded. Assuming no order"),new r.Ay(r.O4.ORDER_NOT_FOUND);this.loading=!0;let t=await this.orderService.getSimRequest(this.orderId),e=this.session.mobileSubscriptions.find(e=>e.id===t.subscriptionId);if(!e)throw k.warning("Loaded order was not for a known subscription. Not a valid order for this user."),new r.Ay(r.O4.ORDER_NOT_FOUND);let i=await this.orderService.getPendingActivation(e);if(i&&!["mnp_rejected","mnp_followup"].includes(i.state)){this.notify.error("edit_mnp.cannot_edit_mnp_while_processing"),this.$router.push({name:A.A.sims,params:{lang:this.locale,subscriptionId:e.id}});return}if(!t)throw k.warning(`No such order: ${this.orderId}`),new r.Ay(r.O4.ORDER_NOT_FOUND);this.order=t,this.activationOrder=i,this.formData={...M.C,...this.order.donor},"prepaid"!==this.formData.requestType&&(this.formData.requestType=""),"prepaid"===this.formData.requestType&&(this.formData.verificationOption="iccid"),i&&"msisdn_account_mismatch"===i.rejectReason&&(this.formData.verificationOption="account"),i&&"msisdn_iccid_mismatch"===i.rejectReason&&(this.formData.verificationOption="iccid"),this.loading=!1}catch(t){r.Ay.of(t).code===r.O4.ORDER_NOT_FOUND?(this.notify.error("order_not_found"),this.$router.push({name:A.A.notFound})):(k.error("Failed to load MNP order",t),this.notifyGenericErrors(t),this.$router.push({name:A.A.error}))}}get requestType(){return this.formData.requestType}set requestType(t){let e={prepaid:"iccid",business_postpaid:"account",private_postpaid:this.formData.verificationOption};this.formData.verificationOption=e[t]||"",this.formData.requestType=t}get accountNumberIsRequired(){return"business_postpaid"===this.formData.requestType||"account"===this.formData.verificationOption}get iccidIsRequired(){return"prepaid"===this.formData.requestType||"iccid"===this.formData.verificationOption}get orderCanBeActivated(){return!!this.order}get isInIdentificationState(){return!!this.order&&(0,o.wg)(this.order)&&"wait_for_identification"===this.order.state}get userMayIdentifyBySomeMeans(){if(!this.isInIdentificationState)return!1;let t=(0,o.kJ)((0,y.bp)(this.order));return!!t.allowedIdentificationMethods&&t.allowedIdentificationMethods.length>0}get operator(){return this.formData&&this.operators.find(t=>t.name===this.formData.operator.name)||null}set operator(t){this.formData&&(this.formData.operator=t||{name:""})}get operatorName(){return this.formData.operator.name&&this.formData.operator.name.length>0?this.formData.operator.name:`${this.$t("your_operator")}`}get mnpRequiresAccountNumber(){return(0,n.eG)(this.formData)}get mnpRequiresIccid(){return(0,n.NC)(this.formData)&&"prepaid"===this.formData.requestType}get accountNumberValidationErrors(){return this.activationOrder&&"msisdn_account_mismatch"===this.activationOrder.rejectReason?[this.$t("edit_mnp.acount_number_mismatch").toString()]:[]}get iccidValidationErrors(){return this.activationOrder&&"msisdn_iccid_mismatch"===this.activationOrder.rejectReason?[this.$t("edit_mnp.iccid_mismatch").toString(),...this.uwaValidationErrors.iccid??[]]:this.uwaValidationErrors.iccid??[]}async doSave(){try{if(!this.formData||!this.order)return;if(this.uwaValidationErrors={},!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20);return}let t=(0,M.j)(this.formData);await this.orderService.updateMnp(this.order,t),this.$router.push({name:A.A.sims,params:{lang:this.locale}}),this.notify.success("edit_mnp.update_successful")}catch(i){let t=r.Ay.of(i),e=(0,b.v)(t,[{code:r.O4.MSISDN_ALREADY_IN_USE,on:"msisdn",message:"this_donor_is_already_a_viking"},{code:r.O4.INVALID_MNP_ICCID_ALREADY_OWNED,on:"iccid",message:this.$t("activation.used_your_new_iccid__use_old_iccid_instead").toString()}]);if(this.uwaValidationErrors=e.result,e.firstIssue){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20);return}if(t.code===r.O4.UNABLE_TO_PROCESS)return void this.notify.error("edit_mnp.cannot_update_mnp_while_activation_is_ongoing");k.error("Failed to update mnp details - editMnpDetails",i),this.notifyGenericErrors(i)}}async cancelEdit(){await this.confirm(this.$t("edit_mnp.confirm_cancel__question").toString(),this.$t("edit_mnp.confirm_cancel__title").toString(),this.$t("edit_mnp.confirm_cancel__confirm").toString(),this.$t("edit_mnp.confirm_cancel__cancel").toString())&&this.$router.push({name:A.A.myViking})}constructor(...t){super(...t),this.loading=!1,this.operators=[],this.order=null,this.activationOrder=null,this.formData=M.C,this.uwaValidationErrors={}}
29}(0,s.Cg)([(0,l.y_)()],I.prototype,"operatorService",void 0),(0,s.Cg)([(0,l.y_)()],I.prototype,"orderService",void 0),(0,s.Cg)([(0,l.y_)()],I.prototype,"session",void 0),(0,s.Cg)([(0,l.y_)()],I.prototype,"confirm",void 0),(0,s.Cg)([(0,l.y_)()],I.prototype,"domUtils",void 0),(0,s.Cg)([(0,l.kv)()],I.prototype,"orderId",void 0),(0,s.Cg)([(0,l.ox)("orderId",{immediate:!0})],I.prototype,"loadOrderData",null);var x=I=(0,s.Cg)([(0,l.uA)({components:{ActivationFaq:C.A,RadioGroup:h.A,MobileOperator:w.A,MobileSubscriptionType:S.A,AccountNumberInput:d.A,WizardFooter:v.A,WizardStep:f.A,Loading:_.A,MyVikingFrameWizard:m.A,SubscriptionDetails:g.A,MsisdnInput:p.A,IccidInput:u.A,Field:c.A}})],I),N=(0,i(41618).A)(x,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MyVikingFrameWizard",{staticClass:"activationEditMnpDetails dark-theme"},[t.loading?t._e():e("ActivationFaq",{attrs:{operatorName:t.operatorName,order:t.order,isSimTransfer:!1}}),e("WizardStep",{staticClass:"subscriptionDetails-wrapper",attrs:{hideNumber:!0}},[e("SubscriptionDetails",{staticClass:"activationEditMnpDetails__sim current-sim",attrs:{withIcon:!0}})],1),t.loading?e("Loading"):t._e(),t.loading?t._e():[e("WizardStep",{attrs:{hideNumber:!0,title:t.$t("edit_mnp.title"),intro:t.$t("edit_mnp.intro")}},[e("div",{staticClass:"wizardStep__paddedContent activationEditMnpDetails__fields"},[e("Field",{attrs:{label:t.$t("field_mnp_type")}},[e("MobileSubscriptionType",{attrs:{validate:"required"},model:{value:t.requestType,callback:function(e){t.requestType=e},expression:"requestType"}})],1),e("Field",{attrs:{label:t.$t("field_mnp_operator")}},[e("MobileOperator",{attrs:{operators:t.operators,validate:"required"},model:{value:t.operator,callback:function(e){t.operator=e},expression:"operator"}})],1),e("Field",{staticClass:"activationEditMnpDetails__fields-msisdn",attrs:{"data-qa":"actual-msisdn",label:t.$t("field_mnp_phone_number"),validationErrors:t.$tList(t.uwaValidationErrors.msisdn,"validationError__")}},[e("MsisdnInput",{directives:[{name:"validate",rawName:"v-validate",value:"donorMsisdn|required",expression:"'donorMsisdn|required'"}],attrs:{"data-qa":"msisdn-input",name:"actualMsisdn",required:""},model:{value:t.formData.msisdn,callback:function(e){t.$set(t.formData,"msisdn",e)},expression:"formData.msisdn"}})],1),e("Field",{directives:[{name:"show",rawName:"v-show",value:"private_postpaid"===t.formData.requestType,expression:"formData.requestType === 'private_postpaid'"}],staticClass:"activationEditMnpDetails__fields-select",attrs:{label:t.$t("mnp.select_validation_type"),"data-qa":"verification-options"}},[e("RadioGroup",{attrs:{appearance:"twoColumns",disabled:""===t.formData.requestType,options:["account","iccid"]},scopedSlots:t._u([{key:"default",fn:function({option:i}){return[e("span",{attrs:{"data-qa":`verification-option-${i}`}},[t._v(t._s("account"===i?t.$t("mnp.validation_type_account__{operator}",{operator:t.operatorName}):t.$t("mnp.validation_type_iccid__{operator}",{operator:t.operatorName})))])]}}],null,!1,0x8b78f4ac),model:{value:t.formData.verificationOption,callback:function(e){t.$set(t.formData,"verificationOption",e)},expression:"formData.verificationOption"}})],1),e("Field",{directives:[{name:"show",rawName:"v-show",value:"account"===t.formData.verificationOption,expression:"formData.verificationOption === 'account'"}],staticClass:"activationEditMnpDetails__fields-account-number",attrs:{"data-qa":"actual-account-number",label:t.$t("field_mnp_account_number"),hint:t.mnpRequiresIccid?`${t.$t("account_number_disabled_hint")}`:`${t.$t("account_number_hint")}`,validationErrors:t.accountNumberValidationErrors}},[e("AccountNumberInput",{directives:[{name:"validate",rawName:"v-validate",value:{required:t.accountNumberIsRequired},expression:"{ required: accountNumberIsRequired }"}],attrs:{operator:t.operator,name:"accountNumber"},model:{value:t.formData.accountNumber,callback:function(e){t.$set(t.formData,"accountNumber",e)},expression:"formData.accountNumber"}})],1),e("Field",{directives:[{name:"show",rawName:"v-show",value:"iccid"===t.formData.verificationOption,expression:"formData.verificationOption === '
29iccid'"}],staticClass:"activationEditMnpDetails__fields-iccid",attrs:{"data-qa":"actual-iccid",label:t.$t("field_mnp_iccid"),validationErrors:t.iccidValidationErrors,hint:t.mnpRequiresAccountNumber?`${t.$t("iccid_disabled_hint")}`:`${t.$t("iccid_hint")}`}},[e("IccidInput",{directives:[{name:"validate",rawName:"v-validate",value:{required:t.iccidIsRequired},expression:"{ required: iccidIsRequired }"}],attrs:{operator:t.operator,"data-qa":"iccid-input",type:"text",name:"iccid"},model:{value:t.formData.iccid,callback:function(e){t.$set(t.formData,"iccid",e)},expression:"formData.iccid"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"hint"},[e("a",{attrs:{href:""}},[t._v(t._s(t.$t("field_mnp_iccid_hint_link")))])])])],1)],1)]),e("WizardFooter",{staticClass:"activationEditMnpDetails-footer",attrs:{ctaText:t.$t("edit_mnp.confirm"),secCtaText:t.$t("edit_mnp.cancel"),onConfirm:t.doSave},on:{reject:t.cancelEdit}})]],2)},[],!1,null,"4ca03363",null).exports},20436:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return S}});var s=i(32198),a=i(58294),n=i(90004),o=i(70180),r=i(62765),l=i(57399),d=i(67953),c=i(62526),u=i(58249),p=i(42123),h=i(20174),_=i(99679),m=i(10231),g=i(95724),v=i(66090),f=i(78906),y=i(3231);let b=(0,a.tZ)("ResendSim");class C extends d.lD{get formattedOrderCreationDate(){return this.waitingSimOrder?(0,o.FI)(this.waitingSimOrder.created,this.locale):null}async onSubscriptionChange(){if(!this.session.mobileSubscriptions)throw new n.p("Should not be able to access ResendSim without subscriptions");let t=this.session.mobileSubscription||null;if(!t)throw new n.p("Subscription should be set when accessing ResendSim");this.subscription=t;try{this.waitingSimOrder=await this.getWaitingSimOrder(t),this.waitingSimOrder||(this.pageError=this.$t("resend_sim.no_waiting_sim_order_found"))}catch(t){b.error("Unable to fetch waiting sim order",t),this.pageError=this.getCopyKeyForGenericError(t)}}async getWaitingSimOrder(t){let e=await this.orderService.getPendingSimRequest(t);return e&&["waiting_for_sim","waiting_for_sim_matching","wait_for_identification","wait_for_mnp_details"].includes(e.state)?e:null}get orderDescription(){if(!this.subscription||!this.waitingSimOrder)return"";let t=this.subscription.specificSubscriptionType,e=(0,r.up)(this.waitingSimOrder.amount,"two_if_significant");return this.$t(`resend_sim.${t}_product_{amount}`,{amount:e})}get phoneNumberDescription(){return this.waitingSimOrder?this.waitingSimOrder.donor?(0,l.i)(this.waitingSimOrder.donor.msisdn):this.$t("resend_sim.new_number"):""}async submit(){if(!await this.$validator.validateAll()){this.domUtils.scrollToFirst(".is-invalid"),this.notify.error("form_is_not_valid");return}try{await this.uwa.requestSimResend((0,f.bp)(this.subscription).id,this.deliveryAddress),this.notify.success("resend_sim.request_registered_successfully"),this.$router.push({name:y.A.sims})}catch(t){b.error("Failed to resend sim",t),this.notifyGenericErrors(t)}}constructor(...t){super(...t),this.subscription=null,this.pageError=null,this.waitingSimOrder=null,this.deliveryAddress={firstName:"",lastName:"",address:{street:"",number:"",postcode:"",city:"",country:"be"}}}}(0,s.Cg)([(0,d.y_)()],C.prototype,"orderService",void 0),(0,s.Cg)([(0,d.y_)()],C.prototype,"session",void 0),(0,s.Cg)([(0,d.y_)()],C.prototype,"uwa",void 0),(0,s.Cg)([(0,d.y_)()],C.prototype,"domUtils",void 0),(0,s.Cg)([(0,d.ox)("session.mobileSubscription",{immediate:!0})],C.prototype,"onSubscriptionChange",null);var w=C=(0,s.Cg)([(0,d.uA)({components:{Field:u.A,AddressForm:c.A,InlineNotification:_.A,Loading:h.A,MvForm:p.A,WizardFooter:m.A,WizardInfoItem:g.A,WizardStep:v.A}})],C),S=(0,i(41618).A)(w,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.subscription?e("MvForm",{staticClass:"resendSim",attrs:{name:"resendSim"}},[t.pageError?e("InlineNotification",{staticClass:"resendSim__pageError",attrs:{notificationType:"error"}},[t._v(" "+t._s(t.pageError)+" ")]):t.waitingSimOrder?[e("WizardStep",{attrs:{hideNumber:!0}},[e("div",{staticClass:"wizardStep__paddedContent resendSim__orderInfo"},[e("WizardInfoItem",{staticClass:"resendSim__orderInfoItem resendSim__orderDate",attrs:{title:t.$t("resend_sim.order_date"),primaryValue:t.formattedOrderCreationDate,secondaryValue:""}}),e("WizardInfoItem",{staticClass:"resendSim__orderInfoItem resendSim__orderDescription",attrs:{title:t.$t("resend_sim.order_description"),primaryValue:t.orderDescription,secondaryValue:""}}),e("WizardInfoItem",{staticClass:"resendSim__orderInfoItem resendSim__phoneNumber",attrs:{title:t.$t("resend_sim.phone_number"),primaryValue:t.phoneNumberDescription,secondaryValue:""}})],1)]),e("WizardStep",{attrs:{hideNumber:!0,title:t.$t("resend_sim.enter_shipment_info")}},[e("div",{staticClass:"wizardStep__paddedContent resendSim__formFields"},[e("Field",{staticClass:"resendSim__firstName",attrs:{label:t.$t("resend_sim.first_name")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.deliveryAddress.firstName,expression:"deliveryAddress.firstName"},{name:"validate",rawName:"v-validate"}],attrs:{required:"",name:"firstName"},domProps:{value:t.deliveryAddress.firstName},on:{input:function(e){e.target.composing||t.$set(t.deliveryAddress,"firstName",e.target.value)}}})]),e("Field",{staticClass:"resendSim__lastName",attrs:{label:t.$t("resend_sim.last_name")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.deliveryAddress.lastName,expression:"deliveryAddress.lastName"},{name:"validate",rawName:"v-validate"}],attrs:{required:"",name:"lastName"},domProps:{value:t.deliveryAddress.lastName},on:{input:function(e){e.target.composing||t.$set(t.deliveryAddress,"lastName",e.target.value)}}})]),e("AddressForm",{attrs:{required:!0},model:{value:t.deliveryAddress.address,callback:function(e){t.$set(t.deliveryAddress,"address",e)},expression:"deliveryAddress.address"}})],1)]),e("WizardFooter",{staticClass:"resendSim__footer",attrs:{ctaText:t.$t("resend_sim.request_sim_resend"),onConfirm:t.submit}})]:[e("Loading")]],2):t._e()},[],!1,null,null,null).exports}
29,56419:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return C}});var s=i(32198),a=i(58294),n=i(47352),o=i(44739),r=i(67953),l=i(24176),d=i(58249),c=i(42123),u=i(21638),p=i(79847),h=i(60490),_=i(99679),m=i(10231),g=i(66090),v=i(3231);let f=(0,a.tZ)("ActivationStart");class y extends r.lD{async created(){this.trackStartStatus("activation_iccid_check_load");let t=this.$route.query.type;t&&("sim"===t||"esim"===t)&&(this.selectedSimType=t)}selectSimType(t){this.selectedSimType=t,this.$router.replace({query:{...this.$route.query,type:t}})}get isPhysicalSim(){return"sim"===this.selectedSimType}get simVisualSrc(){if(this.isPhysicalSim)return i(21802);switch(this.locale){case"nl":return i(96776);case"fr":return i(49510);default:return i(46971)}}get simSelectionConfig(){return{sim:{info:this.$t("activation_iccid.activation_type_info_sim"),label:this.$t("activation_iccid.last_4_digits_sim"),help:this.$t("activation_iccid.help_info_sim")},esim:{info:this.isSimTransfer?this.$t("activation_iccid.activation_type_info_esim_transfer"):this.$t("activation_iccid.activation_type_info_esim"),label:this.$t("activation_iccid.last_4_digits_esim"),help:this.$t("activation_iccid.help_info_esim")}}}async submit(){this.trackStartStatus("activation_iccid_check_requested");try{if(this.pendingActivationOrder=null,this.noOrderForIccid=!1,this.alreadyActive=!1,this.validateIccid(),this.iccidValidationErrors.length>0)return;if((await this.orderService.getOrdersByIccidAndTypes(this.iccidDigits,["create_contract"])).find(t=>"enabled"===t.state)){this.alreadyActive=!0;return}if(await this.subscriptionService.getActivatableOrder(this.iccidDigits)){this.trackStartStatus("activation_iccid_check_success"),this.$router.push({name:v.A.activationConfirm,query:(0,n.Bb)({iccid:this.iccidDigits,mode:this.isSimTransfer?"transfer":void 0})});return}this.pendingActivationOrder=await this.orderService.getPendingActivationByIccid(this.iccidDigits),this.pendingActivationOrder||(f.info(`iccid digits ${this.iccidDigits} are incorrect`),this.noOrderForIccid=!0,this.iccidValidationErrors.push(this.$t("activation_start.sim_not_found_check_iccid_digits").toString())),this.scrollToError()}catch(t){f.error("Failed to get activatable order",t),this.notifyGenericErrors(t)}}validateIccid(){this.resetIccidValidation();let t=/-/g;this.iccidDigits.replace(t,"").length<4?this.iccidValidationErrors.push(this.$t("activation.please_enter_four_digits").toString()):this.iccidDigits.replace(t,"").length>4&&(this.iccidDigits="",this.iccidValidationErrors.push(this.$t("activation.please_re_enter_four_digits_iccid").toString()))}resetIccidValidation(){this.iccidValidationErrors=[]}onUrlTypeChange(t){t&&("sim"===t||"esim"===t)&&(this.selectedSimType=t)}async scrollToError(){await (0,o.yy)(100),this.domUtils.scrollToFirst(".activationStart__notification")}trackStartStatus(t){try{this.trackingService.updateActivationStartStatus({event:t})}catch(t){f.error("Failed to update dataLayer",t)}}get mnpRejected(){return this.pendingActivationOrder&&["mnp_rejected","mnp_followup"].includes(this.pendingActivationOrder.state)}constructor(...t){super(...t),this.site={context:"my-viking"},this.RouteName=v.A,this.iccidDigits="",this.iccidValidationErrors=[],this.pendingActivationOrder=null,this.noOrderForIccid=!1,this.alreadyActive=!1,this.selectedSimType="sim"}}(0,s.Cg)([(0,r.kv)({type:Boolean,required:!1,default:!1})],y.prototype,"isSimTransfer",void 0),(0,s.Cg)([(0,r.y_)()],y.prototype,"session",void 0),(0,s.Cg)([(0,r.y_)()],y.prototype,"authService",void 0),(0,s.Cg)([(0,r.y_)()],y.prototype,"trackingService",void 0),(0,s.Cg)([(0,r.y_)()],y.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,r.y_)()],y.prototype,"domUtils",void 0),(0,s.Cg)([(0,r.y_)()],y.prototype,"config",void 0),(0,s.Cg)([(0,r.y_)()],y.prototype,"orderService",void 0),(0,s.Cg)([(0,r.y_)()],y.prototype,"titleService",void 0),(0,s.Cg)([(0,r.ku)()],y.prototype,"site",void 0),(0,s.Cg)([(0,r.ox)("iccidDigits")],y.prototype,"resetIccidValidation",null),(0,s.Cg)([(0,r.ox)("$route.query.type")],y.prototype,"onUrlTypeChange",null);var b=y=(0,s.Cg)([(0,r.uA)({components:{CallToAction:l.A,WizardStep:g.A,WizardFooter:m.A,Field:d.A,MvForm:c.A,MyVikingFrameWizard:h.A,InlineNotification:_.A,PinLikeInput:u.A,RadioGroup:p.A}})],y),C=(0,i(41618).A)(b,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MyVikingFrameWizard",{staticClass:"dark-theme"},[e("div",{staticClass:"activationStart"},[t.alreadyActive?e("InlineNotification",{staticClass:"ExternalContent",attrs:{notificationType:"info"}},[[e("strong",[t._v(t._s(t.$t("activation_start.already_activated__title")))]),e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("activation_start.already_activated__description__html"),expression:"$t('activation_start.already_activated__description__html')"}]})]],2):t.noOrderForIccid?e("InlineNotification",{attrs:{notificationType:"error"}},[e("strong",[t._v(t._s(t.$t("activation_start.sim_not_found_title")))]),e("ul",{staticClass:"discList"},[e("li",[t._v(t._s(t.$t("activation_start.sim_not_found_check_account")))]),e("li",[t._v(t._s(t.$t("activation_start.sim_already_active_reboot_device")))])])]):t.pendingActivationOrder&&t.mnpRejected?e("InlineNotification",{attrs:{notificationType:"error"},scopedSlots:t._u([{key:"cta",fn:function(){return[e("CallToAction",{attrs:{appearance:"secondary",to:{name:t.RouteName.editMnpDetails,params:{orderId:t.pendingActivationOrder.parentId}}}},[t._v(" "+t._s(t.$t("activation_start.edit_your_mnp_details"))+" ")])]},proxy:!0}])},[[e("strong",[t._v(t._s(t.$t("activation_start.activation_rejected_because_of_mnp__title")))]),e("div",[t._v(t._s(t.$t("activation_start.activation_rejected_because_of_mnp_description")))])]],2):t.pendingActivationOrder?e("InlineNotification",{attrs:{hideIcon:!0,notificationType:"info"}},[e("strong",[t._v(t._s(t.$t("activation_start.activation_pending__title")))]),e("div",[t._v(t._s(t.$t("activation_start.activation_pending_description")))])]):t._e(),e("WizardStep",{attrs:{hideNumber:!0}},[e("MvForm",{staticClass:"iccidPanel wizardStep__paddedContent",attrs:{name:"activation-iccid-form"}},[e("Field",{staticClass:"iccidPanel__selectSimType",attrs:{label:t.$t("activation_iccid.select_activate_sim_or_esim")}},[e("RadioGroup",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],attrs:{appearance:"twoColumns",options:["sim","esim"]},scopedSlots:t._u([{key:"default",fn:function({option:e}){return[t._v(" "+t._s("sim"===e?t.$t("simTypeSelector.physicalsim_title"):t.$t("simTypeSelector.esim_title"))+" ")]}}]),model:{value:t.selectedSimType,callback:function(e){t.selectedSimType=e},expression:"selectedSimType"}})],1),e("img",{staticClass:"iccidPanel__helpImage",attrs:{src:t.simVisualSrc,alt:""}}),e("div",[e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.simSelectionConfig[t.selectedSimType].info,expression:"simSelectionConfig[selectedSimType].info"}],staticClass:"iccidPanel__simActivationTypeInfo"}),e("Field",{staticClass:"is-required iccidPanel__inputContainer",attrs:{label:t.simSelectionConfig[t.selectedSimType].label,validationErrors:t.iccidValidationErrors}},[e("PinLikeInput",{attrs:{label:t.simSelectionConfig[t.selectedSimType].label,inputIsValid:!t.noOrderForIccid&&0===t.iccidValidationErrors.length},on:{submit:function(e){return t.submit()}},model:{value:t.iccidDigits,callback:function(e){t.iccidDigits="string"==typeof e?e.trim():e},expression:"iccidDigits"}})],1),e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.simSelectionConfig[t.selectedSimType].help,expression:"simSelectionConfig[selectedSimType].help"}],staticClass:"iccidPanel__supportInfo"})],1)],1)],1),e("WizardFooter",{staticClass:"activationStart__footer",attrs:{ctaText:t.$t("activation_iccid.check_your_sim_card_number"),onConfirm:t.submit}})],1)])},[],!1,null,"bf11989e",null).exports}
29,49892:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return w}});var s=i(32198),a=i(58294),n=i(71229),o=i(57399),r=i(67953),l=i(69965),d=i(87417),c=i(90089),u=i(95990),p=i(78098),h=i(28759),_=i(60490),m=i(78160),g=i(93199),v=i(66090),f=i(3231);let y=(0,a.tZ)("ActivationDone");class b extends r.lD{mounted(){this.trackingService.updateIdentification({event:"sim_activation-identification-completion",component:"ActivationDone",result:"success",orderId:this.orderId})}async loadOrder(){try{let t=await this.uwa.getOrder(this.orderId);if(!t||!(0,n.wg)(t)&&!(0,n.lE)(t))return void this.$router.push({name:f.A.notFound});this.activationOrder=t,y.info(`Successfully retrieved order ${this.activationOrder.id}`)}catch(t){y.error("Failed to get order",t),this.goToError()}}get orderIsMnp(){return!!this.activationOrder&&!!(0,n.$P)(this.activationOrder)&&!!this.activationOrder.donor}get orderIsEsim(){return!(!this.activationOrder||(0,n.JJ)(this.activationOrder))&&"embedded"===this.activationOrder.simType}get activationSoonText(){return this.activationOrder&&this.session.mobileSubscription?!this.upfrontPayment&&(0,n.$P)(this.activationOrder)&&this.activationOrder.donor?this.$t("activation_success.we_will_start_mnp_for_{msisdn}_at_{operator}",{msisdn:(0,o.i)(this.activationOrder.donor.msisdn),operator:this.activationOrder.donor.operator.name}).toString():this.upfrontPayment?this.upfrontPayment&&(0,n.$P)(this.activationOrder)&&this.activationOrder.donor?this.$t("activation_success.on_receiving_payment_transfer_of_your_number_{msisdn}_from_{operator}_will_begin",{msisdn:(0,o.i)(this.activationOrder.donor.msisdn),operator:this.activationOrder.donor.operator.name}).toString():this.upfrontPayment?this.$t("activation_success.your_number_{msisdn}_will_be_activated_when_payment_received_and_first_invoice",{msisdn:(0,o.i)(this.session.mobileSubscription.msisdn)}).toString():"":this.$t("activation_success.your_sim_with_number_{msisdn}_will_be_activated_soon",{msisdn:(0,o.i)(this.session.mobileSubscription.msisdn)}).toString():""}get activationMailText(){return this.session.profile?this.orderIsEsim&&this.orderIsMnp?this.$t("activation_success.we_will_send_a_mail_containing_your_esim_to_{email}_when_mnp_done",{email:this.session.profile.email}).toString():this.orderIsEsim?this.$t("activation_success.we_will_send_a_mail_containing_your_esim_to_{email}",{email:this.session.profile.email}).toString():this.$t("activation_success.we_will_send_a_mail_to_{email}",{email:this.session.profile.email}).toString():""}get isPrepaid(){return this.session.mobileSubscription?.type==="prepaid"}get topupUrl(){return this.$router.resolve({name:f.A.topup,params:{lang:this.locale}}).href}get setupUrl(){return`/${this.locale}/setup/`}get vikingDealsUrl(){return`/${this.locale}/viking-deals/`}get myVikingAppUrl(){return`/${this.locale}/offer/my-viking-app/`}get paymentMethodsUrl(){return this.$router.resolve({name:f.A.paymentMethods,params:{lang:this.locale}}).href}constructor(...t){super(...t),this.activationOrder=null,this.RouteName=f.A}}(0,s.Cg)([(0,r.y_)()],b.prototype,"uwa",void 0),(0,s.Cg)([(0,r.y_)()],b.prototype,"session",void 0),(0,s.Cg)([(0,r.y_)()],b.prototype,"config",void 0),(0,s.Cg)([(0,r.y_)()],b.prototype,"goToError",void 0),(0,s.Cg)([(0,r.y_)()],b.prototype,"titleService",void 0),(0,s.Cg)([(0,r.y_)()],b.prototype,"trackingService",void 0),(0,s.Cg)([(0,r.kv)({required:!0,type:String})],b.prototype,"orderId",void 0),(0,s.Cg)([(0,r.kv)({required:!1,type:Boolean})],b.prototype,"upfrontPayment",void 0),(0,s.Cg)([(0,r.kv)({type:Boolean,required:!1,default:!1})],b.prototype,"isSimTransfer",void 0),(0,s.Cg)([(0,r.ox)("orderId",{immediate:!0})],b.prototype,"loadOrder",null);var C=b=(0,s.Cg)([(0,r.uA)({components:{ErrorPanel:u.A,AppStoreButtons:l.A,Column:d.A,Columns:c.A,WizardStep:v.A,IconWithText:p.A,WizardDoneSummary:m.A,WizardLoading:g.A,MyVikingFrameWizard:_.A,IntroBlock:h.A}})],b),w=(0,i(41618).A)(C,function(){var t=this._self._c;return this._self._setupProxy,t("div",[t("MyVikingFrameWizard",{staticClass:"activationDone"},[this.activationOrder?[this.isSimTransfer?this._e():t("WizardDoneSummary",{staticClass:"activationDone__nextSteps"},[t("IconWithText",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],attrs:{iconUrl:"--icon-simcard-bg-url",text:this.activationSoonText}}),t("IconWithText",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],attrs:{iconUrl:"--icon-message-in-a-bottle-bg-url",text:this.activationMailText}}
29),this.orderIsEsim?t("IconWithText",{attrs:{iconUrl:"--icon-anchor-bg-url",text:this.$t("activation_success.stay_around_wifi")}}):this._e(),this.isPrepaid?t("IconWithText",{attrs:{iconUrl:"--icon-compass-bg-url",text:this.$t("activation_success.topup_sim")}}):this._e(),this.orderIsMnp&&!this.orderIsEsim?t("IconWithText",{attrs:{iconUrl:"--icon-bag-bg-url",text:this.$t("activation_success.when_the_signal_of_{operator}_drops_sim_can_be_activated",{operator:this.activationOrder.donor.operator.name})}}):this._e(),this.orderIsMnp&&this.orderIsEsim?t("IconWithText",{attrs:{iconUrl:"--icon-bag-bg-url",text:this.$t("activation_success.when_the_signal_of_{operator}_drops_esim_can_be_activated",{operator:this.activationOrder.donor.operator.name})}}):this._e()],1),t("WizardStep",[t("div",{staticClass:"wizardStep__paddedContent"},[t("Columns",{attrs:{reverseDesktop:!0}},[t("Column",{attrs:{horAlign:"center",vertAlign:"middle"}},[t("div",{staticClass:"activationDone__paymentIconsImg"},[this._v("Â ")])]),t("Column",{attrs:{vertAlign:"middle"}},[t("IntroBlock",this.isPrepaid?{attrs:{title:this.$t("activation_success.automaticTopupTitle"),titleAppearance:"h3",horizontalChildAlignment:"center",horizontalChildAlignmentDesktop:"left",description:this.$t("activation_success.automaticTopupDescription"),ctaHref:this.paymentMethodsUrl,ctaText:this.$t("activation_success.automaticTopupCtaText")}}:{attrs:{title:this.$t("activation_success.automaticPaymentTitle"),titleAppearance:"h3",horizontalChildAlignment:"center",horizontalChildAlignmentDesktop:"left",description:this.$t("activation_success.automaticPaymentDescription"),ctaHref:this.paymentMethodsUrl,ctaText:this.$t("activation_success.automaticPaymentCtaText")}})],1)],1)],1)]),t("WizardStep",[t("div",{staticClass:"wizardStep__paddedContent wizardStep__appInfo"},[t("Columns",{attrs:{reverseDesktop:!0}},[t("Column",{attrs:{horAlign:"center",vertAlign:"middle"}},[t("img",{staticClass:"activationDone__phonesImg",attrs:{src:`${this.config.vueRoot}/img/activationDone/app-images-${this.$i18n.locale}.png`,srcset:` 30 ${this.config.vueRoot}/img/activationDone/app-images-${this.$i18n.locale}@2x.png 2x, 31 ${this.config.vueRoot}/img/activationDone/app-images-${this.$i18n.locale}@3x.png 3x`,alt:""}})]),t("Column",{attrs:{vertAlign:"middle"}},[t("IntroBlock",{attrs:{title:this.$t("activation_success.downloadAppTitle"),titleAppearance:"h3",horizontalChildAlignment:"center",horizontalChildAlignmentDesktop:"left",description:this.isSimTransfer?this.$t("activation_success.sim_transfer_downloadAppDescription"):this.$t("activation_success.downloadAppDescription")}}),t("div",{staticClass:"activationDone__storeButtons"},[t("AppStoreButtons")],1)],1)],1)],1)]),this.isPrepaid?t("ErrorPanel",{staticClass:"activationDone__topUp",attrs:{id:"topup",title:this.$t("activation_success.topup_sim"),description:` 32 ${this.$t("activation_success.topup_sim_description")}<br /> 33 <small>${this.$t("activation_success.topup_sim_post_scriptum")}</small> 34 `,ctaText:this.$t("activation_success.topup_sim_cta"),ctaHref:this.topupUrl,ctaAppearance:"primary",iconCssVar:"--icon-treasure-bg-url",appearance:"ribbon"}}):this._e()]:t("WizardLoading")],2)],1)},[],!1,null,"b8f44b54",null).exports},76690:function(t,e,i){"use strict";i.d(e,{A:function(){return u}});var s=i(32198),a=i(71229),n=i(1122),o=i(67953),r=i(66090),l=i(78906);class d extends o.lD{get product(){return this.session&&this.session.mobileSubscription?this.session.mobileSubscription.product:null}get isPrepaid(){return!!this.product&&(0,n.$o)(this.product)}get isPostpaid(){return!!this.product&&(0,n.s1)(this.product)}get orderHasMnp(){return!!this.order&&!!(0,a.$P)(this.order)&&!!this.order.donor}get orderCanBeActivated(){return!!this.order}get isInIdentificationState(){return!!this.order&&(0,a.wg)(this.order)&&"wait_for_identification"===this.order.state}get userMayIdentifyBySomeMeans(){if(!this.isInIdentificationState)return!1;let t=(0,a.kJ)((0,l.bp)(this.order));return!!t.allowedIdentificationMethods&&t.allowedIdentificationMethods.length>0}get showFaq(){return this.orderCanBeActivated&&(!this.isInIdentificationState||this.userMayIdentifyBySomeMeans)}}(0,s.Cg)([(0,o.kv)({required:!0})],d.prototype,"order",void 0),(0,s.Cg)([(0,o.kv)({required:!0})],d.prototype,"operatorName",void 0),(0,s.Cg)([(0,o.kv)({required:!0})],d.prototype,"isSimTransfer",void 0),(0,s.Cg)([(0,o.y_)()],d.prototype,"session",void 0);var c=d=(0,s.Cg)([(0,o.uA)({components:{WizardStep:r.A}})],d),u=(0,i(41618).A)(c,function(){var t=this._self._c;
34return this._self._setupProxy,this.showFaq?t("WizardStep",{attrs:{"data-qa":"activation-faq",title:this.$t("activation_confirm.good_to_know"),hideNumber:!0}},[t("div",{staticClass:"wizardStep__paddedContent"},[this.orderHasMnp?t("ul",{staticClass:"diamondList",attrs:{"data-qa":"activation-faq--mnp"}},[t("li",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("activation_success.when_the_signal_of_operator_drops",{operator:this.operatorName}),expression:"$t('activation_success.when_the_signal_of_operator_drops', { operator: operatorName })"}]}),t("li",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("activation_confirm.we_sent_an_email_when_this_happens"),expression:"$t('activation_confirm.we_sent_an_email_when_this_happens')"}]})]):this.isSimTransfer?t("ul",{staticClass:"diamondList",attrs:{"data-qa":"activation-faq--sim-transfer"}},[this.isPrepaid?t("li",{attrs:{"data-qa":"activation-faq--sim-transfer--prepaid"}},[this._v(" "+this._s(this.$t("activation_confirm.sim_transfer_good_to_know_prepaid_bundles"))+" ")]):this._e(),this.isPostpaid?t("li",{attrs:{"data-qa":"activation-faq--sim-transfer--postpaid"}},[this._v(" "+this._s(this.$t("activation_confirm.sim_transfer_good_to_know_postpaid_bundles"))+" ")]):this._e(),t("li",[this._v(" "+this._s(this.$t("activation_confirm.sim_transfer_good_to_know_vps"))+" ")]),t("li",[this._v(" "+this._s(this.$t("activation_confirm.sim_transfer_good_to_know_viking_clan"))+" ")])]):t("ul",{attrs:{"data-qa":"activation-faq--default"}},[t("li",[this._v(" "+this._s(this.$t("activation_confirm.activating_only_takes_a_few_mnutes"))+" ")])])])]):this._e()},[],!1,null,null,null).exports},74608:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{get operator(){return this.value}set operator(t){this.$emit("input",t)}}(0,s.Cg)([(0,a.kv)({required:!0,default:""})],n.prototype,"value",void 0),(0,s.Cg)([(0,a.kv)({required:!0,default:()=>[]})],n.prototype,"operators",void 0),(0,s.Cg)([(0,a.kv)({})],n.prototype,"validate",void 0);var o=n=(0,s.Cg)([(0,a.uA)({})],n),r=(0,i(41618).A)(o,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("select",{directives:[{name:"model",rawName:"v-model",value:t.operator,expression:"operator"},{name:"validate",rawName:"v-validate",value:t.validate,expression:"validate"}],attrs:{"data-qa":"sim-actual-operator",name:"actualOperator"},on:{blur:function(e){return t.$emit("blur")},change:[function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.operator=e.target.multiple?i:i[0]},function(e){return t.$emit("change")}]}},[e("option",{attrs:{value:"",disabled:""}}),t._l(t.operators,function(i){return e("option",{key:i.name,domProps:{value:i}},[t._v(" "+t._s(i.name)+" ")])})],2)},[],!1,null,null,null).exports},1968:function(t,e,i){"use strict";i.d(e,{A:function(){return r}});var s=i(32198),a=i(67953);class n extends a.lD{get requestType(){return this.value}set requestType(t){this.$emit("input",t)}}(0,s.Cg)([(0,a.kv)({required:!0,default:""})],n.prototype,"value",void 0),(0,s.Cg)([(0,a.kv)({})],n.prototype,"validate",void 0);var o=n=(0,s.Cg)([(0,a.uA)({})],n),r=(0,i(41618).A)(o,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("select",{directives:[{name:"model",rawName:"v-model",value:t.requestType,expression:"requestType"},{name:"validate",rawName:"v-validate",value:t.validate,expression:"validate"}],attrs:{"data-qa":"mobile-subscription-type",name:"mobileSubscriptionType"},on:{blur:function(e){return t.$emit("blur")},change:[function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.requestType=e.target.multiple?i:i[0]},function(e){return t.$emit("change")}]}},[e("option",{attrs:{value:"",disabled:""}}),e("option",{attrs:{value:"prepaid"}},[t._v(t._s(t.$t("prepaid")))]),e("option",{attrs:{value:"private_postpaid"}},[t._v(t._s(t.$t("residential_postpaid")))]),e("option",{attrs:{value:"business_postpaid"}},[t._v(t._s(t.$t("business_postpaid")))])])},[],!1,null,null,null).exports}
34,94738:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return l}});var s=i(32198),a=i(67953),n=i(95990);class o extends a.lD{}var r=o=(0,s.Cg)([(0,a.uA)({components:{ErrorPanel:n.A}})],o),l=(0,i(41618).A)(r,function(){var t=this._self._c;return this._self._setupProxy,t("ErrorPanel",{attrs:{title:this.$t("internal_error_page.subtitle"),description:this.$t("internal_error_page.description")}})},[],!1,null,null,null).exports},22784:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return l}});var s=i(32198),a=i(67953),n=i(95990);class o extends a.lD{}var r=o=(0,s.Cg)([(0,a.uA)({components:{ErrorPanel:n.A}})],o),l=(0,i(41618).A)(r,function(){var t=this._self._c;return this._self._setupProxy,t("ErrorPanel",{attrs:{title:this.$t("not_found_error_page.subtitle"),description:this.$t("not_found_error_page.description")}})},[],!1,null,null,null).exports},36626:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return I}});var s=i(32198),a=i(58294),n=i(43529),o=i(90004),r=i(8921),l=i(44739),d=i(67953),c=i(73807),u=i(14806),p=i(58249),h=i(42123),_=i(49842),m=i(79847),g=i(28759),v=i(43979),f=i(99679),y=i(10231),b=i(66090),C=i(21395),w=i(20020),S=i(3231);let M=(0,a.tZ)("CompanyOnboarding");class A extends d.lD{async created(){this.data.account.language=this.locale,this.trackingService.b2bOnboardingFormLoad(),this.session.authenticated&&this.session.profile&&(this.data.account.language=this.session.profile.language,this.data.account.birthDate=this.session.profile.birthDate),this.sessionCompany=this.session.company||null}get trafficDataCheckboxLabel(){return this.$t("onboard_company.allow_traffic_data_communication_{privacyUrl}",{privacyUrl:this.legalDocumentService.getPrivacyPolicyUrl()}).toString()}get routeToLoginForBillingSettings(){let t=this.$router.resolve({name:S.A.b2bProfile,query:{spc:"billing-address"}});return{name:S.A.b2bLogin,query:{next:t.href}}}get singleSimOption(){return this.$t("onboard_company.sim_ranges_one").toString()}get numberOfSimsRanges(){return[this.singleSimOption,...this.$t("onboard_company.sim_ranges_comma_separated").toString().split(",")]}get numberOfSimsRadioGroupAppearance(){return this.numberOfSimsRanges.length%2==0?"twoColumns":""}get pageError(){return this.session?this.session.company?this.$t("already_has_a_company"):this.session.profile&&(0,n.M)(this.session.profile)?this.$t("company_onboarding.minors_not_allowed"):null:null}get legalDocumentCheckboxLabel(){return this.$t("company_onboarding.agree_to_{tosUrl}_{privacyUrl}",{tosUrl:this.legalDocumentService.getB2bTermsAndConditionsUrl(),privacyUrl:this.legalDocumentService.getPrivacyPolicyUrl()}).toString()}cancel(){this.goTo(this.absoluteUrl("/business"))}get translatedEnterpriseNumberErrors(){return this.$tList(this.uwaValidationErrors.enterprise_number,"validationError__")||[]}get companyDetailsValidationErrors(){return this.$validator.errors.has("company-details")?[this.$t("company_onboarding.company_details_missing").toString()]:[]}get fieldErrors(){let t=(0,C.A4)(this.uwaValidationErrors);return this.data.account.birthDate&&this.isMinor(this.data.account.birthDate)&&(t.date_of_birth=["postpaid_is_not_sold_to_minors"]),t}async submit(){try{if(this.expectedNumberOfSims===this.singleSimOption&&!this.singleSimAgreed)return void this.notify.error("company_onboarding.you_must_agree_to_single_sim_warning");let t=this.expectedNumberOfSims?this.categorizeCompanySize(this.expectedNumberOfSims):"not filled in";if(M.info("Onboarding company..."),this.trackingService.b2bOnboardingFormSubmit(t),this.notify.clear(),!this.agreeToTos)return void this.notify.error("gdpr_should_be_checked");if(this.data.account.birthDate&&(0,n.M)(this.data.account.birthDate))return void this.notify.error("company_onboarding.minors_not_allowed");if(this.uwaValidationErrors={},!await this.$validator.validateAll()){this.notify.error("still_errors_on_form"),this.domUtils.scrollToFirst(".is-invalid",20);return}if(!this.companyDetails)throw new o.p("Company details should be set beyond this point");if(!this.companyDetails.enterpriseNumber)throw new o.p("Enterprise number should be known");M.info("Onboarding company... Validation passed"),this.creatingUser=!0,await this.createAccountForm.assureAuthenticated(),this.creatingUser=!1,await this.saveMarketingPreference(),M.info("Onboarding company... Creating company"),await this.uwa.createCompany(this.companyDetails.enterpriseNumber,this.data.contactTel,t,this.locale),M.info("Onboarding... refreshing session"),await this.authService.refreshSession(),M.info("Onboarding... done"),this.referralHolder.consume(),this.$router.push({name:S.A.myBusiness}),this.trackingService.b2bOnboardingSuccess(t),await (0,l.yy)(1e3),this.notify.success("company_onboarding.successfully_created_company")}catch(i){if(this.creatingUser=!1,"user_authentication_aborted"===i.message)return;let t=r.Ay.of(i),e=(0,w.v)(t,[{code:r.O4.UNKNOWN_COMPANY_NUMBER,field:"company_number",on:"enterprise_number",message:"unknown_company"},{code:r.O4.ENTERPRISE_NUMBER_ALREADY_IN_USE,field:"enterprise_number",on:"enterprise_number",message:"enterprise_number_already_in_use"}]);if(this.uwaValidationErrors=e.result,e.firstIssue)return void this.domUtils.scrollToFirst(".is-invalid",20);switch(t.code){case r.O4.NOT_ALLOWED_BECAUSE_DUNNING:this.notify.error("company_onboarding.cannot_onboard_because_dunning");break;case r.O4.CUSTOMER_SHOULD_CONTACT_CARE:this.notify.error("customer_should_contact_care");break;case r.O4.ALREADY_HAS_A_COMPANY:this.notify.error("already_has_a_company");break;case r.O4.NOT_POSSIBLE_FOR_MINORS:this.notify.error("not_possible_for_minors");break;default:M.error("Failed to onboard company",i),this.notifyGenericErrors(i)}}}async loadMarketingPreference(){if(!this.creatingUser)try{if(this.trafficDataCommunicationPreferenceKnown=!1,!this.session.authenticated)return;let t=await this.budskap.getNotificationSettings();this.trafficDataCommunicationPreferenceKnown=void 0!==t.trafficDataCommunication,this.allowTrafficDataCommunication=t.trafficDataCommunication??!1}catch(t){M.error("Failed to retrieve existing budskap notification settings",t)}}onExpectedNumberOfSimsChanged(t){t&&(this.trackingService.b2bNumberOfSimsSelectionNotification(this.categorizeCompanySize(t)),t===this.singleSimOption&&(this.singleSimAgreed=!1,this.trackingService.b2bOneSimNotification()))}extractRange(t){let e=t.match(/\d+/g);if(!e?.length)return[];let i=e.map(t=>Number(t)).sort((t,e)=>t-e);return 1===i.length?[i[0]]:[i[0],i[i.length-1]]}categorizeCompanySize(t){let e=this.extractRange(t);return e.length?e.length>=2?`${e[0]}-${e[e.length-1]}`:1===e[0]?e[0].toString():`${e[0]}+`:t}async saveMarketingPreference(){try{await this.budskap.setNotificationSettings({trafficDataCommunication:this.allowTrafficDataCommunication,commercialCommunicationB2b:!0}),this.trafficDataCommunicationPreferenceKnown=!0}catch(t){M.error("Something wrong with budskap",t)}}constructor(...t){super(...t),this.isMinor=n.M,this.creatingUser=!1,this.expectedNumberOfSims=null,this.singleSimAgreed=!1,this.uwaValidationErrors={},this.agreeToTos=!1,this.allowTrafficDataCommunication=!1,this.trafficDataCommunicationPreferenceKnown=!1,this.sessionCompany=null,this.companyDetails=null,this.data={contactTel:"",account:{address:{street:"",number:"",city:"",postcode:"",country:"be",box:""},birthDate:null,birthPlace:"",email:"",firstName:"",lastName:"",password:""}}}}(0,s.Cg)([(0,d.y_)()],A.prototype,"uwa",void 0),(0,s.Cg)([(0,d.y_)()],A.prototype,"session",void 0),(0,s.Cg)([(0,d.y_)()],A.prototype,"authService",void 0),(0,s.Cg)([(0,d.y_)()],A.prototype,"budskap",void 0),(0,s.Cg)([(0,d.y_)()],A.prototype,"legalDocumentService",void 0),(0,s.Cg)([(0,d.y_)()],A.prototype,"domUtils",void 0),(0,s.Cg)([(0,d.y_)()],A.prototype,"trackingService",void 0),(0,s.Cg)([(0,d.y_)()],A.prototype,"goTo",void 0),(0,s.Cg)([(0,d.y_)()],A.prototype,"absoluteUrl",void 0),(0,s.Cg)([(0,d.y_)()],A.prototype,"referralHolder",void 0),(0,s.Cg)([(0,d.oS)()],A.prototype,"createAccountForm",void 0),(0,s.Cg)([(0,d.ox)("session.profile",{immediate:!0})],A.prototype,"loadMarketingPreference",null),(0,s.Cg)([(0,d.ox)("expectedNumberOfSims")],A.prototype,"onExpectedNumberOfSimsChanged",null);var k=A=(0,s.Cg)([(0,d.uA)({components:{RadioGroup:m.A,MsisdnInput
34:_.A,MvForm:h.A,WizardFooter:y.A,InlineNotification:f.A,Checkbox:u.A,Field:p.A,WizardStep:b.A,CompanyDetailsLookup:v.A,CreateAccountForm:c.A,IntroBlock:g.A}})],A),I=(0,i(41618).A)(k,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"CompanyOnboarding",attrs:{name:"registration-company"}},[t.pageError?e("InlineNotification",{staticClass:"CompanyOnboarding__pageError",attrs:{notificationType:"error"}},[t._v(" "+t._s(t.pageError)+" ")]):t._e(),t.pageError?t._e():[e("WizardStep",{attrs:{title:t.$t("onboard_company.your_company_details")}},[e("div",{staticClass:"wizardStep__paddedContent step-company-info"},[t._l(t.uwaValidationErrors.enterprise_number,function(i,s){return e("InlineNotification",{key:i,staticClass:"CompanyOnboarding__stepNotification is-invalid",attrs:{notificationType:"warning"}},[t._v(" "+t._s(t.translatedEnterpriseNumberErrors[s])+" "),"enterprise_number_already_in_use"===i?e("RouterLink",{attrs:{to:t.routeToLoginForBillingSettings}},[t._v(" "+t._s(t.$t("onboard_company.remove_enterprise_number_from_b2c_account"))+" ")]):t._e()],1)}),e("Field",{attrs:{label:t.$t("onboard_company.expected_number_of_sims")}},[e("RadioGroup",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],staticClass:"sim-number-selection SimCountSelection",attrs:{styleLevel:1,appearance:t.numberOfSimsRadioGroupAppearance,options:t.numberOfSimsRanges},scopedSlots:t._u([{key:"radioGroupDescription",fn:function({option:i}){return[i===t.singleSimOption?e("div",{staticClass:"SimCountSelection__details"},[e("IntroBlock",{attrs:{title:t.$t("onboard_company.single_sim_warning_title"),titleAppearance:"h4",titleTag:"h3",description:t.$t("onboard_company.single_sim_warning_description__html"),ctaText:t.$t("onboard_company.single_sim__create_b2c_instead"),ctaAppearance:"secondary",ctaHref:`/${t.locale}/offer/subscriptions`,ctaIdentifier:"redirect-single-sim"}}),e("div",{staticClass:"Radiobutton__description__agreeCheck"},[e("Checkbox",{staticClass:"single-sim-checkbox styleLevel2",attrs:{label:t.$t("onboard_company.single_sim_agreed")},model:{value:t.singleSimAgreed,callback:function(e){t.singleSimAgreed=e},expression:"singleSimAgreed"}})],1)],1):t._e()]}}],null,!1,0x2c2e543d),model:{value:t.expectedNumberOfSims,callback:function(e){t.expectedNumberOfSims=e},expression:"expectedNumberOfSims"}})],1),e("CompanyDetailsLookup",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],staticClass:"CompanyOnboarding__detailsLoopup",attrs:{name:"company-details",validationErrors:t.companyDetailsValidationErrors,seed:t.sessionCompany},model:{value:t.companyDetails,callback:function(e){t.companyDetails=e},expression:"companyDetails"}}),e("Field",{attrs:{label:t.$t("onboard_company.contactTel"),hint:t.$t("onboard_company.contactTelHint")}},[e("MsisdnInput",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],attrs:{name:"contact_tel"},model:{value:t.data.contactTel,callback:function(e){t.$set(t.data,"contactTel",e)},expression:"data.contactTel"}})],1)],2)]),e("WizardStep",{attrs:{title:t.$t("onboard_company.your_login_details"),description:t.$t("onboard_company.your_login_details_subtitle")}},[e("div",{staticClass:"wizardStep__paddedContent step-account-info"},[e("CreateAccountForm",{ref:"createAccountForm",attrs:{account:t.data.account,showRepeatPassword:!1,fieldErrors:t.fieldErrors}})],1)]),e("WizardFooter",{attrs:{onConfirm:t.submit,ctaText:t.$t("onboard_company.register_cta"),secCtaText:t.$t("onboard_company.cancel")},on:{reject:t.cancel},scopedSlots:t._u([{key:"legalChecks",fn:function(){return[e("Checkbox",{staticClass:"tos-checkbox",attrs:{label:t.legalDocumentCheckboxLabel},model:{value:t.agreeToTos,callback:function(e){t.agreeToTos=e},expression:"agreeToTos"}}),t.trafficDataCommunicationPreferenceKnown?t._e():e("Checkbox",{attrs:{"data-qa":"traffic-data-checkbox",label:t.trafficDataCheckboxLabel},model:{value:t.allowTrafficDataCommunication,callback:function(e){t.allowTrafficDataCommunication=e},expression:"allowTrafficDataCommunication"}})]},proxy:!0}],null,!1,0x8a6b32b5)})]],2)},[],!1,null,"4af3a494",null).exports}
34,13050:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return u}});var s=i(32198),a=i(58294),n=i(94212),o=i(67953),r=i(74066);let l=(0,a.tZ)("B2bInvoicesView");class d extends o.lD{async onCompanyChange(){try{this.loading=!0,this.unpaidInvoices=(await this.invoiceService.unpaidCompanyInvoices).initialPage(5),this.paidInvoices=(await this.invoiceService.paidCompanyInvoices).initialPage(5),this.loading=!1}catch(t){l.error("Failed to load invoices",t),this.goToError()}}constructor(...t){super(...t),this.loading=!1,this.paidInvoices=n.Y.empty(),this.unpaidInvoices=n.Y.empty()}}(0,s.Cg)([(0,o.y_)()],d.prototype,"session",void 0),(0,s.Cg)([(0,o.y_)()],d.prototype,"goToError",void 0),(0,s.Cg)([(0,o.y_)()],d.prototype,"invoiceService",void 0),(0,s.Cg)([(0,o.ox)("session.company",{immediate:!0})],d.prototype,"onCompanyChange",null);var c=d=(0,s.Cg)([(0,o.uA)({components:{InvoicesList:r.A}})],d),u=(0,i(41618).A)(c,function(){var t=this._self._c;return this._self._setupProxy,t("div",{attrs:{role:"tabpanel",tabindex:"0"}},[t("InvoicesList",{attrs:{loading:this.loading,paidInvoices:this.paidInvoices,unpaidInvoices:this.unpaidInvoices}})],1)},[],!1,null,null,null).exports},99261:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return M}});var s=i(32198),a=i(76565),n=i(58294),o=i(90004),r=i(7258),l=i(8921),d=i(62765),c=i(67953),u=i(24176),p=i(14806),h=i(58249),_=i(42123),m=i(99679),g=i(10231),v=i(66090),f=i(37882),y=i(78906),b=i(3231);let C=(0,n.tZ)("AddAnEmployee");class w extends c.lD{async onCompanyChange(){try{if(!this.session.company)throw new o.p("Should have a company");this.session.company.enterpriseNumber||this.$router.push({name:b.A.myCompany}),this.companyDefaults=await this.uwa.getCompanyOnboardingDefaults(this.session.company.id),this.setFormWithCompanyDefaults()}catch(t){C.error("Failed to initialize",t),this.notifyGenericErrors(t)}}setFormWithCompanyDefaults(){if(!this.companyDefaults)throw new o.p("Where went the company defaults?");this.employee.isUnderContract=!!this.companyDefaults.mnpOperator&&!!this.companyDefaults.mnpContractNr}get oobOptions(){return[...r.Y.map(t=>({value:t,label:(0,d.up)(t,"two_if_significant")})),{value:1/0,label:this.$t("unlimited").toString()}]}get company(){return(0,y._w)(this.session.company)}get willNewEmployeeInvitesBeSentLater(){return"created"===this.company.state}get showBulkImportTip(){return this.config.featureFlags.b2bBulkEmployeeImport&&this.addANewOneAfterThisOne}get footnoteText(){return this.willNewEmployeeInvitesBeSentLater?this.$t("add_an_employee.new_employee_invite_will_be_sent_later").toString():""}mounted(){this.showBulkImportNotification=!this.storage.getItem("hideEmployeeBulkImportNotification")}async submit(){try{if(!await this.$validator.validateAll()){this.domUtils.scrollToFirst(".is-invalid"),this.notify.error("form_is_not_valid");return}let t={firstName:this.employee.firstName,lastName:this.employee.lastName,email:this.employee.email,language:this.employee.language,reduction:this.employee.preferredProduct.monthly,outOfBundleAllowance:this.employee.outOfBundleAllowance};if(this.employee.isUnderContract&&this.companyDefaults&&this.companyDefaults.mnpOperator&&this.companyDefaults.mnpContractNr&&(t.mnpOperator=this.companyDefaults.mnpOperator,t.mnpContractNr=this.companyDefaults.mnpContractNr),!this.session.company)throw new o.p("Should have a company");await this.uwa.addEmployees(this.session.company.id,[t]),this.trackingService.b2bInviteSend(),this.addANewOneAfterThisOne?(this.notify.success("add_an_employee.{firstName}_was_added_and_lets_add_an_other_one",{firstName:this.employee.firstName,productName:this.employee.preferredProduct.title}),this.resetForm()):(this.notify.success("add_an_employee.{firstName}_was_added",{firstName:this.employee.firstName,productName:this.employee.preferredProduct.title}),this.$router.push({name:b.A.myBusiness}))}catch(e){let t=l.Ay.of(e);t.code===l.O4.B2B_COMPANY_IN_DUNNING?this.notify.error("add_an_employee.cant_add_employee_company_is_in_dunning"):t.code===l.O4.NO_MANDATE_SET?this.notify.error("add_an_employee.cant_add_employee_mandate_not_set_yet"):t.code===l.O4.ADDING_EMPLOYEE_NOT_ALLOWED_DUE_TO_DUNNING?this.notify.error("add_an_employee.cannot_add_employee_because_of_dunning"):(C.error("Failed to add the employee",e),this.notifyGenericErrors(e))}}initializeEmployee(){this.employee.firstName="",this.employee.lastName="",this.employee.email="",this.$validator.reset()}async resetForm(){this.initializeEmployee(),this.setFormWithCompanyDefaults(),this.domUtils.scrollToFirst(".employee__email",20);let t=document.querySelector(".employee__email input");t instanceof HTMLInputElement&&t.select()}async cancel(){await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes"))&&this.$router.push({name:b.A.companyEmployees})}async getProductForMonthlyFee(t){return t&&(await this.productService.getPostpaidProducts()).filter(t=>t.isB2bProduct).find(e=>e.monthly===t)||null}navigateToBulkImport(){this.$router.push({name:b.A.addMultipleEmployees})}dismissBulkImportNotification(){this.showBulkImportNotification=!1,this.storage.setItem("hideEmployeeBulkImportNotification",a.LocalDateTime.now().toString())}constructor(...t){super(...t),this.employee={firstName:"",lastName:"",language:this.locale,outOfBundleAllowance:0,email:"",isUnderContract:!1,preferredProduct:null},this.addANewOneAfterThisOne=!1,this.companyDefaults=null,this.showBulkImportNotification=!1}}(0,s.Cg)([(0,c.y_)()],w.prototype,"confirm",void 0),(0,s.Cg)([(0,c.y_)()],w.prototype,"uwa",void 0),(0,s.Cg)([(0,c.y_)()],w.prototype,"session",void 0),(0,s.Cg)([(0,c.y_)()],w.prototype,"productService",void 0),(0,s.Cg)([(0,c.y_)()],w.prototype,"domUtils",void 0),(0,s.Cg)([(0,c.y_)()],w.prototype,"trackingService",void 0),(0,s.Cg)([(0,c.y_)()],w.prototype,"storage",void 0),(0,s.Cg)([(0,c.y_)()],w.prototype,"config",void 0),(0,s.Cg)([(0,c.ox)("session.company",{immediate:!0})],w.prototype,"onCompanyChange",null);var S=w=(0,s.Cg)([(0,c.uA)({components:{MvForm:_.A,InlineNotification:m.A,CallToAction:u.A,Field:h.A,PostpaidSelector:f.default,Checkbox:p.A,WizardStep:v.A,WizardFooter:g.A}})],w),M=(0,i(41618).A)(S,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"addAnEmployee",attrs:{name:"addAnEmployee"}},[t.showBulkImportNotification&&t.config.featureFlags.b2bBulkEmployeeImport?e("InlineNotification",{staticClass:"addAnEmployee__notification bulk-import-notification",attrs:{notificationType:"info",hideIcon:!0},on:{dismiss:t.dismissBulkImportNotification},scopedSlots:t._u([{key:"default",fn:function(){return[t._v(" "+t._s(t.$tc("b2b_employees.bulk_add_employee_tip",1))+" "),e("a",{attrs:{href:"javascript:;"},on:{click:t.navigateToBulkImport}},[t._v(" "+t._s(t.$tc("b2b_employees.bulk_add_employee_tip",2))+" ")])]},proxy:!0},{key:"cta",fn:function(){return[e("CallToAction",{attrs:{appearance:"secondary"},on:{click:function(e){return t.navigateToBulkImport()}}},[t._v(t._s(t.$t("b2b_employees.bulk_add_employee_cta")))])]},proxy:!0}],null,!1,0xd82a6808)}):t._e(),e("WizardStep",{attrs:{title:t.$t("add_an_employee.employee_data_title"),description:t.$t("add_an_employee.employee_data_description"),hideNumber:!0}},[e("div",{staticClass:"wizardStep__paddedContent addAnEmployee__fields step-employee-data"},[e("Field",{staticClass:"employee-email",attrs:{label:t.$t("email")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.employee.email,expression:"employee.email"},{name:"validate",rawName:"v-validate",value:{email:!0},expression:"{ email: true }"}],attrs:{required:"",autocomplete:"off",type:"text",name:"email"},domProps:{value:t.employee.email},on:{input:function(e){e.target.composing||t.$set(t.employee,"email",e.target.value)}}})]),e("Field",{staticClass:"addAnEmployee__firstName employee-firstName",attrs:{label:t.$t("field_first_name")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.employee.firstName,expression:"employee.firstName"},{name:"validate",rawName:"v-validate",value:{max:40},expression:"{ max: 40 }"}],attrs:{type:"text",name:"firstName",required:"",autocomplete:"off"},domProps:{value:t.employee.firstName},on:{input:function(e){e.target.composing||t.$set(t.employee,"firstName",e.target.value)}}})]),e("Field",{staticClass:"addAnEmployee__lastName employee-lastName",attrs:{label:t.$t("field_last_name")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.employee.lastName,expression:"employee.lastName"},{name:"validate",rawName:"v-validate",value:{max:40},expression:"{ max: 40 }"}],attrs:{type:"text",name:"lastName",required:"",autocomplete:"off"},domProps:{value:t.employee.lastName},on:{input:function(e){e.target.composing||t.$set(t.employee,"lastName",e.target.value)}}})]),e("Field",{attrs:{label:t.$t("add_an_employee.field_preferred_employee_language")}},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.employee.language,expression:"employee.language"},{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],staticClass:"employee-language",attrs:{name:"employee-preferred-language",required:""},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.employee,"language",e.target.multiple?i:i[0])}}},[e("option",{attrs:{value:"en"}},[t._v(t._s(t.$t("lang_en")))]),e("option",{attrs:{value:"nl"}},[t._v(t._s(t.$t("lang_nl")))]),e("option",{attrs:{value:"fr"}},[t._v(t._s(t.$t("lang_fr")))])])]),e("Field",{attrs:{label:t.$t("add_an_employee.field_offered_product"),overrideRequired:!0}},[e("PostpaidSelector",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}
34],class:{"is-invalid":t.errors.first("postpaidProduct")},attrs:{styleLevel:1,restrictToB2bProducts:!0,includeVat:!1,name:"postpaidProduct",required:""},model:{value:t.employee.preferredProduct,callback:function(e){t.$set(t.employee,"preferredProduct",e)},expression:"employee.preferredProduct"}})],1),e("Field",{attrs:{label:t.$t("add_an_employee.field_oob_allowance"),hint:t.$t("add_an_employee.field_oob_allowance__hint")}},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.employee.outOfBundleAllowance,expression:"employee.outOfBundleAllowance"}],staticClass:"employee-oobAllowance",attrs:{name:"employee-oob-allowance",required:""},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.employee,"outOfBundleAllowance",e.target.multiple?i:i[0])}}},t._l(t.oobOptions,function(i){return e("option",{key:i.value,domProps:{value:i.value}},[t._v(" "+t._s(i.label)+" ")])}),0)])],1)]),t.companyDefaults&&t.companyDefaults.mnpOperator?e("WizardStep",{attrs:{title:t.$t("add_an_employee.current_provider_title")}},[e("div",{staticClass:"wizardStep__paddedContent step-current-provider"},[e("Checkbox",{staticClass:"is-under-previous-contract",attrs:{label:t.$t("add_an_employee.field_current_provider_{contractNumber}_{operator}",{contractNumber:t.companyDefaults.mnpContractNr,operator:t.companyDefaults.mnpOperator})},model:{value:t.employee.isUnderContract,callback:function(e){t.$set(t.employee,"isUnderContract",e)},expression:"employee.isUnderContract"}})],1)]):t._e(),e("WizardFooter",{staticClass:"addAnEmployee__footer",attrs:{onConfirm:t.submit,ctaText:t.$t("add_an_employee.invite"),secCtaText:t.$t("add_an_employee.cancel"),footnoteText:t.footnoteText},on:{reject:function(e){return t.cancel()}},scopedSlots:t._u([{key:"legalChecks",fn:function(){return[e("Checkbox",{ref:"addAnewOneCheckbox",staticClass:"addANewOneAfterThisOne",attrs:{label:t.$t("add_an_employee.an_other_after_this_one",{company:t.company})},scopedSlots:t._u([t.showBulkImportTip?{key:"tip",fn:function(){return[t._v(" "+t._s(t.$tc("b2b_employees.bulk_add_employee_tip",1))+" "),e("a",{attrs:{href:"javascript:;"},on:{click:t.navigateToBulkImport}},[t._v(" "+t._s(t.$tc("b2b_employees.bulk_add_employee_tip",2))+" ")])]},proxy:!0}:null],null,!0),model:{value:t.addANewOneAfterThisOne,callback:function(e){t.addANewOneAfterThisOne=e},expression:"addANewOneAfterThisOne"}})]},proxy:!0}])})],1)},[],!1,null,"6e6fabf1",null).exports},36076:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return C}});var s=i(32198),a=i(58294),n=i(8921),o=i(44739),r=i(67953),l=i(58249),d=i(42123),c=i(79847),u=i(99679),p=i(10231),h=i(66090),_=i(32400),m=i(78906),g=i(20020),v=i(3231);let f=(0,a.tZ)("AdditionalInfoWizard");class y extends r.lD{async mounted(){"success"===this.mandateCreationResult?await this.goToAddEmployee():"failed"===this.mandateCreationResult&&this.notify.error("add_payment_method.failed_to_set_up_mandate")}async prefillForm(){try{this.operators=await this.uwa.getOperators();let t=await this.uwa.getCompanyOnboardingDefaults(this.company.id);this.mnp=!(!t.mnpContractNr&&!t.mnpOperator),this.mnpOperator=this.getOperator(t.mnpOperator),this.mnpContractNr=t.mnpContractNr||"",this.currentPaymentMethod=await this.uwa.getB2bMandate(this.company.id),this.poNumber=this.company.poNumber||""}catch(t){f.error("Failed to initialize",t),this.notifyGenericErrors(t)}}get company(){return(0,m._w)(this.session.company)}get companies(){return(0,m._w)(this.session.companies)}async submit(){if(!await this.$validator.validateAll()){this.domUtils.scrollToFirst(".is-invalid"),this.notify.error("form_is_not_valid");return}try{await this.updateSettings(),this.currentPaymentMethod&&this.currentPaymentMethod.isValidForAddingEmployees()||("sepa"===this.paymentMethodType?await this.setupSepaMandate():["visa","mastercard"].includes(this.paymentMethodType||"")&&await this.setupCreditCardMandate()),await this.goToAddEmployee()}catch(i){let t=n.Ay.of(i),e=(0,g.v)(t,[{code:n.O4.DEBTOR_BIC_IBAN_MISMATCH,on:"bic",message:"debtor_bic_iban_mismatch"},{code:n.O4.INVALID_VALUE,field:"bic",on:"bic",message:"bic_is_invali
34d_for_iban"},{code:n.O4.IBAN_ALREADY_EXISTS,field:"iban",on:"iban",message:"iban_already_exists"},{code:n.O4.IBAN_ALREADY_LINKED_TO_YOUR_ACCOUNT,field:"iban",on:"iban",message:"iban_already_linked_to_your_account"}]);this.uwaValidationErrors=e.result,e.firstIssue?(this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20)):(f.error("Failed to update company details",i),this.notifyGenericErrors(i))}}async goToAddEmployee(){this.$router.push({name:v.A.addAnEmployee}),await (0,o.yy)(500),this.notify.success("b2b_additional.all_set_lets_add_the_first_employee")}updateSettings(){return Promise.all([this.updateOnboardingDefaults(),this.updateCompany()])}async updateOnboardingDefaults(){return this.uwa.updateCompanyOnboardingDefaults(this.company.id,{mnpContractNr:void 0,mnpOperator:void 0,...this.mnp?{mnpContractNr:this.mnpContractNr||void 0,mnpOperator:this.mnpOperator?this.mnpOperator.name:void 0}:{}})}async updateCompany(){let t=this.poNumber||void 0;if(t===this.company?.poNumber)return;await this.uwa.updateCompany(this.company.id,{poNumber:t});let e=this.company.id,i=this.companies.map(i=>(i.id===e&&(i.poNumber=t),i));this.session.update({companies:i})}async setupSepaMandate(){let t=this.ibanUtil.sanitizeIban(this.iban),e=this.bic.replace(/\s/g,"");try{return await this.uwa.createB2bSepaMandate(this.company.id,{iban:t,bic:e})}catch(i){if(n.Ay.of(i).code===n.O4.IBAN_ALREADY_LINKED_TO_YOUR_ACCOUNT&&await this.confirm(this.$t("b2b_sepa_already_linked_to_your_account.popup_question"),this.$t("b2b_sepa_already_linked_to_your_account.poup_title"),this.$t("b2b_sepa_already_linked_to_your_account.popup_relink_button"),this.$t("b2b_sepa_already_linked_to_your_account.cancel")))return this.uwa.createB2bSepaMandate(this.company.id,{iban:t,bic:e},!0);throw i}}async setupCreditCardMandate(){let t={name:v.A.b2bAdditionalInfo,query:{afterMandate:"cc"},params:{companyId:this.company.id}},e=this.absoluteUrl(this.$router.resolve(t)),i=await this.uwa.createB2bCreditCardMandate(this.company.id,e);this.goTo(i),await (0,o.i4)()}generateBic(){this.iban&&this.fields.iban.validated&&this.fields.iban.valid?(this.bic=this.ibanUtil.generateBic(this.iban),this.showBic=!this.bic):(this.bic=null,this.showBic=!1)}async cancel(){await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes"))&&this.$router.push({name:v.A.myBusiness})}getOperator(t){return this.operators.find(e=>e.name===t)||null}get isSepaDisabled(){return this.config.featureFlags.disableCreatingNewSepaMandates}get mandateTypes(){let t=[..._.P,"skip"];return this.isSepaDisabled?t.filter(t=>"sepa"!==t):t}constructor(...t){super(...t),this.operators=[],this.mnp=null,this.mnpOperator=null,this.mnpContractNr="",this.paymentMethod=null,this.paymentMethodType=null,this.iban=null,this.bic=null,this.showBic=!1,this.currentPaymentMethod=null,this.poNumber=null,this.uwaValidationErrors={}}}(0,s.Cg)([(0,r.y_)()],y.prototype,"config",void 0),(0,s.Cg)([(0,r.y_)()],y.prototype,"session",void 0),(0,s.Cg)([(0,r.y_)()],y.prototype,"confirm",void 0),(0,s.Cg)([(0,r.y_)()],y.prototype,"uwa",void 0),(0,s.Cg)([(0,r.y_)()],y.prototype,"domUtils",void 0),(0,s.Cg)([(0,r.y_)()],y.prototype,"ibanUtil",void 0),(0,s.Cg)([(0,r.y_)()],y.prototype,"absoluteUrl",void 0),(0,s.Cg)([(0,r.y_)()],y.prototype,"goTo",void 0),(0,s.Cg)([(0,r.kv)({default:null})],y.prototype,"mandateCreationResult",void 0),(0,s.Cg)([(0,r.ox)("company",{immediate:!0})],y.prototype,"prefillForm",null);var b=y=(0,s.Cg)([(0,r.uA)({components:{InlineNotification:u.A,WizardFooter:p.A,Field:l.A,RadioGroup:c.A,WizardStep:h.A,MvForm:d.A}})],y),C=(0,i(41618).A)(b,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"CompanyAdditionalInfo",attrs:{name:"b2b-additional-info"}},[e("WizardStep",{attrs:{title:t.$t("b2b_additional.current_provider_title"),description:t.$t("b2b_additional.current_provider_description_for_{companyname}",{companyname:t.company.name})}},[e("div",{staticClass:"wizardStep__paddedContent step-mnp"},[e("RadioGroup",{attrs:{options:[!0,!1]},scopedSlots:t._u([{key:"default",fn:function({option:e}){return[t._v(" "+t._s(e?t.$t("b2b_additional.mnp_yes"):t.$t("b2b_additional.mnp_no"))+" ")]}},{key:"radioGroupDescription",fn:function({}){return[t.mnp?e("div",{staticClass:"CompanyAdditionalInfo__mnpDetails styleLevel2"},[e("Field",{attrs:{label:t.$t("current_b2b_operator")}},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.mnpOperator,expression:"mnpOperator"},{name:"validate",rawName:"v-validate",value:{required:t.mnp},expression:"{ required: mnp }"}],attrs:{name:"actualOperator"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.mnpOperator=e.target.multiple?i:i[0]}}},[e("option",{attrs:{value:"",disabled:""}}),t._l(t.operators,function(i){return e("option",{key:i.name,domProps:{value:i}},[t._v(" "+t._s(i.name)+" ")])})],2)]),e("Field",{attrs:{label:t.$t("current_b2b_contract_nr")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.mnpContractNr,expression:"mnpContractNr"},{name:"validate",rawName:"v-validate",value:{required:t.mnp,regex:/[a-zA-Z0-9]$/},expression:"{ required: mnp, regex: /[a-zA-Z0-9]$/ }"}],attrs:{type:"text",name:"accountNumber"},domProps:{value:t.mnpContractNr},on:{input:function(e){e.target.composing||(t.mnpContractNr=e.target.value)}}}
34)])],1):t._e()]}}]),model:{value:t.mnp,callback:function(e){t.mnp=e},expression:"mnp"}})],1)]),t.currentPaymentMethod&&t.currentPaymentMethod.isValidForAddingEmployees()?t._e():e("WizardStep",{attrs:{title:t.$t("b2b_additional.payment_method_title"),description:t.$t("b2b_additional.payment_method_description")}},[e("div",{staticClass:"wizardStep__paddedContent step-mandate"},[t.currentPaymentMethod&&!t.currentPaymentMethod.isValidForAddingEmployees()?e("InlineNotification",{staticClass:"mandate-unusable-warning MandateStep__warning",attrs:{notificationType:"warning"}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("b2b_additional.your_mandate_is_not_usable__select_another_before_you_can_add_employees"),expression:"\n $t('b2b_additional.your_mandate_is_not_usable__' + 'select_another_before_you_can_add_employees')\n "}]})]):t._e(),t.isSepaDisabled?e("InlineNotification",{staticClass:"CompanyAdditionalInfo__sepaDisabled",attrs:{notificationType:"warning"}},[t._v(" "+t._s(t.$t("sepa_temporarily_unavailable"))+" ")]):t._e(),e("RadioGroup",{directives:[{name:"validate",rawName:"v-validate",value:{required:!t.currentPaymentMethod},expression:"{ required: !currentPaymentMethod }"}],attrs:{name:"paymentMethod",options:t.mandateTypes},scopedSlots:t._u([{key:"default",fn:function({option:i}){return[e("div",{class:`PaymentMethodOption PaymentMethodOption-${i}`},["skip"===i?[e("span",{staticClass:"option-description"},[t._v(t._s(t.$t("b2b_additional.skip_adding_mandate")))])]:[e("img",{attrs:{src:`${t.config.vueRoot}/img/mandateMethods/${i}.svg`,alt:i}}),e("span",{staticClass:"option-description"},[t._v(" "+t._s(t.$t(`mandate_method__${i}`))+" ")])]],2)]}},{key:"radioGroupDescription",fn:function({option:i}){return[e("div",{staticClass:"PaymentMethodOption__additionalDetails styleLevel2"},["sepa"===i?e("div",[e("Field",{staticClass:"MandateStep__ibanField",attrs:{label:t.$t("add_payment_method.your_iban"),hint:t.$t("add_payment_method.your_iban_hint"),validationErrors:t.$tList(t.uwaValidationErrors.iban,"validationError__")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.iban,expression:"iban"},{name:"validate",rawName:"v-validate",value:{required:"sepa"===t.paymentMethodType,iban:!0},expression:"{ required: paymentMethodType === 'sepa', iban: true }"}],key:"sepa-iban",attrs:{type:"text",name:"iban",placeholder:"BE _ _ _ _ _ _ _ _ _ _ _ _ _ _"},domProps:{value:t.iban},on:{blur:function(e){return t.generateBic()},input:function(e){e.target.composing||(t.iban=e.target.value)}}})]),e("Field",{directives:[{name:"show",rawName:"v-show",value:t.showBic,expression:"showBic"}],staticClass:"MandateStep__bicField",attrs:{label:t.$t("add_payment_method.your_bic"),validationErrors:t.$tList(t.uwaValidationErrors.bic,"validationError__")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.bic,expression:"bic"},{name:"validate",rawName:"v-validate",value:{required:"sepa"===t.paymentMethodType,min:8},expression:"{ required: paymentMethodType === 'sepa', min: 8 }"}],key:"sepa-bic",attrs:{type:"text",name:"bic"},domProps:{value:t.bic},on:{input:function(e){e.target.composing||(t.bic=e.target.value)}}})])],1):t._e(),"mastercard"===t.paymentMethodType||"visa"===t.paymentMethodType?e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("add_payment_method.creditcard_hint"),expression:"$t('add_payment_method.creditcard_hint')"}],staticClass:"MandateStep__creditcardHint"}):t._e(),"skip"===t.paymentMethodType?e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("b2b_additional.skip_hint"),expression:"$t('b2b_additional.skip_hint')"}],staticClass:"MandateStep__skipHint"}):t._e()])]}}],null,!1,0x3e6d9c1),model:{value:t.paymentMethodType,callback:function(e){t.paymentMethodType=e},expression:"paymentMethodType"}}),e("div",{staticClass:"po-number"},[e("Field",{attrs:{label:t.$t("b2b_additional.purchase_order_number")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.poNumber,expression:"poNumber"}],attrs:{type:"text",name:"poNumber"},domProps:{value:t.poNumber},on:{input:function(e){e.target.composing||(t.poNumber=e.target.value)}}}
34)])],1)],1)]),e("WizardFooter",{attrs:{onConfirm:t.submit,ctaText:t.$t("b2b_additional.finalize_mandate_and_add_first_employee"),secCtaText:t.$t("onboard_company.cancel")},on:{reject:function(e){return t.cancel()}}})],1)},[],!1,null,"49a4ded5",null).exports},42390:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return f}});var s=i(32198),a=i(67953);class n extends a.lD{get activeCompany(){return this.company||this.session.company||null}}(0,s.Cg)([(0,a.y_)()],n.prototype,"session",void 0),(0,s.Cg)([(0,a.kv)({required:!1,default:null})],n.prototype,"company",void 0),(0,s.Cg)([(0,a.kv)({required:!1,default:null})],n.prototype,"to",void 0);var o=n=(0,s.Cg)([a.uA],n),r=i(41618),l=(0,r.A)(o,function(){var t=this._self._c;return this._self._setupProxy,this.activeCompany?t("div",{staticClass:"companyDetails"},[t("div",{staticClass:"companyDetails-top"},[t("strong",{staticClass:"company-name"},[this._v(this._s(this.activeCompany.name))])]),t("div",{staticClass:"subscriptionDetails-info"})]):this._e()},[],!1,null,"1e6d654d",null).exports,d=i(15419);class c extends a.lD{}var u=c=(0,s.Cg)([(0,a.uA)({components:{CompanyDetails:l,MyVikingHeaderNav:d.A}})],c),p=(0,r.A)(u,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"companyHeader"},[t("section",{directives:[{name:"trackingSection",rawName:"v-trackingSection",value:"top_panel",expression:"'top_panel'"}],staticClass:"myBusiness-companyHeader"},[t("div",{staticClass:"myBusiness-companyDetailsHeader"},[t("CompanyDetails")],1),t("MyVikingHeaderNav",this._b({attrs:{ariaLabel:this.$t("my_viking_company_header_nav.aria_label")}},"MyVikingHeaderNav",this.$attrs,!1))],1)])},[],!1,null,null,null).exports,h=i(21395),_=i(83487),m=i(3231);class g extends a.lD{get companyRoutes(){return(0,_.Ko)(this.routes,m.A.myCompany).filter(t=>t.meta&&!!(0,h.RP)(t.meta.nav))}goToError(){this.$router.push({name:m.A.simsError})}}(0,s.Cg)([(0,a.y_)()],g.prototype,"routes",void 0),(0,s.Cg)([(0,a.y_)()],g.prototype,"session",void 0),(0,s.Cg)([(0,a.y_)()],g.prototype,"authService",void 0),(0,s.Cg)([(0,a.ku)()],g.prototype,"goToError",null);var v=g=(0,s.Cg)([(0,a.uA)({components:{CompanyHeader:p}})],g),f=(0,r.A)(v,function(){var t=this._self._c;return this._self._setupProxy,this.session.company?t("div",[t("CompanyHeader",{attrs:{routes:this.companyRoutes}}),t("RouterView")],1):this._e()},[],!1,null,null,null).exports},68093:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return p}});var s=i(32198),a=i(58294),n=i(57399),o=i(50870),r=i(67953),l=i(49458);let d=(0,a.tZ)("Company Settings");class c extends r.lD{created(){this.quickSettings=this.buildQuickSettings()}buildQuickSettings(){let t=this.session.company;if(!t)return{};let e=this,i={};r("details","b2b-company-details");let s=this.uwa.getCompanyOnboardingDefaults(t.id).catch(t=>(this.notifyGenericErrors(t),d.error("Failed to load onboarding defaults",t),(0,o.n)({}))),a=this.uwa.getB2bMandate(t.id).catch(t=>(this.notifyGenericErrors(t),d.error("Failed to load mandate",t),null));return r("mnp_defaults","b2b-mnp",s.then(function(t){let e=[];return t.mnpOperator&&e.push(t.mnpOperator),t.mnpContractNr&&e.push(t.mnpContractNr),e.join(" ⢠")})),r("contact_tel","b2b-contact-tel",(0,n.i)(t.contactTel)),r("contact_mail","b2b-contact-email",t.contactEmail),r("payment_method","b2b-payment-method",a.then(function(t){return t?t.userFriendlyLabel:""})),r("po_number","b2b-po-number",t.poNumber),i;function r(t,s,a,n,o){i[t]={title:e.$t(`b2b_setting_${t}`).toString(),status:a,query:{spc:s},statusLength:n,hint:o}}}onRouteUpdate(t,e){["b2b-contact-email","b2b-contact-tel","b2b-default-language","b2b-default-reduction","b2b-mnp","b2b-payment-method","b2b-po-number"].includes(e?.query.spc)&&(this.quickSettings=this.buildQuickSettings())}constructor(...t){super(...t),this.quickSettings=null}}(0,s.Cg)([(0,r.y_)()],c.prototype,"session",void 0),(0,s.Cg)([(0,r.y_)()],c.prototype,"uwa",void 0),(0,s.Cg)([(0,r.y_)()],c.prototype,"productService",void 0),(0,s.Cg)([(0,r.y_)()],c.prototype,"config",void 0),(0,s.Cg)([(0,r.ox)("$route",{immediate:!0})],c.prototype,"onRouteUpdate",null);var u=c=(0,s.Cg)([(0,r.uA)({components:{QuickSettingsList:l.A}})],c),p=(0,i(41618).A)(u,function(){var t=this._self._c;return this._self._setupProxy,t("div",{attrs:{role:"tabpanel",tabindex:"0"}},[t("QuickSettingsList",{staticClass:"nextStyleLevel",attrs:{settings:this.quickSettings}}
34)],1)},[],!1,null,null,null).exports},36306:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return w}});var s=i(32198),a=i(58294),n=i(8921),o=i(44739),r=i(67953),l=i(14806),d=i(58249),c=i(42123),u=i(20174),p=i(10231),h=i(66090),_=i(37882),m=i(27114),g=i(78906),v=i(20020),f=i(3231);let y=(0,a.tZ)("EditEmployee");class b extends r.lD{async loadEmployee(){try{this.loading=!0,this.titleService.pageTitle="";let t=await this.employeeService.getEmployee(this.company,this.employeeId);if(!t)return void this.$router.push({name:f.A.notFound});this.employee=t,this.firstName=t.firstName,this.lastName=t.lastName,this.language=t.invitation.language,this.email=t.invitation.email,this.underMnpContract=!!t.invitation.mnpDefaults,this.oobAllowance=t.outOfBundleAllowanceNextMonth??t.outOfBundleAllowance,this.preferredProduct=await this.productService.getProductForPrice(t.reduction,t=>t.isB2bProduct),this.loading=!1,this.titleService.pageTitle=this.$t("edit_employee.edit_{firstName}_{lastName}",{firstName:t.firstName,lastName:t.lastName}).toString()}catch(t){this.notifyGenericErrors(t),this.goToError()}}get isDirty(){if(!this.employee)return!1;let t=this.preferredProduct?this.preferredProduct.monthly:void 0;return this.firstName!==this.employee.firstName||this.lastName!==this.employee.lastName||this.language!==this.employee.invitation.language||this.email!==this.employee.invitation.email||!!this.employee.invitation.mnpDefaults!==this.underMnpContract||t!==this.employee.reduction}async loadOnboardingDefaults(){try{this.onboardingDefaults=await this.uwa.getCompanyOnboardingDefaults(this.company.id)}catch(t){y.error("Failed to initialize",t),this.notifyGenericErrors(t)}}get showProductDetailsAsReadOnly(){return!this.employee||["pending","paused"].includes(this.employee.state)}get company(){return(0,g._w)(this.session.company)}get showMnpStep(){return this.employee?.state==="invited"&&(this.onboardingDefaults?.mnpOperator||this.onboardingDefaults?.mnpContractNr)}async submit(){if(this.onboardingDefaults&&this.employee){if(!await this.$validator.validateAll()){this.domUtils.scrollToFirst(".is-invalid"),this.notify.error("form_is_not_valid");return}try{await this.employeeService.updateEmployee(this.employee,{firstName:this.firstName,lastName:this.lastName,email:this.email,language:this.language,reduction:(0,g.bp)(this.preferredProduct).monthly,outOfBundleAllowance:null!==this.oobAllowance?this.oobAllowance:void 0,mnpContractNr:this.underMnpContract?this.onboardingDefaults.mnpContractNr:void 0,mnpOperator:this.underMnpContract?this.onboardingDefaults.mnpOperator:void 0}),this.$router.push({name:f.A.companyEmployees}),await (0,o.yy)(500),this.notify.success("edit_employee.employee_updated")}catch(i){let t=n.Ay.of(i);if(t.code===n.O4.NOT_ALLOWED_BECAUSE_DUNNING)return void this.notify.error("edit_employee.cannot_update_reduction_because_in_dunning");let e=(0,v.v)(t,[{code:n.O4.INVALID_VALUE,field:"email",on:"email",message:"invalid_value"}]);this.uwaValidationErrors=e.result,e.firstIssue?(this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20)):(y.error("Failed to update company details",i),this.notifyGenericErrors(i))}}}async cancel(){(!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$router.push({name:f.A.companyEmployees})}constructor(...t){super(...t),this.loading=!1,this.employee=null,this.firstName="",this.lastName="",this.language=this.locale,this.email="",this.preferredProduct=null,this.underMnpContract=!1,this.oobAllowance=null,this.onboardingDefaults=null,this.uwaValidationErrors={}}}(0,s.Cg)([(0,r.y_)()],b.prototype,"session",void 0),(0,s.Cg)([(0,r.y_)()],b.prototype,"confirm",void 0),(0,s.Cg)([(0,r.y_)()],b.prototype,"productService",void 0),(0,s.Cg)([(0,r.y_)()],b.prototype,"uwa",void 0),(0,s.Cg)([(0,r.y_)()],b.prototype,"employeeService",void 0),(0,s.Cg)([(0,r.y_)()],b.prototype,"domUtils",void 0),(0,s.Cg)([(0,r.y_)()],b.prototype,"goToError",void 0),(0,s.Cg)([(0,r.y_)()],b.prototype,"titleService",void 0),(0,s.Cg)([(0,r.kv)({default:null})],b.prototype,"employeeId",void 0),(0,s.Cg)([(0,r.ox)("employeeId",{immediate:!0})],b.prototype,"loadEmployee",null),(0,s.Cg)([(0,r.ox)("company.id",{immediate:!0})],b.prototype,"loadOnboardingDefaults",null);var C=b=(0,s.Cg)([(0,r.uA)({components:{Checkbox:l.A,Loading:u.A,Field:d.A,OobAllowanceSelector:m.A,PostpaidSelector:_.default,WizardStep:h.A,MvForm:c.A,WizardFooter:p.A}})],b),w=(0,i(41618).A)(C,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"EditEmployee",attrs:{name:"edit-employee"}},[t.loading||!t.onboardingDefaults?e("Loading"):[e("WizardStep",{attrs:{title:t.$t("edit_employee.employee_data_title"),hideNumber:!t.showMnpStep,description:t.$t("edit_employee.employee_data_description")}},[e("div",{staticClass:"wizardStep__paddedContent EditEmployee__fields step-employee-data"},[e("Field",{staticClass:"employee-email",attrs:{label:t.$t("email"),validationErrors:t.$tList(t.uwaValidationErrors.email,"validationError__")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"},{name:"validate",rawName:"v-validate",value:{email:!0},expression:"{ email: true }"}],attrs:{required:"",autocomplete:"off",readonly:"",type:"text",name:"email"},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}})]),e("Field",{staticClass:"EditEmployee__firstName employee-firstName",attrs:{label:t.$t("field_first_name")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.firstName,expression:"firstName"},{name:"validate",rawName:"v-validate",value:{max:40},expression:"{ max: 40 }"}],attrs:{type:"text",name:"firstName",required:"",autocomplete:"off"},domProps:{value:t.firstName},on:{input:function(e){e.target.composing||(t.firstName=e.target.value)}}})]),e("Field",{staticClass:"EditEmployee__lastName employee-lastName",attrs:{label:t.$t("field_last_name")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.lastName,expression:"lastName"},{name:"validate",rawName:"v-validate",value:{max:40},expression:"{ max: 40 }"}],attrs:{type:"text",name:"lastName",required:"",autocomplete:"off"},domProps:{value:t.lastName},on:{input:function(e){e.target.composing||(t.lastName=e.target.value)}}})]),e("Field",{attrs:{label:t.$t("edit_employee.field_preferred_employee_language")}},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.language,expression:"language"},{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],staticClass:"employee-language",attrs:{name:"employee-preferred-language",disabled:"",required:""},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.language=e.target.multiple?i:i[0]}}},[e("option",{attrs:{value:"en"}},[t._v(t._s(t.$t("lang_en")))]),e("option",{attrs:{value:"nl"}},[t._v(t._s(t.$t("lang_nl")))]),e("option",{attrs:{value:"fr"}},[t._v(t._s(t.$t("lang_fr")))])])]),e("Field",{attrs:{label:t.$t("edit_employee.field_offered_product"),overrideRequired:!0}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.preferredProduct,expression:"preferredProduct"}],attrs:{type:"hidden",name:"pps"},domProps:{value:t.preferredProduct},on:{input:function(e){e.target.composing||(t.preferredProduct=e.target.value)}}}),e("PostpaidSelector",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}
34],class:{"is-invalid":t.errors.first("postpaidProduct")},attrs:{restrictToB2bProducts:!0,name:"postpaidProduct",styleLevel:1,includeVat:!1,required:"",readOnly:t.showProductDetailsAsReadOnly},model:{value:t.preferredProduct,callback:function(e){t.preferredProduct=e},expression:"preferredProduct"}})],1),e("Field",{attrs:{label:t.$t("edit_employee.field_oob_allowance")}},[e("OobAllowanceSelector",{attrs:{name:"oob-allowance-value",readonly:t.showProductDetailsAsReadOnly},model:{value:t.oobAllowance,callback:function(e){t.oobAllowance=e},expression:"oobAllowance"}})],1)],1)]),t.showMnpStep?e("WizardStep",{attrs:{title:t.$t("edit_employee.current_provider_title")}},[e("div",{staticClass:"wizardStep__paddedContent step-current-provider"},[e("Checkbox",{staticClass:"is-under-previous-contract",attrs:{disabled:"",label:t.$t("edit_employee.field_current_provider_{contractNumber}_{operator}",{contractNumber:t.onboardingDefaults.mnpContractNr,operator:t.onboardingDefaults.mnpOperator})},model:{value:t.underMnpContract,callback:function(e){t.underMnpContract=e},expression:"underMnpContract"}})],1)]):t._e(),e("WizardFooter",{staticClass:"EditEmployee__footer",attrs:{onConfirm:t.submit,ctaText:t.$t("edit_employee.update"),secCtaText:t.$t("cancel")},on:{reject:function(e){return t.cancel()}}})]],2)},[],!1,null,"2cf63236",null).exports},1459:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return W}});var s=i(32198),a=i(58294),n=i(28673),o=i(23037),r=i(47352),l=i(67953),d=i(10837),c=i(33497),u=i(20684);class p extends l.lD{get loading(){return null===this.employee}get initials(){return this.employee?`${this.employee.firstName.charAt(0)}${this.employee.lastName.charAt(0)}`:""}get hasOobCosts(){return!!this.employee&&this.employee.outOfBundleUsage>0}get avatarTitle(){return this.hasOobCosts?this.$t("{firstName}{lastName}_has_oob_costs",{firstName:this.employee?.firstName,lastName:this.employee?.lastName}):null}get rowTitle(){return this.$t("employee_table_row.see_details_of_{firstName}{lastName}",{firstName:this.employee?.firstName,lastName:this.employee?.lastName})}openEmployeeSidePanel(){if(this.employee){let t=this.$route.query||{};this.$router.push({query:{...t,spc:"employee",id:this.employee.id.toString()}})}}constructor(...t){super(...t),this.isHovered=!1}}(0,s.Cg)([(0,l.kv)()],p.prototype,"employee",void 0);var h=p=(0,s.Cg)([(0,l.uA)({components:{AvatarInitials:c.A,AvatarRoot:u.A,EmployeeStateTag:d.A}})],p),_=i(41618),m=(0,_.A)(h,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.loading?e("tr",{staticClass:"employeeTableRow employeeTableRow--isLoading"},[e("td",{staticClass:"employeeTableRow__avatar"},[e("AvatarRoot",[e("AvatarInitials")],1)],1),t._m(0),t._m(1),t._m(2),t._m(3)]):e("tr",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"employeeTableRow",attrs:{tabindex:"0",title:t.rowTitle},on:{mouseenter:function(e){t.isHovered=!0},mouseleave:function(e){t.isHovered=!1},keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.openEmployeeSidePanel()},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.openEmployeeSidePanel()}],click:function(e){return t.openEmployeeSidePanel()},mouseDown:function(e){return"button"in e&&1!==e.button?null:t.openEmployeeSidePanel()}}},[e("td",{staticClass:"employeeTableRow__avatar"},[e("AvatarRoot",{attrs:{hasWarning:t.hasOobCosts,title:t.avatarTitle,hovered:t.isHovered}},[e("AvatarInitials",{attrs:{initials:t.initials}})],1)],1),e("td",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],staticClass:"employeeTableRow__nameMsisdnCol"},[e("div",{staticClass:"employeeTableRow__name"},[t._v(t._s(t.employee.firstName)+" "+t._s(t.employee.lastName))]),e("div",{staticClass:"employeeTableRow__msisdn"},[t._v(t._s(t._f("msisdn")(t.employee.msisdn)))])]),e("td",{staticClass:"employeeTableRow__priceCol"},[e("div",{staticClass:"employeeTableRow__productType"},[t._v(t._s(t.$t("product_type__postpaid")))]),e("div",{staticClass:"employeeTableRow__price"},[t._v(" "+t._s(t._f("moneyCents")(t._f("subtract21Vat")(t.employee.reduction)))+" / "+t._s(t.$t("month"))+" ")])]),e("td",{staticClass:"employeeTableRow__oobCol"},[t.hasOobCosts?[e("div",{staticClass:"employeeTableRow__oobLabel"},[t._v(t._s(t.$t("oob")))]),e("div",{staticClass:"employeeTableRow__oobValue"},[t._v(t._s(t._f("moneyCents")(t.employee.outOfBundleUsage)))])]:t._e()],2),e("td",{staticClass:"employeeTableRow__state"},[t.employee?e("EmployeeStateTag",{attrs:{state:t.employee.state}}):t._e()],1)])},[function(){var t=this._self._c;return this._self._setupProxy,t("td",{staticClass:"employeeTableRow__nameMsisdnCol"},[t("div",{staticClass:"employeeTableRow__name"},[this._v("Â ")]),t("div",{staticClass:"employeeTableRow__msisdn"},[this._v("Â ")])])},function(){var t=this._self._c;return this._self._setupProxy,t("td",{staticClass:"employeeTableRow__priceCol"},[t("div",{staticClass:"employeeTableRow__productType"},[this._v("Â ")]),t("div",{staticClass:"employeeTableRow__price"},[this._v("Â ")])])},function(){var t=this._self._c;return this._self._setupProxy,t("td",{staticClass:"employeeTableRow__oobCol"},[t("div",{staticClass:"employeeTableRow__oobLabel"},[this._v("Â ")]),t("div",{staticClass:"employeeTableRow__oobValue"},[this._v("Â ")])])},function(){var t=this._self._c;return this._self._setupProxy,t("td",{staticClass:"employeeTableRow__state"},[t("div",[this._v("Â ")])])}],!1,null,"01742984",null).exports,g=i(95990),v=i(78098),f=i(99679),y=i(82655),b=i(78906),C=i(19339),w=[function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"companyActivation__helpImage"},[t("img",{attrs:{src:i(72231),width:"100%",alt:""}})])}],S=i(8921),M=i(24176),A=i(58249),k=i(21638),I=i(28759),x=i(21395),N=i(20020);let T=(0,a.tZ)("CompanyVerification");class D extends l.lD{async created(){let t=await this.employeeService.getEmployees(this.company,void 0,{status:["awaiting_company_verification"]});this.willTriggerEmployeeInvites=t.itemCount>0}get verifyEnterpriseNumberIntroText(){return this.verificationThrottled?this.$t("enterprise_number_verification.contact_care").toString():this.hasVerificationCodeBeenSent?this.isActiveCompany?this.$t("enterprise_number_verification.verify_to_change_invoicing").toString():this.$t("enterprise_number_verification.verify_to_send_employee_invites").toString():this.isActiveCompany?this.$t("enterprise_number_verification.invoicing_changed_after_verification").toString():this.$t("enterprise_number_verification.double_check_company").toString()}get hasRecentlyChangedEnterpriseNumber(){return this.isActiveCompany&&!!this.company.pendingEnterpriseNumber}get isNewlyCreatedCompany(){return"created"===this.company.state}get isActiveCompany(){return"active"===this.company.state}get needsToVerifyExistence(){return this.isNewlyCreatedCompany||this.hasRecentlyChangedEnterpriseNumber}get hasVerificationCodeBeenSent(){return"code_sent"===this.company.verificationState}
34get canFillInVerificationCode(){return this.hasVerificationCodeBeenSent&&!this.verificationThrottled}get company(){return(0,b._w)(this.session.company)}get companies(){return(0,b._w)(this.session.companies)}async submitVerificationCode(){try{if(this.isIncorrectVerificationCode=!1,this.checkingVerificationCode=!0,!this.prevalidateVerificationCode())return;this.trackingService.b2bVerifyingCompany(),await this.uwa.verifyCompany(this.company.id,this.verificationCode),this.trackingService.b2bCompanyVerified();let t=this.company.id,e=(0,x.A4)(this.companies).map(e=>(e.id===t&&(e.state="active",e.verificationState="verified",e.enterpriseNumber=e.pendingEnterpriseNumber||e.enterpriseNumber,delete e.pendingEnterpriseNumber),e));this.session.update({companies:e}),this.willTriggerEmployeeInvites?this.notify.success("enterprise_number_verification.successfully_verified_with_invites_sent"):this.notify.success("enterprise_number_verification.successfully_verified")}catch(i){let t=S.Ay.of(i),e=(0,N.v)(t,[{code:S.O4.INVALID_VALUE,field:"code",on:"verification_code",message:"verification_code_incorrect"}]);this.validationErrors=e.result,e.firstIssue?this.isIncorrectVerificationCode=!0:t.code===S.O4.REQUEST_THROTTLED?this.verificationThrottled=!0:(T.error("Failed to verify company",i),this.notifyGenericErrors(i))}finally{this.checkingVerificationCode=!1}}prevalidateVerificationCode(){return this.validationErrors={},4===this.verificationCode.replace(/[^A-Z0-9]/i,"").length||(this.validationErrors.verification_code=["incomplete_verification_code"],this.isIncorrectVerificationCode=!0,!1)}clearValidationErrors(){this.validationErrors={},this.isIncorrectVerificationCode=!1}constructor(...t){super(...t),this.checkingVerificationCode=!1,this.verificationCode="",this.validationErrors={},this.isIncorrectVerificationCode=!1,this.verificationThrottled=!1}}(0,s.Cg)([(0,l.y_)()],D.prototype,"trackingService",void 0),(0,s.Cg)([(0,l.y_)()],D.prototype,"session",void 0),(0,s.Cg)([(0,l.y_)()],D.prototype,"uwa",void 0),(0,s.Cg)([(0,l.y_)()],D.prototype,"employeeService",void 0);var $=D=(0,s.Cg)([(0,l.uA)({components:{CallToAction:M.A,Field:A.A,PinLikeInput:k.A,IntroBlock:I.A}})],D),P=(0,_.A)($,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.needsToVerifyExistence?e("div",{staticClass:"ContentBoxList styleLevel1 enterpriseNumberVerification"},[e("div",{staticClass:"ContentBoxList__item"},[e("div",{staticClass:"companyActivation",class:{fullWidth:!t.canFillInVerificationCode}},[e("IntroBlock",{attrs:{title:t.$t("enterprise_number_verification.title"),titleAppearance:"h4",titleTag:"h2",description:t.verifyEnterpriseNumberIntroText}}),t.canFillInVerificationCode?[t._m(0),e("Field",{staticClass:"companyActivation__inputContainer",attrs:{label:t.$t("enterprise_number_verification.field_label"),validationErrors:t.$tList(t.validationErrors.verification_code,"validationError__"),overrideRequired:!0}},[e("PinLikeInput",{attrs:{name:"verification_code",allowAlphanumericCharacters:!0,disabled:t.checkingVerificationCode,inputIsValid:!t.isIncorrectVerificationCode},on:{input:function(e){return t.clearValidationErrors()},submit:function(e){return t.submitVerificationCode()}},model:{value:t.verificationCode,callback:function(e){t.verificationCode="string"==typeof e?e.trim():e},expression:"verificationCode"}})],1),e("div",{staticClass:"companyActivation__cta"},[e("CallToAction",{attrs:{once:t.submitVerificationCode,disabled:t.checkingVerificationCode,type:"submit"}},[t._v(" "+t._s(t.$t("enterprise_number_verification.submit_verification_code"))+" ")])],1)]:t._e()],2)])]):t._e()},w,!1,null,"2c5ff996",null).exports,L=i(2753),E=i(18430),O=i(50870),z=i(78307),j=i(3231);class B extends l.lD{toggleMoreSlideout(){this.moreOptionsMenuOpened=!this.moreOptionsMenuOpened}closeMoreMenu(){this.moreOptionsMenuOpened=!1}navigateToBulkImport(){this.$router.push({name:j.A.addMultipleEmployees})}openSearchBar(){this.showSearchBar=this.showSearchBar||!!this.value}toggleSearch(t){this.showSearchBar=t,t?this.employeesFilterSearchInput.giveFocus():this.$emit("input","")}get filterPanelRoute(){return{...this.$route,query:{...this.$route.query,spc:(0,O.n)("b2b-employee-filter")}}}constructor(...t){super(...t),this.showSearchBar=!1,this.RouteName=j.A,this.filterIcon=E,this.filterIconActive=L,this.moreOptionsMenuOpened=!1}}(0,s.Cg)([(0,l.y_)()],B.prototype,"config",void 0),(0,s.Cg)([(0,l.oS)()],B.prototype,"employeesFilterSearchInput",void 0),(0,s.Cg)([(0,l.kv)()],B.prototype,"value",void 0),(0,s.Cg)([(0,l.kv)({default:!1})],B.prototype,"canAddEmployees",void 0),(0,s.Cg)([(0,l.kv)({default:!1})],B.prototype,"filterActive",void 0),(0,s.Cg)([(0,l.kv)({type:String,required:!1})],B.prototype,"employeeCsvUrl",void 0),(0,s.Cg)([(0,l.kv)({type:Function,default:()=>()=>{}})],B.prototype,"addEmployee",void 0),(0,s.Cg)([(0,l.kv)({type:String,required:!1})],B.prototype,"extraDescribedBy",void 0),(0,s.Cg)([(0,l.ox)("value",{immediate:!0})],B.prototype,"openSearchBar",null);var F=B=(0,s.Cg)([(0,l.uA)({components:{SearchInput:z.A,CallToAction:M.A}})],B),q=(0,_.A)(F,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"employeesFilterBar nextStyleLevel"},[e("div",{staticClass:"employeesFilterBar__buttonsPanel"},[t.canAddEmployees?e("CallToAction",{staticClass:"add-employee-button",attrs:{"data-qa":"add-employee-button",appearance:"primary",once:t.addEmployee,hideTextOnMobile:!0,icon:i(63287)}},[t._v(" "+t._s(t.$t("b2b_employees.add_employee"))+" ")]):t._e(),e("div",{staticClass:"employeesFilterBar__buttonGroup nextStyleLevel"},[e("CallToAction",{staticClass:"search-bar-toggle-button",attrs:{"data-qa":"search-bar-toggle-button",appearance:"toolbarBtn","aria-controls":"employeesFilterBarSearchPanel",icon:i(68609),toggled:t.showSearchBar,hideTextOnMobile:!0},on:{toggle:t.toggleSearch}},[t._v(" "+t._s(t.$t("search"))+" ")]),!t.config.featureFlags.b2bBulkEmployeeImport&&t.employeeCsvUrl?e("CallToAction",{attrs:{appearance:"toolbarBtn",icon:i(94031),href:t.employeeCsvUrl,hideTextOnMobile:!0}},[t._v(" "+t._s(t.$t("usage_overview.export"))+" ")]):t._e(),e("CallToAction",{staticClass:"filter-button",attrs:{appearance:"toolbarBtn",to:t.filterPanelRoute,title:t.filterActive?t.$t("filter__active"):t.$t("filter"),icon:t.filterActive?t.filterIconActive:t.filterIcon,hideTextOnMobile:!0}},[t._v(" "+t._s(t.$t("filter"))+" ")]),t.config.featureFlags.b2bBulkEmployeeImport?e("div",{directives:[{name:"trap-focus",rawName:"v-trap-focus"}],staticClass:"employeesFilterBar__moreDropdown",on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.closeMoreMenu.apply(null,arguments)}}},[e("CallToAction",{attrs:{appearance:"toolbarBtn",icon:i(22495),toggled:t.moreOptionsMenuOpened,"aria-expanded":t.moreOptionsMenuOpened,hideTextOnMobile:!0},on:{toggle:t.toggleMoreSlideout}},[e("span",[t._v(t._s(t.$t("categories_filter.more")))])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.moreOptionsMenuOpened,expression:"moreOptionsMenuOpened"},{name:"on-click-outside",rawName:"v-on-click-outside",value:t.closeMoreMenu,expression:"closeMoreMenu"},{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"toolbarBtnSlideOut"},[e("RouterLink",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"toolbarBtnSlideOut__link toolbarBtnSlideOut__link--import",attrs:{to:{name:t.RouteName.addMultipleEmployees}}},[e("span",[t._v(t._s(t.$t("b2b_employees.import_employees")))])]),e("a",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"toolbarBtnSlideOut__link toolbarBtnSlideOut__link--export",attrs:{href:t.employeeCsvUrl},on:{click:t.closeMoreMenu}},[e("span",[t._v(" "+t._s(t.$t("b2b_employees.export_employees"))+" ")])])],1)],1):t._e()],1)],1),e("div",{staticClass:"employeesFilterBar__searchBarPanel employee-search-input",attrs:{id:"employeesFilterBarSearchPanel","data-qa":"employee-search-input","aria-hidden":!t.showSearchBar}},[e("SearchInput",{ref:"employeesFilterSearchInput",attrs:{describedBy:`employees-filter-search-input-instructions ${t.extraDescribedBy}`,value:t.value},on:{input:function(e){return t.$emit("input",e)}}}),e("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{id:"employees-filter-search-input-instructions"}},[t._v(" "+t._s(t.$t("employees_filter_bar.search_field_instructions__screenread"))+" ")])],1)])},[],!1,null,"6df717d1",null).exports;let R=(0,a.tZ)("Employees");class U extends l.lD{beforeDestroy(){this.stopListeningToEmployeeUpdates?.()}async created(){this.updateEmployeeSearch=this.domUtils.debounce(this.updateEmployeeSearch.bind(this)),this.loadingEmployees=await o.A.ofItems([1,2,3])}get tableRowColumns(){var t;return[{id:"initials",label:""},{id:"lastName",label:(t=this.$t.bind(this))("name")},{id:"reduction",label:t("product_type__postpaid")},{id:"oob",label:""},{id:"state",label:t("status")}]}get company(){return(0,b._w)(this.session.company)}get noEmployeesMatchedDisclaimer(){return this.activeFilter.search?this.$t("b2b_employees.no_employees_match_{searchTerm}",{searchTerm:this.activeFilter.search}):this.filterActive?this.$t("b2b_employees.no_employees_match_your_filter"):""}get hasNoEmployees(){return!!this.employees&&this.employees.isEmpty&&!this.filterActive&&!this.activeFilter.search}get noEmployeesMatchedCtaText(){return this.activeFilter.search?this.$t("b2b_employees.no_employees_match_empty_search_field_cta"):this.filterActive?this.$t("b2b_employees.no_employees_match_remove_filters_cta"):""}get noEmployeesMatchedCta(){return this.activeFilter.search?()=>{this.searchExpression=""}:this.filterActive?this.clearFilters:null}get isInactiveCompany(){return"inactive"===this.company.state}get canViewEmployees(){return["created","inactive","active"].includes(this.company.state)}get canAddEmployees(){return["created","active"].includes(this.company.state)}get willNewEmployeeInvitesBeSentLater(){return"created"===this.company.state}get filterActive(){let t=Object.keys(this.$route.query||{});return["employeeStatus","employeeReductions"].some(e=>t.includes(e))}get activeFilter(){let t=this.$route.query,e={};return"string"==typeof t.employeeStatus&&(e.status=t.employeeStatus.split(",")),"string"==typeof t.employeeReductions&&(e.reduction=t.employeeReductions.split(",").map(t=>+t)),"string"==typeof t.employeeSearch&&(e.search=(0,C.E)(t.employeeSearch)||t.employeeSearch),e}clearFilters(){let t=(0,r.Bb)({...this.$route.query,employeeStatus:void 0,employeeReductions:void 0});this.$router.push({...this.$route,query:t})}async addEmployee(){this.loading&&await this.loading,this.$router.push({name:this.hasNoEmployees?j.A.b2bAdditionalInfo:j.A.addAnEmployee})}get employeeCsvUrl(){let t=this.config.uwa.baseUrl,e=this.company.id;return`${t}mv/companies/${e}/employees/export/?auth_token=${this.session.token}`}get activeFilterJson(){return JSON.stringify(this.activeFilter)}onSearchExpressionUpdated(){this.updateEmployeeSearch()}updateEmployeeSearch(){this.$router.push({...this.$route,query:{...this.$route.query,employeeSearch:this.searchExpression||void 0}})}syncSearchExpression(){this.searchExpression=this.activeFilter.search||""}async loadEmployees(){this.loading=(async()=>{this.employees=null;try{this.canViewEmployees?(this.employees=await this.employeeService.getEmployees(this.company,this.sorting,this.activeFilter,10),this.startListeningToEmployeeUpdates(this.company)):this.employees=await o.A.empty()}catch(t){R.error("Failed to load employees",t),this.goToError()}finally{this.loading=!1}})()}startListeningToEmployeeUpdates(t){this.stopListeningToEmployeeUpdates?.(),this.stopListeningToEmployeeUpdates=this.employeeService.onEmployeeModification(t,()=>{this.loadEmployees()})}constructor(...t){super(...t),this.sorting=new n.A(["lastName","reduction","state"],[{column:"lastName",direction:"ascending"}]),this.loading=!1,this.employees=null,this.stopListeningToEmployeeUpdates=null,this.RouteName=j.A,this.loadingEmployees=null,this.searchExpression=""}}(0,s.Cg)([(0,l.y_)()],U.prototype,"uwa",void 0),(0,s.Cg)([(0,l.y_)()],U.prototype,"session",void 0),(0,s.Cg)([(0,l.y_)()],U.prototype,"goToError",void 0),(0,s.Cg)([(0,l.y_)()],U.prototype,"employeeService",void 0),(0,s.Cg)([(0,l.y_)()],U.prototype,"domUtils",void 0),(0,s.Cg)([(0,l.y_)()],U.prototype,"config",void 0),(0,s.Cg)([(0,l.ox)("searchExpression")],U.prototype,"onSearchExpressionUpdated",null),(0,s.Cg)([(0,l.ox)("activeFilterJson",{immediate:!0})],U.prototype,"syncSearchExpression",null),(0,s.Cg)([(0,l.ox)("session.company.id",{immediate:!0}),(0,l.ox)("activeFilterJson"),(0,l.ox)("sorting.order",{deep:!0})],U.prototype,"loadEmployees",null);var V=U=(0,s.Cg)([(0,l.uA)({components:{IconWithText:v.A,EmployeesFilterBar:q,CompanyVerification:P,EmployeeTableRow:m,MvTable:y.A,ErrorPanel:g.A,InlineNotification:f.A}})],U),W=(0,_.A)(V,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"employeesView"},[t.isInactiveCompany?e("ErrorPanel",{staticClass:"errorPanel-inactiveCompany",attrs:{"data-qa":"error-panel-inactive-company",title:t.$t("b2b.inactive_company_title"),description:t.$t("b2b.inactive_company_description")}}):t._e(),e("CompanyVerification"),t.canViewEmployees?[t.willNewEmployeeInvitesBeSentLater?e("InlineNotification",{staticClass:"employeesView__notification invitations-sent-later-notification",attrs:{notificationType:"info","data-qa":"invitations-sent-later-notification"}},[t._v(" "+t._s(t.$t("b2b_employees.new_employee_invites_will_be_sent_later"))+" ")]):t._e(),e("div",[!t.hasNoEmployees&&(t.employees||t.loading)?[e("EmployeesFilterBar",{staticClass:"employee
34View__filterBar",attrs:{addEmployee:t.addEmployee,extraDescribedBy:"employees-filter-bar-extra-describe",filterActive:t.filterActive,canAddEmployees:t.canAddEmployees,employeeCsvUrl:t.employeeCsvUrl},model:{value:t.searchExpression,callback:function(e){t.searchExpression=e},expression:"searchExpression"}})]:t._e(),t.loading?[t.loadingEmployees?[e("MvTable",{staticClass:"loading-employees",attrs:{"data-qa":"loading-employees",columnHeaders:t.tableRowColumns,"aria-busy":"true",tableMinWidth:"860px","aria-label":t.$t("b2b.employee_listing"),records:t.loadingEmployees},scopedSlots:t._u([{key:"default",fn:function({}){return[e("EmployeeTableRow",{attrs:{employee:null}})]}}],null,!1,0x906bfc4a)})]:t._e()]:t.canAddEmployees&&t.hasNoEmployees?[e("ErrorPanel",{attrs:{"data-qa":"no-employees",title:t.$t("b2b_employees.no_employees_yet"),description:t.$t("b2b_employees.no_employees_yet_description"),ctaText:t.$t("b2b_employees.add_employee"),ctaRoute:{name:t.RouteName.b2bAdditionalInfo},ctaIdentifier:"add-employee-button",ctaAppearance:"primary",iconCssVar:"--icon-fish-bg-url",appearance:"ribbon"}})]:t.employees&&!t.hasNoEmployees?[e("MvTable",{staticClass:"employees",attrs:{"data-qa":"employees",columnHeaders:t.tableRowColumns,tableMinWidth:"860px",sorting:t.sorting,noRecordsDisclaimer:t.noEmployeesMatchedDisclaimer,"aria-label":t.$t("b2b.employee_listing"),records:t.employees},scopedSlots:t._u([{key:"default",fn:function({record:t}){return[e("EmployeeTableRow",{attrs:{employee:t}})]}},{key:"empty",fn:function(){return[e("IconWithText",{staticClass:"no-employees-matched",attrs:{"data-qa":"no-employees-matched",iconUrl:"--icon-anchor-bg-url",text:t.noEmployeesMatchedDisclaimer,ctaText:t.noEmployeesMatchedCtaText,cta:t.noEmployeesMatchedCta}})]},proxy:!0}],null,!1,0x39f2641d)}),e("div",{staticClass:"exclVatNotice"},[t._v(t._s(t.$t("b2b_default_reduction.all_prices_excl_vat")))])]:t._e()],2)]:t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{id:"employees-filter-bar-extra-describe","aria-live":"polite","aria-atomic":"true"}},[t.employees?[t._v(t._s(t.$t("employees_filter_bar_employees_found_{employeeCount}__screenread",{employeeCount:t.employees.itemCount})))]:t._e()],2)],2)},[],!1,null,null,null).exports},22323:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return te}});var s,a,n=i(32198),o=i(67953),r=i(17861),l=i(93110),d=i(50870),c=i(67537);class u extends o.lD{async warnAboutMissingPhoneNumber(){!this.config.featureFlags.forceCompletingPhoneNumber||this.session.isImpersonating||!this.session.profile||this.session.profile.phone||this.session.mobileSubscriptions?.filter(t=>t.isOwner)?.some(c.j)||this.$route.query.spc!==(0,d.n)("phone-number")&&(await this.alert(this.$t("update_phone_number.we_need_your_phone_number_to_continue"),{title:this.$t("update_phone_number.we_are_missing_some_data"),dismiss:this.$t("update_phone_number.to_phone_number_form")}),this.$router.push({query:{spc:(0,d.n)("phone-number")}}))}render(t){}}(0,n.Cg)([(0,o.y_)()],u.prototype,"session",void 0),(0,n.Cg)([(0,o.y_)()],u.prototype,"config",void 0),(0,n.Cg)([(0,o.y_)()],u.prototype,"alert",void 0),(0,n.Cg)([(0,o.ox)("$route"),(0,o.ox)("$route.query.spc",{immediate:!0}),(0,l.A)()],u.prototype,"warnAboutMissingPhoneNumber",null);var p=u=(0,n.Cg)([(0,o.uA)({})],u),h=i(41618),_=(0,h.A)(p,s,a,!1,null,null,null).exports,m=i(2202);class g extends o.lD{}(0,n.Cg)([(0,o.y_)()],g.prototype,"config",void 0);var v=g=(0,n.Cg)([(0,o.uA)({components:{MyVikingFooter:m.A}})],g),f=(0,h.A)(v,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"FloatingFrame"},[t("main",{staticClass:"FloatingFrame__Content"},[this._t("default")],2),t("div",{staticClass:"backOption"},[t("a",{attrs:{href:this.config.baseUrl}},[t("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("login.back_to_home"),expression:"$t('login.back_to_home')"}]})])]),t("MyVikingFooter",{staticClass:"FloatingFrame__Footer"})],1)},[],!1,null,null,null).exports,y=i(45556),b=i(5717),C=i(73603),w=i(8078),S=i(3231);class M extends o.lD{backText(t){if(!t)return"";let{route:e}=this.$router.resolve({name:t});return this.$t("back_to_{location}",{location:this.$t(e.meta?.title??e.meta?.label)}).toString()}get logoObj(){return"my-business"===this.mode?y:this.isChristmasTime?C:b}get isChristmasTime(){return this.config.isChristmasTime}constructor(...t){super(...t),this.RouteName=S.A}}(0,n.Cg)([(0,o.kv)({default:"my-viking"})],M.prototype,"mode",void 0),(0,n.Cg)([(0,o.kv)()],M.prototype,"backRoute",void 0),(0,n.Cg)([(0,o.kv)({default:"logo"})],M.prototype,"backMode",void 0),(0,n.Cg)([(0,o.y_)()],M.prototype,"config",void 0);var A=M=(0,n.Cg)([(0,o.uA)({components:{MyVikingUserMenu:w.A}}
34)],M),k=(0,h.A)(A,function(){var t=this._self._c;return this._self._setupProxy,t("header",[this.backRoute&&"logo"===this.backMode?t("RouterLink",{staticClass:"myViking-frame-content__logo headerLogo",attrs:{to:{name:this.backRoute},title:this.backText(this.backRoute)}},[t("img",{staticClass:"headerLogo__img",attrs:{src:this.logoObj,alt:""}})]):this._e(),this.backRoute&&"button"===this.backMode?t("RouterLink",{directives:[{name:"rippleEffect",rawName:"v-rippleEffect"}],staticClass:"myViking-frame-content__back",attrs:{to:{name:this.backRoute},title:this.backText(this.backRoute)}},[t("span",[this._v(this._s(this.backText(this.backRoute)))])]):this._e(),t("h1",{staticClass:"myViking-frameTitle"},[this._t("default")],2),t("MyVikingUserMenu",{staticClass:"userMenu"})],1)},[],!1,null,null,null).exports,I=i(86904),x=i(24176),N=i(99679);class T extends o.lD{get listeners(){return this.notification.isDismissible||this.notification.onDismiss?{dismiss:this.dismiss}:null}dismiss(){this.notification.onDismiss&&this.notification.onDismiss(),this.notify.clear(this.notification.key)}}(0,n.Cg)([(0,o.kv)({required:!0})],T.prototype,"notification",void 0);var D=T=(0,n.Cg)([(0,o.uA)({components:{CallToAction:x.A,InlineNotification:N.A}})],T),$=(0,h.A)(D,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("InlineNotification",t._g({attrs:{notificationType:t.notification.level},scopedSlots:t._u([{key:"default",fn:function(){return[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.notification.message,expression:"notification.message"}]})]},proxy:!0},t.notification.cta?{key:"cta",fn:function(){return[e("CallToAction",{attrs:{appearance:"secondary"},on:{click:t.notification.cta.handler}},[t._v(" "+t._s(t.notification.cta.label)+" ")])]},proxy:!0}:null,t.notification.cancel?{key:"secCta",fn:function(){return[e("CallToAction",{attrs:{appearance:"link"},on:{click:t.notification.cancel.handler}},[t._v(t._s(t.notification.cancel.label))])]},proxy:!0}:null],null,!0)},t.listeners))},[],!1,null,null,null).exports,P=i(21395),L=i(83487);class E extends o.lD{backText(t){let{route:e}=this.$router.resolve({name:t});return this.$t("back_to_{location}",{location:this.$t(e.meta?.title??e.meta?.label)}).toString()}get logoObj(){return this.isChristmasTime?C:b}get isChristmasTime(){return this.config.isChristmasTime}get fauxParentRouteName(){return this.$route.matched.reduce((t,e)=>e.meta.fauxParentRouteName??t,null)}get navigationRoutes(){let t=this.$route.matched.find(t=>t.meta.navRoot&&t.name);return t?(0,L.Ko)(this.routes,t.name).filter(t=>t.meta&&(0,P.RP)(t.meta.nav)):[]}constructor(...t){super(...t),this.RouteName=S.A}}(0,n.Cg)([(0,o.kv)({default:"my-viking"})],E.prototype,"mode",void 0),(0,n.Cg)([(0,o.y_)()],E.prototype,"routes",void 0),(0,n.Cg)([(0,o.y_)()],E.prototype,"config",void 0);var O=E=(0,n.Cg)([(0,o.uA)({components:{}})],E),z=(0,h.A)(O,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("nav",["my-business"===t.mode?e("RouterLink",{staticClass:"navLogo navLogo--b2b",attrs:{to:{name:t.RouteName.companyEmployees},title:t.backText(t.RouteName.companyEmployees)}},[e("img",{staticClass:"navLogo__img",attrs:{src:i(75140),width:"100px",alt:"Mobile Vikings logo"}})]):e("RouterLink",{staticClass:"navLogo",attrs:{to:{name:t.RouteName.myViking},title:t.backText(t.RouteName.myViking)}},[e("img",{staticClass:"navLogo__img",attrs:{src:t.logoObj,width:"100px",alt:"Mobile Vikings logo"}})]),e("ul",[t._l(t.navigationRoutes,function(i){return e("li",{key:i.path},[e("RouterLink",{directives:[{name:"rippleEffect",rawName:"v-rippleEffect"}],class:[i.meta&&i.meta.iconClass,{isActive:t.fauxParentRouteName===i.name}],attrs:{id:i.name,to:{name:i.name,params:t.$route.params},activeClass:"isActive",target:i.meta&&i.meta.target}},[t._v(" "+t._s(i.meta&&t.$t(i.meta.label))+" ")])],1)}),e("li",{staticClass:"myViking-header__backlink"},[e("RouterLink",{directives:[{name:"rippleEffect",rawName:"v-rippleEffect"}],attrs:{to:{name:t.RouteName.homePage}}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("back_to_mobile_vikings"),expression:"$t('back_to_mobile_vikings')"}]}
34)])],1)],2)],1)},[],!1,null,null,null).exports;class j extends o.lD{get title(){return this.titleService.pageTitle}get backRoute(){return this.$route.meta?.backRoute?this.$route.meta.backRoute:"my-viking"===this.mode?S.A.myViking:S.A.companyEmployees}get inlineNotifications(){return this.staticNotificationHolder.notifications.filter(t=>!t.limitedToRoutes||this.isRouteOrPredecessorsListed(this.$route,t.limitedToRoutes))}isRouteOrPredecessorsListed(t,e){return t.matched.some(t=>t.name&&e.includes(t.name))}updated(){let t=this.$el?.querySelector(".isActive");t&&(this.previousRouterLink?this.previousRouterLink.id!==t.id&&(t.focus(),this.previousRouterLink=t):this.previousRouterLink=t)}constructor(...t){super(...t),this.RouteName=S.A,this.previousRouterLink=null}}(0,n.Cg)([(0,o.kv)({default:"my-viking"})],j.prototype,"mode",void 0),(0,n.Cg)([(0,o.kv)({default:"default"})],j.prototype,"appearance",void 0),(0,n.Cg)([(0,o.y_)()],j.prototype,"staticNotificationHolder",void 0),(0,n.Cg)([(0,o.y_)()],j.prototype,"titleService",void 0),(0,n.Cg)([(0,o.y_)()],j.prototype,"client",void 0);var B=j=(0,n.Cg)([(0,o.uA)({components:{ContentTitle:k,InlineStaticNotification:$,MyVikingFooter:m.A,ImpersonationBanner:I.A,MainNavigation:z}})],j),F=(0,h.A)(B,function(){var t=this._self._c;return this._self._setupProxy,t("div",[t("ImpersonationBanner"),t("div",{staticClass:"myViking-frame MyVikingTP",class:{"myViking-frame--b2b":"my-business"===this.mode}},[this.client.isEmbedded?this._e():t("MainNavigation",{directives:[{name:"trackingSection",rawName:"v-trackingSection",value:"left_panel",expression:"'left_panel'"}],attrs:{"aria-label":this.$t("my_viking_frame.main_navigation_aria_label"),mode:this.mode}}),t("div",{staticClass:"myViking-frame-content",class:{"myViking-frame-content--embedded":this.client.isEmbedded}},[this.client.isEmbedded?this._e():t("ContentTitle",{attrs:{backMode:"default"===this.appearance?"logo":"button",mode:this.mode,backRoute:this.backRoute}},[this._v(" "+this._s(this.title)+" ")]),t("main",{directives:[{name:"trackingSection",rawName:"v-trackingSection",value:"content",expression:"'content'"}]},["default"===this.appearance?this._l(this.inlineNotifications,function(e){return t("InlineStaticNotification",{key:e.key,staticClass:"myViking-frame-content__inlineStaticNotification",attrs:{notification:e}})}):this._e(),this._t("default")],2),this.client.isEmbedded?this._e():t("MyVikingFooter")],1)],1)],1)},[],!1,null,null,null).exports,q=i(52138);class R extends o.lD{}(0,n.Cg)([(0,o.y_)()],R.prototype,"config",void 0);var U=R=(0,n.Cg)([(0,o.uA)({components:{MyVikingFrameBasic:q.A,ImpersonationBanner:I.A}})],R),V=(0,h.A)(U,function(){var t=this._self._c;return this._self._setupProxy,t("div",[t("ImpersonationBanner"),t("MyVikingFrameBasic",{attrs:{mode:"my-business"}},[this._t("default")],2)],1)},[],!1,null,null,null).exports;class W extends o.lD{get logoObj(){return this.isChristmasTime?C:b}get isChristmasTime(){return this.config.isChristmasTime}}(0,n.Cg)([(0,o.y_)()],W.prototype,"config",void 0);var Q=W=(0,n.Cg)([(0,o.uA)({components:{MyVikingFrameBasic:q.A}})],W),Y=(0,h.A)(Q,function(){var t=this._self._c;return this._self._setupProxy,t("MyVikingFrameBasic",{attrs:{logo:this.logoObj}},[this._t("default")],2)},[],!1,null,null,null).exports,G=i(60490),H=[function(){var t=this._self._c;return this._self._setupProxy,t("nav",{staticClass:"blockIeNav"},[t("a",{attrs:{href:"/"}},[t("img",{staticClass:"blockIeNav__image",attrs:{src:i(5717)}})])])}];class Z extends o.lD{created(){this.selectedLanguage=this.locale}constructor(...t){super(...t),this.currYear=new Date().getFullYear(),this.selectedLanguage=null}}(0,n.Cg)([(0,o.y_)()],Z.prototype,"config",void 0),(0,n.Cg)([(0,o.y_)()],Z.prototype,"changeLanguage",void 0);var J=Z=(0,n.Cg)([(0,o.uA)({})],Z),K=(0,h.A)(J,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"blockIe"},[t._m(0),e("div",{staticClass:"blockIeContent"},[e("img",{staticClass:"blockIeContent__image",attrs:{src:i(38526)}}),e("h1",{staticClass:"blockIeContent__title"},[t._v(t._s(t.$t("block_ie.title")))]),e("p",{staticClass:"blockIeContent__description"},[t._v(t._s(t.$t("block_ie.description")))])]),e("div",{staticClass:"blockBackOption"},[e("a",{staticClass:"blockBackOption__link",attrs:{href:t.config.baseUrl}},[t._v(t._s(t.$t("block_ie.back_to_home")))])]),e("footer",{staticClass:"blockIeFooter"},[e("div",{staticClass:"blockIeFooter__column blockIeFooterInfo"},[e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("block_ie.footer_top",{currYear:t.currYear}),expression:"$t('block_ie.footer_top', { currYear })"}],staticClass:"blockIeFooterInfo__text"}),e("p",{staticClass:"blockIeFooterInfo__text"},[t._v(" "+t._s(t.$t("block_ie.unleashed_ltd"))+", Kempische Steenweg 309/1, 3500 Hasselt, "+t._s(t.$t("block_ie.kbo_no"))+" 886.946.917. ")]),e("nav",{staticClass:"blockIeFooterInfo__links"},[e("ul",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("block_ie.footer_links"),expression:"$t('block_ie.footer_links')"}]})])]),e("div",{staticClass:"blockIeFooter__column"},[e("div",{staticClass:"socialButtons"},[e("a",{staticClass:"socialButtons__button socialButtons__button--instagram",attrs:{href:"https://www.instagram.com/mobilevikingsbe/",target:"_blank"}},[e("span",[t._v(t._s(t.$t("visit_our_instagram_page")))])]),e("a",{staticClass:"socialButtons__button socialButtons__button--youtube",attrs:{href:"https://www.youtube.com/@MobileVikings/",target:"_blank"}},[e("span",[t._v(t._s(t.$t("visit_our_youtube_page")))])]),e("a",{staticClass:"socialButtons__button socialButtons__button--tiktok",attrs:{href:"https://www.tiktok.com/@mobilevikingsbe",target:"_blank"}},[e("span",[t._v(t._s(t.$t("visit_our_tiktok_page")))])]),e("a",{staticClass:"socialButtons__button socialButtons__button--facebook",attrs:{href:"https://fb.com/mobilevikings",target:"_blank"}},[e("span",[t._v(t._s(t.$t("visit_our_facebook_page")))])])]),e("div",{staticClass:"languageSwitchContainer"},[e("label",{staticClass:"languageSwitchContainer__label",attrs:{for:"sel_language"}},[t._v(t._s(t.$t("language"))+":")]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedLanguage,expression:"selectedLanguage"}],staticClass:"languageSwitchContainer__select",attrs:{id:"sel_language",name:"sel_language"},on:{change:[function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selectedLanguage=e.target.multiple?i:i[0]},function(e){return t.changeLanguage(e.target.value)}]}},[e("option",{attrs:{value:"nl"}},[t._v("Nederlands")]),e("option",{attrs:{value:"fr"}},[t._v("Français")]),e("option",{attrs:{value:"en"}},[t._v("English")])])])])])])},H,!1,null,"3a942ad6",null).exports;class X extends o.lD{updateSiteContext(){this.site.context=this.mode}get layout(){return this.$route.meta?.layout==="none"?{element:"RouterView"}:this.$route.meta?.layout==="wizard"?{element:G.A}:this.$route.meta?.layout==="basic"&&"my-business"===this.site.context?{element:V}:this.$route.meta?.layout==="basic"&&"my-viking"===this.site.context?{element:Y}:this.$route.meta?.layout==="details"?{element:F,props:{appearance:"details"}}:this.$route.meta?.layout==="floating"?{element:f}:{element:F}}goToError(){this.$router.push({name:this.errorRoute})}constructor(...t){super(...t),this.site={context:"my-viking"}}}(0,n.Cg)([(0,o.y_)()],X.prototype,"client",void 0),(0,n.Cg)([(0,o.kv)()],X.prototype,"sidePanelComponent",void 0),(0,n.Cg)([(0,o.kv)({default:"my-viking"})],X.prototype,"mode",void 0),(0,n.Cg)([(0,o.kv)({required:!0})],X.prototype,"errorRoute",void 0),(0,n.Cg)([(0,o.ku)()],X.prototype,"site",void 0),(0,n.Cg)([(0,o.ox)("mode",{immediate:!0})],X.prototype,"updateSiteContext",null),(0,n.Cg)([(0,o.ku)()],X.prototype,"goToError",null);var tt=X=(0,n.Cg)([(0,o.uA)({components:{ForcePhoneNumber:_,BlockIE:K,ConfirmPopup:r.A}})],X),te=(0,h.A)(tt,function(){var t=this._self._c;return this._self._setupProxy,t("div",[this.client.isIE()?[t("BlockIE")]:[t(this.layout.element,this._b({tag:"Component",attrs:{mode:this.mode}},"Component",this.layout.props,!1),[t("RouterView"),t("ForcePhoneNumber")],1)]],2)},[],!1,null,null,null).exports}
34,60807:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return M}});var s=i(32198),a=i(67953),n=i(24176),o=i(15419),r=i(99239),l=i(83487);class d extends a.lD{get logoutLink(){return(0,l.bH)(this.$route,this.$router)}}(0,s.Cg)([(0,a.y_)()],d.prototype,"session",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!0})],d.prototype,"showVikingSince",void 0),(0,s.Cg)([(0,a.kv)({type:Array,required:!0})],d.prototype,"routes",void 0);var c=d=(0,s.Cg)([(0,a.uA)({components:{CallToAction:n.A,WhoAmI:r.A,MyVikingHeaderNav:o.A}})],d),u=i(41618),p=(0,u.A)(c,function(){var t=this._self._c;return this._self._setupProxy,t("section",{staticClass:"MyVikingTP styleLevel1 MyVikingAccountHeader myViking-accountHeaderWrapper"},[t("div",{staticClass:"MyVikingAccountHeader__top myViking-accountHeader"},[t("WhoAmI",{staticClass:"MyVikingAccountHeader__whoAmI ah-userdetails",attrs:{showVikingSince:this.showVikingSince,hideLogInLogOut:!0}}),t("div",{staticClass:"MyVikingAccountHeader__cta"},[t("CallToAction",{staticClass:"logout-button",attrs:{appearance:"secondary",href:this.logoutLink}},[this._v(this._s(this.$t("logout")))])],1)],1),t("MyVikingHeaderNav",{attrs:{styleLevel:2,routes:this.routes,ariaLabel:this.$t("my_viking_account_header_nav.aria_label")}})],1)},[],!1,null,"6bee1cd4",null).exports,h=i(58294),_=i(99679),m=i(83497);let g=(0,h.tZ)("VerifyEmailBanner");class v extends a.lD{get shouldShow(){return!!this.config.featureFlags?.fe28757RequireVikingsToVerifyTheirEmail&&!!this.session.token&&"not-verified"===(0,m.zD)(this.session.token)}async verifyEmail(){try{await this.uwa.verifyCustomerEmail(),this.notify.success("verify_email_banner.email_sent")}catch(t){g.error("Failed to request email verification",t),this.notifyGenericErrors(t)}}}(0,s.Cg)([(0,a.y_)()],v.prototype,"session",void 0),(0,s.Cg)([(0,a.y_)()],v.prototype,"config",void 0),(0,s.Cg)([(0,a.y_)()],v.prototype,"uwa",void 0);var f=v=(0,s.Cg)([(0,a.uA)({components:{InlineNotification:_.A,CallToAction:n.A}})],v),y=(0,u.A)(f,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.shouldShow?e("InlineNotification",{staticClass:"VerifyEmailBanner MyVikingTP",attrs:{notificationType:"warning"},scopedSlots:t._u([{key:"default",fn:function(){return[e("strong",[t._v(t._s(t.$t("verify_email_banner.title")))]),e("div",[t._v(t._s(t.$t("verify_email_banner.description")))])]},proxy:!0},{key:"cta",fn:function(){return[e("CallToAction",{attrs:{appearance:"secondary"},on:{click:t.verifyEmail}},[t._v(" "+t._s(t.$t("verify_email_banner.cta"))+" ")])]},proxy:!0}],null,!1,0xcb985673)}):t._e()},[],!1,null,"1ca0f072",null).exports,b=i(21395),C=i(3231);class w extends a.lD{get accountRoutes(){return(0,l.Ko)(this.routes,this.navigationRoot).filter(t=>t.meta&&!!(0,b.RP)(t.meta.nav))}goToError(){this.$router.push({name:C.A.accountError})}}(0,s.Cg)([(0,a.kv)({type:String,required:!0})],w.prototype,"navigationRoot",void 0),(0,s.Cg)([(0,a.kv)({type:Boolean,required:!1,default:!0})],w.prototype,"showVikingSince",void 0),(0,s.Cg)([(0,a.y_)()],w.prototype,"routes",void 0),(0,s.Cg)([(0,a.ku)()],w.prototype,"goToError",null);var S=w=(0,s.Cg)([(0,a.uA)({components:{AccountHeader:p,VerifyEmailBanner:y}})],w),M=(0,u.A)(S,function(){var t=this._self._c;return this._self._setupProxy,t("div",[t("VerifyEmailBanner"),t("AccountHeader",{attrs:{routes:this.accountRoutes,showVikingSince:this.showVikingSince}}),t("RouterView")],1)},[],!1,null,null,null).exports},65359:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return _}});var s=i(32198),a=i(58294),n=i(94212),o=i(67953),r=i(99679),l=i(74066),d=i(50778);let c=(0,a.tZ)("InvoicesView"),u="dismissedGroupedInvoicingHint";class p extends o.lD{async mounted(){this.showGroupedInvoicingHint=await this.shouldShowGroupedInvoicingHint()}async shouldShowGroupedInvoicingHint(){return!(!this.config.featureFlags.groupedInvoicing||this.cookies.get(u))&&!!this.session.subscriptions&&!(this.session.subscriptions.filter(t=>t.isOwner&&"prepaid"!==t.type).length<2)&&await this.uwa.getGroupedInvoicingSettings()===null}async onRouteChanged(){this.showGroupedInvoicingHint=await this.shouldShowGroupedInvoicingHint()}async onProfileChange(){try{this.loading=!0;let[t,e]=await Promise.all([this.invoiceService.unpaidInvoices,this.invoiceService.paidInvoices]);this.unpaidInvoices=t.initialPage(5),this.paidInvoices=e.initialPage(5),this.adjustUnpaidInvoicesIndicator(this.unpaidInvoices.items),this.loading=!1}catch(t){c.error("Failed to load invoices",t),this.goToError()}}dismissHint(){this.cookies.set(u,"1"),this.showGroupedInvoicingHint=!1}get groupInvoicingLink(){return{...this.$route,query:{...this.$route.query,spc:"grouped-invoicing"}}}adjustUnpaidInvoicesIndicator(t){this.notificationManager.clearUnpaidInvoicesRouteNotifications(),this.notificationManager.addUnpaidInvoicesRouteNotifications(t)}constructor(...t){super(...t),this.loading=!0,this.paidInvoices=n.Y.empty(),this.unpaidInvoices=n.Y.empty(),this.showGroupedInvoicingHint=!1}}(0,s.Cg)([(0,o.y_)()],p.prototype,"session",void 0),(0,s.Cg)([(0,o.y_)()],p.prototype,"invoiceService",void 0),(0,s.Cg)([(0,o.y_)()],p.prototype,"goToError",void 0),(0,s.Cg)([(0,o.y_)()],p.prototype,"config",void 0),(0,s.Cg)([(0,o.y_)()],p.prototype,"cookies",void 0),(0,s.Cg)([(0,o.y_)()],p.prototype,"uwa",void 0),(0,s.Cg)([(0,o.y_)()],p.prototype,"notificationManager",void 0),(0,s.Cg)([(0,o.ox)("$route")],p.prototype,"onRouteChanged",null),(0,s.Cg)([(0,o.ox)("session.profile",{immediate:!0})],p.prototype,"onProfileChange",null);var h=p=(0,s.Cg)([(0,o.uA)({components:{InvoicesList:l.A,Tag:d.A,InlineNotification:r.A}})],p),_=(0,i(41618).A)(h,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"invoicesView"},[t.showGroupedInvoicingHint?e("InlineNotification",{staticClass:"invoicesView__groupedInvoiceHint",attrs:{notificationType:"hint"},on:{dismiss:function(e){return t.dismissHint()}}},[t._t("default",function(){return[e("div",{staticClass:"invoicesViewNotificationContent"},[e("Tag",{staticClass:"invoicesViewNotificationContent__tag",attrs:{appearance:"blue"}},[t._v(t._s(t.$t("new")))]),e("div",[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("invoices_list.group_your_invoices"),expression:"$t('invoices_list.group_your_invoices')"}],staticClass:"invoicesViewNotificationContent__description"}),e("RouterLink",{staticClass:"invoicesViewNotificationContent__cta",attrs:{to:t.groupInvoicingLink}},[t._v(" "+t._s(t.$t("invoices_list.group_your_invoices_cta"))+" ")])],1)],1)]})],2):t._e(),e("InvoicesList",{attrs:{loading:t.loading,paidInvoices:t.paidInvoices,unpaidInvoices:t.unpaidInvoices}})],1)},[],!1,null,"3f97388b",null).exports}
34,364:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return u}});var s=i(32198),a=i(58294),n=i(67953),o=i(56562),r=i(60016);let l=(0,a.tZ)("Notifications-view");class d extends n.lD{async created(){try{this.notificationSettings=await this.budskap.getNotificationSettings()}catch(t){l.error("Failed to fetch the notification settings",t),this.notifyGenericErrors(t)}this.loading=!1}saveToBudskap(t){return e=>(this.trackingService.onFormInteraction("notification_settings",t,e),this.budskap.setNotificationSettings({[t]:e}).then(()=>{this.consentService.updateCustomAudiencesConsent(e)}).catch(e=>{throw l.error(`The ${t} setting couldn't be saved:`,e),this.notify.error("setting_could_not_be_saved"),e}))}constructor(...t){super(...t),this.notificationSettings={},this.loading=!0}}(0,s.Cg)([(0,n.y_)()],d.prototype,"budskap",void 0),(0,s.Cg)([(0,n.y_)()],d.prototype,"session",void 0),(0,s.Cg)([(0,n.y_)()],d.prototype,"trackingService",void 0),(0,s.Cg)([(0,n.y_)()],d.prototype,"consentService",void 0),(0,s.Cg)([(0,n.kv)({default:"b2c"})],d.prototype,"context",void 0);var c=d=(0,s.Cg)([(0,n.uA)({components:{MyVikingSwitchButton:r.A,MvSection:o.A}})],d),u=(0,i(41618).A)(c,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"notifications-view"},["b2c"===this.context?t("MvSection",{staticClass:"private-notifications-settings",attrs:{title:this.$t("notification_settings.privacy_title")}},[t("ul",{staticClass:"switchButtonList styleLevel1"},[t("li",{staticClass:"switchButtonList__item"},[t("MyVikingSwitchButton",{class:{loading:this.loading},attrs:{id:"news-notifications",appearance:"inSwitchList",label:this.$t("news_notifications"),value:this.notificationSettings.generalCommunication,save:this.saveToBudskap("generalCommunication")}})],1),t("li",{staticClass:"switchButtonList__item"},[t("MyVikingSwitchButton",{class:{loading:this.loading},attrs:{id:"commercial-notifications",appearance:"inSwitchList",label:this.$t("commercial_notifications"),value:this.notificationSettings.commercialCommunication,save:this.saveToBudskap("commercialCommunication")}})],1),t("li",{staticClass:"switchButtonList__item"},[t("MyVikingSwitchButton",{class:{loading:this.loading},attrs:{id:"traffic-data-notifications",appearance:"inSwitchList",label:this.$t("traffic_data_notifications"),value:this.notificationSettings.trafficDataCommunication,save:this.saveToBudskap("trafficDataCommunication")}})],1),t("li",{staticClass:"switchButtonList__item"},[t("MyVikingSwitchButton",{class:{loading:this.loading},attrs:{id:"commercial-group-notifications",appearance:"inSwitchList",label:this.$t("proximus_group_data_sharing"),value:this.notificationSettings.proximusDataSharing,save:this.saveToBudskap("proximusDataSharing")}})],1),t("li",{staticClass:"switchButtonList__item"},[t("MyVikingSwitchButton",{class:{loading:this.loading},attrs:{id:"contact-notifications",appearance:"inSwitchList",label:this.$t("contact_notifications"),value:this.notificationSettings.customAudiences,save:this.saveToBudskap("customAudiences")}})],1)])]):"b2b"===this.context?t("MvSection",{staticClass:"private-notifications-settings",attrs:{title:this.$t("notification_settings.business_title")}},[t("ul",{staticClass:"switchButtonList styleLevel1"},[t("li",{staticClass:"switchButtonList__item"},[t("MyVikingSwitchButton",{class:{loading:this.loading},attrs:{id:"b2b-commercial-notifications",appearance:"inSwitchList",label:this.$t("notification_settings.b2b_commercial_notifications"),value:this.notificationSettings.commercialCommunicationB2b,save:this.saveToBudskap("commercialCommunicationB2b")}})],1)])]):this._e()],1)},[],!1,null,null,null).exports},7627:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return C}});var s=i(32198),a=i(58294),n=i(92577),o=i(57399),r=i(67953),l=i(70180);class d extends r.lD{get loading(){return!this.value}get description(){return this.value?"verified"===this.value.state?`${this.$t("you_are_verified")}`:"unverified"===this.value.state?`${this.$t("you_are_not_verified")}`:`${this.$t("you_are_verified_until_{date}",{date:this.formattedDate})}`:""}get formattedDate(){return this.value&&this.value.verifiedUntil?(0,l.UL)(this.value.verifiedUntil,this.locale):""}get identificationStatusWhatIsThisFaqItemId(){return this.$t("identification_status_what_is_this_faq_id")}}(0,s.Cg)([(0,r.kv)({required:!0})],d.prototype,"value",void 0);var c=d=(0,s.Cg)([r.uA],d),u=i(41618),p=(0,u.A)(c,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"identificationStatus styleLevel1",attrs:{"data-qa":"identification-status"}},[t("div",[t("strong",{staticClass:"identificationStatus__title",attrs:{"data-qa":"identification-status--title"}},[this._v(this._s(this.$t("identification_status")))]),this.loading?t("div",{staticClass:"is-loading identificationStatus__description"},[this._v("Â ")]):t("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.description,expression:"description"}],staticClass:"identificationStatus__description",attrs:{"data-qa":"identification-status--description"}})]),t("RouterLink",{staticClass:"identificationStatus__cta",attrs:{to:{...this.$route,query:{...this.$route.query,spc:"faq-item",id:this.identificationStatusWhatIsThisFaqItemId}}}},[this._v(" "+this._s(this.$t("what_is_this"))+" ")])],1)}
34,[],!1,null,null,null).exports,h=i(45656),_=i(49458),m=i(42580),g=i(67537),v=i(3231);let f=(0,a.tZ)("ProfileView");class y extends r.lD{get showB2cSharingNotice(){return!!this.site&&!!this.session&&!!this.session.mobileSubscriptions&&"my-business"===this.site.context&&this.session.mobileSubscriptions.length>0}get showB2bSharingNotice(){return!!this.site&&!!this.session&&!!this.session.companies&&"my-viking"===this.site.context&&this.session.companies.length>0}get quickSettings(){let t=this.session.profile,e={fullName:{title:this.$t("fullName").toString(),status:t?`${t.firstName} ${t.lastName}`:null,statusLength:22,query:{spc:"fullname"}},language:{title:this.$t("language").toString(),status:t?this.$t(`lang_${t.language}`).toString():null,statusLength:12,query:{spc:"language"}},email:{title:this.$t("email").toString(),status:t?t.email||"":null,statusLength:30,query:{spc:"email"}},phoneNumber:{title:this.$t("phone_number").toString(),status:t?t.phone?(0,o.i)(t.phone):this.session.subscriptions?.filter(n.sA)?.filter(t=>t.isOwner)?.some(g.j)?this.$t("change_phone_number.use_my_upcoming_new_number").toString():"":null,statusLength:10,query:{spc:"phone-number"}},password:{title:this.$t("password").toString(),status:t?"âââââââââââââââ":null,statusLength:20,query:{spc:"password"}},authorizations:{title:this.$t("profile_view.authorizations").toString(),query:{spc:"authorizations"}}};return this.config.featureFlags.pp1452EnableDescopeAuthSetup&&delete e.password,(this.session.mobileSubscriptions?.some(t=>"postpaid"===t.type&&t.isOwner)||this.session.broadbandSubscriptions?.length)&&(e.billingAddress={title:this.$t("billingAddress").toString(),status:this.customerService.getGroupedInvoicingSettings().then(t=>(0,m.vY)(t.invoicingAddress.address,this.locale,this.$t.bind(this),"single_line")).catch(t=>(f.error("Failed to load invoicing address",t),this.notifyGenericErrors(t),"")),statusLength:30,query:{spc:"billing-address"}}),this.session.mobileSubscriptions?.some(t=>!t.isOwner)&&(e.shareVikingPointsSettings={title:this.$t("settings.viking_points_sharing").toString(),status:"",statusLength:20,query:{spc:"share-viking-points-settings"}}),e}get identificationStatus(){return this.session.mobileSubscriptions&&this.session.profile&&this.session.profile.identity||null}constructor(...t){super(...t),this.RouteName=v.A}}(0,s.Cg)([(0,r.kv)({type:Boolean,required:!1,default:!0})],y.prototype,"showIdentificationStatus",void 0),(0,s.Cg)([(0,r.y_)()],y.prototype,"session",void 0),(0,s.Cg)([(0,r.y_)()],y.prototype,"site",void 0),(0,s.Cg)([(0,r.y_)()],y.prototype,"customerService",void 0),(0,s.Cg)([(0,r.y_)()],y.prototype,"config",void 0);var b=y=(0,s.Cg)([(0,r.uA)({components:{IdentificationStatus:p,LinksetInfo:h.A,QuickSettingsList:_.A}})],y),C=(0,u.A)(b,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"profileView MyVikingTP nextStyleLevel"},[this.showB2cSharingNotice?t("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("profile_view.changes_will_also_apply_in_b2c"),expression:"$t('profile_view.changes_will_also_apply_in_b2c')"}],staticClass:"profileView__changesSharedWithB2cNotice",attrs:{"data-qa":"changes-shared-with-B2C-notice"}}):this._e(),this.showB2bSharingNotice?t("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("profile_view.changes_will_also_apply_in_b2b"),expression:"$t('profile_view.changes_will_also_apply_in_b2b')"}],staticClass:"profileView__changesSharedWithB2bNotice",attrs:{"data-qa":"changes-shared-with-B2B-notice"}}):this._e(),t("QuickSettingsList",{staticClass:"profileView__quicksettings",attrs:{settings:this.quickSettings}}),this.showIdentificationStatus&&this.identificationStatus?t("IdentificationStatus",{staticClass:"profileView__identification_status",attrs:{value:this.identificationStatus}}):this._e()],1)},[],!1,null,"f60722b8",null).exports},62708:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return k}});var s=i(32198),a=i(58294);let n=["password","passkey"],o=["password","passkey","totp","email_otp"].filter(t=>!n.includes(t));var r=i(47352),l=i(73235),d=i.n(l),c=i(67953),u=i(62508);let p=(i.n(u))().component("DisplayModal",{inject:["showInModal"],render:t=>t("span"),props:{appearance:{type:String,default:"default"}},data:()=>({destroyHandle:()=>{}}),mounted(){let t=this.$slots.default;t&&(this.$data.destroyHandle=this.showInModal(t,{},{},()=>this.$emit("close")))},beforeDestroy(){this.$data.destroyHandle()}});var h=i(93670);class _ extends c.lD{get closeable(){return!!this.$listeners.close}}(0,s.Cg)([(0,c.kv)()],_.prototype,"flowId",void 0);var m=_=(0,s.Cg)([(0,c.uA)({components:{DescopeFlow:h.A,Modal:p}})],_),g=i(41618),v=(0,g.A)(m,function(){var t=this,e=t._self._c;
34return t._self._setupProxy,t.flowId?e("Modal",[e("DescopeFlow",t._g(t._b({staticClass:"DescopeModalFlow",attrs:{loadingClass:"modal-loading"}},"DescopeFlow",t.$props,!1),t.$listeners),[t.closeable?e("button",{staticClass:"DescopeModalFlow__closeBtn",on:{click:function(e){return e.preventDefault(),t.$emit("close")}}},[e("span",[t._v(t._s(t.$t("popup-close")))])]):t._e()])],1):t._e()},[],!1,null,"603b3238",null).exports,f=i(49458),y=i(56562),b=i(44492),C=i(80846),w=i(3231);let S=(0,a.tZ)("SecurityView");class M extends c.lD{async created(){await this.loadAuthSetup()}async loadAuthSetup(){try{this.authSetup=await this.uwa.getCustomerAuthenticationSetup(),S.debug("Written")}catch(t){S.error("Failed to fetch auth setup",t),this.notifyGenericErrors(t)}}get quickSettings(){return(S.debug(`Rerendering quicksettings from ${this.authSetup}`),!this.config.featureFlags.pp1452EnableDescopeAuthSetup||this.session.isImpersonating)?{password:{title:this.$t("password").toString(),status:"âââââââââââââââ",statusLength:20,query:{spc:"password"}}}:this.getFactors(n)}get mfaSettings(){if(!this.config.featureFlags.pp1452EnableDescopeAuthSetup||!this.config.featureFlags.pp1452Show2fa&&!this.authSetup?.mfa)return null;if(!this.authSetup)return{mfa:{loading:!0,title:this.$t("securityView.multi_factor_auth").toString(),hint:this.$t("securityView.multi_factor_auth__hint").toString(),status:null,toggle:async()=>{}}};let t=this.getFactors(o);if(!Object.keys(t).length)return null;let e={title:this.$t("securityView.multi_factor_auth").toString(),hint:this.$t("securityView.multi_factor_auth__hint").toString(),status:this.authSetup.mfa,toggle:this.toggleMfa.bind(this)};return this.authSetup.mfa?{mfa:e,...t}:{mfa:e}}getFactors(t){return this.authSetup?Object.fromEntries((0,r.Un)(this.authSetup.factors.map(e=>{if(!t.includes(e.type))return null;let i=t=>(t?this.$t("enabled"):this.$t("disabled")).toString();return e.teardownUrl&&e.setupUrl?[e.type,{title:this.$t(`securityView.auth_factor_${e.type}`).toString(),hint:this.$t(`securityView.auth_factor_${e.type}__hint`).toString(),status:e.enabled,toggle:async t=>{this.$router.push(t?{...this.$route,query:{...this.$route.query,setup:e.type}}:{...this.$route,query:{...this.$route.query,teardown:e.type}})}}]:[e.type,{loading:!1,title:this.$t(`securityView.auth_factor_${e.type}`).toString(),hint:this.$t(`securityView.auth_factor_${e.type}__hint`).toString(),status:"password"===e.type?"âââââââââââââââ":i(e.enabled),statusLength:20,query:e.setupUrl?{setup:e.type}:void 0,isViewOnly:!e.setupUrl,actionIcon:"passkey"===e.type?"add":void 0}]}))):this.getLoadingFactors(t)}getLoadingFactors(t){return Object.fromEntries(t.map(t=>[t,{loading:!0,title:this.$t(`securityView.auth_factor_${t}`).toString(),statusLength:7,status:null}]))}get hasPasskey(){return!!this.authSetup&&this.authSetup.factors.some(t=>"passkey"===t.type)}get hasPasskeyEnabled(){return!!this.authSetup&&this.authSetup.factors.some(t=>"passkey"===t.type&&t.enabled)}async toggleMfa(t){try{await this.uwa.updateCustomerAuthenticationSetup(t),await this.loadAuthSetup()}catch(t){throw S.error("Failed to toggle MFA",t),this.notifyGenericErrors(t),t}}get flowId(){let t=this.factorSetup??this.factorTeardown;if(!t||!this.authSetup)return null;let e=this.authSetup.factors.find(e=>e.type===t);if(!e)return null;let i=this.factorSetup?e?.setupUrl:e?.teardownUrl;return i?d().parseQuery(new(d())(i).query()).flow:null}resetLoaded(){this.flowLoading=!0}onFlowSuccess(){this.closeFlow(),this.loadAuthSetup()}closeFlow(){let t={...this.$route.query};delete t.setup,delete t.teardown,this.$router.push({...this.$route,query:t})}async deleteAllPasskeys(){if(await this.confirm(this.$t("securityView.remove_all_passkeys_are_you_sure"),this.$t("securityView.remove_all_passkeys")))try{await this.uwa.removeCustomerAuthenticationPasskeys(),await this.loadAuthSetup()}catch(t){S.error("Failed to remove passkeys",t),this.notifyGenericErrors(t)}}async logoutEverywhere(){if(await this.confirm(this.$t("securityView.logout_everywhere_are_you_sure"),this.$t("securityView.logout_everywhere")))try{await this.uwa.removeCustomerAuthenticationSessions(),this.$router.push({name:w.A.logout})}catch(t){S.error("Failed to log out everywhere",t),this.notifyGenericErrors(t)}}constructor(...t){super(...t),this.authSetup=null,this.flowLoading=!0}}(0,s.Cg)([(0,c.y_)()],M.prototype,"config",void 0),(0,s.Cg)([(0,c.y_)()],M.prototype,"uwa",void 0),(0,s.Cg)([(0,c.y_)()],M.prototype,"confirm",void 0),(0,s.Cg)([(0,c.y_)()],M.prototype,"session",void 0),(0,s.Cg)([(0,c.kv)()],M.prototype,"factorSetup",void 0),(0,s.Cg)([(0,c.kv)()],M.prototype,"factorTeardown",void 0),(0,s.Cg)([(0,c.ox)("flowId")],M.prototype,"resetLoaded",null);var A=M=(0,s.Cg)([(0,c.uA)({components:{MvSection:y.A,ThematicLinks:C.A,ThematicLink:b.A,QuickSettingsList:f.A,DescopeModalFlow:v}})],M),k=(0,g.A)(A,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"SecurityView MyVikingTP nextStyleLevel"},[e("QuickSettingsList",{staticClass:"SecurityView__quickSettings",attrs:{settings:t.quickSettings}}),t.mfaSettings?e("MvSection",{staticClass:"SecurityView__mfaSettings",attrs:{"data-qa":"mfa-settings",title:t.$t("securityView.mfa_title")}},[e("div",{staticClass:"SecurityView__mfaSettings__panel"},[e("QuickSettingsList",{staticClass:"SecurityView__mfa__quickSettings",attrs:{settings:t.mfaSettings,appearance:"singleColumn"}})],1)]):t._e(),e("DescopeModalFlow",{attrs:{flowId:t.flowId},on:{success:function(e){return t.onFlowSuccess()},close:function(e){return t.closeFlow()}}}),e("ThematicLinks",{staticClass:"nextStyleLevel"},[!t.authSetup||t.hasPasskey?e("ThematicLink",{attrs:{"data-qa":"clear-all-passkeys-link",loading:!t.authSetup,disabled:!!t.authSetup&&!t.hasPasskeyEnabled,title:t.$t("securityView.delete_all_passkeys"),tip:t.$t("securityView.delete_all_passkeys__tip")},on:{click:function(e){return t.deleteAllPasskeys()}}}):t._e(),e("ThematicLink",{attrs:{"data-qa":"logout-everywhere-link",title:t.$t("securityView.logout_everywhere"),tip:t.$t("securityView.logout_everywhere__tip")},on:{click:function(e){return t.logoutEverywhere()}}}
34)],1)],1)},[],!1,null,null,null).exports},38721:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return m}});var s=i(32198),a=i(58294),n=i(57399),o=i(67953),r=i(24176),l=i(20174),d=i(98073),c=i(78906),u=i(3231);let p=(0,a.tZ)("BundleRenewalDone");class h extends o.lD{async created(){try{if(this.loading=!0,this.renewal=await this.loadRenewal(),!this.renewal)return void this.goTo(this.$router.resolve({name:u.A.sims}));this.msisdn=(0,n.i)(this.subscription.msisdn),this.alias=this.subscription.alias||null,this.loading=!1}catch(t){p.error("Error in bundle renewal done",t),this.goToError()}}get subscription(){let t=(0,c._w)(this.session.mobileSubscriptions);return(0,c._w)(t.find(t=>t.id===this.subscriptionId))}async loadRenewal(){return this.orderId?this.uwa.getMobileMigration(this.subscription,this.orderId):null}constructor(...t){super(...t),this.loading=!1,this.RouteName=u.A,this.renewal=null,this.msisdn=null,this.alias=null}}(0,s.Cg)([(0,o.y_)()],h.prototype,"session",void 0),(0,s.Cg)([(0,o.y_)()],h.prototype,"uwa",void 0),(0,s.Cg)([(0,o.y_)()],h.prototype,"goTo",void 0),(0,s.Cg)([(0,o.y_)()],h.prototype,"goToError",void 0),(0,s.Cg)([(0,o.y_)()],h.prototype,"absoluteUrl",void 0),(0,s.Cg)([(0,o.kv)()],h.prototype,"subscriptionId",void 0),(0,s.Cg)([(0,o.kv)()],h.prototype,"orderId",void 0);var _=h=(0,s.Cg)([(0,o.uA)({components:{CallToAction:r.A,Loading:l.A,FaqSectionWizard:d.A}})],h),m=(0,i(41618).A)(_,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"bundleRenewalDone"},[this.loading?t("Loading"):[t("div",{staticClass:"bundleRenewalDone__success"},[t("div",{staticClass:"bundleRenewalDone__nextSteps"},[t("div",{staticClass:"bundleRenewalDone__nextStepWhen"},[t("span",{directives:[{name:"pii-mask",rawName:"v-pii-mask"},{name:"html-safe",rawName:"v-html-safe",value:this.$t("bundle_renewal_done.your_sim_{msisdn}_{alias}_was_renewed",{msisdn:this.msisdn,alias:this.alias}),expression:"$t('bundle_renewal_done.your_sim_{msisdn}_{alias}_was_renewed', { msisdn, alias })"}]})]),t("div",{staticClass:"bundleRenewalDone__nextStepContact"},[t("span",{directives:[{name:"pii-mask",rawName:"v-pii-mask"},{name:"html-safe",rawName:"v-html-safe",value:this.$t("bundle_renewal_done.confirm_mail_sent_to_{email}",{email:this.session.profile.email}),expression:"$t('bundle_renewal_done.confirm_mail_sent_to_{email}', { email: session.profile.email })"}]})])]),t("FaqSectionWizard",{attrs:{faqCategory:"mv-post2post"}})],1),t("footer",[t("CallToAction",{attrs:{to:{name:this.RouteName.sims}}},[this._v(this._s(this.$t("bundle_renewal_done.to_my_viking")))])],1)]],2)},[],!1,null,"fc7de0aa",null).exports},58278:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return y}});var s=i(32198),a=i(58294),n=i(90004),o=i(8921),r=i(44739),l=i(67953),d=i(58249),c=i(76573),u=i(10231),p=i(98493),h=i(66090),_=i(20020),m=i(3231);let g=(0,a.tZ)("BundleRenewalView");class v extends l.lD{async created(){if(this.subscription=this.session.mobileSubscription||null,!this.subscription||"enabled"!==this.subscription.state)return void this.$router.replace({name:m.A.myViking});try{this.balance=await this.uwa.getBalance(this.subscription.id)}catch(t){this.balance="error",g.error("Failed to load balance",t)}}async cancelRenewal(){await this.confirm(this.$t("bundle_renewal.confirm_cancel__question"),this.$t("bundle_renewal.confirm_cancel__title"),this.$t("bundle_renewal.confirm_cancel__cancel_text"),this.$t("bundle_renewal.confirm_cancel__cancel"))&&this.$router.push({name:m.A.myViking})}async doRenewal(){try{if(this.uwaValidationErrors={},!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20);return}if(!this.subscription)throw new n.p("doRenewal called without subscription");if(this.subscription.employerLink?.state==="active"){let t=await this.confirm(this.$t("bundle_renewal.confirm_renewal_when_employer_link__question"),this.$t("bundle_renewal.confirm_renewal_when_employer_link__title"),this.$t("bundle_renewal.confirm_renewal_when_employer_link__yes_renew"),this.$t("bundle_renewal.confirm_renewal_when_employer_link__no_abort"));if(!1===t&&this.$router.push({name:m.A.sims}),!t)return}let t=this.absoluteUrl(this.$router.resolve({name:m.A.bundleRenewalDone,params:{subscriptionId:this.subscription.id}}).href),e=await this.subscriptionService.renewMobileSubscriptionWithPostpaidProduct(this.subscription,"now",this.password,t);g.info(`Renewing bundle... redirecting to ${e}`),this.goTo(e),await (0,r.i4)()}
34catch(i){let t=o.Ay.of(i);switch(t.code){case o.O4.MIGRATION_ALREADY_RUNNING:this.notify.error("migrate_sim.error__already_migrating");return;case o.O4.TOO_MANY_MIGRATIONS:this.notify.error("migrate_sim.error__too_many_migrations_in_a_row");return;case o.O4.ALREADY_SWITCHED_TOO_RECENTLY:this.notify.error("migrate_sim.error__already_switched_within_short_timeframe");return;case o.O4.SUBSCRIPTION_DEACTIVATED:this.notify.error("migrate_sim.error__subscription_deactivated");return;case o.O4.NOT_ALLOWED_BECAUSE_DUNNING:this.notify.error("migrate_sim.error__not_allowed_because_dunning");return;case o.O4.SWITCHING_BLOCKED_DUE_UNPAID_INVOICES:this.notify.error("migrate_sim.error__switching_blocked_due_unpaid_invoices");return;case o.O4.SWITCHING_BLOCKED_FIRST_PAYMENT_REQUIRED:this.notify.error("migrate_sim.error__switching_blocked_first_payment_required");return;case o.O4.LEGALLY_INCOMPETENT:this.notify.error("migrate_sim.legally_incompetent");return;case o.O4.CUSTOMER_SHOULD_CONTACT_CARE:this.notify.error("migrate_sim.customer_should_contact_care");return}let e=(0,_.v)(t,[{code:o.O4.INVALID_VALUE,field:"password",on:"password",message:"password_incorrect"}]);this.uwaValidationErrors=e.result,e.firstIssue||(g.error("Failed to renew bundle",t),this.notifyGenericErrors(i)),this.domUtils.scrollToFirst(".is-invalid",20)}}constructor(...t){super(...t),this.subscription=null,this.password="",this.uwaValidationErrors={},this.balance=null}}(0,s.Cg)([(0,l.y_)()],v.prototype,"session",void 0),(0,s.Cg)([(0,l.y_)()],v.prototype,"domUtils",void 0),(0,s.Cg)([(0,l.y_)()],v.prototype,"uwa",void 0),(0,s.Cg)([(0,l.y_)()],v.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,l.y_)()],v.prototype,"goTo",void 0),(0,s.Cg)([(0,l.y_)()],v.prototype,"absoluteUrl",void 0),(0,s.Cg)([(0,l.y_)()],v.prototype,"confirm",void 0),(0,s.Cg)([(0,l.y_)()],v.prototype,"stepupMode",void 0);var f=v=(0,s.Cg)([(0,l.uA)({components:{WizardFooter:u.A,WizardStep:h.A,WizardSimInfo:p.A,Field:d.A,Password:c.A}})],v),y=(0,i(41618).A)(f,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.subscription?e("div",{staticClass:"BundleRenewalView"},[e("WizardSimInfo",{attrs:{subscription:t.subscription,balance:t.balance}}),t.subscription?[e("WizardStep",{attrs:{title:t.$t("bundle_renewal.good_to_know_title")}},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("bundle_renewal.good_to_know_content"),expression:"$t('bundle_renewal.good_to_know_content')"}],staticClass:"wizardStep__paddedContent ExternalContent"})]),"password"===t.stepupMode?e("WizardStep",{attrs:{title:t.$t("migrate_sim.your_password"),description:t.$t("migrate_sim.your_password_intro")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("Field",{attrs:{label:t.$t("password"),validationErrors:t.$tList(t.uwaValidationErrors.password,"validationError__")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"password",required:"","data-vv-as":t.$t("password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)],1)]):t._e(),e("WizardFooter",{attrs:{ctaText:"password"===t.stepupMode?t.$t("bundle_renewal.confirm"):t.$t("bundle_renewal.confirm_with_step_up"),onConfirm:t.doRenewal,secCtaText:t.$t("bundle_renewal.cancel_button")},on:{reject:function(e){return t.cancelRenewal()}}})]:t._e()],2):t._e()},[],!1,null,"c608806c",null).exports},75622:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return v}});var s=i(32198),a=i(58294),n=i(8921),o=i(67953),r=i(58249),l=i(42123),d=i(3470),c=i(10231
34),u=i(66090),p=i(34786),h=i(3231);let _=(0,a.tZ)("EditEasySwitch");class m extends o.lD{async loadEasySwitchRequest(){try{this.easySwitchRequest=await this.easySwitchService.getEasySwitchRequest(this.bbSubscriptionId),this.easySwitchRequest.state&&!["created","waiting_for_activation","escalated","rejected","partially_accepted","manual_handling"].includes(this.easySwitchRequest.state)&&(this.notify.error("easy_switch.cannot_edit_easy_switch_details"),this.$router.push({name:h.A.myViking})),this.switchOperatorDetails=this.easySwitchRequest.switchOperatorDetails,this.ceasedPhoneNumbers=this.easySwitchRequest?.ceasedPhoneNumbers}catch(t){n.Ay.of(t).code===n.O4.EASY_SWITCH_REQUEST_NOT_FOUND?this.$router.push({name:h.A.notFound}):(_.error("Failed to fetch easy switch request",t),this.notifyGenericErrors(t))}}fieldErrors(t,e){return this.hasIncorrectFields&&this.shouldMarkFieldAsInvalid(t)?[e.toString()]:[]}get disableFieldIntent(){return this.easySwitchRequest&&"partially_accepted"===this.easySwitchRequest.state?"error_only":"none"}get easySwitchIdErrors(){return this.fieldErrors("easy_switch_id",this.$t("easy_switch.easy_switch_id_was_incorrect"))}get customerNumberErrors(){return this.fieldErrors("customer_id",this.$t("easy_switch.customer_number_was_incorrect"))}get terminatePhoneNumbersErrors(){if(!this.easySwitchRequest||!this.easySwitchRequest.incorrectFields)return[];let t=this.easySwitchRequest.incorrectFields.includes("mobile_phone_numbers"),e=this.easySwitchRequest.incorrectFields.includes("fixed_phone_numbers");return t&&e?this.fieldErrors("mobile_phone_numbers",this.$tc("easy_switch.terminate_phone_number_was_incorrect",this.easySwitchRequest.ceasedPhoneNumbers.length)):t?this.fieldErrors("mobile_phone_numbers",this.$tc("easy_switch.terminate_mobile_phone_number_was_incorrect",this.easySwitchRequest.ceasedPhoneNumbers.length)):this.fieldErrors("fixed_phone_numbers",this.$tc("easy_switch.terminate_fixed_phone_number_was_incorrect",this.easySwitchRequest.ceasedPhoneNumbers.length))}get hasIncorrectFields(){return!!this.easySwitchRequest?.incorrectFields?.length}shouldMarkFieldAsInvalid(t){return this.easySwitchRequest?.incorrectFields?.includes(t)}updateEasySwitchDetails(){this.easySwitchRequest&&this.switchOperatorDetails&&(this.easySwitchRequest={...this.easySwitchRequest,subscriptionId:this.bbSubscriptionId,switchOperatorDetails:this.switchOperatorDetails,ceasedPhoneNumbers:[...this.ceasedPhoneNumbers]},this.dirty=!0)}updateTerminatePhoneNumbers(){this.$validator.errors.remove("phoneNumbers"),this.updateEasySwitchDetails()}goToFixedLinePage(){this.$router.push({name:h.A.fixedLines})}get ceasedPhoneNumbersString(){return this.ceasedPhoneNumbers.join(",")}set ceasedPhoneNumbersString(t){this.ceasedPhoneNumbers=t.split(",")}async submit(){if(this.notify.clear(),!await this.$validator.validateAll()||!this.dirty)return void this.notify.error("form_is_not_valid");try{await this.easySwitchService.updateEasySwitchRequest(this.bbSubscriptionId,this.easySwitchRequest),this.$router.push({name:h.A.editEasySwitchDone})}catch(t){if(n.Ay.of(t).fieldCode("easy_switch_id")===n.O4.INVALID_VALUE)return void this.easySwitchRequest?.incorrectFields?.push("easy_switch_id");_.error("Failed to update easy switch details",t),this.notifyGenericErrors(t)}}constructor(...t){super(...t),this.switchOperatorDetails=null,this.ceasedPhoneNumbers=[],this.easySwitchRequest=null,this.dirty=!1}}(0,s.Cg)([(0,o.y_)()],m.prototype,"easySwitchService",void 0),(0,s.Cg)([(0,o.kv)()],m.prototype,"bbSubscriptionId",void 0),(0,s.Cg)([(0,o.ox)("bbSubscriptionId",{immediate:!0})],m.prototype,"loadEasySwitchRequest",null);var g=m=(0,s.Cg)([(0,o.uA)({components:{WizardStep:u.A,Field:r.A,WizardFooter:c.A,MvForm:l.A,MultiMsisdnInput:d.A,SwitchOperatorFields:p.A}})],m),v=(0,i(41618).A)(g,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.easySwitchRequest?e("MvForm",{staticClass:"editEasySwitch"},[e("WizardStep",{staticClass:"editEasySwitch__formFields",attrs:{title:t.$t("easy_switch.edit_page_subtitle"),hideNumber:!0}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("SwitchOperatorFields",{attrs:{required:"",easySwitchIdErrors:t.easySwitchIdErrors,customerNumberErrors:t.customerNumberErrors,disableIntent:t.disableFieldIntent,operatorErrors:[]},on:{input:t.updateEasySwitchDetails},model:{value:t.switchOperatorDetails,callback:function(e){t.switchOperatorDetails=e},expression:"switchOperatorDetails"}}),e("div",[e("Field",{attrs:{label:t.$t("easy_switch.terminate_phone_numbers_label"),validationErrors:t.terminatePhoneNumbersErrors,hint:t.$t("easy_switch.terminate_phone_numbers_hint")}},[e("MultiMsisdnInput",{attrs:{acceptLandlines:!0,name:"phoneNumbers"},on:{input:t.updateTerminatePhoneNumbers},model:{value:t.ceasedPhoneNumbersString,callback:function(e){t.ceasedPhoneNumbersString=e},expression:"ceasedPhoneNumbersString"}})],1)],1)],1)]),e("WizardFooter",{attrs:{ctaText:t.$t("easy_switch.edit_cta"),secCtaText:t.$t("cancel"),onConfirm:t.submit},on:{reject:t.goToFixedLinePage}})],1):t._e()},[],!1,null,null,null).exports}
34,30293:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return _}});var s=i(32198),a=i(58294),n=i(8921),o=i(67953),r=i(78098),l=i(78160),d=i(10231),c=i(3231);let u=(0,a.tZ)("EditEasySwitchDone");class p extends o.lD{async loadEasySwitchRequest(){try{this.easySwitchRequest=await this.easySwitchService.getEasySwitchRequest(this.bbSubscriptionId)}catch(t){n.Ay.of(t).code===n.O4.EASY_SWITCH_REQUEST_NOT_FOUND?this.$router.push({name:c.A.notFound}):(u.error("Failed to fetch easy switch request",t),this.notifyGenericErrors(t))}}get operatorName(){return this.easySwitchRequest?.switchOperatorDetails.operator.name}get firstIconWithText(){return this.operatorName?{icon:"--icon-message-in-a-bottle-bg-url",text:this.$t("easy_switch.{currentOperator}_noted",{currentOperator:this.operatorName})}:{icon:"",text:""}}get secondIconWithText(){return this.easySwitchRequest?{icon:"--icon-campfire-bg-url",text:this.$t("easy_switch.{easySwitchId}_and_{customerId}_noted",{easySwitchId:this.easySwitchRequest.switchOperatorDetails.easySwitchId,customerId:this.easySwitchRequest.switchOperatorDetails.customerNumber})}:{icon:"",text:""}}get thirdIconWithText(){return this.easySwitchRequest?this.easySwitchRequest.ceasedPhoneNumbers.length?{icon:"--icon-scroll-bg-url",text:this.$t("easy_switch.terminate_{phoneNumbers}_noted",{phoneNumbers:this.easySwitchRequest.ceasedPhoneNumbers.join(", ")})}:{icon:"--icon-scroll-bg-url",text:this.$t("easy_switch.no_phone_numbers_terminated_noted")}:{icon:"",text:""}}goToFixedLinePage(){this.$router.push({name:c.A.fixedLines})}constructor(...t){super(...t),this.easySwitchRequest=null}}(0,s.Cg)([(0,o.y_)()],p.prototype,"easySwitchService",void 0),(0,s.Cg)([(0,o.kv)()],p.prototype,"bbSubscriptionId",void 0),(0,s.Cg)([(0,o.ox)("bbSubscriptionId",{immediate:!0})],p.prototype,"loadEasySwitchRequest",null);var h=p=(0,s.Cg)([(0,o.uA)({components:{WizardFooter:d.A,IconWithText:r.A,WizardDoneSummary:l.A}})],p),_=(0,i(41618).A)(h,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"editEasySwitchDone"},[t("WizardDoneSummary",{staticClass:"editEasySwitchDone__summary"},[t("IconWithText",{attrs:{iconUrl:this.firstIconWithText.icon,text:this.firstIconWithText.text}}),t("IconWithText",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],attrs:{iconUrl:this.secondIconWithText.icon,text:this.secondIconWithText.text}}),t("IconWithText",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],attrs:{iconUrl:this.thirdIconWithText.icon,text:this.thirdIconWithText.text}}),t("IconWithText",{attrs:{iconUrl:"--icon-devices-bg-url",text:this.$t("easy_switch.details_in_my_viking")}})],1),t("WizardFooter",{attrs:{onConfirm:this.goToFixedLinePage,ctaText:this.$t("easy_switch.edit_done_cta")}})],1)},[],!1,null,null,null).exports},73651:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return v}});var s=i(32198),a=i(58294),n=i(67953),o=i(62508),r=i.n(o),l=i(68850),d=i(3231);class c extends r(){get options(){if("loading"===this.loadingState)return null;if("error"===this.loadingState)return[];let t=[];return this.invite||this.session.authenticated||t.push({label:this.$t("business_status.label_invalid_invite_new_viking"),title:"",description:this.$t("business_status.description_invalid_invite_new_viking"),cta:this.$t("business_status.text_cta_invalid_invite_new_viking"),ctaHref:this.$t("business_status.link_cta_invalid_invite_new_viking"),expanded:!0}),this.invite&&(t.push({label:this.$t("business_status.label_valid_invite_existing_viking"),title:"",description:this.$t("business_status.description_valid_invite_existing_viking"),cta:this.$t("business_status.text_cta_valid_invite_existing_viking"),clickListener:()=>this.$router.push({name:d.A.joinCompany,query:{employerInvitationToken:this.invite.token}}),expanded:this.session.authenticated}),this.session.authenticated||t.push({label:this.$t("business_status.label_valid_invite_new_viking"),title:"",description:this.$t("business_status.description_valid_invite_new_viking"),cta:this.$t("business_status.text_cta_valid_invite_new_viking"),clickListener:()=>this.$router.push({name:d.A.b2bRegistrationProductSelector,query:{employerInvitationToken:this.invite.token}}),expanded:!1})),t}}(0,s.Cg)([(0,n.y_)()],c.prototype,"session",void 0),(0,s.Cg)([(0,n.kv)({default:null})],c.prototype,"invite",void 0),(0,s.Cg)([(0,n.kv)()],c.prototype,"loadingState",void 0);var u=c=(0,s.Cg)([(0,n.uA)({components:{LandingOnboardSelect:l.A}})],c),p=i(41618),h=(0,p.A)(u,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"dark-theme"},[t("LandingOnboardSelect",{attrs:{options:this.options,loading:"loading"===this.loadingState}})],1)},[],!1,null,null,null).exports;let _=(0,a.tZ)("EmployerInvite");class m extends n.lD{async loadInvitation(){if(this.loadingState="loading",null===this.employerInvitationToken){_.warning("employerInvitationToken is needed to load the invite"),this.loadingState="loaded";return}try{this.invite=await this.uwa.getB2bInvite(this.employerInvitationToken),this.loadingState="loaded",this.invite&&this.trackingService.b2bInviteAcceptLoaded(this.invite)}catch(t){this.loadingState="error",_.error("Failed to get invite",t)}finally{this.setTitle()}}setTitle(){"error"===this.loadingState?(this.titleService.pageTitle=this.$t("business_status.title_load_failed").toString(),this.titleService.pageDescription=this.$t("business_status.description_load_failed").toString()):this.invite?this.titleService.pageTitle=this.$t("business_status.title_you_were_invited_to_join_{businessName}",{businessName:this.invite.employerName}).toString():(this.titleService.pageTitle=this.$t("business_status.title_invalid_invite").toString(),this.titleService.pageDescription=this.$t("business_status.description_invali
34d_invite").toString())}constructor(...t){super(...t),this.invite=null,this.loadingState=null}}(0,s.Cg)([(0,n.y_)()],m.prototype,"uwa",void 0),(0,s.Cg)([(0,n.y_)()],m.prototype,"trackingService",void 0),(0,s.Cg)([(0,n.y_)()],m.prototype,"titleService",void 0),(0,s.Cg)([(0,n.kv)({default:null})],m.prototype,"employerInvitationToken",void 0),(0,s.Cg)([(0,n.ox)("employerInvitationToken",{immediate:!0}),(0,n.ox)("locale")],m.prototype,"loadInvitation",null);var g=m=(0,s.Cg)([(0,n.uA)({components:{B2bInviteStatus:h}})],m),v=(0,p.A)(g,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"employerInvite"},[this.loadingState?t("B2bInviteStatus",{attrs:{invite:this.invite,loadingState:this.loadingState}}):this._e()],1)},[],!1,null,null,null).exports},83574:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return w}});var s=i(32198),a=i(58294),n=i(90004),o=i(1122),r=i(8921),l=i(62765),d=i(44739),c=i(67953),u=i(14806),p=i(42123),h=i(79847),_=i(20174),m=i(91543),g=i(10231),v=i(66090),f=i(3231);let y=(0,a.tZ)("b2b-JoinWizard");class b extends c.lD{async preventDisallowedChoice(t,e){if(!t||this.isNew(t))return;let i=t.subscription;i.employerLink?(await this.alert(this.$t("b2b_join.already_linked_to_employer_longtext"),{title:this.$t("b2b_join.already_linked_to_employer_title")}),this.subscriptionChoice=e):i.pendingProduct&&!this.eligibleProduct(i.pendingProduct.product)?(await this.alert(this.$t("b2b_join.migrating_to_ineligible_product_longtext",{employerName:this.invite.employerName}),{title:this.$t("b2b_join.migrating_to_ineligible_product_title")}),this.subscriptionChoice=e):this.eligible(t)||this.migratable(t)?i.hasLegallyIncompetentOwner?(await this.alert(this.$t("b2b_join.legally_incompetent_longtext"),{title:this.$t("b2b_join.legally_incompetent_title")}),this.subscriptionChoice=e):(0,o.s1)(i.product)&&!await this.passesExtraCostCheck(i.product)&&(this.subscriptionChoice=e):(await this.alert(this.$t("b2b_join.cannot_join_using_this_subscription_longtext",{employerName:this.invite.employerName}),{title:this.$t("b2b_join.cannot_join_using_this_subscription_title")}),this.subscriptionChoice=e)}async loadInvite(t){if(!t)return void this.$router.push({name:f.A.myViking});try{this.invite=null,this.invite=await this.uwa.getB2bInvite(t),null===this.invite&&(this.$router.push({name:f.A.myViking}),await (0,d.yy)(500),this.notify.error("b2b_join.invitation_invalid_or_expired"))}catch{y.error("Failed to load b2b invite"),this.goToError()}}goodToKnow(t){return this.isNew(t)?this.$t("b2b_join.good_to_know__new_subscription"):this.eligible(t)?this.$t("b2b_join.good_to_know__eligible"):this.migratable(t)?this.$t("b2b_join.good_to_know__ineligible_but_migratable"):""}get needsToApproveTOS(){return!(!this.subscriptionChoice||this.isNew(this.subscriptionChoice))&&!(!this.eligible(this.subscriptionChoice)&&this.migratable(this.subscriptionChoice))}get onboardingRoute(){return{name:f.A.b2bRegistrationProductSelector,query:{employerInvitationToken:this.employerInvitationToken}}}get subscriptionChoices(){return[...(this.session.mobileSubscriptions?this.session.mobileSubscriptions.filter(t=>"enabled"===t.state&&t.isOwner):[]).map(t=>({id:t.id,subscription:t})),{id:"new"}]}get tosUrl(){return this.legalDocumentService.getTermsAndConditionsUrl()}isNew(t){return"new"===t.id}eligible(t){let e=t.subscription;return this.eligibleProduct(e.pendingProduct?.product||e.product)}eligibleProduct(t){if(!this.invite)return!1;let e=this.invite;return t.isB2bProduct&&(0,o.s1)(t)&&t.monthly>=e.reduction}migratable(t){let e=t.subscription,i=e.pendingProduct?.product||e.product;return!((0,o.$o)(i)&&"data-only"===i.variant)}get confirmButtonText(){return!this.subscriptionChoice||this.isNew(this.subscriptionChoice)?this.$t("b2b_join.join_employer_with_a_new_subscription"):this.eligible(this.subscriptionChoice)?this.$t("b2b_join.join_employer"):this.migratable(this.subscriptionChoice)?this.$t("b2b_join.migrate_and_join_employer"):this.$t("b2b_join.cannot_use_this_subscription")}async passesExtraCostCheck(t){if(!this.invite)throw new n.p("Check can only run with valid invite");if(t.monthly>this.invite.reduction){let e=(0,l.up)(t.monthly-this.invite.reduction,"two_if_significant");return!!await this.confirm(this.$t("b2b.confirm_extra_monthly_cost_description_{extraCost}_{employer}_{reduction}",{extraCost:e,employer:this.invite.employerName,reduction:this.invite.reduction}),this.$t("b2b.confirm_extra_monthly_cost_title"),this.$t("b2b.accept_extra_monthly_cost"),this.$t("b2b.cancel_extra_monthly_cost"))}return!0}async submit(){if(this.invite){if(!this.subscriptionChoice)return void this.notify.error("b2b_join.please_select_a_subscription");if(this.isNew(this.subscriptionChoice))return void this.$router.push({name:f.A.b2bRegistrationProductSelector,query:{employerInvitationToken:this.employerInvitationToken}});
34if(!this.eligible(this.subscriptionChoice)){if(!this.migratable(this.subscriptionChoice))throw new n.p("User managed to select an unselectable subscription");this.$router.push({name:f.A.migrate,params:{toType:"postpaid",subscriptionId:this.subscriptionChoice.id},query:{intent:"join_employer",employerInvitationToken:this.invite.token}});return}try{if(!this.legalCheck)return void this.notify.error("b2b_join.please_read_and_accept_tos");await this.uwa.joinCompany(this.invite.token,this.subscriptionChoice.id),this.trackingService.b2bCompanyJoined(this.invite),this.$router.push({name:f.A.sims,params:{subscriptionId:this.subscriptionChoice.id}}),await (0,d.yy)(500),this.notify.success("b2b_join.joined_company_{companyname}",{companyname:this.invite.employerName}),this.authService.refreshSession().catch(t=>{y.error("Failed to refresh session after joining company",t)})}catch(t){r.Ay.of(t).fieldCode("token")===r.O4.INVALID_VALUE?this.notify.error("b2b_join.invitation_invalid_or_expired"):r.Ay.of(t).code===r.O4.REQUEST_SIM_BLOCKED_DUE_UNPAID_INVOICES?this.notify.error("b2b_join.subscription_has_unpaid_invoices"):r.Ay.of(t).code===r.O4.SUBSCRIPTION_ALREADY_IS_LINKED_TO_AN_EMPLOYER?this.notify.error("b2b_join.subscription_already_linked_to_employer"):r.Ay.of(t).code===r.O4.SUBSCRIPTION_IS_NOT_ELIGIBLE_FOR_B2B?this.notify.error("b2b_join.subscription_is_not_eligible_pick_another_one"):(y.error("Failed to join company",t),this.notifyGenericErrors(t))}}}constructor(...t){super(...t),this.invite=null,this.subscriptionChoice=null,this.legalCheck=!1}}(0,s.Cg)([(0,c.kv)({required:!1,default:""})],b.prototype,"employerInvitationToken",void 0),(0,s.Cg)([(0,c.y_)()],b.prototype,"session",void 0),(0,s.Cg)([(0,c.y_)()],b.prototype,"authService",void 0),(0,s.Cg)([(0,c.y_)()],b.prototype,"uwa",void 0),(0,s.Cg)([(0,c.y_)()],b.prototype,"goTo",void 0),(0,s.Cg)([(0,c.y_)()],b.prototype,"alert",void 0),(0,s.Cg)([(0,c.y_)()],b.prototype,"goToError",void 0),(0,s.Cg)([(0,c.y_)()],b.prototype,"trackingService",void 0),(0,s.Cg)([(0,c.y_)()],b.prototype,"legalDocumentService",void 0),(0,s.Cg)([(0,c.y_)()],b.prototype,"confirm",void 0),(0,s.Cg)([(0,c.ox)("subscriptionChoice")],b.prototype,"preventDisallowedChoice",null),(0,s.Cg)([(0,c.ox)("employerInvitationToken",{immediate:!0})],b.prototype,"loadInvite",null);var C=b=(0,s.Cg)([(0,c.uA)({components:{Loading:_.A,Checkbox:u.A,SubscriptionDetails:m.A,WizardFooter:g.A,RadioGroup:h.A,WizardStep:v.A,MvForm:p.A}})],b),w=(0,i(41618).A)(C,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.invite?e("MvForm",{staticClass:"joinWizard",attrs:{name:"join-employer"}},[e("WizardStep",{staticClass:"step-subscription",attrs:{title:t.$t("b2b_join.select_subscription_title"),description:t.$t("b2b_join.select_subscription_to_join_{companyname}_description",{companyname:t.invite.employerName})}},[e("div",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],staticClass:"wizardStep__paddedContent"},[e("RadioGroup",{attrs:{options:t.subscriptionChoices,optionKey:"id"},scopedSlots:t._u([{key:"default",fn:function({option:i}){return[i.subscription?e("SubscriptionDetails",{staticClass:"joinWizard__subscriptionOption joinWizard__existingSubscriptionOption",attrs:{subscription:i.subscription}}):e("div",{staticClass:"joinWizard__subscriptionOption joinWizard__newSubscriptionOption"},[t._v(" "+t._s(t.$t("b2b_join.join_with_new_subscription"))+" ")])]}},{key:"radioGroupDescription",fn:function({option:i}){return[e("strong",{staticClass:"joinWizard__goodToKnowTitle"},[t._v(t._s(t.$t("good_to_know")))]),e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.goodToKnow(i),expression:"goodToKnow(option)"}],staticClass:"ExternalContent"})]}}]),model:{value:t.subscriptionChoice,callback:function(e){t.subscriptionChoice=e},expression:"subscriptionChoice"}})],1)]),t.subscriptionChoice&&!t.isNew(t.subscriptionChoice)?e("WizardStep",{staticClass:"joinWizard__summary",attrs:{hideNumber:!0}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("h3",[t._v(t._s(t.$t("b2b_join.summary_title")))]),e("div",{staticClass:"joinWizard__summaryItems"},[e("div",[e("h4",{staticClass:"joinWizard__summaryTitle"},[t._v(t._s(t.$t("b2b_join.phone_number")))]),e("div",{staticClass:"joinWizard__summaryPrimary"},[t._v(t._s(t._f("msisdn")(t.subscriptionChoice.subscription.msisdn)))]),e("div",{staticClass:"joinWizard__summarySecondary"},[t._v(t._s(t.subscriptionChoice.subscription.alias))])]),e("div",{staticClass:"joinWizard__employerDisclaimer"},[e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("b2b_join.number_will_be_disclosed_to_employer"),expression:"$t('b2b_join.number_will_be_disclosed_to_employer')"}]})])])])]):t._e(),e("WizardFooter",{attrs:{ctaText:t.confirmButtonText,secCtaText:t.$t("cancel"),onConfirm:t.submit},on:{reject:function(e){return t.goTo("/")}},scopedSlots:t._u([{key:"legalChecks",fn:function(){return[t.needsToApproveTOS?e("Checkbox",{staticClass:"tosCheckbox",attrs:{label:t.$t("b2b_join.agree_to_{tosUrl}",{tosUrl:t.tosUrl})},model:{value:t.legalCheck,callback:function(e){t.legalCheck=e},expression:"legalCheck"}}):t._e()]},proxy:!0}])})],1):e("Loading")},[],!1,null,"62d717e4",null).exports}
34,24227:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return v}});var s=i(32198),a=i(58294),n=i(62765),o=i(67953),r=i(42123),l=i(99679),d=i(98073),c=i(10231),u=i(66090),p=i(37882),h=i(3231);let _=(0,a.tZ)("ProductSelector");class m extends o.lD{async mounted(){try{this.employerInvitationToken&&(this.b2bInvite=await this.uwa.getB2bInvite(this.employerInvitationToken)),this.b2bInvite||(this.b2bInvite="invalid")}catch(t){_.error("Failed to load b2b invite",t),this.notifyGenericErrors(t)}}async submit(){!this.product||await this.refuseExtraB2bCost(this.product)||this.startOnboarding(this.product,this.employerInvitationToken)}async refuseExtraB2bCost(t){if(!this.b2bInvite||"invalid"===this.b2bInvite)return!1;let e=t.monthly-this.b2bInvite.reduction;return!(e<=0)&&!await this.confirm(this.$t("b2b.confirm_extra_monthly_cost_description_{extraCost}_{employer}_{reduction}",{extraCost:(0,n.up)(e,"two_if_significant"),employer:this.b2bInvite.employerName,reduction:this.b2bInvite.reduction}),this.$t("b2b.confirm_extra_monthly_cost_title"),this.$t("b2b.accept_extra_monthly_cost"),this.$t("b2b.cancel_extra_monthly_cost"))}cancel(){this.$router.push({name:h.A.joinCompany,query:{employerInvitationToken:this.employerInvitationToken}})}constructor(...t){super(...t),this.b2bInvite=null,this.product=null}}(0,s.Cg)([(0,o.y_)()],m.prototype,"uwa",void 0),(0,s.Cg)([(0,o.y_)()],m.prototype,"confirm",void 0),(0,s.Cg)([(0,o.y_)()],m.prototype,"startOnboarding",void 0),(0,s.Cg)([(0,o.kv)()],m.prototype,"employerInvitationToken",void 0);var g=m=(0,s.Cg)([(0,o.uA)({components:{WizardFooter:c.A,WizardStep:u.A,MvForm:r.A,PostpaidSelector:p.default,InlineNotification:l.A,FaqSectionWizard:d.A}})],m),v=(0,i(41618).A)(g,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"productSelector",attrs:{name:"join-company-product-selection"}},["invalid"===t.b2bInvite?e("InlineNotification",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("join_company.your_invite_is_not_valid"),expression:"$t('join_company.your_invite_is_not_valid')"}],attrs:{notificationType:"error"}}):[e("WizardStep",{attrs:{hideNumber:!0,title:t.$t("product_selector.route_description")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("PostpaidSelector",{attrs:{loading:!t.b2bInvite,styleLevel:1,restrictToB2bProducts:!0,b2bReduction:t.b2bInvite?t.b2bInvite.reduction:0},model:{value:t.product,callback:function(e){t.product=e},expression:"product"}})],1)]),e("WizardFooter",{attrs:{ctaText:t.$t("i_want_this"),onConfirm:t.submit,secCtaText:t.$t("cancel")},on:{reject:function(e){return t.cancel()}}})],t.b2bInvite?e("FaqSectionWizard",{attrs:{faqCategory:"b2binvite",faqType:"b2b"}}):t._e()],2)},[],!1,null,"4b338a57",null).exports},35016:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return c}});var s=i(32198),a=i(67953),n=i(44492),o=i(80846),r=i(3231);class l extends a.lD{get showLineCheckLink(){return!!this.config.featureFlags.displayLineCheck}get lineCheckLocation(){return{name:r.A.broadbandLineCheck}}get speedtestLink(){return this.$t("bb_troubleshoot.speedtest_url").toString()}get troubleshootLink(){return this.session.broadbandSubscription?.modem?.type?this.$t(`bb_troubleshoot.troubleshoot_support_${this.session.broadbandSubscription.modem.type}_url`).toString():""}constructor(...t){super(...t),this.RouteName=r.A}}(0,s.Cg)([(0,a.y_)()],l.prototype,"config",void 0),(0,s.Cg)([(0,a.y_)()],l.prototype,"session",void 0);var d=l=(0,s.Cg)([(0,a.uA)({components:{ThematicLinks:o.A,ThematicLink:n.A}})],l),c=(0,i(41618).A)(d,function(){var t=this._self._c;return this._self._setupProxy,t("ThematicLinks",{staticClass:"nextStyleLevel"},[t("ThematicLink",{attrs:{title:this.$t("bb_troubleshoot.speedtest_title"),tip:this.$t("bb_troubleshoot.speedtest_description"),href:this.speedtestLink}}),this.showLineCheckLink?t("ThematicLink",{attrs:{title:this.$t("bb_troubleshoot.check_line_title"),tip:this.$t("bb_troubleshoot.check_line_explanation"),to:this.lineCheckLocation}}):this._e(),this.troubleshootLink?t("ThematicLink",{attrs:{title:this.$t("bb_troubleshoot.i_have_a_problem"),tip:this.$t("bb_troubleshoot.what_is_the_problem"),href:this.troubleshootLink}}):this._e()],1)},[],!1,null,null,null).exports}
34,22110:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return d}});var s=i(32198),a=i(67953),n=i(3231),o=i(70022);class r extends a.lD{needsAppointment(t){return"wait_for_appointment_booking"===t.state||"wait_for_identification"===t.state}hasAppointment(t){return!!t.installation.timeSlot}orderTitle(t){return t?this.needsAppointment(t)?t.multipleAppointmentsNeeded?this.$t("broadbandInstallationAndIdentification.first_appointment_title_afterwards").toString():this.$t("broadbandInstallationAndIdentification.installation_title_afterwards").toString():this.hasAppointment(t)?this.$t("broadbandInstallationAndIdentification.installation_title_change").toString():"":""}orderDescription(t){return t?this.needsAppointment(t)?this.$t("broadbandInstallationAndIdentification.installation_description_afterwards").toString():this.hasAppointment(t)?this.$t("broadbandInstallationAndIdentification.installation_description_change").toString():"":""}confirmCancelCreateAppointment(){return this.confirm(this.$t("broadbandInstallationAndIdentification.confirm_cancel_description_afterwards"),this.$t("broadbandInstallationAndIdentification.confirm_cancel_title_afterwards"),this.$t("yes"),this.$t("broadbandInstallationAndIdentification.confirm_cancel_afterwards_return"))}confirmCancelUpdateAppointment(){return this.confirm(this.$t("broadbandInstallationAndIdentification.confirm_cancel_description_change"),this.$t("broadbandInstallationAndIdentification.confirm_cancel_title_change"),this.$t("yes"),this.$t("broadbandInstallationAndIdentification.confirm_cancel_change_return"))}async cancelAppointment(t,e){this.needsAppointment(t)&&!await this.confirmCancelCreateAppointment()||(!this.hasAppointment(t)||!e||await this.confirmCancelUpdateAppointment())&&this.$router.push({name:n.A.broadbandSettings})}onDone({postponeAppointmentCreation:t,installationMethod:e}){t||("self_install"===e?this.notify.success("broadbandMakeAppointment.self_install_requested"):this.notify.success("broadbandMakeAppointment.appointment_ok")),this.$router.push({name:n.A.broadbandSettings})}}(0,s.Cg)([(0,a.y_)()],r.prototype,"goTo",void 0),(0,s.Cg)([(0,a.y_)()],r.prototype,"confirm",void 0),(0,s.Cg)([(0,a.kv)({required:!0})],r.prototype,"orderId",void 0);var l=r=(0,s.Cg)([(0,a.uA)({components:{BroadbandInstallationAndIdentification:o.A}})],r),d=(0,i(41618).A)(l,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"BroadbandEditAppointmentView"},[t("BroadbandInstallationAndIdentification",{attrs:{orderId:this.orderId,appearance:"inMyViking",getOrderTitle:this.orderTitle,getOrderDescription:this.orderDescription,cancelButtonLabel:this.$t("cancel")},on:{cancel:this.cancelAppointment,done:this.onDone}})],1)},[],!1,null,null,null).exports},98686:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return m}});var s=i(32198),a=i(67953),n=i(21076),o=i(28759),r=i(56562),l=i(10231),d=i(29637),c=i(78906),u=i(2691),p=i(3231);class h extends a.lD{async redirectIfNoHardwareToReturn(){let t=await this.broadbandService.getHardwareReturnInfo(this.session.broadbandSubscription);this.hardwareReturn=(0,u.wp)(t),t||this.goToFixedLinePage()}get subscription(){return(0,c._w)(this.session.broadbandSubscription)}goToFixedLinePage(){this.$router.push({name:p.A.fixedLines,params:{bbSubscriptionId:this.subscription.id}})}constructor(...t){super(...t),this.hardwareReturn=null}}(0,s.Cg)([(0,a.y_)()],h.prototype,"session",void 0),(0,s.Cg)([(0,a.y_)()],h.prototype,"broadbandService",void 0),(0,s.Cg)([(0,a.ox)("session.broadbandSubscription",{immediate:!0})],h.prototype,"redirectIfNoHardwareToReturn",null);var _=h=(0,s.Cg)([(0,a.uA)({components:{IntroBlock:o.A,TrackHardwareReturn:d.A,BroadbandHardwareToReturn:n.A,WizardFooter:l.A,MvSection:r.A}})],h),m=(0,i(41618).A)(_,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.hardwareReturn?e("div",{staticClass:"broadbandHardwareReturn"},[e("MvSection",{staticClass:"broadbandHardwareReturn__hardware return-hardware styleLevel1"},[e("IntroBlock",{attrs:{title:t.$t("broadband_hardware_return.hardware_title"),titleTag:"h3",titleAppearance:"h4",description:t.$t("broadband_hardware_return.hardware_desc")}}),e("BroadbandHardwareToReturn",{staticClass:"broadbandHardwareReturn__broadbandHardwareToReturn",attrs:{hardwareReturn:t.hardwareReturn}})],1),e("div",{staticClass:"broadbandHardwareReturn__trackHardwareReturn styleLevel1"},[e("TrackHardwareReturn",{attrs:{subscription:t.subscription,hardwareReturn:t.hardwareReturn},on:{"update:hardwareReturn":function(e){t.hardwareReturn=e},"update:hardware-return":function(e){t.hardwareReturn=e}}})],1),e("WizardFooter",{attrs:{onConfirm:t.goToFixedLinePage,ctaText:t.$t("back_to_my_viking_no_html")}})],1):t._e()},[],!1,null,"8e6e8ef2",null).exports}
34,74205:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return m}});var s=i(32198),a=i(58294),n=i(8921),o=i(67953),r=i(10231),l=i(93199),d=i(18569),c=i(66090),u=i(3231);let p=(0,a.tZ)("BroadbandLineCheck");class h extends o.lD{adaptPageTitle(){this.titleService.pageDescription="","ok"===this.lineCheckResult?this.titleService.pageTitle=this.$t("line_check.result_ok_page_title").toString():this.titleService.pageTitle=this.$t("line_check.result_not_ok_page_title").toString()}get lineCheckState(){return this.loading?"ongoing":this.lineCheckId?this.lineCheckResult?this.lineCheckResult:"ongoing":"not_started"}async requestLineCheck(){try{this.loading=!0;let t=await this.uwa.startLineCheck(this.bbSubscriptionId);if(this.lineCheckId=t.id,"completed"===t.state){this.lineCheckResult=t.result;return}let e=await this.poll(()=>this.uwa.getLineCheckStatus(this.bbSubscriptionId,t.id),t=>!!t&&"completed"===t.state,1e3,6e5,"Wait for line check to reach completed state");this.lineCheckResult=(e||t).result}catch(e){this.lineCheckId=null;let t=n.Ay.of(e);t.code===n.O4.POLL_TIMEOUT?this.notify.error("line_check.test_timed_out"):(p.error("Cannot perform line check",t),this.notifyGenericErrors(t))}finally{this.loading=!1}}navigateToHelpAndSupport(){this.goTo(this.$t("line_check.result_ok_to_help_and_support_url").toString())}requestSupport(){this.$router.push({name:u.A.broadbandRequestRepair,params:{lang:this.locale,bbSubscriptionId:this.bbSubscriptionId},query:{lineCheckId:`${this.lineCheckId}`}})}backToMyViking(){this.$router.push({name:u.A.productsOverview})}constructor(...t){super(...t),this.loading=!1,this.lineCheckId=null,this.lineCheckResult=null}}(0,s.Cg)([(0,o.kv)({type:String})],h.prototype,"bbSubscriptionId",void 0),(0,s.Cg)([(0,o.y_)()],h.prototype,"uwa",void 0),(0,s.Cg)([(0,o.y_)()],h.prototype,"goTo",void 0),(0,s.Cg)([(0,o.y_)()],h.prototype,"titleService",void 0),(0,s.Cg)([(0,o.y_)()],h.prototype,"poll",void 0),(0,s.Cg)([(0,o.ox)("lineCheckResult")],h.prototype,"adaptPageTitle",null);var _=h=(0,s.Cg)([(0,o.uA)({components:{WizardNotification:d.A,WizardFooter:r.A,WizardLoading:l.A,WizardStep:c.A}})],h),m=(0,i(41618).A)(_,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"lineCheck"},["not_started"===this.lineCheckState?[t("WizardStep",{attrs:{title:this.$t("line_check.good_to_know"),hideNumber:!0}},[t("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("line_check.good_to_know_description"),expression:"$t('line_check.good_to_know_description')"}],staticClass:"wizardStep__paddedContent ExternalContent",attrs:{"data-qa":"line-check-good-to-know"}})]),t("WizardFooter",{staticClass:"lineCheck__footer start-line-check",attrs:{ctaText:this.$t("line_check.start_line_check"),onConfirm:this.requestLineCheck}})]:"ongoing"===this.lineCheckState?t("WizardLoading",{attrs:{message:this.$t("line_check.line_check_is_ongoing")}}):"ok"===this.lineCheckState?[t("WizardNotification",{staticClass:"lineCheck__ok",attrs:{state:"success",title:this.$t("line_check.result_ok_title"),description:this.$t("line_check.result_ok_description")}}),t("WizardFooter",{staticClass:"lineCheck__okFooter",attrs:{ctaText:this.$t("line_check.result_ok_to_help_and_support_cta"),secCtaText:this.$t("back_to_my_viking_no_html"),onConfirm:this.navigateToHelpAndSupport},on:{reject:this.backToMyViking}})]:"not_ok"===this.lineCheckState||"unknown"===this.lineCheckState?[t("WizardNotification",{staticClass:"lineCheck__notOk",attrs:{state:"failure",title:this.$t("line_check.result_not_ok_title"),description:this.$t("line_check.result_not_ok_description")}}),t("WizardFooter",{staticClass:"lineCheck__notOkFooter",attrs:{ctaText:this.$t("line_check.result_not_ok_request_repair_cta"),secCtaText:this.$t("back_to_my_viking_no_html"),onConfirm:this.requestSupport},on:{reject:this.backToMyViking}})]:this._e()],2)},[],!1,null,"67c7d1fa",null).exports},21739:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return ta}});var s=i(32198),a=i(58294),n=i(2487),o=i(8921),r=i(34313),l=i(84525),d=i.n(l),c=i(67953),u=i(17945),p=i(24176),h=i(99168),_=i(99679),m=i(45656),g=i(49458),v=i(56562),f=i(44492),y=i(80846),b=i(3231),C=i(58249),w=i(54285);class S extends c.lD{itemCount(){let t=this.$scopedSlots.default;if(!t)return 0;let e=t({});return e?e.filter(t=>!t.text).length:0}nonKeyItemCount(){let t=this.$scopedSlots.default;if(!t)return 0;let e=t({});return e?e.filter(t=>!t.text).filter(t=>!t.componentOptions?.propsData?.isKey).length:0}isCompact(){return 2>=this.nonKeyItemCount()}}var M=S=(0,s.Cg)([c.uA],S),A=i(41618),k=(0,A.A)(M,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"InfoGrid",class:{"InfoGrid--compact":this.isCompact()},style:`--infogrid-itemcount: ${this.itemCount()}`},[this._t("default")],2)},[],!1,null,"3eda32e2",null).exports;class I extends c.lD{}(0,s.Cg)([(0,c.kv)()],I.prototype,"label",void 0),(0,s.Cg)([(0,c.kv)({default:!1})],I.prototype,"isKey",void 0),(0,s.Cg)([(0,c.kv)({default:!1})],I.prototype,"inEditList",void 0);var x=I=(0,s.Cg)([c.uA],I),N=(0,A.A)(x,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"InfoGridEntry entry-column",class:{"InfoGridEntry--key":this.isKey,"InfoGridEntry--inEditList":this.inEditList}},[t("strong",{staticClass:"InfoGridEntry__label entry-label"},[this._v(this._s(this.label))]),t("div",{staticClass:"InfoGridEntry__value entry-value"},[this._t("default")],2)])},[],!1,null,null,null).exports,T=i(54926),D=i(83487),$=i(42123),P=i(78906),L=i(21395);let E=(0,a.tZ)("EditEntrySpc");class O extends c.lD{setDataFromValue(t){this.data=t?(0,L.A4)(t):null}get isDirty(){let t={...this.value},e={...this.data};return!(0,L.c2)(t,e)}async dismiss(){(!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$emit("dismiss")}async submit(){if(this.data){if(!this.isDirty)return void this.$emit("dismiss");if(!await this.formValidator.validateAll()){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20);return}(0,P.bp)(this.data,"Should have been caught by veevalidate");try{this.saving=!0,this.data.id?await this.listEditor.updateEntry(this.transformBeforeSave(this.data)):await this.listEditor.addEntry(this.transformBeforeSave(this.data)),this.notify.success("modem_config.settings_updated",{},{},"modem-cfg-success"),this.$emit("input",this.data)}catch(t){o.Ay.of(t).code===o.O4.INVALID_VALUE?this.notify.error("form_is_not_valid"):(E.error("Unable to save modem settings",t),this.notifyGenericErrors(t))}finally{this.saving=!1}}}get submitButtonText(){return this.isDirty?this.$t("save").toString():this.$t("close").toString()}constructor(...t){super(...t),this.saving=!1,this.data=null}}(0,s.Cg)([(0,c.kv)({default:null})],O.prototype,"broadbandSubscription",void 0),(0,s.Cg)([(0,c.kv)({default:null})],O.prototype,"value",void 0),(0,s.Cg)([(0,c.kv)({default:null})],O.prototype,"listEditor",void 0),(0,s.Cg)([(0,c.kv)({default:null})],O.prototype,"title",void 0),(0,s.Cg)([(0,c.kv)({required:!0})],O.prototype,"editFormName",void 0),(0,s.Cg)([(0,c.kv)({required:!0})],O.prototype,"formValidator",void 0),(0,s.Cg)([(0,c.kv)({default:()=>t=>t})],O.prototype,"transformBeforeSave",void 0),(0,s.Cg)([(0,c.y_)()],O.prototype,"domUtils",void 0),(0,s.Cg)([(0,c.y_)()],O.prototype,"confirm",void 0),(0,s.Cg)([(0,c.ox)("value",{immediate:!0})],O.prototype,"setDataFromValue",null);var z=O=(0,s.Cg)([(0,c.uA)({components:{CallToAction:p.A,MvForm:$.A}})],O),j=(0,A.A)(z,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"EditEntrySpc",attrs:{name:t.editFormName}},[e("header",[e("h2",[t._v(t._s(t.title))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},[t.data?t._t("default",null,{data:t.data}
34):t._e()],2),e("footer",[e("CallToAction",{class:{save:t.isDirty,close:!t.isDirty},attrs:{once:t.submit,type:"submit"}},[t._v(" "+t._s(t.submitButtonText)+" ")])],1)])},[],!1,null,null,null).exports;class B extends c.lD{hasEditListener(){return!!this.$listeners.edit}hasDeleteListener(){return!!this.$listeners.delete}}(0,s.Cg)([(0,c.kv)({default:null})],B.prototype,"entry",void 0),(0,s.Cg)([(0,c.kv)({default:!0})],B.prototype,"editable",void 0),(0,s.Cg)([(0,c.kv)({default:!0})],B.prototype,"removable",void 0),(0,s.Cg)([(0,c.kv)({default:"fixed"})],B.prototype,"actionButtons",void 0);var F=B=(0,s.Cg)([c.uA],B),q=(0,A.A)(F,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("li",{staticClass:"editListEntry edit-list-entry",class:{"editListEntry--floatingActions":"floating"===t.actionButtons}},[e("div",{staticClass:"editListEntry__container",on:{click:function(e){return e.preventDefault(),t.$emit("edit")}}},[t._t("default",null,{entry:t.entry}),e("div",{staticClass:"editListEntry__actions"},[t.editable&&t.hasEditListener()?e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"editListEntry__editButton edit-button",attrs:{title:t.$t("edit")},on:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.$emit("edit")}}}):t._e(),t.removable&&t.hasDeleteListener()?e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"editListEntry__deleteButton delete-button",attrs:{title:t.$t("delete")},on:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.$emit("delete")}}}):t._e()])],2)])},[],!1,null,"6e3e4edd",null).exports;class R extends c.lD{addEntry(){let t=this.factory(),e=this.showInSidePanel(j,{broadbandSubscription:this.broadbandSubscription,value:t,listEditor:this.listEditor,title:this.title,editFormName:this.editFormName,transformBeforeSave:this.transformBeforeSave,formValidator:this.$validator},{input:()=>e()},void 0,void 0,{default:this.$scopedSlots.editor});this.$emit("startEdit",t)}editEntry(t){let e=this.value.find(e=>e.id===t),i=this.showInSidePanel(j,{value:e,broadbandSubscription:this.broadbandSubscription,listEditor:this.listEditor,title:this.title,editFormName:this.editFormName,transformBeforeSave:this.transformBeforeSave,formValidator:this.$validator},{input:()=>i()},void 0,void 0,{default:this.$scopedSlots.editor});this.$emit("startEdit",e)}async deleteEntry(t){if(await this.confirm(this.deleteConfirmMessage))try{await this.listEditor.deleteEntry({id:t}),this.notify.success("modem_config.settings_updated",{},{},"modem-cfg-success")}catch(t){this.notifyGenericErrors(t)}}}(0,s.Cg)([(0,c.kv)({required:!0})],R.prototype,"broadbandSubscription",void 0),(0,s.Cg)([(0,c.kv)({required:!0})],R.prototype,"value",void 0),(0,s.Cg)([(0,c.kv)({required:!0})],R.prototype,"listEditor",void 0),(0,s.Cg)([(0,c.kv)({required:!0})],R.prototype,"deleteConfirmMessage",void 0),(0,s.Cg)([(0,c.kv)({required:!0})],R.prototype,"factory",void 0),(0,s.Cg)([(0,c.kv)({required:!0})],R.prototype,"title",void 0),(0,s.Cg)([(0,c.kv)({required:!0})],R.prototype,"addLabel",void 0),(0,s.Cg)([(0,c.kv)({required:!0})],R.prototype,"editFormName",void 0),(0,s.Cg)([(0,c.kv)({default:"fixed"})],R.prototype,"actionButtons",void 0),(0,s.Cg)([(0,c.kv)({default:()=>t=>t})],R.prototype,"transformBeforeSave",void 0),(0,s.Cg)([(0,c.kv)({default:()=>()=>!0})],R.prototype,"removableCheck",void 0),(0,s.Cg)([(0,c.kv)({default:()=>()=>!0})],R.prototype,"editableCheck",void 0),(0,s.Cg)([(0,c.y_)()],R.prototype,"showInSidePanel",void 0),(0,s.Cg)([(0,c.y_)()],R.prototype,"confirm",void 0);var U=R=(0,s.Cg)([(0,D.My)(),(0,c.uA)({components:{EditListEntry:q}})],R),V=(0,A.A)(U,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"editList"},[e("ul",[t._l(t.value,function(i){return[e("EditListEntry",{key:i.id,staticClass:"editList__entry",attrs:{editable:t.editableCheck(i),removable:t.removableCheck(i),actionButtons:t.actionButtons},on:{edit:function(e){return t.editEntry(i.id)},delete:function(e){return t.deleteEntry(i.id)}}},[t._t("entry",null,{entry:i})],2)]})],2),e("button",{staticClass:"editList__addButton add-entry",on:{click:function(e){return e.preventDefault(),t.addEntry()}}},[t._v(" "+t._s(t.addLabel)+" ")])])},[],!1,null,"c391ae14",null).exports;class W extends c.lD{mounted(){let t={getMessage:()=>"",validate:async()=>!0};this.$validator.extend("noAlreadyAddedAlias",t),this.$validator.extend("noAlreadyAddedIpAddress",t),this.$validator.extend("noAlreadyAddedMacAddress",t),this.$validator.extend("inSubnetRange",t)}async createEditor(){this.listEditor=await this.broadbandService.updateModemConfigList(this.broadbandSubscription).then(t=>t.dhcp.reservations)}createNewReservation(){return{id:"",macAddress:"",name:"",ipAddress:""}}otherReservations(t){return this.value.filter(e=>!t||t.id!==e.id)}addValidators(t){this.$validator.extend("noAlreadyAddedAlias",new Q(()=>this.otherReservations(t).map(t=>t.name),this.$t("modem_config.dhcp_reservation_alias_is_already_used").toString()).asRule()),this.$validator.extend("noAlreadyAddedIpAddress",new Q(()=>this.otherReservations(t).map(t=>t.ipAddress),this.$t("modem_config.ip_address_is_already_used").toString()).asRule()),this.$validator.extend("noAlreadyAddedMacAddress",new Q(()=>this.otherReservations(t).map(t=>t.macAddress),this.$t("modem_config.mac_address_is_already_used").toString()).asRule()),this.$validator.extend("inSubnetRange",new Y(()=>this.config?.subnets.primary,this.$t("modem_config.reservation_ip_is_outside_of_subnet").toString()).asRule())}constructor(...t){super(...t),this.listEditor=null}}(0,s.Cg)([(0,c.kv)({default:null})],W.prototype,"broadbandSubscription",void 0),(0,s.Cg)([(0,c.kv)({required:!0})],W.prototype,"value",void 0),(0,s.Cg)([(0,c.y_)()],W.prototype,"broadbandService",void 0),(0,s.Cg)([(0,c.y_)()],W.prototype,"showInSidePanel",void 0),(0,s.Cg)([(0,c.y_)()],W.prototype,"confirm",void 0),(0,s.Cg)([(0,c.ox)("value",{immediate:!0})],W.prototype,"createEditor",null);let Q=class extends T.A{constructor(t,e){super(),this.alreadyUsedValues=t,this.message=e}getMessage(){return this.message}async validate(t){return!t||!this.alreadyUsedValues().includes(t)}},Y=class extends T.A{constructor(t,e){super(),this.subnet=t,this.message=e}getMessage(){return this.message}async validate(t){let e=this.subnet();return!t||!e||(0,n.Jl)(t,e)}};var G=W=(0,s.Cg)([(0,c.uA)({components:{MacInput:w.A,InfoGridEntry:N,InfoGrid:k,Field:C.A,EditList:V}})],W),H=(0,A.A)(G,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.listEditor?e("EditList",{staticClass:"editDhcpReservations",attrs:{value:t.value,broadbandSubscription:"broadbandSubscription",title:t.$t("modem_config.dhcp_reservations"),addLabel:t.$t("modem_config.add_dhcp_reservation"),deleteConfirmMessage:t.$t("modem_config.dhcp_reservation_delete_message"),editFormName:"editDhcpReservation",listEditor:t.listEditor,factory:t.createNewReservation,actionButtons:"floating"},on:{startEdit:function(e){return t.addValidators(e)}},scopedSlots:t._u([{key:"entry",fn:function({entry:i}){return[e("InfoGrid",{staticClass:"editedDhcpReservation__reservation dhcp-reservations-entry"},[e("InfoGridEntry",{staticClass:"reservation-alias",attrs:{label:t.$t("modem_config.dhcp_reservation_alias"),isKey:!0,inEditList:!0}},[t._v(" "+t._s(i.name)+" ")]),e("InfoGridEntry",{staticClass:"reservation-ip",attrs:{label:t.$t("modem_config.ip_address")}},[t._v(" "+t._s(i.ipAddress)+" ")]),e("InfoGridEntry",{staticClass:"reservation-mac",attrs:{label:t.$t("modem_config.mac_address")}},[t._v(" "+t._s(i.macAddress)+" ")])],1)]}},{key:"editor",fn:function({data:i}){return[e("div",{staticClass:"option-group"},[e("Field",{attrs:{label:t.$t("modem_config.dhcp_reservation_alias")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:i.name,expression:"data.name"},{name:"validate",rawName:"v-validate",value:{required:!0,noAlreadyAddedAlias:!0}
34,expression:"{ required: true, noAlreadyAddedAlias: true }"}],attrs:{name:"name",type:"text"},domProps:{value:i.name},on:{input:function(e){e.target.composing||t.$set(i,"name",e.target.value)}}})]),e("Field",{attrs:{label:t.$t("modem_config.ip_address")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:i.ipAddress,expression:"data.ipAddress"},{name:"validate",rawName:"v-validate",value:{ip:"private",required:!0,noAlreadyAddedIpAddress:!0,inSubnetRange:!0},expression:"{ ip: 'private', required: true, noAlreadyAddedIpAddress: true, inSubnetRange: true }"}],attrs:{name:"ipAddress",type:"text"},domProps:{value:i.ipAddress},on:{input:function(e){e.target.composing||t.$set(i,"ipAddress",e.target.value)}}})]),e("Field",{attrs:{label:t.$t("modem_config.mac_address")}},[e("MacInput",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0,noAlreadyAddedMacAddress:!0},expression:"{ required: true, noAlreadyAddedMacAddress: true }"}],attrs:{name:"macAddress"},model:{value:i.macAddress,callback:function(e){t.$set(i,"macAddress",e)},expression:"data.macAddress"}})],1)],1)]}}],null,!1,0xfef62ec2)}):t._e()},[],!1,null,null,null).exports,Z=i(14806);class J extends c.lD{mounted(){return this.$validator.extend("noAlreadyAddedDescription",{getMessage:()=>"",validate:async()=>!0}),""}async createEditor(){this.listEditor=await this.broadbandService.updateModemConfigList(this.broadbandSubscription).then(t=>t.nat.portMappings)}createNewPortMapping(){return{id:"",description:"",enable:!0,lanPort:0,lanIp:"",owner:"customer",protocol:"tcp",vlan:20,wanPortFrom:0,wanPortTo:0,remoteHost:""}}fillToPorts(t){if(this.wanPortValidationErrors=this.portValidationErrors({portFrom:t.wanPortFrom,portTo:t.wanPortTo}),this.wanPortValidationErrors.length)throw new o.Ay(o.O4.INVALID_VALUE);let e={...t};return e.wanPortTo||(e.wanPortTo=e.wanPortFrom),e}otherMappings(t){return this.value.filter(e=>!t||t.id!==e.id)}describeMapping(t){return"customer"===t.owner?t.description:"upnp"===t.owner?`UPNP ${t.id}`:t.id}describeWanPort(t){let e=t.wanPortFrom===t.wanPortTo?`${t.wanPortTo}`:`${t.wanPortFrom} â ${t.wanPortTo}`;return"any"===t.protocol?e:`${t.protocol} ${e}`}describeLanTarget(t){return`${t.lanIp}:${t.lanPort}`}isCustomerOwned(t){return"customer"===t.owner}addValidators(t){return this.$validator.extend("noAlreadyAddedDescription",new K(()=>this.otherMappings(t).map(t=>t.description),this.$t("modem_config.port_mapping_description_is_already_used").toString()).asRule()),""}portValidationErrors({portFrom:t,portTo:e}){return t&&e&&t>e?[this.$t("modem_config.to_must_be_after_from")]:[]}constructor(...t){super(...t),this.listEditor=null,this.protocolOptions=n.JZ,this.wanPortValidationErrors=[]}}(0,s.Cg)([(0,c.kv)({default:null})],J.prototype,"broadbandSubscription",void 0),(0,s.Cg)([(0,c.kv)({required:!0})],J.prototype,"value",void 0),(0,s.Cg)([(0,c.y_)()],J.prototype,"broadbandService",void 0),(0,s.Cg)([(0,c.y_)()],J.prototype,"showInSidePanel",void 0),(0,s.Cg)([(0,c.y_)()],J.prototype,"confirm",void 0),(0,s.Cg)([(0,c.ox)("value",{immediate:!0})],J.prototype,"createEditor",null);let K=class extends T.A{constructor(t,e){super(),this.alreadyUsedValues=t,this.message=e}getMessage(){return this.message}async validate(t){return!t||!this.alreadyUsedValues().includes(t)}};var X=J=(0,s.Cg)([(0,c.uA)({components:{InfoGridEntry:N,InfoGrid:k,Checkbox:Z.A,Field:C.A,EditList:V}})],J),tt=(0,A.A)(X,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.listEditor?e("EditList",{staticClass:"editPortMappings",attrs:{value:t.value,title:t.$t("modem_config.port_mapping"),editableCheck:t.isCustomerOwned,removableCheck:t.isCustomerOwned,broadbandSubscription:"broadbandSubscription",addLabel:t.$t("modem_config.add_new_port_mapping"),deleteConfirmMessage:t.$t("modem_config.port_mapping_delete_message"),listEditor:t.listEditor,factory:t.createNewPortMapping,transformBeforeSave:t.fillToPorts,editFormName:"editPortMapping",actionButtons:"floating"},on:{startEdit:function(e){return t.addValidators(e)}},scopedSlots:t._u([{key:"entry",fn:function({entry:i}){return[e("InfoGrid",{staticClass:"editedPortMapping port-mappings-entry",class:{"editedPortMapping--disabled":!i.enable}},[e("InfoGridEntry",{staticClass:"mapping-alias",attrs:{label:t.$t("modem_config.port_mapping_alias"),isKey:!0}},[t._v(" "+t._s(t.describeMapping(i))+" ")]),e("InfoGridEntry",{staticClass:"mapping-wan",attrs:{label:t.$t("modem_config.port_mapping_wan_port")}},[t._v(" "+t._s(t.describeWanPort(i))+" ")]),e("InfoGridEntry",{staticClass:"mapping-lan",attrs:{label:t.$t("modem_config.port_mapping_lan_target")}},[t._v(" "+t._s(t.describeLanTarget(i))+" ")])],1)]}},{key:"editor",fn:function({data:i}){return[e("div",{staticClass:"option-group"},[e("Checkbox",{staticClass:"port-mapping-toggle",attrs:{label:t.$t("modem_config.use_this_port_mapping")},model:{value:i.enable,callback:function(e){t.$set(i,"enable",e)},expression:"data.enable"}}),e("Field",{attrs:{label:t.$t("modem_config.port_mapping_alias")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:i.description,expression:"data.description"},{name:"validate",rawName:"v-validate",value:{required:!0,noAlreadyAddedDescription:!0}
34,expression:"{ required: true, noAlreadyAddedDescription: true }"}],attrs:{name:"name",type:"text"},domProps:{value:i.description},on:{input:function(e){e.target.composing||t.$set(i,"description",e.target.value)}}})]),e("Field",{attrs:{label:t.$t("modem_config.port_mapping_protocol")}},[e("select",{directives:[{name:"model",rawName:"v-model",value:i.protocol,expression:"data.protocol"}],attrs:{name:"protocol"},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(i,"protocol",e.target.multiple?s:s[0])}}},t._l(t.protocolOptions,function(i){return e("option",{key:i,domProps:{value:i}},[t._v(" "+t._s(t.$t(`modem_config.protocol_${i}`))+" ")])}),0)]),e("Field",{attrs:{label:t.$t("modem_config.port_mapping_lan_ip")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:i.lanIp,expression:"data.lanIp"},{name:"validate",rawName:"v-validate",value:{ip:"private",required:!0},expression:"{ ip: 'private', required: true }"}],attrs:{name:"lanIp",type:"text"},domProps:{value:i.lanIp},on:{input:function(e){e.target.composing||t.$set(i,"lanIp",e.target.value)}}})]),e("Field",{attrs:{label:t.$t("modem_config.port_mapping_lan_port")}},[e("input",{directives:[{name:"model",rawName:"v-model.number",value:i.lanPort,expression:"data.lanPort",modifiers:{number:!0}},{name:"validate",rawName:"v-validate",value:{min_value:0,max_value:65535,required:!0},expression:"{ min_value: 0, max_value: 65535, required: true }"}],attrs:{name:"lanPort",type:"text"},domProps:{value:i.lanPort},on:{input:function(e){e.target.composing||t.$set(i,"lanPort",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})]),e("Field",{attrs:{label:t.$t("modem_config.port_mapping_wan_port"),validationErrors:t.wanPortValidationErrors}},[e("input",{directives:[{name:"model",rawName:"v-model.number",value:i.wanPortFrom,expression:"data.wanPortFrom",modifiers:{number:!0}},{name:"validate",rawName:"v-validate",value:{min_value:0,max_value:65535,required:!0},expression:"{ min_value: 0, max_value: 65535, required: true }"}],attrs:{name:"wanPortFrom",type:"text"},domProps:{value:i.wanPortFrom},on:{input:function(e){e.target.composing||t.$set(i,"wanPortFrom",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})]),e("Field",{attrs:{label:t.$t("modem_config.port_mapping_wan_port_to"),validationErrors:t.wanPortValidationErrors}},[e("input",{directives:[{name:"model",rawName:"v-model.number",value:i.wanPortTo,expression:"data.wanPortTo",modifiers:{number:!0}},{name:"validate",rawName:"v-validate",value:{min_value:0,max_value:65535},expression:"{ min_value: 0, max_value: 65535 }"}],attrs:{name:"wanPortTo",type:"text"},domProps:{value:i.wanPortTo},on:{input:function(e){e.target.composing||t.$set(i,"wanPortTo",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])],1)]}}],null,!1,0xcca9889f)}):t._e()},[],!1,null,"9beae9c6",null).exports;let te=(0,a.tZ)("BroadbandModemSettingsView");class ti extends c.lD{async loadConfig(){if(!this.session.broadbandSubscription){this.modemConfig=null;return}try{this.loading=!0,this.modemConfig=await this.broadbandService.getModemConfig(this.session.broadbandSubscription),this.modemConfig||this.$router.replace(this.networkRoute)}catch(t){this.notifyGenericErrors(t),te.error("Failed to load modem config",t)}this.loading=!1}async warnAboutExpertMode(t){if(t&&"force"!==t)try{await this.authService.ensureSteppedUp(void 0,{message:this.$t("modem_config.expert_settings_can_break_your_setup").toString(),title:this.$t("modem_config.expert_settings_warning_title").toString()})}catch(t){o.Ay.of(t).code===o.O4.CANCELLED?this.$router.push(this.advancedRoute):this.notifyGenericErrors(t)}}get expertFeatureEnabled(){let{modemConfigRouting:t,modemConfigSecurity:e}=this.config.featureFlags;return t||e}get modem(){return this.session.broadbandSubscription?.modem}get wifiNetworks(){return this.modemConfig?[...this.modemConfig.privateWifi].filter(t=>t.enabled):null}get wifiGeneralConfig(){if(!this.modemConfig&&!this.loading)return{};let t=this.session.broadbandSubscription,e=null===this.modemConfig?(
34)=>{}:e=>this.broadbandService.updateModemConfig(t,e).catch(t=>{throw te.error("Failed to update modem config",t),this.notifyGenericErrors(t),t}),i=async t=>{this.session.broadbandSubscription&&(await this.broadbandService.toggleSingleSsid(this.session.broadbandSubscription,t),await this.loadConfig())},s={wifiRadioEnabled:{title:this.$t("modem_config.wifi_radio_enabled").toString(),loading:this.loading,status:this.modemConfig?.wifiRadioEnabled??!0,toggle:async t=>e({wifiRadioEnabled:t}),hint:this.$t("modem_config.wifi_radio_enabled_hint").toString()}};return(this.modemConfig?.firmwareRevision==="2023-06"&&(s.singleSsid={title:this.$t("modem_config.wifi_single_ssid").toString(),loading:this.loading,status:this.modemConfig?.singleSsid??!0,toggle:i,hint:this.$t("modem_config.wifi_single_ssid_hint").toString()}),this.config.featureFlags.modemAllowSingleSsidToggle||delete s.singleSsid,this.modemConfig?.wifiRadioEnabled===!1)?d()(s,"wifiRadioEnabled"):(this.expertMode&&this.config.featureFlags.modemConfigWifiRadio||delete s.wifiRadioEnabled,0===Object.keys(s).length)?null:s}get privateWifiConfig(){return this.modemConfig||this.loading?this.modemConfig?1===this.modemConfig.privateWifi.length?[{type:this.modemConfig.privateWifi[0].type,settings:this.wifiConfigFor(this.modemConfig.privateWifi[0],"privateWifi")}]:this.modemConfig.privateWifi.map(t=>({title:t.ssid?`${t.ssid} (${t.bands?.length?t.bands.join(", "):t.name})`:t.bands?.length?t.bands.join(", "):t.name,type:t.type,settings:this.wifiConfigFor(t,"privateWifi")})):[{settings:this.wifiConfigFor(null,"privateWifi")}]:[]}wifiConfigFor(t,e){let i=null===t?()=>{}:i=>this.broadbandService.updateModemConfig(this.session.broadbandSubscription,{[e]:[{name:t?.name,...i}]}),s={...this.$route.query,spc:"modem-cfg-wifi",wifiType:e,wifiName:t?.name??"",mode:"advanced",title:this.$t("modem_config.wifi_title").toString()},a={wifiEnabled:{title:t?.type==="compatibility"?this.$t("modem_config.this_compatibility_wifi_enabled").toString():this.$t("modem_config.this_wifi_enabled").toString(),loading:!t,status:t?.enabled??!1,toggle:async t=>i({enabled:t}),hint:this.$t("modem_config.this_wifi_enabled_hint").toString()},wifiBroadcast:{title:this.$t("modem_config.wifi_broadcast").toString(),loading:this.loading,status:t?.broadcast??!1,toggle:async t=>i({broadcast:t}),hint:this.$t("modem_config.wifi_broadcast_hint").toString()},wifiSsid:{title:this.$t("modem_config.wifi_ssid").toString(),loading:!t,status:t?.ssid,statusLength:10,query:s,hint:this.$t("modem_config.wifi_ssid_hint").toString()},wifiSecurity:{title:this.$t("modem_config.wifi_security").toString(),loading:!t,status:t?.security??"",statusLength:10,query:s,hint:this.$t("modem_config.wifi_security_hint").toString(),isViewOnly:(t?.supported_encryption_types?.length??0)<=1},wifiPassword:{title:this.$t("modem_config.wifi_password").toString(),loading:!t,status:t?.password?"âââââââââââ":"",statusLength:10,query:s,hint:this.$t("modem_config.wifi_password_hint").toString()}};return t&&!t.enabled?d()(a,"wifiEnabled"):(t&&"None"===t.security&&delete a.wifiPassword,t&&!this.config.featureFlags.modemConfigWifiBroadcast&&delete a.wifiBroadcast,a)}get dhcpConfig(){return this.modemConfig||this.loading?this.dhcpConfigFor(this.modemConfig?.dhcp.lan,"lan"):{}}get dhcpConfigSystem(){return this.modemConfig||this.loading?this.dhcpConfigFor(this.modemConfig?.dhcp.system,"system"):{}}dhcpConfigFor(t,e){let i=this.session.broadbandSubscription,s=null===this.modemConfig?()=>{}:t=>this.broadbandService.updateModemConfig(i,{dhcp:{[e]:t}}),a={...this.$route.query,spc:"modem-cfg-dhcp",dhcpType:e},n={enabled:{title:this.$t("modem_config.dhcp_enabled").toString(),loading:this.loading,status:t?.enabled??!0,toggle:async t=>s({enabled:t}),hint:this.$t("modem_config.dhcp_enabled_hint").toString()},ipRange:{title:this.$t("modem_config.dhcp_ip_range").toString(),loading:this.loading,status:t?`${t.minAddress} - ${t.maxAddress}`:"",query:a,hint:this.$t("modem_config.dhcp_ip_range_hint").toString()},mask:{title:this.$t("modem_config.dhcp_mask_address").toString(),loading:this.loading,status:t?.mask??"",query:a,hint:this.$t("modem_config.dhcp_mask_address_hint").toString()},dnsServer:{title:this.$t("modem_config.dhcp_dns_server").toString(),loading:this.loading,status:t?.dnsServer??"",query:a,hint:this.$t("modem_config.dhcp_dns_server_hint").toString()},leaseTimeSecs:{title:this.$t("modem_config.dhcp_lease_time").toString(),loading:this.loading,status:t?.leaseTimeSecs!==void 0?(0,r.fO)(t?.leaseTimeSecs,this.$t.bind(this)):"",query:a,hint:this.$t("modem_config.dhcp_lease_time_hint").toString()}};return t?.enabled===!1?d()(n,"enabled"):n}get subnetConfig1(){return this.modemConfig||this.loading?this.subnetConfigFor(this.modemConfig?.subnets.primary,"primary"):{}}get subnetConfig2(){return this.modemConfig||this.loading?this.subnetConfigFor(this.modemConfig?.subnets.secondary,"secondary"):{}}subnetConfigFor(t,e){let i={...this.$route.query,spc:"modem-cfg-subnet",subnetType:e};return{ipAddress:{title:this.$t("modem_config.subnet_ip_address").toString(),loading:this.loading,status:t?.ipAddress??"",query:i,hint:this.$t("modem_config.subnet_ip_address_hint").toString()},mask:{title:this.$t("modem_config.subnet_mask").toString(),loading:this.loading,status:t?.mask??"",query:i,hint:this.$t("modem_config.subnet_mask_hint").toString()}}}get dynDnsConfig(){if(!this.modemConfig&&!this.loading)return{};let t={...this.$route.query,spc:"modem-cfg-dyndns"},e=this.modemConfig?.dynDns;return{dynDns:{title:this.$t("modem_config.dyndns_title").toString(),loading:this.loading,status:e?.enabled?e.serviceProvider:this.$t("modem_config.dyndns_disabled").toString(),query:t}}}get routingConfig(){if(!this.modemConfig&&!this.loading)return{};let t={...this.$route.query,spc:"modem-cfg-gateway"},e={gatewayMode:{title:this.$t("modem_config.gateway_mode").toString(),status:this.modemConfig?.gateway.mode==="router"?this.$t("modem_config.gateway_mode__router").toString():this.$t("modem_config.gateway_mode__bridge").toString(),hint:this.modemConfig?.gateway.mode==="router"?this.$t("modem_config.gateway_mode_hint__router").toString():this.$t("modem_config.gateway_mode_hint__bridge").toString(),query:t},bridgeGateway:{title:this.$t("modem_config.gateway_mac_address").toString(),status:this.modemConfig?.gateway.macAddress,query:t}};return this.modemConfig?.gateway.mode==="router"&&delete e.bridgeGateway,e}get securityConfig(){if(!this.modemConfig&&!this.loading)return{};let t=this.session.broadbandSubscription,e=null===this.modemConfig?(
34)=>{}:e=>this.broadbandService.updateModemConfig(t,{firewall:{level:e}}),i={...this.$route.query,spc:"modem-cfg-dmz"},s={gatewayMode:{title:this.$t("modem_config.dmz_enabled").toString(),status:this.modemConfig?.dmz.enabled?this.$t("modem_config.dmz_enabled_with_{hostIpAddress}",{hostIpAddress:this.modemConfig.dmz.hostIpAddress}).toString():this.$t("modem_config.dmz_disabled").toString(),query:i},enableFirewall:{title:this.$t("modem_config.firewall_enabled").toString(),status:this.modemConfig?.firewall.level!=="low",toggle:async t=>e(t?"medium":"low")}};return this.modemConfig?.firewall.level==="low"&&delete s.customFirewall,s}get exportSettingsDataUrl(){if(!this.modemConfig)return null;let t=new Blob([JSON.stringify(this.modemConfig)],{type:"application/json"});return URL.createObjectURL(t)}async importSettings(){try{if(!this.session.broadbandSubscription)return;let t=await this.domUtils.getFile({acceptedExtensions:["json"]}),e=await t.text(),i=function(t){try{return JSON.parse(t)}catch{throw new o.Ay(o.O4.INVALID_VALUE)}}(e);await this.broadbandService.uploadModemConfig(this.session.broadbandSubscription,i),this.notify.success("modem_config.settings_restored_from_file")}catch(e){let t=o.Ay.of(e);if(t.code===o.O4.CANCELLED)return;t.code===o.O4.INVALID_VALUE||t.code===o.O4.DUPLICATE_VALUE?(te.warning(JSON.stringify(t)),this.notify.error("modem_config.import_file_corrupt")):(te.error("failed to upload file",e),this.notifyGenericErrors(e))}}get modemOverview(){return{name:b.A.broadbandNetwork}}get networkRoute(){return{name:b.A.broadbandNetwork,params:this.$route.params}}get advancedRoute(){return{...this.$route,query:{}}}get expertRoute(){return{...this.$route,query:{expertMode:"true"}}}get dhcpRangeOutOfSubnetViolationWarning(){if(!this.config.featureFlags.modemConfigSubnets||!this.config.featureFlags.modemConfigDhcp||!this.modemConfig?.dhcp)return null;let t=this.modemConfig.subnets.primary;for(let i of n.rw)if((0,n.Jl)(this.modemConfig.dhcp[i],t)){var e;return this.$t("modem_config.{dhcpRange}_outside_of_{subnet}_warning",{dhcpRange:(e=this.modemConfig.dhcp[i],`${e.minAddress} - ${e.maxAddress}`),dhcpType:i,subnet:(0,n.$e)(t),subnetType:"primary"}).toString()}return null}constructor(...t){super(...t),this.loading=!1,this.modemConfig=null}}(0,s.Cg)([(0,c.y_)()],ti.prototype,"session",void 0),(0,s.Cg)([(0,c.y_)()],ti.prototype,"config",void 0),(0,s.Cg)([(0,c.y_)()],ti.prototype,"broadbandService",void 0),(0,s.Cg)([(0,c.y_)()],ti.prototype,"authService",void 0),(0,s.Cg)([(0,c.y_)()],ti.prototype,"client",void 0),(0,s.Cg)([(0,c.y_)()],ti.prototype,"domUtils",void 0),(0,s.Cg)([(0,c.y_)()],ti.prototype,"notificationManager",void 0),(0,s.Cg)([(0,c.kv)()],ti.prototype,"shareWifi",void 0),(0,s.Cg)([(0,c.kv)()],ti.prototype,"expertMode",void 0),(0,s.Cg)([(0,c.ox)("session.broadbandSubscription.id",{immediate:!0})],ti.prototype,"loadConfig",null),(0,s.Cg)([(0,c.ox)("expertMode",{immediate:!0})],ti.prototype,"warnAboutExpertMode",null);var ts=ti=(0,s.Cg)([(0,c.uA)({components:{LinksetInfo:m.A,InlineNotification:_.A,CallToAction:p.A,EditPortMappings:tt,EditDhcpReservations:H,ThematicLinks:y.A,ThematicLink:f.A,Heading:h.A,CollapsiblePanel:u.A,QuickSettingsList:g.A,MvSection:v.A}})],ti),ta=(0,A.A)(ts,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"broadbandModemSettingsView styleLevel0",class:{"broadbandModemSettingsView--embedded":t.client.isEmbedded}},[!t.client.isEmbedded&&t.config.featureFlags.modemConfigExportImport?e("div",{staticClass:"broadbandModemSettingsView__toolbar nextStyleLevel"},[t.config.featureFlags.modemConfigExportImport?[t.exportSettingsDataUrl?e("CallToAction",{staticClass:"broadbandModemSettingsView__exportButton nextStyleLevel",attrs:{appearance:"toolbarBtn",href:t.exportSettingsDataUrl,icon:i(11917),download:"Mv_modem_config.json",hideTextOnMobile:!0}},[t._v(" "+t._s(t.$t("modem_config.back_up_to_file"))+" ")]):t._e(),e("CallToAction",{staticClass:"broadbandModemSettingsView__importButton nextStyleLevel",attrs:{appearance:"toolbarBtn",icon:i(28496),hideTextOnMobile:!0,once:t.importSettings}},[t._v(" "+t._s(t.$t("modem_config.restore_from_file"))+" ")])]:t._e()],2):t._e(),t.dhcpRangeOutOfSubnetViolationWarning?e("InlineNotification",{staticClass:"broadbandModemSettingsView__subnetViolationWarning subnet-violation-warning",attrs:{notificationType:"warning"}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.dhcpRangeOutOfSubnetViolationWarning,expression:"dhcpRangeOutOfSubnetViolationWarning"}]})]):t._e(),t.config.featureFlags.modemConfigPrivateWifi?e("CollapsiblePanel",{staticClass:"broadbandModemSettingsView__category",attrs:{appearance:"marketing"},scopedSlots:t._u([{key:"header",fn:function(){return[e("Heading",[t._v(t._s(t.$t("modem_config.wifi_title")))])]},proxy:!0},{key:"content",fn:function(){return[t.config.featureFlags.showOldFirmwareUpgradeMessage&&t.modemConfig&&"2023-06"===t.modemC
34onfig.firmwareRevision?e("InlineNotification",{staticClass:"broadbandModemSettingsView__subnetViolationWarning subnet-violation-warning",attrs:{notificationType:"warning"}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("modem_config.old_firmware_warning__html"),expression:"$t('modem_config.old_firmware_warning__html')"}]})]):t._e(),t.wifiGeneralConfig?e("MvSection",{staticClass:"modemConfigSection",attrs:{noTitleIndentation:!0}},[e("QuickSettingsList",{staticClass:"modemConfigMainSettings modemConfigSection__quickSettings nextStyleLevel",attrs:{settings:t.wifiGeneralConfig}})],1):t._e(),t.modemConfig&&t.modemConfig.wifiRadioEnabled?t._l(t.privateWifiConfig,function(i){return e("MvSection",{key:i.title||"basic",staticClass:"modemConfigSection",attrs:{title:i.title,noTitleIndentation:!0}},["2023-06"!==t.modemConfig.firmwareRevision&&"compatibility"===i.type?e("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("modem_config.compatibility_wifi__html"),expression:"$t('modem_config.compatibility_wifi__html')"}],staticClass:"broadbandModemView__basicSettingsLinkSetInfo nextStyleLevel"}):t._e(),e("QuickSettingsList",{staticClass:"modemConfigSection__quickSettings nextStyleLevel",attrs:{settings:i.settings}}
34)],1)}):t._e()]},proxy:!0}],null,!1,0x48405c43)}):t._e(),t.config.featureFlags.modemConfigSubnets?e("CollapsiblePanel",{staticClass:"broadbandModemSettingsView__category",attrs:{appearance:"marketing"},scopedSlots:t._u([{key:"header",fn:function(){return[e("Heading",[t._v(t._s(t.$t("modem_config.subnets_title")))])]},proxy:!0},{key:"content",fn:function(){return[e("MvSection",{staticClass:"modemConfigSection",attrs:{title:t.$t("modem_config.primary_subnet"),noTitleIndentation:!0}},[e("QuickSettingsList",{staticClass:"modemConfigSection__quickSettings nextStyleLevel",attrs:{settings:t.subnetConfig1}})],1),e("MvSection",{staticClass:"modemConfigSection",attrs:{title:t.$t("modem_config.secondary_subnet"),noTitleIndentation:!0}},[e("QuickSettingsList",{staticClass:"modemConfigSection__quickSettings nextStyleLevel",attrs:{settings:t.subnetConfig2}})],1)]},proxy:!0}],null,!1,0x99a424af)}):t._e(),t.config.featureFlags.modemConfigDhcp&&(t.loading||t.modemConfig&&t.modemConfig.dhcp)?e("CollapsiblePanel",{staticClass:"broadbandModemSettingsView__category",attrs:{appearance:"marketing"},scopedSlots:t._u([{key:"header",fn:function(){return[e("Heading",[t._v(t._s(t.$t("modem_config.DHCP_title")))])]},proxy:!0},{key:"content",fn:function(){return[e("MvSection",{staticClass:"modemConfigSection",attrs:{title:t.$t("modem_config.main_dhcp_pool"),noTitleIndentation:!0}},[e("QuickSettingsList",{staticClass:"modemConfigSection__quickSettings nextStyleLevel",attrs:{settings:t.dhcpConfig}})],1),e("MvSection",{staticClass:"modemConfigSection",attrs:{title:t.$t("modem_config.system_dhcp_pool"),noTitleIndentation:!0}},[e("QuickSettingsList",{staticClass:"modemConfigSection__quickSettings nextStyleLevel",attrs:{settings:t.dhcpConfigSystem}})],1),t.modemConfig?e("MvSection",{staticClass:"modemConfigSection",attrs:{title:t.$t("modem_config.dhcp_reservations"),noTitleIndentation:!0}},[e("EditDhcpReservations",{staticClass:"nextStyleLevel",attrs:{value:t.modemConfig.dhcp.reservations,broadbandSubscription:t.session.broadbandSubscription}})],1):t._e()]},proxy:!0}],null,!1,0xbba90e5)}):t._e(),t.config.featureFlags.modemConfigDynDns?e("CollapsiblePanel",{staticClass:"broadbandModemSettingsView__category",attrs:{appearance:"marketing"},scopedSlots:t._u([{key:"header",fn:function(){return[e("Heading",[t._v(t._s(t.$t("modem_config.dynDns")))])]},proxy:!0},{key:"content",fn:function(){return[e("MvSection",{staticClass:"modemConfigSection",attrs:{noTitleIndentation:!0}},[e("QuickSettingsList",{staticClass:"modemConfigSection__quickSettings nextStyleLevel",attrs:{settings:t.dynDnsConfig}})],1)]},proxy:!0}],null,!1,0x9ec41ab9)}):t._e(),t.expertMode&&t.config.featureFlags.modemConfigRouting?e("CollapsiblePanel",{staticClass:"broadbandModemSettingsView__category",attrs:{appearance:"marketing"},scopedSlots:t._u([{key:"header",fn:function(){return[e("Heading",[t._v(t._s(t.$t("modem_config.routing")))])]},proxy:!0},{key:"content",fn:function(){return[e("MvSection",{staticClass:"modemConfigSection",attrs:{noTitleIndentation:!0}},[e("QuickSettingsList",{staticClass:"modemConfigSection__quickSettings nextStyleLevel",attrs:{settings:t.routingConfig}})],1),t.config.featureFlags.modemConfigPortFwd?[t.modemConfig&&"router"==t.modemConfig.gateway.mode?e("MvSection",{staticClass:"modemConfigSection",attrs:{title:t.$t("modem_config.port_mapping"),noTitleIndentation:!0}},[e("EditPortMappings",{attrs:{value:t.modemConfig.nat.portMappings,broadbandSubscription:t.session.broadbandSubscription}})],1):t._e()]:t._e()]},proxy:!0}],null,!1,0x757363c2)}):t._e(),t.expertMode&&t.config.featureFlags.modemConfigSecurity?e("CollapsiblePanel",{staticClass:"broadbandModemSettingsView__category",attrs:{appearance:"marketing"},scopedSlots:t._u([{key:"header",fn:function(){return[e("Heading",[t._v(t._s(t.$t("modem_config.security")))])]},proxy:!0},{key:"content",fn:function(){return[e("MvSection",{staticClass:"modemConfigSection",attrs:{noTitleIndentation:!0}},[e("QuickSettingsList",{staticClass:"modemConfigSection__quickSettings nextStyleLevel",attrs:{settings:t.securityConfig}})],1)]},proxy:!0}],null,!1,0xad20c979)}):t._e(),e("ThematicLinks",{staticClass:"broadbandModemSettingsView__links nextStyleLevel"},[!t.expertMode&&t.expertFeatureEnabled?e("ThematicLink",{attrs:{to:t.expertRoute,title:t.$t("modem_config.to_expert_settings"),tip:t.$t("modem_config.to_expert_settings__tip")}}):t._e()],1)],1)},[],!1,null,"ce08fafc",null).exports}
34,84242:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return tu}});var s=i(32198),a="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyBmaWxsPSIjRDhEOEQ4IiBmaWxsLXJ1bGU9Im5vbnplcm8iPjxwYXRoIGQ9Ik0xOS40OTYxNTg2LDEyLjMzMjI5MDcgTDE4LjEzMDEzMjQsMTEuNTM1MTcxNiBDMTguMTY1NjgxMSwxMS4yNTA1ODM3IDE4LjE5NDUyMDksMTAuNzg2ODQxMyAxOC4xOTQ1MjA5LDEwLjQ5OTk3OTMgQzE4LjE5NDUyMDksMTAuMjEzMTU4NyAxOC4xNjU2ODExLDkuNzQ5NDE2MzUgMTguMTMwMTMyNCw5LjQ2NDgyODQgTDE5LjQ5NjE1ODYsOC42Njc3MDkyNyBDMTkuODk3Mjk4MSw4LjQzMzY4ODA5IDIwLjA5MDc1LDcuOTUyMTI1NDMgMTkuOTU4ODY0LDcuNTAzMzUwNTQgQzE5LjQ4OTEyMjUsNS45MDUxMDE2NyAxOC42NTI5NzE5LDQuNDY2NDkxNjIgMTcuNTQ4NzU0MSwzLjI4NjYyNzk1IEMxNy4yMjg5Nzk3LDIuOTQ0OTQwNDkgMTYuNzE4NjE3LDIuODcwMTg2MDIgMTYuMzE1NjM2NiwzLjEwNTMyMzU2IEwxNC45NTE2NTU4LDMuOTAxMjAyMyBDMTQuNDk4MDcyNywzLjU1MjMyMDU1IDEzLjcwMzUyNTIsMy4wODc5OTkzOCAxMy4xNzgxMDg0LDIuODY0NzY5NjMgTDEzLjE3ODEwODQsMS4yNzIyMjY1NyBDMTMuMTc4MTA4NCwwLjgwMTAwMDUzNiAxMi44NTc1NTY4LDAuMzkxNDIyMTI4IDEyLjQwMzgxMDEsMC4yODI4ODc1NzEgQzEwLjgyNjk0NjQsLTAuMDk0Mjc1MTgzNCA5LjE3MzM4MDkxLC0wLjA5NDMxNjUyOTkgNy41OTYxODk4OCwwLjI4Mjg4NzU3MSBDNy4xNDI0ODQxMSwwLjM5MTQyMjEyOCA2LjgyMTg5MTU2LDAuODAwOTU5MTkgNi44MjE4OTE1NiwxLjI3MjIyNjU3IEw2LjgyMTg5MTU2LDIuODY0NzY5NjMgQzYuMjk2NDMzOTMsMy4wODc5OTkzOCA1LjUwMTg4NjM2LDMuNTUyMzIwNTUgNS4wNDgzNDQyMywzLjkwMTIwMjMgTDMuNjg0MzYzNDEsMy4xMDUzMjM1NiBDMy4yODEzNDIxMiwyLjg3MDE4NjAyIDIuNzcwOTc5MzgsMi45NDQ5NDA0OSAyLjQ1MTI0NTg4LDMuMjg2NjI3OTUgQzEuMzQ3MDI4MDgsNC40NjY0OTE2MiAwLjUxMDg3NzUyMiw1LjkwNTE0MzAxIDAuMDQxMTM1OTk1LDcuNTAzMzUwNTQgQy0wLjA5MDc0OTk4MjksNy45NTIxMjU0MyAwLjEwMjcwMTg3NSw4LjQzMzY0Njc1IDAuNTAzODQxNDIyLDguNjY3NzA5MjcgTDEuODY5ODY3NjIsOS40NjQ4Mjg0IEMxLjgzNDMxODk1LDkuNzQ5NDE2MzUgMS44MDU0NzkxMiwxMC4yMTMxNTg3IDEuODA1NDc5MTIsMTAuNDk5OTc5MyBDMS44MDU0NzkxMiwxMC43ODY4NDEzIDEuODM0MzE4OTUsMTEuMjUwNTgzNyAxLjg2OTg2NzYyLDExLjUzNTE3MTYgTDAuNTAzODQxNDIyLDEyLjMzMjI5MDcgQzAuMTAyNzAxODc1LDEyLjU2NjMxMTkgLTAuMDkwNzQ5OTgyOSwxMy4wNDc4NzQ2IDAuMDQxMTM1OTk1LDEzLjQ5NjY0OTUgQzAuNTEwODc3NTIyLDE1LjA5NDg1NyAxLjM0NzAyODA4LDE2LjUzMzUwODQgMi40NTEyNDU4OCwxNy43MTMzNzIgQzIuNzcxMDIwMjksMTguMDU1MDU5NSAzLjI4MTM4MzAzLDE4LjEyOTgxNCAzLjY4NDM2MzQxLDE3Ljg5NDcxNzggTDUuMDQ4MzQ0MjMsMTcuMDk4ODM5IEM1LjUwMTg4NjM2LDE3LjQ0NzcyMDggNi4yOTY0MzM5MywxNy45MTIwMDA2IDYuODIxODkxNTYsMTguMTM1MjMwNCBMNi44MjE4OTE1NiwxOS43Mjc3NzM0IEM2LjgyMTg5MTU2LDIwLjE5ODk5OTUgNy4xNDI0NDMyMSwyMC42MDg1Nzc5IDcuNTk2MTg5ODgsMjAuNzE3MTEyNCBDOS4xNzMwOTQ1NSwyMS4wOTQyNzUyIDEwLjgyNjYxOTEsMjEuMDk0MzE2NSAxMi40MDM4MTAxLDIwLjcxNzExMjQgQzEyLjg1NzUxNTksMjAuNjA4NTc3OSAxMy4xNzgxMDg0LDIwLjE5OTA0MDggMTMuMTc4MTA4NCwxOS43Mjc3NzM0IEwxMy4xNzgxMDg0LDE4LjEzNTIzMDQgQzEzLjcwMzUyNTIsMTcuOTEyMDAwNiAxNC40OTgwNzI3LDE3LjQ0NzY3OTUgMTQuOTUxNjU1OCwxNy4wOTg4MzkgTDE2LjMxNTYzNjYsMTcuODk0NzE3OCBDMTYuNzE4NjE3LDE4LjEyOTg1NTMgMTcuMjI4OTc5NywxOC4wNTUxMDA5IDE3LjU0ODc1NDEsMTcuNzEzMzcyIEMxOC42NTI5NzE5LDE2LjUzMzUwODQgMTkuNDg5MTIyNSwxNS4wOTQ4NTcgMTkuOTU4ODY0LDEzLjQ5NjY0OTUgQzIwLjA5MDc1LDEzLjA0Nzg3NDYgMTkuODk3Mjk4MSwxMi41NjYzNTMzIDE5LjQ5NjE1ODYsMTIuMzMyMjkwNyBaIE0xNi43NTMyNjU3LDE2LjU4NTY4NzcgTDE0LjgxMzQyOTEsMTUuNDUzNTM3OSBDMTMuNjgyOTA3OCwxNi40MzAzNDg5IDEzLjI4MTk3MjcsMTYuNjc2MTEyNSAxMS44Mzc2NDk1LDE3LjE5MTkxIEwxMS44Mzc2NDk1LDE5LjQ1NjE2ODMgQzExLjMzNTc1NDYsMTkuNTYwODE2MyAxMC41MTI0ODk5LDE5LjY0NTc0MiAxMCwxOS42NDU3NDIgQzkuNDg3NTEwMDcsMTkuNjQ1NzQyIDguNjY0MjQ1NCwxOS41NjA4MTYzIDguMTYyMzUwNTMsMTkuNDU2MTY4MyBMOC4xNjIzNTA1MywxNy4xOTE5MSBDNi43NTM5ODUsMTYuNjg4OTcxMiA2LjM0NjI1OTM0LDE2LjQ1NTQ0NjIgNS4xODY1NzA4OCwxNS40NTM1Mzc5IEwzLjI0NjczNDMyLDE2LjU4NTY4NzcgQzIuNDIxMDk3MDEsMTUuNjUwNDI5OSAxLjc5MzYxNTkyLDE0LjU1Mzg3OTQgMS40MDY1NDg1OCwxMy4zNjk3MTU3IEwzLjM0NzI0NDIsMTIuMjM3NTY1OSBDMy4wNzM1MzE3MSwxMC43MzgwNTI1IDMuMDczMzY4MDgsMTAuMjYyNjkxOCAzLjM0NzI0NDIsOC43NjI0MzQxIEwxLjQwNjU0ODU4LDcuNjMwMjg0MjkgQzEuNzkzNjE1OTIsNi40NDYxMjA1OSAyLjQyMTEzNzkyLDUuMzQ5NTI4NzcgMy4yNDY3MzQzMiw0LjQxMzg1NzUzIEw1LjE4NjU3MDg4LDUuNTQ2ODM0MjYgQzYuMzMzMzczNDYsNC41NTQ2ODM3IDYuNzM5MTM1NTYsNC4zMTYyNzk3OSA4LjE2MjM1MDUzLDMuODA4MDQ4NjQgTDguMTYyMzUwNTMsMS41NDM4MzE3MiBDOC42NjQyNDU0LDEuNDM5MDE4MzUgOS40ODc1MTAwNywxLjM1Mzk2ODYgMTAsMS4zNTM5Njg2IEMxMC41MTI0ODk5LDEuMzUzOTY4NiAxMS4zMzU3NTQ2LDEuNDM5MDE4MzUgMTEuODM3NjQ5NSwxLjU0MzgzMTcyIEwxMS44Mzc2NDk1LDMuODA4MDg5OTggQzEzLjI2MDk0NjMsNC4zMTYzNjI0OCAxMy42NjY3NDkzLDQuNTU0ODA3NzQgMTQuODEzNDI5MSw1LjU0Njg3NTYxIEwxNi43NTMyNjU3LDQuNDEzODk4ODcgQzE3LjU3ODg2MjEsNS4zNDk1Mjg3NyAxOC4yMDYzODQxLDYuNDQ2MTIwNTkgMTguNTkzNDUxNCw3LjYzMDMyNTY0IEwxNi42NTI3NTU4LDguNzYyNDc1NDQgQzE2LjkyNjUwOTIsMTAuMjYyMzYxIDE2LjkyNjYzMTksMTAuNzM3MzQ5NiAxNi42NTI3NTU4LDEyLjIzNzYwNzIgTDE4LjU5MzQ1MTQsMTMuMzY5NzU3MSBDMTguMjA2Mzg0MSwxNC41NTM4Nzk0IDE3LjU3ODkwMywxNS42NTA0NzEyIDE2Ljc1MzI2NTcsMTYuNTg1Njg3NyBaIE0xMCw2LjQzNTQ5NDU0IEM3Ljc4MjYwNTYzLDYuNDM1NDk0NTQgNS45Nzg2MjMwOSw4LjI1ODgzMzc1IDUuOTc4NjIzMDksMTAuNTAwMDIwNyBDNS45Nzg2MjMwOSwxMi43NDEyMDc2IDcuNzgyNjA1NjMsMTQuNTY0NTQ2OCAxMCwxNC41NjQ1NDY4IEMxMi4yMTczOTQ0LDE0LjU2NDU0NjggMTQuMDIxMzc2OSwxMi43NDEyMDc2IDE0LjAyMTM3NjksMTAuNTAwMDIwNyBDMTQuMDIxMzc2OSw4LjI1ODgzMzc1IDEyLjIxNzM5NDQsNi40MzU0OTQ1NCAxMCw2LjQzNTQ5NDU0IFogTTEwLDEzLjIwOTcwNDggQzguNTIxNzIzNDUsMTMuMjA5NzA0OCA3LjMxOTA4MjA2LDExLjk5NDE1OTEgNy4zMTkwODIwNiwxMC41MDAwMjA3IEM3LjMxOTA4MjA2LDkuMDA1ODgyMjggOC41MjE3MjM0NSw3
34Ljc5MDMzNjU5IDEwLDcuNzkwMzM2NTkgQzExLjQ3ODI3NjUsNy43OTAzMzY1OSAxMi42ODA5MTc5LDkuMDA1ODgyMjggMTIuNjgwOTE3OSwxMC41MDAwMjA3IEMxMi42ODA5MTc5LDExLjk5NDE1OTEgMTEuNDc4Mjc2NSwxMy4yMDk3MDQ4IDEwLDEzLjIwOTcwNDggWiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMi4wMDAwMDAsIDIuMDAwMDAwKSIvPjwvZz48L2c+PC9zdmc+Cg==",n=i(58294),o=i(8921),r=i(77133),l=i.n(r),d=i(84525),c=i.n(d),u=i(67953),p=i(24176),h=i(28759),_=i(99679),m=i(45656),g=i(49458),v=i(56562),f=i(44492),y=i(80846),b=i(7130),C=i(58249),w=i(52202),S=i(18335);class M extends u.lD{async generateImage(){this.qrSource=await S.dY(this.value,{errorCorrectionLevel:"high",margin:5,type:"image/png",width:300})}constructor(...t){super(...t),this.qrSource=null}}(0,s.Cg)([(0,u.kv)()],M.prototype,"value",void 0),(0,s.Cg)([(0,u.ox)("value",{immediate:!0})],M.prototype,"generateImage",null);var A=M=(0,s.Cg)([u.uA],M),k=i(41618),I=(0,k.A)(A,function(){var t=this._self._c;return this._self._setupProxy,this.qrSource?t("img",{attrs:{src:this.qrSource,alt:"QR Code"}}):this._e()},[],!1,null,null,null).exports;class x extends u.lD{selectDefaultNetwork(){this.wifiNetwork=this.wifiNetworks[0]||null}get ssid(){return this.wifiNetwork?.ssid}get security(){return this.wifiNetwork?.security}get password(){return this.wifiNetwork?.password}get wifiInfo(){let t=[{title:this.$t("shareWifiPopupContent.SSID_label").toString(),value:this.ssid}];return this.security&&"None"!==this.security&&t.push({title:this.$t("shareWifiPopupContent.password_label").toString(),value:this.password,secret:!0}),t}get settings(){let t={ssid:{title:this.$t("shareWifiPopupContent.SSID_label").toString(),status:this.ssid,isViewOnly:!0,hint:this.$t("shareWifiPopupContent.SSID_hint").toString()},password:{title:this.$t("shareWifiPopupContent.password_label").toString(),status:this.password,isViewOnly:!0}};return"None"===this.security&&delete t.password,t}get qrCode(){let t=["WPA3-Personal","WPA3-Personal-Transition","WPA2-Personal"].includes(this.security??"")?"T:WPA":"";return`WIFI:${t};S:${this.ssid};P:${this.password};;`}created(){this.trackingService.trackInternetboxShareWifi()}constructor(...t){super(...t),this.wifiNetwork=null}}(0,s.Cg)([(0,u.kv)({required:!0})],x.prototype,"wifiNetworks",void 0),(0,s.Cg)([(0,u.y_)()],x.prototype,"trackingService",void 0),(0,s.Cg)([(0,u.ox)("wifiNetworks",{immediate:!0})],x.prototype,"selectDefaultNetwork",null);var N=x=(0,s.Cg)([(0,u.uA)({components:{InfoList:w.A,Field:C.A,QrCode:I,IntroBlock:h.A}})],x),T=(0,k.A)(N,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"shareWifiPopupContent styleLevel1"},[e("IntroBlock",{staticClass:"shareWifiPopupContent__intro",attrs:{horizontalChildAlignment:"center",title:t.$t("shareWifiPopupContent.title"),titleAppearance:"h4",titleTag:"h1",description:t.$t("shareWifiPopupContent.description")}}),t.wifiNetworks.length>1?e("Field",{staticClass:"shareWifiPopupContent__selection",attrs:{label:t.$t("shareWifiPopupContent.select_network")}},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.wifiNetwork,expression:"wifiNetwork"}],staticClass:"network-selection",attrs:{name:"network-selection"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.wifiNetwork=e.target.multiple?i:i[0]}}},[null===t.wifiNetwork?e("option",{domProps:{value:null}}):t._e(),t._l(t.wifiNetworks,function(i){return e("option",{key:i.name,domProps:{value:i}},[t._v(t._s(i.ssid))])})],2)]):t._e(),e("QrCode",{staticClass:"shareWifiPopupContent__qr",attrs:{value:t.qrCode}}),e("div",{staticClass:"shareWifiPopupContent__info"},[e("InfoList",{staticClass:"wifi-info",attrs:{data:t.wifiInfo,appearance:"narrow"}})],1)],1)},[],!1,null,"6457529d",null).exports,D=i(3231),$=i(28687),P=i(50778);class L extends u.lD{get iconUrl(){return({open:"--icon-box-bg-url",ready_for_shipping:"--icon-box-bg-url",in_transit:"--icon-bpost-bg-url",complete:"--icon-bpost-bg-url",cancelled:"--icon-cancel-bg-url"})[this.hardwareId]??null}hardwareImageSource(t,e){let i=`${this.config.vueRoot}
34/img/bbHardware${this.withImgBackground?"/withBg":""}/${t}_thumb`;return e?i+=`@${e}x.webp ${e}x`:i+=".webp",i}}(0,s.Cg)([(0,u.y_)()],L.prototype,"config",void 0),(0,s.Cg)([(0,u.kv)({type:String})],L.prototype,"status",void 0),(0,s.Cg)([(0,u.kv)({type:String})],L.prototype,"label",void 0),(0,s.Cg)([(0,u.kv)({type:String})],L.prototype,"hardwareId",void 0),(0,s.Cg)([(0,u.kv)({type:Boolean,default:!1})],L.prototype,"withImgBackground",void 0),(0,s.Cg)([(0,u.kv)({type:Boolean,default:!1})],L.prototype,"loading",void 0);var E=L=(0,s.Cg)([(0,u.uA)({components:{Icon:$.A,Tag:P.A}})],L),O=(0,k.A)(E,function(){var t=this._self._c;return this._self._setupProxy,this.loading?t("div",{staticClass:"HardwareItem HardwareItem--isLoading",attrs:{"data-qa":"hardware-item-loading"}},[t("div",{staticClass:"HardwareItem__img shimmer"},[this._v("Â ")]),t("div",{staticClass:"HardwareItem__label shimmer"},[this._v("Â ")])]):t("div",{staticClass:"HardwareItem",attrs:{"data-qa":"hardware-item"}},[t("div",{staticClass:"HardwareItem__labelImg"},[this.iconUrl?t("Icon",{staticClass:"HardwareItem__img",attrs:{iconUrl:this.iconUrl,appearance:"inCircle","data-qa":"hardware-item-image"}}):t("img",{staticClass:"HardwareItem__img",attrs:{"data-qa":"hardware-item-image",src:this.hardwareImageSource(this.hardwareId),srcset:`${this.hardwareImageSource(this.hardwareId,2)}, ${this.hardwareImageSource(this.hardwareId,3)}`}}),t("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.label,expression:"label"}],staticClass:"HardwareItem__label"})],1),this.status?t("Tag",{staticClass:"HardwareItem__tag",attrs:{appearance:"white",size:"small","data-qa":"hardware-item-tag"}},[this._v(" "+this._s(this.status)+" ")]):this._e()],1)},[],!1,null,"c24d9104",null).exports,z=i(2691);class j extends u.lD{get hasActiveBoosters(){return Object.values(this.groupedBoosters).some(t=>t.count>0)}get groupedBoosters(){return this.session.broadbandSubscription?Object.values(this.session.broadbandSubscription?.wifiBoosters?.reduce((t,e)=>(t[e.product.variant]||(t[e.product.variant]={count:0,product:e.product,hardwareId:(0,z.HM)(e.product),status:""}),"enabled"===e.state&&(t[e.product.variant].count+=1),t),{})).map(t=>{let e=(0,z.HM)(t.product),i=this.hardwareReturns.filter(t=>t.items.some(t=>t.type===e)),s=(0,z.Iy)(i);if(s.length>0){let i=s.reduce((t,i)=>t+i.items.filter(t=>t.type===e).length,0);t.status=this.$t("bb_hardware_to_return.still_to_return_{amount}",{amount:i}).toString()}return t.label=`${t.product.title} x ${t.count}`,t}):[]}}(0,s.Cg)([(0,u.y_)()],j.prototype,"session",void 0),(0,s.Cg)([(0,u.kv)({required:!0})],j.prototype,"hardwareReturns",void 0);var B=j=(0,s.Cg)([(0,u.uA)({components:{MvSection:v.A,HardwareItem:O}})],j),F=(0,k.A)(B,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.hasActiveBoosters?e("MvSection",{attrs:{title:t.$t("modem_info.rented_hardware_section_title")}},[e("div",{staticClass:"ActiveWifiBoosters ContentBoxList nextStyleLevel"},t._l(t.groupedBoosters,function(i){return e("RouterLink",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],key:i.product.variant,staticClass:"ContentBoxList__item ContentBoxList__item--link",attrs:{to:{...t.$route,query:{...t.$route.query,spc:"wifi-booster",variant:i.product.variant}}}},[e("HardwareItem",{attrs:{label:i.label,hardwareId:i.hardwareId,status:i.status}}
34)],1)}),1)]):t._e()},[],!1,null,null,null).exports;class q extends u.lD{get wifiBoosterRequests(){return this.orders.filter(t=>!!t.product).map(t=>({id:t.id,label:`${t.product.title} x ${t.productQuantity}`,hardwareId:(0,z.HM)(t.product)}))}}(0,s.Cg)([(0,u.y_)()],q.prototype,"config",void 0),(0,s.Cg)([(0,u.kv)({required:!0})],q.prototype,"orders",void 0);var R=q=(0,s.Cg)([(0,u.uA)({components:{MvSection:v.A,HardwareItem:O,LinksetInfo:m.A}})],q),U=(0,k.A)(R,function(){var t=this._self._c;return this._self._setupProxy,this.wifiBoosterRequests.length>0?t("MvSection",{attrs:{title:this.$t("modem_info.ordered_hardware_section_title")}},[t("div",{staticClass:"OrderedWifiBoosters ContentBoxList nextStyleLevel"},[t("LinksetInfo",[this._v(this._s(this.$t("wifi_booster_order.info")))]),this._l(this.wifiBoosterRequests,function(e){return t("div",{key:e.id,staticClass:"ContentBoxList__item"},[t("HardwareItem",{attrs:{label:e.label,hardwareId:e.hardwareId}})],1)})],2)]):this._e()},[],!1,null,null,null).exports,V=i(62765),W=i(46535);class Q extends u.lD{}(0,s.Cg)([(0,u.kv)({required:!1,default:"1rem"})],Q.prototype,"size",void 0);var Y=Q=(0,s.Cg)([(0,u.uA)({components:{Shimmer:W.A}})],Q),G=(0,k.A)(Y,function(){var t=this._self._c;return this._self._setupProxy,t("Shimmer",{staticClass:"ShimmerCircle",attrs:{width:this.size,height:this.size}})},[],!1,null,"3d4f3817",null).exports;class H extends u.lD{pricePerMonth(t){return`${this.$t("{amount}_per_month",{amount:(0,V.up)(t.price,"two_if_significant")})}`}orderRoute(t){return{name:D.A.broadbandOrderWifiBooster,query:{boosterId:t}}}}(0,s.Cg)([(0,u.kv)({required:!1})],H.prototype,"boosters",void 0),(0,s.Cg)([(0,u.kv)({required:!1,default:!1})],H.prototype,"disabled",void 0),(0,s.Cg)([(0,u.kv)({required:!1,default:!1})],H.prototype,"loading",void 0);var Z=H=(0,s.Cg)([(0,u.uA)({components:{Shimmer:W.A,ShimmerCircle:G,CallToAction:p.A,Icon:$.A}})],H),J=(0,k.A)(Z,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"OrderWifiBoosterCtaWizardForm",attrs:{"data-qa":"order-wifi-booster-cta-wizard-form"}},[t.loading?[e("div",{staticClass:"ContentBoxList nextStyleLevel"},[e("div",{staticClass:"ContentBoxList__item"},[e("div",{staticClass:"BoosterItem"},[e("div",{staticClass:"BoosterItem__section1"},[e("div",[e("ShimmerCircle",{attrs:{size:"3rem"}})],1),e("div",{staticClass:"BoosterItem__section1Content"},[e("Shimmer",{attrs:{width:"20ch",height:"18px"}}),e("Shimmer",{attrs:{width:"20ch",height:"1rem"}})],1)]),e("div",{staticClass:"BoosterItem__section2"},[e("div",{staticClass:"BoosterItem__section2Content"},[e("Shimmer",{attrs:{width:"8ch",height:"0.75rem"}}),e("Shimmer",{attrs:{width:"8ch",height:"0.75rem"}})],1),e("div",[e("CallToAction",{staticStyle:{width:"100%"},attrs:{loading:!0,appearance:"secondary"}},[t._v(" "+t._s(t.$t("booster_item.order_now"))+" ")])],1)])])])])]:t._l(t.boosters,function(i){return e("div",{key:i.id,staticClass:"ContentBoxList nextStyleLevel"},[e("div",{staticClass:"ContentBoxList__item"},[e("div",{staticClass:"BoosterItem"},[e("div",{staticClass:"BoosterItem__section1"},[e("div",[e("div",{staticClass:"BoosterItem__iconContainer nextStyleLevel"},[e("Icon",{attrs:{iconUrl:"--icon-antenna-bg-url"}})],1)]),e("div",{staticClass:"BoosterItem__section1Content"},[e("div",{staticClass:"BoosterItem__title"},[t._v(t._s(i.title))]),e("div",{staticClass:"BoosterItem__description"},[t._v(t._s(i.description))])])]),e("div",{staticClass:"BoosterItem__section2"},[e("div",{staticClass:"BoosterItem__section2Content"},[e("div",{staticClass:"BoosterItem__price"},[t._v(t._s(t.pricePerMonth(i)))]),e("div",{staticClass:"BoosterItem__pricelabel"},[t._v(t._s(t.$t("booster_item.include_vat")))])]),e("div",[e("CallToAction",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled,appearance:"secondary",to:t.orderRoute(i.id)}},[t._v(" "+t._s(t.$t("booster_item.order_now"))+" ")])],1)])])])])})],2)},[],!1,null,"239a7160",null).exports;class K extends u.lD{}var X=K=(0,s.Cg)([(0,u.uA)({components:{ThematicLinks:y.A,ThematicLink:f.A}})],K),tt=(0,k.A)(X,function(){var t=this._self._c;return this._self._setupProxy,t("ThematicLinks",{staticClass:"broadbandModem
34View__upsells nextStyleLevel"},[t("ThematicLink",{attrs:{href:this.$t("modem_info.order_boosters_button_href"),title:this.$t("modem_info.order_boosters_button_title"),tip:this.$t("modem_info.order_boosters_button_tip")}})],1)},[],!1,null,null,null).exports;let te=(0,n.tZ)("OrderWifiBooster");class ti extends u.lD{get linksetInfo(){return this.error?this.$t("order_wifi_booster_cta_error.linkset_info"):this.pendingMove?this.$t("order_wifi_booster_cta_move.linkset_info"):this.pendingMigration?this.$t("order_wifi_booster_cta_migration.linkset_info"):""}async loadPendingMigration(){try{let t=await this.subscriptionService.getLastBroadbandMigration(this.session.subscription);t&&(this.pendingMigration=await this.subscriptionService.blockMigrationBecauseOfPendingMigration(t))}catch(t){throw te.error("Failed to load order pending migration status",t),t}}async loadBoosters(){try{this.boosters=await this.broadbandService.getBoostersByModemType(this.modemType)}catch(t){throw te.error("Failed to load boosters",t),t}}async mounted(){if(this.enableWifiBoosterForm){this.loading=!0;try{await this.loadPendingMigration(),await this.loadBoosters()}catch(t){this.error=!0,this.notifyGenericErrors(t)}finally{this.loading=!1}}}constructor(...t){super(...t),this.boosters=[],this.loading=!1,this.enableWifiBoosterForm=this.config.featureFlags.pp1071EnableWifiBoosterForm,this.pendingMove=!!this.session?.broadbandSubscription?.moveToOrderId,this.pendingMigration=!1,this.error=!1}}(0,s.Cg)([(0,u.y_)()],ti.prototype,"broadbandService",void 0),(0,s.Cg)([(0,u.y_)()],ti.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,u.y_)()],ti.prototype,"config",void 0),(0,s.Cg)([(0,u.y_)()],ti.prototype,"session",void 0),(0,s.Cg)([(0,u.kv)({required:!0})],ti.prototype,"modemType",void 0);var ts=ti=(0,s.Cg)([(0,u.uA)({components:{LinksetInfo:m.A,OrderWifiBoosterCtaZendeskForm:tt,OrderWifiBoosterCtaWizardForm:J,MvSection:v.A}})],ti),ta=(0,k.A)(ts,function(){var t=this._self._c;return this._self._setupProxy,t("MvSection",{attrs:{title:this.$t("modem_info.other_hardware_section_title"),"data-qa":"order-wifi-booster-cta"}},[this.enableWifiBoosterForm?[this.loading?[t("OrderWifiBoosterCtaWizardForm",{attrs:{loading:!0}})]:this.pendingMigration||this.pendingMove||this.error?[t("div",{staticClass:"OrderWifiBoosterCtaDisabled"},[t("LinksetInfo",{staticClass:"nextStyleLevel OrderWifiBoosterCtaDisabled_linksetInfo"},[this._v(this._s(this.linksetInfo))]),t("OrderWifiBoosterCtaWizardForm",{attrs:{boosters:this.boosters,disabled:!0}})],1)]:[t("OrderWifiBoosterCtaWizardForm",{attrs:{boosters:this.boosters,disabled:!1}})]]:[t("OrderWifiBoosterCtaZendeskForm")]],2)},[],!1,null,"425efee7",null).exports;class tn extends u.lD{statusLabel(t){return["open","ready_for_shipping","in_transit","complete","cancelled"].includes(t)?this.$t(`bb_hardware_to_return.status_${t}`):void 0}get sortedHardwareReturns(){return this.hardwareReturns.sort((t,e)=>new Date(e.requestedOn).getTime()-new Date(t.requestedOn).getTime()).map(t=>{let e=Object.entries(t.items.reduce((t,e)=>(t[e.type]=(t[e.type]||0)+1,t),{})).map(([t,e])=>`${this.$t(`bb_hardware_to_return.hardware_item_name_${t}`)} x ${e}`).join("<br/>");return{id:t.id,hardwareId:t.state,status:this.statusLabel(t.state),label:e}})}get variant(){return this.session.broadbandSubscription?.modem?.type}}(0,s.Cg)([(0,u.y_)()],tn.prototype,"session",void 0),(0,s.Cg)([(0,u.kv)({required:!0})],tn.prototype,"hardwareReturns",void 0);var to=tn=(0,s.Cg)([(0,u.uA)({components:{MvSection:v.A,HardwareItem:O}})],tn),tr=(0,k.A)(to,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.hardwareReturns.length>0?e("MvSection",{attrs:{title:t.$t("bb_hardware_to_return.ongoing_returns_section_title")}},[e("div",{staticClass:"OngoingHardwareReturns ContentBoxList nextStyleLevel"},t._l(t.sortedHardwareReturns,function(i){return e("RouterLink",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],key:i.id,staticClass:"ContentBoxList__item ContentBoxList__item--link",attrs:{to:{...t.$route,query:{...t.$route.query,spc:"hardware-return",returnId:i.id,variant:t.variant}}}},[e("HardwareItem",{attrs:{label:i.label,hardwareId:i.hardwareId,status:i.status}}
34)],1)}),1)]):t._e()},[],!1,null,null,null).exports;let tl=(0,n.tZ)("BroadbandModemView");class td extends u.lD{async loadData(){if(!this.session.broadbandSubscription){this.modemConfig=null;return}try{this.loading=!0,this.modemConfigUnavailable=!1,this.modemConfig=await this.broadbandService.getModemConfig(this.session.broadbandSubscription),this.wifiBoosterOrders=await this.broadbandService.getWifiBoosterRequestsForSubscription(this.session.broadbandSubscription),this.hardwareReturns=await this.broadbandService.getHardwareReturnInfo(this.session.broadbandSubscription)}catch(t){if(o.Ay.of(t).code===o.O4.MODEM_SETTINGS_UNAVAILABLE){this.modemConfigUnavailable=!0;return}this.notifyGenericErrors(t),tl.error("Failed to load modem config",t)}finally{this.loading=!1}}async onSidePanelChange(t,e){"hardware-return"!==e.spc||t.spc||await this.loadData()}get warnAdvancedSettingsConsequencesRoute(){return this.modemConfig&&this.advancedFeatureEnabled?{name:D.A.broadbandNetwork,query:{warning:"entering-advanced-settings"}}:null}get expertSettingsHref(){return this.modemConfig?this.$router.resolve({name:D.A.broadbandModemConfig,params:this.$route.params,query:{expertMode:"true"}}).href:null}get wifiBoosters(){return this.session.broadbandSubscription?.wifiBoosters?this.session.broadbandSubscription.wifiBoosters:[]}get advancedFeatureEnabled(){let{modemConfigExportImport:t,modemConfigPrivateWifi:e,modemConfigSubnets:i,modemConfigDhcp:s,modemConfigDynDns:a,modemConfigRouting:n,modemConfigSecurity:o}=this.config.featureFlags;return t||e||i||s||a||n||o}async onUrlQueryFilterChange(t){"entering-advanced-settings"===t.warning&&(await this.confirm(this.$t("modem_info.entering_advanced_settings_description"),this.$t("modem_info.entering_advanced_settings_title"),this.$t("modem_info.entering_advanced_settings_continue_cta"),this.$t("modem_info.entering_advanced_settings_cancel_cta"))?await this.$router.replace({name:this.advancedSettingsRoute?.name,params:this.advancedSettingsRoute?.params}):await this.$router.replace({name:D.A.broadbandNetwork,query:{warning:void 0}}))}get options(){let t=[{icon:"iconCog",iconImg:a,label:this.$t("modem_info.setup"),href:this.modem?.setupAddress??void 0,inButtons:!0},{icon:"iconCog",iconImg:a,label:this.$t("modem_info.advanced_settings"),to:this.warnAdvancedSettingsConsequencesRoute??void 0},{icon:"iconQr",iconImg:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyBmaWxsPSIjRDhEOEQ4IiBmaWxsLXJ1bGU9Im5vbnplcm8iPjxwYXRoIGQ9Ik0wLDguNTcxNDI4NTcgTDguNTcxNDI4NTcsOC41NzE0Mjg1NyBMOC41NzE0Mjg1NywwIEwwLDAgTDAsOC41NzE0Mjg1NyBaIE0xLjc4NTcxNDI5LDEuNzg1NzE0MjkgTDYuNzg1NzE0MjksMS43ODU3MTQyOSBMNi43ODU3MTQyOSw2Ljc4NTcxNDI5IEwxLjc4NTcxNDI5LDYuNzg1NzE0MjkgTDEuNzg1NzE0MjksMS43ODU3MTQyOSBaIE0xMS40Mjg1NzE0LDAgTDExLjQyODU3MTQsOC41NzE0Mjg1NyBMMjAsOC41NzE0Mjg1NyBMMjAsMCBMMTEuNDI4NTcxNCwwIFogTTE4LjIxNDI4NTcsNi43ODU3MTQyOSBMMTMuMjE0Mjg1Nyw2Ljc4NTcxNDI5IEwxMy4yMTQyODU3LDEuNzg1NzE0MjkgTDE4LjIxNDI4NTcsMS43ODU3MTQyOSBMMTguMjE0Mjg1Nyw2Ljc4NTcxNDI5IFogTTAsMjAgTDguNTcxNDI4NTcsMjAgTDguNTcxNDI4NTcsMTEuNDI4NTcxNCBMMCwxMS40Mjg1NzE0IEwwLDIwIFogTTEuNzg1NzE0MjksMTMuMjE0Mjg1NyBMNi43ODU3MTQyOSwxMy4yMTQyODU3IEw2Ljc4NTcxNDI5LDE4LjIxNDI4NTcgTDEuNzg1NzE0MjksMTguMjE0Mjg1NyBMMS43ODU3MTQyOSwxMy4yMTQyODU3IFogTTMuMjE0Mjg1NzEsMTQuNjQyODU3MSBMMy4yMTQyODU3MSwxNi43ODU3MTQzIEw1LjM1NzE0Mjg2LDE2Ljc4NTcxNDMgTDUuMzU3MTQyODYsMTQuNjQyODU3MSBMMy4yMTQyODU3MSwxNC42NDI4NTcxIFogTTMuMjE0Mjg1NzEsMy4yMTQyODU3MSBMMy4yMTQyODU3MSw1LjM1NzE0Mjg2IEw1LjM1NzE0Mjg2LDUuMzU3MTQyODYgTDUuMzU3MTQyODYsMy4yMTQyODU3MSBMMy4yMTQyODU3MSwzLjIxNDI4NTcxIFogTTE2Ljc4NTcxNDMsNS4zNTcxNDI4NiBMMTYuNzg1NzE0MywzLjIxNDI4NTcxIEwxNC42NDI4NTcxLDMuMjE0Mjg1NzEgTDE0LjY0Mjg1NzEsNS4zNTcxNDI4NiBMMTYuNzg1NzE0Myw1LjM1NzE0Mjg2IFogTTE4LjU3MTQyODYsMTEuNDI4NTcxNCBMMTguNTcxNDI4NiwxMi44NTcxNDI5IEwxNS43MTQyODU3LDEyLjg1NzE0MjkgTDE1LjcxNDI4NTcsMTEuNDI4NTcxNCBMMTEuNDI4NTcxNCwxMS40Mjg1NzE0IEwxMS40Mjg1NzE0LDIwIEwxMi44NTcxNDI5LDIwIEwxMi44NTcxNDI5LDE1LjcxNDI4NTcgTDE0LjI4NTcxNDMsMTUuNzE0Mjg1NyBMMTQuMjg1NzE0MywxNy4xNDI4NTcxIEwyMCwxNy4xNDI4NTcxIEwyMCwxMS40Mjg1NzE0IEwxOC41NzE0Mjg2LDExLjQyODU3MTQgWiBNMTguNTcxNDI4NiwxOC41NzE0Mjg2IEwxOC41NzE0Mjg2LDIwIEwyMCwyMCBMMjAsMTguNTcxNDI4NiBMMTguNTcxNDI4NiwxOC41NzE0Mjg2IFogTTE1LjcxNDI4NTcsMTguNTcxNDI4NiBMMTUuNzE0Mjg1NywyMCBMMTcuMTQyODU3MSwyMCBMMTcuMTQyODU3MSwxOC41NzE0Mjg2IEwxNS43MTQyODU3LDE4LjU3MTQyODYgWiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMi4wMDAwMDAsIDIuMDAwMDAwKSIvPjwvZz48L2c+PC9zdmc+Cg==",label:this.$t("modem_info.share_your_wifi"),to:this.shareWifiRoute??void 0,inButtons:!0},{icon:"iconGauge",iconImg:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyBmaWxsPSIjRDhEOEQ4IiBmaWxsLXJ1bGU9Im5vbnplcm8iPjxwYXRoIGQ9Ik00LjU4MzMzMzMzLDEwLjkyODU3MTQgQzQuNTgzMzMzMzMsMTAuNDI1NDEwNyA0LjE3MzExNjA1LDEwLjAxNzg1NzEgMy42NjY2NjY2NywxMC4wMTc4NTcxIEMzLjE2MDIxNzI5LDEwLjAxNzg1NzEgMi43NSwxMC40MjU0MTA3IDIuNzUsMTAuOTI4NTcxNCBDMi43NSwxMS40MzE3MzIyIDMuMTYwMjE3MjksMTEuODM5Mjg1NyAzLjY2NjY2NjY3LDExLjgzOTI4NTcgQzQuMTczMTE2MDUsMTEuODM5Mjg1NyA0LjU4MzMzMzMzLDExLjQzMTczMjIgNC41ODMzMzMzMywxMC45Mjg1NzE0IFogTTExLDQuNTUzNTcxNDMgQzExLjUwNjQ0OTQsNC41NTM1NzE0MyAxMS45MTY2NjY3LDQuMTQ2MDE3ODkgMTEuOTE2NjY2NywzLjY0Mjg1NzE0IEMxMS45MTY2NjY3LDMuMTM5Njk2MzkgMTEuNTA2NDQ5NCwyLjczMjE0Mjg2IDExLDIuNzMyMTQyODYgQzEwLjQ5MzU1MDYsMi43MzIxNDI4NiAxMC4wODMzMzMzLDMuMTM5Njk2MzkgMTAuMDgzMzMzMywzLjY0Mjg1NzE0IEMxMC4wODMzMzMzLDQuMTQ2MDE3ODkgMTAuNDkzNTUwNiw0LjU1MzU3MTQzIDExLDQu
34NTUzNTcxNDMgWiBNNS44MDU1NTU1Niw0Ljg1NzE0Mjg2IEM1LjI5OTEwNjE3LDQuODU3MTQyODYgNC44ODg4ODg4OSw1LjI2NDY5NjM5IDQuODg4ODg4ODksNS43Njc4NTcxNCBDNC44ODg4ODg4OSw2LjI3MTAxNzg5IDUuMjk5MTA2MTcsNi42Nzg1NzE0MyA1LjgwNTU1NTU2LDYuNjc4NTcxNDMgQzYuMzEyMDA0OTQsNi42Nzg1NzE0MyA2LjcyMjIyMjIyLDYuMjcxMDE3ODkgNi43MjIyMjIyMiw1Ljc2Nzg1NzE0IEM2LjcyMjIyMjIyLDUuMjY0Njk2MzkgNi4zMTIwMDQ5NCw0Ljg1NzE0Mjg2IDUuODA1NTU1NTYsNC44NTcxNDI4NiBaIE0xNi41Nzg2NjQxLDUuMjk1Nzg3MjcgQzE2LjMxNTE0NDksNS4wODU1NjI1NyAxNS45MzE2NzExLDUuMTI1MDI4MzQgMTUuNzE5Mjg5MSw1LjM4NjEzMjM4IEwxMi4wMTA5OTY1LDkuOTM3NDA2MjcgQzExLjcwMjAwOTQsOS43OTY5OTcwNyAxMS4zNjE2OTA5LDkuNzE0Mjg1NzEgMTEsOS43MTQyODU3MSBDOS42NDk4NDEzMSw5LjcxNDI4NTcxIDguNTU1NTU1NTYsMTAuODAxNDY1NyA4LjU1NTU1NTU2LDEyLjE0Mjg1NzEgQzguNTU1NTU1NTYsMTMuNDg0MjQ4NiA5LjY0OTg0MTMxLDE0LjU3MTQyODYgMTEsMTQuNTcxNDI4NiBDMTIuMzUwMTU4NywxNC41NzE0Mjg2IDEzLjQ0NDQ0NDQsMTMuNDg0MjQ4NiAxMy40NDQ0NDQ0LDEyLjE0Mjg1NzEgQzEzLjQ0NDQ0NDQsMTEuNjAxNzUgMTMuMjYwMzM1MywxMS4xMDY5MjcxIDEyLjk1OTM2NzUsMTAuNzAzMTUzMyBMMTYuNjY5NTk5Nyw2LjE0OTU4MTkxIEMxNi44ODE5NDQ0LDUuODg5MjkzMTMgMTYuODQxNDc0Nyw1LjUwNjc5MDE2IDE2LjU3ODY2NDEsNS4yOTU3ODcyNyBaIE0xMi4yMjIyMjIyLDEyLjE0Mjg1NzEgQzEyLjIyMjIyMjIsMTIuODEzMzY3NiAxMS42NzQ4OTI4LDEzLjM1NzE0MjkgMTEsMTMuMzU3MTQyOSBDMTAuMzI1MTA3MiwxMy4zNTcxNDI5IDkuNzc3Nzc3NzgsMTIuODEzMzY3NiA5Ljc3Nzc3Nzc4LDEyLjE0Mjg1NzEgQzkuNzc3Nzc3NzgsMTEuNDcyMzQ2NyAxMC4zMjUxMDcyLDEwLjkyODU3MTQgMTEsMTAuOTI4NTcxNCBDMTEuNjc0ODkyOCwxMC45Mjg1NzE0IDEyLjIyMjIyMjIsMTEuNDcyMzQ2NyAxMi4yMjIyMjIyLDEyLjE0Mjg1NzEgWiBNMTguMzMzMzMzMywxMC4wMTc4NTcxIEMxNy44MjY4ODQsMTAuMDE3ODU3MSAxNy40MTY2NjY3LDEwLjQyNTQxMDcgMTcuNDE2NjY2NywxMC45Mjg1NzE0IEMxNy40MTY2NjY3LDExLjQzMTczMjIgMTcuODI2ODg0LDExLjgzOTI4NTcgMTguMzMzMzMzMywxMS44MzkyODU3IEMxOC44Mzk3ODI3LDExLjgzOTI4NTcgMTkuMjUsMTEuNDMxNzMyMiAxOS4yNSwxMC45Mjg1NzE0IEMxOS4yNSwxMC40MjU0MTA3IDE4LjgzOTc4MjcsMTAuMDE3ODU3MSAxOC4zMzMzMzMzLDEwLjAxNzg1NzEgWiBNMjIsMTAuOTI4NTcxNCBDMjIsNC44OTI4Mjg4MSAxNy4wNzUxOTE5LDAgMTEsMCBDNC45MjQ4MDgwOCwwIDAsNC44OTI4Mjg4MSAwLDEwLjkyODU3MTQgQzAsMTIuOTMyMTM1NCAwLjU0NDI3MDgzMywxNC44MDg5NjQzIDEuNDkxODU4NTksMTYuNDIzMjA2OSBDMS43MDYxNDI4NSwxNi43ODgyNTYgMi4xMTQ0NTc4NywxNyAyLjUzOTkzMDU2LDE3IEwxOS40NjAwNjk0LDE3IEMxOS44ODU1NDIxLDE3IDIwLjI5Mzg1NzIsMTYuNzg4MjU2IDIwLjUwODE0MTQsMTYuNDIzMjA2OSBDMjEuNDU1NzI5MiwxNC44MDg5NjQzIDIyLDEyLjkzMjEzNTQgMjIsMTAuOTI4NTcxNCBaIE0yMC43Nzc3Nzc4LDEwLjkyODU3MTQgQzIwLjc3Nzc3NzgsMTIuNjQ2MDE3OSAyMC4zMTk0NDQ0LDE0LjMzNDI2MzQgMTkuNDYwMDY5NCwxNS43ODU3MTQzIEwyLjU0NzU3NjksMTUuODExNTA2IEMxLjY4MDU1NTU2LDE0LjMzNDI2MzQgMS4yMjIyMjIyMiwxMi42NDYwMTc5IDEuMjIyMjIyMjIsMTAuOTI4NTcxNCBDMS4yMjIyMjIyMiw1LjU3MjA0NzY0IDUuNjA4NDY2MjUsMS4yMTQyODU3MSAxMSwxLjIxNDI4NTcxIEMxNi4zOTE1MzM3LDEuMjE0Mjg1NzEgMjAuNzc3Nzc3OCw1LjU3MjA0NzY0IDIwLjc3Nzc3NzgsMTAuOTI4NTcxNCBaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxLjAwMDAwMCwgNC4wMDAwMDApIi8+PC9nPjwvZz48L3N2Zz4K",label:this.$t("modem_info.speed_test"),onClick:()=>this.startSpeedTest(),inButtons:!0}];return this.modem?.online===!1&&t.push({icon:"iconHelpMono",iconImg:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyBmaWxsPSIjN0Y3RjdGIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjxwYXRoIGQ9Ik0xMCwyMCBDMTUuNTIyODU0NywyMCAyMCwxNS41MjI4NTQ3IDIwLDEwIEMyMCw0LjQ3NzE0NTI5IDE1LjUyMjg1NDcsMCAxMCwwIEM0LjQ3NzE0NTI5LDAgMCw0LjQ3NzE0NTI5IDAsMTAgQzAsMTUuNTIyODU0NyA0LjQ3NzE0NTI5LDIwIDEwLDIwIFogTTUuODMwNzA4MTcsMTYuOTA2NDYyNiBMNy45ODQzODI4OCwxNC43NTI3ODc5IEM5LjI2NjkwODcxLDE1LjI5NzM3OSAxMC43MzE0NzY4LDE1LjI5ODAwOTEgMTIuMDE1NjE3MSwxNC43NTI3ODc5IEwxNC4xNjkyOTE4LDE2LjkwNjQ2MjYgQzExLjYyMDE4ODEsMTguNDUxNTU3OCA4LjM3OTgxMTkzLDE4LjQ1MTU1NzggNS44MzA3MDgxNywxNi45MDY0NjI2IFogTTEzLjIyNTgwNjUsMTAgQzEzLjIyNTgwNjUsMTEuNzc4NzIyIDExLjc3ODcyMiwxMy4yMjU4MDY1IDEwLDEzLjIyNTgwNjUgQzguMjIxMjc4MDQsMTMuMjI1ODA2NSA2Ljc3NDE5MzU1LDExLjc3ODcyMiA2Ljc3NDE5MzU1LDEwIEM2Ljc3NDE5MzU1LDguMjIxMjc4MDQgOC4yMjEyNzgwNCw2Ljc3NDE5MzU1IDEwLDYuNzc0MTkzNTUgQzExLjc3ODcyMiw2Ljc3NDE5MzU1IDEzLjIyNTgwNjUsOC4yMjEyNzgwNCAxMy4yMjU4MDY1LDEwIFogTTE2LjkwNjQ2MjYsMTQuMTY5MjkxOCBMMTQuNzUyNzg3OSwxMi4wMTU2MTcxIEMxNS4yOTczMzk3LDEwLjczMzA5MTMgMTUuMjk4MDA5MSw5LjI2ODUyMzE5IDE0Ljc1Mjc4NzksNy45ODQzODI4OCBMMTYuOTA2NDYyNiw1LjgzMDcwODE3IEMxOC40NTE1NTc4LDguMzc5ODExOTMgMTguNDUxNTU3OCwxMS42MjAxODgxIDE2LjkwNjQ2MjYsMTQuMTY5MjkxOCBaIE0xNC4xNjkyNTI1LDMuMDkzNTM3MzYgTDEyLjAxNTU3NzcsNS4yNDcyMTIwNyBDMTAuNzMzMDUxOSw0LjcwMjY2MDM1IDkuMjY4NDgzODEsNC43MDE5OTA5MyA3Ljk4NDM4Mjg4LDUuMjQ3MjEyMDcgTDUuODMwNzA4MTcsMy4wOTM1MzczNiBDOC4zNzk4MTE5MywxLjU0ODQ0MjIzIDExLjYyMDE4ODEsMS41NDg0NDIyMyAxNC4xNjkyNTI1LDMuMDkzNTM3MzYgWiBNMy4wOTM1MzczNiw1LjgzMDcwODE3IEw1LjI0NzIxMjA3LDcuOTg0MzgyODggQzQuNzAyNjIwOTcsOS4yNjY5MDg3MSA0LjcwMTk5MDkzLDEwLjczMTQ3NjggNS4yNDcyMTIwNywxMi4wMTU2MTcxIEwzLjA5MzUzNzM2LDE0LjE2OTI5MTggQzEuNTQ4NDQyMjMsMTEuNjIwMTg4MSAxLjU0ODQ0MjIzLDguMzc5ODExOTMgMy4wOTM1MzczNiw1LjgzMDcwODE3IFoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIuMDAwMDAwLCAyLjAwMDAwMCkiLz48L2c+PC9nPjwvc3ZnPgo=",label:this.$t("modem_info.troubleshoot"),href:this.troubleshootLink,inButtons:!0}),t.filter(t=>t.to||t.href||t.onClick)}get buttonOptions(){return this.options.filter(t=>t.inButtons).filter((t,e)=>e<2)}get requiresMoreMenu(){return this.options.some(t=>!t.inButtons)||this.options.filter(t=>t.inButtons).length>2}get modem(){return this.session.broadbandSubscription?.modem}get wifiNetworks(){return this.modemConfig?.wifiRadioEnabled?this.modemConfig.privateWifi.filter(t=>t.enabled):null}get shareableWifiNetworks(){return this.wifiNetworks?this.wifiNetworks.filter(t=>"None"!==t.security):null}get modemImage(){return this.modem?.type??null}get modemName(){return this.modem?.type?this.$t(`modem_info.modem_type__${this.modem.type}`).toString():this.$t("modem").toString()}get basicConfig(){if(!this.modemConfig&&!this.loading)return[];if(!this.modemConfig)return[{settings:this.wifiConfigFor(null)}];let t=this.modemConfig.privateWifi.filter(t=>"default"===t.type);return 1===t.length?[{settings:this.wifiConfigFor(t[0])}]:t.map(t=>({title:t.ssid?`${t.ssid} (${t.bands?.length?t.bands.join(", "):t.name})`:t.bands?.length?t.bands.join(", "):t.name,settings:this.wifiConfigFor(t)}
34))}wifiConfigFor(t){let e=null===t?()=>{}:e=>this.broadbandService.updateModemConfig(this.session.broadbandSubscription,{privateWifi:[{name:t?.name,...e}]}),i={wifiEnabled:{title:this.$t("modem_config.wifi_enabled").toString(),loading:!t,status:t?.enabled??!1,toggle:async t=>e({enabled:t})},wifiSsid:{title:this.$t("modem_config.wifi_ssid").toString(),loading:!t,status:t?.ssid,statusLength:10,query:{spc:"modem-cfg-wifi",wifiName:t?.name??"",wifiType:"privateWifi"}},wifiPassword:{title:this.$t("modem_config.wifi_password").toString(),loading:!t,status:t?.password?"âââââââââââ":"",statusLength:10,query:{spc:"modem-cfg-wifi",wifiName:t?.name??"",wifiType:"privateWifi"}}};if(this.modemConfig?.wifiRadioEnabled===!1)for(let t of Object.values(i))delete t.query,t.disabled=!0,t.status=!1;return t&&!t.enabled?c()(i,"wifiEnabled"):(t&&"None"===t.security&&delete i.wifiPassword,i)}async startSpeedTest(){await this.confirm(this.$t("modem_config.speed_test_needs_to_be_done_from_home"),this.$t("modem_config.starting_speed_test"),this.$t("modem_config.speed_test_continue"),this.$t("modem_config.speed_test_cancel"))&&this.goTo(this.speedtestLink,!0)}get speedtestLink(){return this.$t("bb_troubleshoot.speedtest_url").toString()}get shareWifiRoute(){return this.shareableWifiNetworks?.length&&this.modem?.type!=="bbox3"?{...this.$route,query:{...this.$route.query,shareWifi:"true"}}:null}closeShareWifi(){this.$router.push({...this.$route,query:l()(this.$route.query||{},"shareWifi")})}get advancedSettingsRoute(){return this.modemConfig?{name:D.A.broadbandModemConfig,params:this.$route.params}:null}get troubleshootLink(){return"#"}constructor(...t){super(...t),this.loading=!1,this.modemConfig=null,this.modemConfigUnavailable=!1,this.showBoosters=this.config.featureFlags.pp1071ShowWifiBoosters,this.wifiBoosterOrders=[],this.hardwareReturns=[],this.moreMenuOpen=!1}}(0,s.Cg)([(0,u.y_)()],td.prototype,"session",void 0),(0,s.Cg)([(0,u.y_)()],td.prototype,"config",void 0),(0,s.Cg)([(0,u.y_)()],td.prototype,"broadbandService",void 0),(0,s.Cg)([(0,u.y_)()],td.prototype,"confirm",void 0),(0,s.Cg)([(0,u.y_)()],td.prototype,"goTo",void 0),(0,s.Cg)([(0,u.kv)()],td.prototype,"shareWifi",void 0),(0,s.Cg)([(0,u.ox)("session.broadbandSubscription.id",{immediate:!0})],td.prototype,"loadData",null),(0,s.Cg)([(0,u.ox)("$route.query",{deep:!0})],td.prototype,"onSidePanelChange",null),(0,s.Cg)([(0,u.ox)("$route.query",{immediate:!0,deep:!0})],td.prototype,"onUrlQueryFilterChange",null);var tc=td=(0,s.Cg)([(0,u.uA)({components:{OngoingHardwareReturns:tr,InlineNotification:_.A,LinksetInfo:m.A,ThematicLink:f.A,ThematicLinks:y.A,ShareWifiPopupContent:T,ModalPopup:b.A,CallToAction:p.A,IntroBlock:h.A,QuickSettingsList:g.A,MvSection:v.A,ActiveWifiBoosters:F,OrderedWifiBoosters:U,OrderWifiBoosterCta:ta}})],td),tu=(0,k.A)(tc,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"broadbandModemView"},[t.modem?e("MvSection",{staticClass:"modemOverview nextStyleLevel"},[t.modemImage?e("img",{staticClass:"modemOverview__prodImg",attrs:{src:`${t.config.vueRoot}/img/bbHardware/${t.modemImage}_thumb.webp`,srcset:`${t.config.vueRoot}/img/bbHardware/${t.modemImage}[email protected] 2x, ${t.config.vueRoot}/img/bbHardware/${t.modemImage}[email protected] 3x`}}):t._e(),e("IntroBlock",{staticClass:"modemOverview__prodName",attrs:{title:t.modemName,description:!0===t.modem.online?t.$t("modem_info.modem_online_description"):!1===t.modem.online?t.$t("modem_info.modem_offline_description"):void 0,tagText:!0===t.modem.online?t.$t("online"):!1===t.modem.online?t.$t("offline"):void 0,tagAppearance:!0===t.modem.online?"green":!1===t.modem.online?"redOrange":void 0,tagSize:"small"}}),e("div",{staticClass:"modemOverview__buttons nextStyleLevel"},t._l(t.buttonOptions,function(i){return e("CallToAction",{key:i.label,staticClass:"modemOverview__button",attrs:{href:i.href,to:i.to,once:i.onClick,externalLink:!!i.href,icon:i.iconImg,appearance:"toolbarBtn"}},[t._v(" "+t._s(i.label)+" ")])}),1),t.requiresMoreMenu?e("div",{directives:[{name:"on-click-outside",rawName:"v-on-click-outside",value:()=>t.moreMenuOpen=!1,expression:"() => (moreMenuOpen = false)"}],staticClass:"modemOverview__moreCta moreMenu"},[e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"moreMenu__btn",attrs:{"aria-expanded":t.moreMenuOpen},on:{click:function(e){e.preventDefault(),t.moreMenuOpen=!t.moreMenuOpen}}},[t._v(" Â ")]),e("div",{directives:[{name:"trap-focus",rawName:"v-trap-focus"}],staticClass:"moreMenu__slideOut",attrs:{tabIndex:"-1",hidden:!t.moreMenuOpen&&"hidden"},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:(()=>t.moreMenuOpen=!1).apply(null,arguments)}}},[e("ul",t._l(t.options,function(i){return e("li",{key:i.label},[i.href?e("a",{staticClass:"linkWithIcon",class:`linkWithIcon--${i.icon}`,attrs:{href:i.href,target:i.download?void 0:"_blank",download:i.download}},[t._v(" "+t._s(i.label)+" ")]):t._e(),i.onClick?e("button",{staticClass:"linkWithIcon",class:`linkWithIcon--${i.icon}`,on:{click:function(t){return t.preventDefault(),i.onClick()}}},[t._v(" "+t._s(i.label)+" ")]):t._e(),i.to?e("RouterLink",{staticClass:"linkWithIcon",class:`linkWithIcon--${i.icon}`,attrs:{to:i.to}},[t._v(" "+t._s(i.label)+" ")]):t._e()],1)}),0)])]):t._e()],1):t._e(),t.modemConfigUnavailable?e("InlineNotification",{staticClass:"broadbandModem
34View__modemConfigUnavailableWarning",attrs:{notificationType:"warning"}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("modem_info.modem_config_unavailable"),expression:"$t('modem_info.modem_config_unavailable')"}]})]):t._e(),t.basicConfig.length>1?e("div",{staticClass:"broadbandModemView__multipleBasicConfigsPanel nextStyleLevel"},t._l(t.basicConfig,function(i){return e("MvSection",{key:i.title||"basic",attrs:{title:i.title,noTitleIndentation:!0}},[t.modemConfig&&!1===t.modemConfig.wifiRadioEnabled?e("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("modem_info.wifi_radio_is_off_fix_in_{expertSettingsHref}",{expertSettingsHref:t.expertSettingsHref}),expression:"$t('modem_info.wifi_radio_is_off_fix_in_{expertSettingsHref}', { expertSettingsHref })"}],staticClass:"broadbandModemView__basicSettingsLinkSetInfo nextStyleLevel"}):t._e(),e("QuickSettingsList",{staticClass:"modemBasicConfig__quickSettings nextStyleLevel",attrs:{settings:i.settings}})],1)}),1):1==t.basicConfig.length?e("MvSection",[t.modemConfig&&!1===t.modemConfig.wifiRadioEnabled?e("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("modem_info.wifi_radio_is_off_fix_in_{expertSettingsHref}",{expertSettingsHref:t.expertSettingsHref}),expression:"$t('modem_info.wifi_radio_is_off_fix_in_{expertSettingsHref}', { expertSettingsHref })"}],staticClass:"broadbandModemView__basicSettingsLinkSetInfo nextStyleLevel"}):t._e(),e("QuickSettingsList",{staticClass:"modemBasicConfig__quickSettings nextStyleLevel",attrs:{settings:t.basicConfig[0].settings}}
34)],1):t._e(),e("MvSection",[t.warnAdvancedSettingsConsequencesRoute?e("ThematicLinks",{staticClass:"broadbandModemView__modemLinks nextStyleLevel"},[e("ThematicLink",{staticClass:"to-advanced",attrs:{to:t.warnAdvancedSettingsConsequencesRoute,title:t.$t("modem_info.to_advanced_config"),tip:t.$t("modem_info.to_advanced_config_tip")}})],1):t._e()],1),t.showBoosters?[e("ActiveWifiBoosters",{attrs:{hardwareReturns:t.hardwareReturns}}),e("OrderedWifiBoosters",{attrs:{orders:t.wifiBoosterOrders}})]:t._e(),e("OngoingHardwareReturns",{attrs:{hardwareReturns:t.hardwareReturns}}),t.modem&&t.modem.type?[e("OrderWifiBoosterCta",{attrs:{modemType:t.modem.type}})]:t._e(),t.shareWifi&&t.shareableWifiNetworks?e("ModalPopup",{on:{close:function(e){return t.closeShareWifi()}}},[e("ShareWifiPopupContent",{attrs:{wifiNetworks:t.shareableWifiNetworks}})],1):t._e()],2)},[],!1,null,"3baed041",null).exports},70866:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return u}});var s=i(32198),a=i(67953),n=i(78098),o=i(78160),r=i(10231),l=i(3231);class d extends a.lD{get mailText(){return this.session.profile?this.$t("request_repair_done.we_have_sent_a_mail_to_{email}",{email:this.session.profile.email}).toString():""}goToFixedLinePage(){this.$router.push({name:l.A.fixedLines})}}(0,s.Cg)([(0,a.y_)()],d.prototype,"session",void 0);var c=d=(0,s.Cg)([(0,a.uA)({components:{WizardFooter:r.A,IconWithText:n.A,WizardDoneSummary:o.A}})],d),u=(0,i(41618).A)(c,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"requestRepairDone"},[t("WizardDoneSummary",{staticClass:"requestRepairDone__summary"},[t("IconWithText",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],attrs:{iconUrl:"--icon-message-in-a-bottle-bg-url",text:this.mailText}}),t("IconWithText",{attrs:{iconUrl:"--icon-time-bg-url",text:this.$t("request_repair_done.we_will_contact_you_soon")}})],1),t("WizardFooter",{attrs:{onConfirm:this.goToFixedLinePage,ctaText:this.$t("request_repair_done.to_my_viking")}})],1)},[],!1,null,null,null).exports},2104:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return P}});var s=i(32198),a=i(58294),n=i(90004),o=i(71229),r=i(44739),l=i(67953),d=i(1122),c=i(24176),u=i(28759),p=i(20174),h=i(78906),_=i(83301),m=i(3231);let g=(0,a.tZ)("BroadbandMigrationPopup.vue");class v extends l.lD{get title(){return this.isFiberEligible&&this.addressCheckAvailable?this.$t("broadband_popup.fiber_available_title").toString():this.$t("broadband_popup.fiber_unavailable_title").toString()}get description(){return this.addressCheckAvailable?this.isFiberEligible?this.$t("broadband_popup.fiber_available_description").toString():this.$t("broadband_popup.fiber_unavailable_description").toString():this.$t("migrate_broadband.migration_temporarily_unavailable_description").toString()}get primaryButtonText(){return this.isFiberEligible&&this.addressCheckAvailable?this.$t("broadband_popup.fiber_available_fiber_me").toString():this.$t("broadband_popup.fiber_unavailable_close").toString()}get secondaryButtonText(){return this.addressCheckAvailable?this.isFiberEligible?this.$t("broadband_popup.fiber_available_stay_slow").toString():this.$t("broadband_popup.fiber_unavailable_more_info").toString():""}get broadbandMigrationRoute(){return{name:m.A.migrateBroadband,params:{subscriptionId:this.session.broadbandSubscription.id}}}async created(){await this.checkAddressAvailability(),await this.checkAddress()}async mounted(){await this.$nextTick(),this.$el.focus()}confirm(){this.isFiberEligible&&this.addressCheckAvailable?this.$router.push(this.broadbandMigrationRoute):this.$router.push({name:m.A.broadbandSettings}),this.$emit("confirm")}cancel(){this.isFiberEligible?this.close():this.$router.push("/offer/internet/")}close(){this.$emit("close"),this.abortGetAddressLocationInfo=!0}get styleLevelClass(){return(0,_.yu)(this.styleLevel)}get styleNextLevelClass(){return(0,_.x)(this.styleLevel)}async checkAddressAvailability(){try{this.addressCheckAvailable=await this.broadbandService.addressChecksAvailable()}catch(t){g.error("Failed checking whether addressChecks are available",t),this.notifyGenericErrors(t)}}async checkAddress(){this.subscription=(0,h._w)(this.session.broadbandSubscription);try{let t=await this.broadbandService.getAddressLocationInfoForSubscription(this.subscription,()=>this.abortGetAddressLocationInfo);this.products=(0,h._w)(t.products),this.isFiberEligible=(0,d.me)(this.products),this.updateTrackingFiberEligible()}catch(t){g.error("Failed loading location info for broadband subscription installation address",t),this.notifyGenericErrors(t)}finally{this.isLoading=!1}}updateTrackingFiberEligible(){this.session.broadbandSubscription&&null!==this.isFiberEligible&&this.trackingService.updateBroadbandMigration("fiber_eligibility_check_complete",{fromProduct:this.session.broadbandSubscription.product,isFiberEligible:this.isFiberEligible})}constructor(...t){super(...t),this.subscription=null,this.products=[],this.isFiberEligible=null,this.isLoading=!0,this.abortGetAddressLocationInfo=!1,this.addressCheckAvailable=!1}}(0,s.Cg)([(0,l.kv)({type:Number,required:!1,default:1})],v.prototype,"styleLevel",void 0),(0,s.Cg)([(0,l.y_)()],v.prototype,"session",void 0),(0,s.Cg)([(0,l.y_)()],v.prototype,"broadbandService",void 0),(0,s.Cg)([(0,l.y_)()],v.prototype,"trackingService",void 0);var f=v=(0,s.Cg)([(0,l.uA)({components:{IntroBlock:u.A,Loading:p.A,CallToAction:c.A}})],v),y=i(41618),b=(0,y.A)(f,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("section",{directives:[{name:"on-click-outside",rawName:"v-on-click-outside",value:t.close,expression:"close"},{name:"trap-focus",rawName:"v-trap-focus"}],class:["broadbandMigrationPopup",t.styleLevelClass],attrs:{tabIndex:"-1"},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.close.apply(null,arguments)}}},[t.isLoading?e("Loading",{attrs:{message:t.$t("broadband_popup.loading_messages"),cycleInterval:1e4,align:"left"}}
34):e("IntroBlock",{attrs:{title:t.title,description:t.description,ctaText:t.primaryButtonText,secCtaText:t.secondaryButtonText},on:{primaryCtaClicked:t.confirm,secondaryCtaClicked:t.cancel}}),e("CallToAction",{staticClass:"broadbandPopup__closeBtn",on:{click:function(e){return t.close()}}},[t._v(" "+t._s(t.$t("close_confirm_box"))+" ")])],1)},[],!1,null,null,null).exports,C=i(45656),w=i(44492);let S=(0,a.tZ)("BroadbandMigrationButtons");class M extends l.lD{closePopup(){this.closeCallback&&this.closeCallback()}trackStartBroadbandMigration(){this.session.broadbandSubscription&&this.trackingService.updateBroadbandMigration("start",{fromProduct:this.session.broadbandSubscription.product})}get broadbandMigrationRoute(){return{name:m.A.migrateBroadband,params:{subscriptionId:this.session.broadbandSubscription?.id}}}get copperToFiberMigrationRoute(){return{name:m.A.migrateBroadband,params:{subscriptionId:this.session.broadbandSubscription?.id},query:{intent:"different_line"}}}get showMigrateBetweenProducts(){return(this.isFiber||this.products?.length>1&&!this.isFiber)&&!!this.config.featureFlags.migrationToSameLineType}get pendingMove(){return!!this.session.broadbandSubscription&&!!this.session.broadbandSubscription.moveToOrderId}get isPendingCopperToFiberMigration(){return!this.isFiber&&this.lastMigration?.toProduct.lineType==="fiber"}get copperToFiberMigrationTitle(){return this.session.broadbandSubscription?.fiberEligible?this.$t("broadbandSettingsView.fiber_available_title"):this.$t("broadbandSettingsView.check_fiber_available_title")}get copperToFiberMigrationTip(){return this.session.broadbandSubscription?.fiberEligible?this.$t("broadbandSettingsView.fiber_available_tip"):this.$t("broadbandSettingsView.check_fiber_tip")}async checkMigrationOrderAvailability(){try{this.migrationsAreAvailable=await this.broadbandService.migrationsAvailable()}catch(t){S.error("Failed checking whether migrations are available",t),this.notifyGenericErrors(t)}}async checkWifiBoosterOrderStatus(){try{let t=await this.orderService.getAllPendingOrders();this.pendingWifiBooster=!!t.find(o.vW)}catch(t){S.error("Failed checking whether there are pending wifi booster orders",t),this.notifyGenericErrors(t)}}async onUrlQueryFilterChange(t){this.popupMode=t.mode||"",this.popupMode&&"check-fiber"===this.popupMode?this.closeCallback=this.showInModal(b,{},{close:()=>{this.$router.push({name:m.A.broadbandSettings}),this.closePopup()}}):this.closePopup()}async created(){if(this.loading=!0,await this.checkMigrationOrderAvailability(),await this.checkWifiBoosterOrderStatus(),!this.session.broadbandSubscription)throw new n.p("Should not be able to access BroadbandSettingsView without subscription");this.tooYoungToMigrate=this.subscriptionService.blockBroadbandMigrationBecauseTooYoung(this.session.profile),this.isFiber=this.session.broadbandSubscription?.product?.lineType==="fiber",this.isFiber||await this.loadBroadbandSubscriptionProducts(),await this.loadMigrationStatus(this.session.broadbandSubscription)}async loadBroadbandSubscriptionProducts(){try{let t=await this.productService.getBroadbandSubscriptionProducts();this.products=t.filter(t=>t?.lineType==="copper")}catch(t){S.error("Failed to fetch broadband subscription products",t)}}async loadMigrationStatus(t){try{this.lastMigration=await this.subscriptionService.getLastBroadbandMigration(t),this.tooRecentLastMigration=this.subscriptionService.blockMigrationBecauseMigratedTooRecently(this.lastMigration),this.pendingMigration=this.subscriptionService.blockMigrationBecauseOfPendingMigration(this.lastMigration)}catch(t){S.error("Failed to fetch last broadband migration of subscription",t)}finally{this.loading=!1}}constructor(...t){super(...t),this.migrationsAreAvailable=null,this.isFiber=!1,this.products=[],this.popupMode="",this.loading=!1,this.tooRecentLastMigration=!1,this.pendingMigration=!1,this.pendingWifiBooster=!1,this.tooYoungToMigrate=!1,this.lastMigration=null}}(0,s.Cg)([(0,l.y_)()],M.prototype,"session",void 0),(0,s.Cg)([(0,l.y_)()],M.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,l.y_)()],M.prototype,"orderService",void 0),(0,s.Cg)([(0,l.y_)()],M.prototype,"broadbandService",void 0),(0,s.Cg)([(0,l.y_)()],M.prototype,"productService",void 0),(0,s.Cg)([(0,l.y_)()],M.prototype,"trackingService",void 0),(0,s.Cg)([(0,l.y_)()],M.prototype,"showInModal",void 0),(0,s.Cg)([(0,l.y_)()],M.prototype,"config",void 0),(0,s.Cg)([(0,l.ox)("$route.query",{immediate:!0,deep:!0})],M.prototype,"onUrlQueryFilterChange",null);var A=M=(0,s.Cg)([(0,l.uA)({components:{LinksetInfo:C.A,ThematicLink:w.A}})],M),k=(0,y.A)(A,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"broadband-migration-buttons"},[t.loading?t._e():[t.tooYoungToMigrate&&t.migrationsAreAvailable?e("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("migration_not_allowed_not_of_age_for_broadband"),expression:"$t('migration_not_allowed_not_of_age_for_broadband')"}],staticClass:"isOfAgeForMigration",attrs:{"data-qa":"migration-age-restriction-linkset"}}):t._e(),t.tooRecentLastMigration&&t.migrationsAreAvailable?e("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("broadband_migration_not_allowed_already_switched_within_short_timeframe"),expression:"$t('broadband_migration_not_allowed_already_switched_within_short_timeframe')"}],staticClass:"tooRecentLastMigration",attrs:{"data-qa":"too-recent-migration-restriction-linkset"}}):t._e(),t.config.featureFlags.pp593EnableBroadbandMove?t._e():[t.pendingMigration&&!t.isPendingCopperToFiberMigration&&t.migrationsAreAvailable?e("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("broadband_migration_not_allowed_migration_already_running"),expression:"$t('broadband_migration_not_allowed_migration_already_running')"}],staticClass:"pendingMigration"}):t._e(),t.pendingMigration&&t.isPendingCopperToFiberMigration&&t.migrationsAreAvailable?e("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("broadband_migration_not_allowed_copper_to_fiber_migration_already_running"),expression:"$t('broadband_migration_not_allowed_copper_to_fiber_migration_already_running')"}],staticClass:"pendingMigration"}):t._e(),t.migrationsAreAvailable?t._e():e("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("migrate_broadband.migration_temporarily_unavailable_description"),expression:"$t('migrate_broadband.migration_temporarily_unavailable_description')"}],staticClass:"migrationsNotAvailable"})]],!t.isFiber&&t.config.featureFlags.migrationToDifferentLineType?e("ThematicLink",{staticClass:"migrate-to-fiber",attrs:{"data-qa":"migrate-to-fiber",disabled:t.loading||!t.migrationsAreAvailable||t.tooYoungToMigrate||t.tooRecentLastMigration||t.pendingMigration||t.pendingWifiBooster||t.pendingMove,to:t.copperToFiberMigrationRoute,title:t.copperToFiberMigrationTitle,tip:t.copperToFiberMigrationTip,loading:t.loading},nativeOn:{click:function(e){return e.preventDefault(),t.trackStartBroadbandMigration.apply(null,arguments)}}}):t._e(),t.showMigrateBetweenProducts?e("ThematicLink",{staticClass:"migrate-between-products",attrs:{"data-qa":"migrate-between-products",disabled:t.loading||!t.migrationsAreAvailable||t.tooYoungToMigrate||t.tooRecentLastMigration||t.pendingMigration||t.pendingWifiBooster||t.pendingMove,to:t.broadbandMigrationRoute,title:t.$t("broadbandSettingsView.migrate_between_title"),tip:t.$t("broadbandSettingsView.migrate_between_tip"),loading:t.loading},nativeOn:{click:function(e){return e.preventDefault(),t.trackStartBroadbandMigration.apply(null,arguments)}}}):t._e()],2)},[],!1,null,null,null).exports,I=i(49458),x=i(80846),N=i(42580);let T=(0,a.tZ)("BroadbandSettingsView");class D extends l.lD{get paymentMethodsRoute(){return{name:m.A.paymentMethods}}get terminationRoute(){return{name:m.A.cancelBroadbandSubscription,params:{subscriptionId:(0,h.bp)(this.session.broadbandSubscription.id)}}}get onboardingMoveRoute(){return{name:m.A.registrationBroadbandCheckAddress,query:{subscriptionId:(0,h.bp)(this.session.broadbandSubscription.id),intent:"move"}}}get quickSettings(){return this.session.broadbandSubscription?{installationAddressSetting:this.installationAddressSetting(),productSetting:this.productSetting(),combinationBenefitSetting:this.combinationBenefitSetting(),...this.config.featureFlags.easySwitchOut&&{easySwitchOut:this.easySwitchOutSetting()},...this.config.featureFlags.lineSpeed&&{lineSpeed:this.lineSpeedSetting(this.session.broadbandSubscription.id)}}:{}}get pendingMove(){return!!this.session.broadbandSubscription&&!!this.session.broadbandSubscription.moveToOrderId}async created(){if(this.notificationManager.showSubscriptionRelatedNotifications(this.session.broadbandSubscription),this.config.featureFlags.pp593EnableBroadbandMove){if(await this.checkMoveSubscriptionAvailability(),!this.session.broadbandSubscription)throw new n.p("Should not be able to access BroadbandSettingsView without subscription");await this.checkMigrationStatus(this.session.broadbandSubscription),await this.checkWifiBoosterOrderStatus()}}async checkMoveSubscriptionAvailability(){try{this.moveAvailable=await this.broadbandService.moveOnboardingAvailable()}catch(t){T.error("Failed checking whether move is available",t),this.notifyGenericErrors(t)}}async checkMigrationStatus(t){try{let e=await this.subscriptionService.getLastBroadbandMigration(t);this.pendingMigration=this.subscriptionService.blockMigrationBecauseOfPendingMigration(e)}catch(t){T.error("Failed checking whether migrations are available",t),this.notifyGenericErrors(t)}}async checkWifiBoosterOrderStatus(){try{let t=await this.orderService.getAllPendingOrders();this.pendingWifiBooster=!!t.find(o.vW)}catch(t){T.error("Failed checking whether there are pending wifi booster orders",t),this.notifyGenericErrors(t)}}combinationBenefitSetting(){return{title:this.$t("setting_broadband_combination_benefit").toString(),status:this.subscriptionService.getActiveComboAdvantages(this.session.broadbandSubscription).then(t=>t.length>0?this.$t("active").toString():this.$t("inactive").toString()).catch(t=>(T.error("Could not load combo advantage status",t),(0,r.i4)())),statusLength:5,isViewOnl
34y:!0,query:{spc:"bb-combination-benefit"}}}productSetting(){if(!this.session.broadbandSubscription)return{title:this.$t("setting_broadband_product").toString()};let{label:t}=this.session.broadbandSubscription;return{title:this.$t("setting_broadband_product").toString(),status:`${t}`}}installationAddressSetting(){if(!this.session.broadbandSubscription)return{title:this.$t("setting_broadband_installation_address").toString()};let t=(0,N.H8)(this.session.broadbandSubscription.installationAddress,this.locale,this.$t.bind(this),"single_line");return{title:this.$t("setting_broadband_installation_address").toString(),status:t,isViewOnly:!0,query:{spc:"bb-installation-address"},statusLength:t.length}}easySwitchOutSetting(){return{title:this.$t("setting_broadband_easy_switch_out").toString(),isViewOnly:!0,query:{spc:"bb-easy-switch-out"}}}lineSpeedSetting(t){return{title:this.$t("setting_broadband_line_speed").toString(),query:{spc:"bb-line-speed",subscriptionId:t},isViewOnly:!0}}trackStartBroadbandMove(){this.session.broadbandSubscription&&this.trackingService.updateBroadbandMove("start",{fromSubscription:this.session.broadbandSubscription})}constructor(...t){super(...t),this.moveAvailable=null,this.pendingMigration=!1,this.pendingWifiBooster=!1}}(0,s.Cg)([(0,l.y_)()],D.prototype,"session",void 0),(0,s.Cg)([(0,l.y_)()],D.prototype,"config",void 0),(0,s.Cg)([(0,l.y_)()],D.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,l.y_)()],D.prototype,"orderService",void 0),(0,s.Cg)([(0,l.y_)()],D.prototype,"broadbandService",void 0),(0,s.Cg)([(0,l.y_)()],D.prototype,"notificationManager",void 0),(0,s.Cg)([(0,l.y_)()],D.prototype,"trackingService",void 0);var $=D=(0,s.Cg)([(0,l.uA)({components:{LinksetInfo:C.A,BroadbandMigrationButtons:k,QuickSettingsList:I.A,ThematicLink:w.A,ThematicLinks:x.A}})],D),P=(0,y.A)($,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"broadbandSettingsView styleLevel1 MyVikingTP"},[e("QuickSettingsList",{staticClass:"broadbandSettingsView__quicksettings nextStyleLevel",attrs:{settings:t.quickSettings}}),e("ThematicLinks",{staticClass:"nextStyleLevel"},[t.config.featureFlags.pp593EnableBroadbandMove?[t.pendingMigration&&t.moveAvailable?e("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("broadbandSettingsView.actions_not_allowed_migration_already_running"),expression:"$t('broadbandSettingsView.actions_not_allowed_migration_already_running')"}],staticClass:"pendingMigration",attrs:{"data-qa":"pending-migration-linkset"}}):t.pendingMove&&t.moveAvailable?e("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("broadbandSettingsView.actions_not_allowed_move_already_running"),expression:"$t('broadbandSettingsView.actions_not_allowed_move_already_running')"}],staticClass:"pendingMove",attrs:{"data-qa":"pending-move-linkset"}}):t.pendingWifiBooster&&t.moveAvailable?e("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("broadbandSettingsView.actions_not_allowed_pending_wifi_booster"),expression:"$t('broadbandSettingsView.actions_not_allowed_pending_wifi_booster')"}],staticClass:"pendingWifiBooster",attrs:{"data-qa":"pending-wifi-booster-linkset"}}):t.moveAvailable?t._e():e("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("broadbandSettingsView.actions_temporarily_unavailable_description"),expression:"$t('broadbandSettingsView.actions_temporarily_unavailable_description')"}],staticClass:"moveAndMigrationNotAvailable",attrs:{"data-qa":"move-migration-unavailable-linkset"}})]:t._e(),t.config.featureFlags.migrationToDifferentLineType||t.config.featureFlags.migrationToSameLineType?e("BroadbandMigrationButtons"):t._e(),t.config.featureFlags.pp593EnableBroadbandMove?t._e():e("ThematicLink",{staticClass:"to-payment-methods",attrs:{to:t.paymentMethodsRoute,title:t.$t("broadbandSettingsView.payment_methods_link_title"),tip:t.$t("broadbandSettingsView.payment_methods_link_tip")}}),t.config.featureFlags.pp593EnableBroadbandMove?[e("ThematicLink",{staticClass:"to-move-onboarding",attrs:{"data-qa":"move-onboarding-link",disabled:t.pendingMove||t.pendingMigration||t.pendingWifiBooster||!t.moveAvailable,to:t.onboardingMoveRoute,title:t.$t("broadbandSettingsView.move_link_title"),tip:t.$t("broadbandSettingsView.move_link_tip__html")},nativeOn:{click:function(e){return e.preventDefault(),t.trackStartBroadbandMove.apply(null,arguments)}}})]:t._e()],2),t.config.featureFlags.pp593EnableBroadbandMove?e("ThematicLinks",{staticClass:"nextStyleLevel"},[e("ThematicLink",{staticClass:"to-payment-methods",attrs:{"data-qa":"payment-methods-link",to:t.paymentMethodsRoute,title:t.$t("broadbandSettingsView.payment_methods_link_title"),tip:t.$t("broadbandSettingsView.payment_methods_link_tip")}})],1):t._e(),t.config.featureFlags.enableBroadbandTermination?e("ThematicLinks",{staticClass:"nextStyleLevel"},[e("ThematicLink",{staticClass:"to-termination",attrs:{"data-qa":"termination-link",destructive:!0,to:t.terminationRoute,title:t.$t("broadbandSettingsView.termination_link_title"),tip:t.$t("broadbandSettingsView.termination_link_tip")}})],1):t._e()],1)},[],!1,null,"78b4d418",null).exports}
34,54509:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return H}});var s=i(32198),a=i(67953),n=i(76565),o=i(70180),r=i(21076),l=i(28759);class d extends a.lD{mounted(){let t=this.$refs.timeline;if(!t)return;let e=t.querySelector(".timeline__item:not(.timeline__item--passed)");e&&(t.scrollLeft=e.offsetLeft-t.clientWidth/2+e.clientWidth/2)}}(0,s.Cg)([(0,a.kv)({type:Array,required:!0})],d.prototype,"checkpoints",void 0);var c=d=(0,s.Cg)([a.uA],d),u=i(41618),p=(0,u.A)(c,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("ul",{ref:"timeline",staticClass:"timeline"},t._l(t.checkpoints,function({title:i,subtitle:s,passed:a},n){return e("li",{key:`timelineItem-${n}`,class:["timeline__item","timelineItem",{"timelineItem--passed":a,"timeline__item--passed":a}]},[e("span",{staticClass:"timelineItem__text"},[e("strong",[t._v(t._s(i))]),s?e("span",[t._v(t._s(s))]):t._e()])])}),0)},[],!1,null,"1b5483dc",null).exports,h=i(29637);class _ extends a.lD{get introTitle(){return"disabled"===this.subscription.state?this.$t("line_deactivated.status_title_order"):this.$t("line_deactivated.status_title")}get introDescription(){return"disabled"===this.subscription.state?this.$t("line_deactivated.status_description_order"):this.$t("line_deactivated.status_description")}get terminationCheckpoints(){let t=this.hardwareReturn?.requestedOn?n.LocalDate.parse(this.hardwareReturn.requestedOn):null;return[{title:this.$t("line_deactivated.termination_requested"),subtitle:t?(0,o.Yq)(t):"",passed:!0},{title:this.$t("line_deactivated.hardware_sent_back"),subtitle:this.$t("line_deactivated.still_to_do")},{title:this.$t("line_deactivated.hardware_received"),subtitle:this.$t("line_deactivated.we_will_mail_you")}]}}(0,s.Cg)([(0,a.y_)()],_.prototype,"broadbandService",void 0),(0,s.Cg)([(0,a.kv)({required:!0})],_.prototype,"subscription",void 0),(0,s.Cg)([(0,a.kv)({required:!0})],_.prototype,"hardwareReturn",void 0);var m=_=(0,s.Cg)([(0,a.uA)({components:{IntroBlock:l.A,TrackHardwareReturn:h.A,BroadbandHardwareToReturn:r.A,Timeline:p}})],_),g=(0,u.A)(m,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"lineDeactivated MyVikingTP nextStyleLevel"},[e("IntroBlock",{staticClass:"lineDeactivated__block",attrs:{titleTag:"h3",titleAppearance:"h3",title:t.introTitle,description:t.introDescription}}),e("div",{staticClass:"lineDeactivated__block"},[e("Timeline",{attrs:{checkpoints:t.terminationCheckpoints}})],1),e("div",{staticClass:"lineDeactivated__block"},[e("IntroBlock",{attrs:{titleTag:"h3",titleAppearance:"h4",title:t.$t("line_deactivated.about_your_hardware_title"),description:t.$t("line_deactivated.about_your_hardware_description")}}),e("BroadbandHardwareToReturn",{staticClass:"lineDeactivated__block__broadbandHardwareToReturn",attrs:{hardwareReturn:t.hardwareReturn}})],1),e("TrackHardwareReturn",{attrs:{subscription:t.subscription,hardwareReturn:t.hardwareReturn},on:{"update:hardwareReturn":function(e){t.hardwareReturn=e},"update:hardware-return":function(e){t.hardwareReturn=e}}})],1)},[],!1,null,"1fb14246",null).exports,v=i(58294),f=i(42291),y=i(8921),b=i(47352),C=i(95990),w=i(37223),S=i(41188),M=i(20174),A=i(56776),k=i(49458),I=i(40588),x=i(42580);let N=(0,v.tZ)("BroadbandOrderContents");class T extends a.lD{async toggleAutoCease(t){this.autoCeaseLoading=!0;try{await this.broadbandService.updateBroadbandMoveSubscriptionCeaseStatus(this.order,t?"auto":"manual")}catch(t){N.error("Failed to change subscription auto cease status",t)}finally{this.autoCeaseLoading=!1}}get subscriptionBeingMoved(){return(0,A._w)(this.session.broadbandSubscriptions?.find(t=>t.id===(0,A._w)(this.order.installation.moveDetails)?.subscriptionId))}get addressMovingFrom(){return this.subscriptionBeingMoved.installationAddress}get moveQuickSettings(){let t=this.addressMovingFrom?(0,x.H8)(this.addressMovingFrom,this.locale,this.$t.bind(this),"single_line"):"";return{installationAddress:{title:this.$t("line_not_active.moving_from_address_label").toString(),status:t,isViewOnly:!0,query:{spc:"bb-installation-address",subscriptionId:this.subscriptionBeingMoved.id,title:this.$t("line_not_active.moving_from_address_label").toString()},statusLength:t.length,hint:this.$t("line_not_active.moving_from_address_hint").toString()},autoCease:{title:this.$t("line_not_active.toggle_auto_cease_label").toString(),loading:this.autoCeaseLoa
34ding,status:this.order.installation?.moveDetails?.autoCease??!1,toggle:this.toggleAutoCease,hint:this.$t("line_not_active.toggle_auto_cease_hint").toString()}}}constructor(...t){super(...t),this.loading=!1,this.autoCeaseLoading=!1}}(0,s.Cg)([(0,a.kv)()],T.prototype,"order",void 0),(0,s.Cg)([(0,a.y_)()],T.prototype,"config",void 0),(0,s.Cg)([(0,a.y_)()],T.prototype,"session",void 0),(0,s.Cg)([(0,a.y_)()],T.prototype,"broadbandService",void 0);var D=T=(0,s.Cg)([(0,a.uA)({components:{Panel:I.A,IntroBlock:l.A,QuickSettingsList:k.A}})],T),$=(0,u.A)(D,function(){var t=this._self._c;return this._self._setupProxy,t("Panel",[t("section",{staticClass:"BroadbandMoveOrderOverview",attrs:{"data-qa":"broadband-move-order-overview"}},[t("IntroBlock",{staticClass:"BroadbandMoveOrderOverview__intro",attrs:{title:this.$t("line_not_active.your_move_title"),titleTag:"h2",titleAppearance:"h5",description:this.$t("line_not_active.your_move_description")}}),t("QuickSettingsList",{staticClass:"BroadbandMoveOrderOverview__quickSettings nextStyleLevel",attrs:{settings:this.moveQuickSettings,appearance:"singleColumn"}})],1)])},[],!1,null,"5031249d",null).exports,P=i(14306),L=i(99679),E=i(44492),O=i(80846),z=i(78906),j=i(3231);let B=(0,v.tZ)("lineNotActive");class F extends a.lD{get pageState(){return this.loading||null===this.canChangeOrder?"loading":this.error?"error":this.creationOrder?"invalid_address"===this.creationOrder.installation.discardReason?"invalid_address":"service_already_active"===this.creationOrder.installation.discardReason?"service_already_active":"discarded"===this.creationOrder.state?"discarded":"cancelled"===this.creationOrder.state?"order_cancelled":"wait_for_cancellation"===this.creationOrder.state?"order_being_cancelled":this.showOrderDetails?"display_order_with_details":"display_order":"no_order"}async mounted(){try{this.canChangeOrder=null,this.canChangeOrder=await this.broadbandService.canChangeOrder()}catch(t){B.error("Failed to get WSO availability status",t),this.notifyGenericErrors(t),this.canChangeOrder=!1}}async onSubscriptionChange(){this.loading=!0,this.creationOrder=null;try{this.creationOrder=await this.broadbandService.getBroadbandRequestForSubscription(this.subscription)}catch(t){this.notifyGenericErrors(t),B.error("Failed to load request fixed-line order",t),this.error=y.Ay.of(t)}finally{this.loading=!1}}get showOrderDetails(){return!!this.creationOrder?.state&&"wait_for_cancellation"!==this.creationOrder.state}get showUpdateOrderLinks(){return this.canChangeOrder}beforeDestroy(){this.destroyed=!0}get changeOrderRoute(){let t={subscriptionId:(0,z.bp)(this.creationOrder?.subscriptionId),intent:"move"};return(0,b.Bb)({name:j.A.registrationBroadbandCheckAddress,params:{lang:this.locale},query:this.creationOrder?.subscriptionId?t:void 0})}async changeOrderAddress(){try{if(!this.creationOrder||!await this.confirm(this.$t("line_not_active.change_order_address__means_redoing_the_order__are_you_sure"),this.$t("line_not_active.change_order_address__title"),this.$t("line_not_active.change_order_address__yes_bring_be_back_to_onboarding"),this.$t("line_not_active.change_order_address__no_keep_current_address")))return;await this.broadbandService.cancelBroadbandRequest(this.creationOrder),this.creationOrder=null,await this.authService.refreshSession(),this.$router.push(this.changeOrderRoute)}catch(t){B.error("Failed to cancel fixed line order",t),this.notifyGenericErrors(t)}}get changeAddressAllowed(){return this.creationOrder?.state!=="discarded"&&this.creationOrder?.state!=="wait_for_activation_request"&&this.cancelButtonVisible&&!this.cancelButtonDisabled}get cancelButtonVisible(){return!!this.creationOrder&&"cancelled"!==this.creationOrder.state&&(!!this.creationOrder.installation.discardReason||"self_install"!==this.creationOrder.installation.method||("wait_for_package_shipment"===this.creationOrder.state?this.config.featureFlags.pp1260allowDiyCancelBeforeShipment:!!["wait_for_package_delivery","wait_for_activation_request"].includes(this.creationOrder.state)&&this.config.featureFlags.pp1260allowDiyCancelAfterDelivery))}get cancelButtonDisabled(){return this.creationOrder?.state==="wait_for_package_delivery"}
34get cancelOrderTip(){return this.creationOrder?.state==="wait_for_appointment_booking"?"":(0,f.L)(this.creationOrder?.state)?this.creationOrder?.state==="wait_for_package_shipment"?"":this.creationOrder?.state==="wait_for_package_delivery"?this.$t("line_not_active.cancel_order__disabled_during_shipment").toString():this.creationOrder?.state==="wait_for_activation_request"?this.$t("line_not_active.cancel_order__diy_after_delivery_reminder_to_return_hardware").toString():"":this.$t("line_not_active.cancel_order__save_our_installater_some_frustration").toString()}showCancellationSurvey(){let t={customer_code:(0,z._w)(this.session.profile).id,contract_id:this.subscription.id};this.showSurvey("broadbandOrderCancellationSurvey",this.$t("cancel_order_survey.title").toString(),this.$t("cancel_order_survey.intro").toString(),t).catch(t=>{B.error("Failed to show cancellation survey",t)})}async activateInstallation(){if(await this.confirm(this.$t("line_not_active.are_you_sure_you_want_to_activate_your_order")))try{await this.uwa.activateSelfInstall(this.creationOrder.id),this.notify.success("line_not_active.activating_line_success"),this.creationOrder=await this.broadbandService.getBroadbandRequest(this.creationOrder.id)}catch(t){this.notifyGenericErrors(t),B.error(`Failed to activate self install order with id ${this.creationOrder.id}`,t)}}async cancelOrder(){try{if(!this.creationOrder||!await this.confirm(this.$t("line_not_active.are_you_sure_you_want_to_cancel_your_order")))return;await this.broadbandService.cancelBroadbandRequest(this.creationOrder),this.trackingService.cancelOrder(this.subscription.product),this.showCancellationSurvey(),await this.authService.refreshSession(),"wait_for_activation_request"===this.creationOrder.state?this.creationOrder=await this.broadbandService.getBroadbandRequest(this.creationOrder.id):(this.creationOrder=null,this.$router.push({name:j.A.productsOverview})),this.notify.success("line_not_active.your_broadband_order_was_cancelled")}catch(t){y.Ay.of(t).code===y.O4.ORDER_NOT_FOUND&&this.$router.push({name:j.A.productsOverview}),t.code===y.O4.PROCESS_CANNOT_BE_CANCELLED?this.notify.error("broadbandInstallationAndIdentification.order_already_being_cancelled"):(B.error("Failed to cancel fixed line order",t),this.notifyGenericErrors(t))}}constructor(...t){super(...t),this.loading=!1,this.creationOrder=null,this.canChangeOrder=!0,this.destroyed=!1,this.error=null,this.isSelfInstallOrderState=f.L}}(0,s.Cg)([(0,a.kv)()],F.prototype,"subscription",void 0),(0,s.Cg)([(0,a.y_)()],F.prototype,"broadbandService",void 0),(0,s.Cg)([(0,a.y_)()],F.prototype,"uwa",void 0),(0,s.Cg)([(0,a.y_)()],F.prototype,"alert",void 0),(0,s.Cg)([(0,a.y_)()],F.prototype,"confirm",void 0),(0,s.Cg)([(0,a.y_)()],F.prototype,"authService",void 0),(0,s.Cg)([(0,a.y_)()],F.prototype,"session",void 0),(0,s.Cg)([(0,a.y_)()],F.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,a.y_)()],F.prototype,"config",void 0),(0,s.Cg)([(0,a.y_)()],F.prototype,"clock",void 0),(0,s.Cg)([(0,a.y_)()],F.prototype,"goTo",void 0),(0,s.Cg)([(0,a.y_)()],F.prototype,"trackingService",void 0),(0,s.Cg)([(0,a.y_)()],F.prototype,"showSurvey",void 0),(0,s.Cg)([(0,a.ox)("subscription.id",{immediate:!0})],F.prototype,"onSubscriptionChange",null);var q=F=(0,s.Cg)([(0,a.uA)({components:{FaqItems:w.default,ErrorPanel:C.A,BroadbandMoveOrderOverview:$,BroadbandProductOrderOverview:P.A,InlineNotification:L.A,InstallationDetailsPanel:S.A,ThematicLink:E.A,ThematicLinks:O.A,Loading:M.A,Panel:I.A}})],F),R=(0,u.A)(q,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"lineNotActive",attrs:{"data-qa":"line-not-active"}},[t.creationOrder&&t.creationOrder.installation.moveDetails?e("BroadbandMoveOrderOverview",{staticClass:"lineNotActive__move",attrs:{order:t.creationOrder}}):t._e(),"loading"===t.pageState?e("Loading",{attrs:{message:t.$t("installationDetailsPanel.loading_message")}}):"error"===t.pageState?e("Panel",{staticClass:"LineNotActive__error"},[e("InlineNotification",{staticClass:"installationDetailsPanel__notification",attrs:{notificationType:"warning"}},[t._v(" "+t._s(t.$t("appointmentDetailsPanel.notification_system_under_maintenance"))+" ")])],1):"order_cancelled"===t.pageState?[e("ErrorPanel",{staticClass:"errorContentPanel__orderWasCancelled",attrs:{"data-qa":"order-was-cancelled",iconCssVar:"--icon-octopus-bg-url",appearance:"ribbon",title:t.$t("registration_bb.order_was_cancelled_title"),description:t.$t("registration_bb.order_was_cancelled_description"),ctaText:t.$t("registration_bb.order_was_cancelled_cta"),ctaAppearance:"primary",ctaRoute:{name:"reg-check-bb-address"}}})]:"order_being_cancelled"===t.pageState?[e("InlineNotification",{staticClass:"lineNotActive__orderBeingCancelled",attrs:{"data-qa":"order-being-cancelled"}},[t._v(" "+t._s(t.$t("line_not_active.order_being_cancelled"))+" ")])]:["display_order","display_order_with_details","invali
34d_address","service_already_active","discarded"].includes(t.pageState)?[e("InstallationDetailsPanel",{attrs:{error:t.error,order:t.creationOrder,canChangeOrder:t.canChangeOrder,activateInstallation:t.activateInstallation}}),t.creationOrder&&["display_order_with_details","invalid_address","discarded"].includes(t.pageState)?e("BroadbandProductOrderOverview",{staticClass:"lineNotActive__orderOverview",attrs:{order:t.creationOrder}}):t._e(),e("Panel",{attrs:{title:t.$t("faq.frequently_asked_questions"),titleTag:"h3"}},[e("FaqItems",{attrs:{category:"installation"}})],1),t.showUpdateOrderLinks?e("ThematicLinks",{staticClass:"lineNotActive__cancel nextStyleLevel",attrs:{id:"subscription_destroy_links"}},[t.creationOrder&&t.changeAddressAllowed?e("ThematicLink",{staticClass:"change-address",attrs:{"data-qa":"change-address",title:t.$t("line_not_active.change_address"),tip:t.$t("line_not_active.change_address__note"),to:{}},nativeOn:{click:function(e){return e.preventDefault(),t.changeOrderAddress()}}}):t._e(),t.creationOrder&&t.cancelButtonVisible?e("ThematicLink",{staticClass:"cancel-order",attrs:{disabled:t.cancelButtonDisabled,"data-qa":"cancel-order",destructive:!0,title:t.$t("line_not_active.cancel_order"),to:{},tip:t.cancelOrderTip},nativeOn:{click:function(e){return e.preventDefault(),t.cancelOrder()}}}):t._e()],1):t._e()]:t._e()],2)},[],!1,null,"0338c3fe",null).exports,U=i(64063),V=i(2691),W=i(21395),Q=i(83487);class Y extends a.lD{async mounted(){if(this.session.broadbandSubscription){let t=await this.broadbandService.getHardwareReturnInfo(this.session.broadbandSubscription);this.hardwareReturn=(0,V.wp)(t)}}get subscriptionIsEnabled(){return!!this.session.broadbandSubscription&&"enabled"===this.session.broadbandSubscription.state}get showLineDeactivated(){return!!this.session.broadbandSubscription&&("deactivated"===this.session.broadbandSubscription.state||"disabled"===this.session.broadbandSubscription.state&&!!this.hardwareReturn)}get fixedLineRoutes(){return(0,Q.Ko)(this.routes,j.A.fixedLines).filter(t=>t.meta&&!!(0,W.RP)(t.meta.nav))}goToError(){this.$router.push({name:j.A.simsError})}constructor(...t){super(...t),this.hardwareReturn=null}}(0,s.Cg)([(0,a.y_)()],Y.prototype,"routes",void 0),(0,s.Cg)([(0,a.y_)()],Y.prototype,"session",void 0),(0,s.Cg)([(0,a.y_)()],Y.prototype,"broadbandService",void 0),(0,s.Cg)([(0,a.ku)()],Y.prototype,"goToError",null);var G=Y=(0,s.Cg)([(0,a.uA)({components:{LineDeactivated:g,LineNotActive:R,MyVikingSubscriptionHeader:U.A}})],Y),H=(0,u.A)(G,function(){var t=this._self._c;return this._self._setupProxy,this.session.broadbandSubscription?t("div",[t("MyVikingSubscriptionHeader",{attrs:{routes:this.fixedLineRoutes}}),this.subscriptionIsEnabled?t("section",[t("RouterView")],1):this.showLineDeactivated?t("LineDeactivated",{attrs:{subscription:this.session.broadbandSubscription,hardwareReturn:this.hardwareReturn}}):t("LineNotActive",{attrs:{subscription:this.session.broadbandSubscription}})],1):this._e()},[],!1,null,"72ba7d32",null).exports},75323:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return M}});var s=i(32198),a=i(58294),n=i(81033),o=i(39490),r=i(56776),l=i(47352),d=i(67953),c=i(95990),u=i(78098),p=i(28759),h=i(20174),_=i(60490),m=i(56562),g=i(98073),v=i(78160),f=i(10231),y=i(42580),b=i(3231);let C=(0,a.tZ)("MigrateLineDoneView");class w extends d.lD{async created(){try{this.loading=!0,"different_line"===this.intent&&(this.titleService.pageTitle=this.$t("migrate_broadband_done.page_title__copper_to_fiber").toString(),this.titleService.pageDescription=this.$t("migrate_broadband_done.page_description__copper_to_fiber").toString()),this.subscription=(0,o.Vn)((0,r.bp)(await this.uwa.getSubscription(this.subscriptionId))),this.migration=await this.loadMigration(),this.migration||this.goToFixedLinePage()}catch(t){C.error("failed to load migration",t),this.goToError()}finally{this.loading=!1}}get hasInstallationAppointment(){return!!this.migration?.installation?.timeSlot}get pageNumber(){return this.hasInstallationAppointment?3:2}get pageLabels(){return(0,l.Un)([this.$t("migrate_broadband.page_label_1").toString(),this.hasInstallationAppointment?this.$t("migrate_broadband.page_label_2").toString():null,this.$t("migrate_broadband.page_label_3").toString()])}get error(){return!!this.migration&&n.nv.includes(this.migration.state)}get errorDescription(){return this.error&&this.migration?"failed"===this.migration.state?this.$t("migrate_broadband_done.error__order_failed"):"cancelled"===this.migration.state?this.$t("migrate_broadband_done.error__order_cancelled"):"review_needed"===this.migration.state?this.$t("migrate_broadband_done.error__order_review_needed"):"":""}get errorCtaText(){return this.error&&this.migration?"review_needed"===this.migration.state?this.$t("migrate_broadband_done.error__try_again_cta"):this.$t("back_to_my_viking_no_html"):""}get errorCtaRouteLocation(){return this.error&&this.migration?"review_needed"===this.migration.state?{name:b.A.migrateBroadband}:{name:b.A.sims}:null}get addressDescription(){return"different_line"===this.intent?this.$t("migrate_broadband_done.your_internet_will_be_installed_at_{address}",{address:this.formattedInstallationAddress}).toString():this.$t("migrate_broadband_done.your_internet_at_{address}_will_be_migrated_to_{product}",{address:this.formattedInstallationAddress,product:this.toProductTitle}).toString()}get emailDescription(){return"different_line"===this.intent?this.$t("migrate_broadband_done.copper_to_fiber_confirm_mail_sent_to_{email}",{email:this.session.profile?.email}).toString():this.$t("migrate_broadband_done.confirm_mail_sent_to_{email}",{email:this.session.profile?.email}).toString()}get noChangesDescription(){return"different_line"===this.intent?this.$t("migrate_broadband_done.until_fiber_connection_active"):this.$t("migrate_broadband_done.no_changes_made_until_migration").toString()}get migrationWhenDescription(){if(!this.migration?.installation?.timeSlot)return"";let t=(0,y.BE)(this.migration.installation.timeSlot,this.$t.bind(this),this.locale,"flat");return this.$t("migrate_broadband_done.appointment_at__{timeslot}",{timeslot__safe:t}).toString()}get faqCategory(){return"different_line"===this.intent?"mv-copper2fiber":"mv-fast2superfast"}get toProductTitle(){return this.migration?this.migration.toProduct.title:""}get formattedInstallationAddress(){return this.subscription?(0,y.H8)(this.subscription.installationAddress,this.locale,this.$t.bind(this),"single_line"):""}goToFixedLinePage(){this.$router.push({name:b.A.fixedLines})}async loadMigration(){return this.orderId?this.uwa.getBroadbandMigration((0,r.bp)(this.subscription),this.orderId):(this.goToFixedLinePage(),null)}constructor(...t){super(...t),this.migration=null,this.loading=!1,this.RouteName=b.A,this.subscription=null}}(0,s.Cg)([(0,d.kv)()],w.prototype,"orderId",void 0),(0,s.Cg)([(0,d.kv)()],w.prototype,"subscriptionId",void 0),(0,s.Cg)([(0,d.kv)({type:String,default:null})],w.prototype,"intent",void 0),(0,s.Cg)([(0,d.y_)()],w.prototype,"session",void 0),(0,s.Cg)([(0,d.y_)()],w.prototype,"goToError",void 0),(0,s.Cg)([(0,d.y_)()],w.prototype,"uwa",void 0),(0,s.Cg)([(0,d.y_)()],w.prototype,"titleService",void 0);var S=w=(0,s.Cg)([(0,d.uA)({components:{IntroBlock:p.A,MvSection:m.A,ErrorPanel:c.A,WizardFooter:f.A,Loading:h.A,FaqSectionWizard:g.A,IconWithText:u.A,WizardDoneSummary:v.A,MyVikingFrameWizard:_.A}})],w),M=(0,i(41618).A)(S,function(){var t=this._self._c;return this._self._setupProxy,t("MyVikingFrameWizard",{staticClass:"registrationCheckAddress",attrs:{title:this.titleService.pageTitle,pageLabels:this.pageLabels,currentPageNumber:this.pageNumber}},[t("div",{staticClass:"migrateBroadbandDone"},[this.loading?t("Loading"):this.error?t("ErrorPanel",{staticClass:"migrateBroadbandDone__error",attrs:{title:this.$t("migrate_broadband_done.error__title"),description:this.errorDescription,ctaText:this.errorCtaText,ctaAppearance:"primary",appearance:"ribbon",ctaRoute:this.errorCtaRouteLocation}}):[t("WizardDoneSummary",[t("IconWithText",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],attrs:{iconUrl:"--icon-campfire-bg-url",text:this.addressDescription}}),t("IconWithText",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}
34],attrs:{iconUrl:"--icon-anchor-bg-url",text:this.emailDescription}}),t("IconWithText",{attrs:{iconUrl:"--icon-bag-bg-url",text:this.noChangesDescription}}),this.migrationWhenDescription?t("IconWithText",{attrs:{iconUrl:"--icon-time-bg-url",text:this.migrationWhenDescription}}):this._e()],1),this.migration&&("hyperfast"===this.migration.toProduct.connectivityClass||"hyperfast"===this.subscription.product.connectivityClass)?[t("MvSection",{staticClass:"migrateBroadbandDone__hardware return-hardware styleLevel1",attrs:{"data-qa":"return-hardware-section"}},[t("IntroBlock",{attrs:{title:this.$t("migrate_broadband_done.hardware_title"),titleTag:"h3",titleAppearance:"h4",description:this.$t("migrate_broadband_done.hardware_desc")}})],1)]:this._e(),this.faqCategory?t("FaqSectionWizard",{attrs:{faqCategory:this.faqCategory}}):this._e(),t("WizardFooter",{attrs:{onConfirm:this.goToFixedLinePage,ctaText:this.$t("migrate_broadband_done.to_my_viking")}})]],2)])},[],!1,null,"3251ddfe",null).exports},70736:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return g}});var s=i(32198),a=i(58294),n=i(67953),o=i(37223),r=i(41188),l=i(20174),d=i(14306),c=i(44492),u=i(80846),p=i(3231);let h=(0,a.tZ)("MigrateBroadbandStatus");class _ extends n.lD{async mounted(){try{this.canChangeOrder=null,this.canChangeOrder=await this.broadbandService.canChangeOrder()}catch(t){h.error("Failed to check if migrations are available",t),this.notifyGenericErrors(t),this.canChangeOrder=!1}}async loadCurrentMigration(){this.migration=null,this.migration=await this.subscriptionService.getPendingMigration(this.subscription),this.migration||(h.warning("No migration found. Nothing to do."),this.$router.push(p.A.fixedLines))}get loading(){return!this.migration||null===this.canChangeOrder}get cancelAllowed(){return!!this.migration&&(!!(this.isWaitingForAppointmentBooking(this.migration)||["wait_for_order_validation","review_needed"].includes(this.migration.state))||this.isPendingMigration(this.migration))}isWaitingForAppointmentBooking(t){return["wait_for_appointment_booking","wait_for_extra_appointment_booking"].includes(t.state)}isPendingMigration(t){return["wait_for_execution","wait_for_appointment_confirmation"].includes(t.state)&&!!t.installation?.timeSlot}async cancelMigration(){if(await this.confirm(this.$t("migrate_broadband.confirm_cancel_migration_description"),this.$t("broadband_migration.confirm_cancellation_title"),this.$t("broadband_migration.confirm_cancellation_primary_cta"),this.$t("broadband_migration.confirm_cancellation_secondary_cta")))try{await this.orderService.cancelOrder(this.migration.id),this.notificationManager.clearSubscriptionRelatedNotifications(),this.$router.push({name:p.A.broadbandNetwork,params:{bbSubscriptionId:this.subscription.id}}),this.notify.success("broadband_migration.cancellation_success")}catch{this.notify.danger("broadband_migration.cancellation_failed")}}constructor(...t){super(...t),this.migration=null,this.canChangeOrder=!0}}(0,s.Cg)([(0,n.kv)()],_.prototype,"subscription",void 0),(0,s.Cg)([(0,n.y_)()],_.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,n.y_)()],_.prototype,"orderService",void 0),(0,s.Cg)([(0,n.y_)()],_.prototype,"broadbandService",void 0),(0,s.Cg)([(0,n.y_)()],_.prototype,"notificationManager",void 0),(0,s.Cg)([(0,n.y_)()],_.prototype,"confirm",void 0),(0,s.Cg)([(0,n.ox)("subscription.id",{immediate:!0})],_.prototype,"loadCurrentMigration",null);var m=_=(0,s.Cg)([(0,n.uA)({components:{ThematicLink:c.A,ThematicLinks:u.A,FaqItems:o.default,BroadbandProductOrderOverview:d.A,InstallationDetailsPanel:r.A,Loading:l.A}})],_),g=(0,i(41618).A)(m,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"MigrateBroadbandStatus"},[t.loading?e("Loading",{attrs:{"data-qa":"migrate-broadband-status-loading"}}):e("div",[e("InstallationDetailsPanel",{staticClass:"MigrateBroadbandStatus__installation",attrs:{order:t.migration}}),e("BroadbandProductOrderOverview",{staticClass:"MigrateBroadbandStatus__order",attrs:{order:t.migration}}),e("FaqItems",{staticClass:"MigrateBroadbandStatus__faq",attrs:{category:"broadband-migration-order"}}),t.canChangeOrder?e("ThematicLinks",{staticClass:"MigrateBroadbandStatus__cancel nextStyleLevel"},[t.cancelAllowed?e("ThematicLink",{staticClass:"cancel-order",attrs:{"data-qa":"migrate-broadband-status-cancel",destructive:!0,title:t.$t("broadband_migration_pending.cancel_migration"),tip:t.$t("broadband_migration_pending.cancel_tip"),to:{}},nativeOn:{click:function(e){return e.preventDefault(),t.cancelMigration()}}}):t._e()],1):t._e()],1)],1)},[],!1,null,"df05d84e",null).exports}
34,84782:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return O}});var s=i(32198),a=i(58294),n=i(90004),o=i(8921),r=i(47352),l=i(44739),d=i(67953),c=i(35406),u=i(95990),p=i(24176),h=i(14806),_=i(58249),m=i(42123),g=i(76573),v=i(59838),f=i(20174),y=i(60490),b=i(10231),C=i(95724),w=i(88029),S=i(42580);class M extends d.lD{get formattedAddress(){return(0,S.H8)(this.subscription?.installationAddress,this.locale,this.$t.bind(this))}}(0,s.Cg)([(0,d.kv)({type:Object,default:null})],M.prototype,"subscription",void 0);var A=M=(0,s.Cg)([(0,d.uA)({components:{WizardSubscriptionInfo:w.A,WizardInfoItem:C.A}})],M),k=i(41618),I=(0,k.A)(A,function(){var t=this._self._c;return this._self._setupProxy,t("WizardSubscriptionInfo",[t("WizardInfoItem",{staticClass:"wizardSubscriptionInfo__infoItem",attrs:{title:this.$t("migrate_broadband.address"),primaryValue:this.formattedAddress}}),t("WizardInfoItem",{staticClass:"wizardSubscriptionInfo__infoItem",attrs:{title:this.$t("migrate_broadband.current_product"),primaryValue:this.subscription.product.title}})],1)},[],!1,null,null,null).exports,x=i(66090),N=i(78906),T=i(20020),D=i(3231),$=i(70022);let P=(0,a.tZ)("MigrateBroadbandView.vue");class L extends d.lD{get loading(){return null===this.migrationsAreAvailable||!this.subscription||this.isLoading}async created(){this.updatePageTitle(),await this.checkMigrationOrderAvailability()}get disallowedProducts(){if(!this.products)return null;let t=this.products.find(t=>"hyperfast"===t.connectivityClass&&!1===t.available);return t?[{product:t,reason:this.$t("migrate_broadband.hyperfast_illegible_joint_venture").toString()}]:null}get formState(){return this.needsAppointment&&this.migrationOrder?"book-appointment":"select-product"}get pageNumber(){return"book-appointment"===this.formState?2:1}get pageLabels(){return(0,r.Un)([this.$t("migrate_broadband.page_label_1").toString(),this.needsAppointment?this.$t("migrate_broadband.page_label_2").toString():null,this.$t("migrate_broadband.page_label_3").toString()])}async checkMigrationOrderAvailability(){try{this.migrationsAreAvailable=await this.broadbandService.canChangeOrder()}catch(t){P.error("Failed checking whether migrations are available",t),this.notifyGenericErrors(t)}}get goodToKnowDescription(){return this.needsAppointment?this.$t("migrate_broadband.copper_to_fiber_good_to_know_description").toString():this.$t("migrate_broadband.fiber_to_fiber_good_to_know_description").toString()}eligibleForComboBenefits(){return!!this.session.mobileSubscriptions&&!!this.session.mobileSubscriptions.find(t=>"postpaid"===t.type)}async loadPromo(){if(this.availablePromo=null,!this.toProduct)return;let t=await this.reductionHolder.promoFor(this.toProduct.id);t&&"open"===t.state&&(this.availablePromo=t)}async onSubscriptionIdChange(){if(this.isLoading=!0,this.subscriptionId){if(!this.session.broadbandSubscriptions)throw this.isLoading=!1,new n.p("Should not be able to access MigrateView without subscriptions");this.subscription=(0,N._w)(this.session.broadbandSubscription);try{let[t,e]=await Promise.all([this.broadbandService.getAddressLocationInfoForSubscription(this.subscription),this.subscriptionService.getBroadbandPriceGuaranteeReduction(this.subscription.id)]);this.priceGuaranteeReductionAmount=this.config.featureFlags.deductBbPriceGuarantee?e:0,this.products=(0,N._w)(t.products),this.isFiberEligible=t.createdDuringDowntime?null:this.products.some(t=>t.available&&"fiber"===t.lineType),this.trackingService.updateBroadbandMigration("migration_page_loaded",{isFiberEligible:this.isFiberEligible??void 0,fromProduct:this.subscription.product}),this.isFiberEligible&&"copper"===this.subscription.product.lineType&&!this.config.featureFlags.migrationToDifferentLineType&&this.$router.push({name:D.A.fixedLines}),this.receivesComboBenefits=this.eligibleForComboBenefits()}catch(t){P.error("Failed loading products for migrations",t),this.notifyGenericErrors(t)}finally{this.isLoading=!1}}}updatePageTitle(){this.titleService.pageTitle="different_line"===this.intent?this.$t("migrate_broadband.page_title__copper_to_fiber").toString():this.$t("migrate_broadband.page_title").toString()}hasAvailableProduct(){return!this.products.filter(t=>t.id!==this.subscription?.product.id).find(t=>t.available)}async cancelMigration(t){if(await this.confirmCancelMigration())try{t&&await this.broadbandService.cancelBroadbandRequest(t),this.$router.push({name:D.A.fixedLines})}catch(e){let t=o.Ay.of(e);t.code===o.O4.ORDER_NOT_FOUND?this.$router.push({name:D.A.fixedLines}):t.code===o.O4.PROCESS_CANNOT_BE_CANCELLED?this.notify.error("migrate_broadband.migration_already_being_cancelled"):(P.error("Failed to cancel broadband migration",e),this.notifyGenericErrors(e))}}confirmCancelMigration(){return this.confirm(this.$t("migrate_broadband.confirm_cancel_migration_description"),this.$t("migrate_broadband.confirm_cancel_migration_title"),this.$t("migrate_broadband.cancel_confirm_cta_text"),this.$t("migrate_broadband.cancel_return_to_my_migration"))}get legalDocumentCheckboxLabel(){return this.subscription?.product?this.$t("registration.agree_to_{tosUrl}_{privacyUrl}_{contractUrl}",{tosUrl:this.legalDocumentService.getTermsAndConditionsUrl(),privacyUrl:this.legalDocumentService.getPrivacyPolicyUrl(),contractUrl:this.legalDocumentService.getContractSummaryUrl(this.subscription.product.id)}).toString():null}async doMigration(){try{if(this.updateTracking("migration_confirmed"),this.uwaValidationErrors={},!this.agreedToTos)return void this.notify.error("gdpr_should_be_checked");if(!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20);return}if(!this.subscription)throw new n.p("doMigration called without subscription");if(!this.toProduct)throw new n.p("doMigration called without loaded product");this.migrationOrder=await this.subscriptionService.migrateBroadband(this.subscription,this.toProduct,this.password),this.needsAppointment||(this.goToDone(),await (0,l.i4)())}
34catch(i){let t=o.Ay.of(i);if(t.code===o.O4.MIGRATION_ALREADY_RUNNING)return void this.notify.error("migrate_broadband.error__already_migrating");if(t.code===o.O4.TOO_MANY_MIGRATIONS)return void this.notify.error("migrate_broadband.error__too_many_migrations_in_a_row");if(t.code===o.O4.MIGRATION_PENDING)return void this.notify.error("migrate_broadband.error__a_migration_is_pending");if(t.code===o.O4.ALREADY_SWITCHED_TOO_RECENTLY)return void this.notify.error("migrate_broadband.error__already_switched_within_short_timeframe");if(t.code===o.O4.SUBSCRIPTION_DEACTIVATED)return void this.notify.error("migrate_broadband.error__subscription_deactivated");if(t.code===o.O4.SWITCHING_BLOCKED_FIRST_PAYMENT_REQUIRED)return void this.notify.error("migrate_broadband.error__switching_blocked_first_payment_required");if(t.code===o.O4.NOT_ALLOWED_BECAUSE_DUNNING)return void this.notify.error("migrate_broadband.error__switching_blocked_due_unpaid_invoices");if(t.code===o.O4.LEGALLY_INCOMPETENT)return void this.notify.error("migrate_broadband.legally_incompetent");if(t.code===o.O4.CUSTOMER_SHOULD_CONTACT_CARE)return void this.notify.error("migrate_broadband.customer_should_contact_care");let e=(0,T.v)(t,[{code:o.O4.INVALID_VALUE,field:"password",on:"password",message:"password_incorrect"}]);this.uwaValidationErrors=e.result,e.firstIssue||(P.error("Failed to migrate",t),this.notifyGenericErrors(i)),this.domUtils.scrollToFirst(".is-invalid",20)}}get needsAppointment(){return this.subscription?.product.lineType==="copper"||this.toProduct?.connectivityClass==="hyperfast"||this.fromProduct?.connectivityClass==="hyperfast"}goToDone(){this.updateTracking("migration_success"),this.$router.push((0,r.Bb)({name:D.A.migrateBroadbandDone,params:{subscriptionId:(0,N.bp)(this.subscription).id},query:{order:this.migrationOrder?.id,intent:this.intent||void 0}}))}goToSettings(){this.$router.push({name:D.A.broadbandSettings})}productSelected(t,e){e&&this.updateTracking("migration_product_selected")}get fromProduct(){return this.subscription?.product||null}get isDifferentLineMigration(){return this.fromProduct?.lineType!==this.toProduct?.lineType}get originalInstallationTotal(){return this.toProduct?.definitions?.originalInstallationFees.technician}get installationTotal(){if(this.toProduct&&this.fromProduct&&this.isDifferentLineMigration)return this.toProduct.definitions.installationFees.technician}updateTracking(t){this.toProduct&&this.session.broadbandSubscription&&this.trackingService.updateBroadbandMigration(t,{fromProduct:this.session.broadbandSubscription.product,toProduct:this.toProduct,isFiberEligible:null!==this.isFiberEligible?this.isFiberEligible:void 0})}getInstallationIdentificationOrderTitle(){return this.migrationOrder?.multipleAppointmentsNeeded?this.$t("migrate_broadband.book_first_installation_appointment_title"):this.$t("migrate_broadband.book_installation_appointment_title")}constructor(...t){super(...t),this.subscription=null,this.isFiberEligible=null,this.products=[],this.toProduct=null,this.availablePromo=null,this.receivesComboBenefits=null,this.priceGuaranteeReductionAmount=null,this.uwaValidationErrors={},this.RouteName=D.A,this.isLoading=!1,this.agreedToTos=!1,this.migrationsAreAvailable=null,this.migrationOrder=null,this.password=""}}(0,s.Cg)([(0,d.kv)({type:String})],L.prototype,"subscriptionId",void 0),(0,s.Cg)([(0,d.y_)()],L.prototype,"session",void 0),(0,s.Cg)([(0,d.y_)()],L.prototype,"broadbandService",void 0),(0,s.Cg)([(0,d.y_)()],L.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,d.y_)()],L.prototype,"reductionHolder",void 0),(0,s.Cg)([(0,d.y_)()],L.prototype,"domUtils",void 0),(0,s.Cg)([(0,d.y_)()],L.prototype,"absoluteUrl",void 0),(0,s.Cg)([(0,d.y_)()],L.prototype,"goTo",void 0),(0,s.Cg)([(0,d.y_)()],L.prototype,"confirm",void 0),(0,s.Cg)([(0,d.y_)()],L.prototype,"titleService",void 0),(0,s.Cg)([(0,d.y_)()],L.prototype,"trackingService",void 0),(0,s.Cg)([(0,d.y_)()],L.prototype,"legalDocumentService",void 0),(0,s.Cg)([(0,d.y_)()],L.prototype,"config",void 0),(0,s.Cg)([(0,d.y_)()],L.prototype,"stepupMode",void 0),(0,s.Cg)([(0,d.kv)({type:String,default:null})],L.prototype,"intent",void 0),(0,s.Cg)([(0,d.ox)("product.id")],L.prototype,"loadPromo",null),(0,s.Cg)([(0,d.ox)("subscriptionId",{immediate:!0})],L.prototype,"onSubscriptionIdChange",null),(0,s.Cg)([(0,d.ox)("toProduct")],L.prototype,"productSelected",null);var E=L=(0,s.Cg)([(0,d.uA)({components:{Checkbox:h.A,ErrorPanel:u.A,CallToAction:p.A,InstallationCostWizardStepFooter:v.A,BroadbandInstallationAndIdentification:$.A,Loading:f.A,Field:_.A,WizardFooter:b.A,Password:g.A,BroadbandSelector:c.A,WizardLineInfo:I,MvForm:m.A,WizardStep:x.A,MyVikingFrameWizard:y.A}})],L),O=(0,k.A)(E,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MyVikingFrameWizard",{staticClass:"migrationBroadbandView",attrs:{title:t.titleService.pageTitle,pageLabels:t.pageLabels,currentPageNumber:t.pageNumber}},[t.loading?e("Loading"):t.migrationsAreAvailable?!t.isFiberEligible&&t.isDifferentLineMigration?e("WizardStep",{staticClass:"migrateBroadband__notification",attrs:{state:"failure",title:t.$t("migrate_broadband.fiber_unavailable_title"),description:t.$t("migrate_broadband.fiber_unavailable_description")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("CallToAction",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"primary",on:{click:t.goToSettings}},[t._v(" "+t._s(t.$t("migrate_broadband.back_to_settings"))+" ")])],1)]):e("MvForm",{staticClass:"migrateLine",attrs:{name:"migrate"}},["select-product"===t.formState?[e("WizardLineInfo",{attrs:{subscription:t.subscription}}),t.goodToKnowDescription?e("WizardStep",{attrs:{title:t.$t("good_to_know"),hideNumber:!0}},[e("div",{staticClass:"good-to-know wizardStep__paddedContent Exter
34nalContent"},[e("ul",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.goodToKnowDescription,expression:"goodToKnowDescription"}]})])]):t._e(),e("WizardStep",{attrs:{title:t.$t("migrate_broadband.your_new_internet_product__title"),description:t.$t("migrate_broadband.your_new_internet_product__intro")},scopedSlots:t._u([{key:"default",fn:function(){return[e("div",{staticClass:"wizardStep__paddedContent"},[e("BroadbandSelector",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{referenceProduct:t.fromProduct,receivesComboBenefits:t.receivesComboBenefits,broadbandSubscriptionProducts:t.products.filter(e=>e.id!==t.subscription.product.id),promo:t.availablePromo,disallowedProducts:t.disallowedProducts,createdDuringDowntime:!1,productPriceReductionAmount:t.priceGuaranteeReductionAmount},model:{value:t.toProduct,callback:function(e){t.toProduct=e},expression:"toProduct"}})],1)]},proxy:!0},void 0!==t.installationTotal?{key:"footer",fn:function(){return[e("InstallationCostWizardStepFooter",{staticClass:"installation-cost",attrs:{originalInstallationTotal:t.originalInstallationTotal,installationTotal:t.installationTotal}})]},proxy:!0}:null],null,!0)}),"password"===t.stepupMode?e("WizardStep",{attrs:{title:t.$t("migrate_broadband.your_password"),intro:t.$t("migrate_broadband.your_password_intro")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("Field",{attrs:{label:t.$t("password"),validationErrors:t.$tList(t.uwaValidationErrors.password,"validationError__")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"password",required:"","data-vv-as":t.$t("password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)],1)]):t._e(),e("WizardFooter",{attrs:{ctaText:"password"===t.stepupMode?t.$t("migrate_broadband.confirm"):t.$t("migrate_broadband.confirm_with_step_up"),onConfirm:t.doMigration,secCtaText:t.$t("migrate_broadband.cancel_keep_product")},on:{reject:function(e){return t.cancelMigration()}},scopedSlots:t._u([t.legalDocumentCheckboxLabel?{key:"legalChecks",fn:function(){return[e("Checkbox",{attrs:{id:"tos_checkbox",label:t.legalDocumentCheckboxLabel},model:{value:t.agreedToTos,callback:function(e){t.agreedToTos=e},expression:"agreedToTos"}})]},proxy:!0}:null],null,!0)})]:"book-appointment"===t.formState&&t.migrationOrder?[e("BroadbandInstallationAndIdentification",{attrs:{orderId:t.migrationOrder.id,appearance:"inMyViking",getOrderTitle:t.getInstallationIdentificationOrderTitle,getOrderDescription:()=>t.$t("migrate_broadband.book_installation_appointment_description"),cancelButtonLabel:t.$t("cancel")},on:{cancel:t.cancelMigration,done:t.goToDone}})]:t._e()],2):e("ErrorPanel",{attrs:{title:t.$t("migrate_broadband.migration_temporarily_unavailable_title"),description:t.$t("migrate_broadband.migration_temporarily_unavailable_description"),ctaText:t.$t("back_to_my_viking_no_html"),ctaAppearance:"primary",appearance:"ribbon",ctaRoute:{name:t.RouteName.myViking}}})],1)},[],!1,null,null,null).exports},27767:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return M}});var s=i(32198),a=i(58294),n=i(67953),o=i(58249),r=i(42123),l=i(49842),d=i(24176);let c=(0,a.tZ)("multiFileUpload");class u extends n.lD{async loadFiles(t){let e=await Promise.all([...t].filter(t=>!!this.allowedFile(t)||(this.uploadErrors.push(t),!1)));this.input.value="",this.$emit("input",[...this.value,...e])}allowedFile(t){return("image"!==this.type||!!t.type.startsWith("image/"))&&(!this.sizeLimit||!(t.size>this.sizeLimit))}onDrag(t){t.dataTransfer?.files?(t.preventDefault(),t.dataTransfer.dropEffect="copy",this.draggingFile=!0):this.draggingFile=!1}onDragLeave(){this.draggingFile=!1}onDrop(t){t.dataTransfer&&this.loadFiles(t.dataTransfer.files).catch(t=>{c.error("Failed to add files from drop",t)}),this.draggingFile=!1}remove(t){this.upForRemoval=t}removing(t){return this.upForRemoval?.name===t.name}removeError(t){this.uploadErrors=this.uploadErrors.filter(e=>e.name!==t.name)}removeCancel(){this.upForRemoval=null}removeConfirm(t){this.upForRemoval=null,this.$emit("input",this.value.filter(e=>e.name!==t.name))}get howTo(){return"image"===this.type?this.$t("upload.drag_images_here_or_select_from_pc"):this.$t("upload.drag_files_here_or_select_from_pc")}constructor(...t){super(...t),this.id=`mfu__${p++}`,this.uploadErrors=[],this.upForRemoval=null,this.draggingFile=!1}}(0,s.Cg)([(0,n.kv)()],u.prototype,"value",void 0),(0,s.Cg)([(0,n.kv)({default:"file"})],u.prototype,"type",void 0),(0,s.Cg)([(0,n.kv)({default:null})],u.prototype,"hint",void 0),(0,s.Cg)([(0,n.kv)({default:null})],u.prototype,"sizeLimit",void 0),(0,s.Cg)([(0,n.kv)({required:!0})],u.prototype,"name",void 0),(0,s.Cg)([(0,n.oS)()],u.prototype,"input",void 0);let p=0;var h=u=(0,s.Cg)([(0,n.uA)({components:{CallToAction:d.A}})],u),_=i(41618),m=(0,_.A)(h,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"multiFileUpload",class:{"multiFileUpload--dragging":t.draggingFile}},[t._l(t.value,function(s){return e("div",{key:s.name,staticClass:"multiFileUploadFile",class:{"multiFileUploadFile--removing":t.removing(s)}},[e("span",{staticClass:"multiFileUploadFile__filename uploaded-file-name"},[t._v(t._s(s.name))]),e("button",{staticClass:"multiFileUploadFile__remove remove-uploaded-file",on:{click:function(e){return t.remove(s)}}}),t.removing(s)?e("div",{staticClass:"multiFileUploadFile__removeConfirm"},[e("span",[t._v(t._s(t.$t("upload.really_remove_file")))]),e("CallToAction",{attrs:{appearance:"secondary",icon:i(75299)},on:{click:function(e){return t.removeConfirm(s)}}},[t._v(" "+t._s(t.$t("upload.remove_file"))+" ")]),e("CallToAction",{attrs:{appearance:"link"},on:{click:function(e){return t.removeCancel(s)}}}
34,[t._v(t._s(t.$t("upload.keep_it")))])],1):t._e()])}),t._l(t.uploadErrors,function(i){return e("div",{key:i.name,staticClass:"multiFileUploadFile multiFileUploadFile--error"},[e("span",{staticClass:"multiFileUploadFile__filename uploaded-file-name"},[t._v(t._s(i.name))]),e("button",{staticClass:"multiFileUploadFile__remove remove-uploaded-file",on:{click:function(e){return t.removeError(i)}}})])}),e("label",{attrs:{for:t.id},on:{dragenter:t.onDrag,dragover:t.onDrag,dragleave:function(e){return e.preventDefault(),t.onDragLeave.apply(null,arguments)},drop:function(e){return e.preventDefault(),t.onDrop.apply(null,arguments)}}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.howTo,expression:"howTo"}],staticClass:"multiFileUpload__howToUpload"}),e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("upload.release_here"),expression:"$t('upload.release_here')"}],staticClass:"multiFileUpload__howToDrop"}),t.hint?e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.hint,expression:"hint"}],staticClass:"multiFileUpload__hint"}):t._e()]),e("input",{ref:"input",attrs:{id:t.id,type:"file",multiple:"",name:t.name},on:{input:function(e){return t.loadFiles(t.input.files)}}})],2)},[],!1,null,"0667887b",null).exports,g=i(10231),v=i(66090);let f=["connection_issue_bb"];var y=i(78906),b=i(3231);let C=(0,a.tZ)("RequestRepair");class w extends n.lD{mounted(){if(this.session.profile&&(this.contactInfo.firstName=this.session.profile.firstName,this.contactInfo.lastName=this.session.profile.lastName,this.contactInfo.email=this.session.profile.email||"",this.session.mobileSubscriptions)){let t=this.session.mobileSubscriptions.find(t=>!t.isCancelled);t&&(this.contactInfo.phone=t.msisdn||"")}}get categoryOptions(){return f}async submit(){try{if(!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20);return}let t=(0,y.bp)(this.problemCategory,"checked by v-validate");await this.broadbandService.requestRepair(this.subscription,this.lineCheckId,this.contactInfo,t,this.problemDescription,this.attachments),this.$router.push({name:b.A.broadbandRequestRepairDone,params:{bbSubscriptionId:this.subscription.id,lang:this.locale}})}catch(t){C.error("Failed to request repair",t),this.notifyGenericErrors(t)}}async cancelRequest(){await this.confirm(this.$t("request_repair.cancel_dialog__question"),this.$t("request_repair.cancel_dialog__title"),this.$t("request_repair.cancel_dialog__buttonText"),this.$t("request_repair.cancel_dialog__cancel"))&&this.$router.push({name:b.A.myViking})}constructor(...t){super(...t),this.contactInfo={firstName:"",lastName:"",email:"",phone:""},this.problemDescription="",this.problemCategory=null,this.attachments=[]}}(0,s.Cg)([(0,n.y_)()],w.prototype,"confirm",void 0),(0,s.Cg)([(0,n.y_)()],w.prototype,"broadbandService",void 0),(0,s.Cg)([(0,n.y_)()],w.prototype,"domUtils",void 0),(0,s.Cg)([(0,n.y_)()],w.prototype,"session",void 0),(0,s.Cg)([(0,n.kv)()],w.prototype,"subscription",void 0),(0,s.Cg)([(0,n.kv)()],w.prototype,"lineCheckId",void 0);var S=w=(0,s.Cg)([(0,n.uA)({components:{WizardFooter:g.A,MultiFileUpload:m,MsisdnInput:l.A,Field:o.A,WizardStep:v.A,MvForm:r.A}})],w),M=(0,_.A)(S,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"requestRepair",attrs:{name:"RequestRepair"}},[e("WizardStep",{staticClass:"contact-info",attrs:{title:t.$t("request_repair.how_can_we_reach_you")}},[e("div",{staticClass:"requestRepair__contactInfo wizardStep__paddedContent"},[e("Field",{staticClass:"first-name",attrs:{label:t.$t("first_name")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.contactInfo.firstName,expression:"contactInfo.firstName"},{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{type:"text",name:"first-name"},domProps:{value:t.contactInfo.firstName},on:{input:function(e){e.target.composing||t.$set(t.contactInfo,"firstName",e.target.value)}}})]),e("Field",{staticClass:"last-name",attrs:{label:t.$t("last_name")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.contactInfo.lastName,expression:"contactInfo.lastName"},{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{type:"text",name:"last-name"},domProps:{value:t.contactInfo.lastName},on:{input:function(e){e.target.composing||t.$set(t.contactInfo,"lastName",e.target.value)}}})]),e("Field",{staticClass:"contact-phone",attrs:{label:t.$t("phone")}},[e("MsisdnInput",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"contact-phone"},model:{value:t.contactInfo.phone,callback:function(e){t.$set(t.contactInfo,"phone",e)},expression:"contactInfo.phone"}})],1),e("Field",{staticClass:"contact-email",attrs:{label:t.$t("email")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.contactInfo.email,expression:"contactInfo.email"},{name:"validate",rawName:"v-validate",value:{email:!0,required:!0},expression:"{ email: true, required: true }"}],attrs:{type:"text",name:"contact-email"},domProps:{value:t.contactInfo.email},on:{input:function(e){e.target.composing||t.$set(t.contactInfo,"email",e.target.value)}}}
34)])],1)]),e("WizardStep",{attrs:{title:t.$t("request_repair.about_your_problem"),description:t.$t("request_repair.about_your_problem__description")}},[e("div",{staticClass:"requestRepair__problem wizardStep__paddedContent"},[e("Field",{staticClass:"problem-category",attrs:{label:t.$t("request_repair.problem_category")}},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.problemCategory,expression:"problemCategory"},{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"problem-category"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.problemCategory=e.target.multiple?i:i[0]}}},[e("option",{domProps:{value:null}}),t._l(t.categoryOptions,function(i){return e("option",{key:i,domProps:{value:i}},[t._v(" "+t._s(t.$t(`request_repair.category__${i}`))+" ")])})],2)]),e("Field",{staticClass:"problem-description",attrs:{label:t.$t("request_repair.problem_description")}},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.problemDescription,expression:"problemDescription"},{name:"validate",rawName:"v-validate",value:{required:!0,max:2e4},expression:"{ required: true, max: 20000 }"}],attrs:{name:"problem-description"},domProps:{value:t.problemDescription},on:{input:function(e){e.target.composing||(t.problemDescription=e.target.value)}}})]),e("Field",{staticClass:"attachments",attrs:{label:t.$t("request-repair.attachments"),hint:t.$t("request_repair.attachments__hint")}},[e("MultiFileUpload",{attrs:{name:"attachments",type:"image",sizeLimit:0xa00000,hint:t.$t("request_repair.attachments__drop_hint")},model:{value:t.attachments,callback:function(e){t.attachments=e},expression:"attachments"}})],1)],1)]),e("WizardFooter",{staticClass:"requestRepair__wizardFooter",attrs:{ctaText:t.$t("request_repair.confirm_request"),onConfirm:t.submit,secCtaText:t.$t("request_repair.cancel_request")},on:{reject:t.cancelRequest}})],1)},[],!1,null,"4487e3d0",null).exports},29494:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return S}});var s=i(32198),a=i(58294),n=i(8921),o=i(56776),r=i(67953),l=i(58249),d=i(42123),c=i(78365),u=i(24242),p=i(76573),h=i(79847),_=i(99679),m=i(10231),g=i(66090),v=i(13132),f=i(20020),y=i(3231);let b=(0,a.tZ)("TerminateBroadbandContract");class C extends r.lD{async mounted(){this.competitors=(await this.skipta.getOperators()).filter(t=>t.availableForEasySwitch&&"Mobile Vikings"!==t.name).map(t=>t.name).sort()}get subscription(){if(!this.session.broadbandSubscription)throw b.debug("No subscription present. Bailing."),this.$router.push({name:y.A.myViking}),new n.Ay(n.O4.CANCELLED);return this.session.broadbandSubscription}get terminationEnabled(){return this.config.featureFlags.enableBroadbandTermination}async submitPortoutSurvey(){try{await this.svaraClient.submitBroadbandSurvey({subscriptionId:this.subscription.id,title:this.$route.meta?this.$t(this.$route.meta.title).toString():"",language:this.locale,mainReason:{questionText:this.$t("terminate_broadband_contract.main_reason_question").toString(),responseId:(0,o.bp)(this.mainReason),responseText:this.mainReasonMapping[(0,o.bp)(this.mainReason)].toString()},mainReasonOther:"other"===this.mainReason?{questionText:this.$t("terminate_broadband_contract.other_reason").toString(),responseText:this.mainReasonOther}:void 0,moreInterestingOfferReason:this.moreInterestingOfferReason?{questionText:this.$t("terminate_broadband_contract.more_interesting_offer_question").toString(),responseId:this.moreInterestingOfferReason.id,responseText:this.moreInterestingOfferReason.label}:void 0,unhappyReason:this.unhappyReason?{questionText:this.$t("terminate_broadband_contract.unhappy_question").toString(),responseId:this.unhappyReason.id,responseText:this.unhappyReason.label}:void 0,newAddressReason:this.newAddressReason?{questionText:this.$t("terminate_broadband_contract.moving_question").toString(),responseId:this.newAddressReason.id,responseText:this.newAddressReason.label}:void 0,servicesAtOtherOperator:this.requireNewOperatorSelection?{questionText:this.$t("terminate_broadband_contract.services_at_other_operator_question").toString(),responseId:this.servicesAtOtherOperator.map(t=>
34t.id),responseText:this.servicesAtOtherOperator.map(t=>t.label)}:void 0,servicesAtOtherOperatorOther:this.requireNewOperatorSelection&&this.servicesAtOtherOperator.find(t=>"other"===t.id)?{questionText:this.$t("terminate_broadband_contract.other_services").toString(),responseText:this.servicesAtOtherOperatorOther}:void 0,competitor:this.competitor?{questionText:this.$t("terminate_broadband_contract.other_operator_question").toString(),responseText:this.competitor}:void 0,competitorOther:this.competitorOther?{questionText:this.$t("terminate_broadband_contract.survey_please_specify").toString(),responseText:this.competitorOther}:void 0})}catch(t){b.error("Failed to submit portout survey",t)}}async submit(){try{if("deactivated"===this.subscription.state)return void await this.$router.push({name:y.A.cancelBroadbandSubscriptionDone,params:{subscriptionId:this.subscription.id}});if(this.uwaValidationErrors={},!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20);return}if(!await this.confirm(this.$t("bb_termination.confirm_terminate__question"),this.$t("bb_termination.confirm_terminate__title"),this.$t("bb_termination.confirm_terminate__ok"),this.$t("cancel")))return;try{let t=await this.getThirdPartyTerminationWarning();if(t&&!await this.confirm(t,this.$t("termination.lose_tps_title"),this.$t("i_understand"),this.$t("cancel")))return}catch(t){b.error("Failed to warn for third party fee reduction at broadband termination",t)}await this.subscriptionService.terminateSubscription(this.subscription,this.password),this.showPortoutSurvey&&await this.submitPortoutSurvey(),await this.authService.refreshSession(),this.session.broadbandSubscription&&this.notificationManager.showSubscriptionRelatedNotifications(this.session.broadbandSubscription),await this.$router.push({name:y.A.cancelBroadbandSubscriptionDone,params:{subscriptionId:this.subscription.id}})}catch(i){let t=n.Ay.of(i);i.code===n.O4.SUBSCRIPTION_DEACTIVATED&&(b.warning("Subscription was already gone. Nothing to do."),await this.authService.refreshSession(),await this.$router.push({name:y.A.cancelBroadbandSubscriptionDone,params:{subscriptionId:this.subscription.id}}));let e=(0,f.v)(t,[{code:n.O4.INVALID_VALUE,field:"password",on:"password",message:"password_incorrect"}]);this.uwaValidationErrors=e.result,e.firstIssue||(b.error("Failed to terminate broadband contract",i),this.notifyGenericErrors(i)),this.domUtils.scrollToFirst(".is-invalid",20)}}async getThirdPartyTerminationWarning(){if(!await this.subscriptionService.willLoseThirdPartySubscriptionUponTerminating(this.subscription)||!this.session.thirdPartySubscriptions)return null;let t=await this.reductionClient.getAdvantages();return(0,v.S)(this.session.thirdPartySubscriptions,t,this.$t.bind(this))}get goodToKnow(){if(!this.session.profile)return"";let{email:t}=this.session.profile;return this.$t("bb_termination.good_to_know",{email:t})}async cancelTermination(){await this.confirm(this.$t("bb_termination.confirm_cancel__question"),this.$t("bb_termination.confirm_cancel__title"),this.$t("bb_termination.confirm_cancel__ok"),this.$t("cancel"))&&await this.$router.push({name:y.A.myViking})}get mainReasonMapping(){return{more_interesting_offer:this.$t("terminate_broadband_contract.main_reason_more_interesting_offer"),unhappy:this.$t("terminate_broadband_contract.main_reason_unhappy"),moving:this.$t("terminate_broadband_contract.main_reason_moving"),employer_subscription:this.$t("terminate_broadband_contract.main_reason_employer_subscription"),cancel_no_switch:this.$t("terminate_broadband_contract.main_reason_cancel_no_switch"),other:this.$t("terminate_broadband_contract.survey_other")}}get moreInterestingOfferChoices(){return[{id:"with_digital_tv",label:this.$t("terminate_broadband_contract.more_interesting_offer_with_digital_tv")},{id:"discount",label:this.$t("terminate_broadband_contract.more_interesting_offer_discount")},{id:"cheaper",label:this.$t("terminate_broadband_contract.more_interesting_offer_cheaper")},{id:"better_speeds",label:this.$t("terminate_broadband_contract.more_interesting_offer_better_speeds")},{id:"streaming_services",label:this.$t("terminate_broadband_contract.more_interesting_offer_streaming_services")}]}get unhappyChoices(){return[{id:"too_expensive",label:this.$t("terminate_broadband_contract.unhappy_too_expensive")},{id:"too_many_issues",label:this.$t("terminate_broadband_contract.unhappy_too_many_issues")},{id:"no_good_helpdesk_service",label:this.$t("terminate_broadband_contract.unhappy_no_good_helpdesk_service")},{id:"invoice_issue",label:this.$t("terminate_broadband_contract.unhappy_invoice_issue")}]}get newAddressChoices(){return[{id:"mv_unavailable",label:this.$t("terminate_broadband_contract.new_address_mv_unavailable")},{id:"fiber_unavailable",label:this.$t("terminate_broadband_contract.new_address_fiber_unavailable")},{id:"better_offer",label:this.$t("terminate_broadband_contract.new_address_better_offer")},{id:"moving_in_with_existing_subscription",label:this.$t("terminate_broadband_contract.new_address_moving_in_with_existing_subscription")},{id:"chose_mv",label:this.$t("terminate_broadband_contract.new_address_chose_mv")}]}get servicesAtOtherOperatorMapping(){return[{id:"mobile",label:this.$t("terminate_broadband_contract.services_at_other_operator_mobile")},{id:"fixed_internet",label:this.$t("terminate_broadband_contract.services_at_other_operator_fixed_internet")},{id:"digital_tv",label:this.$t("terminate_broadband_contract.services_at_other_operator_digital_tv")},{id:"landline",label:this.$t("terminate_broadband_contract.services_at_other_operator_landline")},{id:"streaming_services",label:this.$t("terminate_broadband_contract.services_at_other_operator_streaming_services")},{id:"other",label:this.$t("terminate_broadband_contract.survey_other")}]}get requireNewOperatorSelection(){return!!this.mainReason&&"cancel_no_switch"!==this.mainReason&&this.newAddressReason?.id!=="chose_mv"}get showPortoutSurvey(){return!!this.config.featureFlags.pp1261bbPortoutSurvey&&"1"!==this.$route.query.skipSurvey}constructor(...t){super(...t),this.uwaValidationErrors={},this.password="",this.mainReason=null,this.mainReasonOther="",this.moreInterestingOfferReason=null,this.unhappyReason=null,this.newAddressReason=null,this.competitors=[],this.competitor=null,this.competitorOther="",this.servicesAtOtherOperator=[],this.servicesAtOtherOperatorOther=""}}(0,s.Cg)([(0,r.y_)()],C.prototype,"confirm",void 0),(0,s.Cg)([(0,r.y_)()],C.prototype,"skipta",void 0),(0,s.Cg)([(0,r.y_)()],C.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,r.y_)()],C.prototype,"notificationManager",void 0),(0,s.Cg)([(0,r.y_)()],C.prototype,"authService",void 0),(0,s.Cg)([(0,r.y_)()],C.prototype,"session",void 0),(0,s.Cg)([(0,r.y_)()],C.prototype,"domUtils",void 0),(0,s.Cg)([(0,r.y_)()],C.prototype,"config",void 0),(0,s.Cg)([(0,r.y_)()],C.prototype,"svaraClient",void 0),(0,s.Cg)([(0,r.y_)()],C.prototype,"reductionClient",void 0),(0,s.Cg)([(0,r.y_)()],C.prototype,"stepupMode",void 0);var w=C=(0,s.Cg)([(0,r.uA)({components:{MultiSelect:u.A,RadioGroup:h.A,InputPlaceholder:c.A,InlineNotification:_.A,MvForm:d.A,WizardStep:g.A,WizardFooter:m.A,Field:l.A,Password:p.A}})],C),S=(0,i(41618).A)(w,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.session.broadbandSubscription?e("MvForm",{staticClass:"terminateBroadbandContract",attrs:{name:"terminate"}},[t.terminationEnabled?[e("WizardStep",{staticClass:"slide-down-fade-animation",attrs:{title:t.$t("bb_termination.good_to_know_title"),hideNumber:!0}},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.goodToKnow,expression:"goodToKnow"}],staticClass:"wizardStep__paddedContent good-to-know-stepbox"})]),t.showPortoutSurvey?[e("WizardStep",{staticClass:"slide-down-fade-animation",attrs:{title:t.$t("terminate_broadband_contract.main_reason_question")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("div",{staticClass:"checkboxGroup"},[e("Field",{attrs:{label:t.$t("terminate_broadband_contract.survey_reason")}},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.mainReason,expression:"mainReason"},{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"mainReason"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.mainReason=e.target.multiple?i:i[0]}}},[e("option",{domProps:{value:null}},[t._v(" "+t._s(t.$t("terminate_broadband_contract.survey_select_your_reason"))+" ")]),t._l(Object.entries(t.mainReasonMapping),function([i,s]){return e("option",{key:i,domProps:{value:i}},[t._v(" "+t._s(s)+" ")])})],2)]),"other"===t.mainReason?e("Field",{attrs:{label:t.$t("terminate_broadband_contract.other_reason")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.mainReasonOther,expression:"mainReasonOther"},{name:"validate",rawName:"v-validate",value:{required:"other"===t.mainReason},expression:"{ required: mainReason === 'other' }"}],attrs:{placeholder:t.$t("terminate_broadband_contract.survey_please_specify").toString()},domProps:{value:t.mainReasonOther},on:{input:function(e){e.target.composing||(t.mainReasonOther=e.target.value)}}})]):t._e()],1)])]),"more_interesting_offer"===t.mainReason?e("WizardStep",{attrs:{title:t.$t("terminate_broadband_contract.more_interesting_offer_question")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("Field",{attrs:{label:t.$t("terminate_broadband_contract.survey_reason")}},[e("RadioGroup",{directives:[{name:"validate",rawName:"v-validate",value:{required:"more_interesting_offer"===t.mainReason},expression:"{ required: mainReason === 'more_interesting_offer' }"}],attrs:{name:"moreInterestingOfferReason",options:t.moreInterestingOfferChoices,optionKey:"id"},scopedSlots:t._u([{key:"default",fn:function({option:e}){return[t._v(" "+t._s(e.label)+" ")]}}],null,!1,0x747a55b9),model:{value:t.moreInterestingOfferReason,callback:function(e){t.moreInterestingOfferReason=e},expression:"moreInterestingOfferReason"}})],1)],1)]):"unhappy"===t.mainReason?e("WizardStep",{attrs:{title:t.$t("terminate_broadband_contract.unhappy_question")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("Field",{attrs:{label:t.$t("terminate_broadband_contract.survey_reason")}},[e("RadioGroup",{directives:[{name:"validate",rawName:"v-validate",value:{required:"unhappy"===t.mainReason},expression:"{ required: mainReason === 'unhappy' }"}],attrs:{name:"unhappyReason",options:t.unhappyChoices,optionKey:"id"},scopedSlots:t._u([{key:"default",fn:function({option:e}){return[t._v(" "+t._s(e.label)+" ")]}}
34],null,!1,0x747a55b9),model:{value:t.unhappyReason,callback:function(e){t.unhappyReason=e},expression:"unhappyReason"}})],1)],1)]):"moving"===t.mainReason?e("WizardStep",{attrs:{title:t.$t("terminate_broadband_contract.moving_question")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("Field",{attrs:{label:t.$t("terminate_broadband_contract.survey_reason")}},[e("RadioGroup",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"movingReason",options:t.newAddressChoices,optionKey:"id"},scopedSlots:t._u([{key:"default",fn:function({option:e}){return[t._v(" "+t._s(e.label)+" ")]}}],null,!1,0x747a55b9),model:{value:t.newAddressReason,callback:function(e){t.newAddressReason=e},expression:"newAddressReason"}})],1)],1)]):null===t.mainReason?e("WizardStep",{attrs:{title:t.$t("terminate_broadband_contract.more_details_prompt")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("InputPlaceholder",{attrs:{text:t.$t("terminate_broadband_contract.first_select_main_reason")}})],1)]):t._e(),t.requireNewOperatorSelection?[e("WizardStep",{attrs:{title:t.$t("terminate_broadband_contract.other_operator_question")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("Field",{attrs:{label:t.$t("terminate_broadband_contract.survey_operator")}},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.competitor,expression:"competitor"},{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"competitor"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.competitor=e.target.multiple?i:i[0]}}},[e("option",{domProps:{value:null}},[t._v(" "+t._s(t.$t("terminate_broadband_contract.survey_select_your_reason"))+" ")]),t._l([...t.competitors,t.$t("terminate_broadband_contract.survey_other")],function(i){return e("option",{key:i.toString(),domProps:{value:i}},[t._v(" "+t._s(i)+" ")])})],2)]),t.competitor&&!t.competitors.includes(t.competitor)?e("Field",{attrs:{label:t.$t("terminate_broadband_contract.survey_other_operator")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.competitorOther,expression:"competitorOther"},{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"competitorOther",placeholder:t.$t("terminate_broadband_contract.survey_please_specify").toString()},domProps:{value:t.competitorOther},on:{input:function(e){e.target.composing||(t.competitorOther=e.target.value)}}})]):t._e()],1)]),e("WizardStep",{attrs:{title:t.$t("terminate_broadband_contract.services_at_other_operator_question")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("Field",{attrs:{label:t.$t("terminate_broadband_contract.survey_services")}},[e("MultiSelect",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],staticClass:"styleLevel2",attrs:{name:"servicesAtOtherOperator",options:t.servicesAtOtherOperatorMapping,optionsKey:"id"},scopedSlots:t._u([{key:"default",fn:function({option:i}){return[e("strong",[t._v(t._s(i.label))])]}}],null,!1,0x4b691bfd),model:{value:t.servicesAtOtherOperator,callback:function(e){t.servicesAtOtherOperator=e},expression:"servicesAtOtherOperator"}})],1),t.servicesAtOtherOperator.map(t=>t.id).includes("other")?e("Field",{attrs:{label:t.$t("terminate_broadband_contract.other_services")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.servicesAtOtherOperatorOther,expression:"servicesAtOtherOperatorOther"},{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"servicesAtOtherOperatorOther",placeholder:t.$t("terminate_broadband_contract.survey_please_specify").toString()},domProps:{value:t.servicesAtOtherOperatorOther},on:{input:function(e){e.target.composing||(t.servicesAtOtherOperatorOther=e.target.value)}}})]):t._e()],1)])]:t._e()]:t._e(),"password"===t.stepupMode?e("WizardStep",{attrs:{title:t.$t("bb_termination.your_password"),intro:t.$t("bb_termination.your_password_intro"),hideNumber:!0}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("Field",{attrs:{label:t.$t("password"),validationErrors:t.$tList(t.uwaValidationErrors.password,"validationError__")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"password",required:"","data-vv-as":t.$t("password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)],1)]):t._e(),e("WizardFooter",{attrs:{ctaText:"password"===t.stepupMode?t.$t("bb_termination.terminate_now"):t.$t("bb_termination.terminate_now_with_
34step_up"),onConfirm:t.submit,secCtaText:t.$t("bb_termination.keep_your_internet")},on:{reject:t.cancelTermination}})]:e("InlineNotification",{attrs:{hideIcon:!0}},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("broadband_termination.contact_care_to_terminate"),expression:"$t('broadband_termination.contact_care_to_terminate')"}]})])],2):t._e()},[],!1,null,"a96ff9fc",null).exports},42853:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return f}});var s=i(32198),a=i(70180),n=i(67953),o=i(21076),r=i(78098),l=i(28759),d=i(56562),c=i(78160),u=i(10231),p=i(29637),h=i(78906),_=i(2691),m=i(3231);class g extends n.lD{async fetchHardwareReturns(){let t=await this.broadbandService.getHardwareReturnInfo(this.session.broadbandSubscription);this.hardwareReturn=(0,_.wp)(t)}get subscription(){return(0,h._w)(this.session.broadbandSubscription)}get emailAddress(){return(0,h._w)(this.session.profile).email||null}get terminationDate(){return this.subscription.validUntil?(0,a.OS)(this.subscription.validUntil,this.locale):null}get lastInvoiceDate(){return this.subscription.nextBillingRun?(0,a.OS)(this.subscription.nextBillingRun,this.locale):null}goToFixedLinePage(){this.$router.push({name:m.A.fixedLines,params:{bbSubscriptionId:this.subscription.id}})}constructor(...t){super(...t),this.hardwareReturn=null}}(0,s.Cg)([(0,n.y_)()],g.prototype,"session",void 0),(0,s.Cg)([(0,n.y_)()],g.prototype,"broadbandService",void 0),(0,s.Cg)([(0,n.ox)("session.broadbandSubscription.id",{immediate:!0})],g.prototype,"fetchHardwareReturns",null);var v=g=(0,s.Cg)([(0,n.uA)({components:{IntroBlock:l.A,TrackHardwareReturn:p.A,BroadbandHardwareToReturn:o.A,WizardDoneSummary:c.A,IconWithText:r.A,WizardFooter:u.A,MvSection:d.A}})],g),f=(0,i(41618).A)(v,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.hardwareReturn?e("div",{staticClass:"terminateDone"},[e("WizardDoneSummary",[t.emailAddress?e("IconWithText",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],attrs:{iconUrl:"--icon-anchor-bg-url",text:t.$t("termination_done.you_will_still_receive_a_mail_on_{address}",{address:t.emailAddress})}}):t._e(),t.emailAddress?e("IconWithText",{attrs:{iconUrl:"--icon-surfboard-bg-url",text:t.$t("termination_done.your_internet_will_stop_working_soon")}}):t._e(),e("IconWithText",t.lastInvoiceDate?{attrs:{iconUrl:"--icon-message-in-a-bottle-bg-url",text:t.$t("termination_done.you_will_still_receive_an_invoice_on_{date}",{date:t.lastInvoiceDate})}}:{attrs:{iconUrl:"--icon-message-in-a-bottle-bg-url",text:t.$t("termination_done.you_will_still_receive_an_invoice_soon")}})],1),e("MvSection",{staticClass:"terminateDone__hardware return-hardware styleLevel1"},[e("IntroBlock",{attrs:{title:t.$t("terminate_bb_done.hardware_title"),titleTag:"h3",titleAppearance:"h4",description:t.$t("terminate_bb_done.hardware_desc")}}),e("BroadbandHardwareToReturn",{staticClass:"terminateDone__broadbandHardwareToReturn",attrs:{hardwareReturn:t.hardwareReturn}})],1),e("div",{staticClass:"terminateDone__trackTermination styleLevel1"},[e("TrackHardwareReturn",{attrs:{subscription:t.subscription,hardwareReturn:t.hardwareReturn},on:{"update:hardwareReturn":function(e){t.hardwareReturn=e},"update:hardware-return":function(e){t.hardwareReturn=e}}})],1),e("WizardFooter",{attrs:{onConfirm:t.goToFixedLinePage,ctaText:t.$t("request_swap_done.to_my_viking")}})],1):t._e()},[],!1,null,"8735d722",null).exports},79133:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return l}});var s=i(32198),a=i(67953),n=i(5669);class o extends a.lD{}var r=o=(0,s.Cg)([(0,a.uA)({components:{ContentPanel:n.A}})],o),l=(0,i(41618).A)(r,function(){var t=this._self._c;return this._self._setupProxy,t("ContentPanel",{staticClass:"underConstruction contentPanel-pattern19"},[t("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("broadband.this_feature_is_not_available_yet"),expression:"$t('broadband.this_feature_is_not_available_yet')"}]})])},[],!1,null,"142ea22c",null).exports},91132:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return p}});var s=i(32198),a=i(67953),n=i(42123),o=i(78098),r=i(78160),l=i(10231),d=i(3231);class c extends a.lD{navigateToProductsOverview(){this.$router.push({name:d.A.productsOverview})}}(0,s.Cg)([(0,a.y_)()],c.prototype,"session",void 0);var u=c=(0,s.Cg)([(0,a.uA)({components:{WizardFooter:l.A,WizardDoneSummary:r.A,IconWithText:o.A,MvForm:n.A}}
34)],c),p=(0,i(41618).A)(u,function(){var t=this._self._c;return this._self._setupProxy,t("MvForm",{staticClass:"broadbandCompensation"},[t("WizardDoneSummary",[t("IconWithText",{attrs:{iconUrl:"--icon-time-bg-url",text:this.$t("broadbandCompensation.good_to_know_1")}}),t("IconWithText",{attrs:{iconUrl:"--icon-scroll-bg-url",text:this.$t("broadbandCompensation.good_to_know_2")}}),t("IconWithText",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],attrs:{iconUrl:"--icon-message-in-a-bottle-bg-url",text:this.$t("broadbandCompensation.good_to_know_3",{email:this.session.profile.email})}})],1),t("WizardFooter",{attrs:{ctaText:this.$t("back_to_my_viking_no_html"),onConfirm:this.navigateToProductsOverview}})],1)},[],!1,null,"466d0812",null).exports},71025:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return y}});var s=i(32198),a=i(8921),n=i(67953),o=i(58249);class r extends n.lD{get uwaIbanValidationErrors(){return this.uwaValidationErrors?.iban?this.uwaValidationErrors.iban:[]}get uwaBicValidationErrors(){return this.uwaValidationErrors?.bic?this.uwaValidationErrors.bic:[]}created(){this.iban=this.value.iban,this.bic=this.value.bic}async handleOnBlur(){await this.generateBic(),await this.$validator.validate("iban")&&await this.$validator.validate("bic")&&this.$emit("input",{iban:this.iban,bic:this.bic})}async generateBic(){if(await this.$validator.validate("iban")){let t=this.ibanUtil.generateBic(this.iban);t&&(this.bic=t),this.bicNotFound=null===t}else this.bic=null,this.bicNotFound=!1}constructor(...t){super(...t),this.iban=null,this.bic=null,this.bicNotFound=!1}}(0,s.Cg)([(0,n.y_)()],r.prototype,"ibanUtil",void 0),(0,s.Cg)([(0,n.y_)()],r.prototype,"$validator",void 0),(0,s.Cg)([(0,n.kv)({required:!0})],r.prototype,"value",void 0),(0,s.Cg)([(0,n.kv)({required:!1,default:()=>{}})],r.prototype,"uwaValidationErrors",void 0);var l=r=(0,s.Cg)([(0,n.uA)({components:{Field:o.A}})],r),d=i(41618),c=(0,d.A)(l,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",[e("Field",{staticClass:"ibanField",attrs:{label:t.$t("add_payment_method.your_iban"),validationErrors:t.uwaIbanValidationErrors}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.iban,expression:"iban"},{name:"validate",rawName:"v-validate",value:"iban",expression:"'iban'"}],key:"sepa-iban",attrs:{required:"",type:"text",name:"iban",placeholder:"BE _ _ _ _ _ _ _ _ _ _ _ _ _ _"},domProps:{value:t.iban},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:e.target.blur()},blur:t.handleOnBlur,input:function(e){e.target.composing||(t.iban=e.target.value)}}})]),e("Field",{directives:[{name:"show",rawName:"v-show",value:t.bicNotFound,expression:"bicNotFound"}],staticClass:"bicField",attrs:{label:t.$t("add_payment_method.your_bic"),validationErrors:t.uwaBicValidationErrors}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.bic,expression:"bic"},{name:"validate",rawName:"v-validate",value:{required:!0,min:8},expression:"{ required: true, min: 8 }"}],key:"sepa-bic",attrs:{required:"",type:"text",name:"bic"},domProps:{value:t.bic},on:{blur:t.handleOnBlur,input:function(e){e.target.composing||(t.bic=e.target.value)}}})])],1)},[],!1,null,null,null).exports,u=i(42123),p=i(10231),h=i(93199),_=i(18569),m=i(66090),g=i(3231);class v extends n.lD{created(){this.fetchData()}async fetchData(){try{this.isLoading=!0;let t=await this.orderService.getOrderCompensation(this.orderId);if(!t){this.showError=!0;return}this.bankAccountInformation=t,this.showWizard=!0}catch{this.showError=!0}finally{this.isLoading=!1}}get bankAccountInformation(){return{bic:this.bic,iban:this.iban}}set bankAccountInformation(t){this.bic=t.bic,this.iban=t.iban}get goodToKnow(){return`<ul> 35 <li>${this.$t("broadbandCompensation.good_to_know_1")}</li> 36 <li>${this.$t("broadbandCompensation.good_to_know_2")}</li> 37 <li>${this.$t("broadbandCompensation.good_to_know_3",{email:this.session?.profile?.email})}</li> 38 </ul>`}navigateToProductsOverview(){this.$router.push({name:g.A.productsOverview})}navigateToDone(){this.$router.push({name:g.A.broadbandCompensationDone})}async confirmCompensationInfo(){if(await this.$validator.validateAll(),!this.errors.any())try{await this.orderService.updateOrderCompensation(this.orderId,this.bankAccountInformation),this.showWizard=!1,this.navigateToDone()}catch(e){let t=a.Ay.of(e);t.code===a.O4.NO_SUCH_COMPENSABLE_ORDER||t.code===a.O4.CLIENT_ERROR?(this.showError=!0,this.showWizard=!1):this.notifyGenericErrors(e)}}constructor(...t){super(...t),this.isLoading=!0,this.showError=!1,this.showWizard=!1,this.iban="",this.bic=""}}(0,s.Cg)([(0,n.y_)()],v.prototype,"session",void 0),(0,s.Cg)([(0,n.y_)()],v.prototype,"orderService",void 0),(0,s.Cg)([(0,n.kv)({required:!0})],v.prototype,"orderId",void 0);var f=v=(0,s.Cg)([(0,n.uA)({components:{BankAccountInformationField:c,WizardNotification:_.A,WizardFooter:p.A,WizardLoading:h.A,WizardStep:m.A,MvForm:u.A}})],v),y=(0,d.A)(f,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"BroadbandCompensation"},[t.isLoading?e("WizardLoading"):t._e(),t.showError?[e("WizardNotification",{attrs:{title:t.$t("broadbandCompensation.not_found_title"),description:t.$t("broadbandCompensation.not_found_description"),state:"failure"}}),e("WizardFooter",{attrs:{ctaText:t.$t("back_to_my_viking_no_html"),onConfirm:t.navigateToProductsOverview}})]:t._e(),t.showWizard?[e("WizardStep",{attrs:{hideNumber:!0,title:t.$t("good_to_know")}},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.goodToKnow,expression:"goodToKnow"}
38],staticClass:"wizardStep__paddedContent ExternalContent"})]),e("WizardStep",{attrs:{title:t.$t("broadbandCompensation.information"),hideNumber:""}},[e("div",{staticClass:"wizardStep__paddedContent CompensationForm"},[e("div",[e("label",[t._v(t._s(t.$t("field_first_name")))]),e("p",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}]},[t._v(t._s(t.session.profile.firstName))])]),e("div",[e("label",[t._v(t._s(t.$t("field_last_name")))]),e("p",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}]},[t._v(t._s(t.session.profile.lastName))])]),e("BankAccountInformationField",{model:{value:t.bankAccountInformation,callback:function(e){t.bankAccountInformation=e},expression:"bankAccountInformation"}})],1)]),e("WizardFooter",{attrs:{ctaText:t.$t("shared.confirm"),secCtaText:t.$t("back_to_my_viking_no_html"),onConfirm:t.confirmCompensationInfo},on:{reject:t.navigateToProductsOverview}})]:t._e()],2)},[],!1,null,"4fcd6230",null).exports},93563:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return p}});var s=i(32198),a=i(67953),n=i(78098),o=i(78160),r=i(10231),l=i(66090),d=i(3231);class c extends a.lD{handleOnConfirm(){this.$router.push({name:d.A.broadbandNetwork})}}(0,s.Cg)([(0,a.y_)()],c.prototype,"session",void 0);var u=c=(0,s.Cg)([(0,a.uA)({components:{WizardStep:l.A,WizardFooter:r.A,WizardDoneSummary:o.A,IconWithText:n.A}})],c),p=(0,i(41618).A)(u,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"OrderWifiBoosterDone"},[t("WizardDoneSummary",[t("IconWithText",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],attrs:{iconUrl:"--icon-message-in-a-bottle-bg-url",text:this.$t("order_wifi_booster_done.summary_bottle_message_{Email}__html",{Email:this.session.profile.email})}}),t("IconWithText",{attrs:{iconUrl:"--icon-box-bg-url",text:this.$t("order_wifi_booster_done.summary_box_message__html")}}),t("IconWithText",{attrs:{iconUrl:"--icon-scroll-bg-url",text:this.$t("order_wifi_booster_done.summary_scroll_message__html")}})],1),t("WizardStep",{attrs:{title:this.$t("order_wifi_booster_done.steps_title"),description:this.$t("order_wifi_booster_done.steps_description"),hideNumber:""}},[t("div",{staticClass:"wizardStep__paddedContent"},[t("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("order_wifi_booster_done.steps__html"),expression:"$t('order_wifi_booster_done.steps__html')"}]})])]),t("WizardFooter",{attrs:{onConfirm:this.handleOnConfirm,ctaText:this.$t("request_swap_done.to_my_viking")}})],1)},[],!1,null,"ac46c9be",null).exports},63566:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return b}});var s=i(32198),a=i(58294),n=i(8921),o=i(62765),r=i(67953),l=i(14806),d=i(58249),c=i(42123),u=i(711),p=i(76573),h=i(10231),_=i(66090),m=i(20020),g=i(3231);let v=(0,a.tZ)("OrderWifiBoosterForm");class f extends r.lD{validate(){return this.form.agreedToTos?{isValid:!0,action:()=>null}:{isValid:!1,action:()=>{this.notify.error("order_wifi_booster_form.term_of_services_not_accepted")}}}getValidationErrors(t){let e=this.uwaValidationErrors[t];return e?this.$tList(e,"validationError__"):[]}async verifyIfAllowedToOrder(){this.session?.broadbandSubscription?.moveToOrderId&&(v.info("Order a booster while moving."),this.notify.error("order_wifi_booster_form.cannot_order_booster_while_moving"),this.cancelRequest());let t=await this.subscriptionService.getLastBroadbandMigration(this.session.subscription);t&&await this.subscriptionService.blockMigrationBecauseOfPendingMigration(t)&&(v.info("Order a booster while having a migration pending."),this.notify.error("order_wifi_booster_form.cannot_order_booster_while_having_a_pending_migration"),this.cancelRequest())}async created(){this.loading=!0;try{await this.verifyIfAllowedToOrder();let t=await this.broadbandService.getBoosterById(this.boosterId);t||(v.info(`No boosters for given ID: ${this.boosterId}`),this.$router.push({name:g.A.broadbandNetwork})),this.booster=t}catch(t){v.error("Failed to load boosters",t),this.$router.push({name:g.A.error})}finally{this.loading=!1}}async confirmRequest(){if(!await this.$validator.validateAll())return;let t=this.validate();if(!t.isValid)return void t.action();try{await this.orderService.addBoosterOrder(this.form),await this.$router.push({name:g.A.broadbandOrderWifiBoosterDone})}catch(i){let t=n.Ay.of(i),e=(0,m.v)(t,[{code:n.O4.INVALID_VALUE,field:"password",on:"password",message:"password_incorrect"}]);this.uwaValidationErrors=e.result,e.firstIssue?(this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20)
38):t.code===n.O4.STUCK_BOOSTER_ORDER_PENDING?this.notify.error("order_wifi_booster_form.error__stuck_booster_order_pending"):t.code===n.O4.NOT_ALLOWED_BECAUSE_DUNNING?this.notify.error("order_wifi_booster_form.error__blocked_due_dunning"):(this.notifyGenericErrors(i),v.error("Failed to order booster",i))}}cancelRequest(){this.$router.push({name:g.A.broadbandNetwork})}get pricePerMonth(){return this.booster?`${this.$t("{amount}_per_month",{amount:(0,o.up)(this.booster.price*this.form.quantity,"two_if_significant")})}`:""}get legalDocumentCheckboxLabel(){return this.$t("order_wifi_booster_form.term_of_services_{TosUrl}_{PrivacyUrl}__html",{TosUrl:this.legalDocumentService.getTermsAndConditionsUrl(),PrivacyUrl:this.legalDocumentService.getPrivacyPolicyUrl()}).toString()}constructor(...t){super(...t),this.uwaValidationErrors={},this.form={subscriptionId:this.session.broadbandSubscription.id,productId:this.boosterId,password:"",quantity:1,agreedToTos:!1},this.booster=null,this.loading=!1}}(0,s.Cg)([(0,r.y_)()],f.prototype,"orderService",void 0),(0,s.Cg)([(0,r.y_)()],f.prototype,"broadbandService",void 0),(0,s.Cg)([(0,r.y_)()],f.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,r.y_)()],f.prototype,"session",void 0),(0,s.Cg)([(0,r.y_)()],f.prototype,"legalDocumentService",void 0),(0,s.Cg)([(0,r.y_)()],f.prototype,"domUtils",void 0),(0,s.Cg)([(0,r.y_)()],f.prototype,"$validator",void 0),(0,s.Cg)([(0,r.y_)()],f.prototype,"stepupMode",void 0),(0,s.Cg)([(0,r.kv)({required:!0})],f.prototype,"boosterId",void 0);var y=f=(0,s.Cg)([(0,r.uA)({components:{Checkbox:l.A,IncreaseDecreaseField:u.A,WizardFooter:h.A,Password:p.A,Field:d.A,WizardStep:_.A,MvForm:c.A}})],f),b=(0,i(41618).A)(y,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"OrderWifiBoosterForm",attrs:{name:"OrderWifiBoosterForm"}},[e("WizardStep",{attrs:{title:t.$t("order_wifi_booster_form.good_to_know_title"),hideNumber:!0}},[e("div",{staticClass:"wizardStep__paddedContent ExternalContent"},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("order_wifi_booster_form.good_to_know__description__html"),expression:"$t('order_wifi_booster_form.good_to_know__description__html')"}]})])]),e("WizardStep",{attrs:{title:t.$t("order_wifi_booster_form.amount_of_boosters__title"),description:t.$t("order_wifi_booster_form.amount_of_boosters__description")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("div",{staticClass:"OrderWifiBoosterForm__amountSelector"},[e("IncreaseDecreaseField",{attrs:{title:t.$t("order_wifi_booster_form.amount_of_boosters__label"),name:"IncreaseDecreaseField",minValue:1,maxValue:5,maxAmountHint:t.$t("order_wifi_booster_form.max_value_hint_label"),required:""},model:{value:t.form.quantity,callback:function(e){t.$set(t.form,"quantity",e)},expression:"form.quantity"}}),e("div",{staticClass:"OrderWifiBoosterForm__amountSelector_monthly"},[e("span",[t._v(t._s(t.pricePerMonth))])])],1)])]),"password"===t.stepupMode?e("WizardStep",{attrs:{title:t.$t("order_wifi_booster_form.enter_password__title"),description:t.$t("order_wifi_booster_form.enter_password__description")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("Field",{attrs:{label:t.$t("password"),validationErrors:t.getValidationErrors("password")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"password",required:"","data-vv-as":t.$t("password")},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1)],1)]):t._e(),e("WizardFooter",{attrs:{loading:t.loading,ctaText:"password"===t.stepupMode?t.$t("order_wifi_booster_form.confirm_request"):t.$t("order_wifi_booster_form.confirm_request_with_step_up"),onConfirm:t.confirmRequest,secCtaText:t.$t("order_wifi_booster_form.cancel_request")},on:{reject:t.cancelRequest},scopedSlots:t._u([{key:"legalChecks",fn:function(){return[e("Checkbox",{attrs:{"data-qa":"order-wifi-booster-form-tos",label:t.legalDocumentCheckboxLabel},model:{value:t.form.agreedToTos,callback:function(e){t.$set(t.form,"agreedToTos",e)},expression:"form.agreedToTos"}})]},proxy:!0}])})],1)},[],!1,null,"e4f10b04",null).exports}
38,89844:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return m}});var s=i(32198),a=i(67953),n=i(21076),o=i(78098),r=i(28759),l=i(56562),d=i(78160),c=i(10231),u=i(29637),p=i(3231);class h extends a.lD{async fetchHardwareReturns(){let t=await this.broadbandService.getHardwareReturnInfo(this.session.broadbandSubscription);this.hardwareReturn=t.find(t=>"open"===t.state||"ready_for_shipping"===t.state)||null}get subscription(){return this.session.broadbandSubscription}navigateToMyViking(){this.$router.push({name:p.A.broadbandNetwork})}constructor(...t){super(...t),this.hardwareReturn=null}}(0,s.Cg)([(0,a.y_)()],h.prototype,"session",void 0),(0,s.Cg)([(0,a.y_)()],h.prototype,"broadbandService",void 0),(0,s.Cg)([(0,a.ox)("session.broadbandSubscription.id",{immediate:!0})],h.prototype,"fetchHardwareReturns",null);var _=h=(0,s.Cg)([(0,a.uA)({components:{BroadbandHardwareToReturn:n.A,IntroBlock:r.A,MvSection:l.A,TrackHardwareReturn:u.A,WizardFooter:c.A,WizardDoneSummary:d.A,IconWithText:o.A}})],h),m=(0,i(41618).A)(_,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"TerminateWifiBoosterDone"},[e("WizardDoneSummary",[e("IconWithText",{attrs:{iconUrl:"--icon-message-in-a-bottle-bg-url",text:t.$t("terminate_wifi_booster_done.summary_bottle_message__html")}}),e("IconWithText",{attrs:{iconUrl:"--icon-box-bg-url",text:t.$t("terminate_wifi_booster_done.summary_box_message__html")}}),e("IconWithText",{attrs:{iconUrl:"--icon-scroll-bg-url",text:t.$t("terminate_wifi_booster_done.summary_scroll_message__html")}})],1),e("MvSection",{staticClass:"TerminateWifiBoosterDone__hardware return-hardware styleLevel1"},[e("IntroBlock",{attrs:{title:t.$t("terminate_wifi_booster_done.hardware_title"),titleTag:"h3",titleAppearance:"h4",description:t.$t("terminate_wifi_booster_done.hardware_desc")}}),e("BroadbandHardwareToReturn",{staticClass:"TerminateWifiBoosterDone__broadbandHardwareToReturn",attrs:{hardwareReturn:t.hardwareReturn}})],1),e("div",{staticClass:"TerminateWifiBoosterDone__trackTermination styleLevel1"},[e("TrackHardwareReturn",{attrs:{subscription:t.subscription,hardwareReturn:t.hardwareReturn},on:{"update:hardwareReturn":function(e){t.hardwareReturn=e},"update:hardware-return":function(e){t.hardwareReturn=e}}})],1),e("WizardFooter",{attrs:{onConfirm:t.navigateToMyViking,ctaText:t.$t("request_swap_done.to_my_viking")}})],1)},[],!1,null,"25bd58d6",null).exports},16078:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return y}});var s=i(32198),a=i(58294),n=i(8921),o=i(67953),r=i(58249),l=i(42123),d=i(711),c=i(76573),u=i(10231),p=i(66090),h=i(2691),_=i(20020),m=i(3231);let g=(0,a.tZ)("TerminateWifiBoosterForm");class v extends o.lD{async mounted(){await this.fetchMaxReturnableBoosterCount()}get boosterProduct(){return this.session.broadbandSubscription?.wifiBoosters.find(t=>t.product.variant===this.$route.query.variant)?.product}async fetchMaxReturnableBoosterCount(){if(!this.boosterProduct)return;let t=new Set((await this.broadbandService.getHardwareReturnInfo(this.session.broadbandSubscription)).reduce((t,e)=>Array.isArray(e.items)?t.concat(e.items.map(t=>t.subscriptionId)):t,[])),e=this.session.broadbandSubscription?.wifiBoosters.filter(e=>"enabled"===e.state&&e.product.id===this.boosterProduct?.id&&!t.has(e.id))??[];this.maxReturnableBoosterCount=e.length}async submitForm(){if(await this.$validator.validateAll())try{let t=(await this.broadbandService.getHardwareReturnInfo(this.session.broadbandSubscription)).find(t=>"open"===t.state),e=(0,h.HM)(this.boosterProduct),{rejected:i}=await this.broadbandService.terminateWifiBoosters(this.session.broadbandSubscription,this.form.quantity,this.form.password);if(i.length>0)throw i[0].error;let s=t?.items?.filter(t=>t.type===e).length??0,a=this.form.quantity+s;await this.poll(()=>this.broadbandService.getHardwareReturnInfo(this.session.broadbandSubscription),t=>{let i=t?.find(t=>"open"===t.state);return!!i&&i.items.filter(t=>t.type===e).length===a},1e3,6e4,"Wait until all booster termination orders have been processed"),await this.$router.push({name:m.A.broadbandTerminateWifiBoosterDone})}catch(i){let t=n.Ay.of(i),e=(0,_.v)(t,[{code:n.O4.INVALID_VALUE,field:"password",on:"password",message:"password_incorrect"}]);this.uwaValidationErrors=e.result,e.firstIssue?(this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20)
38):(this.notifyGenericErrors(i),g.error("Failed to terminate booster",i))}finally{await this.authService.refreshSession()}}getValidationErrors(t){let e=this.uwaValidationErrors[t];return e?this.$tList(e,"validationError__"):[]}cancelRequest(){this.$router.push({name:m.A.broadbandNetwork})}constructor(...t){super(...t),this.uwaValidationErrors={},this.form={quantity:1,password:""},this.maxReturnableBoosterCount=0}}(0,s.Cg)([(0,o.y_)()],v.prototype,"session",void 0),(0,s.Cg)([(0,o.y_)()],v.prototype,"broadbandService",void 0),(0,s.Cg)([(0,o.y_)()],v.prototype,"uwa",void 0),(0,s.Cg)([(0,o.y_)()],v.prototype,"authService",void 0),(0,s.Cg)([(0,o.y_)()],v.prototype,"domUtils",void 0),(0,s.Cg)([(0,o.y_)()],v.prototype,"poll",void 0),(0,s.Cg)([(0,o.y_)()],v.prototype,"stepupMode",void 0);var f=v=(0,s.Cg)([(0,o.uA)({components:{MvForm:l.A,Field:r.A,Password:c.A,WizardStep:p.A,WizardFooter:u.A,IncreaseDecreaseField:d.A}})],v),y=(0,i(41618).A)(f,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"TerminateWifiBoosterForm",attrs:{name:"TerminateWifiBoosterForm"}},[e("WizardStep",{attrs:{title:t.$t("terminate_wifi_booster.good_to_know_title"),hideNumber:!0}},[e("div",{staticClass:"wizardStep__paddedContent ExternalContent"},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("terminate_wifi_booster.good_to_know__description__html"),expression:"$t('terminate_wifi_booster.good_to_know__description__html')"}]})])]),e("WizardStep",{attrs:{title:t.$t("terminate_wifi_booster.amount_of_boosters__title"),description:t.$t("terminate_wifi_booster.amount_of_boosters__description")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("div",{staticClass:"TerminateWifiBoosterForm__amountSelector"},[e("IncreaseDecreaseField",{attrs:{title:t.$t("terminate_wifi_booster.amount_of_boosters__label"),name:"IncreaseDecreaseField",minValue:1,maxValue:t.maxReturnableBoosterCount,required:""},model:{value:t.form.quantity,callback:function(e){t.$set(t.form,"quantity",e)},expression:"form.quantity"}})],1)])]),"password"===t.stepupMode?e("WizardStep",{attrs:{title:t.$t("terminate_wifi_booster.enter_password__title"),description:t.$t("terminate_wifi_booster.enter_password__description")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("Field",{attrs:{label:t.$t("password"),validationErrors:t.getValidationErrors("password")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"password",required:"","data-vv-as":t.$t("password")},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1)],1)]):t._e(),e("WizardFooter",{attrs:{ctaText:"password"===t.stepupMode?t.$t("terminate_wifi_booster.confirm_request"):t.$t("terminate_wifi_booster.confirm_request_with_step_up"),onConfirm:t.submitForm,secCtaText:t.$t("terminate_wifi_booster.cancel_request")},on:{reject:t.cancelRequest}})],1)},[],!1,null,"3c57a2f8",null).exports},59336:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return m}});var s=i(32198),a=i(58294),n=i(8921),o=i(44739),r=i(67953),l=i(71175),d=i(40780),c=i(90271),u=i(3231);let p=(0,a.tZ)("Login");class h extends r.lD{get useDescopeLogin(){return(0,c.ji)(this.config)}mounted(){this.loginPromise=new o.Zv,this.originalHandler=this.authService.setLoginHandler(()=>this.loginPromise.promise),this.navigateAfterLogin()}async navigateAfterLogin(){try{await this.authService.requireLogin(),this.loginPromise.resolve(),this.navigate()}catch(t){p.error("Failed to navigate after login",t)}}beforeDestroy(){this.authService.setLoginHandler(this.originalHandler),this.loginPromise.reject(new n.Ay(n.O4.LOGIN_ABORTED))}onLogin(){this.loginPromise.resolve()}navigate(){if("continue"===this.next)this.$router.go(-1);else{let t=this.sanitizeNext(this.next);t?this.$router.push({path:t}):this.$router.push({name:this.defaultRouteName})}}sanitizeNext(t){let e;if(!t||"string"!=typeof t)return null;try{e=new URL(t,window.location.origin)}catch{return null}if(e.origin!==window.location.origin)return null;let i=`${e.pathname}${e.search}${e.hash}`,s=this.$router.resolve({path:i}).route;return this.isResolvedNextAllowed(s)?i:null}isResolvedNextAllowed(t){if(!t.matched.length)return!1;let e=t.matched[t.matched.length-1];if(e?.meta?.serverSideRouting||e?.path==="*")return!1;let i=this.$router.getMatchedComponents(t);if(!i.length)return!1;let s=i[i.length-1];return s&&"NotFoundView"!==s.name}}(0,s.Cg)([(0,r.kv)()],h.prototype,"next",void 0),(0,s.Cg)([(0,r.kv)({required:!0,default:u.A.myViking})],h.prototype,"defaultRouteName",void 0),(0,s.Cg)([(0,r.kv)({required:!1,default:!0})],h.prototype,"mentionPhoneNumberLogin",void 0),(0,s.Cg)([(0,r.y_)()],h.prototype,"authService",void 0),(0,s.Cg)([(0,r.y_)()],h.prototype,"config",void 0);var _=h=(0,s.Cg)([(0,r.uA)({components:{LoginPanel:d.A,DescopeLoginPanel:l.A}})],h),m=(0,i(41618).A)(_,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.useDescopeLogin?e("DescopeLoginPanel",{on:{login:function(e){return t.onLogin()}}}):e("LoginPanel",{attrs:{mentionPhoneNumberLogin:t.mentionPhoneNumberLogin},on:{login:function(e){return t.onLogin()}}})},[],!1,null,null,null).exports}
38,17957:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return D}});var s=i(32198),a=i(58294),n=i(81033),o=i(1122),r=i(70180),l=i(57399),d=i(62765),c=i(34313),u=i(94182),p=i(44739),h=i(50870),_=i(67953),m=i(11774),g=i(24176),v=i(28687),f=i(78098),y=i(28759),b=i(99679),C=i(98073),w=i(78160),S=i(10231),M=i(93199),A=i(66090),k=i(78906),I=i(3231);let x=(0,a.tZ)("MigrateMobileDoneView");class N extends _.lD{async created(){try{if(this.loading=!0,this.migration=await this.loadMigration(),!this.migration)return void this.goTo(this.$router.resolve({name:I.A.sims}));await this.waitForTopupPayment(),"waiting_for_payment"===this.migration.state&&await this.payMigration(this.migration),n.nv.includes(this.migration.state)||"postpaid"!==this.migration.fromType||"bundle_expired"!==this.migration.condition||(this.bundleExpiryDate=await this.getBundleExpiryDate()),this.loading=!1,"start_clan"===this.intent&&this.goToStartClan(),"join_clan"===this.intent&&this.goToJoinedClan()}catch(t){x.error("failed to load migration",t),this.goToError()}}cancel(){this.goTo(this.$router.resolve({name:I.A.sims}))}submit(){this.$router.push({name:I.A.migrate,params:{toType:this.toType,subscriptionId:this.subscriptionId}})}goToSimPage(){this.$router.push({name:I.A.sims})}get paymentMethodsSpcRedirectUrl(){return this.absoluteUrl(this.$router.resolve({name:I.A.paymentMethods,query:{spc:"payment-method"}}).href)}get autoTopupSpcRedirectUrl(){return this.absoluteUrl(this.$router.resolve({name:I.A.paymentMethods,query:{spc:"auto-topup"}}).href)}async payMigration(t){x.debug("Order not yet paid. Paying...");let e=this.$router.resolve({name:I.A.migrateDone,params:{subscriptionId:t.subscriptionId,toType:this.toType},query:{order:t.id}}).href,i=await this.orderService.payOrder(t,e);return x.info(`Order not yet paid. redirecting to ${i}`),this.goTo(i),(0,p.i4)()}updateTitle(){this.migration&&(n.nv.includes(this.migration.state)?(this.titleService.pageTitle=this.$t("MigrateDone.migration_failed_title").toString(),this.titleService.pageDescription=this.$t("MigrateDone.migration_failed_subtitle").toString()):"waiting_for_payment"===this.migration.state?(this.titleService.pageTitle=this.$t("MigrateDone.migration_processing").toString(),this.titleService.pageDescription=this.$t("MigrateDone.migration_processing_subtitle").toString()):("now"===this.migration.condition?this.titleService.pageTitle=this.$t(`MigrateDone.migration_from_${this.migration.fromType}_title`).toString():this.titleService.pageTitle=this.$t(`MigrateDone.migration_from_${this.migration.fromType}_scheduled_title`).toString(),this.titleService.pageDescription=this.$t("MigrateDone.migration_subtitle").toString()))}async loadMigration(){if(!this.orderId)return this.goTo(this.$router.resolve({name:I.A.sims})),null;let t=await this.uwa.getMobileMigration(this.subscription,this.orderId,this.topupOrderId||void 0);return t||(this.goTo(this.$router.resolve({name:I.A.sims})),null)}async waitForTopupPayment(){if(this.migration?.topup?.state!=="waiting_for_payment")return;let t=await this.poll(()=>this.loadMigration(),t=>!t||t.topup?.state!=="waiting_for_payment",1e3,6e4,"payment to complete");this.migration=t}async goToStartClan(){try{this.migration=await this.poll(this.loadMigration.bind(this),t=>!!t&&"enabled"===t.state,1e3,6e4,"Wait for migration to complete before starting a clan"),this.$router.push({name:I.A.simSettings,query:{spc:(0,h.n)("clan")}}),localStorage.removeItem("clanReference"),this.notify.success("MigrateDone.migration_complete__now_you_can_start_your_clan")}catch(t){x.error("Failed to poll for migration to complete",t)}}async goToJoinedClan(){try{this.migration=await this.poll(this.loadMigration.bind(this),t=>!!t&&"enabled"===t.state,1e3,6e4,"Wait for migration to complete before joining a clan"),this.$router.push({name:I.A.simSettings,query:{spc:(0,h.n)("clan")}}),localStorage.removeItem("clanReference"),this.notify.success("MigrateDone.migration_complete__now_you_can_see_your_clan")}catch(t){x.error("Failed to poll for migration to complete",t)}}async getBundleExpiryDate(){let t=await this.uwa.getBalance(this.subscription.id),e=t&&t.bundleExpiryDate||null;return e?(0,r.Yq)(e):null}get subscription(){let t=(0,k._w)(this.session.mobileSubscriptions);return(0,k._w)(t.find(t=>
38t.id===this.subscriptionId),`Subscription by id not found ${this.subscriptionId}`)}get migrationWhenDescription(){if(!this.migration)return"";let t={msisdn:(0,l.i)(this.subscription.msisdn),alias:this.subscription.alias},e=this.migration.condition;if("bundle_expired"===e&&null===this.bundleExpiryDate&&(e="now"),"postpaid"===this.migration.fromType&&"postpaid"===this.migration.toType)switch(e){case"now":return this.$t("MigrateDone.your_sim_{msisdn}_{alias}_will_switched_to_the_new_plan_soon",t).toString();case"bundle_expired":return this.$t("MigrateDone.your_sim_{msisdn}_{alias}_switched_to_the_new_plan_when_your_bundle_expires_at_{bundleExpiryDate}",{...t,bundleExpiryDate:this.bundleExpiryDate}).toString();case"credit_low":return this.$t("MigrateDone.your_sim_{msisdn}_{alias}_will_be_switched_to_the_new_plan_when_credit_goes_below_{creditThreshold}",{...t,creditThreshold:this.creditThreshold}).toString();default:return""}switch(e){case"now":return this.$t(`MigrateDone.your_sim_{msisdn}_{alias}_will_be_migrated_to_${this.migration.toType}_soon`,{...t}).toString();case"bundle_expired":return this.$t(`MigrateDone.your_sim_{msisdn}_{alias}_will_be_migrated_to_${this.migration.toType}_when_your_bundle_expires_at_{bundleExpiryDate}`,{...t,bundleExpiryDate:this.bundleExpiryDate}).toString();case"credit_low":return this.$t(`MigrateDone.your_sim_{msisdn}_{alias}_will_be_migrated_to_${this.migration.toType}_when_credit_goes_below_{creditThreshold}`,{...t,creditThreshold:this.creditThreshold}).toString();default:return""}}get faqCategory(){return this.migration?"prepaid"===this.migration.fromType&&"postpaid"===this.migration.toType?"mv-pre2post":"prepaid"===this.migration.fromType&&"data-only"===this.migration.toType?"mv-pre2do":"postpaid"===this.migration.fromType&&"prepaid"===this.migration.toType?"mv-post2pre":"postpaid"===this.migration.fromType&&"data-only"===this.migration.toType?"mv-post2do":"postpaid"===this.migration.fromType&&"postpaid"===this.migration.toType?"mv-post2post":"data-only"===this.migration.fromType&&"postpaid"===this.migration.toType?"mv-do2post":"data-only"===this.migration.fromType&&"prepaid"===this.migration.toType?"mv-do2pre":"migration":null}get specs(){let t=this.$t.bind(this);if(!this.migration)return"";let e=this.$t("calling"),i=this.$t("data");if((0,o.s1)(this.migration.toProduct))return s(this.migration.toProduct.type,this.migration.toProduct.monthly,this.migration.toProduct.definitions.bundles,(0,o.hX)(this.migration.toProduct));if(this.migration.toTopup&&"cancelled"===this.topupFailure)return this.$t("migrate_done.you_will_need_to_topup_because_cancelled").toString();if(this.migration.toTopup&&"failed"===this.topupFailure)return this.$t("migrate_done.you_will_need_to_topup_because_failed").toString();if(this.migration.toTopup)return s(this.migration.toProduct.type,this.migration.toTopup.price,this.migration.toTopup.definitions.bundles);return"";function s(a,n,o,r=!1){let l=[],p=(0,d.up)(n,"two_if_significant");return o.voice&&l.push(`${(0,c.f3)(o.voice,t)} ${e}`),o.sms&&l.push(`${(0,u.DT)(o.sms,t)}`),o.data&&l.push(`${(0,u._c)(r?1/0:o.data,t)} ${i}`),"postpaid"===a?`${p} - ${l.join(" + ")}`:`${p} + ${l.join(" + ")}`}}get error(){return!!this.migration&&n.nv.includes(this.migration.state)}get warningMessage(){return this.migration?"failed"===this.migration.state?this.$t("MigrateDone.error_order_failed").toString():"cancelled"===this.migration.state?this.$t("MigrateDone.error_order_cancelled").toString():"review_needed"===this.migration.state?this.$t("MigrateDone.error_order_review_needed").toString():null:null}get primaryCtaText(){return this.migration&&"review_needed"!==this.migration.state?this.$t("MigrateDone.error_try_again_cta").toString():""}get topupFailure(){return this.migration&&(0,h.n)(["cancelled","failed"]).includes(this.migration.topup?.state)?this.migration.topup?.state:null}async trackMigrationState(){await this.$nextTick(),this.error?this.track("fail"):this.track("success")}track(t){if(this.migration){let e=this.migration.payment?.method,i=null;e&&(i=e.length>0?e[0]:null),this.trackingService.updateMigration(t,this.migration.toProduct,this.subscription.product,i,this.migration.condition,this.session.company,this.session.mobileSubscription.employerLink)}else this.trackingService.updateMigration(t,null,null,null,null,void 0,null)}constructor(...t){super(...t),this.loading=!1,this.migration=null,this.RouteName=I.A,this.creditThreshold=(0,d.up)(2.5,"always_two"),this.bundleExpiryDate=null}}(0,s.Cg)([(0,_.kv)()],N.prototype,"orderId",void 0),(0,s.Cg)([(0,_.kv)({default:null})],N.prototype,"topupOrderId",void 0),(0,s.Cg)([(0,_.kv)()],N.prototype,"subscriptionId",void 0),(0,s.Cg)([(0,_.kv)()],N.prototype,"toType",void 0),(0,s.Cg)([(0,_.kv)()],N.prototype,"intent",void 0),(0,s.Cg)([(0,_.y_)()],N.prototype,"session",void 0),(0,s.Cg)([(0,_.y_)()],N.prototype,"orderService",void 0),(0,s.Cg)([(0,_.y_)()],N.prototype,"uwa",void 0),(0,s.Cg)([(0,_.y_)()],N.prototype,"goTo",void 0),(0,s.Cg)([(0,_.y_)()],N.prototype,"goToError",void 0),(0,s.Cg)([(0,_.y_)()],N.prototype,"titleService",void 0),(0,s.Cg)([(0,_.y_)()],N.prototype,"trackingService",void 0),(0,s.Cg)([(0,_.y_)()],N.prototype,"poll",void 0),(0,s.Cg)([(0,_.y_)()],N.prototype,"absoluteUrl",void 0),(0,s.Cg)([(0,_.ox)("migration"),(0,_.ox)("locale")],N.prototype,"updateTitle",null),(0,s.Cg)([(0,_.ox)("migration")],N.prototype,"trackMigrationState",null);var T=N=(0,s.Cg)([(0,_.uA)({components:{CallToAction:g.A,WizardLoading:M.A,WizardStep:A.A,Icon:v.A,IconWithText:f.A,InlineNotification:b.A,WizardDoneSummary:w.A,DealsAdvert:m.A,FaqSectionWizard:C.A,WizardFooter:S.A,IntroBlock:y.A}})],N),D=(0,i(41618).A)(T,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"MigrateMobileDone"},[this.loading?t("WizardLoading"):this._e(),this.loading||this.error?this._e():t("div",{staticClass:"MigrateMobileDone__success"},["start_clan"===this.intent?[this.migration&&"enabled"!==this.migration.state?t("WizardLoading",{staticClass:"MigrateMobileDone-startYourClan",attrs:{message:this.$t("MigrateDone.you_can_start_your_clan_as_soon_as_your_migration_is_complete")}}):t("WizardStep",[t("div",{staticClass:"wizardStep__paddedContent"},[this._v(" "+this._s(this.$t("MigrateDone.migration_complete__now_you_can_start_your_clan"))+" ")])])]:this._e(),t("WizardDoneSummary",{staticClass:"MigrateMobileDone-nextSteps"},[t("IconWithText",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],staticClass:"MigrateMobileDone-nextStepWhen",attrs:{iconUrl:"--icon-simcard-bg-url",text:this.migrationWhenDescription}}),t("IconWithText",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],staticClass:"MigrateMobileDone-nextStepContact",attrs:{iconUrl:"--icon-anchor-bg
38-url",text:this.$t("MigrateDone.confirm_mail_sent_to_{email}",{email:this.session.profile.email})}}),t("IconWithText",{staticClass:"MigrateMobileDone-nextStepCurrent",attrs:{iconUrl:"--icon-compass-bg-url",text:this.$t(`MigrateDone.until_then_it_stays_active_as_${this.migration.fromType}`)}}),t("IconWithText",{staticClass:"MigrateMobileDone-nextStepSpecs",attrs:{iconUrl:"--icon-bag-bg-url",text:this.$t(`MigrateDone.after_then_we_will_activate_${this.migration.toType}_{specs}`,{specs:this.specs})}})],1),this.faqCategory?t("FaqSectionWizard",{attrs:{faqCategory:this.faqCategory}}):this._e(),"prepaid"===this.migration.toType?t("WizardStep",{staticClass:"MigrateMobileDone-setAutoTopup MigrateMobileDoneSetPaymentMethodOrTopup"},[t("div",{staticClass:"wizardStep__paddedContent MigrateMobileDoneSetPaymentMethodOrTopup__container"},[t("div",[t("IntroBlock",{staticClass:"MigrateMobileDoneSetPaymentMethodOrTopup__intro",attrs:{title:this.$t("MigrateDone.set_auto_topup_title"),titleTag:"h2",titleAppearance:"h3"}}),t("CallToAction",{staticClass:"MigrateMobileDoneSetPaymentMethodOrTopup__cta",attrs:{href:this.autoTopupSpcRedirectUrl}},[this._v(" "+this._s(this.$t("MigrateDone.set_auto_topup_cta"))+" ")])],1),t("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("MigrateDone.set_auto_topup_instructions"),expression:"$t('MigrateDone.set_auto_topup_instructions')"}],staticClass:"MigrateMobileDoneSetPaymentMethodOrTopup__instructions"}),t("CallToAction",{staticClass:"MigrateMobileDoneSetPaymentMethodOrTopup__cta MigrateMobileDoneSetPaymentMethodOrTopup__cta--mobile",attrs:{href:this.autoTopupSpcRedirectUrl}},[this._v(" "+this._s(this.$t("MigrateDone.set_auto_topup_cta"))+" ")])],1)]):this._e(),"postpaid"===this.migration.toType&&"prepaid"===this.migration.fromType?t("WizardStep",{staticClass:"MigrateMobileDoneSetPaymentMethodOrTopup MigrateMobileDone-setPaymentMethod"},[t("div",{staticClass:"wizardStep__paddedContent MigrateMobileDoneSetPaymentMethodOrTopup__container"},[t("div",[t("IntroBlock",{staticClass:"MigrateMobileDoneSetPaymentMethodOrTopup__intro",attrs:{title:this.$t("MigrateDone.set_payment_method_title"),titleTag:"h2",titleAppearance:"h3"}}),t("CallToAction",{staticClass:"MigrateMobileDoneSetPaymentMethodOrTopup__cta",attrs:{href:this.paymentMethodsSpcRedirectUrl}},[this._v(" "+this._s(this.$t("MigrateDone.set_payment_method_cta"))+" ")])],1),t("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("MigrateDone.set_payment_method_instructions"),expression:"$t('MigrateDone.set_payment_method_instructions')"}],staticClass:"MigrateMobileDoneSetPaymentMethodOrTopup__instructions"}),t("CallToAction",{staticClass:"MigrateMobileDoneSetPaymentMethodOrTopup__cta MigrateMobileDoneSetPaymentMethodOrTopup__cta--mobile",attrs:{href:this.paymentMethodsSpcRedirectUrl}},[this._v(" "+this._s(this.$t("MigrateDone.set_payment_method_cta"))+" ")])],1)]):this._e(),"postpaid"===this.migration.toType&&"postpaid"===this.migration.fromType?t("DealsAdvert"):this._e(),t("WizardFooter",{staticClass:"MigrateMobileDone-toMyViking",attrs:{ctaText:this.$t("MigrateDone.to_my_viking"),onConfirm:this.goToSimPage}})],2),!this.loading&&this.error?[this.warningMessage?t("InlineNotification",{staticClass:"MigrateMobileDone__warning",attrs:{notificationType:"warning"}},[t("div",{staticClass:"MigrateMobileDoneNotification"},[t("Icon",{staticClass:"MigrateMobileDoneNotification__icon",attrs:{iconUrl:i(86108)}}),this._v(" "+this._s(this.warningMessage)+" ")],1)]):this._e(),t("WizardFooter",{attrs:{ctaText:this.primaryCtaText,secCtaText:this.$t("MigrateDone.back_to_my_viking"),onConfirm:this.submit},on:{reject:this.cancel}})]:this._e()],2)},[],!1,null,"7c318058",null).exports},25965:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return g}});var s=i(32198),a=i(58294),n=i(8921),o=i(67953),r=i(24176),l=i(58249),d=i(42123),c=i(76573),u=i(20020),p=i(3231);let h=(0,a.tZ)("ChooseNewPasswordView");class _ extends o.lD{created(){let t=this.$route;this.resetCode=t.query.token||""}get passwordsMatch(){return!this.fields.password||!this.fields.repeatedPassword||!this.fields.password.dirty||!this.fields.repeatedPassword.dirty||this.password===this.repeatedPassword}passwordBlurred(){this.passwordsAreFocused=!1,delete this.uwaValidationErrors.password}async performResetPassword(){this.notify.clear(),h.info("Performing new password set...");try{if(!await this.$validator.validateAll()||!this.passwordsMatch)return;await this.uwa.performPasswordReset(this.resetCode||"",this.password),h.info("New password has been set"),this.notify.success("choose_new_password.password_was_change_you_can_login_again"),"my-business"===this.site.context?this.$router.push({name:p.A.b2bLogin}):this.$router.push({name:p.A.login})}catch(i){let t=n.Ay.of(i),e=(0,u.v)(t,[{code:n.O4.PASSWORD_TOO_COMMON,field:"password",on:"password",message:"password_too_common"},{code:n.O4.PASSWORD_EXPOSED_IN_DATA_BREACH,field:"password",on:"password",message:"password_exposed_in_data_breach"},{code:n.O4.PASSWORD_ENTIRELY_NUMERIC,field:"password",on:"password",message:"password_rules"}]);this.uwaValidationErrors=e.result,e.firstIssue?e.firstIssue.code===n.O4.PASSWORD_EXPOSED_IN_DATA_BREACH&&this.notify.error("newly_entered_password_exposed_in_data_breach"):t.code===n.O4.INVALID_TOKEN||t.code===n.O4.INVALID_FIELDS&&t.fieldCodes("code").includes(n.O4.REQUIRED)?this.notify.error("invalid_password_reset_token"):(h.error("Setting new password failed",i),this.notifyGenericErrors(i))}}constructor(...t){super(...t),this.password="",this.repeatedPassword="",this.passwordsAreFocused=!1,this.resetCode="",this.uwaValidationErrors={}}
38}(0,s.Cg)([(0,o.y_)()],_.prototype,"uwa",void 0),(0,s.Cg)([(0,o.y_)()],_.prototype,"site",void 0);var m=_=(0,s.Cg)([(0,o.uA)({components:{Field:l.A,Password:c.A,CallToAction:r.A,MvForm:d.A}})],_),g=(0,i(41618).A)(m,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("section",{staticClass:"ChooseNewPasswordView"},[e("MvForm",{staticClass:"ResetPasswordForm",attrs:{name:"resetPassword"}},[e("h2",{staticClass:"ResetPasswordForm__title"},[t._v(t._s(t.$t("choose_new_password.title")))]),e("Field",{staticClass:"ResetPasswordForm__password",attrs:{label:t.$t("field_password"),validationErrors:t.$tList(t.uwaValidationErrors.password,"validationError__")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0,min:8},expression:"{ required: true, min: 8 }"}],attrs:{name:"password","data-vv-as":t.$t("field_password"),required:""},on:{focus:function(e){t.passwordsAreFocused=!0},blur:function(e){return t.passwordBlurred()}},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}}),t.passwordsAreFocused||t.passwordsMatch?t._e():e("div",{staticClass:"validation-message"},[t._v(" "+t._s(t.$t("validationError__passwords_should_match"))+" ")])],1),e("Field",{staticClass:"ResetPasswordForm__repeatPassword",attrs:{label:t.$t("field_password_repeat")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0,min:8},expression:"{ required: true, min: 8 }"}],attrs:{name:"repeatedPassword","data-vv-as":t.$t("field_password_repeat"),required:""},on:{focus:function(e){t.passwordsAreFocused=!0},blur:function(e){t.passwordsAreFocused=!1}},model:{value:t.repeatedPassword,callback:function(e){t.repeatedPassword=e},expression:"repeatedPassword"}})],1),e("footer",[e("CallToAction",{staticClass:"ResetPasswordForm__cta",attrs:{once:t.performResetPassword,type:"submit","data-qa":"save-new-password"}},[t._v(" "+t._s(t.$t("choose_new_password.save"))+" ")])],1)],1)],1)},[],!1,null,"da15e044",null).exports},83072:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return f}});var s=i(32198),a=i(58294),n=i(67953);class o extends n.lD{}var r=o=(0,s.Cg)([n.uA],o),l=i(41618),d=(0,l.A)(r,function(){var t=this._self._c;return this._self._setupProxy,t("svg",{staticClass:"animatedCheck",attrs:{viewBox:"0 0 50 50"}},[t("circle",{staticClass:"animatedCheck__circle",attrs:{cx:"25",cy:"25",r:"20",fill:"none",stroke:"#FFFFFF","stroke-width":"2"}}),t("path",{staticClass:"animatedCheck__checkmark",attrs:{fill:"none",stroke:"#CD0400","stroke-width":"2",d:"M14.1 27.2l7.1 7.2 16.7-16.8"}})])},[],!1,null,"30258dbc",null).exports,c=i(24176),u=i(58249),p=i(42123),h=i(1123),_=i(3231);let m=(0,a.tZ)("PasswordResetView");class g extends n.lD{get recaptcha(){return this.$refs.recaptcha}async resetPassword(){this.notify.clear(),m.info("Resetting password...");try{if(!await this.$validator.validateAll())return;await this.uwa.requestPasswordReset(this.email,await this.recaptcha.getRecaptchaToken(),this.determineResetUrl()),m.info("Reset email sent"),this.passwordReset=!0}catch(t){m.error("Resetting password failed",t),this.notifyGenericErrors(t)}}determineResetUrl(){let t="my-business"===this.site.context?this.$router.resolve({name:_.A.b2bChooseNewPassword,query:{token:"TOKEN"}}).href:this.$router.resolve({name:_.A.chooseNewPassword,query:{token:"TOKEN"}}).href;return this.absoluteUrl(t)}goBack(){this.$router.back()}backTologin(){let t="my-business"===this.site.context?_.A.b2bLogin:_.A.login;this.$router.push({name:t})}constructor(...t){super(...t),this.email="",this.passwordReset=!1}}(0,s.Cg)([(0,n.y_)()],g.prototype,"uwa",void 0),(0,s.Cg)([(0,n.y_)()],g.prototype,"absoluteUrl",void 0),(0,s.Cg)([(0,n.y_)()],g.prototype,"site",void 0);var v=g=(0,s.Cg)([(0,n.uA)({components:{AnimatedCheck:d,Recaptcha:h.A,Field:u.A,CallToAction:c.A,MvForm:p.A}})],g),f=(0,l.A)(v,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("section",{staticClass:"RequestPasswordReset"},[t.passwordReset?[e("div",{staticClass:"RequestPasswordReset__passwordReset ResetPasswordForm ResetPasswordForm--confirm"},[e("div",{staticClass:"ResetPasswordForm__animatedCheck"},[e("AnimatedCheck")],1),e("h2",{staticClass:"ResetPasswordForm__title"},[t._v(t._s(t.$t("check_password_reset_email.title")))]),e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("check_password_reset_email.description"),expression:"$t('check_password_reset_email.description')"}],staticClass:"ResetPasswordForm__description"}),e("footer",{staticClass:"ResetPasswordForm__footer"},[e("CallToAction",{staticClass:"ResetPasswordForm__cta",attrs:{appearance:"secondary",once:t.backTologin}},[t._v(" "+t._s(t.$t("check_password_reset_email.back_to_login"))+" ")])],1)])]:e("MvForm",{staticClass:"RequestPasswordReset__resetPassword ResetPasswordForm",attrs:{name:"requestPasswordReset"}},[e("a",{staticClass:"ResetPasswordForm__backButton",on:{click:function(e){return t.goBack()}}}),e("h2",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("password_reset.title"),expression:"$t('password_reset.title')"}],staticClass:"ResetPasswordForm__title"}),e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("password_reset.description"),expression:"$t('password_reset.description')"}],staticClass:"ResetPasswordForm__description"}),e("Field",{staticClass:"email",attrs:{label:t.$t("field_email")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"},{name:"validate",rawName:"v-validate",value:"email",expression:"'email'"}],attrs:{autocomplete:"email",type:"email",name:"email",required:""},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}})]),e("Recaptcha",{ref:"recaptcha"}
38),e("footer",[e("CallToAction",{staticClass:"ResetPasswordForm__cta",attrs:{once:t.resetPassword,type:"submit"}},[t._v(" "+t._s(t.$t("password_reset.send_email"))+" ")])],1)],1)],2)},[],!1,null,"73c5f19a",null).exports},84679:function(t,e,i){"use strict";i.d(e,{A:function(){return l}});var s=i(32198),a=i(76565),n=i(67953);class o extends n.lD{get displayAuthorizedTag(){return this.mandate&&!this.mandate.isOwner&&!this.displayBlockedTag}get displayBlockedTag(){return this.mandate&&"disabled"===this.mandate.state}get displayExpiredTag(){return this.mandate&&"expired"===this.mandate.state}get label(){return this.mandate?this.mandate.userFriendlyLabel:""}get expiry(){return this.mandate&&this.mandate.expires?this.mandate.expires.format(a.DateTimeFormatter.ofPattern("MM/yy")):null}}(0,s.Cg)([(0,n.kv)({default:null})],o.prototype,"mandate",void 0),(0,s.Cg)([(0,n.y_)()],o.prototype,"config",void 0);var r=o=(0,s.Cg)([n.uA],o),l=(0,i(41618).A)(r,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"paymentMethodCard",class:{"paymentMethodCard--placeholder":!t.mandate,"paymentMethodCard--authorized":t.displayAuthorizedTag,"paymentMethodCard--blocked":t.displayBlockedTag,"paymentMethodCard--expired":t.displayExpiredTag}},[t.mandate?e("div",{staticClass:"paymentMethodCard__content"},[e("img",{staticClass:"paymentMethodCard__logo",attrs:{src:`${t.config.vueRoot}/img/mandateMethods/${t.mandate.method.toLowerCase()}.svg`,alt:""}}
38),t.displayAuthorizedTag?e("div",{staticClass:"paymentMethodCard__tag"},[t._v(" "+t._s(t.$t("payment_methods.authorized"))+" ")]):t._e(),t.displayBlockedTag?e("div",{staticClass:"paymentMethodCard__tag"},[t._v(" "+t._s(t.$t("payment_methods.blocked"))+" ")]):t._e(),t.displayExpiredTag?e("div",{staticClass:"paymentMethodCard__tag"},[t._v(" "+t._s(t.$t("payment_methods.expired"))+" ")]):t._e(),e("div",{staticClass:"paymentMethodCard__label"},[t._v(t._s(t.label))]),t.mandate.expires?e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("payment_methods.valid_until_{date}",{date:t.expiry}),expression:"$t('payment_methods.valid_until_{date}', { date: expiry })"}],staticClass:"paymentMethodCard__validity"}):t._e()]):t._e(),t.mandate?t._e():e("div",{staticClass:"paymentMethodCard__methodListing"},[e("button",{directives:[{name:"rippleEffect",rawName:"v-rippleEffect"}],staticClass:"paymentMethodCard__addMandateButton",on:{click:function(e){return t.$emit("add","sepa")}}},[e("img",{attrs:{src:`${t.config.vueRoot}/img/mandateMethods/sepa.svg`,alt:""}}),e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("mandate_method__sepa"),expression:"$t('mandate_method__sepa')"}],staticClass:"label"})]),e("button",{directives:[{name:"rippleEffect",rawName:"v-rippleEffect"}],staticClass:"paymentMethodCard__addMandateButton",on:{click:function(e){return t.$emit("add","visa")}}},[e("img",{attrs:{src:`${t.config.vueRoot}/img/mandateMethods/visa.svg`,alt:""}}),e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("mandate_method__visa"),expression:"$t('mandate_method__visa')"}],staticClass:"label"})]),e("button",{directives:[{name:"rippleEffect",rawName:"v-rippleEffect"}],staticClass:"paymentMethodCard__addMandateButton",on:{click:function(e){return t.$emit("add","mastercard")}}},[e("img",{attrs:{src:`${t.config.vueRoot}/img/mandateMethods/mastercard.svg`,alt:""}}),e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("mandate_method__mastercard"),expression:"$t('mandate_method__mastercard')"}],staticClass:"label"})])]),e("div",{staticClass:"paymentMethodCard__actions"},[t.mandate&&t.mandate.isOwner?e("button",{directives:[{name:"rippleEffect",rawName:"v-rippleEffect"}],staticClass:"paymentMethodCard__action paymentMethodCard__action--replace replace-mandate",on:{click:function(e){return t.$emit("replace")}}},[t._v(" "+t._s(t.$t("payment_settings.replace_mandate"))+" ")]):t._e(),t.mandate&&t.mandate.isOwner?e("button",{directives:[{name:"rippleEffect",rawName:"v-rippleEffect"}],staticClass:"paymentMethodCard__action paymentMethodCard__action--remove remove-mandate",on:{click:function(e){return t.$emit("delete")}}},[t._v(" "+t._s(t.$t("payment_settings.remove_mandate"))+" ")]):t._e(),t.mandate?t._e():e("button",{directives:[{name:"rippleEffect",rawName:"v-rippleEffect"}],staticClass:"paymentMethodCard__action add-mandate",on:{click:function(e){return t.$emit("add")}}},[t._v(" "+t._s(t.$t("payment_settings.add_new_mandate"))+" ")])])])},[],!1,null,"082eeef2",null).exports},62920:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return A}});var s=i(32198),a=i(58294),n=i(67953),o=i(24176),r=i(20174),l=i(99679),d=i(45656),c=i(59844),u=i(56562),p=i(84679),h=i(90004),_=i(49458),m=i(91543),g=i(46242);let v=(0,a.tZ)("SubscriptionPaymentMethodSettings");class f extends n.lD{async created(){if(!this.subscription&&null===this.subscriptionGroup)throw new h.p('Instantiate component with either "subscription" or "subscriptionGroup"');if(this.subscription&&null!==this.subscriptionGroup)throw new h.p('You cannot set both "
38subscription" and "subscriptionGroup"')}get hasSettings(){return Object.keys(this.settings).length>0}get settings(){let t=t=>(t?this.$t("enabled"):this.$t("disabled")).toString();if(this.subscription)return"prepaid"!==this.subscription.type?{automatic_payment:{status:t(!!this.mandate),query:{spc:"auto-payment",subscriptionId:this.subscription.id},statusLength:7,title:this.$t("payment_settings.setting_automatic_postpaid_payment").toString()}}:"prepaid"===this.subscription.type&&"enabled"===this.subscription.state?{automatic_topup:{status:this.mandateService.getAutoTopupSettings(this.subscription).then(t=>!!t&&Object.values(t.triggers).some(t=>t.enabled)).then(t).catch(t=>(v.error("Failed to get auto-topup settings",t),this.notifyGenericErrors(t),"")),query:{spc:"auto-topup",subscriptionId:this.subscription.id},statusLength:7,title:this.$t("payment_settings.setting_automatic_topup").toString()},sms_topup:{status:this.mandateService.getAutoTopupSettings(this.subscription).then(t=>!!t&&t.smsTopup).then(t).catch(t=>(v.error("Failed to get auto-topup settings",t),this.notifyGenericErrors(t),"")),query:{spc:"auto-topup",subscriptionId:this.subscription.id},statusLength:7,title:this.$t("payment_settings.setting_sms_topup").toString()}}:{};if(null!==this.subscriptionGroup)return{automatic_payment:{status:t(!!this.mandate),query:{spc:"grouped-invoicing"},statusLength:7,title:this.$t("payment_settings.setting_automatic_postpaid_payment").toString()}};throw Error("unreachable code reached")}get mandateLabel(){return this.mandate?this.mandate.userFriendlyLabel:""}}(0,s.Cg)([(0,n.kv)({default:null})],f.prototype,"subscription",void 0),(0,s.Cg)([(0,n.kv)({default:null})],f.prototype,"subscriptionGroup",void 0),(0,s.Cg)([(0,n.kv)({required:!1})],f.prototype,"mandate",void 0),(0,s.Cg)([(0,n.y_)()],f.prototype,"config",void 0),(0,s.Cg)([(0,n.y_)()],f.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,n.y_)()],f.prototype,"mandateService",void 0);var y=f=(0,s.Cg)([(0,n.uA)({components:{SubscriptionGroupDetails:g.A,SubscriptionDetails:m.A,QuickSettingsList:_.A}})],f),b=i(41618),C=(0,b.A)(y,function(){var t=this._self._c;return this._self._setupProxy,this.hasSettings?t("div",{staticClass:"subscriptionPaymentMethodSettings"},[this.subscription?t("SubscriptionDetails",{staticClass:"subscriptionPaymentMethodSettings__sim subscriptionPaymentMethodSettings__subscriptionDetails current-sim",attrs:{subscription:this.subscription,withIcon:!0}}):t("SubscriptionGroupDetails",{staticClass:"subscriptionPaymentMethodSettings__sim",attrs:{subscriptionGroupForIcons:this.subscriptionGroup}}),t("div",{staticClass:"subscriptionPaymentMethodSettings__settingsContainer"},[t("QuickSettingsList",{staticClass:"subscriptionPaymentMethodSettings__settings styleLevel1",attrs:{settings:this.settings,appearance:"singleColumn",hideDividers:!0}}),this.mandate?t("div",{staticClass:"subscriptionPaymentMethodSettings_paymentMethodDisplay PaymentMethodDisplay"},[t("img",{staticClass:"PaymentMethodDisplay__logo",attrs:{alt:this.mandate.method,src:`${this.config.vueRoot}/img/mandateMethods/${this.mandate.method.toLowerCase()}.svg`}}),t("span",{staticClass:"PaymentMethodDisplay__label"},[this._v(this._s(this.mandateLabel))])]):this._e()],1)],1):this._e()},[],!1,null,"da4da09e",null).exports;let w=(0,a.tZ)("PaymentMethodView");class S extends n.lD{async created(){this.mandateService.needsToBeNotifiedOfLackingMandate().then(t=>{this.doNotifyOfLackingMandate=t}).catch(t=>{w.error("Failed to check for missing mandate",t)}),this.mandateService.onIgnoredLackingMandate(()=>{this.doNotifyOfLackingMandate=!1}),this.removeGroupedInvoicingChangeListener=this.customerService.addInvoiceGroupingChangeListener(this.onGroupedInvoicingChange.bind(this)),await this.onGroupedInvoicingChange()}beforeDestroy(){this.removeGroupedInvoicingChangeListener&&(this.removeGroupedInvoicingChangeListener(),this.removeGroupedInvoicingChangeListener=null)}async onGroupedInvoicingChange(){try{this.groupedInvoicingSettings=null,this.groupedInvoicingSettings=await this.customerService.getInvoiceGrouping()}catch(t){w.error("Failed to load invoice grouping settings",t),this.notifyGenericErrors(t)}}get subscriptions(){return this.session.subscriptions||null}get productGroups(){let t=this.session.subscriptions??[];return[{name:this.$t("payment_methods.owned_non_prepaid_products").toString(),kind:"owned_non_prepaid",subscriptions:t.filter(t=>"prepaid"!==t.type&&t.isOwner)},{name:this.$t("payment_methods.owned_prepaid_products"),kind:"owned_prepaid",subscriptions:t.filter(t=>"prepaid"===t.type&&t.isOwner)},{name:this.$t("payment_methods.authorized_products"),kind:"authorized",subscriptions:t.filter(t=>!t.isOwner)}]}openGroupedInvoicingSpc(){this.$router.push({query:{spc:"grouped-invoicing"}})}dismissHint(){this.mandateService.ignoreLackingMandate(),this.doNotifyOfLackingMandate=!1}replaceMandate(t){this.$router.push({query:{spc:"add-payment-method",mandateIdToReplace:t.id}})}get showGroupedInvoicingHint(){return!!this.groupedInvoicingSettings&&!this.groupedInvoicingSettings.grouped&&!!this.config.featureFlags.groupedInvoicing&&!!this.session?.subscriptions&&this.session.subscriptions.filter(t=>"prepaid"!==t.type).length>=2}getEligibleSubscriptions(t){return t.filter(t=>"prepaid"!==t.type||"enabled"===t.state)}hasEligibleSubscriptions(t){return this.groupedInvoicingSettings?.grouped&&"owned_non_prepaid"===t.kind?t.subscriptions.length>0:this.getEligibleSubscriptions(t.subscriptions).length>0}get hasAnyEligibleSubscriptions(){let t=this.productGroups;return!!t&&0!==t.length&&t.some(t=>this.hasEligibleSubscriptions(t))}getMandateForSubscription(t){return this.mandateService.mandates.find(e=>e.subscriptionIds.includes(t))}confirmDescription(t){return"sepa"===t.method?this.$t("payment_methods.description_invoice_sepa_mandate_will_be_used"):this.$t("payment_methods.remov
38ing_mandate_will_remove_all_settings_for_auto_topup_and_invoice_payments")}async deleteMandate(t){try{if(!await this.confirm(this.confirmDescription(t),this.$t("attention"),this.$t("payment_methods.remove_anyway_cta"),this.$t("payment_methods.cancel_remove")))return;await this.mandateService.deleteMandate(t.id)}catch(t){w.error("Failed to delete mandate",t),this.notifyGenericErrors(t)}}addMandate(t){this.$router.push({query:{spc:"add-payment-method",mandateType:t||""}})}get mandates(){return this.mandateService.mandates.filter(t=>"deleted"!==t.state&&("expired"!==t.state||"sepa"!==t.method))}constructor(...t){super(...t),this.doNotifyOfLackingMandate=!1,this.groupedInvoicingSettings=null,this.removeGroupedInvoicingChangeListener=null}}(0,s.Cg)([(0,n.y_)()],S.prototype,"config",void 0),(0,s.Cg)([(0,n.y_)()],S.prototype,"storage",void 0),(0,s.Cg)([(0,n.y_)()],S.prototype,"session",void 0),(0,s.Cg)([(0,n.y_)()],S.prototype,"mandateService",void 0),(0,s.Cg)([(0,n.y_)()],S.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,n.y_)()],S.prototype,"confirm",void 0),(0,s.Cg)([(0,n.y_)()],S.prototype,"customerService",void 0);var M=S=(0,s.Cg)([(0,n.uA)({components:{LinksetInfo:d.A,SubscriptionPaymentMethodSettings:C,PaymentMethodCard:p.A,NoSimBanner:c.A,Loading:r.A,InlineNotification:l.A,MvSection:u.A,CallToAction:o.A}})],S),A=(0,b.A)(M,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"PaymentMethodView styleLevel1"},[t.doNotifyOfLackingMandate?e("InlineNotification",{staticClass:"PaymentMethodView__noMandatesHint",attrs:{notificationType:"hint"},on:{dismiss:function(e){return t.dismissHint()}}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("payment_methods.you_can_use_methods_for_xxx_see_faq_for_more_info"),expression:"$t('payment_methods.you_can_use_methods_for_xxx_see_faq_for_more_info')"}]})]):t._e(),t.mandates&&null!==t.groupedInvoicingSettings?[e("MvSection",{staticClass:"PaymentMethodView__mandates"},[t._l(t.mandates,function(i){return e("PaymentMethodCard",{key:i.id,staticClass:"PaymentMethodView__paymentMethodCard",attrs:{mandate:i},on:{replace:function(e){return t.replaceMandate(i)},delete:function(e){return t.deleteMandate(i)}}})}),e("PaymentMethodCard",{staticClass:"PaymentMethodView__paymentMethodCard",on:{add:t.addMandate}})],2),t._l(t.productGroups,function(i){return[t.hasEligibleSubscriptions(i)?e("MvSection",{key:i.name,attrs:{title:i.name}},[e("div",{staticClass:"PaymentMethodView__settingsWrapper"},[t.groupedInvoicingSettings.grouped&&"owned_non_prepaid"===i.kind?[e("div",{staticClass:"PaymentMethodView__settings"},[e("SubscriptionPaymentMethodSettings",{attrs:{mandate:t.groupedInvoicingSettings.mandate,subscriptionGroup:i.subscriptions}})],1)]:[e("div",{staticClass:"PaymentMethodView__settings",class:{"PaymentMethodView__settings--disabled":0===t.mandates.length}},[0===t.mandates.length?e("div",{staticClass:"notice PaymentMethodView__settingsNotice"},[e("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("payment_methods.you_cannot_change_now__add_mandate_first"),expression:"$t('payment_methods.you_cannot_change_now__add_mandate_first')"}],attrs:{appearance:"inline"}})],1):t._e(),t._l(t.getEligibleSubscriptions(i.subscriptions),function(i){return e("SubscriptionPaymentMethodSettings",{key:i.id,attrs:{mandate:t.getMandateForSubscription(i.id),subscription:i}})})],2),t.showGroupedInvoicingHint&&"owned_non_prepaid"===i.kind?e("InlineNotification",{staticClass:"PaymentMethodView__groupedInvoicingHint",attrs:{notificationType:"hint"},scopedSlots:t._u([{key:"default",fn:function(){return[t._v(" "+t._s(t.$t("payment_methods.grouped_invoices_hint_text"))+" ")]},proxy:!0},{key:"cta",fn:function(){return[e("CallToAction",{attrs:{appearance:"secondary"},on:{click:t.openGroupedInvoicingSpc}},[t._v(" "+t._s(t.$t("payment_methods.grouped_invoices_hint_cta"))+" ")])]},proxy:!0}],null,!0)}):t._e()]],2)]):t._e()]}),e("MvSection",[t.subscriptions&&!t.hasAnyEligibleSubscriptions?e("NoSimBanner",{staticClass:"styleLevel2"}):t._e()],1)]:e("Loading")],2)},[],!1,null,"2ab177d7",null).exports}
38,31286:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return z}});var s=i(32198),a=i(58294),n=i(16488),o=i(50103),r=i(62765),l=i(67953),d=i(24176),c=i(99679),u=i(92577),p=i(39490),h=i(99168),_=i(28687),m=i(91543),g=i(83301),v=i(3231);let f=(0,a.tZ)("subscriptionsList");class y extends l.lD{get iconPlus(){return"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+MjR4MjQ8L3RpdGxlPgogICAgPGcgaWQ9IjI0eDI0IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iYWRkIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyLjAwMDAwMCwgMi4wMDAwMDApIiBmaWxsPSIjRkZGRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgICAgICA8cG9seWdvbiBpZD0iUGF0aCIgcG9pbnRzPSIyMCAxMS40MDkzOTYgMTEuNDA5Mzk2IDExLjQwOTM5NiAxMS40MDkzOTYgMjAgOC41OTA2MDQwMyAyMCA4LjU5MDYwNDAzIDExLjQwOTM5NiAwIDExLjQwOTM5NiAwIDguNTkwNjA0MDMgOC41OTA2MDQwMyA4LjU5MDYwNDAzIDguNTkwNjA0MDMgMCAxMS40MDkzOTYgMCAxMS40MDkzOTYgOC41OTA2MDQwMyAyMCA4LjU5MDYwNDAzIj48L3BvbHlnb24+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4="}get iconForAddSubscriptionBtn(){return"broadband"===this.subscriptionType?"--icon-surfboard-bg-url":"--icon-simcard-bg-url"}get isLoading(){return!this.subscriptions}get styleLevelClass(){return(0,g.yu)(this.styleLevel)}get showAddSubscriptionCta(){return!this.showGhostAddSubscriptionButton&&!this.isLoading}get showGhostAddSubscriptionButton(){return this.subscriptions?.length===0}get showInlineAddSubscriptionLink(){return!this.showGhostAddSubscriptionButton}get title(){return"broadband"===this.subscriptionType?this.$t("subscriptionsList.broadband_title"):this.$t("subscriptionsList.sim_title")}get addSubscriptionCtaText(){return"broadband"===this.subscriptionType?this.$t("subscriptionsList.add_broadband_cta_text"):this.$t("subscriptionsList.add_sims_cta_text")}routeFor(t){return(0,u.sA)(t)?{name:v.A.sims,params:{lang:this.locale,subscriptionId:t.id}}:(0,p.V)(t)?{name:v.A.fixedLines,params:{lang:this.locale,bbSubscriptionId:t.id}}:(f.error(`Unsupported subscription ${JSON.stringify(t)}`),{})}}(0,s.Cg)([(0,l.kv)({type:Array,required:!1})],y.prototype,"subscriptions",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:null})],y.prototype,"orders",void 0),(0,s.Cg)([(0,l.kv)({type:String,required:!0})],y.prototype,"addSubscriptionUrl",void 0),(0,s.Cg)([(0,l.kv)({type:String,required:!1,default:"h3"})],y.prototype,"titleHeadingLevel",void 0),(0,s.Cg)([(0,l.kv)({type:String,required:!1,default:"mobile"})],y.prototype,"subscriptionType",void 0),(0,s.Cg)([(0,l.kv)({type:Number,required:!1,default:1})],y.prototype,"numberOfLoadingItems",void 0),(0,s.Cg)([(0,l.kv)({type:Number,required:!1,default:1})],y.prototype,"styleLevel",void 0),(0,s.Cg)([(0,l.kv)({type:Boolean,required:!1,default:!1})],y.prototype,"loading",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:()=>null})],y.prototype,"authorizations",void 0);var b=y=(0,s.Cg)([(0,l.uA)({components:{SubscriptionDetails:m.A,Heading:h.A,Icon:_.A}})],y),C=i(41618),w=(0,C.A)(b,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{class:["subscriptionsList",t.styleLevelClass,`${t.subscriptionType}-subscriptions-list`]},[t.showAddSubscriptionCta||t.title?e("div",{staticClass:"subscriptionsList__title"},[e("Heading",{attrs:{appearance:"h5",tagType:t.titleHeadingLevel}},[t._v(" "+t._s(t.title)+" ")]),t.showAddSubscriptionCta?e("a",{staticClass:"subscriptionsList__addSubscriptionLink",attrs:{href:t.addSubscriptionUrl}},[t._v(" "+t._s(t.addSubscriptionCtaText)+" ")]):t._e()],1):t._e(),e("ul",{staticClass:"ContentBoxList"},[t.isLoading?t._l(t.numberOfLoadingItems,function(t){return e("li",{key:`subscriptionListLoadingItem${t}`},[e("div",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],class:["ContentBoxList__item","ContentBoxList__item--isLoading","ContentBoxList__item--withBadge"]},[e("SubscriptionDetails",{attrs:{isLoading:!0,appearance:"inList"}})],1)])}):[t.showGhostAddSubscriptionButton?[e("li",[e("a",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],class:["ContentBoxList__item","ContentBoxList__item--ghost","ContentBoxList__item--link"],attrs:{href:t.addSubscriptionUrl}},[e("div",{staticClass:"addSubscriptionGhostContent no-subscriptions-indicator"},[e("Icon",{staticClass:"addSubscriptionGhostContent__icon",attrs:{subIconUrl:t.iconPlus,appearance:"inCircle",iconUrl:t.iconForAddSubscriptionBtn}}),e("span",{staticClass:"addSubscriptionGhostContent__text"},[t._v(t._s(t.addSubscriptionCtaText))])],1)])])]:t._l(t.subscriptions,function(i,s){return e("li",{key:s},[e("RouterLink",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],class:["ContentBoxList__item","ContentBoxList__item--link"],attrs:{to:t.routeFor(i)}}
38,[e("SubscriptionDetails",{attrs:{appearance:"inList",withIcon:!0,subscription:i,orders:t.orders,authorizations:t.authorizations}})],1)],1)})]],2)])},[],!1,null,"10a9ca41",null).exports,S=i(46535),M=i(50778),A=i(80631),k=i(20684),I=i(10183);class x extends l.lD{async onProductChanged(){if(this.product?.id)try{let t=await this.reductionClient.getAdvantages();this.advantage=(0,o.rG)(t.availableSubscriptionAdvantages,this.product.id)}catch{this.advantage=null}}get amountWithEuroSign(){return this.advantage?(0,r.up)(this.advantage.amount,"two_if_significant"):""}constructor(...t){super(...t),this.RouteName=v.A,this.formatMoney=r.up,this.advantage=null}}(0,s.Cg)([(0,l.kv)({type:Object,required:!0})],x.prototype,"product",void 0),(0,s.Cg)([(0,l.kv)({type:Boolean,required:!1,default:!1})],x.prototype,"disabled",void 0),(0,s.Cg)([(0,l.kv)({type:Boolean,required:!1,default:!1})],x.prototype,"isEligibleForTrial",void 0),(0,s.Cg)([(0,l.y_)()],x.prototype,"reductionClient",void 0),(0,s.Cg)([(0,l.ox)("product",{immediate:!0})],x.prototype,"onProductChanged",null);var N=x=(0,s.Cg)([(0,l.uA)({components:{Badge:I.A,AvatarImage:A.A,AvatarRoot:k.A,Tag:M.A}})],x),T=(0,C.A)(N,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("RouterLink",{staticClass:"addThirdPartySubscription ContentBoxList__item ContentBoxList__item--ghost ContentBoxList__item--link",class:{"ContentBoxList__item--disabled":t.disabled},attrs:{to:{name:t.RouteName.thirdPartySubscriptionsOrder,params:{slug:t.product.thirdPartySlug}},tabindex:t.disabled?-1:0,disabled:t.disabled}},[e("div",{staticClass:"addThirdPartySubscription__content",class:{"addThirdPartySubscription__content--no-description":!t.product.thirdPartyDescription}},[e("div",{staticClass:"addThirdPartySubscription__avatar"},[e("AvatarRoot",{scopedSlots:t._u([{key:"badge",fn:function(){return[e("Badge",{attrs:{maintainRatio:!0,color:"red",radius:"full"}},[t._v(" + ")])]},proxy:!0}])},[e("AvatarImage",{attrs:{iconUrl:t.product.image||"",backgroundSize:"cover"}})],1)],1),e("div",{staticClass:"addThirdPartySubscription__name"},[e("strong",{staticClass:"addThirdPartySubscription__groupName"},[t._v(t._s(t.product.thirdPartyName))]),t.isEligibleForTrial?e("Tag",{attrs:{size:"small",appearance:"grey",outlined:!0,"data-qa":"add-third-party-subscription-trial-tag"}},[t._v(" "+t._s(t.$t("tps_form.one_month_free"))+" ")]):t._e()],1),t.product.thirdPartyDescription?e("span",{staticClass:"addThirdPartySubscription__info"},[t._v(t._s(t.product.thirdPartyDescription))]):t._e(),e("div",{staticClass:"addThirdPartySubscription__price"},[t.advantage?e("strong",{staticClass:"addThirdPartySubscription__price-copy"},[t._v(" "+t._s(t.$t("tps_add_button.your_potential_monthly_discount_is_{amountWithEuroSign}",{amountWithEuroSign:t.amountWithEuroSign}))+" ")]):e("strong",{staticClass:"addThirdPartySubscription__price-copy"},[t._v(t._s(t.$t("discount.from"))+" "+t._s(t.formatMoney(t.product.monthly,"always_two")))])])])])},[],!1,null,"1127019e",null).exports;class D extends l.lD{async mounted(){await Promise.all([this.loadAdvantages(),this.loadThirdParties()])}async loadAdvantages(){try{this.advantages=(0,o.l5)((await this.reductionClient.getAdvantages()).activeSubscriptionAdvantages)}catch{this.advantages=[]}finally{this.advantagesLoading=!1}}async loadThirdParties(){try{this.thirdParties=await this.subhubService.getThirdParties()}catch{this.thirdParties=[]}}isEligibleForTrial(t){return!!this.thirdParties.find(e=>e.slug===t.thirdPartySlug)?.isEligibleForTrial}get filteredProducts(){let t=(0,n.Cc)(this.products),e=this.subscriptions.map(t=>t.product.thirdPartySlug);return t.filter(t=>!e?.includes(t.thirdPartySlug))}get monthlyDiscount(){let t=this.advantages.reduce((t,e)=>t+e.amount,0);return(0,r.up)(t,"two_if_significant")}get totalSubscriptionsCount(){return this.subscriptions.length+this.filteredProducts.length}get canAddThirdPartySubscriptions(){let t=!!this.session.mobileSubscriptions?.some(t=>"prepaid"!==t.type&&"enabled"===t.state&&t.isOwner),e=!!this.session.broadbandSubscriptions?.some(t=>"enabled"===t.state&&t.isOwner);return t||e}constructor(...t){super(...t),this.RouteName=v.A,this.advantages=[],this.advantagesLoading=!0,this.thirdParties=[]}}(0,s.Cg)([(0,l.kv)({type:Boolean,required:!0,default:!1})],D.prototype,"loading",void 0),(0,s.Cg)([(0,l.kv)({type:Array,required:!1,default:[]})],D.prototype,"products",void 0),(0,s.Cg)([(0,l.kv)({type:Array,required:!1,default:[]})],D.prototype,"subscriptions",void 0),(0,s.Cg)([(0,l.kv)({required:!1,default:null})],D.prototype,"orders",void 0),(0,s.Cg)([(0,l.kv)({type:Number,required:!1,default:1})],D.prototype,"numberOfLoadingItems",void 0),(0,s.Cg)([(0,l.y_)()],D.prototype,"session",void 0),(0,s.Cg)([(0,l.y_)()],D.prototype,"reductionClient",void 0),(0,s.Cg)([(0,l.y_)()],D.prototype,"subhubService",void 0);var $=D=(0,s.Cg)([(0,l.uA)({components:{InlineNotification:c.A,AddThirdPartySubscription:T,SubscriptionDetail
38s:m.A,Heading:h.A,Shimmer:S.A}})],D),P=(0,C.A)($,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{class:["SubscriptionsList","nextStyleLevel"],attrs:{id:"linked-services"}},[e("div",{staticClass:"SubscriptionsList__title"},[e("Heading",{attrs:{appearance:"h5",tagType:"h3"}},[t._v(t._s(t.$tc("tps_selector.title__plural",t.totalSubscriptionsCount)))]),e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("tps_selector.subtitle_{amount}__html",{amount:t.monthlyDiscount}),expression:"$t('tps_selector.subtitle_{amount}__html', { amount: monthlyDiscount })"}],staticClass:"ExternalContent"})],1),t.loading||t.canAddThirdPartySubscriptions?t._e():e("InlineNotification",{staticClass:"SubscriptionsList__noSubscriptionNotification",attrs:{notificationType:"hint",appearance:"inSiteNotification"}},[t._v(" "+t._s(t.$t("tps_selector.you_cannot_add_third_party_subscriptions"))+" ")]),e("div",{staticClass:"ContentBoxList SubscriptionsList__howItWorksContainer"},[e("div",{staticClass:"ContentBoxList__item SubscriptionsList__howItWorks"},[e("div",{staticClass:"SubscriptionList__discountContainer"},[e("span",{staticClass:"SubscriptionList__discountLabel"},[t._v(t._s(t.$t("tps_selector.your_monthly_discount")))]),t.advantagesLoading?e("Shimmer",{staticClass:"SubscriptionList__discountValueLoading"}):e("span",{staticClass:"SubscriptionList__discountValue"},[t._v(t._s(t.monthlyDiscount))])],1)])]),e("ul",{staticClass:"ContentBoxList"},[t.loading?t._l(t.numberOfLoadingItems,function(t){return e("li",{key:`subscriptionListLoadingItem${t}`},[e("div",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"ContentBoxList__item ContentBoxList__item--isLoading ContentBoxList__item--withBadge"},[e("SubscriptionDetails",{attrs:{isLoading:!0,appearance:"inList"}})],1)])}):[t._l(t.subscriptions,function(i){return e("li",{key:i.id,staticClass:"SubscriptionsList__item"},[e("RouterLink",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"ContentBoxList__item ContentBoxList__item--link",attrs:{to:{name:t.RouteName.thirdPartySubscription,params:{slug:i.product.thirdPartySlug}}}},[e("SubscriptionDetails",{attrs:{appearance:"inList",withIcon:!0,subscription:i,orders:t.orders}})],1)],1)}),e("div",{staticClass:"SubscriptionsList__addSubscriptionContainer"},t._l(t.filteredProducts,function(i){return e("AddThirdPartySubscription",{key:i.thirdPartySlug,attrs:{product:i,disabled:!t.canAddThirdPartySubscriptions,isEligibleForTrial:t.isEligibleForTrial(i)}})}),1)]],2)],1)},[],!1,null,"0e2072f7",null).exports;let L=(0,a.tZ)("ProductsOverview");class E extends l.lD{async mounted(){this.loading=!0,await Promise.all([this.loadOrders(),this.loadThirdPartySubscriptionProducts(),this.loadThirdPartyInterests(),this.loadThirdPartyAdvantages(),this.loadAuthorizations()]),this.loading=!1}get addMobileSubscriptionUrl(){return`/${this.locale}/offer/subscriptions`}get addBroadbandSubscriptionUrl(){return`/${this.locale}/offer/fixed`}get thirdPartyInterest(){let t=this.thirdPartyInterests[0]??null;if(!t)return null;let e=this.thirdPartySubscriptionProducts.find(e=>e.thirdPartySlug===t.slug);if(!e)return null;let i=(0,o.rG)(this.thirdPartyAdvantages,e.id);return{slug:t.slug,name:t.name,advantage:(0,r.up)(i?.amount,"two_if_significant")}}get hasActiveTelcoSubscription(){let t=!!this.session.mobileSubscriptions?.some(t=>"prepaid"!==t.type&&"enabled"===t.state&&t.isOwner),e=!!this.session.broadbandSubscriptions?.some(t=>"enabled"===t.state&&t.isOwner);return t||e}get shouldShowTpsInlineNotification(){return!(this.hideTpsTip||!this.thirdPartyInterest&&(this.session.thirdPartySubscriptions?.length??0)>0)&&!this.isTpsNotificationDismissed&&(!!this.thirdPartyInterest||this.hasActiveTelcoSubscription)}get isTpsNotificationDismissed(){let t=this.tpsNotificationDismissalKey;return!!t&&"true"===localStorage.getItem(t)}get tpsNotificationDismissalKey(){let t=this.session.profile?.id;return t?this.hasActiveTelcoSubscription&&0===this.thirdPartyInterests.length?`${t}-tps-activesub-nointerest-dismissed`:!this.hasActiveTelcoSubscription&&this.thirdPartyInterests.length>0?`${t}-tps-noactivesub-interest-dismissed`:this.hasActiveTelcoSubscription&&this.thirdPartyInterests.length>0?`${t}-tps-activesub-interest-dismissed`:null:null}get tpsNotificationTag(){if(!this.thirdPartyInterest)return this.$t("tps.noTelcoSubscriptionsTipTag").toString()}get tpsNotificationTitle(){if(this.thirdPartyInterest){if(this.thirdPartyInterests.length>1){let t=this.thirdPartyInterests.slice(0,3).map(t=>t.name).join(" / ");return this.$t("tps.intent_banner_title_{subhubPartners}",{subhubPartners:t}).toString()}return this.$t("tps.intent_banner_title_{subhubPartner}",{subhubPartner:this.thirdPartyInterest.name}).toString()}return this.$t("tps.noTelcoSubscriptionsTipTitle").toString()}get tpsNotificationDescription(){if(this.thirdPartyInterest){if(this.hasActiveTelcoSubscription){if(this.thirdPartyInterests.length>1){let t=this.thirdPartyInterests.slice(0,3).map(t=>t.name).join(" / ");return this.$t("tps.activate_third_party_interest_{subhubPartners}",{subhubPartners:t}).toString()}return this.$t("tps.activate_third_party_interest_{subhubPartner}_{amountWithEuroSign}",{subhubPartner:this.thirdPartyInterest.name,amountWithEuroSign:this.thirdPartyInterest.advantage}).toString()}if(this.thirdPartyInterests.length>1){let t=this.thirdPartyInterests.slice(0,3).map(t=>t.name).join(" / ");return this.$t("tps.third_party_interest_{subhubPartners}_without_telco",{subhubPartners:t}).toString()}return this.$t("tps.third_party_interest_{subhubPartner}_{amountWithEuroSign}_without_telco",{subhubPartner:this.thirdPartyInterest.name,amountWithEuroSign:this.thirdPartyInterest.advantage}).toString()}return this.$t("tps.noTelcoSubscriptionsTipDescription__html").toString()}async handleTpsNotificationDismiss(){if(this.hideTpsTip=!0,this.storeTpsNotificationDismissal(),this.hasActiveTelcoSubscription&&0!==this.thirdPartyInterests.length)try{await this.subhubService.deleteThirdPartyInterests()}catch(t){L.error("Failed to delete third party interests",t)}}storeTpsNotificationDismissal(){let t=this.tpsNotificationDismissalKey;t&&localStorage.setItem(t,"true")}async loadOrders(){try{this.orders=await this.orderService.getAllPendingOrders()}catch(t){L.error("Failed to load orders",t)}}async loadAuthorizations(){try{this.authorizations=await this.authorizationService.getAuthorizations()}catch(t){L.error("Failed to load authorizations:",t)}}async loadThirdPartySubscriptionProducts(){try{let t=await this.productService.getThirdPartySubscriptionProducts();this.thirdPartySubscriptionProducts=(0,n.Cc)(t)}catch(t){L.error("Failed to load third party subscriptions",t),this.thirdPartySubscriptionProducts=[]}}async loadThirdPartyInterests(){try{this.thirdPartyInterests=await this.subhubService.getThirdPartyInterests()}catch(t){L.error("Failed to load third party interests",t),this.thirdPartyInterests=[]}}async loadThirdPartyAdvantages(){try{let t=await this.reductionClient.getAdvantages();this.thirdPartyAdvantages=(0,o.l5)(t.availableSubscriptionAdvantages)}catch(t){L.error("Failed to load third party advantages",t),this.thirdPartyAdvantages=[]}}constructor(...t){super(...t),this.RouteName=v.A,this.loading=!1,this.hideTpsTip=!1,this.orders=[],this.thirdPartySubscriptionProducts=[],this.thirdPartyInterests=[],this.thirdPartyAdvantages=[],this.authorizations=null}}(0,s.Cg)([(0,l.y_)()],E.prototype,"session",void 0),(0,s.Cg)([(0,l.y_)()],E.prototype,"orderService",void 0),(0,s.Cg)([(0,l.y_)()],E.prototype,"productService",void 0),(0,s.Cg)([(0,l.y_)()],E.prototype,"reductionClient",void 0),(0,s.Cg)([(0,l.y_)()],E.prototype,"authorizationService",void 0),(0,s.Cg)([(0,l.y_)()],E.prototype,"subhubService",void 0);var O=E=(0,s.Cg)([(0,l.uA)({methods:{formatMoney:r.up}
38,components:{ThirdPartySubscriptionList:P,SubscriptionsList:w,InlineNotification:c.A,CallToAction:d.A}})],E),z=(0,C.A)(O,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"productsOverview"},[!t.loading&&t.shouldShowTpsInlineNotification?e("InlineNotification",{attrs:{notificationType:"tip",tag:t.tpsNotificationTag,appearance:"inSiteNotification"},on:{dismiss:t.handleTpsNotificationDismiss},scopedSlots:t._u([{key:"default",fn:function(){return[e("div",{staticClass:"productsOverview__tipContent"},[e("img",{staticClass:"productsOverview__tipImg",attrs:{src:i(76939),alt:""}}),e("div",{staticClass:"productsOverview__tipText"},[t.tpsNotificationTitle?e("span",{staticClass:"productsOverview__tipTitle"},[t._v(" "+t._s(t.tpsNotificationTitle)+" ")]):t._e(),t.thirdPartyInterest?e("span",{staticClass:"productsOverview__tipDescription"},[t._v(" "+t._s(t.tpsNotificationDescription)+" ")]):e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.tpsNotificationDescription,expression:"tpsNotificationDescription"}],staticClass:"productsOverview__tipDescription"})])])]},proxy:!0},t.hasActiveTelcoSubscription&&t.thirdPartyInterest?{key:"cta",fn:function(){return[e("CallToAction",{attrs:{appearance:"tertiary-small",href:t.$t("tps.activate_third_party_interest_cta_url")}},[t._v(" "+t._s(t.$t("tps.activate_third_party_interest_cta"))+" ")])]},proxy:!0}:null],null,!0)}):t._e(),e("SubscriptionsList",{staticClass:"mobile-subscriptions-list",attrs:{subscriptionType:"mobile",subscriptions:t.session.mobileSubscriptions,addSubscriptionUrl:t.addMobileSubscriptionUrl,loading:t.loading,authorizations:t.authorizations}}),e("SubscriptionsList",{staticClass:"broadband-subscriptions-list",attrs:{subscriptionType:"broadband",subscriptions:t.session.broadbandSubscriptions,addSubscriptionUrl:t.addBroadbandSubscriptionUrl,orders:t.orders,loading:t.loading}}),e("ThirdPartySubscriptionList",{attrs:{loading:t.loading,orders:t.orders,subscriptions:t.session.thirdPartySubscriptions,products:t.thirdPartySubscriptionProducts}})],1)},[],!1,null,"21480fdc",null).exports},87655:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return F}});var s=i(32198),a=i(76565),n=i(58294),o=i(90004),r=i(98946),l=i(8921),d=i(47211),c=i(47352),u=i(44739),p=i(67953),h=i(6682),_=i(95990),m=i(14806),g=i(58249),v=i(42123),f=i(78365),y=i(76573),b=i(33905),C=i(99679),w=i(79847),S=i(83487);class M extends p.lD{get product(){return this.value}set product(t){t&&this.$emit("input",t)}}(0,s.Cg)([(0,p.kv)()],M.prototype,"value",void 0),(0,s.Cg)([(0,p.kv)()],M.prototype,"options",void 0),(0,s.Cg)([(0,p.kv)({type:Boolean,required:!1,default:!1})],M.prototype,"loading",void 0);var A=M=(0,s.Cg)([(0,S.My)(),(0,p.uA)({components:{Field:g.A,RadioGroup:w.A}})],M),k=i(41618),I=(0,k.A)(A,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("Field",{staticClass:"RoamingBundleSelector",attrs:{label:t.$t("roaming_bundle_selector.field_label"),"data-qa":"roaming-bundle-selector"}},[t.loading?e("RadioGroup",{staticClass:"RoamingBundleSelector__options",attrs:{numberOfLoadingItems:4,topAlignChecks:!0}},[e("div",{staticClass:"RoamingBundleSelector__option RoamingBundleSelector__option--isLoading",staticStyle:{"--parentPadding":"var(--radioButtonLabelPadding)"}},[e("div",{staticClass:"RoamingBundleSelector__summary"},[e("span",{staticClass:"RoamingBundleSelector__dataAmount shimmer"},[t._v("Â ")]),e("span",{staticClass:"RoamingBundleSelector__price shimmer"},[t._v("Â ")])])])]):e("RadioGroup",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],staticClass:"RoamingBundleSelector__options",attrs:{name:"bundles",topAlignChecks:!0,options:t.options,optionKey:"id"},scopedSlots:t._u([{key:"default",fn:function({option:i}){return[e("div",{staticClass:"RoamingBundleSelector__option",staticStyle:{"--parentPadding":"var(--radioButtonLabelPadding)"}},[e("div",{staticClass:"RoamingBundleSelector__summary"},[e("strong",{staticClass:"RoamingBundleSelector__description"},[t._v(t._s(i.title))]),e("span",{staticClass:"RoamingBundleSelector__price"},[t._v(t._s(t._f("money")(i.price)))])])])]}}],null,!1,0x67685ab8),model:{value:t.product,callback:function(e){t.product=e},expression:"product"}})],1)}
38,[],!1,null,"6f7d3fc7",null).exports,x=i(10231),N=i(18569),T=i(66090),D=i(23087),$=i(14064),P=i(67415),L=i(42580),E=i(20020),O=i(3231);let z=(0,n.tZ)("AddRoamingBundleView");class j extends p.lD{async created(){this.subscription=this.session.mobileSubscription&&this.eligibleForRoamingBundle(this.session.mobileSubscription)?this.session.mobileSubscription:null,await this.loadRoamingBundleProducts(),await this.loadVikingPoints()}async mounted(){this.trackingService.updateRoamingBundle("start")}async onSubscriptionChange(t,e){let[i]=await Promise.all([this.getRoamingCountriesByCode(this.subscription),this.loadCallingCredit(),this.checkForRecentBundleOrders(),this.resetTypeSpecificFields(t,e)]);this.roamingCountriesByCode=i,this.matchCountryToDestination(i,this.destination)}matchCountryToDestination(t,e){e&&t&&t.find(t=>t.code===e)&&(this.selectedCountryCode=e)}async getRoamingCountriesByCode(t){return t?.type?await this.globalDataPassService.getRoamingCountriesForProductType(t.type):null}get subscriptionIsPrepaid(){return this.subscription&&this.subscription?.type==="prepaid"}get passwordIsRequired(){return!!(this.subscription?.type==="postpaid"||this.vikingPointsEnabled&&this.vikingPointsAmount>0||this.totalRoamingBundlePrice>0&&this.paymentMethod&&((0,r.fc)(this.paymentMethod)||"callcredit"===this.paymentMethod))}get canUseVikingPoints(){return!!this.subscription&&0!==this.maxVikingPointsAmount&&(!!this.session.isIdentityVerified("disallow_probation")||!this.subscription.isOwner)}get vikingPointsTip(){return this.subscription?!this.session.isIdentityVerified()&&this.subscription.isOwner?this.$t("roaming_bundle_no_vp_not_verified").toString():this.session.isInProbationPeriod&&this.subscription.isOwner?this.$t("roaming_bundle_no_vp_verification_will_expire").toString():this.vikingPointsBalance>0?null:this.$t("how_to_get_viking_points").toString():null}get vikingPointsBalanceTip(){return this.$t("roaming_bundle.you_have_{vp}_available",{vp__safe:(0,L.TY)(this.vikingPointsBalance)}).toString()}get orderTotal(){let t=this.vikingPointsEnabled?this.vikingPointsAmount:0;return+(this.totalRoamingBundlePrice-t).toFixed(2)}get vikingPointsCoverPrice(){return!!this.allBundleProducts?.length&&!!this.vikingPointsEnabled&&this.totalRoamingBundlePrice===this.vikingPointsAmount}eligibleForRoamingBundle(t){return"enabled"===t.state&&!t.isDataOnly}openCountriesSpc(){"#gdp-countries"===this.$route.hash?this.closeSidePanel=this.showInSidePanel(P.A,{},{},()=>this.$router.push({...`${this.$route}/`,hash:""})):(this.closeSidePanel(),this.closeSidePanel=()=>{})}get goodToKnow(){return this.allBundleProducts?.length?`<ul> 39 ${this.$t("roaming_bundle.good_to_know_eligible_countries")} 40 ${this.$t("roaming_bundle.good_to_know_description")} 41 </ul>`:""}get legalese(){return this.subscriptionIsPrepaid?this.$t("roaming_bundle.legalese_prepaid"):this.subscription?.type==="postpaid"?this.$t("roaming_bundle.legalese_postpaid"):""}get confirmCtaText(){return this.subscription?.type==="postpaid"?this.$t("roaming_bundle.confirm"):this.$t("roaming_bundle.confirm_and_pay")}async orderRoamingBundle(){this.trackingService.updateRoamingBundle("confirm",this.selectedProduct,this.paymentMethod),this.uwaValidationErrors={};try{if(!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20);return}if(!this.subscription)throw new o.p("No subscription selected");if(!this.selectedProduct||!this.selectedProduct.id)throw new o.p("No roaming bundle added");if(this.lastBundleOrder?.created.plusMinutes(30).isAfter(a.LocalDateTime.now())&&await this.confirm((0,d.Q)(this.lastBundleOrder.state)?this.$t("roaming_bundle.you_have_a_pending_bundle_order__question"):this.$t("roaming_bundle.you_have_a_recent_bundle_order__question_{timeout}",{timeout:30}),this.$t("attention"),this.$t("roaming_bundle.you_have_a_recent_bundle_order__confirm"),this.$t("roaming_bundle.you_have_a_recent_bundle_order__cancel"))===!1)return void this.$router.push({name:O.A.simSettings});let t=this.orderPayment(),e=this.absoluteUrl(this.$router.resolve({name:O.A.addRoamingBundleDone})),i=await this.roamingBundleService.buyBundle(this.subscription,this.selectedProduct,e,t,this.bundleActivationDate,this.passwordIsRequired?this.password:void 0);z.info(`Adding roaming bundle... redirecting to ${i}`),this.goTo(i),await (0,u.i4)()}catch(i){let t=l.Ay.of(i);if(t.code===l.O4.NOT_ENOUGH_VP&&await this.loadVikingPoints(),t.code===l.O4.NOT_ALLOWED_BECAUSE_DUNNING)return void this.notify.error("roaming_bundle.error__add_roaming_bundle_blocked_because_of_dunning");if(t.code===l.O4.NO_IDENTITY_VERIFICATION)return void this.notify.error("roaming_bundle.error__cannot_add_roaming_bundle_authorized_subscription_with_missing_verification");if(t.code===l.O4.MAX_ROAMING_BUNDLE_AMOUNT_REACHED)return void this.notify.error("roaming_bundle.error__exceeded_max_amount_of_roaming_bundles_for_subscription");let e=(0,E.v)(t,[{code:l.O4.INVALID_VALUE,field:"password",on:"password",message:"password_incorrect"},{code:l.O4.RESIDUAL_AMOUNT_TOO_LOW,field:"reductions",on:"vpUsed",message:"roaming_bundle.error__split_payment_amount_too_small"},{code:l.O4.NOT_ENOUGH_VP,on:"vpUsed",message:"roaming_bundle.error__not_enough_vp"}]);this.uwaValidationErrors=e.result,e.firstIssue||(t.code===l.O4.ACTION_NOT_AUTHORIZED?this.notify.error("roaming_bundle.error_action_not_authorized"):t.code===l.O4.SUBSCRIPTION_DEACTIVATED?this.notify.error("roaming_bundle.error_subscription_deactivated"):t.code===l.O4.PRODUCT_ORDERED_TOO_OFTEN?this.notify.error("roaming_bundle.error_product_order_too_often_this_month"):t.code===l.O4.PRODUCT_CANNOT_BE_PAID_WITH_CALLING_CREDIT?(this.notify.error("roaming_bundle.error_product_cannot_be_paid_with_calling_credit"),z.error(`Tried to pay product ${this.selectedProduct.id} with calling credit`,t)):(t.code===l.O4.SUBSCRIPTION_TYPE_NOT_SUPPORTED?z.error(`Failed to add roaming bundle, prepaid product expected ${this.selectedProduct.id}`,t):z.error("Failed to add roaming bundle",t),this.notifyGenericErrors(i))),this.domUtils.scrollToFirst(".is-invalid",20)}}orderPayment(){return new r.Ay(this.vikingPointsCoverPrice?null:this.paymentMethod,this.vikingPointsEnabled?this.vikingPointsAmount:void 0)}async cancel(){await this.confirm(this.$t("roaming_bundle.confirm_cancel__question"),this.$t("roaming_bundle.confirm_cancel__title"),this.$t("roaming_bundle.confirm_cancel__confirm"),this.$t("roaming_bundle.confirm_cancel__cancel"))&&this.$router.push({name:O.A.myViking})}get totalRoamingBundlePrice(){return this.selectedProduct?this.selectedProduct.price:0}get availableSubscriptions(){return this.session&&this.session.mobileSubscriptions?this.session.mobileSubscriptions.filter(this.eligibleForRoamingBundle):[]}get availableBundleProducts(){return this.allBundleProducts&&this.subscription?this.allBundleProducts.filter(t=>t.type.startsWith(this.subscription.type)).sort((0,c.by)("price")):null}get availableBundleProductsForCountry(){return this.availableBundleProducts&&this.selectedCountryCode?this.availableBundleProducts.filter(t=>t.roamingBundleCountries.includes(this.selectedCountryCode)):null}async loadRoamingBundleProducts(){try{this.allBundleProducts=await this.productService.getRoamingBundleProducts(),this.allBundleProducts.length||z.error("No roaming bundle products found")}catch(t){z.error("Failed to load roaming bundles",t)}}async loadCallingCredit(){try{if(!this.subscription)return;if(!this.config.featureFlags.enableBundlePaymentWithCallCredit||!this.subscriptionIsPrepaid){this.callingCredit=null;return}this.callingCredit=(await this.uwa.getBalance(this.subscription.id))?.credit??0}catch(t){z.error("Failed to load balance",t)}}get allowCallingCredit(){return!!this.callingCredit&&(!this.vikingPointsEnabled||!(this.vikingPointsAmount>0))&&this.callingCredit>=this.totalRoamingBundlePrice+2.5}autoSelectCallingCredit(t,e){t&&!e&&(this.paymentMethod="callcredit")}async checkForRecentBundleOrders(){if(this.subscription){this.lastBundleOrderLoading=!0;try{this.lastBundleOrder=await this.roamingBundleService.getLastBundleOrder()}catch(t){z.error("Unable to get last bundle order",t)}finally{this.lastBundleOrderLoading=!1}}}async resetTypeSpecificFields(t,e){if(t&&e&&t?.type!==e?.type){if(this.bundleActivationDate=null,this.paymentMethod=null,!this.selectedProduct||!this.availableBundleProducts)return;let t=this.availableBundleProducts.find(t=>t.definitions.bundles.rowRoamingData===this.selectedProduct.definitions.bundles.rowRoamingData);t&&(this.selectedProduct=t)}}async loadVikingPoints(){try{this.vikingPointsBalance=Math.max(0,(await this.uwa.getVikingPointBalance()).available)}catch(t){z.error("Failed to load viking point balance",t),this.vikingPointsBalance=0}this.vikingPointsBalance>0&&this.totalRoamingBundlePrice&&(this.vikingPointsAmount=this.maxVikingPointsAmount)}get maxVikingPointsAmount(){return Math.min(this.totalRoamingBundlePrice,this.vikingPointsBalance)}autoEnableVikingPoints(){this.vikingPointsEnabled=this.canUseVikingPoints}setDefaultVpAmount(t){this.vikingPointsAmount=t}assureVpValue(){let t=Math.max(0,Math.min(+this.vikingPointsAmount,this.maxVikingPointsAmount));t!==this.vikingPointsAmount&&(this.vikingPointsAmount=t)}updatePricePlanTracking(){this.selectedProduct&&this.trackingService.updateRoamingBundle("selectBundle",this.selectedProduct)}updatePaymentMethodTracking(){this.paymentMethod&&this.trackingService.updateRoamingBundle("selectPaymentMethod",this.selectedProduct,this.paymentMethod)}
41showHideOtherErrorMessage(){this.otherCountryChosen="other"===this.selectedCountryCode}constructor(...t){super(...t),this.subscription=null,this.allBundleProducts=null,this.selectedProduct=null,this.vikingPointsBalance=100,this.vikingPointsEnabled=!1,this.vikingPointsAmount=0,this.paymentMethod=null,this.uwaValidationErrors={},this.password="",this.bundleActivationDate=null,this.callingCredit=null,this.roamingCountriesByCode=null,this.selectedCountryCode="",this.otherCountryChosen=!1,this.minActivationDate=this.clock.today(),this.maxActivationDate=this.clock.today().plusMonths(3),this.lastBundleOrderLoading=!1,this.lastBundleOrder=null,this.closeSidePanel=()=>{}}}(0,s.Cg)([(0,p.kv)({type:String,required:!1})],j.prototype,"productId",void 0),(0,s.Cg)([(0,p.kv)({type:String,required:!1,default:null})],j.prototype,"destination",void 0),(0,s.Cg)([(0,p.y_)()],j.prototype,"session",void 0),(0,s.Cg)([(0,p.y_)()],j.prototype,"roamingBundleService",void 0),(0,s.Cg)([(0,p.y_)()],j.prototype,"uwa",void 0),(0,s.Cg)([(0,p.y_)()],j.prototype,"confirm",void 0),(0,s.Cg)([(0,p.y_)()],j.prototype,"absoluteUrl",void 0),(0,s.Cg)([(0,p.y_)()],j.prototype,"goTo",void 0),(0,s.Cg)([(0,p.y_)()],j.prototype,"config",void 0),(0,s.Cg)([(0,p.y_)()],j.prototype,"domUtils",void 0),(0,s.Cg)([(0,p.y_)()],j.prototype,"client",void 0),(0,s.Cg)([(0,p.y_)()],j.prototype,"productService",void 0),(0,s.Cg)([(0,p.y_)()],j.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,p.y_)()],j.prototype,"globalDataPassService",void 0),(0,s.Cg)([(0,p.y_)()],j.prototype,"trackingService",void 0),(0,s.Cg)([(0,p.y_)()],j.prototype,"clock",void 0),(0,s.Cg)([(0,p.y_)()],j.prototype,"showInSidePanel",void 0),(0,s.Cg)([(0,p.y_)()],j.prototype,"faktaClient",void 0),(0,s.Cg)([(0,p.y_)()],j.prototype,"stepupMode",void 0),(0,s.Cg)([(0,p.ox)("subscription")],j.prototype,"onSubscriptionChange",null),(0,s.Cg)([(0,p.ox)("$route.hash",{immediate:!0}),(0,p.ox)("products.length")],j.prototype,"openCountriesSpc",null),(0,s.Cg)([(0,p.ox)("allowCallingCredit")],j.prototype,"autoSelectCallingCredit",null),(0,s.Cg)([(0,p.ox)("canUseVikingPoints",{immediate:!0})],j.prototype,"autoEnableVikingPoints",null),(0,s.Cg)([(0,p.ox)("maxVikingPointsAmount")],j.prototype,"setDefaultVpAmount",null),(0,s.Cg)([(0,p.ox)("selectedProduct")],j.prototype,"updatePricePlanTracking",null),(0,s.Cg)([(0,p.ox)("paymentMethod")],j.prototype,"updatePaymentMethodTracking",null),(0,s.Cg)([(0,p.ox)("selectedCountryCode")],j.prototype,"showHideOtherErrorMessage",null);var B=j=(0,s.Cg)([(0,p.uA)({components:{WizardNotification:N.A,InputPlaceholder:f.A,InlineNotification:C.A,ErrorPanel:_.A,DatePicker:h.A,RoamingBundleSelector:I,WizardFooter:x.A,WizardStep:T.A,Password:y.A,PaymentMethodSelector:D.A,Field:g.A,Checkbox:m.A,SimSelector:$.A,InfoItem:b.A,MvForm:v.A}})],j),F=(0,k.A)(B,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"AddRoamingBundle",attrs:{name:"addRoamingBundle"}},[t.availableSubscriptions.length>0?[t.goodToKnow?e("WizardStep",{attrs:{hideNumber:!0,title:t.$t("good_to_know")}},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.goodToKnow,expression:"goodToKnow"}],staticClass:"wizardStep__paddedContent ExternalContent"})]):t._e(),e("WizardStep",{attrs:{title:t.$t("roaming_bundle.select_sim")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("SimSelector",{attrs:{filter:t.eligibleForRoamingBundle,appearance:"radioGroup"},scopedSlots:t._u([{key:"emptySubscriptionsList",fn:function(){return[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("roaming_bundle.no_gdp_eligible_subscription"),expression:"$t('roaming_bundle.no_gdp_eligible_subscription')"}]})]},proxy:!0}],null,!1,0x12bea4eb),model:{value:t.subscription,callback:function(e){t.subscription=e},expression:"subscription"}})],1)])]:e("WizardNotification",{attrs:{state:"failure",title:t.$t("roaming_bundle.select_sim"),description:t.$t("roaming_bundle.no_gdp_eligible_subscription")}}),t.subscription?[t.availableBundleProducts&&0===t.availableBundleProducts.length?e("ErrorPanel",{attrs:{appearance:"ribbon",title:t.$t("roaming_bundle.no_bundles_for_subscription"),description:t.$t("roaming_bundle.no_bundles_for_subscription")}}):[e("WizardStep",{attrs:{title:t.$t("roaming_bundle.select_country_title")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("Field",{attrs:{label:t.$t("roaming_bundle.select_country_label")}},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedCountryCode,expression:"selectedCountryCode"},{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],class:{loading:!t.roamingCountriesByCode},attrs:{name:"country","data-qa":"roamingBundle-countrySelect"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selectedCountryCode=e.target.multiple?i:i[0]}}},[e("option",{attrs:{value:""}},[t._v(" "+t._s(t.$t("roaming_bundle.select_country_placeholder"))+" ")]),t._l(t.roamingCountriesByCode,function(i){return e("option",{key:i.code,domProps:{value:i.code}},[t._v(" "+t._s(i.name)+" ")])}),e("option",{attrs:{value:"other"}},[t._v(t._s(t.$t("roaming_bundle.select_country_other_option")))])],2)]),t.otherCountryChosen?e("InlineNotification",{staticClass:"AddRoamingBundle__inlineNotification",attrs:{notificationType:"danger-no-icon","data-qa":"roamingBundle-otherCountryNotification"}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("roaming_bundle.other_
41country_notification__html"),expression:"$t('roaming_bundle.other_country_notification__html')"}],staticClass:"externalContent"})]):t._e()],1)]),t.otherCountryChosen?t._e():[e("WizardStep",{attrs:{title:t.$t("roaming_bundle.select_bundle_title"),description:t.$t("roaming_bundle.select_bundle_description")}},[e("div",{staticClass:"wizardStep__paddedContent AddRoamingBundle__bundleSelector"},[t.selectedCountryCode?e("RoamingBundleSelector",{attrs:{"data-qa":"roamingBundle-roamingBundleSelector",options:t.availableBundleProductsForCountry,loading:null===t.availableBundleProductsForCountry},model:{value:t.selectedProduct,callback:function(e){t.selectedProduct=e},expression:"selectedProduct"}}):e("InputPlaceholder",{attrs:{"data-qa":"roamingBundle-roamingBundleSelectorInputPlaceholder",text:t.$t("roaming_bundle.select_country_first")}})],1)]),t.subscriptionIsPrepaid?e("WizardStep",{attrs:{title:t.$t("roaming_bundle.select_payment_method")}},[e("div",{staticClass:"wizardStep__paddedContent"},[t.selectedProduct?[e("div",{staticClass:"AddRoamingBundle__vpPanel ExpandableCheckbox"},[e("Checkbox",{staticClass:"ExpandableCheckbox__chk viking-points-check",attrs:{label:t.$t("roaming_bundle.viking_points_enable"),disabled:!t.canUseVikingPoints,tip:t.vikingPointsTip},model:{value:t.vikingPointsEnabled,callback:function(e){t.vikingPointsEnabled=e},expression:"vikingPointsEnabled"}}),t.vikingPointsEnabled?e("Field",{staticClass:"VpAmount ExpandableCheckbox__content nextStyleLevel",attrs:{label:t.$t("roaming_bundle.viking_points_amount"),hint:t.vikingPointsBalanceTip,validationErrors:t.$tList(t.uwaValidationErrors.vpUsed)}},[e("input",{directives:[{name:"model",rawName:"v-model.lazy.number",value:t.vikingPointsAmount,expression:"vikingPointsAmount",modifiers:{lazy:!0,number:!0}},{name:"validate",rawName:"v-validate",value:{required:!0,min_value:.01,decimal:2,max_value:t.maxVikingPointsAmount},expression:"{\n required: true,\n min_value: 0.01,\n decimal: 2,\n max_value: maxVikingPointsAmount,\n }"}],staticClass:"hide-spinner viking-points-amount",attrs:{type:"number",name:"vp-used"},domProps:{value:t.vikingPointsAmount},on:{wheel:function(t){return t.target.blur()},blur:[function(e){return t.assureVpValue()},function(e){return t.$forceUpdate()}],change:function(e){t.vikingPointsAmount=t._n(e.target.value)}}})]):t._e()],1),e("div",{staticClass:"AddRoamingBundle__bundleSummary"},[e("InfoItem",{staticClass:"sub-entry",attrs:{label:t.$t("roaming_bundle.summary_total")}},[t._v(" "+t._s(t._f("moneyCents")(t.totalRoamingBundlePrice))+" ")]),t.vikingPointsEnabled?e("InfoItem",{staticClass:"sub-entry",attrs:{label:t.$t("roaming_bundle.summary_viking_point_discount")}},[t._v(" "+t._s(t._f("moneyCents")(t.vikingPointsAmount))+" ")]):t._e(),e("InfoItem",{staticClass:"AddRoamingBundle__AmountDue",attrs:{label:t.$t("roaming_bundle.summary_left_to_pay")}},[t._v(" "+t._s(t._f("moneyCents")(t.orderTotal))+" ")])],1),t.orderTotal>0&&t.subscriptionIsPrepaid?e("PaymentMethodSelector",{staticClass:"AddRoamingBundle__paymentMethodSelector",attrs:{"data-qa":"addRoamingBundle-pms",allowCallingCredit:t.allowCallingCredit,subscriptionId:t.subscription.id,label:t.$t("roaming_bundle.pick_a_payment_method").toString()},model:{value:t.paymentMethod,callback:function(e){t.paymentMethod=e},expression:"paymentMethod"}}):t._e()]:e("InputPlaceholder",{attrs:{text:t.$t("roaming_bundle.select_gdp_first")}})],2)]):t._e(),t.config.featureFlags.enableBundleActivationInFuture&&t.subscriptionIsPrepaid?e("WizardStep",{attrs:{title:t.$t("roaming_bundle.schedule_activation_date_title"),description:t.$t("roaming_bundle.schedule_activation_date_description")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("DatePicker",{attrs:{styleLevel:2,maxDate:t.maxActivationDate,minDate:t.minActivationDate},model:{value:t.bundleActivationDate,callback:function(e){t.bundleActivationDate=e},expression:"bundleActivationDate"}})],1)]):t._e(),t.passwordIsRequired&&"password"===t.stepupMode?e("WizardStep",{attrs:{title:t.$t("roaming_bundle.your_password"),"data-qa":"password-step",description:t.$t("roaming_bundle.your_password_intro")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("input",{staticClass:"AddRoamingBundle__usernameHoneyPot",attrs:{name:"username",type:"text",tabindex:"-1"}}),e("Field",{attrs:{label:t.$t("password"),validationErrors:t.$tList(t.uwaValidationErrors.password,"validationError__")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:{required:t.passwordIsRequired},expression:"{ required: passwordIsRequired }"}],attrs:{name:"password",required:t.passwordIsRequired,"data-vv-as":t.$t("password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)],1)]):t._e(),t.availableBundleProducts?e("WizardFooter",{attrs:{ctaText:t.confirmCtaText,secCtaText:t.$t("roaming_bundle.cancel"),onConfirm:t.orderRoamingBundle},on:{reject:t.cancel},scopedSlots:t._u([t.legalese?{key:"legalChecks",fn:function(){return[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.legalese,expression:"legalese"}]})]},proxy:!0}:null],null,!0)}):t._e()]]]:t._e()],2)},[],!1,null,"ace75c42",null).exports}
41,24512:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return f}});var s=i(32198),a=i(58294),n=i(8921),o=i(92577),r=i(47211),l=i(67953),d=i(11774),c=i(78098),u=i(78160),p=i(10231),h=i(93199),_=i(3231);let m=(0,a.tZ)("AddRoamingBundleDoneView");class g extends l.lD{async onOrderIdChanged(){try{if(this.loading=!0,this.orderId||this.goToFirstStep(),this.roamingBundleRequest=await this.uwa.getBundleOrder(this.orderId),!this.roamingBundleRequest)return void this.$router.push({name:_.A.notFound});let t=this.roamingBundleRequest.subscriptionId;if(!t)throw Error(`no subscription ID, ${t}`);if("waiting_for_payment"===this.roamingBundleRequest.state&&(m.warning("Waiting for roaming bundle request that is still in a pending state"),this.roamingBundleRequest=await this.poll(()=>this.uwa.getBundleOrder(this.orderId),t=>t?.state!=="waiting_for_payment",5e3,3e6,"roaming bundle payment to be complete"),!this.roamingBundleRequest))throw new n.Ay(n.O4.CLIENT_ERROR,"No such roaming bundle request found");if(!(0,r.y)(this.roamingBundleRequest.state)){this.orderSucceeded=!1,this.titleService.pageTitle=this.$t("roaming_bundle_done.failure_route_title").toString(),this.titleService.pageDescription=this.$t("roaming_bundle_done.failure_route_description").toString(),this.trackingService.updateRoamingBundle("fail",this.roamingBundleRequest.product);return}let e=await this.uwa.getSubscription(t);if(!e){m.warning("Roaming bundle request refers to a non-existing subscription. Borking out."),this.$router.push({name:_.A.notFound});return}let i=(0,o.eW)(e);this.numberAndAlias=`${i.msisdn} (${i.alias})`,this.orderSucceeded=!0,this.titleService.pageTitle=this.$t("roaming_bundle_done.success_route_title").toString(),this.titleService.pageDescription=this.$t("roaming_bundle_done.success_route_description").toString(),this.trackingService.updateRoamingBundle("success",this.roamingBundleRequest.product)}catch(t){m.error("failed to load roaming bundle request order",t),this.goToError()}finally{this.loading=!1}}goToSimPage(){this.$router.push({name:_.A.sims})}goToFirstStep(){this.$router.push({name:_.A.addRoamingBundle})}constructor(...t){super(...t),this.roamingBundleRequest=null,this.loading=null,this.orderSucceeded=!1,this.numberAndAlias=""}}(0,s.Cg)([(0,l.kv)()],g.prototype,"orderId",void 0),(0,s.Cg)([(0,l.y_)()],g.prototype,"uwa",void 0),(0,s.Cg)([(0,l.y_)()],g.prototype,"trackingService",void 0),(0,s.Cg)([(0,l.y_)()],g.prototype,"absoluteUrl",void 0),(0,s.Cg)([(0,l.y_)()],g.prototype,"goToError",void 0),(0,s.Cg)([(0,l.y_)()],g.prototype,"titleService",void 0),(0,s.Cg)([(0,l.y_)()],g.prototype,"poll",void 0),(0,s.Cg)([(0,l.ox)("orderId",{immediate:!0}),(0,l.ox)("locale")],g.prototype,"onOrderIdChanged",null);var v=g=(0,s.Cg)([(0,l.uA)({components:{WizardLoading:h.A,WizardFooter:p.A,IconWithText:c.A,WizardDoneSummary:u.A,DealsAdvert:d.A}})],g),f=(0,i(41618).A)(v,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"AddRoamingBundleDone"},[this.loading?t("WizardLoading"):this.orderSucceeded?this.orderSucceeded?[t("WizardDoneSummary",[t("IconWithText",{staticClass:"MigrateDone-nextStepWhen",attrs:{iconUrl:"--icon-simcard-bg-url",text:this.$t("roaming_bundle_done.roaming_bundle_added_to_{number}",{number:this.numberAndAlias})}}),t("IconWithText",{staticClass:"MigrateDone-nextStepWhen",attrs:{iconUrl:"--icon-playingcards-bg-url",text:this.$t("roaming_bundle_done.may_take_a_few_minutes_to_see_added_bundles")}})],1),t("DealsAdvert"),t("WizardFooter",{attrs:{onConfirm:this.goToSimPage,ctaText:this.$t("to_my_viking")}})]:this._e():t("WizardFooter",{attrs:{onConfirm:this.goToFirstStep,ctaText:this.$t("try_again"),secCtaText:this.$t("back_to_{location}",{location:this.$t("my_viking")})},on:{reject:this.goToSimPage}})],2)},[],!1,null,"2feb0272",null).exports},30395:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return tp}});var s=i(32198),a=i(76565),n=i(58294),o=i(90004),r=i(1122),l=i(8921),d=i(62765),c=i(70180),u=i(94182),p=i(67953),h=i(17945),_=i(5669),m=i(95990),g=i(24176),v=i(47352),f=i(34313);class y extends p.lD{get percentageToBeDrawn(){let t=this.percentage>this.fakeLineCapPercentage?this.percentage-this.fakeLineCapPercentage:this.percentage;return t<0?0:t}get showFakeLineCap(){return this.percentage>0}get loading(){return -1===this.percentage}get viewBox(){return`0 0 ${this.dimensions} ${this.dimensions}`}get cx(){return this.dimensions/2}
41get cy(){return this.dimensions/2}get radius(){return this.dimensions/2-this.strokeWidth/2}get unlimited(){return"â"===this.formattedValue}strokeDashoffset(t){return(this.circumference*(1-t/100)).toString()}constructor(...t){super(...t),this.strokeWidth=6,this.dimensions=81,this.dangerThreshold=21,this.circumference=2*Math.PI*this.radius,this.fakeLineCapPercentage=2}}(0,s.Cg)([(0,p.kv)({type:String,required:!1,default:"paradiso"})],y.prototype,"styleClass",void 0),(0,s.Cg)([(0,p.kv)({type:String,required:!1,default:""})],y.prototype,"formattedValue",void 0),(0,s.Cg)([(0,p.kv)({type:String,required:!1,default:""})],y.prototype,"description",void 0),(0,s.Cg)([(0,p.kv)({type:Number,required:!1,default:-1})],y.prototype,"percentage",void 0),(0,s.Cg)([(0,p.kv)({type:Boolean,required:!1,default:!1})],y.prototype,"showWarning",void 0);var b=y=(0,s.Cg)([p.uA],y),C=i(41618),w=(0,C.A)(b,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"progress-circle",class:[{"is-loading":this.loading},this.styleClass,{danger:this.percentage<this.dangerThreshold}]},[t("div",{staticClass:"progress-circle-container"},[t("svg",{staticClass:"progress",attrs:{viewBox:this.viewBox}},[t("circle",{staticClass:"progress__meter",attrs:{cx:this.cx,cy:this.cy,r:this.radius,fill:"none","stroke-width":this.strokeWidth}}),t("circle",{staticClass:"progress__value",attrs:{"stroke-dasharray":this.circumference,"stroke-dashoffset":this.strokeDashoffset(this.percentageToBeDrawn),cx:this.cx,cy:this.cy,r:this.radius,fill:"none","stroke-width":this.strokeWidth}}),t("circle",{directives:[{name:"show",rawName:"v-show",value:this.showFakeLineCap,expression:"showFakeLineCap"}],staticClass:"fakeLineCap",attrs:{"stroke-dasharray":this.circumference,"stroke-dashoffset":this.strokeDashoffset(this.fakeLineCapPercentage),"stroke-linecap":"flat",fill:"none",cx:this.cx,cy:this.cy,r:this.radius,"stroke-width":this.strokeWidth}}),this.loading?this._e():t("text",{staticClass:"unitsLeft",class:{unlimited:this.unlimited},attrs:{x:"50%",y:"50%","aria-label":this.unlimited&&this.$t("unlimited"),dy:this.unlimited?"0":"-.1em"}},[this._v(" "+this._s(this.formattedValue)+" ")]),this.loading?this._e():t("text",{staticClass:"category",attrs:{x:"50%",y:"50%",dy:"1.5em"}},[this._v(" "+this._s(this.description)+" ")]),!this.loading&&this.showWarning?t("g",{attrs:{transform:"translate(35 60)"}},[t("path",{attrs:{d:"M13.3,10.3L7.7,0.6c-0.4-0.7-1.5-0.8-1.9,0l-5.6,9.8c-0.4,0.7,0.1,1.7,1,\n 1.7h11.2C13.2,12,13.8,11.1,13.3,10.3z M6,4.1h1.5 c0.2,0,0.3,0.1,0.3,\n 0.3L7.6,7.6c0,0.1-0.1,0.3-0.3,0.3H6.2C6,7.9,5.9,7.8,5.9,7.6L5.7,\n 4.4C5.7,4.3,5.8,4.1,6,4.1z M6.7,10.5 c-0.6,0-1.1-0.5-1.1-1.1s0.5-1.1,\n 1.1-1.1s1.1,0.5,1.1,1.1S7.3,10.5,6.7,10.5z",fill:"#F1E02F",transform:"scale(0.8 0.8)"}})]):this._e()]),this.loading?t("div",{staticClass:"shimmerContent"},[t("div",{staticClass:"shimmerUnitsLeft"},[this._v("Â ")]),t("div",{staticClass:"shimmerCategory"},[this._v("Â ")])]):this._e()])])},[],!1,null,null,null).exports;let S=(0,n.tZ)("MyVikingBalanceCircles"),M={total:0,remaining:0,used:0},A=["default","loyalty"];class k extends p.lD{get reducedBundles(){if(null===this.bundles)return this.loadingBundles();return(0,v.Bb)({voice:t(this.bundles.voice),data:t(this.bundles.data),sms:t(this.bundles.sms)});function t(e,i=t=>t){if(!e)return;let s=(0,v.RG)(e.filter(t=>A.includes(t.category)).map(i));if(s.length)return{remaining:s.map(t=>t.remaining).reduce((t,e)=>t+e,0),total:s.map(t=>t.total).reduce((t,e)=>t+e,0),used:s.map(t=>t.used).reduce((t,e)=>t+e,0)}}}loadingBundles(){let t={};for(let e of this.product&&this.product.bundleTypes?this.product.bundleTypes:["voice","data","sms"])t[e]=M;return t}getRemainingPercentage(t,e,i){return 0===i?-1:"data"===t&&this.isUnlimitedProduct||1/0===i?100:Math.round(e/i*100)}getStyleClassFromBundle(t){switch(t){case"sms":return"chetwodeBlue";case"voice":return"paradiso";case"data":return"pastelCerulean";default:return"stack"}}warningForBundle(t){return"data"===t&&this.dataThrottled}getFormattedValue(t,e){switch(t){case"sms":return 1/0===e?"â":e.toString();case"voice":return(0,f.H7)(e,this.$t.bind(this));case"data":return(0,u.DK)(this.isUnlimitedProduct?1/0:e,this.$t.bind(this),"no_unit");default:return S.error(`Failed to format value of unkown bundle type: ${t}`),e.toString()}}getDescription(t){return this.$t(`balanceCircle_description_${t}`).toString()}get isUnlimitedProduct(){return!!this.product&&(0,r.hX)(this.product)}handleClick(t){null!==this.bundles&&this.$emit("clickCircle",t)}}(0,s.Cg)([(0,p.kv)({type:Object,required:!1,default:null})],k.prototype,"bundles",void 0),(0,s.Cg)([(0,p.kv)({type:Object,required:!1,default:null})],k.prototype,"product",void 0),(0,s.Cg)([(0,p.kv)({type:Boolean,default:!1})],k.prototype,"dataThrottled",void 0);var I=k=(0,s.Cg)([(0,p.uA)({components:{ProgressCircle:w}})],k),x=(0,C.A)(I,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"MyVikingBalanceCircles"},t._l(t.reducedBundles,function(i,s,a){return e("ProgressCircle",{key:`loading-circle-${a}`,class:["MyVikingBalanceCircles__pc",{"MyVikingBalanceCircles__pc--isLoading":!t.bundles}],attrs:{percentage:t.getRemainingPercentage(s,i.remaining,i.total),styleClass:t.getStyleClassFromBundle(s),formattedValue:t.getFormattedValue(s,i.remaining),description:t.getDescription(s),showWarning:t.warningForBundle(s)},nativeOn:{click:function(e){return t.handleClick(s)}}})}),1)},[],!1,null,"4c2838c2",null).exports;class N extends p.lD{get loading(){return!this.itemData?.bundleName&&!this.itemData?.bundleTotal&&!this.itemData?.bundlePriceOrExpiration&&!this.itemData?.bundleUsed}}(0,s.Cg)([(0,p.kv)({required:!1,default:null})],N.prototype,"itemData",void 0);var T=N=(0,s.Cg)([p.uA],N),D=(0,C.A)(T,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"myviking-balance-item BalanceItem"},[this.loading?this._e():[t("strong",{staticClass:"BalanceItem__bundleName"},[this._v(this._s(this.itemData.bundleName))]),t("div",{staticClass:"BalanceItem__bundlePriceOrExpiration"},[this._v(this._s(this.itemData.bundlePriceOrExpiration))]),t("strong",{class:["BalanceItem__bundleTotal",{unlimited:"â"===this.itemData.bundleTotal}],attrs:{"aria-label":"â"===this.itemData.bundleTotal&&this.$t("unlimited")}},[this._v(" "+this._s(this.itemData.bundleTotal)+" ")]),t("div",{staticClass:"BalanceItem__bundleUsed"},[this._v(this._s(this.itemData.bundleUsed))])],this.loading?[t("strong",{staticClass:"BalanceItem__bundleName shimmer"},[this._v("Â ")]),t("div",{staticClass:"BalanceItem__bundlePriceOrExpiration shimmer"},[this._v("Â ")]),t("strong",{staticClass:"BalanceItem__bundleTotal shimmer"},[this._v("Â ")]),t("div",{staticClass:"BalanceItem__bundleUsed shimmer"},[this._v("Â ")])]:this._e()],2)},[],!1,null,null,null).exports,$=i(44739),P=i(11897),L=i(28687),E=i(50778);class O extends p.lD{get isLoading(){return!this.bundle}get unlimitedDataMaxUsage(){return 1024*this.fupAmountMb*1024}get isUnlimitedDataUsageReached(){return(this.bundle?.used||0)>=this.unlimitedDataMaxUsage}get icon(){let t={data:{iconUrl:i(41757),subIconUrl:void 0},sms:{iconUrl:i(39004),subIconUrl:void 0},voice:{iconUrl:i(32436),subIconUrl:void 0},roaming:{iconUrl:i(41757),subIconUrl:i(54981)},undefined:{iconUrl:void 0,subIconUrl:void 0}};return this.bundleRowData.type&&t[this.bundleRowData.type]?t[this.bundleRowData.type]:t.undefined}get bundleRowData(){let t=this.bundle;if(!t)return{};let e="sms"===t.type?this.$t("sent").toString():this.$t("used").toString();if("roaming"===this.type&&t.rlah&&0!==t.rlah.total){let i=(0,u.Gg)(t.rlah.total,t.type,this.$t.bind(this),"no_unit");return{type:"roaming",title:this.$t("balance.rlah_roaming_tag").toString(),expiry:this.$t("expires_on_{formattedDate}",{formattedDate:(0,c.r6)(t.validUntil,this.locale)}).toString(),total:i,used:(0,u.Gg)(t.rlah.used,t.type,this.$t.bind(this)),remaining:(0,u.Gg)(t.rlah.remaining,t.type,this.$t.bind(this)),usedComplement:e,unlimited:1/0===t.rlah.total,internationalRoaming:!1,rlahRoaming:!0}}if("roaming"===this.type&&t.internationalRoaming&&0!==t.internationalRoaming.total){let i=(0,u.Gg)(t.internationalRoaming.total,t.type,this.$t.bind(this),"no_unit");return{type:"roaming",title:this.$t("balance.row_roaming_tag").toString(),expiry:this.$t("expires_on_{formattedDate}",{formattedDate:(0,c.r6)(t.validUntil,this.locale)}).toString(),total:i,used:(0,u.Gg)(t.internationalRoaming.used,t.type,this.$t.bind(this)),remaining:(0,u.Gg)(t.internationalRoaming.remaining,t.type,this.$t.bind(this)),usedComplement:e,unlimited:1/0===t.internationalRoaming.total,rlahRoaming:!1,internationalRoaming:!0}}let i=(0,P.So)(t),s=(0,u.Gg)(i?1/0:t.total,t.type,this.$t.bind(this),"no_unit");return{type:t.type,title:this.$t(`bundle_title_${t.type}`).toString(),expiry:this.$t("expires_on_{formattedDate}",{formattedDate:(0,c.r6)(t.validUntil,this.locale)}).toString(),total:s,used:(0,u.Gg)(t.used,t.type,this.$t.bind(this)),remaining:(0,u.Gg)(t.remaining,t.type,this.$t.bind(this)),usedComplement:e,unlimited:i,unlimitedMaxUsage:"data"===t.type?(0,u.Gg)(this.unlimitedDataMaxUsage,t.type,this.$t.bind(this)):void 0}}get screenreaderText(){if(!this.bundle)return"";let t=`${this.bundleRowData.title}: `;return"data"===this.bundleRowData.type?t+=`${this.bundleRowData.remaining} ${this.$t("of_{total}_left",{total:this.bundleRowData.total})}. ${this.bundleRowData.expiry}`:t+=`${this.bundleRowData.remaining} ${this.$t("of_{total}_left",{total:this.bundleRowData.total})}. ${this.bundleRowData.expiry}. ${this.bundleRowData.used} ${this.bundleRowData.usedComplement}`,t.replace(RegExp("â","g"),this.$t("unlimited").toString())}}(0,s.Cg)([(0,p.kv)({type:Object,required:!1})],O.prototype,"bundle",void 0),(0,s.Cg)([(0,p.kv)({type:String,required:!1,default:"default"})],O.prototype,"listItemType",void 0),(0,s.Cg)([(0,p.kv)({type:String})],O.prototype,"type",void 0),(0,s.Cg)([(0,p.kv)({type:Number,required:!1})],O.prototype,"fupAmountMb",void 0);var z=O=(0,s.Cg)([(0,p.uA)({components:{Icon:L.A,Tag:E.A}})],O),j=(0,C.A)(z,function(){var t=this._self._c;return this._self._setupProxy,this.isLoading?t("div",{staticClass:"BundlesListItem is-loading BundlesListItem--loading"},[t("div",{staticClass:"BundlesListItem__type bundle-row-title"}),t("div",{staticClass:"total BundlesListItem__total"}),t("div",{staticClass:"BundlesListItem__remaining remaining"}),t("div",{staticClass:"expiry BundlesListItem__expiry"})]):t("div",{staticClass:"BundlesListItem",class:{"BundlesListItem--default":"default"===this.listItemType,"BundlesListItem--subitem":"subitem"===this.listItemType,"BundlesListItem--unlimited":this.bundleRowData.unlimited},attrs:{"aria-label":this.screenreaderText}},[t("div",{staticClass:"BundlesListItem__type bundle-row-title"},[this._v(" "+this._s(this.bundleRowData.title)+" ")]),this.bundleRowData.unlimited?t("div",{staticClass:"BundlesListItem__total total unlimited",attrs:{"aria-label":this.$t("unlimited")}},[this._v(" "+this._s(this.bundleRowData.total)+" ")]):t("div",{staticClass:"total BundlesListItem__total"},[this._v(" "+this._s(this.$t("of_{total}_left",{total:this.bundleRowData.total}))+" ")]),this.bundleRowData.unlimited?t("div",{staticClass:"used BundlesListItem__used"},[this.isUnlimitedDataUsageReached?[this._v(" "+this._s(this.$t("balance.over_{maxUsage}",{maxUsage:this.bundleRowData.unlimitedMaxUsage}))+" ")]:[this._v(" "+this._s(this.bundleRowData.used)+" "+this._s(this.bundleRowData.usedComplement)+" ")]],2):t("div",{staticClass:"BundlesListItem__remaining remaining"},[this._v(this._s(this.bundleRowData.remaining))]),t("div",{staticClass:"BundlesListItem__tag"},[this.bundleRowData.rlahRoaming?t("Tag",{attrs:{size:"small",appearance:"blue"}},[this._v(" "+this._s(this.$t("balance.rlah_roaming_tag"))+" ")]):this._e(),this.bundleRowData.internationalRoaming?t("Tag",{attrs:{size:"small",appearance:"turquoise"}},[this._v(" "+this._s(this.$t("balance.row_roaming_tag"))+" ")]):this._e()],1),t("Icon",{staticClass:"BundlesListItem__icon",attrs:{appearance:"inCircle",iconUrl:this.icon.iconUrl,
41subIconUrl:this.icon.subIconUrl}}),t("div",{staticClass:"expiry BundlesListItem__expiry"},[this._v(this._s(this.bundleRowData.expiry))])],1)},[],!1,null,"21c08ee9",null).exports;class B extends p.lD{get uniqueId(){return`bundlesListSubItem__${F++}`}toggleOpen(t){this.expanded=t??!this.expanded,this.$emit("toggleStack",{expanded:this.expanded})}constructor(...t){super(...t),this.expanded=!1}}(0,s.Cg)([(0,p.kv)()],B.prototype,"type",void 0),(0,s.Cg)([(0,p.kv)()],B.prototype,"bundles",void 0),(0,s.Cg)([(0,p.kv)()],B.prototype,"fupAmountMb",void 0);let F=0;var q=B=(0,s.Cg)([(0,p.uA)({components:{BundlesListItem:j}})],B),R=(0,C.A)(q,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"BundlesListSubMenu"},[e("button",{directives:[{name:"rippleEffect",rawName:"v-rippleEffect"}],staticClass:"myViking-bundlesList-item BundlesListSubMenu__parent MultipleBundlesParent",attrs:{"aria-expanded":t.expanded?"true":"false","aria-controls":t.uniqueId},on:{click:function(e){return e.stopPropagation(),t.toggleOpen()},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:(e.preventDefault(),t.toggleOpen())}}},[e("span",{staticClass:"MultipleBundlesParent__container"},[e("strong",{staticClass:"MultipleBundlesParent__title bundle-title"},[t._v(" "+t._s(t._f("capFirst")(t.$t(`bundle_title_${t.type}`)))+" ")]),e("div",{staticClass:"MultipleBundlesParent__description description"},[t._v(" "+t._s(t.$tc("balance.{n}_active_bundles",t.bundles.length))+" ")])])]),e("ul",{staticClass:"children",style:`--children-count: ${t.bundles.length}`,attrs:{id:t.uniqueId,"aria-hidden":!t.expanded}},[t._l(t.bundles,function(i,s){return[e("li",{key:s,staticClass:"BundlesListSubMenu__child"},[e("BundlesListItem",{staticClass:"myViking-bundlesList-item",attrs:{bundle:i,type:t.type,fupAmountMb:t.fupAmountMb,listItemType:"subitem"}})],1)]})],2)])},[],!1,null,"aa127be2",null).exports,U=i(45656);class V extends p.lD{get uniqueId(){return`bundlesList__${W++}`}get loading(){return this.loadingItems>0&&null===this.bundles}throttleWarning(t,e){if("data"!==e||!this.dataThrottled)return null;let i=this.$t.bind(this),s=(0,u.Gg)(1024*this.fupAmountMb*1024,"data",i),a=(0,u.Gg)(t.map(t=>t.used).reduce((t,e)=>t+e,0),"data",i);return this.$t("balance.you_used_your_{fupAmount}_of_fup_and_are_throttled__used_data_{usedAmount}",{fupAmount:s,usedAmount:a})}async scrollToBundle(t){let e=this.$refs[`bundlesList-${t}`],i=(0,v.h7)(e);i&&(i.$el.scrollIntoView({behavior:"smooth"}),i instanceof R&&i.toggleOpen(!0),await (0,$.yy)(500),i.$el instanceof HTMLElement&&i.$el.focus())}constructor(...t){super(...t),this.expanded={voice:!1,sms:!1,data:!1,roaming:!1}}}(0,s.Cg)([(0,p.kv)({required:!1,default:null})],V.prototype,"bundles",void 0),(0,s.Cg)([(0,p.kv)({type:Number,required:!1,default:3})],V.prototype,"loadingItems",void 0),(0,s.Cg)([(0,p.kv)({type:Boolean,default:!1})],V.prototype,"dataThrottled",void 0),(0,s.Cg)([(0,p.kv)({type:Number,default:0})],V.prototype,"fupAmountMb",void 0);let W=0;
41var Q=V=(0,s.Cg)([(0,p.uA)({components:{BundlesListSubMenu:R,BundlesListItem:j,LinksetInfo:U.A}})],V),Y=(0,C.A)(Q,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("ul",{staticClass:"BundlesList nextStyleLevel"},[t.loading?t._e():[t._l(t.bundles,function(i,s){return["value"!==s?e("li",{key:s},[t.throttleWarning(i,s)?e("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.throttleWarning(i,s),expression:"throttleWarning(bundleGroup, type)"}],staticClass:"nextStyleLevel",attrs:{isWarning:!0}}):t._e(),i.length>1||i.length>0&&"roaming"===s?e("BundlesListSubMenu",{ref:`bundlesList-${s}`,refInFor:!0,staticClass:"myViking-bundlesList-multipleBundles multipleBundles",attrs:{type:s,bundles:i,fupAmountMb:t.fupAmountMb},on:{toggleStack:function(e){return t.$emit("toggleStack",{type:s,expanded:e})}}}):1===i.length?e("BundlesListItem",{ref:`bundlesList-${s}`,refInFor:!0,staticClass:"myViking-bundlesList-item",attrs:{bundle:i[0],type:s,fupAmountMb:t.fupAmountMb}}):t._e()],1):t._e()]})],t.loading?t._l(t.loadingItems,function(t){return e("li",{key:"shimmer-"+t},[e("BundlesListItem",{staticClass:"myViking-bundlesList-item"})],1)}):t._e()],2)},[],!1,null,"66b03a9e",null).exports,G=i(56562),H=i(49663),Z=i(84776);let J=(0,n.tZ)("ClanSummary");class K extends p.lD{async loadClan(){try{if(this.loading=!0,!this.subscription||!this.subscription.product.isClanProduct)return;this.clan=await this.clanService.getClanForSubscription(this.subscription),this.maxClanAdvantage=await this.clanService.getMaxClanAdvantage()}catch(t){J.error("Failed to load clan",t)}finally{this.loading=!1}}openClanSidePanel(){this.showInSidePanel(Z.A)}openClanFaqItemSidePanel(){let t=this.$t("clan_summary.faq_item_id");this.showInSidePanel(H.default,{id:t})}get title(){return this.clan&&this.clan.isActive?this.clan?.name?this.clan.name:this.clan?.name??this.$t("clan_summary.your_clan_title"):this.$t("clan_summary.form_clan_title")}get description(){if(!this.clan)return this.$t("clan_summary.no_clan_yet_description_enjoy_up_to_{maxAdvantage}__html",{maxAdvantage:this.maxClanAdvantage});let t=(this.clan.activeAdvantage??this.clan.advantage??"").replace(/\s+/g,"Â ");switch(this.clan.recentGrowth){case"increase":if(this.clan.isFull)return this.$t("clan_summary.maxed_out_viking_clan_perks__html",[t,this.clan.maxAdvantage]);return this.$t("clan_summary.increasing_viking_clan_perks__html",[t]);case"decrease":return this.$t("clan_summary.fleeting_viking_clan_perks__html",[t]);default:if(!this.clan.isActive)return this.$t("clan_summary.no_clan_yet_description_enjoy_up_to_{maxAdvantage}__html",{maxAdvantage:this.clan.maxAdvantage});if(this.clan.isFull)return this.$t("clan_summary.full_viking_clan_perks__html",[t]);return this.$t("clan_summary.current_viking_clan_perks__html",[t])}}get hasClanWithAdvantage(){return this.clan&&this.clan.isActive&&this.clan.activeAdvantage}constructor(...t){super(...t),this.clan=null,this.loading=!0,this.maxClanAdvantage=null}}(0,s.Cg)([(0,p.kv)()],K.prototype,"subscription",void 0),(0,s.Cg)([(0,p.y_)()],K.prototype,"clanService",void 0),(0,s.Cg)([(0,p.y_)()],K.prototype,"showInSidePanel",void 0),(0,s.Cg)([(0,p.ox)("subscription.id",{immediate:!0})],K.prototype,"loadClan",null);var X=K=(0,s.Cg)([(0,p.uA)({components:{MvSection:G.A,CallToAction:g.A,CollapsiblePanel:h.A}})],K),tt=(0,C.A)(X,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.subscription&&t.subscription.product.isClanProduct&&(t.clan&&"0"!==t.clan.activeAdvantage||t.subscription.isOwner)?e("MvSection",{staticClass:"MyVikingClanSummary nextStyleLevel",attrs:{"data-qa":"my-viking-clan-summary"}},[t.loading?e("div",{staticClass:"MyVikingClanSummary__shimmer"},[e("div",{staticClass:"MyVikingClanSummary__header"},[e("div",{staticClass:"MyVikingClanSummary__clanDescription"},[e("div",{staticClass:"MyVikingClanSummary__clanTitle"}),e("div",{staticClass:"MyVikingClanSummary__clanMembers"})])])]):e("CollapsiblePanel",{attrs:{appearance:"emphasised",openCloseIndicator:"chevron-emphasised",centerIndicator:!0},scopedSlots:t._u([{key:"header",fn:function(){return[e("header",{staticClass:"MyVikingClanSummary__header"},[e("div",{staticClass:"MyVikingClanSummary__clanIndicator"},[e("div",{staticClass:"MyVikingClanSummary__clanDescription"},[e("div",{staticClass:"MyVikingClanSummary__clanTitle"},[t._v(t._s(t.title))]),t.clan?e("div",{staticClass:"MyVikingClanSummary__clanMembers"},[t._v(" "+t._s(t.clan.memberDescription)+" ")]):t._e()]),t.hasClanWithAdvantage&&t.clan?e("section",{staticClass:"MyVikingClanSummary__memberEffect"},[t.clan.isTrial?e("div",{staticClass:"MyVikingClanSummary__clanAdvantage"},[t._v(" "+t._s(t.$t("clan_summary.{gigs}_extra",{gigs:t.clan.activeAdvantage}))+" ")]):e("div",{staticClass:"MyVikingClanSummary__clanAdvantage"},[t._v(" "+t._s(t.$t("clan_summary.{gigs}_extra_per_month",{gigs:t.clan.activeAdvantage}))+" ")]),t.subscription.isOwner?e("div",[t.clan.newVikingsAllowed?e("div",{staticClass:"MyVikingClanSummary__clanNotFull",attrs:{to:{query:{spc:"clan"}}}},[t._v(" "+t._s(t.$t("clan_summary.still_places_left_link"))+" ")]):e("div",{staticClass:"MyVikingClanSummary__clanFull"},[t._v(" "+t._s(t.$t("clan_summary.clan_is_full"))+" ")])]):t._e()]):e("section",{staticClass:"MyVikingClanSummary__memberEffect"},[e("div",{staticClass:"MyVikingClanSummary__clanAdvantage"},[t._v(" "+t._s(t.$t("clan_summary.{gigs}_extra_per_month",{gigs:"0 GB"}))+" ")]),e("div",{staticClass:"MyVikingClanSummary__clanNotFull"}
41,[t._v(" "+t._s(t.$t("clan_summary.start_clan_for_benefits"))+" ")])])])])]},proxy:!0},{key:"content",fn:function(){return[e("div",{staticClass:"MyVikingClanSummary__content"},[t.subscription.isOwner?e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.description,expression:"description"}],staticClass:"MyVikingClanSummary__contentDescription"}):t._e(),e("div",{staticClass:"MyVikingClanSummary__ctas"},[t.clan&&!t.clan.isFull&&t.subscription.isOwner?e("div",{staticClass:"MyVikingClanSummary__cta",attrs:{"data-qa":"clan-add-member-button"}},[e("CallToAction",{attrs:{appearance:"secondary"},on:{click:t.openClanSidePanel}},[t._v(" "+t._s(t.$t("balance_postpaid.form_clan_cta"))+" ")])],1):t._e(),e("div",{staticClass:"MyVikingClanSummary__cta",attrs:{"data-qa":"clan-extra-info-button"}},[e("CallToAction",{attrs:{appearance:"link"},on:{click:t.openClanFaqItemSidePanel}},[t._v(t._s(t.$t("balance_postpaid.form_clan_secondary_cta")))])],1)])])]},proxy:!0}],null,!1,0xb7985964)})],1):t._e()},[],!1,null,"40cf8ad5",null).exports,te=i(99679),ti=i(6008),ts=i.n(ti),ta=i(26790);class tn extends p.lD{parseRlahBundles(t){let e=t.reduce((t,e)=>t+(e.rlah?.total??0),0),i=t.reduce((t,e)=>t+(e.rlah?.remaining??0),0);return{title:this.$t("balance.rlah_roaming_tag").toString(),total:(0,u.Gg)(e,"data",this.$t.bind(this),"no_unit"),remaining:(0,u.Gg)(i,"data",this.$t.bind(this)),percentage:ts()(i/e*100)}}parseInternationalRoamingBundles(t){let e=t.reduce((t,e)=>t+(e.internationalRoaming?.total??0),0),i=t.reduce((t,e)=>t+(e.internationalRoaming?.remaining??0),0);return{title:this.$t("balance.row_roaming_tag").toString(),total:(0,u.Gg)(e,"data",this.$t.bind(this),"no_unit"),remaining:(0,u.Gg)(i,"data",this.$t.bind(this)),percentage:ts()(i/e*100)}}get bundleData(){let t=this.bundles,e={total:"",remaining:"",title:"",percentage:0};return 0===t.length?e:t[0].rlah&&0!==t[0].rlah.total?this.parseRlahBundles(t):t[0].internationalRoaming&&0!==t[0].internationalRoaming.total?this.parseInternationalRoamingBundles(t):e}}(0,s.Cg)([(0,p.kv)({type:String,required:!1,default:"blue"})],tn.prototype,"appearance",void 0),(0,s.Cg)([(0,p.kv)({required:!0,default:[]})],tn.prototype,"bundles",void 0);var to=tn=(0,s.Cg)([(0,p.uA)({components:{Tag:E.A,ProgressBar:ta.A}})],tn),tr=(0,C.A)(to,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"RoamingBundleUsage",on:{click:function(e){return t.$emit("clickItem")}}},[e("div",{staticClass:"RoamingBundleUsage__used"},[t._v(" "+t._s(t.bundleData.remaining)+" ")]),e("Tag",{staticClass:"RoamingBundleUsage__tag",attrs:{size:"small",appearance:t.appearance}},[t._v(" "+t._s(t.bundleData.title)+" ")]),e("div",{staticClass:"RoamingBundleUsage__total"},[t._v(" "+t._s(t.$t("of_{total}_left",{total:t.bundleData.total}))+" ")]),e("div",{staticClass:"RoamingBundleUsage__progressbar"},[e("ProgressBar",{staticClass:"styleLevel0",attrs:{speed:"2s",actualValue:t.bundleData.percentage,startAnimation:"",accent:t.appearance,compact:!0}})],1)],1)},[],!1,null,"47a3cbb6",null).exports,tl=i(3231);let td=(0,n.tZ)("Balance-view");class tc extends p.lD{get isLoading(){return null===this.balance}async onSubscriptionChanged(){let t=this.session.mobileSubscription;await this.loadBalance(t),this.balance&&(this.fetchAndSetPendingMigration(t),this.fetchAndSetExistsPendingOrReviewNeededTopup(t),this.fetchAndSetPendingBundleOrder(t),this.fetchAndSetClan(t))}async loadBalance(t){if(this.balance=null,t)try{if(this.balance=await this.subscriptionService.getBalance(t),!this.balance){this.balanceUnavailable=!0;return}this.bundleRates=this.balance.rates}catch(t){l.Ay.of(t).code===l.O4.NO_AUTHORIZATION_ON_SUBSCRIPTION?this.$router.push({name:tl.A.myViking}):(td.error("Not able to fetch balance",t),this.notifyGenericErrors(t),this.goToError())}}async fetchAndSetPendingMigration(t){if(this.pendingMigration=null,t)try{this.pendingMigration=await this.subscriptionService.getPendingMigration(t)}catch(e){td.error(`Not able to fetch pending migration for ${t.id}`,e)}}async fetchAndSetExistsPendingOrReviewNeededTopup(t){if(this.existsPendingTopup=!1,this.existsReviewNeededTopup=!1,t&&"prepaid"===t.type)try{let[e,i]=await Promise.all([this.topupService.hasPendingTopups(t.id),this.topupService.hasReviewNeededTopups(t.id)]);this.existsPendingTopup=e,this.existsReviewNeededTopup=i}catch(e){td.error(`Not able to fetch pending or review needed topups for ${t.id}`,e)}}async fetchAndSetClan(t){if(t)try{if(!this.subscription||!this.subscription.product.isClanProduct)return;this.clan=await this.clanService.getClanForSubscription(this.subscription)}catch(t){td.error("Failed to load clan",t)}}async fetchAndSetPendingBundleOrder(t){if(this.hasPendingBundleOrder=!1,t)try{this.hasPendingBundleOrder=await this.roamingBundleService.hasPendingBundleOrders(t.id)}catch(e){td.error(`Not able to fetch pending bundle orders for ${t.id}`,e)}}get subscription(){return this.session.mobileSubscription||null}get product(){return this.session.mobileSubscription?this.session.mobileSubscription.product:null}get fupAmountMb(){if(!this.subscription||!(0,r.s1)(this.subscription.product))return 0;let t=this.subscription.product.definitions.bundles;return t.fupData||t.data||0}get isAnyDataOnlyProduct(){return!!this.product&&("data-only-2019"===this.product.variant||"data-only"===this.product.variant)}get subscriptionIsDefaultPrepaid(){return!!this.product&&(0,r.$o)(this.product)&&!this.isAnyDataOnlyProduct}get rlahBundles(){return this.balance?this.balance.rlahBundles:[]}get internationalRoamingBundles(){return this.balance?this.balance.internationalRoamingBundles:[]}get balanceBundles(){return this.balance?this.balance.bundles:null}get showCallingCredit(){return!!this.subscriptionIsDefaultPrepaid&&
41!!this.callingCredit&&!!this.balance&&void 0!==this.balance.credit&&(this.balance.credit>0||!this.hasNoBundles)}get callingCredit(){if(!this.balance||!this.bundleRates||void 0===this.balance.credit)return null;let t=this.bundleRates,e=()=>this.$t("about_{minutesLeft}_minutes_left",{minutesLeft:this.calculateAmountLeft("voice")}).toString();return{bundleName:this.$t("calling_credit").toString(),bundlePriceOrExpiration:void 0!==this.bundleRates.voice?`${(0,d.up)(t.voice,"two_to_four")} / min`:"",bundleTotal:(0,d.up)(this.balance.credit,"always_two"),bundleUsed:this.balance.credit?e():""}}get vikingAdvantage(){if(!this.balance)return this.subscriptionIsPostpaid?null:{};let t=this.balance.vikingAdvantage;return t?{bundleName:this.$t("national_calling_minutes_to_other_vikings").toString(),bundlePriceOrExpiration:this.$t("expires_on_{formattedDate}",{formattedDate:(0,c.r6)(t.validUntil,this.locale)}).toString(),bundleTotal:(0,u.Gg)(t.total,"voice",this.$t.bind(this),"no_unit").toString(),bundleUsed:`${(0,u.Gg)(t.used,"voice",this.$t.bind(this),"no_unit")} ${this.$t("used").toString()}`}:null}get subscriptionIsPostpaid(){return!!this.session.mobileSubscription&&"postpaid"===this.session.mobileSubscription.type}get hasNoBundles(){return!!this.balance&&!this.balance.hasBundles}get hasBundlesWithCategory(){return!!this.balanceBundles&&(this.hasCategory(this.balanceBundles.data)||this.hasCategory(this.balanceBundles.voice)||this.hasCategory(this.balanceBundles.sms))}hasCategory(t){return t.some(t=>["default","loyalty"].includes(t.category))}get hasRoamingBundles(){return!!this.balanceBundles&&(!!this.balance?.rlahBundles?.length||!!this.balance?.internationalRoamingBundles?.length)}get creditDepleted(){return!!this.session.mobileSubscription&&"prepaid"===this.session.mobileSubscription.type&&!!this.balance&&0===this.balance.credit}get hasOobCosts(){return this.subscriptionIsPostpaid&&!!this.balance&&!!this.balance.outOfBundleCost&&!!this.session.mobileSubscription.oobThreshold}get notifications(){if(this.balanceUnavailable)return[{description:this.$t("balance.your_balance_is_temporarily_unavailable")}];let t=[],e=(e,i)=>{t.push({description:e,cta:i})};if(this.existsPendingTopup&&e(this.$t("balance_prepaid.notification_topup_is_being_processed")),this.existsReviewNeededTopup&&e(this.$t("balance_prepaid.notification_topup_needs_review")),this.hasPendingBundleOrder&&e(this.$t("balance.notification_bundle_order_is_being_processed")),!this.balance)return t;if(this.hasNoBundles&&!this.creditDepleted&&e(this.$t("balance_prepaid.notification_bundles_expired_description")),this.hasOobCosts){let e=(this.balance.lastBundleRenewalDate||a.LocalDate.now()).toString(),i=a.LocalDate.now().toString();t.push({description:this.$t("balance_postpaid.notification_oob_costs_description_with_invoice_{outOfBundleCost}_{threshold}_{nextBillingRun}",{outOfBundleCost:(0,d.up)(this.balance.outOfBundleCost,"always_two"),threshold:(0,d.up)(this.session.mobileSubscription.oobThreshold,"always_two"),nextBillingRun:(0,c.Yq)(this.session.mobileSubscription.nextBillingRun)}),cta:{label:this.$t("balance_postpaid.notification_oob_costs_cta"),to:{name:tl.A.usage,query:{start:e,end:i,paid_only:"true"}}},secondaryCta:{label:this.$t("balance_postpaid.notification_oob_costs_secondary_cta"),to:{query:{spc:"out-of-bundle"}}}})}if(this.session.mobileSubscription&&this.session.mobileSubscription.employerLink&&"paused"===this.session.mobileSubscription.employerLink.state&&t.push({description:this.$t("balance.you_company_is_in_dunning_state_notification"),cta:{label:this.$t("balance.you_company_is_in_dunning_state_notification_cta"),to:{query:{spc:"b2b-unlink-employer"}}}}),this.session.mobileSubscription&&(0,r.s1)(this.session.mobileSubscription.product)){let t=this.session.mobileSubscription.product;this.balance.rlahDataExhausted&&this.balance.dataThrottled?e(this.$t("balance_postpaid.rlah_data_exhausted_and_throttled_{firstName}_{monthly}_{fupData}_{rlahData}_{rate}_{bundleRenewalDate}",{firstName:this.session.profile.firstName,monthly:t.monthly,fupData:(0,u.z3)(t.definitions.bundles.fupData||0),rlahData:(0,u.z3)(t.definitions.bundles.rlahData||0),rate:(0,d.up)(t.definitions.rates.rlahData,"two_to_four"),bundleRenewalDate:(0,c.Yq)(this.balance.bundleExpiryDate)})):this.balance.dataThrottled?e(this.$t("balance_postpaid.data_is_throttled_{firstName}_{monthly}_{fupData}_{bundleRenewalDate}_or_renew_now",{firstName:this.session.profile.firstName,monthly:t.monthly,fupData:(0,u.z3)(t.definitions.bundles.fupData||0),bundleRenewalDate:(0,c.Yq)(this.balance.bundleExpiryDate)}),{label:this.$t("renew_bundle"),to:{name:tl.A.bundleRenewal,params:{subscriptionId:this.session.mobileSubscription.id}}}):this.balance.dataExhausted?e(this.$t("balance_postpaid.no_data_{firstName}_{monthly}_{data}_{rate}_{bundleRenewalDate}_or_renew_now",{firstName:this.session.profile.firstName,monthly:t.monthly,data:(0,u.z3)(t.definitions.bundles.data||0),rate:(0,d.up)(t.definitions.rates.data,"two_to_four"),bundleRenewalDate:(0,c.Yq)(this.balance.bundleExpiryDate)}),{label:this.$t("renew_bundle"),to:{name:tl.A.bundleRenewal,params:{subscriptionId:this.session.mobileSubscription.id}}}):this.balance.rlahDataExhausted&&e(this.$t("balance_postpaid.rlah_data_exhausted_{firstName}_{monthly}_{data}_{rlahData}_{rate}_{bundleRenewalDate}",{firstName:this.session.profile.firstName,monthly:t.monthly,data:(0,u.z3)(t.definitions.bundles.data||0),rlahData:(0,u.z3)(t.definitions.bundles.rlahData||0),rate:(0,d.up)(t.definitions.rates.rlahData,"two_to_four"),bundleRenewalDate:(0,c.Yq)(this.balance.bundleExpiryDate)}))}return t}get oobRate(){return this.bundleRates?{data:{rate:(0,d.up)(this.bundleRates.data,"two_to_four"),megsLeft:this.$t("{megsLeft}
41_mb_to_surf",{megsLeft:this.calculateAmountLeft("data")}).toString()},sms:{rate:(0,d.up)(this.bundleRates.sms,"two_to_four"),smsLeft:this.$t("{smsLeft}_smses",{smsLeft:this.calculateAmountLeft("sms")}).toString()},voice:{rate:(0,d.up)(this.bundleRates.voice,"two_to_four"),minutesLeft:this.$t("{minutesLeft}_min_to_call",{minutesLeft:this.calculateAmountLeft("voice")}).toString()}}:null}get canTopup(){return!!this.session.mobileSubscription&&"prepaid"===this.session.mobileSubscription.type&&"enabled"===this.session.mobileSubscription.state&&(!this.pendingMigration||"credit_low"!==this.pendingMigration.condition)}calculateAmountLeft(t){if(!this.balance||!this.balance.credit||!this.bundleRates)return 0;let e=this.bundleRates[t];if(!e)throw new o.p(`Bundle rate ${t} should be truthy. Was: ${e}.`);return Math.floor(this.balance.credit/e)}scrollToBundleList(t){let e=this.$refs.bundlesList;e&&e.scrollToBundle(t)}trackBalanceBundleStackClicked({type:t,expanded:e}){e&&this.trackingService.balanceBundleStackClicked(t)}trackBundleCircleClicked(t){this.trackingService.balanceCircleClicked(t)}constructor(...t){super(...t),this.RouteName=tl.A,this.balance=null,this.bundleRates=null,this.pendingMigration=null,this.hasPendingBundleOrder=!1,this.existsPendingTopup=!1,this.existsReviewNeededTopup=!1,this.balanceUnavailable=!1,this.clan=null}}(0,s.Cg)([(0,p.y_)()],tc.prototype,"config",void 0),(0,s.Cg)([(0,p.y_)()],tc.prototype,"session",void 0),(0,s.Cg)([(0,p.y_)()],tc.prototype,"absoluteUrl",void 0),(0,s.Cg)([(0,p.y_)()],tc.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,p.y_)()],tc.prototype,"trackingService",void 0),(0,s.Cg)([(0,p.y_)()],tc.prototype,"topupService",void 0),(0,s.Cg)([(0,p.y_)()],tc.prototype,"roamingBundleService",void 0),(0,s.Cg)([(0,p.y_)()],tc.prototype,"clanService",void 0),(0,s.Cg)([(0,p.y_)()],tc.prototype,"goToError",void 0),(0,s.Cg)([(0,p.ox)("session.mobileSubscription.id",{immediate:!0})],tc.prototype,"onSubscriptionChanged",null);var tu=tc=(0,s.Cg)([(0,p.uA)({components:{CallToAction:g.A,ErrorPanel:m.A,RoamingBundleUsage:tr,CollapsiblePanel:h.A,MyVikingClanSummary:tt,InlineNotification:te.A,BundlesList:Y,MyVikingBalanceCircles:x,BalanceItem:D,ContentPanel:_.A,MvSection:G.A}})],tc),tp=(0,C.A)(tu,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"BalanceView balance-view"},[t.notifications.length>0?e("div",{staticClass:"BalanceView__notifications"},t._l(t.notifications,function(i,s){return e("InlineNotification",{key:s,staticClass:"notificationSection",scopedSlots:t._u([{key:"default",fn:function(){return[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:i.description,expression:"notification.description"}]})]},proxy:!0},i.cta?{key:"cta",fn:function(){return[e("CallToAction",{attrs:{appearance:"secondary",to:i.cta.to}},[t._v(t._s(i.cta.label))])]},proxy:!0}:null,i.secondaryCta?{key:"secCta",fn:function(){return[e("CallToAction",{attrs:{appearance:"link",to:i.secondaryCta.to}},[t._v(t._s(i.secondaryCta.label))])]},proxy:!0}:null],null,!0)})}),1):t._e(),t.balanceUnavailable?t._e():[t.isLoading||!t.hasNoBundles&&t.hasBundlesWithCategory?e("MvSection",{staticClass:"BalanceView__circlesContainer circlesContainer nextStyleLevel"},[e("MyVikingBalanceCircles",{attrs:{bundles:t.balanceBundles,dataThrottled:t.balance&&t.balance.dataThrottled,product:t.product},on:{clickCircle:function(e){t.scrollToBundleList(...arguments),t.trackBundleCircleClicked(...arguments)}}}),t.canTopup&&!t.hasNoBundles&&t.subscription&&"prepaid"===t.subscription.type&&"enabled"===t.subscription.state?e("div",{staticClass:"BalanceView__topupContainer nextStyleLevel"},[e("CallToAction",{staticClass:"topup-button",attrs:{to:{name:t.RouteName.topup}}},[t._v(t._s(t.$t("top_up")))])],1):t._e()],1):t._e(),t.hasRoamingBundles?e("MvSection",{staticClass:"BalanceView__RoamingBundlesContainer RoamingBundlesContainer nextStyleLevel"},[e("CollapsiblePanel",{attrs:{appearance:"emphasised",openCloseIndicator:"chevron-emphasised",centerIndicator:!0},scopedSlots:t._u([{key:"header",fn:function(){return[e("h4",{staticClass:"RoamingBundlesContainer__title"},[t._v(t._s(t.$t("balance.roaming")))])]},proxy:!0},{key:"content",fn:function(){return[e("div",{staticClass:"RoamingBundlesContainer__content"},[t.rlahBundles.length>0?e("RoamingBundleUsage",{staticClass:"RoamingBundlesContainer__item",attrs:{appearance:"blue",bundles:t.rlahBundles},on:{clickItem:function(e){return t.scrollToBundleList("roaming")}}}):t._e(),t.internationalRoamingBundles.length>0?e("RoamingBundleUsage",{staticClass:"RoamingBundlesContainer__item",attrs:{bundles:t.internationalRoamingBundles,appearance:"turquoise"},on:{clickItem:function(e){return t.scrollToBundleList("roaming")}}}):t._e()],1)]},proxy:!0}],null,!1,0x9630a274)})],1):t._e(),e("MyVikingClanSummary",{staticClass:"clanSummary BalanceView__clanSummary nextStyleLevel",attrs:{subscription:t.subscription}}),t.showCallingCredit?e("MvSection",{staticClass:"balanceItemSection nextStyleLevel"},[e("BalanceItem",{staticClass:"BalanceView__callingCreditBalance callingCreditBalance",attrs:{itemData:t.callingCredit}})],1):t._e(),t.creditDepleted||t.hasNoBundles?e("div",{staticClass:"BalanceView__creditDepletedOrBundlesExpired creditDepletedOrBundlesExpired"},[t.creditDepleted&&t.hasNoBundles?e("ErrorPanel",{attrs:{title:t.isAnyDataOnlyProduct?t.$t("balance_prepaid.contentpanel_data_only_bundles_expired_title"):t.$t("balance_prepaid.contentpanel_credit_depleted_title"),description:` 42 ${t.isAnyDataOnlyProduct?t.$t("balance_prepaid.contentpanel_data_only_bundles_expired_description"):t.$t("balance_prepaid.contentpanel_credit_depleted_description")} 43 <br /> 44 <small> 45 ${t.isAnyDataOnlyProduct?t.$t("balance_prepaid.contentpanel_data_only_bundles_expired_post_scriptum"):t.$t("balance_prepaid.contentpanel_credit_depleted_post_scriptum")} 46 </small> 47 `,ctaText:t.isAnyDataOnlyProduct?t.$t("balance_prepaid.contentpanel_data_only_bundles_expired_cta"):t.$t("balance_prepaid.contentpanel_credit_depleted_cta"),ctaRoute:{name:"topup"},ctaAppearance:"primary",iconCssVar:"--icon-treasure-bg-url",appearance:"ribbon"}}):t._e(),!t.creditDepleted&&t.hasNoBundles&&t.oobRate?e("ContentPanel",{staticClass:"contentPanel-pattern21 layout-1"},[e("h6",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("balance_prepaid.contentpanel_bundles_expired_title"),expression:"$t('balance_prepaid.contentpanel_bundles_expired_title')"}],staticClass:"title"}),e("p",[t._v(t._s(t.$t("balance_prepaid.contentpanel_bundles_expired_description")))]),e("ul",{staticClass:"oobList to-right-col",class:{"
47is-loading":!t.oobRate}},[t.oobRate.data?e("li",{staticClass:"icon-data"},[e("div",[e("strong",[t._v(t._s(t.oobRate.data.rate))]),e("span",[t._v(t._s(t.oobRate.data.megsLeft))])])]):t._e(),t.oobRate.sms?e("li",{staticClass:"icon-sms"},[e("div",[e("strong",[t._v(t._s(t.oobRate.sms.rate))]),e("span",[t._v(t._s(t.oobRate.sms.smsLeft))])])]):t._e(),t.oobRate.voice?e("li",{staticClass:"icon-voice"},[e("div",[e("strong",[t._v(t._s(t.oobRate.voice.rate))]),e("span",[t._v(t._s(t.oobRate.voice.minutesLeft))])])]):t._e()]),t.canTopup?e("CallToAction",{staticClass:"creditDepletedOrBundlesExpired__cta",attrs:{to:{name:t.RouteName.topup}}},[t._v(t._s(t.$t("balance_prepaid.contentpanel_bundles_expired_cta")))]):t._e()],1):t._e()],1):t._e(),t.hasNoBundles?t._e():e("MvSection",{staticClass:"bundlesListSection",attrs:{title:t.$t("bundles")}},[e("BundlesList",{ref:"bundlesList",attrs:{bundles:t.balanceBundles,dataThrottled:t.balance&&t.balance.dataThrottled,fupAmountMb:t.fupAmountMb,loadingItems:t.product.bundleTypes.length},on:{toggleStack:t.trackBalanceBundleStackClicked}})],1),t.vikingAdvantage?e("MvSection",{staticClass:"bundlesListSection nextStyleLevel",attrs:{title:t.$t("viking_advantage")}},[e("BalanceItem",{staticClass:"vikingAdvantageBalance",attrs:{itemData:t.vikingAdvantage}}
47)],1):t._e()]],2)},[],!1,null,"310e26a9",null).exports},34404:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return y}});var s=i(32198),a=i(58294),n=i(8921),o=i(57399),r=i(67953),l=i(58249),d=i(42123),c=i(10231),u=i(98493),p=i(66090),h=i(78906),_=i(13132),m=i(3231);let g=(0,a.tZ)("InviteForTransfer");class v extends r.lD{get subscription(){return(0,h._w)(this.session.mobileSubscription)}async loadClan(){this.clanPromise=this.clanService.getClanForSubscription(this.subscription).catch(t=>(g.error("Failed to load clan",t),null)),this.clan=await this.clanPromise}get getGoodToKnow(){return"prepaid"===this.subscription.type?this.$t("invite_for_transfer.good_to_know__description_for_prepaid_{msisdn}_{alias}",{msisdn:(0,o.i)(this.subscription.msisdn),alias:this.subscription.alias}):this.clan?.isActive?this.$t("invite_for_transfer.good_to_know__description_for_postpaid_{msisdn}_{alias}",{msisdn:(0,o.i)(this.subscription.msisdn),alias:this.subscription.alias}):this.$t("invite_for_transfer.good_to_know__description_for_postpaid_no_clan{msisdn}_{alias}",{msisdn:(0,o.i)(this.subscription.msisdn),alias:this.subscription.alias})}async submit(){try{if(!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20);return}if(!await this.acceptLosingBenefits())return;await this.uwa.sendSimTransferInvitation(this.subscription.id,this.email),this.$router.push({name:m.A.inviteForTransferDone,params:{receiver:this.email}})}catch(t){switch(n.Ay.of(t).code){case n.O4.REQUEST_SIM_BLOCKED_DUE_UNPAID_INVOICES:this.notify.error("invite_for_transfer.subscription_has_unpaid_invoices");break;case n.O4.CUSTOMER_SHOULD_CONTACT_CARE:this.notify.error("invite_for_transfer.customer_should_contact_care");break;default:g.error("Failed to invite for transfer",t),this.notifyGenericErrors(t)}}}async acceptLosingBenefits(){let t=[],e=await this.clanPromise,i=!1,s=!1;await this.subscriptionService.willLoseComboAdvantageUponTerminating(this.subscription)&&(i=!0,t.push(this.$t("termination.lose_2p_benefits_explanation")));try{let e=await this.getThirdPartyTerminationWarning();e&&(s=!0,t.push(e))}catch(t){g.error("Failed to warn for third party fee reduction at subscription transfer",t)}if(e&&e.isActive&&t.push(this.$t("invite_for_transfer.termination_will_upset_your_clan_friends_explanation")),t.length>0){let a=this.getLosingBenefitsTitle(i,s,!!e?.isActive);return!!await this.confirm(t.join("<br />"),a,this.$t("i_understand"),this.$t("cancel"))}return!0}getLosingBenefitsTitle(t,e,i){return t&&i?this.$t("termination.lose_2p_and_clan_benefits_title"):e&&i?this.$t("termination.lose_tps_and_clan_benefits_title"):t?this.$t("termination.lose_2p_benefits_title"):e?this.$t("termination.lose_tps_title"):this.$t("termination.lose_benefits_title")}async getThirdPartyTerminationWarning(){if(!await this.subscriptionService.willLoseThirdPartySubscriptionUponTerminating(this.subscription)||!this.session.thirdPartySubscriptions)return null;let t=await this.reductionClient.getAdvantages();return(0,_.S)(this.session.thirdPartySubscriptions,t,this.$t.bind(this))}async cancel(){await this.confirm(this.$t("invite_for_transfer.cancel_dialog__question"),this.$t("invite_for_transfer.cancel_dialog__title"),this.$t("invite_for_transfer.cancel_dialog__buttonText"),this.$t("invite_for_transfer.cancel_dialog__cancel"))&&this.$router.push({name:m.A.myViking})}constructor(...t){super(...t),this.uwaValidationErrors={},this.email="",this.clan=null,this.clanPromise=Promise.resolve(null)}}(0,s.Cg)([(0,r.y_)()],v.prototype,"confirm",void 0),(0,s.Cg)([(0,r.y_)()],v.prototype,"clanService",void 0),(0,s.Cg)([(0,r.y_)()],v.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,r.y_)()],v.prototype,"domUtils",void 0),(0,s.Cg)([(0,r.y_)()],v.prototype,"session",void 0),(0,s.Cg)([(0,r.y_)()],v.prototype,"uwa",void 0),(0,s.Cg)([(0,r.y_)()],v.prototype,"trackingService",void 0),(0,s.Cg)([(0,r.y_)()],v.prototype,"reductionClient",void 0),(0,s.Cg)([(0,r.ox)("subscription.id",{immediate:!0})],v.prototype,"loadClan",null);var f=v=(0,s.Cg)([(0,r.uA)({components:{WizardSimInfo:u.A,Field:l.A,MvForm:d.A,WizardFooter:c.A,WizardStep:p.A}})],v),y=(0,i(41618).A)(f,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"inviteForTransfer",attrs:{name:"InviteForTransfer"}},[e("WizardSimInfo",{attrs:{subscription:t.subscription}}),e("WizardStep",{attrs:{title:t.$t("invite_for_transfer.good_to_know_title"),hideNumber:!0}},[e("div",{directives:[{name:"pii-mask",rawName:"v-pii-mask"},{name:"html-safe",rawName:"v-html-safe",value:t.getGoodToKnow,expression:"getGoodToKnow"}
47],staticClass:"wizardStep__paddedContent ExternalContent goodToKnow"})]),e("WizardStep",{attrs:{title:t.$t("invite_for_transfer.new_owner_title"),description:t.$t("invite_for_transfer.new_owner_description")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("Field",{attrs:{label:t.$t("field_email"),validationErrors:t.$tList(t.uwaValidationErrors.email,"validationError__")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"},{name:"validate",rawName:"v-validate",value:"email",expression:"'email'"}],attrs:{autocomplete:"off",type:"email",name:"email",required:""},domProps:{value:t.email},on:{blur:function(e){delete t.uwaValidationErrors.email},input:function(e){e.target.composing||(t.email=e.target.value)}}})])],1)]),e("WizardFooter",{attrs:{ctaText:t.$t("invite_for_transfer.confirm_request"),onConfirm:t.submit,secCtaText:t.$t("invite_for_transfer.cancel_request")},on:{reject:t.cancel}})],1)},[],!1,null,"10a07240",null).exports},74577:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return u}});var s=i(32198),a=i(67953),n=i(78098),o=i(78160),r=i(10231),l=i(3231);class d extends a.lD{get transferExplanation(){if(!this.session.mobileSubscription)return"";let t=this.session.mobileSubscription.description;return this.$t("invite_for_transfer_done.you_are_transferring_{subscriptionDescription}",{subscriptionDescription:t})}get isPrepaid(){return!!this.session.mobileSubscription&&"prepaid"===this.session.mobileSubscription.type}get isPostpaid(){return!!this.session.mobileSubscription&&"postpaid"===this.session.mobileSubscription.type}async onUpdateSubscription(){if(this.isInActiveClan=null,!this.session.mobileSubscription)return;let t=await this.clanService.getClanForSubscription(this.session.mobileSubscription);this.isInActiveClan=t.isActive}goToSimPage(){this.$router.push({name:l.A.sims})}constructor(...t){super(...t),this.isInActiveClan=null}}(0,s.Cg)([(0,a.y_)()],d.prototype,"session",void 0),(0,s.Cg)([(0,a.y_)()],d.prototype,"clanService",void 0),(0,s.Cg)([(0,a.kv)()],d.prototype,"receiverEmail",void 0),(0,s.Cg)([(0,a.ox)("session.mobileSubscription",{immediate:!0})],d.prototype,"onUpdateSubscription",null);var c=d=(0,s.Cg)([(0,a.uA)({components:{WizardDoneSummary:o.A,WizardFooter:r.A,IconWithText:n.A}})],d),u=(0,i(41618).A)(c,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"inviteForTransferDone"},[t("WizardDoneSummary",[t("IconWithText",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],attrs:{iconUrl:"--icon-sim-switch-bg-url",text:this.transferExplanation}}),t("IconWithText",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],attrs:{iconUrl:"--icon-message-in-a-bottle-bg-url",text:this.$t("invite_for_transfer_done.instructions_sent_to_{email}",{email:this.receiverEmail})}}),this.isPostpaid?t("IconWithText",{attrs:{iconUrl:"--icon-scroll-bg-url",text:this.$t("invite_for_transfer_done.final_invoice_after_accepting")}}):this._e(),this.isPrepaid?t("IconWithText",{attrs:{iconUrl:"--icon-treasure-bg-url",text:this.$t("invite_for_transfer_done.remaining_credit_and_bundles")}}):this._e(),t("IconWithText",{attrs:{iconUrl:"--icon-simcard-bg-url",text:this.$t("invite_for_transfer_done.card_will_disappear_after_accepting")}}),t("IconWithText",{attrs:{iconUrl:"--icon-steeringwheel-bg-url",text:this.$t("invite_for_transfer_done.invoices_usage_and_settings_not_transferred")}}),this.isInActiveClan?t("IconWithText",{attrs:{iconUrl:"--icon-helmet-bg-url",text:this.$t("invite_for_transfer_done.will_leave_clan_when_transfer_is_accepted")}}):this._e()],1),t("WizardFooter",{staticClass:"inviteForTransferDone__footer",attrs:{onConfirm:this.goToSimPage,ctaText:this.$t("to_my_viking")}})],1)},[],!1,null,"2c170e8c",null).exports},99243:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return q}});var s=i(32198),a=i(58294),n=i(90004),o=i(81033),r=i(98946),l=i(1122),d=i(8921),c=i(62765),u=i(70180),p=i(57399),h=i(44739),_=i(24926),m=i.n(_),g=i(83800),v=i.n(g),f=i(67953),y=i(24176),b=i(14806),C=i(58249),w=i(42123),S=i(76573),M=i(79847),A=i(20174),k=i(33905),I=i(99679),x=i(43397),N=i(10231
47),T=i(98493),D=i(66090),$=i(23087),P=i(37882),L=i(42580),E=i(13132),O=i(20020),z=i(3231);let j=(0,a.tZ)("MigrateMobileView.vue");class B extends f.lD{async created(){if("join_employer"===this.intent)try{if(!this.employerInvitationToken)throw new n.p("Expected an employerInvitationToken when the intent is join_employer");let t=await this.uwa.getB2bInvite(this.employerInvitationToken);if(!t)return void this.notify.error("migrate_view.we_could_not_check_the_invitation_of_your_employer");this.b2bInvite=t,this.b2bTermsAndConditionLabel=this.$t("migrate_sim.b2b_agree_to_{tosUrl}",{tosUrl:this.legalDocumentService.getTermsAndConditionsUrl()}).toString(),await this.preselectEmployerOfferedProduct()}catch(t){j.error("Failed to load b2b invite",t),this.notify.error("migrate_view.we_could_not_check_the_invitation_of_your_employer")}}async preselectProduct(){this.recommendedProductId&&this.autoSelect(await this.productService.getSubscriptionProduct(this.recommendedProductId))}async onToTypeChange(){this.toProduct=null,"prepaid"===this.toType&&this.autoSelect(await this.productService.getDefaultPrepaidProduct()),"data-only"===this.toType&&this.autoSelect(await this.productService.getDefaultPrepaidProduct("data-only-2019"))}async autoSelect(t){t&&((0,l.s1)(t)?0===(await this.getMigrationConsequences(t)).length?this.toProduct=t:this.toProduct=null:this.toProduct=t)}async onSubscriptionIdChange(){let t=this.subscriptionId;if(!t)return;if(!this.session.mobileSubscriptions)throw new n.p("Should not be able to access MigrateView without subscriptions");this.session.subscriptionId=t;let e=this.session.mobileSubscription||null;this.subscriptionPageError=await this.generateSubscriptionPageError(e),this.subscription=e,!this.subscriptionPageError&&e&&(await this.preselectEmployerOfferedProduct(),await this.warnAboutConsequences(this.toProduct,null))}get pageError(){return this.subscriptionPageError}get legacyProductWarning(){let t=this.subscription?.product;if(!t||!(0,l.s1)(t)||t.available||t.renewToProductId)return null;let e=(0,c.up)(t.monthly,"two_if_significant");return this.$t("migrate_view.from_legacy_product__you_wont_be_able_to_come_back",{productMonthlyFee:e})}checkForAlreadyMigratedError(t){return"postpaid"!==this.toType&&this.toType===(0,o.Sc)(t)?this.$t("migrate_sim.already_migrated_error"):null}async checkForPendingMigrationError(t){try{let e=await this.subscriptionService.getLastMigration(t);if(e&&this.subscriptionService.blockMigrationBecauseOfPendingMigration(e)){let t=(0,u.FI)(e.created,this.locale);return this.$t("migrate_sim.error_has_pending_migration_{createdTimestamp}",{createdTimestamp:t})}}catch(t){return j.error("Failed to fetch last migration of subscription",t),this.getCopyKeyForGenericError(t)}return null}async generateSubscriptionPageError(t){return t&&"enabled"===t.state?this.checkForAlreadyMigratedError(t)||await this.checkForPendingMigrationError(t)||null:this.$t("sim_does_not_exist")}async preselectEmployerOfferedProduct(){this.b2bReduction&&this.autoSelect(await this.productService.getProductForPrice(this.b2bReduction,t=>t.isB2bProduct))}onProfileChange(){this.loadVikingPoints(),this.subscriptionService.blockMobileMigrationBecauseTooYoung(this.session.profile,this.toType)&&(this.notify.error("registration.postpaid_is_not_sold_to_minors"),this.$router.replace({name:z.A.myViking}))}async loadFromTopup(){if(this.fromTopup=null,this.balance=null,this.subscription){try{this.balance=await this.uwa.getBalance(this.subscription.id)}catch(t){j.error("Failed to load balance",t),this.balance="error"}try{if("prepaid"===this.subscription.type&&(this.fromTopup="loading"),!(0,l.$o)(this.subscription.product))return;if(this.subscription.isDataOnly){let t=await this.productService.getTopupProducts(this.subscription.product);this.fromTopup=t[0]}else if("prepaid"===this.subscription.type){let t=await this.topupService.getLastTopup(this.subscription.id);this.fromTopup=t?t.product:null}}catch(t){j.error("Failed to load data-only topup",t),this.fromTopup=null}}}get contractSummaryLabel(){return this.toProduct?this.$t("migrate_sim.contract_summary_{contractUrl}",{contractUrl:this.legalDocumentService.getContractSummaryUrl(this.toProduct.id)}).toString():""}async loadTopups(){if(this.allowedTopups=null,this.toProduct&&(0,l.$o)(this.toProduct)){if(this.allowedTopups=await this.productService.getTopupProducts(this.toProduct,!1),!this.allowedTopups)throw new n.p("Allowed products not loaded");1===this.allowedTopups.length&&(this.topup=this.allowedTopups[0]),this.topup=this.allowedTopups.find(t=>"data"===t.focus&&15===t.price)||null}}async getMigrationConsequences(t){return this.fromProduct&&this.subscription?this.subscriptionService.migrationConsequences(this.subscription,this.fromProduct,t,{employerName:this.employerName,b2bReduction:this.b2bReduction},this.$t.bind(this)):[]}async warnAboutConsequences(t,e){if(!t||this.consequencesAgreedFor===t.id)return;let i=await this.getMigrationConsequences(t);if(0!==i.length){if(1===i.length){if(await this.confirm(i[0].longDescription,i[0].title,this.$t("i_understand"),this.$t("cancel"))){this.consequencesAgreedFor=t.id;return}}else if(i.length>1){let e=(0,L.s0)(i.map(t=>t.briefDescription).filter(t=>!!t)),s=(0,L.s0)(i.map(t=>t.consequenceDescription).filter(t=>!!t));if(await this.confirm(this.$t("mobile_migration.this_product_has_consequences_body_{briefDescriptions}_{consequenceDescriptions}",{briefDescriptions__safe:e,consequenceDescriptions__safe:s}),this.$t("mobile_migration.this_product_has_consequences_title"),this.$t("i_understand"),this.$t("cancel"))){this.consequencesAgreedFor=t.id;return}}"postpaid"===this.toType?this.toProduct=e:this.$router.push({name:z.A.myViking})}}get joiningEmployer(){return"join_employer"===this.intent&&!!this.b2bInvite}get monthlyAfterB2bReduction(){return this.b2bReduction&&this.toProduct&&(0,l.s1)(this.toProduct)?this.toProduct.monthly-this.b2bReduction:null}get clanIntent(){return"start_clan"===this.intent?"start_clan":this.clanToJoin?"join_clan":null}get fromProduct(){return null===this.subscription?null:this.subscription.product}get fromType(){return null===this.subscription?null:(0,o.Sc)(this.subscription)}get requiresTopup(){return"prepaid"===this.toType||"data-only"===this.toType}get vikingPointsAllowed(){return this.session.isIdentityVerified("disallow_probation")}get vikingPointsBalanceTip(){return this.$t("topup_view.you_have_{vp}_available",{vp__safe:(0,L.TY)(this.vikingPointsBalance)}).toString()}get goodToKnow(){let t=`good_to_know__${this.fromType}_to_${this.toType}`,e=this.$t("migrate_sim")[t];return e?`${e}`:null}get summary(){return this.joiningEmployer&&this.toProduct&&this.subscription?this.monthlyAfterB2bReduction?this.$t("migrate_sim.summary__joining_b2b_with_extra_cost_{cost}_{msisdn}",{msisdn:(0,p.i)(this.subscription.msisdn),cost:this.monthlyAfterB2bReduction}):this.$t("migrate_sim.summary__joining_b2b_without_extra_cost_{msisdn}",{msisdn:(0,p.i)(this.subscription.msisdn)}):null}get orderTotal(){return(this.topup?this.topup.price:0)-(this.vikingPointsEnabled&&this.vikingPointsAllowed?this.vikingPointsAmount:0)}get maxVikingPointsAmount(){return Math.min(this.topup?this.topup.price:0,this.vikingPointsBalance)}get vikingPointsTip(){return this.vikingPointsBalance>0?null:this.$t("how_to_get_viking_points").toString()}async loadVikingPoints(){try{this.vikingPointsBalance=Math.max(0,(await this.uwa.getVikingPointBalance()).available),this.vikingPointsBalance>0&&(this.vikingPointsEnabled=!0,this.topup&&(this.vikingPointsAmount=Math.min(this.vikingPointsBalance,this.topup.price)))}catch(t){j.error("Failed to load viking point balance",t),this.vikingPointsBalance=0}}setDefaultVpAmount(t){this.vikingPointsEnabled=this.vikingPointsBalance>0&&this.vikingPointsAllowed,this.vikingPointsAmount=this.vikingPointsEnabled?t:0}assureVpValue(){let t=Math.max(0,Math.min(+this.vikingPointsAmount,this.maxVikingPointsAmount));t!==this.vikingPointsAmount&&(this.vikingPointsAmount=t)}get bundleExpiryTimestamp(){return this.subscription&&this.balance&&"error"!==this.balance?this.balance.bundleExpiryDate:null}describeMigrationCondition(t){let e=t===this.recommendedCondition?` (${this.$t("recommended")})`:"";if("now"===t){let t=!!this.subscription&&"prepaid"===this.subscription.type&&"postpaid"===this.toType;return this.clanIntent?{title:`${this.$t("migrate_sim.condition_now_for_clan_title")}${e}`,explanation:t?this.$t("migrate_sim.condition_now_for_clan_pre2post_explanation"):this.$t("migrate_sim.condition_now_for_clan_explanation")}:this.joiningEmployer?{title:`${this.$t("migrate_sim.condition_now_for_joining_employer_title")}${e}`,explanation:t?this.$t("migrate_sim.condition_now_for_joining_employer_pre2post_explanation"):this.$t("migrate_sim.condition_now_for_joining_employer_explanation")}:this.b2bReduction?{title:`${this.$t("migrate_sim.condition_now_title")}${e}`,explanation:this.$t("migrate_sim.condition_now_for_existing_employee_explanation")}:{title:`${this.$t("migrate_sim.condition_now_title")}${e}`,explanation:t?this.$t("migrate_sim.condition_now_pre2post_explanation"):this.$t("migrate_sim.condition_now_explanation")}}if("bundle_expired"===t)return{title:`${this.$t("migrate_sim.condition_when_bundle_expires_title")}${e}`,subtitle:this.bundleExpiryTimestamp?this.$t("migrate_sim.condition_when_bundle_expires_at_{timestamp}",{timestamp:(0,u.FI)(this.bundleExpiryTimestamp,this.locale)}):void 0,explanation:this.b2bReduction?this.$t("migrate_sim.condition_when_bundle_expires_for_existing_employee_explanation"):void 0};if("credit_low"===t)return{title:`${this.$t("migrate_sim.condition_at_credit_low_title")}${e}`,subtitle:this.$t("migrate_sim.condition_at_credit_low_title_at_{threshold}",{threshold:(0,c.up)(2.5,"always_two")})};throw new n.p(`Unsupported condition: ${t}`)}immediatePostpaidMigrationDisabled(){return!this.config.featureFlags.enableImmediatePostpaidMigration&&this.fromProduct&&this.toProduct&&(0,l.s1)(this.fromProduct)&&(0,l.s1)(this.toProduct)}get migrationConditions(){if(!this.fromType)return[];if(this.clanIntent||this.joiningEmployer)return["now"];let t=(0,o.__)(this.fromType,this.toType).filter(t=>"credit_low"!==t||!this.isLowOnCredit);if(!this.bundleExpiryTimestamp&&m()(t,"bundle_expiry")&&(v()(t,t=>"bundle_expired"===t),t.push("now")),this.immediatePostpaidMigrationDisabled()){let e=(0,l.ki)(this.fromProduct),i=(0,l.ki)(this.toProduct);e&&i&&e.monthly>i.monthly&&v()(t,t=>"now"===t)}return[...t]}get recommendedCondition(){return this.subscription&&this.subscription.employerLink?"bundle_expired":null}selectDefaultCondition(t){1===t.length&&(this.migrateCondition=t[0])}get cancelButtonText(){switch(this.fromType){case"postpaid":return this.$t("migrate_sim.keep_subscription_button").toString();case"prepaid":return this.$t("migrate_sim.keep_prepaid_card_button").toString();case"data-only":return this.$t("migrate_sim.keep_data_only_button").toString();default:return""}}get isLowOnCredit(){return!this.balance||"error"===this.balance||!this.balance.credit||this.balance.credit<2.5}async setReductionForProduct(t){if(!t)return;let e=await this.reductionHolder.promoFor(t.id);this.reductionForProduct=e?.state==="open"?e:null}async doMigration(){this.trackConfirm();try{if(this.uwaValidationErrors={},!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20);return}if(!this.subscription)throw new n.p("doMigration called without subscription");if(!this.toProduct)throw new n.p("doMigration called without loaded product");
47if(!this.migrateCondition)throw new n.p("doMigration called without condition");if(!this.contractSummaryLegalCheck)return void this.notify.error("migrate_sim.contract_summary_should_be_checked");if(this.joiningEmployer&&!this.b2bTermsAndConditionCheck)return void this.notify.error("migrate_sim.b2b_terms_and_conditions_should_be_checked");let t={name:z.A.migrateDone,params:{toType:this.toType},query:{}};if(this.clanIntent&&(t.query.intent=this.clanIntent),this.subscription.employerLink&&"bundle_expired"!==this.migrateCondition&&!await this.confirm(this.$t("migration.caveats_when_migrating_immediately_with_employer_link_explanation"),this.$t("migration.caveats_when_migrating_immediately_with_employer_link_title"),this.$t("i_understand"),this.$t("cancel")))return;if("postpaid"===this.fromType&&"postpaid"!==this.toType)try{let t=await this.getThirdPartyTerminationWarning();if(t&&!await this.confirm(t,this.$t("termination.lose_tps_title"),this.$t("i_understand"),this.$t("cancel")))return}catch(t){j.error("Failed to warn for third party fee reduction at mobile migration",t)}let e=this.absoluteUrl(this.$router.resolve(t)),i="";try{i=await this.subscriptionService.migrate(this.subscription,this.toProduct,this.migrateCondition,this.password,this.topup,this.clanToJoin?this.clanToJoin.reference:null,e,this.joiningEmployer?this.employerInvitationToken:null,this.orderPayment(),this.reductionForProduct?.code??null)}catch(t){if(d.Ay.of(t).code===d.O4.INSUFFICIENT_CREDIT){if(!await this.confirm(this.$t("migration.already_low_credit_will_migrate_immediately_explanation"),this.$t("migration.already_low_credit_will_migrate_immediately_title"),this.$t("continue"),this.$t("cancel")))return;this.migrateCondition="now",i=await this.subscriptionService.migrate(this.subscription,this.toProduct,this.migrateCondition,this.password,this.topup,this.clanToJoin?this.clanToJoin.reference:null,e,this.joiningEmployer?this.employerInvitationToken:null,this.orderPayment(),this.reductionForProduct?.code??null)}else throw t}this.clearClanFromLocalStorage(),j.info(`Migrating... redirecting to ${i}`),this.goTo(i),await (0,h.i4)()}catch(i){this.trackFailure();let t=d.Ay.of(i);switch(t.code){case d.O4.REQUEST_SIM_BLOCKED_DUE_UNPAID_INVOICES:this.notify.error("migrate_sim.subscription_has_unpaid_invoices");return;case d.O4.MIGRATION_ALREADY_RUNNING:this.notify.error("migrate_sim.error__already_migrating");return;case d.O4.TOO_MANY_MIGRATIONS:this.notify.error("migrate_sim.error__too_many_migrations_in_a_row");return;case d.O4.MIGRATION_PENDING:this.notify.error("migrate_sim.error__a_migration_is_pending");return;case d.O4.ALREADY_SWITCHED_TOO_RECENTLY:this.notify.error("migrate_sim.error__already_switched_within_short_timeframe");return;case d.O4.SUBSCRIPTION_DEACTIVATED:this.notify.error("migrate_sim.error__subscription_deactivated");return;case d.O4.SWITCHING_BLOCKED_FIRST_PAYMENT_REQUIRED:this.notify.error("migrate_sim.error__switching_blocked_first_payment_required");return;case d.O4.NOT_ALLOWED_BECAUSE_DUNNING:this.notify.error("migrate_sim.error__not_allowed_because_dunning");return;case d.O4.SWITCHING_BLOCKED_DUE_UNPAID_INVOICES:this.notify.error("migrate_sim.error__switching_blocked_due_unpaid_invoices");return;case d.O4.LEGALLY_INCOMPETENT:this.notify.error("migrate_sim.legally_incompetent");return;case d.O4.CUSTOMER_SHOULD_CONTACT_CARE:this.notify.error("migrate_sim.customer_should_contact_care");return}let e=(0,O.v)(t,[{code:d.O4.INVALID_VALUE,field:"password",on:"password",message:"password_incorrect"}]);this.uwaValidationErrors=e.result,e.firstIssue||(j.error("Failed to migrate",t),this.notifyGenericErrors(i)),this.domUtils.scrollToFirst(".is-invalid",20)}}async getThirdPartyTerminationWarning(){if(!this.subscription||!await this.subscriptionService.willLoseThirdPartySubscriptionUponTerminating(this.subscription)||!this.session.thirdPartySubscriptions)return null;let t=await this.reductionClient.getAdvantages();return(0,E.S)(this.session.thirdPartySubscriptions,t,this.$t.bind(this))}orderPayment(){if(this.requiresTopup)return new r.Ay(this.paymentMethod,this.vikingPointsEnabled?this.vikingPointsAmount:void 0)}async cancelMigration(){await this.confirm(this.$t("migrate_sim.confirm_cancel__question"),this.$t("migrate_sim.confirm_cancel__title"),this.cancelButtonText,this.$t("migrate_sim.confirm_cancel__cancel"))&&this.$router.push({name:z.A.myViking})}mounted(){this.track("start"),this.loadClan()}async loadClan(){if(this.session&&this.session.mobileSubscription){this.clanToJoin=null,this.clanLoading=!0;try{let t=this.getClanFromLocalStorage();if(t){let[e,i]=await Promise.all([this.clanService.getClanForSubscription(this.session.mobileSubscription),this.clanService.getClanByReference(t)]);this.clanToJoin=e.isActive?null:i}this.clanLoading=!1}catch(t){j.error("Failed to load clan",t),this.notify.error("migrate_view.we_could_not_check_the_clan_you_were_invited_to")}}}
47dismissClanInvite(){this.clearClanFromLocalStorage(),this.clanToJoin=null}get clanToJoinDescription(){return this.clanToJoin?this.$t("migrate_sim.you_will_be_joining_clan_{clanName}_with_{members}",{clanName:this.clanToJoin.name,members:this.clanToJoin.memberDescription}).toString():""}trackToProductChange(){this.track("selectPriceplan")}trackPaymentMethodChange(){this.track("selectPaymentMethod")}trackConditionChange(){this.track("selectTiming")}trackPasswordFilled(){this.track("enterPassword")}trackConfirm(){this.track("confirm")}trackFailure(){this.track("fail")}track(t){this.trackingService.updateMigration(t,this.toProduct,this.fromProduct,this.paymentMethod,this.migrateCondition,this.session.company,this.b2bInvite)}get b2bReduction(){return this.joiningEmployer&&this.b2bInvite?this.b2bInvite.reduction:this.subscription&&this.subscription.employerLink?this.subscription.employerLink.reduction:null}get employerName(){return this.joiningEmployer&&this.b2bInvite?this.b2bInvite.employerName:this.subscription&&this.subscription.employerLink?this.subscription.employerLink.employerName:null}getClanFromLocalStorage(){return localStorage.getItem("clanReference")||null}clearClanFromLocalStorage(){localStorage.removeItem("clanReference")}constructor(...t){super(...t),this.migrateCondition=null,this.password="",this.paymentMethod=null,this.fromTopup=null,this.balance=null,this.toProduct=null,this.subscription=null,this.topupPaymentMethods=[],this.allowedTopups=null,this.topup=null,this.vikingPointsAmount=0,this.vikingPointsBalance=0,this.vikingPointsEnabled=!1,this.uwaValidationErrors={},this.clanToJoin=null,this.clanLoading=!1,this.contractSummaryLegalCheck=!1,this.b2bTermsAndConditionCheck=!1,this.b2bTermsAndConditionLabel=null,this.b2bInvite=null,this.subscriptionPageError=null,this.reductionForProduct=null,this.consequencesAgreedFor=null}}(0,s.Cg)([(0,f.y_)()],B.prototype,"client",void 0),(0,s.Cg)([(0,f.y_)()],B.prototype,"confirm",void 0),(0,s.Cg)([(0,f.y_)()],B.prototype,"titleService",void 0),(0,s.Cg)([(0,f.y_)()],B.prototype,"productService",void 0),(0,s.Cg)([(0,f.y_)()],B.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,f.y_)()],B.prototype,"clanService",void 0),(0,s.Cg)([(0,f.y_)()],B.prototype,"topupService",void 0),(0,s.Cg)([(0,f.y_)()],B.prototype,"mandateService",void 0),(0,s.Cg)([(0,f.y_)()],B.prototype,"session",void 0),(0,s.Cg)([(0,f.y_)()],B.prototype,"uwa",void 0),(0,s.Cg)([(0,f.y_)()],B.prototype,"domUtils",void 0),(0,s.Cg)([(0,f.y_)()],B.prototype,"absoluteUrl",void 0),(0,s.Cg)([(0,f.y_)()],B.prototype,"goTo",void 0),(0,s.Cg)([(0,f.y_)()],B.prototype,"trackingService",void 0),(0,s.Cg)([(0,f.y_)()],B.prototype,"legalDocumentService",void 0),(0,s.Cg)([(0,f.y_)()],B.prototype,"config",void 0),(0,s.Cg)([(0,f.y_)()],B.prototype,"reductionHolder",void 0),(0,s.Cg)([(0,f.y_)()],B.prototype,"reductionClient",void 0),(0,s.Cg)([(0,f.y_)()],B.prototype,"stepupMode",void 0),(0,s.Cg)([(0,f.kv)({type:String,default:null})],B.prototype,"subscriptionId",void 0),(0,s.Cg)([(0,f.kv)({type:String,required:!0})],B.prototype,"toType",void 0),(0,s.Cg)([(0,f.kv)({type:String,default:null})],B.prototype,"intent",void 0),(0,s.Cg)([(0,f.kv)({type:String,default:null})],B.prototype,"employerInvitationToken",void 0),(0,s.Cg)([(0,f.kv)({type:String,default:null})],B.prototype,"recommendedProductId",void 0),(0,s.Cg)([(0,f.ox)("recommendedProductId",{immediate:!0})],B.prototype,"preselectProduct",null),(0,s.Cg)([(0,f.ox)("toType",{immediate:!0})],B.prototype,"onToTypeChange",null),(0,s.Cg)([(0,f.ox)("subscriptionId",{immediate:!0})],B.prototype,"onSubscriptionIdChange",null),(0,s.Cg)([(0,f.ox)("session.profile",{immediate:!0})],B.prototype,"onProfileChange",null),(0,s.Cg)([(0,f.ox)("subscription",{immediate:!0})],B.prototype,"loadFromTopup",null),(0,s.Cg)([(0,f.ox)("toProduct",{immediate:!0})],B.prototype,"loadTopups",null),(0,s.Cg)([(0,f.ox)("toProduct")],B.prototype,"warnAboutConsequences",null),(0,s.Cg)([(0,f.ox)("maxVikingPointsAmount")],B.prototype,"setDefaultVpAmount",null),(0,s.Cg)([(0,f.ox)("migrationConditions",{immediate:!0})],B.prototype,"selectDefaultCondition",null),(0,s.Cg)([(0,f.ox)("toProduct")],B.prototype,"setReductionForProduct",null),(0,s.Cg)([(0,f.ox)("toProduct"),(0,f.ox)("topup")],B.prototype,"trackToProductChange",null),(0,s.Cg)([(0,f.ox)("paymentMethod")],B.prototype,"trackPaymentMethodChange",null),(0,s.Cg)([(0,f.ox)("migrateCondition")],B.prototype,"trackConditionChange",null),(0,s.Cg)([(0,f.ox)("password")],B.prototype,"trackPasswordFilled",null);var F=B=(0,s.Cg)([(0,f.uA)({components:{InlineNotification:I.A,PostpaidSelector:P.default,Loading:A.A,WizardStep:D.A,TopupSelector:x.A,Field:C.A,Checkbox:b.A,InfoItem:k.A,CallToAction:y.A,PaymentMethodSelector:$.A,RadioGroup:M.A,Password:S.A,MvForm:w.A,WizardSimInfo:T.A,WizardFooter:N.A}})],B),q=(0,i(41618).A)(F,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.subscription?e("MvForm",{staticClass:"migrateMobile",attrs:{name:"migrate"}},[t.pageError?e("InlineNotification",{staticClass:"migrateMobile__pageError",attrs:{notificationType:"error"}},[t._v(" "+t._s(t.pageError)+" ")]):[e("WizardSimInfo",{attrs:{fromType:t.fromType,subscription:t.subscription,currentTopup:t.fromTopup,balance:t.balance}}),t.clanLoading?e("Loading"):[t.legacyProductWarning?e("InlineNotification",{staticClass:"legacy-product-warning",attrs:{notificationType:"warning"}},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.legacyProductWarning,expression:"legacyProductWarning"}]})]):t._e(),t.clanToJoin&&!t.requiresTopup?e("InlineNotification",{staticClass:"join-clan-notification",attrs:{notificationType:"hint"},scopedSlots:t._u([{key:"cta",fn:function(){return[e("CallToAction",{on:{click:function(e){return t.dismissClanInv
47ite()}}},[t._v(" "+t._s(t.$t("migrate_view.clan_no_thanks_button"))+" ")])]},proxy:!0}],null,!1,0x212b074f)},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.clanToJoinDescription,expression:"clanToJoinDescription"}]})]):t._e(),t.goodToKnow?e("WizardStep",{attrs:{hideNumber:!0,title:t.$t("migrate_sim.good_to_know_title")}},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.goodToKnow,expression:"goodToKnow"}],staticClass:"wizardStep__paddedContent ExternalContent"})]):t._e(),t.requiresTopup?e("WizardStep",{attrs:{title:t.allowedTopups&&1===t.allowedTopups.length?t.$t("migrate_sim.this_is_your_topup"):t.$t("migrate_sim.choose_topup_title"),intro:"data-only"===t.toType?t.$t("migrate_sim.choose_topup_intro_dataonly"):t.$t("migrate_sim.choose_topup_intro")}},[e("div",{staticClass:"migrateMobile__topupSelectorWrap wizardStep__paddedContent"},[e("TopupSelector",{attrs:{product:t.toProduct,exposeLegacyPrepaids:!1},model:{value:t.topup,callback:function(e){t.topup=e},expression:"topup"}})],1)]):t._e(),"postpaid"===t.toType?e("WizardStep",{attrs:{title:t.$t("migrate_sim.select_new_tariff_plan")}},[e("PostpaidSelector",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],staticClass:"wizardStep__paddedContent",class:{"is-invalid":t.errors.first("postpaidProduct")},attrs:{name:"postpaidProduct",required:"",restrictToClanProducts:!!t.clanIntent,restrictToB2bProducts:null!==t.b2bReduction,styleLevel:1,b2bReduction:t.b2bReduction},model:{value:t.toProduct,callback:function(e){t.toProduct=e},expression:"toProduct"}})],1):t._e(),t.requiresTopup?e("WizardStep",{attrs:{title:t.$t("migrate_sim.select_payment_method")}},[e("div",{staticClass:"wizardStep__paddedContent"},[t.vikingPointsAllowed?e("div",{staticClass:"migrateMobile__vpPanel expandableCheckbox"},[e("Checkbox",{staticClass:"expandableCheckbox__chk",attrs:{label:t.$t("migrate_sim.viking_points_enable"),disabled:0===t.maxVikingPointsAmount,tip:t.vikingPointsTip},model:{value:t.vikingPointsEnabled,callback:function(e){t.vikingPointsEnabled=e},expression:"vikingPointsEnabled"}}),t.vikingPointsEnabled?e("Field",{staticClass:"MigrateView__vpAmount field--noMargin expandableCheckbox__content",attrs:{label:t.$t("migrate_sim.viking_points_amount"),hint:t.vikingPointsBalanceTip}},[e("input",{directives:[{name:"model",rawName:"v-model.lazy.number",value:t.vikingPointsAmount,expression:"vikingPointsAmount",modifiers:{lazy:!0,number:!0}},{name:"validate",rawName:"v-validate",value:{required:!0,min_value:.01,decimal:2,max_value:t.maxVikingPointsAmount},expression:"{\n required: true,\n min_value: 0.01,\n decimal: 2,\n max_value: maxVikingPointsAmount,\n }"}],staticClass:"hide-spinner styleLevel2",attrs:{type:"number",name:"vp-used"},domProps:{value:t.vikingPointsAmount},on:{wheel:function(t){return t.target.blur()},blur:[function(e){return t.assureVpValue()},function(e){return t.$forceUpdate()}],change:function(e){t.vikingPointsAmount=t._n(e.target.value)}}})]):t._e()],1):t._e(),e("div",{staticClass:"migrateMobile__orderSummary"},[t.topup?e("InfoItem",{staticClass:"sub-entry",attrs:{label:t.$t("migrate_sim.summary_topup")}},[t._v(" "+t._s(t._f("moneyCents")(t.topup.price))+" ")]):t._e(),t.vikingPointsAllowed&&t.vikingPointsEnabled?e("InfoItem",{staticClass:"sub-entry",attrs:{label:t.$t("migrate_sim.summary_viking_point_discount")}},[t._v(" "+t._s(t._f("moneyCents")(t.vikingPointsAmount))+" ")]):t._e(),e("InfoItem",{staticClass:"migrateMobile__orderSummary__amountDue",attrs:{label:t.$t("migrate_sim.summary_left_to_pay")}},[t._v(" "+t._s(t._f("moneyCents")(t.orderTotal))+" ")])],1),t.orderTotal>0||!t.vikingPointsAllowed?e("div",{staticClass:"migrateMobile__paymentMethod"},[e("div",{staticClass:"fakeLabel"},[t._v(t._s(t.$t("migrate_sim.pick_a_payment_method")))]),e("PaymentMethodSelector",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],class:{"is-invalid":t.errors.first("paymentMethod")},attrs:{required:"",name:"paymentMethod",subscriptionId:t.subscription.id},model:{value:t.paymentMethod,callback:function(e){t.paymentMethod=e},expression:"paymentMethod"}})],1):t._e()])]):t._e(),t.migrationConditions.length>1||"data-only"!==t.fromType&&"data-only"!==t.toType?e("WizardStep",{staticClass:"migrateMobile__condition",attrs:{title:t.$t("migrate_sim.condition_title")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("Field",[e("RadioGroup",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],staticClass:"MigrateMobile__conditionSelection",attrs:{required:"",options:t.migrationConditions},scopedSlots:t._u([{key:"default",fn:function({option:i}){return[e("div",{staticClass:"migrateMobile__condition__title"},[t._v(t._s(t.describeMigrationCondition(i).title))]),t.describeMigrationCondition(i).subtitle?e("div",{staticClass:"migrateMobile__condition__subtitle"},[t._v(" "+t._s(t.describeMigrationCondition(i).subtitle)+" ")]):t._e()]}},{key:"radioGroupDescription",fn:function({option:i}){return[t.describeMigrationCondition(i).explanation?[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.describeMigrationCondition(i).explanation,expression:"describeMigrationCondition(option).explanation"}],staticClass:"ExternalContent"})]:t._e()]}}],null,!1,0x9970605a),model:{value:t.migrateCondition,callback:function(e){t.migrateCondition=e},expression:"migrateCondition"}})],1)],1)]):t._e(),"password"===t.stepupMode?e("WizardStep",{attrs:{title:t.$t("migrate_sim.your_password"),intro:t.$t("migrate_sim.your_password_intro")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("Field",{attrs:{label:t.$t("password"),validationErrors:t.$tList(t.uwaValidationErrors.password,"validationError__")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"password",required:"","data-vv-as":t.$t("password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)],1)]):t._e(),t.summary?e("WizardStep",{staticClass:"migrateMobile__summary",attrs:{hideNumber:!0,title:t.$t("migrate_sim.summary_title")}},[e("div",{directives:[{name:"pii-mask",rawName:"v-pii-mask"},{name:"html-safe",rawName:"v-html-safe",value:t.summary,expression:"summary"}
47],staticClass:"wizardStep__paddedContent ExternalContent"})]):t._e(),e("WizardFooter",{attrs:{ctaText:t.requiresTopup?t.$t("migrate_sim.confirm_and_pay"):t.$t("migrate_sim.confirm"),onConfirm:t.doMigration,secCtaText:t.cancelButtonText},on:{reject:t.cancelMigration},scopedSlots:t._u([{key:"legalChecks",fn:function(){return[t.toProduct?[e("Checkbox",{staticClass:"contractSummaryCheckbox",attrs:{label:t.contractSummaryLabel},model:{value:t.contractSummaryLegalCheck,callback:function(e){t.contractSummaryLegalCheck=e},expression:"contractSummaryLegalCheck"}}),t.joiningEmployer?e("Checkbox",{staticClass:"b2bTermsAndConditionCheckbox",attrs:{label:t.b2bTermsAndConditionLabel},model:{value:t.b2bTermsAndConditionCheck,callback:function(e){t.b2bTermsAndConditionCheck=e},expression:"b2bTermsAndConditionCheck"}}):t._e()]:t._e()]},proxy:!0}],null,!1,0xfc428c64)})]]],2):e("Loading")},[],!1,null,null,null).exports},48298:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return h}});var s=i(32198),a=i(67953),n=i(24176),o=i(42123),r=i(10231),l=i(66090),d=i(14064),c=i(3231);class u extends a.lD{isEligibleForMigration(t){return!!("enabled"===t.state&&t.sim&&!t.sim.blocked&&["postpaid","prepaid"].includes(t.type))}goToMyViking(){this.$router.push({name:c.A.myViking})}goToMigrationFlow(){this.subscription&&this.$router.push({name:c.A.migrate,params:{toType:"postpaid",subscriptionId:this.subscription.id}})}constructor(...t){super(...t),this.subscription=null}}var p=u=(0,s.Cg)([(0,a.uA)({components:{SimSelector:d.A,WizardStep:l.A,WizardFooter:r.A,MvForm:o.A,CallToAction:n.A}})],u),h=(0,i(41618).A)(p,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"migrateSelectSubscriptionView__form"},[e("WizardStep",{attrs:{title:t.$t("migrate_select_subscription.select_sim_title"),hideNumber:!0}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("SimSelector",{ref:"simSelector",attrs:{filter:t.isEligibleForMigration,appearance:"radioGroup"},scopedSlots:t._u([{key:"emptySubscriptionsList",fn:function(){return[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("migrate_select_subscription.no_sims_eligible_to_migrate"),expression:"$t('migrate_select_subscription.no_sims_eligible_to_migrate')"}],staticClass:"ExternalContent"}),e("CallToAction",{attrs:{appearance:"link"},on:{click:function(e){return e.preventDefault(),t.goToMyViking.apply(null,arguments)}}},[t._v(" "+t._s(t.$t("migrate_select_subscription.go_to_my_viking"))+" ")])]},proxy:!0}]),model:{value:t.subscription,callback:function(e){t.subscription=e},expression:"subscription"}})],1)]),t.subscription?e("div",{staticClass:"migrateSelectSubscriptionView__footer"},[e("WizardFooter",{attrs:{ctaText:t.$t("migrate_select_subscription.go_to_migration"),onConfirm:t.goToMigrationFlow,secCtaText:t.$t("cancel")},on:{reject:t.goToMyViking}})],1):t._e()],1)},[],!1,null,"3de5f424",null).exports},35784:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return k}});var s=i(32198),a=i(58294),n=i(90004),o=i(8921),r=i(67953),l=i(62526),d=i(14806),c=i(58249),u=i(42123),p=i(78365),h=i(76573),_=i(79847),m=i(10231),g=i(66090),v=i(14064),f=i(88214),y=i(20020),b=i(54926);class C extends b.A{constructor(t){super(),this.$t=t}getMessage(){return this.$t("not_a_valid_imei")}validate(t){if(!t)return!1;if(!/^[0-9]{15}$/.test(t))return!1;let e=0,i=2;for(let s=0;s<14;s++){let a=parseInt(t.substring(14-s-1,14-s),10)*i;a>=10?e+=a%10+1:e+=a,1===i?i++:i--}return(10-e%10)%10===parseInt(t.substring(14,15),10)}}var w=i(3231);let S=(0,a.tZ)("RequestSwap");class M extends r.lD{created(){this.$validator.extend("imei",new C(this.$t.bind(this)).asRule()),this.subscription=this.session.mobileSubscription||null,this.profile=this.session.profile||null,this.disabledESimDeviceSelection=this.preselectESim}async mounted(){await this.loadAddress()}handleSubscriptionChange(){this.mayChooseSimType?this.simType=this.preselectESim?"embedded":null:this.simType="physical"}syncEmailValue(t){t&&(this.updateEmailValue=this.profile?.email??"")}get eSimFaqItemId(){return`${this.$t("request_swap.esim_article_id")}`}get mayChooseSimType(){return!!this.subscription&&!!this.config.featureFlags.allowEsimForSwap}async loadAddress(){try{let t=await this.uwa.getAddress(["shipping"]);t.length>0?this.shippingAddress=t[0].address:this.session.profile&&(this.shippingAddress={...this.session.profile.address})}catch(t){S.error("Could not preload shipping address",t),this.notifyGenericErrors(t)}this.loadingShippingAddress=!1}handleUwaErrors(t){let e=o.Ay.of(t);if(e.code===o.O4.SWAP_ALREADY_RUNNING)return void this.notify.error("request_swap.swap_already_running");if(e.code===o.O4.ESIM_SWAP_REQUIRES_IDENTIFICATION)return void this.notify.error("request_swap.esim_swap_requires_identification");if(e.code===o.O4.NOT_ALLOWED_BECAUSE_DUNNING)return void this.notify.error("request_swap.swap_not_allowed_because_unpaid_invoice");let i=(0,y.v)(e,[{code:o.O4.INVALID_VALUE,field:"password",on:"password",message:"password_incorrect"}]);this.uwaValidationErrors=i.result,i.firstIssue||(S.error("Failed to request swap",t),this.notifyGenericErrors(t))}async confirmRequest(){try{if(!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20);return}if(null===this.shouldBlockSim||!this.simType||!this.session||!this.session.profile)return;await this.requestEmailChange(),await this.requestSwap(),this.trackingService.swapRequested(this.simType),this.$router.push({name:w.A.simSwapDone,query:{block:this.mapBlockParams(),simType:this.simType}})}catch(t){this.handleUwaErrors(t)}}async requestEmailChange(){if(!this.profile)throw new n.p("Profile should be set");if(this.updateEmail&&this.profile.email!==this.updateEmailValue)try{await this.customerService.updateEmail(this.updateEmailValue,this.password)}catch(t){throw o.Ay.of(t,"Could not submit e-mail change")}}async requestSwap(){if(!this.subscription)throw new n.p("Subscription should be set");try{if(!this.session.profile)throw new n.p("Swap requested but nobody logged in");if(!this.simType)throw new n.p("simType improperly validated");if(null===this.shouldBlockSim)throw new n.p("shouldBlockSim improperly validated");await this.uwa.requestSwap(this.subscription.id,this.simType,this.shouldBlockSim,this.password,this.getDeliveryAddress())}catch(t){throw o.Ay.of(t,"Cannot submit swap request")}}getDeliveryAddress(){if("physical"===this.simType){if(!this.shippingAddress)throw new n.p("Shipping address should have been filled");if(!this.session.profile)throw new n.p("User should be authenticated at this point");return{firstName:this.session.profile.firstName,lastName:this.session.profile.lastName,address:this.shippingAddress}}}
47mapBlockParams(){if(this.shouldBlockSim)return"sim"}async cancelRequest(){await this.confirm(this.$t("request_swap.cancel_dialog__question"),this.$t("request_swap.cancel_dialog__title"),this.$t("request_swap.cancel_dialog__buttonText"),this.$t("request_swap.cancel_dialog__cancel"))&&this.$router.push({name:w.A.myViking})}get verifyInfoDescription(){return"embedded"===this.simType?this.$t("request_swap.verify_info__description_embedded"):"physical"===this.simType?this.$t("request_swap.verify_info__description_physical"):""}get showIncompleteProfileWarning(){return!!this.session&&!!this.session.profile&&(!this.session.profile.birthPlace||!this.session.profile.birthDate)}constructor(...t){super(...t),this.uwaValidationErrors={},this.updateEmail=!1,this.updateEmailValue="",this.loadingShippingAddress=!0,this.shippingAddress={street:"",number:"",postcode:"",city:"",country:"be"},this.shouldBlockSim=null,this.simType=null,this.password="",this.disabledESimDeviceSelection=!0,this.subscription=null,this.profile=null}}(0,s.Cg)([(0,r.kv)({type:Boolean,required:!1,default:!1})],M.prototype,"preselectESim",void 0),(0,s.Cg)([(0,r.y_)()],M.prototype,"confirm",void 0),(0,s.Cg)([(0,r.y_)()],M.prototype,"customerService",void 0),(0,s.Cg)([(0,r.y_)()],M.prototype,"domUtils",void 0),(0,s.Cg)([(0,r.y_)()],M.prototype,"session",void 0),(0,s.Cg)([(0,r.y_)()],M.prototype,"uwa",void 0),(0,s.Cg)([(0,r.y_)()],M.prototype,"trackingService",void 0),(0,s.Cg)([(0,r.y_)()],M.prototype,"config",void 0),(0,s.Cg)([(0,r.y_)()],M.prototype,"stepupMode",void 0),(0,s.Cg)([(0,r.ox)("subscription")],M.prototype,"handleSubscriptionChange",null),(0,s.Cg)([(0,r.ox)("updateEmail")],M.prototype,"syncEmailValue",null);var A=M=(0,s.Cg)([(0,r.uA)({components:{SimSelector:v.A,AddressForm:l.A,Checkbox:d.A,Field:c.A,InputPlaceholder:p.A,MvForm:u.A,Password:h.A,RadioGroup:_.A,WizardFooter:m.A,WizardStep:g.A,SimTypeSelector:f.A}})],M),k=(0,i(41618).A)(A,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.session.profile&&t.subscription?e("MvForm",{staticClass:"requestSwap",attrs:{name:"RequestSwap"}},[e("WizardStep",{attrs:{title:t.$t("request_swap.good_to_know_title"),hideNumber:!0}},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("request_swap.good_to_know__description"),expression:"$t('request_swap.good_to_know__description')"}],staticClass:"wizardStep__paddedContent ExternalContent"})]),e("WizardStep",{attrs:{title:t.$t("request_swap.select_sim")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("SimSelector",{attrs:{filter:t=>"enabled"===t.state,appearance:"radioGroup"},model:{value:t.subscription,callback:function(e){t.subscription=e},expression:"subscription"}})],1)]),e("WizardStep",{attrs:{title:t.$t("request_swap.block_current_sim_card__title"),description:t.$t("request_swap.block_current_sim_card__description")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("RadioGroup",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],staticClass:"requestSwap__shouldBlockSim",attrs:{name:"shouldBlockSim",options:[!0,!1]},scopedSlots:t._u([{key:"default",fn:function({option:e}){return[!0===e?[t._v(" "+t._s(t.$t("request_swap.block_current_sim_card__option_immediately"))+" ")]:t._e(),!1===e?[t._v(" "+t._s(t.$t("request_swap.block_current_sim_card__option_on_activation"))+" ")]:t._e()]}}],null,!1,0x55c50dde),model:{value:t.shouldBlockSim,callback:function(e){t.shouldBlockSim=e},expression:"shouldBlockSim"}})],1)]),t.mayChooseSimType?e("WizardStep",{staticClass:"simTypeSelectorWizardStep",attrs:{title:t.$t("request_swap.choose_sim_type__title"),description:t.$t("request_swap.choose_sim_type__description")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("SimTypeSelector",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],attrs:{withoutDeviceSelection:t.disabledESimDeviceSelection,autoSelect:!0},scopedSlots:t._u([{key:"esimMore",fn:function(){return[e("RouterLink",{attrs:{to:{...t.$route,query:{...t.$route.query,spc:"faq-item",id:t.eSimFaqItemId}}}},[t._v(" "+t._s(t.$t("registration.faq_sidepanel_what_is_esim"))+" ")])]},proxy:!0}],null,!1,0x6cefdc6c),model:{value:t.simType,callback:function(e){t.simType=e},expression:"simType"}})],1)]):t._e(),"embedded"===t.simType?e("WizardStep",{attrs:{title:t.$t("request_swap.verify_info__title"),description:t.verifyInfoDescription},scopedSlots:t._u([{key:"footer",fn:function(){return[e("div",{staticClass:"requestSwap__adaptDetails"},[e("Checkbox",{attrs:{name:"shouldUpdateEmail",label:t.$t("request_swap.i_want_to_change_my_mail")},model:{value:t.updateEmail,callback:function(e){t.updateEmail=e},expression:"updateEmail"}}),t.updateEmail?[e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("request_swap.email_update_may_trigger_extra_verification"),expression:"$t('request_swap.email_update_may_trigger_extra_verification')"}],staticClass:"requestSwap__verificationHint"}),e("Field",{attrs:{label:t.$t("field_new_email"),validationErrors:t.$tList(t.uwaValidationErrors.email,"validationError__")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.updateEmailValue,expression:"updateEmailValue"},{name:"validate",rawName:"v-validate",value:"email",expression:"'email'"}],attrs:{autocomplete:"email",type:"email",name:"new-email",required:""},domProps:{value:t.updateEmailValue},on:{blur:function(e){delete t.uwaValidationErrors.email},input:function(e){e.target.composing||(t.updateEmailValue=e.target.value)}}}),t.showIncompleteProfileWarning?e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("request_swap.please_fill_remaining_profile_info"),expression:"$t('request_swap.please_fill_remaining_profile_info')"}],staticClass:"requestSwap__profileIncompleteWarning"}):t._e()])]:t._e()],2)]},proxy:!0}],null,!1,0x9ec57c7)},[e("div",{staticClass:"wizardStep__paddedContent"},[e("div",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],staticClass:"requestSwap__emailDisplay"},[e("span",{staticClass:"label"},[t._v(t._s(t.$t("field_email")))]),e("span",{staticClass:"value"},[t._v(t._s(t.profile.email))]),t.showIncompleteProfileWarning?e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("request_swap.please_fill_remaining_profile_info"),expression:"$t('request_swap.please_fill_remaining_profile_info')"}],staticClass:"requestSwap__profileIncompleteWarning"}):t._e()])])]):"physical"===t.simType?e("WizardStep",{attrs:{title:t.$t("request_swap.verify_info__title"),description:t.verifyInfoDescription}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("AddressForm",{class:{loading:t.loadingShippingAddress},attrs:{allowNeighboringCountries:!0,prefix:"requestSwap"},model:{value:t.shippingAddress,callback:function(e){t.shippingAddress=e},expression:"shippingAddress"}})],1)]):e("WizardStep",{attrs:{title:t.$t("request_swap.verify_info__title"),description:t.verifyInfoDescription}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("InputPlaceholder",{attrs:{text:t.$t("request_swap.verify_info__description_placeholder")}})],1)]),"password"===t.stepupMode?e("WizardStep",{attrs:{title:t.$t("request_swap.enter_password__title"),description:t.$t("request_swap.enter_password__description")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("Field",{attrs:{label:t.$t("password"),validationErrors:t.$tList(t.uwaValidationErrors.password,"validationError__")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"password",required:"","data-vv-as":t.$t("password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)],1)]):t._e(),e("WizardFooter",{attrs:{ctaText:"password"===t.stepupMode?t.$t("request_swap.confirm_request"):t.$t("request_swap.confirm_request_with_password"),onConfirm:t.confirmRequest,secCtaText:t.$t("request_swap.cancel_request")},on:{reject:t.cancelRequest}})],1):t._e()},[],!1,null,"4904f1f6",null).exports}
47,54173:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return u}});var s=i(32198),a=i(67953),n=i(78098),o=i(78160),r=i(10231),l=i(3231);class d extends a.lD{get remainingBundlesDescription(){return"physical"===this.simType?this.$t("request_swap_done.receive_regularsim"):this.$t("request_swap_done.receive_esim")}get blockItemDescription(){return"both"===this.block?this.$t("request_swap_done.blocked_both_for_your_{simType}",{simType:this.simType}):this.$t("request_swap_done.blocked_your_sim_for_your_{simType}",{simType:this.simType})}goToSimPage(){this.$router.push({name:l.A.sims})}}(0,s.Cg)([(0,a.y_)()],d.prototype,"session",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],d.prototype,"block",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!0})],d.prototype,"simType",void 0);var c=d=(0,s.Cg)([(0,a.uA)({components:{WizardDoneSummary:o.A,IconWithText:n.A,WizardFooter:r.A}})],d),u=(0,i(41618).A)(c,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"requestSwapDone"},[t("WizardDoneSummary",[t("IconWithText",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],attrs:{iconUrl:"--icon-message-in-a-bottle-bg-url",text:this.$t("request_swap_done.{email}_with_instructions_has_been_sent",{email:this.session.profile.email})}}),this.block?t("IconWithText",{attrs:{iconUrl:"--icon-sim-blocked-bg-url",text:this.blockItemDescription}}):this._e(),t("IconWithText",{attrs:{iconUrl:"--icon-simcard-bg-url",text:this.remainingBundlesDescription}}),t("IconWithText",{attrs:{iconUrl:"--icon-playingcards-bg-url",text:this.$t("request_swap_done.transfer_remaining_bundle")}}),t("IconWithText",{attrs:{iconUrl:"--icon-steeringwheel-bg-url",text:this.$t("request_swap_done.pin_code_reminder")}})],1),t("WizardFooter",{attrs:{onConfirm:this.goToSimPage,ctaText:this.$t("request_swap_done.to_my_viking")}})],1)},[],!1,null,"658deb2b",null).exports},38958:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return w}});var s=i(32198),a=i(58294),n=i(67953),o=i(99679),r=i(45656),l=i(1122),d=i(57399),c=i(52202);function u(t){return t.split("").join("â ")}class p extends n.lD{get simInfo(){let t=this.subscription,e=t.sim;return e?[{title:this.$t("vikingnumber"),value:t.accountId?u(t.accountId):void 0,piiMask:!0},{title:this.$t("sim_info_section.sim_card_type"),value:"physical"===e.type?this.$t("sim_info_section.type__physical"):this.$t("sim_info_section.type__embedded")},{title:this.$t("original_pin"),description:this.$t("original_pin_explanation"),value:u(e.pin1),piiMask:!0},{title:this.$t("cellphone_number"),value:(0,l.$o)(t.product)&&(0,l.cb)(t.product)?void 0:(0,d.i)(t.msisdn),piiMask:!0},{title:this.$t("simcard_number"),value:this.$t("sim_info_section.where_to_find_iccid")},{title:this.$t("puk"),value:u(e.puk1),piiMask:!0}]:[]}}(0,s.Cg)([(0,n.kv)()],p.prototype,"subscription",void 0);var h=p=(0,s.Cg)([(0,n.uA)({components:{InfoList:c.A}})],p),_=i(41618),m=(0,_.A)(h,function(){var t=this._self._c;return this._self._setupProxy,t("section",{staticClass:"sim-info-section"},[t("InfoList",{attrs:{data:this.simInfo}})],1)},[],!1,null,null,null).exports,g=i(44492),v=i(80846),f=i(3231);let y=(0,a.tZ)("SimInfo");class b extends n.lD{mounted(){let t=this.$router.currentRoute.hash.replace("#","");t&&this.$nextTick(()=>window.document?.getElementById(t)?.scrollIntoView())}async onSubscriptionChange(t){await Promise.all([this.loadPendingSwapSim(t),this.loadTerminationStatus(t)])}async loadPendingSwapSim(t){try{let e=await this.subscriptionService.getPendingSwapSim(t);this.ongoingSimSwap=!!e}catch(t){y.error("Failed to fetch pending swap sim orders",t)}}async loadTerminationStatus(t){try{let e=await this.subscriptionService.getScheduledTermination(t);this.pendingTermination=!!e}catch(t){y.error("Failed to fetch termination of subscription",t)}}get subscription(){return this.session.mobileSubscription}constructor(...t){super(...t),this.ongoingSimSwap=!1,this.pendingTermination=!1}}(0,s.Cg)([(0,n.y_)()],b.prototype,"config",void 0),(0,s.Cg)([(0,n.y_)()],b.prototype,"session",void 0),(0,s.Cg)([(0,n.y_)()],b.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,n.ox)("subscription",{immediate:!0})],b.prototype,"onSubscriptionChange",null);var C=b=(0,s.Cg)([(0,n.uA)({computed:{RouteName:()=>f.A},components:{InlineNotification:o.A,ThematicLinks:v.A,ThematicLink:g.A,LinksetInfo:r.A,SimInfoSection:m}})],b),w=(0,_.A)(C,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"simInfo"},[this.pendingTermination?t("InlineNotification",{staticClass:"simInfo__terminationHint",attrs:{notificationType:"hint"}},[t("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("simsettings.sim_will_terminate_some_options_are_not_available"),expression:"$t('simsettings.sim_will_terminate_some_options_are_not_available')"}]})]):this._e(),this.subscription?t("SimInfoSection",{staticClass:"simInfo__simInfoSection nextStyleLevel",attrs:{subscription:this.subscription}}):this._e(),t("ThematicLinks",{staticClass:"nextStyleLevel",attrs:{"data-qa":"swap_links"}},[this.ongoingSimSwap?t("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("simsettings.sim_swap_links_disabled"),expression:"$t('simsettings.sim_swap_links_disabled')"}],staticClass:"sim_swap_disabled"}):this._e(),t("ThematicLink",{staticClass:"request-swap",attrs:{"data-qa":"sim_swap",disabled:this.ongoingSimSwap||this.pendingTermination,to:{name:this.RouteName.simSwap},title:this.$t("simsettings.simcard_swap_link"),tip:this.$t("simsettings.simcard_swap_tip")}})],1)],1)},[],!1,null,"d59b17f2",null).exports}
47,98908:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return v}});var s=i(32198),a=i(58294),n=i(1122),o=i(62765),r=i(67953),l=i(99679),d=i(45656),c=i(49458),u=i(44492),p=i(80846),h=i(3231);let _=(0,a.tZ)("SimSettings");class m extends r.lD{async loadAuthorizations(t){try{let e=await this.authorizationService.getAuthorizations();this.authorizations=e.forSubscription(t)}catch(t){_.error("Failed getting authorizations",t)}}async loadPendingSwapSim(t){try{let e=await this.subscriptionService.getPendingSwapSim(t);this.ongoingSimSwap=!!e}catch(t){_.error("Failed to fetch pending swap sim orders",t)}}async loadMigrationStatus(t){try{let e=await this.subscriptionService.getLastMigration(t);this.tooRecentLastMigration=!this.config.featureFlags.ignoreTooRecentMigration&&await this.subscriptionService.blockMigrationBecauseMigratedTooRecently(e),this.pendingMigration=await this.subscriptionService.blockMigrationBecauseOfPendingMigration(e)}catch(t){_.error("Failed to fetch last migration of subscription",t)}}async loadTerminationStatus(t){try{let e=await this.subscriptionService.getScheduledTermination(t);this.pendingTermination=!!e}catch(t){_.error("Failed to fetch termination of subscription",t)}}async determineEmployerLinkImpact(t){this.linkedToEmployer=!!t&&!!t.employerLink&&("active"===t.employerLink.state||"paused"===t.employerLink.state),this.linkedToEmployerWithNoMigrationOptions=this.linkedToEmployer&&!await this.areAnyPostpaidMigrationOptionsAvailable(t.employerLink.reduction,t)}async areAnyPostpaidMigrationOptionsAvailable(t,e){if(!(0,n.s1)(e.product))return!0;let i=(0,n.ki)(e.product);try{let e=(await this.productService.getPostpaidProducts()).filter(e=>e.isB2bProduct&&e.monthly>=t),s=e.filter(t=>"flatrate"===t.variant);this.unlimitedProductPrice=s[0].monthly;let a=e.map(t=>t.monthly),n=a.indexOf(i.monthly);return -1!==n&&a.splice(n,1),a.length>0}catch(t){return _.error("Failed to fetch price of unlimited postpaid subscription",t),!0}}async onSubscriptionChange(t){this.authorizations=null,this.tooYoungToMigrate=this.subscriptionService.blockMobileMigrationBecauseTooYoung(this.session.profile,"postpaid"),await Promise.all([this.loadAuthorizations(t),this.loadPendingSwapSim(t),this.loadMigrationStatus(t),this.loadTerminationStatus(t),this.determineEmployerLinkImpact(t)])}oobHint(t){return t?"next_bill_run"===t.waitingFor?this.$t("out_of_bundle.hint_waiting_for_next_bill_run",{newValue:(0,o.up)(t.newThreshold,"two_if_significant")}).toString():"bundle_expired"===t.waitingFor?this.$t("out_of_bundle.hint_waiting_for_bundle_expired",{newValue:(0,o.up)(t.newThreshold,"two_if_significant")}).toString():"":""}get blockedDueToEmployerUnlimited(){return this.$t("migration_none_allowed_due_to_employer_link_unlimited_{monthly}",{monthly:this.unlimitedProductPrice}).toString()}get quickSettings(){let t=this,e=this.session.mobileSubscription;if(!e)return{};let i=this.subscriptionIsPrepaid,s=this.subscriptionIsPostpaid,a=this.subscriptionIsDataOnly19,n={};if(r("sim_alias",{spc:"sim-alias"},this.alias),(s||i||a)&&r("voicemail",{spc:"voicemail"}),(s||i)&&r("services",{spc:"services"}),this.subscription&&this.subscription.isOwner&&r("sim_authorizations",{spc:"authorizations",subscriptionId:this.subscription.id},this.formattedAuthorizations,10),s){let t=this.outOfBundleService.getThresholdOrderState(this.subscription),e=t=>(_.error("Failed to load OOB state",t),"");r("out_of_bundle_limit",{spc:"out-of-bundle"},t.then(t=>(0,o.up)(t.currentThreshold,"two_if_significant")).catch(e),5,t.then(t=>this.oobHint(t)).catch(e))}return e.isCancelled||"data-only"===e.specificSubscriptionType||r("clan",{spc:"clan"}),this.allowedEmployerLink&&r("employer_link",{spc:"b2b-employer-link"}),n;function r(e,i,s,a,o){n[e]={title:t.$t(`setting_${e}`).toString(),status:s,query:i,statusLength:a,hint:o}}}get subscription(){return this.session.mobileSubscription}get alias(){return this.subscription?this.subscription.alias||"":null}get formattedAuthorizations(){let t=(this.authorizations?.outgoingGrants.length||0)+(this.authorizations?.outgoingInvites.length||0);return this.authorizations&&this.subscription?this.$tc("sim_authorizations.{count}_people_authorized",t,{count:t}).toString():null}get subscriptionIsPrepaid(){return!!this.subscription&&(0,n.$o)(this.subscription.product)&&!n.z_.includes(this.subscription.product.variant)}get subscriptionIsPostpaid(){return!!this.subscription&&(0,n.s1)(this.subscription.product)}get subscriptionIsDataOnly19(){return!!this.subscription&&(0,n.$o)(this.subscription.product)&&"data-only-2019"===this.subscription.product.variant}get paymentSettingsTip(){return this.subscriptionIsPostpaid?this.$t("simsettings.payment_settings_tip_postpaid").toString():this.$t("simsettings.payment_settings_tip_prepaid").toString()}get employerLink(){return this.subscription&&this.subscription.employerLink?this.subscription.employerLink:null}get allowedEmployerLink(){return!!this.employerLink&&["active","pending","paused"].includes(this.employerLink.state)}constructor(...t){super(...t),this.authorizations=null,this.RouteName=h.A,this.tooRecentLastMigration=!1,this.pendingMigration=!1,this.pendingTermination=!1,this.tooYoungToMigrate=!1,this.ongoingSimSwap=!1,this.linkedToEmployer=!1,this.linkedToEmployerWithNoMigrationOptions=!1,this.unlimitedProductPrice
47=0}}(0,s.Cg)([(0,r.y_)()],m.prototype,"config",void 0),(0,s.Cg)([(0,r.y_)()],m.prototype,"session",void 0),(0,s.Cg)([(0,r.y_)()],m.prototype,"outOfBundleService",void 0),(0,s.Cg)([(0,r.y_)()],m.prototype,"authorizationService",void 0),(0,s.Cg)([(0,r.y_)()],m.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,r.y_)()],m.prototype,"productService",void 0),(0,s.Cg)([(0,r.ox)("subscription",{immediate:!0})],m.prototype,"onSubscriptionChange",null);var g=m=(0,s.Cg)([(0,r.uA)({components:{InlineNotification:l.A,ThematicLink:u.A,ThematicLinks:p.A,QuickSettingsList:c.A,LinksetInfo:d.A}})],m),v=(0,i(41618).A)(g,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"simSettings"},[this.pendingTermination?t("InlineNotification",{staticClass:"simSettings__terminationHint",attrs:{notificationType:"hint"}},[t("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("simsettings.sim_will_terminate_some_options_are_not_available"),expression:"$t('simsettings.sim_will_terminate_some_options_are_not_available')"}]})]):this._e(),t("QuickSettingsList",{staticClass:"simSettings__quicksettings nextStyleLevel",attrs:{settings:this.quickSettings}}),this.subscriptionIsPostpaid?t("ThematicLinks",{staticClass:"nextStyleLevel",attrs:{id:"subscription_post_links"}},[this.tooYoungToMigrate?t("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("migration_not_allowed_not_of_age_for_postpaid"),expression:"$t('migration_not_allowed_not_of_age_for_postpaid')"}],staticClass:"isOfAgeForPostpaid"}):this._e(),this.tooRecentLastMigration?t("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("migration_not_allowed_already_switched_within_short_timeframe"),expression:"$t('migration_not_allowed_already_switched_within_short_timeframe')"}],staticClass:"tooRecentLastMigration"}):this._e(),this.pendingMigration?t("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("migration_not_allowed_migration_already_running"),expression:"$t('migration_not_allowed_migration_already_running')"}],staticClass:"pendingMigration"}):this._e(),this.tooRecentLastMigration||this.pendingMigration||!this.linkedToEmployer||this.linkedToEmployerWithNoMigrationOptions?this._e():t("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("migration_to_non_postpaid_not_allowed_due_to_employer_link"),expression:"$t('migration_to_non_postpaid_not_allowed_due_to_employer_link')"}],staticClass:"linkedToEmployer"}),!(this.tooRecentLastMigration||this.pendingMigration)&&this.linkedToEmployerWithNoMigrationOptions?t("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.blockedDueToEmployerUnlimited,expression:"blockedDueToEmployerUnlimited"}],staticClass:"linkedToEmployerWithNoMigrationOptions"}):this._e(),this.ongoingSimSwap?t("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("simsettings.migration_not_allowed_sim_swap_running"),expression:"$t('simsettings.migration_not_allowed_sim_swap_running')"}],staticClass:"pendingSimSwap"}):this._e(),t("ThematicLink",{staticClass:"reset-bundle",attrs:{disabled:this.tooYoungToMigrate||this.tooRecentLastMigration||this.pendingMigration||this.pendingTermination||this.ongoingSimSwap,to:{name:this.RouteName.bundleRenewal},title:this.$t("simsettings.reset_subscription_link"),tip:this.$t("simsettings.reset_subscription_tip")}}),t("ThematicLink",{staticClass:"migrate-post",attrs:{disabled:this.tooYoungToMigrate||this.tooRecentLastMigration||this.pendingMigration||this.pendingTermination||this.linkedToEmployerWithNoMigrationOptions||this.ongoingSimSwap,to:{name:this.RouteName.migrate,params:{toType:"postpaid"}},title:this.$t("simsettings.migrate_post2post_link"),tip:this.$t("simsettings.migrate_post2post_tip")}}),t("ThematicLink",{staticClass:"migrate-pre",attrs:{disabled:this.tooRecentLastMigration||this.pendingMigration||this.linkedToEmployer||this.pendingTermination||this.ongoingSimSwap,to:{name:this.RouteName.migrate,params:{toType:"prepaid"}},title:this.$t("simsettings.migrate_post2pre_link"),tip:this.$t("simsettings.migrate_post2pre_tip")}}),t("ThematicLink",{staticClass:"migrate-do",attrs:{disabled:this.tooRecentLastMigration||this.pendingMigration||this.linkedToEmployer||this.pendingTermination||this.ongoingSimSwap,to:{name:this.RouteName.migrate,params:{toType:"data-only"}},title:this.$t("simsettings.migrate_2pre_do_link"),tip:this.$t("simsettings.migrate_2pre_do_tip")}})],1):this._e(),this.subscriptionIsPrepaid||this.subscriptionIsPostpaid?t("ThematicLinks",{staticClass:"nextStyleLevel",attrs:{id:"global_pass_links"}},[t("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("simsettings.add_roaming_bundle_more_info"),expression:"$t('simsettings.add_roaming_bundle_more_info')"}]}),t("ThematicLink",{staticClass:"add-roaming-bundle",attrs:{to:{name:this.RouteName.addRoamingBundle},title:this.$t("simsettings.add_roaming_bundle_link"),tip:this.$t("simsettings.add_roaming_bundle_tip")}})],1):this._e(),this.subscriptionIsPrepaid?t("ThematicLinks",{staticClass:"nextStyleLevel",attrs:{id:"subscription_pre_links"}},[this.tooYoungToMigrate?t("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("migration_not_allowed_not_of_age_for_postpaid"),expression:"$t('migration_not_allowed_not_of_age_for_postpaid')"}],staticClass:"isOfAgeForPostpaid"}):this._e(),this.tooRecentLastMigration?t("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("migration_not_allowed_already_switched_within_short_timeframe"),expression:"$t('migration_not_allowed_already_switched_within_short_timeframe')"}],staticClass:"tooRecentLastMigration"}):this._e(),this.pendingMigration?t("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("migration_not_allowed_migration_already_running"),expression:"$t('migration_not_allowed_migration_already_running')"}],staticClass:"pendingMigration"}):this._e(),this.ongoingSimSwap?t("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("simsettings.migration_not_allowed_sim_swap_running"),expression:"$t('simsettings.migration_not_allowed_sim_swap_running')"}],staticClass:"pendingSimSwap"}):this._e(),t("ThematicLink",{staticClass:"migrate-post",attrs:{disabled:this.tooYoungToMigrate||this.tooRecentLastMigration||this.pendingMigration||this.ongoingSimSwap,to:{name:this.RouteName.migrate,params:{toType:"postpaid"}},title:this.$t("simsettings.migrate_pre2post_link"),tip:this.$t("simsettings.migrate_pre2post_tip")}}),t("ThematicLink",{staticClass:"migrate-do",attrs:{disabled:this.tooRecentLastMigration||this.pendingMigration||this.ongoingSimSwap,to:{name:this.RouteName.migrate,params:{toType:"data-only"}},title:this.$t("simsettings.migrate_2pre_do_link"),tip:this.$t("simsettings.migrate_2pre_do_tip")}})],1):this._e(),this.subscriptionIsDataOnly19?t("ThematicLinks",{staticClass:"nextStyleLevel",attrs:{id:"subscription_do_links"}},[this.tooYoungToMigrate?t("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("migration_not_allowed_not_of_age_for_postpaid"),expression:"$t('migration_not_allowed_not_of_age_for_postpaid')"}],staticClass:"isOfAgeForPostpaid"}):this._e(),this.tooRecentLastMigration?t("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("migration_not_allowed_already_switched_within_short_timeframe"),expression:"$t('migration_not_allowed_already_switched_within_short_timeframe')"}],staticClass:"tooRecentLastMigration"}):this._e(),this.pendingMigration?t("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("migration_not_allowed_migration_already_running"),expression:"$t('migration_not_allowed_migration_already_running')"}],staticClass:"pendingMigration"}):this._e(),this.ongoingSimSwap?t("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("simsettings.migration_not_allowed_sim_swap_running"),expression:"$t('simsettings.migration_not_allowed_sim_swap_running')"}],staticClass:"pendingSimSwap"}):this._e(),t("ThematicLink",{staticClass:"migrate-post",attrs:{disabled:this.tooYoungToMigrate||this.tooRecentLastMigration||this.pendingMigration||this.ongoingSimSwap,to:{name:this.RouteName.migrate,params:{toType:"postpaid"}},title:this.$t("simsettings.migrate_do2post_link"),tip:this.$t("simsettings.migrate_do2post_tip")}}),t("ThematicLink",{staticClass:"migrate-pre",attrs:{disabled:this.tooRecentLastMigration||this.pendingMigration||this.ongoingSimSwap,to:{name:this.RouteName.migrate,params:{toType:"prepaid"}},title:this.$t("simsettings.migrate_do2pre_link"),tip:this.$t("simsettings.migrate_do2pre_tip")}})],1):this._e(),t("ThematicLinks",{staticClass:"nextStyleLevel",attrs:{id:"payment_settings"}},[t("ThematicLink",{attrs:{to:{name:"paymentMethods"},title:this.$t("simsettings.payment_settings_link"),tip:this.paymentSettingsTip}}
47)],1),t("ThematicLinks",{staticClass:"nextStyleLevel",attrs:{id:"subscription_destroy_links"}},[this.subscription&&!this.subscription.employerLink?t("ThematicLink",{staticClass:"sim-transfer",attrs:{destructive:!0,icon:"iconTransferSim",disabled:this.pendingTermination,to:{name:this.RouteName.inviteForTransfer},title:this.$t("simsettings.invite_for_transfer")}}):this._e(),this.subscription&&this.subscriptionIsPostpaid?t("ThematicLink",{staticClass:"cancel-subscription",attrs:{destructive:!0,disabled:this.pendingTermination,to:{name:this.RouteName.cancelSubscription},title:this.$t("simsettings.cancel_subscription_link"),tip:this.$t("simsettings.cancel_subscription_tip")}}):this._e()],1)],1)},[],!1,null,"3ed692ae",null).exports},31325:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return tz}});var s,a,n,o,r=i(32198),l=i(58294),d=i(67953),c=i(59844),u=i(64063),p=i(21395),h=i(83487),_=i(3231),m=i(71229);class g extends d.lD{get state(){if(!this.$vnode.key)throw Error("CollapsibleStep must have a key.");if("string"!=typeof this.$vnode.key)throw Error("CollapsibleStep key must be a string.");let t=this.$vnode.key;return this.collapsibleStepsContext.state[t]}}(0,r.Cg)([(0,d.y_)()],g.prototype,"collapsibleStepsContext",void 0);var v=g=(0,r.Cg)([(0,d.uA)({})],g),f=i(41618),y=(0,f.A)(v,function(){var t=this._self._c;return this._self._setupProxy,t("div",[this._t("default",null,null,{state:this.state})],2)},[],!1,null,null,null).exports;class b extends d.lD{get isControlled(){return void 0!==this.$props.open}get currentOpen(){return this.isControlled?this.$props.open:this.internalOpen}toggleContext(t){this.collapsibleContext.open=t}handleOpenChange(t){this.isControlled&&void 0!==t&&(this.internalOpen=t)}handleToggle(){if(this.$props.disabled)return;let t=!this.currentOpen;this.isControlled||(this.internalOpen=t),this.$emit("onOpenChange",t)}constructor(...t){super(...t),this.internalOpen=this.$props.defaultOpen,this.collapsibleContext=d.lD.observable({open:this.currentOpen,disabled:this.$props.disabled,onOpenToggle:this.handleToggle})}}(0,r.Cg)([(0,d.kv)({type:Boolean,required:!1,default:void 0})],b.prototype,"open",void 0),(0,r.Cg)([(0,d.kv)({type:Boolean,required:!1,default:!1})],b.prototype,"defaultOpen",void 0),(0,r.Cg)([(0,d.kv)({type:Boolean,required:!1,default:!1})],b.prototype,"disabled",void 0),(0,r.Cg)([(0,d.ox)("currentOpen")],b.prototype,"toggleContext",null),(0,r.Cg)([(0,d.ox)("open")],b.prototype,"handleOpenChange",null),(0,r.Cg)([(0,d.ku)()],b.prototype,"collapsibleContext",void 0);var C=b=(0,r.Cg)([(0,d.uA)({})],b),w=(0,f.A)(C,function(){var t=this._self._c;return this._self._setupProxy,t("div",[this._t("default")],2)},[],!1,null,null,null).exports;class S extends d.lD{}(0,r.Cg)([(0,d.y_)()],S.prototype,"collapsibleContext",void 0);var M=S=(0,r.Cg)([(0,d.uA)({})],S),A=(0,f.A)(M,function(){var t=this._self._c;return this._self._setupProxy,t("div",{directives:[{name:"show",rawName:"v-show",value:this.collapsibleContext.open,expression:"collapsibleContext.open"}],attrs:{tabindex:"0"}},[this._t("default")],2)},[],!1,null,null,null).exports;class k extends d.lD{}(0,r.Cg)([(0,d.y_)()],k.prototype,"collapsibleContext",void 0);var I=k=(0,r.Cg)([(0,d.uA)({})],k),x=(0,f.A)(I,function(){var t=this._self._c;return this._self._setupProxy,t("button",{staticClass:"collapsibleTrigger",attrs:{type:"button","aria-expanded":this.collapsibleContext.open||!1},on:{click:this.collapsibleContext.onOpenToggle}},[this._t("default")],2)},[],!1,null,"65d83852",null).exports;class N extends d.lD{render(){return this.activeStep}}(0,r.Cg)([(0,d.kv)({required:!0})],N.prototype,"activeStep",void 0);var T=N=(0,r.Cg)([(0,d.uA)({name:"active-step"})],N),D=(0,f.A)(T,s,a,!1,null,null,null).exports;class $ extends d.lD{get activeNode(){return this.collapsibleStepNodes[this.activeStep-1]}get collapsibleStepNodes(){return this.$slots&&this.$slots?.default&&this.$slots.default.filter(P)||[]}get numberOfSteps(){return this.collapsibleStepNodes.length}get state(){return this.collapsibleStepNodes.reduce((t,e,i)=>{if(!e)return t;if(!e.key)throw Error("CollapsibleStep must have a key.");if("string"!=typeof e.key)throw Error("CollapsibleStep key must be a string.");return t[e.key]=i<this.activeStep-1?"fulfilled":i===this.activeStep-1?"current":"upcoming",t},{})}constructor(...t){super(...t),this.open=!1,this.collapsibleStepsContext=d.lD.observable({state:this.state})}}function P(t){return t.componentOptions?.tag==="CollapsibleStep"}(0,r.Cg)([(0,d.kv)({type:Number,required:!0,default:0})],$.prototype,"activeStep",void 0),(0,r.Cg)([(0,d.kv)({type:Boolean,required:!1,default:!1})],$.prototype,"disabled",void 0),(0,r.Cg)([(0,d.ku)()],$.prototype,"collapsibleStepsContext",void 0);var L=$=(0,r.Cg)([(0,d.uA)({components:{CollapsibleContent:A,CollapsibleTrigger:x,Collapsible:w,ActiveStep:D}})],$),E=(0,f.A)(L,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"collapsibleSteps"},[e("Collapsible",{attrs:{open:t.open,disabled:t.disabled},on:{onOpenChange:()=>t.open=!t.open}},[e("div",{staticClass:"collapsibleSteps_header"},[e("div",{staticClass:"collapsibleSteps_header__progress"},[t._t("progress",null,null,{max:t.numberOfSteps,value:t.activeStep})],2),e("CollapsibleTrigger",{staticClass:"collapsibleSteps_header__trigger",attrs:{"aria-describedby":"steps-description"}},[t._t("trigger",null,null,{open:t.open})],2),e("div",{staticClass:"sr-only",attrs:{id:"steps-description","aria-live":"polite"}},[t._v(" "+t._s(t.$t("collapsible_steps.screen_reader_description__{current}_{total}__screenread",{current:t.activeStep,total:t.numberOfSteps}))+" ")])],1),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.open&&t.activeNode,expression:"!
47open && activeNode"}],attrs:{"data-qa":"collapsible-steps-active-step"}},[e("ActiveStep",{attrs:{activeStep:t.activeNode}})],1),e("CollapsibleContent",[e("div",{staticClass:"collapsibleSteps_content",attrs:{"data-qa":"collapsible-steps-content"}},[t._t("default")],2)])],1)],1)},[],!1,null,"646fa1b7",null).exports,O=i(95990);class z extends d.lD{}(0,r.Cg)([(0,d.kv)({required:!1,default:null})],z.prototype,"value",void 0),(0,r.Cg)([(0,d.kv)({required:!0})],z.prototype,"max",void 0),(0,r.Cg)([(0,d.kv)({required:!1,default:!1})],z.prototype,"loading",void 0);var j=z=(0,r.Cg)([(0,d.uA)({})],z),B=(0,f.A)(j,n,o,!1,null,null,null).exports;class F extends B{get items(){return Array.from({length:this.max},(t,e)=>e+1)}isItemActive(t){return t<=(this.value??this.max)}}var q=F=(0,r.Cg)([(0,d.uA)({})],F),R=(0,f.A)(q,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"progressDashed"},t._l(t.items,function(i){return e("div",{key:i,staticClass:"progressDashed_item",class:{"progressDashed_item-loading":t.loading},attrs:{"data-active":t.isItemActive(i)}})}),0)},[],!1,null,"578ae336",null).exports;class U extends d.lD{}(0,r.Cg)([(0,d.kv)({required:!0})],U.prototype,"area",void 0);var V=U=(0,r.Cg)([(0,d.uA)({})],U),W=(0,f.A)(V,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"trigger",class:{trigger__small:"small"===this.area,trigger__large:"large"===this.area}},[this._t("default")],2)},[],!1,null,"4db2fc8a",null).exports;class Q extends d.lD{}(0,r.Cg)([(0,d.kv)({type:Boolean,required:!0})],Q.prototype,"open",void 0),(0,r.Cg)([(0,d.kv)({required:!0})],Q.prototype,"area",void 0),(0,r.Cg)([(0,d.kv)({type:Boolean,required:!1,default:!1})],Q.prototype,"loading",void 0);var Y=Q=(0,r.Cg)([(0,d.uA)({components:{TriggerBase:W}})],Q),G=(0,f.A)(Y,function(){var t=this._self._c;return this._self._setupProxy,t("TriggerBase",{attrs:{area:this.area}},[t("div",{staticClass:"chevronCircle",class:{"chevronCircle--small":"small"===this.area,"chevronCircle--large":"large"===this.area,"chevronCircle--open":this.open,"chevronCircle--loading":this.loading}})])},[],!1,null,"166fe0f3",null).exports,H=i(44492),Z=i(80846),J=i(78906);let K=(0,l.tZ)("CancelMobileOrder");class X extends d.lD{async cancelOrder(){try{if(!this.order||!this.subscription||!await this.confirm(this.$t("cancelMobileOrder.are_you_sure__description")))return;await this.orderService.cancelOrder(this.order.id),this.trackingService.cancelOrder(this.subscription.product),this.notify.success("cancelMobileOrder.success",{},{},"mobile_order_cancelled"),this.session.update({subscriptions:this.session.subscriptions?.filter(t=>t!==this.subscription)});let t={customer_code:(0,J._w)(this.session.profile).id,contract_id:this.subscription.id};await this.showSurvey("mobileOrderCancellationSurvey",this.$t("cancel_order_survey.title").toString(),this.$t("cancel_order_survey.intro").toString(),t),this.$router.push({name:_.A.productsOverview})}catch(t){K.error("Failed to cancel mobile order",t),this.notifyGenericErrors(t)}}}(0,r.Cg)([(0,d.kv)({required:!0})],X.prototype,"order",void 0),(0,r.Cg)([(0,d.kv)({required:!0})],X.prototype,"subscription",void 0),(0,r.Cg)([(0,d.y_)()],X.prototype,"orderService",void 0),(0,r.Cg)([(0,d.y_)()],X.prototype,"trackingService",void 0),(0,r.Cg)([(0,d.y_)()],X.prototype,"confirm",void 0),(0,r.Cg)([(0,d.y_)()],X.prototype,"session",void 0),(0,r.Cg)([(0,d.y_)()],X.prototype,"showSurvey",void 0);var tt=X=(0,r.Cg)([(0,d.uA)({components:{ThematicLink:H.A,ThematicLinks:Z.A}})],X),te=(0,f.A)(tt,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("ThematicLinks",{staticClass:"nextStyleLevel"},[e("ThematicLink",{staticClass:"cancelOrder",attrs:{"data-qa":"cancel-order",destructive:!0,title:t.$t("cancelMobileOrder.cta_title"),tip:t.$t("cancelMobileOrder.cta_tip"),to:{}},nativeOn:{click:function(e){return e.preventDefault(),t.cancelOrder.apply(null,arguments)}}})],1)},[],!1,null,"d11cb0da",null).exports,ti=i(24176),ts=i(17945);class ta extends d.lD{}(0,r.Cg)([(0,d.kv)({type:String,required:!0})],ta.prototype,"step",void 0),(0,r.Cg)([(0,d.kv)({type:Boolean,required:!0})],ta.prototype,"active",void 0),(0,r.Cg)([(0,d.kv)({type:String,required:!0})],ta.prototype,"title",void 0),(0,r.Cg)([(0,d.kv)({type:String,required:!1})],ta.prototype,"subtitle",void 0);var tn=ta=(0,r.Cg)([(0,d.uA)({})],ta),to=(0,f.A)(tn,function(){var t=this._self._c;return this._self._setupProxy,t("header",{staticClass:"mobileSimActivationHeader"},[t("div",{staticClass:"mobileSimActivationHeader__circle-container"},[t("div",{staticClass:"mobileSimActivationHeader__circle",class:{"mobileSimActivationHeader__circle--active":this.active}},[this._v(" "+this._s(this.step)+" ")])]),t("div",{staticClass:"mobileSimActivationHeader__content"},[t("h1",{staticClass:"mobileSimActivationHeader__title"},[this._v(" "+this._s(this.title)+" ")]),this.subtitle?t("h2",{staticClass:"mobileSimActivationHeader__subtitle"},[this._v(" "+this._s(this.subtitle)+" ")]):this._e()])])},[],!1,null,"7fd516ab",null).exports;class tr extends d.lD{get isActivated(){return"current"===this.state||"fulfilled"===this.state}}(0,r.Cg)([(0,d.kv)({type:String,required:!0})],tr.prototype,"step",void 0),(0,r.Cg)([(0,d.kv)({type:String,required:!0})],tr.prototype,"state",void 0),(0,r.Cg)([(0,d.kv)({type:String,required:!0})],tr.prototype,"title",void 0),(0,r.Cg)([(0,d.kv)({type:String,required:!1})],tr.prototype,"subtitle",void 0);var tl=tr=(0,r.Cg)([(0,d.uA)({components:{MobileSimActivationHeader:to,CollapsiblePanel:ts.A}})],tr),td=(0,f.A)(tl,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"mobileSimActivationOrderBase nextStyleLevel"},[e("CollapsiblePanel",{staticClass:"nextStyleLevel",attrs:{openCloseIndicator:"plus",centerIndicator:!0,expanded:"current"===t.state,appearance:"emphasised"},scopedSlots:t._u([{key:"header",fn:function(){return[e("MobileSimActivationHeader",{attrs:{step:t.step,active:t.isActivated,title:t.title,subtitle:t.subtitle}}
47)]},proxy:!0},{key:"content",fn:function(){return[e("div",{staticClass:"mobileSimActivationOrderBase__content"},[t._t("default")],2)]},proxy:!0}],null,!0)})],1)},[],!1,null,"4bbb9ce2",null).exports;let tc=(0,l.tZ)("MobileSimActivationError");class tu extends d.lD{get msisdnAccountMismatchDescription(){return{line1:`${this.$t("mobile_sim_activation.step_3_error_message_msisdn_account_mismatch_line_1")}`,line2:`${this.$t("mobile_sim_activation.step_3_error_message_msisdn_account_mismatch_line_2")}`,cta:{text:`${this.$t("mobile_sim_activation.step_3_error_message_msisdn_account_mismatch_cta_text")}`,to:{name:_.A.editMnpDetails,params:{orderId:this.order.id}}}}}get msisdnIccidMismatchDescription(){return{line1:`${this.$t("mobile_sim_activation.step_3_error_message_msisdn_iccid_mismatch_line_1")}`,line2:`${this.$t("mobile_sim_activation.step_3_error_message_msisdn_iccid_mismatch_line_2")}`,cta:{text:`${this.$t("mobile_sim_activation.step_3_error_message_msisdn_iccid_mismatch_cta_text")}`,to:{name:_.A.editMnpDetails,params:{orderId:this.order.id}}}}}get notActiveDescription(){return{line1:`${this.$t("mobile_sim_activation.step_3_error_message_not_active_line_1")}`,line2:`${this.$t("mobile_sim_activation.step_3_error_message_not_active_line_2")}`}}get otherDescription(){return{line1:`${this.$t("mobile_sim_activation.step_3_error_message_other_line_1")}`,line2:`${this.$t("mobile_sim_activation.step_3_error_message_other_line_2")}`,cta:{text:`${this.$t("mobile_sim_activation.step_3_error_message_other_cta_text")}`,href:`${this.$t("mobile_sim_activation.step_3_error_message_other_cta_url")}`}}}get defaultDescription(){return{line1:`${this.$t("mobile_sim_activation.step_3_default_reason_line_1")}`,cta:{text:`${this.$t("mobile_sim_activation.step_3_default_reason_cta_text")}`,to:{name:_.A.contactUs}}}}get MnpRejectedWithoutReasonDescription(){return{line1:`${this.$t("mobile_sim_activation.step_3_error_message_no_reject_reason_line_1")}`,cta:{text:`${this.$t("mobile_sim_activation.step_3_error_message_no_reject_reason_cta_text")}`,to:{name:_.A.activationStart}}}}get description(){if("mnp_rejected"===this.order.state)return"rejectReason"in this.order?"msisdn_account_mismatch"===this.order.rejectReason?this.msisdnAccountMismatchDescription:"msisdn_iccid_mismatch"===this.order.rejectReason?this.msisdnIccidMismatchDescription:"not_active"===this.order.rejectReason?this.notActiveDescription:"other"===this.order.rejectReason?this.otherDescription:(tc.error(`Got a reject reason that is not mapped: ${this.order?.rejectReason||""}`),this.defaultDescription):this.MnpRejectedWithoutReasonDescription;return this.defaultDescription}constructor(...t){super(...t),this.RouteName=_.A}}(0,r.Cg)([(0,d.kv)({required:!0})],tu.prototype,"state",void 0),(0,r.Cg)([(0,d.kv)({required:!0})],tu.prototype,"order",void 0),(0,r.Cg)([(0,d.kv)({required:!0})],tu.prototype,"subscriptionId",void 0),(0,r.Cg)([(0,d.y_)()],tu.prototype,"goTo",void 0);var tp=tu=(0,r.Cg)([(0,d.uA)({components:{CallToAction:ti.A,MobileSimActivationOrderBase:td}})],tu),th=(0,f.A)(tp,function(){var t=this._self._c;return this._self._setupProxy,t("MobileSimActivationOrderBase",{attrs:{step:"3",title:`${this.$t("mobile_sim_activation.step_3_title_rejected")}`,state:this.state}},[this.description?t("div",{staticClass:"mobileSimActivationError__content"},[t("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.description.line1,expression:"description.line1"}],staticClass:"mobileSimActivationError__paragraph"}),t("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.description.line2,expression:"description.line2"}],staticClass:"mobileSimActivationError__paragraph"}),this.description.cta?[t("div",{staticClass:"mobileSimActivationError__cta"},[t("CallToAction",{staticClass:"mobileSimActivationError__ctaLink",attrs:{to:this.description.cta.to,href:this.description.cta.href}},[this._v(this._s(this.description.cta.text||""))])],1)]:this._e()],2):this._e()])},[],!1,null,"5149369b",null).exports;class t_ extends d.lD{}var tm=t_=(0,r.Cg)([(0,d.uA)({components:{CollapsibleStep:y,CollapsiblePanel:ts.A,ProgressDashed:R,CollapsibleSteps:E,TriggerChevronCircle:G}})],t_),tg=(0,f.A)(tm,function(){var t=this._self._c;return this._self._setupProxy,t("CollapsibleSteps",{attrs:{activeStep:1,disabled:!0},scopedSlots:this._u([{key:"progress",fn:function({max:e,value:i}){return[t("ProgressDashed",{attrs:{loading:!0,max:e,value:i}})]}},{key:"trigger",fn:function(){return[t("TriggerChevronCircle",{attrs:{loading:!0,open:!1,area:"large"}})]},proxy:!0}])},[t("CollapsibleStep",{key:"step1"},[t("div",{staticClass:"nextStyleLevel"},[t("CollapsiblePanel",{staticClass:"nextStyleLevel",attrs:{expanded:!0,centerIndicator:!0,openCloseIndicator:"plus",appearance:"emphasised"},scopedSlots:this._u([{key:"header",fn:function(){return[t("div",{staticClass:"mobileSimActivationLoading--header"})]},proxy:!0},{key:"content",fn:function(){return[t("div",{staticClass:"mobileSimActivationLoading--content"},[t("div",{staticClass:"mobileSimActivationLoading--content-shimmer"})])]},proxy:!0}])})],1)]),t("CollapsibleStep",{key:"step2"},[t("div")]),t("CollapsibleStep",{key:"step3"},[t("div")]),t("CollapsibleStep",{key:"step4"},[t("div")])],1)},[],!1,null,"b18165ca",null).exports,tv=i(70180);class tf extends d.lD{}(0,r.Cg)([(0,d.kv)({required:!0})],tf.prototype,"state",void 0),(0,r.Cg)([(0,d.kv)({type:Boolean,required:!0})],tf.prototype,"isEsim",void 0),(0,r.Cg)([(0,d.kv)({required:!0})],tf.prototype,"order",void 0);var ty=tf=(0,r.Cg)([(0,d.uA)({methods:{formatDate:tv.Yq},components:{MobileSimActivationOrderBase:td}})],tf),tb=(0,f.A)(ty,function(){var t=this._self._c;return this._self._setupProxy,t("MobileSimActivationOrderBase",{attrs:{step:"1",title:`${this.$t("mobile_sim_activation.step_1_title")}`,state:this.state,subtitle:this.formatDate(this.order.created)}},[t("p",{staticClass:"mobileSimActivationStep1__paragraph"},[this._v(" "+this._s(this.isEsim?this.$t("mobile_sim_activation.step_1_description_esim"):this.$t("mobile_sim_activation.step_1_description_sim"))+" ")])])},[],!1,null,"bb2f708e",null).exports;class tC extends d.lD{get deliveryDate(){return this.order.created.plusDays(2)}get title(){return this.isEsim?`${this.$t("mobile_sim_activation.step_2_title_esim")}`:`${this.$t("mobile_sim_activation.step_2_title_sim")}`}get line1(){return this.isEsim?this.$t("mobile_sim_activation.step_2_line1_esim_{email}__html",{email:this.session.profile?.email||""}):this.$t("mobile_sim_activation.step_2_line1_sim")}get line2(){var t;return(t=this.order,(0,m.$P)(t)&&t.donor)?this.isEsim?this.$t("mobile_sim_activation.step_2_line2_mnp_esim"):this.$t("mobile_sim_activation.step_2_line2_mnp_sim"):this.isEsim?this.$t("mobile_sim_activation.step_2_line2_no_mnp_esim"):this.$t("mobile_sim_activation.step_2_line2_no_mnp_sim")}get cta(){return this.isEsim?this.$t("mobile_sim_activation.step_2_cta_text_esim"):this.$t("mobile_sim_activation.step_2_cta_text_sim")}handleNavigation(){this.$router.push({name:_.A.activationStart,query:{type:this.isEsim?"esim":"sim"}})}}(0,r.Cg)([(0,d.kv)({required:!0})],tC.prototype,"state",void 0),(0,r.Cg)([(0,d.kv)({type:Boolean,required:!0})],tC.prototype,"isEsim",void 0),(0,r.Cg)([(0,d.kv)({required:!0})],tC.prototype,"order",void 0),(0,r.Cg)([(0,d.y_)()],tC.prototype,"session",void 0);var tw=tC=(0,r.Cg)([(0,d.uA)({methods:{formatDateLong:tv.OS},components:{CallToAction:ti.A,MobileSimActivationOrderBase:td}})],tC),tS=(0,f.A)(tw,function(){var t=this._self._c;return this._self._setupProxy,t("MobileSimActivationOrderBase",{attrs:{step:"2",state:this.state,title:this.title}},[t("div",{staticClass:"mobileSimActivationStep2__content"},[t("p",{directives:[{name:"pii-mask",rawName:"v-pii-mask"},{name:"html-safe",rawName:"v-html-safe",value:this.line1,expression:"line1"}],staticClass:"mobileSimActivationStep2__paragraph"}),t("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.line2,expression:"line2"}],staticClass:"mobileSimActivationStep2__paragraph"}),!this.isEsim&&this.deliveryDate?t("div",[t("p",{staticClass:"mobileSimActivationStep2__paragraph"},[this._v(this._s(this.$t("mobile_sim_activation.delivery_date")))]),t("p",{staticClass:"mobileSimActivationStep2__paragraph"},[t("strong",[this._v(this._s(this.formatDateLong(this.deliveryDate,this.locale)))])])]):this._e(),"current"===this.state?t("div",{staticClass:"mobileSimActivationStep2__cta"},[t("CallToAction",{on:{click:this.handleNavigation}}
47,[this._v(this._s(this.cta))])],1):this._e()])])},[],!1,null,"62b791a6",null).exports;class tM extends d.lD{get title(){return this.isEsim?`${this.$t("mobile_sim_activation.step_3_title_esim")}`:`${this.$t("mobile_sim_activation.step_3_title_sim")}`}get description(){return this.isEsim?`${this.$t("mobile_sim_activation.step_3_esim_line_1")}`:`${this.$t("mobile_sim_activation.step_3_sim_line_1")}`}}(0,r.Cg)([(0,d.kv)({required:!0})],tM.prototype,"state",void 0),(0,r.Cg)([(0,d.kv)({type:Boolean,required:!0})],tM.prototype,"isEsim",void 0);var tA=tM=(0,r.Cg)([(0,d.uA)({components:{MobileSimActivationOrderBase:td}})],tM),tk=(0,f.A)(tA,function(){var t=this._self._c;return this._self._setupProxy,t("MobileSimActivationOrderBase",{attrs:{step:"3",state:this.state,title:this.title}},[t("p",{staticClass:"mobileSimActivationStep3__paragraph"},[this._v(" "+this._s(this.description)+" ")])])},[],!1,null,"56c92132",null).exports;class tI extends d.lD{get title(){return this.isEsim?this.$t("mobile_sim_activation.step_4_title_esim"):this.$t("mobile_sim_activation.step_4_title_sim")}get description(){return this.isEsim?this.$t("mobile_sim_activation.step_4_description_esim"):this.$t("mobile_sim_activation.step_4_description_sim")}}(0,r.Cg)([(0,d.kv)({type:String,required:!0})],tI.prototype,"state",void 0),(0,r.Cg)([(0,d.kv)({type:Boolean,required:!0})],tI.prototype,"isEsim",void 0);var tx=tI=(0,r.Cg)([(0,d.uA)({components:{MobileSimActivationOrderBase:td}})],tI),tN=(0,f.A)(tx,function(){var t=this._self._c;return this._self._setupProxy,t("MobileSimActivationOrderBase",{attrs:{step:"4",state:this.state,title:this.title}},[t("p",[this._v(this._s(this.description))])])},[],!1,null,null,null).exports;let tT=["waiting_for_sim_matching","wait_for_identification","waiting_for_customer_verification","wait_for_mnp_details"];class tD extends d.lD{async mounted(){try{if(this.loading=!0,!this.subscription)throw Error("Subscription is not defined");let t=await this.orderService.getPendingCreationOrder(this.subscription),e=await this.orderService.getPendingActivation(this.subscription);this.order=e||t}finally{this.loading=!1}}get activeStep(){var t,e,i;return this.order?(t=this.order)&&(0,m.wg)(t)&&tT.includes(t.state)?2:(e=this.order)&&(0,m.nx)(e)&&["wait_for_activation"].includes(e.state)?3:(i=this.order)&&((0,m.wg)(i)?["processing","review_needed"].includes(i.state):!!(0,m.nx)(i)&&["mnp_rejected","mnp_followup","review_needed"].includes(i.state))?(this.error=!0,3):1:1}get isEsim(){return this.subscription?.sim?.type==="embedded"}get canCancelOrder(){return!!this.order&&!this.loading&&(0,m.Le)(this.order)}constructor(...t){super(...t),this.error=!1,this.loading=!1,this.order=null}}(0,r.Cg)([(0,d.kv)({required:!0})],tD.prototype,"subscription",void 0),(0,r.Cg)([(0,d.y_)()],tD.prototype,"orderService",void 0),(0,r.Cg)([(0,d.y_)()],tD.prototype,"trackingService",void 0),(0,r.Cg)([(0,d.y_)()],tD.prototype,"confirm",void 0);var t$=tD=(0,r.Cg)([(0,d.uA)({components:{CancelMobileOrder:te,MobileSimActivationLoading:tg,ErrorPanel:O.A,MobileSimActivationStep1:tb,MobileSimActivationStep2:tS,MobileSimActivationStep3:tk,MobileSimActivationStep4:tN,MobileSimActivationError:th,TriggerChevronCircle:G,CollapsibleSteps:E,ProgressDashed:R,CollapsibleStep:y}})],tD),tP=(0,f.A)(t$,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",[t.order&&["waiting_for_internal_approval"].includes(t.order.state)?[e("ErrorPanel",{attrs:{"data-qa":"simNotActive-errorPanel",title:`${t.$t("simcard_screen.wait_for_approval_title")}`,description:`${t.$t("simcard_screen.wait_for_approval_description")}`,iconCssVar:"--icon-simcard-bg-url",appearance:"ribbon"}})]:t.order?[e("CollapsibleSteps",{attrs:{activeStep:t.activeStep},scopedSlots:t._u([{key:"progress",fn:function({max:t,value:i}){return[e("ProgressDashed",{attrs:{max:t,value:i}})]}},{key:"trigger",fn:function({open:t}){return[e("TriggerChevronCircle",{attrs:{open:t,area:"large"}})]}}])},[e("CollapsibleStep",{key:"step1",scopedSlots:t._u([{key:"default",fn:function({state:i}){return[e("MobileSimActivationStep1",{attrs:{state:i,isEsim:t.isEsim,order:t.order}})]}}])}
47),e("CollapsibleStep",{key:"step2",scopedSlots:t._u([{key:"default",fn:function({state:i}){return[e("MobileSimActivationStep2",{attrs:{state:i,isEsim:t.isEsim,order:t.order}})]}}])}),t.error?e("CollapsibleStep",{key:"error",scopedSlots:t._u([{key:"default",fn:function({state:i}){return[e("MobileSimActivationError",{attrs:{state:i,order:t.order,subscriptionId:t.subscription.id}})]}}],null,!1,0x84e18f67)}):e("CollapsibleStep",{key:"step3",scopedSlots:t._u([{key:"default",fn:function({state:i}){return[e("MobileSimActivationStep3",{attrs:{state:i,isEsim:t.isEsim}})]}}])}),e("CollapsibleStep",{key:"step4",scopedSlots:t._u([{key:"default",fn:function({state:i}){return[e("MobileSimActivationStep4",{attrs:{state:i,isEsim:t.isEsim}})]}}])})],1)]:t.loading?[e("MobileSimActivationLoading")]:[e("ErrorPanel",{attrs:{"data-qa":"simNotActive-errorPanel",title:`${t.$t("mobile_sim_activation.step_3_title_rejected")}`,description:`${t.$t("mobile_sim_activation.step_3_review_needed_line_1")}`,iconCssVar:"--icon-simcard-bg-url",appearance:"ribbon"}})],t.canCancelOrder?[e("CancelMobileOrder",{attrs:{order:t.order,subscription:t.subscription}})]:t._e()],2)},[],!1,null,null,null).exports;let tL=(0,l.tZ)("sim overview");class tE extends d.lD{async created(){this.session.mobileSubscription&&this.refreshSessionOnMigrationCompletion()}async refreshSessionOnMigrationCompletion(){if(this.session.mobileSubscription)try{let t=await this.subscriptionService.getPendingMigration(this.session.mobileSubscription);t&&"now"===t.condition&&this.orderService.onOrderComplete(t,()=>{this.authService.refreshSession().catch(t=>tL.error("Failed to refresh session on order complete",t))})}catch(t){tL.error("Failed to check for pending migration",t)}}get subscriptionIsEnabled(){return!!this.session.mobileSubscription&&"enabled"===this.session.mobileSubscription.state}get simRoutes(){return(0,h.Ko)(this.routes,_.A.sims).filter(t=>t.meta&&!!(0,p.RP)(t.meta.nav))}goToError(){this.$router.push({name:_.A.simsError})}}(0,r.Cg)([(0,d.y_)()],tE.prototype,"routes",void 0),(0,r.Cg)([(0,d.y_)()],tE.prototype,"session",void 0),(0,r.Cg)([(0,d.y_)()],tE.prototype,"authService",void 0),(0,r.Cg)([(0,d.y_)()],tE.prototype,"subscriptionService",void 0),(0,r.Cg)([(0,d.y_)()],tE.prototype,"orderService",void 0),(0,r.Cg)([(0,d.ku)()],tE.prototype,"goToError",null);var tO=tE=(0,r.Cg)([(0,d.uA)({components:{MobileSimActivation:tP,NoSimBanner:c.A,SubscriptionHeader:u.A}})],tE),tz=(0,f.A)(tO,function(){var t=this._self._c;return this._self._setupProxy,this.session.mobileSubscription?t("div",{attrs:{role:"tabpanel",tabindex:"0"}},[t("SubscriptionHeader",{attrs:{routes:this.simRoutes}}),this.subscriptionIsEnabled?t("section",[t("RouterView")],1):t("MobileSimActivation",{key:this.session.mobileSubscription.id,attrs:{subscription:this.session.mobileSubscription}})],1):t("div",[t("NoSimBanner")],1)},[],!1,null,"0559f044",null).exports},80428:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return S}});var s=i(32198),a=i(58294),n=i(8921),o=i(57399),r=i(70180),l=i(67953),d=i(58249),c=i(42123),u=i(76573),p=i(79847),h=i(20174),_=i(10231),m=i(98493),g=i(66090),v=i(13132),f=i(20020),y=i(3231);let b=(0,a.tZ)("TerminateContract");class C extends l.lD{async mounted(){(await this.orderService.getPendingOrders(this.subscription,"terminate_contract")).some(t=>"terminate_contract"===t.type&&"processing"===t.state)&&(this.notify.success("termination.termination_already_being_processed"),await this.$router.push({name:y.A.myViking}))}get subscription(){if(!this.session.mobileSubscription)throw b.debug("No subscription present. Bailing."),this.$router.push({name:y.A.myViking}),new n.Ay(n.O4.CANCELLED);return this.session.mobileSubscription}get terminationOptions(){let t=this;return[{option:"switch_operators",label:this.$t("termination.option__switch_operators"),details:this.$t("termination.option__switch_operators__details"),ctaLabel:this.$t("continue"),action:()=>this.explainSwitchAndLeave()},{option:"switch_to_prepaid",label:this.$t("termination.option__remove_postpaid_but_keep_number"),details:this.$t("termination.option__remove_postpaid_but_keep_number__details"),ctaLabel:this.$t("termination.migrate_to_prepaid_cta"),action:()=>this.migrateToPrepaid()},{option:"ditch_number",label:this.$t("termination.option__remove_postpaid_and_number"),details:function(){if(!t.balance||"error"===t.balance)return"";if(!t.balance.bundleExpiryDate)return t.$t("termination.option__remove_postpaid_and_number__details_no_bundles_{msisdn}",{msisdn:(0,o.i)(t.subscription.msisdn)});let e=(0,r.OS)(t.balance.bundleExpiryDate,t.locale);return t.$t("termination.option__remove_postpaid_and_number__details_with_bundles_{val
47idUntil}_{msisdn}",{msisdn:(0,o.i)(t.subscription.msisdn),validUntil:e})}(),ctaLabel:this.$t("continue"),action:()=>this.doTerminate()}]}get passwordRequired(){return!!this.terminationOption&&"ditch_number"===this.terminationOption.option}complainAboutNoSelection(){this.notify.error("please_select_an_option")}async migrateToPrepaid(){try{if(!await this.confirmThirdPartyLossForPrepaidMigration())return}catch(t){b.error("Failed to warn for third party fee reduction at prepaid migration",t)}await this.$router.push({name:y.A.migrate,params:{subscriptionId:this.subscription.id,toType:"prepaid"}})}async confirmThirdPartyLossForPrepaidMigration(){if(!this.session.thirdPartySubscriptions)return!0;let t=await this.getThirdPartyTerminationWarning();return!t||(await this.confirm(t,this.$t("termination.lose_tps_title"),this.$t("i_understand"),this.$t("cancel"))??!1)}async explainSwitchAndLeave(){let t=this.$t("termination.option__switch_operators__details");await this.subscriptionService.willLoseComboAdvantageUponTerminating(this.subscription)&&(t=`${this.$t("termination.lose_2p_benefits_explanation")} <br />${t}`);try{let e=await this.getThirdPartyTerminationWarning();e&&(t=`${e} <br />${t}`)}catch(t){b.error("Failed to warn for third party fee reduction at switch operator",t)}await this.alert(t),await this.$router.push({name:y.A.myViking})}async doTerminate(){try{if(this.uwaValidationErrors={},!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20);return}if(!await this.warnAboutImpact())return;await this.subscriptionService.terminateSubscription(this.subscription,this.password),await this.authService.refreshSession(),this.session.mobileSubscription&&this.notificationManager.showSubscriptionRelatedNotifications(this.session.mobileSubscription),await this.$router.push({name:y.A.cancelSubscriptionDone})}catch(i){let t=n.Ay.of(i),e=(0,f.v)(t,[{code:n.O4.INVALID_VALUE,field:"password",on:"password",message:"password_incorrect"}]);this.uwaValidationErrors=e.result,e.firstIssue||(b.error("Failed to terminate contract",i),this.notifyGenericErrors(i)),this.domUtils.scrollToFirst(".is-invalid",20)}}async cancelTermination(){await this.confirm(this.$t("termination.confirm_cancel__question"),this.$t("termination.confirm_cancel__title"),this.$t("termination.confirm_cancel__ok"),this.$t("cancel"))&&await this.$router.push({name:y.A.myViking})}async loadBalance(){try{this.balance=await this.subscriptionService.getBalance(this.subscription)}catch(t){this.balance="error",b.error("Failed to load balance",t)}}determineTerminateContractConfirmTitle(t,e,i){return t&&i?this.$t("termination.lose_2p_and_clan_benefits_title"):e&&i?this.$t("termination.lose_tps_and_clan_benefits_title"):t?this.$t("termination.lose_2p_benefits_title"):e?this.$t("termination.lose_tps_title"):this.$t("termination.lose_benefits_title")}async warnAboutImpact(){let t=[],e=null;try{(e=await this.subscriptionService.willLoseComboAdvantageUponTerminating(this.subscription))&&t.push(this.$t("termination.lose_2p_benefits_explanation"))}catch(t){b.error("Failed to warn for 2p termination at subscription termination",t)}let i=null;
47try{(i=await this.getThirdPartyTerminationWarning())&&t.push(i)}catch(t){b.error("Failed to warn for third party fee reduction at subscription termination",t)}let s=null;try{(s=(await this.clanService.getClanForSubscription(this.subscription)).isActive)&&t.push(this.$t("termination.termination_will_upset_your_clan_friends_explanation"))}catch(t){b.error("Failed to warn for clan termination at subscription termination",t)}let a=this.determineTerminateContractConfirmTitle(e,!!i,s);if(0===t.length)return!0;let n=await this.confirm(t.join("<br />"),a,this.$t("i_understand"),this.$t("cancel"));return n||await this.$router.push({name:y.A.myViking}),!!n}async getThirdPartyTerminationWarning(){if(!await this.subscriptionService.willLoseThirdPartySubscriptionUponTerminating(this.subscription)||!this.session.thirdPartySubscriptions)return null;let t=await this.reductionClient.getAdvantages();return(0,v.S)(this.session.thirdPartySubscriptions,t,this.$t.bind(this))}constructor(...t){super(...t),this.uwaValidationErrors={},this.balance=null,this.password="",this.terminationOption=null}}(0,s.Cg)([(0,l.y_)()],C.prototype,"confirm",void 0),(0,s.Cg)([(0,l.y_)()],C.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,l.y_)()],C.prototype,"notificationManager",void 0),(0,s.Cg)([(0,l.y_)()],C.prototype,"authService",void 0),(0,s.Cg)([(0,l.y_)()],C.prototype,"clanService",void 0),(0,s.Cg)([(0,l.y_)()],C.prototype,"session",void 0),(0,s.Cg)([(0,l.y_)()],C.prototype,"domUtils",void 0),(0,s.Cg)([(0,l.y_)()],C.prototype,"alert",void 0),(0,s.Cg)([(0,l.y_)()],C.prototype,"orderService",void 0),(0,s.Cg)([(0,l.y_)()],C.prototype,"reductionClient",void 0),(0,s.Cg)([(0,l.y_)()],C.prototype,"stepupMode",void 0),(0,s.Cg)([(0,l.ox)("session.mobileSubscription.id",{immediate:!0})],C.prototype,"loadBalance",null);var w=C=(0,s.Cg)([(0,l.uA)({components:{RadioGroup:p.A,Loading:h.A,WizardStep:g.A,Field:d.A,Password:u.A,MvForm:c.A,WizardSimInfo:m.A,WizardFooter:_.A}})],C),S=(0,i(41618).A)(w,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.session.mobileSubscription?e("MvForm",{staticClass:"TerminateContract",attrs:{name:"terminate"}},[t.balance?[e("WizardSimInfo",{attrs:{subscription:t.session.mobileSubscription,balance:t.balance}}),e("WizardStep",{staticClass:"stepSelection",attrs:{hideNumber:!0,title:t.$t("termination.what_do_you_want_to_do")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("RadioGroup",{staticClass:"termination-options",attrs:{options:t.terminationOptions,optionKey:"option",required:!0},scopedSlots:t._u([{key:"default",fn:function({option:e}){return[t._v(t._s(e.label))]}},{key:"radioGroupDescription",fn:function({option:i}){return[e("div",{staticClass:"TerminationOption"},[e("div",{directives:[{name:"pii-mask",rawName:"v-pii-mask"},{name:"html-safe",rawName:"v-html-safe",value:i.details,expression:"option.details"}],staticClass:"termination-disclaimer ExternalContent"}),t.passwordRequired&&"password"===t.stepupMode?e("div",{staticClass:"TerminationOption__ditch styleLevel2"},[e("Field",{attrs:{label:t.$t("password"),validationErrors:t.$tList(t.uwaValidationErrors.password,"validationError__")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:{required:t.passwordRequired},expression:"{ required: passwordRequired }"}],attrs:{name:"password",required:t.passwordRequired,"data-vv-as":t.$t("password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)],1):t._e()])]}}],null,!1,0x30637be6),model:{value:t.terminationOption,callback:function(e){t.terminationOption=e},expression:"terminationOption"}})],1)]),e("WizardFooter",{attrs:{ctaText:t.terminationOption?t.terminationOption.ctaLabel:t.$t("continue"),onConfirm:t.terminationOption?t.terminationOption.action:t.complainAboutNoSelection,secCtaText:t.$t("cancel")},on:{reject:t.cancelTermination}})]:e("Loading")],2):t._e()},[],!1,null,"f85b0142",null).exports},94527:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return _}});var s=i(32198),a=i(70180),n=i(67953),o=i(78098),r=i(98073),l=i(78160),d=i(10231),c=i(78906),u=i(3231);class p extends n.lD{get subscription(){return(0,c._w)(this.session.mobileSubscription)}get emailAddress(){return(0,c._w)(this.session.profile).email||null}get terminationDate(){return this.subscription.validUntil?(0,a.OS)(this.subscription.validUntil,this.locale):null}get lastInvoiceDate(){return this.subscription.nextBillingRun?(0,a.OS)(this.subscription.nextBillingRun,this.locale):null}goToSimPage(){this.$router.push({name:u.A.sims})}}(0,s.Cg)([(0,n.y_)()],p.prototype,"session",void 0);var h=p=(0,s.Cg)([(0,n.uA)({components:{FaqSectionWizard:r.A,WizardDoneSummary:l.A,IconWithText:o.A,WizardFooter:d.A}})],p),_=(0,i(41618).A)(h,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"terminateDone"},[t("WizardDoneSummary",[t("IconWithText",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],attrs:{"data-qa":"termination_done.stopping-postpaid",iconUrl:"--icon-simcard-bg-url",text:this.$t("termination_done.we_are_stopping_your_postpaid_and_number_{msisdn}_{alias}",{msisdn:this.subscription.msisdn,alias:this.subscription.alias})}}),t("IconWithText",{attrs:{"data-qa":"termination_done.stop-date",iconUrl:"--icon-simcard-bg-url",text:this.$t("termination_done.it_will_stop_on_{date}",{date:this.terminationDate})}}),t("IconWithText",{attrs:{"data-qa":"termination_done.receive-invoice",iconUrl:"--icon-message-in-a-bottle-bg-url",text:this.$t("termination_done.you_will_still_receive_an_invoice_on_{date}",{date:this.lastInvoiceDate})}}),this.emailAddress?t("IconWithText",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],attrs:{"data-qa":"termination_done.email",iconUrl:"--icon-anchor-bg
47-url",text:this.$t("termination_done.you_will_still_receive_a_mail_on_{address}",{address:this.emailAddress})}}):this._e()],1),t("FaqSectionWizard",{attrs:{faqCategory:"mv-cancelSubscription"}}),t("WizardFooter",{attrs:{onConfirm:this.goToSimPage,ctaText:this.$t("request_swap_done.to_my_viking")}})],1)},[],!1,null,"5e37e330",null).exports},57422:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return S}});var s=i(32198),a=i(58294),n=i(71229),o=i(94212),r=i(67953),l=i(95990),d=i(24176),c=i(50778);class u extends r.lD{get loading(){return null===this.topup}get refund(){return!!this.topup&&"refunded"===this.topup.state}get detailLink(){return this.topup?{query:{spc:"topup",topupId:this.topup.id}}:{}}}(0,s.Cg)([(0,r.kv)()],u.prototype,"topup",void 0);var p=u=(0,s.Cg)([(0,r.uA)({methods:{isBundleOrder:n.pj},components:{Tag:c.A}})],u),h=i(41618),_=(0,h.A)(p,function(){var t=this._self._c;return this._self._setupProxy,this.loading||this.refund?!this.loading&&this.refund?t("RouterLink",{staticClass:"ContentBoxList__item ContentBoxList__item--link",attrs:{to:this.detailLink}},[t("div",{staticClass:"TopupsListEntry",class:{"TopupsListEntry--bundleOrder":this.isBundleOrder(this.topup)}},[t("div",[t("span",{staticClass:"TopupsListEntry__date topup-title"},[this._v(this._s(this.topup.product?this.topup.product.title:""))]),t("span",{staticClass:"TopupsListEntry__type topup-data-time"},[this._v(this._s(this._f("date")(this.topup.refundedOn))+" - "+this._s(this._f("time")(this.topup.refundedOn)))])]),t("div",[t("Tag",{staticClass:"TopupsListEntry__refundedMarker",attrs:{appearance:"marine",size:"small"}},[this._v(" "+this._s(this.$t("refunded"))+" ")])],1)])]):t("div",{staticClass:"ContentBoxList__item ContentBoxList__item--link"},[t("div",{staticClass:"TopupsListEntry TopupsListEntry--isLoading"},[t("div",[t("span",{staticClass:"TopupsListEntry__date"},[this._v("Â ")]),t("span",{staticClass:"TopupsListEntry__type"},[this._v("Â ")])]),t("div",[t("div",{staticClass:"TopupsListEntry__amount"},[this._v("Â ")])])])]):t("RouterLink",{staticClass:"ContentBoxList__item ContentBoxList__item--link",attrs:{to:this.detailLink}},[t("div",{staticClass:"TopupsListEntry",class:{"TopupsListEntry--bundleOrder":this.isBundleOrder(this.topup)}},[t("div",[t("span",{staticClass:"TopupsListEntry__date topup-title"},[this._v(this._s(this.topup.product?this.topup.product.title:""))]),t("span",{staticClass:"TopupsListEntry__type topup-data-time"},[this._v(this._s(this._f("date")(this.topup.created))+" - "+this._s(this._f("time")(this.topup.created)))])]),t("div",[t("Tag",{staticClass:"TopupsListEntry__amount",attrs:{appearance:"green",size:"small"}},[this._v(" "+this._s(this._f("moneyCents")(this.topup.amount))+" ")])],1)])])},[],!1,null,"89b6faba",null).exports;class m extends r.lD{get loading(){return null===this.topups}constructor(...t){super(...t),this.loadingItems=5}}(0,s.Cg)([(0,r.kv)()],m.prototype,"topups",void 0);var g=m=(0,s.Cg)([(0,r.uA)({components:{MyVikingTopupsListEntry:_}})],m),v=(0,h.A)(g,function(){var t=this._self._c;return this._self._setupProxy,this.loading?t("div",{staticClass:"my-viking-topup-list ContentBoxList styleLevel1"},this._l(this.loadingItems,function(e){return t("MyVikingTopupsListEntry",{key:"shimmer-"+e,staticClass:"topup",attrs:{topup:null}})}),1):t("div",{staticClass:"my-viking-topup-list ContentBoxList styleLevel1"},this._l(this.topups,function(e,i){return t("MyVikingTopupsListEntry",{key:i,staticClass:"topup",attrs:{topup:e}})}),1)},[],!1,null,null,null).exports,f=i(3231);let y=(0,a.tZ)("TopupHistory"),b=["created","waiting_for_payment","waiting_for_payment_confirmation","enabled","processing","refunded"];class C extends r.lD{async onSubscriptionChange(t){t&&await this.loadTopups(t.id)}async loadTopups(t){if(this.loadedId!==t){this.loadedId=t,this.loading=!0,this.topups=o.Y.empty();try{this.topups=(this.session.mobileSubscription?await this.uwa.getTopups(this.session.mobileSubscription.id,b):o.Y.empty()).filter(t=>(0,n.ZG)(t)||t.product?.type==="prepaid/bundle").initialPage(5)}catch(t){y.error("Failed to load the topup history",t),this.goToError()}this.loading=!1}}more(){return this.topups.more()}constructor(...t){super(...t),this.loading=!1,this.loadedId=null,this.topups=o.Y.empty(),this.RouteName=f.A}}(0,s.Cg)([(0,r.y_)()],C.prototype,"uwa",void 0),(0,s.Cg)([(0,r.y_)()],C.prototype,"session",void 0),(0,s.Cg)([(0,r.y_)()],C.prototype,"goToError",void 0),(0,s.Cg)([(0,r.ox)("session.mobileSubscription",{immediate:!0})],C.prototype,"onSubscriptionChange",null);var w=C=(0,s.Cg)([(0,r.uA)({components:{ErrorPanel:l.A,MyVikingTopupsList:v,CallToAction:d.A}})],C),S=(0,h.A)(w,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"topupHistoryView"},[this.loading?t("MyVikingTopupsList",{attrs:{topups:null}}):this._e(),!this.loading&&this.topups.items.length>0?[t("MyVikingTopupsList",{attrs:{topups:this.topups.items}}),this.topups.hasMore?t("div",{staticClass:"topupHistoryView__loadMore"},[t("CallToAction",{staticClass:"load-more-btn",attrs:{appearance:"quarternary-small",loadingMsg:this.$t("loading"),once:this.more}},[this._v(" "+this._s(this.$t("load_more"))+" ")])],1):this._e()]:this._e(),this.loading||0!==this.topups.items.length?this._e():t("ErrorPanel",{staticClass:"topupHistoryView__noTopups",attrs:{title:this.$t("topup_history.no_topups_title"),description:this.$t("topup_history.no_topups_description"),ctaText:this.$t("topup_now"),ctaRoute:{name:this.RouteName.topup},ctaAppearance:"primary",iconCssVar:"--icon-playingcards-bg-url",appearance:"ribbon"}})],2)},[],!1,null,"591251ba",null).exports}
47,77016:function(t,e,i){"use strict";i.d(e,{A:function(){return d}});var s=i(32198),a=i(62765),n=i(67953),o=i(13352);class r extends n.lD{get hasAmount(){return void 0!==this.amount&&null!==this.amount}get formattedAmount(){return(0,a.up)(this.amount,"always_two")}}(0,s.Cg)([(0,n.kv)({type:String,required:!0})],r.prototype,"title",void 0),(0,s.Cg)([(0,n.kv)({type:String,required:!1})],r.prototype,"subtitle",void 0),(0,s.Cg)([(0,n.kv)({type:Number,required:!1})],r.prototype,"amount",void 0),(0,s.Cg)([(0,n.kv)({type:Number,required:!1,default:null})],r.prototype,"oldAmount",void 0),(0,s.Cg)([(0,n.kv)({type:Boolean,default:!1})],r.prototype,"showMonthlyPrice",void 0);var l=r=(0,s.Cg)([(0,n.uA)({components:{MonthlyPrice:o.A}})],r),d=(0,i(41618).A)(l,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"RadioGroupOption"},[t("div",[t("span",{staticClass:"RadioGroupOption__title"},[this._v(this._s(this.title))]),t("span",{staticClass:"RadioGroupOption__subtitle"},[this._v(this._s(this.subtitle))])]),t("div",[this.hasAmount?t("div",{staticClass:"RadioGroupOption__amount",attrs:{"data-qa":"radio-group-option-price"}},[this.showMonthlyPrice?t("MonthlyPrice",{attrs:{price:this.amount,oldPrice:this.oldAmount,appearance:"inherit"}}):t("span",[this._v(this._s(this.formattedAmount))])],1):this._e()])])},[],!1,null,"68414ac2",null).exports},86009:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return m}});var s=i(32198),a=i(58294),n=i(67953),o=i(78098),r=i(78160),l=i(10231),d=i(93199),c=i(78906),u=i(3231);let p=(0,a.tZ)("MigrateThirdPartySubscriptionDoneView");class h extends n.lD{async created(){try{this.titleService.pageTitle=this.$t("tps.migrate_{subhubPartner}_done",{subhubPartner:this.subscription.product.thirdPartyName}).toString(),this.loading=!0;let t=await this.productService.getThirdPartySubscriptionProducts();this.newProduct=t.find(t=>t.id===this.newProductId)||null,this.loading=!1}catch(t){p.error("failed to load product",t)}}goToProductsOverview(){this.$router.push({name:u.A.productsOverview})}get migrationExplanationText(){if(!this.newProduct)return this.$t("tps.migration_done_explanation").toString();let t=Number(this.subscription.product.monthly),e=Number(this.newProduct.monthly);if(!Number.isNaN(t)&&!Number.isNaN(e)){if(e>t)return this.$t("tps.migration_done_explanation_upgrade").toString();if(e<t)return this.$t("tps.migration_done_explanation_downgrade").toString()}return this.$t("tps.migration_done_explanation").toString()}get subscription(){let t=(0,c._w)(this.session.thirdPartySubscriptions).find(t=>t.product.thirdPartySlug===this.slug);if(!t)throw this.notify.error("tps.migration_done_error_subscription_not_found"),this.$router.push({name:u.A.productsOverview}),Error("Subscription not found");return t}constructor(...t){super(...t),this.loading=!1,this.RouteName=u.A,this.newProduct=null}}(0,s.Cg)([(0,n.kv)()],h.prototype,"newProductId",void 0),(0,s.Cg)([(0,n.kv)({type:String,required:!0})],h.prototype,"slug",void 0),(0,s.Cg)([(0,n.y_)()],h.prototype,"session",void 0),(0,s.Cg)([(0,n.y_)()],h.prototype,"productService",void 0),(0,s.Cg)([(0,n.y_)()],h.prototype,"goTo",void 0),(0,s.Cg)([(0,n.y_)()],h.prototype,"titleService",void 0);var _=h=(0,s.Cg)([(0,n.uA)({components:{WizardLoading:d.A,IconWithText:o.A,WizardDoneSummary:r.A,WizardFooter:l.A}})],h),m=(0,i(41618).A)(_,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"MigrateThirdPartySubscriptionDone"},[this.loading?t("WizardLoading"):t("div",{staticClass:"MigrateThirdPartySubscriptionDone__success"},[t("WizardDoneSummary",{staticClass:"MigrateThirdPartySubscriptionDone-nextSteps"},[t("IconWithText",this.newProduct?{attrs:{iconUrl:"--icon-anchor-bg-url",text:this.$t("tps.migration_done_for_{subhubPartner}_to_{product}",{subhubPartner:this.subscription.product.thirdPartySlug,product:this.newProduct.title})}}:{attrs:{iconUrl:"--icon-anchor-bg-url",text:this.$t("tps.migration_done_for_{subhubPartner}",{subhubPartner:this.subscription.product.thirdPartySlug})}}),t("IconWithText",{attrs:{iconUrl:"--icon-compass-bg-url",text:this.migrationExplanationText}})],1),t("WizardFooter",{staticClass:"MigrateThirdPartySubscriptionDone-toMyViking",attrs:{ctaText:this.$t("tps.migration_done_cta"),onConfirm:this.goToProductsOverview}})],1)],1)},[],!1,null,"736c76f5",null).exports}
47,43068:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return G}});var s=i(32198),a=i(58294),n=i(16488),o=i(67953),r=i(95990),l=i(93199),d=i(50103),c=i(62765),u=i(14806),p=i(58249),h=i(42123),_=i(76573);class m extends o.lD{}var g=m=(0,s.Cg)([(0,o.uA)({})],m),v=i(41618),f=(0,v.A)(g,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"Wizard"},[this._t("default")],2)},[],!1,null,"ac6045a0",null).exports,y=i(66090),b=i(79847),C=i(77016);class w extends o.lD{onAccountChanged(t){("existing"===t.id||"new"===t.id)&&this.trackingService.linkedServiceAccountTypeSelect(this.product,t.id)}get account(){return this.value}set account(t){this.$emit("input",t)}constructor(...t){super(...t),this.accounts=[{id:"existing",title:`${this.$t("tps_form.account_use_existing_{subhubPartner}_title",{subhubPartner:this.product.thirdPartyName})}`,subtitle:`${this.$t("tps_form.account_use_existing_{subhubPartner}_subtitle",{subhubPartner:this.product.thirdPartyName})}`},{id:"new",title:`${this.$t("tps_form.account_create_new_{subhubPartner}_title",{subhubPartner:this.product.thirdPartyName})}`,subtitle:`${this.$t("tps_form.account_create_new_{subhubPartner}_subtitle",{subhubPartner:this.product.thirdPartyName})}`}]}}(0,s.Cg)([(0,o.kv)({required:!0})],w.prototype,"value",void 0),(0,s.Cg)([(0,o.kv)({required:!0})],w.prototype,"product",void 0),(0,s.Cg)([(0,o.y_)()],w.prototype,"trackingService",void 0),(0,s.Cg)([(0,o.ox)("account")],w.prototype,"onAccountChanged",null);var S=w=(0,s.Cg)([(0,o.uA)({components:{RadioGroupOption:C.A,WizardStep:y.A,RadioGroup:b.A,Field:p.A}})],w),M=(0,v.A)(S,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("WizardStep",{attrs:{title:t.$t("tps_form.account_title_{subhubPartner}",{subhubPartner:t.product.thirdPartyName}),description:t.$t("tps_form.account_subtitle_{subhubPartner}__html",{subhubPartner:t.product.thirdPartyName}),"data-qa":"account-selection-step"}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("Field",[e("div",{staticClass:"Radiobuttons RadioGroup"},[e("RadioGroup",{staticClass:"animated",attrs:{options:t.accounts,optionKey:"id"},scopedSlots:t._u([{key:"default",fn:function({option:t}){return[e("RadioGroupOption",{attrs:{title:t.title,subtitle:t.subtitle}}
47)]}}]),model:{value:t.account,callback:function(e){t.account=e},expression:"account"}})],1)])],1)])},[],!1,null,null,null).exports;class A extends o.lD{get text(){return this.$t("tps_form.one_month_free_banner_{subhubPartner}__html",{subhubPartner:this.partner}).toString()}}(0,s.Cg)([(0,o.kv)({type:String,required:!0})],A.prototype,"partner",void 0);var k=A=(0,s.Cg)([o.uA],A),I=(0,v.A)(k,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"FreeTrialBanner",attrs:{"data-qa":"free-trial-banner"}},[t("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.text,expression:"text"}],staticClass:"FreeTrialBanner__text",attrs:{"data-qa":"free-trial-banner-text"}})])},[],!1,null,"22742c4e",null).exports;class x extends o.lD{onProductChange(t){let e="string"==typeof t?this.availableProducts.find(e=>e.id===t):t;if(!e)return;let i=this.values.account?.id??(this.current?"existing":"new");this.trackingService.linkedServiceProductSelect(e,i)}priceFor(t){return this.isEligibleForFreeTrial?0:t.monthly}oldPriceFor(t){return this.isEligibleForFreeTrial?t.monthly:null}get sortedProducts(){return[...this.availableProducts].sort((t,e)=>t.monthly-e.monthly)}get productValue(){return this.product}set productValue(t){this.$emit("updateProduct",t)}get heading(){return 1===this.availableProducts.length?{title:`${this.$t("tps_form.product_title_single_{subhubPartner}",{subhubPartner:this.partner})}`,subtitle:`${this.$t("tps_form.product_subtitle_single_{subhubPartner}_with_{amountWithEuroSign}_discount_on_invoice__html",{subhubPartner:this.partner,amountWithEuroSign:this.amountWithEuroSign})}`}:this.current?{title:`${this.$t("tps_form.migration_select_product_title_existing_{subhubPartner}",{subhubPartner:this.partner})}`,subtitle:`${this.$t("tps_form.migration_select_product_subtitle_existing_{subhubPartner}__html",{subhubPartner:this.partner})}`}:this.values.account&&"existing"===this.values.account.id?{title:`${this.$t("tps_form.product_title_existing_{subhubPartner}",{subhubPartner:this.partner})}`,subtitle:`${this.$t("tps_form.product_subtitle_existing_{subhubPartner}_with_{amountWithEuroSign}_discount_on_invoice__html",{subhubPartner:this.partner,amountWithEuroSign:this.amountWithEuroSign})}`}:{title:`${this.$t("tps_form.product_title_new_{subhubPartner}",{subhubPartner:this.partner})}`,subtitle:`${this.$t("tps_form.product_subtitle_new_{subhubPartner}_with_{amountWithEuroSign}_discount_on_invoice__html",{subhubPartner:this.partner,amountWithEuroSign:this.amountWithEuroSign})}`}}getProductTitle(t){let e=t.title;return this.current&&t.id===this.current.id?`${e} (${this.$t("tps.current_product")})`:e}isProductDisabled(t){return!!this.current&&t.id===this.current.id}shouldShowDowngradePausedSubscriptionWarningFor(t){return!!this.current&&t.monthly<this.current.monthly}}(0,s.Cg)([(0,o.y_)()],x.prototype,"$validator",void 0),(0,s.Cg)([(0,o.y_)()],x.prototype,"trackingService",void 0),(0,s.Cg)([(0,o.kv)({required:!0})],x.prototype,"availableProducts",void 0),(0,s.Cg)([(0,o.kv)({required:!0})],x.prototype,"values",void 0),(0,s.Cg)([(0,o.kv)({required:!0})],x.prototype,"product",void 0),(0,s.Cg)([(0,o.kv)({required:!0})],x.prototype,"partner",void 0),(0,s.Cg)([(0,o.kv)({required:!0})],x.prototype,"current",void 0),(0,s.Cg)([(0,o.kv)({required:!0})],x.prototype,"amountWithEuroSign",void 0),(0,s.Cg)([(0,o.kv)({type:Boolean,required:!1,default:!1})],x.prototype,"isEligibleForFreeTrial",void 0),(0,s.Cg)([(0,o.ox)("product")],x.prototype,"onProductChange",null);var N=x=(0,s.Cg)([(0,o.uA)({components:{FreeTrialBanner:I,RadioGroupOption:C.A,WizardStep:y.A,RadioGroup:b.A,Field:p.A}})],x),T=(0,v.A)(N,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("WizardStep",{attrs:{title:t.heading.title,description:t.heading.subtitle}},[e("div",{staticClass:"wizardStep__paddedContent"},[t.isEligibleForFreeTrial?e("FreeTrialBanner",{attrs:{partner:t.partner}}):t._e(),e("Field",[e("div",{staticClass:"Radiobuttons RadioGroup"},[e("RadioGroup",{staticClass:"animated",attrs:{options:t.sortedProducts,optionKey:"id",optionDisabled:t.isProductDisabled},scopedSlots:t._u([{key:"default",fn:function({option:i}){return[e("RadioGroupOption",{key:i.id,attrs:{title:t.getProductTitle(i),subtitle:i.description,amount:t.priceFor(i),oldAmount:t.oldPriceFor(i),showMonthlyPrice:!0}})]}},{key:"radioGroupDescription",fn:function({option:i}){return[t.shouldShowDowngradePausedSubscriptionWarningFor(i)?e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("tps_form.downgrade_paused_subscription_info_{subhubPartner}__html",{subhubPartner:t.partner}),expression:"\n $t('tps_form.downgrade_paused_subscription_info_{subhubPartner}__html', { subhubPartner: partner })\n "}],attrs:{"data-qa":"tps-downgrade-paused-subscription-warning"}}):t._e()]}}]),model:{value:t.productValue,callback:function(e){t.productValue=e},expression:"productValue"}})],1)])],1)])},[],!1,null,null,null).exports,D=i(8921),$=i(5975),P=i(86348),L=i(3231);let E=(0,a.tZ)("OrderThirdPartySubscriptionForm");class O extends o.lD{async onSubscriptionChanged(){let t=this.values?.product?.id;t&&(this.advantage=(0,d.rG)((await this.reductionClient.getAdvantages()).availableSubscriptionAdvantages,t))}async migrateSubscription(t){if(this.subscription){if(!await this.validateForm())return void this.notify.error("form_is_not_valid");this.trackingService.linkedServiceMigrateConfirm(this.subscription.product,this.values.product,this.getMigrationType(this.subscription.product.monthly,this.values.product.monthly));try{await this.uwa.migrateThirdPartySubscription(this.subscription.id,this.values.product.id,this.password,t),this.$router.push({name:L.A.thirdPartySubscriptionMigrationDone,params:{slug:this.subscription.product.thirdPartySlug},query:{newProductId:this.values.product.id}})}catch(e){E.error("Failed to migrate third party subscription",e);let t=D.Ay.of(e);t.code===D.O4.INVALID_FIELDS?this.notify.error("validationError__password_incorrect"):t.code===D.O4.SWITCHING_BLOCKED_DUE_UNPAID_INVOICES?this.notify.error("migrate_sim.error__switching_blocked_due_unpaid_invoices"):this.notifyGenericErrors(e)}}}async createOrder(t){let e=this.values.account?.id==="existing"?"existing":"new";
47this.trackingService.linkedServiceRequest(this.values.product,e);try{let e=this.$router.resolve({name:L.A.thirdPartySubscriptionsWaitingForLink,query:{partnerName:this.values.product.thirdPartyName}}),i=window.open(e.href,"_blank"),s=await this.subhubService.createOrder({productId:this.values.product.id,agreeToContract:t}),a=await this.subhubService.waitForOrderToBeReady(s.orderId);if(i)try{i.location.assign(a),i.focus(),await this.authService.refreshSession(),this.$router.push({name:L.A.productsOverview})}catch{this.goTo(a)}else this.goTo(a)}catch(t){E.error("Failed to link third party subscription",t),this.notifyGenericErrors(t)}}async submit({agreedToTos:t}){this.requireMigrationNotice&&!this.values.migrationNoticeAccepted?this.notify.error("tps_form.migration_notice_required"):t?this.subscription?await this.migrateSubscription(t):await this.createOrder(t):this.notify.error("error_notification.tps_terms_and_conditions_should_be_checked")}get contractSummaries(){return{[this.values.product.title]:this.legalDocumentService.getContractSummaryUrl(this.values.product.id)}}get ctaText(){return this.subscription?this.$t("tps_form.cta_submit_migrate").toString():this.$t("tps_form.cta_submit_{subhubPartner}",{subhubPartner:this.values?.product.thirdPartyName}).toString()}getMigrationType(t,e){let i="number"==typeof t?t:t?.amount,s="number"==typeof e?e:e?.amount;if("number"==typeof i&&"number"==typeof s){if(s>i)return"upgrade";if(s<i)return"downgrade"}return"same"}get amountWithEuroSign(){return this.advantage?(0,c.up)(this.advantage.amount,"two_if_significant"):""}get discountedMonthly(){if(this.isEligibleForFreeTrial)return 0;let t=this.values?.product?.monthly;return this.advantage&&"number"==typeof t?Math.max(0,t-this.advantage.amount):null}get discountSentence(){return this.isEligibleForFreeTrial?this.$t("tps_form.your_monthly_discount_is_{amountWithEuroSign}_after_the_free_month",{amountWithEuroSign:this.amountWithEuroSign}).toString():this.$t("tps_form.your_monthly_discount_is_{amountWithEuroSign}",{amountWithEuroSign:this.amountWithEuroSign}).toString()}get extraInfo(){let t;if(this.amountWithEuroSign&&(t=this.discountSentence),this.subscription){let e=this.subscription?.product?.monthly,i=this.values?.product?.monthly;if(e&&i){if(i>e){let e=this.$t("tps_form.upgrade_info__html").toString();return t?`${t}<br>${e}`:e}if(i<e){let e=this.$t("tps_form.downgrade_info__html").toString();return t?`${t}<br>${e}`:e}}}return t??""}constructor(...t){super(...t),this.shoppingBasketHolder=o.lD.observable(new P.A),this.advantage=null}}(0,s.Cg)([(0,o.ku)()],O.prototype,"shoppingBasketHolder",void 0),(0,s.Cg)([(0,o.y_)()],O.prototype,"$validator",void 0),(0,s.Cg)([(0,o.y_)()],O.prototype,"subhubService",void 0),(0,s.Cg)([(0,o.y_)()],O.prototype,"legalDocumentService",void 0),(0,s.Cg)([(0,o.y_)()],O.prototype,"authService",void 0),(0,s.Cg)([(0,o.y_)()],O.prototype,"uwa",void 0),(0,s.Cg)([(0,o.y_)()],O.prototype,"trackingService",void 0),(0,s.Cg)([(0,o.y_)()],O.prototype,"goTo",void 0),(0,s.Cg)([(0,o.y_)()],O.prototype,"reductionClient",void 0),(0,s.Cg)([(0,o.y_)()],O.prototype,"validateForm",void 0),(0,s.Cg)([(0,o.kv)({required:!0})],O.prototype,"values",void 0),(0,s.Cg)([(0,o.kv)({required:!0})],O.prototype,"subscription",void 0),(0,s.Cg)([(0,o.kv)({type:String,required:!1,default:""})],O.prototype,"password",void 0),(0,s.Cg)([(0,o.kv)({type:Boolean,required:!1,default:!1})],O.prototype,"requireMigrationNotice",void 0),(0,s.Cg)([(0,o.kv)({type:Boolean,required:!1,default:!1})],O.prototype,"isEligibleForFreeTrial",void 0),(0,s.Cg)([(0,o.ox)("values.product",{immediate:!0})],O.prototype,"onSubscriptionChanged",null);var z=O=(0,s.Cg)([(0,o.uA)({components:{WizardFooterShoppingBasket:$.A}})],O),j=(0,v.A)(z,function(){var t=this._self._c;return this._self._setupProxy,t("WizardFooterShoppingBasket",{staticClass:"ValidateAndSubmitStep",attrs:{items:[this.values.product],onCtaClicked:this.submit,product:this.values.product,contractSummaries:this.contractSummaries,extraInfo:this.extraInfo,ctaText:this.ctaText,discountedMonthly:this.discountedMonthly}})},[],!1,null,null,null).exports;let B={vtmgoplus:{new:["migration-notice","product-selection","validate-submit"],migration:["product-selection","password","validate-submit"],showMigrationNoticeCheckbox:!1},disney_plus:{new:["migration-notice","product-selection","validate-submit"],migration:["migration-info","product-selection","password","validate-submit"],showMigrationNoticeCheckbox:!1},deezer:{new:["migration-notice","account-selection","existing-account-notice","product-selection","validate-submit"],migration:["migration-info","product-selection","password","validate-submit"],showMigrationNoticeCheckbox:!1}},F={new:["migration-notice","product-selection","validate-submit"],migration:["migration-info","product-selection","password","validate-submit"],showMigrationNoticeCheckbox:!1},q=(0,a.tZ)("ProductsOverview");class R extends o.lD{async created(){let t=this.products[0];this.partner=t.thirdPartyName,this.values.product=this.getDefaultProduct(),await Promise.all([this.loadAdvantageForCurrentProduct(),this.loadThirdPartyProducts()]),this.subscription?this.trackingService.linkedServiceMigrateStart(this.subscription.product,this.advantage?.amount??0):this.trackingService.linkedServiceLinkStart(t,this.advantage?.amount??0)}async loadThirdPartyProducts(){try{let t=await this.subhubService.getThirdParties();this.thirdPartyProducts=t.filter(t=>t.name===this.partner)}catch(t){q.error("Failed to load third party products",t),this.thirdPartyProducts=[]}}async loadAdvantageForCurrentProduct(){let t=this.values.product?.id;if(!t){this.advantage=null;return}try{let e=await this.reductionClient.getAdvantages();this.advantage=(0,d.rG)(e.availableSubscriptionAdvantages,t)}catch{this.advantage=null}}get activeConfig(){var t;return t=this.products[0].thirdPartySlug,B[t?.toLowerCase()]??F}get showMigrationNoticeCheckbox(){return this.activeConfig.showMigrationNoticeCheckbox??!0}get configuredSteps(){return this.subscription?this.activeConfig.migration:this.activeConfig.new}get steps(){let t=this.configuredSteps,e=t.indexOf("account-selection"),i=t.indexOf("existing-account-notice"),s=-1!==e;return t.filter((t,a)=>"existing-account-notice"===t?this.showExistingAccountNotice:(!this.showExistingAccountNotice||-1===i||!(a>i))&&(!s||a<=e||this.accountStepCompleted))}get formattedDiscountAmount(){return this.advantage?(0,c.up)(this.advantage.amount,"two_if_significant"):""}get isEligibleForFreeTrial(){return!this.subscription&&!!this.thirdPartyProducts[0]?.isEligibleForTrial}get showExistingAccountNotice(){return!this.subscription&&this.values.account?.id==="existing"}get existingAccountNoticeText(){return this.$t("tps_form.existing_account_notice_{subhubPartner}__html",{subhubPartner:this.partner}).toString()}get showMigrationNotice(){return this.steps.includes("migration-notice")}get showPasswordStep(){return!!this.subscription&&!!this.values.product&&"password"===this.stepupMode}get amountWithEuroSign(){return this.advantage?(0,c.up)(this.advantage.amount,"two_if_significant"):""}get canValidateAndSubmit(){return!!this.values.product}get accountStepCompleted(){return!this.configuredSteps.includes("account-selection")||!!(this.values.account||this.subscription)}async onAccountChange(){this.values.product||(this.values.product=this.getDefaultProduct(),await this.loadAdvantageForCurrentProduct()),this.values.migrationNoticeAccepted=!1}getDefaultProduct(){let t=this.subscription?.product.id;return this.products.find(e=>!t||e.id!==t)||null}async onUpdateProduct(t){this.values.product=t,this.values.migrationNoticeAccepted=!1,await this.loadAdvantageForCurrentProduct()}constructor(...t){super(...t),this.thirdPartyProducts=[],this.validateForm=async()=>{let t=await this.$validator.validateAll();return t||this.domUtils.scrollToFirst(".is-invalid",20),t},this.partner="",this.advantage=null,this.values={account:null,product:null,password:"",migrationNoticeAccepted:!1}}}(0,s.Cg)([(0,o.y_)()],R.prototype,"$validator",void 0),(0,s.Cg)([(0,o.kv)({type:Array,required:!0})],R.prototype,"products",void 0),(0,s.Cg)([(0,o.kv)({type:Object,required:!1,default:null})],R.prototype,"subscription",void 0),(0,s.Cg)([(0,o.y_)()],R.prototype,"trackingService",void 0),(0,s.Cg)([(0,o.y_)()],R.prototype,"reductionClient",void 0),(0,s.Cg)([(0,o.y_)()],R.prototype,"subhubService",void 0),(0,s.Cg)([(0,o.y_)()],R.prototype,"domUtils",void 0),(0,s.Cg)([(0,o.y_)()],R.prototype,"stepupMode",void 0),(0,s.Cg)([(0,o.ku)()],R.prototype,"validateForm",void 0),(0,s.Cg)([(0,o.ox)("values.account")],R.prototype,"onAccountChange",null);var U=R=(0,s.Cg)([(0,o.uA)({components:{WizardRoot:f,ValidateAndSubmitStep:j,AccountSelectionStep:M,ProductSelectionStep:T,MvForm:h.A,WizardStep:y.A,Field:p.A,Password:_.A,Checkbox:u.A}})],R),V=(0,v.A)(U,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"dark-theme",attrs:{"data-qa":"order-third-party-subscription-form"}},[e("WizardRoot",[t._l(t.steps,function(i){return["account-selection"===i?e("AccountSelectionStep",{key:i,attrs:{product:t.products[0]},model:{value:t.values.account,callback:function(e){t.$set(t.values,"account",e)},expression:"values.account"}}):"existing-account-notice"===i?e("WizardStep",{key:i,attrs:{title:t.$t("tps_form.existing_account_notice_title_{subhubPartner}",{subhubPartner:t.partner}),"data-qa":"existing-account-notice-step"}},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.existingAccountNoticeText,expression:"existingAccountNoticeText"}
47],staticClass:"wizardStep__paddedContent ExternalContent"})]):"migration-info"===i?e("WizardStep",{key:i,attrs:{title:t.$t("tps_form.migration_timing_good_to_know_title_for_{subhubPartner}",{subhubPartner:t.subscription.product?.thirdPartyName}),hideNumber:!0}},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("tps_form.migration_timing_good_to_know_text_with_{amountWithEuroSign}_discount_for_{subhubPartner}_on_invoice",{amountWithEuroSign:t.formattedDiscountAmount,subhubPartner:t.subscription.product?.thirdPartyName}),expression:"\n $t(\n 'tps_form.migration_timing_good_to_know_text_with_{amountWithEuroSign}_discount_for_{subhubPartner}_on_invoice',\n { amountWithEuroSign: formattedDiscountAmount, subhubPartner: subscription.product?.thirdPartyName },\n )\n "}],staticClass:"wizardStep__paddedContent ExternalContent"})]):"product-selection"===i?e("ProductSelectionStep",{key:i,attrs:{partner:t.partner,availableProducts:t.products,values:t.values,product:t.values.product,current:t.subscription?t.subscription.product:null,amountWithEuroSign:t.amountWithEuroSign,isEligibleForFreeTrial:t.isEligibleForFreeTrial},on:{updateProduct:t.onUpdateProduct}}):"password"===i&&t.showPasswordStep?e("WizardStep",{key:i,attrs:{title:t.$t("migrate_sim.your_password"),intro:t.$t("migrate_sim.your_password_intro")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("Field",{attrs:{label:t.$t("password")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"password",required:"","data-vv-as":t.$t("password")},model:{value:t.values.password,callback:function(e){t.$set(t.values,"password",e)},expression:"values.password"}})],1)],1)]):"migration-notice"===i?e("WizardStep",{key:i,staticClass:"OrderThirdPartySubscriptionForm__migrationNotice",attrs:{title:t.$t("tps_form.migration_notice_title_{subhubPartner}",{subhubPartner:t.partner}),description:t.thirdPartyProducts[0]?.onboardingInfo,"data-qa":"migration-notice-step"}},[t.showMigrationNoticeCheckbox?e("div",{staticClass:"wizardStep__paddedContent"},[e("Field",[e("Checkbox",{attrs:{name:"migrationNoticeAccepted",required:!0,label:t.$t("tps_form.migration_notice_agree__html")},model:{value:t.values.migrationNoticeAccepted,callback:function(e){t.$set(t.values,"migrationNoticeAccepted",e)},expression:"values.migrationNoticeAccepted"}})],1)],1):t._e()]):"validate-submit"===i&&t.canValidateAndSubmit?e("ValidateAndSubmitStep",{key:i,attrs:{values:t.values,subscription:t.subscription,password:t.values.password,requireMigrationNotice:t.showMigrationNotice&&t.showMigrationNoticeCheckbox,isEligibleForFreeTrial:t.isEligibleForFreeTrial}}):t._e()]})],2)],1)},[],!1,null,null,null).exports;let W=(0,a.tZ)("OrderThirdPartySubscriptionView");class Q extends o.lD{async loadAllThirdPartySubscriptionProducts(){try{return await this.productService.getThirdPartySubscriptionProducts()}catch(t){throw W.error("Cannot load products",t),t}}normalizeSlug(t){return t.toLowerCase()}get normalizedSubscriptionSlugs(){return this.session.thirdPartySubscriptions?new Set(this.session.thirdPartySubscriptions.map(t=>this.normalizeSlug(t.product.thirdPartySlug))):new Set}get isProductAlreadyLinked(){return this.normalizedSubscriptionSlugs.has(this.normalizeSlug(this.slug))}get isSubscriptionActive(){return this.isProductAlreadyLinked&&this.session.thirdPartySubscriptions.find(t=>this.normalizeSlug(t.product.thirdPartySlug)===this.normalizeSlug(this.slug))?.state==="enabled"}get activeSubscription(){return this.isSubscriptionActive&&this.session.thirdPartySubscriptions.find(t=>this.normalizeSlug(t.product.thirdPartySlug)===this.normalizeSlug(this.slug))||null}filterByThirdPartySlug(t,e){let i=this.normalizeSlug(e);return t.filter(t=>this.normalizeSlug(t.thirdPartySlug)===i)}throwErrorIfNoProductsAreFound(t){if(0===t.length)throw this.hasError="no_products_found",Error("no_products_found");return t}throwErrorIfOnlyOneProductAvailableForSubscription(t){if(this.activeSubscription&&1===t.length)throw this.hasError="only_one_product_available",Error("only_one_product_available");return t}setAvailableProducts(t){return this.availableProducts=t,t}setPageTitle(t){this.activeSubscription?this.titleService.pageTitle=`${this.$t("migrate_tps.page_title_{subhubPartner}",{subhubPartner:t[0].thirdPartyName})}`:this.titleService.pageTitle=`${this.$t("tps_form.page_title_{subhubPartner}",{subhubPartner:t[0].thirdPartyName})}`}get errorPanelContent(){let t={no_products_found:{title:`${this.$t("tps_form_error.
47no_products_found_title")}`,description:`${this.$t("tps_form_error.no_products_found_description")}`,ctaText:`${this.$t("tps_form_error.no_products_found_cta_text")}`,ctaHref:`${this.$t("tps_form_error.no_products_found_cta_href")}`},only_one_product_available:{title:`${this.$t("tps_form_error.only_one_product_available_title")}`,description:`${this.$t("tps_form_error.only_one_product_available_description")}`,ctaText:`${this.$t("tps_form_error.only_one_product_available_cta_text")}`,ctaHref:`${this.$t("tps_form_error.only_one_product_available_for_{partnerSlug}_cta_href",{partnerSlug:this.activeSubscription?.product.thirdPartySlug})}`},product_already_linked:{title:`${this.$t("tps_form_error.product_already_linked_title")}`,description:`${this.$t("tps_form_error.product_already_linked_description")}`,ctaText:`${this.$t("tps_form_error.product_already_linked_cta_text")}`,ctaHref:`${this.$t("tps_form_error.product_already_linked_cta_href")}`},default:{title:`${this.$t("tps_form_error.default_title")}`,description:`${this.$t("tps_form_error.default_description")}`,ctaText:"",ctaHref:""}};return this.isProductAlreadyLinked&&!this.isSubscriptionActive?t.product_already_linked:null!==this.hasError&&t[this.hasError]?t[this.hasError]:t.default}get hasErrorState(){return this.isProductAlreadyLinked&&!this.isSubscriptionActive||null!==this.hasError}created(){this.loading=!0,this.loadAllThirdPartySubscriptionProducts().then(t=>this.filterByThirdPartySlug(t,this.slug)).then(n.T5).then(this.throwErrorIfNoProductsAreFound).then(this.throwErrorIfOnlyOneProductAvailableForSubscription).then(this.setAvailableProducts).then(this.setPageTitle).catch(t=>{W.error("Failed to initialize",t)}).finally(()=>{this.loading=!1})}constructor(...t){super(...t),this.loading=!1,this.hasError=null,this.availableProducts=[]}}(0,s.Cg)([(0,o.y_)()],Q.prototype,"titleService",void 0),(0,s.Cg)([(0,o.y_)()],Q.prototype,"productService",void 0),(0,s.Cg)([(0,o.y_)()],Q.prototype,"session",void 0),(0,s.Cg)([(0,o.kv)({type:String,required:!0})],Q.prototype,"slug",void 0);var Y=Q=(0,s.Cg)([(0,o.uA)({components:{ErrorPanel:r.A,WizardLoading:l.A,OrderThirdPartySubscriptionForm:V}})],Q),G=(0,v.A)(Y,function(){var t=this._self._c;return this._self._setupProxy,t("div",[this.loading?[t("WizardLoading",{attrs:{message:`${this.$t("tps_form.loading_message__html")}`}})]:this.hasErrorState?[t("ErrorPanel",{attrs:{title:this.errorPanelContent.title,description:this.errorPanelContent.description,appearance:"ribbon",size:"inline",ctaText:this.errorPanelContent.ctaText,ctaAppearance:"primary",ctaHref:this.errorPanelContent.ctaHref}})]:[t("OrderThirdPartySubscriptionForm",{attrs:{subscription:this.activeSubscription,products:this.availableProducts}})]],2)},[],!1,null,null,null).exports},9195:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return A}});var s=i(32198),a=i(58294),n=i(71229),o=i(56270),r=i(16488),l=i(50103),d=i(62765),c=i(6025),u=i(67953),p=i(24176),h=i(99679),_=i(45656),m=i(49458),g=i(56562),v=i(91543),f=i(44492),y=i(80846),b=i(25754),C=i(3231);let w=(0,a.tZ)("ThirdPartySubscriptionView");class S extends u.lD{trackLinkRetry(){this.trackingService.linkedServiceLinkRetry(this.subscription.product,this.advantage?.amount??0)}normalizeSlug(t){return t.toLowerCase()}findSubscriptionBySlug(t){if(!this.session.thirdPartySubscriptions||0===this.session.thirdPartySubscriptions.length)return null;let e=this.normalizeSlug(t);return this.session.thirdPartySubscriptions.find(t=>this.normalizeSlug(t.product.thirdPartySlug)===e)||null}async cancelOrder(){this.order&&await this.confirmCancelOrder(this.order)}async onSubscriptionChanged(){this.subscription&&(this.advantages=(await this.reductionClient.getAdvantages()).availableSubscriptionAdvantages)}get advantage(){let t=this.subscription?.product.id;if(!t)return null;if(this.isOnFreeTrial){var e;let t;return e=this.advantages,0===(t=this.partnerPaidProducts.map(t=>(0,l.rG)(e,t.id)).filter(t=>null!==t)).length?null:t.reduce((t,e)=>e.amount<t.amount?e:t)}return(0,l.rG)(this.advantages,t)}async created(){this.titleService.pageTitle=this.$tc("tps_selector.title__plural",1).toString();try{this.subscription=this.findSubscriptionBySlug(this.slug),this.subscription||w.error(`No subscription found for slug: ${this.slug}`),await this.loadPartnerPaidProducts()}catch(t){w.error("Failed to load subscription",t)}await this.loadOrders()}onSidepanelChanged(){this.titleService.pageTitle=this.$tc("tps_selector.title__plural",1).toString()}async onSlugChanged(){await this.loadOrders()}async loadPartnerPaidProducts(){try{let t=(0,r.T5)(await this.productService.getThirdPartySubscriptionProducts()),e=this.normalizeSlug(this.slug);this.partnerPaidProducts=t.filter(t=>this.normalizeSlug(t.thirdPartySlug)===e)}catch(t){w.error("Cannot load products",t)}}get partnerHasMultipleProducts(){return this.partnerPaidProducts.length>=2}get amountWithEuroSign(){return this.advantage?(0,d.up)(this.advantage.amount,"two_if_significant"):""}get quickSettings(){return this.subscription?{subscription:{title:this.$t("tps.subscription").toString(),hint:`${this.subscription.product.title} - ${this.$t("{amount}_per_month",{amount:(0,d.up)(this.subscription.product.monthly,"two_if_significant")}).toString()}
47`,isViewOnly:!0},sharedSubscriptionId:{title:this.$t("tps.shared_subscription_id").toString(),hint:this.$t("tps.shared_subscription_id_hint_for_{subhubPartner}",{subhubPartner:this.subscription.product.thirdPartyName}).toString(),...this.subscription.sharedSubscriptionId?{query:{spc:"third-party-shared-subscription-id",subscriptionId:String(this.subscription.id)}}:{},isViewOnly:!0},discount:{title:this.$t("tps.discount").toString(),status:this.advantage?this.$t("{amount}_per_month",{amount:this.amountWithEuroSign}).toString():"",hint:this.showDiscountAfterFreeMonthNote?this.$t("tps.discount_starts_after_free_month").toString():"",isViewOnly:!0},paymentSettings:{title:this.$t("tps.payment_settings").toString(),query:{spc:"third-party-payment-settings",subscriptionId:String(this.subscription.id)},isViewOnly:!0}}:null}get order(){if(this.orders&&this.subscription)return this.orders.find(t=>t.subscriptionId===this.subscription.id)}get isWaitingForActivation(){return!!this.order&&!!(0,o.Uw)(this.order)&&"wait_for_technical_execution"===this.order.state}get isOnFreeTrial(){return!!this.subscription&&(0,r.Ys)(this.subscription.product)}get isLinkedAtThirdParty(){return!!this.subscription?.isLinkedAtThirdParty}get showDiscountAfterFreeMonthNote(){return this.isOnFreeTrial&&!!this.advantage}get awaitsLinking(){return!this.isLinkedAtThirdParty&&(this.subscription?.state==="enabled"||this.isWaitingForActivation)}get canCancelOrder(){return this.awaitsLinking&&this.isWaitingForActivation}get notice(){if(this.subscription)return(0,c.qn)(this.subscription,this.orders||[])}get canOfferProductChange(){return this.partnerHasMultipleProducts&&!this.awaitsLinking}get canChangeProduct(){return!!this.subscription&&"disabled"!==this.subscription.state&&!!this.isLinkedAtThirdParty&&!this.isOnFreeTrial&&!this.isWaitingForActivation&&!this.migrationOrder&&!this.terminationOrder}get canUnlink(){return!!this.subscription&&"disabled"!==this.subscription.state&&!this.terminationOrder&&(!this.migrationOrder||this.isOnFreeTrial)}async findCreationOrderId(){if(!this.subscription)return null;let t=await this.uwa.getOrders({subscriptionId:this.subscription.id,types:["create_contract"],perPage:1}).then(t=>t.items);return t[0]?.id??null}async activateSubscription(){if(!this.subscription||!this.awaitsLinking)return;let t=this.$router.resolve({name:C.A.thirdPartySubscriptionsWaitingForLink,query:{partnerName:this.subscription?.product.thirdPartyName}}),e=window.open(t.href,"_blank");try{this.activationLinkLoading=!0,this.trackLinkRetry();let t=this.isWaitingForActivation?this.order.id:await this.findCreationOrderId();if(!t)throw Error(`No create_contract order for subscription ${this.subscription.id}`);let i=await this.poll(()=>this.uwa.getOrderActivationUrl(t),t=>!!t,2e3,3e5,"third-party activation url");i?e?(e.location.assign(i),e.focus()):window.location.assign(i):e&&e.close()}catch(t){e?.close(),w.error("Failed to load third-party activation url",t),this.notifyGenericErrors(t)}finally{this.activationLinkLoading=!1}}get migrationOrder(){if(this.orders&&this.subscription)return this.orders.find(t=>(0,n.Mm)(t)&&t.subscriptionId===this.subscription.id)}get terminationOrder(){if(this.orders&&this.subscription)return this.orders.find(t=>"terminate_3rd_party_contract"===t.type&&t.subscriptionId===this.subscription.id)}async handleInlineCancel(t){let e=t.target;if(!e?.closest?.("a"))return;t.preventDefault();let i=this.noticeOrder;i&&await this.confirmCancelOrder(i)}get noticeOrder(){return this.notice&&"order"in this.notice?this.notice.order:void 0}inlineCancelLink(){return"#"}async confirmCancelOrder(t){try{if(!await this.confirm((0,n.Mm)(t)?this.$t("tps.cancel_migration_order_tip"):(0,n._0)(t)?this.$t("tps.cancel_termination_order_tip"):this.$t("tps.cancel_{subhubPartner}_order_tip_no_{amountWithEuroSign}_discount",{subhubPartner:this.subscription?.product.thirdPartyName,amountWithEuroSign:this.amountWithEuroSign})))return;if(await this.orderService.cancelOrder(t.id),(0,n.Mm)(t)?(t.fromProduct&&t.toProduct&&this.trackingService.linkedServiceMigrateCancel(t.fromProduct,t.toProduct),this.notify.success("tps.cancel_migration_order_success")):(0,n._0
47)(t)?(this.subscription&&this.trackingService.linkedServiceTerminateCancel(this.subscription.product),this.notify.success("tps.cancel_termination_order_success")):this.notify.success("tps.cancel_{subhubPartner}_order_success_no_{amountWithEuroSign}_discount",{subhubPartner:this.subscription?.product.thirdPartyName,amountWithEuroSign:this.amountWithEuroSign}),(0,n.Mm)(t)||(0,n._0)(t))return void await this.loadOrders();await this.$router.push({name:C.A.productsOverview})}catch(t){w.error("Failed to cancel third-party subscription order",t),this.notifyGenericErrors(t)}}async loadOrders(){try{this.ordersLoading=!0,this.orders=null,await this.orderService.clearCachedData(),this.orders=await this.orderService.getAllPendingOrders()}catch(t){w.error("Failed to load orders",t),this.orders=[]}finally{this.ordersLoading=!1}}get improvesVikingDeals(){return!!this.subscription&&"enabled"===this.subscription.state&&!!this.isLinkedAtThirdParty&&"dazn"===this.normalizeSlug(this.subscription.product.thirdPartySlug)}get improvedVikingDealsLink(){return(0,b.Do)(this.$i18n.locale,"dazn")}get hasRelevantSubscriptionForDiscount(){return!!this.session.mobileSubscriptions?.find(t=>"prepaid"!==t.type)||!!this.session.broadbandSubscription}constructor(...t){super(...t),this.subscription=null,this.RouteName=C.A,this.orders=null,this.ordersLoading=!0,this.partnerPaidProducts=[],this.formatMoney=d.up,this.advantages=[],this.activationLinkLoading=!1}}(0,s.Cg)([(0,u.y_)()],S.prototype,"session",void 0),(0,s.Cg)([(0,u.y_)()],S.prototype,"orderService",void 0),(0,s.Cg)([(0,u.y_)()],S.prototype,"productService",void 0),(0,s.Cg)([(0,u.y_)()],S.prototype,"trackingService",void 0),(0,s.Cg)([(0,u.y_)()],S.prototype,"reductionClient",void 0),(0,s.Cg)([(0,u.y_)()],S.prototype,"confirm",void 0),(0,s.Cg)([(0,u.y_)()],S.prototype,"titleService",void 0),(0,s.Cg)([(0,u.y_)()],S.prototype,"uwa",void 0),(0,s.Cg)([(0,u.y_)()],S.prototype,"poll",void 0),(0,s.Cg)([(0,u.kv)({type:String,required:!0})],S.prototype,"slug",void 0),(0,s.Cg)([(0,u.ox)("subscription",{immediate:!0})],S.prototype,"onSubscriptionChanged",null),(0,s.Cg)([(0,u.ox)("$route.query.spc")],S.prototype,"onSidepanelChanged",null),(0,s.Cg)([(0,u.ox)("slug")],S.prototype,"onSlugChanged",null);var M=S=(0,s.Cg)([(0,u.uA)({components:{CallToAction:p.A,InlineNotification:h.A,LinksetInfo:_.A,SubscriptionDetails:v.A,ThematicLink:f.A,ThematicLinks:y.A,MvSection:g.A,QuickSettingsList:m.A}})],S),A=(0,i(41618).A)(M,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"content-section"},[t.subscription?e("div",{staticClass:"nextStyleLevel ThirdPartySubscription"},[e("ul",{staticClass:"ContentBoxList"},[e("li",{staticClass:"ContentBoxList__item"},[e("SubscriptionDetails",{attrs:{withIcon:!0,subscription:t.subscription}})],1)]),t.awaitsLinking?e("InlineNotification",{attrs:{notificationType:"danger","data-qa":"tps-not-linked-notification"},scopedSlots:t._u([{key:"cta",fn:function(){return[e("CallToAction",{attrs:{appearance:"secondary","data-qa":"tps-not-linked-notification-cta",loading:t.ordersLoading||t.activationLinkLoading},on:{click:t.activateSubscription}},[t._v(" "+t._s(t.$t("tps.link_account_cta"))+" ")])]},proxy:!0}],null,!1,0x14c24044)},[t._v(" "+t._s(t.$t("tps.not_linked_yet_{subhubPartner}",{subhubPartner:t.subscription.product.thirdPartyName}))+" ")]):t._e(),t.quickSettings?e("MvSection",{staticClass:"ThirdPartySubscription__section",attrs:{title:t.$t("tps.your_subscription_details"),"data-qa":"tps-quick-settings"}},[e("QuickSettingsList",{staticClass:"ThirdPartySubscription__sharedIdSettings",attrs:{settings:t.quickSettings}}
47)],1):t._e(),e("MvSection",{staticClass:"ThirdPartySubscription__section",attrs:{title:t.$t("tps.update_{subhubPartner}_subscription",{subhubPartner:t.subscription.product.thirdPartyName}),"data-qa":"tps-update-subscription"}},[e("ThematicLinks",[t.notice&&"termination"===t.notice.kind?e("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("tps.ongoing_termination_of_{subhubPartner}_with_{cancelLink}",{subhubPartner:t.notice.subject,cancelLink:t.inlineCancelLink()}),expression:"\n $t('tps.ongoing_termination_of_{subhubPartner}_with_{cancelLink}', {\n subhubPartner: notice.subject,\n cancelLink: inlineCancelLink(),\n })\n "}],nativeOn:{click:function(e){return t.handleInlineCancel.apply(null,arguments)}}}):t.notice&&"migration"===t.notice.kind?e("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("tps.ongoing_migration_of_{subhubPartner}_to_{newTier}_with_{cancelLink}",{subhubPartner:t.notice.subject,newTier:t.notice.order.toProduct.title,cancelLink:t.inlineCancelLink()}),expression:"\n $t('tps.ongoing_migration_of_{subhubPartner}_to_{newTier}_with_{cancelLink}', {\n subhubPartner: notice.subject,\n newTier: notice.order.toProduct.title,\n cancelLink: inlineCancelLink(),\n })\n "}],nativeOn:{click:function(e){return t.handleInlineCancel.apply(null,arguments)}}}):t.notice&&"free_month_switch"===t.notice.kind?e("LinksetInfo",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("tps.ongoing_migration_of_{subhubPartner}_after_free_month",{subhubPartner:t.notice.subject}),expression:"\n $t('tps.ongoing_migration_of_{subhubPartner}_after_free_month', {\n subhubPartner: notice.subject,\n })\n "}],attrs:{"data-qa":"tps-free-trial-migration-notice"}}):t._e(),t.improvesVikingDeals?e("ThematicLink",{attrs:{"data-qa":"tps-improved-viking-deals",href:t.improvedVikingDealsLink,title:t.$t("tps.improved_viking_deals_with_{subhubPartner}",{subhubPartner:t.subscription.product.thirdPartyName}),tip:t.$t("tps.improved_viking_deals_with_{subhubPartner}_tip",{subhubPartner:t.subscription.product.thirdPartyName})}}):t._e(),t.awaitsLinking?e("ThematicLink",{attrs:{"data-qa":"tps-activate-subscription",href:"#",title:t.$t("tps.activateSubscription"),tip:t.$t("tps.activate_{subhubPartner}_subscription_tip",{subhubPartner:t.subscription.product.thirdPartyName}),loading:t.ordersLoading||t.activationLinkLoading},nativeOn:{click:function(e){return e.preventDefault(),t.activateSubscription.apply(null,arguments)}}}):t._e(),t.canCancelOrder?e("ThematicLink",{attrs:{to:"","data-qa":"tps-cancel-order",title:t.$t("tps.cancel_{subhubPartner}_order",{subhubPartner:t.subscription.product.thirdPartyName}),tip:t.$t("tps.cancelOrderTip"),destructive:!0,loading:t.ordersLoading},nativeOn:{click:function(e){return e.preventDefault(),t.cancelOrder.apply(null,arguments)}}}):t._e(),t.canCancelOrder?t._e():[t.canOfferProductChange?e("ThematicLink",{attrs:{disabled:!t.canChangeProduct,"data-qa":"tps-change-subscription",to:{name:t.RouteName.thirdPartySubscriptionsOrder,params:{slug:t.subscription.product.thirdPartySlug}},title:t.$t("tps.change_{subhubPartner}_subscription",{subhubPartner:t.subscription.product.thirdPartyName}),tip:t.$t("tps.change_{subhubPartner}_subscription_tip",{subhubPartner:t.subscription.product.thirdPartyName}),loading:t.ordersLoading}}):t._e(),e("ThematicLink",{attrs:{to:{name:t.RouteName.unlinkThirdPartySubscription},disabled:!t.canUnlink,"data-qa":"tps-unlink-subscription",title:t.$t("tps.unlink_{subhubPartner}_subscription",{subhubPartner:t.subscription.product.thirdPartyName}),tip:t.$t("tps.unlinkSubscriptionTip"),destructive:!0,loading:t.ordersLoading}})]],2)],1)],1):e("div",{staticClass:"no-subscription",attrs:{"data-qa":"tps-no-subscription"}},[e("SubscriptionDetails",{attrs:{isLoading:!0}})],1)])},[],!1,null,"01509a68",null).exports},65834:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return p}});var s=i(32198),a=i(67953),n=i(78098),o=i(78160),r=i(10231),l=i(78906),d=i(3231);class c extends a.lD{created(){this.titleService.pageTitle=this.$t("tps.unlink_{subhubPartner}_done",{subhubPartner:this.resolvedPartner}).toString()}goToProductsOverview(){this.$router.push({name:d.A.productsOverview})}
47get resolvedPartner(){if(this.partnerName)return this.partnerName;let t=this.subscriptionFromSession;return t?t.product.thirdPartyName:this.slug}get subscriptionFromSession(){return this.session.thirdPartySubscriptions&&(0,l._w)(this.session.thirdPartySubscriptions).find(t=>t.product.thirdPartySlug===this.slug)||null}}(0,s.Cg)([(0,a.kv)({type:String,required:!0})],c.prototype,"slug",void 0),(0,s.Cg)([(0,a.kv)({type:String,default:""})],c.prototype,"partnerName",void 0),(0,s.Cg)([(0,a.y_)()],c.prototype,"session",void 0),(0,s.Cg)([(0,a.y_)()],c.prototype,"goTo",void 0),(0,s.Cg)([(0,a.y_)()],c.prototype,"titleService",void 0);var u=c=(0,s.Cg)([(0,a.uA)({components:{IconWithText:n.A,WizardDoneSummary:o.A,WizardFooter:r.A}})],c),p=(0,i(41618).A)(u,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"UnlinkThirdPartySubscriptionDone"},[t("div",{staticClass:"UnlinkThirdPartySubscriptionDone__success"},[t("WizardDoneSummary",{staticClass:"UnlinkThirdPartySubscriptionDone-nextSteps"},[t("IconWithText",{attrs:{iconUrl:"--icon-anchor-bg-url",text:this.$t("tps.unlink_done_for_{subhubPartner}",{subhubPartner:this.resolvedPartner})}}),t("IconWithText",{attrs:{iconUrl:"--icon-compass-bg-url",text:this.$t("tps.unlink_done_explanation")}})],1),t("WizardFooter",{staticClass:"UnlinkThirdPartySubscriptionDone-toMyViking",attrs:{ctaText:this.$t("tps.unlink_done_cta"),onConfirm:this.goToProductsOverview}})],1)])},[],!1,null,"fd671400",null).exports},70781:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return A}});var s=i(32198),a=i(67953),n=i(95990),o=i(93199),r=i(58294),l=i(8921),d=i(50103),c=i(62765),u=i(58249),p=i(42123),h=i(76573),_=i(10231),m=i(66090),g=i(20020),v=i(3231);let f=(0,r.tZ)("UnlinkThirdPartySubscriptionForm");class y extends a.lD{async loadThirdPartyAdvantage(){let t=this.subscription?.product.id;if(!t){this.advantage=null;return}try{let e=await this.reductionClient.getAdvantages();this.advantage=(0,d.rG)(e.availableSubscriptionAdvantages,t)}catch{this.advantage=null}}async created(){await this.loadThirdPartyAdvantage(),this.trackingService.linkedServiceTerminateStart(this.subscription.product,this.advantage?.amount??0)}async unlink(){try{if(this.uwaValidationErrors={},!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20);return}this.trackingService.linkedServiceTerminateConfirm(this.subscription.product,this.advantage?.amount??0),await this.subscriptionService.terminateSubscription(this.subscription,this.password),await this.authService.refreshSession(),await this.$router.push({name:v.A.unlinkThirdPartySubscriptionDone,params:{slug:this.subscription.product.thirdPartySlug},query:{partnerName:this.subscription.product.thirdPartyName}})}catch(i){let t=l.Ay.of(i);if(i.code===l.O4.SUBSCRIPTION_DEACTIVATED){f.warning("Subscription was already gone. Nothing to do."),await this.authService.refreshSession(),await this.$router.push({name:v.A.unlinkThirdPartySubscriptionDone,params:{slug:this.subscription.product.thirdPartySlug},query:{partnerName:this.subscription.product.thirdPartyName}});return}let e=(0,g.v)(t,[{code:l.O4.INVALID_VALUE,field:"password",on:"password",message:"password_incorrect"}]);this.uwaValidationErrors=e.result,e.firstIssue||(f.error("Failed to unlink third party subscription",i),this.notifyGenericErrors(i)),this.domUtils.scrollToFirst(".is-invalid",20)}}async cancel(){await this.$router.push({name:v.A.myViking})}get amountWithEuroSign(){return this.advantage?(0,c.up)(this.advantage.amount,"two_if_significant"):""}constructor(...t){super(...t),this.uwaValidationErrors={},this.password="",this.advantage=null}}(0,s.Cg)([(0,a.y_)()],y.prototype,"confirm",void 0),(0,s.Cg)([(0,a.y_)()],y.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,a.y_)()],y.prototype,"authService",void 0),(0,s.Cg)([(0,a.y_)()],y.prototype,"session",void 0),(0,s.Cg)([(0,a.y_)()],y.prototype,"domUtils",void 0),(0,s.Cg)([(0,a.y_)()],y.prototype,"trackingService",void 0),(0,s.Cg)([(0,a.y_)()],y.prototype,"reductionClient",void 0),(0,s.Cg)([(0,a.y_)()],y.prototype,"stepupMode",void 0),(0,s.Cg)([(0,a.kv)({type:Object,required:!0})],y.prototype,"subscription",void 0);var b=y=(0,s.Cg)([(0,a.uA)({components:{MvForm:p.A,WizardStep:m.A,WizardFooter:_.A,Field:u.A,Password:h.A}})],y),C=i(41618),w=(0,C.A)(b,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"UnlinkThirdPartySubscription",attrs:{name:"unlink"}},[e("WizardStep",{staticClass:"slide-down-fade-animation",attrs:{title:t.$t("tps.unlinkInformationTitle"),hideNumber:!0}},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("tps.unlink_{subhubPartner}_information_{amountWithEuroSign}__html",{subhubPartner:t.subscription.product.thirdPartyName,amountWithEuroSign:t.amountWithEuroSign}),expression:"\n $t('tps.unlink_{subhubPartner}_information_{amountWithEuroSign}__html', {\n subhubPartner: subscription.product.thirdPartyName,\n amountWithEuroSign,\n })\n "}
47],staticClass:"wizardStep__paddedContent ExternalContent"})]),"password"===t.stepupMode?e("WizardStep",{attrs:{title:t.$t("bb_termination.your_password"),intro:t.$t("bb_termination.your_password_intro"),hideNumber:!0}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("Field",{attrs:{label:t.$t("password"),validationErrors:t.$tList(t.uwaValidationErrors.password,"validationError__")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"password",required:"","data-vv-as":t.$t("password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)],1)]):t._e(),e("WizardFooter",{attrs:{ctaText:"password"===t.stepupMode?t.$t("tps.unlinkNow"):t.$t("tps.unlinkNow_with_step_up"),onConfirm:t.unlink,secCtaText:t.$t("cancel")},on:{reject:t.cancel}})],1)},[],!1,null,"6cf48faa",null).exports;class S extends a.lD{normalizeSlug(t){return t.toLowerCase()}get subscription(){return this.session.thirdPartySubscriptions&&this.session.thirdPartySubscriptions.find(t=>this.normalizeSlug(t.product.thirdPartySlug)===this.normalizeSlug(this.slug))||null}get errorPanelContent(){let t={subscription_not_found:{title:`${this.$t("tps.unlink_error_subscription_not_found_title")}`,description:`${this.$t("tps.unlink_error_subscription_not_found_description")}`,ctaText:`${this.$t("tps.unlink_error_subscription_not_found_cta_text")}`,ctaHref:`${this.$t("tps.unlink_error_subscription_not_found_cta_href")}`},default:{title:`${this.$t("tps.unlink_error_default_title")}`,description:`${this.$t("tps.unlink_error_default_description")}`,ctaText:"",ctaHref:""}};return null!==this.error&&t[this.error]?t[this.error]:t.default}onThirdPartySubscriptionsChanged(){this.checkSubscriptionExists()}checkSubscriptionExists(){void 0!==this.session.thirdPartySubscriptions&&(this.loading=!1),this.subscription?(this.error=null,this.titleService.pageTitle=`${this.$t("tps.unlink_{subhubPartner}_title",{subhubPartner:this.subscription?.product.thirdPartyName})}`):this.error="subscription_not_found"}created(){this.loading=!0,this.checkSubscriptionExists()}constructor(...t){super(...t),this.loading=!1,this.error=null}}(0,s.Cg)([(0,a.y_)()],S.prototype,"session",void 0),(0,s.Cg)([(0,a.y_)()],S.prototype,"titleService",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!0})],S.prototype,"slug",void 0),(0,s.Cg)([(0,a.ox)("session.thirdPartySubscriptions",{immediate:!0})],S.prototype,"onThirdPartySubscriptionsChanged",null);var M=S=(0,s.Cg)([(0,a.uA)({components:{WizardLoading:o.A,ErrorPanel:n.A,UnlinkThirdPartySubscriptionForm:w}})],S),A=(0,C.A)(M,function(){var t=this._self._c;return this._self._setupProxy,t("div",[this.loading?[t("WizardLoading",{attrs:{message:`${this.$t("tps.unlink_loading_message")}`}})]:this.error?[t("ErrorPanel",{attrs:{title:this.errorPanelContent.title,description:this.errorPanelContent.description,appearance:"ribbon",size:"inline",ctaText:this.errorPanelContent.ctaText,ctaAppearance:"primary",ctaHref:this.errorPanelContent.ctaHref}})]:[t("UnlinkThirdPartySubscriptionForm",{attrs:{subscription:this.subscription}})]],2)},[],!1,null,null,null).exports},75741:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return l}});var s=i(32198),a=i(67953),n=i(20174);class o extends a.lD{get waitingMessage(){let t=this.$route.query.partnerName;return"string"==typeof t&&t.trim().length>0?this.$t("tps.waiting_for_link_to_{subhubPartner}_message",{subhubPartner:t.trim()}):this.$t("tps.waiting_for_link_message")}}var r=o=(0,s.Cg)([(0,a.uA)({components:{Loading:n.A}})],o),l=(0,i(41618).A)(r,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"WaitingForThirdPartyLinkView"},[t("Loading",{staticClass:"WaitingForThirdPartyLinkView__loading",attrs:{title:this.$t("tps.waiting_for_link_title"),message:this.waitingMessage}})],1)},[],!1,null,"4f639000",null).exports},97617:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return E}});var s=i(32198),a=i(76565),n=i(58294),o=i(90004),r=i(98946),l=i(1122),d=i(8921),c=i(47211),u=i(62765),p=i(94182),h=i(44739),_=i(97587),m=i.n(_),g=i(67953),v=i(14806),f=i(58249),y=i(42123),b=i(711),C=i(76573),w=i(33905),S=i(43397),M=i(10231
47),A=i(93199),k=i(66090),I=i(23087),x=i(14064),N=i(42580),T=i(20020),D=i(3231);let $=(0,n.tZ)("TopupView");class P extends g.lD{created(){this.subscription=this.session.mobileSubscription&&this.eligibleForTopups(this.session.mobileSubscription)?this.session.mobileSubscription:null,this.loadVikingPoints()}async checkForPendingMigration(){try{if(!this.subscription)return;let t=await this.subscriptionService.getPendingMigration(this.subscription);t&&"credit_low"===t.condition&&(this.$router.push({name:D.A.myViking}),await (0,h.yy)(1),this.notify.error("Topup.cannot_topup_while_migration_pending"))}catch(t){$.error("Failed to check for a pending migration",t)}}get extraDataCandyIntro(){return this.extraDataCandy&&this.extraDataCandy.price?this.$t("topup_view.need_more_data_with_price_{extraDataCandyPrice}_intro",{extraDataCandyPrice:(0,u.up)(this.extraDataCandy.price,"always_two")}):""}get showTopupSelector(){return!!this.subscription&&(0,l.$o)(this.subscription.product)}get passwordIsRequired(){return this.vikingPointsEnabled&&this.vikingPointsAmount>0||this.orderTotal>0&&!!this.paymentMethod&&(0,r.fc)(this.paymentMethod)}get extraDataCandyTotal(){return this.extraDataCandy&&this.extraDataCandy.price?this.extraDataCandyCount*this.extraDataCandy.price:0}extraDataCandyCountChanged(){clearTimeout(this.debounceExtraDataCandyTotalPriceAnimation),this.extraDataCandyTotalPriceUpdated=!1,this.debounceExtraDataCandyTotalPriceAnimation=setTimeout(()=>{this.extraDataCandyTotalPriceUpdated=!0},10)}get canUseVikingPoints(){return!!this.subscription&&0!==this.maxVikingPointsAmount&&(!!this.session.isIdentityVerified("disallow_probation")||!this.subscription.isOwner)}get maxVikingPointsAmount(){return Math.min((this.topup?this.topup.price:0)+this.extraDataCandyTotal,this.vikingPointsBalance)}get vikingPointsTip(){return this.subscription?!this.session.isIdentityVerified()&&this.subscription.isOwner?this.$t("topup_no_vp_not_verified").toString():this.session.isInProbationPeriod&&this.subscription.isOwner?this.$t("topup_no_vp_verification_will_expire").toString():this.vikingPointsBalance>0?null:this.$t("how_to_get_viking_points").toString():null}get vikingPointsBalanceTip(){return this.$t("topup_view.you_have_{vp}_available",{vp__safe:(0,N.TY)(this.vikingPointsBalance)}).toString()}get orderTotal(){let t=this.topup?this.topup.price:0,e=this.vikingPointsEnabled?this.vikingPointsAmount:0;return+(t+this.extraDataCandyTotal-e).toFixed(2)}get selectTopupHeader(){let t=this.subscription||this.session.mobileSubscription;if(this.topups&&1===this.topups.length&&t&&(0,l.$o)(t.product)&&(0,l.XQ)(t.product)){let e=(0,u.up)(this.topups[0].price,"two_if_significant"),i=this.topups[0].definitions.bundles.data,s=i?(0,p._c)(i,this.$t.bind(this)):0;return{title:this.$t(`topup.select_topup_${t.product.variant}_title`),intro:this.$t(`topup.select_topup_${t.product.variant}_intro`,{price:e,amount:s})}}return{title:this.$t("topup.select_topup"),intro:this.$t("topup.select_topup_intro")}}get vikingPointsCoverPrice(){return!!this.topup&&!!this.vikingPointsEnabled&&this.topup.price===this.vikingPointsAmount}async fetchRecentTopup(){if(this.subscription){this.lastTopupLoading=!0;try{this.lastTopup=await this.uwa.getLastTopup(this.subscription.id)}catch(t){$.error("Unable to get lastTopup",t)}finally{this.lastTopupLoading=!1}}}async checkForPendingTopup(){this.lastTopup&&this.lastTopup.created.plusMinutes(30).isAfter(a.LocalDateTime.now())&&(0,c.Q)(this.lastTopup.state)&&await this.confirm(this.$t("topup_form.you_have_a_pending_topup__question"),this.$t("attention"),this.$t("topup_form.you_have_a_recent_topup__confirm"),this.$t("topup_form.you_have_a_recent_topup__cancel"))===!1&&this.$router.push(`/${this.locale}/my-viking`)}selectPreviousTopup(){if(this.topups&&this.lastTopup&&!this.topup){if($.debug("Selecting product based on previous topup"),!this.topups.map(t=>t.id).includes(this.lastTopup.product.id))return void $.debug(`Previous topup product (${this.lastTopup.product.id}) no longer available. Not setting`);this.topup=this.lastTopup.product}}async loadDataCandyBundle(){if(!this.subscription){this.extraDataCandy=null;return}try{this.extraDataCandy=await this.productService.getDataCandyBundle((0,l.Pd)(this.subscription.product))}catch(t){$.error("Failed to load Prepaid Package Products on the Topup.vue",t)}}eligibleForTopups(t){return"prepaid"===t.type&&"enabled"===t.state}get confirmable(){return!!this.subscription&&!!this.topup&&!this.lastTopupLoading&&(0===this.orderTotal||!!this.paymentMethod)}async doTopup(){if(!this.subscription)throw new o.p("doTopup called without subscription");if(!this.topup)throw new o.p("doTopup called without topup");this.trackConfirm(),this.uwaValidationErrors={};try{if(!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20);return}if(this.lastTopup?.created.plusMinutes(30).isAfter(a.LocalDateTime.now())&&await this.confirm(this.$t("topup_form.you_have_a_recent_topup__question_with_timeout",{timeout:30}),this.$t("attention"),this.$t("topup_form.you_have_a_recent_topup__confirm"),this.$t("topup_form.you_have_a_recent_topup__cancel"))===!1)return void this.$router.push(`/${this.locale}/my-viking`);let t=[];this.extraDataCandy&&(t=Array(this.extraDataCandyCount).fill(this.extraDataCandy));let e=this.orderPayment(),i=this.absoluteUrl(this.$router.resolve({name:D.A.topupDone})),s=await this.topupService.topup(this.subscription,this.topup,i,e,t,this.passwordIsRequired?this.password:void 0);$.info(`Topping up... redirecting to ${s}`),this.goTo(s),await (0,h.i4)()}catch(i){let t=d.Ay.of(i);if(t.code===d.O4.NOT_ENOUGH_VP&&await this.loadVikingPoints(),t.code===d.O4.NOT_ALLOWED_BECAUSE_DUNNING)return void this.notify.error("topup.error__topup_blocked_because_of_dunning");if(t.code===d.O4.NO_IDENTITY_VERIFICATION)return void this.notify.error("topup.error__cannot_topup_authorized_subscription_with_missing_verification");let e=(0,T.v)(t,[{code:d.O4.INVALID_VALUE,field:"password",on:"password",message:"password_incorrect"},{code:d.O4.RESIDUAL_AMOUNT_TOO_LOW,field:"reductions",on:"vpUsed",message:"topup.error__split_payment_amount_too_small"},{code:d.O4.NOT_ENOUGH_VP,on:"vpUsed",message:"topup.error__not_enough_vp"}]);this.uwaValidationErrors=e.result,e.firstIssue||(t.code===d.O4.ACTION_NOT_AUTHORIZED?this.notify.error("topup.error_action_not_authorized"):t.code===d.O4.SUBSCRIPTION_DEACTIVATED?this.notify.error("topup.error_subscription_deactivated"):($.error("Failed to top up",t),this.notifyGenericErrors(i))),this.domUtils.scrollToFirst(".is-invalid",20)}}orderPayment(){return new r.Ay(this.vikingPointsCoverPrice?null:this.paymentMethod,this.vikingPointsEnabled?this.vikingPointsAmount:void 0)}async cancelTopup(){await this.confirm(this.$t("topup_form.confirm_cancel__question"),this.$t("topup_form.confirm_cancel__title"),this.$t("topup_form.confirm_cancel__confirm"),this.$t("topup_form.confirm_cancel__cancel"))&&(this.trackCancel(),this.$router.push({name:D.A.myViking}))}async loadTopups(){try{this.topups=this.subscription&&(0,l.$o)(this.subscription.product)?await this.productService.getTopupProducts(this.subscription.product,!0):[]}catch(t){$.error("Failed to load topups on the Topup.vue",t)}}async loadVikingPoints(){try{this.vikingPointsBalance=Math.max(0,(await this.uwa.getVikingPointBalance()).available)}catch(t){$.error("Failed to load viking point balance",t),this.vikingPointsBalance=0}this.vikingPointsBalance>0&&this.topup&&(this.vikingPointsAmount=Math.min(this.vikingPointsBalance,this.topup.price))}autoEnableVikingPoints(){this.vikingPointsEnabled=this.canUseVikingPoints}setDefaultVpAmount(t){this.vikingPointsAmount=t}assureVpValue(){let t=Math.max(0,Math.min(+this.vikingPointsAmount,this.maxVikingPointsAmount));t!==this.vikingPointsAmount&&(this.vikingPointsAmount=t)}mounted(){this.track("start")}trackSubscriptionChange(){this.track("selectSim")}trackTopupProductChange(){this.track("selectPricePlan")}trackCandyChange(){this.track("interactExtraData")}trackVpAmount(){this.track("useVikingPoints")}trackSetPaymentMethod(){this.track("selectPaymentMethod")}trackPasswordFill(){this.track("enterPassword")}trackConfirm(){this.track("confirm")}trackCancel(){this.track("cancel")}track(t){let e=[];this.extraDataCandy&&this.extraDataCandyCount>0&&e.push(...m()(this.extraDataCandyCount).map(()=>this.extraDataCandy)),this.trackingService.updateTopup(t,this.topup,e,this.lastTopup,this.paymentMethod,null)}constructor(...t){super(...t),this.subscription=null,this.mandates=[],this.topup=null,this.topups=null,this.extraDataCandy=null,this.extraDataCandyCount=0,this.minAllowedExtraDataCandy=0,this.maxAllowedExtraDataCandy=99,this.showMaxBundlesHint=!1,this.extraDataCandyTotalPriceUpdated=!1,this.debounceExtraDataCandyTotalPriceAnimation=void 0,this.vikingPointsBalance=100,this.vikingPointsEnabled=!1,this.vikingPointsAmount=0,this.paymentMethod=null,this.uwaValidationErrors={},this.password="",this.lastTopupLoading=!1,this.lastTopup=null}}(0,s.Cg)([(0,g.y_)()],P.prototype,"session",void 0),(0,s.Cg)([(0,g.y_)()],P.prototype,"topupService",void 0),(0,s.Cg)([(0,g.y_)()],P.prototype,"uwa",void 0),(0,s.Cg)([(0,g.y_)()],P.prototype,"confirm",void 0),(0,s.Cg)([(0,g.y_)()],P.prototype,"absoluteUrl",void 0),(0,s.Cg)([(0,g.y_)()],P.prototype,"goTo",void 0),(0,s.Cg)([(0,g.y_)()],P.prototype,"config",void 0),(0,s.Cg)([(0,g.y_)()],P.prototype,"domUtils",void 0),(0,s.Cg)([(0,g.y_)()],P.prototype,"client",void 0),(0,s.Cg)([(0,g.y_)()],P.prototype,"productService",void 0),(0,s.Cg)([(0,g.y_)()],P.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,g.y_)()],P.prototype,"trackingService",void 0),(0,s.Cg)([(0,g.y_)()],P.prototype,"stepupMode",void 0),(0,s.Cg)([(0,g.ox)("subscription")],P.prototype,"checkForPendingMigration",null),(0,s.Cg)([(0,g.ox)("extraDataCandyCount")],P.prototype,"extraDataCandyCountChanged",null),(0,s.Cg)([(0,g.ox)("subscription")],P.prototype,"fetchRecentTopup",null),(0,s.Cg)([(0,g.ox)("lastTopup")],P.prototype,"checkForPendingTopup",null),(0,s.Cg)([(0,g.ox)("lastTopup"),(0,g.ox)("topups")],P.prototype,"selectPreviousTopup",null),(0,s.Cg)([(0,g.ox)("subscription")],P.prototype,"loadDataCandyBundle",null),(0,s.Cg)([(0,g.ox)("subscription")],P.prototype,"loadTopups",null),(0,s.Cg)([(0,g.ox)("canUseVikingPoints",{immediate:!0})],P.prototype,"autoEnableVikingPoints",null),(0,s.Cg)([(0,g.ox)("maxVikingPointsAmount")],P.prototype,"setDefaultVpAmount",null),(0,s.Cg)([(0,g.ox)("subscription")],P.prototype,"trackSubscriptionChange",null),(0,s.Cg)([(0,g.ox)("topup")],P.prototype,"trackTopupProductChange",null),(0,s.Cg)([(0,g.ox)("extraDataCandyCount")],P.prototype,"trackCandyChange",null),(0,s.Cg)([(0,g.ox)("paymentMethod")],P.prototype,"trackSetPaymentMethod",null),(0,s.Cg)([(0,g.ox)("password")],P.prototype,"trackPasswordFill",null);var L=P=(0,s.Cg)([(0,g.uA)({components:{WizardLoading:A.A,WizardFooter:M.A,WizardStep:k.A,IncreaseDecreaseField:b.A,Password:C.A,PaymentMethodSelector:I.A,Field:f.A,Checkbox:v.A,SimSelector:x.A,TopupSelector:S.A,InfoItem:w.A,MvForm:y.A}}
47)],P),E=(0,i(41618).A)(L,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"TopupView do-topup",attrs:{name:"topup"}},[e("WizardStep",{attrs:{title:t.$t("topup.select_sim"),description:t.$t("topup.select_sim_intro")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("SimSelector",{attrs:{filter:t.eligibleForTopups,appearance:"radioGroup"},model:{value:t.subscription,callback:function(e){t.subscription=e},expression:"subscription"}})],1)]),t.lastTopupLoading?e("WizardLoading",{staticClass:"loading",attrs:{message:t.$t("topup_view.checking_your_topups")}}):t._e(),t.subscription&&!t.lastTopupLoading&&t.showTopupSelector?e("WizardStep",{attrs:{title:t.selectTopupHeader.title,description:t.selectTopupHeader.intro}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("TopupSelector",{attrs:{product:t.subscription.product,exposeLegacyPrepaids:!0},model:{value:t.topup,callback:function(e){t.topup=e},expression:"topup"}})],1)]):t._e(),t.subscription&&t.extraDataCandy&&!t.lastTopupLoading?e("WizardStep",{attrs:{title:t.$t("topup_view.need_more_data_title"),description:t.extraDataCandyIntro}},[e("div",{staticClass:"wizardStep__paddedContent dataCandyField"},[e("div",{staticClass:"dataCandyField__inputPriceWrapper"},[e("IncreaseDecreaseField",{staticClass:"dataCandyField__input",attrs:{id:"extraDataCandyCountInput",name:"extraDataCandyAmount",title:t.$t("topup_view.extra_data_candy_field_label"),minValue:t.minAllowedExtraDataCandy,maxValue:t.maxAllowedExtraDataCandy},on:{showMaxAmountHint:function(e){t.showMaxBundlesHint=!0}},model:{value:t.extraDataCandyCount,callback:function(e){t.extraDataCandyCount=e},expression:"extraDataCandyCount"}}),e("div",{staticClass:"dataCandyField__price",class:{"dataCandyField__price--updated":t.extraDataCandyTotalPriceUpdated}},[t._v(" "+t._s(t._f("moneyCents")(t.extraDataCandyTotal))+" ")])],1),t.showMaxBundlesHint?e("div",{staticClass:"dataCandyField__maxBundlesHint"},[t._v(" "+t._s(t.$t("topup_view.no_more_than_{maxAllowedExtraDataCandy}_GB",{maxAllowedExtraDataCandy:t.maxAllowedExtraDataCandy}))+" ")]):t._e()])]):t._e(),t.subscription&&t.topup&&!t.lastTopupLoading?e("WizardStep",{attrs:{title:t.$t("topup.select_payment_method")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("div",{staticClass:"TopupView__vpPanel vp-panel nextStyleLevel"},[e("Checkbox",{attrs:{label:t.$t("topup.viking_points_enable"),disabled:!t.canUseVikingPoints,tip:t.vikingPointsTip},on:{input:function(e){return t.trackVpAmount()}},model:{value:t.vikingPointsEnabled,callback:function(e){t.vikingPointsEnabled=e},expression:"vikingPointsEnabled"}}),t.vikingPointsEnabled?e("Field",{staticClass:"TopupView__vpPanel__field vikingpoints-used",attrs:{label:t.$t("topup.viking_points_amount"),hint:t.vikingPointsBalanceTip,validationErrors:t.$tList(t.uwaValidationErrors.vpUsed)}},[e("input",{directives:[{name:"model",rawName:"v-model.lazy.number",value:t.vikingPointsAmount,expression:"vikingPointsAmount",modifiers:{lazy:!0,number:!0}},{name:"validate",rawName:"v-validate",value:{required:!0,min_value:.01,decimal:2,max_value:t.maxVikingPointsAmount},expression:"{\n required: true,\n min_value: 0.01,\n decimal: 2,\n max_value: maxVikingPointsAmount,\n }"}],staticClass:"hide-spinner",attrs:{type:"number",name:"vp-used"},domProps:{value:t.vikingPointsAmount},on:{wheel:function(t){return t.target.blur()},blur:[function(e){return t.assureVpValue()},function(e){return t.$forceUpdate()}],focus:function(e){return t.trackVpAmount()},change:function(e){t.vikingPointsAmount=t._n(e.target.value)}}})]):t._e()],1),e("div",{staticClass:"order-summary"},[e("InfoItem",{staticClass:"sub-entry",attrs:{label:t.$t("topup.summary_topup")}},[t._v(" "+t._s(t._f("moneyCents")(t.topup.price))+" ")]),t.extraDataCandyCount?e("InfoItem",{staticClass:"sub-entry",attrs:{label:t.$t("topup.summary_extra_data")}},[t._v(" "+t._s(t._f("moneyCents")(t.extraDataCandyTotal))+" ")]):t._e(),t.vikingPointsEnabled?e("InfoItem",{staticClass:"sub-entry",attrs:{label:t.$t("topup.summary_viking_point_discount")}},[t._v(" "+t._s(t._f("moneyCents")(t.vikingPointsAmount))+" ")]):t._e(),e("InfoItem",{attrs:{label:t.$t("topup.summary_left_to_pay")}},[t._v(" "+t._s(t._f("moneyCents")(t.orderTotal))+" ")])],1),t.orderTotal>0?e("PaymentMethodSelector",{attrs:{label:t.$t("topup.pick_a_payment_method").toString(),subscriptionId:t.subscription.id},model:{value:t.paymentMethod,callback:function(e){t.paymentMethod=e},expression:"paymentMethod"}}):t._e()],1)]):t._e(),t.confirmable&&t.passwordIsRequired&&!t.lastTopupLoading&&"password"===t.stepupMode?e("WizardStep",{attrs:{title:t.$t("topup.your_password"),description:t.$t("topup.your_password_intro")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("input",{staticClass:"username_honeypot",attrs:{name:"username",type:"text",tabindex:"-1"}}),e("Field",{attrs:{label:t.$t("password"),validationErrors:t.$tList(t.uwaValidationErrors.password,"validationError__")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:{required:t.passwordIsRequired},expression:"{ required: passwordIsRequired }"}],attrs:{name:"password",required:t.passwordIsRequired,"data-vv-as":t.$t("password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)],1)]):t._e(),t.confirmable?e("WizardFooter",{attrs:{ctaText:t.$t("topup.confirm_and_pay"),secCtaText:t.$t("topup.cancel_topup"),onConfirm:t.doTopup},on:{reject:t.cancelTopup}}):t._e()],1)},[],!1,null,"9830c58e",null).exports}
47,90527:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return f}});var s=i(32198),a=i(58294),n=i(8921),o=i(92577),r=i(47211),l=i(67953),d=i(11774),c=i(78098),u=i(78160),p=i(10231),h=i(93199),_=i(3231);let m=(0,a.tZ)("TopupDoneView");class g extends l.lD{async onOrderIdChanged(){try{if(this.orderId||this.goTo(this.$router.resolve({name:_.A.topup})),this.topup=await this.uwa.getTopup(this.orderId),!this.topup)return void this.$router.push({name:_.A.notFound});let t=this.topup.subscriptionId;if((0,r.Q)(this.topup.state)&&(m.warning("Waiting on topup that is still in a pending state"),this.topup=await this.poll(()=>this.uwa.getTopup(this.orderId),t=>t?.state!=="waiting_for_payment",5e3,3e6,"topup payment to be complete"),!this.topup))throw new n.Ay(n.O4.CLIENT_ERROR,"No such topup found");if((0,r.y)(this.topup.state)&&t){let e=await this.uwa.getSubscription(t);if(!e){m.warning("Topup refers to a non-existing subscription. Borking out."),this.$router.push({name:_.A.notFound});return}if(!e)throw Error(`no subscription with ID, ${t}`);this.setTopupStatus(!0,this.$t("topup_done.route_title").toString(),this.$t("topup_done.description").toString());let i=(0,o.eW)(e);this.numberAndAlias=`${i.msisdn} (${i.alias})`}else{if(!t)throw Error(`no subscription ID, ${t}`);this.setTopupStatus(!1,this.$t("topup_failed.route_title").toString(),this.$t("topup_failed.description").toString())}this.fetchingDone=!0}catch(t){m.error("failed to load order",t),this.goToError()}}setTopupStatus(t,e,i){this.topupSucceeded=t,this.titleService.pageTitle=e,this.titleService.pageDescription=i,this.track(t?"success":"fail")}track(t){if(this.topup){let e=this.topup.payment?.method,i=null;e&&(i=e.length>0?e[0]:null),this.trackingService.updateTopup(t,this.topup.product,[],null,i,this.topup)}else this.trackingService.updateTopup(t,null,[],null,null,null)}goToSimPage(){this.$router.push({name:_.A.sims})}goToTopup(){this.$router.push({name:_.A.topup})}constructor(...t){super(...t),this.topup=null,this.fetchingDone=!1,this.topupSucceeded=!1,this.numberAndAlias=""}}(0,s.Cg)([(0,l.kv)()],g.prototype,"orderId",void 0),(0,s.Cg)([(0,l.y_)()],g.prototype,"session",void 0),(0,s.Cg)([(0,l.y_)()],g.prototype,"orderService",void 0),(0,s.Cg)([(0,l.y_)()],g.prototype,"uwa",void 0),(0,s.Cg)([(0,l.y_)()],g.prototype,"absoluteUrl",void 0),(0,s.Cg)([(0,l.y_)()],g.prototype,"goTo",void 0),(0,s.Cg)([(0,l.y_)()],g.prototype,"goToError",void 0),(0,s.Cg)([(0,l.y_)()],g.prototype,"titleService",void 0),(0,s.Cg)([(0,l.y_)()],g.prototype,"trackingService",void 0),(0,s.Cg)([(0,l.y_)()],g.prototype,"poll",void 0),(0,s.Cg)([(0,l.ox)("orderId",{immediate:!0}),(0,l.ox)("locale")],g.prototype,"onOrderIdChanged",null);var v=g=(0,s.Cg)([(0,l.uA)({components:{WizardLoading:h.A,WizardFooter:p.A,IconWithText:c.A,WizardDoneSummary:u.A,DealsAdvert:d.A}})],g),f=(0,i(41618).A)(v,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"topupDone"},[this.fetchingDone?this._e():t("WizardLoading"),this.fetchingDone&&this.topupSucceeded?[t("WizardDoneSummary",[t("IconWithText",{staticClass:"MigrateDone-nextStepWhen",attrs:{iconUrl:"--icon-simcard-bg-url",text:this.$t("success_topup_for_number_{number}",{number:this.numberAndAlias})}}),t("IconWithText",{staticClass:"MigrateDone-nextStepWhen",attrs:{iconUrl:"--icon-playingcards-bg-url",text:this.$t("it_can_take_a_few_minutes_after_topup_to_see_bundles")}})],1),t("DealsAdvert")]:this._e(),this.fetchingDone&&this.topupSucceeded?t("WizardFooter",{attrs:{onConfirm:this.goToSimPage,ctaText:this.$t("to_my_viking")}}):this._e(),this.fetchingDone&&!this.topupSucceeded?t("WizardFooter",{attrs:{onConfirm:this.goToTopup,ctaText:this.$t("try_again"),secCtaText:this.$t("back_to_{location}",{location:this.$t("my_viking")})},on:{reject:this.goToSimPage}}):this._e()],2)},[],!1,null,"50f08618",null).exports},70178:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return y}});var s=i(32198),a=i(2753),n=i(18430),o=i(76565),r=i(58294),l=i(70180),d=i(67953),c=i(31897),u=i(24176),p=i(45656),h=i(56562),_=i(99735),m=i(21395);let g=(0,r.tZ)("UsageView");class v extends d.lD{async created(){await this.loadLastTopupOrRenewalInSubscription(),this.applyUrlQueryFilter(this.$route.query)}async loadLastTopupOrRenewalInSubscription(){let t=this.session.mobileSubscription;if(!t||"enabled"!==t.state){this.lastTopupDate=null,this.lastBundleRenewalDate=null;return}try{this.lastTopupDate=await this.subscriptionService.getLastTopupDate(t),this.lastBundleRenewalDate=await this.subscriptionService.getLastBundleRenewalDate(t)}catch(t){g.error("Failed to load subscription-related data",t),this.notifyGenericErrors(t)}}updated(){!window.document||!window.document.referrer||this.referrerAlreadyHandled()||["bestetarief.be","besttariff.be","meilleurtarif.be","bestertarif.be"].includes(new URL(window.document.referrer).hostname.replace("www.",""))&&setTimeout(()=>{this.domUtils.scrollToFirst("#besttariff",20)})}referrerAlreadyHandled(){return!!window.document.referrerHandled||(window.document.referrerHandled=!0,!1)}onFilterDateToChange(t){this.$router.push({query:{...this.$route.query,...this.filterAsQuery(t)}})}applyUrlQueryFilter(t){let e={...this.filterAsQuery(this.defaultFilters()),...t};(0,m.c2)(e,t)?this.filters=this.queryToFilter(t):(this.$router.replace({query:e}),this.applyUrlQueryFilter(e))}queryToFilter(t){let e=this.defaultFilters(),i=a(t.start)||e.dateFrom,s=a(t.end)||e.dateTo;return("1"===t.paid_only||"true"===t.paid_only)&&(e.bundle="out"),s.isBefore(i)||(e.dateFrom=i,e.dateTo=s),e;
47function a(t){try{return t.includes("T")&&(t=t.substring(0,t.indexOf("T"))),o.LocalDate.parse(t,o.DateTimeFormatter.ISO_LOCAL_DATE)}catch(e){if(g.warning(`Failed to parse date query ${t}: ${e.message}`),e instanceof o.DateTimeParseException)return null;throw e}}}filterAsQuery(t){return{start:t.dateFrom.toString(),end:t.dateTo.toString(),paid_only:("out"===t.bundle).toString()}}showFilters(){let t=this.showInModal(_.A,{value:this.filters,lastTopupDate:this.lastTopupDate,lastBundleRenewalDate:this.lastBundleRenewalDate,defaultFilters:this.defaultFilters()},{input:t=>{this.filters=t},close:()=>t()})}async loadUsage(){!this.filters||this.session.mobileSubscription&&"enabled"===this.session.mobileSubscription.state&&await this.loadData(this.session.mobileSubscription.id,this.filters)}async loadData(t,e){if(!(0,m.c2)({subscriptionId:t,filter:e},this.loadedData))try{this.loading=!0,this.loadedData=(0,m.A4)({subscriptionId:t,filter:e}),this.fullSummary=await this.uwa.getUsageTotals(t,e)}catch(t){g.error("Failed to load usage data",t),this.notifyGenericErrors(t),this.goToError()}finally{this.loading=!1}}detailsRoute(t){return this.filters&&this.session.mobileSubscription?{query:{spc:"usage-details",subscriptionId:this.session.mobileSubscription.id,type:t,last_topup_date:this.lastTopupDate?.toString(),last_bundle_renewal_date:this.lastBundleRenewalDate?.toString(),...this.filterAsQuery(this.filters)}}:""}get nationalDataQuantities(){return this.fullSummary?this.fullSummary.getSummary({regionality:"national"}).dataBytes:null}get roamingDataQuantities(){return this.fullSummary?this.fullSummary.getSummary({regionality:"roaming"}).dataBytes:null}get dataCost(){return this.fullSummary?this.fullSummary.getSummary().dataCost:null}get incomingCallsDuration(){return this.fullSummary?this.fullSummary.getSummary({direction:"incoming"}).voiceSeconds:null}get outgoingCallsDuration(){return this.fullSummary?this.fullSummary.getSummary({direction:"outgoing"}).voiceSeconds:null}get voiceCost(){return this.fullSummary?this.fullSummary.getSummary().voiceCost:null}get receivedSmsQuantity(){return this.fullSummary?this.fullSummary.getSummary({direction:"incoming"}).smses:null}get sentSmsQuantity(){return this.fullSummary?this.fullSummary.getSummary({direction:"outgoing"}).smses:null}get smsCost(){return this.fullSummary?this.fullSummary.getSummary().smsCost:null}get totalCost(){if(!this.fullSummary)return null;let t=this.fullSummary.getSummary();return t.smsCost+t.voiceCost+t.dataCost}get formattedPeriod(){if(!this.filters)return"";let t=t=>(0,l.kz)(t,this.locale);return this.filters.dateFrom.equals(this.filters.dateTo)?t(this.filters.dateFrom):`${t(this.filters.dateFrom)} - ${t(this.filters.dateTo)}`}get filterActive(){if(!this.filters)return!1;let t=this.defaultFilters();return this.filters.bundle!==t.bundle||this.filters.regionality!==t.regionality||!this.filters.dateFrom.equals(t.dateFrom)||!this.filters.dateTo.equals(t.dateTo)}defaultFilters(){let t=this.clock.today();return{dateFrom:this.lastTopupDate||this.lastBundleRenewalDate||t,dateTo:t}}async exportUsage(){if(this.session.mobileSubscription&&this.session.profile&&this.filters&&await this.confirm(this.$t("usage_export_dialog.question_{email}",{email:this.session.profile.email}),this.$t("usage_export_dialog.title"),this.$t("usage_export_dialog.confirm"),this.$t("usage_export_dialog.cancel")))try{await this.uwa.requestUsageExport(this.session.mobileSubscription.id,this.filters),this.notify.success("usage_export_dialog.success_notice")}catch(t){g.error("Unable to export usage",t),this.notifyGenericErrors(t)}}constructor(...t){super(...t),this.filters=null,this.fullSummary=null,this.loading=!0,this.loadedData=null,this.lastTopupDate=null,this.lastBundleRenewalDate=null,this.filterIcon=n,this.filterIconActive=a}}(0,s.Cg)([(0,d.y_)()],v.prototype,"uwa",void 0),(0,s.Cg)([(0,d.y_)()],v.prototype,"confirm",void 0),(0,s.Cg)([(0,d.y_)()],v.prototype,"session",void 0),(0,s.Cg)([(0,d.y_)()],v.prototype,"goToError",void 0),(0,s.Cg)([(0,d.y_)()],v.prototype,"clock",void 0),(0,s.Cg)([(0,d.y_)()],v.prototype,"domUtils",void 0),(0,s.Cg)([(0,d.y_)()],v.prototype,"showInModal",void 0),(0,s.Cg)([(0,d.y_)()],v.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,d.ox)("filters",{deep:!0})],v.prototype,"onFilterDateToChange",null),(0,s.Cg)([(0,d.ox)("filters",{deep:!0}),(0,d.ox)("session.mobileSubscription",{immediate:!0})],v.prototype,"loadUsage",null);var f=v=(0,s.Cg)([(0,d.uA)({components:{BestTariff:c.default,MvSection:h.A,CallToAction:u.A,LinksetInfo:p.A}})],v),y=(0,i(41618).A)(f,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{attrs:{role:"tabpanel",tabindex:"0"}},[e("MvSection",{staticClass:"usage-summary-overview nextStyleLevel"},[t.filters?e("div",{staticClass:"ContentBox usage-summary-filter nextStyleLevel"},[e("span",{staticClass:"filter-month"},[t._v(t._s(t.formattedPeriod))]),e("CallToAction",{staticClass:"usage-summary-filter__cta",attrs:{appearance:"toolbarBtn",icon:i(94031),hideTextOnMobile:!0},on:{click:function(e){return e.preventDefault(),t.exportUsage.apply(null,arguments)}}},[t._v(" "+t._s(t.$t("usage_overview.export"))+" ")]),e("CallToAction",{class:["usage-summary-filter__cta",t.filterActive?"f
47ilterActive":"filterInActive"],attrs:{appearance:"toolbarBtn",title:t.filterActive?t.$t("filter__active"):t.$t("filter"),icon:t.filterActive?t.filterIconActive:t.filterIcon,hideTextOnMobile:!0},on:{click:function(e){return t.showFilters()}}},[t._v(" "+t._s(t.$t("usage_overview.filter"))+" ")])],1):t._e(),e("div",{staticClass:"ContentBox usage-summary-totals"},[e("span",{staticClass:"total-cost"},[t._v(t._s(t.$t("usage_overview.total_cost")))]),t.loading?e("span",{staticClass:"amount is-loading"},[t._v("Â ")]):e("span",{staticClass:"price"},[t._v(t._s(t._f("moneyCents")(t.totalCost)))])])]),e("MvSection",[e("div",{staticClass:"usage-summary ContentBoxList styleLevel1"},[e("LinksetInfo",{staticClass:"usage-summary__delayNotice"},[t._v(" "+t._s(t.$t("usage_overview.latest_usage_delay_notice"))+" ")]),e("RouterLink",{directives:[{name:"rippleEffect",rawName:"v-rippleEffect"}],staticClass:"ContentBoxList__item ContentBoxList__item--linkArrowTopLt900px ContentBoxList__item--link data-usage",attrs:{to:t.detailsRoute("data")}},[e("div",{staticClass:"usageSummaryEntry",staticStyle:{"--icon-bg-url":"var(--icon-phone-cloud-bg-url)"}},[e("div",{staticClass:"usageSummaryEntry__header"},[e("strong",[t._v(t._s(t.$t("usage_overview.data-title")))]),t.loading?e("span",{staticClass:"usageSummaryEntry__headerPrice price is-loading"},[t._v("Â ")]):e("span",{staticClass:"usageSummaryEntry__headerPrice price"},[t._v(" "+t._s(t._f("moneyCents")(t.dataCost))+" ")])]),e("div",{staticClass:"usageSummaryEntry__amounts"},[e("div",{staticClass:"usageSummaryEntryAmountLine"},[e("strong",[t._v(t._s(t.$t("usage_overview.national")))]),t.loading?e("span",{staticClass:"amount is-loading"},[t._v("Â ")]):e("span",{staticClass:"amount"},[t._v(t._s(t._f("data")(t.nationalDataQuantities)))])]),e("div",{staticClass:"usageSummaryEntryAmountLine"},[e("strong",[t._v(t._s(t.$t("usage_overview.roaming")))]),t.loading?e("span",{staticClass:"amount is-loading"},[t._v("Â ")]):e("span",{staticClass:"amount"},[t._v(t._s(t._f("data")(t.roamingDataQuantities)))])])])])]),e("RouterLink",{directives:[{name:"rippleEffect",rawName:"v-rippleEffect"}],staticClass:"ContentBoxList__item ContentBoxList__item--link ContentBoxList__item--linkArrowTopLt900px voice-usage",attrs:{to:t.detailsRoute("voice")}},[e("div",{staticClass:"usageSummaryEntry",staticStyle:{"--icon-bg-url":"var(--icon-horn-bg-url)"}},[e("div",{staticClass:"usageSummaryEntry__header"},[e("strong",[t._v(t._s(t.$t("usage_overview.voice-title")))]),t.loading?e("span",{staticClass:"usageSummaryEntry__headerPrice price is-loading"},[t._v("Â ")]):e("span",{staticClass:"usageSummaryEntry__headerPrice price"},[t._v(" "+t._s(t._f("moneyCents")(t.voiceCost))+" ")])]),e("div",{staticClass:"usageSummaryEntry__amounts"},[e("div",{staticClass:"usageSummaryEntryAmountLine"},[e("strong",[t._v(t._s(t.$t("usage_overview.outgoing")))]),t.loading?e("span",{staticClass:"amount is-loading"},[t._v("Â ")]):e("span",{staticClass:"amount"},[t._v(t._s(t._f("hms")(t.outgoingCallsDuration)))])]),e("div",{staticClass:"usageSummaryEntryAmountLine"},[e("strong",[t._v(t._s(t.$t("usage_overview.incoming")))]),t.loading?e("span",{staticClass:"amount is-loading"},[t._v("Â ")]):e("span",{staticClass:"amount"},[t._v(t._s(t._f("hms")(t.incomingCallsDuration)))])])])])]),e("RouterLink",{directives:[{name:"rippleEffect",rawName:"v-rippleEffect"}],staticClass:"ContentBoxList__item ContentBoxList__item--link ContentBoxList__item--linkArrowTopLt900px sms-usage",attrs:{to:t.detailsRoute("sms")}},[e("div",{staticClass:"usageSummaryEntry",staticStyle:{"--icon-bg-url":"var(--icon-text-balloon-bg-url)"}},[e("div",{staticClass:"usageSummaryEntry__header"},[e("strong",[t._v(t._s(t.$t("usage_overview.sms-title")))]),t.loading?e("span",{staticClass:"usageSummaryEntry__headerPrice price is-loading"},[t._v("Â ")]):e("span",{staticClass:"usageSummaryEntry__headerPrice price"},[t._v(" "+t._s(t._f("moneyCents")(t.smsCost))+" ")])]),e("div",{staticClass:"usageSummaryEntry__amounts"},[e("div",{staticClass:"usageSummaryEntryAmountLine"},[e("strong",[t._v(t._s(t.$t("usage_overview.outgoing")))]),t.loading?e("span",{staticClass:"amount is-loading"},[t._v("Â ")]):e("span",{staticClass:"amount"},[t._v(" "+t._s(t.sentSmsQuantity)+" "+t._s(t.$t("usage_overview.sms_units"))+" ")])]),e("div",{staticClass:"usageSummaryEntryAmountLine"},[e("strong",[t._v(t._s(t.$t("usage_overview.incoming")))]),t.loading?e("span",{staticClass:"amount is-loading"},[t._v("Â ")]):e("span",{staticClass:"amount"},[t._v(" "+t._s(t.receivedSmsQuantity)+" "+t._s(t.$t("usage_overview.sms_units"))+" ")])])])])])],1
47)]),e("BestTariff",{attrs:{id:"besttariff"}})],1)},[],!1,null,"0e37d642",null).exports},56235:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return h}});var s=i(32198),a=i(58294),n=i(67953),o=i(93670),r=i(20174),l=i(90271),d=i(3231);let c=(0,a.tZ)("VerifyEmail");class u extends n.lD{async mounted(){this.flowId=await this.dynamicConfigService.getValue(l.p7,"verifyEmailAddress",l.cZ.verifyEmailAddress)}get flowProps(){return{customer_code:this.$route.query.customer_code,t:this.$route.query.t}}async onSuccess(){try{await this.authService.refreshToken()}catch(t){c.error("Failed to refresh token after email verification",t)}finally{this.$router.push({name:d.A.account})}}onError(t){c.error("Descope flow error event",t instanceof Error?t:Error("Descope flow error event"))}constructor(...t){super(...t),this.loading=!0,this.flowId=null}}(0,s.Cg)([(0,n.y_)()],u.prototype,"authService",void 0),(0,s.Cg)([(0,n.y_)()],u.prototype,"dynamicConfigService",void 0);var p=u=(0,s.Cg)([(0,n.uA)({components:{DescopeFlow:o.A,Loading:r.A}})],u),h=(0,i(41618).A)(p,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"VerifyEmail"},[t.loading?e("Loading",{attrs:{size:"narrow"}}):t._e(),t.flowId?e("DescopeFlow",{key:t.flowId,attrs:{flowId:t.flowId,flowProps:t.flowProps},on:{success:t.onSuccess,error:t.onError,ready:function(e){t.loading=!1}}}):t._e()],1)},[],!1,null,null,null).exports},84019:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return y}});var s=i(32198),a=i(58294),n=i(43529),o=i(8921),r=i(50870),l=i(67953),d=i(42123),c=i(20174),u=i(10231),p=i(66090),h=i(14064),_=i(78906),m=i(3231);let g=(0,a.tZ)("JoinClanView");class v extends l.lD{async created(){try{this.maxClanAdvantage=await this.clanService.getMaxClanAdvantage()}catch(t){g.error("Failed to get max clan advantage",t)}}assertThatExactlyOneIdentifierIsPresent(){1!==[this.clanReference,this.trialType].filter(t=>t).length&&(g.error("Neither a clan reference nor a trial token has been set"),this.notify.error("something_went_wrong"),this.$router.push({name:m.A.myViking}))}async loadClanToJoin(){if(this.clanReference){this.clanMemberships=null;try{if(this.clanToJoin=await this.clanService.getClanByReference(this.clanReference),!this.clanToJoin){this.notify.error("join_clan.error_invalid_clan_reference"),this.$router.push({name:m.A.myViking});return}this.clanToJoin.newVikingsAllowed||(this.notify.error("join_clan.error_max_amount_of_clan_members_reached"),this.$router.push({name:m.A.myViking}))}catch(t){g.error("Failed to load clan",t),this.notifyGenericErrors(t)}}}async loadClans(){this.clanMemberships=null;try{this.clanMemberships=await this.clanService.getClansForCustomer(),this.preselectSubscriptionIfNeeded()}catch(t){g.error("Failed to fetch a list of clan memberships",t),this.notifyGenericErrors(t)}}async loadTerminationOrders(){this.terminationOrders=null;try{let t=[];for(let e of this.session.mobileSubscriptions||[])t.push(...await this.orderService.getPendingOrders(e,"terminate_contract"));this.terminationOrders=t}catch(t){g.error("Failed to fetch termination orders",t),this.notifyGenericErrors(t)}}get canJoinWithSubscription(){return!!this.trialType||!!this.clanToJoin&&(this.isConsideredNew||this.clanToJoin.existingVikingsAllowed)}get productEligibleDescription(){return this.trialType?this.$t("join_clan.product_eligible_for_trial").toString():this.clanToJoin?this.$t("join_clan.product_eligible__advantage_is_{advantage}",{advantage:this.describeAdvantage(this.clanToJoin.advantageForNextLevel)}).toString():this.$t("join_clan.product_eligible").toString()}get clanlessSubscriptions(){return this.clanMemberships&&this.session.mobileSubscriptions?this.session.mobileSubscriptions.filter(t=>!!this.clanMemberships&&!this.clanMemberships.some(e=>e.containsSubscription(t)&&e.isActive&&!e.isTrial)):null}get isConsideredNew(){return!!this.subscription&&this.clanService.isConsideredNew(this.subscription)}preselectSubscriptionIfNeeded(){if(void 0===this.session.mobileSubscriptions||null===this.clanlessSubscriptions)return;let t=this.session.mobileSubscriptions.filter(this.isEligibleForClan.bind(this));1===t.length&&(this.subscription=t[0])}async loadMigrationStatus(t){if(this.subscriptionMigrationStatus=null,t)try{let e=await this.subscriptionService.getPendingMigration(t);e?this.subscriptionMigrationStatus=e.toProduct.isClanProduct?"migrating_to_eligible_product":"migrating_to_ineligible_product":this.subscriptionMigrationStatus="not_migrating"}catch(t){g.error("Cannot check for pending migration",t),this.notifyGenericErrors(t)}}isEligibleForClan(t){return!(!t.isOwner||"enabled"!==t.state||!this.clanlessSubscriptions||this.isTerminationScheduled(t))&&(!this.trialType||!!t.product.isClanProduct)&&this.clanlessSubscriptions.includes(t)}get userIsMinor(){return!!this.session.profile&&(0,n.M)(this.session.profile)}get subscriptionSelectionStepText(){return this.simSelectorHasCards?this.$t("join_clan.select_sim_title"):this.$t("join_clan.no_sims_eligible_to_join_title")}get simSelectorHasCards(){return!!this.session.mobileSubscriptions&&this.session.mobileSubscriptions.filter(this.isEligibleForClan).length>0}get subscriptionIsEligible(){return!!this.subscription&&this.subscription.product.isClanProduct}isTerminationScheduled(t){return!!this.terminationOrders&&this.terminationOrders.some(e=>e.subscriptionId===t.id)}async confirmJoin(){this.clanReference?await this.confirmJoinWithReference(this.clanReference):this.trialType&&await this.confirmTrial(this.trialType)}async confirmJoinWithReference(t){let e=(0,_.bp)(this.subscription);
47try{let i=await this.clanService.joinExistingClan(e.id,t);this.notify.success("join_clan.you_joined_clan_{name}",{name:i.name}),this.trackingService.clanJoin(),localStorage.removeItem("clanReference"),this.$router.push({name:m.A.myViking})}catch(s){let t=o.Ay.of(s),e=t.fieldCodes("clan_reference"),i=t.fieldCodes("subscription_id");e.includes(o.O4.INVALID_VALUE)?this.notify.error("join_clan.error_invalid_clan_reference"):e.includes(o.O4.MAX_AMOUNT_OF_CLAN_MEMBERS_REACHED)?this.notify.error("join_clan.error_max_amount_of_clan_members_reached"):e.includes(o.O4.MAX_AMOUNT_OF_PRE_EXISTING_CLAN_MEMBERS_REACHED)?this.notify.error("join_clan.error_max_amount_of_preexisting_members_reached"):i.includes(o.O4.LEFT_ANOTHER_CLAN_TOO_RECENTLY)?this.notify.error("join_clan.error_left_another_clan_too_recently"):i.includes(o.O4.CANT_JOIN_CLAN_WITH_NEW_SUBSCRIPTION_THAT_DID_MGM)?this.notify.error("join_clan.error_new_subscription_with_mgm_referral_not_allowed"):t.fieldCode("subscription_id")===o.O4.SUBSCRIPTION_ALREADY_IS_MEMBER_OF_ANOTHER_CLAN?this.notify.error("join_clan.subscription_already_is_member_of_another_clan"):(g.error("Failed to join clan using clan reference",s),this.notifyGenericErrors(s))}}async confirmTrial(t){let e=(0,_.bp)(this.subscription);try{await this.clanService.activateTrial(e,t),this.notify.success("join_clan.trial_clan_has_been_activated"),this.$router.push({name:m.A.myViking})}catch(e){let t=o.Ay.of(e);t.fieldCode("trial_token")===o.O4.TRIAL_TOKEN_DOES_NOT_BELONG_TO_CUSTOMER?this.notify.error("join_clan.trial_token_does_not_belong_to_customer"):t.fieldCode("subscription_id")===o.O4.SUBSCRIPTION_ALREADY_IS_MEMBER_OF_ANOTHER_CLAN?this.notify.error("join_clan.subscription_already_is_member_of_another_clan"):t.code===o.O4.NOT_ELIGIBLE_TO_JOIN?this.notify.error("join_clan.not_eligible_to_join_trial_clan"):(g.error("Failed to join clan using trial token",e),this.notifyGenericErrors(e))}}goToMigrate(){this.subscription&&(this.clanReference&&this.storeClanInLocalStorage(this.clanReference),this.$router.push({name:m.A.migrate,params:{toType:"postpaid",subscriptionId:this.subscription.id}}))}cancelJoin(){this.$router.push({name:m.A.myViking})}startNewClan(){this.$router.push({name:m.A.simSettings,query:{spc:(0,r.n)("clan")}})}describeAdvantage(t){let e=/(\d+)GB/.exec(t);return e?this.$t("viking_clan_status.{amount}_gb_of_mobile_data",{amount:e[1]}):t}trackNoCards(t){t||this.trackingService.onErrorNotification("join_clan.no_sims_eligible_to_join_title",this.$t.bind(this))}storeClanInLocalStorage(t){localStorage.setItem("clanReference",t)}constructor(...t){super(...t),this.subscription=null,this.subscriptionMigrationStatus=null,this.clanMemberships=null,this.clanToJoin=null,this.terminationOrders=null,this.RouteName=m.A,this.maxClanAdvantage=null,this.log=(0,a.tZ)("JoinClanView")}}(0,s.Cg)([(0,l.y_)()],v.prototype,"session",void 0),(0,s.Cg)([(0,l.y_)()],v.prototype,"clanService",void 0),(0,s.Cg)([(0,l.y_)()],v.prototype,"orderService",void 0),(0,s.Cg)([(0,l.y_)()],v.prototype,"subscriptionService",void 0),(0,s.Cg)([(0,l.y_)()],v.prototype,"trackingService",void 0),(0,s.Cg)([(0,l.kv)({type:String,required:!1})],v.prototype,"clanReference",void 0),(0,s.Cg)([(0,l.kv)({type:String,required:!1})],v.prototype,"trialType",void 0),(0,s.Cg)([(0,l.ox)("clanReference",{immediate:!0}),(0,l.ox)("trialToken",{immediate:!0})],v.prototype,"assertThatExactlyOneIdentifierIsPresent",null),(0,s.Cg)([(0,l.ox)("clanReference",{immediate:!0})],v.prototype,"loadClanToJoin",null),(0,s.Cg)([(0,l.ox)("session.profile",{immediate:!0})],v.prototype,"loadClans",null),(0,s.Cg)([(0,l.ox)("session.profile",{immediate:!0})],v.prototype,"loadTerminationOrders",null),(0,s.Cg)([(0,l.ox)("session.mobileSubscriptions",{immediate:!0})],v.prototype,"preselectSubscriptionIfNeeded",null),(0,s.Cg)([(0,l.ox)("subscription")],v.prototype,"loadMigrationStatus",null),(0,s.Cg)([(0,l.ox)("simSelectorHasCards")],v.prototype,"trackNoCards",null);var f=v=(0,s.Cg)([(0,l.uA)({components:{WizardFooter:u.A,WizardStep:p.A,Loading:c.A,MvForm:d.A,SimSelector:h.A}})],v),y=(0,i(41618).A)(f,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"joinClanView__form"},[null===t.clanlessSubscriptions||null===t.terminationOrders?e("WizardStep",{attrs:{hideNumber:!0}},[e("Loading")],1):t.userIsMinor?e("WizardStep",{staticClass:"joinClanView__isMinor",attrs:{title:t.$t("join_clan.too_young_title"),hideNumber:!0}},[e("div",{staticClass:"wizardStep__paddedContent"},[t._v(" "+t._s(t.$t("join_clan.too_young_description"))+" ")])]):[e("WizardStep",{attrs:{title:t.subscriptionSelectionStepText,hideNumber:!0}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("SimSelector",{ref:"simSelector",attrs:{filter:t.isEligibleForClan,appearance:"radioGroup"},scopedSlots:t._u([{key:"emptySubscriptionsList",fn:function(){return[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("join_clan.no_sims_eligible_to_join"),expression:"$t('join_clan.no_sims_eligible_to_join')"}],staticClass:"ExternalContent"})]},proxy:!0}]),model:{value:t.subscription,callback:function(e){t.subscription=e},expression:"subscription"}})],1)]),t.subscription?e("div",{staticClass:"joinClanView__subscriptionStatus"},[null===t.subscriptionMigrationStatus?e("WizardStep",{staticClass:"joinClanView__migrationStatusLoading",attrs:{hideNumber:!0,title:""}},[e("Loading")],1):"migrating_to_ineligible_product"===t.subscriptionMigrationStatus?e("WizardStep",{staticClass:"joinClanView__subscriptionMigratingToIneligible",attrs:{hideNumber:!0,title:t.$t("join_clan.good_to_know")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("join_clan.migrating_to_ineligible_product"),expression:"$t('join_clan.migrating_to_ineligible_product')"}],staticClass:"ExternalContent"})])]):"migrating_to_eligible_product"===t.subscriptionMigrationStatus?e("WizardStep",{staticClass:"joinClanView__subscriptionMigratingToEligible",attrs:{hideNumber:!0,title:t.$t("join_clan.good_to_know")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("join_clan.migrating_to_eligible_product"),expression:"$t('join_clan.migrating_to_eligible_product')"}],staticClass:"ExternalContent"})])]):"not_migrating"!==t.subscriptionMigrationStatus||t.subscriptionIsEligible?"not_migrating"===t.subscriptionMigrationStatus&&t.canJoinWithSubscription?[e("WizardStep",{staticClass:"joinClanView__subscriptionEligible",attrs:{title:t.$t("join_clan.good_to_know"),hideNumber:!0}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.productEligibleDescription,expression:"productEligibleDescription"}],staticClass:"ExternalContent"})])]),e("WizardFooter",{attrs:{ctaText:t.$t("join_clan.confirm"),onConfirm:t.confirmJoin,secCtaText:t.$t("join_clan.cancel")},on:{reject:function(e){return t.cancelJoin()}}})]:"not_migrating"===t.subscriptionMigrationStatus?[e("WizardStep",{attrs:{title:t.$t("join_clan.sorry"),hideNumber:!0}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("join_clan.only_new_vikings_can_still_join_to_enjoy_up_to_{maxAdvantage}__html",{maxAdvantage:t.maxClanAdvantage}),expression:"\n $t('join_clan.only_new_vikings_can_still_join_to_enjoy_up_to_{maxAdvantage}__html', {\n maxAdvantage: maxClanAdvantage,\n })\n "}],staticClass:"ExternalContent"})])]),e("WizardFooter",{attrs:{ctaText:t.$t("join_clan.start_new_clan"),onConfirm:t.startNewClan,secCtaText:t.$t("join_clan.cancel")},on:{reject:function(e){return t.cancelJoin()}}})]:t._e():[e("WizardStep",{staticClass:"joinClanView__subscriptionIneligible",attrs:{title:t.$t("join_clan.good_to_know"),hideNumber:!0}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("join_clan.product_ineligible"),expression:"$t('join_clan.product_ineligible')"}],staticClass:"ExternalContent"})])]),e("WizardFooter",{attrs:{ctaText:t.$t("join_clan.go_to_migrate"),onConfirm:t.goToMigrate,secCtaText:t.$t("join_clan.cancel")},on:{reject:function(e){return t.cancelJoin()}}})]],2):t._e()]],2)},[],!1,null,null,null).exports}
47,40475:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return p}});var s=i(32198),a=i(67953),n=i(78098),o=i(78160),r=i(10231),l=i(18569),d=i(3231);class c extends a.lD{constructor(...t){super(...t),this.RouteName=d.A}}(0,s.Cg)([(0,a.y_)()],c.prototype,"session",void 0),(0,s.Cg)([(0,a.kv)()],c.prototype,"noClick",void 0);var u=c=(0,s.Cg)([(0,a.uA)({components:{IconWithText:n.A,WizardDoneSummary:o.A,WizardNotification:l.A,WizardFooter:r.A}})],c),p=(0,i(41618).A)(u,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",[t.noClick?e("WizardNotification",{staticClass:"vikingPointsClaimDone__no_claim_notification",attrs:{title:t.$t("viking_points_claim_done.no_click_education_title"),description:t.$t("viking_points_claim_done.no_click_education_description__html"),state:"info"}}):t._e(),e("WizardDoneSummary",[e("IconWithText",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],attrs:{iconUrl:"--icon-message-in-a-bottle-bg-url",text:t.$t("viking_points_claim_done.we_will_keep_you_posted_via_{email}",{email:t.session.profile.email})}}),e("IconWithText",{attrs:{iconUrl:"--icon-time-bg-url",text:t.$t("viking_points_claim_done.next_steps")}})],1),e("WizardFooter",{staticClass:"vikingPointsClaimDone__wizardFooter",attrs:{ctaText:t.$t("viking_points_claim_done.back_to_my_viking"),secCtaText:null,onConfirm:()=>{t.$router.push({name:t.RouteName.myViking})}}})],1)},[],!1,null,"0edda062",null).exports},95781:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return G}});var s=i(32198),a=i(76565),n=i(58294),o=i(90004),r=i(8921),l=i(62765),d=i(37577),c=i(67953),u=i(92394);class p extends c.lD{}(0,s.Cg)([(0,c.kv)()],p.prototype,"partner",void 0);var h=p=(0,s.Cg)([(0,c.uA)({components:{PartnerLogo:u.A}})],p),_=i(41618),m=(0,_.A)(h,function(){var t=this._self._c;return this._self._setupProxy,this.partner?t("div",{staticClass:"dealPartner"},[t("PartnerLogo",{staticClass:"dealPartner__logo",attrs:{logoUrl:this.partner.logoImageUrl}}),t("span",{staticClass:"dealPartner__text"},[this._v(this._s(this.partner.title))])],1):this._e()},[],!1,null,"504d0a9a",null).exports,g=i(6682),v=i(14806),f=i(78365),y=i(99679),b=i(78014);class C extends c.lD{mounted(){this.checkState()}checkState(){if(null===this.partner||this.shouldSelectDealType&&null===this.isGiftCardSelected)this.state="default";else if(this.state="loading-purchases",!this.partner.acceptsClaims||this.isGiftCardOnlyPartner||this.shouldSelectDealType&&this.isGiftCardSelected)this.state="error-no-claims-accepted";else if(null!==this.clicks)if(0===this.clicks.length)this.state="select-click";else{this.state="select-click";let t=this.$refs.datepicker;t?.selectMonth((0,b.IW)(this.clicks))}}get shouldSelectDealType(){return this.partner?.partnerHasOnlineDeals&&this.partner?.partnerHasGiftCards}get isGiftCardOnlyPartner(){return!this.partner?.partnerHasOnlineDeals&&this.partner?.partnerHasGiftCards}get claimsAllowedMaxAge(){return this.partner&&this.partner.claimsAllowedMaxAge?this.clock.today().minusDays(this.partner.claimsAllowedMaxAge-1):this.clock.today().minusDays(365)}get today(){return this.clock.today()}get mostRecentClick(){return this.clicks?(0,b.IW)(this.clicks):null}async previousMonthOutOfRange(){if(this.partner){let t=this.$t("claimVikingDealsPurchaseSelect.noClaimsPopupDescription{partnerName}{partnerAllowedMaxClaimDays}",{partnerName:this.partner.title,partnerAllowedMaxClaimDays:this.partner.claimsAllowedMaxAge});await this.confirm(t,this.$t("claimVikingDealsPurchaseSelect.noClaimsPopupTitle"),this.$t("claimVikingDealsPurchaseSelect.noClaimsPopupCta"),!1)}}get selectedClick(){return this.value}set selectedClick(t){this.$emit("input",t)}get loading(){return"loading-purchases"===this.state}get error(){return"error-no-claims-accepted"===this.state||"error-loading-purchases"===this.state}get errorText(){return"error-no-claims-accepted"===this.state?this.partner?.slug==="payconiq"?this.$t("claimVikingDealsPurchaseSelect.payconiq_does_not_accept_claims"):this.isGiftCardOnlyPartner||this.shouldSelectDealType&&this.isGiftCardSelected?this.$t("ClaimVikingDeals.no_claims_for_gift_cards"):this.$t("claimVikingDealsPurchaseSelect.{partnerName}DoesNotAcceptClaims",{partnerName:this.partner.title}):"error-loading-purchases"===this.state?this.$t("claimVikingDealsPurchaseSelect.errorCouldNotLoadPurchases"):""}constructor(...t){super(...t),this.enableAllDates=!1,this.state="default"}}(0,s.Cg)([(0,c.kv)({type:Object,required:!1,default:null})],C.prototype,"partner",void 0),(0,s.Cg)([(0,c.kv)({type:Array,required:!1,default:null})],C.prototype,"clicks",void 0),(0,s.Cg)([(0,c.kv)({type:String,required:!1,default:null})],C.prototype,"errorMessage",void 0),(0,s.Cg)([(0,c.kv)({required:!1,default:null})],C.prototype,"value",void 0),(0,s.Cg)([(0,c.kv)({type:Boolean,required:!0})],C.prototype,"canSelectNoClickDate",void 0),(0,s.Cg)([(0,c.kv)({required:!0})],C.prototype,"isGiftCardSelected",void 0),(0,s.Cg)([(0,c.y_)()],C.prototype,"clock",void 0),(0,s.Cg)([(0,c.y_)()],C.prototype,"confirm",void 0),(0,s.Cg)([(0,c.y_)()],C.prototype,"config",void 0),(0,s.Cg)([(0,c.ox)("partner"),(0,c.ox)("clicks"),(0,c.ox)("isGiftCardSelected")],C.prototype,"checkState",null);var w=C=(0,s.Cg)([(0,c.uA)({components:{InputPlaceholder:f.A,DatePicker:g.A,Checkbox:v.A,InlineNotification:y.A}})],C),S=(0,_.A)(w,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"claimVikingDealsPurchaseSelect"},["select-click"!==t.state?e("InputPlaceholder",{attrs:{loading:t.loading,loadingText:t.$t("claimVikingDealsPurchaseSelect.loadingPurchases"),error:t.error,errorText:t.errorText,text:t.$t("claimVikingDealsPurchaseSelect.selectWebshop")}}):t._e(),"select-click"===t.state?e("div",{staticClass:"claimVikingDealsPurchaseSelectCalendar",class:{"
47is-invalid":!!t.errorMessage}},[e("DatePicker",{ref:"datepicker",attrs:{legendLabel:t.$t("claimVikingDeals.calenderLegendLabel"),legendLabelSelected:t.$t("claimVikingDeals.calenderLegendLabelSelected"),minDate:t.claimsAllowedMaxAge,maxDate:t.today,enabledDates:t.canSelectNoClickDate&&t.enableAllDates?null:t.clicks,initialMonth:t.mostRecentClick,showPrevMonthButtonWhenNotInRange:!0,styleLevel:2},on:{previousMonthOutOfRange:t.previousMonthOutOfRange},model:{value:t.selectedClick,callback:function(e){t.selectedClick=e},expression:"selectedClick"}}),e("Checkbox",{staticClass:"nextStyleLevel claimVikingDealsPurchaseSelect__enableAllDates",attrs:{appearance:"boxed",label:t.$t("claimVikingDeals.enableAllDates")},model:{value:t.enableAllDates,callback:function(e){t.enableAllDates=e},expression:"enableAllDates"}}),!t.canSelectNoClickDate&&t.enableAllDates?e("InlineNotification",{staticClass:"claimVikingDealsPurchaseSelect__alreadySubmittedNoClickClaim",attrs:{notificationType:"error",hideIcon:!0}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("claimVikingDeals.alreadySubmittedNoClickClaim"),expression:"$t('claimVikingDeals.alreadySubmittedNoClickClaim')"}]})]):t._e()],1):t._e(),t.errorMessage?e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.errorMessage,expression:"errorMessage"}],staticClass:"validation-message"}):t._e()],1)},[],!1,null,"d80a4f2e",null).exports,M=i(24176),A=i(58249),k=i(42123),I=i(79847),x=i(78307),N=i(15049),T=i(69607);class D extends c.lD{mounted(){this.selectedDeal=this.defaultSelected}descriptionWithReward(t){let e=this.$t(t.value.asTranslationString,{amount:`${t.value.amount}`});return`${t.description} â ${e}`}save(){this.$emit("dealSelected",this.selectedDeal),this.dismiss()}dismiss(){this.$emit("dismiss")}constructor(...t){super(...t),this.selectedDeal=null}}(0,s.Cg)([(0,c.kv)({default:[]})],D.prototype,"historicalDeals",void 0),(0,s.Cg)([(0,c.kv)({default:null})],D.prototype,"defaultSelected",void 0);var $=D=(0,s.Cg)([(0,c.uA)({components:{CallToAction:M.A,RadioButton:N.A,RadioButtons:T.A}})],D),P=(0,_.A)($,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"HistoricalDealSelectorSpc"},[e("header",[e("h2",[t._v(t._s(t.$t("historicalDealSelectorSpc.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main sidePanelContentMain"},[e("RadioButtons",{attrs:{"data-qa":"historicalDealSelector-dealsList"},model:{value:t.selectedDeal,callback:function(e){t.selectedDeal=e},expression:"selectedDeal"}},t._l(t.historicalDeals,function(i){return e("RadioButton",{key:i.id,attrs:{value:i}},[t._v(t._s(t.descriptionWithReward(i)))])}),1)],1),e("footer",[e("CallToAction",{attrs:{once:t.save}}
47,[t._v(t._s(t.$t("historicalDealSelectorSpc.save")))])],1)])},[],!1,null,null,null).exports;class L extends c.lD{get description(){if(!this.value)return null;let t=this.$t(this.value.value.asTranslationString,{amount:`${this.value.value.amount}`});return`${this.value.description} â ${t}`}openSidePanel(){this.showInSidePanel(P,{historicalDeals:this.deals,defaultSelected:this.value},{dealSelected:t=>{this.$emit("input",t),this.trackingService.claimFilledCategory()}})}}(0,s.Cg)([(0,c.y_)()],L.prototype,"showInSidePanel",void 0),(0,s.Cg)([(0,c.y_)()],L.prototype,"trackingService",void 0),(0,s.Cg)([(0,c.kv)({type:String,required:!0})],L.prototype,"id",void 0),(0,s.Cg)([(0,c.kv)({default:null})],L.prototype,"value",void 0),(0,s.Cg)([(0,c.kv)({required:!0})],L.prototype,"deals",void 0);var E=L=(0,s.Cg)([c.uA],L),O=(0,_.A)(E,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"HistoricalDealSelector"},[t("span",{staticClass:"sr-only",attrs:{id:`chooseOrChangeLabel-${this.id}`,"data-qa":"chooseOrChangeLabel"}},[this._v(" "+this._s(this.description?this.$t("historical_deal_selector.change_category__screenread"):this.$t("historical_deal_selector.choose_category__screenread"))+" ")]),t("input",{attrs:{id:`button-${this.id}`,type:"button","data-qa":`button-${this.id}`,"aria-describedby":`button-${this.id} chooseOrChangeLabel-${this.id}`,value:this.description,name:this.id},on:{click:this.openSidePanel}})])},[],!1,null,"22e4f551",null).exports,z=i(28759),j=i(79770),B=i(10231),F=i(93199),q=i(66090),R=i(21196),U=i(15799),V=i(3231);let W=(0,n.tZ)("VikingPointsClaimForm");class Q extends c.lD{async created(){let{transliterate:t}=await i.e(4128).then(i.t.bind(i,17715,23));this.transliterate=t}async handlePaste(t){if(t.clipboardData&&t.clipboardData.files.length>0){let e=document.activeElement,i=["input","textarea"].includes(e?.tagName.toLowerCase()),s=e?.getAttribute("type")==="file";if(this.invoiceInputElement&&(!e||!i||s)){let e=t.clipboardData.files[0];e&&this.allowedFileTypes.some(t=>e.type.startsWith(t.replace("*","")))&&(this.invoiceInputElement.files=t.clipboardData.files,await this.handleInvoiceChange())}}}async mounted(){this.partnerClicks=await this.vdClient.getClicks(),this.customerStatus=await this.vdClient.getCustomerStatus(),this.allPartners=await this.vdClient.getPartners(),this.initItems(),window.addEventListener("paste",this.handlePaste)}beforeDestroy(){window.removeEventListener("paste",this.handlePaste)}async handleInvoiceChange(){this.invoiceInputElement?.files?.length===1&&(await this.handleInvoiceTransformation(),this.convertedInvoice&&(this.notify.success("claimVikingDeals.fileSelectedForUpload"),this.trackingService.claimFilledInvoice()))}async handleInvoiceTransformation(){try{if(!this.invoiceInputElement)throw new o.p("Invoice input element not found");this.convertedInvoice=await this.createBase64StringFromInvoice(this.invoiceInputElement)}catch(i){this.notify.error("claimVikingDeals.fileNotValid");let t=this.invoiceInputElement?.files?.[0],e=t?`File name: ${t.name}, size: ${t.size} bytes, type: ${t.type}`:"No file found";W.error(`Failed to convert invoice to Base64. ${e}`,i)}}calculateVikingPoints(...t){return t.reduce((t,e)=>{if(!e.deal)return t;if(e.price&&e.price>0){if("percentage"===e.deal.value.type)return t+100*e.price*(e.deal.value.amount/100)/100;if("viking_points"===e.deal.value.type)return t+e.deal.value.amount}return t},0)}async addItem(t=!0){let e=this.purchaseItemsIdCounter++;if(this.purchaseItems.push({id:e,deal:this.historicalDeals&&1===this.historicalDeals.length?this.historicalDeals[0]:null,price:null}),t){await this.$nextTick();let t=this.$refs[`claimVikingDealsPointsCalculator__entry-${e}`];Array.isArray(t)&&t.length>0&&t[0].focus()}}initItems(){this.purchaseItemsIdCounter=0,this.purchaseItems=[],this.trackedPriceInputs.clear(),this.historicalDeals&&this.historicalDeals.length>0&&this.addItem(!1)}removeItem(t){this.trackingService.claimRemovedCategoryLine(),1===this.purchaseItems.length?this.initItems():this.purchaseItems=this.purchaseItems.filter(e=>e.id!==t.id)}trackPriceInputOnce(t){this.trackedPriceInputs.has(t.id)||(this.trackedPriceInputs.add(t.id),this.trackingService.claimFilledPurchaseAmount())}partnerFilterScore(t){if(!this.partnersFilter)return 0;let e=this.transliterate(this.partnersFilter).toLowerCase();return this.transliterate(t.slug).toLowerCase().includes(e)||this.transliterate(t.title).toLowerCase().includes(e)?3:this.transliterate(t.subtitle).toLowerCase().includes(e)?2:+!!this.transliterate(t?.description||"").toLowerCase().includes(e)}get completeDataDescription(){return this.selectedPartner?.claimInfo?`${this.$t("claimVikingDeals.completeDataDescription")} ${this.selectedPartner.claimInfo}`:this.$t("claimVikingDeals.completeDataDescription")}get canSelectNoClickDate(){return this.customerStatus?.canSubmitClaimsWithoutClick||!1}get selectedPartnerName(){return this.selectedPartner?this.selectedPartner.title:""}get selectedClickInNaturalLanguage(){return this.selectedClick?(0,a.convert)(this.selectedClick).toDate().toLocaleDateString(`${this.$i18n.locale}-BE`,{day:"numeric",month:"long"}):""}
47get historicalDealsError(){return(this.selectedPartner&&this.selectedClick&&!this.historicalDealsLoading&&(!this.historicalDeals||this.historicalDeals.length<1))??!1}get partners(){let t=[],e=this.partnerClicks?.map(t=>t.partner);e&&t.push(...e),this.allPartners&&t.push(...this.allPartners);let i=(0,d.pS)(t,{searchString:this.partnersFilter});return this.searchResultsIncludeSelectedPartner(i)||(i=[...i,this.selectedPartner]),i}searchResultsIncludeSelectedPartner(t){return!this.selectedPartner||!!t.find(t=>t.slug===this.selectedPartner?.slug)}get selectedPartnerHasOnlyGiftCards(){return!!this.selectedPartner&&!this.selectedPartner?.partnerHasOnlineDeals&&this.selectedPartner?.partnerHasGiftCards}get shouldSelectDealType(){return!!this.selectedPartner&&this.selectedPartner.partnerHasOnlineDeals&&this.selectedPartner.partnerHasGiftCards}get clicks(){if(!this.partnerClicks||!this.selectedPartner)return null;let t=this.partnerClicks.find(t=>t.partner.slug===this.selectedPartner.slug);return t?t.clicks.map(t=>t.toLocalDate()):[]}get historicalNonGiftCardDeals(){return this.historicalDeals?this.historicalDeals.filter(t=>"gift_card"!==t.dealType):null}get selectedPartnerImprovedByDazn(){if(!this.selectedPartner)return!1;let t=this.allPartners?.find(t=>t.slug===this.selectedPartner.slug)??this.selectedPartner;return(0,U.Wu)(t,"dazn")}async vikingDealsPartnerSelected(){this.selectedPartner&&(this.selectedClaimReason=null,this.isGiftCardSelected=null,this.selectedClick=null,this.claimNotPossibleYet=!1,this.trackingService.claimPartnerSelected(this.selectedPartner),this.selectedPartnerHasOnlyGiftCards?await this.alert(this.$t("ClaimVikingDeals.no_claims_popup_description_gift_cards"),{title:this.$t("ClaimVikingDeals.noClaimsPopupTitle")}):this.selectedPartner.acceptsClaims||("payconiq"===this.selectedPartner.slug?await this.alert(this.$t("ClaimVikingDeals.no_claims_popup_description_payconiq"),{title:this.$t("ClaimVikingDeals.noClaimsPopupTitle")}):await this.alert(this.$t("ClaimVikingDeals.noClaimsPopupDescription{partnerName}",{partnerName:this.selectedPartner.title}),{title:this.$t("ClaimVikingDeals.noClaimsPopupTitle")})))}async isGiftCardSelectedChanged(){if(!this.selectedPartner||!this.shouldSelectDealType){this.isGiftCardSelected=null;return}this.isGiftCardSelected&&(this.selectedClick=null,await this.alert(this.$t("ClaimVikingDeals.no_claims_popup_description_gift_cards"),{title:this.$t("ClaimVikingDeals.noClaimsPopupTitle")}))}async clickDateSelected(){this.selectedClick&&(this.noClickError=null,this.trackingService.claimDateSelected(),this.selectedClick.plusDays(2).isBefore(this.clock.today())?(this.claimNotPossibleYet=!1,this.historicalDealsLoading=!0,this.initItems(),this.historicalDeals=await this.vdClient.getHistory(this.selectedPartner,this.selectedClick),this.initItems(),this.historicalDealsLoading=!1):(this.claimNotPossibleYet=!0,await this.alert(this.$t("ClaimVikingDeals.recent_purchase_description"),{title:this.$t("ClaimVikingDeals.recent_purchase_title"),dismiss:this.$t("ClaimVikingDeals.recent_purchase_understood")})))}async submitClaim(){let t=!1;try{if(this.notify.clear(),this.trackingService.claimSubmit(),!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20),this.trackingService.claimSubmitInvalid();return}if(!this.selectedPartner)return;if(this.selectedPartnerHasOnlyGiftCards||this.shouldSelectDealType&&!0===this.isGiftCardSelected){await this.alert(this.$t("ClaimVikingDeals.no_claims_popup_description_gift_cards"),{title:this.$t("ClaimVikingDeals.noClaimsPopupTitle")}),this.trackingService.claimSubmitInvalid();return}if(!this.selectedPartner.acceptsClaims){if("payconiq"===this.selectedPartner.slug){await this.alert(this.$t("ClaimVikingDeals.no_claims_popup_description_payconiq"),{title:this.$t("ClaimVikingDeals.noClaimsPopupTitle")}),this.trackingService.claimSubmitInvalid();return}await this.alert(this.$t("ClaimVikingDeals.noClaimsPopupDescription{partnerName}",{partnerName:this.selectedPartner.title}),{title:this.$t("ClaimVikingDeals.noClaimsPopupTitle")}),this.trackingService.claimSubmitInvalid();return}if(this.selectedPartner.claimReasons&&!this.selectedClaimReason){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20),this.trackingService.claimSubmitInvalid();return}if(!this.selectedClick){this.noClickError=this.$t("claimVikingDeals.no_click_selected").toString(),this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20),this.trackingService.claimSubmitInvalid();return}this.uwaValidationErrors={};let e=this.partnerClicks.find(t=>t.partner.slug===this.selectedPartner.slug);t=!e||!e.clicks.find(t=>t.toLocalDate().equals(this.selectedClick));let i=this.selectedClick.atTime(a.LocalTime.of(0,0));if(!i)throw this.trackingService.claimSubmitInvalid(),new o.p("Cannot find back the click");if(!this.convertedInvoice){this.notify.error("claimVikingDeals.fileNotValid"),this.trackingService.claimSubmitInvalid();return}await this.vdClient.createClaim(this.selectedPartner,this.selectedClaimReason,i.toLocalDate(),t,this.orderNumber,this.convertedInvoice,this.purchaseItems),W.info("Claim created"),this.trackingService.claimSubmitSuccess(),this.$router.push({name:V.A.vikingPointsClaimDone,query:t?{noClick:"true"}:{}})}catch(e){let t=r.Ay.of(e);if(t.code===r.O4.CLAIM_ALREADY_EXISTS)return void this.notify.info("claimVikingDeals.claim_already_exists");if(t.code===r.O4.NEEDS_CLICK)return void this.notify.error("claimVikingDeals.needs_click__html");if(t.code===r.O4.ACCOUNT_INELIGIBLE)return void this.notify.error("claimVikingDeals.account_ineligible");W.error("Failed to create claim",t),this.notifyGenericErrors(e),this.domUtils.scrollToFirst(".is-invalid",20)}}async createBase64StringFromInvoice(t){let e=t.files?.[0];if(!e)throw Error("No file selected in invoice input element");return{name:e.name,content:await new Promise((t,i)=>{let s=new FileReader;s.onload=()=>t(s.result.split(",")[1]),s.onerror=i,s.readAsDataURL(e)})}}constructor(...t){super(...t),this.customerStatus=null,this.partnersFilter="",this.allPartners=null,this.partnerClicks=null,this.selectedPartner=null,this.selectedClaimReason=null,this.selectedClick=null,this.orderNumber="",this.amount=null,this.expectedVP=null,this.uwaValidationErrors={},this.RouteName=V.A,this.noClickError=null,this.claimNotPossibleYet=!1,this.historicalDeal
47s=null,this.historicalDealsLoading=!1,this.isGiftCardSelected=null,this.convertedInvoice=null,this.purchaseItems=[],this.purchaseItemsIdCounter=0,this.transliterate=t=>t,this.trackedPriceInputs=new Set,this.allowedFileTypes=["image/*","application/pdf","image/heic","image/heif"]}}(0,s.Cg)([(0,c.y_)()],Q.prototype,"trackingService",void 0),(0,s.Cg)([(0,c.y_)()],Q.prototype,"authService",void 0),(0,s.Cg)([(0,c.y_)()],Q.prototype,"domUtils",void 0),(0,s.Cg)([(0,c.y_)()],Q.prototype,"alert",void 0),(0,s.Cg)([(0,c.y_)()],Q.prototype,"vdClient",void 0),(0,s.Cg)([(0,c.y_)()],Q.prototype,"clock",void 0),(0,s.Cg)([(0,c.y_)()],Q.prototype,"config",void 0),(0,s.Cg)([(0,c.oS)()],Q.prototype,"invoiceInputElement",void 0),(0,s.Cg)([(0,c.ox)("selectedPartner")],Q.prototype,"vikingDealsPartnerSelected",null),(0,s.Cg)([(0,c.ox)("isGiftCardSelected")],Q.prototype,"isGiftCardSelectedChanged",null),(0,s.Cg)([(0,c.ox)("selectedClick")],Q.prototype,"clickDateSelected",null);var Y=Q=(0,s.Cg)([(0,c.uA)({components:{HistoricalDealSelector:O,Field:A.A,WizardFooter:B.A,WizardStep:q.A,WizardLoading:F.A,MvForm:k.A,ClaimVikingDealsPurchaseSelect:S,ShowAll:R.A,RadioGroup:I.A,ClaimVikingDealsPartner:m,CallToAction:M.A,IntroBlock:z.A,InputPlaceholder:f.A,SearchInput:x.A,InlineNotification:y.A,MoneyField:j.A},methods:{formatVikingPoints:l.TY,convert:a.convert}})],Q),G=(0,_.A)(Y,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"claimForm"},[null===t.partnerClicks?e("WizardLoading",{attrs:{message:t.$t("claimVikingDeals.loadingMessage")}}):e("MvForm",{staticClass:"claimForm__form",attrs:{name:"vp-claim"}},[e("WizardStep",{attrs:{hideNumber:!0,title:t.$t("claimVikingDeals.introTitle")}},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("claimVikingDeals.good_to_know_content"),expression:"$t('claimVikingDeals.good_to_know_content')"}],staticClass:"ExternalContent wizardStep__paddedContent"})]),e("WizardStep",{attrs:{title:t.$t("claimVikingDeals.selectPartnerTitle"),description:t.$t("claimVikingDeals.selectPartnerDescriptionNoClickClaims")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("SearchInput",{staticClass:"claimForm__search",attrs:{describedBy:"claimVikingDeals-search-field-instructions claimVikingDeals-search-field-num-results",placeholderText:t.$t("claimVikingDeals.filterPartners")},model:{value:t.partnersFilter,callback:function(e){t.partnersFilter="string"==typeof e?e.trim():e},expression:"partnersFilter"}}),e("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{id:"claimVikingDeals-search-field-instructions"}},[t._v(" "+t._s(t.$t("claimVikingDeals.search_field_instructions__screenread"))+" ")]),e("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{id:"claimVikingDeals-search-field-num-results","aria-live":"assertive","aria-atomic":"true"}},[t.partners?[t._v(t._s(t.$t("claimVikingDeals.search_results_found_{partnersCount}__screenread",{partnersCount:t.partners.length})))]:t._e()],2),!t.partners||t.partners.length>0?e("ShowAll",{staticClass:"claimVikingDealsPartnerSelect",attrs:{values:t.partners,limit:6,labelKey:"claimVikingDealsPartnerSelect.show{n}PartnersMore","data-qa":"partner-selection"},scopedSlots:t._u([{key:"default",fn:function({values:i}){return[e("RadioGroup",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],staticClass:"animated",attrs:{options:i,numberOfLoadingItems:4,name:"selectedPartner",appearance:"twoColumns","data-qa":"partner-radio-group"},scopedSlots:t._u([{key:"default",fn:function({option:i}){return[i?e("ClaimVikingDealsPartner",{attrs:{partner:i}}):t._e()]}},{key:"radioGroupDescription",fn:function({option:i}){return[i&&i.claimReasons?e("div",{staticClass:"styleLevel2"},[e("Field",{staticClass:"field--noMargin",attrs:{label:t.$t("claimVikingDeals.claim_reason_label")}},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedClaimReason,expression:"selectedClaimReason"}],attrs:{id:`sel_claimReason_${i.slug}`,required:"",name:"sel_claimReason"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selectedClaimReason=e.target.multiple?i:i[0]}}},[e("option",{domProps:{value:null}}),t._l(i.claimReasons,function(i){return e("option",{key:i,domProps:{value:i}},[t._v(" "+t._s(t.$t(`claimVikingDeals.claim_reason__${i}`))+" ")])})],2)])],1):t._e(),i&&i.partnerHasGiftCards&&i.partnerHasOnlineDeals?e("div",{staticClass:"styleLevel2"},[e("Field",{staticClass:"field--noMargin",attrs:{label:t.$t("claimVikingDeals.dealTypeLabel")}},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.isGiftCardSelected,expression:"isGiftCardSelected"}],attrs:{id:`sel_dealType_${i.slug}`,required:"",name:"sel_dealType"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.isGiftCardSelected=e.target.multiple?i:i[0]}}},[e("option",{domProps:{value:null}}),e("option",{domProps:{value:!1}},[t._v(" "+t._s(t.$t("claimVikingDeals.dealTypeOnlineDeal"))+" ")]),e("option",{domProps:{value:!0}},[t._v(" "+t._s(t.$t("claimVikingDeals.dealTypeGiftCard"))+" ")])])])],1
47):t._e()]}}],null,!0),model:{value:t.selectedPartner,callback:function(e){t.selectedPartner=e},expression:"selectedPartner"}})]}}],null,!1,0xb3f1fe6e)}):e("InlineNotification",{staticClass:"claimForm__noPartnersFound",attrs:{notificationType:"warning",hideIcon:!0},scopedSlots:t._u([{key:"default",fn:function(){return[t._v(" "+t._s(t.$t("claimVikingDeals.no_partners_found"))+" ")]},proxy:!0}])})],1)]),e("WizardStep",{attrs:{title:t.$t("claimVikingDeals.selectPurchaseTitle"),description:t.$t("claimVikingDeals.selectPurchaseDescription")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("ClaimVikingDealsPurchaseSelect",{attrs:{canSelectNoClickDate:t.canSelectNoClickDate,partner:t.selectedPartner,errorMessage:t.noClickError,isGiftCardSelected:t.isGiftCardSelected,clicks:t.clicks},model:{value:t.selectedClick,callback:function(e){t.selectedClick=e},expression:"selectedClick"}})],1)]),t.claimNotPossibleYet?t._e():e("WizardStep",{staticClass:"fill-out-the-details",attrs:{title:t.$t("claimVikingDeals.completeDataTitle"),description:t.completeDataDescription}},[e("div",{staticClass:"wizardStep__paddedContent"},[t.selectedClick&&!t.historicalDealsLoading&&!t.historicalDealsError&&t.historicalNonGiftCardDeals&&t.historicalNonGiftCardDeals.length>0?[e("div",{staticClass:"claimVikingDealsDataStep",attrs:{"data-qa":"data-step"}},[e("Field",{staticClass:"field--noMargin",attrs:{label:t.$t("claimVikingDeals.completeDataOrdernumber"),hint:t.$t("claimVikingDeals.completeDataOrdernumberHint")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.orderNumber,expression:"orderNumber"},{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{\n required: true,\n }"}],attrs:{name:"ordernumber",type:"text",required:""},domProps:{value:t.orderNumber},on:{"~change":function(e){return t.trackingService.claimFilledOrderNumber()},input:function(e){e.target.composing||(t.orderNumber=e.target.value)}}})]),e("Field",{staticClass:"field--noMargin",attrs:{label:t.$t("claimVikingDeals.completeDataInvoice"),hint:t.$t("claimVikingDeals.completeDataInvoiceHint")}},[e("input",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0,mimes:t.allowedFileTypes,length:1,size:10240},expression:"{\n required: true,\n mimes: allowedFileTypes,\n length: 1,\n size: 10240,\n }"}],ref:"invoiceInputElement",staticClass:"claimVikingDealsDataStep__invoiceInput",attrs:{type:"file",name:"invoice",accept:t.allowedFileTypes.join(","),required:""},on:{change:t.handleInvoiceChange}})])],1),e("hr"),e("IntroBlock",{staticClass:"claimVikingDealsPointsCalculatorHeading",attrs:{titleTag:"h6",titleAppearance:"h5",horizontalChildAlignment:"left",title:t.$t("claimVikingDeals.yourPurchase"),description:t.$t("claimVikingDeals.yourPurchaseDescription")}}),t.selectedPartnerImprovedByDazn?e("InlineNotification",{staticClass:"claimForm__daznEstimateNotice",attrs:{notificationType:"tip","data-qa":"dazn-estimate-notice"}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("claimVikingDeals.dazn_estimate_notice__html"),expression:"$t('claimVikingDeals.dazn_estimate_notice__html')"}]})]):t._e(),e("div",{staticClass:"claimVikingDealsPointsCalculator nextStyleLevel"},[t._l(t.purchaseItems,function(i){return e("div",{key:i.id,ref:`claimVikingDealsPointsCalculator__entry-${i.id}`,refInFor:!0,staticClass:"claimVikingDealsPointsCalculator__entry",attrs:{tabindex:"-1"}},[e("Field",{staticClass:"claimVikingDealsDataStep__field field--noMargin",attrs:{label:t.$t("claimVikingDeals.completeDataCategory"),hint:t.$t("claimVikingDeals.completeDataCategoryHint")}},[e("HistoricalDealSelector",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0,included:t.historicalDeals},expression:"{\n required: true,\n included: historicalDeals,\
47n }"}],attrs:{id:`deal_${i.id}`,"data-qa":`deal_${i.id}`,required:"",deals:t.historicalNonGiftCardDeals,name:`deal_${i.id}`},model:{value:i.deal,callback:function(e){t.$set(i,"deal",e)},expression:"item.deal"}})],1),e("Field",{staticClass:"claimVikingDealsDataStep__field field--noMargin",attrs:{label:t.$t("claimVikingDeals.completeDataPurchaseAmount"),hint:t.$t("claimVikingDeals.completeDataPurchaseAmountHint")}},[e("MoneyField",{staticClass:"claimVikingDealsPointsCalculator__moneyField",attrs:{name:`price_${i.id}`,label:t.$t("claimVikingDeals.completeDataPurchaseAmount"),min:.01,required:!0,formValidator:t.$validator},on:{input:function(e){return t.trackPriceInputOnce(i)}},model:{value:i.price,callback:function(e){t.$set(i,"price",e)},expression:"item.price"}})],1),e("div",{staticClass:"claimVikingDealsPointsCalculator__vikingPointsAmount"},[e("div",{staticClass:"claimVikingDealsPointsCalculator__vikingPointsAmount__label"},[t._v(" "+t._s(t.$t("claimVikingDeals.estimatedAmountOfVikingPoints"))+" ")]),e("div",{staticClass:"claimVikingDealsPointsCalculator__vikingPointsAmount__value"},[t._v(" "+t._s(t.formatVikingPoints(t.calculateVikingPoints(i)))+" ")])]),e("div",{staticClass:"claimVikingDealsPointsCalculator__actions"},[e("button",{staticClass:"claimVikingDealsPointsCalculator__action claimVikingDealsPointsCalculator__action--delete",attrs:{title:t.$t("delete"),"aria-label":t.$t("claimVikingDeals.removeThisItem")},on:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.removeItem(i)}}},[e("span",{staticClass:"claimVikingDealsPointsCalculator__action__label"},[t._v(t._s(t.$t("claimVikingDeals.removeThisItem")))])])])],1)}),e("div",{staticClass:"claimVikingDealsPointsCalculator__addItem"},[e("CallToAction",{attrs:{appearance:"link",icon:i(30549)},on:{click:t.addItem}},[t._v(t._s(t.$t("claimVikingDeals.addAnotherItem")))])],1),e("div",{staticClass:"claimVikingDealsPointsCalculator__footer"},[e("strong",{staticClass:"claimVikingDealsPointsCalculator__footer__label"},[t._v(t._s(t.$t("claimVikingDeals.totalAmountOfVikingPoints")))]),e("div",{staticClass:"claimVikingDealsPointsCalculator__footer__amount"},[t._v(" "+t._s(t.formatVikingPoints(t.calculateVikingPoints(...t.purchaseItems)))+" ")])])],2)]:e("InputPlaceholder",{attrs:{loading:t.historicalDealsLoading,loadingText:t.$t("claimVikingDeals.loadingHistoricalDeals"),error:t.historicalDealsError,errorText:t.$t("claimVikingDeals.noHistoricalDealsFor{partner}OnSelected{date}",{partner:t.selectedPartnerName,date:t.selectedClickInNaturalLanguage}),text:t.$t("claimVikingDeals.completePreviousStepsBeforeEnteringPurchaseData")}})],2)]),t.claimNotPossibleYet?t._e():e("WizardFooter",{staticClass:"claim-form-footer",attrs:{onConfirm:t.submitClaim,ctaText:t.$t("claimVikingDeals.confirm"),secCtaText:t.$t("claimVikingDeals.cancel")}})],1)],1)},[],!1,null,"3d85c086",null).exports},50198:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return N}});var s=i(32198),a=i(58294),n=i(94212),o=i(67953),r=i(95990),l=i(24176),d=i(3231);class c extends o.lD{get tagType(){return this.href?"a":"button"}}(0,s.Cg)([(0,o.kv)({type:String,default:null})],c.prototype,"href",void 0),(0,s.Cg)([(0,o.kv)({type:String,default:""})],c.prototype,"title",void 0),(0,s.Cg)([(0,o.kv)({type:String,default:null})],c.prototype,"target",void 0);var u=c=(0,s.Cg)([o.uA],c),p=i(41618),h=(0,p.A)(u,function(){var t=this,e=t._self._c;return t._self._setupProxy,e(t.tagType,{tag:"Component",staticClass:"infoLink",attrs:{href:t.href,title:t.title,target:t.target},on:{click:function(e){return t.$emit("click",e)}}},[e("img",{attrs:{src:i(98092),alt:""}})])},[],!1,null,"cafcf224",null).exports,_=i(50778),m=i(49663),g=i(42580);class v extends o.lD{formatAmount(t){let e=(0,g.TY)(t);return this.showPlusSign&&t>0?`+ ${e}`:e}showPendingPointsDialog(){this.expectedConfirmDurationDays&&this.alert(this.$t(`vp_transaction__pending_points_explanation_description_${this.etaCategory}__html`,{confirm_duration_days:this.expectedConfirmDurationDays}),{title:this.$t("vp_transaction__pending_points_explanation_title")})}
47showFaq(){this.showInSidePanel(m.default,{id:this.stateInfoFaqId})}get tagAppearance(){return this.amount&&this.highlightAmount?this.amount>0?"green":this.amount<0?"redOrange":"neroWhite":"neroWhite"}}(0,s.Cg)([(0,o.kv)({default:!0})],v.prototype,"loading",void 0),(0,s.Cg)([(0,o.kv)({default:null})],v.prototype,"dealsLogoUrl",void 0),(0,s.Cg)([(0,o.kv)({default:null})],v.prototype,"description",void 0),(0,s.Cg)([(0,o.kv)({default:null})],v.prototype,"state",void 0),(0,s.Cg)([(0,o.kv)({default:null})],v.prototype,"stateLabel",void 0),(0,s.Cg)([(0,o.kv)({default:null})],v.prototype,"stateInfoTitle",void 0),(0,s.Cg)([(0,o.kv)({default:null})],v.prototype,"stateInfoFaqId",void 0),(0,s.Cg)([(0,o.kv)({default:null})],v.prototype,"amount",void 0),(0,s.Cg)([(0,o.kv)({default:null})],v.prototype,"dateToShow",void 0),(0,s.Cg)([(0,o.kv)({default:null})],v.prototype,"identifierId",void 0),(0,s.Cg)([(0,o.kv)({default:null})],v.prototype,"expectedConfirmDurationDays",void 0),(0,s.Cg)([(0,o.kv)({default:!1})],v.prototype,"highlightAmount",void 0),(0,s.Cg)([(0,o.kv)({default:"no_known_eta"})],v.prototype,"etaCategory",void 0),(0,s.Cg)([(0,o.kv)({default:!1})],v.prototype,"showPlusSign",void 0),(0,s.Cg)([(0,o.y_)()],v.prototype,"showInSidePanel",void 0),(0,s.Cg)([(0,o.y_)()],v.prototype,"alert",void 0);var f=v=(0,s.Cg)([(0,o.uA)({components:{InfoLink:h,Tag:_.A}})],v),y=(0,p.A)(f,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"vpTransaction",class:`vpTransaction--${t.state}`},[t.loading?[e("div",{staticClass:"vpTransaction__logoShimmer shimmer"}),t._m(0),e("div",{staticClass:"vpTransaction__amountShimmer shimmer"},[t._v("Â ")])]:[e("div",{staticClass:"vpTransaction__logo",style:t.dealsLogoUrl?`background-image:url('${t.dealsLogoUrl}');`:""},[t._v(" Â ")]),e("div",{staticClass:"vpTransaction__details"},[e("div",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],staticClass:"vpTransaction__details__description"},[t._v(" "+t._s(t.description)+" ")]),e("div",{staticClass:"vpTransaction__details__dateStatus"},[t.identifierId?e("span",[t._v("#"+t._s(t.identifierId))]):t._e(),t.dateToShow?e("span",{staticClass:"vpTransaction__details__dateStatus__date"},[t._v(t._s(t._f("date")(t.dateToShow)))]):t._e(),t.stateLabel?e("span",{staticClass:"vpTransaction__details__dateStatus__state"},[t._v(" "+t._s(t.stateLabel)+"Â "),"pending"===t.state&&t.expectedConfirmDurationDays?e("InfoLink",{staticClass:"vpTransaction__details__dateStatus__state__info",attrs:{title:t.$t("vp_transaction__more_about_pending_vp")},on:{click:t.showPendingPointsDialog}}):t._e(),t.stateInfoFaqId&&t.stateInfoTitle?e("InfoLink",{staticClass:"vpTransaction__details__dateStatus__state__info",attrs:{title:t.stateInfoTitle},on:{click:function(e){return t.showFaq()}}}):t._e()],1):t._e()])]),e("Tag",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.formatAmount(t.amount),expression:"formatAmount(amount)"}],staticClass:"vp-transaction-amount",attrs:{appearance:t.tagAppearance,size:"small"}})]],2)},[function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"vpTransaction__details"},[t("div",{staticClass:"vpTransaction__details__descriptionShimmer shimmer"},[this._v("Â ")]),t("div",{staticClass:"vpTransaction__details__dateStatus"},[t("span",{staticClass:"vpTransaction__details__dateStatus__dateShimmer shimmer"},[this._v(" Â ")])])])}],!1,null,"4ab1e5a4",null).exports;class b extends o.lD{onClaimsChange(){if(this.claims){let t=this.claims.items.length>5?3:this.claims.items.length;this.visibleClaims=this.claims.initialPage(t)}}stateLabel(t){switch(t.state){case"approved":return this.$t("claim_history.approved").toString();case"pending":return this.$t("claim_history.pending").toString();case"declined":return this.$t("claim_history.declined").toString();default:return""}}stateInfo(t){switch(t.state){case"declined":return{title:this.$t("claim_history.declined_faq").toString(),faqId:this.$t("claim_history.declined_faq_id").toString()};case"pending":return{title:this.$t("claim_history.pending_faq").toString(),faqId:this.$t("claim_history.pending_faq_id").toString()};default:return{title:null,faqId:null}}}async loadMoreClaims(){await this.visibleClaims.more(),this.claimsUncollapsed=!0}constructor(...t){super(...t),this.visibleClaims=null,this.claimsUncollapsed=!1}}(0,s.Cg)([(0,o.kv)()],b.prototype,"title",void 0),(0,s.Cg)([(0,o.kv)()],b.prototype,"claims",void 0),(0,s.Cg)([(0,o.kv)({default:!1})],b.prototype,"highlightAmounts",void 0),(0,s.Cg)([(0,o.ox)("claims",{immediate:!0})],b.prototype,"onClaimsChange",null);var C=b=(0,s.Cg)([(0,o.uA)({components:{VpTransaction:y,CallToAction:l.A}})],b),w=(0,p.A)(C,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("section",{staticClass:"claims"},[null!==t.visibleClaims&&t.visibleClaims.isEmpty?t._e():e("h4",{staticClass:"claims__title"},[t._v(" "+t._s(t.title)+" ")]),null===t.visibleClaims?e("div",[e("div",{staticClass:"ContentBoxList styleLevel1"},t._l(3,function(t){return e("div",{key:`loading-vp-item-${t}`,staticClass:"ContentBoxList__item"},[e("VpTransaction")],1)}),0)]):t._e(),t.visibleClaims&&!t.visibleClaims.isEmpty?[e("div",{staticClass:"ContentBoxList styleLevel1"},[t._l(t.visibleClaims.items,function(i){return e("div",{key:i.claimId,staticClass:"ContentBoxList__item"},[e("VpTransaction",{attrs:{loading:!1,dealsLogoUrl:i.dealsLogoUrl,description:i.partnerName,state:i.state,stateLabel:t.stateLabel(i),stateInfoTitle:t.stateInfo(i).title,stateInfoFaqId:t.stateInfo(i).faqId,amount:i.cashbackAmount,dateToShow:i.created,identifierId:i.
47claimId,showPlusSign:!1,highlightAmount:!1}})],1)}),t.visibleClaims.hasMore&&!t.claimsUncollapsed?e("button",{staticClass:"ContentBoxList__item ContentBoxList__item--showMore show-more-claims",on:{"~click":function(e){return t.loadMoreClaims(17)}}},[t._v(" "+t._s(t.$t("claim_history.show_more_claims"))+" ")]):t._e()],2),t.visibleClaims.hasMore&&t.claimsUncollapsed?e("div",{staticClass:"claims__loadMoreBtn"},[e("CallToAction",{staticClass:"load-more-claims",attrs:{appearance:"quarternary-small",loadingMsg:t.$t("loading"),once:t.loadMoreClaims}},[t._v(" "+t._s(t.$t("load_more"))+" ")])],1):t._e()]:t._e()],2)},[],!1,null,null,null).exports;class S extends o.lD{onVikingPointsChange(){if(this.vikingPointTransactions){let t=this.vikingPointTransactions.items.length>5?3:this.vikingPointTransactions.items.length;this.allVikingPointTransactions=this.vikingPointTransactions.initialPage(t)}}stateLabel(t){switch(t.state){case"reserved":return this.$t("viking_points.reserved").toString();case"pending":return this.$t("viking_points.pending").toString();case"cancelled":return this.$t("viking_points.cancelled").toString();case"rejected":return this.$t("viking_points.rejected").toString();default:return""}}stateInfo(t){switch(t.state){case"reserved":return{title:this.$t("viking_points.reserved_faq").toString(),faqId:this.$t("viking_points.reserved_faq_id").toString()};case"cancelled":return{title:this.$t("viking_points.cancelled_faq").toString(),faqId:this.$t("viking_points.cancelled_faq_id").toString()};default:return{title:null,faqId:null}}}async loadMoreVikingPoints(){await this.allVikingPointTransactions.more(),this.vikingPointsUncollapsed=!0}constructor(...t){super(...t),this.allVikingPointTransactions=null,this.vikingPointsUncollapsed=!1}}(0,s.Cg)([(0,o.kv)()],S.prototype,"title",void 0),(0,s.Cg)([(0,o.kv)()],S.prototype,"vikingPointTransactions",void 0),(0,s.Cg)([(0,o.kv)({default:!1})],S.prototype,"highlightAmounts",void 0),(0,s.Cg)([(0,o.kv)({default:!0})],S.prototype,"showPlusSign",void 0),(0,s.Cg)([(0,o.ox)("vikingPointTransactions",{immediate:!0})],S.prototype,"onVikingPointsChange",null);var M=S=(0,s.Cg)([(0,o.uA)({components:{VpTransaction:y,CallToAction:l.A}})],S),A=(0,p.A)(M,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("section",{staticClass:"vpTransactions"},[null!==t.allVikingPointTransactions&&t.allVikingPointTransactions.isEmpty?t._e():e("h4",{staticClass:"vpTransactions__title"},[t._v(" "+t._s(t.title)+" ")]),null===t.allVikingPointTransactions?e("div",[e("div",{staticClass:"ContentBoxList styleLevel1"},t._l(3,function(t){return e("div",{key:`loading-vp-item-${t}`,staticClass:"ContentBoxList__item"},[e("VpTransaction")],1)}),0)]):t._e(),t.allVikingPointTransactions&&!t.allVikingPointTransactions.isEmpty?[e("div",{staticClass:"ContentBoxList styleLevel1"},[t._l(t.allVikingPointTransactions.items,function(i){return e("div",{key:i.lastUpdated.toString()+i.transactionId,staticClass:"ContentBoxList__item viking-point-transaction"},[e("VpTransaction",{attrs:{loading:!1,dealsLogoUrl:i.dealsLogoUrl,description:i.description,state:i.state,stateLabel:t.stateLabel(i),stateInfoTitle:t.stateInfo(i).title,stateInfoFaqId:t.stateInfo(i).faqId,amount:i.amount,showPlusSign:t.showPlusSign,dateToShow:i.lastUpdated,highlightAmount:t.highlightAmounts,etaCategory:i.etaCategory,expectedConfirmDurationDays:i.expectedConfirmDurationDays}})],1)}),t.allVikingPointTransactions.hasMore&&!t.vikingPointsUncollapsed?e("button",{staticClass:"ContentBoxList__item ContentBoxList__item--showMore show-more-transactions",on:{"~click":function(e){return t.loadMoreVikingPoints()}}},[t._v(" "+t._s(t.$t("viking_points.show_more_transactions"))+" ")]):t._e()],2),t.allVikingPointTransactions.hasMore&&t.vikingPointsUncollapsed?e("div",{staticClass:"vpTransactions__loadMoreBtn"},[e("CallToAction",{staticClass:"load-more-transactions",attrs:{appearance:"quarternary-small",loadingMsg:t.$t("loading"),once:t.loadMoreVikingPoints}},[t._v(" "+t._s(t.$t("load_more"))+" ")])],1):t._e()]:t._e()],2)},[],!1,null,null,null).exports;let k=(0,a.tZ)("VikingPointsView");class I extends o.lD{created(){this.startListeningToVikingPointsBalanceUpdates(),this.loadBackendData()}async loadBackendData(){try{await Promise.all([(async()=>{this.vikingPointsBalance=await this.vikingPointsService.getBalance()})(),(async()=>{this.vikingPointsHistory=await this.getVpHistory()})(),(async()=>{this.pendingVikingPoints=await this.vikingPointsService.getPending()})(),(async()=>{this.claims=n.Y.ofItems(await this.vikingPointsService.getClaims())})()])}catch(t){k.error("Failed to load Viking Points view",t),this.notifyGenericErrors(t)}}getVpHistory(){return this.vikingPointsService.getHistory().then(t=>t.filter(t=>"completed"===t.state||!!t.dealsLogoUrl))}startListeningToVikingPointsBalanceUpdates(){this.stopListeningToVikingPointsBalanceUpdates=this.vikingPointsService.onVikingPointsModification(()=>{this.vikingPointsBalance=null,this.vikingPointsHistory=null,this.pendingVikingPoints=null,this.loadBackendData()})}beforeDestroy(){this.stopListeningToVikingPointsBalanceUpdates()}get hasPendingVikingPoints(){return!!this.pendingVikingPoints&&this.pendingVikingPoints.items.length>0}constructor(...t){super(...t),this.vikingPointsBalance=null,this.vikingPointsHistory=null,this.pendingVikingPoints=null,this.claims=null,this.RouteName=d.A,this.stopListeningToVikingPointsBalanceUpdates=null}}(0,s.Cg)([(0,o.y_)()],I.prototype,"config",void 0),(0,s.Cg)([(0,o.y_)()],I.prototype,"vikingPointsService",void 0);var x=I=(0,s.Cg)([(0,o.uA)({components:{CallToAction:l.A,ErrorPanel:r.A,ClaimHistory:w,VpTransactions:A}})],I),N=(0,p.A)(x,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"vikingPointsView"},[t("section",{staticClass:"vikingPointsView__header vikingPointsViewHeader styleLevel1"},[t("div",{staticClass:"vikingPointsViewHeader__details"},[t("div",{staticClass:"vikingPointsViewHeaderItem available"},[t("h4",{staticClass:"vikingPointsViewHeaderItem__label"},[this._v(this._s(this.$t("viking_points.available")))]),this.vikingPointsBalance?t("div",{staticClass:"vikingPointsViewHeaderItem__value"},[this._v(" "+this._s(this._f("decimal")(this.vikingPointsBalance.available))+" ")]):t("div",{staticClass:"vikingPointsViewHeaderItem__valueShimmer shimmer"},[this._v("Â ")])]),t("div",{staticClass:"vikingPointsViewHeaderItem pending"},[t("h4",{staticClass:"vikingPointsViewHeaderItem__label"}
47,[this._v(this._s(this.$t("viking_points.pending")))]),this.vikingPointsBalance?t("div",{staticClass:"vikingPointsViewHeaderItem__value"},[this._v(" "+this._s(this._f("decimal")(this.vikingPointsBalance.pending))+" ")]):t("div",{staticClass:"vikingPointsViewHeaderItem__valueShimmer shimmer"},[this._v("Â ")])])]),t("div",{staticClass:"vikingPointsViewHeader__ctas"},[this.vikingPointsBalance&&this.vikingPointsBalance.available>0?t("CallToAction",{staticClass:"share-button",attrs:{appearance:"secondary",to:{query:{spc:"share-viking-points"}}}},[this._v(" "+this._s(this.$t("viking_points.share"))+" ")]):this._e(),this.vikingPointsBalance?t("RouterLink",{staticClass:"vikingPointsViewHeader__cta",attrs:{to:{name:this.RouteName.vikingPointsClaimForm}}},[this._v(" "+this._s(this.$t("viking_points.claim"))+" ")]):t("div",{staticClass:"vikingPointsViewHeaderItem__valueShimmer shimmer"},[this._v("Â ")])],1)]),this.hasPendingVikingPoints?t("VpTransactions",{staticClass:"vikingPointsView__pending",attrs:{title:this.$t("viking_points.pending_vikings_points"),vikingPointTransactions:this.pendingVikingPoints,highlightAmounts:!1,showPlusSign:!1}}):this._e(),t("VpTransactions",{staticClass:"vikingPointsView__history",attrs:{title:this.$t("viking_points.transaction_history"),vikingPointTransactions:this.vikingPointsHistory,highlightAmounts:!0}}),this.vikingPointsHistory&&this.vikingPointsHistory.isEmpty?t("ErrorPanel",{staticClass:"vikingPointsView__noTransactions",attrs:{title:this.$t("viking_points.no_viking_points"),description:this.$t("viking_points.no_viking_points_description"),iconCssVar:"--icon-vikingdeals-bg-url",appearance:"ribbon"}}):this._e(),t("ClaimHistory",{staticClass:"vikingPointsView__claimHistory",attrs:{title:this.$t("claim_history.block_title"),claims:this.claims,highlightAmounts:!1}}),t("section",{staticClass:"vikingPointsView__suggestions"},[t("div",{staticClass:"ContentBoxList styleLevel1"},[t("a",{directives:[{name:"rippleEffect",rawName:"v-rippleEffect"}],staticClass:"ContentBoxList__item ContentBoxList__item--link",attrs:{href:this.$t("viking_points.free_viking_points_url"),target:"_blank"}},[t("div",{staticClass:"vikingPointsViewSuggestion"},[t("img",{staticClass:"vikingPointsViewSuggestion__icon",attrs:{src:i(9331)}}),t("div",{staticClass:"vikingPointsViewSuggestion__content"},[t("h4",{staticClass:"vikingPointsViewSuggestion__title"},[this._v(" "+this._s(this.$t("viking_points.free_viking_points"))+" ")]),t("p",{staticClass:"vikingPointsViewSuggestion__description"},[this._v(" "+this._s(this.$t("viking_points.free_viking_points_description"))+" ")])])])]),t("a",{directives:[{name:"rippleEffect",rawName:"v-rippleEffect"}],staticClass:"ContentBoxList__item ContentBoxList__item--link",attrs:{href:this.$t("viking_points.viking_deals_url"),target:"_blank"}},[t("div",{staticClass:"vikingPointsViewSuggestion"},[t("img",{staticClass:"vikingPointsViewSuggestion__icon",attrs:{src:i(43151)}}),t("div",{staticClass:"vikingPointsViewSuggestion__content"},[t("h3",{staticClass:"vikingPointsViewSuggestion__title"},[this._v(this._s(this.$t("viking_points.viking_deals")))]),t("p",{staticClass:"vikingPointsViewSuggestion__description"},[this._v(" "+this._s(this.$t("viking_points.viking_deals_description"))+" ")])])])])])])],1)},[],!1,null,"f8e6a0fe",null).exports},70022:function(t,e,i){"use strict";i.d(e,{A:function(){return th}});var s=i(32198),a=i(76565),n=i(58294),o=i(90004),r=i(71229),l=i(8921),d=i(59990),c=i(47352),u=i(18865),p=i(50870),h=i(67953),_=i(57399),m=i(44739),g=i(58249),v=i(49842),f=i(99168),y=i(83301);class b extends h.lD{onModelChanged(){this.fullName=this.value?.fullName||"",this.phoneNumber=this.value?.phoneNumber||"",this.remark=this.value?.remark||""}get loading(){return!this.value}get styleLevelClass(){return(0,y.yu)(this.styleLevel)}get prevStyleLevelCssClass(){return(0,y.HQ)(this.styleLevel)}
47updateContactPersonDetails(){let t={fullName:this.fullName,phoneNumber:this.phoneNumber,remark:this.remark};this.$emit("input",t)}constructor(...t){super(...t),this.fullName="",this.phoneNumber="",this.remark=""}}(0,s.Cg)([(0,h.y_)()],b.prototype,"config",void 0),(0,s.Cg)([(0,h.kv)({default:null})],b.prototype,"value",void 0),(0,s.Cg)([(0,h.kv)({type:Number,required:!1,default:1})],b.prototype,"styleLevel",void 0),(0,s.Cg)([(0,h.kv)({type:Boolean,required:!1,default:!1})],b.prototype,"required",void 0),(0,s.Cg)([(0,h.ox)("value",{immediate:!0})],b.prototype,"onModelChanged",null);var C=b=(0,s.Cg)([(0,h.uA)({inject:["$validator","config"],components:{MsisdnInput:v.A,Field:g.A,Heading:f.A}})],b),w=i(41618),S=(0,w.A)(C,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{class:["contactPerson",t.styleLevelClass]},[e("div",{staticClass:"contactPerson__editFields"},[e("Heading",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("broadbandInstallationAndIdentification.contact_person_title"),expression:"$t('broadbandInstallationAndIdentification.contact_person_title')"}],staticClass:"contactPerson__title",attrs:{tagType:"h3",appearance:"h5"}}),e("div",{class:["contactPerson__formFields",t.prevStyleLevelCssClass]},[e("div",{staticClass:"contactPerson__inputGroup"},[e("Field",{staticClass:"contactPerson__fullNameField field--noMargin",attrs:{label:t.$t("fullName").toLowerCase()}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.fullName,expression:"fullName"},{name:"validate",rawName:"v-validate",value:{required:t.required,max:50,noEmoji:!0},expression:"{ required: required, max: 50, noEmoji: true }"}],attrs:{required:t.required,autocomplete:"name",type:"text",name:"fullName"},domProps:{value:t.fullName},on:{input:[function(e){e.target.composing||(t.fullName=e.target.value)}
47,t.updateContactPersonDetails],blur:function(e){return t.$emit("blurField")}}})]),e("Field",{staticClass:"contactPerson__phoneNumberField field--noMargin",attrs:{label:t.$t("contactPerson.field_phone_number")}},[e("MsisdnInput",{directives:[{name:"validate",rawName:"v-validate",value:{required:t.required},expression:"{ required: required }"}],attrs:{required:t.required,name:"phoneNumber"},on:{input:t.updateContactPersonDetails,blur:function(e){return t.$emit("blurField")}},model:{value:t.phoneNumber,callback:function(e){t.phoneNumber=e},expression:"phoneNumber"}})],1),e("Field",{staticClass:"contactPerson__remark field--noMargin",attrs:{hint:t.$t("contactPerson.field_remark_for_installer_footnote"),label:t.$t("contactPerson.field_remark_for_installer")}},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.remark,expression:"remark"},{name:"validate",rawName:"v-validate",value:{max:250},expression:"{ max: 250 }"}],staticClass:"contactPerson__remarkTextArea",attrs:{placeholder:t.$t("contactPerson.field_remark_for_installer_placeholder"),name:"remark"},domProps:{value:t.remark},on:{input:[function(e){e.target.composing||(t.remark=e.target.value)}
47,t.updateContactPersonDetails]}})])],1)])],1)])},[],!1,null,"86e505da",null).exports,M=i(95990),A=i(20174),k=i(66090),I=i(24176);class x extends h.lD{get styleLevelClass(){return(0,y.yu)(this.styleLevel)}ctaClicked(){this.$emit("ctaClicked")}}(0,s.Cg)([(0,h.kv)({required:!0})],x.prototype,"title",void 0),(0,s.Cg)([(0,h.kv)({required:!1})],x.prototype,"ctaText",void 0),(0,s.Cg)([(0,h.kv)({required:!1,default:!1})],x.prototype,"hideCta",void 0),(0,s.Cg)([(0,h.kv)({required:!1})],x.prototype,"once",void 0),(0,s.Cg)([(0,h.kv)({type:Number,required:!1,default:1})],x.prototype,"styleLevel",void 0);var N=x=(0,s.Cg)([(0,h.uA)({inject:["$validator"],components:{Heading:f.A,CallToAction:I.A}})],x),T=(0,w.A)(N,function(){var t=this._self._c;return this._self._setupProxy,t("div",{class:["preSelectionBox",this.styleLevelClass,{"preSelectionBox--noCta":this.hideCta}]},[t("Heading",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.title,expression:"title"}],staticClass:"preSelectionBox__title",attrs:{tagType:"h3",appearance:"h5"}}),t("div",{staticClass:"preSelectionBox__bottom"},[t("div",{staticClass:"preSelectionBox__description"},[this._t("default")],2),this.hideCta?this._e():t("CallToAction",{staticClass:"preSelectionBox__cta change-preselection",attrs:{appearance:"tertiary",icon:i(48986),once:this.once},on:{click:this.ctaClicked}},[this._v(" "+this._s(this.ctaText)+" ")])],1)],1)},[],!1,null,"3383d30a",null).exports,D=i(70180),$=i(6682),P=i(79847),L=i(42580);class E extends h.lD{get isInvalid(){return!!this.errors.items.find(t=>t.field===this.name)}get title(){return this.$t("timeSlotPicker.chosen_time_slot").toString()}get styleLevelClass(){return(0,y.yu)(this.styleLevel)}formatTimeSlot(t){return(0,L.BE)(t,this.$t.bind(this),this.locale,"time_only")}get startingDate(){return this.clock.today().withDayOfMonth(1)}get timeSlotFieldLabel(){if(!this.selectedDate)return"";let t=this.availableTimeSlotsOnDate(this.selectedDate),e=(0,D.j1)(this.selectedDate,this.locale);return t.length>1?this.$t("timeSlotPicker.choose_time_on_{date}",{date:e}).toString():this.$t("timeSlotPicker.only_available_time_on_{date}",{date:e}).toString()}onSelectedDateChanged(){let t=this.availableTimeSlotsOnDate(this.selectedDate);this.selectedTimeSlot=t[0],this.$emit("input",t[0])}onMonthSelected(t){this.availableTimeSlots.loadMonth(t),this.$emit("monthSelected",t)}onTimeSlotClicked(t){this.$emit("input",t)}get availableDates(){return this.availableTimeSlots.availableDates}availableTimeSlotsOnDate(t){return this.availableTimeSlots.slotsOnDate(t)}setSelectedDate(){this.selectedDate=this.value?.from.toLocalDate()||null,this.selectedTimeSlot=this.value||null}constructor(...t){super(...t),this.selectedDate=null,this.selectedTimeSlot=null,this.formatTime=D.fU}}(0,s.Cg)([(0,h.kv)({type:String,required:!1,default:function(){return`time_slot_picker__${O++}`}})],E.prototype,"name",void 0),(0,s.Cg)([(0,h.kv)({default:null})],E.prototype,"value",void 0),(0,s.Cg)([(0,h.kv)({default:null})],E.prototype,"availableTimeSlots",void 0),(0,s.Cg)([(0,h.kv)({type:Number,required:!1,default:1})],E.prototype,"styleLevel",void 0),(0,s.Cg)([(0,h.y_)()],E.prototype,"clock",void 0),(0,s.Cg)([(0,h.ox)("value",{immediate:!0})],E.prototype,"setSelectedDate",null);let O=0;var z=E=(0,s.Cg)([(0,h.uA)({inject:["$validator","clock"],components:{Heading:f.A,DatePicker:$.A,RadioGroup:P.A,Field:g.A}})],E),j=(0,w.A)(z,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{class:["timeSlotPicker",t.styleLevelClass,{"is-invalid":t.isInvalid}]},[e("div",{staticClass:"time-slot-pick-another timeSlotPicker__fields"},[e("Heading",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("timeSlotPicker.choose_date"),expression:"$t('timeSlotPicker.choose_date')"}],staticClass:"timeSlotPicker__title",attrs:{tagType:"h3",appearance:"h5"}}),e("DatePicker",{staticClass:"timeSlotPicker__datePicker",attrs:{styleLevel:2,enabledDates:t.availableDates,dayLoading:e=>t.availableTimeSlots.stillLoading(e),maxDate:t.availableTimeSlots.finalDate,minDate:t.startingDate},on:{input:t.onSelectedDateChanged,initialMonthSelected:t.onMonthSelected,monthSelected:t.onMonthSelected},model:{value:t.selectedDate,callback:function(e){t.selectedDate=e},expression:"selectedDate"}}),t.selectedDate&&t.availableTimeSlotsOnDate(t.selectedDate).length?e("Field",{staticClass:"time-slot-field",attrs:{label:t.timeSlotFieldLabel}},[e("RadioGroup",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],attrs:{required:"",appearance:"twoColumns",options:t.availableTimeSlotsOnDate(t.selectedDate),optionKey:"id",styleLevel:1}
47,on:{click:function(e){return t.onTimeSlotClicked(e)}},scopedSlots:t._u([{key:"default",fn:function({option:i}){return[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.formatTimeSlot(i),expression:"formatTimeSlot(option)"}]})]}}],null,!1,0x2f2c196e),model:{value:t.selectedTimeSlot,callback:function(e){t.selectedTimeSlot=e},expression:"selectedTimeSlot"}})],1):t._e()],1)])},[],!1,null,"b790763c",null).exports,B=i(78906),F=i(3231);let q=(0,n.tZ)("BroadbandInstallationAppointment.vue");class R extends h.lD{get broadbandInstallationFaqItemId(){return this.$t("broadbandInstallationAppointment.faq_id")}get goodToKnowText(){let t=`<ul class="diamondList ExternalContent">${this.$t("broadbandInstallationAppointment.good_to_know_general")}`;return(0,r.V5)(this.order)&&!this.order.allowedInstallationMethods?.includes("self_install")&&(t+=this.$t("broadbandInstallationAppointment.good_to_know_not_diy_elegible__html")),((0,r.V5)(this.order)||(0,r.W)(this.order))&&this.order?.multipleAppointmentsNeeded&&(this.order.installation?.fiberAccessOwner?t+=this.$t("broadbandInstallationAppointment.good_to_know_multi_appointment_{accessOwner}",{accessOwner:this.order.installation.fiberAccessOwner}
47):t+=this.$t("broadbandInstallationAppointment.good_to_know_multi_appointment")),t+="</ul>"}async setOrderInfo(){this.contactPerson=this.contactPerson||this.order?.installation?.contactPerson||this.contactPersonDefaults,this.order?.installation?.timeSlot&&(this.timeSlot=this.order.installation.timeSlot),this.contactPerson?.fullName&&this.contactPerson?.phoneNumber||this.markContactForUpdate(),this.updateAppointmentDetails(),await this.broadbandService.refreshBroadbandInstallationTimeslots(this.order),this.loadSlots(this.order),await this.updateTracking("appointment_calendar_loaded")}beforeDestroy(){this.availableTimeSlots&&this.availableTimeSlots.destroy()}onModelChanged(){this.timeSlot=this.value?.timeSlot||null,this.contactPerson=this.value?.contactPerson||this.contactPersonDefaults}get contactPersonDefaults(){let t=(0,B._w)(this.session.profile);return{fullName:`${t?.firstName} ${t?.lastName}`,phoneNumber:t?.phone??""}}async loadSlots(t){this.availableTimeSlots&&this.availableTimeSlots.destroy(),this.availableTimeSlots=await this.broadbandService.getInstallationTimeSlotsForOrder(t),this.$emit("updateTimeSlotHolder",this.availableTimeSlots);let e=this.availableTimeSlots.firstSlot().then(t=>{this.noSlotsAvailable=!t,this.$emit("noTimeSlotsAvailable",!t)}).catch(t=>{let e=l.Ay.of(t);if(this.$emit("noTimeSlotsAvailable",!0),e.code===l.O4.APPOINTMENT_SCHEDULING_NOT_POSSIBLE_TRY_LATER){this.installationError=e.code;return}if(e.code===l.O4.APPOINTMENT_SCHEDULING_NOT_POSSIBLE_MANUAL_HANDLING){this.installationError="manual_handling",this.updateTracking("manual_handling_required",this.order);return}l.Ay.of(t).code!==l.O4.ORDER_NOT_FOUND&&q.error("Failed to check for first slot (to determine no slots)",t)}).finally(()=>this.$emit("updateTimeSlotHolder",this.availableTimeSlots));(0,m.dk)(e,12e4,t=>{this.slotsLoadSlowly=t})}updateAppointmentDetails(){let t={timeSlot:this.timeSlot,contactPerson:this.contactPerson};this.$emit("input",t)}get noDatesAvailableMessage(){return"inRegistrationWizard"===this.appearance?this.$t("timeSlotPicker.no_dates_available__onboarding"):this.$t("timeSlotPicker.no_dates_available__my_viking")}get showTimeSlotPreselection(){return!!this.order?.installation?.timeSlot&&!this.updateTimeslot}get cannotFetchTimeSlotsTitle(){return this.$t("registration_bb.cannot_fetch_timeslots_title__my_viking")}get cannotFetchTimeSlotsDescription(){return this.$t("registration_bb.cannot_fetch_timeslots_description__my_viking")}get formattedTimeSlot(){return this.timeSlot?(0,L.BE)(this.timeSlot,this.$t.bind(this),this.locale):""}get showContactPersonPreselection(){return!this.contactPerson||!!this.order?.installation?.contactPerson&&!this.updateContact}get formattedContactPerson(){return this.contactPerson?`${this.contactPerson.fullName}<br />${(0,_.i)(this.contactPerson.phoneNumber)}`:""}get installationErrorMessage(){if(!this.installationError)return null;let t={name:F.A.fixedLines,params:(0,c.Bb)({bbSubscriptionId:this.order?.subscriptionId,lang:this.locale})};return this.installationError===l.O4.APPOINTMENT_SCHEDULING_NOT_POSSIBLE_TRY_LATER?{title:this.$t("broadbandInstallationAndIdentification.appointment_booking_temporarily_not_possible_title"),description:this.$t("broadbandInstallationAndIdentification.appointment_booking_temporarily_not_possible_description"),cta:{label:null,route:null}}:{title:this.$t("broadbandInstallationAndIdentification.manual_tweaks_required_for_order_title"),description:this.$t("broadbandInstallationAndIdentification.manual_tweaks_required_for_order_description"),cta:{label:this.$t("broadbandInstallationAndIdentification.manual_tweaks_required_for_order_cta"),route:t}}}onMonthSelected(){this.updateTracking("select_month",this.order)}async editTimeslot(){if(this.order)try{let t=await this.broadbandService.refreshBroadbandInstallationTimeslots(this.order);this.$emit("updateOrder",t),await this.loadSlots(t),this.updateTimeslot=!0}catch(t){if(l.Ay.of(t).code===l.O4.ORDER_NOT_FOUND)return void this.$router.push({name:F.A.notFound});q.error("Failed to refresh timeslots",t),this.notifyGenericErrors(t)}}async updateTimeSlotsLoading(t,e){t.length&&t.length!==e.length&&await this.updateTracking("appointment_timeslots_loaded",this.order)}markContactForUpdate(){this.updateContact=!0}async updateTracking(t,e){(e||=this.order)&&await this.trackingService.updateAppointmentFlow({event:t,order:{...e,installation:{...e.installation,method:"te
47chnician",address:(0,B._w)(e?.installation?.address)}},timeslots:this.availableTimeSlots??d.A.forSlots([]),mobileProducts:this.mobiles})}get chosenTimeslotLabel(){return this.order.installation?.appointmentNeedsUserConfirmation?this.$t("timeSlotPicker.suggested_time_slot"):this.order.multipleAppointmentsNeeded?this.$t("timeSlotPicker.chosen_time_slot_first_appointment"):this.$t("timeSlotPicker.chosen_time_slot")}constructor(...t){super(...t),this.timeSlot=null,this.contactPerson=null,this.noSlotsAvailable=!1,this.slotsLoadSlowly=!1,this.availableTimeSlots=d.A.forSlots([]),this.updateTimeslot=!1,this.updateContact=!1,this.installationError=null}}(0,s.Cg)([(0,h.y_)()],R.prototype,"session",void 0),(0,s.Cg)([(0,h.y_)()],R.prototype,"broadbandService",void 0),(0,s.Cg)([(0,h.y_)()],R.prototype,"trackingService",void 0),(0,s.Cg)([(0,h.y_)()],R.prototype,"$validator",void 0),(0,s.Cg)([(0,h.y_)()],R.prototype,"config",void 0),(0,s.Cg)([(0,h.kv)({default:"inMyViking"})],R.prototype,"appearance",void 0),(0,s.Cg)([(0,h.kv)({required:!0})],R.prototype,"order",void 0),(0,s.Cg)([(0,h.kv)({default:[]})],R.prototype,"mobiles",void 0),(0,s.Cg)([(0,h.kv)({default:null})],R.prototype,"value",void 0),(0,s.Cg)([(0,h.kv)({default:()=>()=>""})],R.prototype,"getOrderTitle",void 0),(0,s.Cg)([(0,h.ox)("order.id",{immediate:!0})],R.prototype,"setOrderInfo",null),(0,s.Cg)([(0,h.ox)("value")],R.prototype,"onModelChanged",null),(0,s.Cg)([(0,h.ox)("availableTimeSlots.availableDates")],R.prototype,"updateTimeSlotsLoading",null);var U=R=(0,s.Cg)([(0,h.uA)({components:{ErrorPanel:M.A,PreSelectionBox:T,WizardStep:k.A,TimeSlotPicker:j,ContactPerson:S,Loading:A.A}})],R),V=(0,w.A)(U,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"broadbandInstallationAppointment"},[t.installationErrorMessage?e("ErrorPanel",{staticClass:"installation-appointment-error",attrs:{title:t.installationErrorMessage.title,description:t.installationErrorMessage.description,ctaText:t.installationErrorMessage.cta.label,appearance:"ribbon",ctaRoute:t.installationErrorMessage.cta.route,ctaAppearance:"primary",ctaHref:t.installationErrorMessage.cta.href}}):t.availableTimeSlots&&t.availableTimeSlots.loadError?e("ErrorPanel",{staticClass:"cannot-fetch-timeslots",attrs:{appearance:"ribbon",title:t.cannotFetchTimeSlotsTitle,de
47scription:t.cannotFetchTimeSlotsDescription}}):[e("WizardStep",{attrs:{title:t.$t("broadbandInstallationAppointment.good_to_know"),hideNumber:!0}},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.goodToKnowText,expression:"goodToKnowText"}],staticClass:"wizardStep__paddedContent ExternalContent"}),e("div",{staticClass:"wizardStep__paddedContent"},[e("RouterLink",{attrs:{to:{...t.$route,query:{...t.$route.query,spc:"faq-item",id:t.broadbandInstallationFaqItemId}}}},[t._v(" "+t._s(t.$t("broadbandInstallationAndIdentification.faq_sidepanel_more_on_installation"))+" ")])],1)]),t.slotsLoadSlowly?e("WizardStep",{attrs:{hideNumber:!0}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("Loading",{staticClass:"timeslots-loading",attrs:{message:t.$t("broadbandInstallationAndIdentification.looking_for_timeslots__this_is_taking_very_long")}})],1)]):e("WizardStep",{staticClass:"broadbandInstallationAppointment-mainBlock",attrs:{title:t.getOrderTitle(t.order),hideNumber:!0}},[e("div",{staticClass:"wizardStep__paddedContent"},[t.showTimeSlotPreselection?e("PreSelectionBox",{staticClass:"preSelection section-timeslot preselection-time-slot",attrs:{title:t.chosenTimeslotLabel,styleLevel:2,ctaText:t.$t("timeSlotPicker.choose_different_time_slot"),once:t.editTimeslot}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.formattedTimeSlot,expression:"formattedTimeSlot"}]})]):t.noSlotsAvailable?e("PreSelectionBox",{staticClass:"preSelection section-timeslot no-slots-available",attrs:{title:t.chosenTimeslotLabel,styleLevel:2,hideCta:!0}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.noDatesAvailableMessage,expression:"noDatesAvailableMessage"}]})]):e("TimeSlotPicker",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],staticClass:"section-timeslot",attrs:{availableTimeSlots:t.availableTimeSlots,styleLevel:2,required:""},on:{input:t.updateAppointmentDetails,monthSelected:t.onMonthSelected},model:{value:t.timeSlot,callback:function(e){t.timeSlot=e},expression:"timeSlot"}}),t.showContactPersonPreselection?e("PreSelectionBox",{class:["broadbandInstallationAndIdentification__contactPerson","section-contactperson","preSelection","preselection-cp"],attrs:{title:t.$t("broadbandInstallationAndIdentification.contact_person_title"),styleLevel:2,ctaText:t.$t("contactPerson.someone_else_will_be_there"),hideCta:!t.contactPerson},on:{ctaClicked:t.markContactForUpdate}},[e("div",t.contactPerson?{directives:[{name:"pii-mask",rawName:"v-pii-mask"},{name:"html-safe",rawName:"v-html-safe",value:t.formattedContactPerson,expression:"formattedContactPerson"}],staticClass:"contact-person-shown-names"}:[e("div",{staticClass:"preSelection__shimmer"},[t._v("Â ")]),e("div",{staticClass:"preSelection__shimmer"},[t._v("Â ")])])]):t.noSlotsAvailable?t._e():e("ContactPerson",{staticClass:"broadbandInstallationAndIdentification__contactPerson section-contactperson",attrs:{required:"",styleLevel:2},on:{input:t.updateAppointmentDetails},model:{value:t.contactPerson,callback:function(e){t.contactPerson=e},expression:"contactPerson"}})],1)])]],2)},[],!1,null,null,null).exports,W=i(13352);class Q extends h.lD{get orderedOptions(){return(0,c.di)(this.options,(0,c.y8)((0,p.n)(["self_install","technician","technician_when_self_install_possible"])))}get options(){return this.order.allowedInstallationMethods??[]}get product(){return(0,r.V5)(this.order)?this.order.product:this.order.toProduct}getInstallationFee(t){return this.order.installationFees?.[t]}getOriginalInstallationFee(t){if(this.product&&this.product.definitions.originalInstallationFees)return this.product.definitions.originalInstallationFees[t]}get styleLevelClass(){return(0,y.yu)(this.styleLevel)}}(0,s.Cg)([(0,h.kv)()],Q.prototype,"value",void 0),(0,s.Cg)([(0,h.kv)()],Q.prototype,"order",void 0),(0,s.Cg)([(0,h.kv)({type:Number,required:!1,default:1})],Q.prototype,"styleLevel",void 0);var Y=Q=(0,s.Cg)([(0,h.uA)({components:{MonthlyPrice:W.A,RadioGroup:P.A}})],Q),G=(0,w.A)(Y,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"BroadbandInstallationMethodSelector broadband-installation-method-selector",class:[t.styleLevelClass]},[[e("RadioGroup",{attrs:{value:t.value,options:t.orderedOptions},on:{input:function(e){return t.$emit("input",e)}},scopedSlots:t._u([{key:"default",fn:function({option:i}){return[e("div",{staticClass:"BbInstallMethodSelectorItem"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t(`broadband_installation.installation_method_title__${i}`),expression:"$t(`broadband_installation.installation_method_title__${option}`)"}],staticClass:"BbInstallMethodSelectorItem__title"}),e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t(`broadband_installation.installation_method_description__${i}`),expression:"$t(`broadband_installation.installation_method_description__${option}`)"}
47],staticClass:"BbInstallMethodSelectorItem__description ExternalContent"}),t.order?e("div",{class:`${i}-price BbInstallMethodSelectorItem__price`},[e("MonthlyPrice",{attrs:{price:t.getInstallationFee(i),oldPrice:t.getOriginalInstallationFee(i),hidePerMonthLabel:!0,showZeroAsFree:!0}})],1):t._e()])]}}])})]],2)},[],!1,null,"74bd5206",null).exports,H=i(42123),Z=i(10231),J=i(47619),K=i(72800),X=i(21395);class tt extends h.lD{}(0,s.Cg)([(0,h.kv)({type:Boolean,required:!1,default:!1})],tt.prototype,"hideNumber",void 0),(0,s.Cg)([(0,h.kv)({type:Boolean,required:!1,default:!1})],tt.prototype,"isMoving",void 0);var te=tt=(0,s.Cg)([(0,h.uA)({components:{WizardStep:k.A}})],tt),ti=(0,w.A)(te,function(){var t=this._self._c;return this._self._setupProxy,t("WizardStep",{staticClass:"HowToActivateSelfInstall",attrs:{hideNumber:this.hideNumber,title:this.$t("broadband_installation.how_activate_self_install_title"),description:this.isMoving?this.$t("broadband_installation.how_activate_self_install_when_moving_description__html"):this.$t("broadband_installation.how_activate_self_install_description")}},[t("div",{staticClass:"wizardStep__paddedContent"},[t("ul",{staticClass:"HowToActivateSelfInstall__steps"},[t("li",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("how_activate_diy.step_1"),expression:"$t('how_activate_diy.step_1')"}],staticClass:"HowToActivateSelfInstallStep",staticStyle:{"background-image":"var(--icon-box-bg-url)"}}),t("li",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("how_activate_diy.step_2"),expression:"$t('how_activate_diy.step_2')"}],staticClass:"HowToActivateSelfInstallStep",staticStyle:{"background-image":"var(--icon-treasuremap-bg-url)"}}),t("li",{directives:[{name:"html-safe",rawName:"v-html-safe",value:this.$t("how_activate_diy.step_3"),expression:"$t('how_activate_diy.step_3')"}],staticClass:"HowToActivateSelfInstallStep",staticStyle:{"background-image":"var(--icon-flag-bg-url)"}})])])])},[],!1,null,"5ca4b212",null).exports,ts=i(62765),ta=i(711);let tn="booster",to=(0,n.tZ)("OrderWifiBoosters");class tr extends h.lD{async created(){if(this.session.broadbandSubscription?.modem?.type)try{let t=await this.broadbandService.getBoostersByModemType(this.session.broadbandSubscription.modem.type);if(0===t.length)return;this.booster=t[0]}catch(t){to.error("Failed to load boosters",t)}}get quantity(){return this.boosterOrderInformation?this.boosterOrderInformation.quantity:0}set quantity(t){this.booster?.id&&this.$emit("updateBoosterOrderInformation",{productId:this.booster.id,quantity:t})}updateShoppingBasket(){if(this.booster&&this.booster){if(0===this.quantity)return void this.sideBarHolder.deleteShoppingBasketEntry(this.orderId,tn);if(this.sideBarHolder.shoppingBasketEntryExists(this.orderId,tn))return void this.sideBarHolder.updateShoppingBasketEntry(this.orderId,tn,{monthly:this.booster.price*this.quantity});this.sideBarHolder.createShoppingBasketEntry(this.orderId,{monthly:this.booster.price*this.quantity,description:this.$t("shopping_basket_broadband.entry_boosters").toString(),category:this.$t("shopping_basket_broadband.category_hardware").toString(),entryType:tn})}}get pricePerMonth(){return this.booster?`${this.$t("{amount}_per_month",{amount:(0,ts.up)(this.booster.price*this.quantity,"two_if_significant")})}`:""}constructor(...t){super(...t),this.booster=null}}(0,s.Cg)([(0,h.y_)()],tr.prototype,"session",void 0),(0,s.Cg)([(0,h.y_)()],tr.prototype,"broadbandService",void 0),(0,s.Cg)([(0,h.y_)()],tr.prototype,"sideBarHolder",void 0),(0,s.Cg)([(0,h.kv)({required:!0})],tr.prototype,"boosterOrderInformation",void 0),(0,s.Cg)([(0,h.kv)({required:!0})],tr.prototype,"orderId",void 0),(0,s.Cg)([(0,h.ox)("quantity")],tr.prototype,"updateShoppingBasket",null);var tl=tr=(0,s.Cg)([(0,h.uA)({components:{WizardStep:k.A,IncreaseDecreaseField:ta.A}})],tr),td=(0,w.A)(tl,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.booster?e("WizardStep",{staticClass:"OrderWifiBooster",attrs:{hideNumber:!0,title:t.$t("order_wifi_booster_onboarding.amount_of_boosters_title"),description:t.$t("order_wifi_booster_onboarding.amount_of_boosters_description__html")}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("div",{staticClass:"OrderWifiBooster__amountSelector"},[e("IncreaseDecreaseField",{attrs:{title:t.$t("order_wifi_booster_onboarding.amount_of_boosters_label"),name:"IncreaseDecreaseField",minValue:0,maxValue:5,maxAmountHint:t.$t("order_wifi_booster_onboarding.max_value_hint_label_{Count}",{Count:5}),required:""},model:{value:t.quantity,callback:function(e){t.quantity=e},expression:"quantity"}}),e("div",{staticClass:"OrderWifiBooster__amountSelector_monthly"}
47,[e("span",[t._v(t._s(t.pricePerMonth))])])],1)])]):t._e()},[],!1,null,"4118fd27",null).exports;let tc=(0,n.tZ)("BroadbandInstallationAndIdentification");class tu extends h.lD{get showBroadbandAppointment(){return this.order&&(!!this.availableTimeSlots&&!this.order.allowedInstallationMethods||"technician"===this.installationMethod||"technician_when_self_install_possible"===this.installationMethod)}get showWizardFooter(){return this.order&&this.orderIsReadyForInstallation&&(!this.isUserIdentificationInProgress||this.loading)&&"care"!==this.idMethod&&(this.installationMethod||!(0,r.V5)(this.order)||!this.order.allowedInstallationMethods)}get showUserIdentification(){return this.order&&this.isRequestBroadbandOrder(this.order)&&(this.installationMethod||!this.order.allowedInstallationMethods)}adaptPageStateForPaymentProcessor(){let t=(0,u.A4)(this.pageState);return t?.contactPerson&&(t.contactPerson={hasContactDetails:!0}),t.boosterOrderInformation&&0===t.boosterOrderInformation.quantity&&(t.boosterOrderInformation=void 0),t}restorePageStateFromPaymentProcessor(t){if(t?.contactPerson?.hasContactDetails){let e=`broadband_onboarding_contact_person_${this.orderId}`,i=(0,K.C)().getItem(e);(0,K.C)().removeItem(e);let s=i?JSON.parse(i):null;s?t.contactPerson=s:(tc.error("Failed to restore stashed contact person details from localStorage after returning from the payment/identification provider"),this.notify.error("errors.failed_to_retrieve_remark_during_onboarding"),this.contactDetailsRestoreFailed=!0,t.contactPerson=void 0)}this.pageState=t}async loadOrder(){if(this.order=null,this.contactDetailsRestoreFailed=!1,this.orderId)try{let t=await this.broadbandService.getBroadbandRequest(this.orderId);if(this.updateTracking("order_loaded",t),!t)return void this.$router.push({name:F.A.notFound});if(this.$emit("orderChange",t),"wait_for_downtime_end"===t.state||!await this.broadbandService.appointmentBookingAvailable())return void this.$emit("done",{postponeAppointmentCreation:!0,installationMethod:this.installationMethod});if(await this.updateErrors(t),this.pageError){this.order=t;return}if(await this.updateTracking("page_loaded",t),t=await this.broadbandService.waitUntilReadyForAppointment(t,["wait_for_identification","waiting_for_internal_processing"],12e5,()=>this.destroyed),await this.updateErrors(t),this.pageError)return;this.switchToAppropriateSessionSubscription(t),this.order=t,(this.order?.installation?.timeSlot||!this.order?.allowedInstallationMethods?.length)&&(this.installationMethod="technician")}catch(e){let t=l.Ay.of(e);t.code===l.O4.SUBSCRIPTION_CANNOT_BE_FOUND?(this.notify.error("broadband_subscription_cannot_be_found"),this.$router.push({name:F.A.error})):t.code===l.O4.ORDER_NOT_IN_CORRECT_STATE_FOR_APPOINTMENT?(this.notify.error("order_not_ready_to_book_appointment"),tc.warning("Given order is not ready to take an appointment"),this.$router.push({name:F.A.error})):(tc.error(`Failed to fetch fixed internet installation order with id ${this.orderId}`,e),this.notifyGenericErrors(e))}}async updateErrors(t){this.pageError=null,t&&("self_install"!==this.installationMethod&&"manual_handling"===t.installation.internalProcessingReason?(this.pageError=t.installation.internalProcessingReason,await this.updateTracking("manual_handling_required",t)):t.installation.internalProcessingReason?this.pageError=t.installation.internalProcessingReason:t.installation.discardReason?this.pageError=t.installation.discardReason:"cancelled"===t.state&&(this.pageError="order_cancelled"),this.autoCancel(t))}async autoCancel(t){try{if(!t)return;"service_already_active"===t.installation.discardReason&&(tc.info("Service is already active. cancelling order"),await this.orderService.cancelOrder(t.id))}catch(t){if(l.Ay.of(t).code===l.O4.ORDER_NOT_FOUND)return;tc.error("Failed to auto-cancel order after service already active")}}beforeDestroy(){this.destroyed=!0}onIdMethodChange(){if(this.idMethod){let t=this.order;this.trackingService.updateIdentification({event:"fixed_request-identification-select",component:"BroadbandInstallationAndIdentification",result:this.idMethod,orderId:this.orderId,broadbandProduct:t?.product,installationMethod:this.installationMethod})}this.$emit("idMethodChange",this.idMethod)}updateTimeSlotsAvailable(t){this.noTimeSlotsAvailable=t}updateTimeSlotHolder(t){this.availableTimeSlots=t}get showLoadingSpinner(){return!this.orderIsReadyForInstallation||this.isUserIdentificationInProgress}get loadingMessage(){return this.isUserIdentificationInProgress?this.$t("broadbandInstallationAndIdentification.busy_identifying"):[this.$t("broadbandInstallationAndIdentification.looking_for_timeslots__this_may_take_a_while"),this.$t("broadbandInstallationAndIdentification.looking_for_timeslots__this_is_taking_very_long")].join("\n")}get orderIsReadyForInstallation(){return!!this.order&&(0,p.n)(["w
47ait_for_identification","wait_for_appointment_booking","wait_for_appointment_confirmation","wait_for_execution"]).includes(this.order.state)}checkForAutoConfirm(){!this.contactDetailsRestoreFailed&&(this.loading||"1"!==this.$route.query.autoconfirm||this.submitting||this.submit())}switchToAppropriateSessionSubscription(t){let e=(this.session.broadbandSubscriptions||[]).find(e=>e.id===t.subscriptionId);if(!e)throw new l.Ay(l.O4.SUBSCRIPTION_CANNOT_BE_FOUND);this.session.subscriptionId=e.id}onUserIdentificationInProgress(){this.isUserIdentificationInProgress=!0}async onIdentificationError(t){this.isUserIdentificationInProgress=!1;let e=this.order;this.trackingService.updateIdentification({event:"fixed_request-identification-fail",component:"BroadbandInstallationAndIdentification",result:"failure",orderId:this.order?.id,broadbandProduct:e?.product,installationMethod:this.installationMethod,notification:t?.message??void 0}),t&&(this.notifyGenericErrors(t),tc.error("Error while identifying user",t),this.order=await this.orderService.refreshOrder(this.order))}get loading(){return"self_install"===this.installationMethod?!this.order:!this.order||!this.availableTimeSlots||this.availableTimeSlots.loading||this.updatingOrder}get confirmButtonLabel(){return!this.availableTimeSlots?.loading&&this.noTimeSlotsAvailable?this.$t("navigation.back_to_my_viking"):"upfront"===this.idMethod?this.$t("broadbandInstallationAndIdentification.confirm_with_payment_cta"):"id_card"===this.idMethod?this.$t("broadbandInstallationAndIdentification.confirm_with_eid_cta"):"itsme"===this.idMethod?this.$t("broadbandInstallationAndIdentification.confirm_with_itsme_cta"):this.$t("broadbandInstallationAndIdentification.confirm_cta")}get isDirty(){if(!this.order?.installation)return!1;let{timeSlot:t,contactPerson:e}=this.order.installation;return!(0,X.c2)(t,this.appointmentDetails?.timeSlot)||!(0,X.c2)(e,this.appointmentDetails?.contactPerson)}autoSelectInstallationMethod(t){this.installationMethod||t&&(t.includes("self_install")?this.installationMethod="self_install":this.installationMethod=t[0])}updateInstallationMethod(){this.installationMethod&&this.$emit("installationMethodChange",{method:this.installationMethod,order:this.order})}get giveInstallationMethodChoice(){return(this.order?.allowedInstallationMethods?.length??0)>1}async cancel(){this.order&&this.$emit("cancel",this.order,this.isDirty)}async submit(){if(!this.loading&&this.order){if(this.submitting=!0,this.contactDetailsRestoreFailed=!1,this.noTimeSlotsAvailable)return void this.$router.push({name:F.A.myViking});if(this.updateTracking("form_submit",{...this.order,installation:{...(0,B._w)(this.order.installation),method:this.installationMethod??void 0}}),!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20);return}if("self_install"!==this.installationMethod&&!this.appointmentDetails?.timeSlot)return void this.notify.error("timeSlotPicker.no_dates_available");if((0,r.W)(this.order))this.onUserIdentified({order:this.order,paidUpfront:!1});else{if(this.idMethod){let t=["upfront","topup"].includes(this.idMethod)?this.paymentMethod?.toString():this.idMethod;this.trackingService.updateIdentification({event:"fixed_request-identification-confirm",component:"BroadbandInstallationAndIdentification",result:t,orderId:this.orderId,broadbandProduct:this.order.product,installationMethod:this.installationMethod})}let t=`broadband_onboarding_contact_person_${this.orderId}`;this.appointmentDetails?.contactPerson&&(0,K.C)().setItem(t,JSON.stringify(this.appointmentDetails.contactPerson)),await this.userIdentification.identifyUser(),(0,K.C)().removeItem(t)}}}async onUserIdentified({order:t,paidUpfront:e}){if(!this.session.profile||void 0===this.session.subscriptions||void 0===this.session.companies)throw new o.p("Expected user data to be present at this point");this.trackingService.updateIdentification({event:"fixed_request-identification-success",component:"BroadbandInstallationAndIdentification",result:"success",orderId:t.id,broadbandProduct:t?.product,installationMethod:this.installationMethod});try{if(this.notify.remove("time_slot_problem_notification_key"),this.order=t,this.updatingOrder=!0,(0,r.V5)(t)&&"self_install"===this.installationMethod)await this.updateOrderSelfInstall(t),this.boosterOrderInformation&&this.boosterOrderInformation.quantity>0&&await this.orderWifiBooster(t.subscriptionId,this.boosterOrderInformation);else{if(this.contactDetailsRestoreFailed)return void tc.warning("Aborting appointment auto-submit: contact person details could not be restored after returning from the identification/payment provider");await this.updateAppointment(t)}this.$emit("done",{paidUpfront:(0,r.V5)(t)&&e?t.amountDue?"partial":"full":void 0,installationMethod:this.installationMethod})}catch(i){let t=l.Ay.of(i);if(t.code===l.O4.NO_IDENTITY_VERIFICATION)tc.debug("User identification still required before updating request fixed internet order"),this.notify.info("activation.we_could_not_verify_your_identity_please_fill_the_form"),this.domUtils.scrollToFirst(".i
47dentity-verification",20);else{if(t.code===l.O4.TIMESLOT_NO_LONGER_AVAILABLE)return void this.notify.error("broadbandInstallationAndIdentification.activation_problem_time_slot_taken",{},{},"time_slot_problem_notification_key");tc.error(e?"Failed to update RequestBroadbandOrder after upfront payment":"Failed to update RequestBroadbandOrder (no upfront payment)",i),this.notifyGenericErrors(i)}}finally{this.order=t,this.isUserIdentificationInProgress=!1,this.updatingOrder=!1}}async orderWifiBooster(t,e){try{await this.orderService.addBoosterOrder({subscriptionId:t,productId:e.productId,quantity:e.quantity})}catch(t){l.Ay.of(t).code===l.O4.STUCK_BOOSTER_ORDER_PENDING?this.notify.error("order_wifi_booster_form.error__stuck_booster_order_pending"):this.notify.error("order_wifi_boosters_failed"),tc.error("Failed to order wifi booster",t)}}async updateAppointment(t){let e=(0,B.bp)(this.appointmentDetails.timeSlot,"v-validate should ensure time slot is not null"),i=(0,B.bp)(this.appointmentDetails.contactPerson,"v-validate should ensure contact is not null");this.order=await this.broadbandService.waitUntilReadyForAppointment(t,[]),await this.broadbandService.updateBroadbandInstallationAppointment(t,e,i)&&await this.updateTracking("appointment_scheduled")}async updateOrderSelfInstall(t){this.order=await this.broadbandService.updateBroadbandInstallationMethod(t,"self_install"),await this.updateTracking("appointment_scheduled")}get pageState(){return{installationMethod:this.installationMethod??void 0,timeSlot:function(t){if(t)return{id:t.id,from:t.from.toString(),to:t.to.toString()}}(this.appointmentDetails?.timeSlot||null),contactPerson:this.appointmentDetails?.contactPerson||void 0,boosterOrderInformation:this.boosterOrderInformation||void 0}}set pageState(t){if(t&&t.boosterOrderInformation&&(this.boosterOrderInformation=t.boosterOrderInformation),t&&t.installationMethod&&(this.installationMethod=t.installationMethod),this.appointmentDetails){if(t&&t.timeSlot){let e={id:t.timeSlot.id,from:a.LocalDateTime.parse(t.timeSlot.from),to:a.LocalDateTime.parse(t.timeSlot.to)};this.appointmentDetails.timeSlot=e}t&&t.contactPerson&&(this.appointmentDetails.contactPerson=t.contactPerson)}}async updateTracking(t,e){(e||=this.order)&&await this.trackingService.updateAppointmentFlow({event:t,order:{...e,installation:{...e.installation,method:this.installationMethod??void 0,address:(0,B._w)(e?.installation?.address)}},timeslots:this.availableTimeSlots??d.A.forSlots([]),mobileProducts:this.mobiles})}trackInvalidAddress(){"invalid_address"===this.pageError&&this.trackingService.updateBroadbandOnboardingStatus({event:"address_invalid"})}trackPageErrorNavigation(){"invalid_address"===this.pageError&&this.trackingService.updateBroadbandOnboardingStatus({event:"address_invalid_contacting_care"})}get pageErrorMessage(){if(!this.pageError)return null;let t={name:F.A.fixedLines,params:(0,c.Bb)({bbSubscriptionId:this.order?.subscriptionId,lang:this.locale})};return"another_request_pending"===this.pageError?{title:this.$t("broadbandInstallationAndIdentification.another_request_pending__title"),description:this.$t("broadbandInstallationAndIdentification.another_request_pending__description"),cta:{label:this.$t("broadbandInstallationAndIdentification.another_request_pending__cta"),route:t}}:"invalid_address"===this.pageError?{title:this.$t("registration_bb.order_was_cancelled_invalid_address_title"),description:this.$t("registration_bb.order_was_cancelled_invalid_address_description"),cta:{label:this.$t("registration_bb.order_was_cancelled_invalid_address_cta"),href:this.$t("registration_bb.order_was_cancelled_invalid_address_cta_url")}}:"order_cancelled"===this.pageError?{title:this.$t("registration_bb.order_was_cancelled_title"),description:this.$t("registration_bb.order_was_cancelled_description"),cta:{label:this.$t("registration_bb.order_was_cancelled_cta"),route:{name:F.A.registrationBroadbandCheckAddress}}}:"product_no_longer_available"===this.pageError?{title:this.$t("registration_bb.product_no_longer_available_title"),description:this.$t("registration_bb.product_no_longer_available_description"),cta:{label:this.$t("registration_bb.product_no_longer_available_cta"),route:this.chooseNewProductRoute}}:"service_already_active"===this.pageError?{title:this.$t("registration_bb.service_already_active_title"),description:this.$t("registration_bb.service_already_active_description"),cta:{label:this.$t("registration_bb.service_already_active_cta"),href:this.$t("registration_bb.service_already_active_cta_url")}}:{title:this.$t("broadbandInstallationAndIdentification.manual_tweaks_required_for_order_title"),description:this.$t("broadbandInstallationAndIdentification.manual_tweaks_required_for_order_description"),cta:{label:this.$t("broadbandInstallationAndIdentification.manual_tweaks_required_for_order_cta"),route:t}}}get chooseNewProductRoute(){return{name:F.A.registrationBroadband,params:{lang:this.$route.params.lang||"en"},query:(0,c.Bb)({address:this.order?.installation?.address?JSON.stringify(this.order.installation.address):void 0,addressSituation:this.order?.installation?.addressSituation??"current-address",circuit_id:this.order?.installation?.existingCircuitId})}}constructor(...t){super(...t),this.availableTimeSlots=null,this.appointmentDetails=null,this.updatingOrder=!1,this.destroyed=!1,this.noTimeSlotsAvailable=!1,this.submitting=!1,this.boosterOrderInformation=null,this.order=null,this.idMethod=null,this.isUserIdentificationInProgress=!1,this.contactDetailsRestoreFailed=!1,this.enableOrderWifiBooster=this.config.featureFlags.pp1071OrderWifiBoosterDiyOnboarding,this.paymentMethod=null,this.pageError=null,this.isRequestBroadbandOrder=r.V5,this.installationMethod=null}}(0,s.Cg)([(0,h.y_)()],tu.prototype,"session",void 0),(0,s.Cg)([(0,h.y_)()],tu.prototype,"trackingService",void 0),(0,s.Cg)([(0,h.y_)()],tu.prototype,"broadbandService",void 0),(0,s.Cg)([(0,h.y_)()],tu.prototype,"orderService",void 0),(0,s.Cg)([(0,h.y_)()],tu.prototype,"productService",void 0),(0,s.Cg)([(0,h.y_)()],tu.prototype,"domUtils",void 0),(0,s.Cg)([(0,h.y_)()],tu.prototype,"confirm",void 0),(0,s.Cg)([(0,h.y_)()],tu.prototype,"showSlowLoadModal",void 0),(0,s.Cg)([(0,h.y_)()],tu.prototype,"config",void 0),(0,s.Cg)([(0,h.y_)()],tu.prototype,"customerService",void 0),(0,s.Cg)([(0,h.kv)({required:!0})],tu.prototype,"orderId",void 0),(0,s.Cg)([(0,h.kv)({default:"inMyViking"})],tu.prototype,"appearance",void 0),(0,s.Cg)([(0,h.kv)({required:!1})],tu.prototype,"routeNameOnCancel",void 0),(0,s.Cg)([(0,h.kv)({default:"Cancel"})],tu.prototype,"cancelButtonLabel",void 0),(0,s.Cg)([(0,h.kv)({default:()=>()=>""})],tu.prototype,"getOrderTitle",void 0),(0,s.Cg)([(0,h.kv)({default:()=>()=>""})],tu.prototype,"getOrderDescription",void 0),(0,s.Cg)([(0,h.kv)({default:[]})],tu.prototype,"mobiles",void 0),(0,s.Cg)([(0,h.oS)()],tu.prototype,"userIdentification",void 0),(0,s.Cg)([(0,h.ox)("orderId",{immediate:!0})],tu.prototype,"loadOrder",null),(0,s.Cg)([(0,h.ox)("idMethod",{immediate:!0})],tu.prototype,"onIdMethodChange",null),(0,s.Cg)([(0,h.ox)("loading")],tu.prototype,"checkForAutoConfirm",null),(0,s.Cg)([(0,h.ox)("order.allowedInstallationMethods",{immediate:!0})],tu.prototype,"autoSelectInstallationMethod",null),(0,s.Cg)([(0,h.ox)("installationMethod",{immediate:!0})],tu.prototype,"updateInstallationMethod",null),(0,s.Cg)([(0,h.ox)("pageError",{immediate:!0})],tu.prototype,"trackInvalidAddress",null);var tp=tu=(0,s.Cg)([(0,h.uA)({components:{HowToActivateSelfInstall:ti,OrderWifiBoosters:td,ErrorPanel:M.A,BroadbandInstallationAppointment:V,BroadbandInstallationMethodSelector:G,MvForm:H.A,WizardStep:k.A,WizardFooter:Z.A,UserIdentification:J.A,Loading:A.A}})],tu),th=(0,w.A)(tp,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"broadbandInstallationAndIdentification",class:{"order-loading":!t.order}},[t.pageErrorMessage?e("ErrorPanel",{staticClass:"page-error",attrs:{title:t.pageErrorMessage.title,appearance:"ribbon",description:t.pageErrorMessage.description,ctaText:t.pageErrorMessage.cta.label,ctaRoute:t.pageErrorMessage.cta.route,ctaHref:t.pageErrorMessage.cta.href,ctaAppearance:"primary",ctaIdentifier:"error-panel-primary-cta"},on:{click:t.trackPageErrorNavigation}}):[t.showLoadingSpinner?e("WizardStep",{attrs:{hideNumber:!0}},[e("div",{staticClass:"wizardStep__paddedContent"},[e("Loading",{staticClass:"order-loading",attrs:{message:t.loadingMessage,cycleInterval:1e4}})],1)]):t.giveInstallationMethodChoice?e("WizardStep",{attrs:{title:t.$t("broadbandInstallationAndIdentification.installation_method_title"),description:t.$t("broadbandInstallationAndIdentification.installation_method_description"),hideNumber:!0},scopedSlots:t._u([{key:"default",fn:function(){return[e("div",{staticClass:"wizardStep__paddedContent step-product"},[e("BroadbandInstallationMethodSelector",{attrs:{order:t.order},model:{value:t.installationMethod,callback:function(e){t.installationMethod=e},expression:"installationMethod"}})],1)]},proxy:!0}])}):t._e(),t.showLoadingSpinner||"self_install"!==t.installationMethod?t._e():[e("HowToActivateSelfInstall",{attrs:{hideNumber:!0,isMoving:t.order&&t.order.installation&&t.order.installation.moveDetails}}),t.enableOrderWifiBooster?[e("OrderWifiBoosters",{attrs:{orderId:t.order.id,boosterOrderInformation:t.boosterOrderInformation},on:{updateBoosterOrderInformation:function(e){t.boosterOrderInformation=e}}})]:t._e()],t.showBroadbandAppointment?[e("BroadbandInstallationAppointment",{attrs:{appearance:t.appearance,order:t.order,mobiles:t.mobiles,getOrderTitle:t.getOrderTitle,getOrderDescription:t.getOrderDescription},on:{updateOrder:function(e){t.order=e},noTimeSlotsAvailable:t.updateTimeSlotsAvailable,updateTimeSlotHolder:t.updateTimeSlotHolder},model:{value:t.appointmentDetails,callback:function(e){t.appointmentDetails=e},expression:"appointmentDetails"}})]:t._e(),t.showUserIdentification?[e("UserIdentification",{directives:[{name:"show",rawName:"v-show",value:t.orderIsReadyForInstallation&&!t.isUserIdentificationInProgress,expression:"orderIsReadyForInstallation && !isUserIdentificationInProgress"}],ref:"userIdentification",staticClass:"broadbandInstallationAndIdentification__identification",attrs:{order:t.order,state:t.adaptPageStateForPaymentProcessor(),hideNumber:!0},on:{restoreState:function(e){return t.restorePageStateFromPaymentProcessor(e)},userIdentificationInProgress:t.onUserIdentificationInProgress,userIdentified:function(e){return t.onUserIdentified(e)},identificationError:t.onIdentificationError,idMethodSelected:function(e){t.idMethod=e},paymentMethodSelected:function(e){t.paymentMethod=e}}})]:t._e(),t.showWizardFooter?[e("WizardFooter",{attrs:{ctaText:t.confirmButtonLabel,loading:t.loading,onConfirm:t.submit,secCtaText:t.cancelButtonLabel},on:{reject:function(e){return t.cancel()}}})]:t._e()]],2)},[],!1,null,null,null).exports}
47,32529:function(t,e,i){"use strict";t.exports=i.p+"img/2p-sidepanel-unlimited.png?cb=a8cfc26"},67219:function(t,e,i){"use strict";t.exports=i.p+"img/[email protected]?cb=a8cfc26"},38526:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTA0IiBoZWlnaHQ9IjEwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik04OS42NSAyMy45MzdsLS40NjQtLjQ2NS4wMDgtLjAyYy4yNTgtLjY1NiA2LjU1OC0xNy4wNDItNy42NTEtMTcuMDQyLTkuMTQ4IDAtMTkuNzQzIDcuNTI5LTE5Ljc0MyA3LjUyOXMyOS45OCA0Ljk1OCAyNy42MDQgMzkuNDhoLTQ5LjU0di4wMTdjLS4wMjQuNTItLjQ3MyAxMy4zODggMTIuMDY1IDEzLjM4OCA5LjMyMyAwIDExLjE1LTguNDQ2IDExLjE1LTguNDQ2aDI1Ljk1OVM4Mi4wOSA4NC4yNjkgNTIuODQzIDg0LjI2OWMtNi45NDcgMC05LjUwNi0uNTUtOS41MDYtLjU1cy0xMS44ODIgOS40NjYtMjMuNTgxIDkuNDY2Yy0xMS43IDAtMTIuNzk3LTEyLjc3Mi0xMS4xNTEtMTguNDY1IDEuNjQ1LTUuNjkyIDguMjI2LTMzLjYxNCAzNi4wMTItNTIuNzAxdi0xLjI4NlMyNS43ODggMjguNjMgMTIuMjYgNDguMDk0di0uMDIyYy0uMDE1LS43MzEtLjIxNi0xOS4xMDUgMTYuMDg3LTI5LjU0MyAxNS4yNjMtOS4yNzIgMzAuNTI3LTUuMTQxIDMwLjUyNy01LjE0MVM3MS42NzIgNC4wMjMgODEuOTEgNC4wMjNjMCAwIDE1Ljk1NS0xLjQ5OCA3Ljc0IDE5LjkxNHptLTcwLjM1NiA0NC4zNnMtNi45IDEwLjYwNy0yLjY1NCAxOC4wOTdjNy45MjYgNy40OSAyNS41ODItMy4zMiAyNS41ODItMy4zMi0xNy4wOS0zLjg1NS0yMi45MjgtMTQuNzc4LTIyLjkyOC0xNC43Nzh6bTMzLjA4LTM4LjM3MWMtMTEuNzM2IDAtMTIuMjEyIDEwLjAxMi0xMi4yMjYgMTEuMjc3di4xM2gyMy44NXMuNDc2LTExLjQwNy0xMS42MjMtMTEuNDA3eiIgZmlsbD0iIzAwNkRCNyIvPjxwYXRoIHN0cm9rZT0iI0NEMDQwMCIgc3Ryb2tlLXdpZHRoPSI4IiBzdHJva2UtbGluZWNhcD0icm91bmQiIGQ9Ik00IDk5bDk2LTk0TTUgNGw5NSA5NiIvPjwvZz48L3N2Zz4="},72231:function(t,e,i){"use strict";t.exports=i.p+"img/company-activation-code-help.png?cb=a8cfc26"},46971:function(t,e,i){"use strict";t.exports=i.p+"static/svg/esimcard-last4digits-en.svg"},49510:function(t,e,i){"use strict";t.exports=i.p+"static/svg/esimcard-last4digits-fr.svg"},96776:function(t,e,i){"use strict";t.exports=i.p+"static/svg/esimcard-last4digits-nl.svg"},1906:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cG9seWdvbiBmaWxsPSIjMDAwIiBwb2ludHM9IjIuNzU4NDA1NzUgMTMuMDkxOTI5NCA0Ljg2MzU4NTEyIDEwLjk1MjUxNjIgOC42MTM1MTkzNCAxNC45MTY2NzA0IDE4LjczODA0OTQgNC43ODk4Mzg3OCAyMC45MTE2MjA4IDYuOTQ2Mzg3NzcgOC42MTM1MTkzNCAxOS4xNDM5NzQ2Ii8+PC9nPjwvc3ZnPgo="},43151:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIGZpbGw9Im5vbmUiPjxwYXRoIGQ9Ik03LjQyIDcuNTQxYS42NzQuNjc0IDAgMDAtLjY2NS42M0w1Ljg5IDE4Ljk0NGMtLjA1LjYxLjQxNCAxLjEzNSAxLjAwMyAxLjE0NGwxMC4xMDUuMDAxYy42My4wMSAxLjEwNS0uNTEgMS4wMzctMS4xMjJMMTYuNTQyIDcuNTg1YS4wNDguMDQ4IDAgMDAtLjA0Ny0uMDQ0SDcuNDJ6bTAtLjkxaDkuMDc1YS45NC45NCAwIDAxLjkyNi44NDJsMS40OTIgMTEuMzgyYy4xMyAxLjE3NS0uNzczIDIuMTYyLTEuOTIyIDIuMTQ1SDYuODg1Yy0xLjEwNy0uMDE4LTEuOTctLjk5Ni0xLjg3OC0yLjEzMWwuODY2LTEwLjc3M2MuMDY2LS44MjguNzQtMS40NjYgMS41NDctMS40NjZ6IiBmaWxsPSIjRkVGRUZFIi8+PHBhdGggZD0iTTkuNDE3IDguOWMwIC4yNS0uMTk3LjQ1My0uNDQuNDUzYS40NDYuNDQ2IDAgMDEtLjQ0LS40NTJWNi40MDRDOC41MzcgNC41MjQgMTAuMDIgMyAxMS44NTIgM3MzLjMxNSAxLjUyNCAzLjMxNSAzLjQwNHYyLjQ5N2MwIC4yNS0uMTk3LjQ1Mi0uNDQuNDUyYS40NDYuNDQ2IDAgMDEtLjQ0LS40NTJWNi40MDRjMC0xLjM4LTEuMDktMi41LTIuNDM1LTIuNXMtMi40MzUgMS4xMi0yLjQzNSAyLjV2Mi40OTd6IiBmaWxsPSIjREUxQjEyIi8+PC9nPjwvc3ZnPgo="},22495:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyBmaWxsPSIjRDhEOEQ4IiBmaWxsLXJ1bGU9Im5vbnplcm8iPjxwYXRoIGQ9Ik0xLjUsNS42MjQ5ODY1OSBDMC42NzAzMDE3NDcsNS42MjQ5ODY1OSAwLDYuMjk1Mjg4MzQgMCw3LjEyNDk4NjU5IEMwLDcuOTU0Njc3NjkgMC42NzAzMDE3NDcsOC42MjQ5ODY1OSAxLjUsOC42MjQ5ODY1OSBDMi4zMjk2OTExLDguNjI0OTg2NTkgMyw3Ljk1NDY3NzY5IDMsNy4xMjQ5ODY1OSBDMyw2LjI5NTI4ODM0IDIuMzI5NjkxMSw1LjYyNDk4NjU5IDEuNSw1LjYyNDk4NjU5IFogTTAsMS41IEMwLDIuMzI5NjkxMSAwLjY3MD
47MwMTc0NywzIDEuNSwzIEMyLjMyOTY5MTEsMyAzLDIuMzI5NjkxMSAzLDEuNSBDMywwLjY3MDMwMTc0NyAyLjMyOTY5MTEsMCAxLjUsMCBDMC42NzAzMDE3NDcsMCAwLDAuNjcwMzAxNzQ3IDAsMS41IFogTTAsMTIuNzQ5OTczMiBDMCwxMy41Nzk2NjQzIDAuNjcwMzAxNzQ3LDE0LjI0OTk3MzIgMS41LDE0LjI0OTk3MzIgQzIuMzI5NjkxMSwxNC4yNDk5NzMyIDMsMTMuNTc5NjY0MyAzLDEyLjc0OTk3MzIgQzMsMTEuOTIwMjc0OSAyLjMyOTY5MTEsMTEuMjQ5OTczMiAxLjUsMTEuMjQ5OTczMiBDMC42NzAzMDE3NDcsMTEuMjQ5OTczMiAwLDExLjkyMDI3NDkgMCwxMi43NDk5NzMyIFoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDExLjAwMDAwMCwgNS4wMDAwMDApIi8+PC9nPjwvZz48L3N2Zz4K"},94031:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTguNDAyIDE5LjY5NWMxLjI2IDAgMi4zNDItLjQ1IDMuMjQ0LTEuMzUzLjkwMy0uOTAzIDEuMzU0LTEuOTg0IDEuMzU0LTMuMjQ0IDAtMS4yMDMtLjQxNS0yLjI0Mi0xLjI0Ni0zLjExNi0uODMtLjg3My0xLjgzMy0xLjM1My0zLjAwOC0xLjQzOS0uMzE1LTEuNjA0LTEuMTAzLTIuOTMtMi4zNjMtMy45NzVTMTMuNjYgNSAxMiA1YTYuNTUgNi41NSAwIDAwLTMuNTY2IDEuMDMxIDcuMTg1IDcuMTg1IDAgMDAtMi41MzYgMi43MDdjLTEuMzc1LjE0NC0yLjUzNS43MzgtMy40OCAxLjc4M0MxLjQ3MyAxMS41NjcgMSAxMi43OTEgMSAxNC4xOTVjMCAxLjUxOS41MzcgMi44MTUgMS42MTEgMy44ODkgMS4wNzUgMS4wNzQgMi4zNyAxLjYxMSAzLjg4OSAxLjYxMWgxMS45MDJ6TTEyIDE3Ljg0OEw3LjQwMiAxMy4yNWgyLjc1VjkuNTk4aDMuNjk2djMuNjUyaDIuNzVMMTIgMTcuODQ4eiIgZmlsbD0iIzU1NSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9zdmc+Cg=="},48986:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyBmaWxsPSIjQ0QwNDAwIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjxwYXRoIGQ9Ik0xOS4yMDM0NjMxLDIuODc1OTYxODkgTDE3LjA5OTUwNywwLjc3Mjg4MTQxMSBDMTYuMDY5MTIsLTAuMjU3NTQ0NDgzIDE0LjQwMTIyMTUsLTAuMjU3Njk3MDcxIDEzLjM3MDYwNTcsMC43NzI4NDMyNjQgTDAuOTczMDQxNjc0LDEzLjA4OTM5MjkgTDAuMDEyODQ1MTA4LDE4LjkwOTU1MjEgQy0wLjA5MTYzOTM1NDEsMTkuNTQyOTQ0MyAwLjQ1NjkxMzYwOSwyMC4wOTE2MTIyIDEuMDkwNDU3OTUsMTkuOTg3MTY1OCBMNi45MTA1NzQzNiwxOS4wMjY5MzAzIEwxOS4yMjc5OTE2LDYuNjI5MzU2NDkgQzIwLjI1NjUwOTQsNS42MDA3OTk4IDIwLjI2NjMxMzEsMy45Mzg3NzQ1NiAxOS4yMDM0NjMxLDIuODc1OTYxODkgWiBNNC43MTI2MjQxMSwxMS43OTY4NTkyIEwxMS4zNjMzOTAxLDUuMTg5MjMyMTYgTDE0LjgxMDY5MDcsOC42MzY1MzU1IEw4LjIwMzEwNzA1LDE1LjI4NzMwNjcgTDguMjAzMTA3MDUsMTMuNjcxODU4OSBMNi4zMjgxMDg3NywxMy42NzE4NTg5IEw2LjMyODEwODc3LDExLjc5Njg1OTIgTDQuNzEyNjI0MTEsMTEuNzk2ODU5MiBaIE0zLjIwODI2MTQ4LDE3Ljg5NTc1ODIgTDIuMTA0MjUwOTYsMTYuNzkxNzQ2OSBMMi41Nzg0NTU1NCwxMy45MTcyNTg0IEwzLjI5NzIyMDE0LDEzLjIwMzEwOSBMNC45MjE4NjAwNywxMy4yMDMxMDkgTDQuOTIxODYwMDcsMTUuMDc4MTA4OCBMNi43OTY4NTgzNCwxNS4wNzgxMDg4IEw2Ljc5Njg1ODM0LDE2LjcwMjcxMTggTDYuMDgyNzA5NTIsMTcuNDIxNTE1MSBMMy4yMDgyNjE0OCwxNy44OTU3NTgyIFogTTE4LjAxMjM2MzIsNS40MTM5OTQxIEwxOC4wMTAzNzk1LDUuNDE2MDE1ODkgTDE4LjAwODM1NzcsNS40MTc5OTk1MyBMMTYuMTMyMjE1MSw3LjMwNjQyNzAyIEwxMi42OTM1MzU3LDMuODY3NzQ0OTEgTDE0LjU4MTk2MTcsMS45OTE2MDA3NCBMMTQuNTgzOTA3MiwxLjk4OTYxNzA5IEwxNC41ODU4OTA4LDEuOTg3NjcxNiBDMTQuOTQzMTc1LDEuNjMwNDI1MjUgMTUuNTIyNTEyNiwxLjYyNjAwMDIgMTUuODg0MTQ1NSwxLjk4NzYzMzQ1IEwxNy45ODc4MzQ3LDQuMDkxMzI0MjggQzE4LjM3MzY5MSw0LjQ3NzE0MjcyIDE4LjM3NjA1NjEsNS4wNTAyNjI3NiAxOC4wMTIzNjMyLDUuNDEzOTk0MSBaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyLjAwMDAwMCwgMi4wMDAwMDApIi8+PC9nPjwvZz48L3N2Zz4K"},11917:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyBmaWxsPSIjRDhEOEQ4IiBmaWxsLXJ1bGU9Im5vbnplcm8iPjxwYXRoIGQ9Ik0xNS44OTA1ODcxLDE1LjE4NzQ2MzggQzE1Ljg5MDU4NzEsMTQuODAwNzQ2IDE1LjU3NDE4MTYsMTQuNDg0MzQwNSAxNS4xODc0NjM4LDE0LjQ4NDM0MDUgQzE0LjgwMDc0NiwxNC40ODQzNDA1IDE0LjQ4NDM0MDUsMTQuODAwNzQ2IDE0LjQ4NDM0MDUsMTUuMTg3NDYzOCBDMTQuNDg0MzQwNSwxNS41NzQxODE2IDE0LjgwMDc0NiwxNS44OTA1ODcxIDE1LjE4NzQ2MzgsMTUuODkwNTg3MSBDMTUuNTc0MTgxNiwxNS44OTA1ODcxIDE1Ljg5MDU4NzEsMTUuNTc0MTgxNiAxNS44OTA1ODcxLDE1LjE4NzQ2MzggWiBNMTIuOTM3NDY5MiwxNC40ODQzNDA1IEMxMi41NTA3NTEzLDE0LjQ4NDM0MDUgMTIuMjM0MzQ1OCwxNC44MDA3NDYgMTIuMjM0MzQ1OCwxNS4xODc0NjM4IEMxMi4yMzQzNDU4LDE1LjU3NDE4MTYgMTIuNTUwNzUxMywxNS44OTA1ODcxIDEyLjkzNzQ2OTIsMTUuODkwNTg3MSBDMTMuMzI0MTg3LDE1Ljg5MDU4NzEgMTMuNjQwNTkyNSwxNS41NzQxODE2IDEzLjY0MDU5MjUsMTUuMTg3NDYzOCBDMTMuNjQwNTkyNSwxNC44MDA3NDYgMTMuMzI0MTg3LDE0LjQ4NDM0MDUgMTIuOTM3NDY5MiwxNC40ODQzNDA1IFogTTE3Ljk5OTk1NzEsMTIuNzk2ODQ0NSBDMTcuOTk5OTU3MSwxMS45NDI1NTY1IDE3LjMwNzM3MzcsMTEuMjQ5OTczMiAxNi40NTMwODU4LDExLjI0OTk3MzIgTDEyLjk1ODU0OTEsMTEuMjQ5OTczMiBMMTQuOTQxMzcwNiw5LjI2NzE1MTY3IEMxNS44MjM3NzY3LDguMzgxMjQzNzUgMTUuMTk4MDAzOCw2Ljg2NTk5MjM5IDEzLjk0NjQ1OCw2Ljg2NTk5MjM5IEwxMi4wOTM3MjEyLDYuODY1OTkyMzkgTDEyLjA5MzcyMTIsMS40MDYyNDY2NSBDMTIuMDkzNzIxMiwwLjYyOTMwOTEwOCAxMS40NjQ0MTIxLDAgMTAuNjg3NDc0NSwwIEw3LjMxMjQ4MjU3LDAgQzYuNTM1NTQ1MDMsMCA1LjkwNjIzNTkyLDAuNjI5MzA5MTA4IDUuOTA2MjM1OTIsMS40MDYyNDY2NSBMNS45MDYyMzU5Miw2Ljg2NTk5MjM5IEw0LjA1MzQ5OTA5LDYuODY1OTkyMzkgQzIuODAxOTUzMzEsNi44NjU5OTIzOSAyLjE3MjY0NDIsOC4zODEyNDM3NSAzLjA1ODU4NjQ2LDkuMjY3MTUxNjcgTDUuMDQxNDA3OTYsMTEuMjQ5OTczMiBMMS41NDY4NzEzMSwxMS4yNDk5NzMyIEMwLjY5MjU4MzM0LDExLjI0OTk3MzIgMCwxMS45NDI1NTY1IDAsMTIuNzk2ODQ0NSBMMCwxNi40NTMwODU4IEMwLDE3LjMwNzM3MzcgMC42OTI1ODMzNCwxNy45OTk5NTcxIDEuNTQ2ODcxMzEsMTcuOTk5OTU3MSBMMTYuNDUzMDg1OCwxNy45OTk5NTcxIEMxNy4zMDczNzM3LDE3Ljk5OTk1NzEgMTcuOTk5OTU3MSwxNy4zMDczNzM3IDE3Ljk5OTk1NzEsMTYuNDUzMDg1OCBMMTcuOTk5OTU3MSwxMi43OTY4NDQ1IFogTTguNzk5NTgxNTMsMTMuNDE5MTE1NSBMMy44NTMxMDIwOCw4LjQ3MjYzNjA1IEMzLjY3NzMyMTI1LDguMjkzMzUzMzMgMy44MDM5MDQwNSw3Ljk5MDk4OTcxIDQuMDUzNDk5MDksNy45OTA5ODk3MSBMNy4wMzEyMzMyNCw3Ljk5MDk4OTcxIEw3LjAzMTIzMzI0LDEuNDA2MjQ2NjUgQzcuMDMxMjMzMjQsMS4yNTE1NDU3OCA3LjE1Nzc4MTcsMS4xMjQ5OTczMiA3LjMxMjQ4MjU3LDEuMTI0OTk3MzIgTDEwLjY4NzQ3NDUsMS4xMjQ5OTczMiBDMTAuODQyMTc1NCwxLjEyNDk5NzMyIDEwLjk2ODcyMzgsMS4yNTE1NDU3OCAxMC45Njg3MjM4LDEuNDA2MjQ2NjUgTDEwLjk2ODcyMzgsNy45OTA5ODk3MSBMMTMuOTQyOTIxOCw3Ljk5MDk4OTcxIEMxNC4xOTYwNTMsNy45OTA5ODk3MSAxNC4zMTkwOTk2LDguMjk2ODU1MjIgMTQuMTQzMzE4OCw4LjQ3MjYzNjA1IEw5LjE5NjgzOTM0LDEzLjQxOTExNTUgQzkuMDg3ODY4OTYsMTMuNTI4MDg1OSA4LjkwODU4NjI0LDEzLjUyODA4NTkgOC43OTk1ODE1MywxMy40MTkxMTU1IFogTTE2Ljg3NDk1OTgsMTIuNzk2ODQ0NSBMMTYuODc0OTU5OCwxNi40NTMwODU4IEMxNi44NzQ5NTk4LDE2LjY4NTEwMjcgMTYuNjg1MTAyNywxNi44NzQ5NTk4IDE2LjQ1MzA4NTgsMTYuODc0OTU5OCBMMS41NDY4NzEzMSwxNi44NzQ5NTk4IEMxLjMxNDg1NDM1LDE2Ljg3NDk1OTggMS4xMjQ5OTczMiwxNi42ODUxMDI3IDEuMTI0OTk3MzIsMTYuNDUzMDg1OCBMMS4xMjQ5OTczMiwxMi43OTY4NDQ1IEMxLjEyNDk5NzMyLDEyLjU2NDgyNzUgMS4zMTQ4NTQzNSwxMi4zNzQ5NzA1IDEuNTQ2ODcxMzEsMTIuMzc0OTcwNSBMNi4xNjY0MDUyOCwxMi4zNzQ5NzA1IEw4LjAwNTA2NTk
47xLDE0LjIxMzYzMTEgQzguNTUzNDg4MzcsMTQuNzYyMDg3OSA5LjQ0NjQ2ODcyLDE0Ljc2MjA4NzkgOS45OTQ4OTExOCwxNC4yMTM2MzExIEwxMS44MzM1NTE4LDEyLjM3NDk3MDUgTDE2LjQ1MzA4NTgsMTIuMzc0OTcwNSBDMTYuNjg1MTAyNywxMi4zNzQ5NzA1IDE2Ljg3NDk1OTgsMTIuNTY0ODI3NSAxNi44NzQ5NTk4LDEyLjc5Njg0NDUgWiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMy4wMDAwMDAsIDMuMjUwMDM4KSIvPjwvZz48L2c+PC9zdmc+Cg=="},30549:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS0xLTFoMy41djMuNUgtMXoiLz48Zz48cGF0aCBkPSJNMCAwaDI0djI0SDBWMHoiIGZpbGw9Im5vbmUiLz48cGF0aCBkPSJNMTIgNGwtMS40MSAxLjQxTDE2LjE3IDExSDR2MmgxMi4xN2wtNS41OCA1LjU5TDEyIDIwbDgtOC04LTh6IiBmaWxsPSIjQ0QwNDAwIi8+PC9nPjwvc3ZnPg=="},32436:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xMzNoMTYuMDA2djEyLjk1SDB6Ii8+PHBhdGggaWQ9ImMiIGQ9Ik0uMDk4LjFIMy4wNXYyLjUxM0guMDk4eiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik05LjU5OCA4Ljc3M2EuMzI1LjMyNSAwIDAwLS4zMy4zMmMwIC4xNzguMTQ3LjMyMS4zMy4zMjEgMy45NTQgMCA3LjQyMyAzLjA1MSA3LjQyMyA2LjUzIDAgLjM0NC0uMDI3LjY5LS4wODEgMS4wMjlhLjMyMi4zMjIgMCAwMC4zMjYuMzdjLjE2IDAgLjMtLjExMy4zMjUtLjI3Mi4wNi0uMzcuMDktLjc1LjA5LTEuMTI4IDAtMy44ODctMy43MDItNy4xNy04LjA4My03LjE3TTExLjc3NSAxMy4zMkw3LjQgMTYuMTRhLjMxNi4zMTYgMCAwMC0uMDkzLjQ0NS4zMzMuMzMzIDAgMDAuNDU3LjA5bDQuMzc1LTIuODJhLjMxNS4zMTUgMCAwMC4wOTMtLjQ0NC4zMzYuMzM2IDAgMDAtLjQ1Ny0uMDlNNi41OTUgM2EuMzI1LjMyNSAwIDAwLS4zMy4zMnYyLjJjMCAuMTc2LjE0OC4zMi4zMy4zMi4xODIgMCAuMzMtLjE0NC4zMy0uMzJ2LTIuMmEuMzI1LjMyNSAwIDAwLS4zMy0uMzJNOC41MSA1Ljc5YS4zMzQuMzM0IDAgMDAuNDU1LS4wOThsLjg2Ny0xLjMxOWEuMzE1LjMxNSAwIDAwLS4xLS40NDMuMzM1LjMzNSAwIDAwLS40NTYuMDk4TDguNDEgNS4zNDZhLjMxNi4zMTYgMCAwMC4xLjQ0M00zLjk2IDQuMDI4YS4zMzUuMzM1IDAgMDAtLjQ1Ni0uMDk4LjMxNi4zMTYgMCAwMC0uMS40NDNsLjg2OCAxLjMxOWEuMzM0LjMzNCAwIDAwLjQ1NS4wOTcuMzE1LjMxNSAwIDAwLjEtLjQ0MmwtLjg2Ny0xLjMyeiIgZmlsbD0iI0U0MjgyMiIgZmlsbC1ydWxlPSJub256ZXJvIi8+PHBhdGggZD0iTTUuMDMgNy44MDVjMCAuMTgtLjE1Mi4zMjctLjMzNy4zMjdhLjMzMi4zMzIgMCAwMS0uMzM2LS4zMjdjMC0uMTgxLjE1LS4zMjguMzM2LS4zMjguMTg1IDAgLjMzNi4xNDcuMzM2LjMyOE02Ljk4IDcuODA0YzAgLjE4MS0uMTUuMzI4LS4zMzYuMzI4YS4zMzIuMzMyIDAgMDEtLjMzNi0uMzI4YzAtLjE4LjE1LS4zMjcuMzM2LS4zMjcuMTg2IDAgLjMzNi4xNDcuMzM2LjMyN004LjkzMSA3LjgwNWMwIC4xOC0uMTUuMzI3LS4zMzYuMzI3YS4zMzIuMzMyIDAgMDEtLjMzNi0uMzI3YzAtLjE4MS4xNS0uMzI4LjMzNi0uMzI4LjE4NiAwIC4zMzYuMTQ3LjMzNi4zMjgiIGZpbGw9IiNGRUZFRkUiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDMgNi4wNzQpIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNLjY2NS43NzVoNS43NjFjLjAyLjY1My4wOTcgMS4yOTYuMjI4IDEuOTI0SC43ODZBMTIuNTkgMTIuNTkgMCAwMS42NjUuNzc1bTYuMTM4IDIuNTU3YzEuMTEyIDQuMTIzIDQuNTMgNy40NzYgOC44MSA4LjI5OGEuMzI4LjMyOCAwIDAwLjM4Ny0uMjUzLjMyMi4zMjIgMCAwMC0uMjYtLjM3NkMxMC44MiAxMC4wNTYgNy4xMDYgNS41NDkgNy4wOC41MDVjLjAwMy0uMDE3LjAxLS4wMzMuMDEtLjA1YS4zMjYuMzI2IDAgMDAtLjMzLS4zMjJILjM0MmEuMzI1LjMyNSAwIDAwLS4zMy4zMjFjMCAuMDIzLjAwOS4wNDIuMDEzLjA2NEMuMDIyLjUzMy4wMTQuNTQ2LjAxMy41NjNjLS4wMTUuMjE1LS4zMjQgNS4zMjIgMy4xOTYgOC45ODMgMi4yNTcgMi4zNDcgNS41NjIgMy41MzcgOS44MjQgMy41MzcuODExIDAgMS42OTUtLjAyIDIuNDI2LS4wNTdhLjMyNC4zMjQgMCAwMC4zMTItLjMzNy4zMy4zMyAwIDAwLS4zNDYtLjMwNGMtLjcyLjAzNi0xLjU5Mi4wNTctMi4zOTIuMDU3LTQuMDcgMC03LjIxLTEuMTItOS4zMzgtMy4zMy0xLjc0My0xLjgxLTIuNDktNC4wNDYtMi44MDYtNS43NzFoNS44N2MuMDE2IDAgLjAzLS4wMDcuMDQ0LS4wMDkiIGZpbGw9IiNGRUZFRkUiIGZpbGwtcnVsZT0ibm9uemVybyIgbWFzaz0idXJsKCNiKSIvPjwvZz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxOC4xMyAxNi42NjIpIj48bWFzayBpZD0iZCIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYyIvPjwvbWFzaz48cGF0aCBkPSJNLjg2OC44NjRsMS41MDUuNTI2LS4wMTUuMjAzLTEuNTcuMzAyLjA4LTEuMDN6bTIuMTcxLjI0NWMtLjAwNC0uMDItLjAwNy0uMDQtLjAxNS0uMDU3LS4wMDgtLjAyLS4wMi0uMDM2LS4wMy0uMDUzLS4wMTItLjAxNy0uMDIzLS4wMzQtLjAzOC0uMDUtLjAxNC0uMDEzLS4wMy0uMDI0LS4wNDctLjAzNkEuMzI2LjMyNiAwIDAwMi44NS44OEMyLjg0NC44NzYgMi44NC44NzEgMi44MzMuODdMLjY4My4xMTlDLjY2Ny4xMTQuNjUyLjExNS42MzguMTEyLjYyNC4xMS42MS4xMDIuNTk2LjEuNTg4LjEuNTguMTAzLjU3NC4xMDMuNTUyLjEwMy41MzIuMTA3LjUxLjExYS4zNDUuMzQ1IDAgMDAtLjA3LjAxN2wtLjAzNC4wMmEuMzA4LjMwOCAwIDAwLS4wNy4wNUMuMzI4LjIwNi4zMjIuMjE2LjMxNC4yMjZBLjMxNi4zMTYgMCAwMC4yNy4yOTdMLjI2LjMxMkMuMjU3LjMyNS4yNTguMzM5LjI1Ni4zNTIuMjUuMzY3LjI0My4zOC4yNDIuMzk2TC4xIDIuMjY4Yy0uMDAyLjAxNS4wMDQuMDI4LjAwNS4wNDMgMCAuMDE0LS4wMDMuMDI4IDAgLjA0My4wMDEuMDA4LjAwNi4wMTQuMDA4LjAyMi4wMDUuMDE2LjAxMi4wMy4wMTkuMDQ2YS4zMTIuMzEyIDAgMDAuMjQuMTgxYy4wMTIuMDAyLjAyLjAwOC4wMzIuMDA5aC4wMjVjLjAyIDAgLjA0Mi0uMDAxLjA2My0uMDA2bDIuMjQxLS40MzFjLjAxLS4wMDIuMDE3LS4wMDguMDI2LS4wMWEuMzIuMzIgMCAwMC4wNjYtLjAyNy4zMTQuMzE0IDAgMDAuMDQ2LS4wMjkuMzE3LjMxNyAwIDAwLjA0Ny0uMDQ2Yy4wMTItLjAxNC4wMjQtLjAyNy4wMzMtLjA0M2EuMjk2LjI5NiAwIDAwLjAyNS0uMDU5LjMxMS4zMTEgMCAwMC4wMTYtLjA1NmMuMDAxLS4wMDcuMDA1LS4wMTMuMDA2LS4wMjFsLjA1My0uNjljMC0uMDA3LS4wMDMtLjAxMy0uMDAzLS4wMmEuMjkuMjkgMCAwMC0uMDA4LS4wNjV6IiBmaWxsPSIjRTQyODIyIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjZCkiLz48L2c+PC9nPjwvc3ZnPgo="},28496:function(t){"use strict";
47t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyBmaWxsPSIjRDhEOEQ4IiBmaWxsLXJ1bGU9Im5vbnplcm8iPjxwYXRoIGQ9Ik0xNS44OTA1ODcxLDE1LjE4NzQ3MjQgQzE1Ljg5MDU4NzEsMTQuODAwNzU0NSAxNS41NzQxODE2LDE0LjQ4NDM0OSAxNS4xODc0NjM4LDE0LjQ4NDM0OSBDMTQuODAwNzQ2LDE0LjQ4NDM0OSAxNC40ODQzNDA1LDE0LjgwMDc1NDUgMTQuNDg0MzQwNSwxNS4xODc0NzI0IEMxNC40ODQzNDA1LDE1LjU3NDE5MDIgMTQuODAwNzQ2LDE1Ljg5MDU5NTcgMTUuMTg3NDYzOCwxNS44OTA1OTU3IEMxNS41NzQxODE2LDE1Ljg5MDU5NTcgMTUuODkwNTg3MSwxNS41NzQxOTAyIDE1Ljg5MDU4NzEsMTUuMTg3NDcyNCBaIE0xMi45Mzc0NjkyLDE0LjQ4NDM0OSBDMTIuNTUwNzUxMywxNC40ODQzNDkgMTIuMjM0MzQ1OCwxNC44MDA3NTQ1IDEyLjIzNDM0NTgsMTUuMTg3NDcyNCBDMTIuMjM0MzQ1OCwxNS41NzQxOTAyIDEyLjU1MDc1MTMsMTUuODkwNTk1NyAxMi45Mzc0NjkyLDE1Ljg5MDU5NTcgQzEzLjMyNDE4NywxNS44OTA1OTU3IDEzLjY0MDU5MjUsMTUuNTc0MTkwMiAxMy42NDA1OTI1LDE1LjE4NzQ3MjQgQzEzLjY0MDU5MjUsMTQuODAwNzU0NSAxMy4zMjQxODcsMTQuNDg0MzQ5IDEyLjkzNzQ2OTIsMTQuNDg0MzQ5IFogTTE3Ljk5OTk1NzEsMTIuNzk2ODUzMSBDMTcuOTk5OTU3MSwxMS45NDI1NjUxIDE3LjMwNzM3MzcsMTEuMjQ5OTgxOCAxNi40NTMwODU4LDExLjI0OTk4MTggTDEyLjA5MzcyMTIsMTEuMjQ5OTgxOCBMMTIuMDkzNzIxMiw3Ljc1ODk4MTMzIEwxMy45NDY0NTgsNy43NTg5ODEzMyBDMTUuMTk4MDAzOCw3Ljc1ODk4MTMzIDE1LjgyNzMxMjksNi4yNDM3Mjk5NiAxNC45NDEzNzA2LDUuMzU3ODIyMDQgTDkuOTk0ODkxMTgsMC40MTEzNDI1OTQgQzkuNDQyOTMyNSwtMC4xMzcxMTQxOTggOC41NTM0ODgzNywtMC4xMzcxMTQxOTggOC4wMDUwNjU5MSwwLjQxMTM0MjU5NCBMMy4wNTg1ODY0Niw1LjM1NzgyMjA0IEMyLjE3NjE4MDQyLDYuMjQzNzI5OTYgMi44MDE5NTMzMSw3Ljc1ODk4MTMzIDQuMDUzNDk5MDksNy43NTg5ODEzMyBMNS45MDYyMzU5Miw3Ljc1ODk4MTMzIEw1LjkwNjIzNTkyLDExLjI0OTk4MTggTDEuNTQ2ODcxMzEsMTEuMjQ5OTgxOCBDMC42OTI1ODMzNCwxMS4yNDk5ODE4IDAsMTEuOTQyNTY1MSAwLDEyLjc5Njg1MzEgTDAsMTYuNDUzMDk0NCBDMCwxNy4zMDczODIzIDAuNjkyNTgzMzQsMTcuOTk5OTY1NyAxLjU0Njg3MTMxLDE3Ljk5OTk2NTcgTDE2LjQ1MzA4NTgsMTcuOTk5OTY1NyBDMTcuMzA3MzczNywxNy45OTk5NjU3IDE3Ljk5OTk1NzEsMTcuMzA3MzgyMyAxNy45OTk5NTcxLDE2LjQ1MzA5NDQgTDE3Ljk5OTk1NzEsMTIuNzk2ODUzMSBaIE03LjAzMTIzMzI0LDYuNjMzOTg0MDEgTDQuMDU3MDM1MzEsNi42MzM5ODQwMSBDMy44MDM5MDQwNSw2LjYzMzk4NDAxIDMuNjgwODU3NDcsNi4zMjgxMTg1IDMuODU2NjM4Myw2LjE1MjMzNzY2IEw4LjgwMzExNzc0LDEuMjA1ODU4MjIgQzguOTEyMDg4MTMsMS4wOTY4ODc4MyA5LjA5MTM3MDg0LDEuMDk2ODg3ODMgOS4yMDAzNzU1NiwxLjIwNTg1ODIyIEwxNC4xNDY4NTUsNi4xNTIzMzc2NiBDMTQuMzIyNjM1OCw2LjMzMTYyMDM4IDE0LjE5NjA1Myw2LjYzMzk4NDAxIDEzLjk0NjQ1OCw2LjYzMzk4NDAxIEwxMC45Njg3MjM4LDYuNjMzOTg0MDEgTDEwLjk2ODcyMzgsMTMuMjE4NzI3MSBDMTAuOTY4NzIzOCwxMy4zNzM0Mjc5IDEwLjg0MjE3NTQsMTMuNDk5OTc2NCAxMC42ODc0NzQ1LDEzLjQ5OTk3NjQgTDcuMzEyNDgyNTcsMTMuNDk5OTc2NCBDNy4xNTc3ODE3LDEzLjQ5OTk3NjQgNy4wMzEyMzMyNCwxMy4zNzM0Mjc5IDcuMDMxMjMzMjQsMTMuMjE4NzI3MSBMNy4wMzEyMzMyNCw2LjYzMzk4NDAxIFogTTE2Ljg3NDk1OTgsMTIuNzk2ODUzMSBMMTYuODc0OTU5OCwxNi40NTMwOTQ0IEMxNi44NzQ5NTk4LDE2LjY4NTExMTMgMTYuNjg1MTAyNywxNi44NzQ5NjgzIDE2LjQ1MzA4NTgsMTYuODc0OTY4MyBMMS41NDY4NzEzMSwxNi44NzQ5NjgzIEMxLjMxNDg1NDM1LDE2Ljg3NDk2ODMgMS4xMjQ5OTczMiwxNi42ODUxMTEzIDEuMTI0OTk3MzIsMTYuNDUzMDk0NCBMMS4xMjQ5OTczMiwxMi43OTY4NTMxIEMxLjEyNDk5NzMyLDEyLjU2NDgzNjEgMS4zMTQ4NTQzNSwxMi4zNzQ5NzkxIDEuNTQ2ODcxMzEsMTIuMzc0OTc5MSBMNS45MDYyMzU5MiwxMi4zNzQ5NzkxIEw1LjkwNjIzNTkyLDEzLjIxODcyNzEgQzUuOTA2MjM1OTIsMTMuOTk1NjY0NiA2LjUzNTU0NTAzLDE0LjYyNDk3MzcgNy4zMTI0ODI1NywxNC42MjQ5NzM3IEwxMC42ODc0NzQ1LDE0LjYyNDk3MzcgQzExLjQ2NDQxMjEsMTQuNjI0OTczNyAxMi4wOTM3MjEyLDEzLjk5NTY2NDYgMTIuMDkzNzIxMiwxMy4yMTg3MjcxIEwxMi4wOTM3MjEyLDEyLjM3NDk3OTEgTDE2LjQ1MzA4NTgsMTIuMzc0OTc5MSBDMTYuNjg1MTAyNywxMi4zNzQ5NzkxIDE2Ljg3NDk1OTgsMTIuNTY0ODM2MSAxNi44NzQ5NTk4LDEyLjc5Njg1MzEgWiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMy4wMDAwMDAsIDMuMDAwMDAwKSIvPjwvZz48L2c+PC9zdmc+Cg=="},41757:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0uMDYyLjEySDQuMTV2Ni4zNjhILjA2MnoiLz48cGF0aCBpZD0iYyIgZD0iTS4xMDQuMDZoOC45MTl2NC40ODhILjEwNHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTIuOTAyIDE4Ljk0M2EuNTE4LjUxOCAwIDAxLS41MjEuNTE0LjUxOC41MTggMCAwMS0uNTIyLS41MTRjMC0uMjg0LjIzNC0uNTE0LjUyMi0uNTE0LjI4OCAwIC41Mi4yMy41Mi41MTQiIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik05LjgzIDguODM0Yy0uMjI0IDAtLjQwNy4xNS0uNDA3LjMzM3YxMC4yOTVjMCAuMTgzLjE4My4zMzIuNDA4LjMzMmg1LjFjLjIyNCAwIC40MDctLjE0OS40MDctLjMzMlY5LjE2N2MwLS4xODMtLjE4My0uMzMzLS40MDgtLjMzM2gtNS4xem01LjEgMTEuNjUyaC01LjFjLS42MDUgMC0xLjA5Ny0uNDYtMS4wOTctMS4wMjRWOS4xNjdjMC0uNTY1LjQ5Mi0xLjAyNCAxLjA5OC0xLjAyNGg1LjFjLjYwNSAwIDEuMDk4LjQ2IDEuMDk4IDEuMDI0djEwLjI5NWMwIC41NjQtLjQ5MyAxLjAyNC0xLjA5OSAxLjAyNHoiIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik02LjMwNCAxMy4yMDZDNC40ODIgMTMuMjA2IDMgMTEuNzg2IDMgMTAuMDRjMC0xLjc0NiAxLjQ4Mi0zLjE2NiAzLjMwNC0zLjE2Ni4xOTYgMCAuMzU0LjE1Mi4zNTQuMzQgMCAuMTg3LS4xNTguMzQtLjM1NC4zNC0xLjQzMSAwLTIuNTk1IDEuMTE1LTIuNTk1IDIuNDg2IDAgMS4z
47NyAxLjE2NCAyLjQ4NiAyLjU5NSAyLjQ4Ni4xOTYgMCAuMzU0LjE1Mi4zNTQuMzQgMCAuMTg3LS4xNTguMzM5LS4zNTQuMzM5IiBmaWxsPSIjREIwQzBDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNi45NyA2LjcxOCkiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjxwYXRoIGQ9Ik0uODI2IDYuNDg4YS4zNDcuMzQ3IDAgMDEtLjM1NC0uMzRjMC0uMTg3LjE1OS0uMzM5LjM1NC0uMzM5IDEuNDQzIDAgMi42MTUtMS4xMjMgMi42MTUtMi41MDVDMy40NDEgMS45MjMgMi4yNy44LjgyNi44Yy0uMTIgMC0uMjQyLjAwOC0uMzYyLjAyNGEuMzU1LjM1NSAwIDAxLS40LS4yOUEuMzQzLjM0MyAwIDAxLjM2OS4xNUMuNTIuMTMuNjc0LjEyLjgyNi4xMiAyLjY2LjEyIDQuMTUgMS41NDggNC4xNSAzLjMwNCA0LjE1IDUuMDYgMi42NiA2LjQ4OC44MjYgNi40ODgiIGZpbGw9IiNEQjBDMEMiIGZpbGwtcnVsZT0ibm9uemVybyIgbWFzaz0idXJsKCNiKSIvPjwvZz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1Ljg0NiAzKSI+PG1hc2sgaWQ9ImQiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2MiLz48L21hc2s+PHBhdGggZD0iTS40NTkgNC41NDhjLS4wMTIgMC0uMDI0IDAtLjAzNi0uMDAyYS4zNDMuMzQzIDAgMDEtLjMxNy0uMzdDLjM0NiAxLjgyOSAyLjM4OC4wNiA0Ljg1Mi4wNmMxLjY5IDAgMy4yNy44NyA0LjEyMiAyLjI3YS4zMzEuMzMxIDAgMDEtLjEyNy40NjUuMzYyLjM2MiAwIDAxLS40ODQtLjEyM0M3LjYzNiAxLjQ4IDYuMjkyLjc0IDQuODUyLjc0IDIuNzUzLjczOSAxLjAxNiAyLjI0NS44MSA0LjI0MmEuMzQ4LjM0OCAwIDAxLS4zNTEuMzA2IiBmaWxsPSIjREIwQzBDIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjZCkiLz48L2c+PHBhdGggZD0iTTE3LjM4NyA3LjU2YS4zNTEuMzUxIDAgMDEtLjM0Ny0uMjcyYy0uMTg3LS44NzYtMS4wMDEtMS41MTEtMS45MzYtMS41MTEtLjE3IDAtLjMzOC4wMi0uNS4wNmEuMzU2LjM1NiAwIDAxLS40MzItLjI0Mi4zMzguMzM4IDAgMDEuMjUzLS40MTRjLjIyLS4wNTUuNDQ4LS4wODMuNjc5LS4wODMgMS4yNyAwIDIuMzc2Ljg2NCAyLjYzIDIuMDU0YS4zNC4zNCAwIDAxLS4yNzYuNC4zOC4zOCAwIDAxLS4wNzEuMDA3TTcuMzYgMTMuMjA2SDYuMzA0YS4zNDcuMzQ3IDAgMDEtLjM1NC0uMzRjMC0uMTg3LjE1OC0uMzQuMzU0LS4zNEg3LjM2Yy4xOTUgMCAuMzU0LjE1My4zNTQuMzQgMCAuMTg4LS4xNTkuMzQtLjM1NC4zNE0xNy43OTcgMTMuMjA2aC0uODYzYS4zNDcuMzQ3IDAgMDEtLjM1NS0uMzRjMC0uMTg3LjE1OS0uMzQuMzU1LS4zNGguODYzYy4xOTYgMCAuMzU1LjE1My4zNTUuMzQgMCAuMTg4LS4xNTkuMzQtLjM1NS4zNCIgZmlsbD0iI0RCMEMwQyIgZmlsbC1ydWxlPSJub256ZXJvIi8+PHBhdGggZD0iTTE1LjY4NCAxNy45MTRIOS4wNzhjLS4xOSAwLS4zNDUtLjExNS0uMzQ1LS4yNTcgMC0uMTQyLjE1NC0uMjU3LjM0NS0uMjU3aDYuNjA2Yy4xOSAwIC4zNDUuMTE1LjM0NS4yNTcgMCAuMTQyLS4xNTUuMjU3LS4zNDUuMjU3TTE1LjY4NCAxMC4ySDkuMDc4Yy0uMTkgMC0uMzQ1LS4xMTUtLjM0NS0uMjU3IDAtLjE0Mi4xNTQtLjI1Ny4zNDUtLjI1N2g2LjYwNmMuMTkgMCAuMzQ1LjExNS4zNDUuMjU3IDAgLjE0Mi0uMTU1LjI1Ny0uMzQ1LjI1NyIgZmlsbD0iI0ZGRiIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9nPjwvc3ZnPgo="},68609:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyBmaWxsPSIjN0Y3RjdGIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjxwYXRoIGQ9Ik0xNS43MjQ4MDg5LDEzLjgzODIwODggTDE0LjczMjA5NzksMTMuODM4MjA4OCBMMTQuMzc5NDgzNCwxMy40OTkwNyBDMTcuMjQwODA1OCwxMC4xNjQ1NjEzIDE2Ljk1NDY2NDEsNS4xNjQ3MjE0NSAxMy43MzE2MDA4LDIuMTc4NDIzMTkgQzEwLjUwODUzNzUsLTAuODA3ODc1MDc1IDUuNTAxNDI1NiwtMC43MTI0NDgzMTMgMi4zOTQ0ODg2NSwyLjM5NDQ4ODY1IEMtMC43MTI0NDgzMTMsNS41MDE0MjU2IC0wLjgwNzg3NTA3NSwxMC41MDg1Mzc1IDIuMTc4NDIzMTksMTMuNzMxNjAwOCBDNS4xNjQ3MjE0NSwxNi45NTQ2NjQxIDEwLjE2NDU2MTMsMTcuMjQwODA1OCAxMy40OTkwNywxNC4zNzk0ODM0IEwxMy44MzgyMDg4LDE0LjczMjA5NzkgTDEzLjgzODIwODgsMTUuNzI0ODA4OSBMMjAuMTI2ODc1NywyMiBMMjIsMjAuMTI2ODc1NyBMMTUuNzI0ODA4OSwxMy44MzgyMDg4IFogTTguMTc4NDA4NywxMy44MzgyMTI5IEM2LjY3Njc4ODA4LDEzLjgzOTk5OTcgNS4yMzYxNTUwMiwxMy4yNDQyNzYxIDQuMTc0MzQ4MTUsMTIuMTgyNDY5MyBDMy4xMTI1NDEyNywxMS4xMjA2NjI0IDIuNTE2ODE3NzEsOS42ODAwMjkzMiAyLjUxODYwNDUzLDguMTc4NDA4NyBDMi41MTY4MTc3MSw2LjY3Njc4ODA4IDMuMTEyNTQxMjcsNS4yMzYxNTUwMiA0LjE3NDM0ODE1LDQuMTc0MzQ4MTUgQzUuMjM2MTU1MDIsMy4xMTI1NDEyNyA2LjY3Njc4ODA4LDIuNTE2ODE3NzEgOC4xNzg0MDg3LDIuNTE4NjA0NTMgQzkuNjgwMDI5MzIsMi41MTY4MTc3MSAxMS4xMjA2NjI0LDMuMTEyNTQxMjcgMTIuMTgyNDY5Myw0LjE3NDM0ODE1IEMxMy4yNDQyNzYxLDUuMjM2MTU1MDIgMTMuODM5OTk5Nyw2LjY3Njc4ODA4IDEzLjgzODIxMjksOC4xNzg0MDg3IEMxMy44Mzk5OTk3LDkuNjgwMDI5MzIgMTMuMjQ0Mjc2MSwxMS4xMjA2NjI0IDEyLjE4MjQ2OTMsMTIuMTgyNDY5MyBDMTEuMTIwNjYyNCwxMy4yNDQyNzYxIDkuNjgwMDI5MzIsMTMuODM5OTk5NyA4LjE3ODQwODcsMTMuODM4MjEyOSBMOC4xNzg0MDg3LDEzLjgzODIxMjkgWiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMS4wMDAwMDAsIDEuMDAwMDAwKSIvPjwvZz48L2c+PC9zdmc+Cg=="},76939:function(t){"use strict";
47t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIHN0eWxlPSJmaWxsLXJ1bGU6ZXZlbm9kZDtjbGlwLXJ1bGU6ZXZlbm9kZDtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC01NCAyOSkiPjxwYXRoIGQ9Ik01NC0yOWgyNHYyNEg1NHoiIHN0eWxlPSJmaWxsOm5vbmUiLz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGQ9Ik01NC0yOWgyNHYyNEg1NHoiLz48L2NsaXBQYXRoPjxnIGNsaXAtcGF0aD0idXJsKCNhKSI+PHBhdGggZD0iTTIyLjM0NCAxLjRIMTEuNTAxTTguNzMxIDEuNEg2LjAyOU0zMi4yNTEgMy44SDI4LjQ0TTI3Ljk2IDM4LjZIMTIuNk05LjcyIDM4LjZINS44OCIgc3R5bGU9ImZpbGw6bm9uZTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6I2ZmZjtzdHJva2Utd2lkdGg6Mi41cHgiIHRyYW5zZm9ybT0ibWF0cml4KC40NjkyMSAwIDAgLjQ2OTIxIDU0LjY2IC0yNi4zODQpIi8+PHBhdGggZD0iTTE0LjI4IDExLjMyNkgzIiBzdHlsZT0iZmlsbDpub25lO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTojZjBkZjJlO3N0cm9rZS13aWR0aDoyLjVweCIgdHJhbnNmb3JtPSJtYXRyaXgoLjQ2OTIxIDAgMCAuNDY5MjEgNTQuNjYgLTI2LjM4NCkiLz48cGF0aCBkPSJNMTAuNDQgMjIuMzUySDguNzYiIHN0eWxlPSJmaWxsOm5vbmU7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOiNmZmY7c3Ryb2tlLXdpZHRoOjIuNXB4IiB0cmFuc2Zvcm09Im1hdHJpeCguNDY5MjEgMCAwIC40NjkyMSA1NC42NiAtMjYuMzg0KSIvPjxwYXRoIGQ9Ik02LjM2IDIyLjM1MmgtNC44IiBzdHlsZT0iZmlsbDpub25lO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTojZjBkZjJlO3N0cm9rZS13aWR0aDoyLjVweCIgdHJhbnNmb3JtPSJtYXRyaXgoLjQ2OTIxIDAgMCAuNDY5MjEgNTQuNjYgLTI2LjM4NCkiLz48cGF0aCBkPSJNMTguMTIgMTcuMDc3SDMuOTZNMTQuMjggMjcuOTQ5SDMuNDgiIHN0eWxlPSJmaWxsOm5vbmU7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOiNmZmY7c3Ryb2tlLXdpZHRoOjIuNXB4IiB0cmFuc2Zvcm09Im1hdHJpeCguNDY5MjEgMCAwIC40NjkyMSA1NC42NiAtMjYuMzg0KSIvPjxwYXRoIGQ9Ik00My4yMDUgNy4wMDJIMTMuNDI2YTMuMDkgMy4wOSAwIDAgMC0zLjA5MSAzLjA5MXYyMC4wNTRhMy4wOSAzLjA5IDAgMCAwIDMuMDkxIDMuMDkyaDI5Ljc3OWEzLjA5MSAzLjA5MSAwIDAgMCAzLjA5MS0zLjA5MlYxMC4wOTNhMy4wOTEgMy4wOTEgMCAwIDAtMy4wOTEtMy4wOTFaIiBzdHlsZT0iZmlsbDojY2MxNDE3O2ZpbGwtcnVsZTpub256ZXJvIiB0cmFuc2Zvcm09Im1hdHJpeCguNDY5MjEgMCAwIC40NjkyMSA1NC42NiAtMjYuMzg0KSIvPjxwYXRoIGQ9Ik00My4yMDUgNy40ODJhMi42MSAyLjYxIDAgMCAxIDIuNjExIDIuNjExdjIwLjA1NGEyLjYxIDIuNjEgMCAwIDEtMi42MTEgMi42MTFIMTMuNDI2YTIuNjEgMi42MSAwIDAgMS0yLjYxMS0yLjYxMVYxMC4wOTNhMi42MSAyLjYxIDAgMCAxIDIuNjExLTIuNjExaDI5Ljc3OVptMC0uOTZIMTMuNDI2YTMuNTc3IDMuNTc3IDAgMCAwLTMuNTcyIDMuNTcxdjIwLjA1NGEzLjU3NyAzLjU3NyAwIDAgMCAzLjU3MiAzLjU3MWgyOS43NzlhMy41NzYgMy41NzYgMCAwIDAgMy41NzEtMy41NzFWMTAuMDkzYTMuNTc2IDMuNTc2IDAgMCAwLTMuNTcxLTMuNTcxWiIgc3R5bGU9ImZpbGw6I2ZmZjtmaWxsLXJ1bGU6bm9uemVybyIgdHJhbnNmb3JtPSJtYXRyaXgoLjQ2OTIxIDAgMCAuNDY5MjEgNTQuNjYgLTI2LjM4NCkiLz48cGF0aCBkPSJNNDMuMjA1IDcuOTYySDEzLjQyNmEyLjEzMiAyLjEzMiAwIDAgMC0yLjEzMiAyLjEzMXYyMC4wNTRjMCAxLjE3Ny45NTUgMi4xMzIgMi4xMzIgMi4xMzJoMjkuNzc5YTIuMTMyIDIuMTMyIDAgMCAwIDIuMTMxLTIuMTMyVjEwLjA5M2EyLjEzIDIuMTMgMCAwIDAtMi4xMzEtMi4xMzFaIiBzdHlsZT0iZmlsbDojY2MxNDE3O2ZpbGwtcnVsZTpub256ZXJvIiB0cmFuc2Zvcm09Im1hdHJpeCguNDY5MjEgMCAwIC40NjkyMSA1NC42NiAtMjYuMzg0KSIvPjxwYXRoIGQ9Ik00My4yMDUgOC40NDJhMS42NSAxLjY1IDAgMCAxIDEuNjUxIDEuNjUxdjIwLjA1NGMwIC45MTItLjczOSAxLjY1Mi0xLjY1MSAxLjY1MkgxMy40MjZjLS45MTIgMC0xLjY1Mi0uNzQtMS42NTItMS42NTJWMTAuMDkzYzAtLjkxMi43NC0xLjY1MSAxLjY1Mi0xLjY1MWgyOS43NzlabTAtLjk2SDEzLjQyNmEyLjYxIDIuNjEgMCAwIDAtMi42MTEgMi42MTF2MjAuMDU0YTIuNjEgMi42MSAwIDAgMCAyLjYxMSAyLjYxMWgyOS43NzlhMi42MSAyLjYxIDAgMCAwIDIuNjExLTIuNjExVjEwLjA5M2EyLjYxIDIuNjEgMCAwIDAtMi42MTEtMi42MTFaIiBzdHlsZT0iZmlsbDojOTAwZjBjO2ZpbGwtcnVsZTpub256ZXJvIiB0cmFuc2Zvcm09Im1hdHJpeCguNDY5MjEgMCAwIC40NjkyMSA1NC42NiAtMjYuMzg0KSIvPjxwYXRoIGQ9Ik0yOC4zMTUgMjguMjA4YTguMDg4IDguMDg4IDAgMSAwIDAtMTYuMTc2IDguMDg4IDguMDg4IDAgMCAwIDAgMTYuMTc2WiIgc3R5bGU9ImZpbGwtcnVsZTpub256ZXJvIiB0cmFuc2Zvcm09Im1hdHJpeCguNDY5MjEgMCAwIC40NjkyMSA1NC42NiAtMjYuMzg0KSIvPjxwYXRoIGQ9Im0zMi4zMTQgMTkuNDQ4LTYuMDM5LTMuNDg1YS43NzkuNzc5IDAgMCAwLTEuMTY2LjY3M3Y2Ljk2OWMwIC42LjY0OC45NzQgMS4xNjYuNjcybDYuMDM5LTMuNDg1YS43NzkuNzc5IDAgMCAwIDAtMS4zNDh2LjAwNFoiIHN0eWxlPSJmaWxsOiNmZmY7ZmlsbC1ydWxlOm5vbnplcm8iIHRyYW5zZm9ybT0ibWF0cml4KC40NjkyMSAwIDAgLjQ2OTIxIDU0LjY2IC0yNi4zODQpIi8+PC9nPjwvZz48L3N2Zz4="},39004:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0uMDk0LjEzaDEuOTk5djMuMjQ4aC0yeiIvPjxwYXRoIGlkPSJjIiBkPSJNLjA2My4wMjZINS4xMlY4LjAxSC4wNjN6Ii8+PHBhdGggaWQ9ImUiIGQ9Ik0wIC4wMjZoNS4wNThWOC4wMUgweiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik05Ljg1MyAxMy43MWEuMzU5LjM1OSAwIDExLS43MTgtLjAwMi4zNTkuMzU5IDAgMDEuNzE4LjAwMiIgZmlsbD0iI0U0MjgyMiIgZmlsbC1ydWxlPSJub256ZXJvIi8+PHBhdGggZD0iTTkuNDk0IDEzLjY2OGEuMDQxLjA0MSAwIDAwLS4wNDEuMDQyYzAgLjA0NC4wODIuMDQ0LjA4MiAwYS4wNDEuMDQxIDAgMDAtLjA0MS0uMDQybTAgLjcxN2EuNjc2LjY3NiAwIDExMC0xLjM1My42NzYuNjc2IDAgMDEwIDEuMzUzTTEyLjQ4MiAxMy43MWEuMzU5LjM1OSAwIDExLS43MTgtLjAwMy4zNTkuMzU5IDAgMDEuNzE4LjAwMyIgZmlsbD0iI0U0MjgyMiIgZmlsbC1ydWxlPSJub256ZXJvIi8+PHBhdGggZD0iTTEyLjEyMyAxMy42NjhhLjA0LjA0IDAgMDAtLjA0LjA0MmMwIC4wNDUuMDgyLjA0My4wODIgMGEuMDQyLjA0MiAwIDAwLS4wNDItLjA0
47Mm0wIC43MTdhLjY3Ni42NzYgMCAxMS4wMDEtMS4zNTIuNjc2LjY3NiAwIDAxMCAxLjM1Mk0xNS4xMTIgMTMuNzFhLjM1OS4zNTkgMCAxMS0uNzE4LS4wMDIuMzU5LjM1OSAwIDAxLjcxOC4wMDIiIGZpbGw9IiNFNDI4MjIiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik0xNC43NTIgMTMuNjY4YS4wNC4wNCAwIDAwLS4wNC4wNDJjMCAuMDQ1LjA4Mi4wNDQuMDgyIDBhLjA0MS4wNDEgMCAwMC0uMDQyLS4wNDJtMCAuNzE3YS42NzYuNjc2IDAgMTEuMDAxLTEuMzUzLjY3Ni42NzYgMCAwMTAgMS4zNTMiIGZpbGw9IiNFNDI4MjIiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik0xNi42OSAxOS4yNWMtMy4yODMtLjAwNC00LjE1LTEuOTE3LTQuMTUtMi45MjhhLjMxNy4zMTcgMCAwMS42MzUtLjAwMmMuMDAxLjA5OS4wNyAyLjI5MiAzLjUxNSAyLjI5NmEuMzE4LjMxOCAwIDAxMCAuNjM0IiBmaWxsPSIjRkVGRUZFIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNMTIuODU3IDE2LjYzOUg3LjYxYTEuMTUzIDEuMTUzIDAgMDEtMS4xNTMtMS4xNXYtMy42MDNhLjMxNy4zMTcgMCAwMS42MzYgMHYzLjYwM2MwIC4yODQuMjMyLjUxNS41MTcuNTE1aDUuMjQ4YS4zMTcuMzE3IDAgMTEwIC42MzVNMTYuNTk5IDE2LjYzN2gtLjg5NmEuMzE3LjMxNyAwIDExMC0uNjM0aC44OTZhLjUxNy41MTcgMCAwMC41MTctLjUxN3YtMy41OThhLjMxNy4zMTcgMCAwMS42MzYgMHYzLjU5OGMwIC42MzUtLjUxNyAxLjE1LTEuMTUzIDEuMTUiIGZpbGw9IiNGRUZFRkUiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik02Ljc3NCAxMy4xODZhLjMxNy4zMTcgMCAwMS0uMzE4LS4zMThWOS43NjJjMC0uNjM0LjUxNy0xLjE1IDEuMTUyLTEuMTVoOC40MmEuMzE3LjMxNyAwIDExMCAuNjM0aC04LjQyYS41MTcuNTE3IDAgMDAtLjUxNi41MTZ2My4xMDZhLjMxNy4zMTcgMCAwMS0uMzE4LjMxOCIgZmlsbD0iI0ZFRkVGRSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PHBhdGggZD0iTTE3LjQzNCAxMy4xODFhLjMxNy4zMTcgMCAwMS0uMzE4LS4zMTdWOS43NjJhLjUxNy41MTcgMCAwMC0uNTE3LS41MTZoLS44OTZhLjMxNy4zMTcgMCAxMTAtLjYzNGguODk2Yy42MzUgMCAxLjE1My41MTYgMS4xNTMgMS4xNXYzLjEwMmEuMzE3LjMxNyAwIDAxLS4zMTguMzE3IiBmaWxsPSIjRkVGRUZFIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNC45MTUgMTUuODcyKSI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZD0iTTEuNzc1IDMuMzc5YS4zMTcuMzE3IDAgMDEtLjE3NC0uMDUyQzEuNDU2IDMuMjMyLjE4NiAyLjM3My4wOTggMS4zMzkuMDYzLjkyNC4yMjcuNTM2LjU3Mi4yMTZhLjMxOC4zMTggMCAwMS40MzMuNDY0Yy0uMjAzLjE4OC0uMjkyLjM4Ni0uMjc0LjYwNi4wNTMuNjIuODk3IDEuMyAxLjIxOCAxLjUxYS4zMTcuMzE3IDAgMDEtLjE3NC41ODMiIGZpbGw9IiNGRUZFRkUiIGZpbGwtcnVsZT0ibm9uemVybyIgbWFzaz0idXJsKCNiKSIvPjwvZz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNi4wOTIgNC4xMikiPjxtYXNrIGlkPSJkIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNjIi8+PC9tYXNrPjxwYXRoIGQ9Ik0xLjM0MiA4LjAwOWEuMzE4LjMxOCAwIDAxLS4wNC0uNjMyYzIuMDc3LS4yNyAyLjk5NC0xLjg1NCAzLjE2LTMuMjQ2QzQuNzAyIDIuMDk0IDMuMDI3Ljk1OCAzLjAxLjk0N2MtLjI3OS0uMTg1LS40OTUtLjI2LS42MTgtLjI4LjAxNy4wMy4wNC4wNjguMDcuMTA1LjAxLjAxMyAxLjEwMSAxLjQwNS43MjEgMi42NjMtLjQ4NyAxLjYxLTIuNDIgMS42OS0yLjgwMyAxLjY5YS4zMTcuMzE3IDAgMTEwLS42MzRjLjMwNCAwIDEuODM4LS4wNiAyLjE5NS0xLjI0LjI3Ni0uOTE0LS41OTgtMi4wNjktLjYwNy0yLjA4LS4yMDUtLjI1NC0uMzUtLjYyNy0uMTQ0LS45MTUuMjU4LS4zNTcuODQ3LS4yOTUgMS41MzcuMTYyLjY5OS40NjQgMS45NiAxLjg1MSAxLjczIDMuNzg3LS4xOTMgMS42My0xLjI2OSAzLjQ4My0zLjcwOCAzLjgwMWEuMzMyLjMzMiAwIDAxLS4wNDIuMDAzIiBmaWxsPSIjRkVGRUZFIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjZCkiLz48L2c+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMyA0LjEyKSI+PG1hc2sgaWQ9ImYiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2UiLz48L21hc2s+PHBhdGggZD0iTTMuNzc5IDguMDA5YS4zMzIuMzMyIDAgMDEtLjA0Mi0uMDAzQzEuMjk3IDcuNjg4LjIyMiA1LjgzNC4wMjggNC4yMDYtLjIwMiAyLjI2OSAxLjA2Ljg4MiAxLjc1OC40MThjLjY5LS40NTcgMS4yOC0uNTIgMS41MzctLjE2Mi4yMDcuMjg4LjA2Mi42NjEtLjE0My45MTQtLjAxLjAxMi0uODgzIDEuMTY3LS42MDcgMi4wODIuMzU3IDEuMTggMS44OTEgMS4yNCAyLjE5NSAxLjI0YS4zMTcuMzE3IDAgMTEwIC42MzRjLS4zODMgMC0yLjMxNy0uMDgyLTIuODA0LTEuNjktLjM4LTEuMjU5LjcxMS0yLjY1MS43MjItMi42NjVhLjY3MS42NzEgMCAwMC4wNy0uMTA1Yy0uMTIzLjAyLS4zNC4wOTYtLjYxOC4yOEMyLjA5My45NTkuNDE4IDIuMDk1LjY2IDQuMTMyLjgyNCA1LjUyMyAxLjc0IDcuMTA2IDMuODIgNy4zNzdhLjMxNy4zMTcgMCAwMS0uMDQxLjYzMiIgZmlsbD0iI0ZFRkVGRSIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2YpIi8+PC9nPjwvZz48L3N2Zz4K"},75299:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyBmaWxsPSIjN0Y3RjdGIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjxwYXRoIGQ9Ik0xMC43Njc4NTcxLDE2LjI1IEwxMS43MzIxNDI5LDE2LjI1IEMxMS45OTgyODY3LDE2LjI1IDEyLjIxNDI4NTcsMTYuMDQwMDAwOSAxMi4yMTQyODU3LDE1Ljc4MTI1IEwxMi4yMTQyODU3LDcuMzQzNzUgQzEyLjIxNDI4NTcsNy4wODQ5OTkwOCAxMS45OTgyODY3LDYuODc1IDExLjczMjE0MjksNi44NzUgTDEwLjc2Nzg1NzEsNi44NzUgQzEwLjUwMTcxMzMsNi44NzUgMTAuMjg1NzE0Myw3LjA4NDk5OTA4IDEwLjI4NTcxNDMsNy4zNDM3NSBMMTAuMjg1NzE0MywxNS43ODEyNSBDMTAuMjg1NzE0MywxNi4wNDAwMDA5IDEwLjUwMTcxMzMsMTYuMjUgMTAuNzY3ODU3MSwxNi4yNSBaIE0xNy4zNTcxNDI5LDMuMTI1IEwxNC4wNDYwMjA1LDMuMTI1IEwxMi42Nzk5NDkxLDAuOTEwMTQ4NjIxIEMxMi4zNjk4MjA3LDAuNDA3NzUyOTkxIDExLjYyODk4OTEsMCAxMS4wMjYzMTA1LDAgTDExLjAyNTQwODEsMCBMNi45NzQ1OTE5NCwwIEw2Ljk3NDQ3NDIzLDAgQzYuMzcxNzk1NjUsMCA1LjYzMDk2NDAxLDAuNDA3NzUyOTkxIDUuMzIwODM1NjYsMC45MTAxNDg2MjEgTDMuOTUzOTc5NDksMy4xMjUgTDAuNjQyODU3MTQzLDMuMTI1IEMwLjI4Nzk5ODc0NCwzLjEyNSAwLDMuNDA0OTk4NzggMCwzLjc1IEwwLDQuMzc1IEMwLDQuNzIwMDAxMjIgMC4yODc5OTg3NDQsNSAwLjY0Mjg1NzE0Myw1IEwxLjI4NTcxNDI5LDUgTDEuMjg1NzE0MjksMTguMTI1IEMxLjI4NTcxNDI5LDE5LjE2MDAwMzcgMi4xNDk3MTA1MiwyMCAzLjIxNDI4NTcxLDIwIEwxNC43ODU3MTQzLDIwIEMxNS44NTAyODk1LDIwIDE2LjcxNDI4NTcsMTkuMTYwMDAzNyAxNi43MTQyODU3LDE4LjEyNSBMMTYuNzE0Mjg1Nyw1IEwxNy4zNTcxNDI5LDUgQzE3LjcxMjAwMTMsNSAxOCw0LjcyMDAwMTIyIDE4LDQuMzc1IEwxOCwzLjc1IEMxOCwzLjQwNDk5ODc4IDE3LjcxMjAwMTMsMy4xMjUgMTcuMzU3MTQyOSwzLjEyNSBaIE02LjkwNDI3OTQ0LDEuOTg4Njc3OTggQzYuOTQzMDQ1NDgsMS45MjU5MjYyMSA3LjAzNTY0NDUzLDEuODc0OTk4NTEgNy4xMTA5NDAxMiwxLjg3NDk5ODUxIEw3LjExMTYwNzE0LDEuODc0OTk4NTEgTDEwLjg4ODM5MjksMS44NzQ5OTg1MSBMMTAuODg4NjY3NSwxLjg3NDk5ODUxIEMxMC45NjM5NjMxLDEuODc0OTk4NTEgMTEuMDU2NTIyOSwxLjkyNTkyNjIxIDExLjA5NTMyODIsMS45ODg2Nzc5OCBMMTEuNzk2ODQ0NSwzLjEyNTAwMTQ5IEw2LjIwMzE1NTUyLDMuMTI1MDAxNDkgTDYuOTA0Mjc5NDQsMS45ODg2Nzc5OCBaIE0xNC43ODU3MTQzLDE4LjEyNSBMMy4y
47MTQyODU3MSwxOC4xMjUgTDMuMjE0Mjg1NzEsNSBMMTQuNzg1NzE0Myw1IEwxNC43ODU3MTQzLDE4LjEyNSBaIE02LjI2Nzg1NzE0LDE2LjI1IEw3LjIzMjE0Mjg2LDE2LjI1IEM3LjQ5ODI4NjY2LDE2LjI1IDcuNzE0Mjg1NzEsMTYuMDQwMDAwOSA3LjcxNDI4NTcxLDE1Ljc4MTI1IEw3LjcxNDI4NTcxLDcuMzQzNzUgQzcuNzE0Mjg1NzEsNy4wODQ5OTkwOCA3LjQ5ODI4NjY2LDYuODc1IDcuMjMyMTQyODYsNi44NzUgTDYuMjY3ODU3MTQsNi44NzUgQzYuMDAxNzEzMzQsNi44NzUgNS43ODU3MTQyOSw3LjA4NDk5OTA4IDUuNzg1NzE0MjksNy4zNDM3NSBMNS43ODU3MTQyOSwxNS43ODEyNSBDNS43ODU3MTQyOSwxNi4wNDAwMDA5IDYuMDAxNzEzMzQsMTYuMjUgNi4yNjc4NTcxNCwxNi4yNSBaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzLjAwMDAwMCwgMi4wMDAwMDApIi8+PC9nPjwvZz48L3N2Zz4K"},45556:function(t,e,i){"use strict";t.exports=i.p+"static/svg/logo-b2b-white.svg"},5717:function(t,e,i){"use strict";t.exports=i.p+"static/svg/logo-white.svg"},73603:function(t,e,i){"use strict";t.exports=i.p+"static/svg/logo-xmas-white.svg"},63287:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjxwYXRoIGQ9Ik03LjE3NDk4MTEsOC4xOTk5Nzg0IEM5LjQzOTU5MDc3LDguMTk5OTc4NCAxMS4yNzQ5NzAzLDYuMzY0NTk4ODcgMTEuMjc0OTcwMyw0LjA5OTk4OTIgQzExLjI3NDk3MDMsMS44MzUzNzk1MyA5LjQzOTU5MDc3LDAgNy4xNzQ5ODExLDAgQzQuOTEwMzcxNDMsMCAzLjA3NDk5MTksMS44MzUzNzk1MyAzLjA3NDk5MTksNC4wOTk5ODkyIEMzLjA3NDk5MTksNi4zNjQ1OTg4NyA0LjkxMDM3MTQzLDguMTk5OTc4NCA3LjE3NDk4MTEsOC4xOTk5Nzg0IFogTTE3LjQyNDk1NDEsMTEuMjc0OTcwMyBDMTcuNzA2ODIyMSwxMS4yNzQ5NzAzIDE3LjkzNzQ1MjgsMTEuMDQ0MzM5NyAxNy45Mzc0NTI4LDEwLjc2MjQ3MTcgTDE3LjkzNzQ1MjgsOC43MTI0NzcwNSBMMTkuOTg3NDQ3NCw4LjcxMjQ3NzA1IEMyMC4yNjkzMTU0LDguNzEyNDc3MDUgMjAuNDk5OTQ2LDguNDgxODQ2NCAyMC40OTk5NDYsOC4xOTk5Nzg0IEwyMC40OTk5NDYsNy4xNzQ5ODExIEMyMC40OTk5NDYsNi44OTMxMTMxIDIwLjI2OTMxNTQsNi42NjI0ODI0NSAxOS45ODc0NDc0LDYuNjYyNDgyNDUgTDE3LjkzNzQ1MjgsNi42NjI0ODI0NSBMMTcuOTM3NDUyOCw0LjYxMjQ4Nzg1IEMxNy45Mzc0NTI4LDQuMzMwNjE5ODUgMTcuNzA2ODIyMSw0LjA5OTk4OTIgMTcuNDI0OTU0MSw0LjA5OTk4OTIgTDE2LjM5OTk1NjgsNC4wOTk5ODkyIEMxNi4xMTgwODg4LDQuMDk5OTg5MiAxNS44ODc0NTgyLDQuMzMwNjE5ODUgMTUuODg3NDU4Miw0LjYxMjQ4Nzg1IEwxNS44ODc0NTgyLDYuNjYyNDgyNDUgTDEzLjgzNzQ2MzYsNi42NjI0ODI0NSBDMTMuNTU1NTk1NSw2LjY2MjQ4MjQ1IDEzLjMyNDk2NDksNi44OTMxMTMxIDEzLjMyNDk2NDksNy4xNzQ5ODExIEwxMy4zMjQ5NjQ5LDguMTk5OTc4NCBDMTMuMzI0OTY0OSw4LjQ4MTg0NjQgMTMuNTU1NTk1NSw4LjcxMjQ3NzA1IDEzLjgzNzQ2MzYsOC43MTI0NzcwNSBMMTUuODg3NDU4Miw4LjcxMjQ3NzA1IEwxNS44ODc0NTgyLDEwLjc2MjQ3MTcgQzE1Ljg4NzQ1ODIsMTEuMDQ0MzM5NyAxNi4xMTgwODg4LDExLjI3NDk3MDMgMTYuMzk5OTU2OCwxMS4yNzQ5NzAzIEwxNy40MjQ5NTQxLDExLjI3NDk3MDMgWiBNMTIuODEyNDY2MiwxNi4zOTk5NTY4IEMxMy42NjEyOTIxLDE2LjM5OTk1NjggMTQuMzQ5OTYyMiwxNS43MTEyODY3IDE0LjM0OTk2MjIsMTQuODYyNDYwOSBMMTQuMzQ5OTYyMiwxMy41Mjk5NzY5IEMxNC4zNDk5NjIyLDExLjE1MzI1ODEgMTIuNDIxNjc5OCw5LjIyNDk3NTcgMTAuMDQ0OTYxLDkuMjI0OTc1NyBMOS41MTAwNjU1OSw5LjIyNDk3NTcgQzguNzk4OTY3NDUsOS41NTE2OTk4NSA4LjAwNzc5MTQxLDkuNzM3NDc0MzUgNy4xNzQ5ODExLDkuNzM3NDc0MzUgQzYuMzQyMTcwNzksOS43Mzc0NzQzNSA1LjU1NDIxNjYzLDkuNTUxNjk5ODUgNC44Mzk4OTY2MSw5LjIyNDk3NTcgTDQuMzA1MDAxMTcsOS4yMjQ5NzU3IEMxLjkyODI4MjQzLDkuMjI0OTc1NyAwLDExLjE1MzI1ODEgMCwxMy41Mjk5NzY5IEwwLDE0Ljg2MjQ2MDkgQzAsMTUuNzExMjg2NyAwLjY4ODY3MDA2MSwxNi4zOTk5NTY4IDEuNTM3NDk1OTUsMTYuMzk5OTU2OCBMMTIuODEyNDY2MiwxNi4zOTk5NTY4IFoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIuMDAwMDAwLCA0LjAwMDAwMCkiLz48L2c+PC9nPjwvc3ZnPgo="},2753:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuMjUgMjAuMTU2di05LjIxM2w2LjUwMi02LjUwM2MuNTMtLjUzLjE1NC0xLjQ0LS41OTctMS40NEgzLjg0NWMtLjc1IDAtMS4xMjguOTEtLjU5NyAxLjQ0bDYuNTAyIDYuNTAzdjcuMjQ0YzAgLjI3Ni4xMzQuNTM0LjM2LjY5MmwyLjgxMiAxLjk2OGEuODQ0Ljg0NCAwIDAwMS4zMjgtLjY5MXoiIGZpbGw9IiNDRDA0MDAiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPgo="},18430:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuMjUgMjAuMTU2di05LjIxM2w2LjUwMi02LjUwM2MuNTMtLjUzLjE1NC0xLjQ0LS41OTctMS40NEgzLjg0NWMtLjc1IDAtMS4xMjguOTEtLjU5NyAxLjQ0bDYuNTAyIDYuNTAzdjcuMjQ0YzAgLjI3Ni4xMzQuNTM0LjM2LjY5MmwyLjgxMiAxLjk2OGEuODQ0Ljg0NCAwIDAwMS4zMjgtLjY5MXoiIGZpbGw9IiM1NTUiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPgo="},98092:function(t){"use strict";
47t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNyAxMy42NTZjMS44MzMgMCAzLjQwMS0uNjUgNC43MDMtMS45NTMgMS4zMDItMS4zMDIgMS45NTMtMi44NyAxLjk1My00LjcwMyAwLTEuODMzLS42NS0zLjQwMS0xLjk1My00LjcwM0MxMC40MDEuOTk1IDguODMzLjM0NCA3IC4zNDQgNS4xNjcuMzQ0IDMuNTk0IDEgMi4yODEgMi4zMTMuOTkgMy42MDMuMzQ0IDUuMTY3LjM0NCA3YzAgMS44MzMuNjUgMy40MDEgMS45NTMgNC43MDMgMS4zMDIgMS4zMDIgMi44NyAxLjk1MyA0LjcwMyAxLjk1M3ptMC0xLjMxMmMtMS40NTggMC0yLjcxOS0uNTIxLTMuNzgxLTEuNTYzQzIuMTc3IDkuNzIgMS42NTYgOC40NTggMS42NTYgN2MwLTEuNDU4LjUyNi0yLjcxNCAxLjU3OC0zLjc2NlM1LjU0MiAxLjY1NiA3IDEuNjU2YzEuNDU4IDAgMi43MTQuNTI2IDMuNzY2IDEuNTc4UzEyLjM0NCA1LjU0MiAxMi4zNDQgN2MwIDEuNDU4LS41MjYgMi43MTQtMS41NzggMy43NjZTOC40NTggMTIuMzQ0IDcgMTIuMzQ0ek03LjY1NiA1VjMuNjU2SDYuMzQ0VjVoMS4zMTJ6bTAgNS4zNDR2LTRINi4zNDR2NGgxLjMxMnoiIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPgo="},54981:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTIgMjJjLTIuNzU0IDAtNS4xMS0uOTc4LTcuMDY2LTIuOTM0QzIuOTc4IDE3LjExIDIgMTQuNzU0IDIgMTJjMC0yLjc1NC45NzgtNS4xMSAyLjkzNC03LjA2NkM2Ljg5IDIuOTc4IDkuMjQ2IDIgMTIgMmMyLjc1NCAwIDUuMTE3Ljk4NiA3LjA5IDIuOTU4QzIxLjAzIDYuODk4IDIyIDkuMjQ2IDIyIDEyYzAgMi43NTQtLjk3OCA1LjExLTIuOTM0IDcuMDY2QzE3LjExIDIxLjAyMiAxNC43NTQgMjIgMTIgMjJ6bS01Ljg5LTVjLjM0My0uOTUyLjk4NC0xLjQyOSAxLjkyMS0xLjQyOWguOTg1di0zLjA0N2MwLS4yODYuMDkzLS41MjQuMjgtLjcxNGEuOTQ2Ljk0NiAwIDAxLjcwNC0uMjg2aDZWOS40NzZoLTEuOTY5Yy0uMjgxIDAtLjUyMy0uMDk1LS43MjYtLjI4NkEuOTM5LjkzOSAwIDAxMTMgOC40NzZWNi40M2gtMS45NjljLS41MzEgMC0xLS4xOTktMS40MDYtLjU5Ni0uNDA2LS4zOTYtLjYxLS44NjUtLjYxLTEuNDA0VjRjLTEuNS42MDMtMi43MSAxLjU4Ny0zLjYzMiAyLjk1MkM0LjQ2IDguMzE3IDQgOS44NDIgNCAxMS41MjRjMCAyLjEyNy43MDMgMy45NTIgMi4xMSA1LjQ3
47NnpNMTMgMjBjMS45Ni0uMjU4IDMuNjE3LTEuMTYgNC45Ny0yLjcwNSAxLjM1My0xLjU0NiAyLjAzLTMuMzY2IDIuMDMtNS40NiAwLS41NzktLjA3OC0xLjE5LS4yMzMtMS44MzVsLTQuNzYgNC45Mjh2MS4wMTRjMCAuNTQ4LS4yMDMgMS4wMy0uNjA3IDEuNDUtLjQwNC40MTgtLjg3MS42MjctMS40LjYyN1YyMHoiIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPgo="},9331:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIGZpbGw9Im5vbmUiPjxnIGZpbGw9IiNFNDI4MjIiPjxwYXRoIGQ9Ik0xMS42NzggOC45MWMuMzIgMCAuNjMzLjA1Mi45MzEuMTUyYS4zNjQuMzY0IDAgMTEtLjIzMy42OSAyLjE4IDIuMTggMCAwMC0yLjg3NSAyLjA2MyAyLjE3NyAyLjE3NyAwIDEwNC4zMTgtLjM5OS4zNjQuMzY0IDAgMDEuNzE3LS4xMzIgMi45MDYgMi45MDYgMCAxMS0yLjg1OC0yLjM3NHpNMjAuMzQyIDMuMTMyYS4zNjQuMzY0IDAgMDEuMzg5LS4zMTRsLjAyMS4wMDIgMS42LjIxOWEuMzY0LjM2NCAwIDAxLS4wNzcuNzI0bC0uMDIxLS4wMDMtMS42LS4yMThhLjM2NC4zNjQgMCAwMS0uMzEyLS40MXoiLz48cGF0aCBkPSJNMjIuMDQ1IDMuMTQyYS4zNjQuMzY0IDAgMDEuNTMyLjQ5N2wtLjAxNi4wMTgtMi43MjcgMi43MjVhLjM2NC4zNjQgMCAwMS0uNTMxLS40OThsLjAxNi0uMDE3IDIuNzI2LTIuNzI1eiIvPjwvZz48cGF0aCBkPSJNMTcuOTM2IDUuNjE2bDEuNjcyLjE0NWEuMzY0LjM2NCAwIDAxLS4wNDIuNzI3aC0uMDJsLTEuNjczLS4xNDZhLjM2NC4zNjQgMCAwMS4wNDItLjcyN2wuMDIuMDAxeiIgZmlsbD0iI0U0MjgyMiIvPjxnIGZpbGw9IiNFNDI4MjIiPjxwYXRoIGQ9Ik0yMC40IDEuMTg1YS4zNjQuMzY0IDAgMDEuNDA2LjI5bC4wMDQuMDIxLjIxOCAxLjZhLjM2NC4zNjQgMCAwMS0uNzE5LjEybC0uMDAzLS4wMjItLjIxOC0xLjZhLjM2NC4zNjQgMCAwMS4zMTItLjQxeiIvPjxwYXRoIGQ9Ik0yMC4xOTEgMS4yODhhLjM2NC4zNjQgMCAwMS41MzIuNDk3bC0uMDE2LjAxOC0yLjcyNyAyLjcyNmEuMzY0LjM2NCAwIDAxLS41MzItLjQ5OGwuMDE2LS4wMTcgMi43MjctMi43MjZ6Ii8+PC9nPjxwYXRoIGQ9Ik0xNy42OSAzLjkwOGEuMzY0LjM2NCAwIDAxLjM5Mi4zMWwuMDAzLjAyMS4xNDYgMS42NzJhLjM2NC4zNjQgMCAwMS0uNzIzLjA4NGwtLjAwMy0uMDItLjE0Ni0xLjY3MmEuMzY0LjM2NCAwIDAxLjMzMS0uMzk1eiIgZmlsbD0iI0U0MjgyMiIvPjxnIGZpbGw9IiNGRUZFRkUiPjxwYXRoIGQ9Ik02LjQ5IDE3LjUxNWEuMzY0LjM2NCAwIDAxLjY3NC4yNzZsLS4wMDguMDItMS4yMDkgMi43MThhLjM2NC4zNjQgMCAwMS0uNjc0LS4yNzZsLjAwOC0uMDIgMS4yMDktMi43MTh6TTE1Ljc0MSAxNy4zM2EuMzY0LjM2NCAwIDAxLjQ3Mi4xNjZsLjAxLjAxOSAxLjIwOCAyLjcxOGEuMzY0LjM2NCAwIDAxLS42NTcuMzE2bC0uMDEtLjAyLTEuMjA4LTIuNzE4YS4zNjQuMzY0IDAgMDEuMTg1LS40OHpNMTEuNjc4IDYuNTU2Yy45OTYgMCAxLjk1My4yNzcgMi43OC43OTNhLjM2NC4zNjQgMCAxMS0uMzg1LjYxOCA0LjUzMiA0LjUzMiAwIDEwLTIuMzk1IDguMzc5IDQuNTMyIDQuNTMyIDAgMDA0LTYuNjY1LjM2NC4zNjQgMCAxMS42NDMtLjM0MyA1LjI2IDUuMjYgMCAwMS00LjY0MyA3LjczNyA1LjI2IDUuMjYgMCAwMS01LjI2Mi01LjI2IDUuMjYgNS4yNiAwIDAxNS4yNjItNS4yNTl6Ii8+PHBhdGggZD0iTTExLjY3OCA0LjIwMmMxLjY2OCAwIDMuMjU1LjUzNyA0LjU2MiAxLjUxNmEuMzY0LjM2NCAwIDExLS40MzcuNTgzIDYuODU3IDYuODU3IDAgMDAtNC4xMjUtMS4zNzEgNi44ODcgNi44ODcgMCAwMC02Ljg4OCA2Ljg4NSA2Ljg4NiA2Ljg4NiAwIDAwNi44ODggNi44ODUgNi44ODcgNi44ODcgMCAwMDUuNzYxLTEwLjY2MS4zNjQuMzY0IDAgMTEuNjEtLjQgNy42MTUgNy42MTUgMCAwMS02LjM3IDExLjc5IDcuNjE1IDcuNjE1IDAgMDEtNy42MTgtNy42MTQgNy42MTUgNy42MTUgMCAwMTcuNjE3LTcuNjEzeiIvPjwvZz48cGF0aCBkPSJNMTkuMTk2IDQuMTczYS4zNjQuMzY0IDAgMDEuNTI0LjUwNmwtLjAxNi4wMTYtNy43NzIgNy41MzdhLjM2NC4zNjQgMCAwMS0uNTI0LS41MDZsLjAxNi0uMDE3IDcuNzcyLTcuNTM2eiIgZmlsbD0iI0ZFRkVGRSIvPjwvZz48L3N2Zz4K"},86108:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMjMgMjFMMTIgMyAxIDIxaDIyem0tMTAtNmgtMnYtNGgydjR6bTAgM2gtMnYtMmgydjJ6IiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4K"},75140:function(t,e,i){"use strict";t.exports=i.p+"static/svg/logo-b2b-white.svg"},21802:function(t,e,i){"use strict";t.exports=i.p+"static/svg/simcard-last4digits.svg"},10595:function(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMzMiIGhlaWdodD0iMjQiPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZmlsbD0iIzAwQjY3QSIgZD0iTTAgMGgyNC45Mzh2MjRIMHpNMjcuMDE2IDBoMjQuOTM4djI0SDI3LjAxNnpNNTQuMDMxIDBoMjQuOTM4djI0SDU0LjAzMXpNODEuMDQ3IDBoMjQuOTM4djI0SDgxLjA0N3oiLz48cGF0aCBmaWxsPSIjRENEQ0U2IiBkPSJNMTIwLjUzMSAwaDEyLjQ3djI0aC0xMi40N3oiLz48cGF0aCBmaWxsPSIjMDBCNjdBIiBkPSJNMTA4LjA2MyAwaDEyLjQ2OHYyNGgtMTIuNDY5eiIvPjxwYXRoIGZpbGw9IiNGRkYiIGQ9Im0xMi40NjkgMTYuMTc1IDMuNzkyLS45MjUgMS41ODUgNC43LTUuMzc3LTMuNzc1Wm04LjcyOC02LjA3NUgxNC41MmwtMi4wNTItNi4wNS0yLjA1MiA2LjA1SDMuNzRsNS4
470MDMgMy43NS0yLjA1MiA2LjA1IDUuNDAzLTMuNzUgMy4zMjUtMi4zIDUuMzc3LTMuNzVaTTM5LjQ4NCAxNi4xNzVsMy43OTMtLjkyNSAxLjU4NSA0LjctNS4zNzgtMy43NzVabTguNzI4LTYuMDc1aC02LjY3NWwtMi4wNTMtNi4wNS0yLjA1MiA2LjA1aC02LjY3Nmw1LjQwMyAzLjc1LTIuMDUyIDYuMDUgNS40MDMtMy43NSAzLjMyNS0yLjMgNS4zNzctMy43NVpNNjYuNSAxNi4xNzVsMy43OTMtLjkyNSAxLjU4NCA0LjctNS4zNzctMy43NzVabTguNzI4LTYuMDc1aC02LjY3Nkw2Ni41IDQuMDVsLTIuMDUyIDYuMDVoLTYuNjc2bDUuNDAzIDMuNzUtMi4wNTIgNi4wNSA1LjQwMy0zLjc1IDMuMzI1LTIuMyA1LjM3Ny0zLjc1Wk05My41MTYgMTYuMTc1bDMuNzkyLS45MjUgMS41ODUgNC43LTUuMzc3LTMuNzc1Wm04LjcyOC02LjA3NWgtNi42NzZsLTIuMDUyLTYuMDUtMi4wNTMgNi4wNWgtNi42NzVsNS40MDMgMy43NS0yLjA1MyA2LjA1IDUuNDA0LTMuNzUgMy4zMjUtMi4zIDUuMzc3LTMuNzVaTTEyMC41MzEgMTYuMTc1bDMuNzkzLS45MjUgMS41ODQgNC43LTUuMzc3LTMuNzc1Wm04LjcyOC02LjA3NWgtNi42NzZsLTIuMDUyLTYuMDUtMi4wNTIgNi4wNWgtNi42NzZsNS40MDMgMy43NS0yLjA1MiA2LjA1IDUuNDAzLTMuNzUgMy4zMjUtMi4zIDUuMzc3LTMuNzVaIi8+PC9nPjwvc3ZnPgo="},1123:function(t,e,i){"use strict";var s=i(32198),a=i(8921),n=i(44739),o=i(67953);let r=0;class l extends o.lD{mounted(){this.readyPromise=this.init(),document.body.classList.toggle("with-recaptcha",!!++r)}beforeDestroy(){document.body.classList.toggle("with-recaptcha",!!--r)}
47async init(){let t=await this.grecaptchaProvider,e={sitekey:this.config.recaptchaSiteKey,size:"invisible",badge:this.badge,callback:this.rcCallback.bind(this),"error-callback":this.rcErrorCallback.bind(this),"expired-callback":this.rcExpiredCallback.bind(this)};return this.widgetId=t.render(this.$el,e),t}render(t){return t("div",{class:"recaptcha-holder",style:{position:"fixed",bottom:"10%"}})}async getRecaptchaToken(){let t=await this.readyPromise;return this.pendingRecaptcha?this.pendingRecaptcha.promise.then(this.getRecaptchaToken):(this.pendingRecaptcha=new n.Zv,t.execute(this.widgetId),this.pendingRecaptcha.promise)}rcCallback(t){if(!this.pendingRecaptcha)throw Error(`Received a ReCaptcha expired error when no ReCaptcha was pending for ${this.widgetId}`);this.pendingRecaptcha.resolve(t),this.pendingRecaptcha=null,this.reset()}rcErrorCallback(){if(!this.pendingRecaptcha)throw Error(`Received a ReCaptcha expired error when no ReCaptcha was pending for ${this.widgetId}`);this.pendingRecaptcha.reject(new a.Ay(a.O4.RECAPTCHA_TECHNICAL_ERROR,{widgetId:this.widgetId})),this.pendingRecaptcha=null,this.reset()}rcExpiredCallback(){if(!this.pendingRecaptcha)throw Error(`Received a ReCaptcha expired error when no ReCaptcha was pending for ${this.widgetId}`);this.pendingRecaptcha.reject(new a.Ay(a.O4.RECAPTCHA_EXPIRED,{widgetId:this.widgetId})),this.pendingRecaptcha=null,this.reset()}reset(){this.readyPromise=this.readyPromise.then(async t=>(t.reset(this.widgetId),await (0,n.yy)(501),t))}constructor(...t){super(...t),this.readyPromise=(0,n.Uz)("Component not yet mounted"),this.pendingRecaptcha=null}}(0,s.Cg)([(0,o.y_)()],l.prototype,"config",void 0),(0,s.Cg)([(0,o.y_)()],l.prototype,"grecaptchaProvider",void 0),(0,s.Cg)([(0,o.kv)({type:String,required:!1,default:"inline"})],l.prototype,"badge",void 0),l=(0,s.Cg)([o.uA],l),i.d(e,{A:function(){return l}})},64994:function(t,e,i){"use strict";var s=i(32198),a=i(67953);class n extends a.lD{created(){this.parsed=this.value?{valid:!0,normalized:this.value}:null,this.raw=this.value?this.format(this.value):""}get rendered(){return!this.focused&&this.parsed&&this.parsed.valid?this.format(this.parsed.normalized):this.raw}get invalid(){return!!this.parsed&&!this.parsed.valid}onInput(t){this.raw=t,this.parsed=""===t?null:this.parse(t),this.$set(this,"parseError",this.parsed&&!this.parsed.valid?this.parseErrorString:null),this.$emit("input",this.parsed&&this.parsed.valid?this.parsed.normalized:null)}onValueChange(t){this.focused||(this.parsed=t?{valid:!0,normalized:t}:null,this.raw=this.value?this.format(this.value):"")}constructor(...t){super(...t),this.focused=!1,this.raw="",this.parsed=null,this.parseError=null,this.parseErrorString="parse error",this.validateOnRaw=!0}}(0,s.Cg)([(0,a.kv)({type:String,required:!0})],n.prototype,"name",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1})],n.prototype,"id",void 0),(0,s.Cg)([(0,a.kv)({required:!1})],n.prototype,"value",void 0),(0,s.Cg)([(0,a.kv)({type:String,required:!1,default:""})],n.prototype,"dataQa",void 0),(0,s.Cg)([(0,a.ox)("value")],n.prototype,"onValueChange",null);let o=(0,a.uA)(n);i.d(e,{A:function(){return n}},{s:o})},7130:function(t,e,i){"use strict";var s=i(62508);e.A=(i.n(s))().component("ModalPopup",{inject:["showInPopup"],render:t=>t("span"),props:{appearance:{type:String,default:"default"}},data:()=>({destroyHandle:()=>{}}),mounted(){let t=this.$slots.default;t&&(this.$data.destroyHandle=this.showInPopup(t,{popupAppearance:this.$props.appearance,popupClass:this.$vnode.data?.staticClass},{},()=>this.$emit("close")))},beforeDestroy(){this.$data.destroyHandle()}})},54466:function(t,e,i){"use strict";let s={mobile:"/img/merchant-images/mv-sim-studio.webp",broadband:"/img/merchant-images/mv-modem-studio.webp"};function a(t){return`${"u">typeof window&&window.location?.origin?window.location.origin:"https://mobilevikings.be"}${s[t]}`}i.d(e,{g:function(){return a}})},25754:function(t,e,i){"use strict";let s="vikingDealsPartners",a="improved-by-";function n(t){return`${a}${t}`}function o(t){return t?.startsWith(a)?t.slice(a.length).toLowerCase():null}function r(t,e){return`/${t}/viking-deals/?no-redirect=true&category=${n(e)}#${s}`}i.d(e,{Do:function(){return r},in:function(){return o},jA:function(){return n}},{H:"vtm-go-plus",PL:s,bG:"disney-plus",iR:"VikingDeals.monthlyMonetaryReward{amount}"})}
47,15799:function(t,e,i){"use strict";var s=i(62765),a=i(25754);function n(t){return t?.improvement?.isEligible&&t?.improvement?.baselineValue||t?.dealOfTheMoment?.baselineValue||null}function o(t){return t.toLowerCase()}function r(t){let e=t.deals.find(t=>!!t.improvement?.isEligible)?.improvement?.improvedBy;return e?o(e):null}function l(t){let e=t.deals.find(t=>t.improvement)?.improvement?.improvedBy;return e?o(e):null}function d(t,e){return t.deals.some(t=>!!t.improvement?.isEligible&&o(t.improvement.improvedBy)===e)}function c(t,e){return t.deals.some(t=>t.improvement&&o(t.improvement.improvedBy)===e)}function u(t){return t.asTranslationString!==a.iR?`${t.amount}`:(0,s.ZF)(t.amount,"","two_if_significant")}i.d(e,{Wu:function(){return d},c5:function(){return r},jv:function(){return l},kN:function(){return u},n$:function(){return c},nr:function(){return n}})},86348:function(t,e,i){"use strict";class s{isMonthlyPromo(t){return"promo"===t.appearance&&!!t.monthly&&!!t.durationMonths}get hasMonthlyPromo(){return this.basketEntries.some(this.isMonthlyPromo)}get hasMonthlyEntries(){return this.basketEntries.some(t=>void 0!==t.monthly)}get totalMonthly(){return Math.max(0,this.basketEntries.filter(t=>!this.isMonthlyPromo(t)).map(t=>t.monthly||0).reduce((t,e)=>t+e,0))}get currentMonthlyPromo(){return this.hasMonthlyPromo?this.basketEntries.filter(this.isMonthlyPromo).reduce((t,e)=>null===t?e:t.monthly<e.monthly?t:e,null):null}get totalMonthlyPromo(){return Math.max(0,this.basketEntries.filter(t=>!this.isMonthlyPromo(t)||t.monthly===this.currentMonthlyPromo?.monthly).map(t=>t.monthly||0).reduce((t,e)=>t+e,0))}get monthlyTotalsAfterPromo(){if(!this.hasMonthlyEntries)return[];let t=this.basketEntries.filter(this.isMonthlyPromo).sort((t,e)=>t.monthly-e.monthly),e=this.totalMonthly,i=[],s=0;for(let a of t)i.push({afterMonth:s,months:a.durationMonths-s,total:Math.max(0,e+a.monthly)}),s+=a.durationMonths;return[...i,{total:e,afterMonth:s}]}constructor(){this.basketEntries=[]}}i.d(e,{A:function(){return s}})},32400:function(t,e,i){"use strict";let s=["visa","mastercard"],a=["sepa",...s];i.d(e,{},{P:a,c:s})},2691:function(t,e,i){"use strict";function s(t){if("fixed_internet/booster"===t.type)switch(t.variant){case"bbox3":return"wifi_booster_bbox3";case"internet_box":return"wifi_booster";default:return"wifi_booster_plus"}throw Error(`Unknown product variant: ${t.variant}`)}function a(t){return t.sort((t,e)=>"open"===t.state?-1:1).find(t=>"open"===t.state||"ready_for_shipping"===t.state)||null}function n(t){return t.filter(t=>"open"===t.state||"ready_for_shipping"===t.state)}i.d(e,{HM:function(){return s},Iy:function(){return n},wp:function(){return a}})},50802:function(t,e,i){"use strict";function s(t,e){if(t)try{return new URL(t,e).href}catch{return t}}i.d(e,{v:function(){return s}})},72800:function(t,e,i){"use strict";let s;var a=i(58339);let n={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function o(){return s||(s=(0,a.c)(()=>n)),s}i.d(e,{C:function(){return o}})},67537:function(t,e,i){"use strict";var s=i(76565);function a(t){return!t.activatedOn||t.activatedOn.isAfter(s.LocalDateTime.now().minusDays(1))}i.d(e,{j:function(){return a}})},13132:function(t,e,i){"use strict";var s=i(27511),a=i(50103),n=i(62765);async function o(t,e,i){if(0===t.length)return null;let o=(0,a.l5)(e.activeSubscriptionAdvantages);if(0===o.length)return null;let r=o.length>1?(0,s.r)("termination.lose_tps_explanation_multiple_{subhubPartner}_{amountWithEuroSign}"):(0,s.r)("termination.lose_tps_explanation_{subhubPartner}_{amountWithEuroSign}"),l=(0,n.up)(o.reduce((t,e)=>t+e.amount,0),"two_if_significant");return i(r,{subhubPartner:t[0].product.thirdPartyName,amountWithEuroSign:l})}i.d(e,{S:function(){return o}})},78014:function(t,e,i){"use strict";var s=i(21395);function a(t,e){let i=[];for(let s=t;e.compareTo(s)>=0;s=s.plusDays(1))i.push(s);return i}function n(t){return 0===t.length?null:(0,s.A4)(t).sort((t,e)=>t.compareTo(e))[0]}function o(t){return 0===t.length?null:(0,s.A4)(t).sort((t,e)=>e.compareTo(t))[0]}i.d(e,{IW:function(){return o},Qd:function(){return n},Tk:function(){return a}})}
47,20020:function(t,e,i){"use strict";function s(t,e){let i,s={};for(let a of e)a.field&&t.fieldCodes(a.field).includes(a.code)?(s[a.on]=[...s[a.on]||[],a.message||a.code],i=i||a):a.field||a.code!==t.code||(s[a.on]=[...s[a.on]||[],a.message||a.code],i=i||a);return{firstIssue:i,result:s}}i.d(e,{v:function(){return s}})},58209:function(t,e,i){"use strict";var s=i(48692),a=i(47352);function n(t){let e={msisdn:t.msisdn,operator:t.operator||void 0,requestType:t.requestType||void 0,accountNumber:function(t){if(t.accountNumber&&0!==t.accountNumber.length&&("business_postpaid"===t.requestType||"private_postpaid"===t.requestType))return t.accountNumber}(t),iccid:function(t){if("prepaid"===t.requestType&&t.iccid&&t.iccid.length>0)return t.iccid;if("business_postpaid"!==t.requestType&&("private_postpaid"!==t.requestType||!t.accountNumber||!(t.accountNumber.length>0))&&"private_postpaid"===t.requestType&&t.iccid&&t.iccid.length>0)return t.iccid}(t)},i=(0,a.Bb)(e);if(!(0,s.a1)(i))throw Error(`Invalid MNP data: ${JSON.stringify(i)}`);return i}i.d(e,{j:function(){return n}},{C:{msisdn:"",operator:{name:""},iccid:"",verificationOption:"",requestType:"",accountNumber:""}})},13009:function(t,e,i){"use strict";i.d(e,{myVikingSidePanels:function(){return s4}});var s=i(39413),a=i(32198),n=i(58294),o=i(1122),r=i(8921),l=i(57399),d=i(67953),c=i(24176),u=i(58249),p=i(42123),h=i(76573),_=i(20174),m=i(76370),g=i(95630),v=i(55056),f=i(14064),y=i(20020);let b=(0,n.tZ)("AuthorizationsSpc");class C extends d.lD{mounted(){if(!this.subscriptionId)return void this.steps.pushStep("subscription-selection");let t=this.session.mobileSubscriptions?.find(t=>t.isOwner&&t.id===this.subscriptionId)||null;t?this.onSubscriptionChange(t):this.steps.pushStep("subscription-selection")}async onSubscriptionChange(t){this.currentSubscription=t,this.steps.pushStep("initial");try{let e=await this.authorizationService.getAuthorizations();this.authorizations=e.forSubscription(t)}catch(t){b.error("Failed retrieving authorizations",t),this.notifyGenericErrors(t)}}get openInvites(){if(!this.currentSubscription||!this.authorizations)return[];let t=this.currentSubscription;return this.authorizations.outgoingInvites.filter(e=>e.subscription.id===t.id)}get activeGrants(){if(!this.currentSubscription||!this.authorizations)return[];let t=this.currentSubscription;return this.authorizations.outgoingGrants.filter(e=>e.subscription.id===t.id)}startInvite(){this.steps.pushStep("add-grant"),this.addGrant={firstName:"",language:this.session?.profile?.language||"en",email:"",password:""},this.uwaValidationErrors={},this.$validator.reset()}remove(t){return async()=>await this.confirm(this.$t("sim_authorizations.confirm_remove_grant_{email}",{email:t.granteeMail}),this.$t("are_you_sure"),this.$t("sim_authorizations.yes_remove"),this.$t("cancel"))?t.remove():Promise.resolve()}get introText(){if(!this.currentSubscription)return"";let t=this.currentSubscription.product,e={msisdn:(0,l.i)(this.currentSubscription.msisdn),alias:this.currentSubscription.alias};return(0,o.s1)(t)?this.$t("sim_authorizations.intro_postpaid_{msisdn}_{alias}",e).toString():this.$t("sim_authorizations.intro_prepaid_{msisdn}_{alias}",e).toString()}async invite(){if((this.uwaValidationErrors={},this.currentSubscription)&&this.authorizations){if(this.isOwnEmail||!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20);return}try{let t=this.addGrant;await this.authorizations.invite(t),this.steps.popStep(),this.notify.success("sim_authorizations.person_invited_successfully")}catch(i){let t=r.Ay.of(i),e=(0,y.v)(t,[{code:r.O4.INVALID_VALUE,field:"password",on:"password",message:"password_incorrect"},{code:r.O4.CUSTOMER_NOT_FOUND,field:"authorized_customer",on:"email",message:"unknown_viking"},{code:r.O4.CANNOT_AUTHORIZE_SELF,field:"authorized_customer",on:"email",message:"cannot_authorize_self"},{code:r.O4.INVALID_AUTHORIZEE,field:"authorized_customer",on:"email",message:"invalid_authorizee"},{code:r.O4.CUSTOMER_ALREADY_AUTHORIZED,on:"email",message:"already_authorized"}]);this.uwaValidationErrors=e.result,e.firstIssue||(b.error("Failed to add grant",i),this.notifyGenericErrors(i)),this.domUtils.scrollToFirst(".is-invalid",20)}}}get isOwnEmail(){return!!this.session.profile&&this.addGrant.email===this.session.profile.email}get emailValidationErrors(){return this.isOwnEmail?[this.$t("validationError__cannot_authorize_self")]:this.$t
47List(this.uwaValidationErrors.email,"validationError__")}get isDirty(){return"add-grant"===this.steps.activeStep&&(this.addGrant.email.length>0||this.addGrant?.firstName&&this.addGrant.firstName.length>0||this.addGrant.password.length>0)}async dismiss(){(!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$emit("dismiss")}constructor(...t){super(...t),this.authorizations=null,this.addGrant={firstName:"",language:"en",email:"",password:""},this.uwaValidationErrors={},this.currentSubscription=null}}(0,a.Cg)([(0,d.kv)({type:String})],C.prototype,"subscriptionId",void 0),(0,a.Cg)([(0,d.y_)()],C.prototype,"config",void 0),(0,a.Cg)([(0,d.y_)()],C.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],C.prototype,"authorizationService",void 0),(0,a.Cg)([(0,d.y_)()],C.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],C.prototype,"domUtils",void 0),(0,a.Cg)([(0,d.oS)()],C.prototype,"steps",void 0);var w=C=(0,a.Cg)([(0,d.uA)({components:{SimSelector:f.A,SidePanelItem:m.A,Steps:v.A,Step:g.A,FormPassword:h.A,Field:u.A,Loading:_.A,CallToAction:c.A,MvForm:p.A}})],C),S=i(41618),M=(0,S.A)(w,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"AuthorizationsSpc"},[e("Steps",{ref:"steps"},[e("Step",{attrs:{stepName:"subscription-selection"}},[e("header",[e("h2",{attrs:{"data-qa":"AuthorizationsSpc__subscriptionSelectionTitle"}},[t._v(" "+t._s(t.$t("authorization_spc.select_subscription_title"))+" ")]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button","data-qa":"AuthorizationsSpc__subscriptionSelection__cancel"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("div",{staticClass:"option-group"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("authorization_spc.select_subscription_message__html"),expression:"$t('authorization_spc.select_subscription_message__html')"}],staticClass:"option-group__description intro"}),e("SimSelector",{attrs:{appearance:"radioGroup",filter:t=>t.isOwner},on:{input:t.onSubscriptionChange},scopedSlots:t._u([{key:"emptySubscriptionsList",fn:function(){return[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("authorization_spc.no_eligible_subscription"),expression:"$t('authorization_spc.no_eligible_subscription')"}]})]},proxy:!0}])})],1)])]),e("Step",{attrs:{stepName:"initial"}},[e("MvForm",{attrs:{name:"Authorizations"}},[e("header",[e("h2",{attrs:{"data-qa":"AuthorizationsSpc__title"}},[t._v(t._s(t.$t("sim_authorizations.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button","data-qa":"AuthorizationsSpc__initial__cancel"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},[[e("div",{staticClass:"option-group end-section"},[e("div",{directives:[{name:"pii-mask",rawName:"v-pii-mask"},{name:"html-safe",rawName:"v-html-safe",value:t.introText,expression:"introText"}],staticClass:"option-group__description intro-text"})]),t.authorizations?[t.openInvites.length>0?e("div",{staticClass:"option-group end-section"},[e("h3",{staticClass:"option-group-title"},[t._v(" "+t._s(t.$tc("sim_authorizations.open_invites_title",t.openInvites.length))+" ")]),t._l(t.openInvites,function(i){return e("div",{key:i.id,staticClass:"AuthorizationsSpc__invite"},[e("span",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],staticClass:"AuthorizationsSpc__grantMail"},[t._v(t._s(i.granteeMail))]),e("CallToAction",{staticClass:"AuthorizationsSpc__removeGrant",attrs:{"data-qa":"AuthorizationsSpc__cancelInvite",once:i.cancel.bind(i)}},[t._v(" "+t._s(t.$t("sim_authorizations.cancel_invite"))+" ")])],1)})],2):t._e(),t.activeGrants.length>0?e("div",{staticClass:"option-group end-section"},[e("h3",{staticClass:"option-group-title"},[t._v(" "+t._s(t.$tc("sim_authorizations.active_grants_title",t.activeGrants.length))+" ")]),t._l(t.activeGrants,function(i){return e("div",{key:i.id,staticClass:"AuthorizationsSpc__grant"},[e("span",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],staticClass:"AuthorizationsSpc__grantMail"},[t._v(t._s(i.granteeMail))]),e("CallToAction",{staticClass:"AuthorizationsSpc__removeGrant",attrs:{"data-qa":"AuthorizationsSpc__revokeAccess",once:t.remove(i)}},[t._v(" "+t._s(t.$t("sim_authorizations.revoke_access"))+" ")])],1)})],2):t._e()]:e("div",{staticClass:"option-group end-section"},[e("Loading",{staticClass:"AuthorizationsSpc__loadingIndicator",attrs:{size:"narrow"}})],1),e("SidePanelItem",{staticClass:"end-section AuthorizationsSpc__addGrant",attrs:{title:t.$t("sim_authorizations.add_grant"),"data-qa":"AuthorizationsSpc__addGrant"},on:{edit:function(e){return t.startInvite()}}})]],2)])],1),e("Step",{attrs:{id:"add_step",stepName:"add-grant"}},[e("MvForm",{attrs:{name:"Authorizations"}},[e("header",[e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"back",attrs:{type:"button","data-qa":"AuthorizationsSpc__back"},on:{click:function(e){return e.preventDefault(),t.steps.popStep()}}},[e("span",[t._v(t._s(t.$t("back")))])]),e("h2",{attrs:{"data-qa":"AuthorizationsSpc__addGrantTitle"}},[t._v(t._s(t.$t("sim_authorizations.add_grant_title")))])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("div",{staticClass:"option-group end-section"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("sim_authorizations.add_grant_intro"),expression:"$t('sim_authorizations.add_grant_intro')"}],staticClass:"option-group__description intro"}),e("Field",{staticClass:"first-name-field",attrs:{label:t.$t("sim_authorizations.first_name")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.addGrant.firstName,expression:"addGrant.firstName"},{name:"validate",rawName:"v-validate",value:{required:!0,max:255},expression:"{ required: true, max: 255 }"}],attrs:{required:"",type:"text",name:"firstName","data-qa":"firstName"},domProps:{value:t.addGrant.firstName},on:{input:function(e){e.target.composing||t.$set(t.addGrant,"firstName",e.target.value)}}})]),e("Field",{attrs:{label:t.$t("language")}},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.addGrant.language,expression:"addGrant.language"}],attrs:{id:"language",name:"language",required:"","data-qa":"language"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.addGrant,"language",e.target.multiple?i:i[0])}}},[e("option",{attrs:{value:"en"}},[t._v(t._s(t.$t("lang_en")))]),e("option",{attrs:{value:"nl"}},[t._v(t._s(t.$t("lang_nl")))]),e("option",{attrs:{value:"fr"}},[t._v(t._s(t.$t("lang_fr")))])])]),e("Field",{staticClass:"email-field",attrs:{label:t.$t("sim_authorizations.email"),hint:t.$t("sim_authorizations.add_the_email_of_the_person_to_give_access"),validationErrors:t.emailValidationErrors}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.addGrant.email,expression:"addGrant.email"},{name:"validate",rawName:"v-validate",value:{email:!0,max:255},expression:"{ email: true, max: 255 }"}],attrs:{required:"",autocomplete:"email",type:"text",name:"email","data-qa":"email"},domProps:{value:t.addGrant.email},on:{input:function(e){e.target.composing||t.$set(t.addGrant,"email",e.target.value)}}}
47)])],1),e("div",{staticClass:"option-group end-section"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("sim_authorizations.password_intro"),expression:"$t('sim_authorizations.password_intro')"}],staticClass:"option-group__description intro"}),e("Field",{attrs:{label:t.$t("sim_authorizations.password"),validationErrors:t.$tList(t.uwaValidationErrors.password,"validationError__")}},[e("FormPassword",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],attrs:{required:"",autocomplete:"password",name:"password","data-vv-as":t.$t("sim_authorizations.password"),"data-qa":"password"},model:{value:t.addGrant.password,callback:function(e){t.$set(t.addGrant,"password",e)},expression:"addGrant.password"}})],1)],1)]),e("footer",[e("CallToAction",{staticClass:"AuthorizationsSpc__doAddGrant",attrs:{once:t.invite,type:"submit","data-qa":"AuthorizationsSpc__doAddGrant"}},[t._v(" "+t._s(t.$t("save"))+" ")])],1)])],1)],1)],1)},[],!1,null,"5c941771",null).exports,A=i(14806),k=i(23087);class I extends d.lD{async mounted(){this.mandates&&(this.mandateOptions=this.mandates)}async onSubscriptionChanged(t){this.mandates||(this.mandateOptions=t?await this.mandateService.eligibleMandates:[])}onMandateChange(){this.mandates&&(this.mandateOptions=this.mandates)}get mandate(){return this.value&&this.mandateOptions.find(t=>t.id===this.value)||null}set mandate(t){t?this.$emit("input",t.id):this.$emit("input",null)}constructor(...t){super(...t),this.mandateOptions=[]}}(0,a.Cg)([(0,d.y_)()],I.prototype,"mandateService",void 0),(0,a.Cg)([(0,d.y_)()],I.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],I.prototype,"config",void 0),(0,a.Cg)([(0,d.kv)()],I.prototype,"value",void 0),(0,a.Cg)([(0,d.kv)({required:!1})],I.prototype,"mandates",void 0),(0,a.Cg)([(0,d.kv)({default:!0})],I.prototype,"allowAutoSelect",void 0),(0,a.Cg)([(0,d.ox)("session.mobileSubscription",{immediate:!0})],I.prototype,"onSubscriptionChanged",null),(0,a.Cg)([(0,d.ox)("mandates")],I.prototype,"onMandateChange",null);var x=I=(0,a.Cg)([(0,d.uA)({components:{PaymentMethodSelector:k.A}})],I),N=(0,S.A)(x,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("PaymentMethodSelector",{attrs:{options:t.mandateOptions,allowAutoSelect:t.allowAutoSelect},model:{value:t.mandate,callback:function(e){t.mandate=e},expression:"mandate"}})},[],!1,null,null,null).exports,T=i(99679),D=i(91543),$=i(21395);let P=(0,n.tZ)("AutoPaymentSettingsSpc");class L extends d.lD{get selectedMandateId(){return this.paymentSetup?this.paymentSetup.id:null}set selectedMandateId(t){if(!t)return;let e=this.mandateService.eligibleMandates.find(e=>e.id===t);this.paymentSetup=e||null,this.step="initial"}async created(){try{if(this.loading=!0,this.subscription=this.getSubscription(),!this.subscription)return;if(!["postpaid","fixed_internet"].includes(this.subscription.type)){this.notify.error("auto_payment_settings.message_only_for_postpaid"),this.$emit("dismiss");return}if(await this.mandateService.loadMandates(),!this.mandateService.mandates.length){this.notify.error("auto_payment_settings.message_no_mandates"),this.$emit("dismiss");return}this.initialPaymentSetup=await this.mandateService.getAutoInvoicePayment(this.subscription.id),this.paymentEnabled=!!this.initialPaymentSetup,this.originalPaymentEnabled=this.paymentEnabled,this.paymentSetup=this.initialPaymentSetup||(1===this.mandateService.mandates.length?this.mandateService.mandates[0]:null),this.selectedMandateId=this.paymentSetup?this.paymentSetup.id:null,this.loading=!1}catch(t){P.error("Failed to initialize auto-payment-settings",t),this.notifyGenericErrors(t),this.loading=!1}}mounted(){this.determineAutoPayOpenInvoices()}goToAddPaymentMethodSpc(){this.$router.push({query:{spc:"add-payment-method"}})}async determineAutoPayOpenInvoices(){try{let t=await this.invoiceService.unpaidInvoices;this.hasUnpaidInvoices=!t.isEmpty,this.autoPayOpenInvoices=!t.isEmpty,this.originalAutoPayOpenInvoices=this.autoPayOpenInvoices}catch(t){P.error("Failed to load unpaid invoices",t)}}async payUnpaidInvoices(){let t=r.O4.NOT_PAYABLE;try{let t=await this.invoiceService.unpaidInvoices;if(t.isEmpty||!this.selectedMandateId)return;let e=await this.mandateService.loadMandateById(this.selectedMandateId)||null;if(!e)return;await this.invoiceService.payInvoicesWithMandate(t.items.map(t=>`${t.id}`),e),this.notificationManager.clearUnpaidInvoicesRouteNotifications(t.items.map(t=>
47t.id)),this.notify.success("auto_payment_settings.unpaid_invoices_successfully_paid")}catch(i){let e=r.Ay.of(i);if(e.payload?.code===r.O4.TOO_MANY_UNPAID_INVOICES||e.payload?.code===r.O4.CUSTOMER_SHOULD_CHECK_THEIR_MAIL)throw i;if(e.code===t)return void P.info("Unpaid invoices are not payable -- most likely outdated");P.error("Failed to pay unpaid invoices while editing payment method",i),this.notify.error("auto_payment_settings.failed_to_unpaid_invoices")}}async checkForInvoicesWithSepaMandate(){return(await this.invoiceService.paidInvoices).items.some(t=>t.hasScheduledPayment)}confirmDescription(t){return"sepa"!==t?this.$t("auto_payment_settings.description_invoice_old_sepa_will_used"):this.$t("auto_payment_settings.description_invoice_new_sepa_will_be_used")}async save(){if(this.subscription){if(this.paymentEnabled&&!this.selectedMandateId)return void this.notify.error("auto_payment_settings.please_select_a_payment_method");try{if(this.isSavePending=!0,this.paymentSetup&&await this.checkForInvoicesWithSepaMandate()&&!await this.confirm(this.confirmDescription(this.paymentSetup.method),this.$t("attention"),this.$t("auto_payment_settings.primary_cta_change_payment_method"),this.$t("auto_payment_settings.secondary_cta_do_not_change_payment_method")))return;let t=this.paymentEnabled?this.paymentSetup:null;if(await this.mandateService.setAutoInvoicePayment(this.subscription,t),this.notify.success("auto_payment_settings.saved"),this.paymentEnabled&&this.autoPayOpenInvoices)try{await this.payUnpaidInvoices(),this.removeSubscriptionIdFromQuery(),this.$emit("dismiss")}catch(e){let t=r.Ay.of(e);t.payload?.code===r.O4.TOO_MANY_UNPAID_INVOICES?(this.invoicePaymentFailedAfterMandateSuccess=!0,this.domUtils.scrollToFirst("[data-invoice-payment-failed-after-success-notification]",16)):t.payload?.code===r.O4.CUSTOMER_SHOULD_CHECK_THEIR_MAIL?(this.customerShouldCheckTheirMailError=!0,this.domUtils.scrollToFirst("[data-check-mail-notification]",16)):(P.error("Failed to pay unpaid invoices after linking autopay mandate",e),this.notifyGenericErrors(e))}else this.removeSubscriptionIdFromQuery(),this.$emit("dismiss")}catch(e){let t=r.Ay.of(e);if(t.code===r.O4.ACTION_NOT_AUTHORIZED)return void this.notify.error("auto_payment_settings.error__blocked_because_payment_data_not_of_customer");if(t.payload?.code===r.O4.TOO_MANY_UNPAID_INVOICES){this.tooManyUnpaidInvoicesError=!0,this.domUtils.scrollToFirst("[data-pending-invoices-notification]",16);return}if(t.payload?.code===r.O4.CUSTOMER_SHOULD_CHECK_THEIR_MAIL){this.customerShouldCheckTheirMailError=!0,this.domUtils.scrollToFirst("[data-check-mail-notification]",16);return}P.error("Failed to save the auto-payment setup",e),this.notifyGenericErrors(e)}finally{this.isSavePending=!1}}}getSubscription(){let t=this.session.mobileSubscription||null;return this.$route.query.subscriptionId?this.session.subscriptions?this.session.subscriptions.find(t=>t.id===this.$route.query.subscriptionId)||t:null:t}removeSubscriptionIdFromQuery(){this.$route.query.subscriptionId&&delete this.$route.query.subscriptionId}get mandateLabel(){if(this.loading)return null;if(!this.paymentSetup)return"";let t=this.paymentSetup.method.toLowerCase(),e=this.$t(`mandate_method__${t}`);return`${e} ${this.paymentSetup.userFriendlyLabel}`}async dismiss(){!this.isSavePending&&(!this.isDirty||this.tooManyUnpaidInvoicesError||this.customerShouldCheckTheirMailError||this.invoicePaymentFailedAfterMandateSuccess||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$emit("dismiss")}get isDirty(){let t=this.paymentEnabled?this.paymentSetup:null,e=this.originalPaymentEnabled!==this.paymentEnabled,i=this.originalAutoPayOpenInvoices!==this.autoPayOpenInvoices;return e||i||!(0,$.c2)(t,this.initialPaymentSetup)}get stepsApi(){return this.$refs.steps}pushStep(t){this.stepsApi.pushStep(t)}popStep(t){this.stepsApi.popStep(t)}constructor(...t){super(...t),this.loading=!1,this.isSavePending=!1,this.subscription=null,this.paymentEnabled=!1,this.originalPaymentEnabled=!1,this.step="initial",this.initialPaymentSetup=null,this.paymentSetup=null,this.hasUnpaidInvoices=!1,this.autoPayOpenInvoices=!1,this.originalAutoPayOpenInvoices=!1,this.tooManyUnpaidInvoicesError=!1,this.customerShouldCheckTheirMailError=!1,this.invoicePaymentFailedAfterMandateSuccess=!1}}(0,a.Cg)([(0,d.y_)()],L.prototype,"invoiceService",void 0),(0,a.Cg)([(0,d.y_)()],L.prototype,"mandateService",void 0),(0,a.Cg)([(0,d.y_)()],L.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],L.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],L.prototype,"notificationManager",void 0),(0,a.Cg)([(0,d.y_)()],L.prototype,"domUtils",void 0);var E=L=(0,a.Cg)([(0,d.uA)({components:{InlineNotification:T.A,SidePanelItem:m.A,Steps:v.A,Step:g.A,MandateSelector:N,SubscriptionDetail
47s:D.A,Checkbox:A.A,MvForm:p.A,CallToAction:c.A}})],L),O=(0,S.A)(E,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.subscription||t.loading?e("MvForm",{staticClass:"auto-payment-settings",attrs:{name:"auto-invoice-payment"}},[e("Steps",{ref:"steps"},[e("Step",{attrs:{id:"initial_step",stepName:"initial"}},[e("header",[e("h2",[t._v(t._s(t.$t("auto_payment_settings.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main",class:{noPaddingTop:t.tooManyUnpaidInvoicesError||t.customerShouldCheckTheirMailError||t.invoicePaymentFailedAfterMandateSuccess}},[t.tooManyUnpaidInvoicesError?e("InlineNotification",{attrs:{notificationType:"error",appearance:"inSidePanel"}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("auto_payment_settings.linking_sepa_is_not_allowed__html"),expression:"$t('auto_payment_settings.linking_sepa_is_not_allowed__html')"}],attrs:{"data-pending-invoices-notification":"","data-qa":"pending-invoices-notification"}})]):t._e(),t.customerShouldCheckTheirMailError?e("InlineNotification",{attrs:{notificationType:"error",appearance:"inSidePanel"}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("auto_payment_settings.customer_should_check_their_mail__html"),expression:"$t('auto_payment_settings.customer_should_check_their_mail__html')"}],attrs:{"data-check-mail-notification":"","data-qa":"check-mail-notification"}})]):t._e(),t.invoicePaymentFailedAfterMandateSuccess?e("InlineNotification",{attrs:{notificationType:"error",appearance:"inSidePanel"}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("auto_payment_settings.mandate_linked_but_invoice_payment_failed__html"),expression:"$t('auto_payment_settings.mandate_linked_but_invoice_payment_failed__html')"}],attrs:{"data-invoice-payment-failed-after-success-notification":"","data-qa":"invoice-payment-failed-after-success-notification"}})]):t._e(),e("div",{staticClass:"option-group"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("auto_payment_settings.intro"),expression:"$t('auto_payment_settings.intro')"}],staticClass:"option-group__description intro"}),e("div",{staticClass:"end-section my-viking-sidePanel__subscriptionDetails"},[e("SubscriptionDetails",{staticClass:"current-sim",attrs:{subscription:t.subscription,withIcon:!0}})],1),e("Checkbox",{attrs:{id:"auto_payment_enabled",disabled:t.isSavePending,label:t.$t("auto_payment_settings.enable_auto_payment")},model:{value:t.paymentEnabled,callback:function(e){t.paymentEnabled=e},expression:"paymentEnabled"}}),e("SidePanelItem",{attrs:{id:"select_mandate",title:t.$t("auto_payment_settings.mandate"),loading:t.loading,value:t.mandateLabel,valueLength:15,disabled:t.isSavePending||!t.paymentEnabled},on:{edit:function(e){return t.pushStep("mandate")}}})],1),t.hasUnpaidInvoices&&t.paymentEnabled?e("div",{staticClass:"option-group option-group--noBottomSpacing"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("add_payment_method.pay_pending_invoices_title"),expression:"$t('add_payment_method.pay_pending_invoices_title')"}],staticClass:"option-group-title intro title"}),e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("add_payment_method.pay_pending_invoices_description"),expression:"$t('add_payment_method.pay_pending_invoices_description')"}],staticClass:"option-group__description intro"}),e("Checkbox",{attrs:{id:"auto_pay_open_invoices",value:!0,name:"autoPayOpenInvoices",button:!0,label:t.$t("add_payment_method.pay_pending_invoices_button_label"),tip:t.$t("add_payment_method.pay_pending_invoices_button_tip")},model:{value:t.autoPayOpenInvoices,callback:function(e){t.autoPayOpenInvoices=e},expression:"autoPayOpenInvoices"}})],1):t._e()],1),e("footer",[e("CallToAction",{staticClass:"confirm",attrs:{once:t.save,type:"submit",disabled:t.tooManyUnpaidInvoicesError||t.customerShouldCheckTheirMailError||t.invoicePaymentFailedAfterMandateSuccess}}
47,[t._v(t._s(t.$t("save")))])],1)]),e("Step",{attrs:{id:"mandate_step",stepName:"mandate"}},[e("header",[e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"back",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.popStep()}}},[e("span",[t._v(t._s(t.$t("back")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("div",{staticClass:"option-group"},[t.mandateService.eligibleMandates.length?[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("auto_payment_settings.mandate_intro"),expression:"$t('auto_payment_settings.mandate_intro')"}],staticClass:"option-group__description intro"}),e("MandateSelector",{attrs:{mandates:t.mandateService.eligibleMandates,allowAutoSelect:!1},on:{input:function(e){return t.popStep(250)}},model:{value:t.selectedMandateId,callback:function(e){t.selectedMandateId=e},expression:"selectedMandateId"}})]:e("InlineNotification",{attrs:{hideIcon:!0,notificationType:"error",appearance:"inSidePanel"},scopedSlots:t._u([{key:"default",fn:function(){return[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("payment_methods.you_cannot_change_now__add_owned_mandate_first"),expression:"$t('payment_methods.you_cannot_change_now__add_owned_mandate_first')"}]})]},proxy:!0},{key:"cta",fn:function(){return[e("a",{attrs:{href:"javascript:"},on:{click:t.goToAddPaymentMethodSpc}},[t._v(" "+t._s(t.$t("payment_settings.add_new_mandate"))+" ")])]},proxy:!0}],null,!1,0xf5ad49f3)})],2)])])],1)],1):t._e()},[],!1,null,null,null).exports,z=i(62765),j=i(79847),B=i(43397);let F=(0,n.tZ)("AutoTopupSettingsComponent");class q extends d.lD{async created(){try{if(this.subscription=this.getSubscription(),!this.subscription||"prepaid"!==this.subscription.type){this.notify.error("auto_topup_settings.message_only_for_prepaid"),this.$emit("dismiss");return}let t=(0,o.Pd)(this.subscription.product);if(this.loading=!0,await Promise.all([this.productService.getTopupProducts(t).then(t=>{this.topups=t}),this.mandateService.getAutoTopupSettings(this.subscription).then(t=>{this.settings=t})]),this.settings&&this.topups.length&&!this.settings.product){let t=this.topups.filter(t=>"data"===t.focus).sort((t,e)=>t.price<e.price?-1:1);t.length&&(this.settings={...this.settings,product:t[0]})}this.originalSettings=(0,$.A4)(this.settings),this.autoEnabled=!!this.settings&&!!Object.values(this.settings.triggers).find(t=>t.enabled),this.originalAutoEnabled=this.autoEnabled,this.loading=!1}catch(t){F.error("Failed to initialize auto-topup-settings",t),this.notifyGenericErrors(t)}}reset(){this.selectMandateError=!1}async save(){if(this.reset(),!this.subscription||!this.settings)return;if(this.autoEnabled||this.settings.smsTopup){if(!this.settings.product)return void this.notify.error("auto_topup_settings.please_select_a_topup");if(!this.settings.mandateId){this.selectMandateError=!0,this.notify.error("auto_topup_settings.please_select_a_payment_method");return}if(this.autoEnabled){let{triggers:{bundleExpiry:t,dataLow:e,creditLow:i}}=this.settings;if(!t.enabled&&!e.enabled&&!i.enabled)return void this.notify.error("auto_topup_settings.please_select_a_trigger")}}let t=(0,$.A4)(this.settings);this.autoEnabled||(t.triggers.bundleExpiry.enabled=!1,t.triggers.dataLow.enabled=!1,t.triggers.creditLow.enabled=!1,t.triggers.creditLow.threshold=this.thresholds[0]),this.autoEnabled||this.settings.smsTopup||(t.product=void 0,t.vikingPointsFirst=!1,t.mandateId=void 0);try{this.isSavePending=!0,await this.mandateService.updateAutoTopupSetting(this.subscription,t),this.notify.success("auto_topup_settings_saved"),this.removeSubscriptionIdFromQuery(),this.$emit("dismiss")}catch(t){r.Ay.of(t).fieldCodes("mandate_id").includes(r.O4.INVALID_VALUE)?this.notify.error("auto_topup_settings_invalid_easy_payment_method"):r.Ay.of(t).code===r.O4.OTHER_PROCESS_PENDING?this.notify.error("auto_topup_settings_error_other_process_pending"):this.notify.error("auto_topup_settings_save_error")}finally{this.isSavePending=!1}}getSubscription(){let t=this.session.mobileSubscription||null;return this.$route.query.subscriptionId?this.session.mobileSubscriptions?this.session.mobileSubscriptions.find(t=>
47t.id===this.$route.query.subscriptionId)||t:null:t}get isMandateWarningShowing(){return!1===this.ownsSelectedMandate}get isMainOptionsDisabled(){return this.isSavePending||this.isMandateWarningShowing}get isModalitiesDisabled(){return this.isSavePending||this.isMandateWarningShowing||!this.settings.smsTopup&&!this.autoEnabled}get isAutoTopupTriggersDisabled(){return this.isSavePending||this.isMandateWarningShowing||!this.autoEnabled}get mandateLabel(){if(!this.settings)return null;if(!this.settings.mandateId)return"";let t=this.mandateService.eligibleMandates.find(t=>t.id===this.settings.mandateId);if(!t)return null;let e=t.method.toLowerCase(),i=this.$t(`mandate_method__${e}`);return`${i} ${t.userFriendlyLabel}`}get ownsSelectedMandate(){let t=this.getMandate();return t?t.isOwner:null}clearMandateSetting(){this.settings&&(this.settings.mandateId=void 0)}get topupLabel(){if(!this.settings||!this.settings.product)return"";let t=(0,z.up)(this.settings.product.price,"two_if_significant"),e=this.settings.product.focus?this.$t(`focus_${this.settings.product.focus}`):null;return e?`${t} ${e}`:`${t}`}get productSupportsTexting(){return!this.subscription||(0,o.GN)(this.subscription.product)}get productIsOnlyData(){return!this.subscription||(0,o.HY)(this.subscription.product)}async dismiss(){!this.isSavePending&&(!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&(this.removeSubscriptionIdFromQuery(),this.$emit("dismiss"))}get isDirty(){return this.autoEnabled!==this.originalAutoEnabled||!(0,$.c2)(this.settings,this.originalSettings)}getMandate(){return this.settings&&this.settings.mandateId&&this.mandateService.eligibleMandates&&this.mandateService.eligibleMandates.find(t=>t.id===this.settings.mandateId)||null}removeSubscriptionIdFromQuery(){this.$route.query.subscriptionId&&delete this.$route.query.subscriptionId}get stepsApi(){return this.$refs.steps}pushStep(t){this.stepsApi.pushStep(t)}popStep(t){this.stepsApi.popStep(t)}constructor(...t){super(...t),this.loading=!1,this.isSavePending=!1,this.subscription=null,this.originalSettings=null,this.settings=null,this.originalAutoEnabled=!1,this.autoEnabled=!1,this.topups=[],this.thresholds=[1,5,10,15,20,25,30,35,40,45,50,55,60],this.selectMandateError=!1}}(0,a.Cg)([(0,d.y_)()],q.prototype,"productService",void 0),(0,a.Cg)([(0,d.y_)()],q.prototype,"uwa",void 0),(0,a.Cg)([(0,d.y_)()],q.prototype,"mandateService",void 0),(0,a.Cg)([(0,d.y_)()],q.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],q.prototype,"confirm",void 0);var R=q=(0,a.Cg)([(0,d.uA)({components:{SidePanelItem:m.A,Steps:v.A,Step:g.A,TopupSelector:B.A,MandateSelector:N,RadioGroup:j.A,SubscriptionDetails:D.A,Checkbox:A.A,MvForm:p.A,CallToAction:c.A,InlineNotification:T.A}})],q),U=(0,S.A)(R,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.subscription&&"prepaid"===t.subscription.type||t.loading?e("MvForm",{staticClass:"auto-topup-settings",attrs:{name:"autoTopupSettings"}},[e("Steps",{ref:"steps"},[e("Step",{attrs:{id:"initial_step",stepName:"initial"}},[e("header",[e("h2",[t._v(t._s(t.$t("auto_topup_settings.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),t.settings?e("div",{staticClass:"my-viking-sidePanel__main",class:{noPaddingTop:t.isMandateWarningShowing},attrs:{"data-qa":"auto-topup-settings-spc-main"}},[t.isMandateWarningShowing?e("div",{staticClass:"auto-topup-settings__foreignPaymentMethod"},[e("InlineNotification",{attrs:{appearance:"inSidePanel",notificationType:"info"},scopedSlots:t._u([{key:"default",fn:function(){return[t._v(" "+t._s(t.$t("auto_topup_settings.foreign_mandate_prompt"))+" ")]},proxy:!0},{key:"cta",fn:function(){return[e("a",{staticClass:"auto-topup-settings__clearMandateLink linkWithArrow linkWithArrow--infoPanel",attrs:{href:"javascript:"},on:{click:t.clearMandateSetting}},[t._v(" "+t._s(t.$t("auto_topup_settings.decouple_mandate"))+" ")])]},proxy:!0}],null,!1,0x179f0015)})],1):t._e(),e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("auto_topup_settings.intro"),expression:"$t('auto_topup_settings.intro')"}],staticClass:"sidePanelIntro intro"}),e("div",{staticClass:"option-group end-section"}
47,[e("SubscriptionDetails",{staticClass:"current-sim",attrs:{subscription:t.subscription,withIcon:!0}}),e("Checkbox",{attrs:{id:"auto_topup_enabled",label:t.$t("auto_topup_settings.enable_auto_topup"),disabled:t.isMainOptionsDisabled},model:{value:t.autoEnabled,callback:function(e){t.autoEnabled=e},expression:"autoEnabled"}}),t.productSupportsTexting?e("Checkbox",{attrs:{id:"sms_topup_enabled",label:t.$t("auto_topup_settings.enable_sms_topup"),disabled:t.isMainOptionsDisabled,tip:t.$t("auto_topup_settings.sms_topup_tip")},model:{value:t.settings.smsTopup,callback:function(e){t.$set(t.settings,"smsTopup",e)},expression:"settings.smsTopup"}}):t._e()],1),e("div",{staticClass:"option-group end-section"},[e("SidePanelItem",{attrs:{id:"select_topup",title:t.$t("auto_topup_settings.amount"),value:t.topupLabel,disabled:t.isModalitiesDisabled},on:{edit:function(e){return t.pushStep("topup")}}}),e("Checkbox",{attrs:{id:"vp_first",label:t.$t("auto_topup_settings.viking_points_first"),disabled:t.isModalitiesDisabled},model:{value:t.settings.vikingPointsFirst,callback:function(e){t.$set(t.settings,"vikingPointsFirst",e)},expression:"settings.vikingPointsFirst"}}),e("SidePanelItem",{attrs:{id:"select_mandate",title:t.$t("auto_topup_settings.mandate"),value:t.mandateLabel,valueLength:25,disabled:t.isModalitiesDisabled,invalid:t.selectMandateError},on:{edit:function(e){return t.pushStep("mandate")}}})],1),e("div",{staticClass:"option-group option-group--noBottomSpacing"},[e("h3",{staticClass:"option-group-title"},[t._v(t._s(t.$t("auto_topup_settings.trigger_title")))]),e("Checkbox",{attrs:{id:"trigger_bundle_expiry",label:t.$t("auto_topup_settings.trigger_bundle_expiry"),disabled:t.isAutoTopupTriggersDisabled,tip:t.$t("auto_topup_settings.trigger_bundle_expiry_tip")},model:{value:t.settings.triggers.bundleExpiry.enabled,callback:function(e){t.$set(t.settings.triggers.bundleExpiry,"enabled",e)},expression:"settings.triggers.bundleExpiry.enabled"}}),e("Checkbox",{attrs:{id:"trigger_low_data",label:t.$t("auto_topup_settings.trigger_low_data"),disabled:t.isAutoTopupTriggersDisabled,tip:t.$t("auto_topup_settings.trigger_low_data_tip")},model:{value:t.settings.triggers.dataLow.enabled,callback:function(e){t.$set(t.settings.triggers.dataLow,"enabled",e)},expression:"settings.triggers.dataLow.enabled"}}),t.productIsOnlyData?t._e():e("Checkbox",{attrs:{id:"trigger_low_credit",label:t.$t("auto_topup_settings.trigger_low_credit"),disabled:t.isAutoTopupTriggersDisabled,tip:t.$t("auto_topup_settings.trigger_low_credit_tip")},model:{value:t.settings.triggers.creditLow.enabled,callback:function(e){t.$set(t.settings.triggers.creditLow,"enabled",e)},expression:"settings.triggers.creditLow.enabled"}}),t.productIsOnlyData?t._e():e("SidePanelItem",{attrs:{id:"trigger_low_credit__threshold",title:t.$t("auto_topup_settings.trigger_low_credit_threshold"),value:t._f("money")(t.settings.triggers.creditLow.threshold),disabled:!t.settings.triggers.creditLow.enabled},on:{edit:function(e){return t.pushStep("low-credit-threshold")}}})],1)]):t._e(),t.isMandateWarningShowing?t._e():e("footer",[e("CallToAction",{staticClass:"confirm",attrs:{once:t.save,type:"submit"}}
47,[t._v(t._s(t.$t("save")))])],1)]),t.settings?e("Step",{attrs:{id:"topup_step",stepName:"topup"}},[e("header",[e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"back",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.popStep()}}},[e("span",[t._v(t._s(t.$t("back")))])])]),e("div",{staticClass:"my-viking-sidePanel__main",attrs:{"data-qa":"auto-topup-settings-spc-main"}},[e("div",{staticClass:"option-group"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("auto_topup_settings.topup_intro"),expression:"$t('auto_topup_settings.topup_intro')"}],staticClass:"option-group__description intro"}),e("TopupSelector",{attrs:{narrow:!0,asRadioGroup:!0,product:t.subscription.product,autoselect:!1},on:{input:function(e){return t.popStep(250)}},model:{value:t.settings.product,callback:function(e){t.$set(t.settings,"product",e)},expression:"settings.product"}})],1)])]):t._e(),t.settings?e("Step",{attrs:{id:"mandate_step",stepName:"mandate"}},[e("header",[e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"back",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.popStep()}}},[e("span",[t._v(t._s(t.$t("back")))])])]),e("div",{staticClass:"my-viking-sidePanel__main",attrs:{"data-qa":"auto-topup-settings-spc-main"}},[e("div",{staticClass:"option-group"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("auto_topup_settings.mandate_intro"),expression:"$t('auto_topup_settings.mandate_intro')"}],staticClass:"option-group__description intro"}),e("MandateSelector",{attrs:{mandates:t.mandateService.eligibleMandates,allowAutoSelect:!1},on:{input:function(e){return t.popStep(250)}},model:{value:t.settings.mandateId,callback:function(e){t.$set(t.settings,"mandateId",e)},expression:"settings.mandateId"}})],1)])]):t._e(),t.settings?e("Step",{attrs:{id:"threshold_step",stepName:"low-credit-threshold"}},[e("header",[e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"back",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.popStep()}}},[e("span",[t._v(t._s(t.$t("back")))])])]),e("div",{staticClass:"my-viking-sidePanel__main",attrs:{"data-qa":"auto-topup-settings-spc-main"}},[e("div",{staticClass:"option-group"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("auto_topup_settings.low_credit_threshold_intro"),expression:"$t('auto_topup_settings.low_credit_threshold_intro')"}],staticClass:"option-group__description intro"}),e("RadioGroup",{attrs:{options:t.thresholds},on:{input:function(e){return t.popStep(250)}},scopedSlots:t._u([{key:"default",fn:function({option:e}){return[t._v(" "+t._s(t._f("money")(e))+" ")]}}],null,!1,0x73818338),model:{value:t.settings.triggers.creditLow.threshold,callback:function(e){t.$set(t.settings.triggers.creditLow,"threshold",e)},expression:"settings.triggers.creditLow.threshold"}})],1)])]):t._e()],1)],1):t._e()},[],!1,null,"b013fb4a",null).exports,V=i(90004);let W=(0,n.tZ)("BroadbandCombinationBenefitSpc");class Q extends d.lD{async loadComboAdvantages(){this.loading=!0;try{if(!this.session.broadbandSubscription)throw new V.p("No active broadband subscription");this.advantages=await this.subscriptionService.getActiveComboAdvantages(this.session.broadbandSubscription),this.loading=!1}catch(t){W.error("Could not load advantages",t),this.notifyGenericErrors(t)}}get monthlyComboAdvantagesTotal(){return this.advantages.reduce((t,e)=>t+e.amount,0)}get formattedDiscount(){return this.monthlyComboAdvantagesTotal?(0,z.up)(this.monthlyComboAdvantagesTotal,"always_two"):""}get hasDiscountText(){return this.$t("bb_combo_spc.description_{discount}",{discount:this.formattedDiscount})}get hasNoDiscountText(){return this.$t("bb_combo_spc.description_no_discount")}dismiss(){this.$emit("dismiss")}openSubscriptionOffer(){this.goTo(this.$t("url_offer_subscription").toString(),!0)}openPrepaidOffer(){this.goTo(this.$t("url_offer_prepaid").toString(),!0)}constructor(...t){super(...t),this.loading=!0,this.advantages=[]}}(0,a.Cg)([(0,d.y_)()],Q.prototype,"goTo",void 0),(0,a.Cg)([(0,d.y_)()],Q.prototype,"subscriptionService",void 0),(0,a.Cg)([(0,d.y_)()],Q.prototype,"session",void 0),(0,a.Cg)([(0,d.ox)("session.broadbandSubscription.id",{immediate:!0})],Q.prototype,"loadComboAdvantages",null);var Y=Q=(0,a.Cg)([(0,d.uA)({components:{CallToAction:c.A,Loading:_.A}})],Q),G=(0,S.A)(Y,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"bbComboBenefitSpc"},[e("header",[e("h2",[t._v(t._s(t.$t("bb_combo_spc.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main",attrs:{"data-qa":"bb-combo-benefit-spc-main"}},[t.loading?e("Loading"):e("div",{staticClass:"option-group"},[t.monthlyComboAdvantagesTotal>0?e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.hasDiscountText,expression:"hasDiscountText"}],staticClass:"option-group__description"}):[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.hasNoDiscountText,expression:"hasNoDiscountText"}],staticClass:"option-group__description"}),e("img",{staticClass:"bbComboBenefitSpc__image",attrs:{src:i(32529),srcset:i(32529)+" 1x, "+i(67219)+" 2x",alt:""}})]],2)],1),t.advantages.length?e("footer",{staticClass:"sidePanelFooter"},[t.monthlyComboAdvantagesTotal>0?e("CallToAction",{attrs:{once:t.dismiss,type:"submit"}},[t._v(" "+t._s(t.$t("close"))+" ")]):[e("CallToAction",{attrs:{once:t.openSubscriptionOffer,type:"submit"}},[t._v(" "+t._s(t.$t("bb_combo_spc.get_a_subscription"))+" ")]),e("div",{staticClass:"sidePanelFooter__linkCta"},[e("CallToAction",{staticClass:"reset-filters",attrs:{once:t.openPrepaidOffer,appearance:"link"}},[t._v(" "+t._s(t.$t("bb_combo_spc.get_a_prepaid"))+" ")])],1)]],2):t._e()])},[],!1,null,"4c94b29e",null).exports,H=i(33584);class Z extends d.lD{}(0,a.Cg)([(0,d.y_)()],Z.prototype,"session",void 0);var J=Z=(0,a.Cg)([(0,d.uA)({components:{CopyField:H.A,CallToAction:c.A}})],Z),K=(0,S.A)(J,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"bbEasySwitchOutSpc"},[e("header",[e("h2",[t._v(t._s(t.$t("bb_easy_switch_out.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.$emit("dismiss")}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("bb_easy_switch_out.description"),expression:"$t('bb_easy_switch_out.description')"}],staticClass:"bbEasySwitchOutSpc__description end-section"}),e("div",{staticClass:"copyFieldHeader"}
47,[t._v(t._s(t.$t("bb_easy_switch_out.client_number")))]),e("CopyField",{model:{value:t.session.profile.id,callback:function(e){t.$set(t.session.profile,"id",e)},expression:"session.profile.id"}}),e("div",{staticClass:"copyFieldHeader"},[t._v(t._s(t.$t("bb_easy_switch_out.easy_switch_id")))]),e("CopyField",{model:{value:t.session.subscription.easySwitchId,callback:function(e){t.$set(t.session.subscription,"easySwitchId",e)},expression:"session.subscription.easySwitchId"}})],1),e("footer",[e("CallToAction",{attrs:{once:()=>t.$emit("dismiss"),type:"submit"}},[t._v(" "+t._s(t.$t("close"))+" ")])],1)])},[],!1,null,"33666d7f",null).exports,X=i(42580);class tt extends d.lD{get formattedInstallationAddress(){let t=this.session.broadbandSubscriptions?.find(t=>t.id===this.subscriptionId)||this.session.broadbandSubscription;return t?(0,X.H8)(t.installationAddress,this.locale,this.$t.bind(this),"multi_line"):""}async dismiss(){this.$emit("dismiss")}}(0,a.Cg)([(0,d.y_)()],tt.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],tt.prototype,"broadbandService",void 0),(0,a.Cg)([(0,d.kv)({type:String,required:!1,default:null})],tt.prototype,"title",void 0),(0,a.Cg)([(0,d.kv)({type:String,required:!1,default:null})],tt.prototype,"subscriptionId",void 0);var te=tt=(0,a.Cg)([(0,d.uA)({components:{CallToAction:c.A}})],tt),ti=(0,S.A)(te,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"installationAddress"},[e("header",[e("h2",[t._v(t._s(t.title||t.$t("registration.installation_address")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main installationAddress__main"},[t.formattedInstallationAddress?e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.formattedInstallationAddress,expression:"formattedInstallationAddress"}],staticClass:"address"}):e("div",{staticClass:"error"},[t._v(t._s(t.$t("something_went_wrong")))])]),e("footer",[e("CallToAction",{attrs:{once:t.dismiss}},[t._v(t._s(t.$t("close")))])],1)])},[],!1,null,null,null).exports,ts=i(60848);class ta extends d.lD{dismiss(){this.$emit("dismiss")}}(0,a.Cg)([(0,d.y_)()],ta.prototype,"session",void 0);var tn=ta=(0,a.Cg)([(0,d.uA)({components:{FixedLineSelector:ts.A,SidePanelItem:m.A,MvForm:p.A}})],ta),to=(0,S.A)(tn,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"fixedLineSelectorSpc",attrs:{name:"fixedLineSelection"}},[e("header",[e("h2",[t._v(t._s(t.$t("change_your_fixed_line")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("FixedLineSelector",{staticClass:"fixedLineSelectorSpc__fixedLineSelector option-group",attrs:{maxItems:5}}),e("section",{staticClass:"option-group"},[e("h3",{staticClass:"option-group-title"},[t._v(t._s(t.$t("add_a_fixed_line_title")))]),e("SidePanelItem",{attrs:{to:t.$t("look_at_our_internet_offer_link_url"),title:t.$t("look_at_our_internet_offer_link_text"),externalLink:!0}
47}),e("SidePanelItem",{attrs:{to:t.$t("look_at_our_internet_combo_offer_link_url"),title:t.$t("look_at_our_internet_combo_offer_link_text"),externalLink:!0}})],1)],1)])},[],!1,null,null,null).exports,tr=i(3231);let tl=(0,n.tZ)("HardwareReturnSpc");class td extends d.lD{async fetchHardwareReturn(){let t=Number(this.$route.query.returnId);if(!t)return;let e=await this.broadbandService.getHardwareReturnInfo(this.session.broadbandSubscription);this.hardwareReturn=e.find(e=>Number(e.id)===t)||null,this.hardwareReturn&&(this.shippingLabelUrl=await this.broadbandService.getHardwareReturnShippingLabelUrl(this.session.broadbandSubscription,this.hardwareReturn))}get title(){return this.subscription.wifiBoosters.find(t=>t.product.variant===this.$route.query.variant)?.product.title}get subscription(){return this.session.broadbandSubscription}get hardwareItems(){return this.hardwareReturn?this.hardwareReturn.items.reduce((t,e)=>(t[e.type]=(t[e.type]||0)+1,t),{}):{}}get hasEnabledBoosters(){return this.subscription.wifiBoosters.filter(t=>t.product.variant===this.$route.query.variant).some(t=>"enabled"===t.state)}navigateToTerminateBooster(){this.$router.push({name:tr.A.broadbandTerminateWifiBooster,query:{variant:this.$route.query.variant}}
47)}dismiss(){this.$emit("dismiss")}async requestShippingLabel(){try{this.hardwareReturn&&(this.hardwareReturn=await this.broadbandService.createHardwareReturnShippingLabel(this.subscription,this.hardwareReturn),this.shippingLabelUrl=await this.broadbandService.getHardwareReturnShippingLabelUrl(this.subscription,this.hardwareReturn),this.shippingLabelUrl&&this.downloadUrl(this.shippingLabelUrl,"shipping-label"))}catch(t){tl.error("Failed to request shipping label",t),this.notifyGenericErrors(t)}}downloadUrl(t,e){let i=document.createElement("a");i.href=t,i.download=e,i.click()}constructor(...t){super(...t),this.hardwareReturn=null,this.shippingLabelUrl=null}}(0,a.Cg)([(0,d.y_)()],td.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],td.prototype,"broadbandService",void 0),(0,a.Cg)([(0,d.y_)()],td.prototype,"config",void 0),(0,a.Cg)([(0,d.ox)("$route.query",{immediate:!0,deep:!0})],td.prototype,"fetchHardwareReturn",null);var tc=td=(0,a.Cg)([(0,d.uA)({components:{SidePanelItem:m.A}})],td),tu=(0,S.A)(tc,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"HardWareReturnSpc"},[e("header",[e("h2",[t._v(t._s(t.$t("bb_hardware_to_return.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),t.hardwareReturn?e("div",{staticClass:"my-viking-sidePanel__main sidePanelContentMain sidePanel--startAligned"},[e("div",[e("h4",[t._v(t._s(t.$t("bb_hardware_to_return.box_content")))]),e("ul",{staticClass:"diamondList"},t._l(t.hardwareItems,function(i,s){return e("li",{key:s},[t._v(" "+t._s(t.$t(`bb_hardware_to_return.hardware_item_name_${s}`))+" x "+t._s(i)+" ")])}),0)]),"open"===t.hardwareReturn.state||"ready_for_shipping"===t.hardwareReturn.state?e("div",[e("h4",[t._v(t._s(t.$t("bb_hardware_to_return.next_step__title")))]),e("p",[t._v(t._s(t.$t("bb_hardware_to_return.next_step__description")))])]):t._e(),"open"===t.hardwareReturn.state&&t.hasEnabledBoosters?e("div",[e("SidePanelItem",{attrs:{title:t.$t("bb_hardware_to_return.add_items__title"),tip:t.$t("bb_hardware_to_return.add_items__tip")},on:{edit:function(e){return t.navigateToTerminateBooster()}}}
47)],1):t._e(),[e("ul",{staticClass:"sidePanelContentMain__mainBottom sidepanelBottomActionsList"},[e("li",["open"===t.hardwareReturn.state?[e("button",{staticClass:"linkWithIcon linkWithIcon--iconDownload download",attrs:{type:"button"},on:{click:function(e){return t.requestShippingLabel()}}},[t._v(" "+t._s(t.$t("wifi_booster.download_shipping_label"))+" ")])]:"ready_for_shipping"===t.hardwareReturn.state?[t.shippingLabelUrl?e("a",{staticClass:"linkWithIcon linkWithIcon--iconDownload download",attrs:{href:t.shippingLabelUrl}},[t._v(" "+t._s(t.$t("wifi_booster.redownload_label"))+" ")]):t._e()]:[t.hardwareReturn.trackingUrl?e("a",{attrs:{href:t.hardwareReturn.trackingUrl,target:"_blank"}},[t._v(" "+t._s(t.$t("track_hardware_return.track_shipment"))+" ")]):t._e()]],2)])]],2):t._e()])},[],!1,null,null,null).exports;class tp extends d.lD{get title(){return this.subscription.wifiBoosters.find(t=>t.product.variant===this.$route.query.variant)?.product.title}get subscription(){return this.session.broadbandSubscription}navigateToTerminateBooster(){this.$router.push({name:tr.A.broadbandTerminateWifiBooster,query:{variant:this.$route.query.variant}}
47)}dismiss(){this.$emit("dismiss")}get hasEnabledBoosters(){return this.subscription.wifiBoosters.some(t=>"enabled"===t.state)}}(0,a.Cg)([(0,d.y_)()],tp.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],tp.prototype,"config",void 0);var th=tp=(0,a.Cg)([(0,d.uA)({components:{SidePanelItem:m.A}})],tp),t_=(0,S.A)(th,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"WifiBoosterSpc"},[e("header",[e("h2",[t._v(t._s(t.title))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main sidePanelContentMain"},[e("div",[e("SidePanelItem",{attrs:{to:t.$t("wifi_booster.installation_faq_url"),externalLink:!0,title:t.$t("wifi_booster.installation_faq_title"),tip:t.$t("wifi_booster.installation_faq_tip")}}),t.hasEnabledBoosters?[e("SidePanelItem",{attrs:{title:t.$t("wifi_booster.terminate_wifi_booster_cta"),tip:t.$t("wifi_booster.terminate_wifi_booster_tip")},on:{edit:function(e){return t.navigateToTerminateBooster()}}})]:t._e()],2)])])},[],!1,null,null,null).exports,tm=i(72119),tg=i(83487);class tv extends d.lD{get birthDate(){return this.value.birthDate||null}get birthPlace(){return this.value.birthPlace||""}set birthDate(t){this.$emit("input",{...this.value,birthDate:t})}set birthPlace(t){this.$emit("input",{...this.value,birthPlace:t})}get incompleteUserData(){return!!this.session.profile&&(!this.session.profile.birthDate||!this.session.profile.birthPlace)}}(0,a.Cg)([(0,d.y_)()],tv.prototype,"session",void 0),(0,a.Cg)([(0,d.kv)()],tv.prototype,"value",void 0);var tf=tv=(0,a.Cg)([(0,tg.My)(),(0,d.uA)({components:{DateInput:tm.A,Field:u.A}})],tv),ty=(0,S.A)(tf,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.incompleteUserData?e("div",{staticClass:"option-group end-section missingProfileData"},[e("div",{staticClass:"option-group__description intro"},[t._v(" "+t._s(t.$t("change_email.missing_information"))+" ")]),t.session.profile.birthDate?t._e():e("Field",{attrs:{label:t.$t("field_birth_date")}},[e("DateInput",{directives:[{name:"validate",rawName:"v-validate",value:"required",expression:"'required'"}],attrs:{name:"birth_date",required:""},model:{value:t.birthDate,callback:function(e){t.birthDate=e},expression:"birthDate"}})],1),t.session.profile.birthPlace?t._e():e("Field",{attrs:{label:t.$t("field_birth_place")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.birthPlace,expression:"birthPlace"},{name:"validate",rawName:"v-validate",value:{regex:/^\D+$/,max:40},expression:"{ regex: /^\\D+$/, max: 40 }"}],attrs:{name:"birth_place",autocomplete:"off",type:"text",required:""},domProps:{value:t.birthPlace},on:{input:function(e){e.target.composing||(t.birthPlace=e.target.value)}}})])],1):t._e()},[],!1,null,null,null).exports;let tb=(0,n.tZ)("EmailSpc");class tC extends d.lD{async created(){this.session.profile&&(this.email=this.session.profile.email||"")}async save(){this.uwaValidationErrors={},this.error=!1;try{if(!this.session.profile)return;if(!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20);return}this.saving=!0,await this.customerService.updateProfile(this.otherProfileData),await this.customerService.updateEmail(this.email,this.password),this.saving=!1,this.$emit("dismiss"),this.notify.success("change_email.email_updated")}catch(i){this.saving=!1;let t=r.Ay.of(i);if(t.code===r.O4.CANCELLED)return;let e=(0,y.v)(t,[{code:r.O4.EMAIL_ADDRESS_ALREADY_IN_USE,field:"email",on:"email",message:"email_address_taken"},{code:r.O4.EMAIL_ADDRESS_ALREADY_IN_USE,on:"email",message:"email_address_taken"},{code:r.O4.INVALID_VALUE,field:"email",on:"email",message:"email_invalid"},{code:r.O4.INVALID_VALUE,field:"old_password",on:"password",message:"password_incorrect"},{code:r.O4.INVALID_VALUE,field:"password",on:"password",message:"password_incorrect"}]);this.uwaValidationErrors=e.result,e.firstIssue?(this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20)
47):(tb.error("Failed to update email address",i),this.error=!0,this.notifyGenericErrors(i))}}async dismiss(){!this.saving&&(!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$emit("dismiss")}get isDirty(){return!!this.session.profile&&this.session.profile.email!==this.email}constructor(...t){super(...t),this.saving=!1,this.email="",this.password="",this.error=!1,this.uwaValidationErrors={},this.otherProfileData={}}}(0,a.Cg)([(0,d.y_)()],tC.prototype,"customerService",void 0),(0,a.Cg)([(0,d.y_)()],tC.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],tC.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],tC.prototype,"domUtils",void 0),(0,a.Cg)([(0,d.y_)()],tC.prototype,"stepupMode",void 0);var tw=tC=(0,a.Cg)([(0,d.uA)({components:{MissingProfileData:ty,InlineNotification:T.A,MvForm:p.A,Field:u.A,CallToAction:c.A,Password:h.A}})],tC),tS=(0,S.A)(tw,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.session.profile?e("MvForm",{staticClass:"email-spc",attrs:{name:"changeEmail"}},[e("header",[e("h2",[t._v(t._s(t.$t("change_email.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main",class:{noPaddingTop:t.error}},[t.error?e("InlineNotification",{attrs:{notificationType:"error",appearance:"inSidePanel"}},[t._v(" "+t._s(t.$t("something_went_wrong"))+" ")]):t._e(),e("div",{staticClass:"option-group end-section"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("change_email.intro"),expression:"$t('change_email.intro')"}],staticClass:"option-group__description intro"}),e("Field",{attrs:{label:t.$t("change_email.email"),validationErrors:t.$tList(t.uwaValidationErrors.email,"validationError__")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"},{name:"validate",rawName:"v-validate",value:{email:!0},expression:"{ email: true }"}],attrs:{required:"",autocomplete:"email",type:"text",name:"email"},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}})])],1),e("MissingProfileData",{model:{value:t.otherProfileData,callback:function(e){t.otherProfileData=e},expression:"otherProfileData"}}),"password"===t.stepupMode?e("div",{staticClass:"option-group end-section"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("change_email.password_intro"),expression:"$t('change_email.password_intro')"}],staticClass:"option-group__description intro"}),e("Field",{attrs:{label:t.$t("change_email.password"),validationErrors:t.$tList(t.uwaValidationErrors.password,"validationError__")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],attrs:{required:"",autocomplete:"password",name:"password","data-vv-as":t.$t("change_email.password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)],1):t._e()],1),e("footer",[e("CallToAction",{staticClass:"confirm",attrs:{once:t.save,type:"submit"}},[t._v(t._s("automatic"===t.stepupMode?t.$t("save_with_stepup"):t.$t("save")))])],1
47)]):t._e()},[],!1,null,null,null).exports;let tM=["invited","pending","active","paused"];var tA=i(3590),tk=i(47352),tI=i(44739),tx=i(60321),tN=i.n(tx),tT=i(24242),tD=i(10837),t$=i(78906);class tP extends d.lD{mounted(){this.session.company?this.filter=this.filterFromQuery:this.$emit("dismiss")}get company(){return(0,t$._w)(this.session.company)}async getCompanyReductions(){if(this.currentReductions=null,this.config.featureFlags.useOnlyPresentReductionsInEmployeeFilter)this.currentReductions=await this.uwa.getCompanyPresentReductions(this.company.id);else{let t=(await this.productService.getPostpaidProducts()).filter(t=>t.isB2bProduct).map(t=>t.monthly);t.sort(),this.currentReductions=tN()(t)}this.$route.query.reductions||(this.filter.reduction=this.filterFromQuery.reduction)}async submit(){this.filterFromQuery=this.filter,await (0,tI.yy)(1),this.$emit("dismiss")}async resetFilter(){this.filterFromQuery=this.defaultFilter,await (0,tI.yy)(1),this.$emit("dismiss")}async dismiss(){!this.saving&&(!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$emit("dismiss")}get defaultFilter(){return{status:tM,reduction:this.currentReductions||[]}}get filterFromQuery(){let t=this.$route.query,e={...this.defaultFilter};return"string"==typeof t.employeeStatus&&(e.status=t.employeeStatus.split(",")),"string"==typeof t.employeeReductions&&(e.reduction=t.employeeReductions.split(",").map(t=>+t)),e}set filterFromQuery(t){let e=(0,tk.Bb)({...this.$route.query,employeeStatus:(0,$.c2)(t.status,this.defaultFilter.status)?void 0:t.status?.join(","),employeeReductions:(0,$.c2)(t.reduction,this.defaultFilter.reduction)?void 0:t.reduction?.join(",")});this.$router.push({...this.$route,query:e})}get isDirty(){return!(0,$.c2)(this.filter,this.filterFromQuery)}formatReduction(t){return this.$t("filter_employees.postpaid_{amount}_per_month",{amount:(0,z.up)((0,tA.SB)(t),"always_two")})}constructor(...t){super(...t),this.FILTERABLE_EMPLOYEE_STATES=tM,this.currentReductions=null,this.filter={reduction:[],status:[]},this.loading=!1,this.error=null,this.employee=null,this.saving=!1,this.b2bPostpaidProduct=null}}(0,a.Cg)([(0,d.y_)()],tP.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],tP.prototype,"productService",void 0),(0,a.Cg)([(0,d.y_)()],tP.prototype,"employeeService",void 0),(0,a.Cg)([(0,d.y_)()],tP.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],tP.prototype,"uwa",void 0),(0,a.Cg)([(0,d.y_)()],tP.prototype,"config",void 0),(0,a.Cg)([(0,d.ox)("session.company.id",{immediate:!0})],tP.prototype,"getCompanyReductions",null);var tL=tP=(0,a.Cg)([(0,d.uA)({components:{CallToAction:c.A,MultiSelect:tT.A,MvForm:p.A,EmployeeStateTag:tD.A}})],tP),tE=(0,S.A)(tL,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"employeeFilterSpc employee-filter-spc",attrs:{name:"employeeFilter"}},[e("header",[e("h2",[t._v(t._s(t.$t("filter_employees.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("filter_employees.intro"),expression:"$t('filter_employees.intro')"}],staticClass:"sidePanelIntro intro"}),e("div",{staticClass:"option-group end-section"},[e("h3",{staticClass:"option-group-title"},[t._v(t._s(t.$t("filter_employees.products")))]),t.currentReductions?e("MultiSelect",{staticClass:"reduction-selection",attrs:{options:t.currentReductions,appearance:"in-sidepanel"},scopedSlots:t._u([{key:"default",fn:function({option:e}){return[t._v(" "+t._s(t.formatReduction(e))+" ")]}}],null,!1,0x3bf1faca),model:{value:t.filter.reduction,callback:function(e){t.$set(t.filter,"reduction",e)},expression:"filter.reduction"}}):e("MultiSelect",{staticClass:"reduction-selection",attrs:{options:[1,2,3],loading:!0,appearance:"in-sidepanel"}},[e("span",{staticClass:"shimmer"})])],1),e("div",{staticClass:"option-group"},[e("h3",{staticClass:"option-group-title"},[t._v(t._s(t.$t("filter_employees.status")))]),e("MultiSelect",{staticClass:"status-selection",attrs:{options:t.FILTERABLE_EMPLOYEE_STATES,appearance:"in-sidepanel"},scopedSlots:t._u([{key:"default",fn:function({option:t}){return[e("div",{staticClass:"employeeFilterSpc__multiSelectEmployeeStateTag"},[e("EmployeeStateTag",{attrs:{state:t}})],1)]}}]),model:{value:t.filter.status,callback:function(e){t.$set(t.filter,"status",e)},expression:"filter.status"}})],1)]),e("footer",{staticClass:"sidePanelFooter"},[e("CallToAction",{attrs:{once:t.submit,type:"submit"}},[t._v(" "+t._s(t.$t("apply_filters"))+" ")]),e("div",{staticClass:"sidePanelFooter__linkCta"},[e("CallToAction",{staticClass:"reset-filters",attrs:{once:t.resetFilter,appearance:"link"}},[t._v(" "+t._s(t.$t("reset_filters"))+" ")])],1)],1)])},[],!1,null,"6b4b0263",null).exports,tO=i(37882),tz=i(99239),tj=i(27114),tB=i(23366);let tF=(0,n.tZ)("EmployeeSpc");class tq extends d.lD{get employeeId(){return parseInt(this.id,10)}get profileFromEmployee(){return this.employee?{firstName:this.employee.firstName,lastName:this.employee.lastName,email:this.employee.invitation.email}:null}get editRoute(){return this.session.company?{name:tr.A.editEmployee,params:{companyId:this.session.company.id,employeeId:this.employeeId}}:{}}async created(){try{if(this.loading=!0,!this.session.company)return void this.$emit("dismiss");let t=await this.employeeService.getEmployee(this.session.company,this.employeeId);
47if(!t){this.error=this.$t("this_link_is_invalid__go_back_and_try_again").toString(),this.loading=!1;return}this.employee=t,this.areInlineEditsAllowed&&(this.b2bPostpaidProduct=await this.getCurrentB2bPostpaidProduct(this.employee.reduction),this.allowance=this.employee.outOfBundleAllowanceNextMonth??this.employee.outOfBundleAllowance),this.loading=!1}catch(t){tF.error("Something went wrong while loading the employee",t),this.loading=!1,this.error=this.$t("this_link_is_invalid__go_back_and_try_again").toString()}}get formattedCurrentAllowance(){return this.employee?this.formatAllowance(this.employee.outOfBundleAllowance):""}formatAllowance(t){return 1/0===t?this.$t("oob_allowance_selector.cover_all_costs"):(0,z.up)(t,"always_two")}get pendingAllowanceTip(){let t=(0,t$.bp)(this.employee);return"pending"===t.state?this.$t("employee_details.oob_allowance_not_editable_reason"):void 0!==t.outOfBundleAllowanceNextMonth&&t.outOfBundleAllowance!==t.outOfBundleAllowanceNextMonth?this.$t("employee_details.pending_oob_allowance_change_{amount}",{amount:this.formatAllowance(t.outOfBundleAllowanceNextMonth)}):null}async getCurrentB2bPostpaidProduct(t){try{let[e,i]=await Promise.all([this.productService.getPostpaidProducts("lineup-2020",void 0),this.productService.getPostpaidProducts("flatrate",void 0)]);return[...e,...i].find(e=>e.monthly===t)||null}catch(t){return tF.error("Failed to load postpaid products",t),null}}async saveReductionAndClose(){if(!this.employee)throw new V.p("method invoked without employee");if(!this.b2bPostpaidProduct)throw new V.p("method invoked without product set");if(!this.isDirty)return void this.closeSidepanel();try{this.saving=!0,await this.employeeService.updateReduction(this.employee,this.b2bPostpaidProduct.monthly),this.notify.success("employee_details.reduction_has_been_updated"),this.closeSidepanel()}catch(t){tF.error("Failed to update reduction for employee",t),this.notifyGenericErrors(t)}finally{this.saving=!1}}async saveOobAllowanceAndClose(){if(!this.employee)throw new V.p("method invoked without employee");if(!this.isDirty)return void this.closeSidepanel();try{this.saving=!0,await this.employeeService.updateOobAllowance(this.employee,this.allowance),this.notify.success("employee_details.oob_allowance_has_been_updated"),this.closeSidepanel()}catch(t){tF.error("Failed to update OOB allowance for employee",t),this.notifyGenericErrors(t)}finally{this.saving=!1}}async saveNoteAndClose(){if(!this.employee)throw new V.p("method invoked without employee");if(!this.isDirty)return void this.closeSidepanel();try{this.saving=!0,await this.employeeService.updateNote(this.employee,this.note),this.notify.success("employee_details.note_has_been_updated"),this.closeSidepanel()}catch(t){tF.error("Failed to update note for employee",t),this.notifyGenericErrors(t)}finally{this.saving=!1}}async dismiss(){!this.saving&&(!this.isDirty||await this.confirmToLosingChanges())&&this.closeSidepanel()}closeSidepanel(){delete this.$route.query.id,this.$emit("dismiss")}confirmToLosingChanges(){return this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes"))}get monthlyReduction(){if(!this.employee)return null;let t=(0,z.up)((0,z.Yj)(this.employee.reduction,21),"always_two");return`${t} / ${this.$t("month").toString()}`}get isDirty(){if(!this.employee||"initial"===this.stepsApi.activeStep)return!1;let t=this.employee;return"reduction"===this.stepsApi.activeStep?!!this.b2bPostpaidProduct&&t.reduction!==this.b2bPostpaidProduct.monthly:"allowance"===this.stepsApi.activeStep?(t.outOfBundleAllowanceNextMonth??t.outOfBundleAllowance)!==this.allowance:"note"===this.stepsApi.activeStep&&this.note.trim()!==(t.note||"")}get isEmployeeInvited(){return!!this.employee&&"invited"===this.employee.state}get isEmployeePending(){return!!this.employee&&"pending"===this.employee.state}get isEmployeeActive(){return!!this.employee&&"active"===this.employee.state}get isEmployeePaused(){return!!this.employee&&"paused"===this.employee.state}get areInlineEditsAllowed(){return(this.isEmployeeInvited||this.isEmployeeActive)&&this.isEditingAllowed}get stepsApi(){return this.$refs.steps}get isEditingAllowed(){return this.session?.company?.state==="active"}get inviteLink(){if(!this.employee)return"";let t=this.employee.invitation.token;return this.absoluteUrl(`${this.$t("employee_details.url_invite_employee")}?employerInvitationToken=${t}`)}openReductionStep(){this.stepsApi.pushStep("reduction")}openNoteStep(){this.employee&&(this.note=this.employee.note||"",this.stepsApi.pushStep("note"))}async closeInlineEditWithoutSaving(){(!this.isDirty||await this.confirmToLosingChanges())&&(this.stepsApi.popStep(),this.b2bPostpaidProduct=await this.getCurrentB2bPostpaidProduct(this.employee.reduction))}async closeNoteStepWithoutSaving(){(!this.isDirty||await this.confirmToLosingChanges())&&(this.stepsApi.popStep(),this.b2bPostpaidProduct=await this.getCurrentB2bPostpaidProduct(this.employee.reduction))}get initials(){return this.employee?`${this.employee.firstName[0]}${this.employee.lastName[0]}`:null}async resendInvitation(){if(!this.employee)throw new V.p("method invoked without employee");try{await this.employeeService.resendEmployeeInvitation(this.employee),this.notify.success("employee_details.invitation_has_been_resent"),this.closeSidepanel()}catch(t){tF.error("Failed to resend employee invitation",t),this.notifyGenericErrors(t)}}async unlinkEmployee(){if(this.employee&&await this.confirm(this.$t("unlink_employee_dialog.question"),this.$t("unlink_employee_dialog.title"),this.$t("unlink_employee_dialog.confirm"),this.$t("unlink_employee_dialog.cancel")))try{this.saving=!0,await this.employeeService.unlinkEmployee(this.employee),this.notify.success("unlink_employee_dialog.success_notice"),this.closeSidepanel()}catch(t){tF.error("Unable to unlink empoyee",t),this.notifyGenericErrors(t)}finally{this.saving=!1}}constructor(...t){super(...t),this.loading=!1,this.error=null,this.employee=null,this.saving=!1,this.b2bPostpaidProduct=null,this.note="",this.allowance=0,this.escapeUnsafe=tB.au,this.formatMoney=z.up}}(0,a.Cg)([(0,d.y_)()],tq.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],tq.prototype,"productService",void 0),(0,a.Cg)([(0,d.y_)()],tq.prototype,"employeeService",void 0),(0,a.Cg)([(0,d.y_)()],tq.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],tq.prototype,"config",void 0),(0,a.Cg)([(0,d.y_)()],tq.prototype,"absoluteUrl",void 0),(0,a.Cg)([(0,d.kv)({required:!0})],tq.prototype,"id",void 0);var tR=tq=(0,a.Cg)([(0,d.uA)({components:{WhoAmI:tz.A,SidePanelItem:m.A,OobAllowanceSelector:tj.A,Steps:v.A,Step:g.A,Loading:_.A,CallToAction:c.A,MvForm:p.A,EmployeeStateTag:tD.A,PostpaidSelector:tO.default,CopyField:H.A}})],tq),tU=(0,S.A)(tR,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"EmployeeSpc",attrs:{name:"employeeDetailsSidepanel"}},[e("Steps",{ref:"steps"},[e("Step",{attrs:{id:"initial_step",stepName:"initial"}},[e("header",[e("h2",[t._v(t._s(t.$t("employee_details.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),t.loading?e("div",{staticClass:"my-viking-sidePanel__main EmployeeSpc__loading"},[e("Loading",{attrs:{size:"narrow"}})],1):t.error?e("div",{staticClass:"my-viking-sidePanel__main EmployeeSpc__error"},[e("p",[t._v(t._s(t.error))])]):t.employee?e("div",{staticClass:"my-viking-sidePanel__main sidePanelContentMain noPaddingTop employeeDetails-stepMain"},[e("div",[e("div",{staticClass:"option-group end-section"},[e("div",{staticClass:"EmployeeSpc__person end-section"},[e("WhoAmI",{attrs:{showVikingSince:!1,hideLogInLogOut:!0,userProfile:t.profileFromEmployee}})],1),t.isEmployeeActive?t._e():e("SidePanelItem",{staticClass:"employee-details-state",attrs:{title:t.$t("employee_details.state"),tip:t.isEmployeePaused?t.$t("employee_details.paused_explanation"):null}},[e("EmployeeStateTag",{attrs:{state:t.employee.state}})],1),(t.isEmployeeActive||t.isEmployeePaused)&&t.employee.activatedOn?e("SidePanelItem",{staticClass:"employee-details-active-since",attrs:{title:t.$t("employee_details.active_since"),value:t._f("date")(t.employee.activatedOn)}}):t._e(),t.isEmployeePaused&&t.employee.stateUpdatedOn?e("SidePanelItem",{staticClass:"employee-details-paused-since",attrs:{title:t.$t("employee_details.paused_since"),value:t._f("date")(t.employee.stateUpdatedOn)}}):t._e(),t.isEmployeeActive||t.isEmployeePaused?e("SidePanelItem",{staticClass:"employee-details-msisdn",attrs:{title:t.$t("employee_details.msisdn"),value:t._f("msisdn")(t.employee.msisdn)}}):t._e(),t.isEmployeePending?t._e():e("SidePanelItem",{staticClass:"employee-details-language",attrs:{title:t.$t("employee_details.language"),value:t.$t(`lang_${t.employee.invitation.language}`)}}),t.isEmployeeInvited?e("SidePanelItem",{staticClass:"employee-details-otherProvider",attrs:{title:t.$t("employee_details.has_contract_other_provider"),value:t.employee.invitation.mnpDefaults?t.$t("yes"):t.$t("no")}}):t._e(),e("SidePanelItem",t.areInlineEditsAllowed?{staticClass:"employee-details-editReduction",attrs:{id:"select_mandate",title:t.$t("employee_details.reduction"),value:t.monthlyReduction},on:{edit:function(e){return t.openReductionStep()}}}:{staticClass:"employee-details-reduction",attrs:{title:t.$t("employee_details.reduction"),tip:t.isEmployeePending?t.$t("employee_details.reduction_not_editable_reason"):null,value:t.monthlyReduction}}),e("SidePanelItem",t.areInlineEditsAllowed?{staticClass:"employee-details-edit-allowance",attrs:{id:"select_allowance",title:t.$t("employee_details.oob_allowance"),value:t.formattedCurrentAllowance,tip:t.pendingAllowanceTip},on:{edit:function(e){return t.stepsApi.pushStep("allowance")}}}:{staticClass:"employee-details-allowance",attrs:{title:t.$t("employee_details.oob_allowance"),value:t.formattedCurrentAllowance,tip:t.pendingAllowanceTip}}),e("SidePanelItem",{staticClass:"employee-details-usage",attrs:{title:t.$t("out_of_bundle_usage"),value:t.formatMoney(t.employee.outOfBundleUsage,"always_two")}})],1),e("SidePanelItem",{staticClass:"employee-details-editable-note end-section",attrs:{title:t.$t("employee_details.note"),tip:t.escapeUnsafe(t.employee.note)},on:{edit:function(e){return t.openNoteStep()}}}),t.isEmployeeInvited?e("div",{staticClass:"option-group EmployeeSpc__inviteSection"},[e("h3",{staticClass:"option-group-title"},[t._v(t._s(t.$t("employee_details.share_your_invitation_title")))]),e("p",[t._v(t._s(t.$t("employee_details.share_your_invitation_description")))]),e("C
47opyField",{staticClass:"EmployeeSpc__inviteSectionShareLink",attrs:{value:t.inviteLink}}),e("a",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("employee_details.faq_invite"),expression:"$t('employee_details.faq_invite')"}],attrs:{href:t.$t("employee_details.faq_invite_url")}})],1):t._e()],1),t.isEditingAllowed?e("ul",{staticClass:"sidePanelContentMain__mainBottom sidepanelBottomActionsList"},[e("li",{staticClass:"employeeActionsLink editEmployee"},[e("RouterLink",{staticClass:"linkWithIcon linkWithIcon--iconEdit",attrs:{to:t.editRoute}},[t._v(" "+t._s(t.$t("employee_details.edit_employee"))+" ")])],1),t.isEmployeeInvited?e("li",{staticClass:"employeeActionsLink resendInvitation"},[e("a",{staticClass:"linkWithIcon linkWithIcon--iconLetter",attrs:{href:""},on:{click:function(e){return e.preventDefault(),t.resendInvitation()}}},[t._v(" "+t._s(t.$t("employee_details.resend_invitation"))+" ")])]):t._e(),e("li",{staticClass:"unlinkEmployee"},[e("a",{staticClass:"linkWithIcon linkWithIcon--iconTrash",attrs:{href:""},on:{click:function(e){return e.preventDefault(),t.unlinkEmployee()}}},[t._v(" "+t._s(t.$t("employee_details.unlink_employee"))+" ")])])]):t._e()]):t._e(),t.loading?t._e():e("footer",[e("CallToAction",{staticClass:"dismiss",attrs:{once:t.dismiss,type:"submit"}},[t._v(" "+t._s(t.$t("close"))+" ")])],1)]),t.areInlineEditsAllowed?e("Step",{staticClass:"employee-details-reduction-step",attrs:{stepName:"reduction"}},[e("header",[e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"back",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.closeInlineEditWithoutSaving()}}},[e("span",[t._v(t._s(t.$t("back")))])]),e("h2",[t._v(t._s(t.$t("employee_details.reduction_title")))])]),e("div",{staticClass:"my-viking-sidePanel__main employeeDetails-stepMain"},[e("PostpaidSelector",{attrs:{narrow:!0,styleLevel:1,includeVat:!1,restrictToB2bProducts:!0},model:{value:t.b2bPostpaidProduct,callback:function(e){t.b2bPostpaidProduct=e},expression:"b2bPostpaidProduct"}})],1),e("footer",[e("CallToAction",{staticClass:"employee-details-save-reduction",attrs:{once:t.saveReductionAndClose,type:"submit"}},[t._v(" "+t._s(t.$t("save_and_close"))+" ")])],1)]):t._e(),t.areInlineEditsAllowed?e("Step",{staticClass:"employee-details-allowance-step",attrs:{stepName:"allowance"}},[e("header",[e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"back",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.closeInlineEditWithoutSaving()}}},[e("span",[t._v(t._s(t.$t("back")))])]),e("h2",[t._v(t._s(t.$t("employee_details.oob_allowance")))])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("div",{staticClass:"fakeLabel"},[t._v(t._s(t.$t("employee_details.field_oob_allowance")))]),e("OobAllowanceSelector",{attrs:{name:"oob-allowance-value"},model:{value:t.allowance,callback:function(e){t.allowance=e},expression:"allowance"}})],1),e("footer",[e("CallToAction",{staticClass:"employee-details-save-allowance",attrs:{once:t.saveOobAllowanceAndClose,type:"submit"}},[t._v(" "+t._s(t.isDirty?t.$t("save_and_close"):t.$t("close"))+" ")])],1)]):t._e(),e("Step",{attrs:{id:"note_step",stepName:"note"}},[e("header",[e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"back",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.closeInlineEditWithoutSaving()}}},[e("span",[t._v(t._s(t.$t("back")))])]),e("h2",[t._v(t._s(t.$t("employee_details.note_title")))])]),e("div",{staticClass:"my-viking-sidePanel__main employeeDetails"},[e("div",{staticClass:"employeeDetails__top"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.note,expression:"note"}],staticClass:"EmployeeSpc__noteTextArea",domProps:{value:t.note},on:{input:function(e){e.target.composing||(t.note=e.target.value)}}})])]),e("footer",[e("CallToAction",{staticClass:"save-note",attrs:{once:t.saveNoteAndClose,type:"submit"}},[t._v(" "+t._s(t.isDirty?t.$t("save_and_close"):t.$t("close"))+" ")])],1)])],1)],1)},[],!1,null,"e81d849a",null).exports,tV=i(49663),tW=i(13898);let tQ=(0,n.tZ)("FullNameEditComponent");class tY extends d.lD{created(){this.session.profile&&(this.firstName=this.session.profile.firstName,this.lastName=this.session.profile.lastName)}get isDirty(){return!this.session.profile||this.firstName!==this.session.profile.firstName||this.lastName!==this.session.profile.lastName}async save(){try{if(this.error=!1,!await this.$validator.validateAll())return;this.saving=!0,await this.customerService.updateProfile({...this.otherProfileData,firstName:this.firstName,lastName:this.lastName}),this.saving=!1,this.$emit("dismiss"),this.notify.success("your_name_has_been_changed")}catch(t){tQ.error("Failed to update profile full name",t),this.saving=!1,this.error=!0}}async dismiss(){!this.saving&&(!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$emit("dismiss")}constructor(...t){super(...t),this.saving=!1,this.firstName="",this.lastName="",this.otherProfileData={},this.error=!1}}(0,a.Cg)([(0,d.y_)()],tY.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],tY.prototype,"customerService",void 0),(0,a.Cg)([(0,d.y_)()],tY.prototype,"confirm",void 0);var tG=tY=(0,a.Cg)([(0,d.uA)({components:{MissingProfileData:ty,Field:u.A,CallToAction:c.A,MvForm:p.A,InlineNotification:T.A}})],tY),tH=(0,S.A)(tG,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{attrs:{name:"changeName"}},[e("header",[e("h2",[t._v(t._s(t.$t("fullName")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main",class:{noPaddingTop:t.error}},[t.error?e("InlineNotification",{staticClass:"error",attrs:{appearance:"inSidePanel",notificationType:"error"}},[t._v(" "+t._s(t.$t("something_went_wrong"))+" ")]):t._e(),e("div",{staticClass:"option-group"},[e("p",{staticClass:"option-group__description intro"},[t._v(t._s(t.$t("change_here_your_first_and_last_name")))]),e("Field",{staticClass:"first-name",attrs:{label:t.$t("field_first_name")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.firstName,expression:"firstName"},{name:"validate",rawName:"v-validate",value:{max:40},expression:"{ max: 40 }"}],attrs:{type:"text",name:"firstName",required:"",autocomplete:"given-name"},domProps:{value:t.firstName},on:{input:function(e){e.target.composing||(t.firstName=e.target.value)}}})]),e("Field",{staticClass:"last-name",attrs:{label:t.$t("field_last_name")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.lastName,expression:"lastName"},{name:"validate",rawName:"v-validate",value:{max:40},expression:"{ max: 40 }"}],attrs:{type:"text",name:"lastName",required:"",autocomplete:"family-name"},domProps:{value:t.lastName},on:{input:function(e){e.target.composing||(t.lastName=e.target.value)}}}
47)])],1),e("MissingProfileData",{model:{value:t.otherProfileData,callback:function(e){t.otherProfileData=e},expression:"otherProfileData"}})],1),e("footer",[e("CallToAction",{attrs:{once:t.save,type:"submit"}},[t._v(t._s(t.$t("save")))])],1)])},[],!1,null,null,null).exports,tZ=i(21196);let tJ=(0,n.tZ)("invoiceGroupingSpc");class tK extends d.lD{async mounted(){try{this.loading=!0,this.setInitialLimit();let t=await this.customerService.getInvoiceGrouping();if(!t.grouped&&this.groupableSubscriptions.length<2){tJ.info("Nothing to group. closing"),this.dismiss();return}this.grouped=t.grouped,this.autopayment=t.grouped&&!!t.mandate,this.mandate=t.grouped&&t.mandate||null,this.autoSelectMandate()}catch(t){tJ.error("Failed to load invoice grouping",t),this.notifyGenericErrors(t)}finally{this.loading=!1}}get subscriptionsLimit(){return 3}setInitialLimit(){let t=(this.session.subscriptions||[]).filter(this.isGroupable);this.limitSubscriptions=t.length>3}get groupableSubscriptions(){return(this.session.subscriptions||[]).filter(this.isGroupable)}get hasActiveThirdPartySubscriptions(){let t=this.session.thirdPartySubscriptions;return!!t&&t.some(t=>"enabled"===t.state)}isGroupable(t){return"prepaid"!==t.type&&!!t.isOwner}get ownedMandates(){return this.mandateService.mandates.filter(t=>t.isOwner)}autoSelectMandate(){this.grouped||(1===this.ownedMandates.length?(this.autopayment||=!0,this.mandate||=this.ownedMandates[0]):this.ownedMandates.length>1?this.autopayment||=!0:(this.autopayment=!1,this.mandate=null))}get selectedMandateId(){return this.mandate?.id||null}set selectedMandateId(t){this.mandate=this.mandateService.mandates.find(e=>e.id===t)||null}get confirmButtonLabel(){return this.grouped?this.$t("invoice_grouping.update"):this.$t("invoice_grouping.group_cta")}get mandateLabel(){if(this.loading)return null;if(!this.mandate||!this.autopayment)return"";let t=this.mandate.method.toLowerCase(),e=this.$t(`mandate_method__${t}`);return`${e} ${this.mandate.userFriendlyLabel}`}async save(){if(this.autopayment&&!this.mandate)return void this.notify.error("invoice_grouping.please_select_a_payment_method");try{this.saving=!0;let t=this.autopayment?(0,t$.bp)(this.mandate):void 0;await this.customerService.setInvoiceGrouping({grouped:!0,mandate:t}),this.dismiss(),this.notify.success("invoice_grouping.invoice_grouping_enabled_successfully")}catch(t){r.Ay.of(t).code===r.O4.NOT_ALLOWED_BECAUSE_UNPAID_INVOICES?this.notify.error("invoice_grouping.pay_unpaid_invoices_first"):(tJ.error("Failed to save invoice grouping",t),this.notifyGenericErrors(t))}finally{this.saving=!1}}async ungroup(){try{if(!await this.confirm(this.$t("invoice_grouping.are_you_sure_you_want_to_ungroup")))return;await this.customerService.setInvoiceGrouping({grouped:!1}),this.dismiss(),this.notify.success("invoice_grouping.invoice_grouping_disabled_successfully")}catch(t){r.Ay.of(t).code===r.O4.NOT_ALLOWED_BECAUSE_UNPAID_INVOICES?this.notify.error("invoice_grouping.pay_unpaid_invoices_first"):(this.notifyGenericErrors(t),tJ.error("Failed to ungroup invoices",t))}}goToAddMandateSpc(){this.$router.push({query:{...this.$route.query,spc:"add-payment-method"}})}dismiss(){this.$emit("dismiss")}constructor(...t){super(...t),this.loading=!1,this.saving=!1,this.grouped=!1,this.autopayment=!1,this.mandate=null,this.limitSubscriptions=!0}}(0,a.Cg)([(0,d.oS)()],tK.prototype,"steps",void 0),(0,a.Cg)([(0,d.y_)()],tK.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],tK.prototype,"customerService",void 0),(0,a.Cg)([(0,d.y_)()],tK.prototype,"mandateService",void 0),(0,a.Cg)([(0,d.y_)()],tK.prototype,"confirm",void 0),(0,a.Cg)([(0,d.ox)("ownedMandates",{immediate:!0})],tK.prototype,"autoSelectMandate",null);var tX=tK=(0,a.Cg)([(0,d.uA)({components:{ShowAll:tZ.A,SubscriptionDetails:D.A,MandateSelector:N,Steps:v.A,Step:g.A,SidePanelItem:m.A,Checkbox:A.A,CallToAction:c.A}})],tK),t0=(0,S.A)(tX,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"groupedInvoicingSpc"},[e("Steps",{ref:"steps"},[e("Step",{attrs:{stepName:"initial"}}
47,[e("header",[e("h2",[t._v(t._s(t.$t("invoice_grouping.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main sidePanelContentMain"},[e("div",[e("div",{staticClass:"option-group end-section"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("invoice_grouping.intro"),expression:"$t('invoice_grouping.intro')"}],staticClass:"option-group__description intro"}),e("div",{staticClass:"groupableSubscriptions groupable-subscriptions-overview"},[e("ShowAll",{attrs:{appearance:"straight",limit:t.subscriptionsLimit,values:t.groupableSubscriptions,labelKey:"invoice_grouping.show_all_subscriptions"},scopedSlots:t._u([{key:"default",fn:function({values:i}){return t._l(i,function(t){return e("SubscriptionDetails",{key:t.id,staticClass:"groupableSubscriptions__entry groupable-subscription current-sim",attrs:{withIcon:!0,subscription:t}})})}}])})],1)]),e("div",{staticClass:"option-group end-section"},[t.ownedMandates.length>0?[e("Checkbox",{staticClass:"auto-pay-invoices-checkbox",attrs:{label:t.$t("invoice_grouping.autopay_grouped_invoices")},model:{value:t.autopayment,callback:function(e){t.autopayment=e},expression:"autopayment"}}),e("SidePanelItem",{staticClass:"auto-pay-mandate-selection",attrs:{title:t.$t("invoice_grouping.mandate"),loading:t.loading,value:t.mandateLabel,valueLength:15,disabled:!t.autopayment||t.saving},on:{edit:function(e){return t.steps.pushStep("mandate")}}})]:[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("invoice_grouping.add_payment_method_first_or_add_later__html"),expression:"$t('invoice_grouping.add_payment_method_first_or_add_later__html')"}],staticClass:"option-group__description intro",attrs:{"data-qa":"no-mandate-description"}})]],2)]),t.grouped&&!t.hasActiveThirdPartySubscriptions?e("ul",{staticClass:"sidePanelContentMain__mainBottom sidepanelBottomActionsList"},[e("li",[e("a",{staticClass:"linkWithIcon linkWithIcon--iconTrash ungroup-invoices-button",attrs:{href:"javascript:;"},on:{click:function(e){return t.ungroup()}}},[t._v(" "+t._s(t.$t("invoice_grouping.ungroup"))+" "),e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("invoice_grouping.ungroup_hint"),expression:"$t('invoice_grouping.ungroup_hint')"}],staticClass:"linkWithIcon__tip"})])])]):t._e()]),e("footer",[e("CallToAction",{staticClass:"confirm",attrs:{once:t.save,type:"submit"}},[t._v(" "+t._s(t.confirmButtonLabel)+" ")])],1)]),e("Step",{attrs:{id:"mandate_step",stepName:"mandate"}},[e("header",[e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"back",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.steps.popStep()}}},[e("span",[t._v(t._s(t.$t("back")))])]),e("h2",[t._v(t._s(t.$t("invoice_grouping.select_mandate_title")))])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("div",{staticClass:"option-group"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("auto_payment_settings.mandate_intro"),expression:"$t('auto_payment_settings.mandate_intro')"}],staticClass:"option-group__description intro"}),e("MandateSelector",{attrs:{mandates:t.mandateService.eligibleMandates,allowAutoSelect:!1},on:{input:function(e){return t.steps.popStep(250)}},model:{value:t.selectedMandateId,callback:function(e){t.selectedMandateId=e},expression:"selectedMandateId"}})],1)])])],1)],1)},[],!1,null,"7a44e1ec",null).exports,t1=i(62526),t4=i(97564);let t2=(0,n.tZ)("InvoiceAddressSettingsSpc.vue");class t3 extends d.lD{async created(){if(!this.postpaidSubscriptions.length&&!this.broadbandSubscriptions.length){this.notify.error("billing_address.billing_address_can_only_be_set_for_subscription_owners"),this.$emit("dismiss");return}if(!this.session.profile)throw new V.p("User should be logged in");try{this.loading=!0,this.originalInvoicingSettings=await this.customerService.getGroupedInvoicingSettings(),this.invoicingSettings=(0,$.A4)(this.originalInvoicingSettings),this.receiveDigitalAndPeppol=this.invoicingSettings.receivesInvoicesOnPeppol&&"peppol_only"!==this.invoicingSettings.billingPreference,this.originalCompany=this.session.profile.company||null,this.businessViking=!!this.originalCompany,this.enterpriseNumber=this.originalCompany?this.originalCompany.enterpriseNumber:null,this.loading=!1}catch(t){t2.error("Failed to fetch the invoice address",t),this.error=!0}}get company(){return this.businessViking?{enterpriseNumber:this.enterpriseNumber||""}:null}get invoiceAddress(){return this.invoicingSettings.invoicingAddress}
47async save(){if(this.invoicingSettings)try{if(this.error=!1,this.uwaValidationErrors={},!await this.$validator.validateAll()||!this.invoiceAddress||!this.invoiceAddress.address)return;this.invoiceAddress.address.box=this.invoiceAddress.address.box||void 0,this.invoicingSettings.receivesInvoicesOnPeppol&&(this.invoicingSettings.billingPreference=this.receiveDigitalAndPeppol?"digital":"peppol_only"),this.saving=!0,this.businessViking||(this.invoicingSettings.invoicingAddress.companyName=void 0,"peppol_only"===this.invoicingSettings.billingPreference&&(this.invoicingSettings.billingPreference="digital")),await this.customerService.updateInvoicingSettings(this.invoicingSettings),await this.customerService.updateProfile({...this.otherProfileData,company:this.company||void 0}),this.notify.success("billing_address.billing_address_saved"),this.$emit("dismiss")}catch(i){let t=r.Ay.of(i),e=(0,y.v)(t,[{code:r.O4.INVALID_VALUE,field:"enterprise_number",on:"enterprise_number",message:"enterprise_number"},{code:r.O4.ENTERPRISE_NUMBER_ALREADY_IN_USE,field:"enterprise_number",on:"enterprise_number",message:"enterprise_number_already_in_use_contact_care"}]);this.uwaValidationErrors=e.result,e.firstIssue?this.domUtils.scrollToFirst(".is-invalid",20):(this.error=!0,t2.error("Failed to update all invoice addresses",i))}finally{this.saving=!1}}async dismiss(){!this.saving&&(!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$emit("dismiss")}get isDirty(){return!!this.invoicingSettings&&!!this.originalInvoicingSettings&&(!(0,$.c2)(this.originalCompany,this.company)||!(0,$.c2)(this.originalInvoicingSettings,this.invoicingSettings))}get postpaidSubscriptions(){return this.session.mobileSubscriptions?this.session.mobileSubscriptions.filter(t=>"postpaid"===t.type&&t.isOwner):[]}get broadbandSubscriptions(){return this.session.broadbandSubscriptions??[]}constructor(...t){super(...t),this.invoicingSettings=null,this.originalInvoicingSettings=null,this.originalCompany=null,this.businessViking=!1,this.enterpriseNumber=null,this.companyName="",this.uwaValidationErrors={},this.otherProfileData={},this.receiveDigitalAndPeppol=!1,this.loading=!0,this.saving=!1,this.error=!1}}(0,a.Cg)([(0,d.y_)()],t3.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],t3.prototype,"customerService",void 0),(0,a.Cg)([(0,d.y_)()],t3.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],t3.prototype,"domUtils",void 0);var t5=t3=(0,a.Cg)([(0,d.uA)({components:{MissingProfileData:ty,Checkbox:A.A,AddressForm:t1.A,Field:u.A,CallToAction:c.A,EnterpriseNumberInput:t4.A,MvForm:p.A}})],t3),t9=(0,S.A)(t5,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"billingAddress",attrs:{name:"changeBillingAddress"}},[e("header",[e("h2",[t._v(t._s(t.$t("invoice_address_settings.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main billingAddress__main"},[t.error?e("div",{staticClass:"error"},[t._v(t._s(t.$t("something_went_wrong")))]):t._e(),e("div",{staticClass:"sidePanelIntro intro"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("invoice_address_settings.intro_part_1"),expression:"$t('invoice_address_settings.intro_part_1')"}]}),e("br"),e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("invoice_address_settings.intro_part_2"),expression:"$t('invoice_address_settings.intro_part_2')"}]})]),t.loading?[e("div",{staticClass:"option-group"},[e("Field",{staticClass:"invoiceAddress__firstName",attrs:{label:t.$t("field_first_name")}},[e("input",{staticClass:"loading",attrs:{type:"text",name:"firstName",required:"",autocomplete:"given-name"}})]),e("Field",{staticClass:"invoiceAddress__lastName",attrs:{label:t.$t("field_last_name")}},[e("input",{staticClass:"loading",attrs:{type:"text",name:"lastName",required:"",autocomplete:"family-name"}})]),e("AddressForm",{staticClass:"loading",attrs:{prefix:"sidepanel"}})],1),e("div",{staticClass:"option-group"},[e("Checkbox",{staticClass:"loading",attrs:{id:"business_viking",label:t.$t("invoice_address_settings.i_am_business_viking")}})],1)]:[e("div",{staticClass:"option-group"},[e("Field",{staticClass:"invoiceAddress__firstName",attrs:{label:t.$t("field_first_name")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.invoiceAddress.firstName,expression:"invoiceAddress.firstName"},{name:"validate",rawName:"v-validate",value:{max:40},expression:"{ max: 40 }"}],attrs:{type:"text",name:"firstName",required:"",autocomplete:"given-name"},domProps:{value:t.invoiceAddress.firstName},on:{input:function(e){e.target.composing||t.$set(t.invoiceAddress,"firstName",e.target.value)}}})]),e("Field",{staticClass:"invoiceAddress__lastName",attrs:{label:t.$t("field_last_name")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.invoiceAddress.lastName,expression:"invoiceAddress.lastName"},{name:"validate",rawName:"v-validate",value:{max:40},expression:"{ max: 40 }"}],attrs:{type:"text",name:"lastName",required:"",autocomplete:"family-name"},domProps:{value:t.invoiceAddress.lastName},on:{input:function(e){e.target.composing||t.$set(t.invoiceAddress,"lastName",e.target.value)}}})]),t.invoiceAddress?e("AddressForm",{attrs:{prefix:"sidepanel",required:""},model:{value:t.invoiceAddress.address,callback:function(e){t.$set(t.invoiceAddress,"address",e)},expression:"invoiceAddress.address"}}):t._e()],1),e("div",{staticClass:"option-group option-group--noTopSpacing"},[e("Checkbox",{attrs:{id:"business_viking",label:t.$t("invoice_address_settings.i_am_business_viking")},model:{value:t.businessViking,callback:function(e){t.businessViking=e},expression:"businessViking"}}),e("Field",{directives:[{name:"show",rawName:"v-show",value:t.businessViking,expression:"businessViking"}],staticStyle:{"margin-top":"var(--spacing-100)"},attrs:{label:t.$t("enterprise_number_label"),validationErrors:t.$tList(t.uwaValidationErrors.enterprise_number,"validationError__")}},[e("EnterpriseNumberInput",{directives:[{name:"validate",rawName:"v-validate",value:{required:t.businessViking},expression:"{ required: businessViking }"}],attrs:{name:"enterpriseNumber"},model:{value:t.enterpriseNumber,callback:function(e){t.enterpriseNumber=e},expression:"enterpriseNumber"}})],1),t.invoicingSettings&&t.invoicingSettings.receivesInvoicesOnPeppol&&t.businessViking?e("Checkbox",{attrs:{id:"peppol_only",label:t.$t("invoice_address_settings.i_want_my_invoices_on_mail_and_peppol")},model:{value:t.receiveDigitalAndPeppol,callback:function(e){t.receiveDigitalAndPeppol=e},expression:"receiveDigitalAndPeppol"}}):t._e()],1),e("MissingProfileData",{model:{value:t.otherProfileData,callback:function(e){t.otherProfileData=e},expression:"otherProfileData"}}
47)]],2),t.loading?t._e():e("footer",[e("CallToAction",{attrs:{once:t.save,type:"submit"}},[t._v(t._s(t.$t("save")))])],1)])},[],!1,null,"7be24321",null).exports,t8=i(25865);class t6 extends d.lD{get tagType(){let t=!!this.$listeners.click;return this.loading?"div":this.to?"RouterLink":t?"a":"div"}get isLink(){return"div"!==this.tagType}handleClick(t){"a"===this.tagType&&t.preventDefault(),this.$emit("click")}}(0,a.Cg)([(0,d.kv)()],t6.prototype,"loading",void 0),(0,a.Cg)([(0,d.kv)()],t6.prototype,"label",void 0),(0,a.Cg)([(0,d.kv)()],t6.prototype,"amount",void 0),(0,a.Cg)([(0,d.kv)({default:null})],t6.prototype,"extraInfo",void 0),(0,a.Cg)([(0,d.kv)({type:String,required:!1})],t6.prototype,"appearance",void 0),(0,a.Cg)([(0,d.kv)({type:Object,required:!1,default:null})],t6.prototype,"to",void 0);var t7=t6=(0,a.Cg)([(0,d.uA)({components:{MonetaryAmount:t8.A}})],t6),et=(0,S.A)(t7,function(){var t=this._self._c;return this._self._setupProxy,t(this.tagType,{directives:[{name:"rippleEffect",rawName:"v-rippleEffect",value:this.isLink,expression:"isLink"}],tag:"Component",staticClass:"invoiceDetailEntry nextStyleLevel",class:{"invoiceDetailEntry--totalAmount":"totalAmount"===this.appearance,"invoiceDetailEntry--reduction":"reduction"===this.appearance,"invoiceDetailEntry--amountAfterReduction":"amountAfterReduction"===this.appearance,"invoiceDetailEntry--cost":"cost"===this.appearance,"invoiceDetailEntry--isLink":this.isLink},attrs:{to:this.to,href:this.isLink?"#":void 0},on:{click:this.handleClick}},[t("div",[this.loading&&!this.label?t("div",{staticClass:"shimmer",staticStyle:{"--shimmer-width":"15ch"}},[this._v("Â ")]):[t("div",{staticClass:"invoiceDetailEntry__title"},[this._v(this._s(this.label))]),this._t("default"),this.extraInfo?t("div",{staticClass:"invoiceDetailEntry__extraInfo"},[this._v(this._s(this.extraInfo))]):this._e()]],2),t("div",{staticClass:"invoiceDetailEntry__amount"},[this.loading?t("div",{staticClass:"invoiceDetailEntry__amountShimmer shimmer"},[this._v("Â ")]):t("MonetaryAmount",{attrs:{amount:this.amount}})],1)])},[],!1,null,"16a32f5e",null).exports;class ee extends d.lD{get invoiceTypeLabel(){return!this.invoiceType&&this.invoice?this.invoice.isCreditnote?this.$t("invoice_detail.credit_note"):this.$t("invoice_detail.invoice"):this.invoiceType}get linkedMobileSubscription(){return this.invoice?.subscriptionId&&this.session.mobileSubscriptions?.find(t=>t.id===this.invoice.subscriptionId)||null}get linkedBroadbandSubscription(){return this.invoice?.subscriptionId&&this.session.broadbandSubscriptions?.find(t=>t.id===this.invoice.subscriptionId)||null}formattedInstallationAddress(t){return(0,X.H8)(t.installationAddress,this.locale,this.$t.bind(this),"single_line",!1)}}(0,a.Cg)([(0,d.kv)()],ee.prototype,"invoice",void 0),(0,a.Cg)([(0,d.kv)({type:String,required:!1,default:null})],ee.prototype,"invoiceType",void 0),(0,a.Cg)([(0,d.y_)()],ee.prototype,"session",void 0);var ei=ee=(0,a.Cg)([d.uA],ee),es=(0,S.A)(ei,function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"invoiceDetailHeading"},[t("div",[t("strong",{staticClass:"invoiceDetailHeading__date"},this.invoice?[this._v(" "+this._s(this._f("date")(this.invoice.date))+" ")]:[t("span",{staticClass:"invoiceDetailHeading__dateShimmer shimmer"})]),this.invoiceTypeLabel?t("span",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],staticClass:"invoiceDetailHeading__type"},[this._v(" "+this._s(this.invoiceTypeLabel)+" "),this.linkedMobileSubscription?t("span",{staticClass:"invoiceDetailHeading__msisdn"},[this._v(" "+this._s(this._f("msisdn")(this.linkedMobileSubscription.msisdn))+" ")]):this._e(),this.linkedBroadbandSubscription?t("span",{staticClass:"invoiceDetailHeading__address"},[this._v(" "+this._s(this.formattedInstallationAddress(this.linkedBroadbandSubscription))+" ")]):this._e()]):t("span",{staticClass:"invoiceDetailHeading__typeShimmer shimmer"})])])},[],!1,null,"2fabb303",null).exports;let ea=(0,n.tZ)("CreditNoteDetail");class en extends d.lD{async loadLinkedInvoice(){try{this.creditNote&&this.creditNote.linkedInvoiceId&&(this.linkedInvoice=await (this.creditNote.companyId?this.invoiceService.getCompanyInvoice(this.creditNote.companyId,this.creditNote.linkedInvoiceId):this.invoiceService.getInvoice(this.creditNote.linkedInvoiceId)))}catch(t){ea.error("An error occured while retrieving the linked invoice of a credit note",t),this.notifyGenericErrors(t)}}
47get downloadUrl(){return this.invoiceService.getInvoicePDFUrl(this.creditNote)}constructor(...t){super(...t),this.linkedInvoice=null}}(0,a.Cg)([(0,d.y_)()],en.prototype,"invoiceService",void 0),(0,a.Cg)([(0,d.kv)()],en.prototype,"creditNote",void 0),(0,a.Cg)([(0,d.ox)("creditNote",{immediate:!0})],en.prototype,"loadLinkedInvoice",null);var eo=en=(0,a.Cg)([(0,d.uA)({components:{InvoiceDetailEntry:et,InvoiceDetailHeading:es}})],en),er=(0,S.A)(eo,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.creditNote?e("div",{staticClass:"creditNoteInfo sidePanelContentMain"},[e("div",[e("div",{staticClass:"creditNoteInfo__heading end-section"},[e("InvoiceDetailHeading",{attrs:{invoice:t.creditNote,invoiceType:t.$t("invoice_detail.credit_note")}})],1),e("div",{staticClass:"option-group end-section"},[e("h4",{staticClass:"option-group-title creditNoteInvoice-title"},[t._v(" "+t._s(t.$t("invoice_detail.credit_note_invoice"))+" ")]),e("p",{staticClass:"option-group__description creditNoteInvoice-description"},[t._v(" "+t._s(t.$t("invoice_detail.credit_note_refers_to_invoice"))+" ")]),t.linkedInvoice?e("div",{staticClass:"creditNoteInvoiceLinkedInvoice",on:{click:function(e){return t.$emit("openLinkedInvoice",t.linkedInvoice)}}},[e("InvoiceDetailHeading",{attrs:{invoice:t.linkedInvoice,invoiceType:t.$t("invoice_detail.invoice")}})],1):t._e()]),e("div",{staticClass:"invoiceDetailTotal creditNote__total end-section"},[e("InvoiceDetailEntry",t.creditNote?t.creditNote.paid?{attrs:{label:t.$t("credit_note_detail.total_paid"),amount:t.creditNote.amount}}:{attrs:{label:t.$t("credit_note_detail.outstanding_amount"),amount:t.creditNote.amountDue}}:{attrs:{loading:!0,label:"",amount:""}})],1)]),t.creditNote&&0!==t.creditNote.amount?e("ul",{staticClass:"sidePanelContentMain__mainBottom sidepanelBottomActionsList"},[e("li",[e("a",{staticClass:"linkWithIcon linkWithIcon--iconDownload download",attrs:{href:t.downloadUrl}},[t._v(" "+t._s(t.$t("download"))+" ")])])]):t._e()]):t._e()},[],!1,null,"12bd4c8a",null).exports;let el=(0,n.tZ)("InvoiceCharges");class ed extends d.lD{async loadCharges(){try{this.loading=!0,this.charges=await this.invoiceService.getInvoiceCharges(this.invoice,this.line.type),this.loading=!1}catch(t){el.error("Failed to load invoice charges",t),this.notifyGenericErrors(t)}}get filteredCharges(){return this.charges.filter(t=>t.chargeType===this.line.type)}get total(){return this.line.total}get totalVat(){return this.line.total-Math.ceil(100*(0,tA.SB)(this.total))/100}get translatedChargeType(){return this.line?this.$t(`invoice_details.charge_type__${this.line.type}`):""}chargeLabel(t){if(!t.employee)return t.chargeType;let e=t.employee;return`${(0,l.i)(e.msisdn)} (${e.firstName} ${e.lastName})`}constructor(...t){super(...t),this.loading=!1,this.charges=[],this.withoutVat=tA.SB}}(0,a.Cg)([(0,d.y_)()],ed.prototype,"invoiceService",void 0),(0,a.Cg)([(0,d.kv)()],ed.prototype,"invoice",void 0),(0,a.Cg)([(0,d.kv)()],ed.prototype,"line",void 0),(0,a.Cg)([(0,d.ox)("invoice.id",{immediate:!0}),(0,d.ox)("line.type")],ed.prototype,"loadCharges",null);var ec=ed=(0,a.Cg)([(0,d.uA)({components:{InvoiceDetailEntry:et,InvoiceDetailHeading:es}})],ed),eu=(0,S.A)(ec,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"invoiceDetail"},[e("div",{staticClass:"invoiceDetail__heading end-section"},[e("InvoiceDetailHeading",{attrs:{invoice:t.invoice}})],1),t.loading?[e("div",{staticClass:"invoiceChargesSummary"},[e("h4",{staticClass:"invoiceChargesSummary__title"},[t._v(" "+t._s(t.$t("invoice_detail.all_charges_of_{type}",{type:t.translatedChargeType}))+" ")]),t._l(4,function(t){return e("InvoiceDetailEntry",{key:t,attrs:{loading:!0,label:"",cost:0,appearance:"cost"}})})],2),e("div",{staticClass:"invoiceChargesTotals end-section"},[e("InvoiceDetailEntry",{staticClass:"charges-total-ex-vat",attrs:{label:t.$t("invoice_detail.total_{type}_ex_vat",{type:t.translatedChargeType}),appearance:"totalAmount",amount:0,loading:!0}}),e("InvoiceDetailEntry",{staticClass:"charges-total-vat",attrs:{label:t.$t("invoice_detail.vat"),appearance:"totalAmount",amount:0,loading:!0}})],1),e("div",{staticClass:"invoiceChargesGrandTotal"},[e("InvoiceDetailEntry",{staticClass:"charges-total",attrs:{label:t.$t("invoice_detail.total_{type}",{type:t.translatedChargeType}),appearance:"totalAmount",amount:0,loading:!0}})],1)]:[e("div",{staticClass:"invoiceChargesSummary"},[e("h4",{staticClass:"invoiceChargesSummary__title"}
47,[t._v(" "+t._s(t.$t("invoice_detail.all_charges_of_{type}",{type:t.translatedChargeType}))+" ")]),t._l(t.filteredCharges,function(i,s){return e("InvoiceDetailEntry",{key:s,attrs:{label:t.chargeLabel(i),appearance:"cost",amount:t.withoutVat(i.amount)}})})],2),e("div",{staticClass:"invoiceChargesTotals end-section"},[e("InvoiceDetailEntry",{staticClass:"charges-total-ex-vat",attrs:{label:t.$t("invoice_detail.total_{type}_ex_vat",{type:t.translatedChargeType}),appearance:"totalAmount",amount:t.withoutVat(t.total)}}),e("InvoiceDetailEntry",{staticClass:"charges-total-vat",attrs:{label:t.$t("invoice_detail.vat"),appearance:"totalAmount",amount:t.totalVat}})],1),e("div",{staticClass:"invoiceChargesGrandTotal"},[e("InvoiceDetailEntry",{staticClass:"charges-total",attrs:{label:t.$t("invoice_detail.total_{type}",{type:t.translatedChargeType}),appearance:"totalAmount",amount:t.total}})],1)]],2)},[],!1,null,"d40faa50",null).exports,ep=i(70180),eh=i(76565);let e_=["reminder_fee","reminder_fee_automatic_waiver"];class em extends d.lD{showOOBBundleUsageLink(t){return!(!t.period||t.period.from.isBefore(this.clock.now().minusYears(1))||this.invoice?.grouped&&!t?.subscriptionId)}outOfBundleCostRouterLink(t){return{name:tr.A.usage,params:{subscriptionId:this.invoice?.grouped?t?.subscriptionId:this.invoice?.subscriptionId},query:{start:t.period?e(t.period.from):null,end:t.period?e(t.period.to):null,paid_only:"1"}};function e(t){return t.format(eh.DateTimeFormatter.ISO_LOCAL_DATE)}}adaptVat(t,e){return"my-viking"===this.site.context||e&&this.isReminderFeeLine(e)?t:(0,tA.SB)(t)}describeLine(t,e){let i=this.$t(`invoice_detail.fee_${t.type}`),s=e&&"reminder_fee"!==t.type?i:t.description||i,a="reminder_fee"===t.type&&t.description?`${i} ${t.description.split(" ").slice(-1)}`:s,n=t.quantity>1?`${t.quantity} \xd7 `:"",o=`${n}${a}`;return t.period&&this.shouldShowPeriodForLine(t)?`${o} (${this.formatPeriod(t.period)})`:o}shouldShowPeriodForLine(t){return!this.isReminderFeeLine(t.type)}isReminderFeeLine(t){return e_.includes(t)}describeOobLine(t){if(this.isGrouped){let e=this.session.mobileSubscriptions?.find(e=>e.id===t.subscriptionId)?.msisdn;if(e){let i=(0,l.i)(e);return t.period?`${i} (${this.formatPeriod(t.period)})`:i}}let e=this.$t("invoice_detail.out_of_bundle_cost");return t.period?`${e} (${this.formatPeriod(t.period)})`:e}supportsChargeView(t){return"employer_oob_contribution"===t.type}hasLinkedInvoice(t){return!!t.linkedInvoiceId}formatPeriod(t){if(!t)return"";let e=(0,ep.kz)(t.from,this.locale),i=(0,ep.kz)(t.to,this.locale);return e===i?e:`${this.$t("invoice_detail.period_{from}_until_{to}",{from:e,to:i})}`}get isGrouped(){return this.invoice?.grouped??!1}}(0,a.Cg)([(0,d.y_)()],em.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],em.prototype,"site",void 0),(0,a.Cg)([(0,d.y_)()],em.prototype,"clock",void 0),(0,a.Cg)([(0,d.kv)({type:Object,required:!1,default:null})],em.prototype,"invoice",void 0);var eg=em=(0,a.Cg)([(0,d.uA)({components:{InvoiceDetailEntry:et},filters:{withoutVat:tA.SB}})],em),ev=(0,S.A)(eg,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"invoiceDetailSummary"},[e("h4",{staticClass:"invoiceDetailSummary__title"},[t._v(t._s(t.$t("invoice_detail.invoice_summary")))]),t.invoice?[t._l(t.invoice.lines,function(i,s){return[i.total>=0&&t.supportsChargeView(i)?e("InvoiceDetailEntry",{key:`line_${s}`,staticClass:"bundle",attrs:{appearance:"cost",label:t.describeLine(i),amount:t.adaptVat(i.total,i.type)},on:{click:function(e){return t.$emit("openCharges",i)}}}):i.total>=0&&t.hasLinkedInvoice(i)?e("InvoiceDetailEntry",{key:`line_${s}`,staticClass:"bundle",attrs:{appearance:"cost",label:t.describeLine(i,t.invoice.grouped),amount:t.adaptVat(i.total,i.type)},on:{click:function(e){return t.$emit("openLinkedInvoice",i.linkedInvoiceId)}}}):i.total>=0?e("InvoiceDetailEntry",{key:`line_${s}`,staticClass:"bundle",attrs:{appearance:"cost",label:t.describeLine(i,t.invoice.grouped),amount:t.adaptVat(i.total,i.type)}}):t._e()]}),t._l(t.invoice.outOfBundleCosts,function(i,s){return e("InvoiceDetailEntry",{key:s,staticClass:"outOfBundleCost",attrs:{"data-qa":`outOfBundleCost-${s}`,appearance:"cost",label:t.describeOobLine(i),amount:t.adaptVat(i.amount)}},[t.showOOBBundleUsageLink(i)?e("RouterLink",{attrs:{to:t.outOfBundleCostRouterLink(i),title:t.$t("invoice_detail.show_out_of_bundle_cost_usage")}},[t._v(" "+t._s(t.$t("invoice_detail.show_out_of_bundle_cost_usage"))+" ")]):t._e()],1)})]:[e("InvoiceDetailEntry",{attrs:{appearance:"cost",loading:!0,label:"",amount:""}}),e("InvoiceDetailEntry",{attrs:{appearance:"cost",loading:!0,label:"",amount:""}})]],2)},[],!1,null,"0a2ca994",null).exports;class ef extends d.lD{get amountExVat(){return this.invoice?(0,tA.SB)(this.invoice.amount):0}get amountVat(){return this.invoice?this.invoice.amount-this.amountExVat:0}get totalInvoiceAmount(){return this.invoice?this.invoice.reducedAmount??this.invoice.amount:0}get showTotalInvoiceAmount(){return!!this.invoice&&!this.invoice.hasScheduledPayment&&Math.abs(this.totalInvoiceAmount-this.invoice.amountDue)>.005}get amountDueLabel(){return this.showTotalInvoiceAmount?this.$t("invoice_detail.remaining_amount_to_pay").toString():this.$t("invoice_detail.total_amount_due").toString()}get extraInfoMessage(){return this.invoice?.sepaDueDate&&this.invoice?.hasScheduledPayment?`${this.$t("invoice_detail.will_be_paid_on")} ${(0,ep.Yq)(this.invoice.sepaDueDate)}`:this.invoice?.dueDate?`${this.$t("invoice_detail.to_pay_before_date")} ${(0,ep.Yq)(this.invoice.dueDate)}`:null}constructor(...t){super(...t),this.formatDate=ep.Yq}}(0,a.Cg)([(0,d.kv)({type:Object,required:!1,default:null})],ef.prototype,"invoice",void 0),(0,a.Cg)([(0,d.y_)()],ef.prototype,"site",void 0);var ey=ef=(0,a.Cg)([(0,d.uA)({components:{InvoiceDetailEntry:et}})],ef),eb=(0,S.A)(ey,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"invoiceDetailTotal"},[t.invoice&&t.invoice.hasReduction?e("div",{staticClass:"invoice__amountEntries invoiceDetailTotals__beforeDiscount end-section"},["my-business"===t.site.context?[e("InvoiceDetailEntry",{attrs:{label:t.$t("invoice_detail.total_ex_vat"),appearance:"totalAmount",loading:!t.invoice,amount:t.amountExVat}}),e("InvoiceDetailEntry",{staticClass:"total-amount",attrs:{appearance:"totalAmount",label:t.$t("invoice_detail.vat"),loading:!t.invoice,amount:t.amountVat}})]:t._e(),"my-viking"===t.site.context?[e("InvoiceDetailEntry",{staticClass:"total-amount",attrs:{appearance:"totalAmount",label:t.$t("invoice_detail.total"),loading:!t.invoice,amount:t.invoice?t.invoice.amount:0}})]:t._e(),t.invoice?[t._l(t.invoice.reductions,function(i,s){return[i.linkedInvoiceId?e("InvoiceDetailEntry",{key:`l_${s}`,attrs:{appearance:"reduction",label:t.$t(`invoice_detail.reduction_${i.type}`),amount:i.total},on:{click:function(e){return t.$emit("openLinkedInvoice",i.linkedInvoiceId)}}}):e("InvoiceDetailEntry",{key:`l_${s}`,attrs:{appearance:"reduction",label:t.$t(`invoice_detail.reduction_${i.type}`),amount:i.total}})]})]:t._e()],2):t._e(),e("div",{staticClass:"invoiceDetailTotals__afterDiscount end-section"},[t.invoice?"paid"!==t.invoice.state||t.invoice.hasScheduledPayment?[t.showTotalInvoiceAmount?e("InvoiceDetailEntry",{staticClass:"invoiceDetailEntry invoiceDetailEntry--totalInvoiceAmount",attrs:{appearance:"totalAmount",label:t.$t("invoice_detail.total_invoice_amount"),amount:t.totalInvoiceAmount}}):t._e(),e("InvoiceDetailEntry",{staticClass:"invoiceDetailEntry invoiceDetailEntry--amountDue",attrs:{appearance:"amountAfterReduction",label:t.amountDueLabel,amount:t.invoice.amountDue,extraInfo:t.extraInfoMessage}})]:e("InvoiceDetailEntry",{attrs:{appearance:"amountAfterReduction",label:t.$t("invoice_detail.total_amount_paid"),amount:t.invoice.reducedAmount}}):e("InvoiceDetailEntry",{attrs:{loading:!0,label:"",amount:"0"}})],2)])},[],!1,null,"bd59872e",null).exports;
47class eC extends d.lD{get downloadUrl(){return this.invoiceService.getInvoicePDFUrl(this.invoice)}get showUnpaidNotification(){return!["paid","accepted","pending_payment","partially_paid"].includes(this.invoice.state)}get sepaDescription(){return this.invoice&&this.invoice.sepaDueDate?this.$t("invoice_detail.sepa_invoice_{date}__html",{date:(0,ep.Yq)(this.invoice.sepaDueDate)}).toString():""}}(0,a.Cg)([(0,d.y_)()],eC.prototype,"invoiceService",void 0),(0,a.Cg)([(0,d.kv)()],eC.prototype,"invoice",void 0);var ew=eC=(0,a.Cg)([(0,d.uA)({components:{InlineNotification:T.A,InvoiceDetailHeading:es,InvoiceDetailTotal:eb,InvoiceDetailSummary:ev}})],eC),eS=(0,S.A)(ew,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"invoiceDetail sidePanelContentMain"},[e("div",[t.invoice?[t.invoice.hasScheduledPayment?e("InlineNotification",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.sepaDescription,expression:"sepaDescription"}],staticClass:"sepa-invoice-message",attrs:{appearance:"inSidePanel",notificationType:"info"}}):t._e(),t.showUnpaidNotification?e("InlineNotification",{staticClass:"unpaid-invoice-message",attrs:{appearance:"inSidePanel",notificationType:"error"}},[t._v(" "+t._s(t.$t("invoice_detail.unpaid_invoice"))+" ")]):t._e(),"paid"!==t.invoice.state||t.invoice.hasScheduledPayment?t._e():e("InlineNotification",{staticClass:"paid-invoice-message",attrs:{appearance:"inSidePanel",notificationType:"success"}},[t._v(" "+t._s(t.$t("invoice_detail.invoice_paid"))+" ")]),"pending_payment"===t.invoice.state?e("InlineNotification",{staticClass:"processing-invoice-message",attrs:{appearance:"inSidePanel",notificationType:"info"}},[t._v(" "+t._s(t.$t("invoice_detail.invoice_being_processed"))+" ")]):t._e(),"partially_paid"===t.invoice.state?e("InlineNotification",{staticClass:"partiallyPaid-invoice-message",attrs:{appearance:"inSidePanel",notificationType:"error"}},[t._v(" "+t._s(t.$t("invoice_detail.payment_is_only_partially_paid"))+" ")]):t._e()]:t._e(),e("div",{staticClass:"invoiceDetail__heading end-section"},[e("InvoiceDetailHeading",{attrs:{invoice:t.invoice,invoiceType:t.$t("invoice_detail.invoice")}})],1),e("InvoiceDetailTotal",{attrs:{invoice:t.invoice},on:{openLinkedInvoice:function(e){return t.$emit("openLinkedInvoice",e)}}}),e("InvoiceDetailSummary",{attrs:{invoice:t.invoice},on:{openCharges:function(e){return t.$emit("openCharges",e)},openLinkedInvoice:function(e){return t.$emit("openLinkedInvoice",e)}}})],2),t.invoice?e("ul",{staticClass:"sidePanelContentMain__mainBottom sidepanelBottomActionsList"},[e("li",[e("a",{staticClass:"linkWithIcon linkWithIcon--iconDownload download",attrs:{href:t.downloadUrl}},[t._v(" "+t._s(t.$t("download"))+" ")])])]):t._e()])},[],!1,null,"0845686f",null).exports;let eM=(0,n.tZ)("InvoiceDetailsSpc");class eA extends d.lD{get linkedInvoice(){if(!this.steps)return null;let t=this.steps.activeStep.match(/^linkedInvoice-(\d+)$/);return t&&this.linkedInvoiceStack[parseInt(t[1],10)]||null}get translatedChargeType(){return this.chargeLine?this.$t(`invoice_details.charge_type__${this.chargeLine.type}`):null}get generalPayButtonAppearance(){return"primary"}get generalPayButtonText(){return this.$t("pay_now")}async loadAllowedPaymentMethods(t){try{return await this.uwa.getPaymentMethods(t)}catch(t){return eM.error("Failed to get the allowed payment methods",t),[]}}async loadInvoice(){if(this.invoice=null,!this.id)return void this.$router.replace({name:tr.A.invoices});try{let t=await (this.companyId?this.invoiceService.getCompanyInvoice(this.companyId,this.id):this.invoiceService.getInvoice(this.id));if(!t){this.error=`${this.$t("we_cannot_find_this_invoice__maybe_it_belongs_to_another_viking")}`;return}t.canBePaid&&this.warnForOlderUnpaidInvoices(t),t.subscriptionId&&this.isOwnerOfSubscription(t.subscriptionId)&&(this.allowedPaymentMethods=await this.loadAllowedPaymentMethods(t.subscriptionId)),this.invoice=t}catch(t){eM.error("Something went wrong while loading the invoice",t),this.error=this.$t("this_link_is_invali
47d__go_back_and_try_again").toString()}this.alreadyPaid&&this.notify.success("invoice_was_already_paid",{},{},"invoice_paid")}adaptSiteContext(){this.site.context=this.companyId?"my-business":"my-viking"}adaptRouteToType(){if(!this.invoice)return;let t="invoice"===this.invoice.type?"invoice-details":"credit-note-details";!this.$route.query.spc!==t&&this.$router.push({...this.$route,query:{...this.$route.query,spc:t}})}toggleStep(t,e){"linkedInvoice"===e?this.openLinkedInvoice(t):"charges"===e&&(this.chargeLine=t,this.chargesInvoice=this.linkedInvoice,this.steps.pushStep("charges"))}async openLinkedInvoiceById(t){try{let e=await (this.companyId?this.invoiceService.getCompanyInvoice(this.companyId,t):this.invoiceService.getInvoice(t));if(!e)return;await this.openLinkedInvoice(e)}catch(t){eM.error("Failed to load linked invoice",t),this.notifyGenericErrors(t)}}async openLinkedInvoice(t){let e=this.steps.activeStep.match(/^linkedInvoice-(\d+)$/),i=e?parseInt(e[1],10)+1:0;this.linkedInvoiceStack.splice(i),this.linkedInvoiceStack.push(t),await this.$nextTick(),this.steps.pushStep(`linkedInvoice-${this.linkedInvoiceStack.length-1}`)}async warnForOlderUnpaidInvoices(t){try{let e=await (t.companyId?this.invoiceService.getOldestUnpaidCompanyInvoice():this.invoiceService.getOldestUnpaidInvoice());if(!e||e.id===t.id||e.dueDate.isEqual(t.dueDate))return;let i=await this.confirm(this.$t("invoice_details.older_invoice_popup_body"),this.$t("invoice_details.older_invoice_popup_title"),this.$t("invoice_details.older_invoice_popup_go"),this.$t("invoice_details.older_invoice_popup_stay"));if(void 0===i)return;let s=i?e:t;this.sendCustomerToPaymentUrl(s)}catch(t){eM.error("Failed to warn about unpaid invoices",t)}}payInvoice(t,e){this.sendCustomerToPaymentUrl(t,e)}async sendCustomerToPaymentUrl(t,e){let i=this.absoluteUrl(this.$router.resolve({...this.$route,query:{...this.$route.query,id:t.id}}).href);try{this.error=null,this.saving=!0;let s=await this.invoiceService.payInvoice(t,i,e);this.goTo(s)}catch(t){r.Ay.of(t).code===r.O4.NOT_PAYABLE?this.goTo(`${i}&already-paid=true`):(eM.error("An error occured while paying an invoice",t),this.error=this.getCopyKeyForGenericError(t))}finally{this.saving=!1}}async dismiss(){this.saving||(delete this.$route.query.id,this.alreadyPaid&&delete this.$route.query["already-paid"],this.$emit("dismiss"))}isOwnerOfSubscription(t){let e=this.session?.subscriptions?.find(e=>e.id===t);return!!e&&e.isOwner}constructor(...t){super(...t),this.site={context:"other"},this.invoice=null,this.error=null,this.saving=!1,this.chargeLine=null,this.chargesInvoice=null,this.linkedInvoiceStack=[],this.allowedPaymentMethods=[]}}(0,a.Cg)([(0,d.ku)()],eA.prototype,"site",void 0),(0,a.Cg)([(0,d.oS)()],eA.prototype,"steps",void 0),(0,a.Cg)([(0,d.y_)()],eA.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],eA.prototype,"invoiceService",void 0),(0,a.Cg)([(0,d.y_)()],eA.prototype,"absoluteUrl",void 0),(0,a.Cg)([(0,d.y_)()],eA.prototype,"goTo",void 0),(0,a.Cg)([(0,d.y_)()],eA.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],eA.prototype,"config",void 0),(0,a.Cg)([(0,d.y_)()],eA.prototype,"uwa",void 0),(0,a.Cg)([(0,d.kv)()],eA.prototype,"id",void 0),(0,a.Cg)([(0,d.kv)()],eA.prototype,"companyId",void 0),(0,a.Cg)([(0,d.kv)()],eA.prototype,"alreadyPaid",void 0),(0,a.Cg)([(0,d.ox)("id",{immediate:!0})],eA.prototype,"loadInvoice",null),(0,a.Cg)([(0,d.ox)("companyId",{immediate:!0})],eA.prototype,"adaptSiteContext",null),(0,a.Cg)([(0,d.ox)("invoice")],eA.prototype,"adaptRouteToType",null);var ek=eA=(0,a.Cg)([(0,d.uA)({components:{CallToAction:c.A,InvoiceCharges:eu,Steps:v.A,Step:g.A,CreditNoteDetail:er,InvoiceDetail:eS}})],eA),eI=(0,S.A)(ek,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",[e("Steps",{ref:"steps"},[e("Step",{attrs:{stepName:"overview"}},[e("header",[t.invoice&&"credit_note"===t.invoice.type?e("h2",[t._v(" "+t._s(t.$t("invoice_detail.credit_note_title"))+" ")]):e("h2",[t._v(t._s(t.$t("invoice_detail.invoice_title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main noPaddingTop"},[t.error?e("div",{staticClass:"error"},[t._v(t._s(t.error))]):t._e(),t.invoice&&"credit_note"===t.invoice.type?e("CreditNoteDetail",{attrs:{creditNote:t.invoice,companyId:t.companyId},on:{openLinkedInvoice:function(e){return t.toggleStep(e,"linkedInvoice")}}}):e("InvoiceDetail",{attrs:{invoice:t.invoice},on:{openCharges:function(e){return t.toggleStep(e,"charges")},openLinkedInvoice:function(e){return t.openLinkedInvoiceById(e)}}})],1),t.invoice&&t.invoice.canBePaid?e("footer",{staticClass:"footer"},[e("CallToAction",{attrs:{appearance:t.generalPayButtonAppearance,once:()=>t.payInvoice(t.invoice),"data-qa":"general-payment-button",type:"submit"}},[t._v(" "+t._s(t.generalPayButtonText)+" ")])],1):t._e()]),t._l(t.linkedInvoiceStack,function(i,s){return e("Step",{key:`linkedInvoice-${s}`,attrs:{stepName:`linkedInvoice-${s}`}},[e("header",[e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"back",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.steps.popStep()}}},[e("span",[t._v(t._s(t.$t("back")))])]),e("h2",[t._v(t._s(t.$t("invoice_detail.invoice_title")))])]),e("div",{staticClass:"my-viking-sidePanel__main noPaddingTop"},[e("InvoiceDetail",{attrs:{invoice:i},on:{openCharges:function(e){return t.toggleStep(e,"charges")},openLinkedInvoice:function(e){return t.openLinkedInvoiceById(e)}}})],1),i.canBePaid?e("footer",{staticClass:"footer"},[e("CallToAction",{attrs:{appearance:t.generalPayButtonAppearance,once:()=>t.payInvoice(i),"data-qa":"general-payment-button",type:"submit"}},[t._v(" "+t._s(t.generalPayButtonText)+" ")])],1):t._e()])}),e("Step",{attrs:{stepName:"charges"}},[e("header",[e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"back",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.steps.popStep()}}},[e("span",[t._v(t._s(t.$t("back")))])]),e("h2",[t._v(t._s(t.$t("invoice_detail.detail_for_{chargeType}",{chargeType:t.translatedChargeType})))])]),e("div",{staticClass:"my-viking-sidePanel__main noPaddingTop"},[t.chargeLine?e("InvoiceCharges",{attrs:{invoice:t.chargesInvoice||t.invoice,line:t.chargeLine}}):t._e()],1)])],2)],1)},[],!1,null,null,null).exports;let ex=(0,n.tZ)("LanguageEditComponent");class eN extends d.lD{async created(){this.session.profile&&(this.language=this.session.profile.language)}get isDirty(){return!this.session.profile||this.language!==this.session.profile.language}async save(){try{if(!await this.$validator.validateAll())throw Error("validation error");this.saving=!0,await this.customerService.updateProfile({...this.otherProfileData,language:this.language}),this.saving=!1,this.$emit("dismiss"),this.notify.success("your_language_has_been_changed")}catch(t){ex.error("Failed to update profile language",t),this.saving=!1,this.notifyGenericErrors(t)}}async dismiss(){!this.saving&&(!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$emit("dismiss")}constructor(...t){super(...t),this.otherProfileData={},this.language="",this.saving=!1}}(0,a.Cg)([(0,d.y_)()],eN.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],eN.prototype,"customerService",void 0),(0,a.Cg)([(0,d.y_)()],eN.prototype,"confirm",void 0);var eT=eN=(0,a.Cg)([(0,d.uA)({components:{MissingProfileData:ty,InlineNotification:T.A,Field:u.A,CallToAction:c.A,MvForm:p.A}})],eN),eD=(0,S.A)(eT,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"language-settings-spc",attrs:{name:"changeLanguage"}},[e("header",[e("h2",[t._v(t._s(t.$t("language")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main noPaddingTop"},[e("InlineNotification",{attrs:{appearance:"inSidePanel"}},[t._v(" "+t._s(t.$t("warning_on_change_language"))+" ")]),e("div",{staticClass:"option-group"},[e("p",{staticClass:"option-group__description intro"},[t._v(t._s(t.$t("change_here_your_language")))]),e("Field",{attrs:{label:t.$t("language")}},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.language,expression:"language"}],attrs:{id:"viking_language",name:"language",required:""},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.language=e.target.multiple?i:i[0]}}},[e("option",{attrs:{value:"en"}},[t._v(t._s(t.$t("lang_en")))]),e("option",{attrs:{value:"nl"}},[t._v(t._s(t.$t("lang_nl")))]),e("option",{attrs:{value:"fr"}}
47,[t._v(t._s(t.$t("lang_fr")))])])])],1),e("MissingProfileData",{model:{value:t.otherProfileData,callback:function(e){t.otherProfileData=e},expression:"otherProfileData"}})],1),e("footer",[e("CallToAction",{attrs:{once:t.save,type:"submit"}},[t._v(t._s(t.$t("save")))])],1)])},[],!1,null,null,null).exports,e$=i(52887),eP=i(43979);let eL=(0,n.tZ)("B2bCompanyDetailsSpc");class eE extends d.lD{async created(){if(!this.session.company)throw new V.p("No company data available");this.sessionCompany=this.session.company}get alreadyPending(){return!!this.session.company.pendingEnterpriseNumber}get isDirty(){let t=this.session.company.pendingEnterpriseNumber||this.session.company.enterpriseNumber;return!this.companyDetails||this.companyDetails.enterpriseNumber!==t}get isReadyToBeSaved(){let t=this.session.company.pendingEnterpriseNumber||this.session.company.enterpriseNumber;return!!this.companyDetails&&this.companyDetails.enterpriseNumber!==t}get buttonText(){return this.isReadyToBeSaved?this.$t("save_and_close").toString():this.$t("close").toString()}async dismiss(){!this.saving&&(!this.companyDetails&&this.alreadyPending||!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$emit("dismiss")}async submit(){if(!this.isReadyToBeSaved)return void this.dismiss();try{this.saving=!0;let t=this.companyDetails.enterpriseNumber;await this.uwa.updateCompany(this.session.company.id,{enterpriseNumber:t});let e=this.session.companies.map(e=>(e.id===this.session.company.id&&(e.pendingEnterpriseNumber=t),e));this.session.update({companies:e}),this.notify.success("b2b_company_details.enterprise_number_change_success"),this.$emit("dismiss")}catch(t){if(r.Ay.of(t).code===r.O4.VALUE_ALREADY_IN_USE){this.error=!0;return}eL.error("Unable to save changed company details",t),this.notifyGenericErrors(t)}finally{this.saving=!1}}constructor(...t){super(...t),this.sessionCompany=null,this.companyDetails=null,this.saving=!1,this.error=!1}}(0,a.Cg)([(0,d.y_)()],eE.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],eE.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],eE.prototype,"uwa",void 0);var eO=eE=(0,a.Cg)([(0,d.uA)({components:{CompanyDetailsLookup:eP.A,CallToAction:c.A,InlineNotification:T.A}})],eE),ez=(0,S.A)(eO,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"b2b-company-details-spc"},[e("header",[e("h2",[t._v(t._s(t.$t("b2b_company_details.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main",class:{noPaddingTop:t.error}},[t.error?e("InlineNotification",{attrs:{notificationType:"error"}},[t._v(" "+t._s(t.$t("validationError__enterprise_number_already_used"))+" ")]):t._e(),e("div",{staticClass:"option-group"},[e("CompanyDetailsLookup",{attrs:{seed:t.sessionCompany,appearance:"narrow"},model:{value:t.companyDetails,callback:function(e){t.companyDetails=e},expression:"companyDetails"}})],1)],1),e("footer",[e("CallToAction",{staticClass:"B2bCompanyDetails_submit",class:{save:t.isReadyToBeSaved,close:!t.isReadyToBeSaved},attrs:{once:t.submit,type:"submit"}},[t._v(" "+t._s(t.buttonText)+" ")])],1)])},[],!1,null,null,null).exports;let ej=(0,n.tZ)("B2bContactEmailSpc");class eB extends d.lD{async created(){if(!this.session.company)throw new V.p("No company data available");this.email=this.session.company.contactEmail||""}get isDirty(){if(!this.session.company)throw new V.p("Session.company expected");return(this.session.company.contactEmail||"")!==this.email}get buttonText(){return this.isDirty?this.$t("save_and_close").toString():this.$t("close").toString()}async dismiss(){!this.saving&&(!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$emit("dismiss")}async submit(){if(this.uwaValidationErrors={},!this.isDirty)return void this.$emit("dismiss");if(!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.scrollToFirstInvalid();return}try{if(!this.session.company)throw new V.p("Session.company expected");if(!this.session.companies)throw new V.p("Session.companies expected");if(!this.email)throw new V.p("Email expected");this.saving=!0,await this.uwa.updateCompany(this.session.company.id,{contactEmail:this.email});let t=this.session.company.id,e=this.email,i=this.session.companies.map(i=>(i.id===t&&(i.contactEmail=e),i));this.session.update({companies:i}),this.notify.success("b2b_contact_email.email_change_success"),this.$emit("dismiss")}catch(i){let t=r.Ay.of(i),e=(0,y.v)(t,[{code:r.O4.INVALID_VALUE,field:"email",on:"email",message:"email_invalid"}]);this.uwaValidationErrors=e.result,e.firstIssue?(this.notify.error("form_is_not_valid"),this.scrollToFirstInvalid()):(ej.error("Unable to save changed company email",i),this.notifyGenericErrors(i))}finally{this.saving=!1}}async scrollToFirstInvalid(){this.domUtils.scrollToFirst(".is-invalid",20)}constructor(...t){super(...t),this.uwaValidationErrors={},this.email=null,this.saving=!1}}(0,a.Cg)([(0,d.y_)()],eB.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],eB.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],eB.prototype,"uwa",void 0),(0,a.Cg)([(0,d.y_)()],eB.prototype,"domUtils",void 0);var eF=eB=(0,a.Cg)([(0,d.uA)({components:{Field:u.A,CallToAction:c.A}})],eB),eq=(0,S.A)(eF,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"b2b-contact-email-spc"},[e("header",[e("h2",[t._v(t._s(t.$t("b2b_contact_email.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("div",{staticClass:"option-group"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("b2b_contact_email.intro"),expression:"$t('b2b_contact_email.intro')"}],staticClass:"option-group__description intro"}),e("Field",{attrs:{label:t.$t("b2b_contact_email.email"),validationErrors:t.$tList(t.uwaValidationErrors.email,"validationError__")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"},{name:"validate",rawName:"v-validate",value:{email:!0},expression:"{ email: true }"}],attrs:{required:"",autocomplete:"email",type:"text",name:"email"},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}}
47)])],1)]),e("footer",[e("CallToAction",{staticClass:"B2bContactEmail_submit",class:{save:t.isDirty,close:!t.isDirty},attrs:{once:t.submit,type:"submit"}},[t._v(" "+t._s(t.buttonText)+" ")])],1)])},[],!1,null,null,null).exports,eR=i(49842),eU=i(19339);let eV=(0,n.tZ)("B2bContactTelSpc");class eW extends d.lD{async created(){if(!this.session.company)throw new V.p("No company data available");this.phoneNumber=this.session.company.contactTel||""}get isDirty(){if(!this.session.company)throw new V.p("Session.company expected");return(this.session.company.contactTel||"")!==this.phoneNumber}get buttonText(){return this.isDirty?this.$t("save_and_close").toString():this.$t("close").toString()}async dismiss(){!this.saving&&(!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$emit("dismiss")}async submit(){if(!this.isDirty)return void this.$emit("dismiss");if(!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.scrollToFirstInvalid();return}try{if(!this.session.company)throw new V.p("Session.company expected");if(!this.session.companies)throw new V.p("Session.companies expected");if(!this.phoneNumber)throw new V.p("PhoneNumber expected");this.saving=!0;let t=(0,eU.E)(this.phoneNumber);if(!t)throw new V.p("NormalizedPhoneNumber unavailable");await this.uwa.updateCompany(this.session.company.id,{contactTel:t});let e=this.session.company.id,i=this.session.companies.map(i=>(i.id===e&&(i.contactTel=t),i));this.session.update({companies:i}),this.notify.success("b2b_contact_tel.phone_number_change_success"),this.$emit("dismiss")}catch(t){eV.error("Unable to save changed company phone number",t),this.notifyGenericErrors(t)}finally{this.saving=!1}}async scrollToFirstInvalid(){this.domUtils.scrollToFirst(".is-invalid",20)}constructor(...t){super(...t),this.phoneNumber=null,this.saving=!1}}(0,a.Cg)([(0,d.y_)()],eW.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],eW.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],eW.prototype,"uwa",void 0),(0,a.Cg)([(0,d.y_)()],eW.prototype,"domUtils",void 0);var eQ=eW=(0,a.Cg)([(0,d.uA)({components:{Field:u.A,MsisdnInput:eR.A,CallToAction:c.A}})],eW),eY=(0,S.A)(eQ,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"b2b-contact-tel-spc"},[e("header",[e("h2",[t._v(t._s(t.$t("b2b_contact_tel.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("div",{staticClass:"option-group"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("b2b_contact_tel.intro"),expression:"$t('b2b_contact_tel.intro')"}],staticClass:"option-grpup__description intro"}),e("Field",{attrs:{label:t.$t("b2b_contact_tel.phoneNumber")}},[e("MsisdnInput",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],attrs:{name:"phoneNumber"},model:{value:t.phoneNumber,callback:function(e){t.phoneNumber=e},expression:"phoneNumber"}})],1)],1)]),e("footer",[e("CallToAction",{staticClass:"B2bContactTel_submit",class:{save:t.isDirty,close:!t.isDirty},attrs:{once:t.submit,type:"submit"}},[t._v(" "+t._s(t.buttonText)+" ")])],1)])},[],!1,null,null,null).exports;let eG=(0,n.tZ)("B2bMnpSpc");class eH extends d.lD{async created(){if(!this.session.company)throw new V.p("No company data available");try{let[t,e]=await Promise.all([this.uwa.getOperators(),this.uwa.getCompanyOnboardingDefaults(this.session.company.id)]);this.operators=t,this.onboardingDefaults=e,this.operator=t.find(t=>t.name===e.mnpOperator)||null,this.contractNr=e.mnpContractNr||""}catch(t){eG.error("Failed to load onboarding defaults",t),this.notifyGenericErrors(t),this.$emit("dismiss")}}get isDirty(){if(!this.onboardingDefaults||!this.operators)return!1;let t=this.operator?this.operator.name:"";return(this.onboardingDefaults.mnpOperator||"")!==t||(this.onboardingDefaults.mnpContractNr||"")!==this.contractNr}get areFieldsRequired(){return!!this.onboardingDefaults&&!!this.operators&&(!!this.operator||!!this.contractNr)}get buttonText(){return this.isDirty?this.$t("save_and_close").toString():this.$t("close").toString()}async dismiss(){!this.saving&&(!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$emit("dismiss")}async submit(){if(!this.isDirty)return void this.$emit("dismiss");if(!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.scrollToFirstInvalid();return}try{if(!this.session.company)throw new V.p("Session.company expected");this.saving=!0,await this.uwa.updateCompanyOnboardingDefaults(this.session.company.id,{...this.onboardingDefaults,mnpOperator:this.operator?this.operator.name:"",mnpContractNr:this.contractNr?this.contractNr:""}),this.notify.success("b2b_mnp.mnp_change_success"),this.$emit("dismiss")}
47catch(t){eG.error("Unable to save changed operator/contract number",t),this.notifyGenericErrors(t)}finally{this.saving=!1}}async scrollToFirstInvalid(){this.domUtils.scrollToFirst(".is-invalid",20)}constructor(...t){super(...t),this.operators=null,this.onboardingDefaults=null,this.operator=null,this.contractNr=null,this.saving=!1}}(0,a.Cg)([(0,d.y_)()],eH.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],eH.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],eH.prototype,"uwa",void 0),(0,a.Cg)([(0,d.y_)()],eH.prototype,"domUtils",void 0);var eZ=eH=(0,a.Cg)([(0,d.uA)({components:{Field:u.A,CallToAction:c.A}})],eH),eJ=(0,S.A)(eZ,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"b2b-mnp-spc"},[e("header",[e("h2",[t._v(t._s(t.$t("b2b_mnp.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("div",{staticClass:"option-group"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("b2b_mnp.intro"),expression:"$t('b2b_mnp.intro')"}],staticClass:"option-group__description intro"}),e("Field",{attrs:{label:t.$t("b2b_mnp.operator")}},[e("select",{directives:[{name:"show",rawName:"v-show",value:t.operators,expression:"operators"},{name:"model",rawName:"v-model",value:t.operator,expression:"operator"},{name:"validate",rawName:"v-validate",value:{required:t.areFieldsRequired},expression:"{ required: areFieldsRequired }"}],attrs:{name:"operator"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.operator=e.target.multiple?i:i[0]}}},[e("option",{attrs:{value:""}}),t._l(t.operators,function(i){return e("option",{key:i.name,attrs:{name:i.name},domProps:{value:i}},[t._v(" "+t._s(i.name)+" ")])})],2),t.operators?t._e():e("div",{staticClass:"operator shimmer"},[t._v("Â ")])]),e("Field",{attrs:{label:t.$t("b2b_mnp.contract_number")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.contractNr,expression:"contractNr"},{name:"validate",rawName:"v-validate",value:{required:t.areFieldsRequired,regex:/[a-zA-Z0-9]$/},expression:"{ required: areFieldsRequired, regex: /[a-zA-Z0-9]$/ }"}],class:{shimmer:!t.onboardingDefaults},attrs:{type:"text",name:"contract_number",disabled:!t.onboardingDefaults},domProps:{value:t.contractNr},on:{input:function(e){e.target.composing||(t.contractNr=e.target.value)}}})])],1)]),e("footer",[e("CallToAction",{staticClass:"B2bMnp_submit",class:{save:t.isDirty,close:!t.isDirty},attrs:{once:t.submit,type:"submit"}},[t._v(" "+t._s(t.buttonText)+" ")])],1)])},[],!1,null,"418a2d2a",null).exports,eK=i(32400),eX=i(84679);let e0=(0,n.tZ)("B2bPaymentMethodSpc");class e1 extends d.lD{async created(){if(!this.session.company)throw new V.p("No company data available");if("success"===this.status){this.notify.success("b2b_payment_method.payment_method_change_success");try{let t=await this.uwa.getB2bMandate(this.company.id);await this.payUnpaidInvoices((0,t$.bp)(t,"Mandate created successfully, should exist"))}catch(e){let t=r.Ay.of(e);t.payload?.code===r.O4.TOO_MANY_UNPAID_INVOICES?(this.invoicePaymentFailedAfterMandateSuccess=!0,this.domUtils.scrollToFirst("[data-invoice-payment-failed-after-success-notification]",16)):t.payload?.code===r.O4.CUSTOMER_SHOULD_CHECK_THEIR_MAIL?(this.customerShouldCheckTheirMailError=!0,this.domUtils.scrollToFirst("[data-check-mail-notification]",16)):(e0.error("Failed to pay unpaid invoices after mandate creation",e),this.notifyGenericErrors(e))}}else"failed"===this.status&&this.notify.error("add_payment_method.failed_to_set_up_mandate");try{this.currentB2bMandate=await this.uwa.getB2bMandate(this.session.company.id),this.loading=!1}catch(t){e0.error("Failed to load b2b mandate",t),this.notifyGenericErrors(t),this.$emit("dismiss")}}openSetStep(){this.steps.pushStep("set")}async closeSetStepWithoutSaving(){(!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&(this.mandateType=null,this.iban=null,this.bic=null,this.steps.popStep())}get introText(){return this.currentB2bMandate?this.$t("b2b_payment_method.replace_intro").toString():this.$t("b2b_payment_method.intro_none_yet").toString()}get isSepaDisabled(){return this.config.featureFlags.disableCreatingNewSepaMandates}get mandateTypes(){return this.isSepaDisabled?eK.P.filter(t=>"sepa"!==t):eK.P}get isDirty(){return!!this.mandateType}get buttonText(){return this.isDirty?this.$t("save_and_close").toString():this.$t("close").toString()}async dismiss(){!this.saving&&(!this.isDirty||this.tooManyUnpaidInvoicesError||this.customerShouldCheckTheirMailError||this.invoicePaymentFailedAfterMandateSuccess||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$emit("dismiss")}get company(){return(0,t$._w)(this.session.company)}generateBic(){this.iban&&this.fields.iban.validated&&this.fields.iban.valid?(this.bic=this.ibanUtil.generateBic(this.iban),this.showBic=!this.bic):(this.bic=null,this.showBic=!1)}async submit(){if(!this.isDirty)return void this.dismiss();if(this.uwaValidationErrors={},!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20);return}try{if(!this.mandateType)throw new V.p("MandateType expected");if(this.saving=!0,"sepa"===this.mandateType){let t=await this.setupSepaMandate(this.bic,this.iban);this.notify.success("b2b_payment_method.payment_method_change_success"),t&&this.$emit("dismiss")}else await this.setupCreditCardMandate()}catch(i){let t=r.Ay.of(i),e=(0,y.v)(t,[{code:r.O4.DEBTOR_BIC_IBAN_MISMATCH,on:"bic",message:"debtor_bic_iban_mismatch"},{code:r.O4.INVALID_VALUE,field:"bic",on:"bic",message:"bic_is_invali
47d_for_iban"},{code:r.O4.IBAN_ALREADY_EXISTS,field:"iban",on:"iban",message:"iban_already_exists"},{code:r.O4.IBAN_ALREADY_LINKED_TO_YOUR_ACCOUNT,field:"iban",on:"iban",message:"iban_already_linked_to_your_account"}]);this.uwaValidationErrors=e.result,t.payload?.code===r.O4.TOO_MANY_UNPAID_INVOICES?(this.tooManyUnpaidInvoicesError=!0,this.domUtils.scrollToFirst("[data-pending-invoices-notification]",16)):t.payload?.code===r.O4.CUSTOMER_SHOULD_CHECK_THEIR_MAIL?(this.customerShouldCheckTheirMailError=!0,this.domUtils.scrollToFirst("[data-check-mail-notification]",16)):e.firstIssue?(this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20)):(e0.error("Unable to save changed payment method",i),this.notifyGenericErrors(i))}finally{this.saving=!1}}async setupSepaMandate(t,e){let i=await this.createSepaMandate(e,t);try{return await this.payUnpaidInvoices(i),!0}catch(e){let t=r.Ay.of(e);return t.payload?.code===r.O4.TOO_MANY_UNPAID_INVOICES?(this.invoicePaymentFailedAfterMandateSuccess=!0,this.domUtils.scrollToFirst("[data-invoice-payment-failed-after-success-notification]",16)):t.payload?.code===r.O4.CUSTOMER_SHOULD_CHECK_THEIR_MAIL?(this.customerShouldCheckTheirMailError=!0,this.domUtils.scrollToFirst("[data-check-mail-notification]",16)):(e0.error("Failed to pay unpaid invoices after B2B mandate creation",e),this.notifyGenericErrors(e)),!1}}async createSepaMandate(t,e){let i=this.ibanUtil.sanitizeIban(t);try{return await this.uwa.createB2bSepaMandate(this.company.id,{iban:i,bic:e})}catch(i){if(r.Ay.of(i).fieldCode("iban")===r.O4.IBAN_ALREADY_LINKED_TO_YOUR_ACCOUNT&&await this.confirm(this.$t("b2b_sepa_already_linked_to_your_account.popup_question"),this.$t("b2b_sepa_already_linked_to_your_account.poup_title"),this.$t("b2b_sepa_already_linked_to_your_account.popup_relink_button"),this.$t("b2b_sepa_already_linked_to_your_account.cancel")))return this.uwa.createB2bSepaMandate(this.company.id,{iban:t,bic:e},!0);throw i}}async setupCreditCardMandate(){let t={name:tr.A.companySettings,query:{spc:"b2b-payment-method",afterMandate:"cc"},params:{companyId:this.company.id}},e=this.absoluteUrl(this.$router.resolve(t)),i=await this.uwa.createB2bCreditCardMandate(this.company.id,e);this.goTo(i),await (0,tI.i4)()}async payUnpaidInvoices(t){try{let e=await this.invoiceService.unpaidCompanyInvoices;if(e.isEmpty)return;await this.invoiceService.payB2bInvoicesWithMandate(this.company,e.items.map(t=>`${t.id}`),t),this.notify.success("add_payment_method.unpaid_b2b_invoices_successfully_paid"),this.notificationManager.showPendingB2bInvoices(this.company)}catch(e){let t=r.Ay.of(e);if(t.payload?.code===r.O4.TOO_MANY_UNPAID_INVOICES||t.payload?.code===r.O4.CUSTOMER_SHOULD_CHECK_THEIR_MAIL)throw e;if(t.code===r.O4.NOT_PAYABLE)return void e0.info("Unpaid invoices are not payable -- most likely outdated");e0.error("Failed to pay unpaid invoices while adding payment method",e),this.notify.error("add_payment_method.failed_to_unpaid_b2b_invoices")}}constructor(...t){super(...t),this.uwaValidationErrors={},this.currentB2bMandate=null,this.tooManyUnpaidInvoicesError=!1,this.customerShouldCheckTheirMailError=!1,this.invoicePaymentFailedAfterMandateSuccess=!1,this.mandateType=null,this.iban=null,this.bic=null,this.showBic=!1,this.loading=!0,this.saving=!1}}(0,a.Cg)([(0,d.y_)()],e1.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],e1.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],e1.prototype,"domUtils",void 0),(0,a.Cg)([(0,d.y_)()],e1.prototype,"ibanUtil",void 0),(0,a.Cg)([(0,d.y_)()],e1.prototype,"config",void 0),(0,a.Cg)([(0,d.y_)()],e1.prototype,"uwa",void 0),(0,a.Cg)([(0,d.y_)()],e1.prototype,"invoiceService",void 0),(0,a.Cg)([(0,d.y_)()],e1.prototype,"absoluteUrl",void 0),(0,a.Cg)([(0,d.y_)()],e1.prototype,"goTo",void 0),(0,a.Cg)([(0,d.y_)()],e1.prototype,"notificationManager",void 0),(0,a.Cg)([(0,d.oS)()],e1.prototype,"steps",void 0),(0,a.Cg)([(0,d.kv)({default:null})],e1.prototype,"status",void 0);var e4=e1=(0,a.Cg)([(0,d.uA)({components:{InlineNotification:T.A,SidePanelItem:m.A,Loading:_.A,Steps:v.A,Step:g.A,RadioGroup:j.A,Field:u.A,CallToAction:c.A,PaymentMethodCard:eX.A}})],e1),e2=(0,S.A)(e4,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"b2b-payment-method-spc"},[t.loading?[e("header",[e("h2",[t._v(t._s(t.$t("b2b_payment_method.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main b2bPaymentMethodSpc__mainLoading",attrs:{"data-qa":"b2b-payment-method-spc-main"}},[e("Loading")],1)]:e("Steps",{ref:"steps"},[t.currentB2bMandate?e("Step",{attrs:{id:"initial_step",stepName:"initial"}},[e("header",[e("h2",[t._v(t._s(t.$t("b2b_payment_method.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main",attrs:{"data-qa":"b2b-payment-method-spc-main"}},[t.tooManyUnpaidInvoicesError?e("InlineNotification",{attrs:{notificationType:"error",appearance:"inSidePanel"}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("b2b_payment_method.editing_sepa_is_not_allowed__html"),expression:"$t('b2b_payment_method.editing_sepa_is_not_allowed__html')"}],attrs:{"data-pending-invoices-notification":"","data-qa":"pending-invoices-notification"}})]):t._e(),t.customerShouldCheckTheirMailError?e("InlineNotification",{attrs:{notificationType:"error",appearance:"inSidePanel"}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("b2b_payment_method.customer_should_check_their_mail__html"),expression:"$t('b2b_payment_method.customer_should_check_their_mail__html')"}],attrs:{"data-check-mail-notification":"","data-qa":"check-mail-notification"}})]):t._e(),t.invoicePaymentFailedAfterMandateSuccess?e("InlineNotification",{attrs:{notificationType:"error",appearance:"inSidePanel"}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("b2b_payment_method.mandate_created_but_payment_failed__html"),expression:"$t('b2b_payment_method.mandate_created_but_payment_failed__html')"}],attrs:{"data-invoice-payment-failed-after-success-notification":"","data-qa":"invoice-payment-failed-after-success-notification"}})]):t._e(),e("div",{staticClass:"option-group"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("b2b_payment_method.intro"),expression:"$t('b2b_payment_method.intro')"}],staticClass:"option-group__description intro"}),e("PaymentMethodCard",{staticClass:"b2bPaymentMethodSpc__paymentMethodCard",attrs:{mandate:t.currentB2bMandate},on:{replace:function(e){return t.replaceMandate(t.mandate)},delete:function(e){return t.deleteMandate(t.mandate)}}}),e("div",{staticClass:"b2bPaymentMethodSpc__isReplaceable"},[e("SidePanelItem",{attrs:{id:"replace_payment_method",title:t.$t("b2b_payment_method.replace_payment_method")},on:{edit:function(e){return t.openSetStep()}}}
47)],1)],1)],1),e("footer",[e("CallToAction",{staticClass:"dismiss",attrs:{once:t.dismiss,type:"submit"}},[t._v(" "+t._s(t.$t("close"))+" ")])],1)]):t._e(),e("Step",{attrs:{id:"set_step",stepName:"set"}},[t.currentB2bMandate?e("header",[e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"back",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.closeSetStepWithoutSaving()}}},[e("span",[t._v(t._s(t.$t("back")))])]),e("h2",[t._v(t._s(t.$t("b2b_payment_method.replace_title")))])]):e("header",[e("h2",[t._v(t._s(t.$t("b2b_payment_method.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main",class:{noPaddingTop:t.tooManyUnpaidInvoicesError||t.customerShouldCheckTheirMailError||t.invoicePaymentFailedAfterMandateSuccess||t.isSepaDisabled},attrs:{"data-qa":"b2b-payment-method-spc-main"}},[t.tooManyUnpaidInvoicesError?e("InlineNotification",{attrs:{notificationType:"error",appearance:"inSidePanel"}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("b2b_payment_method.adding_sepa_is_not_allowed__html"),expression:"$t('b2b_payment_method.adding_sepa_is_not_allowed__html')"}],attrs:{"data-pending-invoices-notification":"","data-qa":"pending-invoices-notification"}})]):t._e(),t.customerShouldCheckTheirMailError?e("InlineNotification",{attrs:{notificationType:"error",appearance:"inSidePanel"}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("b2b_payment_method.customer_should_check_their_mail__html"),expression:"$t('b2b_payment_method.customer_should_check_their_mail__html')"}],attrs:{"data-check-mail-notification":"","data-qa":"check-mail-notification"}})]):t._e(),t.invoicePaymentFailedAfterMandateSuccess?e("InlineNotification",{attrs:{notificationType:"error",appearance:"inSidePanel"}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("b2b_payment_method.mandate_created_but_payment_failed__html"),expression:"$t('b2b_payment_method.mandate_created_but_payment_failed__html')"}],attrs:{"data-invoice-payment-failed-after-success-notification":"","data-qa":"invoice-payment-failed-after-success-notification"}})]):t._e(),t.isSepaDisabled?e("InlineNotification",{staticClass:"b2bPaymentMethodSpc__sepaDisabled",attrs:{appearance:"inSidePanel",notificationType:"warning"}},[t._v(" "+t._s(t.$t("sepa_temporarily_unavailable"))+" ")]):t._e(),e("div",{staticClass:"option-group"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.introText,expression:"introText"}],staticClass:"option-group__description intro"}),e("RadioGroup",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],staticClass:"b2bPaymentMethodSpc__mandateTypeOptions",attrs:{options:t.mandateTypes},scopedSlots:t._u([{key:"default",fn:function({option:i}){return[e("div",{class:`MandateTypeOption MandateTypeOption-${i}`},[e("img",{attrs:{src:`${t.config.vueRoot}/img/mandateMethods/${i}.svg`,alt:i}}),e("span",{staticClass:"option-description"},[t._v(" "+t._s(t.$t(`mandate_method__${i}`))+" ")])])]}},{key:"radioGroupDescription",fn:function({option:i}){return[e("div",{staticClass:"MandateTypeOption__additionalDetails styleLevel2"},["sepa"===i?e("div",[e("Field",{staticClass:"MandateTypeOption__additionalDetails__ibanField",attrs:{label:t.$t("add_payment_method.your_iban"),hint:t.$t("add_payment_method.your_iban_hint"),validationErrors:t.$tList(t.uwaValidationErrors.iban,"validationError__")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.iban,expression:"iban"},{name:"validate",rawName:"v-validate",value:{required:"sepa"===t.mandateType,iban:!0},expression:"{ required: mandateType === 'sepa', iban: true }"}],key:"sepa-iban",attrs:{type:"text",name:"iban",placeholder:"BE _ _ _ _ _ _ _ _ _ _ _ _ _ _"},domProps:{value:t.iban},on:{blur:function(e){return t.generateBic()},input:function(e){e.target.composing||(t.iban=e.target.value)}}})]),e("Field",{directives:[{name:"show",rawName:"v-show",value:t.showBic,expression:"showBic"}],staticClass:"MandateTypeOption__additionalDetails__bicField",attrs:{label:t.$t("add_payment_method.your_bic"),validationErrors:t.$tList(t.uwaValidationErrors.bic,"validationError__")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.bic,expression:"bic"},{name:"validate",rawName:"v-validate",value:{required:"sepa"===t.mandateType,min:8},expression:"{ required: mandateType === 'sepa', min: 8 }"}],key:"sepa-bic",attrs:{type:"text",name:"bic"},domProps:{value:t.bic},on:{input:function(e){e.target.composing||(t.bic=e.target.value)}}}
47)])],1):t._e(),"mastercard"===i||"visa"===i?e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("add_payment_method.creditcard_hint"),expression:"$t('add_payment_method.creditcard_hint')"}],staticClass:"MandateTypeOption__additionalDetails__creditcardHint"}):t._e()])]}}]),model:{value:t.mandateType,callback:function(e){t.mandateType=e},expression:"mandateType"}})],1)],1),e("footer",[e("CallToAction",{staticClass:"b2bPaymentMethodSpc_submit",class:{save:t.isDirty,close:!t.isDirty},attrs:{once:t.submit,type:"submit",disabled:t.tooManyUnpaidInvoicesError||t.customerShouldCheckTheirMailError||t.invoicePaymentFailedAfterMandateSuccess}},[t._v(" "+t._s(t.buttonText)+" ")])],1)])],1)],2)},[],!1,null,"32383618",null).exports;let e3=(0,n.tZ)("B2bPoNumberSpc");class e5 extends d.lD{async created(){if(!this.session.company)throw new V.p("No company data available");this.poNumber=this.session.company.poNumber||""}get isDirty(){if(!this.session.company)throw new V.p("Session.company expected");return(this.session.company.poNumber||"")!==this.poNumber}get buttonText(){return this.isDirty?this.$t("save_and_close").toString():this.$t("close").toString()}async dismiss(){!this.saving&&(!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$emit("dismiss")}async submit(){if(!this.isDirty)return void this.$emit("dismiss");try{if(!this.session.company)throw new V.p("Session.company expected");if(!this.session.companies)throw new V.p("Session.companies expected");this.saving=!0;let t=this.poNumber||void 0;await this.uwa.updateCompany(this.session.company.id,{poNumber:t});let e=this.session.company.id,i=this.session.companies.map(i=>(i.id===e&&(i.poNumber=t),i));this.session.update({companies:i}),this.notify.success("b2b_po_number.po_number_change_success"),this.$emit("dismiss")}catch(t){e3.error("Unable to save changed po number",t),this.notifyGenericErrors(t)}finally{this.saving=!1}}constructor(...t){super(...t),this.poNumber=null,this.saving=!1}}(0,a.Cg)([(0,d.y_)()],e5.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],e5.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],e5.prototype,"uwa",void 0);var e9=e5=(0,a.Cg)([(0,d.uA)({components:{Field:u.A,CallToAction:c.A}})],e5),e8=(0,S.A)(e9,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"b2b-po-number-spc"},[e("header",[e("h2",[t._v(t._s(t.$t("b2b_po_number.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("div",{staticClass:"option-group"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("b2b_po_number.intro"),expression:"$t('b2b_po_number.intro')"}],staticClass:"option-group--description intro"}),e("Field",{attrs:{label:t.$t("b2b_po_number.purchase_order_number")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.poNumber,expression:"poNumber"}],attrs:{type:"text",name:"poNumber"},domProps:{value:t.poNumber},on:{input:function(e){e.target.composing||(t.poNumber=e.target.value)}}})])],1)]),e("footer",[e("CallToAction",{staticClass:"B2bPoNumber_submit",class:{save:t.isDirty,close:!t.isDirty},attrs:{once:t.submit,type:"submit"}},[t._v(" "+t._s(t.buttonText)+" ")])],1)])},[],!1,null,null,null).exports;let e6=(0,n.tZ)("B2bUnlinkEmployerSpc");class e7 extends d.lD{async onSubscriptionChange(t){t&&t.employerLink?(this.subscriptionId=t.id,this.employerName=t.employerLink.employerName):this.$emit("dismiss")}get buttonText(){return this.employerName?this.$t("b2b_unlink_employer.unlink_from_employer_{employerName}_button",{employerName:this.employerName}).toString():this.$t("b2b_unlink_employer.employer").toString()}async unlinkCompany(){if(await this.confirm(this.$t("b2b_unlink_employer.question"),this.$t("b2b_unlink_employer.popup_t
47itle"),this.$t("b2b_unlink_employer.confirm"),this.$t("b2b_unlink_employer.cancel")))try{await this.employeeService.leaveCompany(this.session.mobileSubscription),this.notify.success("b2b_unlink_employer.success_notice"),this.$emit("dismiss")}catch(t){e6.error("Unable to unlink employer",t),this.notifyGenericErrors(t)}}constructor(...t){super(...t),this.subscriptionId=void 0,this.employerName=""}}(0,a.Cg)([(0,d.y_)()],e7.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],e7.prototype,"employeeService",void 0),(0,a.Cg)([(0,d.y_)()],e7.prototype,"confirm",void 0),(0,a.Cg)([(0,d.ox)("session.mobileSubscription",{immediate:!0})],e7.prototype,"onSubscriptionChange",null);var it=e7=(0,a.Cg)([(0,d.uA)({components:{CallToAction:c.A}})],e7),ie=(0,S.A)(it,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"b2bUnlinkEmployerSpc"},[e("header",[e("h2",[t._v(t._s(t.$t("b2b_unlink_employer.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.$emit("dismiss")}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("b2b_unlink_employer.intro"),expression:"$t('b2b_unlink_employer.intro')"}],staticClass:"sidePanelIntro"})]),e("footer",[e("CallToAction",{staticClass:"b2bUnlinkEmployerSpc-doUnlink",attrs:{once:t.unlinkCompany,type:"submit"}},[t._v(" "+t._s(t.buttonText)+" ")])],1)])},[],!1,null,null,null).exports;let ii=(0,n.tZ)("EmployerLinkSpc");class is extends d.lD{get employerLink(){return this.session.mobileSubscription?.employerLink}async closeIfNoEmployerLink(){(!this.employerLink||["inactive","created","invited"].includes(this.employerLink.state))&&(ii.info("No employer link for current subscription. Leaving"),this.$emit("dismiss"))}get oobCovered(){if(!this.employerLink)return"";let t=(0,z.up)(this.employerLink.outOfBundleAllowance,"two_if_significant");return`${t}/${this.$t("month")}`}get oobNextMonth(){if(!this.employerLink||void 0===this.employerLink.outOfBundleAllowanceNextMonth)return"";let t=(0,z.up)(this.employerLink.outOfBundleAllowanceNextMonth,"two_if_significant");return`${t}/${this.$t("month")}`}constructor(...t){super(...t),this.formatMoney=z.up}}(0,a.Cg)([(0,d.y_)()],is.prototype,"session",void 0),(0,a.Cg)([(0,d.ox)("employerLink",{immediate:!0})],is.prototype,"closeIfNoEmployerLink",null);var ia=is=(0,a.Cg)([(0,d.uA)({components:{EmployeeStateTag:tD.A,SidePanelItem:m.A}})],is),io=(0,S.A)(ia,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"b2b-employer-link-spc"},[e("header",[e("h2",[t._v(t._s(t.$t("b2b_employer_link.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.$emit("dismiss")}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},t.employerLink?[e("div",{staticClass:"option-group"},[e("SidePanelItem",{attrs:{title:t.$t("b2b_employer_link.company_name"),value:t.employerLink.employerName}}),e("SidePanelItem",{attrs:{title:t.$t("b2b_employer_link.state")}},[e("EmployeeStateTag",{attrs:{state:t.employerLink.state}})],1),e("SidePanelItem",{staticClass:"employerLink-reduction",attrs:{title:t.$t("b2b_employer_link.reduction"),value:`${t.formatMoney(t.employerLink.reduction,"two_if_significant")}/${t.$t("month")}`}}),e("SidePanelItem",{staticClass:"employerLink-oobAllowance",attrs:{title:t.$t("b2b_employer_link.oob_covered"),value:t.oobCovered}}),void 0!==t.employerLink.outOfBundleAllowanceNextMonth?e("SidePanelItem",{staticClass:"employerLink-oobAllowanceNextMonth",attrs:{title:t.$t("b2b_employer_link.oob_covered_starting_next_month"),value:t.oobNextMonth}}):t._e()],1)]:[e("div",{staticClass:"option-group"},[e("SidePanelItem",{attrs:{title:t.$t("b2b_employer_link.company_name"),loading:!0}}),e("SidePanelItem",{attrs:{title:t.$t("b2b_employer_link.state"),loading:!0}}),e("SidePanelItem",{staticClass:"employerLink-reduction",attrs:{title:t.$t("b2b_employer_link.reduction"),loading:!0}}),e("SidePanelItem",{staticClass:"employerLink-oobAllowance",attrs:{title:t.$t("b2b_employer_link.oob_covered"),loading:!0}})],1)])])},[],!1,null,null,null).exports,ir=i(7258);let il=(0,n.tZ)("OutOfBundle.vue");class id extends d.lD{async onChangeSubscription(){let t=this.session.mobileSubscription;if(!t||!t.isOwner||"enabled"!==t.state)return void this.$emit("dismiss");this.cannotChangeMessage=null,this.isLoading=!0;try{if(t&&(0,o.s1)(t.product)){if(this.subscription&&this.subscription.id===t.id)return;this.subscription=t;let[e,i,s,a,n]=await Promise.all([this.invoiceService.unpaidInvoices,this.invoiceService.paidInvoices,this.subscriptionService.getPendingMigration(t),this.outOfBundleService.getThresholdOrderState(t),this.uwa.getBalance(t.id)]);this.outOfBundleCost=n&&n.outOfBundleCost||0,this.outOfBundleOrderState=a,this.bundleExpiryDate=n&&n.bundleExpiryDate||null,this.stillToPayFirstInvoice=i.isEmpty,this.hasUnpaidInvoices=!e.isEmpty,s&&["prepaid","data-only"].includes(s.toType)?this.cannotChangeMessage=this.$t("out_of_bundle.message_switching_to_prepaid").toString():"next_bill_run"===a.waitingFor?this.cannotChangeMessage=this.$t("out_of_bundle.message_wait_for_next_bill_run").toString():"bundle_expired"===a.waitingFor?this.cannotChangeMessage=this.$t("out_of_bundle.message_wait_for_bundle_expiry").toString():this.cannotChangeMessage=null,this.selectedValue=a.currentThreshold}else this.notify.error("out_of_bundle.message_only_for_postpaid"),this.$emit("dismiss")}catch(t){il.error("Failed to load OOB state",t),this.error=this.getCopyKeyForGenericError(t)}this.isLoading=!1}get options(){return this.selectedValue&&!this.regularOptions.includes(this.selectedValue)?[...this.regularOptions,this.selectedValue]:this.regularOptions}get showOOBMessage(){return!!this.selectedValue&&!this.cannotChangeMessage&&this.outOfBundleCost>0&&this.subscription&&this.subscription.oobThreshold&&this.selectedValue<this.subscription.oobThreshold}async save(){if(this.session.mobileSubscription&&null!==this.selectedValue){if(this.notAbleToSaveBecause)return void this.notify.error(this.notAbleToSaveBecause);try{this.saving=!0,this.isSelectedValueUpdated()&&await this.outOfBundleService.updateThreshold(this.session.mobileSubscription,this.selectedValue),this.saving=!1,this.notify.success("out_of_bundle.message_save_success"),this.$emit("dismiss")}catch(t){switch(this.saving=!1,r.Ay.of(t).code){case r.O4.NOT_ALLOWED_WITHOUT_PAID_INVOICE:this.error=this.$t("out_of_bundle.error_not_allowed_without_paid_invoice").toString();break;case r.O4.OTHER_PROCESS_PENDING:this.error=this.$t("out_of_bundle.error_already_pending_order").toString();break;case r.O4.LEGALLY_INCOMPETENT:this.error=this.$t("out_of_bundle.legally_incompetent").toString();break;case r.O4.CUSTOMER_SHOULD_CONTACT_CARE:this.error=this.$t("out_of_bundle.customer_should_contact_care").toString();break;default:il.error("Unable to change oobThreshold",t),this.error=this.getCopyKeyForGenericError(t)}}}}isSelectedValueUpdated(){return this.selectedValue!==this.subscription.oobThreshold}get isDirty(){return null!==this.selectedValue&&this.session.mobileSubscription&&this.session.mobileSubscription.oobThreshold!==this.selectedValue}get warningMessage(){if(!this.session.mobileSubscription||!this.session.mobileSubscription.oobThreshold)return null;if(0===this.selectedValue)return this.$t("out_of_bundle.warning_set_to_0").toString();if(this.selectedValue&&this.session.mobileSubscription.oobThreshold&&this.selectedValue>0&&this.selectedValue>this.session.mobileSubscription.oobThreshold){if(this.hasUnpaidInvoices)return this.notAbleToSaveBecause="out_of_bundle.message_unpaid_invoices",this.$t("out_of_bundle.message_unpaid_invoices").toString();if(this.stillToPayFirstInvoice)return this.notAbleToSaveBecause="out_of_bundle.message_no_invoices_yet",this.$t("out_of_bundle.message_no_invoices_yet").toString()}return null}async dismiss(){!this.saving&&(!this.isDirty||await this.confirm(this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.description_you_will_loose_your_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$emit("dismiss")}constructor(...t){super(...t),this.regularOptions=ir.Y,this.selectedValue=null,this.stillToPayFirstInvoice=!1,this.hasUnpaidInvoices=!1,this.cannotChangeMessage=null,this.outOfBundleOrderState=null,this.error="",this.isLoading=!1,this.outOfBundleCost=0,this.saving=!1,this.bundleExpiryDate=null,this.notAbleToSaveBecause=null,this.formatDate=ep.Yq}}(0,a.Cg)([(0,d.y_)()],id.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],id.prototype,"uwa",void 0),(0,a.Cg)([(0,d.y_)()],id.prototype,"subscriptionService",void 0),(0,a.Cg)([(0,d.y_)()],id.prototype,"outOfBundleService",void 0),(0,a.Cg)([(0,d.y_)()],id.prototype,"invoiceService",void 0),(0,a.Cg)([(0,d.y_)()],id.prototype,"confirm",void 0),(0,a.Cg)([(0,d.ox)("session.mobileSubscription",{immediate:!0}),(0,d.ox)("locale")],id.prototype,"onChangeSubscription",null);var ic=id=(0,a.Cg)([(0,d.uA)({components:{InlineNotification:T.A,CallToAction:c.A,MvForm:p.A,Field:u.A}})],id),iu=(0,S.A)(ic,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.session.mobileSubscription?e("MvForm",{staticClass:"oob-settings",attrs:{name:"oobSettings"}},[e("header",[e("h2",[t._v(t._s(t.$t("title_out_of_bundle")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main",class:{"
47is-loading":t.isLoading,noPaddingTop:t.error||t.showOOBMessage}},[t.showOOBMessage?e("InlineNotification",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("out_of_bundle.message_has_oob_cost",{nextBillingRun:t.formatDate(t.session.subscription.nextBillingRun)}),expression:"\n $t('out_of_bundle.message_has_oob_cost', {\n nextBillingRun: formatDate(session.subscription.nextBillingRun),\n })\n "}],staticClass:"info",attrs:{notificationType:"info",appearance:"inSidePanel"}}):t._e(),t.error?e("InlineNotification",{staticClass:"error",attrs:{notificationType:"error",appearance:"inSidePanel"}},[t._v(" "+t._s(t.error)+" ")]):t._e(),t.cannotChangeMessage?e("div",{staticClass:"option-group"},[e("p",{staticClass:"option-group__description intro"},[t._v(" "+t._s(t.cannotChangeMessage)+" ")]),t.outOfBundleOrderState&&t.outOfBundleOrderState.waitingFor?[e("div",{staticClass:"summary end-section"},[e("strong",[t._v(t._s(t.$t("out_of_bundle.summary_new_value")))]),e("span",[t._v(t._s(t._f("money")(t.outOfBundleOrderState.newThreshold)))])]),e("div",{staticClass:"summary end-section"},["next_bill_run"===t.outOfBundleOrderState.waitingFor?[e("strong",[t._v(t._s(t.$t("out_of_bundle.summary_waiting_for_next_bill_run")))]),t.session.mobileSubscription.nextBillingRun?e("span",[t._v(" "+t._s(t._f("date")(t.session.mobileSubscription.nextBillingRun))+" ")]):t._e()]:t._e(),"bundle_expired"===t.outOfBundleOrderState.waitingFor?[e("strong",[t._v(t._s(t.$t("out_of_bundle.summary_waiting_for_bundle_expired")))]),t.bundleExpiryDate?e("span",[t._v(" "+t._s(t._f("date")(t.bundleExpiryDate))+" ")]):t._e()]:t._e()],2)]:t._e()],2):e("div",{staticClass:"option-group"},[e("p",{staticClass:"option-group__description intro"},[t._v(t._s(t.$t("out_of_bundle.change_here")))]),t.options?e("Field",{attrs:{label:t.$t("title_out_of_bundle")}},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedValue,expression:"selectedValue"}],staticClass:"oob-settings__oob-value",attrs:{name:"oob-value"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selectedValue=e.target.multiple?i:i[0]}}},t._l(t.options,function(i){return e("option",{key:i.id,domProps:{value:i}},[t._v(" "+t._s(t._f("money")(i))+" ")])}),0)]):t._e(),null!==t.warningMessage?e("InlineNotification",{staticClass:"warning-message",attrs:{notificationType:"info",appearance:"inSidePanel"}},[e("strong",[t._v(t._s(t.$t("title_careful")))]),e("br"),e("span",[t._v(t._s(t.warningMessage))])]):t._e()],1)],1),t.isLoading?t._e():e("footer",[e("CallToAction",{attrs:{once:t.save,type:"submit"}},[t._v(" "+t._s(t.$t("save"))+" ")])],1)]):t._e()},[],!1,null,null,null).exports;let ip=(0,n.tZ)("PasswordSpc");class ih extends d.lD{async save(){if(this.error=!1,this.uwaValidationErrors={},await this.$validator.validateAll()&&!this.samePassword&&this.passwordsMatch)try{this.saving=!0,await this.uwa.updatePassword(this.newPassword,this.currentPassword),this.saving=!1,this.$emit("dismiss"),this.notify.success("change_password.success_message")}catch(i){this.saving=!1;let t=r.Ay.of(i),e=(0,y.v)(t,[{code:r.O4.PASSWORD_TOO_COMMON,field:"new",on:"new-password",message:"password_too_common"},{code:r.O4.PASSWORD_TOO_SIMILAR,field:"new",on:"new-password",message:"password_too_similar"},{code:r.O4.PASSWORD_SIMILAR_TO_DETAILS,field:"new",on:"new-password",message:"password_similar_to_details"},{code:r.O4.PASSWORD_ENTIRELY_NUMERIC,field:"new",on:"new-password",message:"password_rules"},{code:r.O4.PASSWORD_EXPOSED_IN_DATA_BREACH,field:"new",on:"new-password",message:"password_exposed_in_data_breach"},{code:r.O4.INVALID_VALUE,field:"old_password",on:"current-password",message:"password_incorrect"}]);this.uwaValidationErrors=e.result,e.firstIssue?(e.firstIssue.code===r.O4.PASSWORD_EXPOSED_IN_DATA_BREACH?this.notify.error("newly_entered_password_exposed_in_data_breach"):this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20)):(ip.error("Failed to update profile password",i),this.error=!0,this.notifyGenericErrors(i))}}get samePassword(){return""!==this.currentPassword&&""!==this.newPassword&&this.currentPassword===this.newPassword}get passwordsMatch(){return this.newPassword===this.repeatedPassword}get isDirty(){return""!==this.currentPassword||""!==this.newPassword||""!==this.repeatedPassword}async dismiss(){!this.saving&&(!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$emit("dismiss")}constructor(...t){super(...t),this.password="",this.currentPassword="",this.newPassword="",this.repeatedPassword="",this.passwordsAreFocused=!1,this.error=!1,this.saving=!1,this.uwaValidationErrors={}}
47}(0,a.Cg)([(0,d.y_)()],ih.prototype,"uwa",void 0),(0,a.Cg)([(0,d.y_)()],ih.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],ih.prototype,"domUtils",void 0);var i_=ih=(0,a.Cg)([(0,d.uA)({components:{Field:u.A,CallToAction:c.A,Password:h.A,MvForm:p.A,InlineNotification:T.A}})],ih),im=(0,S.A)(i_,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"PasswordSpc password-side-panel",attrs:{name:"changePassword"}},[e("header",[e("h2",[t._v(t._s(t.$t("change_password.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("div",{staticClass:"option-group"},[e("p",{staticClass:"option-group__description intro"},[t._v(t._s(t.$t("change_password.instruction")))]),t.error?e("div",{staticClass:"error"},[e("InlineNotification",{staticClass:"PasswordSpc__error",attrs:{notificationType:"error",appearance:"inSidePanel"}},[t._v(" "+t._s(t.$t("something_went_wrong"))+" ")])],1):t._e(),e("Field",{staticClass:"password",attrs:{label:t.$t("change_password.current_password"),validationErrors:t.$tList(t.uwaValidationErrors["current-password"],"validationError__")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],attrs:{name:"current-password","data-vv-as":t.$t("field_password"),required:""},model:{value:t.currentPassword,callback:function(e){t.currentPassword="string"==typeof e?e.trim():e},expression:"currentPassword"}}),t.samePassword?e("div",{staticClass:"validation-message"},[t._v(" "+t._s(t.$t("validationError__dont_use_same_password"))+" ")]):t._e()],1),e("Field",{staticClass:"password",attrs:{label:t.$t("change_password.new_password"),validationErrors:t.$tList(t.uwaValidationErrors["new-password"],"validationError__")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0,min:8},expression:"{ required: true, min: 8 }"}],attrs:{"data-vv-as":t.$t("field_password_new"),name:"new-password",required:""},model:{value:t.newPassword,callback:function(e){t.newPassword="string"==typeof e?e.trim():e},expression:"newPassword"}}),t.passwordsAreFocused&&!t.passwordsMatch?e("div",{staticClass:"validation-message"},[t._v(" "+t._s(t.$t("validationError__passwords_should_match"))+" ")]):t._e()],1),e("Field",{staticClass:"repeat-password",attrs:{label:t.$t("change_password.repeat_new_password")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0,min:8},expression:"{ required: true, min: 8 }"}],attrs:{"data-vv-as":t.$t("field_password_repeat"),name:"repeated-password",required:""},on:{focus:function(e){t.passwordsAreFocused=!0}},model:{value:t.repeatedPassword,callback:function(e){t.repeatedPassword="string"==typeof e?e.trim():e},expression:"repeatedPassword"}})],1)],1)]),e("footer",[e("CallToAction",{attrs:{once:t.save,type:"submit"}},[t._v(t._s(t.$t("change")))])],1)])},[],!1,null,"3d95f1c4",null).exports,ig=i(77133),iv=i.n(ig),iy=i(1001),ib=i(76930);let iC=(0,n.tZ)("AddPaymentMethodSpc");class iw extends d.lD{async mounted(){this.mandateType&&(this.selection=this.mandateTypes.find(t=>t===this.mandateType)||null),this.determineAutoPayUnpaidInvoices(),this.status?this.finishUpCreditCardMandateCreation():this.trackingService.updateAddPaymentMethod("start");let{grouped:t}=await this.customerService.getInvoiceGrouping();this.shouldGroupSubscriptions=t&&!!this.config.featureFlags.groupedInvoicing,this.initializeSubscriptions(this.session.subscriptions),this.preselectSubscriptions(this.subscriptions)}initializeSubscriptions(t){if(!t){this.subscriptions=[];return}this.subscriptions=t.filter(this.eligibleForAutoPayment)}async preselectSubscriptions(t){if(t)try{if(this.mandateIdToReplace){this.subscriptionSelection.subscriptions=[];return}let e=(t||[]).filter(this.eligibleForAutoPayment),i=await (0,tk.dS)(e,this.withoutOrUnconfirmedMandate);this.shouldGroupSubscriptions?this.subscriptionSelection={subscriptions:i.filter(t=>!t.isOwner),groupIsSelected:!0}:this.subscriptionSelection={subscriptions:i,groupIsSelected:!1}}catch(t){iC.error("Failed to determine subscription to preselect",t),this.notifyGenericErrors(t)}}async determineAutoPayUnpaidInvoices(){try{let t=await this.invoiceService.unpaidInvoices;this.hasUnpaidInvoices=!t.isEmpty,this.autoPayOpenInvoices=!t.isEmpty}catch(t){iC.error("Failed to load unpaid invoices",t)}}resetSepaFields(){"sepa"===this.selection&&(this.iban="",this.bic=null,this.showBic=!1)}async finishUpCreditCardMandateCreation(){if("success"===this.status){this.trackingService.updateAddPaymentMethod("success",this.mandateType),this.isSavePending=!0,await (0,tI.yy)(10),this.notify.success("add_payment_method.success",{},{isImperviousToClearing:!0});let t=!0;try{if(this.mandateIdToReplace&&await this.replaceMandate(this.mandateIdToReplace,this.mandate_id),"yes"===this.autoPayUnpaid)try{await this.payUnpaidInvoices()}catch(i){t=!1;let e=r.Ay.of(i);e.payload?.code===r.O4.TOO_MANY_UNPAID_INVOICES?(this.invoicePaymentFailedAfterMandateSuccess=!0,this.domUtils.scrollToFirst("[data-invoice-payment-failed-after-success-notification]",16)):e.payload?.code===r.O4.CUSTOMER_SHOULD_CHECK_THEIR_MAIL?(this.customerShouldCheckTheirMailError=!0,this.domUtils.scrollToFirst("[data-check-mail-notification]",16)):(iC.error("Failed to pay unpaid invoices after credit card mandate creation",i),this.notifyGenericErrors(i))}t&&(await this.$nextTick(),this.$emit("dismiss"))}catch(t){iC.error("Failed during credit card mandate finalization",t),this.notifyGenericErrors(t)}}else"failed"===this.status&&(this.trackingService.updateAddPaymentMethod("fail",this.mandateType),await (0,tI.yy)(10),this.notify.error("add_payment_method.payment_provider_failure",void 0,{isImperviousToClearing:!0}));this.$router.push({query:iv()(this.$route.query,"status","mandateType","mandate_id","mandateIdToReplace","autoPayUnpaid")})}async replaceMandate(t,e){try{await this.mandateService.replaceMandate(t,e)}catch(t){iC.error("Error during replacement of mandate with new credit card mandate",t),this.notify.error("add_payment_method.success_but_replacement_failed")}}async onChangeSubscriptions(t){await this.preselectSubscriptions(t)}async withoutOrUnconfirmedMandate(t){let e=await this.mandateService.getAutoInvoicePayment(t.id);return!e||"confirmed"!==e.state}get eligiblePostpaidSubscriptions(){return this.session.subscriptions?this.session.subscriptions.filter(this.eligibleForAutoPayment):[]}get subscriptionIds(){return this.subscriptionSelection.subscriptions.map(t=>
47t.id)}get isSepaDisabled(){return this.config.featureFlags.disableCreatingNewSepaMandates}get mandateTypes(){return this.isSepaDisabled?eK.P.filter(t=>"sepa"!==t):eK.P}eligibleForAutoPayment(t){return t&&"prepaid"!==t.type}generateBic(){this.iban&&this.fields.iban.validated&&this.fields.iban.valid?(this.bic=this.ibanUtil.generateBic(this.iban),this.showBic=!this.bic):(this.bic=null,this.showBic=!1)}async dismiss(){!this.isSavePending&&(await (0,tI.yy)(10),("sepa"!==this.selection||!this.bic&&!this.iban||this.tooManyUnpaidInvoicesError||this.customerShouldCheckTheirMailError||this.invoicePaymentFailedAfterMandateSuccess||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&(this.notify.clear(),this.$emit("dismiss")))}isCreditCardMandateType(t){return eK.c.includes(t)}confirmDescription(t){return this.isCreditCardMandateType(t)?this.$t("add_payment_method.description_invoice_old_sepa_will_used"):this.$t("add_payment_method.description_invoice_new_sepa_will_be_used")}async save(){if(!this.selection&&!await this.$validator.validateAll()){this.notify.error("no_payment_method_selected"),this.domUtils.scrollToFirst(".is-invalid",20);return}if(this.notify.clear(),!(this.mandateIdToReplace&&await this.checkForInvoicesWithSepaMandate())||await this.confirm(this.confirmDescription(this.selection),this.$t("attention"),this.$t("add_payment_method.primary_cta_change_payment_method"),this.$t("add_payment_method.secondary_cta_do_not_change_payment_method")))if("sepa"===this.selection)await this.saveSepa();else if(eK.c.includes(this.selection))await this.saveCreditCard();else throw new V.p(`Unsupported type: ${this.selection}`)}async payUnpaidInvoices(){try{let t=await this.invoiceService.unpaidInvoices;if(t.isEmpty)return;let e=this.mandate;if(this.mandate_id&&(e=await this.mandateService.loadMandateById(this.mandate_id)||null),!e)return;await this.invoiceService.payInvoicesWithMandate(t.items.map(t=>`${t.id}`),e),this.notificationManager.clearUnpaidInvoicesRouteNotifications(t.items.map(t=>t.id)),this.notify.success("add_payment_method.unpaid_invoices_successfully_paid")}catch(e){let t=r.Ay.of(e);if(t.payload?.code===r.O4.TOO_MANY_UNPAID_INVOICES||t.payload?.code===r.O4.CUSTOMER_SHOULD_CHECK_THEIR_MAIL)throw e;if(t.code===r.O4.NOT_PAYABLE)return void iC.info("Unpaid invoices are not payable -- most likely outdated");iC.error("Failed to pay unpaid invoices while adding payment method",e),this.notify.error("add_payment_method.failed_to_unpaid_invoices")}}showErrorMessageIfSimNotAllowedInSubscriptionGroup(t){return t.code===r.O4.NOT_ALLOWED_SUBSCRIPTION_IN_INVOICE_GROUP&&(this.notify.error("payment_methods.invalid_authorized_sim_for_group"),!0)}async checkForInvoicesWithSepaMandate(){return(await this.invoiceService.paidInvoices).items.some(t=>t.hasScheduledPayment)}async saveSepa(){if(this.uwaValidationErrors={},!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20);return}try{this.isSavePending=!0;let t=this.ibanUtil.sanitizeIban((0,t$.bp)(this.iban,"handled by v-validate")),e=this.removeSpaces((0,t$.bp)(this.bic,"handled by v-validate"));if(this.mandate=await this.mandateService.createSepaMandate(t,e,this.subscriptionIds),this.mandateIdToReplace&&await this.replaceMandate(this.mandateIdToReplace,this.mandate.id),this.notify.success("add_payment_method.success"),this.trackingService.updateAddPaymentMethod("success"),this.autoPayOpenInvoices)try{await this.payUnpaidInvoices(),this.$emit("dismiss")}catch(e){let t=r.Ay.of(e);t.payload?.code===r.O4.TOO_MANY_UNPAID_INVOICES?(this.invoicePaymentFailedAfterMandateSuccess=!0,this.domUtils.scrollToFirst("[data-invoice-payment-failed-after-success-notification]",16)):t.payload?.code===r.O4.CUSTOMER_SHOULD_CHECK_THEIR_MAIL?(this.customerShouldCheckTheirMailError=!0,this.domUtils.scrollToFirst("[data-check-mail-notification]",16)):(iC.error("Failed to pay unpaid invoices after SEPA mandate creation",e),this.notifyGenericErrors(e))}else this.$emit("dismiss")}catch(i){let t=r.Ay.of(i);if(this.showErrorMessageIfSimNotAllowedInSubscriptionGroup(t))return;let e=(0,y.v)(t,[{code:r.O4.IBAN_ALREADY_EXISTS,field:"iban",on:"iban",message:"iban_already_exists"},{code:r.O4.IBAN_COUNTRY_UNSUPPORTED,on:"iban",message:"iban_country_unsupported"},{code:r.O4.DEBTOR_BIC_IBAN_MISMATCH,on:"bic",message:"debtor_bic_iban_mismatch"}
47,{code:r.O4.INVALID_VALUE,on:"bic",message:"bic_is_invalid_for_iban"},{code:r.O4.DEBTOR_BIC_VALIDATION_FAILED,on:"bic",message:"debtor_bic_iban_mismatch"}]);this.uwaValidationErrors=e.result,t.code===r.O4.UNCONFIRMED_SEPA_MANDATE_PENDING?this.notify.error("unconfirmed_sepa_mandate_pending"):t.payload?.code===r.O4.TOO_MANY_UNPAID_INVOICES?(this.tooManyUnpaidInvoicesError=!0,this.domUtils.scrollToFirst("[data-pending-invoices-notification]",16)):t.payload?.code===r.O4.CUSTOMER_SHOULD_CHECK_THEIR_MAIL?(this.customerShouldCheckTheirMailError=!0,this.domUtils.scrollToFirst("[data-check-mail-notification]",16)):e.firstIssue?(this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20)):(iC.error("Failed to add payment method",i),this.notifyGenericErrors(i))}finally{this.isSavePending=!1}}async saveCreditCard(){try{this.isSavePending=!0;let t={...this.$route.query,mandateType:this.selection,autoPayUnpaid:this.autoPayOpenInvoices?"yes":"no"},e=this.absoluteUrl(this.$router.resolve({name:tr.A.paymentMethods,query:t}).href),i=await this.mandateService.generateCreditCardMandateCreationUrl(e,this.subscriptionIds);this.goTo(i)}catch(t){if(this.showErrorMessageIfSimNotAllowedInSubscriptionGroup(t))return;this.notifyGenericErrors(t)}finally{this.isSavePending=!1}}removeSpaces(t){return t.replace(/ /g,"")}trackTypeSelection(){this.trackingService.updateAddPaymentMethod("selectMethod",this.selection)}constructor(...t){super(...t),this.isSavePending=!1,this.selection=null,this.iban=null,this.bic=null,this.showBic=!1,this.hasUnpaidInvoices=!1,this.autoPayOpenInvoices=!0,this.uwaValidationErrors={},this.tooManyUnpaidInvoicesError=!1,this.customerShouldCheckTheirMailError=!1,this.invoicePaymentFailedAfterMandateSuccess=!1,this.subscriptions=[],this.mandate=null,this.redirectUrl="",this.shouldGroupSubscriptions=null,this.subscriptionSelection={subscriptions:[]}}}(0,a.Cg)([(0,d.y_)()],iw.prototype,"config",void 0),(0,a.Cg)([(0,d.y_)()],iw.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],iw.prototype,"ibanUtil",void 0),(0,a.Cg)([(0,d.y_)()],iw.prototype,"mandateService",void 0),(0,a.Cg)([(0,d.y_)()],iw.prototype,"customerService",void 0),(0,a.Cg)([(0,d.y_)()],iw.prototype,"absoluteUrl",void 0),(0,a.Cg)([(0,d.y_)()],iw.prototype,"goTo",void 0),(0,a.Cg)([(0,d.y_)()],iw.prototype,"trackingService",void 0),(0,a.Cg)([(0,d.y_)()],iw.prototype,"domUtils",void 0),(0,a.Cg)([(0,d.y_)()],iw.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],iw.prototype,"invoiceService",void 0),(0,a.Cg)([(0,d.y_)()],iw.prototype,"notificationManager",void 0),(0,a.Cg)([(0,d.kv)({default:null})],iw.prototype,"mandateType",void 0),(0,a.Cg)([(0,d.kv)({default:null})],iw.prototype,"status",void 0),(0,a.Cg)([(0,d.kv)({default:null})],iw.prototype,"mandate_id",void 0),(0,a.Cg)([(0,d.kv)({default:"no"})],iw.prototype,"autoPayUnpaid",void 0),(0,a.Cg)([(0,d.kv)({default:null})],iw.prototype,"mandateIdToReplace",void 0),(0,a.Cg)([(0,d.ox)("selection")],iw.prototype,"resetSepaFields",null),(0,a.Cg)([(0,d.ox)("session.subscriptions",{immediate:!0})],iw.prototype,"onChangeSubscriptions",null),(0,a.Cg)([(0,d.ox)("selection")],iw.prototype,"trackTypeSelection",null);var iS=iw=(0,a.Cg)([(0,d.uA)({components:{InlineNotification:T.A,PaymentMethodLabel:ib.A,MultiSelectSubscription:iy.A,Field:u.A,RadioGroup:j.A,CallToAction:c.A,MvForm:p.A,Checkbox:A.A}})],iw),iM=(0,S.A)(iS,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"AddPaymentMethodSpc",attrs:{name:"addPaymentMethod"}},[e("header",[t.mandateIdToReplace?t._e():e("h2",[t._v(t._s(t.$t("add_payment_method.title")))]),t.mandateIdToReplace?e("h2",[t._v(t._s(t.$t("add_payment_method.title_if_replacement")))]):t._e(),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main",class:{noPaddingTop:t.tooManyUnpaidInvoicesError||t.customerShouldCheckTheirMailError||t.invoicePaymentFailedAfterMandateSuccess||t.isSepaDisabled},attrs:{"data-qa":"add-payment-method-spc-main"}},[t.tooManyUnpaidInvoicesError?e("InlineNotification",{attrs:{notificationType:"error",appearance:"inSidePanel"}},[t.mandateIdToReplace?e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("add_payment_method.editing_sepa_is_not_allowed__html"),expression:"$t('add_payment_method.editing_sepa_is_not_allowed__html')"}],attrs:{"data-pending-invoices-notification":"","data-qa":"pending-invoices-notification"}}):e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("add_payment_method.adding_sepa_is_not_allowed__html"),expression:"$t('add_payment_method.adding_sepa_is_not_allowed__html')"}],attrs:{"data-pending-invoices-notification":"","data-qa":"pending-invoices-notification"}})]):t._e(),t.customerShouldCheckTheirMailError?e("InlineNotification",{attrs:{notificationType:"error",appearance:"inSidePanel"}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("add_payment_method.customer_should_check_their_mail__html"),expression:"$t('add_payment_method.customer_should_check_their_mail__html')"}],attrs:{"data-check-mail-notification":"","data-qa":"check-mail-notification"}})]):t._e(),t.invoicePaymentFailedAfterMandateSuccess?e("InlineNotification",{attrs:{notificationType:"error",appearance:"inSidePanel"}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("add_payment_method.mandate_created_but_invoice_payment_failed__html"),expression:"$t('add_payment_method.mandate_created_but_invoice_payment_failed__html')"}],attrs:{"data-invoice-payment-failed-after-success-notification":"","data-qa":"invoice-payment-failed-after-success-notification"}})]):t._e(),t.isSepaDisabled?e("InlineNotification",{staticClass:"AddPaymentMethodSpc__sepaDisabled",attrs:{notificationType:"warning",appearance:"inSidePanel"}},[t._v(" "+t._s(t.$t("sepa_temporarily_unavailable"))+" ")]):t._e(),e("div",{staticClass:"option-group end-section"},[t.mandateIdToReplace?e("p",{staticClass:"option-group__description intro"},[t._v(" "+t._s(t.$t("add_payment_method.explanation_if_replacement"))+" ")]):t._e(),e("p",{staticClass:"option-group__description intro"},[t._v(t._s(t.$t("add_payment_method.instruction")))]),e("RadioGroup",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],attrs:{options:t.mandateTypes,required:"",disabled:t.isSavePending},scopedSlots:t._u([{key:"default",fn:function({option:t}){return[e("PaymentMethodLabel",{attrs:{method:t}})]}}]),model:{value:t.selection,callback:function(e){t.selection=e},expression:"selection"}})],1),["sepa","visa","mastercard"].includes(t.selection)?e("div",{staticClass:"option-group end-section AddPaymentMethodSpc__additionalDetails"},["sepa"===t.selection?[e("Field",{staticClass:"AddPaymentMethodSpc__additionalDetails__ibanField",attrs:{label:t.$t("add_payment_method.your_iban"),hint:t.$t("add_payment_method.your_iban_hint"),validationErrors:t.$tList(t.uwaValidationErrors.iban,"validationError__")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.iban,expression:"iban"},{name:"validate",rawName:"v-validate",value:"iban",expression:"'iban'"}],key:"sepa-iban",attrs:{required:"",disabled:t.isSavePending,type:"text",name:"iban",placeholder:"BE _ _ _ _ _ _ _ _ _ _ _ _ _ _"},domProps:{value:t.iban},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:e.target.blur()},blur:function(e){return t.generateBic()},input:function(e){e.target.composing||(t.iban=e.target.value)}}})]),t.showBic?e("Field",{staticClass:"AddPaymentMethodSpc__additionalDetails__bicField",attrs:{label:t.$t("add_payment_method.your_bic"),validationErrors:t.$tList(t.uwaValidationErrors.bic,"validationError__")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.bic,expression:"bic"},{name:"validate",rawName:"v-validate",value:{required:!0,min:8},expression:"{ required: true, min: 8 }"}],key:"sepa-bic",attrs:{required:"",disabled:t.isSavePending,type:"text",name:"bic"},domProps:{value:t.bic},on:{input:function(e){e.target.composing||(t.bic=e.target.value)}}})]):t._e()]:t._e(),"mastercard"===t.selection||"visa"===t.selection?e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("add_payment_method.creditcard_hint"),expression:"$t('add_payment_method.creditcard_hint')"}],staticClass:"option-group__description AddPaymentMethodSpc__additionalDetails__creditcardHint"}):t._e()],2):t._e(),t.selection&&t.eligiblePostpaidSubscriptions.length&&!t.mandateIdToReplace?e("div",{staticClass:"option-group end-section"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("add_payment_method.select_subscriptions_title"),expression:"$t('add_payment_method.select_subscriptions_title')"}],staticClass:"option-group-title intro title"}),e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("add_payment_method.select_subscriptions_description"),expression:"$t('add_payment_method.select_subscriptions_description')"}],staticClass:"option-group__description intro"}),e("MultiSelectSubscription",{staticClass:"AddPaymentMethodSpc__subscriptionToApply styleLevel2",attrs:{keepSmallLook:!0,shouldGroupSubscriptions:t.shouldGroupSubscriptions,subscriptions:t.subscriptions},model:{value:t.subscriptionSelection,callback:function(e){t.subscriptionSelection=e},expression:"subscriptionSelection"}})],1):t._e(),t.hasUnpaidInvoices?e("div",{staticClass:"option-group"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("add_payment_method.pay_pending_invoices_title"),expression:"$t('add_payment_method.pay_pending_invoices_title')"}],staticClass:"option-group-title intro title"}),e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("add_payment_method.pay_pending_invoices_description"),expression:"$t('add_payment_method.pay_pending_invoices_description')"}],staticClass:"option-group__description intro"}),e("Checkbox",{attrs:{value:!0,name:"autoPayOpenInvoices",button:!0,label:t.$t("add_payment_method.pay_pending_invoices_button_label"),tip:t.$t("add_payment_method.pay_pending_invoices_button_tip")},model:{value:t.autoPayOpenInvoices,callback:function(e){t.autoPayOpenInvoices=e},expression:"autoPayOpenInvoices"}}
47)],1):t._e()],1),e("footer",[e("CallToAction",{attrs:{once:t.save,type:"submit",disabled:t.tooManyUnpaidInvoicesError||t.customerShouldCheckTheirMailError||t.invoicePaymentFailedAfterMandateSuccess}},[t._v(t._s(t.$t("add_payment_method.save")))])],1)])},[],!1,null,"60e18e64",null).exports,iA=i(15049),ik=i(69607),iI=i(67537);let ix=(0,n.tZ)("PhoneNumberSpc");class iN extends d.lD{init(){if(this.session.profile){let t=this.session.profile.phone;this.phoneNumber=t??(this.canUseOnboarding?"onboarding":null),this.useCustomNumber=!!t&&!this.ownedNumbers.includes(t)}}get ownedNumbers(){return(this.session.mobileSubscriptions||[]).filter(t=>t.isOwner).filter(t=>t.msisdn).map(t=>t.msisdn)}aliasFor(t){return(this.session.mobileSubscriptions||[]).find(e=>e.msisdn===t)?.alias??""}get canUseOnboarding(){return!this.session.profile?.phone&&!!this.session.mobileSubscriptions?.filter(t=>t.isOwner)?.some(iI.j)}get ownedNumber(){return this.useCustomNumber?"custom":this.phoneNumber}set ownedNumber(t){if("custom"===t){this.useCustomNumber||(this.phoneNumber="",this.useCustomNumber=!0);return}this.useCustomNumber=!1,this.phoneNumber=t}async focusInputField(t){"custom"===t&&(this.$validator.reset({name:"phone_number"}),await (0,tI.yy)(300),this.customNumberInput?.$el?.focus())}async save(){this.uwaValidationErrors={},this.error=!1;try{if(!this.session.profile)return;if(!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20);return}this.saving=!0,this.phoneNumber&&await this.customerService.updateProfile({...this.otherProfileData,phone:this.phoneNumber}),this.saving=!1,this.$emit("dismiss"),this.notify.success("change_phone_number.phone_number_updated")}catch(i){this.saving=!1;let t=r.Ay.of(i),e=(0,y.v)(t,[{code:r.O4.INVALID_VALUE,field:"phone_number",on:"phone_number",message:"phone_number_invalid"}]);this.uwaValidationErrors=e.result,e.firstIssue?(this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20)):(ix.error("Failed to update phone number",i),this.error=!0,this.notifyGenericErrors(i))}}async dismiss(){!this.saving&&(!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$emit("dismiss")}get isDirty(){return!!this.session.profile&&"onboarding"!==this.phoneNumber&&(this.session.profile.phone??null)!==this.phoneNumber}constructor(...t){super(...t),this.saving=!1,this.phoneNumber=null,this.useCustomNumber=!1,this.error=!1,this.uwaValidationErrors={},this.otherProfileData={}}}(0,a.Cg)([(0,d.y_)()],iN.prototype,"customerService",void 0),(0,a.Cg)([(0,d.y_)()],iN.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],iN.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],iN.prototype,"domUtils",void 0),(0,a.Cg)([(0,d.oS)()],iN.prototype,"customNumberInput",void 0),(0,a.Cg)([(0,d.ox)("session.profile.phoneNumber",{immediate:!0})],iN.prototype,"init",null),(0,a.Cg)([(0,d.ox)("ownedNumber")],iN.prototype,"focusInputField",null);var iT=iN=(0,a.Cg)([(0,d.uA)({components:{RadioButton:iA.A,RadioButtons:ik.A,MissingProfileData:ty,InlineNotification:T.A,MsisdnInput:eR.A,MvForm:p.A,Field:u.A,CallToAction:c.A}})],iN),iD=(0,S.A)(iT,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.session.profile?e("MvForm",{staticClass:"PhoneNumberSpc",attrs:{name:"changePhoneNumber"}},[e("header",[e("h2",[t._v(t._s(t.$t("change_phone_number.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main",class:{noPaddingTop:t.error}},[t.error?e("InlineNotification",{attrs:{notificationType:"error",appearance:"inSidePanel"}},[t._v(" "+t._s(t.$t("something_went_wrong"))+" ")]):t._e(),e("div",{staticClass:"option-group end-section"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("change_phone_number.intro"),expression:"$t('change_phone_number.intro')"}],staticClass:"option-group__description intro"}),t.ownedNumbers.length>0||t.canUseOnboarding?[e("Field",{attrs:{label:t.$t("change_phone_number.phone_number")}},[e("RadioButtons",{directives:[{name:"pii-mask",rawName:"v-pii-mask"},{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],attrs:{required:!0,name:"phone-numer-option"},model:{value:t.ownedNumber,callback:function(e){t.ownedNumber=e},expression:"ownedNumber"}},[t._l(t.ownedNumbers,function(i){return e("RadioButton",{key:i,attrs:{value:i}},[e("span",{staticClass:"PhoneNumberSpc__ownedNumber"},[t._v(t._s(t._f("msisdn")(i)))]),e("span",{staticClass:"PhoneNumberSpc__numberAlias"},[t._v(t._s(t.aliasFor(i)))])])}),t.canUseOnboarding?e("RadioButton",{attrs:{value:"onboarding"}},[t._v(" "+t._s(t.$t("change_phone_number.use_my_upcoming_new_number"))+" ")]):t._e(),e("RadioButton",{attrs:{value:"custom"},scopedSlots:t._u([{key:"default",fn:function(){return[t._v(t._s(t.$t("change_phone_number.use_other_number")))]},proxy:!0},{key:"description",fn:function(){return[e("Field",{attrs:{label:t.$t("change_phone_number.other_phone_number"),validationErrors:t.$tList(t.uwaValidationErrors.phone_number,"validationError__")}},[e("MsisdnInput",{directives:[{name:"validate",rawName:"v-validate",value:{required:"custom"===t.ownedNumber},expression:"{ required: ownedNumber === 'custom' }"}],ref:"customNumberInput",staticClass:"nextStyleLevel",attrs:{"data-qa":"custom-msisdn-input",required:"custom"===t.ownedNumber,autocomplete:"tel",name:"phone_number"},model:{value:t.phoneNumber,callback:function(e){t.phoneNumber=e},expression:"phoneNumber"}})],1)]},proxy:!0}],null,!1,0x1c79dab8)})],2)],1)]:[e("Field",{attrs:{label:t.$t("change_phone_number.phone_number"),validationErrors:t.$tList(t.uwaValidationErrors.phone_number,"validationError__")}},[e("MsisdnInput",{directives:[{name:"validate",rawName:"v-validate",value:{required:0===t.ownedNumbers.length&&!t.canUseOnboarding},expression:"{ required: ownedNumbers.length === 0 && !canUseOnboarding }"}],ref:"customNumberInput",attrs:{"data-qa":"custom-msisdn-input",required:0===t.ownedNumbers.length&&!t.canUseOnboarding,autocomplete:"tel",name:"phone_number"},model:{value:t.phoneNumber,callback:function(e){t.phoneNumber=e},expression:"phoneNumber"}})],1)]],2),e("MissingProfileData",{model:{value:t.otherProfileData,callback:function(e){t.otherProfileData=e},expression:"otherProfileData"}}
47)],1),e("footer",[e("CallToAction",{staticClass:"confirm",attrs:{once:t.save,"data-qa":"save-button",type:"submit"}},[t._v(" "+t._s(t.$t("save"))+" ")])],1)]):t._e()},[],!1,null,"01281a53",null).exports,i$=i(67415),iP=i(60016);let iL=(0,n.tZ)("ServiceSettingsSpc");class iE extends d.lD{async created(){if(!this.session.mobileSubscription||!this.session.mobileSubscription.isOwner)return void this.$emit("dismiss");try{let t=this.uwa.getServiceSettings(this.session.mobileSubscription.id);this.voiceAndSmsRoamingOriginating=t.then(t=>t.voiceAndSmsRoamingOriginating),this.voiceAndSmsRoamingTerminating=t.then(t=>t.voiceAndSmsRoamingTerminating),this.premium=t.then(t=>t.premium),this.internationalTraffic=t.then(t=>t.internationalTraffic)}catch(t){iL.error("Failed to load service settings",t),this.notifyGenericErrors(t)}}async save(t,e){if(this.session.mobileSubscription)try{await this.uwa.updateServiceSetting(this.session.mobileSubscription.id,t,e),this.trackingService.onFormInteraction("serviceSettings",t,e)}catch(t){throw iL.error("Failed to update service setting",t),this.notifyGenericErrors(t),t}}saveRoamingTerminating(t){return this.save("voiceAndSmsRoamingTerminating",t)}saveRoamingOriginating(t){return this.save("voiceAndSmsRoamingOriginating",t)}savePremium(t){return this.save("premium",t)}saveInternationalTraffic(t){return this.save("internationalTraffic",t)}constructor(...t){super(...t),this.voiceAndSmsRoamingOriginating=(0,tI.i4)(),this.voiceAndSmsRoamingTerminating=(0,tI.i4)(),this.premium=(0,tI.i4)(),this.internationalTraffic=(0,tI.i4)()}}(0,a.Cg)([(0,d.y_)()],iE.prototype,"uwa",void 0),(0,a.Cg)([(0,d.y_)()],iE.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],iE.prototype,"trackingService",void 0);var iO=iE=(0,a.Cg)([(0,d.uA)({components:{SwitchButton:iP.A}})],iE),iz=(0,S.A)(iO,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",[e("header",[e("h2",[t._v(t._s(t.$t("service_settings.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.$emit("dismiss")}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("div",{staticClass:"option-group end-section"},[e("div",{staticClass:"option-group__description intro"},[t._v(t._s(t.$t("service_settings.intro")))])]),e("div",{staticClass:"option-group option-group--noBottomSpacing end-section"},[e("h3",{staticClass:"option-group-title"},[t._v(t._s(t.$t("service_settings.roaming_title")))]),e("div",{staticClass:"option-group__description intro"},[t._v(t._s(t.$t("service_settings.roaming_intro")))]),e("SwitchButton",{attrs:{label:t.$t("service_settings.roaming_incoming_calls_and_texts"),appearance:"inSidePanel",value:t.voiceAndSmsRoamingTerminating,save:t.saveRoamingTerminating}}),e("SwitchButton",{attrs:{label:t.$t("service_settings.roaming_outgoing_calls_and_texts"),appearance:"inSidePanel",value:t.voiceAndSmsRoamingOriginating,save:t.saveRoamingOriginating}})],1),e("div",{staticClass:"option-group option-group--noBottomSpacing end-section"},[e("h3",{staticClass:"option-group-title"},[t._v(t._s(t.$t("service_settings.international_title")))]),e("div",{staticClass:"option-group__description intro"},[t._v(t._s(t.$t("service_settings.international_intro")))]),e("SwitchButton",{attrs:{label:t.$t("service_settings.international_calls"),appearance:"inSidePanel",value:t.internationalTraffic,save:t.saveInternationalTraffic}})],1),e("div",{staticClass:"option-group option-group--noBottomSpacing end-section"},[e("h3",{staticClass:"option-group-title"},[t._v(t._s(t.$t("service_settings.paying_title")))]),e("div",{staticClass:"option-group__description intro"},[t._v(t._s(t.$t("service_settings.paying_intro")))]),e("SwitchButton",{attrs:{label:t.$t("service_settings.premium_services"),appearance:"inSidePanel",value:t.premium,save:t.savePremium}})],1)])])},[],!1,null,null,null).exports,ij=i(4095),iB=i.n(ij),iF=i(64994);class iq extends iF.A{created(){super.created(),this.parseErrorString=this.$t("not_a_valid_msisdn_or_email").toString()}retranslate(){this.parseErrorString=this.$t("not_a_valid_msisdn_or_email").toString()}format(t){return t.msisdn?(0,l.i)(t.msisdn):t.email?t.email:""}parse(t){if(iB()(t))return{set:!0,valid:!0,normalized:{email:t,msisdn:void 0}};let e=(0,eU.E)(t);return e?{set:!0,valid:!0,normalized:{msisdn:e,email:void 0}}:{set:!0,valid:!1}}}(0,a.Cg)([(0,d.y_)()],iq.prototype,"uwa",void 0),(0,a.Cg)([(0,d.ox)("locale")],iq.prototype,"retranslate",null);var iR=iq=(0,a.Cg)([(0,d.uA)({extends:iF.s})],iq),iU=(0,S.A)(iR,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("input",{staticClass:"vikingInput",attrs:{id:t.id,type:"text",name:t.name,autocomplete:"off"},domProps:{value:t.rendered},on:{focus:function(e){t.focused=!0},blur:function(e){t.focused=!1,t.$forceUpdate(),t.$emit("blurField")}
47,input:function(e){return t.onInput(e.target.value)}}})},[],!1,null,null,null).exports,iV=i(33905);class iW extends d.lD{}(0,a.Cg)([(0,d.kv)({type:Function})],iW.prototype,"onClick",void 0),(0,a.Cg)([(0,d.kv)({type:Boolean,default:!1})],iW.prototype,"selected",void 0);var iQ=iW=(0,a.Cg)([(0,d.uA)({})],iW),iY=(0,S.A)(iQ,function(){var t=this._self._c;return this._self._setupProxy,t("button",{staticClass:"selectableOption",class:[{selectableOption_selected:this.selected}],attrs:{type:"button"},on:{click:this.onClick}},[t("span",{staticClass:"selectableOption_text"},[this._t("default")],2)])},[],!1,null,"0457bb50",null).exports;let iG=(0,n.tZ)("ShareVikingPointsSpc");class iH extends d.lD{get showShareVikingPointSettings(){return!!this.session&&!!this.session.mobileSubscriptions&&(this.session.mobileSubscriptions.some(t=>!t.isOwner)??!1)}async created(){try{this.vikingPointsBalance=await this.vikingPointsService.getBalance(),this.vikingPointsBalance.available<=0&&this.$emit("dismiss")}catch(t){iG.error("Failed to retrieve the viking point balance",t),this.notifyGenericErrors(t)}}handleVikingPointsOptionClick(t,e){this.showCustomValue=e,this.sharedVikingPoints=t,e&&this.$nextTick(()=>{this.$refs.vpInput.value="",this.$refs.vpInput?.focus()})}assureVpValue(){let t=Math.max(0,Math.min(+(this.sharedVikingPoints||0),this.vikingPointsBalance.available));t!==this.sharedVikingPoints&&(this.showCustomValue=!1,this.sharedVikingPoints=t)}navigateToVikingPointSettings(){this.$router.push({name:tr.A.profile,query:{spc:"share-viking-points-settings"}})}get options(){if(!this.vikingPointsBalance||!this.vikingPointsBalance.available)return[];let t=this.vikingPointsBalance.available;return t>=15?[5,10,15]:t>=5?[5,8,12].filter(e=>e<=t):[]}async shareVikingPoints(){if(this.uwaValidationErrors={},this.error=null,!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20);return}if(this.targetViking&&this.sharedVikingPoints&&("password"!==this.stepupMode||this.password)){var t,e;if(t=this.targetViking,(e=this.session).profile&&e.profile.email===t.email||e.mobileSubscriptions&&e.mobileSubscriptions.filter(t=>t.isOwner&&!!t.msisdn).map(t=>t.msisdn).includes(t.msisdn)){this.uwaValidationErrors={target:["cannot_share_vp_with_yourself"]};return}try{this.isSharingPending=!0,await this.vikingPointsService.share(this.targetViking,this.sharedVikingPoints,this.password??""),this.notify.success("share_viking_points.points_shared_successfully"),this.$emit("dismiss")}catch(i){let t=r.Ay.of(i),e=(0,y.v)(t,[{code:r.O4.INSUFFICIENT_LOYALTY_POINTS,on:"viking_points",message:"insufficient_viking_points"},{code:r.O4.INVALID_VALUE,field:"password",on:"password",message:"password_incorrect"},{code:r.O4.CUSTOMER_NOT_FOUND,field:"receiving_customer",on:"target",message:"unknown_viking"}]);this.uwaValidationErrors=e.result,e.firstIssue?(this.notify.error("form_is_not_valid"),this.domUtils.scrollToFirst(".is-invalid",20)):(iG.error("Something went wrong with sharing viking points",t),this.error=this.getCopyKeyForGenericError(t))}finally{this.isSharingPending=!1}}}constructor(...t){super(...t),this.vikingPointsBalance=null,this.sharedVikingPoints=null,this.targetViking=null,this.password=null,this.error=null,this.isSharingPending=!1,this.showCustomValue=!1,this.uwaValidationErrors={}}}(0,a.Cg)([(0,d.y_)()],iH.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],iH.prototype,"vikingPointsService",void 0),(0,a.Cg)([(0,d.y_)()],iH.prototype,"domUtils",void 0),(0,a.Cg)([(0,d.y_)()],iH.prototype,"stepupMode",void 0);var iZ=iH=(0,a.Cg)([(0,d.uA)({components:{SidePanelItem:m.A,SelectableOption:iY,MvForm:p.A,VikingInput:iU,InfoItem:iV.A,Field:u.A,CallToAction:c.A,Password:h.A}})],iH),iJ=(0,S.A)(iZ,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"shareVikingPoints",attrs:{name:"shareVikingPoints"}},[e("header",[e("h2",[t._v(t._s(t.$t("share_viking_points.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.$emit("dismiss")}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},[t.error?e("div",{staticClass:"error"},[t._v(t._s(t.error))]):t._e(),t.vikingPointsBalance?[e("div",{staticClass:"shareVikingPoints_balance"},[e("InfoItem",{attrs:{appearance:"large",label:t.$t("share_viking_points.balance_title")}},[t._v(" "+t._s(t._f("decimal")(t.vikingPointsBalance.available))+" ")])],1),e("div",{staticClass:"option-group"},[e("Field",{staticClass:"shareVikingPoints__vikingPoints",attrs:{label:t.$t("share_viking_points.viking_points_to_share"),validationErrors:t.$tList(t.uwaValidationErrors.viking_points,"validationError__")}},[e("div",{staticClass:"shareVikingPoints__option",staticStyle:{display:"flex","flex-direction":"row",gap:"8px"}},[t._l(t.options,function(i){return e("SelectableOption",{key:i,attrs:{onClick:()=>t.handleVikingPointsOptionClick(i,!1),selected:t.sharedVikingPoints===i}},[e("span",[e("span",{staticClass:"shareVikingPoints_sign"},[t._v("V")]),t._v(t._s(i)+" ")])])}),e("SelectableOption",{key:"all",attrs:{onClick:()=>t.handleVikingPointsOptionClick(t.vikingPointsBalance?.available||0,!1),selected:t.sharedVikingPoints===t.vikingPointsBalance?.available}},[t._v(" "+t._s(t.$t("loyaltypoint_option.all"))+" ")]),e("SelectableOption",{key:"other",attrs:{onClick:()=>!t.showCustomValue&&t.handleVikingPointsOptionClick(.01,!0),selected:t.showCustomValue}},[t._v(" "+t._s(t.$t("loyaltypoint_option.other"))+" ")])],2),e("input",{directives:[{name:"show",rawName:"v-show",value:t.showCustomValue,expression:"showCustomValue"},{name:"model",rawName:"v-model.lazy.number",value:t.sharedVikingPoints,expression:"sharedVikingPoints",modifiers:{lazy:!0,number:!0}},{name:"validate",rawName:"v-validate",value:{required:!0,min_value:.01,decimal
47:2,max_value:t.vikingPointsBalance.available},expression:"{ required: true, min_value: 0.01, decimal: 2, max_value: vikingPointsBalance.available }"}],ref:"vpInput",staticClass:"shareVikingPoints__customValue",attrs:{name:"viking_points",disabled:t.isSharingPending,placeholder:"0,01",type:"number"},domProps:{value:t.sharedVikingPoints},on:{blur:[function(e){return t.assureVpValue()},function(e){return t.$forceUpdate()}],change:function(e){t.sharedVikingPoints=t._n(e.target.value)}}})]),e("Field",{staticClass:"shareVikingPoints__target",attrs:{label:t.$t("share_viking_points.msisdn_or_mail"),validationErrors:t.$tList(t.uwaValidationErrors.target,"validationError__")}},[e("VikingInput",{directives:[{name:"validate",rawName:"v-validate",value:{vikingReference:!0,required:!0},expression:"{ vikingReference: true, required: true }"}],attrs:{disabled:t.isSharingPending,name:"viking",required:""},model:{value:t.targetViking,callback:function(e){t.targetViking=e},expression:"targetViking"}})],1),"password"===t.stepupMode?e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("share_viking_points.password_intro"),expression:"$t('share_viking_points.password_intro')"}],staticClass:"option-group__description intro"}):t._e(),"password"===t.stepupMode?e("Field",{staticClass:"shareVikingPoints__password",attrs:{label:t.$t("share_viking_points.password"),validationErrors:t.$tList(t.uwaValidationErrors.password,"validationError__")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],attrs:{required:"",disabled:t.isSharingPending,autocomplete:"password",name:"password","data-vv-as":t.$t("share_viking_points.password")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1):t._e()],1),t.showShareVikingPointSettings?[e("SidePanelItem",{attrs:{title:t.$t("share_viking_points.manage_auto_sharing"),"data-qa":"share-viking-points-settings-spi",externalLink:!0}
47,on:{edit:t.navigateToVikingPointSettings}})]:t._e()]:[e("div",{staticClass:"shareVikingPoints_balance"},[e("InfoItem",{staticClass:"is-loading infoItem--large",attrs:{label:t.$t("share_viking_points.balance_title")}})],1)]],2),e("footer",[e("CallToAction",{staticClass:"confirm",attrs:{once:t.shareVikingPoints,type:"submit"}},[t._v(" "+t._s("password"===t.stepupMode?t.$t("share_viking_points.share_now"):t.$t("share_viking_points.share_now_with_step_up"))+" ")])],1)])},[],!1,null,"2f5af344",null).exports;let iK=(0,n.tZ)("SimAliasEditComponent");class iX extends d.lD{async created(){this.session.mobileSubscription&&this.session.mobileSubscription.isOwner?this.alias=this.session.mobileSubscription.alias||"":this.$emit("dismiss")}async save(){try{if(!this.session.mobileSubscription||!await this.$validator.validateAll())return;this.saving=!0,await this.subscriptionService.updateAlias(this.session.mobileSubscription,this.alias),this.saving=!1,this.$emit("dismiss"),this.notify.success("edit_sim_alias.alias_updated")}catch(t){iK.error("Failed to update alias",t),this.saving=!1,this.notifyGenericErrors(t)}}async dismiss(){!this.saving&&(!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$emit("dismiss")}get isDirty(){return!!this.session.mobileSubscription&&this.session.mobileSubscription.alias!==this.alias}constructor(...t){super(...t),this.alias="",this.saving=!1}}(0,a.Cg)([(0,d.y_)()],iX.prototype,"subscriptionService",void 0),(0,a.Cg)([(0,d.y_)()],iX.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],iX.prototype,"confirm",void 0);var i0=iX=(0,a.Cg)([(0,d.uA)({components:{Field:u.A,CallToAction:c.A,MvForm:p.A}})],iX),i1=(0,S.A)(i0,function(){var t=this,e=t._self._c;return t._self._setupProxy,t.session.mobileSubscription?e("MvForm",{staticClass:"edit-sim-alias simAliasSpc",attrs:{name:"changeSimAlias"}},[e("header",[e("h2",[t._v(t._s(t.$t("edit_sim_alias.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("div",{staticClass:"option-group"},[e("div",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("edit_sim_alias.intro"),expression:"$t('edit_sim_alias.intro')"}],staticClass:"option-group__description"}),e("Field",{attrs:{label:t.$t("edit_sim_alias.alias")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.alias,expression:"alias"},{name:"validate",rawName:"v-validate",value:{max:100},expression:"{ max: 100 }"}],attrs:{required:"",type:"text",name:"alias"},domProps:{value:t.alias},on:{input:function(e){e.target.composing||(t.alias=e.target.value)}}})])],1)]),e("footer",[e("CallToAction",{staticClass:"confirm",attrs:{once:t.save,type:"submit"}}
47,[t._v(t._s(t.$t("save")))])],1)]):t._e()},[],!1,null,"b90b93f6",null).exports;class i4 extends d.lD{dismiss(){this.$emit("dismiss")}}(0,a.Cg)([(0,d.y_)()],i4.prototype,"session",void 0);var i2=i4=(0,a.Cg)([(0,d.uA)({components:{SidePanelItem:m.A,SimSelector:f.A,MvForm:p.A}})],i4),i3=(0,S.A)(i2,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"simSelectorSpc",attrs:{name:"simSelection"}},[e("header",[e("h2",[t._v(t._s(t.$t("change_your_simcard")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("div",{staticClass:"option-group"},[e("SimSelector",{staticClass:"simSelectorSpc__simSelector",attrs:{value:t.session.mobileSubscription,styleLevel:1,keepSmallLook:!0}})],1),e("section",{staticClass:"option-group"},[e("h3",{staticClass:"option-group-title"},[t._v(t._s(t.$t("add_a_sim_card_title")))]),e("SidePanelItem",{attrs:{to:`/${t.$i18n.locale}/offer/subscriptions/`,title:t.$t("look_at_our_subscriptions_link_text"),externalLink:!0}
47}),e("SidePanelItem",{attrs:{to:`/${t.$i18n.locale}/offer/prepaid/`,title:t.$t("look_at_our_prepaid_offers_link_text"),externalLink:!0}}),e("SidePanelItem",{attrs:{to:`/${t.$i18n.locale}/offer/only-data/`,title:t.$t("look_at_our_only_data_offers_link_text"),externalLink:!0}})],1)])])},[],!1,null,null,null).exports;class i5 extends d.lD{get subscriptionId(){let t=this.$route.query.subscriptionId;return t?Array.isArray(t)?t[0]??null:t:null}get subscription(){return this.subscriptionId&&this.session.thirdPartySubscriptions&&this.session.thirdPartySubscriptions.find(t=>String(t.id)===this.subscriptionId)||null}}(0,a.Cg)([(0,d.y_)()],i5.prototype,"session",void 0);var i9=i5=(0,a.Cg)([(0,d.uA)({components:{CallToAction:c.A}})],i5),i8=(0,S.A)(i9,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"thirdPartyPaymentSettingsSpc"},[e("header",[e("h2",[t._v(t._s(t.$t("tps.payment_settings")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.$emit("dismiss")}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),t.subscription?e("div",{staticClass:"my-viking-sidePanel__main"},[e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("tps.payment_for_{subhubPartner}_via_invoice__html",{subhubPartner:t.subscription.product.thirdPartyName}),expression:"\n $t('tps.payment_for_{subhubPartner}_via_invoice__html', {\n subhubPartner: subscription.product.thirdPartyName,\n })\n "}]})]):e("div",{staticClass:"my-viking-sidePanel__main thirdPartyPaymentSettingsSpc__loading"},[e("div",{staticClass:"is-loading",staticStyle:{"--value-length":"22ch"}},[t._v("Â ")])]),e("footer",[e("CallToAction",{attrs:{once:()=>t.$emit("dismiss"),type:"submit"}},[t._v(" "+t._s(t.$t("close"))+" ")])],1)])},[],!1,null,"e766cb24",null).exports;class i6 extends d.lD{get subscriptionId(){let t=this.$route.query.subscriptionId;return t?Array.isArray(t)?t[0]??null:t:null}get subscription(){return this.subscriptionId&&this.session.thirdPartySubscriptions&&this.session.thirdPartySubscriptions.find(t=>String(t.id)===this.subscriptionId)||null}}(0,a.Cg)([(0,d.y_)()],i6.prototype,"session",void 0);var i7=i6=(0,a.Cg)([(0,d.uA)({components:{CopyField:H.A,CallToAction:c.A}})],i6),st=(0,S.A)(i7,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"thirdPartySharedSubscriptionIdSpc"},[e("header",[e("h2",[t._v(t._s(t.$t("tps.shared_subscription_id")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.$emit("dismiss")}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),t.subscription?e("div",{staticClass:"my-viking-sidePanel__main"},[e("p",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("tps.shared_subscription_id_extra_info_for_{subhubPartner}__html",{subhubPartner:t.subscription.product.thirdPartyName}),expression:"\n $t('tps.shared_subscription_id_extra_info_for_{subhubPartner}__html', {\n subhubPartner: subscription.product.thirdPartyName,\n })\n "}]}),e("div",{staticClass:"thirdPartySharedSubscriptionIdSpc__copyFieldHeader"},[t._v(t._s(t.$t("tps.shared_subscription_id")))]),e("CopyField",{attrs:{value:t.subscription.sharedSubscriptionId||""}})],1):e("div",{staticClass:"my-viking-sidePanel__main thirdPartySharedSubscriptionIdSpc__loading"},[e("div",{staticClass:"is-loading",staticStyle:{"--value-length":"22ch"}},[t._v("Â ")])]),e("footer",[e("CallToAction",{attrs:{once:()=>t.$emit("dismiss"),type:"submit"}},[t._v(" "+t._s(t.$t("close"))+" ")])],1)])},[],!1,null,"c0e7190e",null).exports,se=i(71229),si=i(50778);let ss=["payconiq","bancontact","bitcoin","KBC","mastercard","transfer","visa"];class sa extends d.lD{get statusTagAppearance(){return this.topup?.state==="enabled"||this.refund?"green":"vibrantBlue"}get refund(){return!!this.topup&&"refunded"===this.topup.state}async created(){if(!this.topupId)return;let t=(0,t$.bp)(await this.uwa.getOrder(this.topupId));if(!(0,se.pj)(t)&&!(0,se.ZG)(t))throw new V.p(`Expected order ${t.id} to be topup or bundle order`);this.topup=t}get paymentMethods(){return this.topup?.payment?.method&&this.topup.payment.method.filter(t=>ss.includes(t))||[]}get subscription(){if(!this.topup||!this.session.mobileSubscriptions)return null;let t=this.topup.subscriptionId;return this.session.mobileSubscriptions.find(e=>e.id===t)||null}get displayPayment(){return!!this.topup&&this.paymentMethods.length>0}get dataPackageAmount(){return this.topup&&(0,se.ZG)(this.topup)?this.topup.packages.reduce((t,e)=>t+e.price,0):0}get dataPackageLabel(){if(!this.topup||!(0,se.ZG)(this.topup)||!this.topup.packages.length)return"";let t=this.topup.packages.length;return this.$tc("topup_detail.extra_data_1_gb|{n}x_extra_data_1_gb",t).toString()}get topupProductName(){return this.topup?(0,se.pj)(this.topup)?this.topup.product.title:this.topup.description:""}constructor(...t){super(...t),this.topup=null,this.isTopup=se.ZG,this.isBundleOrder=se.pj,this.formatMoney=z.up}}(0,a.Cg)([(0,d.y_)()],sa.prototype,"uwa",void 0),(0,a.Cg)([(0,d.y_)()],sa.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],sa.prototype,"config",void 0),(0,a.Cg)([(0,d.kv)()],sa.prototype,"topupId",void 0);var sn=sa=(0,a.Cg)([(0,d.uA)({components:{InlineNotification:T.A,Tag:si.A,InvoiceDetailEntry:et,SidePanelItem:m.A,PaymentMethodLabel:ib.A,SubscriptionDetail
47s:D.A}})],sa),so=(0,S.A)(sn,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"topup-details"},[e("header",[e("h2",[t._v(t._s(t.$t("topup_detail.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.$emit("dismiss")}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),null===t.topup?e("div",{staticClass:"my-viking-sidePanel__main noPaddingTop"},[e("div",{staticClass:"end-section my-viking-sidePanel__subscriptionDetails"},[e("SubscriptionDetails",{staticClass:"current-sim",attrs:{withIcon:!0}})],1),e("div",{staticClass:"option-group"},[e("SidePanelItem",{attrs:{title:t.$t("topup_detail.topup"),loading:!0}}),e("SidePanelItem",{attrs:{title:t.$t("topup_detail.date"),loading:!0}}),e("SidePanelItem",{attrs:{title:t.$t("topup_detail.state"),loading:!0}})],1),e("div",{staticClass:"topup-summary option-group"},[e("h3",{staticClass:"option-group-title"},[t._v(t._s(t.$t("topup_detail.summary")))]),e("InvoiceDetailEntry",{attrs:{loading:!0,appearance:"cost",label:t.$t("topup_detail.topup")}}),e("InvoiceDetailEntry",{attrs:{loading:!0,appearance:"cost",label:t.$t("topup_detail.subtotal")}}),e("InvoiceDetailEntry",{attrs:{loading:!0,appearance:"cost",label:t.$t("topup_detail.used_viking_points")}}),e("SidePanelItem",{attrs:{title:t.$t("topup_detail.total_paid"),loading:!0}}),e("SidePanelItem",{attrs:{title:t.$t("topup_detail.payment_method"),loading:!0}})],1)]):e("div",{staticClass:"my-viking-sidePanel__main noPaddingTop"},[t.refund?e("InlineNotification",{attrs:{appearance:"inSidePanel"}},[t._v(" "+t._s(t.$t("topup_detail.topup_was_refunded"))+" ")]):t._e(),e("div",{staticClass:"end-section my-viking-sidePanel__subscriptionDetails"},[e("SubscriptionDetails",{staticClass:"current-sim",attrs:{withIcon:!0,subscription:t.subscription}})],1),e("div",{staticClass:"option-group"},[e("SidePanelItem",{attrs:{title:t.$t("topup_detail.topup"),value:t.topupProductName}}),e("SidePanelItem",{attrs:{title:t.$t("topup_detail.date"),value:t._f("dateTime")(t.topup.created)}}),t.isBundleOrder(t.topup)?e("SidePanelItem",{attrs:{title:t.$t("topup_detail.price"),value:t.formatMoney(t.topup.amount)}}):t._e(),e("SidePanelItem",{staticClass:"topup-state",class:{success:"enabled"===t.topup.state,refunded:t.refund},attrs:{title:t.$t("topup_detail.state")}},[e("Tag",{attrs:{appearance:t.statusTagAppearance,size:"small"}},[t._v(t._s(t.$t(`topup_state__${t.topup.state}`)))])],1),t.refund?e("SidePanelItem",{staticClass:"refund-date",attrs:{title:t.$t("topup_detail.refund_date"),value:t._f("dateTime")(t.topup.refundedOn)}}):t._e()],1),t.topup.payment?e("div",{staticClass:"topup-summary option-group"},[e("h3",{staticClass:"option-group-title"},[t._v(t._s(t.$t("topup_detail.summary")))]),e("InvoiceDetailEntry",{attrs:{appearance:"cost",label:t.$t("topup_detail.topup"),amount:t.topup.product.price}}),t.isTopup(t.topup)&&t.topup.packages.length?e("InvoiceDetailEntry",{attrs:{appearance:"cost",label:t.dataPackageLabel,amount:t.dataPackageAmount}}):t._e(),e("InvoiceDetailEntry",{attrs:{appearance:"cost",label:t.$t("topup_detail.subtotal"),amount:t.topup.amount}}),e("InvoiceDetailEntry",{attrs:{appearance:"cost",label:t.$t("topup_detail.used_viking_points"),amount:0-t.topup.payment.vikingPoints}}),t.refund?[e("InvoiceDetailEntry",{attrs:{appearance:"cost",label:t.$t("topup_detail.amount_refunded"),amount:0-t.topup.payment.paid}}),e("SidePanelItem",{attrs:{title:t.$t("topup_detail.total_paid"),value:t._f("moneyCents")(0)}})]:e("SidePanelItem",{attrs:{title:t.$t("topup_detail.total_paid"),value:t._f("moneyCents")(t.topup.payment.paid)}}),t.displayPayment?e("SidePanelItem",{staticClass:"payment-info",attrs:{title:t.$t("topup_detail.payment_method")}},t._l(t.paymentMethods,function(t){return e("PaymentMethodLabel",{key:t,attrs:{appearance:"sidePanel",method:t}})}),1):t._e()],2):t._e()],1)])},[],!1,null,null,null).exports,sr=i(28483),sl=i(34313),sd=i(85856),sc=i(65993),su=i(17764),sp=i(99735);let sh=(0,n.tZ)("usage-details"),s_={national:{regionality:"national"}
47,roaming:{regionality:"roaming"}},sm={outgoing:{direction:"outgoing"},incoming:{direction:"incoming"}};class sg extends d.lD{get uniqueId(){return`usageDetailsSpc__${sv++}`}onFilterDateToChange(t){if(!t)return;let e={start:t.dateFrom.toString(),end:t.dateTo.toString(),paid_only:("out"===t.bundle).toString()};this.$router.push({query:{...this.$route.query,...e}})}onUrlQueryFilterChange(t){this.usageFilter={...this.defaultFilters(),dateFrom:this.parseToLocalDateIfValid(t.start)||this.defaultFilters().dateFrom,dateTo:this.parseToLocalDateIfValid(t.end)||this.defaultFilters().dateTo,bundle:"true"===t.paid_only?"out":void 0,type:t.type}}defaultFilters(){let t=this.parseToLocalDateIfValid(this.$route.query.start)||this.clock.today();return{dateFrom:t,dateTo:this.parseToLocalDateIfValid(this.$route.query.end)||this.clock.today(),bundle:"true"===this.$route.query.paid_only?"out":void 0}}parseToLocalDateIfValid(t){if("string"!=typeof t)return null;try{return eh.LocalDate.parse(t,eh.DateTimeFormatter.ISO_LOCAL_DATE)}catch(t){if(t instanceof eh.DateTimeParseException)return null;throw t}}loadData(){this.usageFilter&&this.loadUsageData(this.subscriptionId,this.usageFilter,"data"===this.usageFilter.type?s_:sm)}async loadUsageData(t,e,i){if((0,$.c2)({subscriptionId:t,filter:e},this.loadedData))return;this.loadedData=(0,$.A4)({subscriptionId:t,filter:e}),this.categories=Object.keys(i).map(t=>({name:t,records:null,summaryPaid:null,summaryUnpaid:null,async more(){this.records&&this.records.more(5)}}));let s=[];s.push(...this.categories.map(s=>{let a={...e,...i[s.name]};return this.uwa.getUsage(t,a).then(t=>t.byDay().loadUntil(5)).then(t=>{s.records=t})})),s.push(this.uwa.getUsageTotals(t,{...e,bundle:"in"}).then(t=>{for(let e of this.categories)e.summaryUnpaid=t.getSummary(i[e.name])})),s.push(this.uwa.getUsageTotals(t,{...e,bundle:"out"}).then(t=>{for(let e of this.categories)e.summaryPaid=t.getSummary(i[e.name])})),Promise.all(s).then(()=>{sh.debug("usage data loaded")}).catch(t=>{if(r.Ay.of(t).code===r.O4.SUBSCRIPTION_CANNOT_BE_FOUND){sh.debug("Subscription does not exist anymore. closing"),this.$emit("dismiss");return}sh.error("Failed to retrieve usage details",t),this.notifyGenericErrors(t)})}showFilters(){let t=this.showInModal(sp.A,{value:this.usageFilter,lastTopupDate:this.lastTopupDate,lastBundleRenewalDate:this.lastBundleRenewalDate,defaultFilters:this.defaultFilters()},{close:()=>t(),input:t=>{this.usageFilter=t}})}formatPeer(t){return/^\d+$/.test(t)?(0,l.i)(t):t}toggleExpand(t){this.isExpanded(t)?this.expanded=this.expanded.filter(e=>!e.equals(t.date)):this.expanded.push(t.date)}isExpanded(t){return!!this.expanded.find(e=>e.equals(t.date))}more(t){return()=>t.records.more()}get periodDescription(){if(!this.usageFilter)return"";let t=(0,sr.h6)(this.usageFilter.dateFrom,this.usageFilter.dateTo,this.clock.today(),{lastTopupDate:this.lastTopupDate,lastBundleRenewalDate:this.lastBundleRenewalDate});return t?this.$t(`default_period__${t}`).toString():this.usageFilter.dateFrom.isEqual(this.usageFilter.dateTo)?(0,ep.kz)(this.usageFilter.dateFrom,this.locale):`${(0,ep.kz)(this.usageFilter.dateFrom,this.locale)} - ${(0,ep.kz)(this.usageFilter.dateTo,this.locale)}`}get filterActive(){return!!this.usageFilter&&(!!this.usageFilter.bundle||!!this.usageFilter.regionality)}getAriaLabelTotal(t,e){let i={date:this.$options.filters?.dateLong(t.date),price:this.$options.filters?.moneyCents(t.price)};return"voice"===e?this.$t("usage_details.day-record_voice-total_{amount}_{date}_{price}__screenread",{amount:this.$options.filters?.hmsLong(t.durationSeconds),...i}):"sms"===e?this.$t("usage_details.day-record_sms-total_{amount}_{date}_{price}__screenread",{amount:this.$options.filters?.sms(t.records.length),...i}):"data"===e?this.$t("usage_details.day-record_data-total_{amount}_{date}_{price}__screenread",{amount:this.$options.filters?.data(t.dataBytes),...i}):""}getAriaLabelVoiceUsage(t){return t&&(0,sl.ty)(t?.voiceSeconds,this.$t.bind(this),this.$tc.bind(this))||this.$tc("{n}_seconds",0)}getRecordData(t){return{peer:this.formatPeer(t.peer),quantity:this.$options.filters?.data(t.dataBytes),dateFrom:this.$options.filters?.time(t.startTime),dateTo:t?.endTime?this.$options.filters?.time(t.endTime):null,price:this.$options.filters?.moneyCents(t.price)}}getAriaLabelDetail(t){let e=`${t.type}.${t.regionality}.${t.direction}`,i=this.getRecordData(t);return t.isVoicemail?this.$t("usage_details.day-record_record-voicemail_{peer}_{dateFrom}__screenread",i):"voice.national.incoming"===e?this.$t("usage_details.day-record_voice_national_incoming_{peer}_{duration}_{dateFrom}_{price}__screenread",i):"voice.national.outgoing"===e?this.$t("usage_details.day-record_voice_national_outgoing_{peer}_{duration}_{dateFrom}_{price}__screenread",i):"voice.international.incoming"===e?this.$t("usage_details.day-record_voice_international_incoming_{peer}_{duration}_{dateFrom}_{price}__screenread",i):"voice.international.outgoing"===e?this.$t("usage_details.day-record_voice_international_outgoing_{peer}_{duration}_{dateFrom}_{price}__screenread",i):"voice.roaming.incoming"===e?this.$t("usage_details.day-record_voice_roaming_incoming_{peer}_{duration}_{dateFrom}_{price}__screenread",i):"voice.roaming.outgoing"===e?this.$t("usage_details.day-record_voice_roaming_outgoing_{peer}_{duration}_{dateFrom}_{price}__screenread",i):"sms.national.incoming"===e?this.$t("usage_details.day-record_sms_national_incoming_{peer}_{dateFrom}_{price}__screenread",i):"sms.national.outgoing"===e?this.$t("usage_details.day-record_sms_national_outgoing_{peer}_{dateFrom}_{price}__screenread",i):"sms.international.incoming"===e?this.$t("usage_details.day-record_sms_national_incoming_{peer}_{dateFrom}_{price}__screenread",i):"sms.international.outgoing"===e?this.$t("usage_details.day-record_sms_national_outgoing_{peer}_{dateFrom}_{price}__screenread",i):"sms.roaming.incoming"===e?this.$t("usage_details.day-record_sms_national_incoming_{peer}_{dateFrom}_{price}__screenread",i):"sms.roaming.outgoing"===e?this.$t("usage_details.day-record_sms_national_outgoing_{peer}_{dateFrom}_{price}__screenread",i):"data.national.outgoing"===e?this.$t("usage_details.day-record_data_national_outgoing_{quantity}_{dateFrom}_{dateTo}_{price}__screenread",i):"data.roaming.outgoing"===e?this.$t("usage_details.day-record_data_roaming_outgoing_{quantity}_{dateFrom}_{dateTo}_{price}__screenread",i):"data.international.outgoing"===e?this.$t("usage_details.day-record_data_international_outgoing_{quantity}_{dateFrom}_{dateTo}_{price}__screenread",i):""}categoryIsLoading(t){return!t.summaryPaid||!t.summaryUnpaid}constructor(...t){super(...t),this.usageFilter=null,this.loadedData=null,this.categories=[],this.expanded=[],this.lastTopupDate=this.parseToLocalDateIfValid(this?.$route?.query?.last_topup_date)||null,this.lastBundleRenewalDate=this.parseToLocalDateIfValid(this?.$route?.query?.last_bundle_renewal_date)||null}}(0,a.Cg)([(0,d.kv)()],sg.prototype,"subscriptionId",void 0),(0,a.Cg)([(0,d.y_)()],sg.prototype,"uwa",void 0),(0,a.Cg)([(0,d.y_)()],sg.prototype,"subscriptionService",void 0),(0,a.Cg)([(0,d.y_)()],sg.prototype,"clock",void 0),(0,a.Cg)([(0,d.y_)()],sg.prototype,"showInModal",void 0),(0,a.Cg)([(0,d.y_)()],sg.prototype,"config",void 0),(0,a.Cg)([(0,d.y_)()],sg.prototype,"session",void 0),(0,a.Cg)([(0,d.ox)("usageFilter",{deep:!0})],sg.prototype,"onFilterDateToChange",null),(0,a.Cg)([(0,d.ox)("$route.query",{immediate:!0,deep:!0})],sg.prototype,"onUrlQueryFilterChange",null),(0,a.Cg)([(0,d.ox)("subscriptionId",{immediate:!0}),(0,d.ox)("usageFilter",{immediate:!0})],sg.prototype,"loadData",null);let sv=0;var sf=sg=(0,a.Cg)([(0,d.uA)({components:{SidePanelError:sd.default,SidePanelItem:m.A,Tab:sc.A,Tabs:su.A,CallToAction:c.A}})],sg),sy=(0,S.A)(sf,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"usageDetails usage-details"},[e("header",[e("h2",[t._v(" "+t._s(t.$t(`usage_details.title_${t.usageFilter.type}`))+" "),e("span",{staticClass:"subtitle"},[t._v(t._s(t.periodDescription))])]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"filter",class:{"filter-active":t.filterActive},attrs:{type:"button",title:t.filterActive?t.$t("filter__active"):t.$t("filter")},on:{click:function(e){return t.showFilters()}}},[e("span",[t._v(t._s(t.$t("usage_details.filter")))])]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.$emit("dismiss")}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main noPaddingTop"},[e("Tabs",{attrs:{styleLevel:2}},t._l(t.categories,function(i){return e("Tab",{key:i.name,staticClass:"usage-details-tab",attrs:{name:t.$t(`usage_details.category__${i.name}`)}},["voice"===t.usageFilter.type?e("div",{staticClass:"grouped-summary voice-grouped-summary end-section",attrs:{"aria-label":t.categoryIsLoading(i)?t.$t("loading"):void 0}},[i.summaryPaid?e("SidePanelItem",{staticClass:"total",attrs:{valueLength:5,title:t.$t("usage_details.total")}},[t._v(" "+t._s(t._f("moneyCents")(i.summaryPaid.voiceCost))+" ")]):e("SidePanelItem",{staticClass:"total",attrs:{loading:!0,valueLength:5,title:t.$t("usage_details.total")}}),i.summaryPaid?e("SidePanelItem",{staticClass:"paid",attrs:{"aria-label":t.getAriaLabelVoiceUsage(i.summaryPaid),valueLength:5,title:t.$t("usage_details.duration_paid")}},[t._v(" "+t._s(t._f("hms")(i.summaryPaid.voiceSeconds))+" ")]):e("SidePanelItem",{staticClass:"paid",attrs:{loading:!0,valueLength:5,title:t.$t("usage_details.duration_paid")}}),i.summaryUnpaid?e("SidePanelItem",{staticClass:"unpaid",attrs:{"aria-label":t.getAriaLabelVoiceUsage(i.summaryUnpaid),valueLength:5,title:t.$t("usage_details.duration_unpaid")}},[t._v(" "+t._s(t._f("hms")(i.summaryUnpaid.voiceSeconds))+" ")]):e("SidePanelItem",{staticClass:"unpaid",attrs:{loading:!0,valueLength:5,title:t.$t("usage_details.duration_unpaid")}})],1):t._e(),"sms"===t.usageFilter.type?e("div",{staticClass:"grouped-summary sms-grouped-summary end-section",attrs:{"aria-label":t.categoryIsLoading(i)?t.$t("loading"):void 0}},[i.summaryPaid?e("SidePanelItem",{staticClass:"total",attrs:{valueLength:5,title:t.$t("usage_details.total")}},[t._v(" "+t._s(t._f("moneyCents")(i.summaryPaid.smsCost))+" ")]):e("SidePanelItem",{staticClass:"total",attrs:{loading:!0,valueLength:5,title:t.$t("usage_details.total")}}),i.summaryPaid?e("SidePanelItem",{staticClass:"paid",attrs:{valueLength:5,title:t.$t("usage_details.amount_sms_paid")}},[t._v(" "+t._s(t._f("sms")(i.summaryPaid.smses))+" ")]):e("SidePanelItem",{staticClass:"paid",attrs:{loading:!0,valueLength:5,title:t.$t("usage_details.amount_sms_paid")}}),i.summaryUnpaid?e("SidePanelItem",{staticClass:"unpaid",attrs:{valueLength:5,title:t.$t("usage_details.amount_sms_unpaid")}},[t._v(" "+t._s(t._f("sms")(i.summaryUnpaid.smses))+" ")]):e("SidePanelItem",{staticClass:"unpaid",attrs:{loading:!0,valueLength:5,title:t.$t("usage_details.amount_sms_unpaid")}})],1):t._e(),"data"===t.usageFilter.type?e("div",{staticClass:"grouped-summary data-grouped-summary end-section",attrs:{"aria-label":t.categoryIsLoading(i)?t.$t("loading"):void 0}},[i.summaryPaid?e("SidePanelItem",{staticClass:"total",attrs:{valueLength:5,title:t.$t("usage_details.total")}},[t._v(" "+t._s(t._f("moneyCents")(i.summaryPaid.dataCost))+" ")]):e("SidePanelItem",{staticClass:"total",attrs:{loading:!0,valueLength:5,title:t.$t("usage_details.total")}}),i.summaryPaid?e("SidePanelItem",{staticClass:"paid",attrs:{valueLength:5,title:t.$t("usage_details.amount_data_paid")}},[t._v(" "+t._s(t._f("data")(i.summaryPaid.dataBytes))+" ")]):e("SidePanelItem",{staticClass:"paid",attrs:{loading:!0,valueLength:5,title:t.$t("usage_details.amount_data_paid")}}),i.summaryUnpaid?e("SidePanelItem",{staticClass:"unpaid",attrs:{valueLength:5,title:t.$t("usage_details.amount_data_unpaid")}},[t._v(" "+t._s(t._f("data")(i.summaryUnpaid.dataBytes))+" ")]):e("SidePanelItem",{staticClass:"unpaid",attrs:{loading:!0,valueLength:5,title:t.$t("usage_details.amount_data_unpaid")}}
47)],1):t._e(),i.records&&0===i.records.items.length?e("SidePanelError",{staticClass:"no-records end-section",staticStyle:{"--icon-bg-url":"var(--icon-octopus-bg-url)"},attrs:{title:t.$t("usage_details.no_usage_title"),description:t.$t("usage_details.no_usage_description")}}):t._e(),i.records&&i.records.items.length>0?e("div",{staticClass:"usageDetails__notice"},[t._v(" "+t._s(t.$t("usage_details.days_without_usage_will_not_be_shown"))+" ")]):t._e(),i.records?e("ul",{staticClass:"usage-records"},t._l(i.records.items,function(i){return e("li",{key:i.date.toString(),staticClass:"usage-day nextStyleLevel",style:`--children-count: ${i.records.length}`},[e("button",{directives:[{name:"rippleEffect",rawName:"v-rippleEffect"}],staticClass:"day-header",attrs:{"aria-expanded":t.isExpanded(i)?"true":"false","aria-controls":t.uniqueId,"aria-label":t.getAriaLabelTotal(i,t.usageFilter.type)},on:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.toggleExpand(i)},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.toggleExpand(i))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:(e.preventDefault(),t.toggleExpand(i))}]}},[e("span",{staticClass:"date"},[t._v(" "+t._s(t._f("date")(i.date))+" ")]),"voice"===t.usageFilter.type?e("span",{staticClass:"amount"},[t._v(" "+t._s(t._f("hms")(i.durationSeconds))+" ")]):t._e(),"data"===t.usageFilter.type?e("span",{staticClass:"amount"},[t._v(" "+t._s(t._f("data")(i.dataBytes))+" ")]):t._e(),"sms"===t.usageFilter.type?e("span",{staticClass:"amount"},[t._v(" "+t._s(t._f("sms")(i.records.length))+" ")]):t._e(),e("span",{staticClass:"date-dow"},[t._v(" "+t._s(t._f("dateDow")(i.date))+" ")]),e("span",{staticClass:"price"},[t._v(" "+t._s(t._f("moneyCents")(i.price))+" ")])]),e("ul",{staticClass:"children",attrs:{id:t.uniqueId,"aria-hidden":!t.isExpanded(i)}},[t._l(i.records,function(i,s){return["voice"===t.usageFilter.type?e("li",{key:s,staticClass:"day-record record-voice",class:{roaming:"roaming"===i.regionality,intl:"international"===i.regionality,national:"national"===i.regionality,voicemail:i.isVoicemail},attrs:{"aria-label":t.getAriaLabelDetail(i)}},[e("div",{staticClass:"peer"},[t._v(" "+t._s(i.isVoicemail&&"outgoing"===i.direction?t.$t("voicemail"):t.formatPeer(i.peer))+" ")]),e("div",{staticClass:"amount"},[t._v(t._s(t._f("hms")(i.durationSeconds)))]),e("div",{staticClass:"time-reg"},[e("span",{staticClass:"time"},[t._v(t._s(t._f("time")(i.startTime)))]),["national","unknown"].includes(i.regionality)?t._e():e("span",{staticClass:"reg"},[t._v(" "+t._s(t.$t(`usage_details.regionality__${i.regionality}`))+" ")])]),e("div",{staticClass:"price"},[t._v(" "+t._s(t._f("moneyCents")(i.price))+" ")])]):t._e(),"data"===t.usageFilter.type?e("li",{key:s,staticClass:"day-record record-data",class:{roaming:"roaming"===i.regionality,intl:"international"===i.regionality,national:"national"===i.regionality},attrs:{tabindex:"0","aria-label":t.getAriaLabelDetail(i)}},[e("div",{staticClass:"label"},[t._v(t._s(t.$t("mobile_data")))]),e("div",{staticClass:"amount"},[t._v(t._s(t._f("data")(i.dataBytes)))]),e("div",{staticClass:"time-reg"},[e("span",{staticClass:"time-from"},[t._v(t._s(t._f("time")(i.startTime)))]),e("span",{staticClass:"time-to"},[t._v(t._s(t._f("time")(i.endTime)))]),["national","unknown"].includes(i.regionality)?t._e():e("span",{staticClass:"reg"},[t._v(" "+t._s(t.$t(`usage_details.regionality__${i.regionality}`))+" ")])]),e("div",{staticClass:"price"},[t._v(" "+t._s(t._f("moneyCents")(i.price))+" ")])]):t._e(),"sms"===t.usageFilter.type?e("li",{key:s,staticClass:"day-record record-sms",class:{roaming:"roaming"===i.regionality,intl:"international"===i.regionality,national:"national"===i.regionality,voicemail:i.isVoicemail},attrs:{"aria-label":t.getAriaLabelDetail(i),tabindex:"0"}},[e("div",{staticClass:"peer"},[t._v(t._s(i.isVoicemail?t.$t("voicemail"):t.formatPeer(i.peer)))]),e("div",{staticClass:"time-reg"},[e("span",{staticClass:"time"},[t._v(t._s(t._f("time")(i.startTime)))]),["national","unknown"].includes(i.regionality)?t._e():e("span",{staticClass:"reg"},[t._v(" "+t._s(t.$t(`usage_details.regionality__${i.regionality}`))+" ")])]),e("div",{staticClass:"price"},[t._v(" "+t._s(t._f("moneyCents")(i.price))+" ")])]):t._e()]})],2)])}),0):t._e(),i.records&&i.records.hasMore?e("CallToAction",{staticClass:"load-more-btn",attrs:{appearance:"quarternary-small",loadingMessage:t.$t("loading"),once:t.more(i)}},[t._v(" "+t._s(t.$t("load_more"))+" ")]):t._e()],1)}),1)],1)])},[],!1,null,"37f8b463",null).exports,sb=i(84776),sC=i(77016);let sw=(0,n.tZ)("VikingPointsSharingSettingsSpc");class sS extends d.lD{get email(){return this.availableAuthorizations?.find(t=>t.value===this.formData.email)||null}set email(t){this.formData.email=t.value}get availableAuthorizations(){if(!this.authorizations||!this.authorizations.incomingGrants||!this.session.profile?.email)return null;let t=[{title:`${this.$t("vikingpoints_sharing_settings.do_not_share_select_option")}`,value:this.session.profile.email}],e=new Set;
47return this.authorizations.incomingGrants.forEach(i=>{e.has(i.ownerMail)||(e.add(i.ownerMail),t.push({title:`${i.ownerFirstName}`,subtitle:`${this.$t("vikingpoints_sharing_settings.description__owner_of_msisdn_{msisdn}",{msisdn:(0,l.i)(i.subscription.msisdn)})}`,value:i.ownerMail}))}),t}created(){this.loadData()}async loadData(){if(this.session.profile)try{await this.getAuthorizations(),await this.getVikingPointsReceiver()}catch(t){this.notifyGenericErrors(t),this.$emit("dismiss")}}async getVikingPointsReceiver(){try{let t=await this.vikingPointsService.getVikingPointsReceiver();this.formData.email=t?.email}catch(t){throw sw.error("Failed to retrieve the viking point receiver",t),t}}async getAuthorizations(){try{this.authorizations=await this.authorizationService.getAuthorizations()}catch(t){throw sw.error("Failed to retrieve the authorizations",t),t}}async save(){if(await this.$validator.validateAll()&&this.session.profile?.email&&this.email&&this.formData.email)try{await this.vikingPointsService.updateVikingPointsReceiver({email:this.formData.email,password:this.formData.password}),this.formData.email!==this.session.profile.email?this.notify.success("vikingpoints_sharing_settings.success_message__share_viking_points_with_{name}",{name:this.email.title}):this.notify.success("vikingpoints_sharing_settings.success_message__keep_viking_points"),this.$emit("dismiss")}catch(i){let t=r.Ay.of(i),e=(0,y.v)(t,[{code:r.O4.INVALID_VALUE,field:"password",on:"password",message:"password_incorrect"}]);this.uwaValidationErrors=e.result,e.firstIssue||this.notifyGenericErrors(i),this.domUtils.scrollToFirst(".is-invalid",20)}}constructor(...t){super(...t),this.authorizations=null,this.uwaValidationErrors={},this.formData={password:"",email:null}}}(0,a.Cg)([(0,d.y_)()],sS.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],sS.prototype,"vikingPointsService",void 0),(0,a.Cg)([(0,d.y_)()],sS.prototype,"authorizationService",void 0),(0,a.Cg)([(0,d.y_)()],sS.prototype,"domUtils",void 0),(0,a.Cg)([(0,d.ox)("session.profile")],sS.prototype,"loadData",null);var sM=sS=(0,a.Cg)([(0,d.uA)({components:{RadioGroupOption:sC.A,RadioGroup:j.A,FormPassword:h.A,Field:u.A,CallToAction:c.A,MvForm:p.A}})],sS),sA=(0,S.A)(sM,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"vikingPointsSharingSettingsSpc",attrs:{"data-qa":"viking-points-sharing-settings",name:"shareVikingPointsSettings"}},[e("header",[e("h2",[t._v(t._s(t.$t("vikingpoints_sharing_settings.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{"data-qa":"viking-points-sharing-settings--cancel",type:"button"},on:{click:function(e){return e.preventDefault(),t.$emit("dismiss")}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main"},[e("div",{staticClass:"option-group"},[e("div",{staticClass:"option-group__description"},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("vikingpoints_sharing_settings.description_b"),expression:"$t('vikingpoints_sharing_settings.description_b')"}]})]),e("Field",{attrs:{"data-qa":"viking-points-sharing-settings--select-email-field",label:t.$t("vikingpoints_sharing_settings.select_email_label")}},[e("RadioGroup",{directives:[{name:"pii-mask",rawName:"v-pii-mask"}],attrs:{required:"",numberOfLoadingItems:2,name:"owner",options:t.availableAuthorizations},scopedSlots:t._u([t.availableAuthorizations?{key:"default",fn:function({option:t}){return[e("RadioGroupOption",{key:t.value,attrs:{title:t.title,subtitle:t?.subtitle}}
47)]}}:null],null,!0),model:{value:t.email,callback:function(e){t.email=e},expression:"email"}})],1),e("Field",{attrs:{"data-qa":"viking-points-sharing-settings--password-field",label:t.$t("vikingpoints_sharing_settings.password"),validationErrors:t.$tList(t.uwaValidationErrors.password,"validationError__")}},[e("FormPassword",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],attrs:{required:"",dataQa:"password",autocomplete:"password",name:"password","data-vv-as":t.$t("vikingpoints_sharing_settings.password")},model:{value:t.formData.password,callback:function(e){t.$set(t.formData,"password",e)},expression:"formData.password"}})],1)],1)]),e("footer",[e("CallToAction",{attrs:{"data-qa":"viking-points-sharing-settings--save",once:t.save,loading:!t.availableAuthorizations,type:"submit"}},[t._v(" "+t._s(t.$t("save"))+" ")])],1)])},[],!1,null,null,null).exports;let sk=(0,n.tZ)("VoicemailSettingsSpc");class sI extends d.lD{async created(){try{if(!this.session.mobileSubscription||!this.session.mobileSubscription.isOwner)return void this.dismiss();this.originalSettings=await this.uwa.getVoicemailSettings(this.session.mobileSubscription.id),this.settings=(0,$.A4)(this.originalSettings)}catch(t){sk.error("Failed to load voicemail settings"),this.notifyGenericErrors(t),this.$emit("dismiss")}}async save(){try{if(!this.session.mobileSubscription||!this.settings)return;this.error=!1,this.otherPendingLanguageChange=!1,this.saving=!0,await this.uwa.updateVoicemailSettings(this.session.mobileSubscription.id,this.settings),this.originalSettings=(0,$.A4)(this.settings),this.saving=!1,this.notify.success("voicemail_settings_saved"),this.$emit("dismiss")}catch(t){this.saving=!1,r.Ay.of(t).code===r.O4.OTHER_PENDING_LANGUAGE_CHANGE?this.otherPendingLanguageChange=!0:(sk.error("Failed to update voicemail settings",t),this.error=!0)}}get isDirty(){return!(0,$.c2)(this.settings,this.originalSettings)}async dismiss(){!this.saving&&(!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$emit("dismiss")}get faqDelayUrl(){return this.$t("voicemail_settings.faq_delay_voicemail_url")}get faqChangeVoicemailUrl(){return this.$t("voicemail_settings.faq_change_voicemail_url")}get faqForwardVoicemailUrl(){return this.$t("voicemail_settings.faq_toggle_forward_voicemail_url")}constructor(...t){super(...t),this.originalSettings=null,this.settings=null,this.otherPendingLanguageChange=!1,this.error=!1,this.saving=!1}}(0,a.Cg)([(0,d.y_)()],sI.prototype,"uwa",void 0),(0,a.Cg)([(0,d.y_)()],sI.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],sI.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],sI.prototype,"config",void 0);var sx=sI=(0,a.Cg)([(0,d.uA)({components:{InlineNotification:T.A,SidePanelItem:m.A,Checkbox:A.A,CallToAction:c.A,MvForm:p.A}})],sI),sN=(0,S.A)(sx,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"VoiceMailSettings",attrs:{name:"voiceMailSettings"}},[e("header",[e("h2",[t._v(t._s(t.$t("voicemail_settings.title")))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),e("div",{staticClass:"my-viking-sidePanel__main noPaddingTop"},[t.settings?t._e():[e("Checkbox",{staticClass:"end-section",attrs:{label:t.$t("voicemail_settings.enable"),loading:!0}})],t.settings?[t.otherPendingLanguageChange?e("div",{staticClass:"error"},[t._v(t._s(t.$t("other_pending_language_change")))]):t._e(),t.error?e("div",{staticClass:"error"},[t._v(t._s(t.$t("something_went_wrong")))]):t._e(),!t.settings.enabled&&t.settings.forwardingEnabled?e("InlineNotification",{staticClass:"conflicting_voicemail_configuration_warning",attrs:{hideIcon:!0,notificationType:"warning",appearance:"inSidePanel"}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.$t("voicemail_settings.faq_toggle_forward_voicemail_notification"),expression:"$t('voicemail_settings.faq_toggle_forward_voicemail_notification')"}]})]):t._e(),e("Checkbox",{staticClass:"end-section",attrs:{label:t.$t("voicemail_settings.enable")},model:{value:t.settings.enabled,callback:function(e){t.$set(t.settings,"enabled",e)},expression:"settings.enabled"}})]:t._e(),e("div",{staticClass:"option-group"},[e("h3",{staticClass:"option-group-title"},[t._v(t._s(t.$t("faq_section_spc.title")))]),e("SidePanelItem",{attrs:{to:t.faqDelayUrl,externalLink:!0,title:t.$t("voicemail_settings.delay_settings")}}),e("SidePanelItem",{attrs:{to:t.faqChangeVoicemailUrl,externalLink:!0,title:t.$t("voicemail_settings.faq_change_voicemail_language_title"),tip:t.$t("voicemail_settings.faq_change_voicemail_language_message")}}),e("SidePanelItem",{attrs:{to:t.faqForwardVoicemailUrl,externalLink:!0,title:t.$t("voicemail_settings.faq_toggle_forward_voicemail_title"),tip:t.$t("voicemail_settings.faq_toggle_forward_voicemail_message")}}
47)],1)],2),t.settings?e("footer",[e("CallToAction",{staticClass:"confirm",attrs:{once:t.save,type:"submit"}},[t._v(t._s(t.$t("save")))])],1):t._e()])},[],!1,null,null,null).exports,sT=i(2487),sD=i(24096);let s$=(0,n.tZ)("ModemConfigSpcBase");class sP extends d.lD{async mounted(){if(!this.session.broadbandSubscription)throw new V.p("No broadbandsubscription set");let t=await this.broadbandService.getModemConfig(this.session.broadbandSubscription);if(!t)throw new V.p("No config found for current subscription");let e=this.extractConfig(t);if(this.config={...e},this.originalConfig={...e},this.completeConfig=t,this.selectedOption){await (0,tI.yy)(50);let t=this.$el.querySelector(`[name="${this.selectedOption}"]`);t instanceof HTMLElement&&t.focus(),t instanceof HTMLInputElement&&t.select()}}get isDirty(){return!(0,$.c2)(this.originalConfig,this.config)}get buttonText(){return this.isDirty?this.$t("save_and_close").toString():this.$t("close").toString()}async dismiss(){!this.saving&&(!this.isDirty||await this.confirm(this.$t("confirm_popup.description_you_will_lose_your_changes"),this.$t("confirm_popup.title_remove_changes"),this.$t("confirm_popup.primary_cta_yes_remove_my_changes"),this.$t("confirm_popup.secondary_cta_no_keep_my_changes")))&&this.$emit("dismiss")}async submit(){if(!this.config)throw new V.p("Config was not loaded");if(!this.isDirty)return void this.$emit("dismiss");if(!await this.$validator.validateAll()){this.notify.error("form_is_not_valid"),this.scrollToFirstInvalid();return}try{if(!this.session.broadbandSubscription)throw new V.p("Session.company expected");this.saving=!0;let t=this.wrapConfig(this.config);await this.broadbandService.updateModemConfig(this.session.broadbandSubscription,t),this.notify.success("modem_config.settings_updated",{},{},"modem-cfg-success"),this.$emit("dismiss")}catch(t){r.Ay.of(t).code===r.O4.INVALID_VALUE?(s$.debug("Tried to change ssid to an already existing one"),this.notify.error("modem_config.error_wifi_ssid_has_to_be_unique")):(s$.error("Unable to save modem settings",t),this.notifyGenericErrors(t))}finally{this.saving=!1}}async scrollToFirstInvalid(){this.domUtils.scrollToFirst(".is-invalid",20)}netmaskToCidr(t){return t.split(".").reduce((t,e)=>t-Math.log2(256-e),32)}constructor(...t){super(...t),this.config=null,this.originalConfig=null,this.completeConfig=null,this.saving=!1}}(0,a.Cg)([(0,d.y_)()],sP.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],sP.prototype,"broadbandService",void 0),(0,a.Cg)([(0,d.y_)()],sP.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],sP.prototype,"uwa",void 0),(0,a.Cg)([(0,d.y_)()],sP.prototype,"domUtils",void 0),(0,a.Cg)([(0,d.kv)()],sP.prototype,"title",void 0),(0,a.Cg)([(0,d.kv)()],sP.prototype,"name",void 0),(0,a.Cg)([(0,d.kv)({default:null})],sP.prototype,"selectedOption",void 0),(0,a.Cg)([(0,d.kv)()],sP.prototype,"extractConfig",void 0),(0,a.Cg)([(0,d.kv)()],sP.prototype,"wrapConfig",void 0),(0,a.Cg)([(0,d.kv)({type:Boolean,required:!1,default:!1})],sP.prototype,"hasNotification",void 0);var sL=sP=(0,a.Cg)([(0,tg.My)(),(0,d.uA)({components:{CallToAction:c.A,MvForm:p.A}})],sP),sE=(0,S.A)(sL,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("MvForm",{staticClass:"ModemConfigSpcBase",attrs:{name:t.name}},[e("header",[e("h2",[t._v(t._s(t.title))]),e("button",{directives:[{name:"ripple-effect",rawName:"v-ripple-effect"}],staticClass:"cancel",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.dismiss()}}},[e("span",[t._v(t._s(t.$t("cancel")))])])]),t.config?e("div",{staticClass:"my-viking-sidePanel__main",class:{noPaddingTop:t.hasNotification}},[t._t("default",null,{config:t.config})],2):t._e(),e("footer",[e("CallToAction",{class:{save:t.isDirty,close:!t.isDirty},attrs:{once:t.submit,type:"submit"}},[t._v(" "+t._s(t.buttonText)+" ")])],1)])},[],!1,null,null,null).exports;class sO extends d.lD{get title(){switch(this.dhcpType){case"lan":return this.$t("modem_config.main_dhcp_pool");case"system":return this.$t("modem_config.system_dhcp_pool");default:return this.$t("modem_config.dhcp_title")}}extractDhcpConfig(t){return{...t.dhcp[this.dhcpType]}}wrapDhcpConfig(t){if(this.dhcpRangeValidationErrors.length)throw new r.Ay(r.O4.INVALID_VALUE);
47return{dhcp:{[this.dhcpType]:!1===t.enabled?{enabled:!1}:t}}}get dhcpRangeValidationErrors(){if(!this.base.config?.minAddress||!this.base.config.maxAddress)return[];if(t(this.base.config.minAddress)>t(this.base.config.maxAddress))return[this.$t("modem_config.error_dchp_range_min_must_be_before_max")];return[];function t(t){let e=t.split(".").map(t=>parseInt(t,10));return(e[0]?e[0]<<24:0)+(e[1]?e[1]<<16:0)+(e[2]?e[2]<<8:0)+e[3]}}async dismiss(){return this.base.dismiss()}get subnetViolationWarning(){let t=this.base.config;if(!t||!(0,sD.h)(t.minAddress)||!(0,sD.h)(t.maxAddress)||!(0,sD.h)(t.mask))return null;let e=this.base.completeConfig?.subnets?.primary;return e&&t&&e&&(0,sT.Jl)(t,e)?this.$t("modem_config.{subnet}_outside_of_dhcp_range_warning",{subnetType:"primary",subnet:(0,sT.$e)(e)}).toString():null}}(0,a.Cg)([(0,d.y_)()],sO.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],sO.prototype,"broadbandService",void 0),(0,a.Cg)([(0,d.y_)()],sO.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],sO.prototype,"uwa",void 0),(0,a.Cg)([(0,d.y_)()],sO.prototype,"domUtils",void 0),(0,a.Cg)([(0,d.kv)()],sO.prototype,"dhcpType",void 0),(0,a.Cg)([(0,d.kv)()],sO.prototype,"selectedOption",void 0),(0,a.Cg)([(0,d.oS)()],sO.prototype,"base",void 0);var sz=sO=(0,a.Cg)([(0,d.uA)({components:{ModemConfigSpcBase:sE,Checkbox:A.A,InlineNotification:T.A,Field:u.A}})],sO),sj=(0,S.A)(sz,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("ModemConfigSpcBase",{ref:"base",staticClass:"DhcpConfigSpc",attrs:{title:t.title,name:"modem-dhcp-config",extractConfig:t.extractDhcpConfig,wrapConfig:t.wrapDhcpConfig,selectedOption:t.selectedOption},on:{dismiss:function(e){return t.$emit("dismiss")}},scopedSlots:t._u([{key:"default",fn:function({config:i}){return[t.subnetViolationWarning?e("InlineNotification",{staticClass:"subnet-violation-warning",attrs:{notificationType:"warning",appearance:"inSidePanel"}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.subnetViolationWarning,expression:"subnetViolationWarning"}]})]):t._e(),e("div",{staticClass:"option-group"},[e("Checkbox",{attrs:{label:t.$t("modem_config.dhcp_enabled")},model:{value:i.enabled,callback:function(e){t.$set(i,"enabled",e)},expression:"config.enabled"}}),e("Field",{attrs:{hint:t.$t("modem_config.mask_hint"),label:t.$t("modem_config.mask")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:i.mask,expression:"config.mask"},{name:"validate",rawName:"v-validate",value:{netmask:!0,required:i.enabled},expression:"{ netmask: true, required: config.enabled }"}],attrs:{name:"mask",disabled:!i.enabled,type:"text"},domProps:{value:i.mask},on:{input:function(e){e.target.composing||t.$set(i,"mask",e.target.value)}}})]),e("Field",{attrs:{hint:t.$t("modem_config.dhcp_min_address_hint"),label:t.$t("modem_config.dhcp_min_address"),validationErrors:t.dhcpRangeValidationErrors}},[e("input",{directives:[{name:"model",rawName:"v-model",value:i.minAddress,expression:"config.minAddress"},{name:"validate",rawName:"v-validate",value:{ip:"private",required:i.enabled},expression:"{ ip: 'private', required: config.enabled }"}],attrs:{name:"ipRange",disabled:!i.enabled,type:"text"},domProps:{value:i.minAddress},on:{input:function(e){e.target.composing||t.$set(i,"minAddress",e.target.value)}}})]),e("Field",{attrs:{hint:t.$t("modem_config.dhcp_max_address_hint"),label:t.$t("modem_config.dhcp_max_address"),validationErrors:t.dhcpRangeValidationErrors}},[e("input",{directives:[{name:"model",rawName:"v-model",value:i.maxAddress,expression:"config.maxAddress"},{name:"validate",rawName:"v-validate",value:{ip:"private",required:i.enabled},expression:"{ ip: 'private', required: config.enabled }"}],attrs:{name:"ipRangeEnd",disabled:!i.enabled,type:"text"},domProps:{value:i.maxAddress},on:{input:function(e){e.target.composing||t.$set(i,"maxAddress",e.target.value)}}})]),e("Field",{attrs:{hint:t.$t("modem_config.dhcp_dns_server_hint"),label:t.$t("modem_config.dhcp_dns_server")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:i.dnsServer,expression:"config.dnsServer"},{name:"validate",rawName:"v-validate",value:{ip:"any",required:i.enabled},expression:"{ ip: 'any', required: config.enabled }"}],attrs:{name:"dnsServer",disabled:!i.enabled,type:"text"},domProps:{value:i.dnsServer},on:{input:function(e){e.target.composing||t.$set(i,"dnsServer",e.target.value)}}})]),e("Field",{attrs:{hint:t.$t("modem_config.lease_time_seconds_hint"),label:t.$t("modem_config.lease_time_seconds")}},[e("input",{directives:[{name:"model",rawName:"v-model.number",value:i.leaseTimeSecs,expression:"config.leaseTimeSecs",modifiers:{number:!0}},{name:"validate",rawName:"v-validate",value:{min_value:1800,max_value:31536e3,required:i.enabled},expression:"{ min_value: 1800, max_value: 365 * 24 * 3600, required: config.enabled }"}],staticClass:"hide-spinner",attrs:{type:"number",name:"leaseTimeSecs",disabled:!i.enabled},domProps:{value:i.leaseTimeSecs},on:{input:function(e){e.target.composing||t.$set(i,"leaseTimeSecs",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}}
47)])],1)]}}])})},[],!1,null,null,null).exports;class sB extends d.lD{extractConfig(t){return t.dmz}wrapConfig(t){let e={...t};return e.enabled||delete e.hostIpAddress,{dmz:e}}async dismiss(){return this.base.dismiss()}}(0,a.Cg)([(0,d.y_)()],sB.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],sB.prototype,"broadbandService",void 0),(0,a.Cg)([(0,d.y_)()],sB.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],sB.prototype,"uwa",void 0),(0,a.Cg)([(0,d.y_)()],sB.prototype,"domUtils",void 0),(0,a.Cg)([(0,d.kv)()],sB.prototype,"selectedOption",void 0),(0,a.Cg)([(0,d.oS)()],sB.prototype,"base",void 0);var sF=sB=(0,a.Cg)([(0,d.uA)({components:{ModemConfigSpcBase:sE,Checkbox:A.A,Field:u.A}})],sB),sq=(0,S.A)(sF,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("ModemConfigSpcBase",{ref:"base",staticClass:"DmzConfigSpc",attrs:{title:t.$t("modem_config.routing"),name:"modem-dmz-config",extractConfig:t.extractConfig,wrapConfig:t.wrapConfig,selectedOption:t.selectedOption},on:{dismiss:function(e){return t.$emit("dismiss")}},scopedSlots:t._u([{key:"default",fn:function({config:i}){return[e("div",{staticClass:"option-group"},[e("Checkbox",{staticClass:"dmz-toggle",attrs:{label:t.$t("modem_config.dmz_enabled")},model:{value:i.enabled,callback:function(e){t.$set(i,"enabled",e)},expression:"config.enabled"}}),e("Field",{attrs:{label:t.$t("modem_config.dmz_host_ip")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:i.hostIpAddress,expression:"config.hostIpAddress"},{name:"validate",rawName:"v-validate",value:{required:i.enabled,ip:"any"},expression:"{ required: config.enabled, ip: 'any' }"}],attrs:{type:"text",name:"hostIpAddress",disabled:!i.enabled},domProps:{value:i.hostIpAddress},on:{input:function(e){e.target.composing||t.$set(i,"hostIpAddress",e.target.value)}}})])],1)]}}])})},[],!1,null,null,null).exports;class sR extends d.lD{extractDynDnsConfig(t){return{...t.dynDns}}wrapDynDnsConfig(t){if(""===t.serviceProvider)return{dynDns:{enabled:!1}};let e={...t,enabled:!0};return"Custom"!==e.serviceProvider&&delete e.request,{dynDns:e}}dynDnsRequestValidationErrors(t){return t?this.requestUrlRegex.test(t)?[]:[`${this.$t("modem_config.error_dyndns_request_invalid")} ${this.$t("modem_config.dyndns_request_hint")}`]:[]}async dismiss(){return this.base.dismiss()}constructor(...t){super(...t),this.requestUrlRegex=/https?:\/\/.*\[IP\].*/,this.hostnameRegex=/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$/,this.providerOptions=sT.SA}}(0,a.Cg)([(0,d.y_)()],sR.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],sR.prototype,"broadbandService",void 0),(0,a.Cg)([(0,d.y_)()],sR.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],sR.prototype,"uwa",void 0),(0,a.Cg)([(0,d.y_)()],sR.prototype,"domUtils",void 0),(0,a.Cg)([(0,d.kv)()],sR.prototype,"selectedOption",void 0),(0,a.Cg)([(0,d.oS)()],sR.prototype,"base",void 0);var sU=sR=(0,a.Cg)([(0,d.uA)({components:{Password:h.A,ModemConfigSpcBase:sE,Field:u.A}})],sR),sV=(0,S.A)(sU,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("ModemConfigSpcBase",{ref:"base",staticClass:"DynDnsConfigSpc",attrs:{title:t.$t("modem_config.dyndns_title"),name:"modem-dyndns-config",extractConfig:t.extractDynDnsConfig,wrapConfig:t.wrapDynDnsConfig,selectedOption:t.selectedOption},on:{dismiss:function(e){return t.$emit("dismiss")}},scopedSlots:t._u([{key:"default",fn:function({config:i}){return[e("div",{staticClass:"option-group"},[e("Field",{attrs:{hint:t.$t("modem_config.dyndns_provider_hint"),label:t.$t("modem_config.dyndns_provider")}},[e("select",{directives:[{name:"model",rawName:"v-model",value:i.serviceProvider,expression:"config.serviceProvider"}],attrs:{name:"dynDnsProvider"},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(i,"serviceProvider",e.target.multiple?s:s[0])}}},[e("option",{domProps:{value:""}},[t._v(t._s(t.$t("modem_config.dyndns_disabled")))]),t._l(t.providerOptions,function(i){return e("option",{key:i,domProps:{value:i}},[t._v(" "+t._s(i)+" ")])})],2)]),""!==i.serviceProvider?[e("Field",{attrs:{hint:t.$t("modem_config.dyndns_hostname_hint"),label:t.$t("modem_config.dyndns_hostname")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:i.hostname,expression:"config.hostname"},{name:"validate",rawName:"v-validate",value:{required:!0,regex:t.hostnameRegex},expression:"{ required: true, regex: hostnameRegex }"}],attrs:{name:"hostname",type:"text"},domProps:{value:i.hostname},on:{input:function(e){e.target.composing||t.$set(i,"hostname",e.target.value)}}})]),e("Field",{attrs:{hint:"Duckdns"===i.serviceProvider?t.$t("modem_config.duckdns_account_hint"):t.$t("modem_config.dyndns_login_hint"),label:"Duckdns"===i.serviceProvider?t.$t("modem_config.duckdns_account"):t.$t("modem_config.dyndns_login")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:i.login,expression:"config.login"},{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],attrs:{name:"login",type:"text"},domProps:{value:i.login},on:{input:function(e){e.target.composing||t.$set(i,"login",e.target.value)}}})]),e("Field",{attrs:{hint:"Duckdns"===i.serviceProvider?t.$t("modem_config.duckdns_token_hint"):t.$t("modem_config.dyndns_password_hint"),label:"Duckdns"===i.serviceProvider?t.$t("modem_config.duckdns_token"):t.$t("modem_config.dyndns_password")}},[e("Password",{attrs:{required:!0,name:"password"},model:{value:i.password,callback:function(e){t.$set(i,"password",e)},expression:"config.password"}})],1),"Custom"===i.serviceProvider?e("Field",{attrs:{label:t.$t("modem_config.dyndns_request"),hint:t.$t("modem_config.dyndns_request_hint"),validationErrors:t.dynDnsRequestValidationErrors(i.request)}},[e("input",{directives:[{name:"model",rawName:"v-model",value:i.request,expression:"config.request"},{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],attrs:{name:"request",type:"text"},domProps:{value:i.request},on:{input:function(e){e.target.composing||t.$set(i,"request",e.target.value)}}})]):t._e()]:t._e()],2)]}}])})},[],!1,null,null,null).exports,sW=i(54285);class sQ extends d.lD{extractConfig(t){return t.gateway}wrapConfig(t){let e={...t};return"router"===e.mode&&delete e.macAddress,{gateway:e}}async dismiss(){return this.base.dismiss()}}(0,a.Cg)([(0,d.y_)()],sQ.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],sQ.prototype,"broadbandService",void 0),(0,a.Cg)([(0,d.y_)()],sQ.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],sQ.prototype,"uwa",void 0),(0,a.Cg)([(0,d.y_)()],sQ.prototype,"domUtils",void 0),(0,a.Cg)([(0,d.kv)()],sQ.prototype,"selectedOption",void 0),(0,a.Cg)([(0,d.oS)()],sQ.prototype,"base",void 0);var sY=sQ=(0,a.Cg)([(0,d.uA)({components:{MacInput:sW.A,RadioGroup:j.A,ModemConfigSpcBase:sE,Field:u.A}})],sQ),sG=(0,S.A)(sY,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("ModemConfigSpcBase",{ref:"base",staticClass:"GatwayConfigSpc",attrs:{title:t.$t("modem_config.routing"),name:"modem-wifi-config",extractConfig:t.extractConfig,wrapConfig:t.wrapConfig,selectedOption:t.selectedOption},on:{dismiss:function(e){return t.$emit("dismiss")}},scopedSlots:t._u([{key:"default",fn:function({config:i}){return[e("div",{staticClass:"option-group"},[e("RadioGroup",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0},expression:"{ required: true }"}],staticClass:"GatwayConfigSpc__modes select-gateway-mode",attrs:{options:["router","bridged"]},scopedSlots:t._u([{key:"default",fn:function({option:i}){return[e("span",[t._v(t._s(t.$t(`modem_config.gateway_mode__${i}`)))])]}},{key:"radioGroupDescription",fn:function({option:s}){return["bridged"===s?e("div",{staticClass:"GatwayConfigSpc__additionalConfig styleLevel2"},[e("div",[e("Field",{attrs:{label:t.$t("modem_config.gateway_mac_address"),hint:t.$t("modem_config.gateway_mac_address__hint")}},[e("MacInput",{directives:[{name:"validate",rawName:"v-validate",value:{required:"bridged"===i.mode},expression:"{ required: config.mode === 'bridged' }"}],attrs:{name:"bridgeGateway"},model:{value:i.macAddress,callback:function(e){t.$set(i,"macAddress",e)},expression:"config.macAddress"}})],1)],1)]):t._e()]}}],null,!0),model:{value:i.mode,callback:function(e){t.$set(i,"mode",e)},expression:"config.mode"}})],1)]}}])})},[],!1,null,null,null).exports,sH=i(76990);class sZ extends d.lD{get title(){return this.$t(`modem_config.${this.subnetType}_subnet_title`)??this.$t("modem_config.ip_title")}extractSubnetConfig(t){return t.subnets[this.subnetType]}wrapSubnetConfig(t){let e={subnets:{[this.subnetType]:t}};return this.removeInvalidDhcpReservations(e,t),e}removeInvalidDhcpReservations(t,e){let i=this.base.completeConfig?.dhcp.reservations;"primary"!==this.subnetType||!this.reservationsViolationWarning||i&&(t.dhcp={reservations:i.filter(t=>!(0,sT.Jl)(t.ipAddress,e))})}get dhcpRangeViolationWarning(){let t=this.base.config;if(!t||"primary"!==this.subnetType||!this.base.completeConfig?.dhcp||!(0,sD.h)(t.ipAddress)||!(0,sH.g)(t.mask))return null;for(let e of sT.rw){let i=this.base.completeConfig.dhcp[e];if((0,sT.Jl)(i,t))return this.$t("modem_config.{dhcpRange}_outside_of_subnet_warning",{dhcpType:e,dhcpRange:`${i.minAddress} - ${i.maxAddress}`}).toString()}return null}get reservationsViolationWarning(){if("primary"!==this.subnetType)return null;let t=this.base.config,e=this.base.completeConfig?.dhcp.reservations;if(!t||!e)return null;for(let i of e)if((0,sT.Jl)(i.ipAddress,t))return this.$t("modem_config.reservations_outside_of_subnet_will_be_removed").toString();return null}async dismiss(){return this.base.dismiss()}constructor(...t){super(...t),this.ipv6Regex=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/}}(0,a.Cg)([(0,d.y_)()],sZ.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],sZ.prototype,"broadbandService",void 0),(0,a.Cg)([(0,d.y_)()],sZ.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],sZ.prototype,"uwa",void 0),(0,a.Cg)([(0,d.y_)()],sZ.prototype,"domUtils",void 0),(0,a.Cg)([(0,d.kv)()],sZ.prototype,"subnetType",void 0),(0,a.Cg)([(0,d.kv)()],sZ.prototype,"selectedOption",void 0),(0,a.Cg)([(0,d.oS)()],sZ.prototype,"base",void 0);var sJ=sZ=(0,a.Cg)([(0,d.uA)({components:{ModemConfigSpcBase:sE,InlineNotification:T.A,Field:u.A}})],sZ),sK=(0,S.A)(sJ,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("ModemConfigSpcBase",{ref:"base",staticClass:"SubnetConfigSpc",attrs:{title:t.title,name:"modem-subnet-config",extractConfig:t.extractSubnetConfig,wrapConfig:t.wrapSubnetConfig,selectedOption:t.selectedOption},on:{dismiss:function(e){return t.$emit("dismiss")}},scopedSlots:t._u([{key:"default",fn:function({config:i}){return[t.dhcpRangeViolationWarning?e("InlineNotification",{staticClass:"subnet-violation-warning",attrs:{notificationType:"warning",appearance:"inSidePanel"}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.dhcpRangeViolationWarning,expression:"dhcpRangeViolationWarning"}]})]):t._e(),t.reservationsViolationWarning?e("InlineNotification",{staticClass:"reservation-violation-warning",attrs:{notificationType:"warning",appearance:"inSidePanel"}},[e("span",{directives:[{name:"html-safe",rawName:"v-html-safe",value:t.reservationsViolationWarning,expression:"reservationsViolationWarning"}]})]):t._e(),e("div",{staticClass:"option-group"},[e("Field",{attrs:{hint:t.$t("modem_config.ip_address_hint"),label:t.$t("modem_config.ip_address")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:i.ipAddress,expression:"config.ipAddress"},{name:"validate",rawName:"v-validate",value:{ip:"private",required:!0},expression:"{ ip: 'private', required: true }"}],attrs:{type:"text",name:"ipAddress"},domProps:{value:i.ipAddress},on:{input:function(e){e.target.composing||t.$set(i,"ipAddress",e.target.value)}}})]),e("Field",{attrs:{hint:t.$t("modem_config.mask_hint"),label:t.$t("modem_config.mask")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:i.mask,expression:"config.mask"},{name:"validate",rawName:"v-validate",value:{netmask:!0,required:!0},expression:"{ netmask: true, required: true }"}],attrs:{type:"text",name:"mask"},domProps:{value:i.mask},on:{input:function(e){e.target.composing||t.$set(i,"mask",e.target.value)}}}
47)])],1)]}}])})},[],!1,null,null,null).exports;class sX extends d.lD{extractWifiConfig(t){let e=t[this.wifiType].find(t=>t.name===this.wifiName);if(!e)throw new V.p("No config found for current subscription");return e}get securityOptions(){return[...this.base?.config?.supported_encryption_types??[]].sort()}wrapWifiConfig(t){let e={...t};return"None"===e.security&&delete e.password,!1===e.enabled&&(e={enabled:!1}),{[this.wifiType]:[{...e,name:this.wifiName}]}}async dismiss(){return this.base.dismiss()}constructor(...t){super(...t),this.wpaPasswordRegex=/^[0-9a-zA-Z !%',-.:@\\^_{}]+$/,this.ssidRegex=/^[0-9a-zA-Z !%',-.:@\\^_{}]+$/}}(0,a.Cg)([(0,d.y_)()],sX.prototype,"session",void 0),(0,a.Cg)([(0,d.y_)()],sX.prototype,"confirm",void 0),(0,a.Cg)([(0,d.y_)()],sX.prototype,"uwa",void 0),(0,a.Cg)([(0,d.y_)()],sX.prototype,"domUtils",void 0),(0,a.Cg)([(0,d.y_)({from:"config"})],sX.prototype,"appConfig",void 0),(0,a.Cg)([(0,d.kv)()],sX.prototype,"wifiType",void 0),(0,a.Cg)([(0,d.kv)()],sX.prototype,"wifiName",void 0),(0,a.Cg)([(0,d.kv)()],sX.prototype,"selectedOption",void 0),(0,a.Cg)([(0,d.kv)({default:"basic"})],sX.prototype,"mode",void 0),(0,a.Cg)([(0,d.kv)()],sX.prototype,"title",void 0),(0,a.Cg)([(0,d.oS)()],sX.prototype,"base",void 0);var s0=sX=(0,a.Cg)([(0,d.uA)({components:{ModemConfigSpcBase:sE,Checkbox:A.A,InlineNotification:T.A,Field:u.A,Password:h.A}})],sX),s1=(0,S.A)(s0,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("ModemConfigSpcBase",{ref:"base",staticClass:"WifiConfigSpc",attrs:{title:t.title?t.title:t.$t("modem_config.wifi_title"),name:"modem-wifi-config",extractConfig:t.extractWifiConfig,wrapConfig:t.wrapWifiConfig,selectedOption:t.selectedOption,hasNotification:!0},on:{dismiss:function(e){return t.$emit("dismiss")}},scopedSlots:t._u([{key:"default",fn:function({config:i}){return[e("InlineNotification",{attrs:{appearance:"inSidePanel",notificationType:"warning"}},[t._v(" "+t._s(t.$t("modem_config.updating_this_might_cause_you_to_lose_connection"))+" ")]),e("div",{staticClass:"option-group"},[e("Checkbox",{staticClass:"wifi-spc-toggle",attrs:{tip:t.$t("modem_config.this_wifi_enabled_hint"),label:t.$t("modem_config.this_wifi_enabled")},model:{value:i.enabled,callback:function(e){t.$set(i,"enabled",e)},expression:"config.enabled"}}),e("Field",{attrs:{label:t.$t("modem_config.wifi_ssid")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:i.ssid,expression:"config.ssid"},{name:"validate",rawName:"v-validate",value:{min:2,max:31,required:i.enabled,regex:t.ssidRegex},expression:"{ min: 2, max: 31, required: config.enabled, regex: ssidRegex }"}],attrs:{type:"text",name:"wifiSsid",disabled:!i.enabled},domProps:{value:i.ssid},on:{input:function(e){e.target.composing||t.$set(i,"ssid",e.target.value)}}})]),"advanced"===t.mode?e("Field",{attrs:{label:t.$t("modem_config.wifi_security"),hint:t.$t("modem_config.wifi_security_hint")}},[e("select",{directives:[{name:"model",rawName:"v-model",value:i.security,expression:"config.security"}],attrs:{disabled:!i.enabled,name:"wifiSecurity"},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(i,"security",e.target.multiple?s:s[0])}}},t._l(t.securityOptions,function(i){return e("option",{key:i,domProps:{value:i}},[t._v(" "+t._s(i)+" ")])}),0)]):t._e(),"None"!==i.security?e("Field",{attrs:{hint:t.$t("modem_config.wifi_password_hint"),label:t.$t("modem_config.wifi_password")}},[e("Password",{directives:[{name:"validate",rawName:"v-validate",value:{min:8,max:63,regex:t.wpaPasswordRegex,required:i.enabled&&"None"!==i.security},expression:"{\n min: 8,\n max: 63,\n regex: wpaPasswordRegex,\n required: config.enabled && config.security !== 'None',\n }"}],attrs:{required:"",name:"wifiPassword",disabled:!i.enabled,"data-vv-as":t.$t("modem_config.field_password")},model:{value:i.password,callback:function(e){t.$set(i,"password",e)},expression:"config.password"}})],1):t._e(),"advanced"===t.mode&&t.appConfig.featureFlags.modemConfigWifiBroadcast?e("Checkbox",{attrs:{label:t.$t("modem_config.wifi_broadcast"),tip:t.$t("modem_config.wifi_broadcast_tip"),disabled:!i.enabled},model:{value:i.broadcast,callback:function(e){t.$set(i,"broadcast",e)},expression:"config.broadcast"}}):t._e()],1)]}}])})},[],!1,null,null,null).exports;let s4={voicemail:sN,"auto-topup":U,"sim-alias":i1,services:iz,fullname:tH,email:tS,"phone-number":iD,language:eD,"sim-selector":i3,"fixed-line-selector":to,topup:so,password:im,"billing-address":t9,"auto-payment":O,"out-of-bundle":iu,"usage-details":sy,authorizations:M,"add-payment-method":iM,"grouped-invoicing":t0,"share-viking-points":iJ,"invoice-details":eI,"payment-invitation-detail
47s":eI,"credit-note-details":eI,clan:sb.A,"faq-item":tV.default,"faq-items":tW.A,employee:tU,"b2b-company-details":ez,"b2b-mnp":eJ,"b2b-contact-tel":eY,"b2b-contact-email":eq,"b2b-payment-method":e2,"b2b-employer-link":io,"b2b-employee-filter":tE,"b2b-unlink-employer":ie,"b2b-po-number":e8,"add-sim-card":s.A,"bb-installation-address":ti,"bb-combination-benefit":G,"bb-easy-switch-out":K,"bb-line-speed":e$.A,"modem-cfg-wifi":s1,"modem-cfg-dhcp":sj,"modem-cfg-subnet":sK,"modem-cfg-dyndns":sV,"modem-cfg-gateway":sG,"modem-cfg-dmz":sq,"wifi-booster":t_,"hardware-return":tu,"roaming-country-list":i$.A,"share-viking-points-settings":sA,"third-party-shared-subscription-id":st,"third-party-payment-settings":i8}},28673:function(t,e,i){"use strict";let s=(0,i(58294).tZ)("ListSorting");class a{constructor(t,e=[]){this._order=[],this.columns=t,this._order=e}static empty(){return new a([])}get order(){return this._order}isSortable(t){return this.columns.includes(t)}toggleSort(t){if(!this.columns.includes(t))return void s.error(`Attempt to sort by unknown column ${t}`);let e=this.getColumnOrder(t),i="ascending"===e?"descending":"descending"===e?null:"ascending",a=this.order.filter(e=>e.column!==t);i&&a.unshift({column:t,direction:i}),this._order=a}getColumnOrder(t,e){if(!this.columns.includes(t))return s.error(`Attempt to get unknown column ${t}`),null;if(void 0!==e){let i=this._order[e];return i&&i.column===t&&i.direction||null}let i=this._order.find(e=>e.column===t);return i?.direction||null}}i.d(e,{A:function(){return a}})},81033:function(t,e,i){"use strict";function s(t,e){return"prepaid"===t&&"data-only"===e||"data-only"===t&&"prepaid"===e?["now"]:"postpaid"===t?["now","bundle_expired"]:"prepaid"===t?["now","credit_low"]:["now"]}function a(t){return t.isDataOnly?"data-only":t.type}i.d(e,{Sc:function(){return a},__:function(){return s}},{_n:["postpaid","prepaid","data-only"],nv:["review_needed","cancelled","failed","unknown"]})},2487:function(t,e,i){"use strict";var s=i(8241),a=i.n(s),n=i(97587);function o(t,e){let i=r(e);return"string"==typeof t?!a()(t,i):!a()(t.minAddress,i)||!a()(t.maxAddress,i)}function r({ipAddress:t,mask:e}){let i=e.split(".").reduce((t,e)=>t-Math.log2(256-e),32);return`${t}/${i}`}[...(i.n(n))()(1,13).map(t=>`${t}`)],i.d(e,{$e:function(){return r},Jl:function(){return o}},{JZ:["tcp","udp","any"],SA:["DynDNS","No-IP","Duckdns","Custom"],rw:["lan","system"]})},42291:function(t,e,i){"use strict";let s=["wait_for_package_shipment","wait_for_package_delivery","wait_for_activation_request","activating"];function a(t){return!!t&&s.includes(t)}i.d(e,{L:function(){return a}})},47211:function(t,e,i){"use strict";function s(t){return["waiting_for_payment","waiting_for_payment_confirmation"].includes(t)}function a(t){return["enabled","processing","processing__payment_ok","waiting_for_payment_confirmation"].includes(t)}i.d(e,{Q:function(){return s},y:function(){return a}})},28483:function(t,e,i){"use strict";class s{constructor(t,e,i){this.name=t,this.from=e,this.to=i}matches(t,e){return this.from.equals(t)&&this.to.equals(e)}}function a(t,{lastTopupDate:e,lastBundleRenewalDate:i}){let n=[];return n.push(new s("today",t,t)),n.push(new s("yesterday",t.minusDays(1),t.minusDays(1))),n.push(new s("last_seven_days",t.minusDays(6),t)),e&&n.push(new s("since_last_topup",e,t)),i&&n.push(new s("since_last_bundle_renewal",i,t)),n}function n(t,e,i,{lastTopupDate:s,lastBundleRenewalDate:o}){for(let n of a(i,{lastTopupDate:s,lastBundleRenewalDate:o}))if(n.matches(t,e))return n.name;return null}i.d(e,{SP:function(){return a},h6:function(){return n}})},50103:function(t,e,i){"use strict";function s(t){return"third_party_fee_reduction"===t.type&&"monthly"===t.recurrence}function a(t){return t.filter(s)}function n(t,e){return e?t.find(t=>s(t)&&t.eligibleProductIds.some(t=>e.startsWith(t)))??null:null}i.d(e,{l5:function(){return a},rG:function(){return n}})},50034:function(t,e,i){"use strict";let s=Symbol.for("@ts-pattern/matcher"),a=Symbol.for("@ts-pattern/isVariadic"),n="@ts-pattern/anonymous-select-key",o=t=>!!(t&&"object"==typeof t),r=t=>t&&!!t[s],l=(t,e,i)=>{if(r(t)){let{matched:a,selections:n}=t[s]().match(e);
47return a&&n&&Object.keys(n).forEach(t=>i(t,n[t])),a}if(o(t)){if(!o(e))return!1;if(Array.isArray(t)){if(!Array.isArray(e))return!1;let s=[],n=[],o=[];for(let e of t.keys()){let i=t[e];r(i)&&i[a]?o.push(i):o.length?n.push(i):s.push(i)}if(o.length){if(o.length>1)throw Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(e.length<s.length+n.length)return!1;let t=e.slice(0,s.length),a=0===n.length?[]:e.slice(-n.length),r=e.slice(s.length,0===n.length?1/0:-n.length);return s.every((e,s)=>l(e,t[s],i))&&n.every((t,e)=>l(t,a[e],i))&&(0===o.length||l(o[0],r,i))}return t.length===e.length&&t.every((t,s)=>l(t,e[s],i))}return Reflect.ownKeys(t).every(a=>{let n=t[a];return(a in e||r(n)&&"optional"===n[s]().matcherType)&&l(n,e[a],i)})}return Object.is(e,t)},d=t=>{var e,i,a;return o(t)?r(t)?null!=(e=null==(i=(a=t[s]()).getSelectionKeys)?void 0:i.call(a))?e:[]:Array.isArray(t)?c(t,d):c(Object.values(t),d):[]},c=(t,e)=>t.reduce((t,i)=>t.concat(e(i)),[]);function u(t){return Object.assign(t,{optional:()=>{var e;return e=t,u({[s]:()=>({match:t=>{let i={},s=(t,e)=>{i[t]=e};return void 0===t?(d(e).forEach(t=>s(t,void 0)),{matched:!0,selections:i}):{matched:l(e,t,s),selections:i}},getSelectionKeys:()=>d(e),matcherType:"optional"})})},and:e=>p(t,e),or:e=>(function(...t){return u({[s]:()=>({match:e=>{let i={},s=(t,e)=>{i[t]=e};return c(t,d).forEach(t=>s(t,void 0)),{matched:t.some(t=>l(t,e,s)),selections:i}},getSelectionKeys:()=>c(t,d),matcherType:"or"})})})(t,e),select:e=>void 0===e?_(t):_(e,t)})}function p(...t){return u({[s]:()=>({match:e=>{let i={},s=(t,e)=>{i[t]=e};return{matched:t.every(t=>l(t,e,s)),selections:i}},getSelectionKeys:()=>c(t,d),matcherType:"and"})})}function h(t){return{[s]:()=>({match:e=>({matched:!!t(e)})})}}function _(...t){let e="string"==typeof t[0]?t[0]:void 0,i=2===t.length?t[1]:"string"==typeof t[0]?void 0:t[0];return u({[s]:()=>({match:t=>{let s={[null!=e?e:n]:t};return{matched:void 0===i||l(i,t,(t,e)=>{s[t]=e}),selections:s}},getSelectionKeys:()=>[null!=e?e:n].concat(void 0===i?[]:d(i))})})}function m(t){return"number"==typeof t}function g(t){return"string"==typeof t}function v(t){return"bigint"==typeof t}u(h(function(t){return!0}));let f=t=>Object.assign(u(t),{startsWith:e=>f(p(t,h(t=>g(t)&&t.startsWith(e)))),endsWith:e=>f(p(t,h(t=>g(t)&&t.endsWith(e)))),minLength:e=>f(p(t,h(t=>g(t)&&t.length>=e))),length:e=>f(p(t,h(t=>g(t)&&t.length===e))),maxLength:e=>f(p(t,h(t=>g(t)&&t.length<=e))),includes:e=>f(p(t,h(t=>g(t)&&t.includes(e)))),regex:e=>f(p(t,h(t=>g(t)&&!!t.match(e))))}),y=(f(h(g)),t=>Object.assign(u(t),{between:(e,i)=>y(p(t,h(t=>m(t)&&e<=t&&i>=t))),lt:e=>y(p(t,h(t=>m(t)&&t<e))),gt:e=>y(p(t,h(t=>m(t)&&t>e))),lte:e=>y(p(t,h(t=>m(t)&&t<=e))),gte:e=>y(p(t,h(t=>m(t)&&t>=e))),int:()=>y(p(t,h(t=>m(t)&&Number.isInteger(t)))),finite:()=>y(p(t,h(t=>m(t)&&Number.isFinite(t)))),positive:()=>y(p(t,h(t=>m(t)&&t>0))),negative:()=>y(p(t,h(t=>m(t)&&t<0)))})),b=(y(h(m)),t=>Object.assign(u(t),{between:(e,i)=>b(p(t,h(t=>v(t)&&e<=t&&i>=t))),lt:e=>b(p(t,h(t=>v(t)&&t<e))),gt:e=>b(p(t,h(t=>v(t)&&t>e))),lte:e=>b(p(t,h(t=>v(t)&&t<=e))),gte:e=>b(p(t,h(t=>v(t)&&t>=e))),positive:()=>b(p(t,h(t=>v(t)&&t>0))),negative:()=>b(p(t,h(t=>v(t)&&t<0)))}));b(h(v)),u(h(function(t){return"boolean"==typeof t})),u(h(function(t){return"symbol"==typeof t})),u(h(function(t){return null==t})),u(h(function(t){return null!=t}));class C extends Error{constructor(t){let e;try{e=JSON.stringify(t)}catch(i){e=t}super(`Pattern matching error: no pattern matches value ${e}`),this.input=void 0,this.input=t}}let w={matched:!1,value:void 0};function S(t){return new M(t,w)}class M{constructor(t,e){this.input=void 0,this.state=void 0,this.input=t,this.state=e}with(...t){let e;if(this.state.matched)return this;let i=t[t.length-1],s=[t[0]];3===t.length&&"function"==typeof t[1]?e=t[1]:t.length>2&&s.push(...t.slice(1,t.length-1));let a=!1,o={},r=(t,e)=>{a=!0,o[t]=e},d=s.some(t=>l(t,this.input,r))&&(!e||e(this.input))?{matched:!0,value:i(a?n in o?o[n]:o:this.input,this.input)}:w;return new M(this.input,d)}when(t,e){if(this.state.matched)return this;let i=!!t(this.input);return new M(this.input,i?{matched:!0,value:e(this.input,this.input)}:w)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(t=A){return this.state.matched?this.state.value:t(this.input)}
47run(){return this.exhaustive()}returnType(){return this}}function A(t){throw new C(t)}i.d(e,{YW:function(){return S}})}}]); 48//# sourceMappingURL=myViking.f2b739a7.js.map 49//# debugId=f36351aa-5727-578a-a1f0-093d48364cae
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.