1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90636],{92:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(48673)}])},1643:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,i=function(e,t){for(var r=[],i=0;i<e.length;i+=1)r[i]=e[i];for(var n=0;n<t.length;n+=1)r[n+e.length]=t[n];return r},n=function(e,t){for(var r=[],i=t||0,n=0;i<e.length;i+=1,n+=1)r[n]=e[i];return r},a=function(e,t){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=t);return r};e.exports=function(e){var o,s=this;if("function"!=typeof s||"[object Function]"!==t.apply(s))throw TypeError("Function.prototype.bind called on incompatible "+s);for(var l=n(arguments,1),c=r(0,s.length-l.length),u=[],d=0;d<c;d++)u[d]="$"+d;if(o=Function("binder","return function ("+a(u,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var t=s.apply(this,i(l,arguments));return Object(t)===t?t:this}return s.apply(e,i(l,arguments))}),s.prototype){var p=function(){};p.prototype=s.prototype,o.prototype=new p,p.prototype=null}return o}},1906:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var i=r(71698),n=r(48501),a=r(81237),o=r(30915),s=r.n(o),l=r(8145),c=r.n(l),u=r(36756),d=r(30683),p=r(39151),h=r(39139),m=r(78730),f=r(89665),g=r(81872),y=r(38789),v=r(77626);class _{constructor(){this.getCartSessionKey=()=>_.cartSessionKey,this.getBasketSessionKey=()=>_.basketSessionKey,this.createCart=(e,t,r,n)=>{let a={items:[]};if(a.items.push(e),r&&(a.selectedAddons=r),"tvpublic"==n){let e=p.A.getSessionStorageItem("publicTv");a.tvPublic=e&&JSON.parse(e)}i.A.dispatch({type:"cart/add",payload:a}),p.A.setSessionStorageItem(_.cartSessionKey,JSON.stringify(a)),window.location.href=t},this.getMultiCart=()=>{if(!h.i.getState().basketReducer.isDeviceSummaryFlow&&h.i.getState().basketReducer.basketProducts.length>0||h.i.getState().basketReducer.isDeviceSummaryFlow&&h.i.getState().basketReducer.deviceBasket.length>0)return h.i.getState().basketReducer;let e=p.A.getSessionStorageItem(_.basketSessionKey);if(e){let t=JSON.parse(e).basketReducer;return t&&(!t.isDeviceSummaryFlow&&t.basketProducts&&t.basketProducts.length>0||t.isDeviceSummaryFlow&&t.deviceBasket&&t.deviceBasket.length>0)?t:null}return null},this.getManualCheckoutCart=()=>{if(h.i.getState().manualCheckoutReducer.manualCheckoutCartDetails&&Object.keys(h.i.getState().manualCheckoutReducer.manualCheckoutCartDetails).length>0)return h.i.getState().manualCheckoutReducer;let e=p.A.getSessionStorageItem(_.basketSessionKey);if(e){let t=JSON.parse(e).manualCheckoutReducer;return t&&t.manualCheckoutCartDetails?t:null}return null},this.cleanAddon=e=>({...e,addOnDetails:[]}),this.cleanAddons=e=>(null==e?void 0:e.length)?e.map(this.cleanAddon):e,this.cleanProduct=e=>{var t;return{...e,addonsItems:this.cleanAddons(e.addonsItems),addOns:[],multiAddonItems:this.cleanAddons(e.multiAddonItems),bundleItems:null==e||null==(t=e.bundleItems)?void 0:t.map(e=>{let t={...e};return delete t._editable,t})}},this.cleanSelectedAddons=e=>(null==e?void 0:e.length)?e.map(e=>e?{...e,addOnDetails:[]}:e):e,this.getCart=()=>{if(i.A.getState().cart)return i.A.getState().cart;let e=p.A.getSessionStorageItem(_.cartSessionKey);return e?(i.A.dispatch({type:"cart/add",payload:JSON.parse(e)}),i.A.getState().cart):null},this.addOrRemoveProductItem=(e,t,r,n,a)=>{let o=i.A.getState().cart;if(o){var s,l;o.items.forEach(i=>{var s;i.id===e&&(i.quantity=t,g.A.trackRemoveOrAddToCartEvent(r,"shoppingCart",n||"",a||"",i,!0,void 0)),null==(s=i.deviceItem)||s.forEach(i=>{i.sapId===e&&(i.quantity=t,g.A.trackRemoveOrAddToCartEvent(r,"shoppingCart",n||"",a||"",o.items[0],!1,void 0,i))})}),null==(s=o.selectedAddons)||s.forEach(i=>{(null==i?void 0:i.id)===e&&(i.quantity=t,g.A.trackRemoveOrAddToCartEvent(r,"shoppingCart",n||"",a||"",o.items[0],!1,i))}),o.tvPublic&&(null==(l=o.tvPublic.addonsItems)||l.forEach(i=>{(null==i?void 0:i.id)===e&&(i.quantity=t,g.A.trackRemoveOrAddToCartEvent(r,"shoppingCart",n||"",a||"",o.items[0],!1,i))}))}return i.A.dispatch({type:"cart/add",payload:o}),o},this.addActivationFees=e=>{let t=i.A.getState().cart;return t&&(t.activationFee=e),i.A.dispatch({type:"cart/update",payload:t}),t},this.addDynamicItems=e=>{let t=i.A.getState().cart,r=[],n=[];
1return e.forEach(e=>{(null==e?void 0:e.itemType)==="oneTime"?(null==e?void 0:e.item)&&r.push(e.item):(null==e?void 0:e.item)&&n.push(e.item)}),t&&(t.oneTimeCostItems=r,t.monthlyCostItems=n),i.A.dispatch({type:"cart/update",payload:t}),t},this.addCheckBoxItems=e=>{let t=i.A.getState().cart;return t&&(t.checkboxItems=e),i.A.dispatch({type:"cart/update",payload:t}),t},this.addInternetActivationDate=e=>{let t=i.A.getState().cart;return t&&t.items&&t.items.length>0&&(t.items[0].internetActivationDate=e),i.A.dispatch({type:"cart/update",payload:t}),t},this.addTvAppLoginNumber=e=>{let t=i.A.getState().cart;return t&&t.items&&t.items.length>0&&(t.items[0].tvAppLoginNumber=e),i.A.dispatch({type:"cart/update",payload:t}),t},this.addAddonItems=e=>{let t=i.A.getState().cart;return t&&(t.selectedAddons=e),i.A.dispatch({type:"cart/update",payload:t}),t},this.addOrRemoveTvPublicAddon=e=>{let t=i.A.getState().cart;return t&&t.tvPublic&&(e?t.tvPublic.addonsItems=[e]:t.tvPublic.addonsItems=[]),i.A.dispatch({type:"cart/update",payload:t}),t},this.addOrRemoveInternetAddon=e=>{let t=i.A.getState().cart;return t&&(e?t.selectedAddons=[e]:t.selectedAddons=[]),i.A.dispatch({type:"cart/update",payload:t}),t},this.calculateProductCost=e=>{let t=e.price;return void 0!==e.discountedPrice&&(t=e.discountedPrice),(e.additionalDiscountPrice||0===e.additionalDiscountPrice)&&e.quantity>1?t+=e.additionalDiscountPrice*(e.quantity-1):t*=e.quantity,t},this.calculateDeviceCost=e=>{let t=e.monthlyCost;return t*e.quantity},this.calculateAddonCost=e=>{e.price;let t=e.quantity||1;return e.promoPrice||0===e.promoPrice?e.promoPrice*t:e.price*t},this.getCartValue=()=>{let e=i.A.getState().cart;return e&&this.getCartPriceBreakdown(e,"0").totalCost||0},this.getCartPriceBreakdown=(e,t)=>{var r,i,n,a,o;let s={activationCost:parseFloat(t),totalCost:0,promotionalSavingsCost:0,totalOnetimeCost:0};if(e.items.forEach(e=>{var t;let r=this.calculateProductCost(e);s.totalCost+=r+s.activationCost,s.promotionalSavingsCost+=e.price*e.quantity-r,null==(t=e.deviceItem)||t.forEach(e=>{e.isDiscountIncluded&&(s.promotionalSavingsCost+=e.promoPrice*e.quantity),s.totalCost+=e.monthlyCost*e.quantity,s.totalOnetimeCost+=e.upfrontPrice*e.quantity})}),null==(r=e.oneTimeCostItems)||r.forEach(e=>{void 0!==s.totalOnetimeCost&&(s.totalOnetimeCost+=parseFloat((null==e?void 0:e.price)||"0"))}),null==(i=e.checkboxItems)||i.forEach(e=>{s.totalOnetimeCost+=parseFloat((null==e?void 0:e.price)||"0")}),null==(n=e.monthlyCostItems)||n.forEach(e=>{s.totalCost+=parseFloat((null==e?void 0:e.price)||"0")}),null==(a=e.selectedAddons)||a.forEach(e=>{let t=(null==e?void 0:e.quantity)||1;e&&((e.promoPrice||0===e.promoPrice)&&(s.promotionalSavingsCost+=e.price*t-e.promoPrice*t),s.totalCost+=e.promoPrice||0===e.promoPrice?e.promoPrice*t:e.price*t)}),e.tvPublic){let t=this.calculateProductCost(e.tvPublic);s.totalCost+=t+s.activationCost,s.promotionalSavingsCost+=e.tvPublic.price*e.tvPublic.quantity-t,null==(o=e.tvPublic.addonsItems)||o.map(e=>{let t=(null==e?void 0:e.quantity)||1;e&&((e.promoPrice||0===e.promoPrice)&&(s.promotionalSavingsCost+=e.price*t-e.promoPrice*t),s.totalCost+=e.promoPrice||0===e.promoPrice?e.promoPrice*t:e.price*t)})}return s},this.getFormattedProductCost=e=>(0,a.S3)(this.calculateProductCost(e).toString()),this.getFormattedDeviceCost=e=>(0,a.S3)(this.calculateDeviceCost(e).toString()),this.getFormattedAddonCost=e=>(0,a.S3)(this.calculateAddonCost(e).toString()),this.clearCart=()=>{p.A.removeSessionStorageItem(_.cartSessionKey)},this.trackCartPurchaseAsync=(e,t,r)=>{(0,a.g2)(r,"internetCheckout").then(r=>{m.A.trackCartPurchaseEvent(e,t,r)}).catch(e=>console.warn("Tracking failed, but order completed successfully:",e))},this.getRequestOptions=(e,t,r,i)=>{var n,a;let o={salutation:d.A.getDataAttribute(t,"salutation","value"),firstName:d.A.getValue(t,"firstName"),lastName:d.A.getValue(t,"lastName"),email:d.A.getValue(t,"email"),phone:d.A.getValue(t,"phone"),nationality:d.A.getDataAttribute(t,"nationality","value"),birthDate:d.A.getValue(t,"birthDate"),idType:d.A.getDataAttribute(t,"idType","value"),idNumber:d.A.getValue(t,"idNumber"),idExpirationDate:d.A.getValue(t,"idExpirationDate")},s={name:d.A.getValue(t,"companyName"),uid:d.A.getValue(t,"companyNumber"),numberOfEmployees:d.A.getValue(t,"numberOfEmp"),address:{street:d.A.getValue(t,"street"),number:d.A.getValue(t,"buildingNumber"),zip:d.A.getValue(t,"zipCode"),city:d.A.getValue(t,"city")}},l=i?{street:d.A.getValue(t,"street",".deliveryAddress"),number:d.A.getValue(t,"buildingNumber",".deliveryAddress"),zip:d.A.getValue(t,"zipCode",".deliveryAddress"),city:d.A.getValue(t,"city",".deliveryAddress"),activationAddress:d.A.getValue(t,"activationAddress",".deliveryAddress")}:s.address;return{cart:{company:s,customer:o,items:null!=(a=null==(n=r.items)?void 0:n.map(e=>this.cleanProduct(e)))?a:[],oneTimeCostItems:r.oneTimeCostItems,monthlyCostItems:r.monthlyCostItems,checkboxItems:r.checkboxItems,selectedAddons:this.cleanSelectedAddons(null==r?void 0:r.selectedAddons),deliveryAddress:i?l:void 0,tvPublic:r.tvPublic?this.cleanProduct(null==r?void 0:r.tvPublic):void 0},emailId:e}},this.getInternetCheckoutRequestOptions=(e,t,r,i)=>{let n=h.i.getState().internetCheckoutReducer,a=t.items.map(e=>{let t={...e,mobileNumberPorting:[n.landlineNumber],internetActivationDate:n.internetActivationDate};return this.cleanProduct(t)});return{cart:{company:n.company,customer:n.customer,items:a,selectedAddons:this.cleanSelectedAddons(null==t?void 0:t.selectedAddons),deliveryAddress:n.deliveryAddress,tvPublic:t.tvPublic?this.cleanProduct(null==t?void 0:t.tvPublic):void 0,shouldHideCompanyInformation:r,shouldRenderComponent:i,eligibilityStatus:n.eligibilityStatus},emailId:e}},this.submitOrder=(e,t,r,o,s,l,c,p,h,m,f,g,y,b,S,w,C)=>{let E=i.A.getState().cart;if(E&&null!=E){let i=f?this.getInternetCheckoutRequestOptions(e,E,w,C):this.getRequestOptions(e,t,E,m),k=(0,a.Me)(_.submitOrderService,!0);u.A.request(k,n.dF.POST,i,r).then(e=>{if(e.data.errorCode===n.O4.SUCCESS){var t,u,m,f,_,w;
1if(b){let e={[g||"email"]:null==(f=i.cart)||null==(m=f.customer)?void 0:m.email,[y||"mobile-phone"]:null==(w=i.cart)||null==(_=w.customer)?void 0:_.phone,language:(0,a.Z0)(r),"referring-url":S,comments:"purchase=true"};d.A.submitToPardot(b,e)}v.kN.isTestData(i.cart.company.name,i.cart.customer.email)||this.trackCartPurchaseAsync(E,{orderId:null==(t=e.data.data)?void 0:t.orderId,item_list_id:l,component:c,item_list_name:p,beginCheckOutTime:h},null==i?void 0:i.cart),this.clearCart(),window.location.href=o+"?txnId="+(null==(u=e.data.data)?void 0:u.orderId)}else this.clearCart(),window.location.href=s}).catch(()=>{this.clearCart(),window.location.href=s});return}window.location.href=s},this.submitMsProductCartOrder=(e,t,r,i,o)=>{if(r&&r.personalDetails){let s=(0,a.Me)(_.submitMsCartOrderService,!0);u.A.request(s,n.dF.POST,{emailId:e,msCartData:r},t).then(e=>{if(e.data.errorCode===n.O4.SUCCESS){var t;let r=null==(t=e.data.data)?void 0:t.orderId;h.i.dispatch((0,y.Hy)(void 0)),i(r)}else o()}).catch(()=>{o()});return}o()},this.getCompanySuggestions=(e,t,r)=>{let i=s().stringify(t),o=(0,a.Me)(_.searchCompanyService+e+"?".concat(i),!0);this.cancelTokenSource&&this.cancelTokenSource.cancel(_.RequestCancelStatus),this.cancelTokenSource=c().CancelToken.source(),u.A.request(o,n.dF.GET,null,void 0,this.cancelTokenSource.token).then(e=>{e.data.errorCode===n.O4.SUCCESS?r(e.data.data):r()}).catch(e=>{e.message===_.RequestCancelStatus?r(void 0,!0):r()})},this.editMobilePortingRecord=(e,t)=>{let r=i.A.getState().cart;null!=r&&r.items.forEach(n=>{if(n.id==e.productId&&n.mobileNumberPorting){let a=n.mobileNumberPorting;a.splice(t,1,e),n.mobileNumberPorting=a,i.A.dispatch({type:"cart/update",payload:r})}})},this.removeMobilePortingRecord=(e,t)=>{let r=i.A.getState().cart;null!=r&&(r.items.forEach(r=>{if(r.id==t&&r.mobileNumberPorting){let t=r.mobileNumberPorting;t.splice(e,1),r.mobileNumberPorting=t}}),i.A.dispatch({type:"cart/update",payload:r}))},this.addMobilePortingRecord=(e,t)=>{let r=i.A.getState().cart;null!=r&&r.items.forEach(n=>{if(n.id==e&&n.mobileNumberPorting){let o;void 0!==t?(o=n.mobileNumberPorting).splice(t,0,{productId:e||"",id:(0,a.cv)(),portingDate:"",simType:"",phoneNumber:"",provider:""}):o=[...n.mobileNumberPorting,{productId:e||"",id:(0,a.cv)(),portingDate:"",simType:"",phoneNumber:"",provider:""}],n.mobileNumberPorting=o,i.A.dispatch({type:"cart/update",payload:r})}})},this.getSbServiceOptions=(e,t,r)=>{f.A.getStoryOptions(e,t.locale,e=>{let t=[];e?(e.data.stories.map(e=>{let r=e.content.body[0];t.push(r)}),r(t)):r()},!0)},this.getIctCart=e=>{var t,r,i,n,a;if((null==(r=h.i.getState())||null==(t=r.ictReducer)?void 0:t.ictProductData)&&(null==(a=h.i.getState())||null==(n=a.ictReducer)||null==(i=n.ictProductData)?void 0:i.length)>0)return h.i.getState().ictReducer;if(e){let t=JSON.parse(e).ictReducer;return t&&(null==t?void 0:t.ictProductData)?t:null}return null},this.cart=null,this.cancelTokenSource=null}}_.cartSessionKey="b2b-checkout-cart",_.basketSessionKey="b2b-checkout-basket",_.submitOrderService="/api/al/checkout/cart",_.submitMsCartOrderService="/api/al/checkout/ms-cart",_.searchCompanyService="/api/al/search/company/",_.RequestCancelStatus="CANCELLED";let b=new _},2002:e=>{"use strict";e.exports=Math.abs},2421:(e,t,r)=>{"use strict";var i=r(14232),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,o=i.useRef,s=i.useEffect,l=i.useMemo,c=i.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,i,u){var d=o(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;var h=a(e,(d=l(function(){function e(e){if(!s){if(s=!0,a=e,e=i(e),void 0!==u&&p.hasValue){var t=p.value;if(u(t,e))return o=t}return o=e}if(t=o,n(a,e))return t;var r=i(e);return void 0!==u&&u(t,r)?(a=e,t):(a=e,o=r)}var a,o,s=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,i,u]))[0],d[1]);return s(function(){p.hasValue=!0,p.value=h},[h]),c(h),h}},2496:e=>{"use strict";e.exports=Math.floor},4093:(e,t,r)=>{"use strict";var i=r(27496);e.exports=function(e){return i.isObject(e)&&!0===e.isAxiosError}},4592:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>_,CD:()=>g,FK:()=>y,Y:()=>f,cV:()=>b,jb:()=>m,rF:()=>v,xR:()=>p});var i=r(10339),n=r(85383),a=r(91167),o=r(78730),s=r(46348);let l={isPending:!1,serviceOptions:{},stateObject:{tabKey:n.A.SERVICEOPTIONDEFAULTTAB,savedOption:[],selectedOption:[],removedOption:[]},selectedSubscriptionSimType:"",selectedDataPostPaidSimType:"",selectedExtraSimType:[]},c=(0,i.Z0)({name:"serviceOptionSlice",initialState:l,reducers:{loadingState:(e,t)=>
1{e.isPending=t.payload},setServiceOption:(e,t)=>{e.serviceOptions={...e.serviceOptions,...t.payload}},setOptionState:(e,t)=>{e.stateObject={...e.stateObject,...t.payload}},resetOptionTab:e=>{e.stateObject={...e.stateObject,tabKey:n.A.SERVICEOPTIONDEFAULTTAB}},setSelectedMobileNumber:(e,t)=>{e.selectedMobileNumber=t.payload},setSelectedSubscriptionSimType:(e,t)=>{e.selectedSubscriptionSimType=t.payload},setSelectedDataPostPaidSimType:(e,t)=>{e.selectedDataPostPaidSimType=t.payload},setExtraSimType:(e,t)=>{let{id:r,simType:i,name:n}=t.payload,a=e.selectedExtraSimType.find(e=>e.id==r);a?a.simType=i:e.selectedExtraSimType.push({id:r,simType:i,name:n})},resetExtraSimDetails:e=>{e.selectedExtraSimType=[]}}}),{loadingState:u,setServiceOption:d,setOptionState:p,resetOptionTab:h,setSelectedMobileNumber:m,setSelectedSubscriptionSimType:f,setExtraSimType:g,resetExtraSimDetails:y,setSelectedDataPostPaidSimType:v}=c.actions,_=c.reducer,b=(e,t)=>async(r,i)=>{try{r(u(!0));let i=await a.A.getServiceOptions(t,e);if(i.error)throw i.error;r(d({[t]:i}))}catch(r){let e=i().progressIndicatorReducer,t="cart"===((null==e?void 0:e.activeStep)?e.activeStep:"cart")?s.V4.SERVICEOPTIONCART:s.V4.SERVICEOPTIONSUMMARY;o.A.trackApiErrorEvent(r.response,t)}finally{r(u(!1))}}},5391:e=>{"use strict";e.exports=EvalError},6656:(e,t,r)=>{"use strict";r.d(t,{$L:()=>u,Ay:()=>f,Nn:()=>d,O4:()=>b,To:()=>g,UT:()=>v,h3:()=>_,mA:()=>y,sl:()=>h,uA:()=>m});var i=r(85383),n=r(10339),a=r(57573),o=r(78730),s=r(46348),l=r(81237);let c=(0,n.Z0)({name:"sbContent",initialState:{sbStaticContent:{},sbErrorMessage:{},serviceOptionContent:[],sbComponentStaticContent:{},sbCheckoutStepsStaticContent:{}},reducers:{initContent:(e,t)=>{e.sbStaticContent=t.payload.items},setSbStaticContent:(e,t)=>{e.sbStaticContent=t.payload.sbStatic},setSbErrorMessage:(e,t)=>{e.sbErrorMessage=t.payload.errorMessages},setServiceContent:(e,t)=>{e.serviceOptionContent=t.payload},setSbComponentStaticContent:(e,t)=>{e.sbComponentStaticContent=t.payload.sbComponentStatic},setSbCheckoutStepsStaticContent:(e,t)=>{e.sbCheckoutStepsStaticContent=t.payload.sbCheckoutStepsStaticContent}}}),{setSbStaticContent:u,setSbErrorMessage:d,setServiceContent:p,setSbComponentStaticContent:h,setSbCheckoutStepsStaticContent:m}=c.actions,f=c.reducer,g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";return async t=>{try{let r=await a.A.getSBStaticContent("sb-static-labels",e,i.A.SB_STATIC_LABELS+"_"+e);t(u({sbStatic:r}))}catch(e){o.A.trackApiErrorEvent(e.response,s.V4.STORYBLOKSTATICLABLE,void 0,"Storyblok Api Error")}finally{}}},y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";return async t=>{try{let r=await a.A.getSBStaticContent("eshop-component-static-labels",e,i.A.SB_COMPONENT_STATIC_LABELS+"_"+e);t(h({sbComponentStatic:r}))}catch(e){o.A.trackApiErrorEvent(e.response,s.V4.STORYBLOKSTATICLABLE,void 0,"Storyblok Api Error")}finally{}}},v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";return async t=>{try{let r=await a.A.getSBStaticContent("checkout-steps",e,i.A.SB_CHECKOUT_STEPS_STATIC_LABELS+"_"+e);t(m({sbCheckoutStepsStaticContent:r}))}catch(e){o.A.trackApiErrorEvent(e.response,s.V4.STORYBLOKSTATICLABLE,void 0,"Storyblok Api Error")}finally{}}},_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";return async t=>{try{let r=await a.A.getSBStaticContent("eshop-error-message",e,i.A.SB_ERROR_MESSAGE+"_"+e);t(d({errorMessages:r}))}catch(e){o.A.trackApiErrorEvent(e.response,s.V4.STORYBLOKERRORLABLE,void 0,"Storyblok Api Error")}finally{}}},b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";return async t=>{try{let r=await a.A.getStoriesBySlug(e,(0,l.KV)()?"productcontent/prodenv/mobile/options":"productcontent/testenv/mobile/options");if(r.error)throw r.error;let i=[];r.data.stories.map(e=>{let t=e.content.body[0];t.isSellable&&i.push(t)}),t(p(i))}catch(e){o.A.trackApiErrorEvent(e.response,s.V4.STORYBLOKSERVICEOPTION,void 0,"Storyblok Api Error")}finally{}}}},8145:(e,t,r)=>{e.exports=r(83395)},8630:(e,t,r)=>{"use strict";var i=r(99742),n=r(27496),a=r(80426),o=r(25037),s=r(50496),l=r(30910),c=r(54215),u=r(69247),d=r(13112),p={"Content-Type":"application/x-www-form-urlencoded"};function h(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var m={transitional:s,adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=r(54070):void 0!==i&&"[object process]"===Object.prototype.toString.call(i)&&(e=r(54070)),e}(),transformRequest:[function(e,t){a(t,"Accept"),a(t,"Content-Type");var r,i=t&&t["Content-Type"]||"",o=i.indexOf("application/json")>-1,s=n.isObject(e);
1if(s&&n.isHTMLForm(e)&&(e=new FormData(e)),n.isFormData(e))return o?JSON.stringify(d(e)):e;if(n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e))return e;if(n.isArrayBufferView(e))return e.buffer;if(n.isURLSearchParams(e))return h(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();if(s){if(-1!==i.indexOf("application/x-www-form-urlencoded"))return c(e,this.formSerializer).toString();if((r=n.isFileList(e))||i.indexOf("multipart/form-data")>-1){var u=this.env&&this.env.FormData;return l(r?{"files[]":e}:e,u&&new u,this.formSerializer)}}if(s||o){h(t,"application/json");var p=e;if(n.isString(p))try{return(0,JSON.parse)(p),n.trim(p)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(p)}return e}],transformResponse:[function(e){var t=this.transitional||m.transitional,r=t&&t.forcedJSONParsing,i="json"===this.responseType;if(e&&n.isString(e)&&(r&&!this.responseType||i)){var a=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!a&&i){if("SyntaxError"===e.name)throw o.from(e,o.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:u.classes.FormData,Blob:u.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],function(e){m.headers[e]={}}),n.forEach(["post","put","patch"],function(e){m.headers[e]=n.merge(p)}),e.exports=m},9945:(e,t,r)=>{"use strict";var i=r(45525),n=r(73442),a=r(81073),o=r(65865),s=i("%Map%",!0),l=n("Map.prototype.get",!0),c=n("Map.prototype.set",!0),u=n("Map.prototype.has",!0),d=n("Map.prototype.delete",!0),p=n("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+a(e))},delete:function(t){if(e){var r=d(e,t);return 0===p(e)&&(e=void 0),r}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,r){e||(e=new s),c(e,t,r)}};return t}},10221:(e,t,r)=>{"use strict";var i=r(65225);if(i)try{i([],"length")}catch(e){i=null}e.exports=i},10339:(e,t,r)=>{"use strict";r.d(t,{U1:()=>ev,Z0:()=>ew});var i,n=Symbol.for("immer-nothing"),a=Symbol.for("immer-draftable"),o=Symbol.for("immer-state");function s(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var l=Object,c=l.getPrototypeOf,u="constructor",d="prototype",p="configurable",h="enumerable",m="writable",f="value",g=e=>!!e&&!!e[o];function y(e){return!!e&&(b(e)||A(e)||!!e[a]||!!e[u]?.[a]||P(e)||I(e))}var v=l[d][u].toString(),_=new WeakMap;function b(e){if(!e||!T(e))return!1;let t=c(e);if(null===t||t===l[d])return!0;let r=l.hasOwnProperty.call(t,u)&&t[u];if(r===Object)return!0;if(!O(r))return!1;let i=_.get(r);return void 0===i&&(i=Function.toString.call(r),_.set(r,i)),i===v}function S(e,t,r=!0){0===w(e)?(r?Reflect.ownKeys(e):l.keys(e)).forEach(r=>{t(r,e[r],e)}):e.forEach((r,i)=>t(i,r,e))}function w(e){let t=e[o];return t?t.type_:A(e)?1:P(e)?2:3*!!I(e)}var C=(e,t,r=w(e))=>2===r?e.has(t):l[d].hasOwnProperty.call(e,t),E=(e,t,r=w(e))=>2===r?e.get(t):e[t],k=(e,t,r,i=w(e))=>{2===i?e.set(t,r):3===i?e.add(r):e[t]=r},A=Array.isArray,P=e=>e instanceof Map,I=e=>e instanceof Set,T=e=>"object"==typeof e,O=e=>"function"==typeof e,D=e=>e.modified_?e.copy_:e.base_;function R(e,t){if(P(e))return new Map(e);if(I(e))return new Set(e);if(A(e))return Array[d].slice.call(e);let r=b(e);if(!0!==t&&("class_only"!==t||r)){let t=c(e);if(null!==t&&r)return{...e};let i=l.create(t);return l.assign(i,e)}{let t=l.getOwnPropertyDescriptors(e);delete t[o];let r=Reflect.ownKeys(t);for(let i=0;i<r.length;i++){let n=r[i],a=t[n];!1===a[m]&&(a[m]=!0,a[p]=!0),(a.get||a.set)&&(t[n]={[p]:!0,[m]:!0,[h]:a[h],[f]:e[n]})}return l.create(c(e),t)}}function M(e,t=!1){return x(e)||g(e)||!y(e)||(w(e)>1&&l.defineProperties(e,{set:N,add:N,clear:N,delete:N}),l.freeze(e),t&&S(e,(e,t)=>{M(t,!0)},!1)),e}var N={[f]:function(){s(2)}};function x(e){return!(null!==e&&T(e))||l.isFrozen(e)}var U="MapSet",B="Patches",F="ArrayMethods",L={};function j(e){let t=L[e];return t||s(0,e),t}var V=e=>!!L[e];function q(e,t){t&&(e.patchPlugin_=j(B),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Y(e){H(e),e.drafts_.forEach(z),e.drafts_=null}function H(e){e===i&&(i=e.parent_)}var W=e=>i={drafts_:[],parent_:i,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:V(U)?j(U):void 0,arrayMethodsPlugin_:V(F)?j(F):void 0};function z(e){let t=e[o];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function K(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(void 0!==e&&e!==r){r[o].modified_&&(Y(t),s(4)),y(e)&&(e=$(t,e));let{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[o].base_,e,t)}else e=$(t,r);return function(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&M(t,r)}(t,e,!0),Y(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==n?e:void 0}function $(e,t){if(x(t))return t;let r=t[o];if(!r)return ee(t,e.handledSet_,e);if(!J(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:t}=r;if(t)for(;t.length>0;)t.pop()(e);X(r,e)}return r.copy_}function G(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var J=(e,t)=>
1e.scope_===t,Z=[];function Q(e,t,r,i){let n=e.copy_||e.base_,a=e.type_;if(void 0!==i&&E(n,i,a)===t)return void k(n,i,r,a);if(!e.draftLocations_){let t=e.draftLocations_=new Map;S(n,(e,r)=>{if(g(r)){let i=t.get(r)||[];i.push(e),t.set(r,i)}})}for(let i of e.draftLocations_.get(t)??Z)k(n,i,r,a)}function X(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||1===e.type_&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:r}=t;if(r){let i=r.getPath(e);i&&r.generatePatches_(e,i,t)}G(e)}}function ee(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||g(e)||t.has(e)||!y(e)||x(e)||(t.add(e),S(e,(i,n)=>{if(g(n)){let t=n[o];J(t,r)&&(k(e,i,D(t),e.type_),G(t))}else y(n)&&ee(n,t,r)})),e}var et={get(e,t){if(t===o)return e;let r=e.scope_.arrayMethodsPlugin_,i=1===e.type_&&"string"==typeof t;if(i&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);let n=e.copy_||e.base_;if(!C(n,t,e.type_)){var a=e,s=n,l=t;let r=en(s,l);return r?f in r?r[f]:r.get?.call(a.draft_):void 0}let c=n[t];if(e.finalized_||!y(c)||i&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&function(e){let t=+e;return Number.isInteger(t)&&String(t)===e}(t))return c;if(c===ei(e.base_,t)){eo(e);let r=1===e.type_?+t:t,i=es(e.scope_,c,e,r);return e.copy_[r]=i}return c},has:(e,t)=>t in(e=>e.copy_||e.base_)(e),ownKeys:e=>Reflect.ownKeys((e=>e.copy_||e.base_)(e)),set(e,t,r){let i=en(e.copy_||e.base_,t);if(i?.set)return i.set.call(e.draft_,r),!0;if(!e.modified_){let i=ei(e.copy_||e.base_,t),n=i?.[o];if(n&&n.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if((r===i?0!==r||1/r==1/i:r!=r&&i!=i)&&(void 0!==r||C(e.base_,t,e.type_)))return!0;eo(e),ea(e)}if(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))return!0;e.copy_[t]=r,e.assigned_.set(t,!0);let{scope_:n}=e;if(g(r)){let i=r[o];J(i,n)&&i.callbacks_.push(function(){eo(e),Q(e,r,D(i),t)})}else y(r)&&e.callbacks_.push(function(){let i=e.copy_||e.base_;3===e.type_?i.has(r)&&ee(r,n.handledSet_,n):E(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ee(E(e.copy_,t,e.type_),n.handledSet_,n)});return!0},deleteProperty:(e,t)=>(eo(e),void 0!==ei(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),ea(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=e.copy_||e.base_,i=Reflect.getOwnPropertyDescriptor(r,t);return i?{[m]:!0,[p]:1!==e.type_||"length"!==t,[h]:i[h],[f]:r[t]}:i},defineProperty(){s(11)},getPrototypeOf:e=>c(e.base_),setPrototypeOf(){s(12)}},er={};for(let e in et){let t=et[e];er[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}function ei(e,t){let r=e[o];return(r?r.copy_||r.base_:e)[t]}function en(e,t){if(!(t in e))return;let r=c(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=c(r)}}function ea(e){!e.modified_&&(e.modified_=!0,e.parent_&&ea(e.parent_))}function eo(e){e.copy_||(e.assigned_=new Map,e.copy_=R(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function es(e,t,r,n){let[a,o]=P(t)?j(U).proxyMap_(t,r):I(t)?j(U).proxySet_(t,r):function(e,t){let r=A(e),n={type_:+!!r,scope_:t?t.scope_:i,modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},a=n,o=et;r&&(a=[n],o=er);let{revoke:s,proxy:l}=Proxy.revocable(a,o);return n.draft_=l,n.revoke_=s,[l,n]}(t,r);if((r?.scope_??i).drafts_.push(a),o.callbacks_=r?.callbacks_??[],o.key_=n,r&&void 0!==n)r.callbacks_.push(function(e){if(!o||!J(o,e))return;e.mapSetPlugin_?.fixSetContents(o);let t=D(o);Q(r,o.draft_??o,t,n),X(o,e)});else o.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:t}=e;o.modified_&&t&&t.generatePatches_(o,[],e)});return a}er.deleteProperty=function(e,t){return er.set.call(this,e,t,void 0)},er.set=function(e,t,r){return et.set.call(this,e[0],t,r,e[0])};var el=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,r)=>{let i;if(O(e)&&!O(t)){let r=t;t=e;let i=this;return function(e=r,...n){return i.produce(e,e=>t.call(this,e,...n))}}if(O(t)||s(6),void 0===r||O(r)||s(7),y(e)){let n=W(this),a=es(n,e,void 0),o=!0;try{i=t(a),o=!1}finally{o?Y(n):H(n)}return q(n,r),K(i,n)}if(e&&T(e))s(1,e);else{if(void 0===(i=t(e))&&(i=e),i===n&&(i=void 0),this.autoFreeze_&&M(i,!0),r){let t=[],n=[];j(B).generateReplacementPatches_(e,i,{patches_:t,inversePatches_:n}),r(t,n)}return i}},this.produceWithPatches=(e,t)=>{let r,i;return O(e)?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,i=t}),r,i]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){var t;y(e)||s(8),g(e)&&(g(t=e)||s(10,t),e=function e(t){let r;if(!y(t)||x(t))return t;let i=t[o],n=!0;if(i){if(!i.modified_)return i.base_;i.finalized_=!0,r=R(t,i.scope_.immer_.useStrictShallowCopy_),n=i.scope_.immer_.shouldUseStrictIteration()}else r=R(t,!0);return S(r,(t,i)=>{k(r,t,e(i))},n),i&&(i.finalized_=!1),r}(t));let r=W(this),i=es(r,e,void 0);return i[o].isManual_=!0,H(r),i}finishDraft(e,t){let r=e&&e[o];r&&r.isManual_||s(9);let{scope_:i}=r;return q(i,t),K(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let i=t[r];
1if(0===i.path.length&&"replace"===i.op){e=i.value;break}}r>-1&&(t=t.slice(r+1));let i=j(B).applyPatches_;return g(e)?i(e,t):this.produce(e,e=>i(e,t))}}().produce,ec=r(83129);function eu(e){return({dispatch:t,getState:r})=>i=>n=>"function"==typeof n?n(t,r,e):i(n)}var ed=eu(),ep=(r(99742),"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?ec.Zz:ec.Zz.apply(null,arguments)});function eh(e,t){function r(...i){if(t){let r=t(...i);if(!r)throw Error(eT(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:i[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>(0,ec.ve)(t)&&t.type===e,r}"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var em=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function ef(e){return y(e)?el(e,()=>{}):e}function eg(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}var ey=e=>t=>{setTimeout(t,e)};function ev(e){let t,r,i,n=function(e){let{thunk:t=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:n=!0}=e??{},a=new em;return t&&("boolean"==typeof t?a.push(ed):a.push(eu(t.extraArgument))),a},{reducer:a,middleware:o,devTools:s=!0,duplicateMiddlewareCheck:l=!0,preloadedState:c,enhancers:u}=e||{};if("function"==typeof a)t=a;else if((0,ec.Qd)(a))t=(0,ec.HY)(a);else throw Error(eT(1));r="function"==typeof o?o(n):n();let d=ec.Zz;s&&(d=ep({trace:!1,..."object"==typeof s&&s}));let p=(i=(0,ec.Tw)(...r),function(e){let{autoBatch:t=!0}=e??{},r=new em(i);return t&&r.push(((e={type:"raf"})=>t=>(...r)=>{let i,n=t(...r),a=!0,o=!1,s=!1,l=new Set,c="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?(i=window.requestAnimationFrame,e=>{let t=!1,r=()=>{t||(t=!0,cancelAnimationFrame(n),clearTimeout(a),e())},n=i(r),a=setTimeout(r,100)}):ey(10):"callback"===e.type?e.queueNotification:ey(e.timeout),u=()=>{s=!1,o&&(o=!1,l.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){let t=n.subscribe(()=>a&&e());return l.add(e),()=>{t(),l.delete(e)}},dispatch(e){try{return(o=!(a=!e?.meta?.RTK_autoBatch))&&!s&&(s=!0,c(u)),n.dispatch(e)}finally{a=!0}}})})("object"==typeof t?t:void 0)),r}),h=d(..."function"==typeof u?u(p):p());return(0,ec.y$)(t,c,h)}function e_(e){let t,r={},i=[],n={addCase(e,t){let i="string"==typeof e?e:e.type;if(!i)throw Error(eT(28));if(i in r)throw Error(eT(29));return r[i]=t,n},addAsyncThunk:(e,t)=>(t.pending&&(r[e.pending.type]=t.pending),t.rejected&&(r[e.rejected.type]=t.rejected),t.fulfilled&&(r[e.fulfilled.type]=t.fulfilled),t.settled&&i.push({matcher:e.settled,reducer:t.settled}),n),addMatcher:(e,t)=>(i.push({matcher:e,reducer:t}),n),addDefaultCase:e=>(t=e,n)};return e(n),[r,i,t]}var eb=Symbol.for("rtk-slice-createasyncthunk"),eS=(e=>(e.reducer="reducer",e.reducerWithPrepare="reducerWithPrepare",e.asyncThunk="asyncThunk",e))(eS||{}),ew=function({creators:e}={}){let t=e?.asyncThunk?.[eb];return function(e){let r,{name:i,reducerPath:n=i}=e;if(!i)throw Error(eT(11));let a=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},o=Object.keys(a),s={},l={},c={},u=[],d={addCase(e,t){let r="string"==typeof e?e:e.type;if(!r)throw Error(eT(12));if(r in l)throw Error(eT(13));return l[r]=t,d},addMatcher:(e,t)=>(u.push({matcher:e,reducer:t}),d),exposeAction:(e,t)=>(c[e]=t,d),exposeCaseReducer:(e,t)=>(s[e]=t,d)};function p(){let[t={},r=[],i]="function"==typeof e.extraReducers?e_(e.extraReducers):[e.extraReducers],n={...t,...l};return function(e,t){let r,[i,n,a]=e_(t);if("function"==typeof e)r=()=>ef(e());else{let t=ef(e);r=()=>t}function o(e=r(),t){let s=[i[t.type],...n.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===s.filter(e=>!!e).length&&(s=[a]),s.reduce((e,r)=>{if(r)if(g(e)){let i=r(e,t);return void 0===i?e:i}else{if(y(e))return el(e,e=>r(e,t));let i=r(e,t);if(void 0===i){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return e},e)}return o.getInitialState=r,o}(e.initialState,e=>{for(let t in n)e.addCase(t,n[t]);for(let t of u)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);i&&e.addDefaultCase(i)})}
1o.forEach(r=>{let n=a[r],o={reducerName:r,type:`${i}/${r}`,createNotation:"function"==typeof e.reducers};"asyncThunk"===n._reducerDefinitionType?function({type:e,reducerName:t},r,i,n){if(!n)throw Error(eT(18));let{payloadCreator:a,fulfilled:o,pending:s,rejected:l,settled:c,options:u}=r,d=n(e,a,u);i.exposeAction(t,d),o&&i.addCase(d.fulfilled,o),s&&i.addCase(d.pending,s),l&&i.addCase(d.rejected,l),c&&i.addMatcher(d.settled,c),i.exposeCaseReducer(t,{fulfilled:o||eC,pending:s||eC,rejected:l||eC,settled:c||eC})}(o,n,d,t):function({type:e,reducerName:t,createNotation:r},i,n){let a,o;if("reducer"in i){if(r&&"reducerWithPrepare"!==i._reducerDefinitionType)throw Error(eT(17));a=i.reducer,o=i.prepare}else a=i;n.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?eh(e,o):eh(e))}(o,n,d)});let h=e=>e,m=new Map,f=new WeakMap;function v(e,t){return r||(r=p()),r(e,t)}function _(){return r||(r=p()),r.getInitialState()}function b(t,r=!1){function i(e){let n=e[t];return void 0===n&&r&&(n=eg(f,i,_)),n}function n(t=h){let i=eg(m,r,()=>new WeakMap);return eg(i,t,()=>{let i={};for(let[n,a]of Object.entries(e.selectors??{}))i[n]=function(e,t,r,i){function n(a,...o){let s=t(a);return void 0===s&&i&&(s=r()),e(s,...o)}return n.unwrapped=e,n}(a,t,()=>eg(f,t,_),r);return i})}return{reducerPath:t,getSelectors:n,get selectors(){return n(i)},selectSlice:i}}let S={name:i,reducer:v,actions:c,caseReducers:s,getInitialState:_,...b(n),injectInto(e,{reducerPath:t,...r}={}){let i=t??n;return e.inject({reducerPath:i,reducer:v},r),{...S,...b(i,!0)}}};return S}}();function eC(){}var{assign:eE}=Object,ek="listenerMiddleware",eA=eE(e=>{let{type:t,predicate:r,effect:i}=(e=>{let{type:t,actionCreator:r,matcher:i,predicate:n,effect:a}=e;if(t)n=eh(t).match;else if(r)t=r.type,n=r.match;else if(i)n=i;else if(n);else throw Error(eT(21));if("function"!=typeof a)throw TypeError(eT(32));return{predicate:n,type:t,effect:a}})(e);return{id:((e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t}
1)(),effect:i,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw Error(eT(22))}}},{withTypes:()=>eA}),eP=eE(eh(`${ek}/add`),{withTypes:()=>eP}),eI=eE(eh(`${ek}/remove`),{withTypes:()=>eI});function eT(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}},10841:function(e,t,r){e=r.nmd(e),e.exports=function(){"use strict";function t(){return j.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a(e){var t;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(t in e)if(n(e,t))return!1;return!0}function o(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var r,i=[],n=e.length;for(r=0;r<n;++r)i.push(t(e[r],r));return i}function u(e,t){for(var r in t)n(t,r)&&(e[r]=t[r]);return n(t,"toString")&&(e.toString=t.toString),n(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,r,i){return tn(e,t,r,i,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function h(e){var t=null,r=!1,i=e._d&&!isNaN(e._d.getTime());return(i&&(t=p(e),r=V.call(t.parsedDateParts,function(e){return null!=e}),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e))?i:(e._isValid=i,e._isValid)}function m(e){var t=d(NaN);return null!=e?u(p(t),e):p(t).userInvalidated=!0,t}V=Array.prototype.some?Array.prototype.some:function(e){var t,r=Object(this),i=r.length>>>0;for(t=0;t<i;t++)if(t in r&&e.call(this,r[t],t,r))return!0;return!1};var f,g,y=t.momentProperties=[],v=!1;function _(e,t){var r,i,n,a=y.length;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=p(t)),o(t._locale)||(e._locale=t._locale),a>0)for(r=0;r<a;r++)o(n=t[i=y[r]])||(e[i]=n);return e}function b(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,t.updateOffset(this),v=!1)}function S(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function w(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function C(e,r){var i=!0;return u(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),i){var a,o,s,l=[],c=arguments.length;for(o=0;o<c;o++){if(a="","object"==typeof arguments[o]){for(s in a+="\n["+o+"] ",arguments[0])n(arguments[0],s)&&(a+=s+": "+arguments[0][s]+", ");a=a.slice(0,-2)}else a=arguments[o];l.push(a)}w(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+Error().stack),i=!1}return r.apply(this,arguments)},r)}var E={};function k(e,r){null!=t.deprecationHandler&&t.deprecationHandler(e,r),E[e]||(w(r),E[e]=!0)}function A(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function P(e,t){var r,a=u({},e);for(r in t)n(t,r)&&(i(e[r])&&i(t[r])?(a[r]={},u(a[r],e[r]),u(a[r],t[r])):null!=t[r]?a[r]=t[r]:delete a[r]);for(r in e)n(e,r)&&!n(t,r)&&i(e[r])&&(a[r]=u({},a[r]));return a}function I(e){null!=e&&this.set(e)}function T(e,t,r){var i=""+Math.abs(e);return(e>=0?r?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var O=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
1|x|X|zz?|ZZ?|.)/g,D=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},M={};function N(e,t,r,i){var n=i;"string"==typeof i&&(n=function(){return this[i]()}),e&&(M[e]=n),t&&(M[t[0]]=function(){return T(n.apply(this,arguments),t[1],t[2])}),r&&(M[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function x(e,t){return e.isValid()?(R[t=U(t,e.localeData())]=R[t]||function(e){var t,r,i,n=e.match(O);for(r=0,i=n.length;r<i;r++)M[n[r]]?n[r]=M[n[r]]:n[r]=(t=n[r]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){var r,a="";for(r=0;r<i;r++)a+=A(n[r])?n[r].call(t,e):n[r];return a}}(t),R[t](e)):e.localeData().invalidDate()}function U(e,t){var r=5;function i(e){return t.longDateFormat(e)||e}for(D.lastIndex=0;r>=0&&D.test(e);)e=e.replace(D,i),D.lastIndex=0,r-=1;return e}var B={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function F(e){return"string"==typeof e?B[e]||B[e.toLowerCase()]:void 0}function L(e){var t,r,i={};for(r in e)n(e,r)&&(t=F(r))&&(i[t]=e[r]);return i}var j,V,q,Y={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},H=Object.keys?Object.keys:function(e){var t,r=[];for(t in e)n(e,t)&&r.push(t);return r},W=/\d/,z=/\d\d/,K=/\d{3}/,$=/\d{4}/,G=/[+-]?\d{6}/,J=/\d\d?/,Z=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,X=/\d{1,3}/,ee=/\d{1,4}/,et=/[+-]?\d{1,6}/,er=/\d+/,ei=/[+-]?\d+/,en=/Z|[+-]\d\d:?\d\d/gi,ea=/Z|[+-]\d\d(?::?\d\d)?/gi,eo=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,es=/^[1-9]\d?/,el=/^([1-9]\d|\d)/;function ec(e,t,r){q[e]=A(t)?t:function(e,i){return e&&r?r:t}}function eu(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ed(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ep(e){var t=+e,r=0;return 0!==t&&isFinite(t)&&(r=ed(t)),r}q={};var eh={};function em(e,t){var r,i,n=t;for("string"==typeof e&&(e=[e]),s(t)&&(n=function(e,r){r[t]=ep(e)}),i=e.length,r=0;r<i;r++)eh[e[r]]=n}function ef(e,t){em(e,function(e,r,i,n){i._w=i._w||{},t(e,i._w,i,n)})}function eg(e){return e%4==0&&e%100!=0||e%400==0}function ey(e){return eg(e)?366:365}N("Y",0,0,function(){var e=this.year();return e<=9999?T(e,4):"+"+e}),N(0,["YY",2],0,function(){return this.year()%100}),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),ec("Y",ei),ec("YY",J,z),ec("YYYY",ee,$),ec("YYYYY",et,G),ec("YYYYYY",et,G),em(["YYYYY","YYYYYY"],0),em("YYYY",function(e,r){r[0]=2===e.length?t.parseTwoDigitYear(e):ep(e)}),em("YY",function(e,r){r[0]=t.parseTwoDigitYear(e)}),em("Y",function(e,t){t[0]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return ep(e)+(ep(e)>68?1900:2e3)};var ev=e_("FullYear",!0);function e_(e,r){return function(i){return null!=i?(eS(this,e,i),t.updateOffset(this,r),this):eb(this,e)}}function eb(e,t){if(!e.isValid())return NaN;var r=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return i?r.getUTCSeconds():r.getSeconds();case"Minutes":return i?r.getUTCMinutes():r.getMinutes();case"Hours":return i?r.getUTCHours():r.getHours();case"Date":return i?r.getUTCDate():r.getDate();case"Day":return i?r.getUTCDay():r.getDay();case"Month":return i?r.getUTCMonth():r.getMonth();case"FullYear":return i?r.getUTCFullYear():r.getFullYear();default:return NaN}}function eS(e,t,r){var i,n,a,o;if(!(!e.isValid()||isNaN(r))){switch(i=e._d,n=e._isUTC,t){case"Milliseconds":return void(n?i.setUTCMilliseconds(r):i.setMilliseconds(r));case"Seconds":return void(n?i.setUTCSeconds(r):i.setSeconds(r));case"Minutes":return void(n?i.setUTCMinutes(r):i.setMinutes(r));case"Hours":return void(n?i.setUTCHours(r):i.setHours(r));case"Date":return void(n?i.setUTCDate(r):i.setDate(r));case"FullYear":break;default:return}a=e.month(),o=29!==(o=e.date())||1!==a||eg(r)?o:28,n?i.setUTCFullYear(r,a,o):i.setFullYear(r,a,o)}}function ew(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=(t%12+12)%12;return e+=(t-r)/12,1===r?eg(e)?29:28:31-r%7%2}eq=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return -1},N("M",["MM",2],"Mo",function(){return this.month()+1}),N("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),N("MMMM",0,0,function(e){return this.localeData().months(this,e)}),ec("M",J,es),ec("MM",J,z),ec("MMM",function(e,t){return t.monthsShortRegex(e)}),ec("MMMM",function(e,t){return t.monthsRegex(e)}),em(["M","MM"],function(e,t){t[1]=ep(e)-1}),em(["MMM","MMMM"],function(e,t,r,i){var n=r._locale.monthsParse(e,i,r._strict);null!=n?t[1]=n:p(r).invalidMonth=e});var eC="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),eE=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;function ek(e,t,r){var i,n,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(i=0,this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[];i<12;++i)a=d([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(a,"").toLocaleLowerCase();if(r)if("MMM"===t)return -1!==(n=eq.call(this._shortMonthsParse,o))?n:null;else return -1!==(n=eq.call(this._longMonthsParse,o))?n:null;return"MMM"===t?-1!==(n=eq.call(this._shortMonthsParse,o))||-1!==(n=eq.call(this._longMonthsParse,o))?n:null:-1!==(n=eq.call(this._longMonthsParse,o))||-1!==(n=eq.call(this._shortMonthsParse,o))?n:null}function eA(e,t){if(!e.isValid())return e;if("string"==typeof t){if(/^\d+$/.test(t))t=ep(t);else if(!s(t=e.localeData().monthsParse(t)))return e}var r=t,i=e.date();return i=i<29?i:Math.min(i,ew(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,i):e._d.setMonth(r,i),e}function eP(e){return null!=e?(eA(this,e),t.updateOffset(this,!0),this):eb(this,"Month")}function eI(){function e(e,t){return t.length-e.length}var t,r,i,n,a=[],o=[],s=[];for(t=0;t<12;t++)r=d([2e3,t]),i=eu(this.monthsShort(r,"")),n=eu(this.months(r,"")),a.push(i),o.push(n),s.push(n),s.push(i);a.sort(e),o.sort(e),s.sort(e),this._monthsRegex=RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+a.join("|")+")","i")}function eT(e,t,r,i,n,a,o){var s;return e<100&&e>=0?isFinite((s=new Date(e+400,t,r,i,n,a,o)).getFullYear())&&s.setFullYear(e):s=new Date(e,t,r,i,n,a,o),s}function eO(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,isFinite((t=new Date(Date.UTC.apply(null,r))).getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function eD(e,t,r){var i=7+t-r;return-((7+eO(e,0,i).getUTCDay()-t)%7)+i-1}function eR(e,t,r,i,n){var a,o,s=1+7*(t-1)+(7+r-i)%7+eD(e,i,n);return s<=0?o=ey(a=e-1)+s:s>ey(e)?(a=e+1,o=s-ey(e)):(a=e,o=s),{year:a,dayOfYear:o}}function eM(e,t,r){var i,n,a=eD(e.year(),t,r),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?i=o+eN(n=e.year()-1,t,r):o>eN(e.year(),t,r)?(i=o-eN(e.year(),t,r),n=e.year()+1):(n=e.year(),i=o),{week:i,year:n}}function eN(e,t,r){var i=eD(e,t,r),n=eD(e+1,t,r);return(ey(e)-i+n)/7}function ex(e,t){return e.slice(t,7).concat(e.slice(0,t))}N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),ec("w",J,es),ec("ww",J,z),ec("W",J,es),ec("WW",J,z),ef(["w","ww","W","WW"],function(e,t,r,i){t[i.substr(0,1)]=ep(e)}),N("d",0,"do","day"),N("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),N("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),N("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),ec("d",J),ec("e",J),ec("E",J),ec("dd",function(e,t){return t.weekdaysMinRegex(e)}),ec("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ec("dddd",function(e,t){return t.weekdaysRegex(e)}),ef(["dd","ddd","dddd"],function(e,t,r,i){var n=r._locale.weekdaysParse(e,i,r._strict);null!=n?t.d=n:p(r).invalidWeekday=e}),ef(["d","e","E"],function(e,t,r,i){t[i]=ep(e)});var eU="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function eB(e,t,r){var i,n,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(i=0,this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[];i<7;++i)a=d([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();if(r)if("dddd"===t)return -1!==(n=eq.call(this._weekdaysParse,o))?n:null;else if("ddd"===t)return -1!==(n=eq.call(this._shortWeekdaysParse,o))?n:null;else return -1!==(n=eq.call(this._minWeekdaysParse,o))?n:null;return"dddd"===t?-1!==(n=eq.call(this._weekdaysParse,o))||-1!==(n=eq.call(this._shortWeekdaysParse,o))||-1!==(n=eq.call(this._minWeekdaysParse,o))?n:null:"ddd"===t?-1!==(n=eq.call(this._shortWeekdaysParse,o))||-1!==(n=eq.call(this._weekdaysParse,o))||-1!==(n=eq.call(this._minWeekdaysParse,o))?n:null:-1!==(n=eq.call(this._minWeekdaysParse,o))||-1!==(n=eq.call(this._weekdaysParse,o))||-1!==(n=eq.call(this._shortWeekdaysParse,o))?n:null}function eF(){function e(e,t){return t.length-e.length}var t,r,i,n,a,o=[],s=[],l=[],c=[];for(t=0;t<7;t++)r=d([2e3,1]).day(t),i=eu(this.weekdaysMin(r,"")),n=eu(this.weekdaysShort(r,"")),a=eu(this.weekdays(r,"")),o.push(i),s.push(n),l.push(a),c.push(i),c.push(n),c.push(a);o.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+o.join("|")+")","i")}function eL(){return this.hours()%12||12}function ej(e,t){N(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function eV(e,t){return t._meridiemParse}N("H",["HH",2],0,"hour"),N("h",["hh",2],0,eL),N("k",["kk",2],0,function(){return this.hours()||24}),N("hmm",0,0,function(){return""+eL.apply(this)+T(this.minutes(),2)}
1),N("hmmss",0,0,function(){return""+eL.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)}),N("Hmm",0,0,function(){return""+this.hours()+T(this.minutes(),2)}),N("Hmmss",0,0,function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)}),ej("a",!0),ej("A",!1),ec("a",eV),ec("A",eV),ec("H",J,el),ec("h",J,es),ec("k",J,es),ec("HH",J,z),ec("hh",J,z),ec("kk",J,z),ec("hmm",Z),ec("hmmss",Q),ec("Hmm",Z),ec("Hmmss",Q),em(["H","HH"],3),em(["k","kk"],function(e,t,r){var i=ep(e);t[3]=24===i?0:i}),em(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),em(["h","hh"],function(e,t,r){t[3]=ep(e),p(r).bigHour=!0}),em("hmm",function(e,t,r){var i=e.length-2;t[3]=ep(e.substr(0,i)),t[4]=ep(e.substr(i)),p(r).bigHour=!0}),em("hmmss",function(e,t,r){var i=e.length-4,n=e.length-2;t[3]=ep(e.substr(0,i)),t[4]=ep(e.substr(i,2)),t[5]=ep(e.substr(n)),p(r).bigHour=!0}),em("Hmm",function(e,t,r){var i=e.length-2;t[3]=ep(e.substr(0,i)),t[4]=ep(e.substr(i))}),em("Hmmss",function(e,t,r){var i=e.length-4,n=e.length-2;t[3]=ep(e.substr(0,i)),t[4]=ep(e.substr(i,2)),t[5]=ep(e.substr(n))});var eq,eY,eH=e_("Hours",!0),eW={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:eC,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:eU,meridiemParse:/[ap]\.?m?\.?/i},ez={},eK={};function e$(e){return e?e.toLowerCase().replace("_","-"):e}function eG(t){if(void 0===ez[t]&&e&&e.exports&&t&&t.match("^[^/\\\\]*$"))try{eY._abbr;var r=Error("Cannot find module 'undefined'");throw r.code="MODULE_NOT_FOUND",r}catch(e){ez[t]=null}return ez[t]}function eJ(e,t){var r;return e&&((r=o(t)?eQ(e):eZ(e,t))?eY=r:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),eY._abbr}function eZ(e,t){if(null===t)return delete ez[e],null;var r,i=eW;if(t.abbr=e,null!=ez[e])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=ez[e]._config;else if(null!=t.parentLocale)if(null!=ez[t.parentLocale])i=ez[t.parentLocale]._config;else{if(null==(r=eG(t.parentLocale)))return eK[t.parentLocale]||(eK[t.parentLocale]=[]),eK[t.parentLocale].push({name:e,config:t}),null;i=r._config}return ez[e]=new I(P(i,t)),eK[e]&&eK[e].forEach(function(e){eZ(e.name,e.config)}),eJ(e),ez[e]}function eQ(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return eY;if(!r(e)){if(t=eG(e))return t;e=[e]}return function(e){for(var t,r,i,n,a=0;a<e.length;){for(t=(n=e$(e[a]).split("-")).length,r=(r=e$(e[a+1]))?r.split("-"):null;t>0;){if(i=eG(n.slice(0,t).join("-")))return i;if(r&&r.length>=t&&function(e,t){var r,i=Math.min(e.length,t.length);for(r=0;r<i;r+=1)if(e[r]!==t[r])return r;return i}(n,r)>=t-1)break;t--}a++}return eY}(e)}function eX(e){var t,r=e._a;return r&&-2===p(e).overflow&&(t=r[1]<0||r[1]>11?1:r[2]<1||r[2]>ew(r[0],r[1])?2:r[3]<0||r[3]>24||24===r[3]&&(0!==r[4]||0!==r[5]||0!==r[6])?3:r[4]<0||r[4]>59?4:r[5]<0||r[5]>59?5:r[6]<0||r[6]>999?6:-1,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(e).overflow=t),e}var e0=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e1=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e2=/Z|[+-]\d\d(?::?\d\d)?/,e3=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],e6=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],e4=/^\/?Date\((-?\d+)/i,e5=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,e8={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function e9(e){var t,r,i,n,a,o,s=e._i,l=e0.exec(s)||e1.exec(s),c=e3.length,u=e6.length;if(l){for(t=0,p(e).iso=!0,r=c;t<r;
1t++)if(e3[t][1].exec(l[1])){n=e3[t][0],i=!1!==e3[t][2];break}if(null==n){e._isValid=!1;return}if(l[3]){for(t=0,r=u;t<r;t++)if(e6[t][1].exec(l[3])){a=(l[2]||" ")+e6[t][0];break}if(null==a){e._isValid=!1;return}}if(!i&&null!=a){e._isValid=!1;return}if(l[4])if(e2.exec(l[4]))o="Z";else{e._isValid=!1;return}e._f=n+(a||"")+(o||""),tr(e)}else e._isValid=!1}function e7(e){var t,r,i,n,a,o,s,l,c,u,d,h=e5.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(h){if(a=h[4],o=h[3],s=h[2],l=h[5],c=h[6],u=h[7],d=[(t=parseInt(a,10))<=49?2e3+t:t<=999?1900+t:t,eC.indexOf(o),parseInt(s,10),parseInt(l,10),parseInt(c,10)],u&&d.push(parseInt(u,10)),r=h[1],i=d,n=e,r&&eU.indexOf(r)!==new Date(i[0],i[1],i[2]).getDay()&&(p(n).weekdayMismatch=!0,n._isValid=!1,1))return;e._a=d,e._tzm=function(e,t,r){if(e)return e8[e];if(t)return 0;var i=parseInt(r,10),n=i%100;return(i-n)/100*60+n}(h[8],h[9],h[10]),e._d=eO.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function te(e,t,r){return null!=e?e:null!=t?t:r}function tt(e){var r,i,n,a,o,s,l,c,u,d,h,m,f,g,y,v,_=[];if(!e._d){for(h=new Date(t.now()),g=e._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()],e._w&&null==e._a[2]&&null==e._a[1]&&(null!=(i=(r=e)._w).GG||null!=i.W||null!=i.E?(s=1,l=4,n=te(i.GG,r._a[0],eM(ta(),1,4).year),a=te(i.W,1),((o=te(i.E,1))<1||o>7)&&(u=!0)):(s=r._locale._week.dow,l=r._locale._week.doy,d=eM(ta(),s,l),n=te(i.gg,r._a[0],d.year),a=te(i.w,d.week),null!=i.d?((o=i.d)<0||o>6)&&(u=!0):null!=i.e?(o=i.e+s,(i.e<0||i.e>6)&&(u=!0)):o=s),a<1||a>eN(n,s,l)?p(r)._overflowWeeks=!0:null!=u?p(r)._overflowWeekday=!0:(c=eR(n,a,o,s,l),r._a[0]=c.year,r._dayOfYear=c.dayOfYear)),null!=e._dayOfYear&&(v=te(e._a[0],g[0]),(e._dayOfYear>ey(v)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),f=eO(v,0,e._dayOfYear),e._a[1]=f.getUTCMonth(),e._a[2]=f.getUTCDate()),m=0;m<3&&null==e._a[m];++m)e._a[m]=_[m]=g[m];for(;m<7;m++)e._a[m]=_[m]=null==e._a[m]?+(2===m):e._a[m];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?eO:eT).apply(null,_),y=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==y&&(p(e).weekdayMismatch=!0)}}function tr(e){if(e._f===t.ISO_8601)return void e9(e);if(e._f===t.RFC_2822)return void e7(e);e._a=[],p(e).empty=!0;var r,i,a,o,s,l,c,u,d,h,m,f=""+e._i,g=f.length,y=0;for(s=0,m=(c=U(e._f,e._locale).match(O)||[]).length;s<m;s++)if(u=c[s],(l=(f.match(!n(q,u)?new RegExp(eu(u.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,r,i,n){return t||r||i||n}))):q[u](e._strict,e._locale))||[])[0])&&((d=f.substr(0,f.indexOf(l))).length>0&&p(e).unusedInput.push(d),f=f.slice(f.indexOf(l)+l.length),y+=l.length),M[u])l?p(e).empty=!1:p(e).unusedTokens.push(u),null!=l&&n(eh,u)&&eh[u](l,e._a,e,u);else e._strict&&!l&&p(e).unusedTokens.push(u);p(e).charsLeftOver=g-y,f.length>0&&p(e).unusedInput.push(f),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[3]=(r=e._locale,i=e._a[3],null==(a=e._meridiem)?i:null!=r.meridiemHour?r.meridiemHour(i,a):(null!=r.isPM&&((o=r.isPM(a))&&i<12&&(i+=12),o||12!==i||(i=0)),i)),null!==(h=p(e).era)&&(e._a[0]=e._locale.erasConvertYear(h,e._a[0])),tt(e),eX(e)}function ti(e){var n=e._i,a=e._f;return(e._locale=e._locale||eQ(e._l),null===n||void 0===a&&""===n)?m({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),S(n))?new b(eX(n)):(l(n)?e._d=n:r(a)?!function(e){var t,r,i,n,a,o,s=!1,l=e._f.length;if(0===l){p(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;n<l;n++)a=0,o=!1,t=_({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[n],tr(t),h(t)&&(o=!0),a+=p(t).charsLeftOver,a+=10*p(t).unusedTokens.length,p(t).score=a,s?a<i&&(i=a,r=t):(null==i||a<i||o)&&(i=a,r=t,o&&(s=!0));u(e,r||t)}(e):a?tr(e):function(e){var n=e._i;if(o(n))e._d=new Date(t.now());else if(l(n))e._d=new Date(n.valueOf());else if("string"==typeof n)!function(e){var r=e4.exec(e._i);if(null!==r){e._d=new Date(+r[1]);return}if(e9(e),!1===e._isValid)delete e._isValid,e7(e),!1===e._isValid&&
1(delete e._isValid,e._strict?e._isValid=!1:t.createFromInputFallback(e))}(e);else if(r(n))e._a=c(n.slice(0),function(e){return parseInt(e,10)}),tt(e);else if(i(n)){if(!e._d){var a=L(e._i),u=void 0===a.day?a.date:a.day;e._a=c([a.year,a.month,u,a.hour,a.minute,a.second,a.millisecond],function(e){return e&&parseInt(e,10)}),tt(e)}}else s(n)?e._d=new Date(n):t.createFromInputFallback(e)}(e),h(e)||(e._d=null),e)}function tn(e,t,n,o,s){var l,c={};return(!0===t||!1===t)&&(o=t,t=void 0),(!0===n||!1===n)&&(o=n,n=void 0),(i(e)&&a(e)||r(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=s,c._l=n,c._i=e,c._f=t,c._strict=o,(l=new b(eX(ti(c))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function ta(e,t,r,i){return tn(e,t,r,i,!1)}t.createFromInputFallback=C("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var to=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ta.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()}),ts=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ta.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:m()});function tl(e,t){var i,n;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return ta();for(n=1,i=t[0];n<t.length;++n)(!t[n].isValid()||t[n][e](i))&&(i=t[n]);return i}var tc=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tu(e){var t=L(e),r=t.year||0,i=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,r,i=!1,a=tc.length;for(t in e)if(n(e,t)&&!(-1!==eq.call(tc,t)&&(null==e[t]||!isNaN(e[t]))))return!1;for(r=0;r<a;++r)if(e[tc[r]]){if(i)return!1;parseFloat(e[tc[r]])!==ep(e[tc[r]])&&(i=!0)}return!0}(t),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*3600,this._days=+s+7*o,this._months=+a+3*i+12*r,this._data={},this._locale=eQ(),this._bubble()}function td(e){return e instanceof tu}function tp(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function th(e,t){N(e,0,0,function(){var e=this.utcOffset(),r="+";return e<0&&(e=-e,r="-"),r+T(~~(e/60),2)+t+T(~~e%60,2)})}th("Z",":"),th("ZZ",""),ec("Z",ea),ec("ZZ",ea),em(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=tf(ea,e)});var tm=/([\+\-]|\d\d)/gi;function tf(e,t){var r,i,n=(t||"").match(e);return null===n?null:0===(i=+(60*(r=((n[n.length-1]||[])+"").match(tm)||["-",0,0])[1])+ep(r[2]))?0:"+"===r[0]?i:-i}function tg(e,r){var i,n;return r._isUTC?(i=r.clone(),n=(S(e)||l(e)?e.valueOf():ta(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),t.updateOffset(i,!1),i):ta(e).local()}function ty(e){return-Math.round(e._d.getTimezoneOffset())}function tv(){return!!this.isValid()&&this._isUTC&&0===this._offset}t.updateOffset=function(){};var t_=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,tb=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function tS(e,t){var r,i,a,o,l,c,u=e,d=null;return td(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:s(e)||!isNaN(+e)?(u={},t?u[t]=+e:u.milliseconds=+e):(d=t_.exec(e))?(o="-"===d[1]?-1:1,u={y:0,d:ep(d[2])*o,h:ep(d[3])*o,m:ep(d[4])*o,s:ep(d[5])*o,ms:ep(tp(1e3*d[6]))*o}):(d=tb.exec(e))?(o="-"===d[1]?-1:1,u={y:tw(d[2],o),M:tw(d[3],o),w:tw(d[4],o),d:tw(d[5],o),h:tw(d[6],o),m:tw(d[7],o),s:tw(d[8],o)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(r=ta(u.from),i=ta(u.to),c=r.isValid()&&i.isValid()?(i=tg(i,r),r.isBefore(i)?a=tC(r,i):((a=tC(i,r)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(u={}).ms=c.milliseconds,u.M=c.months),l=new tu(u),td(e)&&n(e,"_locale")&&(l._locale=e._locale),td(e)&&n(e,"_isValid")&&(l._isValid=e._isValid),l}function tw(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function tC(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=t-e.clone().add(r.months,"M"),r}function tE(e,t){return function(r,i){var n;return null===i||isNaN(+i)||(k(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=r,r=i,i=n),tk(this,tS(r,i),e),this}}function tk(e,r,i,n){var a=r._milliseconds,o=tp(r._days),s=tp(r._months);e.isValid()&&(n=null==n||n,s&&eA(e,eb(e,"Month")+s*i),o&&eS(e,"Date",eb(e,"Date")+o*i),a&&e._d.setTime(e._d.valueOf()+a*i),n&&t.updateOffset(e,o||s))}tS.fn=tu.prototype,tS.invalid=function(){return tS(NaN)};var tA=tE(1,"add"),tP=tE(-1,"subtract");function tI(e){return"string"==typeof e||e instanceof String}function tT(e,t){if(e.date()<t.date())return-tT(t,e);var r,i=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(i,"months");return r=t-n<0?(t-n)/(n-e.clone().add(i-1,"months")):(t-n)/(e.clone().add(i+1,"months")-n),-(i+r)||0}function tO(e){var t;return void 0===e?this._locale._abbr:(null!=(t=eQ(e))&&(this._locale=t),this)}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tD=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function tR(){return this._locale}function tM(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-126227808e5:new Date(e,t,r).valueOf()}function tN(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-126227808e5:Date.UTC(e,t,r)}function tx(e,t){return t.erasAbbrRegex(e)}function tU(){var e,t,r,i,n,a=[],o=[],s=[],l=[],c=this.eras();for(e=0,t=c.length;e<t;++e)r=eu(c[e].name),i=eu(c[e].abbr),n=eu(c[e].narrow),o.push(r),a.push(i),s.push(n),l.push(r),l.push(i),l.push(n);this._erasRegex=RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=RegExp("^("+s.join("|")+")","i")}function tB(e,t){N(0,[e,e.length],0,t)}function tF(e,t,r,i,n){var a;return null==e?eM(this,i,n).year:(t>(a=eN(e,i,n))&&(t=a),tL.call(this,e,t,r,i,n))}function tL(e,t,r,i,n){var a=eR(e,t,r,i,n),o=eO(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}N("N",0,0,"eraAbbr"),N("NN",0,0,"eraAbbr"),N("NNN",0,0,"eraAbbr"),N("NNNN",0,0,"eraName"),N("NNNNN",0,0,"eraNarrow"),N("y",["y",1],"yo","eraYear"),N("y",["yy",2],0,"eraYear"),N("y",["yyy",3],0,"eraYear"),N("y",["yyyy",4],0,"eraYear"),ec("N",tx),ec("NN",tx),ec("NNN",tx),ec("NNNN",function(e,t){return t.erasNameRegex(e)}),ec("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),em(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,i){var n=r._locale.erasParse(e,i,r._strict);n?p(r).era=n:p(r).invalidEra=e}),ec("y",er),ec("yy",er),ec("yyy",er),ec("yyyy",er),ec("yo",function(e,t){return t._eraYearOrdinalRegex||er}),em(["y","yy","yyy","yyyy"],0),em(["yo"],function(e,t,r,i){var n;r._locale._eraYearOrdinalRegex&&(n=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[0]=r._locale.eraYearOrdinalParse(e,n):t[0]=parseInt(e,10)}),N(0,["gg",2],0,function(){return this.weekYear()%100}),N(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tB("gggg","weekYear"),tB("ggggg","weekYear"),tB("GGGG","isoWeekYear"),tB("GGGGG","isoWeekYear"),ec("G",ei),ec("g",ei),ec("GG",J,z),ec("gg",J,z),ec("GGGG",ee,$),ec("gggg",ee,$),ec("GGGGG",et,G),ec("ggggg",et,G),ef(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,i){t[i.substr(0,2)]=ep(e)}
1),ef(["gg","GG"],function(e,r,i,n){r[n]=t.parseTwoDigitYear(e)}),N("Q",0,"Qo","quarter"),ec("Q",W),em("Q",function(e,t){t[1]=(ep(e)-1)*3}),N("D",["DD",2],"Do","date"),ec("D",J,es),ec("DD",J,z),ec("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),em(["D","DD"],2),em("Do",function(e,t){t[2]=ep(e.match(J)[0])});var tj=e_("Date",!0);N("DDD",["DDDD",3],"DDDo","dayOfYear"),ec("DDD",X),ec("DDDD",K),em(["DDD","DDDD"],function(e,t,r){r._dayOfYear=ep(e)}),N("m",["mm",2],0,"minute"),ec("m",J,el),ec("mm",J,z),em(["m","mm"],4);var tV=e_("Minutes",!1);N("s",["ss",2],0,"second"),ec("s",J,el),ec("ss",J,z),em(["s","ss"],5);var tq=e_("Seconds",!1);for(N("S",0,0,function(){return~~(this.millisecond()/100)}),N(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,function(){return 10*this.millisecond()}),N(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),N(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),N(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),N(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),N(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ec("S",X,W),ec("SS",X,z),ec("SSS",X,K),f="SSSS";f.length<=9;f+="S")ec(f,er);function tY(e,t){t[6]=ep(("0."+e)*1e3)}for(f="S";f.length<=9;f+="S")em(f,tY);g=e_("Milliseconds",!1),N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");var tH=b.prototype;function tW(e){return e}tH.add=tA,tH.calendar=function(e,o){if(1==arguments.length)if(arguments[0]){var c,u,d,p;if(c=arguments[0],S(c)||l(c)||tI(c)||s(c)||(d=r(u=c),p=!1,d&&(p=0===u.filter(function(e){return!s(e)&&tI(u)}).length),d&&p)||function(e){var t,r,o=i(e)&&!a(e),s=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=l.length;for(t=0;t<c;t+=1)r=l[t],s=s||n(e,r);return o&&s}(c)||null==c)e=arguments[0],o=void 0;else(function(e){var t,r,o=i(e)&&!a(e),s=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<l.length;t+=1)r=l[t],s=s||n(e,r);return o&&s})(arguments[0])&&(o=arguments[0],e=void 0)}else e=void 0,o=void 0;var h=e||ta(),m=tg(h,this).startOf("day"),f=t.calendarFormat(this,m)||"sameElse",g=o&&(A(o[f])?o[f].call(this,h):o[f]);return this.format(g||this.localeData().calendar(f,this,ta(h)))},tH.clone=function(){return new b(this)},tH.diff=function(e,t,r){var i,n,a;if(!this.isValid()||!(i=tg(e,this)).isValid())return NaN;switch(n=(i.utcOffset()-this.utcOffset())*6e4,t=F(t)){case"year":a=tT(this,i)/12;break;case"month":a=tT(this,i);break;case"quarter":a=tT(this,i)/3;break;case"second":a=(this-i)/1e3;break;case"minute":a=(this-i)/6e4;break;case"hour":a=(this-i)/36e5;break;case"day":a=(this-i-n)/864e5;break;case"week":a=(this-i-n)/6048e5;break;default:a=this-i}return r?a:ed(a)},tH.endOf=function(e){var r,i;if(void 0===(e=F(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?tN:tM,e){case"year":r=i(this.year()+1,0,1)-1;break;case"quarter":r=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":r=i(this.year(),this.month()+1,1)-1;break;case"week":r=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":r=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":r=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":r=this._d.valueOf(),r+=36e5-((r+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5-1;break;case"minute":r=this._d.valueOf(),r+=6e4-(r%6e4+6e4)%6e4-1;break;case"second":r=this._d.valueOf(),r+=1e3-(r%1e3+1e3)%1e3-1}return this._d.setTime(r),t.updateOffset(this,!0),this},tH.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var r=x(this,e);return this.localeData().postformat(r)},tH.from=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||ta(e).isValid())?tS({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tH.fromNow=function(e){return this.from(ta(),e)},tH.to=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||ta(e).isValid())?tS({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tH.toNow=function(e){return this.to(ta(),e)},tH.get=function(e){return A(this[e=F(e)])?this[e]():this},tH.invalidAt=function(){return p(this).overflow},tH.isAfter=function(e,t){var r=S(e)?e:ta(e);return!!(this.isValid()&&r.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf())},tH.isBefore=function(e,t){var r=S(e)?e:ta(e);return!!(this.isValid()&&r.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf())},tH.isBetween=function(e,t,r,i){var n=S(e)?e:ta(e),a=S(t)?t:ta(t);return!!(this.isValid()&&n.isValid()&&a.isValid())&&("("===(i=i||"()")[0]?this.isAfter(n,r):!this.isBefore(n,r))&&(")"===i[1]?this.isBefore(a,r):!this.isAfter(a,r))},tH.isSame=function(e,t){var r,i=S(e)?e:ta(e);return!!(this.isValid()&&i.isValid())&&("millisecond"===(t=F(t)||"millisecond")?this.valueOf()===i.valueOf():(r=i.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf()))},tH.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},tH.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},tH.isValid=function(){return h(this)},tH.lang=tD,tH.locale=tO,tH.localeData=tR,tH.max=ts,tH.min=to,tH.parsingFlags=function(){return u({},p(this))},tH.set=function(e,t){if("object"==typeof e){var r,i=function(e){var t,r=[];for(t in e)n(e,t)&&r.push({unit:t,priority:Y[t]});return r.sort(function(e,t){return e.priority-t.priority}),r}(e=L(e)),a=i.length;for(r=0;r<a;r++)this[i[r].unit](e[i[r].unit])}else if(A(this[e=F(e)]))return this[e](t);return this},tH.startOf=function(e){var r,i;if(void 0===(e=F(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?tN:tM,e){case"year":r=i(this.year(),0,1);break;case"quarter":r=i(this.year(),this.month()-this.month()%3,1);break;case"month":r=i(this.year(),this.month(),1);break;case"week":r=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":r=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":r=i(this.year(),this.month(),this.date());break;case"hour":r=this._d.valueOf(),r-=((r+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5;break;case"minute":r=this._d.valueOf(),r-=(r%6e4+6e4)%6e4;break;case"second":r=this._d.valueOf(),r-=(r%1e3+1e3)%1e3}return this._d.setTime(r),t.updateOffset(this,!0),this},tH.subtract=tP,tH.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},tH.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},tH.toDate=function(){return new Date(this.valueOf())},tH.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,r=t?this.clone().utc():this;if(0>r.year()||r.year()>9999)return x(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");
1if(A(Date.prototype.toISOString))if(t)return this.toDate().toISOString();else return new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",x(r,"Z"));return x(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},tH.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,r,i="moment",n="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),e="["+i+'("]',t=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",r=n+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+r)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(tH[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),tH.toJSON=function(){return this.isValid()?this.toISOString():null},tH.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},tH.unix=function(){return Math.floor(this.valueOf()/1e3)},tH.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},tH.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},tH.eraName=function(){var e,t,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].name;return""},tH.eraNarrow=function(){var e,t,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].narrow;return""},tH.eraAbbr=function(){var e,t,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].abbr;return""},tH.eraYear=function(){var e,r,i,n,a=this.localeData().eras();for(e=0,r=a.length;e<r;++e)if(i=a[e].since<=a[e].until?1:-1,n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until||a[e].until<=n&&n<=a[e].since)return(this.year()-t(a[e].since).year())*i+a[e].offset;return this.year()},tH.year=ev,tH.isLeapYear=function(){return eg(this.year())},tH.weekYear=function(e){return tF.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},tH.isoWeekYear=function(e){return tF.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},tH.quarter=tH.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)},tH.month=eP,tH.daysInMonth=function(){return ew(this.year(),this.month())},tH.week=tH.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add((e-t)*7,"d")},tH.isoWeek=tH.isoWeeks=function(e){var t=eM(this,1,4).week;return null==e?t:this.add((e-t)*7,"d")},tH.weeksInYear=function(){var e=this.localeData()._week;return eN(this.year(),e.dow,e.doy)},tH.weeksInWeekYear=function(){var e=this.localeData()._week;return eN(this.weekYear(),e.dow,e.doy)},tH.isoWeeksInYear=function(){return eN(this.year(),1,4)},tH.isoWeeksInISOWeekYear=function(){return eN(this.isoWeekYear(),1,4)},tH.date=tj,tH.day=tH.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,r,i=eb(this,"Day");return null==e?i:(t=e,r=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=r.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-i,"d"))},tH.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},tH.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,r=(t=this.localeData(),"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?r:r-7)},tH.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},tH.hour=tH.hours=eH,tH.minute=tH.minutes=tV,tH.second=tH.seconds=tq,tH.millisecond=tH.milliseconds=g,tH.utcOffset=function(e,r,i){var n,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?a:ty(this);if("string"==typeof e){if(null===(e=tf(ea,e)))return this}else 16>Math.abs(e)&&!i&&(e*=60);return!this._isUTC&&r&&(n=ty(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),a!==e&&(!r||this._changeInProgress?tk(this,tS(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},tH.utc=function(e){return this.utcOffset(0,e)},tH.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ty(this),"m")),this},tH.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=tf(en,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},tH.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?ta(e).utcOffset():0,(this.utcOffset()-e)%60==0)},tH.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tH.isLocal=function(){return!!this.isValid()&&!this._isUTC},tH.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tH.isUtc=tv,tH.isUTC=tv,tH.zoneAbbr=function(){return this._isUTC?"UTC":""},tH.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},tH.dates=C("dates accessor is deprecated. Use date instead.",tj),tH.months=C("months accessor is deprecated. Use month instead",eP),tH.years=C("years accessor is deprecated. Use year instead",ev),tH.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),tH.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=ti(t))._a?(e=t._isUTC?d(t._a):ta(t._a),this._isDSTShifted=this.isValid()&&function(e,t,r){var i,n=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(i=0;i<n;i++)ep(e[i])!==ep(t[i])&&o++;return o+a}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var tz=I.prototype;function tK(e,t,r,i){var n=eQ(),a=d().set(i,t);return n[r](a,e)}function t$(e,t,r){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return tK(e,t,r,"month");var i,n=[];for(i=0;i<12;i++)n[i]=tK(e,i,r,"month");return n}
1function tG(e,t,r,i){"boolean"==typeof e||(r=t=e,e=!1),s(t)&&(r=t,t=void 0),t=t||"";var n,a=eQ(),o=e?a._week.dow:0,l=[];if(null!=r)return tK(t,(r+o)%7,i,"day");for(n=0;n<7;n++)l[n]=tK(t,(n+o)%7,i,"day");return l}tz.calendar=function(e,t,r){var i=this._calendar[e]||this._calendar.sameElse;return A(i)?i.call(t,r):i},tz.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(O).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},tz.invalidDate=function(){return this._invalidDate},tz.ordinal=function(e){return this._ordinal.replace("%d",e)},tz.preparse=tW,tz.postformat=tW,tz.relativeTime=function(e,t,r,i){var n=this._relativeTime[r];return A(n)?n(e,t,r,i):n.replace(/%d/i,e)},tz.pastFuture=function(e,t){var r=this._relativeTime[e>0?"future":"past"];return A(r)?r(t):r.replace(/%s/i,t)},tz.set=function(e){var t,r;for(r in e)n(e,r)&&(A(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},tz.eras=function(e,r){var i,n,a,o=this._eras||eQ("en")._eras;for(i=0,n=o.length;i<n;++i)switch("string"==typeof o[i].since&&(a=t(o[i].since).startOf("day"),o[i].since=a.valueOf()),typeof o[i].until){case"undefined":o[i].until=Infinity;break;case"string":a=t(o[i].until).startOf("day").valueOf(),o[i].until=a.valueOf()}return o},tz.erasParse=function(e,t,r){var i,n,a,o,s,l=this.eras();for(i=0,e=e.toUpperCase(),n=l.length;i<n;++i)if(a=l[i].name.toUpperCase(),o=l[i].abbr.toUpperCase(),s=l[i].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[i];break;case"NNNN":if(a===e)return l[i];break;case"NNNNN":if(s===e)return l[i]}else if([a,o,s].indexOf(e)>=0)return l[i]},tz.erasConvertYear=function(e,r){var i=e.since<=e.until?1:-1;return void 0===r?t(e.since).year():t(e.since).year()+(r-e.offset)*i},tz.erasAbbrRegex=function(e){return n(this,"_erasAbbrRegex")||tU.call(this),e?this._erasAbbrRegex:this._erasRegex},tz.erasNameRegex=function(e){return n(this,"_erasNameRegex")||tU.call(this),e?this._erasNameRegex:this._erasRegex},tz.erasNarrowRegex=function(e){return n(this,"_erasNarrowRegex")||tU.call(this),e?this._erasNarrowRegex:this._erasRegex},tz.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||eE).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},tz.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[eE.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},tz.monthsParse=function(e,t,r){var i,n,a;if(this._monthsParseExact)return ek.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(n=d([2e3,i]),r&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),r||this._monthsParse[i]||(a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[i]=RegExp(a.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(r&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!r&&this._monthsParse[i].test(e))return i}},tz.monthsRegex=function(e){return this._monthsParseExact?(n(this,"_monthsRegex")||eI.call(this),e)?this._monthsStrictRegex:this._monthsRegex:(n(this,"_monthsRegex")||(this._monthsRegex=eo),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},tz.monthsShortRegex=function(e){return this._monthsParseExact?(n(this,"_monthsRegex")||eI.call(this),e)?this._monthsShortStrictRegex:this._monthsShortRegex:(n(this,"_monthsShortRegex")||(this._monthsShortRegex=eo),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},tz.week=function(e){return eM(e,this._week.dow,this._week.doy).week}
vendor: 9,170 bytes, line 1
1,tz.firstDayOfYear=function(){return this._week.doy},tz.firstDayOfWeek=function(){return this._week.dow},tz.weekdays=function(e,t){var i=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?ex(i,this._week.dow):e?i[e.day()]:i},tz.weekdaysMin=function(e){return!0===e?ex(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},tz.weekdaysShort=function(e){return!0===e?ex(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},tz.weekdaysParse=function(e,t,r){var i,n,a;if(this._weekdaysParseExact)return eB.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(n=d([2e3,1]).day(i),r&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[i]=RegExp(a.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(r&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(r&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;else if(!r&&this._weekdaysParse[i].test(e))return i}},tz.weekdaysRegex=function(e){return this._weekdaysParseExact?(n(this,"_weekdaysRegex")||eF.call(this),e)?this._weekdaysStrictRegex:this._weekdaysRegex:(n(this,"_weekdaysRegex")||(this._weekdaysRegex=eo),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},tz.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(n(this,"_weekdaysRegex")||eF.call(this),e)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(n(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=eo),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},tz.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(n(this,"_weekdaysRegex")||eF.call(this),e)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(n(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=eo),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},tz.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},tz.meridiem=function(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"},eJ("en",{eras:[{since:"0001-01-01",until:Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=1===ep(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+r}}),t.lang=C("moment.lang is deprecated. Use moment.locale instead.",eJ),t.langData=C("moment.langData is deprecated. Use moment.localeData instead.",eQ);var tJ=Math.abs;function tZ(e,t,r,i){var n=tS(t,r);return e._milliseconds+=i*n._milliseconds,e._days+=i*n._days,e._months+=i*n._months,e._bubble()}function tQ(e){return e<0?Math.floor(e):Math.ceil(e)}function tX(e){return 4800*e/146097}function t0(e){return 146097*e/4800}function t1(e){return function(){return this.as(e)}}var t2=t1("ms"),t3=t1("s"),t6=t1("m"),t4=t1("h"),t5=t1("d"),t8=t1("w"),t9=t1("M"),t7=t1("Q"),re=t1("y");function rt(e){return function(){return this.isValid()?this._data[e]:NaN}}var rr=rt("milliseconds"),ri=rt("seconds"),rn=rt("minutes"),ra=rt("hours"),ro=rt("days"),rs=rt("months"),rl=rt("years"),rc=Math.round,ru={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function rd(e,t,r,i,n){return n.relativeTime(t||1,!!r,e,i)}var rp=Math.abs;function rh(e){return(e>0)-(e<0)||+e}function rm(){if(!this.isValid())return this.localeData().invalidDate();var e,t,r,i,n,a,o,s,l=rp(this._milliseconds)/1e3,c=rp(this._days),u=rp(this._months),d=this.asSeconds();return d?(e=ed(l/60),t=ed(e/60),l%=60,e%=60,r=ed(u/12),u%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",n=d<0?"-":"",a=rh(this._months)!==rh(d)?"-":"",o=rh(this._days)!==rh(d)?"-":"",s=rh(this._milliseconds)!==rh(d)?"-":"",n+"P"+(r?a+r+"Y":"")+(u?a+u+"M":"")+(c?o+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+i+"S":"")):"P0D"}var rf=tu.prototype;return rf.isValid=function(){return this._isValid},rf.abs=function(){var e=this._data;return this._milliseconds=tJ(this._milliseconds),this._days=tJ(this._days),this._months=tJ(this._months),e.milliseconds=tJ(e.milliseconds),e.seconds=tJ(e.seconds),e.minutes=tJ(e.minutes),e.hours=tJ(e.hours),e.months=tJ(e.months),e.years=tJ(e.years),this},rf.add=function(e,t){return tZ(this,e,t,1)},rf.subtract=function(e,t){return tZ(this,e,t,-1)},rf.as=function(e){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if("month"===(e=F(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,r=this._months+tX(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(t0(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw Error("Unknown unit "+e)}},rf.asMilliseconds=t2,rf.asSeconds=t3,rf.asMinutes=t6,rf.asHours=t4,rf.asDays=t5,rf.asWeeks=t8,rf.asMonths=t9,rf.asQuarters=t7,rf.asYears=re,rf.valueOf=t2,rf._bubble=function(){var e,t,r,i,n,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*tQ(t0(s)+o),o=0,s=0),l.milliseconds=a%1e3,l.seconds=(e=ed(a/1e3))%60,l.minutes=(t=ed(e/60))%60,l.hours=(r=ed(t/60))%24,o+=ed(r/24),s+=n=ed(tX(o)),o-=tQ(t0(n)),i=ed(s/12),s%=12,l.days=o,l.months=s,l.years=i,this},rf.clone=function(){return tS(this)},rf.get=function(e){return e=F(e),this.isValid()?this[e+"s"]():NaN},rf.milliseconds=rr,rf.seconds=ri,rf.minutes=rn,rf.hours=ra,rf.days=ro,rf.weeks=function(){return ed(this.days()/7)},rf.months=rs,rf.years=rl,rf.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var r,i,n,a,o,s,l,c,u,d,p,h,m,f=!1,g=ru;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(f=e),"object"==typeof t&&(g=Object.assign({},ru,t),null!=t.s&&null==t.ss&&(g.ss=t.s-1)),h=this.localeData(),r=!f,i=g,n=tS(this).abs(),a=rc(n.as("s")),o=rc(n.as("m")),s=rc(n.as("h")),l=rc(n.as("d")),c=rc(n.as("M")),u=rc(n.as("w")),d=rc(n.as("y")),p=a<=i.ss&&["s",a]||a<i.s&&["ss",a]||o<=1&&["m"]||o<i.m&&["mm",o]||s<=1&&["h"]||s<i.h&&["hh",s]||l<=1&&["d"]||l<i.d&&["dd",l],null!=i.w&&(p=p||u<=1&&["w"]||u<i.w&&["ww",u]),(p=p||c<=1&&["M"]||c<i.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=r,p[3]=+this>0,p[4]=h,m=rd.apply(null,p),f&&(m=h.pastFuture(+this,m)),h.postformat(m)},rf.toISOString=rm,rf.toString=rm,rf.toJSON=rm,rf.locale=tO,rf.localeData=tR,rf.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",rm),rf.lang=tD,N("X",0,0,"unix"),N("x",0,0,"valueOf"),ec("x",ei),ec("X",/[+-]?\d+(\.\d{1,3})?/),em("X",function(e,t,r){r._d=new Date(1e3*parseFloat(e))}),em("x",function(e,t,r){r._d=new Date(ep(e))}),t.version="2.30.1",j=ta,t.fn=tH,t.min=function(){var e=[].slice.call(arguments,0);return tl("isBefore",e)},t.max=function(){var e=[].slice.call(arguments,0);return tl("isAfter",e)},t.now=function(){return Date.now?Date.now():+new Date},t.utc=d,t.unix=function(e){return ta(1e3*e)},t.months=function(e,t){return t$(e,t,"months")},t.isDate=l,t.locale=eJ,t.invalid=m,t.duration=tS,t.isMoment=S,t.weekdays=function(e,t,r){return tG(e,t,r,"weekdays")},t.parseZone=function(){return ta.apply(null,arguments).parseZone()},t.localeData=eQ,t.isDuration=td,t.monthsShort=function(e,t){return t$(e,t,"monthsShort")},t.weekdaysMin=function(e,t,r){return tG(e,t,r,"weekdaysMin")},t.defineLocale=eZ,t.updateLocale=function(e,t){if(null!=t){var r,i,n=eW;null!=ez[e]&&null!=ez[e].parentLocale?ez[e].set(P(ez[e]._config,t)):(null!=(i=eG(e))&&(n=i._config),t=P(n,t),null==i&&(t.abbr=e),(r=new I(t)).parentLocale=ez[e],ez[e]=r),eJ(e)}else null!=ez[e]&&(null!=ez[e].parentLocale?(ez[e]=ez[e].parentLocale,e===eJ()&&eJ(e)):null!=ez[e]&&delete ez[e]);return ez[e]},t.locales=function(){return H(ez)},t.weekdaysShort=function(e,t,r){return tG(e,t,r,"weekdaysShort")},t.normalizeUnits=F,t.relativeTimeRounding=function(e){return void 0===e?rc:"function"==typeof e&&(rc=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==ru[e]&&(void 0===t?ru[e]:(ru[e]=t,"s"===e&&(ru.ss=t-1),!0))},t.calendarFormat=function(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"},t.prototype=tH,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t}()},13112:(e,t,r)=>{"use strict";var i=r(27496);e.exports=function(e){if(i.isFormData(e)&&i.isFunction(e.entries)){var t={};
1return i.forEachEntry(e,function(e,r){!function e(t,r,n,a){var o=t[a++];if("__proto__"===o)return!0;var s=Number.isFinite(+o),l=a>=t.length;return(o=!o&&i.isArray(n)?n.length:o,l)?i.hasOwnProperty(n,o)?n[o]=[n[o],r]:n[o]=r:(n[o]&&i.isObject(n[o])||(n[o]=[]),e(t,r,n[o],a)&&i.isArray(n[o])&&(n[o]=function(e){var t,r,i={},n=Object.keys(e),a=n.length;for(t=0;t<a;t++)i[r=n[t]]=e[r];return i}(n[o]))),!s}(i.matchAll(/\w+|\[(\w*)]/g,e).map(function(e){return"[]"===e[0]?"":e[1]||e[0]}),r,t,0)}),t}return null}},15738:(e,t,r)=>{"use strict";var i=r(65865),n=r(81073),a=r(18963),o=r(9945),s=r(22009)||o||a;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+n(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=s()),e.set(t,r)}};return t}},16318:(e,t,r)=>{"use strict";var i=r(25037);e.exports=function(e,t,r){var n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new i("Request failed with status code "+r.status,[i.ERR_BAD_REQUEST,i.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}},16953:(e,t,r)=>{"use strict";r.d(t,{S:()=>i,Z9:()=>n,ZA:()=>o,qs:()=>a});let i="boom-activation-fee",n=4,a="boom-installation-type",o={bc:"bcExtras",ai:"aiExtras",network:"networkExtras",voice:"voiceExtras",tv:"tvExtras",exclusiveSupport:"exclusiveSupportExtras",insurance:"insuranceExtras",connectivity:"connectivity",voiceDevice:"voiceDeviceExtras",prioritySupport:"prioritySupportExtras",tvAddon:"tvAddonExtras",fixIp:"fixIpExtras",siteSurveyOneTime:"siteSurveyOneTimeExtras",installationOneTime:"installationOneTimeExtras",activationOneTime:"activationOneTimeExtras"}},17424:(e,t,r)=>{"use strict";var i=r(27496),n=r(35732);function a(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var o,s=e.indexOf("#");-1!==s&&(e=e.slice(0,s));var l=r&&r.encode||a,c=r&&r.serialize;return(o=c?c(t,r):i.isURLSearchParams(t)?t.toString():new n(t,r).toString(l))&&(e+=(-1===e.indexOf("?")?"?":"&")+o),e}},17753:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},17915:e=>{e.exports={version:"0.30.3"}},18e3:(e,t,r)=>{"use strict";var i=r(35732);e.exports="undefined"!=typeof URLSearchParams?URLSearchParams:i},18963:(e,t,r)=>{"use strict";var i=r(81073),n=r(65865),a=function(e,t,r){for(var i,n=e;null!=(i=n.next);n=i)if(i.key===t)return n.next=i.next,r||(i.next=e.next,e.next=i),i},o=function(e,t){if(e){var r=a(e,t);return r&&r.value}},s=function(e,t,r){var i=a(e,t);i?i.value=r:e.next={key:t,next:e.next,value:r}},l=function(e,t){if(e)return a(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+i(e))},delete:function(t){var r=l(e,t);return r&&e&&!e.next&&(e=void 0),!!r},get:function(t){return o(e,t)},has:function(t){var r;return!!(r=e)&&!!a(r,t)},set:function(t,r){e||(e={next:void 0}),s(e,t,r)}};return t}},21204:(e,t,r)=>{"use strict";r.d(t,{aV:()=>n,bw:()=>a,eH:()=>o,yw:()=>s});var i=r(81237);let n=(e,t,r)=>e?"yearly"!==t?e.monthlyDiscountedPrice||e.listPrice||"":r&&e.loyaltyDiscountedPrice||e.yearlyDiscountedPrice||e.listPrice||"":"",a=(e,t)=>(e||"").replace(/\$?\{(\w+)\}/g,(e,r)=>r in t?String(t[r]):e),o=function(e,t,r,a){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s="yearly"===t,l=n(e,t,r)||"0",c=(0,i.fE)(l),u=(0,i.fE)((null==e?void 0:e.listPrice)||"0"),d=("yearly"===t?null==e?void 0:e.yearlyContractDuration:null==e?void 0:e.monthlyContractDuration)||1,p=c*a,h=c*d+o;return{isYearly:s,unitPriceStr:l,unitPrice:c,listPrice:u,contractDuration:d,lineTotal:p,billedTotal:p*(s?12:1),analyticsItemPrice:h,analyticsTotalValue:h*a}},s=(e,t)=>{let{isYearly:r,unitPriceStr:n,billedTotal:o}=t;return{discountLabel:a(r?e.discountDescriptionYearly:e.discountDescriptionMonthly,{total:(0,i.kp)(o),monthlyPrice:(0,i.S3)(n)}),billedLabel:r?a(e.yearlyBilledLabel,{total:(0,i.kp)(o)}):""}}},22009:(e,t,r)=>{"use strict";var i=r(45525),n=r(73442),a=r(81073),o=r(9945),s=r(65865),l=i("%WeakMap%",!0),c=n("WeakMap.prototype.get",!0),u=n("WeakMap.prototype.set",!0),d=n("WeakMap.prototype.has",!0),p=n("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+a(e))},delete:function(r){if(l&&r&&("object"==typeof r||"function"==typeof r)){if(e)return p(e,r)}else if(o&&t)return t.delete(r);return!1},get:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&e?c(e,r):t&&t.get(r)},has:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&e?d(e,r):!!t&&t.has(r)},set:function(r,i){l&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new l),u(e,r,i)):o&&(t||(t=o()),t.set(r,i))}};return r}:o},25037:(e,t,r)=>{"use strict";var i=r(27496);function n(e,t,r,i,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),i&&(this.request=i),n&&(this.response=n)}i.inherits(n,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var a=n.prototype,o={};
1["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(function(e){o[e]={value:e}}),Object.defineProperties(n,o),Object.defineProperty(a,"isAxiosError",{value:!0}),n.from=function(e,t,r,o,s,l){var c=Object.create(a);return i.toFlatObject(e,c,function(e){return e!==Error.prototype}),n.call(c,e.message,t,r,o,s),c.cause=e,c.name=e.name,l&&Object.assign(c,l),c},e.exports=n},26956:(e,t,r)=>{"use strict";r.d(t,{An:()=>a,Ay:()=>c,_S:()=>o,eM:()=>s,fu:()=>l,vB:()=>n});let i=(0,r(10339).Z0)({name:"bundleItems",initialState:{bundleCartItems:[],isVatExcluded:!1},reducers:{initBundleItemsProducts:(e,t)=>{e.bundleCartItems=t.payload.items,e.isVatExcluded=t.payload.isVatExcluded},addBundleProducts:(e,t)=>{e.bundleCartItems.push(t.payload.cartItem),e.isVatExcluded=t.payload.isVatExcluded},removeBundleProduct:(e,t)=>{e.bundleCartItems=e.bundleCartItems.filter(e=>e.id!==t.payload.id)},addBundleProductInstance:(e,t)=>{e.bundleCartItems.forEach(e=>{e.id===t.payload.productId&&e&&(e.quantity+=1)})},removeBundleProductInstance:(e,t)=>{e.bundleCartItems.forEach(e=>{e.id===t.payload.productId&&(e.quantity-=1)})}}}),{initBundleItemsProducts:n,addBundleProducts:a,removeBundleProduct:o,addBundleProductInstance:s,removeBundleProductInstance:l}=i.actions,c=i.reducer},27437:(e,t,r)=>{"use strict";var i=r(17915).version,n=r(25037),a={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){a[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var o={};a.transitional=function(e,t,r){function a(e,t){return"[Axios v"+i+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,i,s){if(!1===e)throw new n(a(i," has been removed"+(t?" in "+t:"")),n.ERR_DEPRECATED);return t&&!o[i]&&(o[i]=!0,console.warn(a(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new n("options must be an object",n.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(e),a=i.length;a-- >0;){var o=i[a],s=t[o];if(s){var l=e[o],c=void 0===l||s(l,o,e);if(!0!==c)throw new n("option "+o+" must be "+c,n.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new n("Unknown option "+o,n.ERR_BAD_OPTION)}},validators:a}},27496:(e,t,r)=>{"use strict";var i,n=r(72442),a=Object.prototype.toString,o=function(e){return function(t){var r=a.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())}}(Object.create(null));function s(e){return e=e.toLowerCase(),function(t){return o(t)===e}}function l(e){return Array.isArray(e)}function c(e){return void 0===e}var u=s("ArrayBuffer");function d(e){return"number"==typeof e}function p(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var m=s("Date"),f=s("File"),g=s("Blob"),y=s("FileList");function v(e){return"[object Function]"===a.call(e)}var _=s("URLSearchParams");function b(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.call(null,e[n],n,e)}var S=function(e){return function(t){return e&&t instanceof e}}("undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array)),w=s("HTMLFormElement");e.exports={isArray:l,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||a.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:d,isObject:p,isPlainObject:h,isEmptyObject:function(e){return e&&0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype},isUndefined:c,isDate:m,isFile:f,isBlob:g,isFunction:v,isStream:function(e){return p(e)&&v(e.pipe)},isURLSearchParams:_,isStandardBrowserEnv:function(){var e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:b,merge:function e(){var t={};function r(r,i){"__proto__"!==i&&"constructor"!==i&&"prototype"!==i&&(h(t[i])&&h(r)?t[i]=e(t[i],r):h(r)?t[i]=e({},r):l(r)?t[i]=r.slice():t[i]=r)}for(var i=0,n=arguments.length;i<n;i++)b(arguments[i],r);return t},extend:function(e,t,r){return b(t,function(t,i){r&&"function"==typeof t?e[i]=n(t,r):e[i]=t}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,i){e.prototype=Object.create(t.prototype,i
1),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r,i){var n,a,o,s={};if(t=t||{},null==e)return t;do{for(a=(n=Object.getOwnPropertyNames(e)).length;a-- >0;)o=n[a],(!i||i(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=!1!==r&&Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:s,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var i=e.indexOf(t,r);return -1!==i&&i===r},toArray:function(e){if(!e)return null;if(l(e))return e;var t=e.length;if(!d(t))return null;for(var r=Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:S,isFileList:y,forEachEntry:function(e,t){for(var r,i=(e&&e[Symbol.iterator]).call(e);(r=i.next())&&!r.done;){var n=r.value;t.call(e,n[0],n[1])}},matchAll:function(e,t){for(var r,i=[];null!==(r=e.exec(t));)i.push(r);return i},isHTMLForm:w,hasOwnProperty:(i=Object.prototype.hasOwnProperty,function(e,t){return i.call(e,t)})}},28113:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var i=r(48501),n=r(81237),a=r(36756),o=r(30683),s=r(39139);class l{constructor(){this.getWebFormItems=(e,t)=>{let r=o.A.getForm(e),i=[];if(t){let e=null==r?void 0:r.querySelectorAll("[data-item=input]"),t=[];null==e||e.forEach(e=>{let r=e.getAttribute("data-label")||"",i=e.getAttribute("data-value")||"";t.push({label:r,value:i})}),i.push({title:"",items:t})}else{let e=null==r?void 0:r.querySelectorAll("[data-item=group]");null==e||e.forEach(e=>{let t=e.querySelector("[data-title]"),r=t&&t.getAttribute("data-title")||"",a=e.querySelectorAll("[data-item=input]"),o=[];a.forEach(e=>{var t,r;if(!(null==e||null==(t=e.getAttribute("name"))?void 0:t.includes("inputCombined"))&&!(null==e||null==(r=e.getAttribute("data-name"))?void 0:r.includes("inputCombined"))){let t=e.getAttribute("data-label")||"",r=e.getAttribute("data-value")||"";"timestamp"===e.getAttribute("data-type")&&(r=(0,n.SI)()),"employeeRange"===e.getAttribute("data-type")&&(r=parseInt(r)),""!==t&&o.push({label:t,value:r})}}),o.length>0&&i.push({title:r,items:o})})}return i},this.getWebformObject=(e,t,r,i,n)=>{let a=this.getWebFormItems(e,n),s=o.A.getForm(e),l=null==s?void 0:s.querySelectorAll("[data-formtitle]"),c="";return null==l||l.forEach(e=>{c=e&&e.getAttribute("data-formtitle")||""}),{email:{storyId:r,to:t},items:a,attachments:i,formTitle:c}},this.submitWebform=(e,t,r,i,a,s,c,u,d)=>{let p=this.getWebformObject(e,t,r,u,d),h=(0,n.Me)(l.submitWebFormService,!0);c?o.A.getCaptchaToken(a,e=>{p.captcha=e,this.submitRequest(h,i,p,(e,t)=>{s(e,t)})}):this.submitRequest(h,i,p,(e,t)=>{s(e,t)})},this.getFormInputs=e=>{let t=o.A.getForm(e),r=[],i={isTestData:!1,numberOfEmployees:"",items:r},a=null==t?void 0:t.querySelectorAll("#companyName"),s=null==t?void 0:t.querySelectorAll("[data-item=input]");return null==s||s.forEach(e=>{if("companyName"!==e.getAttribute("id")){let t=e.getAttribute("data-label")||e.getAttribute("name")||e.getAttribute("data-name")||"",a=e.getAttribute("data-value")||"";"timestamp"===e.getAttribute("data-type")&&(a=(0,n.SI)()),"employeeRange"===e.getAttribute("data-type")&&(i.numberOfEmployees=i.numberOfEmployees&&i.numberOfEmployees+"|"+a.toString()||a.toString()),""!==t&&r.push({label:t,value:a}),"email"===e.getAttribute("type")&&(i.isTestData=a.includes("sunrise.net"))}}),null==a||a.forEach(e=>{if("companyName"===e.getAttribute("id")){let t=e.getAttribute("data-label")||e.getAttribute("name")||e.getAttribute("data-name")||"companyName",n=e.getAttribute("data-value")||"";i.isTestData=i.isTestData&&!0||n.includes("Sunrise GmbH")||n.includes("Testfirma Switzerland GmbH"),""!==t&&r.push({label:t,value:n})}}),i.items=r,i},this.getPardotFormOptions=e=>{let t=o.A.getForm(e),r=null==t?void 0:t.querySelectorAll("[data-item=group]"),i={},a=null==t?void 0:t.querySelectorAll(".hiddeninput");return null==r||r.forEach(e=>{e.querySelectorAll("[data-item=input]").forEach(e=>{var t,r;if(!(null==e||null==(t=e.getAttribute("name"))?void 0:t.includes("inputCombined"))&&!(null==e||null==(r=e.getAttribute("data-name"))?void 0:r.includes("inputCombined"))){let t=e.getAttribute("name")||e.getAttribute("data-name")||"",r=e.getAttribute("data-value")||"";"timestamp"===e.getAttribute("data-type")&&(r=(0,n.SI)()),"employeeRange"===e.getAttribute("data-type")&&(r=parseInt(r)),""!==t&&(i[t]=r)}})}
1),null==a||a.forEach(e=>{let t=e.getAttribute("name")||"",r=e.getAttribute("value")||"";""!==t&&(i[t]=r)}),i},this.submitPardotWebform=(e,t,r,i,a,s)=>{let c={data:{},url:"",captcha:""},u=(0,n.Me)(l.submitPardotWebFormService,!0);c.data=this.getPardotFormOptions(e),c.url=i,s?o.A.getCaptchaToken(r,e=>{c.captcha=e,this.submitRequest(u,t,c,e=>{a(e)})}):this.submitRequest(u,t,c,e=>{a(e)})},this.resolveGenderFromSalutation=(e,t,r)=>{let i=null==e?void 0:e.trim().toLowerCase(),n=t.toLowerCase().split(",").map(e=>e.trim());if(null==n?void 0:n.includes(i))return"M";let a=r.toLowerCase().split(",").map(e=>e.trim());return(null==a?void 0:a.includes(i))?"F":""},this.submitSalesForceWebform=(e,t,r,i,a,c,u)=>{console.log(e);let d=(0,n.Me)(l.submitSalesForceFormService,!0),p=s.i.getState().salesforceReducer.leadForm;if(null===p)return void i(!1);let h={...p};if(h.salutation){let e=this.resolveGenderFromSalutation(null==h?void 0:h.salutation,c||"",u||"");e&&(h.gender=e)}let m={data:h,captcha:""};a?o.A.getCaptchaToken(r,e=>{m.captcha=e,this.submitRequest(d,t,m,e=>{i(e)})}):this.submitRequest(d,t,m,e=>{i(e)})},this.submitRequest=(e,t,r,n)=>{a.A.request(e,i.dF.POST,r,t).then(e=>{if(e.data.errorCode===i.O4.SUCCESS){var t,r;(null==(t=e.data.data)?void 0:t.orderId)?n(!0,null==(r=e.data.data)?void 0:r.orderId):n(!0)}else n(!1)}).catch(()=>{n(!1)})},this.submitToPardot=(e,t,r)=>{let o={data:{},url:"",captcha:""},s=(0,n.Me)(l.submitPardotWebFormService,!0);o.data=t,o.url=e,a.A.request(s,i.dF.POST,o,r)}}}l.submitWebFormService="/api/al/form/submit",l.submitPardotWebFormService="/api/al/form/submit-pardot",l.submitSalesForceFormService="/api/al/form/submit-salesforce";let c=l},28419:(e,t,r)=>{"use strict";var i=r(1643);e.exports=Function.prototype.bind||i},29351:e=>{"use strict";e.exports=Error},29597:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>v,DK:()=>f,E5:()=>u,Tz:()=>m,Z7:()=>y,g5:()=>g,s1:()=>c,tr:()=>_,wn:()=>h});var i=r(10339),n=r(44627),a=r(78730);let o={salutation:"",firstName:"",lastName:"",companyName:"",streetName:"",houseNumber:"",postCode:"",city:"",remark:"",concatAddress:""},s=(0,i.Z0)({name:"eshopAddress",initialState:{businessAddress:{siteId:"",companyName:"",contactInfo:{phoneNumber:"",email:""},primaryAddress:{street:"",city:"",zipCode:"",room:"",floor:"",building:""},idExpiryDate:""},diffrentAddress:o,isDefaultAddress:!0,hasDifferentBillingAddress:!1,hasDifferentShippingAddress:!1,deliveryAddress:o,billingDetails:o},reducers:{updateBusinessAddress:(e,t)=>{e.businessAddress={...e.businessAddress,...t.payload}},updateDiffrentAddress:(e,t)=>{e.diffrentAddress={...e.diffrentAddress,...t.payload}},updateAddressType:(e,t)=>{e.isDefaultAddress=t.payload},apiError:(e,t)=>{e.profileApiError=t.payload},isApiInProgress:(e,t)=>{e.isApiInProgress=t.payload},updateHasDifferentBillingAddress:(e,t)=>{e.hasDifferentBillingAddress=t.payload},updateHasDifferentShippingAddress:(e,t)=>{e.hasDifferentShippingAddress=t.payload},updateBillingDetails:(e,t)=>{e.billingDetails={...e.billingDetails,...t.payload}},updateDeliveryAddress:(e,t)=>{e.deliveryAddress={...e.deliveryAddress,...t.payload}},batchUpdateAddressState:(e,t)=>({...e,...t.payload})}}),{updateBusinessAddress:l,updateDiffrentAddress:c,updateAddressType:u,isApiInProgress:d,apiError:p,updateHasDifferentBillingAddress:h,updateHasDifferentShippingAddress:m,updateBillingDetails:f,updateDeliveryAddress:g,batchUpdateAddressState:y}=s.actions,v=s.reducer,_=(e,t,r)=>async i=>{try{i(d(!0)),i(p(!1));let r=await n.A.getCustomerDetails(e,t);if(r.error)throw r.error;i(l(r[0]))}catch(e){a.A.trackApiErrorEvent(e.response,r),i(p(e)),i(p(!0))}finally{i(d(!1))}}},30683:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var i=r(81237),n=r(39151),a=r(28113),o=r(78730);class s extends a.A{constructor(...e){super(...e),this.validate=(e,t,r)=>{let n=this.getForm(e);if(n&&(n.querySelectorAll(".field-required").length>0||n.querySelectorAll(".field-error").length>0)){let e=n.querySelector(".field-required");if(!t||r){var a,o;let t=null==(a=window.parent)?void 0:a.document.querySelector(".modal");if(t){let e=null==(o=document)?void 0:o.querySelector(".field-required"),r=null==e?void 0:e.getBoundingClientRect().top;r&&(null==t||t.scroll({top:r,behavior:"smooth"}))}else e&&(0,i.PA)(e)}else e&&(0,i.PA)(e);return!1}return!0},this.getValue=(e,t,r)=>{let i=this.getForm(e),n=i?i.querySelector("".concat(r||""," #").concat(t)):null;return n?n.value:""},this.getDataAttribute=(e,t,r,i)=>{let n=this.getForm(e),a=n?n.querySelector("".concat(i||""," #").concat(t)):null;return a&&a.getAttribute("data-".concat(r))||""},this.getForm=e=>document.querySelector("[name=".concat(e,"]")),this.validateCompanyUid=e=>{let t={isValidUid:!1,showNoUid:!0},r=this.getForm(e);if(r&&r.querySelectorAll("#checkouCompanyUid").length>0){let e=r.querySelectorAll("#checkouCompanyUid"),n=r.querySelectorAll("#noUid");
1e.forEach(e=>{let r=e.getAttribute("data-value")||"";(0,i.sX)(r)&&(t.isValidUid=!0,t.showNoUid=!1)}),n&&n.length>0&&(t.showNoUid=!0,n.forEach(e=>{"true"==e.getAttribute("data-value")&&(t.isValidUid=!0)}))}return t},this.validateCompanyData=e=>{let[t]=[!0],r=this.getForm(e);if(r&&r.querySelectorAll("#companyUid").length>0){let i=r.querySelectorAll(".addresssuggestionwrapper [data-item=input]");if(i&&i.forEach(e=>{""===e.getAttribute("id")&&""===e.getAttribute("data-value")&&(t=!1)}),t){let[t]=[""],[a]=[""];if(i&&i.forEach(e=>{if("country-code"===e.getAttribute("id")){let[r]=["country_codes"],i=JSON.parse(n.A.getSessionStorageItem(r)||"{}");void 0!==i[e.getAttribute("value")||""]&&(t=i[e.getAttribute("value")||""],e.setAttribute("data-value",t||""))}}),r&&r.querySelectorAll("#canton").length>0){let i=r.querySelectorAll("#canton");a=this.getDataAttribute(e,"zip-code","value")||"",null==i||i.forEach(e=>{if("canton"===e.getAttribute("id"))if("CH"===t){for(let[t,r]of Object.entries(JSON.parse(n.A.getSessionStorageItem("cantons")||"{}")))if(a&&r.includes(a)){e.setAttribute("data-value",t||"");break}}else e.setAttribute("data-value","")})}}}return t},this.validateBusinessEmail=e=>{let t=new Set(n.A.getSessionStorageItem("excluding-email-list").replaceAll(/ |"/g,"").split(",").filter(e=>e));return!s.inputConstraints["business-email"].test(e)||t.has(e.split("@").pop()||"")},this.getCaptchaToken=(e,t)=>{window.grecaptcha&&window.grecaptcha.execute(e,{action:"submit"}).then(t)},this.validateConstraint=(e,t)=>"none"!==e&&!s.inputConstraints[e].test(t),this.getFileSize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[r]=[1048576];return e<r?(Math.round(e/1024*10**t)/10**t).toFixed(t).replace(".",",")+" KB":(Math.round(e/r*10**t)/10**t).toFixed(t).replace(".",",")+" MB"},this.getInvalidFieldDetails=e=>{let t=e.querySelectorAll(".field-required, .constraint-error, .field-error"),r=[];return t.forEach(e=>{var t;let i=e.querySelector(".errormessage"),n=(null==i||null==(t=i.textContent)?void 0:t.trim())||"Mandatory Field",a=e.querySelector("input, textarea, select"),o=(null==a?void 0:a.getAttribute("name"))||(null==a?void 0:a.getAttribute("id"))||"";if(!o)return void console.warn("[FormService] Validation error found but no input name/id:",e);r.push({message:n,source:o})}),r},this.getValidationErrors=async(e,t,r,i)=>{let n=await this.getForm(e);if(!n)return console.warn("[FormService] Form element not found: ".concat(e)),!1;let a=this.getInvalidFieldDetails(n);if(a.length>0){let e=a.map(e=>e.message).join("|"),n=a.map(e=>e.source).join("|");return o.A.trackContactFormValidationError(t,e,n,r,i||""),!0}return!1},this.trackValidationErrors=(e,t,r)=>{let i=this.getForm(e);if(!i)return console.warn("[FormService] Form element not found: ".concat(e)),!1;let n=this.getInvalidFieldDetails(i);return n.forEach(e=>{let{message:i,source:n}=e;return o.A.trackValidationError(t,i,n,r)}),n.length>0},this.getBoomValidationErrors=async(e,t,r)=>{let i=await this.getForm(e);if(!i)return console.warn("[FormService] Form element not found: ".concat(e)),!1;let n=this.getInvalidFieldDetails(i);if(n.length>0){let e=n.map(e=>e.message).join("|"),i=n.map(e=>e.source).join("|");return o.A.trackValidationError(t,e,i,r),!0}return!1}}}s.inputConstraints={none:/.*/,email:RegExp("^[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])?)+$"),alpha:RegExp("^(?![/-\\s.,]+$)[a-zA-Z0-9'`\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff.,/-\\s]+$"),"phone-number":RegExp("^(?:0(s*[-]s*)?|[0]?)?[7][5-9]d{7}$|^(?:(?:\\+|0{2})41(\\s*[\\-]\\s*)?|[0]?)?[7][5-9]\\d{7}$|^(\\+|0{2})(?!(41))\\d+$"),"company-uid":RegExp("^(CHE-)(\\d{3})(.)(\\d{3})(.)(\\d{3})$"),"business-email":RegExp("^[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])?)+$"),"employee-count":/.*/,"zip-code":RegExp("^[1-9]{1}[0-9]{3}$")};let l=new s},30910:(e,t,r)=>{"use strict";var i=r(82909).hp,n=r(27496),a=r(25037),o=r(93236);function s(e){return n.isPlainObject(e)||n.isArray(e)}function l(e){return n.endsWith(e,"[]")?e.slice(0,-2):e}function c(e,t,r){return e?e.concat(t).map(function(e,t){return e=l(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}var u=n.toFlatObject(n,{},null,function(e){return/^is[A-Z]/.test(e)});e.exports=function(e,t,r){if(!n.isObject(e))throw TypeError("target must be an object");t=t||new(o||FormData);var d,p=(r=n.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!n.isUndefined(t[e])})).metaTokens,h=r.visitor||v,m=r.dots,f=r.indexes,g=(r.Blob||"undefined"!=typeof Blob&&Blob)&&(d=t)&&n.isFunction(d.append)&&"FormData"===d[Symbol.toStringTag]&&d[Symbol.iterator];if(!n.isFunction(h))throw TypeError("visitor must be a function");function y(e){if(null===e)return"";if(n.isDate(e))return e.toISOString();if(!g&&n.isBlob(e))throw new a("Blob is not supported. Use a Buffer instead.");return n.isArrayBuffer(e)||n.isTypedArray(e)?g&&"function"==typeof Blob?new Blob([e]):i.from(e):e}function v(e,r,i){var a,o=e;if(e&&!i&&"object"==typeof e){if(n.endsWith(r,"{}"))r=p?r:r.slice(0,-2),e=JSON.stringify(e);else if(n.isArray(e)&&(a=e,n.isArray(a)&&!a.some(s))||n.isFileList(e)||n.endsWith(r,"[]")&&(o=n.toArray(e)))return r=l(r),o.forEach(function(e,i){n.isUndefined(e)||null===e||t.append(!0===f?c([r],i,m):null===f?r:r+"[]",y(e))}),!1}return!!s(e)||(t.append(c(i,r,m),y(e)),!1)}var _=[],b=Object.assign(u,{defaultVisitor:v,convertValue:y,isVisitable:s});if(!n.isObject(e))throw TypeError("data must be an object");return!function e(r,i){if(!n.isUndefined(r)){if(-1!==_.indexOf(r))throw Error("Circular reference detected in "+i.join("."));
1_.push(r),n.forEach(r,function(r,a){!0===(!(n.isUndefined(r)||null===r)&&h.call(t,r,n.isString(a)?a.trim():a,i,b))&&e(r,i?i.concat(a):[a])}),_.pop()}}(e),t}},30915:(e,t,r)=>{"use strict";var i=r(74290),n=r(74512);e.exports={formats:r(81151),parse:n,stringify:i}},31174:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});class i{static find(e,t,r,i){var n,a;let o=e&&(null==(a=e[t])||null==(n=a.alternates.find(e=>e.lang===r))?void 0:n.path);return o?"/".concat(r,"/").concat(o):t&&"default"===r?"/default/".concat(this.removeStartingSlash(i)):i}static findUrl(e,t,r){return this.find(null==e?void 0:e.links,t,null==e?void 0:e.locale,r)}static findEnglishUrl(e,t,r){return this.find(null==e?void 0:e.links,t,"en",r)}static getLinkId(e,t){var r;return t&&t.links&&(null==(r=t.links[e.id])?void 0:r.id.toString())}static removeTrailingSlash(e){let t=(null==e?void 0:e.endsWith("/"))?null==e?void 0:e.slice(0,-1):e;return t||e}static removeStartingSlash(e){let t=(null==e?void 0:e.startsWith("/"))?null==e?void 0:e.substring(1):e;return t||e}}},31777:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>m,bN:()=>u,d4:()=>S,wA:()=>_});var i=r(14232),n=r(87282),a={notify(){},get:()=>[]},o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,s="undefined"!=typeof navigator&&"ReactNative"===navigator.product,l=o||s?i.useLayoutEffect:i.useEffect;function c(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function u(e,t){if(c(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!c(e[r[i]],t[r[i]]))return!1;return!0}Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var d=Symbol.for("react-redux-context"),p="undefined"!=typeof globalThis?globalThis:{},h=function(){if(!i.createContext)return{};let e=p[d]??=new Map,t=e.get(i.createContext);return t||(t=i.createContext(null),e.set(i.createContext,t)),t}(),m=function(e){let{children:t,context:r,serverState:n,store:o}=e,s=i.useMemo(()=>{let e=function(e,t){let r,i=a,n=0,o=!1;function s(){u.onStateChange&&u.onStateChange()}function l(){if(n++,!r){let t,n;r=e.subscribe(s),t=null,n=null,i={clear(){t=null,n=null},notify(){let e=t;for(;e;)e.callback(),e=e.next},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}}function c(){n--,r&&0===n&&(r(),r=void 0,i.clear(),i=a)}let u={addNestedSub:function(e){l();let t=i.subscribe(e),r=!1;return()=>{r||(r=!0,t(),c())}},notifyNestedSubs:function(){i.notify()},handleChangeWrapper:s,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,l())},tryUnsubscribe:function(){o&&(o=!1,c())},getListeners:()=>i};return u}(o);return{store:o,subscription:e,getServerState:n?()=>n:void 0}},[o,n]),c=i.useMemo(()=>o.getState(),[o]);return l(()=>{let{subscription:e}=s;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[s,c]),i.createElement((r||h).Provider,{value:s},t)};function f(e=h){return function(){return i.useContext(e)}}var g=f();function y(e=h){let t=e===h?g:f(e),r=()=>{let{store:e}=t();return e};return Object.assign(r,{withTypes:()=>r}),r}var v=y(),_=function(e=h){let t=e===h?v:y(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}(),b=(e,t)=>e===t,S=function(e=h){let t=e===h?g:f(e),r=(e,r={})=>{let{equalityFn:a=b}="function"==typeof r?{equalityFn:r}:r,{store:o,subscription:s,getServerState:l}=t();i.useRef(!0);let c=i.useCallback({[e.name]:t=>e(t)}[e.name],[e]),u=(0,n.useSyncExternalStoreWithSelector)(s.addNestedSub,o.getState,l||o.getState,c,a);return i.useDebugValue(u),u};return Object.assign(r,{withTypes:()=>r}),r}()},32675:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>a,ru:()=>n});let i=(0,r(10339).Z0)({name:"ict",initialState:{ictProductData:[]},reducers:{initIctCartProducts:(e,t)=>{e.ictProductData=t.payload}}}),{initIctCartProducts:n}=i.actions,a=i.reducer},34140:(e,t,r)=>{"use strict";var i=r(28419),n=r(71938),a=r(66958);e.exports=r(78121)||i.call(a,n)},34816:(e,t,r)=>{"use strict";var i=r(86558),n=r(61664),a=r(55450);e.exports=i?function(e){return i(e)}:n?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return n(e)}:a?function(e){return a(e)}:null},35732:(e,t,r)=>{"use strict";var i=r(30910);
1function n(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,function(e){return t[e]})}function a(e,t){this._pairs=[],e&&i(e,this,t)}var o=a.prototype;o.append=function(e,t){this._pairs.push([e,t])},o.toString=function(e){var t=e?function(t){return e.call(this,t,n)}:n;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")},e.exports=a},35773:(e,t,r)=>{"use strict";r.d(t,{q:()=>i});var i=function(e){return e.WEBPAGE="webpage",e.AUTH_CUSTOMER_TYPE="mobile_cart",e.AUTH_CUSTOMER_SBP="exist_mobile_auth_sbpbillingaccount",e.CART="exist_mobile_setup",e.DELIVERY_DETAILS="exist_mobile_delivery_details",e.SUMMARY="exist_mobile_summary",e.ORDER_SUBMIT="exist_mobile_order_submitted",e.SETUP="new_mobile_setup",e.COMPANY_DETAILS="new_mobile_company_details",e.PERSONAL_DETAILS="new_mobile_personal_details",e.REVIEW_SUMMARY="new_mobile_summary",e.NEW_MOBILE_ORDER_SUBMITTED="new_mobile_order_submitted",e.MANUAL_CHECKOUT="manual_checkout",e}({})},36756:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(8145),n=r.n(i);class a{request(e,t,r,i,n){return this.client.request({url:e,headers:{"Accept-Language":i+"-CH","Content-Type":"application/json"},method:t,data:r,cancelToken:n,baseURL:"https://www.sunrise.ch/business/"})}get(e,t){return this.client.get(e,t)}constructor(){this.client=n()}}let o=new a},36924:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var i=r(71698),n=r(48501),a=r(36756),o=r(30683),s=r(81237),l=r(39151),c=r(78730),u=r(77626);class d{constructor(){this.getIotCartSessionKey=()=>d.iotCartSessionKey,this.createIotCart=(e,t)=>{let r={items:[]};r.items.push(e),i.A.dispatch({type:"iotcart/add",payload:r}),l.A.setSessionStorageItem(d.iotCartSessionKey,JSON.stringify(r)),window.location.href=t},this.getCart=()=>{if(i.A.getState().iotCart)return i.A.getState().iotCart;let e=l.A.getSessionStorageItem(d.iotCartSessionKey);return e?(i.A.dispatch({type:"iotcart/add",payload:JSON.parse(e)}),i.A.getState().iotCart):null},this.addDynamicItems=e=>{let t=i.A.getState().iotCart,r=[],n=[];return e.forEach(e=>{(null==e?void 0:e.itemType)==="oneTime"?(null==e?void 0:e.item)&&r.push(e.item):(null==e?void 0:e.item)&&n.push(e.item)}),t&&(t.oneTimeCostItems=r,t.monthlyCostItems=n),i.A.dispatch({type:"iotcart/update",payload:t}),t},this.getIotCartValue=()=>{var e;let t=i.A.getState().iotCart,[r]=[0];return null==t||t.items.forEach(e=>{let t=p.calculateCostBreakdown(e.basicCost,e.numberOfSubscription,e.simCardType);r+=t.totalDiscountPrice||t.totalMonthlyCost||0}),null==t||null==(e=t.monthlyCostItems)||e.forEach(e=>{r+=(0,s.fE)(e.price||"0")}),r},this.calculateCostBreakdown=(e,t,r)=>{let i={totalMonthlyCost:0,totalPromoCost:0,totalOneTimeCost:0,totalDiscountPrice:0};if(e){let n=e.perSubscriptionCost*t;i.totalMonthlyCost=n;let[a]=[0];e.perSubscriptionPromoCost&&(i.totalPromoCost=a=t*e.perSubscriptionPromoCost,i.totalDiscountPrice=n-a),i.totalOneTimeCost=this.calculateOneTimeCost(e,t,r)}return i},this.calculateOneTimeCost=(e,t,r)=>{let[i]=[0];return e.simConfig&&e.simConfig.simPrice.forEach(e=>{let n=parseInt(e.packageSize),a=parseFloat(e.simPrice);if(e.simType===r)if(t<=n)i=n*a;else{let e=Math.floor(t/n);i=n*(e+1)*a,0==t%n&&(i=n*e*a)}}),i+e.setUpCost+(e.activationFee||0)},this.calculateDynamicCosts=(e,t)=>e.map(e=>{var r;return parseFloat((null==e?void 0:e.itemType)===t&&(null==(r=e.item)?void 0:r.price)||"0")}).reduce((e,t)=>e+t,0),this.submitOrder=(e,t,r,o,l,c,p,h,m,f)=>{let g=i.A.getState().iotCart;if(g&&null!=g){let i=this.getRequestOptions(e,t,g,c),y=(0,s.Me)(d.submitOrderService,!0);a.A.request(y,n.dF.POST,i,r).then(e=>{if(e.data.errorCode===n.O4.SUCCESS){var t,r;u.kN.isTestData(i.cart.company.name,i.cart.contactPerson.email)||this.trackIOTPurchaseAsync(g,{orderId:null==(t=e.data.data)?void 0:t.orderId,item_list_id:p,component:m,item_list_name:f,beginCheckOutTime:h},i.cart),this.clearCart(),window.location.href=o+"?txnId="+(null==(r=e.data.data)?void 0:r.orderId)}else this.clearCart(),window.location.href=l}).catch(()=>{this.clearCart(),window.location.href=l});return}},this.clearCart=()=>{l.A.removeSessionStorageItem(this.getIotCartSessionKey())},this.trackIOTPurchaseAsync=(e,t,r)=>{(0,s.g2)(r,"IOTCheckout").then(r=>{c.A.trackIOTPurchaseEvent(e,t,r)}).catch(e=>
1console.warn("Tracking failed, but order completed successfully:",e))},this.getRequestOptions=(e,t,r,i)=>{let n={name:o.A.getValue(t,"companyName"),uid:o.A.getValue(t,"companyNumber"),numberOfEmployees:o.A.getValue(t,"numberOfEmp"),address:{street:o.A.getValue(t,"street"),number:o.A.getValue(t,"buildingNumber"),zip:o.A.getValue(t,"zipCode"),city:o.A.getValue(t,"city")}},a=i?{street:o.A.getValue(t,"street",".deliveryAddress"),number:o.A.getValue(t,"buildingNumber",".deliveryAddress"),zip:o.A.getValue(t,"zipCode",".deliveryAddress"),city:o.A.getValue(t,"city",".deliveryAddress")}:n.address,s={salutation:o.A.getDataAttribute(t,"salutation","value",".contactPerson"),firstName:o.A.getValue(t,"firstName",".contactPerson"),lastName:o.A.getValue(t,"lastName",".contactPerson"),email:o.A.getValue(t,"email",".contactPerson"),phoneNumber:o.A.getValue(t,"phoneNumber",".contactPerson")},l="true"===o.A.getValue(t,"isTechnicalPersonDifferent")?{salutation:o.A.getDataAttribute(t,"salutation","value",".technicalContactPerson"),firstName:o.A.getValue(t,"firstName",".technicalContactPerson"),lastName:o.A.getValue(t,"lastName",".technicalContactPerson"),email:o.A.getValue(t,"email",".technicalContactPerson"),phoneNumber:o.A.getValue(t,"phoneNumber",".technicalContactPerson")}:s;return{cart:{company:n,deliveryAddress:a,contactPerson:s,technicalContactPerson:l,items:r.items,oneTimeCostItems:r.oneTimeCostItems,monthlyCostItems:r.monthlyCostItems},emailId:e}}}}d.iotCartSessionKey="b2b-iot-checkout-cart",d.submitOrderService="/api/al/iot-checkout/iotCart";let p=new d,h=p},38789:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>S,Fb:()=>l,Hy:()=>h,OW:()=>s,Ut:()=>g,Yv:()=>_,aR:()=>u,eM:()=>c,m2:()=>f});let i=(0,r(10339).Z0)({name:"msProductCart",initialState:{cartitem:[],subscriptionCartItem:[],oneTimeCostForCart:"",activeGroupId:"",activeGroupName:"",personalDetails:void 0,commonLabels:void 0},reducers:{initMsProductCart:(e,t)=>{e.cartitem=t.payload.cartitem,e.subscriptionCartItem=t.payload.subscriptionCartItem,e.oneTimeCostForCart=t.payload.oneTimeCostForCart,e.activeGroupId=t.payload.activeGroupId,e.activeGroupName=t.payload.activeGroupName},setActiveGroupId:(e,t)=>{e.activeGroupId=t.payload},setOneTimeCostForCart:(e,t)=>{e.oneTimeCostForCart=t.payload},setActiveGroupAndCost:(e,t)=>{e.activeGroupId=t.payload.activeGroupId,void 0!==t.payload.activeGroupName&&(e.activeGroupName=t.payload.activeGroupName),void 0!==t.payload.oneTimeCostForCart&&(e.oneTimeCostForCart=t.payload.oneTimeCostForCart)},addMsProduct:(e,t)=>{let r=e.cartitem.find(e=>e.productId===t.payload.productId&&e.groupId===t.payload.groupId);r?(!r.maxAllowed||r.quantity<r.maxAllowed)&&(r.quantity+=1):e.cartitem.push({...t.payload,quantity:1})},removeMsProduct:(e,t)=>{e.cartitem=e.cartitem.filter(e=>e.productId!==t.payload.productId||e.groupId!==t.payload.groupId)},updateMsProductQuantity:(e,t)=>{let r=e.cartitem.find(e=>e.productId===t.payload.productId&&e.groupId===t.payload.groupId);if(r){let i=t.payload.quantity;i<=0?e.cartitem=e.cartitem.filter(e=>e.productId!==t.payload.productId||e.groupId!==t.payload.groupId):(!r.maxAllowed||i<=r.maxAllowed)&&(r.quantity=i)}},incrementMsProductQuantity:(e,t)=>{let r=e.cartitem.find(e=>e.productId===t.payload.productId&&e.groupId===t.payload.groupId);r&&(!r.maxAllowed||r.quantity<r.maxAllowed)&&(r.quantity+=1)},decrementMsProductQuantity:(e,t)=>{let r=e.cartitem.find(e=>e.productId===t.payload.productId&&e.groupId===t.payload.groupId);r&&(r.quantity>1?r.quantity-=1:e.cartitem=e.cartitem.filter(e=>e.productId!==t.payload.productId||e.groupId!==t.payload.groupId))},clearMsProductCart:e=>{e.cartitem=[],e.subscriptionCartItem=[],e.oneTimeCostForCart="",e.personalDetails=void 0},clearMsProductCartByGroup:(e,t)=>{e.cartitem=e.cartitem.filter(e=>e.groupId!==t.payload)},toggleMsSubscription:(e,t)=>{var r,i,n;let a=null!=(i=null==(r=e.subscriptionCartItem)?void 0:r.findIndex(e=>e.subscriptionId===t.payload.subscriptionId&&e.groupId===t.payload.groupId))?i:-1;a>=0?null==(n=e.subscriptionCartItem)||n.splice(a,1):(e.subscriptionCartItem||(e.subscriptionCartItem=[]),e.subscriptionCartItem.push(t.payload))},setMsProductPersonalDetails:(e,t)=>{e.personalDetails={...e.personalDetails,...t.payload}},updateMsProductPersonalDetailsField:(e,t)=>{e.personalDetails||(e.personalDetails={}),e.personalDetails[t.payload.field]=t.payload.value},clearMsProductPersonalDetails:e=>{e.personalDetails=void 0},setMsProductCommonLabels:(e,t)=>{e.commonLabels={...e.commonLabels,...t.payload}},clearMsProductCommonLabels:e=>{e.commonLabels=void 0}}}),{initMsProductCart:n,setActiveGroupId:a,setOneTimeCostForCart:o,setActiveGroupAndCost:s,addMsProduct:l,removeMsProduct:c,updateMsProductQuantity:u,incrementMsProductQuantity:d,decrementMsProductQuantity:p,clearMsProductCart:h,clearMsProductCartByGroup:m,toggleMsSubscription:f,setMsProductPersonalDetails:g,updateMsProductPersonalDetailsField:y,clearMsProductPersonalDetails:v,setMsProductCommonLabels:_,clearMsProductCommonLabels:b}=i.actions,S=i.reducer},39139:(e,t,r)=>{"use strict";r.d(t,{i:()=>T});var i=r(10339),n=r(1906),a=r(39151),o=r(48801),s=r(64587),l=r(92948),c=r(90831),u=r(6656),d=r(72571),p=r(97594),h=r(99212),m=r(4592),f=r(29597);let g=(0,i.Z0)({name:"eShopBasket",initialState:{basketProducts:[]},reducers:{addProducts:(e,t)=>{e.basketProducts.push(t.payload.product),v(t.payload)},removeProduct:(e,t)=>
1{e.basketProducts=e.basketProducts.filter(e=>e.id!==t.payload.id)}}}),{addProducts:y,removeProduct:v}=g.actions,_=g.reducer;var b=r(26956),S=r(91261),w=r(73004),C=r(32675),E=r(76124),k=r(96207),A=r(61194),P=r(38789),I=r(73609);let T=(0,i.U1)({reducer:{basketReducer:o.Ay,checkoutReducer:s.Ay,internetCheckoutReducer:c.Ay,smartVoiceReducer:l.Ay,sbContentReducer:u.Ay,eshopCartReducer:d.Ay,progressIndicatorReducer:p.Ay,authReducer:h.Ay,serviceOptionReducer:m.Ay,eshopAddressReducer:f.Ay,eshopBasketReducer:_,bundleItemsReducer:b.Ay,manualCheckoutReducer:S.Ay,salesforceReducer:w.Ay,ictReducer:C.Ay,eshopOnpReducer:E.Ay,eshopPersonalDetailsReducer:k.Ay,baseEshopCheckoutReducer:A.Ay,msProductCartReducer:P.Ay,boomCartReducer:I.Ay}});T.subscribe(()=>{if(void 0!==window){let e=a.A.getSessionStorageItem(n.A.getBasketSessionKey());a.A.setSessionStorageItem(n.A.getBasketSessionKey(),JSON.stringify({...JSON.parse(e||"{}"),...T.getState()}))}})},39151:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});class i{constructor(){this.getSessionStorageItem=e=>window.sessionStorage.getItem(e)||"",this.setSessionStorageItem=(e,t)=>{window.sessionStorage.setItem(e,t)},this.removeSessionStorageItem=e=>{window.sessionStorage.removeItem(e)},this.getLocalStorageItem=e=>window.localStorage.getItem(e)||"",this.setLocalStorageItem=(e,t)=>{window.localStorage.setItem(e,t)},this.removeLocalStorageItem=e=>{window.localStorage.removeItem(e)},this.getSessionStorageValue=e=>{let t=window.sessionStorage.getItem(e)||"";if(!t)return null;let r={};try{r=JSON.parse(t)}catch(e){return e?t:""}return null==r?void 0:r.value}}}let n=new i},40090:(e,t,r)=>{"use strict";var i=r(27496),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,a,o={};
1return e&&i.forEach(e.split("\n"),function(e){a=e.indexOf(":"),t=i.trim(e.slice(0,a)).toLowerCase(),r=i.trim(e.slice(a+1)),t&&(o[t]&&n.indexOf(t)>=0||("set-cookie"===t?o[t]=(o[t]?o[t]:[]).concat([r]):o[t]=o[t]?o[t]+", "+r:r))}),o}},40709:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var i=r(39139),n=r(39151),a=r(81237),o=r(36756),s=r(48501),l=r(78730),c=r(77626);class u{constructor(){this.getSmartVoiceBasket=()=>i.i.getState().smartVoiceReducer,this.validateBasket=()=>{let e={isPhNoCountValid:!1,isSubscriptionCountValid:!1,isPackageValid:!1,totalMonthlyCost:0,totalUpfrontCost:0,isBasketEmpty:!0,isBasketValid:!1},t=this.getSmartVoiceBasket();if(t){var r,i,n,a;let[o]=[0],[s]=[0];(null==(r=t.smartVoiceCartItems.phNumberDetails)?void 0:r.length)>0&&t.smartVoiceCartItems.phNumberDetails.forEach(e=>{o+=e.blokCapacity?e.quantity*e.blokCapacity:e.quantity}),(null==(n=t.smartVoiceCartItems)||null==(i=n.subscriptionDetails)?void 0:i.length)>0&&t.smartVoiceCartItems.subscriptionDetails.forEach(e=>{s+=e.quantity}),e.isPhNoCountValid=o>=s,e.isSubscriptionCountValid=s>=o,e.isPackageValid=(null==(a=t.smartVoiceCartItems.packageDetails)?void 0:a.length)>0,e.totalMonthlyCost=this.calculateTotalMonthlyPrice(t.smartVoiceCartItems),e.totalUpfrontCost=this.calculateTotalUpfrontPrice(t.smartVoiceCartItems),e.isBasketEmpty=!this.checkBasketItemsPresent(t.smartVoiceCartItems),e.isBasketValid=this.checkBasketValidity(t.smartVoiceCartItems,o,s)}return e},this.calculateTotalMonthlyPrice=e=>{let[t]=[0];return null==e||e.subscriptionDetails.forEach(e=>{t+=e.quantity*parseFloat(e.price||"0")}),t},this.calculateTotalUpfrontPrice=e=>{let[t]=[0];return null==e||e.phNumberDetails.forEach(e=>{t+=e.quantity*parseFloat(e.upfrontPrice||"0")}),null==e||e.packageDetails.forEach(e=>{t+=parseFloat(e.upfrontPromoPrice||e.upfrontPrice||"0")}),t},this.clearCart=()=>{n.A.removeSessionStorageItem(u.basketSessionKey)},this.trackVoicePurchaseAsync=(e,t,r)=>{(0,a.g2)(r,"multiCheckout").then(r=>{l.A.trackVoicePurchaseEvent(e,t,r)}).catch(e=>console.warn("Tracking failed, but order completed successfully:",e))}
1,this.getSmartVoice=()=>{if(this.checkBasketItemsPresent(i.i.getState().smartVoiceReducer.smartVoiceCartItems))return i.i.getState().smartVoiceReducer;let e=n.A.getSessionStorageItem(u.basketSessionKey);if(e){let t=JSON.parse(e).smartVoiceReducer;return t&&this.checkBasketItemsPresent(t.smartVoiceCartItems)?t:null}return null},this.checkBasketItemsPresent=e=>!!(e.packageDetails.length>0)||!!(e.phNumberDetails.length>0)||!!(e.subscriptionDetails.length>0),this.checkBasketValidity=(e,t,r)=>t==r&&!(e.packageDetails.length<1),this.getSmartVoiceCartValue=()=>{let e=this.getSmartVoiceBasket(),[t]=[0];return e&&this.calculateTotalMonthlyPrice(e.smartVoiceCartItems)},this.SmartVoiceBasketSubmitOrder=(e,t,r,n,l,d,p,h)=>{let m=this.getSmartVoiceBasket(),f=i.i.getState().checkoutReducer;if(m){let i={companyDetails:f.companyDetails,personalDetails:f.personalDetails,smartVoiceCartItems:m.smartVoiceCartItems,emailId:e},g=(0,a.Me)(u.submitOrderService,!0);o.A.request(g,s.dF.POST,i,t).then(e=>{if(e.data.errorCode===s.O4.SUCCESS){var t,a;c.kN.isTestData(i.companyDetails.name,i.personalDetails.email)||this.trackVoicePurchaseAsync(m.smartVoiceCartItems,{orderId:null==(t=e.data.data)?void 0:t.orderId,item_list_id:l,component:d,item_list_name:p,beginCheckOutTime:h},f),this.clearCart(),window.location.href=r+"?txnId="+(null==(a=e.data.data)?void 0:a.orderId)}else this.clearCart(),window.location.href=n}).catch(()=>{this.clearCart(),window.location.href=n});return}window.location.href=n}}}u.submitOrderService="/api/al/checkout/smart-voice",u.basketSessionKey="b2b-checkout-basket";let d=new u},40864:(e,t,r)=>{"use strict";var i=r(27496);e.exports=i.isStandardBrowserEnv()?{write:function(e,t,r,n,a,o){var s=[];s.push(e+"="+encodeURIComponent(t)),i.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),i.isString(n)&&s.push("path="+n),i.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},41218:e=>{"use strict";e.exports="object"==typeof self?self.FormData:window.FormData},41760:e=>{"use strict";e.exports=Math.max},42265:(e,t,r)=>{"use strict";var i=r(17753),n=r(90832);e.exports=function(e,t,r){var a=!i(t);return e&&(a||!1===r)?n(e,t):t}},42493:(e,t,r)=>{"use strict";var i=r(27496),n=r(17424),a=r(74371),o=r(90640),s=r(52597),l=r(42265),c=r(27437),u=c.validators;function d(e){this.defaults=e,this.interceptors={request:new a,response:new a}}d.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r,n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var a=t.paramsSerializer;null!=a&&(i.isFunction(a)?t.paramsSerializer={serialize:a}:c.assertOptions(a,{encode:u.function,serialize:u.function},!0));var l=[],d=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(d=d&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});var p=[];if(this.interceptors.response.forEach(function(e){p.push(e.fulfilled,e.rejected)}),!d){var h=[o,void 0];for(Array.prototype.unshift.apply(h,l),h=h.concat(p),r=Promise.resolve(t);h.length;)r=r.then(h.shift(),h.shift());return r}for(var m=t;l.length;){var f=l.shift(),g=l.shift();try{m=f(m)}catch(e){g(e);break}}try{r=o(m)}catch(e){return Promise.reject(e)}for(;p.length;)r=r.then(p.shift(),p.shift());return r},d.prototype.getUri=function(e){return n(l((e=s(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}
1,i.forEach(["delete","get","head","options"],function(e){d.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}}),i.forEach(["post","put","patch"],function(e){function t(t){return function(r,i,n){return this.request(s(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)}),e.exports=d},42504:e=>{"use strict";e.exports=Math.pow},42634:()=>{},44627:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var i=r(95282),n=r(74977),a=r(81237),o=r(93764),s=r(48501);class l{constructor(){this.siteDetailList=e=>{try{let t={headers:{"Content-Type":"application/json","x-Sunrise-App-ID":"B2B-ESHOP","x-Sunrise-Channel":"SBO","x-correlation-id":(0,a.cv)()}};t.headers.Authorization="Bearer ".concat(e);let r=(0,a.yz)()?i._W.siteDetail:(0,o.KQ)()+i.V.siteDetail;return n.A.get(r,t).then(e=>e.data)}catch(e){return e.message}},this.getCustomerDetails=(e,t)=>{try{let r=(0,a.yz)()?i._W.getCustomerDetails:(0,o.KQ)()+i.V.getCustomerDetails;return n.A.request(r,s.dF.GET,null,void 0,void 0,!1,e,t).then(e=>e.data).catch(e=>e)}catch(e){return e.message}}}}let c=new l},44913:(e,t,r)=>{"use strict";r.d(t,{KJ:()=>q,$5:()=>er,O:()=>k});class i extends Error{}i.prototype.name="InvalidTokenError";var n,a,o={debug:()=>void 0,info:()=>void 0,warn:()=>void 0,error:()=>void 0},s=(e=>(e[e.NONE=0]="NONE",e[e.ERROR=1]="ERROR",e[e.WARN=2]="WARN",e[e.INFO=3]="INFO",e[e.DEBUG=4]="DEBUG",e))(s||{});(e=>{e.reset=function(){n=3,a=o},e.setLevel=function(e){if(!(0<=e&&e<=4))throw Error("Invalid log level");n=e},e.setLogger=function(e){a=e}})(s||(s={}));var l=class e{constructor(e){this._name=e}debug(...t){n>=4&&a.debug(e._format(this._name,this._method),...t)}info(...t){n>=3&&a.info(e._format(this._name,this._method),...t)}warn(...t){n>=2&&a.warn(e._format(this._name,this._method),...t)}error(...t){n>=1&&a.error(e._format(this._name,this._method),...t)}throw(e){throw this.error(e),e}create(e){let t=Object.create(this);return t._method=e,t.debug("begin"),t}static createStatic(t,r){let i=new e(`${t}.${r}`);return i.debug("begin"),i}static _format(e,t){let r=`[${e}]`;return t?`${r} ${t}:`:r}static debug(t,...r){n>=4&&a.debug(e._format(t),...r)}static info(t,...r){n>=3&&a.info(e._format(t),...r)}static warn(t,...r){n>=2&&a.warn(e._format(t),...r)}static error(t,...r){n>=1&&a.error(e._format(t),...r)}};s.reset();var c=class{static decode(e){try{return function(e,t){let r;if("string"!=typeof e)throw new i("Invalid token specified: must be a string");t||(t={});let n=+(!0!==t.header),a=e.split(".")[n];if("string"!=typeof a)throw new i(`Invalid token specified: missing part #${n+1}`);try{r=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw Error("base64 string is not of the correct length")}try{var r;
1return r=t,decodeURIComponent(atob(r).replace(/(.)/g,(e,t)=>{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(e){return atob(t)}}(a)}catch(e){throw new i(`Invalid token specified: invalid base64 for part #${n+1} (${e.message})`)}try{return JSON.parse(r)}catch(e){throw new i(`Invalid token specified: invalid json for part #${n+1} (${e.message})`)}}(e)}catch(e){throw l.error("JwtUtils.decode",e),e}}static async generateSignedJwt(e,t,r){let i=p.encodeBase64Url(new TextEncoder().encode(JSON.stringify(e))),n=p.encodeBase64Url(new TextEncoder().encode(JSON.stringify(t))),a=`${i}.${n}`,o=await window.crypto.subtle.sign({name:"ECDSA",hash:{name:"SHA-256"}},r,new TextEncoder().encode(a)),s=p.encodeBase64Url(new Uint8Array(o));return`${a}.${s}`}static async generateSignedJwtWithHmac(e,t,r){let i=p.encodeBase64Url(new TextEncoder().encode(JSON.stringify(e))),n=p.encodeBase64Url(new TextEncoder().encode(JSON.stringify(t))),a=`${i}.${n}`,o=await window.crypto.subtle.sign("HMAC",r,new TextEncoder().encode(a)),s=p.encodeBase64Url(new Uint8Array(o));return`${a}.${s}`}},u=e=>btoa([...new Uint8Array(e)].map(e=>String.fromCharCode(e)).join("")),d=class e{static _randomWord(){let e=new Uint32Array(1);return crypto.getRandomValues(e),e[0]}static generateUUIDv4(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,t=>(t^e._randomWord()&15>>t/4).toString(16)).replace(/-/g,"")}static generateCodeVerifier(){return e.generateUUIDv4()+e.generateUUIDv4()+e.generateUUIDv4()}static async generateCodeChallenge(e){if(!crypto.subtle)throw Error("Crypto.subtle is available only in secure contexts (HTTPS).");try{let t=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",t);return u(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(e){throw l.error("CryptoUtils.generateCodeChallenge",e),e}}static generateBasicAuth(e,t){return u(new TextEncoder().encode([e,t].join(":")))}static async hash(e,t){let r=new TextEncoder().encode(t);return new Uint8Array(await crypto.subtle.digest(e,r))}static async customCalculateJwkThumbprint(t){let r;switch(t.kty){case"RSA":r={e:t.e,kty:t.kty,n:t.n};break;case"EC":r={crv:t.crv,kty:t.kty,x:t.x,y:t.y};break;case"OKP":r={crv:t.crv,kty:t.kty,x:t.x};break;case"oct":r={crv:t.k,kty:t.kty};break;default:throw Error("Unknown jwk type")}let i=await e.hash("SHA-256",JSON.stringify(r));return e.encodeBase64Url(i)}static async generateDPoPProof({url:t,accessToken:r,httpMethod:i,keyPair:n,nonce:a}){let o,s={jti:window.crypto.randomUUID(),htm:null!=i?i:"GET",htu:t,iat:Math.floor(Date.now()/1e3)};r&&(o=await e.hash("SHA-256",r),s.ath=e.encodeBase64Url(o)),a&&(s.nonce=a);try{let e=await crypto.subtle.exportKey("jwk",n.publicKey),t={alg:"ES256",typ:"dpop+jwt",jwk:{crv:e.crv,kty:e.kty,x:e.x,y:e.y}};return await c.generateSignedJwt(t,s,n.privateKey)}catch(e){if(e instanceof TypeError)throw Error(`Error exporting dpop public key: ${e.message}`);throw e}}static async generateDPoPJkt(t){try{let r=await crypto.subtle.exportKey("jwk",t.publicKey);return await e.customCalculateJwkThumbprint(r)}catch(e){if(e instanceof TypeError)throw Error(`Could not retrieve dpop keys from storage: ${e.message}`);throw e}}static async generateDPoPKeys(){return await window.crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign","verify"])}static async generateClientAssertionJwt(t,r,i,n="HS256"){let a=Math.floor(Date.now()/1e3),o={iss:t,sub:t,aud:i,jti:e.generateUUIDv4(),exp:a+300,iat:a},s={HS256:"SHA-256",HS384:"SHA-384",HS512:"SHA-512"}[n];if(!s)throw Error(`Unsupported algorithm: ${n}. Supported algorithms are: HS256, HS384, HS512`);let l=new TextEncoder,u=await crypto.subtle.importKey("raw",l.encode(r),{name:"HMAC",hash:s},!1,["sign"]);return await c.generateSignedJwtWithHmac({alg:n,typ:"JWT"},o,u)}};d.encodeBase64Url=e=>u(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");var p=d,h=class{constructor(e){this._name=e,this._callbacks=[],this._logger=new l(`Event('${this._name}')`)}addHandler(e){return this._callbacks.push(e),()=>this.removeHandler(e)}removeHandler(e){let t=this._callbacks.lastIndexOf(e);t>=0&&this._callbacks.splice(t,1)}
1async raise(...e){for(let t of(this._logger.debug("raise:",...e),this._callbacks))await t(...e)}},m=class{static center({...e}){var t;return null==e.width&&(e.width=null!=(t=[800,720,600,480].find(e=>e<=window.outerWidth/1.618))?t:360),null!=e.left||(e.left=Math.max(0,Math.round(window.screenX+(window.outerWidth-e.width)/2))),null!=e.height&&(null!=e.top||(e.top=Math.max(0,Math.round(window.screenY+(window.outerHeight-e.height)/2)))),e}static serialize(e){return Object.entries(e).filter(([,e])=>null!=e).map(([e,t])=>`${e}=${"boolean"!=typeof t?t:t?"yes":"no"}`).join(",")}},f=class e extends h{constructor(){super(...arguments),this._logger=new l(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{let t=this._expiration-e.getEpochTime();this._logger.debug("timer completes in",t),this._expiration<=e.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(t){let r=this._logger.create("init");t=Math.max(Math.floor(t),1);let i=e.getEpochTime()+t;if(this.expiration===i&&this._timerHandle)return void r.debug("skipping since already initialized for expiration at",this.expiration);this.cancel(),r.debug("using duration",t),this._expiration=i;let n=Math.min(t,5);this._timerHandle=setInterval(this._callback,1e3*n)}get expiration(){return this._expiration}cancel(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}},g=class{static readParams(e,t="query"){if(!e)throw TypeError("Invalid URL");return new URLSearchParams(new URL(e,"http://127.0.0.1")["fragment"===t?"hash":"search"].slice(1))}},y=class extends Error{constructor(e,t){var r,i,n;if(super(e.error_description||e.error||""),this.form=t,this.name="ErrorResponse",!e.error)throw l.error("ErrorResponse","No error passed"),Error("No error passed");this.error=e.error,this.error_description=null!=(r=e.error_description)?r:null,this.error_uri=null!=(i=e.error_uri)?i:null,this.state=e.userState,this.session_state=null!=(n=e.session_state)?n:null,this.url_state=e.url_state}},v=class extends Error{constructor(e){super(e),this.name="ErrorTimeout"}},_=class{constructor(e){this._logger=new l("AccessTokenEvents"),this._expiringTimer=new f("Access token expiring"),this._expiredTimer=new f("Access token expired"),this._expiringNotificationTimeInSeconds=e.expiringNotificationTimeInSeconds}async load(e){let t=this._logger.create("load");if(e.access_token&&void 0!==e.expires_in){let r=e.expires_in;if(t.debug("access token present, remaining duration:",r),r>0){let e=r-this._expiringNotificationTimeInSeconds;e<=0&&(e=1),t.debug("registering expiring timer, raising in",e,"seconds"),this._expiringTimer.init(e)}else t.debug("canceling existing expiring timer because we're past expiration."),this._expiringTimer.cancel();let i=r+1;t.debug("registering expired timer, raising in",i,"seconds"),this._expiredTimer.init(i)}else this._expiringTimer.cancel(),this._expiredTimer.cancel()}async unload(){this._logger.debug("unload: canceling existing access token timers"),this._expiringTimer.cancel(),this._expiredTimer.cancel()}addAccessTokenExpiring(e){return this._expiringTimer.addHandler(e)}removeAccessTokenExpiring(e){this._expiringTimer.removeHandler(e)}addAccessTokenExpired(e){return this._expiredTimer.addHandler(e)}removeAccessTokenExpired(e){this._expiredTimer.removeHandler(e)}},b=class{constructor(e,t,r,i,n){this._callback=e,this._client_id=t,this._intervalInSeconds=i,this._stopOnError=n,this._logger=new l("CheckSessionIFrame"),this._timer=null,this._session_state=null,this._message=e=>{e.origin===this._frame_origin&&e.source===this._frame.contentWindow&&("error"===e.data?(this._logger.error("error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===e.data?(this._logger.debug("changed message from check session op iframe"),this.stop(),this._callback()):this._logger.debug(e.data+" message from check session op iframe"))};let a=new URL(r);this._frame_origin=a.origin,this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="fixed",this._frame.style.left="-1000px",this._frame.style.top="0",this._frame.width="0",this._frame.height="0",this._frame.src=a.href}load(){return new Promise(e=>{this._frame.onload=()=>{e()},window.document.body.appendChild(this._frame),window.addEventListener("message",this._message,!1)})}start(e){if(this._session_state===e)return;this._logger.create("start"),this.stop(),this._session_state=e;let t=()=>{this._frame.contentWindow&&this._session_state&&this._frame.contentWindow.postMessage(this._client_id+" "+this._session_state,this._frame_origin)};t(),this._timer=setInterval(t,1e3*this._intervalInSeconds)}stop(){this._logger.create("stop"),this._session_state=null,this._timer&&(clearInterval(this._timer),this._timer=null)}},S=class{constructor(){this._logger=new l("InMemoryWebStorage"),this._data={}}clear(){this._logger.create("clear"),this._data={}}getItem(e){return this._logger.create(`getItem('${e}')`),this._data[e]}setItem(e,t){this._logger.create(`setItem('${e}')`),this._data[e]=t}removeItem(e){this._logger.create(`removeItem('${e}')`),delete this._data[e]}get length(){return Object.getOwnPropertyNames(this._data).length}key(e){return Object.getOwnPropertyNames(this._data)[e]}}
1,w=class extends Error{constructor(e,t){super(t),this.name="ErrorDPoPNonce",this.nonce=e}},C=class{constructor(e=[],t=null,r={}){this._jwtHandler=t,this._extraHeaders=r,this._logger=new l("JsonService"),this._contentTypes=[],this._contentTypes.push(...e,"application/json"),t&&this._contentTypes.push("application/jwt")}async fetchWithTimeout(e,t={}){let{timeoutInSeconds:r,...i}=t;if(!r)return await fetch(e,i);let n=new AbortController,a=setTimeout(()=>n.abort(),1e3*r);try{return await fetch(e,{...t,signal:n.signal})}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)throw new v("Network timed out");throw e}finally{clearTimeout(a)}}async getJson(e,{token:t,credentials:r,timeoutInSeconds:i}={}){let n,a,o=this._logger.create("getJson"),s={Accept:this._contentTypes.join(", ")};t&&(o.debug("token passed, setting Authorization header"),s.Authorization="Bearer "+t),this._appendExtraHeaders(s);try{o.debug("url:",e),n=await this.fetchWithTimeout(e,{method:"GET",headers:s,timeoutInSeconds:i,credentials:r})}catch(e){throw o.error("Network Error"),e}o.debug("HTTP response received, status",n.status);let l=n.headers.get("Content-Type");if(l&&!this._contentTypes.find(e=>l.startsWith(e))&&o.throw(Error(`Invalid response Content-Type: ${null!=l?l:"undefined"}, from URL: ${e}`)),n.ok&&this._jwtHandler&&(null==l?void 0:l.startsWith("application/jwt")))return await this._jwtHandler(await n.text());try{a=await n.json()}catch(e){if(o.error("Error parsing JSON response",e),n.ok)throw e;throw Error(`${n.statusText} (${n.status})`)}if(!n.ok){if(o.error("Error from server:",a),a.error)throw new y(a);throw Error(`${n.statusText} (${n.status}): ${JSON.stringify(a)}`)}return a}async postForm(e,{body:t,basicAuth:r,timeoutInSeconds:i,initCredentials:n,extraHeaders:a}){let o,s=this._logger.create("postForm"),l={Accept:this._contentTypes.join(", "),"Content-Type":"application/x-www-form-urlencoded",...a};void 0!==r&&(l.Authorization="Basic "+r),this._appendExtraHeaders(l);try{s.debug("url:",e),o=await this.fetchWithTimeout(e,{method:"POST",headers:l,body:t,timeoutInSeconds:i,credentials:n})}catch(e){throw s.error("Network error"),e}s.debug("HTTP response received, status",o.status);let c=o.headers.get("Content-Type");if(c&&!this._contentTypes.find(e=>c.startsWith(e)))throw Error(`Invalid response Content-Type: ${null!=c?c:"undefined"}, from URL: ${e}`);let u=await o.text(),d={};if(u)try{d=JSON.parse(u)}catch(e){if(s.error("Error parsing JSON response",e),o.ok)throw e;throw Error(`${o.statusText} (${o.status})`)}if(!o.ok){if(s.error("Error from server:",d),o.headers.has("dpop-nonce"))throw new w(o.headers.get("dpop-nonce"),`${JSON.stringify(d)}`);if(d.error)throw new y(d,t);throw Error(`${o.statusText} (${o.status}): ${JSON.stringify(d)}`)}return d}_appendExtraHeaders(e){let t=this._logger.create("appendExtraHeaders"),r=Object.keys(this._extraHeaders),i=["accept","content-type"],n=["authorization"];0!==r.length&&r.forEach(r=>{if(i.includes(r.toLocaleLowerCase()))return void t.warn("Protected header could not be set",r,i);if(n.includes(r.toLocaleLowerCase())&&Object.keys(e).includes(r))return void t.warn("Header could not be overridden",r,n);let a="function"==typeof this._extraHeaders[r]?this._extraHeaders[r]():this._extraHeaders[r];a&&""!==a&&(e[r]=a)})}},E=class{constructor(e){this._settings=e,this._logger=new l("MetadataService"),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new C(["application/jwk-set+json"],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug("using signingKeys from settings"),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug("using metadata from settings"),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug("using fetchRequestCredentials from settings"),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}resetSigningKeys(){this._signingKeys=null}async getMetadata(){let e=this._logger.create("getMetadata");if(this._metadata)return e.debug("using cached values"),this._metadata;if(!this._metadataUrl)throw e.throw(Error("No authority or metadataUrl configured on settings")),null;e.debug("getting metadata from",this._metadataUrl);let t=await this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials,timeoutInSeconds:this._settings.requestTimeoutInSeconds});return e.debug("merging remote JSON with seed metadata"),this._metadata=Object.assign({},t,this._settings.metadataSeed),this._metadata}getIssuer(){return this._getMetadataProperty("issuer")}getAuthorizationEndpoint(){return this._getMetadataProperty("authorization_endpoint")}getUserInfoEndpoint(){return this._getMetadataProperty("userinfo_endpoint")}getTokenEndpoint(e=!0){return this._getMetadataProperty("token_endpoint",e)}getCheckSessionIframe(){return this._getMetadataProperty("check_session_iframe",!0)}getEndSessionEndpoint(){return this._getMetadataProperty("end_session_endpoint",!0)}getRevocationEndpoint(e=!0){return this._getMetadataProperty("revocation_endpoint",e)}getKeysEndpoint(e=!0){return this._getMetadataProperty("jwks_uri",e)}async _getMetadataProperty(e,t=!1){let r=this._logger.create(`_getMetadataProperty('${e}')`),i=await this.getMetadata();if(r.debug("resolved"),void 0===i[e]){if(!0===t)return void r.warn("Metadata does not contain optional property");r.throw(Error("Metadata does not contain property "+e))}return i[e]}async getSigningKeys(){let e=this._logger.create("getSigningKeys");if(this._signingKeys)return e.debug("returning signingKeys from cache"),this._signingKeys;let t=await this.getKeysEndpoint(!1);e.debug("got jwks_uri",t);let r=await this._jsonService.getJson(t,{timeoutInSeconds:this._settings.requestTimeoutInSeconds});if(e.debug("got key set",r),!Array.isArray(r.keys))throw e.throw(Error("Missing keys on keyset")),null;return this._signingKeys=r.keys,this._signingKeys}},k=class{constructor({prefix:e="oidc.",store:t=localStorage}={}){this._logger=new l("WebStorageStateStore"),this._store=t,this._prefix=e}async set(e,t){this._logger.create(`set('${e}')`),e=this._prefix+e,await this._store.setItem(e,t)}async get(e){return this._logger.create(`get('${e}')`),e=this._prefix+e,await this._store.getItem(e)}async remove(e){this._logger.create(`remove('${e}')`),e=this._prefix+e;let t=await this._store.getItem(e);return await this._store.removeItem(e),t}async getAllKeys(){this._logger.create("getAllKeys");let e=await this._store.length,t=[];for(let r=0;r<e;r++){let e=await this._store.key(r);
1e&&0===e.indexOf(this._prefix)&&t.push(e.substr(this._prefix.length))}return t}},A=class{constructor({authority:e,metadataUrl:t,metadata:r,signingKeys:i,metadataSeed:n,client_id:a,client_secret:o,response_type:s="code",scope:l="openid",redirect_uri:c,post_logout_redirect_uri:u,client_authentication:d="client_secret_post",token_endpoint_auth_signing_alg:p="HS256",prompt:h,display:m,max_age:f,ui_locales:g,acr_values:y,resource:v,response_mode:_,filterProtocolClaims:b=!0,loadUserInfo:w=!1,requestTimeoutInSeconds:C,staleStateAgeInSeconds:E=900,mergeClaimsStrategy:A={array:"replace"},disablePKCE:P=!1,stateStore:I,revokeTokenAdditionalContentTypes:T,fetchRequestCredentials:O,refreshTokenAllowedScope:D,extraQueryParams:R={},extraTokenParams:M={},extraHeaders:N={},dpop:x,omitScopeWhenRequesting:U=!1}){var B;if(this.authority=e,t?this.metadataUrl=t:(this.metadataUrl=e,e&&(this.metadataUrl.endsWith("/")||(this.metadataUrl+="/"),this.metadataUrl+=".well-known/openid-configuration")),this.metadata=r,this.metadataSeed=n,this.signingKeys=i,this.client_id=a,this.client_secret=o,this.response_type=s,this.scope=l,this.redirect_uri=c,this.post_logout_redirect_uri=u,this.client_authentication=d,this.token_endpoint_auth_signing_alg=p,this.prompt=h,this.display=m,this.max_age=f,this.ui_locales=g,this.acr_values=y,this.resource=v,this.response_mode=_,this.filterProtocolClaims=null==b||b,this.loadUserInfo=!!w,this.staleStateAgeInSeconds=E,this.mergeClaimsStrategy=A,this.omitScopeWhenRequesting=U,this.disablePKCE=!!P,this.revokeTokenAdditionalContentTypes=T,this.fetchRequestCredentials=O||"same-origin",this.requestTimeoutInSeconds=C,I)this.stateStore=I;else{let e="undefined"!=typeof window?window.localStorage:new S;this.stateStore=new k({store:e})}if(this.refreshTokenAllowedScope=D,this.extraQueryParams=R,this.extraTokenParams=M,this.extraHeaders=N,this.dpop=x,this.dpop&&!(null==(B=this.dpop)?void 0:B.store))throw Error("A DPoPStore is required when dpop is enabled")}},P=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new l("UserInfoService"),this._getClaimsFromJwt=async e=>{let t=this._logger.create("_getClaimsFromJwt");try{let r=c.decode(e);return t.debug("JWT decoding successful"),r}catch(e){throw t.error("Error parsing JWT response"),e}},this._jsonService=new C(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}async getClaims(e){let t=this._logger.create("getClaims");e||this._logger.throw(Error("No token passed"));let r=await this._metadataService.getUserInfoEndpoint();t.debug("got userinfo url",r);let i=await this._jsonService.getJson(r,{token:e,credentials:this._settings.fetchRequestCredentials,timeoutInSeconds:this._settings.requestTimeoutInSeconds});return t.debug("got claims",i),i}},I=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new l("TokenClient"),this._jsonService=new C(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}async exchangeCode({grant_type:e="authorization_code",redirect_uri:t=this._settings.redirect_uri,client_id:r=this._settings.client_id,client_secret:i=this._settings.client_secret,extraHeaders:n,...a}){let o,s=this._logger.create("exchangeCode");r||s.throw(Error("A client_id is required")),t||s.throw(Error("A redirect_uri is required")),a.code||s.throw(Error("A code is required"));let l=new URLSearchParams({grant_type:e,redirect_uri:t});for(let[e,t]of Object.entries(a))null!=t&&l.set(e,t);if(("client_secret_basic"===this._settings.client_authentication||"client_secret_jwt"===this._settings.client_authentication)&&null==i)throw s.throw(Error("A client_secret is required")),null;let c=await this._metadataService.getTokenEndpoint(!1);switch(this._settings.client_authentication){case"client_secret_basic":o=p.generateBasicAuth(r,i);break;case"client_secret_post":l.append("client_id",r),i&&l.append("client_secret",i);break;case"client_secret_jwt":{let e=await p.generateClientAssertionJwt(r,i,c,this._settings.token_endpoint_auth_signing_alg);l.append("client_id",r),l.append("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),l.append("client_assertion",e)}}s.debug("got token endpoint");let u=await this._jsonService.postForm(c,{body:l,basicAuth:o,timeoutInSeconds:this._settings.requestTimeoutInSeconds,initCredentials:this._settings.fetchRequestCredentials,extraHeaders:n});return s.debug("got response"),u}async exchangeCredentials({grant_type:e="password",client_id:t=this._settings.client_id,client_secret:r=this._settings.client_secret,scope:i=this._settings.scope,...n}){let a,o=this._logger.create("exchangeCredentials");t||o.throw(Error("A client_id is required"));let s=new URLSearchParams({grant_type:e});for(let[e,t]of(this._settings.omitScopeWhenRequesting||s.set("scope",i),Object.entries(n)))null!=t&&s.set(e,t);if(("client_secret_basic"===this._settings.client_authentication||"client_secret_jwt"===this._settings.client_authentication)&&null==r)throw o.throw(Error("A client_secret is required")),null;let l=await this._metadataService.getTokenEndpoint(!1);switch(this._settings.client_authentication){case"client_secret_basic":a=p.generateBasicAuth(t,r);break;case"client_secret_post":s.append("client_id",t),r&&s.append("client_secret",r);break;case"client_secret_jwt":{let e=await p.generateClientAssertionJwt(t,r,l,this._settings.token_endpoint_auth_signing_alg);s.append("client_id",t),s.append("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),s.append("client_assertion",e)}}o.debug("got token endpoint");let c=await this._jsonService.postForm(l,{body:s,basicAuth:a,timeoutInSeconds:this._settings.requestTimeoutInSeconds,initCredentials:this._settings.fetchRequestCredentials});return o.debug("got response"),c}async exchangeRefreshToken({grant_type:e="refresh_token",client_id:t=this._settings.client_id,client_secret:r=this._settings.client_secret,timeoutInSeconds:i,extraHeaders:n,...a}){let o,s=this._logger.create("exchangeRefreshToken");t||s.throw(Error("A client_id is required")),a.refresh_token||s.throw(Error("A refresh_token is required"));let l=new URLSearchParams({grant_type:e});for(let[e,t]of Object.entries(a))Array.isArray(t)?t.forEach(t=>l.append(e,t)):null!=t&&l.set(e,t);if(("client_secret_basic"===this._settings.client_authentication||"client_secret_jwt"===this._settings.client_authentication)&&null==r)throw s.throw(Error("A client_secret is required")),null;
1let c=await this._metadataService.getTokenEndpoint(!1);switch(this._settings.client_authentication){case"client_secret_basic":o=p.generateBasicAuth(t,r);break;case"client_secret_post":l.append("client_id",t),r&&l.append("client_secret",r);break;case"client_secret_jwt":{let e=await p.generateClientAssertionJwt(t,r,c,this._settings.token_endpoint_auth_signing_alg);l.append("client_id",t),l.append("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),l.append("client_assertion",e)}}s.debug("got token endpoint");let u=await this._jsonService.postForm(c,{body:l,basicAuth:o,timeoutInSeconds:i,initCredentials:this._settings.fetchRequestCredentials,extraHeaders:n});return s.debug("got response"),u}async revoke(e){var t;let r=this._logger.create("revoke");e.token||r.throw(Error("A token is required"));let i=await this._metadataService.getRevocationEndpoint(!1);r.debug(`got revocation endpoint, revoking ${null!=(t=e.token_type_hint)?t:"default token type"}`);let n=new URLSearchParams;for(let[t,r]of Object.entries(e))null!=r&&n.set(t,r);n.set("client_id",this._settings.client_id),this._settings.client_secret&&n.set("client_secret",this._settings.client_secret),await this._jsonService.postForm(i,{body:n,timeoutInSeconds:this._settings.requestTimeoutInSeconds}),r.debug("got response")}},T=class{constructor(e,t,r){this._settings=e,this._metadataService=t,this._claimsService=r,this._logger=new l("ResponseValidator"),this._userInfoService=new P(this._settings,this._metadataService),this._tokenClient=new I(this._settings,this._metadataService)}async validateSigninResponse(e,t,r){let i=this._logger.create("validateSigninResponse");this._processSigninState(e,t),i.debug("state processed"),await this._processCode(e,t,r),i.debug("code processed"),e.isOpenId&&this._validateIdTokenAttributes(e,"",t.nonce),i.debug("tokens validated"),await this._processClaims(e,null==t?void 0:t.skipUserInfo,e.isOpenId),i.debug("claims processed")}async validateCredentialsResponse(e,t){let r=this._logger.create("validateCredentialsResponse"),i=e.isOpenId&&!!e.id_token;i&&this._validateIdTokenAttributes(e),r.debug("tokens validated"),await this._processClaims(e,t,i),r.debug("claims processed")}async validateRefreshResponse(e,t){let r=this._logger.create("validateRefreshResponse");e.userState=t.data,null!=e.session_state||(e.session_state=t.session_state),null!=e.scope||(e.scope=t.scope),e.isOpenId&&e.id_token&&(this._validateIdTokenAttributes(e,t.id_token),r.debug("ID Token validated")),e.id_token||(e.id_token=t.id_token,e.profile=t.profile);let i=e.isOpenId&&!!e.id_token;await this._processClaims(e,!1,i),r.debug("claims processed")}validateSignoutResponse(e,t){let r=this._logger.create("validateSignoutResponse");if(t.id!==e.state&&r.throw(Error("State does not match")),r.debug("state validated"),e.userState=t.data,e.error)throw r.warn("Response was error",e.error),new y(e)}_processSigninState(e,t){let r=this._logger.create("_processSigninState");if(t.id!==e.state&&r.throw(Error("State does not match")),t.client_id||r.throw(Error("No client_id on state")),t.authority||r.throw(Error("No authority on state")),this._settings.authority!==t.authority&&r.throw(Error("authority mismatch on settings vs. signin state")),this._settings.client_id&&this._settings.client_id!==t.client_id&&r.throw(Error("client_id mismatch on settings vs. signin state")),r.debug("state validated"),e.userState=t.data,e.url_state=t.url_state,null!=e.scope||(e.scope=t.scope),e.error)throw r.warn("Response was error",e.error),new y(e);t.code_verifier&&!e.code&&r.throw(Error("Expected code in response"))}async _processClaims(e,t=!1,r=!0){let i=this._logger.create("_processClaims");if(e.profile=this._claimsService.filterProtocolClaims(e.profile),t||!this._settings.loadUserInfo||!e.access_token)return void i.debug("not loading user info");i.debug("loading user info");let n=await this._userInfoService.getClaims(e.access_token);i.debug("user info claims received from user info endpoint"),r&&n.sub!==e.profile.sub&&i.throw(Error("subject from UserInfo response does not match subject in ID Token")),e.profile=this._claimsService.mergeClaims(e.profile,this._claimsService.filterProtocolClaims(n)),i.debug("user info claims received, updated profile:",e.profile)}async _processCode(e,t,r){let i=this._logger.create("_processCode");if(e.code){i.debug("Validating code");let n=await this._tokenClient.exchangeCode({client_id:t.client_id,client_secret:t.client_secret,code:e.code,redirect_uri:t.redirect_uri,code_verifier:t.code_verifier,extraHeaders:r,...t.extraTokenParams});Object.assign(e,n)}else i.debug("No code to process")}_validateIdTokenAttributes(e,t,r){var i;let n=this._logger.create("_validateIdTokenAttributes");n.debug("decoding ID Token JWT");let a=c.decode(null!=(i=e.id_token)?i:"");if(a.sub||n.throw(Error("ID Token is missing a subject claim")),r&&a.nonce!==r&&n.throw(Error("nonce in id_token does not match nonce in client storage")),t){let e=c.decode(t);a.sub!==e.sub&&n.throw(Error("sub in id_token does not match current sub")),a.auth_time&&a.auth_time!==e.auth_time&&n.throw(Error("auth_time in id_token does not match original auth_time")),a.azp&&a.azp!==e.azp&&n.throw(Error("azp in id_token does not match original azp")),!a.azp&&e.azp&&n.throw(Error("azp not in id_token, but present in original id_token"))}e.profile=a}}
1,O=class e{constructor(e){this.id=e.id||p.generateUUIDv4(),this.data=e.data,e.created&&e.created>0?this.created=e.created:this.created=f.getEpochTime(),this.request_type=e.request_type,this.url_state=e.url_state}toStorageString(){return new l("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(t){return l.createStatic("State","fromStorageString"),Promise.resolve(new e(JSON.parse(t)))}static async clearStaleState(t,r){let i=l.createStatic("State","clearStaleState"),n=f.getEpochTime()-r,a=await t.getAllKeys();i.debug("got keys",a);for(let r=0;r<a.length;r++){let o=a[r],s=await t.get(o),l=!1;if(s)try{let t=await e.fromStorageString(s);i.debug("got item from key:",o,t.created),t.created<=n&&(l=!0)}catch(e){i.error("Error parsing state for key:",o,e),l=!0}else i.debug("no item in storage for key:",o),l=!0;l&&(i.debug("removed item for key:",o),t.remove(o))}}},D=class e extends O{constructor(e){super(e),this.code_verifier=e.code_verifier,this.code_challenge=e.code_challenge,this.authority=e.authority,this.client_id=e.client_id,this.redirect_uri=e.redirect_uri,this.scope=e.scope,this.client_secret=e.client_secret,this.extraTokenParams=e.extraTokenParams,this.response_mode=e.response_mode,this.skipUserInfo=e.skipUserInfo,this.nonce=e.nonce}static async create(t){let r=!0===t.code_verifier?p.generateCodeVerifier():t.code_verifier||void 0,i=r?await p.generateCodeChallenge(r):void 0;return new e({...t,code_verifier:r,code_challenge:i})}toStorageString(){return new l("SigninState").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state,code_verifier:this.code_verifier,authority:this.authority,client_id:this.client_id,redirect_uri:this.redirect_uri,scope:this.scope,client_secret:this.client_secret,extraTokenParams:this.extraTokenParams,response_mode:this.response_mode,skipUserInfo:this.skipUserInfo,nonce:this.nonce})}static fromStorageString(t){l.createStatic("SigninState","fromStorageString");let r=JSON.parse(t);return e.create(r)}},R=class e{constructor(e){this.url=e.url,this.state=e.state}static async create({url:t,authority:r,client_id:i,redirect_uri:n,response_type:a,scope:o,state_data:s,response_mode:l,request_type:c,client_secret:u,nonce:d,url_state:p,resource:h,skipUserInfo:m,extraQueryParams:f,extraTokenParams:g,disablePKCE:y,dpopJkt:v,omitScopeWhenRequesting:_,...b}){if(!t)throw this._logger.error("create: No url passed"),Error("url");if(!i)throw this._logger.error("create: No client_id passed"),Error("client_id");if(!n)throw this._logger.error("create: No redirect_uri passed"),Error("redirect_uri");if(!a)throw this._logger.error("create: No response_type passed"),Error("response_type");if(!o)throw this._logger.error("create: No scope passed"),Error("scope");if(!r)throw this._logger.error("create: No authority passed"),Error("authority");let S=await D.create({data:s,request_type:c,url_state:p,code_verifier:!y,client_id:i,authority:r,redirect_uri:n,response_mode:l,client_secret:u,scope:o,extraTokenParams:g,skipUserInfo:m,nonce:d}),w=new URL(t);w.searchParams.append("client_id",i),w.searchParams.append("redirect_uri",n),w.searchParams.append("response_type",a),_||w.searchParams.append("scope",o),d&&w.searchParams.append("nonce",d),v&&w.searchParams.append("dpop_jkt",v);let C=S.id;for(let[e,t]of(p&&(C=`${C};${p}
1`),w.searchParams.append("state",C),S.code_challenge&&(w.searchParams.append("code_challenge",S.code_challenge),w.searchParams.append("code_challenge_method","S256")),h&&(Array.isArray(h)?h:[h]).forEach(e=>w.searchParams.append("resource",e)),Object.entries({response_mode:l,...b,...f})))null!=t&&w.searchParams.append(e,t.toString());return new e({url:w.href,state:S})}};R._logger=new l("SigninRequest");var M=class{constructor(e){if(this.access_token="",this.token_type="",this.profile={},this.state=e.get("state"),this.session_state=e.get("session_state"),this.state){let e=decodeURIComponent(this.state).split(";");this.state=e[0],e.length>1&&(this.url_state=e.slice(1).join(";"))}this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri"),this.code=e.get("code")}get expires_in(){if(void 0!==this.expires_at)return this.expires_at-f.getEpochTime()}set expires_in(e){"string"==typeof e&&(e=Number(e)),void 0!==e&&e>=0&&(this.expires_at=Math.floor(e)+f.getEpochTime())}get isOpenId(){var e;return(null==(e=this.scope)?void 0:e.split(" ").includes("openid"))||!!this.id_token}},N=class{constructor({url:e,state_data:t,id_token_hint:r,post_logout_redirect_uri:i,extraQueryParams:n,request_type:a,client_id:o,url_state:s}){if(this._logger=new l("SignoutRequest"),!e)throw this._logger.error("ctor: No url passed"),Error("url");let c=new URL(e);if(r&&c.searchParams.append("id_token_hint",r),o&&c.searchParams.append("client_id",o),i&&(c.searchParams.append("post_logout_redirect_uri",i),t||s)){this.state=new O({data:t,request_type:a,url_state:s});let e=this.state.id;s&&(e=`${e};${s}`),c.searchParams.append("state",e)}for(let[e,t]of Object.entries({...n}))null!=t&&c.searchParams.append(e,t.toString());this.url=c.href}},x=class{constructor(e){if(this.state=e.get("state"),this.state){let e=decodeURIComponent(this.state).split(";");this.state=e[0],e.length>1&&(this.url_state=e.slice(1).join(";"))}this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri")}},U=["nbf","jti","auth_time","nonce","acr","amr","azp","at_hash"],B=["sub","iss","aud","exp","iat"],F=class{constructor(e){this._settings=e,this._logger=new l("ClaimsService")}filterProtocolClaims(e){let t={...e};if(this._settings.filterProtocolClaims){for(let e of Array.isArray(this._settings.filterProtocolClaims)?this._settings.filterProtocolClaims:U)B.includes(e)||delete t[e]}return t}mergeClaims(e,t){let r={...e};for(let[e,i]of Object.entries(t))if(r[e]!==i)if(Array.isArray(r[e])||Array.isArray(i))if("replace"==this._settings.mergeClaimsStrategy.array)r[e]=i;else{let t=Array.isArray(r[e])?r[e]:[r[e]];for(let e of Array.isArray(i)?i:[i])t.includes(e)||t.push(e);r[e]=t}else"object"==typeof r[e]&&"object"==typeof i?r[e]=this.mergeClaims(r[e],i):r[e]=i;return r}},L=class{constructor(e,t){this.keys=e,this.nonce=t}},j=class{constructor(e,t){this._logger=new l("OidcClient"),this.settings=e instanceof A?e:new A(e),this.metadataService=null!=t?t:new E(this.settings),this._claimsService=new F(this.settings),this._validator=new T(this.settings,this.metadataService,this._claimsService),this._tokenClient=new I(this.settings,this.metadataService)}async createSigninRequest({state:e,request:t,request_uri:r,request_type:i,id_token_hint:n,login_hint:a,skipUserInfo:o,nonce:s,url_state:l,response_type:c=this.settings.response_type,scope:u=this.settings.scope,redirect_uri:d=this.settings.redirect_uri,prompt:p=this.settings.prompt,display:h=this.settings.display,max_age:m=this.settings.max_age,ui_locales:f=this.settings.ui_locales,acr_values:g=this.settings.acr_values,resource:y=this.settings.resource,response_mode:v=this.settings.response_mode,extraQueryParams:_=this.settings.extraQueryParams,extraTokenParams:b=this.settings.extraTokenParams,dpopJkt:S,omitScopeWhenRequesting:w=this.settings.omitScopeWhenRequesting}){let C=this._logger.create("createSigninRequest");if("code"!==c)throw Error("Only the Authorization Code flow (with PKCE) is supported");let E=await this.metadataService.getAuthorizationEndpoint();C.debug("Received authorization endpoint",E);let k=await R.create({url:E,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:d,response_type:c,scope:u,state_data:e,url_state:l,prompt:p,display:h,max_age:m,ui_locales:f,id_token_hint:n,login_hint:a,acr_values:g,dpopJkt:S,resource:y,request:t,request_uri:r,extraQueryParams:_,extraTokenParams:b,request_type:i,response_mode:v,client_secret:this.settings.client_secret,skipUserInfo:o,nonce:s,disablePKCE:this.settings.disablePKCE,omitScopeWhenRequesting:w});await this.clearStaleState();let A=k.state;return await this.settings.stateStore.set(A.id,A.toStorageString()),k}async readSigninResponseState(e,t=!1){let r=this._logger.create("readSigninResponseState"),i=new M(g.readParams(e,this.settings.response_mode));if(!i.state)throw r.throw(Error("No state in response")),null;let n=await this.settings.stateStore[t?"remove":"get"](i.state);if(!n)throw r.throw(Error("No matching state found in storage")),null;return{state:await D.fromStorageString(n),response:i}}async processSigninResponse(e,t,r=!0){let i=this._logger.create("processSigninResponse"),{state:n,response:a}=await this.readSigninResponseState(e,r);if(i.debug("received state from storage; validating response"),this.settings.dpop&&this.settings.dpop.store){let e=await this.getDpopProof(this.settings.dpop.store);t={...t,DPoP:e}}
1try{await this._validator.validateSigninResponse(a,n,t)}catch(e){if(e instanceof w&&this.settings.dpop){let r=await this.getDpopProof(this.settings.dpop.store,e.nonce);t.DPoP=r,await this._validator.validateSigninResponse(a,n,t)}else throw e}return a}async getDpopProof(e,t){let r;return(await e.getAllKeys()).includes(this.settings.client_id)?(r=await e.get(this.settings.client_id)).nonce!==t&&t&&(r.nonce=t,await e.set(this.settings.client_id,r)):(r=new L(await p.generateDPoPKeys(),t),await e.set(this.settings.client_id,r)),await p.generateDPoPProof({url:await this.metadataService.getTokenEndpoint(!1),httpMethod:"POST",keyPair:r.keys,nonce:r.nonce})}async processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:r=!1,extraTokenParams:i={}}){let n=await this._tokenClient.exchangeCredentials({username:e,password:t,...i}),a=new M(new URLSearchParams);return Object.assign(a,n),await this._validator.validateCredentialsResponse(a,r),a}async useRefreshToken({state:e,redirect_uri:t,resource:r,timeoutInSeconds:i,extraHeaders:n,extraTokenParams:a}){var o;let s,l,c=this._logger.create("useRefreshToken");if(void 0===this.settings.refreshTokenAllowedScope)s=e.scope;else{let t=this.settings.refreshTokenAllowedScope.split(" ");s=((null==(o=e.scope)?void 0:o.split(" "))||[]).filter(e=>t.includes(e)).join(" ")}if(this.settings.dpop&&this.settings.dpop.store){let e=await this.getDpopProof(this.settings.dpop.store);n={...n,DPoP:e}}try{l=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,scope:s,redirect_uri:t,resource:r,timeoutInSeconds:i,extraHeaders:n,...a})}catch(o){if(o instanceof w&&this.settings.dpop)n.DPoP=await this.getDpopProof(this.settings.dpop.store,o.nonce),l=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,scope:s,redirect_uri:t,resource:r,timeoutInSeconds:i,extraHeaders:n,...a});else throw o}let u=new M(new URLSearchParams);return Object.assign(u,l),c.debug("validating response",u),await this._validator.validateRefreshResponse(u,{...e,scope:s}),u}async createSignoutRequest({state:e,id_token_hint:t,client_id:r,request_type:i,url_state:n,post_logout_redirect_uri:a=this.settings.post_logout_redirect_uri,extraQueryParams:o=this.settings.extraQueryParams}={}){let s=this._logger.create("createSignoutRequest"),l=await this.metadataService.getEndSessionEndpoint();if(!l)throw s.throw(Error("No end session endpoint")),null;s.debug("Received end session endpoint",l),r||!a||t||(r=this.settings.client_id);let c=new N({url:l,id_token_hint:t,client_id:r,post_logout_redirect_uri:a,state_data:e,extraQueryParams:o,request_type:i,url_state:n});await this.clearStaleState();let u=c.state;return u&&(s.debug("Signout request has state to persist"),await this.settings.stateStore.set(u.id,u.toStorageString())),c}async readSignoutResponseState(e,t=!1){let r=this._logger.create("readSignoutResponseState"),i=new x(g.readParams(e,this.settings.response_mode));if(!i.state){if(r.debug("No state in response"),i.error)throw r.warn("Response was error:",i.error),new y(i);return{state:void 0,response:i}}let n=await this.settings.stateStore[t?"remove":"get"](i.state);if(!n)throw r.throw(Error("No matching state found in storage")),null;return{state:await O.fromStorageString(n),response:i}}async processSignoutResponse(e){let t=this._logger.create("processSignoutResponse"),{state:r,response:i}=await this.readSignoutResponseState(e,!0);return r?(t.debug("Received state from storage; validating response"),this._validator.validateSignoutResponse(i,r)):t.debug("No state from storage; skipping response validation"),i}clearStaleState(){return this._logger.create("clearStaleState"),O.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}async revokeToken(e,t){return this._logger.create("revokeToken"),await this._tokenClient.revoke({token:e,token_type_hint:t})}},V=class{constructor(e){this._userManager=e,this._logger=new l("SessionMonitor"),this._start=async e=>{let t=e.session_state;if(!t)return;let r=this._logger.create("_start");if(e.profile?(this._sub=e.profile.sub,r.debug("session_state",t,", sub",this._sub)):(this._sub=void 0,r.debug("session_state",t,", anonymous user")),this._checkSessionIFrame)return void this._checkSessionIFrame.start(t);try{let e=await this._userManager.metadataService.getCheckSessionIframe();if(e){r.debug("initializing check session iframe");let i=this._userManager.settings.client_id,n=this._userManager.settings.checkSessionIntervalInSeconds,a=this._userManager.settings.stopCheckSessionOnError,o=new b(this._callback,i,e,n,a);await o.load(),this._checkSessionIFrame=o,o.start(t)}else r.warn("no check session iframe found in the metadata")}catch(e){r.error("Error from getCheckSessionIframe:",e instanceof Error?e.message:e)}},this._stop=()=>{let e=this._logger.create("_stop");if(this._sub=void 0,this._checkSessionIFrame&&this._checkSessionIFrame.stop(),this._userManager.settings.monitorAnonymousSession){let t=setInterval(async()=>{clearInterval(t);try{let e=await this._userManager.querySessionStatus();if(e){let t={session_state:e.session_state,profile:e.sub?{sub:e.sub}:null};this._start(t)}}catch(t){e.error("error from querySessionStatus",t instanceof Error?t.message:t)}},1e3)}},this._callback=async()=>{let e=this._logger.create("_callback");try{let t=await this._userManager.querySessionStatus(),r=!0;t&&this._checkSessionIFrame?t.sub===this._sub?(r=!1,this._checkSessionIFrame.start(t.session_state),e.debug("same sub still logged in at OP, session state has changed, restarting check session iframe; session_state",t.session_state),await this._userManager.events._raiseUserSessionChanged()):e.debug("different subject signed into OP",t.sub):e.debug("subject no longer signed into OP"),r?this._sub?await this._userManager.events._raiseUserSignedOut():await this._userManager.events._raiseUserSignedIn():e.debug("no change in session detected, no event to raise")}catch(t){this._sub&&(e.debug("Error calling queryCurrentSigninSession; raising signed out event",t),await this._userManager.events._raiseUserSignedOut())}},e||this._logger.throw(Error("No user manager passed")),this._userManager.events.addUserLoaded(this._start),this._userManager.events.addUserUnloaded(this._stop),this._init().catch(e=>{this._logger.error(e)})}async _init(){this._logger.create("_init");let e=await this._userManager.getUser();if(e)this._start(e);else if(this._userManager.settings.monitorAnonymousSession){let e=await this._userManager.querySessionStatus();if(e){let t={session_state:e.session_state,profile:e.sub?{sub:e.sub}:null};this._start(t)}}}},q=class e{constructor(e){var t;this.id_token=e.id_token,this.session_state=null!=(t=e.session_state)?t:null,this.access_token=e.access_token,this.refresh_token=e.refresh_token,this.token_type=e.token_type,this.scope=e.scope,this.profile=e.profile,this.expires_at=e.expires_at,this.state=e.userState,this.url_state=e.url_state}get expires_in(){if(void 0!==this.expires_at)return this.expires_at-f.getEpochTime()}set expires_in(e){void 0!==e&&(this.expires_at=Math.floor(e)+f.getEpochTime())}get expired(){let e=this.expires_in;if(void 0!==e)return e<=0}get scopes(){var e,t;return null!=(t=null==(e=this.scope)?void 0:e.split(" "))?t:[]}toStorageString(){return new l("User").create("toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})}static fromStorageString(t){return l.createStatic("User","fromStorageString"),new e(JSON.parse(t))}},Y="oidc-client",H=class{constructor(){this._abort=new h("Window navigation aborted"),this._disposeHandlers=new Set,this._window=null}async navigate(e){let t=this._logger.create("navigate");if(!this._window)throw Error("Attempted to navigate on a disposed window");t.debug("setting URL in window"),this._window.location.replace(e.url);let{url:r,keepOpen:i}=await new Promise((r,i)=>{let n=n=>{var a;let o=n.data,s=null!=(a=e.scriptOrigin)?a:window.location.origin;if(n.origin===s&&(null==o?void 0:o.source)===Y){try{let r=g.readParams(o.url,e.response_mode).get("state");if(r||t.warn("no state found in response url"),n.source!==this._window&&r!==e.state)return}catch{this._dispose(),i(Error("Invalid response from window"))}r(o)}};window.addEventListener("message",n,!1),this._disposeHandlers.add(()=>window.removeEventListener("message",n,!1));let a=new BroadcastChannel(`oidc-client-popup-${e.state}`);a.addEventListener("message",n,!1),this._disposeHandlers.add(()=>a.close()),this._disposeHandlers.add(this._abort.addHandler(e=>{this._dispose(),i(e)}))});return t.debug("got response from window"),this._dispose(),i||this.close(),{url:r}}_dispose(){for(let e of(this._logger.create("_dispose"),this._disposeHandlers))e();this._disposeHandlers.clear()}static _notifyParent(e,t,r=!1,i=window.location.origin){let n={source:Y,url:t,keepOpen:r},a=new l("_notifyParent");
1if(e)a.debug("With parent. Using parent.postMessage."),e.postMessage(n,i);else{a.debug("No parent. Using BroadcastChannel.");let e=new URL(t).searchParams.get("state");if(!e)throw Error("No parent and no state in URL. Can't complete notification.");let r=new BroadcastChannel(`oidc-client-popup-${e}`);r.postMessage(n),r.close()}}},W={location:!1,toolbar:!1,height:640,closePopupWindowAfterInSeconds:-1},z="_blank",K=class extends A{constructor(e){let{popup_redirect_uri:t=e.redirect_uri,popup_post_logout_redirect_uri:r=e.post_logout_redirect_uri,popupWindowFeatures:i=W,popupWindowTarget:n=z,redirectMethod:a="assign",redirectTarget:o="self",iframeNotifyParentOrigin:s=e.iframeNotifyParentOrigin,iframeScriptOrigin:l=e.iframeScriptOrigin,requestTimeoutInSeconds:c,silent_redirect_uri:u=e.redirect_uri,silentRequestTimeoutInSeconds:d,automaticSilentRenew:p=!0,validateSubOnSilentRenew:h=!0,includeIdTokenInSilentRenew:m=!1,monitorSession:f=!1,monitorAnonymousSession:g=!1,checkSessionIntervalInSeconds:y=2,query_status_response_type:v="code",stopCheckSessionOnError:_=!0,revokeTokenTypes:b=["access_token","refresh_token"],revokeTokensOnSignout:w=!1,includeIdTokenInSilentSignout:C=!1,accessTokenExpiringNotificationTimeInSeconds:E=60,maxSilentRenewTimeoutRetries:A,userStore:P}=e;if(super(e),this.popup_redirect_uri=t,this.popup_post_logout_redirect_uri=r,this.popupWindowFeatures=i,this.popupWindowTarget=n,this.redirectMethod=a,this.redirectTarget=o,this.iframeNotifyParentOrigin=s,this.iframeScriptOrigin=l,this.silent_redirect_uri=u,this.silentRequestTimeoutInSeconds=d||c||10,this.automaticSilentRenew=p,this.validateSubOnSilentRenew=h,this.includeIdTokenInSilentRenew=m,this.monitorSession=f,this.monitorAnonymousSession=g,this.checkSessionIntervalInSeconds=y,this.stopCheckSessionOnError=_,this.query_status_response_type=v,this.revokeTokenTypes=b,this.revokeTokensOnSignout=w,this.includeIdTokenInSilentSignout=C,this.accessTokenExpiringNotificationTimeInSeconds=E,this.maxSilentRenewTimeoutRetries=A,P)this.userStore=P;else{let e="undefined"!=typeof window?window.sessionStorage:new S;this.userStore=new k({store:e})}}},$=class e extends H{constructor({silentRequestTimeoutInSeconds:t=10}){super(),this._logger=new l("IFrameWindow"),this._timeoutInSeconds=t,this._frame=e.createHiddenIframe(),this._window=this._frame.contentWindow}static createHiddenIframe(){let e=window.document.createElement("iframe");return e.style.visibility="hidden",e.style.position="fixed",e.style.left="-1000px",e.style.top="0",e.width="0",e.height="0",window.document.body.appendChild(e),e}async navigate(e){this._logger.debug("navigate: Using timeout of:",this._timeoutInSeconds);let t=setTimeout(()=>void this._abort.raise(new v("IFrame timed out without a response")),1e3*this._timeoutInSeconds);return this._disposeHandlers.add(()=>clearTimeout(t)),await super.navigate(e)}close(){var e;this._frame&&(this._frame.parentNode&&(this._frame.addEventListener("load",e=>{var t;let r=e.target;null==(t=r.parentNode)||t.removeChild(r),this._abort.raise(Error("IFrame removed from DOM"))},!0),null==(e=this._frame.contentWindow)||e.location.replace("about:blank")),this._frame=null),this._window=null}static notifyParent(e,t){return super._notifyParent(window.parent,e,!1,t)}},G=class{constructor(e){this._settings=e,this._logger=new l("IFrameNavigator")}async prepare({silentRequestTimeoutInSeconds:e=this._settings.silentRequestTimeoutInSeconds}){return new $({silentRequestTimeoutInSeconds:e})}async callback(e){this._logger.create("callback"),$.notifyParent(e,this._settings.iframeNotifyParentOrigin)}},J=class extends H{constructor({popupWindowTarget:e=z,popupWindowFeatures:t={},popupSignal:r,popupAbortOnClose:i}){super(),this._logger=new l("PopupWindow");let n=m.center({...W,...t});this._window=window.open(void 0,e,m.serialize(n)),this.abortOnClose=!!i,r&&r.addEventListener("abort",()=>{var e;this._abort.raise(Error(null!=(e=r.reason)?e:"Popup aborted"))}),t.closePopupWindowAfterInSeconds&&t.closePopupWindowAfterInSeconds>0&&setTimeout(()=>{if(!this._window||"boolean"!=typeof this._window.closed||this._window.closed)return void this._abort.raise(Error("Popup blocked by user"));this.close()},1e3*t.closePopupWindowAfterInSeconds)}async navigate(e){var t;
1null==(t=this._window)||t.focus();let r=setInterval(()=>{(!this._window||this._window.closed)&&(this._logger.debug("Popup closed by user or isolated by redirect"),i(),this._disposeHandlers.delete(i),this.abortOnClose&&this._abort.raise(Error("Popup closed by user")))},500),i=()=>clearInterval(r);return this._disposeHandlers.add(i),await super.navigate(e)}close(){this._window&&!this._window.closed&&(this._window.close(),this._abort.raise(Error("Popup closed"))),this._window=null}static notifyOpener(e,t){super._notifyParent(window.opener,e,t),t||window.opener||window.close()}},Z=class{constructor(e){this._settings=e,this._logger=new l("PopupNavigator")}async prepare({popupWindowFeatures:e=this._settings.popupWindowFeatures,popupWindowTarget:t=this._settings.popupWindowTarget,popupSignal:r,popupAbortOnClose:i}){return new J({popupWindowFeatures:e,popupWindowTarget:t,popupSignal:r,popupAbortOnClose:i})}async callback(e,{keepOpen:t=!1}){this._logger.create("callback"),J.notifyOpener(e,t)}},Q=class{constructor(e){this._settings=e,this._logger=new l("RedirectNavigator")}async prepare({redirectMethod:e=this._settings.redirectMethod,redirectTarget:t=this._settings.redirectTarget}){var r;let i;this._logger.create("prepare");let n=window.self;"top"===t&&(n=null!=(r=window.top)?r:window.self);let a=n.location[e].bind(n.location);return{navigate:async e=>{this._logger.create("navigate");let t=new Promise((t,r)=>{i=r,window.addEventListener("pageshow",()=>t(window.location.href)),a(e.url)});return await t},close:()=>{this._logger.create("close"),null==i||i(Error("Redirect aborted")),n.stop()}}}async callback(){}},X=class extends _{constructor(e){super({expiringNotificationTimeInSeconds:e.accessTokenExpiringNotificationTimeInSeconds}),this._logger=new l("UserManagerEvents"),this._userLoaded=new h("User loaded"),this._userUnloaded=new h("User unloaded"),this._silentRenewError=ne
1w h("Silent renew error"),this._userSignedIn=new h("User signed in"),this._userSignedOut=new h("User signed out"),this._userSessionChanged=new h("User session changed")}async load(e,t=!0){await super.load(e),t&&await this._userLoaded.raise(e)}async unload(){await super.unload(),await this._userUnloaded.raise()}addUserLoaded(e){return this._userLoaded.addHandler(e)}removeUserLoaded(e){return this._userLoaded.removeHandler(e)}addUserUnloaded(e){return this._userUnloaded.addHandler(e)}removeUserUnloaded(e){return this._userUnloaded.removeHandler(e)}addSilentRenewError(e){return this._silentRenewError.addHandler(e)}removeSilentRenewError(e){return this._silentRenewError.removeHandler(e)}async _raiseSilentRenewError(e){await this._silentRenewError.raise(e)}addUserSignedIn(e){return this._userSignedIn.addHandler(e)}removeUserSignedIn(e){this._userSignedIn.removeHandler(e)}async _raiseUserSignedIn(){await this._userSignedIn.raise()}addUserSignedOut(e){return this._userSignedOut.addHandler(e)}removeUserSignedOut(e){this._userSignedOut.removeHandler(e)}async _raiseUserSignedOut(){await this._userSignedOut.raise()}addUserSessionChanged(e){return this._userSessionChanged.addHandler(e)}removeUserSessionChanged(e){this._userSessionChanged.removeHandler(e)}async _raiseUserSessionChanged(){await this._userSessionChanged.raise()}},ee=class{constructor(e){this._userManager=e,this._logger=new l("SilentRenewService"),this._isStarted=!1,this._retryTimer=new f("Retry Silent Renew"),this._timeoutRetryCount=0,this._tokenExpiring=async()=>{let e=this._logger.create("_tokenExpiring");try{await this._userManager.signinSilent(),this._timeoutRetryCount=0,e.debug("silent token renewal successful")}catch(t){if(t instanceof v){this._timeoutRetryCount++;let r=this._userManager.settings.maxSilentRenewTimeoutRetries;if(void 0!==r&&this._timeoutRetryCount>r){e.error(`Timeout retry limit reached (${this._timeoutRetryCount} > ${r}), raising silentRenewError:`,t),this._timeoutRetryCount=0,await this._userManager.events._raiseSilentRenewError(t);return}e.warn(`ErrorTimeout from signinSilent (attempt ${this._timeoutRetryCount}), retry in 5s:`,t),this._retryTimer.init(5);return}e.error("Error from signinSilent:",t),this._timeoutRetryCount=0,await this._userManager.events._raiseSilentRenewError(t)}}}async start(){let e=this._logger.create("start");if(!this._isStarted){this._isStarted=!0,this._userManager.events.addAccessTokenExpiring(this._tokenExpiring),this._retryTimer.addHandler(this._tokenExpiring);try{await this._userManager.getUser()}catch(t){e.error("getUser error",t)}}}stop(){this._isStarted&&(this._retryTimer.cancel(),this._retryTimer.removeHandler(this._tokenExpiring),this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring),this._isStarted=!1)}},et=class{constructor(e){this.refresh_token=e.refresh_token,this.id_token=e.id_token,this.session_state=e.session_state,this.scope=e.scope,this.profile=e.profile,this.data=e.state}}
1,er=class{constructor(e,t,r,i){this._logger=new l("UserManager"),this.settings=new K(e),this._client=new j(e),this._redirectNavigator=null!=t?t:new Q(this.settings),this._popupNavigator=null!=r?r:new Z(this.settings),this._iframeNavigator=null!=i?i:new G(this.settings),this._events=new X(this.settings),this._silentRenewService=new ee(this),this.settings.automaticSilentRenew&&this.startSilentRenew(),this._sessionMonitor=null,this.settings.monitorSession&&(this._sessionMonitor=new V(this))}get events(){return this._events}get metadataService(){return this._client.metadataService}async getUser(e=!1){let t=this._logger.create("getUser"),r=await this._loadUser();return r?(t.info("user loaded"),await this._events.load(r,e),r):(t.info("user not found in storage"),null)}async removeUser(){let e=this._logger.create("removeUser");await this.storeUser(null),e.info("user removed from storage"),await this._events.unload()}async signinRedirect(e={}){var t;let r;this._logger.create("signinRedirect");let{redirectMethod:i,...n}=e;(null==(t=this.settings.dpop)?void 0:t.bind_authorization_code)&&(r=await this.generateDPoPJkt(this.settings.dpop));let a=await this._redirectNavigator.prepare({redirectMethod:i});await this._signinStart({request_type:"si:r",dpopJkt:r,...n},a)}async signinRedirectCallback(e=window.location.href){let t=this._logger.create("signinRedirectCallback"),r=await this._signinEnd(e);return r.profile&&r.profile.sub?t.info("success, signed in subject",r.profile.sub):t.info("no subject"),r}async signinResourceOwnerCredentials({username:e,password:t,skipUserInfo:r=!1}){let i=this._logger.create("signinResourceOwnerCredential"),n=await this._client.processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:r,extraTokenParams:this.settings.extraTokenParams});i.debug("got signin response");let a=await this._buildUser(n);return a.profile&&a.profile.sub?i.info("success, signed in subject",a.profile.sub):i.info("no subject"),a}async signinPopup(e={}){var t;let r,i=this._logger.create("signinPopup");(null==(t=this.settings.dpop)?void 0:t.bind_authorization_code)&&(r=await this.generateDPoPJkt(this.settings.dpop));let{popupWindowFeatures:n,popupWindowTarget:a,popupSignal:o,popupAbortOnClose:s,...l}=e,c=this.settings.popup_redirect_uri;c||i.throw(Error("No popup_redirect_uri configured"));let u=await this._popupNavigator.prepare({popupWindowFeatures:n,popupWindowTarget:a,popupSignal:o,popupAbortOnClose:s}),d=await this._signin({request_type:"si:p",redirect_uri:c,display:"popup",dpopJkt:r,...l},u);return d&&(d.profile&&d.profile.sub?i.info("success, signed in subject",d.profile.sub):i.info("no subject")),d}async signinPopupCallback(e=window.location.href,t=!1){let r=this._logger.create("signinPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),r.info("success")}async signinSilent(e={}){var t,r;let i,n,a=this._logger.create("signinSilent"),{silentRequestTimeoutInSeconds:o,...s}=e,l=await this._loadUser();if(!e.forceIframeAuth&&(null==l?void 0:l.refresh_token)){a.debug("using refresh token");let e=new et(l);return await this._useRefreshToken({state:e,redirect_uri:s.redirect_uri,resource:s.resource,extraTokenParams:s.extraTokenParams,timeoutInSeconds:o})}(null==(t=this.settings.dpop)?void 0:t.bind_authorization_code)&&(i=await this.generateDPoPJkt(this.settings.dpop));let c=this.settings.silent_redirect_uri;c||a.throw(Error("No silent_redirect_uri configured")),l&&this.settings.validateSubOnSilentRenew&&(a.debug("subject prior to silent renew:",l.profile.sub),n=l.profile.sub);let u=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:o});return(l=await this._signin({request_type:"si:s",redirect_uri:c,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?null==l?void 0:l.id_token:void 0,dpopJkt:i,...s},u,n))&&((null==(r=l.profile)?void 0:r.sub)?a.info("success, signed in subject",l.profile.sub):a.info("no subject")),l}async _useRefreshToken(e){let t=await this._client.useRefreshToken({timeoutInSeconds:this.settings.silentRequestTimeoutInSeconds,...e}),r=new q({...e.state,...t});return await this.storeUser(r),await this._events.load(r),r}async signinSilentCallback(e=window.location.href){let t=this._logger.create("signinSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async signinCallback(e=window.location.href){let{state:t}=await this._client.readSigninResponseState(e);switch(t.request_type){case"si:r":return await this.signinRedirectCallback(e);case"si:p":await this.signinPopupCallback(e);break;case"si:s":await this.signinSilentCallback(e);break;default:throw Error("invalid request_type in state")}}async signoutCallback(e=window.location.href,t=!1){let{state:r}=await this._client.readSignoutResponseState(e);if(r)switch(r.request_type){case"so:r":return await this.signoutRedirectCallback(e);case"so:p":await this.signoutPopupCallback(e,t);break;case"so:s":await this.signoutSilentCallback(e);break;default:throw Error("invalid request_type in state")}}async querySessionStatus(e={}){let t=this._logger.create("querySessionStatus"),{silentRequestTimeoutInSeconds:r,...i}=e,n=this.settings.silent_redirect_uri;n||t.throw(Error("No silent_redirect_uri configured"));let a=await this._loadUser(),o=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:r}),s=await this._signinStart({request_type:"si:s",redirect_uri:n,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?null==a?void 0:a.id_token:void 0,response_type:this.settings.query_status_response_type,scope:"openid",skipUserInfo:!0,...i},o);try{let e=await this._client.processSigninResponse(s.url,{});if(t.debug("got signin response"),e.session_state&&e.profile.sub)return t.info("success for subject",e.profile.sub),{session_state:e.session_state,sub:e.profile.sub};return t.info("success, user not authenticated"),null}catch(e){if(this.settings.monitorAnonymousSession&&e instanceof y)switch(e.error){case"login_required":case"consent_required":case"interaction_required":case"account_selection_required":return t.info("success for anonymous user"),{session_state:e.session_state}}throw e}}async _signin(e,t,r){let i=await this._signinStart(e,t);return await this._signinEnd(i.url,r)}async _signinStart(e,t){let r=this._logger.create("_signinStart");try{let i=await this._client.createSigninRequest(e);return r.debug("got signin request"),await t.navigate({url:i.url,state:i.state.id,response_mode:i.state.response_mode,scriptOrigin:this.settings.iframeScriptOrigin})}catch(e){throw r.debug("error after preparing navigator, closing navigator window"),t.close(),e}}async _signinEnd(e,t){let r=this._logger.create("_signinEnd"),i=await this._client.processSigninResponse(e,{});return r.debug("got signin response"),await this._buildUser(i,t)}async _buildUser(e,t){let r=this._logger.create("_buildUser"),i=new q(e);if(t){if(t!==i.profile.sub)throw r.debug("current user does not match user returned from signin. sub from signin:",i.profile.sub),new y({...e,error:"login_required"});r.debug("current user matches user returned from signin")}return await this.storeUser(i),r.debug("user stored"),await this._events.load(i),i}async signoutRedirect(e={}){let t=this._logger.create("signoutRedirect"),{redirectMethod:r,...i}=e,n=await this._redirectNavigator.prepare({redirectMethod:r});await this._signoutStart({request_type:"so:r",post_logout_redirect_uri:this.settings.post_logout_redirect_uri,...i},n),t.info("success")}async signoutRedirectCallback(e=window.location.href){let t=this._logger.create("signoutRedirectCallback"),r=await this._signoutEnd(e);return t.info("success"),r}async signoutPopup(e={}){let t=this._logger.create("signoutPopup"),{popupWindowFeatures:r,popupWindowTarget:i,popupSignal:n,...a}=e,o=this.settings.popup_post_logout_redirect_uri,s=await this._popupNavigator.prepare({popupWindowFeatures:r,popupWindowTarget:i,popupSignal:n});await this._signout({request_type:"so:p",post_logout_redirect_uri:o,state:null==o?void 0:{},...a},s),t.info("success")}async signoutPopupCallback(e=window.location.href,t=!1){let r=this._logger.create("signoutPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),r.info("success")}async _signout(e,t){let r=await this._signoutStart(e,t);return await this._signoutEnd(r.url)}async _signoutStart(e={},t){var r;let i=this._logger.create("_signoutStart");try{let n=await this._loadUser();i.debug("loaded current user from storage"),this.settings.revokeTokensOnSignout&&await this._revokeInternal(n);let a=e.id_token_hint||n&&n.id_token;a&&(i.debug("setting id_token_hint in signout request"),e.id_token_hint=a),await this.removeUser(),i.debug("user removed, creating signout request");
1let o=await this._client.createSignoutRequest(e);return i.debug("got signout request"),await t.navigate({url:o.url,state:null==(r=o.state)?void 0:r.id,scriptOrigin:this.settings.iframeScriptOrigin})}catch(e){throw i.debug("error after preparing navigator, closing navigator window"),t.close(),e}}async _signoutEnd(e){let t=this._logger.create("_signoutEnd"),r=await this._client.processSignoutResponse(e);return t.debug("got signout response"),r}async signoutSilent(e={}){var t;let r=this._logger.create("signoutSilent"),{silentRequestTimeoutInSeconds:i,...n}=e,a=this.settings.includeIdTokenInSilentSignout?null==(t=await this._loadUser())?void 0:t.id_token:void 0,o=this.settings.popup_post_logout_redirect_uri,s=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:i});await this._signout({request_type:"so:s",post_logout_redirect_uri:o,id_token_hint:a,...n},s),r.info("success")}async signoutSilentCallback(e=window.location.href){let t=this._logger.create("signoutSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async revokeTokens(e){let t=await this._loadUser();await this._revokeInternal(t,e)}async _revokeInternal(e,t=this.settings.revokeTokenTypes){let r=this._logger.create("_revokeInternal");if(!e)return;let i=t.filter(t=>"string"==typeof e[t]);if(!i.length)return void r.debug("no need to revoke due to no token(s)");for(let t of i)await this._client.revokeToken(e[t],t),r.info(`${t} revoked successfully`),"access_token"!==t&&(e[t]=null);await this.storeUser(e),r.debug("user stored"),await this._events.load(e)}startSilentRenew(){this._logger.create("startSilentRenew"),this._silentRenewService.start()}stopSilentRenew(){this._silentRenewService.stop()}get _userStoreKey(){return`user:${this.settings.authority}:${this.settings.client_id}`}async _loadUser(){let e=this._logger.create("_loadUser"),t=await this.settings.userStore.get(this._userStoreKey);return t?(e.debug("user storageString loaded"),q.fromStorageString(t)):(e.debug("no user storageString"),null)}async storeUser(e){let t=this._logger.create("storeUser");if(e){t.debug("storing user");let r=e.toStorageString();await this.settings.userStore.set(this._userStoreKey,r)}else this._logger.debug("removing user"),await this.settings.userStore.remove(this._userStoreKey),this.settings.dpop&&await this.settings.dpop.store.remove(this.settings.client_id)}async clearStaleState(){await this._client.clearStaleState()}
1async dpopProof(e,t,r,i){var n,a;let o=await (null==(a=null==(n=this.settings.dpop)?void 0:n.store)?void 0:a.get(this.settings.client_id));if(o)return await p.generateDPoPProof({url:e,accessToken:null==t?void 0:t.access_token,httpMethod:r,keyPair:o.keys,nonce:i})}async generateDPoPJkt(e){let t=await e.store.get(this.settings.client_id);return t||(t=new L(await p.generateDPoPKeys()),await e.store.set(this.settings.client_id,t)),await p.generateDPoPJkt(t.keys)}}},45105:(e,t,r)=>{e.exports=r(87665)},45525:(e,t,r)=>{"use strict";var i,n=r(52468),a=r(29351),o=r(5391),s=r(55502),l=r(72130),c=r(71742),u=r(65865),d=r(73305),p=r(2002),h=r(2496),m=r(41760),f=r(54366),g=r(42504),y=r(87962),v=r(80611),_=Function,b=function(e){try{return _('"use strict"; return ('+e+").constructor;")()}catch(e){}},S=r(10221),w=r(98857),C=function(){throw new u},E=S?function(){try{return arguments.callee,C}catch(e){try{return S(arguments,"callee").get}catch(e){return C}}}():C,k=r(95295)(),A=r(34816),P=r(61664),I=r(86558),T=r(71938),O=r(66958),D={},R="undefined"!=typeof Uint8Array&&A?A(Uint8Array):i,M={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":k&&A?A([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":D,"%AsyncGenerator%":D,"%AsyncGeneratorFunction%":D,"%AsyncIteratorPrototype%":D,"%Atomics%":"undefined"==typeof Atomics?i:Atomics,"%BigInt%":"undefined"==typeof BigInt?i:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":o,"%Float16Array%":"undefined"==typeof Float16Array?i:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":_,"%GeneratorFunction%":D,"%Int8Array%":"undefined"==typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
1IteratorPrototype%":k&&A?A(A([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":"undefined"==typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&k&&A?A(new Map()[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?i:Promise,"%Proxy%":"undefined"==typeof Proxy?i:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&k&&A?A(new Set()[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&A?A(""[Symbol.iterator]()):i,"%Symbol%":k?Symbol:i,"%SyntaxError%":c,"%ThrowTypeError%":E,"%TypedArray%":R,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?i:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?i:WeakSet,"%Function.prototype.call%":O,"%Function.prototype.apply%":T,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":P,"%Math.abs%":p,"%Math.floor%":h,"%Math.max%":m,"%Math.min%":f,"%Math.pow%":g,"%Math.round%":y,"%Math.sign%":v,"%Reflect.getPrototypeOf%":I};if(A)try{null.error}catch(e){var N=A(A(e));M["%Error.prototype%"]=N}var x=function e(t){var r;if("%AsyncFunction%"===t)r=b("async function () {}");else if("%GeneratorFunction%"===t)r=b("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=b("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&A&&(r=A(n.prototype))}return M[t]=r,r},U={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},B=r(28419),F=r(71355),L=B.call(O,Array.prototype.concat),j=B.call(T,Array.prototype.splice),V=B.call(O,String.prototype.replace),q=B.call(O,String.prototype.slice),Y=B.c
1all(O,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,z=function(e){var t=q(e,0,1),r=q(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var i=[];return V(e,H,function(e,t,r,n){i[i.length]=r?V(n,W,"$1"):t||e}),i},K=function(e,t){var r,i=e;if(F(U,i)&&(i="%"+(r=U[i])[0]+"%"),F(M,i)){var n=M[i];if(n===D&&(n=x(i)),void 0===n&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:i,value:n}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===Y(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=z(e),i=r.length>0?r[0]:"",n=K("%"+i+"%",t),a=n.name,o=n.value,s=!1,l=n.alias;l&&(i=l[0],j(r,L([0,1],l)));for(var d=1,p=!0;d<r.length;d+=1){var h=r[d],m=q(h,0,1),f=q(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===f||"'"===f||"`"===f)&&m!==f)throw new c("property names with quotes must have matching quotes");if("constructor"!==h&&p||(s=!0),i+="."+h,F(M,a="%"+i+"%"))o=M[a];else if(null!=o){if(!(h in o)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(S&&d+1>=r.length){var g=S(o,h);o=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:o[h]}else p=F(o,h),o=o[h];p&&!s&&(M[a]=o)}}return o}},46348:(e,t,r)=>{"use strict";r.d(t,{V4:()=>a,X2:()=>n,aw:()=>s,gd:()=>i,lf:()=>o});var i=function(e){return e.BILLING_ADDRESS="billing",e.DELIVERY_ADDRESS="delivery",e.SIMCARD_ADDRESS="simcard",e}({}),n=function(e){return e.MOBILEANDSERVICEOPTION="MOBILE_NUMBER_AND_SERVICEOPTION",e.REMOVERATEPLAN="REMOVE_RATEPLAN",e.DELIVERYADDRESS="DELIVERY_ADDRESS",e.ADDSUBSCRIPTION="ADD_SUBSCRIPTION",e.DELETESUBSCRIPTION="DELETE_SUNSCRIPTION",e}({}),a=function(e){return e.OFFERPRODUCTTABLE="offer-producttable",e.CREATECART="createcart-producttable",e.ADDPRODUCTPRODUCTTABLE="add-product-updatecart-producttable",e.REMOVEPRODPRODUCTTABLE="remove-product-updatecart-producttable",e.GETCARTNOAUTH="getcart-without-auth",e.GETCARTAUTH="getcart-with-auth",e.GETSITEDETAILAUTH="getsitedetail-with-auth",e.MERGECARTAUTH="mergecart-with-auth",e.GETNUMBERCART="getnumber-cart",e.SERVICEOPTIONCART="getserviceoption-cat",e.NUMBERUPDATECART="changenumber-updatecart-cart",e.NUMBERADDOPTIONUPDATECART="changenumber-add-serviceoption-updatecart-cart",e.SIMTYPEADDOPTIONUPDATECART="simtype-add-serviceoption-updatecart-cart",e.SIMTYPENUMBERUPDATECART="simtype-changenumber-updatecart-cart",e.SIMTYPENUMBERADDOPTIONUPDATECART="simtype-changenumber-add-serviceoption-updatecart-cart",e.NUMBERREMOVEOPTIONUPDATECART="changenumber-remove-serviceoption-updatecart-cart",e.SIMTYPEREMOVEOPTIONUPDATECART="simtype-remove-serviceoption-updatecart-cart",e.SIMTYPENUMBERREMOVEOPTIONUPDATECART="simtype-changenumber-remove-serviceoption-updatecart-cart",e.NUMBERADDREMOVEOPTIONUPDATECART="changenumber-add-remove-serviceoption-updatecart-cart",e.SIMTYPEADDREMOVEOPTIONUPDATECART="simtype-add-remove-serviceoption-updatecart-cart",e.SIMTYPENUMBERADDREMOVEOPTIONUPDATECART="simtype-changenumber-add-remove-serviceoption-updatecart-cart",e.ADDOPTIONUPDATECART="add-serviceoption-updatecart-cart",e.REMOVEOPTIONUPDATECART="remove-serviceoption-updatecart-cart",e.ADDREMOVEOPTIONUPDATECART="add-remove-serviceoption-updatecart-cart",e.ADDSUBSCRIPTIONUPDATECART="add-subscription-updatecart-cart",e.REMOVESUBSCRIPTIONUPDATECART="remove-subscription-updatecart-cart",e.SIMTYPEUPDATECART="simtype-updatecart-cart",e.OFFERCART="offer-cart",e.ADDPRODUCTUPDATECART="add-product-updatecart-cart",e.GETSITEDETAILADDRESS="getsitedetail-withauth-address",e.BUSINESSUPDATEADDRESS="businessdeliveryadd-updatecart-address",e.DIFFERENTUPDATEADDRESS="differentdeliveryadd-updatecart-address",e.GENUMBERSUMMARY="getnumber-summary",e.SERVICEOPTIONSUMMARY="getserviceoption-summary",e.NUMBERUPDATESUMMARY="changenumber-updatecart-summary",e.NUMBERADDOPTIONUPDATESUMMARY="changenumber-add-serviceoption-updatecart-summary",e.SIMTYPEADDOPTIONUPDATESUMMARY="simtype-add-serviceoption-updatecart-summary",e.SIMTYPENUMBERUPDATESUMMARY="simtype-changenumber-updatecart-summary",e.SIMTYPENUMBERADDOPTIONUPDATESUMMARY="simtype-changenumber-add-serviceoption-updatecart-summary",e.NUMBERREMOVEOPTIONUPDATESUMMARY="changenumber-remove-serviceoption-updatecart-summary",e.SIMTYPEREMOVEOPTIONUPDATESUMMARY="simtype-remove-serviceoption-updatecart-summary",e.SIMTYPENUMBERREMOVEOPTIONUPDATESUMMARY="simtype-changenumber-remove-serviceoption-updatecart-summary",e.NUMBERADDREMOVEOPTIONUPDATESUMMARY="changenumber-add-remove-serviceoption-updatecart-summary",e.SIMTYPEADDREMOVEOPTIONUPDATESUMMARY="simtype-add-remove-serviceoption-updatecart-summary",e.SIMTYPENUMBERADDREMOVEOPTIONUPDATESUMMARY="simtype-changenumber-add-remove-serviceoption-updatecart-summary",e.ADDOPTIONUPDATESUMMARY="add-serviceoption-updatecart-summary",e.REMOVEOPTIONUPDATESUMMARY="remove-serviceoption-updatecart-summary",e.ADDREMOVEOPTIONUPDATESUMMARY="add-remove-serviceoption-updatecart-summary",e.REMOVESUBSCRIPTIONUPDATESUMMARY="remove-subscription-updatecart-summary",e.SUBMITORDERSUMMARY="submitorder-summary",e.SIMTYPEUPDATESUMMARY="simtype-updatecart-summary",e.STORYBLOKSTATICLABLE="storyblok-static-lable-call",e.STORYBLOKERRORLABLE="storyblok-error-lable-call",e.STORYBLOKSERVICEOPTION="storyblok-serviceoption-static-content",e.EDITSUBSCRIPTIONMODAL="edit-subscription",e.TIMEOUTERROR="time-out",e.UPDATEPERSONALINFO="update-personal-info",e.UPDATESIGNATURERIGHTS="update-signature-rights",e.UPDATECOMPANYINFO="update-company-info",e.UPDATESIMTYPE="update-simtype",e.UPDATEONPDETAILS="update-onp-details",e.UPDATEEDITCART="update-edit-cart",e.UPDATEPERSONALDETAILS="update-personal-details",e.UPDATEACCOUNTDETAILS="update-account-details",e}({}),o=function(e){return e.DISCOUNT_MM="MULTIMOBILE",e.DISCOUNT_FMC="HOME_FMC",e.DISCOUNT_BP="DISCOUNT_PRICE_ALTERATION",e}({}),s=function(e){return e.ESIM="ESIM",e.SIMCARD="MIN_MIC_NA",e}({})},46856:e=>{e.exports={style:{fontFamily:"'Figtree', 'Figtree Fallback'",fontStyle:"normal"},className:"__className_612399"}},47278:(e,t,r)=>{"use strict";var i=r(81151),n=r(15738),a=Object.prototype.hasOwnProperty,o=Array.isArray,s=n(),l=function(e,t){return s.set(e,t),e},c=function(e){return s.has(e)},u=function(e){return s.get(e)},d=function(e,t){s.set(e,t)},p=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),h=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var i=[],n=0;n<r.length;++n)void 0!==r[n]&&(i[i.length]=r[n]);t.obj[t.prop]=i}}},m=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},i=0;i<e.length;++i)void 0!==e[i]&&(r[i]=e[i]);return r};e.exports={arrayToObject:m,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t,r,i){if(c(e)){var n=u(e)+1;return e[n]=t,d(e,n),e}var a=[].concat(e,t);return a.length>r?l(m(a,{plainObjects:i}),a.length-1):a},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],i=0;i<t.length;++i)for(var n=t[i],a=n.obj[n.prop],o=Object.keys(a),s=0;s<o.length;++s){var l=o[s],c=a[l];"object"==typeof c&&null!==c&&-1===r.indexOf(c)&&(t[t.length]={obj:a,prop:l},r[r.length]=c)}return h(t),e},decode:function(e,t,r){var i=e.replace(/\+/g," ");
1if("iso-8859-1"===r)return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch(e){return i}},encode:function(e,t,r,n,a){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var s="",l=0;l<o.length;l+=1024){for(var c=o.length>=1024?o.slice(l,l+1024):o,u=[],d=0;d<c.length;++d){var h=c.charCodeAt(d);if(45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||a===i.RFC1738&&(40===h||41===h)){u[u.length]=c.charAt(d);continue}if(h<128){u[u.length]=p[h];continue}if(h<2048){u[u.length]=p[192|h>>6]+p[128|63&h];continue}if(h<55296||h>=57344){u[u.length]=p[224|h>>12]+p[128|h>>6&63]+p[128|63&h];continue}d+=1,h=65536+((1023&h)<<10|1023&c.charCodeAt(d)),u[u.length]=p[240|h>>18]+p[128|h>>12&63]+p[128|h>>6&63]+p[128|63&h]}s+=u.join("")}return s},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:c,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:l,maybeMap:function(e,t){if(o(e)){for(var r=[],i=0;i<e.length;i+=1)r[r.length]=t(e[i]);return r}return t(e)},merge:function e(t,r,i){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(o(t)){var n=t.length;if(i&&"number"==typeof i.arrayLimit&&n>i.arrayLimit)return l(m(t.concat(r),i),n);t[n]=r}else if(!t||"object"!=typeof t)return[t,r];else if(c(t)){var s=u(t)+1;t[s]=r,d(t,s)}else{if(i&&i.strictMerge)return[t,r];(i&&(i.plainObjects||i.allowPrototypes)||!a.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t){if(c(r)){for(var p=Object.keys(r),h=i&&i.plainObjects?{__proto__:null,0:t}:{0:t},f=0;f<p.length;f++)h[parseInt(p[f],10)+1]=r[p[f]];return l(h,u(r)+1)}var g=[t].concat(r);return i&&"number"==typeof i.arrayLimit&&g.length>i.arrayLimit?l(m(g,i),g.length-1):g}var y=t;return(o(t)&&!o(r)&&(y=m(t,i)),o(t)&&o(r))?(r.forEach(function(r,n){if(a.call(t,n)){var o=t[n];o&&"object"==typeof o&&r&&"object"==typeof r?t[n]=e(o,r,i):t[t.length]=r}else t[n]=r}),t):Object.keys(r).reduce(function(t,n){var o=r[n];if(a.call(t,n)?t[n]=e(t[n],o,i):t[n]=o,c(r)&&!c(t)&&l(t,u(r)),c(t)){var s=parseInt(n,10);String(s)===n&&s>=0&&s>u(t)&&d(t,s)}return t},y)}}},48501:(e,t,r)=>{"use strict";r.d(t,{O4:()=>i,dF:()=>n});var i=function(e){return e.SUCCESS="XX000",e.ERROR="XX001",e}({}),n=function(e){return e.POST="POST",e.GET="GET",e.PUT="PUT",e.PATCH="PATCH",e}({})},48673:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var i=r(37876);r(60432);var n=r(45105),a=r.n(n),o=r(14232),s=r(81237),l=r(77328),c=r.n(l),u=r(31174),d=r(31777),p=r(39139),h=r(62867),m=r(61149),f=r(89665);function g(e){var t,r,n,l,g,y,v,_,b,S,w,C,E,k,A,P,I,T,O,D,R,M;let{Component:N,pageProps:x}=e,U=e=>{let t={};if(e.page){var r,i,n,a,o,s,l,c,u,d,p,h,m,f,g,y,v,_,b,S,w,C,E,k,A,P,I,T,O,D,R,M,N,x,U,B,F,L,j,V,q,Y,H,W,z;let K=null==(i=e.page)||null==(r=i.data)?void 0:r.story;(null==(l=K.content.body)||null==(s=l[0])||null==(o=s.bannerSlide)||null==(a=o[0])||null==(n=a.contentImageDesktop)?void 0:n.filename)||(null==(h=K.content.body)||null==(p=h[0])||null==(d=p.bannerSlide)||null==(u=d[0])||null==(c=u.coverImageDesktop)?void 0:c.filename)?t.imageUrl=(null==(D=K.content.body)||null==(O=D[0])||null==(T=O.bannerSlide)||null==(I=T[0])||null==(P=I.contentImageDesktop)?void 0:P.filename)||(null==(U=K.content.body)||null==(x=U[0])||null==(N=x.bannerSlide)||null==(M=N[0])||null==(R=M.coverImageDesktop)?void 0:R.filename)||"":((null==(v=K.content.body)||null==(y=v[0])||null==(g=y.headerSlide)||null==(f=g[0])||null==(m
1=f.image)?void 0:m.filename)||(null==(C=K.content.body)||null==(w=C[0])||null==(S=w.headerSlide)||null==(b=S[0])||null==(_=b.image)?void 0:_.filename))&&(t.imageUrl=(null==(V=K.content.body)||null==(j=V[0])||null==(L=j.headerSlide)||null==(F=L[0])||null==(B=F.image)?void 0:B.filename)||(null==(z=K.content.body)||null==(W=z[0])||null==(H=W.headerSlide)||null==(Y=H[0])||null==(q=Y.image)?void 0:q.filename)||""),t.publishedDate=K.first_published_at,t.modifiedDate=K.published_at,t.fullSlug=K.full_slug,t.isOrganizationSchemaEnabled=(null==K||null==(E=K.content)?void 0:E.enableOrganizationSchema)||!1,t.isArticleSchemaEnabled=(null==K||null==(k=K.content)?void 0:k.enableArticleSchema)||!1,t.isProductSchemaEnabled=(null==K||null==(A=K.content)?void 0:A.enableProductTableSchema)||!1}return t},B=()=>"".concat((0,s.KV)()?"https://www.sunrise.ch":""),F=(0,o.useMemo)(()=>{var e,t,r,i,n,a;let o=null==(t=x.page)||null==(e=t.data)?void 0:e.story;return{title:(e=>{let[t]=[""];if(e.page){let r=e.page.data.story;if(!(t=r.content.title)){t=r.name;let i=r.translated_slugs.find(t=>t.lang===e.locale);i&&(t=i.name||t)}}return"".concat(t," ","| Sunrise Business")})(x),skipIndex:(e=>{var t,r,i,n;let a=null!=(n=e.page)&&null!=(i=n.data)&&null!=(r=i.story)&&null!=(t=r.content)&&!!t.skipIndexing&&e.page.data.story.content.skipIndexing,o=e.skipIndex;return a||o})(x),description:(null==o||null==(r=o.content)?void 0:r.description)||"",metaDescription:(null==o||null==(i=o.content)?void 0:i.metaDescription)||"",thumbnailImage:(null==o||null==(a=o.content)||null==(n=a.thumbnail)?void 0:n.filename)||"",seoProps:U(x)}},[x.page,x.locale,x.skipIndex]),L="";(0,o.useEffect)(()=>{var e,t;null==(t=document)||null==(e=t.querySelector("html"))||e.setAttribute("lang","default"===x.locale?"en":x.locale)},[x.locale]);let{structureRatePlanDetails:j,productOfferRatePlanDetails:V}=(0,o.useMemo)(()=>(()=>{var e,t,r,i;let n=[],a=[],o=U(x).fullSlug||"",s=(e,t,r,i)=>{n.push(m.A.getProductStructuredData(e,o,t,f.A.getContent(r||""),i)),a.push(m.A.getProductOfferStructuredData(e,o,t,f.A.getContent(r||"")))};return null==(i=x.page)||null==(r=i.data)||null==(t=r.story.content)||null==(e=t.body)||e.forEach(e=>{var t,r,i,n,a,o,l,c,u;switch(e.component){case"productTable":{let n=null==(r=e.groups)||null==(t=r[0])?void 0:t.cards,a=(null==n||null==(i=n[0])?void 0:i.type)||"";null==n||n.forEach(e=>{s(e.title,e.discountPrice||e.price,e.description||"",a)});break}case"smartBundleBlok":{let t=null==e?void 0:e.cards;null==t||t.forEach(e=>{s(e.name,e.discountedPrice||e.listPrice,e.bundleDescription,"Smart Bundle")});break}case"iotProductTable":{let t=(null==e?void 0:e.productTableGroup)?null==(n=e.productTableGroup[0])?void 0:n.productTableCard:null==e?void 0:e.productTableCard;null==t||t.forEach(e=>{s(e.title,e.discountPrice?(parseFloat(e.subPrice)-parseFloat(e.discountPrice)).toString():e.subPrice,"","IOT")});break}case"multiProductTable":{let t=null==e||null==(a=e.productTableGroup[0])?void 0:a.cards;null==t||t.forEach(e=>{var t,r,i,n;s(e.productName,e.discountPrice?e.discountPrice:e.price,(null==(n=e.rateplanDetails)||null==(i=n.content)||null==(r=i.body)||null==(t=r[0])?void 0:t.description)||"","Mobile")});break}case"workSmartVoice":{let t=null==e||null==(o=e.phNoSection[0])?void 0:o.workSmartPhNoCard,r=null==e||null==(l=e.subscriptionSection[0])?void 0:l.workSmartSubscriptionCard,i=null==e||null==(c=e.onBoardingPackageSection[0])?void 0:c.workSmartPackageCard;null==t||t.forEach(e=>{s(e.name,e.upfrontPrice,e.description||"","WorkSmartVoice")}),null==r||r.forEach(e=>{var t,r;s(e.name,e.price,(null==e||null==(r=e.subscriptionDetails[0])||null==(t=r.item[0])?void 0:t.description)||"","WorkSmartVoice")}),null==i||i.forEach(e=>{var t,r,i;s(e.name,e.upfrontPromoPrice||e.upfrontPrice,(null==e||null==(i=e.packageDetails)||null==(r=i[0])||null==(t=r.item[0])?void 0:t.description)||"","WorkSmartVoice")});break}case"msProductTable":{let t=null==e||null==(u=e.groups[0])?void 0:u.cards;null==t||t.forEach(e=>{s(e.productName,e.discountedPrice||e.listPrice,e.description||"","MS Teams")})}}}),{structureRatePlanDetails:n,productOfferRatePlanDetails:a}})(),[x.page]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(c(),{children:[(0,i.jsx)("meta",{charSet:"utf-8"},"charset"),(0,i.jsx)("title",{children:F.title}
1,"title"),(0,i.jsx)("meta",{name:"robots",content:F.skipIndex?"noindex, nofollow":"index, follow"},"robots-index"),(0,i.jsx)("link",{rel:"icon",href:"/business/assets/icon/favicon-new.png",type:"image/x-icon"},"favicon"),(0,i.jsx)("meta",{name:"viewport",content:"width = device-width, initial-scale = 1"},"viewport"),(0,i.jsx)("meta",{name:"description",content:F.metaDescription},"description"),(0,i.jsx)("meta",{property:"og:description",content:F.description},"og:description"),(0,i.jsx)("meta",{property:"og:image",content:F.thumbnailImage},"og:image"),(0,i.jsx)("meta",{name:"twitter:description",content:F.description},"twitter:description"),(0,i.jsx)("meta",{name:"twitter:image",content:F.thumbnailImage},"twitter:image"),(0,i.jsx)("meta",{name:"twitter:card",content:"summary_large_image"},"twitter:card"),(0,i.jsx)("link",{rel:"apple-touch-icon-precomposed",href:"/business/assets/icon/favicon-new-apple-touch.ico",type:"image/x-icon"},"apple-touch-icon"),(0,i.jsx)("link",{rel:"canonical",href:u.A.removeTrailingSlash((()=>{var e,t,r,i,n,a,o,l,c,d,p,h,m,f,g,y,v,_,b,S,w,C,E,k,A,P,I,T,O,D,R,M,N;if((null==(n=x.page)||null==(i=n.data)||null==(r=i.story)||null==(t=r.content)||null==(e=t.canonicalUrl)||!e.id)&&(null==(d=x.page)||null==(c=d.data)||null==(l=c.story)||null==(o=l.content)||null==(a=o.canonicalUrl)||!a.url))return"".concat((0,s.KV)()?"https://www.sunrise.ch":"").concat((0,s.Me)("/"+(null==(N=x.page)||null==(M=N.data)||null==(R=M.story)?void 0:R.full_slug)));{let e,t;if((null==(g=x.page)||null==(f=g.data)||null==(m=f.story)||null==(h=m.content)||null==(p=h.canonicalUrl)?void 0:p.url.length)>0)return null==(D=x.page)||null==(O=D.data)||null==(T=O.story)||null==(I=T.content)||null==(P=I.canonicalUrl)?void 0:P.cached_url;let r=(0,s.Me)((e=null==(S=x.page)||null==(b=S.data)||null==(_=b.story)||null==(v=_.content)||null==(y=v.canonicalUrl)?void 0:y.id,t=null==(A=x.page)||null==(k=A.data)||null==(E=k.story)||null==(C=E.content)||null==(w=C.canonicalUrl)?void 0:w.cached_url,u.A.find(x.links,e,x.locale,t)));return"".concat((0,s.KV)()?"https://www.sunrise.ch"+r:r)}})())},"canonical"),null==(l=x.page)||null==(n=l.data)||null==(r=n.story)||null==(t=r.translated_slugs)?void 0:t.map(e=>("en"===e.lang&&(L=e.path),(0,i.jsx)("link",{rel:"alternate",hrefLang:"".concat(e.lang,"-CH"),href:B()+"/business/"+e.lang+"/"+u.A.removeTrailingSlash(e.path)},"alternate-".concat(e.lang)))),(0,i.jsx)("link",{rel:"alternate",hrefLang:"x-default",href:B()+"/business/en/"+u.A.removeTrailingSlash(L)},"alternate-default"),(null==F||null==(g=F.seoProps)?void 0:g.isProductSchemaEnabled)&&V.length>0&&(0,i.jsx)("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@graph":V})}),(null==F||null==(y=F.seoProps)?void 0:y.isProductSchemaEnabled)&&j.length>0&&(0,i.jsx)("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"OfferCatalog",name:(null==(b=x.page)||null==(_=b.data)||null==(v=_.story)?void 0:v.name)||"",url:"".concat((0,s.KV)()?"https://www.sunrise.ch":"").concat((0,s.Me)("/"+(null==F||null==(S=F.seoProps)?void 0:S.fullSlug))),itemListElement:j})})]}),(null==F||null==(w=F.seoProps)?void 0:w.isOrganizationSchemaEnabled)&&(0,i.jsx)(h.Ws,{type:"Organization",name:"Sunrise Business",url:"https://www.sunrise.ch/business",logo:"https://www.sunrise.ch/business/assets/icon/Falcon-b2b-logo.svg",contactPoint:[{"@type":"ContactPoint",telephone:"0800 777 222",contactType:"customer support",availableLanguage:["German","English","French","Italian"]}],sameAs:["https://www.linkedin.com/company/sunrisegmbh/","https://www.facebook.com/Sunrise.ch/","https://x.com/sunrise_de","https://www.youtube.com/user/SunriseSpots"]},"organization-schema"),(null==(C=F.seoProps)?void 0:C.isArticleSchemaEnabled)&&(0,i.jsx)(h.dp,{type:"Article",mainEntityOfPage:[{"@type":"WebPage",id:"".concat((0,s.KV)()?"https://www.sunrise.ch":"").concat((0,s.Me)("/"+(null==F||null==(E=F.seoProps)?void 0:E.fullSlug)))}],title:F.title||"",description:F.description,images:(null==F||null==(k=F.seoProps)?void 0:k.imageUrl)?[null==F||null==(A=F.seoProps)?void 0:A.imageUrl]:["https://www.sunrise.ch/business/assets/icon/Falcon-b2b-logo.svg"],datePublished:(null==F||null==(P=F.seoProps)?void 0:P.publishedDate)||"",dateModified:(null==F||null==(I=F.seoProps)?void 0:I.modifiedDate)||"",authorName:[{"@type":"Organization",name:"Sunrise Business",url:"https://www.sunrise.ch/business"}],publisher:[{"@type":"Organization",name:"Sunrise Business",logo:{"@type":"ImageObject",url:"https://www.sunrise.ch/business/assets/icon/Falcon-b2b-logo.svg"}}],url:"".concat((0,s.KV)()?"https://www.sunrise.ch":"").concat((0,s.Me)("/"+(null==F||null==(T=F.seoProps)?void 0:T.fullSlug)))},"article-schema"),(0,i.jsx)(a(),{id:"gtm-analytics",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:"\n var dataLayer = dataLayer || [];\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n 'https://www.googletagmanager.com/gtm.js?id='
1+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-NPXHFBZ');\n "}}),(null==(M=x.page)||null==(R=M.data)||null==(D=R.story)||null==(O=D.content)?void 0:O.includeChat)&&(0,i.jsx)(a(),{id:"sprChat",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:'window.sprChatSettings = {"appId":"'.concat("68eeee088d0acb180ccf8251_app_1035",'","skin":"MODERN","locale":"').concat(null==x?void 0:x.locale,'"}; !function(){var a,r,n,o,i,s=window,e=s.sprChat;e&&e.loaded||(a=document,(r=function(){r.q.push(arguments)}).q=[], s.sprChat=r,s.sprChat.loaded=!0,n=0,o="spr-live-chat-widget",i=function(){var e=a.getElementById(o),e=(e&&e.parentNode.removeChild(e),a.createElement("script")), t=(e.type="text/javascript",e.async=!0,e.src="https://prod18-live-chat.sprinklr.com/api/livechat/handshake/widget/"+s.sprChatSettings.appId,e.id=o, e.onerror=function(e){var t,a;++n<=3?setTimeout(i,250):(s.sprChat.loaded=!1,t="WIDGET_LOAD_FAILED",a=e, r.q.map(function(e){if("subscribeToUpdate"===e[0]&&e[1]&&"loadCompleted"===e[1].topic)return e[1].subscriber}).map(function(e){e&&e({response:{error:!0,errorPayload:{type:t,message:a}}})}))}, a.getElementsByTagName("script")[0]);t.parentNode.insertBefore(e,t)},"loading"!==a.readyState?i():a.addEventListener("DOMContentLoaded",i))}();\n ')}}),(0,s.KV)()&&(0,i.jsx)(a(),{id:"siteSpeed",strategy:"afterInteractive",src:"https://smex-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=https%3a%2f%2fcdn.impactcommerce.io%2fscript%2f319e4498b22492d48bfa306a23fa396c.js&umid=7c20eeb6-49ec-4a52-9850-a6f086fc162b&auth=b3c85b6b56538dc1ccf02894f5dc6661bbc4d7fb-5114db628379e693526f8c9fa2656b13f8a1a82a"}),(0,i.jsx)("div",{className:"".concat(s.Bo.className),children:(0,i.jsx)(d.Kq,{store:p.i,children:(0,i.jsx)(N,{...x})})})]})}},48801:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>U,BM:()=>M,BR:()=>N,Ls:()=>u,MW:()=>S,PN:()=>I,QD:()=>h,Qc:()=>y,Qo:()=>v,SL:()=>D,Sk:()=>k,V9:()=>g,d1:()=>_,eE:()=>d,fA:()=>x,gh:()=>E,it:()=>b,kD:()=>s,lR:()=>f,mN:()=>l,nP:()=>A,nZ:()=>P,ox:()=>m,qY:()=>c,vL:()=>O,xx:()=>o,yQ:()=>p});var i=r(10339),n=r(81237);let a=(0,i.Z0)({name:"basket",initialState:{basketProducts:[],deviceBasket:[],email:"",manualCheckoutCartDetails:[],successBlokData:{},aiAssistantCartDetails:[]},reducers:{initProducts:(e,t)=>{null!==t.payload&&(e.basketProducts=t.payload.basketProducts,e.deviceBasket=t.payload.deviceBasket,e.activeSegment=t.payload.activeSegment,e.isDeviceSummaryFlow=t.payload.isDeviceSummaryFlow,e.activationPrice=t.payload.activationPrice?parseFloat(t.payload.activationPrice):void 0,e.email=t.payload.email,e.lineCheckAddress=t.payload.lineCheckData,e.manualCheckoutCartDetails=t.payload.manualCheckoutCartDetails)},addProducts:(e,t)=>{e.basketProducts.push({...t.payload.product,eshopActivationPrice:t.payload.eshopActivationPrice}),t.payload.activation&&(e.activationPrice=t.payload.activation),c(t.payload)},removeProduct:(e,t)=>{e.basketProducts=e.basketProducts.filter(e=>e.id!==t.payload.id)},replaceCartItems:(e,t)=>{var r;e.basketProducts=(null==(r=t.payload)?void 0:r.length)>0?[...t.payload]:[]},clearCart:e=>{e.basketProducts=[]},addProductInstance:(e,t)=>{e.basketProducts.forEach(e=>{e.id===t.payload.productId&&(e&&(e.quantity+=1),e.simtype.push(""),e.extraSim.push(""),e.mobileNumberPorting.push({id:(0,n.cv)(),phoneNumber:"",portingDate:"",productId:t.payload.productId,provider:"",simType:"",shouldPort:!1,isDifferentPortingDate:!1}))})},addUpdateSimType:(e,t)=>{t.payload.isDeviceFlow?e.deviceBasket[t.payload.index].simtype[0]=t.payload.simType:e.basketProducts.forEach(e=>{e.id===t.payload.productId&&(e.simtype[t.payload.index]=t.payload.simType)})},addUpdateExtraSim:(e,t)=>{t.payload.isDeviceFlow?e.deviceBasket[t.payload.index].extraSim[0]=t.payload.extraSim:e.basketProducts.forEach(e=>{e.id===t.payload.productId&&(e.extraSim[t.payload.index]=t.payload.extraSim)})},addUpdatePortingDetails:(e,t)=>{t.payload.isDeviceFlow?e.deviceBasket[t.payload.index].mobileNumberPorting&&(e.deviceBasket[t.payload.index].mobileNumberPorting[0]=t.payload.data):e.basketProducts.forEac
1h(e=>{e.id===t.payload.productId&&e.mobileNumberPorting&&(e.mobileNumberPorting[t.payload.index]=t.payload.data)})},removeProductInstance:(e,t)=>{e.basketProducts.forEach(e=>{if(e.id===t.payload.productId){var r,i,n;e.quantity-=1,null==(r=e.simtype)||r.splice(t.payload.index,1),null==(i=e.extraSim)||i.splice(t.payload.index,1),null==(n=e.mobileNumberPorting)||n.splice(t.payload.index,1),e.addonsItems&&e.addonsItems.length>0&&(e.addonsItems[0].quantity||1)>e.quantity&&(e.addonsItems[0].quantity=e.quantity)}})},addUpdateAddonCartItem:(e,t)=>{t.payload.isDeviceFlow?e.deviceBasket[t.payload.cartItemIndex].addonsItems=[t.payload.addonCartItem]:e.basketProducts.forEach(e=>{e.id===t.payload.productId&&(e.addonsItems=[],e.addonsItems.push(t.payload.addonCartItem))})},addUpdateMultiAddonCartitem:(e,t)=>{"add"==t.payload.type?e.basketProducts.forEach(e=>{if(e.id===t.payload.productId){var r;null==(r=e.multiAddonItems)||r.push(t.payload.addonCartItem)}}):"update"==t.payload.type?e.basketProducts.forEach(e=>{if(e.id===t.payload.productId){var r,i;e.multiAddonItems=null==(r=e.multiAddonItems)?void 0:r.filter(e=>e.id!==t.payload.addonCartItem.id),null==(i=e.multiAddonItems)||i.push(t.payload.addonCartItem)}}):e.basketProducts.forEach(e=>{if(e.id===t.payload.productId){var r;e.multiAddonItems=null==(r=e.multiAddonItems)?void 0:r.filter(e=>e.id!==t.payload.addonCartItem.id)}})},removeAddonCartItem:(e,t)=>{t.payload.isDeviceFlow?e.deviceBasket[t.payload.cartItemIndex].addonsItems=[]:e.basketProducts.forEach(e=>{e.id===t.payload.productId&&(e.addonsItems=[])})},updateEligibilityType:(e,t)=>{e.basketProducts.forEach(e=>{e.id===t.payload.productId&&(e.eligibleDiscountType=t.payload.eligibleDiscountType)})},addDeviceProducts:(e,t)=>{e.deviceBasket.push(t.payload.cartItem),e.isDeviceSummaryFlow=t.payload.isdeviceFlow,u(t.payload.cartItem)},addRemoveDeviceAddons:(e,t)=>{var r;null==(r=e.deviceBasket[t.payload.cartItemIndex].deviceItem)||r.map(e=>{e.deviceAddoncartitem&&(e.deviceAddoncartitem.isInsuranceIncluded=t.payload.isDeviceAddonIncluded)})},updateDeviceAddonCartComponent:(e,t)=>{var r;null==(r=e.deviceBasket[t.payload.cartItemIndex].deviceItem)||r.map(e=>{e.deviceAddoncartitem&&(e.deviceAddoncartitem.name=t.payload.addon.name,e.deviceAddoncartitem.deviceAddonComponent=t.payload.addon)})},removeDevice:(e,t)=>{e.deviceBasket.splice(t.payload.index,1)},updateActiveSegment:(e,t)=>{e.activeSegment=t.payload.segment},updateAddons:(e,t)=>{if(e.deviceBasket&&e.deviceBasket.length>0){let n=e.deviceBasket.pop();if(n){var r,i;n.addonsItems=null==(r=n.addonsItems)?void 0:r.filter(e=>e.groupId!==t.payload.groupId),!t.payload.isRemoveAddon&&t.payload.addon&&(null==(i=n.addonsItems)||i.push(t.payload.addon)),e.deviceBasket.push(n)}}},addMultiStepProduct:(e,t)=>{var r,i;(null==(r=e.deviceBasket)?void 0:r.length)>0&&!e.deviceBasket[(null==(i=e.deviceBasket)?void 0:i.length)-1].inBasket&&e.deviceBasket.pop(),e.deviceBasket.push(t.payload.cartItem),e.isDeviceSummaryFlow=t.payload.isdeviceFlow},changeItem:(e,t)=>{var r;(null==(r=e.deviceBasket)?void 0:r.length)>0&&e.deviceBasket[t.payload.cartItemIndex]&&(e.activeSegment=t.payload.activeSegment,e.deviceBasket[t.payload.cartItemIndex]={...e.deviceBasket[t.payload.cartItemIndex],changeSegment:t.payload.changeSegment,addonGroupIdToChange:t.payload.groupId})},replaceChangedItem:(e,t)=>{e.deviceBasket.splice(t.payload.cartItemIndex,1,{...t.payload.cartItem,changeSegment:t.payload.changeSegment||""})},replaceProduct:(e,t)=>{e.deviceBasket.pop(),e.deviceBasket.push(t.payload.cartItem),e.isDeviceSummaryFlow=t.payload.isdeviceFlow},updateEmailId:(e,t)=>{e.email=t.payload},updateLineCheckAddress:(e,t)=>{e.lineCheckAddress=t.payload},updateSuccessBlokData:(e,t)=>{e.successBlokData=t.payload}}}),{initProducts:o,addProducts:s,addDeviceProducts:l,removeProduct:c,removeDevice:u,addProductInstance:d,addUpdateSimType:p,addUpdateExtraSim:h,addUpdatePortingDetails:m,removeProductInstance:f,updateActiveSegment:g,addMultiStepProduct:y,replaceProduct:v,updateAddons:_,changeItem:b,replaceChangedItem:S,removeSelectedAddons:w,addSelectedAddons:C,addUpdateAddonCartItem:E,removeAddonCartItem:k,addRemoveDeviceAddons:A,updateDeviceAddonCartComponent:P,addUpdateMultiAddonCartitem:I,clearCart:T,updateEmailId:O,updateLineCheckAddress:D,setMobileSummaryItem:R,updateEligibilityType:M,replaceCartItems:N,updateSuccessBlokData:x}=a.actions,U=a.reducer},49536:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});var i=function(e){return e.simCard="simCard",e.eSim="eSIM",e}({})},50496:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},52468:e=>{"use strict";e.exports=Object},52597:(e,t,r)=>{"use strict";var i=r(27496);e.exports=function(e,t){t=t||{};var r={};function n(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isEmptyObject(t)?i.merge({},e):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function a(r){return i.isUndefined(t[r])?i.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function o(e){if(!i.isUndefined(t[e]))return n(void 0,t[e])}function s(r){return i.isUndefined(t[r])?i.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function l(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};
1return i.forEach(Object.keys(e).concat(Object.keys(t)),function(e){if("__proto__"!==e&&"constructor"!==e&&"prototype"!==e){var t=i.hasOwnProperty(c,e)?c[e]:a,n=t(e);i.isUndefined(n)&&t!==l||(r[e]=n)}}),r}},52801:(e,t,r)=>{"use strict";var i=r(25037);function n(e,t,r){i.call(this,null==e?"canceled":e,i.ERR_CANCELED,t,r),this.name="CanceledError"}r(27496).inherits(n,i,{__CANCEL__:!0}),e.exports=n},52818:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},54070:(e,t,r)=>{"use strict";var i=r(27496),n=r(16318),a=r(40864),o=r(17424),s=r(42265),l=r(40090),c=r(75526),u=r(50496),d=r(25037),p=r(52801),h=r(84084),m=r(69247);e.exports=function(e){return new Promise(function(t,r){var f,g=e.data,y=e.headers,v=e.responseType,_=e.withXSRFToken;function b(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}i.isFormData(g)&&i.isStandardBrowserEnv()&&delete y["Content-Type"];var S=new XMLHttpRequest;e.auth&&(y.Authorization="Basic "+btoa((e.auth.username||"")+":"+(e.auth.password?unescape(encodeURIComponent(e.auth.password)):"")));var w=s(e.baseURL,e.url,e.allowAbsoluteUrls);function C(){if(S){var i="getAllResponseHeaders"in S?l(S.getAllResponseHeaders()):null;n(function(e){t(e),b()},function(e){r(e),b()},{data:v&&"text"!==v&&"json"!==v?S.response:S.responseText,status:S.status,statusText:S.statusText,headers:i,config:e,request:S}),S=null}}if(S.open(e.method.toUpperCase(),o(w,e.params,e.paramsSerializer),!0),S.timeout=e.timeout,"onloadend"in S?S.onloadend=C:S.onreadystatechange=function(){S&&4===S.readyState&&(0!==S.status||S.responseURL&&0===S.responseURL.indexOf("file:"))&&setTimeout(C)},S.onabort=function(){S&&(r(new d("Request aborted",d.ECONNABORTED,e,S)),S=null)},S.onerror=function(){r(new d("Network Error",d.ERR_NETWORK,e,S)),S=null},S.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new d(t,i.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,S)),S=null},i.isStandardBrowserEnv()&&(_&&i.isFunction(_)&&(_=_(e)),_||!1!==_&&c(w))){var E=e.xsrfHeaderName&&e.xsrfCookieName&&a.read(e.xsrfCookieName);E&&(y[e.xsrfHeaderName]=E)}"setRequestHeader"in S&&i.forEach(y,function(e,t){void 0===g&&"content-type"===t.toLowerCase()?delete y[t]:S.setRequestHeader(t,e)}),i.isUndefined(e.withCredentials)||(S.withCredentials=!!e.withCredentials),v&&"json"!==v&&(S.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&S.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&S.upload&&S.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(t){S&&(r(!t||t.type?new p(null,e,S):t),S.abort(),S=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),g||!1===g||0===g||""===g||(g=null);var k=h(w);if(k&&-1===m.protocols.indexOf(k))return void r(new d("Unsupported protocol "+k+":",d.ERR_BAD_REQUEST,e));S.send(g)})}},54215:(e,t,r)=>{"use strict";var i=r(27496),n=r(30910),a=r(69247);e.exports=function(e,t){return n(e,new a.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return a.isNode&&i.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}},54366:e=>{"use strict";e.exports=Math.min},54899:e=>{"use strict";e.exports=FormData},55450:(e,t,r)=>{"use strict";var i,n=r(66530),a=r(10221);try{i=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!i&&a&&a(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=o&&"function"==typeof o.get?n([o.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},55502:e=>{"use strict";e.exports=RangeError},56992:e=>{"use strict";e.exports=function(e){return!!(e&&e.__CANCEL__)}},57573:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var i=r(48501),n=r(81237),a=r(36756),o=r(39139),s=r(85383),l=r(6656),c=r(39151),u=r(46348),d=r(97594),p=r(71012);
1class h{constructor(){this.getSBStaticContent=(e,t,r)=>{let o=(0,n.Me)(h.dataSourceService+"?name="+e,!0);try{return a.A.request(o,i.dF.GET,null,t).then(e=>{if(e.data.errorCode===i.O4.SUCCESS){var n,a,o;let i={};return((null==e||null==(o=e.data)||null==(a=o.data)||null==(n=a.data)?void 0:n.datasource_entries)||[]).map(e=>{i[e.name]=null!=e.dimension_value?e.dimension_value:e.value}),sessionStorage.setItem(r,JSON.stringify({language:t,value:i})),i}}).catch(()=>{})}catch(e){return e.message}},this.getStoriesBySlug=(e,t)=>{let r=(0,n.Me)(h.getStoriesService,!0);try{return a.A.request(r,i.dF.POST,{slug:t,locale:e},e).then(e=>{if(e.data.errorCode===i.O4.SUCCESS)return e.data.data}).catch(()=>{})}catch(e){return e.message}},this.getAfterPromoMsg=(e,t)=>{var r,i,a;return null==(a=o.i.getState().sbContentReducer)||null==(i=a.sbStaticContent)||null==(r=i.afterpromo)?void 0:r.replace("{months}",e).replace("{price}",(0,n.S3)(t))},this.getManualPromoMsg=(e,t)=>{var r,i,a;return"720"==e?this.getLifetimePromoMsg():null==(a=o.i.getState().sbContentReducer)||null==(i=a.sbStaticContent)||null==(r=i.manualPromo)?void 0:r.replace("{months}",e).replace("{price}",(0,n.S3)(t))},this.getLifetimePromoMsg=()=>{var e,t;return null==(t=o.i.getState().sbContentReducer)||null==(e=t.sbStaticContent)?void 0:e.forLifetime},this.getPromoMsg=(e,t)=>"720"==e?this.getLifetimePromoMsg():t?this.getAfterPromoMsg(e,t):this.getAfterPromoDC(e),this.getManualAddonPromoMsg=(e,t)=>{var r,i,a;return"720"==t?this.getLifetimePromoMsg():null==(a=o.i.getState().sbContentReducer)||null==(i=a.sbStaticContent)||null==(r=i.manualAddonPromoMessage)?void 0:r.replace("{months}",t).replace("{price}",(0,n.S3)(e))},this.getBundleAfterPromoMsg=(e,t)=>{var r,i,a;return null==(a=o.i.getState().sbContentReducer)||null==(i=a.sbStaticContent)||null==(r=i.bundleAfterPromo)?void 0:r.replace("{months}",e).replace("{price}",(0,n.S3)(t))},this.getAfterPromoDC=e=>{var t,r,i;return null==(i=o.i.getState().sbContentReducer)||null==(r=i.sbStaticContent)||null==(t=r.promodurationDC)?void 0:t.replace("{months}",e)},this.getContractDurationMessage=e=>{var t,r,i;return null==(i=o.i.getState().sbContentReducer)||null==(r=i.sbStaticContent)||null==(t=r.contractDurationDC)?void 0:t.replace("{months}",e)},this.getDataPostPaidContractDurationMessage=(e,t,r,i)=>{var a,s,l,c,u;return null==(u=o.i.getState().sbContentReducer)||null==(c=u.sbStaticContent.extraSIMTooltipDescription)?void 0:c.replace("{contractDuration}",r).replace("{discountedPrice}",(0,n.S3)(t)).replace("{listPrice}",(0,n.S3)(e)).replace("{discountDuration}","720"==i?null==(l=o.i.getState())||null==(s=l.sbContentReducer)||null==(a=s.sbStaticContent)?void 0:a.forLifetime:i)},this.getLoyaltyMessage=(e,t)=>{var r,i,a;return null==(a=o.i.getState().sbContentReducer)||null==(i=a.sbStaticContent)||null==(r=i.loyaltyPromoDuration)?void 0:r.replace("{months}",e).replace("{price}",(0,n.S3)(t))},this.getloyaltyAfterDuration=e=>{var t,r,i;return null==(i=o.i.getState().sbContentReducer)||null==(r=i.sbStaticContent)||null==(t=r.loyaltyAfterDuration)?void 0:t.replace("{months}",e)},this.getContractDurationDc=e=>{var t,r,i;return null==(i=o.i.getState().sbContentReducer)||null==(r=i.sbStaticContent)||null==(t=r.contractDurationDCRateplan)?void 0:t.replace("{months}",e)},this.getSiteIDFromCart=()=>{var e,t,r,i,n,a,s,l,c,u,d,p,h;return(null==(i=o.i.getState())||null==(r=i.eshopCartReducer)||null==(t=r.cartData)||null==(e=t.relatedParty)?void 0:e.id)&&(null==(c=o.i.getState())||null==(l=c.eshopCartReducer)||null==(s=l.cartData)||null==(a=s.relatedParty)||null==(n=a.id)?void 0:n.toLowerCase())!="anonymous"?null==(h=o.i.getState())||null==(p=h.eshopCartReducer)||null==(d=p.cartData)||null==(u=d.relatedParty)?void 0:u.id:void 0},this.getCartId=()=>{var e,t,r;return(null==(r=o.i.getState())||null==(t=r.eshopCartReducer)||null==(e=t.cartData)?void 0:e.cartId)||""},this.getAddproductStoryId=()=>{var e,t,r,i,n,a;return(null==(t=o.i.getState())||null==(e=t.eshopCartReducer)?void 0:e.cartData)&&(null==(a=o.i.getState())||null==(n=a.eshopCartReducer)||null==(i=n.cartData.items)||null==(r=i.find(e=>""!=e.storyId))?void 0:r.storyId)||""},this.getCashbackMessage=e=>{var t,r,i;return null==(i=o.i.getState().sbContentReducer)||null==(r=i.sbStaticContent)||null==(t=r.cashbackDescription)?void 0:t.replace("{price}",e)},this.getTotalCBTooltipMessage=e=>{var t,r,i;return null==(i=o.i.getState().sbContentReducer)||null==(r=i.sbStaticContent)||null==(t=r.totalCashbackTooltipMessage)?void 0:t.replace("{price}",e)},this.getCashbackToolTipReview=e=>{var t,r,i;return null==(i=o.i.getState().sbContentReducer)||null==(r=i.sbStaticContent)||null==(t=r.cashbackToolTipReview)?void 0:t.replace("{price}",e)},this.getCashbackToolTipManual=e=>{var t,r,i;return null==(i=o.i.getState().sbContentReducer)||null==(r=i.sbStaticContent)||null==(t=r.cashBackTooltipManual)?void 0:t.replace("{price}",e)},this.getPTPriceMessage=(e,t,r,i,a,s)=>{var l,c,d,p,h;let m=null==(l=o.i.getState().sbContentReducer)?void 0:l.sbStaticContent;if(e==u.lf.DISCOUNT_MM)return s?m.multimobilebenefit_ptmessage:m.customerbenefit_ptmessage;if(e==u.lf.DISCOUNT_FMC)return m.homebenefit_ptmessage;if(r)return a&&i?null==m||null==(c=m.cashbackandLoyaltyCard)?void 0:c.replace("{months}",r).replace("{loyaltyPrice}",(0,n.kp)(i)):a?null==m||null==(d=m.cashbackCard)?void 0:d.replace("{months}",r).replace("{price}",(0,n.kp)(t)):i?null==m||null==(p=m.loyaltyProductCard)?void 0:p.replace("{months}",r).replace("{price}",(0,n.kp)(i)):"720"===r?null==m?void 0:m.lifetimeDiscount:null==m||null==(h=m.afterpromo)?void 0:h.replace("{months}",r).replace("{price}",(0,n.kp)(t));return""},this.setStaticContent=e=>{if(c.A.getSessionStorageItem(s.A.SB_STATIC_LABELS+"_"+e)){let t=c.A.getSessionStorageItem(s.A.SB_STATIC_LABELS+"_"+e);o.i.dispatch((0,l.$L)({sbStatic:JSON.parse(t).value}))}else o.i.dispatch((0,l.To)(e));if(c.A.getSessionStorageItem(s.A.SB_ERROR_MESSAGE+"_"+e)){let t=c.A.getSessionStorageItem(s.A.SB_ERROR_MESSAGE+"_"+e);o.i.dispatch((0,l.Nn)({errorMessages:JSON.parse(t).value}))}else o.i.dispatch((0,l.h3)(e));if(c.A.getSessionStorageItem(s.A.SB_COMPONENT_STATIC_LABELS+"_"+e)){let t=c.A.getSessionStorageItem(s.A.SB_COMPONENT_STATIC_LABELS+"_"+e);o.i.dispatch((0,l.sl)({sbComponentStatic:JSON.parse(t).value}))}else o.i.dispatch((0,l.mA)(e));if(c.A.getSessionStorageItem(s.A.SB_CHECKOUT_STEPS_STATIC_LABELS+"_"+e)){let t=c.A.getSessionStorageItem(s.A.SB_CHECKOUT_STEPS_STATIC_LABELS+"_"+e);o.i.dispatch((0,l.uA)({sbCheckoutStepsStaticContent:JSON.parse(t).value}))}else o.i.dispatch((0,l.UT)(e))},this.getFEErrorMessage=()=>{var e,t,r;return(null==(e=o.i.getState().sbContentReducer)?void 0:e.sbErrorMessage.apiFailureTitle)+"|"+(null==(r=o.i.getState().sbContentReducer)||null==(t=r.sbErrorMessage)?void 0:t.apiFailureDescription)},this.getName=e=>{var t,r,i;return null==(i=o.i.getState().sbContentReducer)||null==(r=i.sbStaticContent)||null==(t=r.logingsalutation)?void 0:t.replace("{name}",e)}
1,this.getAdvancedSummaryContractPeriodMessage=e=>{var t,r,i;return null==(i=o.i.getState().sbContentReducer)||null==(r=i.sbStaticContent)||null==(t=r.contractPeriodAdvancedSummary)?void 0:t.replace("{months}",e)},this.getprogressIndicatorState=()=>{let e=c.A.getSessionStorageItem(h.basketSessionKey);if(e)return JSON.parse(e).progressIndicatorReducer},this.setProgressIndicatorInitialState=e=>{let t=e||m.getprogressIndicatorState(),r=(null==t?void 0:t.horizontalSteps)&&t.horizontalSteps.length>0?t.horizontalSteps:[{stepKey:p.K1.SETUP,isCompleted:!1,isVisited:!0},{stepKey:p.K1.COMPANY_DETAILS,isCompleted:!1,isVisited:!1},{stepKey:p.K1.PERSONAL_DETAILS,isCompleted:!1,isVisited:!1},{stepKey:p.K1.REVIEW_CONFIRM,isCompleted:!1,isVisited:!1}],i=(null==t?void 0:t.verticalSteps)&&Object.keys(t.verticalSteps).length>0?t.verticalSteps:{[p.K1.SETUP]:[{stepKey:p.K1.CONTACT_NUMBER,isExpanded:!0,isSectionCompleted:!1,isVisited:!0},{stepKey:p.K1.SIM_TYPE,isExpanded:!1,isSectionCompleted:!1,isVisited:!1},{stepKey:p.K1.MOBILE_SUBSCRIPTIONS,isExpanded:!1,isSectionCompleted:!1,isVisited:!1}],[p.K1.COMPANY_DETAILS]:[{stepKey:p.K1.COMPANY_INFO,isExpanded:!0,isSectionCompleted:!1,isVisited:!1},{stepKey:p.K1.SIGNATURE_RIGHTS,isExpanded:!1,isSectionCompleted:!1,isVisited:!1},{stepKey:p.K1.BILLING_DETAILS,isExpanded:!1,isSectionCompleted:!1,isVisited:!1}],[p.K1.PERSONAL_DETAILS]:[{stepKey:p.K1.PERSONAL_DATA,isExpanded:!0,isSectionCompleted:!1,isVisited:!1}],[p.K1.REVIEW_CONFIRM]:[{stepKey:p.K1.REVIEW_CONFIRM_MOBILE_SUBSCRIPTIONS,isExpanded:!0,isSectionCompleted:!1,isVisited:!1},{stepKey:p.K1.REVIEW_ACCOUNT_DETAILS,isExpanded:!1,isSectionCompleted:!1,isVisited:!1},{stepKey:p.K1.REVIEW_CONFIRM_COMPANY_DETAILS,isExpanded:!1,isSectionCompleted:!1,isVisited:!1},{stepKey:p.K1.REVIEW_CONFIRM_PERSONAL_DETAILS,isExpanded:!1,isSectionCompleted:!1,isVisited:!1}]},n=(null==t?void 0:t.activeHorizontalStep)||p.K1.SETUP;o.i.dispatch((0,d.TM)({horizontalSteps:r,verticalSteps:i,activeHorizontalStep:n,isNewCustomerSteps:null==t?void 0:t.isNewCustomerSteps}))},this.setExistingCustomerProgressIndicatorInitialState=()=>{let e=[{stepKey:p.K1.SETUP,isCompleted:!1,isVisited:!0},{stepKey:p.K1.REVIEW_CONFIRM,isCompleted:!1,isVisited:!1}],t={[p.K1.SETUP]:[{stepKey:p.K1.SIM_TYPE,isExpanded:!0,isSectionCompleted:!1,isVisited:!0},{stepKey:p.K1.MOBILE_SUBSCRIPTIONS,isExpanded:!1,isSectionCompleted:!1,isVisited:!1},{stepKey:p.K1.BILLING_DETAILS,isExpanded:!1,isSectionCompleted:!1,isVisited:!1}],[p.K1.REVIEW_CONFIRM]:[{stepKey:p.K1.REVIEW_CONFIRM_MOBILE_SUBSCRIPTIONS,isExpanded:!0,isSectionCompleted:!1,isVisited:!1},{stepKey:p.K1.REVIEW_ACCOUNT_DETAILS,isExpanded:!0,isSectionCompleted:!1,isVisited:!1},{stepKey:p.K1.REVIEW_CONFIRM_SHIPPING_DETAILS,isExpanded:!0,isSectionCompleted:!1,isVisited:!1}]};o.i.dispatch((0,d.TM)({horizontalSteps:e,verticalSteps:t,activeHorizontalStep:p.K1.SETUP}))},this.checkIsAutomatedOrder=()=>{var e,t,r,i,n,a,s,l,c,u,d,p,h,m;let f=null==(t=o.i.getState())||null==(e=t.eshopCartReducer)?void 0:e.cartData;if(!1!==f.isOnp)return!1;let g=null==(i=f.customerDetails)||null==(r=i.companyDetails)?void 0:r.employeeCount;if(void 0===g||g>9||!0!==(null==(a=f.customerDetails)||null==(n=a.companyDetails)?void 0:n.hascompanyUid))return!1;let y=null==(l=f.customerDetails)||null==(s=l.companyDetails)?void 0:s.legalFormId;if("0101"!==y&&"0107"!==y||!0!==f.hasSignatureRights||!0!==f.ccEligibility&&(null==(u=o.i.getState())||null==(c=u.eshopCartReducer)?void 0:c.shouldRetriggerCreditCheck)!==!0)return!1;let v=(null==(d=f.items)?void 0:d.reduce((e,t)=>{var r;return e+((null==(r=t.subscriptions)?void 0:r.length)||0)},0))||0;return!(!0===f.ccEligibility&&(null==(h=o.i.getState())||null==(p=h.eshopCartReducer)?void 0:p.shouldRetriggerCreditCheck)!==!0&&v>parseInt((null==(m=f.creditCheckData)?void 0:m.maxNumberOfSubscriptions)||"0",10))&&!0}}}h.dataSourceService="/api/al/sb/data-source",h.getStoriesService="/api/al/sb/get-stories",h.basketSessionKey="b2b-checkout-basket";let m=new h,f=m},59535:(e,t,r)=>{"use strict";r.d(t,{wf:()=>c,yV:()=>d,Xx:()=>p,MM:()=>h,bB:()=>m,fj:()=>f,BW:()=>u});var i=r(74319),n=r.n(i),a=r(70241),o=r(39151),s=r(81237),l=r(39139);let c=(e,t)=>{if(!t||!e)return;let r=t.toUpperCase();if(e.serviceOptions&&e.serviceOptions.length>0){let t=e.serviceOptions.find(e=>{var t;return(null==(t=e.name)?void 0:t.toUpperCase())===r});if(t)return t.name}if(e.dataPostPaidOffers&&e.dataPostPaidOffers.length>0){let t=e.dataPostPaidOffers.find(e=>{var t;return(null==(t=e.name)?void 0:t.toUpperCase())===r});if(t)return t.name}},u=(e,t,r,i,o)=>{let{step:s,stepIconClasses:l,cardProps:c}=((e,t,r,i,o)=>{let s=((e,t)=>(e.verticalSteps[e.activeHorizontalStep]||[]).find(e=>e.stepKey===t))(e,t),l=(e=>{let t=n().verticalstepitem,r=(null==e?void 0:e.isExpanded)||!1,i=(null==e?void 0:e.isSectionCompleted)&&!(null==e?void 0:e.isExpanded)||!1,a=!(null==e?void 0:e.isVisited)&&!r;return[t,r&&n().active,i&&n().done,!r&&!i&&n().inactive,a&&n().disabled].filter(
1Boolean).join(" ")})(s),c=((e,t,r,i,n,o)=>{let s=!r&&(e||t),l=()=>{s&&i&&(i(),a.A.trackAccordianOpenEvent(o||n||"",n||"",n||""))};return{onClick:l,style:{cursor:s?"pointer":"default",userSelect:"none"},role:s?"button":"presentation",tabIndex:s?0:-1,onKeyDown:e=>{s&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),l())},"aria-expanded":r,"aria-label":s?"Click to toggle section":void 0}})((null==s?void 0:s.isSectionCompleted)||!1,(null==s?void 0:s.isVisited)||!1,r,i,t,o);return{step:s,stepIconClasses:l,cardProps:c}})(e,t,r,i,o);return{step:s,stepIconClasses:l,cardProps:c,getStepDisplayName:(e,r)=>((e,t,r)=>{var i;let n=null==e?void 0:e.find(e=>(null==e?void 0:e.name)===t);return null!=(i=(null==n?void 0:n.dimension_value)||(null==n?void 0:n.value))?i:r})(e,t,r)}},d=(e,t,r)=>{if(!e)return"";if(t&&"CH"!==t)return e;let i=e;r&&!e.startsWith("+41")&&(i="+41"+e.replace(/^0/,""));let n=i.replaceAll(/[^\d+]/g,"");if(!n)return"";let a=n.startsWith("+41"),o=n.replace("+41",""),s=[];return a?(s.push("+41"),o.length>0&&s.push(o.substring(0,2)),o.length>2&&s.push(o.substring(2,5)),o.length>5&&s.push(o.substring(5,7)),o.length>7&&s.push(o.substring(7,9)),s.join(" ")):e},p=(e,t)=>{if(!e)return"";try{let r=o.A.getSessionStorageItem("countries-with-code_".concat(t));if(!r)return e;let i=JSON.parse(r).find(t=>{var r;return(null==(r=t.name)?void 0:r.toUpperCase())===e.toUpperCase()});return(null==i?void 0:i.dimension_value)||(null==i?void 0:i.value)||e}catch(t){return console.error("Error fetching country name from code:",t),e}},h=(e,t)=>{if(!e)return"";try{let r=o.A.getSessionStorageItem("id-card-config_".concat(t));if(!r)return e;let i=JSON.parse(r).find(t=>{var r;return(null==(r=t.name)?void 0:r.toUpperCase())===e.toUpperCase()});return(null==i?void 0:i.dimension_value)||(null==i?void 0:i.value)||e}catch(t){return console.error("Error fetching ID card name from code:",t),e}},m=(e,t)=>{if(!e)return(0,s.yF)(t,"phoneNumberHint_CH");let r="phoneNumberHint_".concat(e);return(null==t?void 0:t[r])?(0,s.yF)(t,r):(0,s.yF)(t,"phoneNumberHint_other")},f=()=>{var e;let t=l.i.getState().eshopCartReducer;return t&&(null==t?void 0:t.cartData)&&(null==t||null==(e=t.cartData)?void 0:e.items)?t.cartData.items.reduce((e,t)=>{var r;return e+((null==(r=t.subscriptions)?void 0:r.length)||0)},0):0}},60432:()=>{},61149:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(77626),n=r(78730),a=r(81237);class o{constructor(){this.trackViewOrAddToCartEvent=(e,t,r,a,o,s,l)=>{let c=[];c.push({item_link_id:0,item_brand:"sunrise",item_category:e.analyticsCategory||("mobileBB"==e.type?"Mobile Broadband":"connectivity"==e.type||"internet"==e.type?"Internet":"Mobile"),item_id:e.id,item_list_id:a,item_list_name:o,item_name:e.title,item_variant:"",price:i.kN.calcItemPriceforAnalytics(e.price,parseFloat(e.contractDuration||"1"),e.discountedPrice||0===e.discountedPrice?e.discountedPrice:void 0,e.promoRunTime&&parseFloat(e.promoRunTime)||void 0),quantity:1,promotion_duration:e.contractDuration||"1"}),r&&l&&c.push({item_link_id:1,item_brand:"sunrise",item_category:"Others",item_id:l.id,item_list_id:a,item_list_name:o,item_name:l.name,item_variant:"",price:i.kN.calcItemPriceforAnalytics(parseFloat(l.price),parseFloat(e.contractDuration||"1"),l.promoPrice?parseFloat(l.promoPrice):void 0,e.promoRunTime&&parseFloat(e.promoRunTime)||void 0),quantity:1,promotion_duration:e.promoRunTime||"1"});let u=i.kN.calculateTotalValue(c);return"view"==t?(n.A.viewItemEvent(c,s||"","multiProductTableCard",u),!0):("add"==t&&n.A.addToCartEvent(c,s||"","multiProductTableCard",u),!1)},this.trackAddToCartEvent=(e,t,r,a)=>{let o=n.A.createProductEcommItems(e,t,r),s=i.kN.calculateTotalValue(o);n.A.addToCartEvent(o,a||"","multiProductTableCard",s)},this.getProductStructuredData=(e,t,r,i,n)=>{let o={"@type":"Service",name:e,serviceType:n?"".concat(n," Subscription Plan"):"",areaServed:{"@type":"Place",name:"Switzerland and neighboring countries"},offers:{"@type":"Offer",url:"".concat((0,a.KV)()?"https://www.sunrise.ch":"").concat((0,a.Me)("/"+t))||"",priceCurrency:"CHF",price:r}};return i&&(o.description=i),o},this.getProductOfferStructuredData=(e,t,r,i)=>{let n={"@type":"Product",name:e,offers:{"@type":"Offer",url:"".concat((0,a.KV)()?"https://www.sunrise.ch":"").concat((0,a.Me)("/"+t))||"",priceCurrency:"CHF",price:r,availability:"https://schema.org/InStock"}};return i&&(n.description=i),n}}}let s=new o},61194:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>l,Yf:()=>s,lH:()=>n,oL:()=>a});let i=(0,r(10339).Z0)({name:"checkout",initialState:{companyDetails:{address:{city:"",number:"",street:"",zip:"",concatedAddress:""},name:"",uid:"",numberOfEmployees:"",isZefix:!1,legalFormId:"",isNoUid:!1,remark:""},isNameInputFieldChange:!1,showUidWarning:!1},reducers:{initializeCompanyDetails:(e,t)=>{e.companyDetails=t.payload.companyDetails,e.isNameInputFieldChange=t.payload.isNameInputFieldChange,e.showUidWarning=t.payload.showUidWarning},updateCompanyDetails:(e,t)=>{e.companyDetails={...e.companyDetails,...t.payload}},setIsNameInputFieldChange:(e,t)=>
1{e.isNameInputFieldChange=t.payload},setShowUidWarning:(e,t)=>{e.showUidWarning=t.payload}}}),{updateCompanyDetails:n,setIsNameInputFieldChange:a,initializeCompanyDetails:o,setShowUidWarning:s}=i.actions,l=i.reducer},61664:(e,t,r)=>{"use strict";e.exports=r(52468).getPrototypeOf||null},62867:(e,t,r)=>{"use strict";r.d(t,{Q2:()=>T,Ws:()=>P,dp:()=>D,wc:()=>k});var i=r(14232),n=r(77328),a=r.n(n);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)}function s(e,t){if(null==e)return{};var r,i,n={},a=Object.keys(e);for(i=0;i<a.length;i++)r=a[i],t.indexOf(r)>=0||(n[r]=e[r]);return n}var l=function(e,t){var r=t;return Array.isArray(r)&&1===r.length&&(r=o({},t[0])),{__html:JSON.stringify(Array.isArray(r)?r.map(function(t){return c(e,t)}):c(e,r),h)}},c=function(e,t){var r=t.id,i=o({},(void 0===r?void 0:r)?{"@id":t.id}:{},t);return delete i.id,o({"@context":"https://schema.org","@type":e},i)},u=Object.freeze({"&":"&","<":"<",">":">",'"':""","'":"'"}),d=RegExp("["+Object.keys(u).join("")+"]","g"),p=function(e){return u[e]},h=function(e,t){switch(typeof t){case"object":if(null===t)return;return t;case"number":case"boolean":case"bigint":return t;case"string":return t.replace(d,p);default:return}},m=["type","keyOverride","scriptKey","scriptId","dataArray","useAppDir"];function f(e){var t=e.type,r=void 0===t?"Thing":t,n=e.keyOverride,c=e.scriptKey,u=e.scriptId,d=void 0===u?void 0:u,p=e.dataArray,h=e.useAppDir,f=s(e,m),g=function(){return i.createElement("script",{type:"application/ld+json",id:d,"data-testid":d,dangerouslySetInnerHTML:l(r,void 0===p?o({},f):p),key:"jsonld-"+c+(n?"-"+n:"")})};return void 0!==h&&h?i.createElement(g,null):i.createElement(a(),null,g())}function g(e){if("string"==typeof e)return{"@type":"Person",name:e};if(e.name){var t;return{"@type":null!=(t=null==e?void 0:e.type)?t:"Person",name:e.name,url:null==e?void 0:e.url}}}function y(e){return Array.isArray(e)?e.map(function(e){return g(e)}).filter(function(e){return!!e}):e?g(e):void 0}function v(e){if(e)return{"@type":"ImageObject",url:e}}function _(e,t){if(e)return{"@type":"Organization",name:e,logo:v(t)}}var b=["reviewRating","author","publisher"];function S(e){return"string"==typeof e?e:o({"@type":"PostalAddress"},e)}var w=["seller","hasMerchantReturnPolicy"];function C(e){function t(e){var t,r=e.seller,i=e.hasMerchantReturnPolicy,n=s(e,w);return o({},n,{"@type":"Offer"},r&&{seller:{"@type":"Organization",name:r.name}},i&&{hasMerchantReturnPolicy:o({"@type":"MerchantReturnPolicy"},i,(null==i?void 0:i.returnPolicySeasonalOverride)&&{returnPolicySeasonalOverride:(t=null==i?void 0:i.returnPolicySeasonalOverride,o({"@type":"MerchantReturnPolicySeasonalOverride"},t))})})}return Array.isArray(e)?e.map(t):e?t(e):void 0}var E=["type","keyOverride","images","brand","reviews","aggregateRating","manufacturerLogo","manufacturerName","offers","aggregateOffer","productName"];function k(e){var t=e.type,r=e.keyOverride,n=e.images,a=e.brand,l=e.reviews,c=e.aggregateRating,u=e.manufacturerLogo,d=e.manufacturerName,p=e.offers,h=e.aggregateOffer,m=e.productName,g=s(e,E),S=o({},g,{image:n,brand:function(e){if(e)return{"@type":"Brand",name:e}}(a),review:function(e){function t(e){var t=e.reviewRating,r=e.author,i=e.publisher,n=s(e,b);return o({},n,{"@type":"Review"},r&&{author:y(r)},t&&{reviewRating:function(e){if(e)return o({},e,{"@type":"Rating"})}(t)},i&&{publisher:_(i.name)})}return Array.isArray(e)?e.map(t):e?t(e):void 0}(l),aggregateRating:function(e){if(e)return{"@type":"AggregateRating",ratingCount:e.ratingCount,reviewCount:e.reviewCount,bestRating:e.bestRating,ratingValue:e.ratingValue,worstRating:e.worstRating}}(c),manufacturer:function(e){if(e&&(e.manufacturerName||e.manufacturerLogo))return{"@type":"Organization",name:e.manufacturerName,logo:v(e.manufacturerLogo)}}({manufacturerLogo:u,manufacturerName:d}),offers:p?C(p):function(e){if(e)return{"@type":"AggregateOffer",priceCurrency:e.priceCurrency,highPrice:e.highPrice,lowPrice:e.lowPrice,offerCount:e.offerCount,offers:C(e.offers)}}(h),name:m});return i.createElement(f,o({type:void 0===t?"Product":t,keyOverride:r},S,{scriptKey:"Product"}))}var A=["type","keyOverride","address","contactPoints","contactPoint"];function P(e){var t=e.type,r=e.keyOverride,n=e.address,a=e.contactPoints,l=e.contactPoint,c=s(e,A),u=o({},c,{address:function(e){if(e)return Array.isArray(e)?1===e.length?S(e[0]):e.map(S):S(e)}(n),contactPoint:function(e){if(e&&e.length)return e.map(function(e){return o({"@type":"ContactPoint"},e)})}(l||a)});return i.createElement(f,o({type:void 0===t?"Organization":t,keyOverride:r},u,{scriptKey:"organization"}))}var I=["type","keyOverride","mainEntity"];function T(e){var t=e.type,r=e.keyOverride,n=e.mainEntity,a=s(e,I),l=o({},a,{mainEntity:function(e){if(e&&e.length)return e.map(function(e){return{"@type":"Question",name:e.questionName,acceptedA
1nswer:{"@type":"Answer",text:e.acceptedAnswerText}}})}(n)});return i.createElement(f,o({type:void 0===t?"FAQPage":t,keyOverride:r},l,{scriptKey:"faq-page"}))}var O=["type","keyOverride","url","title","images","datePublished","dateModified","authorName","publisherName","publisherLogo","description","isAccessibleForFree"];function D(e){var t=e.type,r=e.keyOverride,n=e.url,a=e.title,l=e.images,c=e.datePublished,u=e.dateModified,d=e.authorName,p=e.publisherName,h=e.publisherLogo,m=e.description,g=e.isAccessibleForFree,v=s(e,O),b=o({datePublished:c,description:m,mainEntityOfPage:{"@type":"WebPage","@id":n},headline:a,image:l,dateModified:u||c,author:y(d),publisher:_(void 0===p?void 0:p,void 0===h?void 0:h),isAccessibleForFree:g},v);return i.createElement(f,o({type:void 0===t?"Article":t,keyOverride:r},b,{scriptKey:"article"}))}},64587:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>v,Ef:()=>m,J7:()=>u,Vj:()=>p,Vm:()=>h,fc:()=>g,i1:()=>c,kS:()=>o,lH:()=>l,m:()=>y,oL:()=>f,yi:()=>d,yv:()=>s});var i=r(10339);let n={city:"",number:"",street:"",zip:"",concatedAddress:""},a=(0,i.Z0)({name:"checkout",initialState:{personalDetails:{birthDate:"",email:"",firstName:"",idExpirationDate:"",idNumber:"",idType:"",lastName:"",nationality:"",phone:"",salutation:""},companyDetails:{address:n,name:"",uid:"",numberOfEmployees:"",isZefix:!1},deliveryAddress:n,internetActivationDate:"",landlineNumberDetails:{portingDate:"",provider:"",simType:"",phoneNumber:"",shouldPort:!1,isDifferentPortingDate:!1,serviceType:"",productId:"",id:""},internetActivationAddress:n,otoId:"",domainAndPlatformInformation:{companyDomain:"",isOwner:!0,email:""},aiAssistantCredDetails:{firstName:"",lastName:"",email:"",firstNameTouched:!1,lastNameTouched:!1,emailTouched:!1},voiceDetails:{voiceItems:[]}},reducers:{addCheckoutDetails:(e,t)=>{e={...e,...t.payload}},updatePersonalDetails:(e,t)=>{e.personalDetails={...e.personalDetails,...t.payload}},updateCompanyDetails:(e,t)=>{e.companyDetails={...e.companyDetails,...t.payload}},updateDeliveryAddressDetails:(e,t)=>{e.deliveryAddress={...e.deliveryAddress,...t.payload}},updateInternetActivationDeatils:(e,t)=>{e.internetActivationDate=t.payload.activationDate},updateLandlineNumberDetails:(e,t)=>{e.landlineNumberDetails={...e.landlineNumberDetails,...t.payload}},updateInternetActivationAddressDetails:(e,t)=>{e.internetActivationAddress={...e.internetActivationAddress,...t.payload}},updateOtoId:(e,t)=>{e.otoId=t.payload},updateDomainAndPlatformDetails:(e,t)=>{e.domainAndPlatformInformation={...e.domainAndPlatformInformation,...t.payload}},updateAiAssistantCredDetails:(e,t)=>{e.aiAssistantCredDetails={...e.aiAssistantCredDetails,...t.payload}},prefillAiAssistantCredDetails:(e,t)=>{e.aiAssistantCredDetails.firstNameTouched||void 0===t.payload.firstName||(e.aiAssistantCredDetails.firstName=t.payload.firstName),e.aiAssistantCredDetails.lastNameTouched||void 0===t.payload.lastName||(e.aiAssistantCredDetails.lastName=t.payload.lastName),e.aiAssistantCredDetails.emailTouched||void 0===t.payload.email||(e.aiAssistantCredDetails.email=t.payload.email)},updateVoiceDetails:(e,t)=>{e.voiceDetails=t.payload}}}),{addCheckoutDetails:o,updatePersonalDetails:s,updateCompanyDetails:l,updateDeliveryAddressDetails:c,updateInternetActivationDeatils:u,updateLandlineNumberDetails:d,updateInternetActivationAddressDetails:p,updateOtoId:h,updateDomainAndPlatformDetails:m,updateAiAssistantCredDetails:f,prefillAiAssistantCredDetails:g,updateVoiceDetails:y}=a.actions,v=a.reducer},65225:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},65865:e=>{"use strict";e.exports=TypeError},66530:(e,t,r)=>{"use strict";var i=r(28419),n=r(65865),a=r(66958),o=r(34140);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new n("a function is required");return o(i,a,e)}},66958:e=>{"use strict";e.exports=Function.prototype.call},68678:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var i=r(39139),n=r(39151),a=r(81237),o=r(36756),s=r(48501),l=r(77626),c=r(78730);class u{constructor(){this.getBasket=()=>i.i.getState().bundleItemsReducer,this.getSmartBundle=()=>{var e,t;if(i.i.getState().bundleItemsReducer&&(null==(e=i.i.getState().bundleItemsReducer.bundleCartItems)?void 0:e.length)>0)return i.i.getState().bundleItemsReducer;let r=n.A.getSessionStorageItem(u.basketSessionKey);if(r){let e=JSON.parse(r).bundleItemsReducer;return e&&(null==(t=e.bundleCartItems)?void 0:t.length)>0?e:null}return null},this.getBundleItemsBreakDown=()=>{let e=this.getBasket();return e&&e.bundleCartItems?e.bundleCartItems.map(e=>{let t={totalMonthlyListPrice:0,totalMonthlyDerivedPrice:0,totalOneTimeListCost:0,totalActivationPrice:0,totalOneTimeBundleCost:0};return t.totalMonthlyListPrice=parseFloat(e.listPrice)*e.quantity,t.totalMonthlyDerivedPrice=e.discountedPrice?parseFloat(e.discountedPrice)*e.quantity:0,t.totalOneTimeBundleCost=this.calculateOneTimeBundleCost(e.bundleItems,e.quantity),t.totalActivationPrice=e.serviceFee?parseFloat(e.serviceFee)*e.quantity:0,t.totalOneTimeListCost=t.totalOneTimeBundleCost+t.totalActivationPrice,{...e,costBreakdown:t}}):null}
1,this.getSingleBundleItemBreakDown=e=>{let t={totalMonthlyListPrice:0,totalMonthlyDerivedPrice:0,totalOneTimeListCost:0,totalActivationPrice:0,totalOneTimeBundleCost:0};return e.items.forEach(e=>{t.totalMonthlyListPrice+=e.price*e.quantity,t.totalMonthlyDerivedPrice+=e.discountedPrice?e.discountedPrice*e.quantity:0,t.totalOneTimeBundleCost+=e.smartBundleProduct&&this.calculateOneTimeBundleCost(e.smartBundleProduct,e.quantity)||0,t.totalActivationPrice+=e.serviceFee?parseFloat(e.serviceFee)*e.quantity:0,t.totalOneTimeListCost=t.totalOneTimeBundleCost+t.totalActivationPrice}),t},this.getTotalBundleCost=e=>{let t={totalMontlyListPrice:0,totalMonthlySaving:0,totalOneTimeBundleCost:0,totalActivationListPrice:0,totalMonthlyDerivedPrice:0};return e&&e.forEach(e=>{var r,i,n,a,o,s;let l=(null==e||null==(r=e.costBreakdown)?void 0:r.totalMonthlyListPrice)||0,c=(null==e||null==(i=e.costBreakdown)?void 0:i.totalMonthlyDerivedPrice)&&(null==e||null==(n=e.costBreakdown)?void 0:n.totalMonthlyDerivedPrice)>0?null==e||null==(a=e.costBreakdown)?void 0:a.totalMonthlyDerivedPrice:0;t.totalMontlyListPrice+=l,t.totalMonthlyDerivedPrice+=c,t.totalMonthlySaving+=c>0?l-c:0,t.totalOneTimeBundleCost+=(null==e||null==(o=e.costBreakdown)?void 0:o.totalOneTimeBundleCost)||0,t.totalActivationListPrice+=(null==e||null==(s=e.costBreakdown)?void 0:s.totalActivationPrice)||0}),t},this.calculateOneTimeBundleCost=(e,t)=>
1{let r=0;return e.map(e=>{r+=parseFloat(e.itemOneTimePrice||"0")}),r*t},this.clearCart=()=>{n.A.removeSessionStorageItem(u.basketSessionKey)},this.trackBundlePurchaseAsync=(e,t,r)=>{(0,a.g2)(r,"multiCheckout").then(r=>{c.A.trackBundlePurchaseEvent(e,t,r)}).catch(e=>console.warn("Tracking failed, but order completed successfully:",e))},this.submitSmartBundleCart=(e,t,r,n,c,p,h,m,f,g)=>{let y=this.getBasket(),v=d.getSmartBundle(),_=i.i.getState().checkoutReducer;if(y&&null!=y){let i={companyDetails:_.companyDetails,personalDetails:_.personalDetails,deliveryAddress:c?_.deliveryAddress:_.companyDetails.address,bundleItems:y,emailId:e,isAgentFlow:g},d=(0,a.Me)(u.submitOrderService,!0);o.A.request(d,s.dF.POST,i,t).then(e=>{if(e.data.errorCode===s.O4.SUCCESS){var t,a;l.kN.isTestData(i.companyDetails.name,i.personalDetails.email)||this.trackBundlePurchaseAsync(v,{orderId:null==(t=e.data.data)?void 0:t.orderId,item_list_id:p,component:h,item_list_name:m,beginCheckOutTime:f},_),window.location.href=r+"?txnId="+(null==(a=e.data.data)?void 0:a.orderId)}else this.clearCart(),window.location.href=n}).catch(()=>{this.clearCart(),window.location.href=n});return}window.location.href=n},this.trackRemoveOrAddToBundleCartEvent=(e,t,r,i,n)=>{let a=[];n&&a.push({price:l.kN.calcItemPriceforAnalytics(parseFloat(n.listPrice),parseFloat(n.contractDuration||"1"),n.discountedPrice?parseFloat(n.discountedPrice):void 0,n.promoDuration&&parseFloat(n.promoDuration)||void 0),quantity:1,item_brand:"sunrise",item_category:n.analyticsCategory||"Bundle",item_id:n.id,item_list_id:r,item_list_name:i,item_name:n.name,item_variant:"",promotion_duration:n.contractDuration||"1"});let o=l.kN.calculateTotalValue(a);"remove"==e?c.A.removeFromCartItemEvent(a,"",t,o):"add"==e&&c.A.addToCartEvent(a,"",t,o)},this.basket=null}}u.submitOrderService="/api/al/checkout/smart-bundle",u.basketSessionKey="b2b-checkout-basket";let d=new u,p=d},69247:(e,t,r)=>{"use strict";e.exports=r(89916)},70241:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var i=r(35773),n=r(77626),a=r(78730),o=r(46348),s=r(81237),l=r(39139);class c{constructor(){this.trackAddorRemoveToCartEvent=(e,t,r,i)=>(t.length>0&&a.A.addToCartEvent(this.CreateEshopCartEcommerceItems(t),"",i||"",void 0,e),r.length>0&&a.A.removeFromCartItemEvent(this.CreateEshopCartEcommerceItems(r),"",i||"",void 0,e),!1),this.trackUpdateToCartWithEcommEvent=(e,t,r,i,n,o,s)=>{let l=t||[];if(o){var c,u,d;let e,t=null==n||null==(c=n.items)?void 0:c.find(e=>e.productId==o);s?e=t&&t.subscriptions[t.subscriptions.length-1]:(e=t&&(null==(u=t.subscriptions)?void 0:u.findLast(e=>{var r;return null==(r=e.dataPostPaidOffers)?void 0:r.find(e=>e.name==(null==t?void 0:t.preSelectedDataPostPaidOffer))})),e=t&&(null==(d=t.subscriptions)?void 0:d.findLast(e=>{var r;return null==(r=e.serviceOptions)?void 0:r.find(e=>e.name==(null==t?void 0:t.preSelectedSO))}))),t&&l.push(...this.createEcommerceItemsWithSubscription(t,e))}l&&l.length>0&&a.A.addToCartEvent(l,"",i||"",void 0,e),r&&r.length>0&&a.A.removeFromCartItemEvent(r,"",i||"",void 0,e)},this.trackViewItemEvent=(e,t,r,i,s)=>{if(e&&i){var l,c,u,d,p,h,m,f,g,y,v,_,b,S,w,C;let E=[],k=i.eligibleDiscountType||o.lf.DISCOUNT_BP,A=k==o.lf.DISCOUNT_BP?(null==(l=e.promoInfo)?void 0:l.basePrice)||e.listPrice||"":null==e?void 0:e.listPrice,P=k==o.lf.DISCOUNT_FMC?(null==e||null==(c=e.upHomeBenefitInfo)?void 0:c.derivedPrice)||"":k==o.lf.DISCOUNT_MM?(null==e||null==(u=e.multiMobileBenefitInfo)?void 0:u.derivedPrice)||"":(null==e||null==(d=e.promoInfo)?void 0:d.derivedPrice)||"",I=k==o.lf.DISCOUNT_FMC?"FMC":k==o.lf.DISCOUNT_MM?"MM":(null==(p=e.promoInfo)?void 0:p.id)||"",T=k==o.lf.DISCOUNT_BP&&(null==(h=e.promoInfo)?void 0:h.duration)||"",O=this.CreateEshopItemWithValues(e.offerId,A,i.contractDuration,P,I,T,"","Mobile",1,"esim");if(E.push(O),t&&e.serviceOption||s&&e.dataPostPaidOffer){let t=(null==e?void 0:e.serviceOption)?null==(m=e.serviceOption)?void 0:m.listPrice:e.dataPostPaidOffer?null==(f=e.dataPostPaidOffer)?void 0:f.listPrice:"",r=e.serviceOption?null!=(w=e.serviceOption.derivedPrice)?w:"":e.dataPostPaidOffer&&null!=(C=e.dataPostPaidOffer.derivedPrice)?C:"",i=this.CreateEshopItemWithValues((null==(g=e.serviceOption)?void 0:g.id)||(null==(y=e.dataPostPaidOffer)?void 0:y.id)||"",t,(null==(v=e.serviceOption)?void 0:v.contractDuration)||(null==(_=e.dataPostPaidOffer)?void 0:_.contractDuration),r,null==(b=e.promoInfo)?void 0:b.id,k==o.lf.DISCOUNT_BP&&(null==(S=e.promoInfo)?void 0:S.duration)||void 0,"","Option",1,"esim");E.push(i)}let D=n.kN.calculateTotalValue(E);return a.A.viewItemEvent(E,"",r,D),!0}return!1},this.trackBeginCheckOutEvent=(e,t,r,i)=>{let n=this.CreateEshopCartEcommerceItems(e);a.A.trackBeginCheckOutEvent(n,t,void 0,r,i)},this.trackAddShippingInfoEvent=(e,t,r,i,n)=>{let o=this.CreateEshopCartEcommerceItems(e);a.A.trackAddShippingInfoEvent(o,r,i,t,void 0,n)},this.trackEshopPurchaseEvent=(e,t,r,i,n,o)=>{let s=this.CreateEshopCartEcommerceItems(e);a.A.eshopPurchaseEvent(s,t,r,i,n,o)},this.trackViewCartEvent=(e,t,r)=>{let i=this.CreateEshopCartEcommerceItems(e),o=n.kN.calculateTotalValue(i);a.A.eshopViewCartEvent(i,t,o,r)},this.CreateEshopCartEcommerceItems=e=>{let t=[];return e.map((e,r)=>{var i;null==(i=e.subscriptions)||i.map(i=>{var n,a;t.push(this.CreateEshopCartItem(e,r+1)),null==(n=i.serviceOptions)||n.map(i=>{t.push(this.CreateEshopServiceOptionItem(i,r+1,e.promoInfo.id,e.promoInfo.duration))}),null==(a=i.dataPostPaidOffers)||a.map(i=>{t.push(this.CreateEshopServiceOptionItem(i,r+1,e.promoInfo.id,e.promoInfo.duration))})})}),t},this.createEcommerceItemsWithSubscription=(e,t,r)=>{var i,n;let a=[];return r?a.push(this.CreateEshopCartItem(e,1,r)):a.push(this.CreateEshopCartItem(e,1)),null==t||null==(i=t.serviceOptions)||i.map(t=>{a.push(this.CreateEshopServiceOptionItem(t,1,e.promoInfo.id,e.promoInfo.duration))}),null==t||null==(n=t.dataPostPaidOffers)||n.map(t=>{a.push(this.CreateEshopServiceOptionItem(t,1,e.promoInfo.id,e.promoInfo.duration))}),a},this.CreateEshopCartItem=(e,t,r)=>{var i,a,s,c,u,d,p,h,m,f,g,y,v,_,b;let S=l.i.getState().eshopCartReducer.cartData.isOnp,w=r?null==e||null==(i=e.subscriptions)?void 0:i.find(e=>e.msisdn===r):e.subscriptions[e.subscriptions.length-1],C=(null==w?void 0:w.eligibleDiscountType)||o.lf.DISCOUNT_BP,E=C==o.lf.DISCOUNT_FMC?(null==e||null==(a=e.upHomeBenefitInfo)?void 0:a.derivedPrice)||"":C==o.lf.DISCOUNT_MM?(null==e||null==(s=e.multiMobileBenefitInfo)?void 0:s.derivedPrice)||"":(null==e||null==(c=e.promoInfo)?void 0:c.derivedPrice)||"",k=(null==e||null==(u=e.promoInfo)?void 0:u.contractDuration)||(null==e?void 0:e.contractDuration);return{item_link_id:t,item_category:"Mobile",item_id:e.productId,item_name:e.productId,item_variant:(()=>{var e,t,r;return[(null==w||null==(e=w.simDetails)?void 0:e.simType)==o.aw.ESIM?"esim":"sim",...void 0!==S?S?["keepnumber"]:["newnumber"]:[],null==w||null==(t=w.onpInfo)?void 0:t.contractType,...(null==w?void 0:w.onpInfo)?(null==w||null==(r=w.onpInfo)?void 0:r.wishDateType)=="SPECIFIC_DATE"?["specificdate"]:["endcontract"]:[]].filter(
1Boolean).join("|")})(),price:n.kN.calcEshopItemPriceforAnalytics((null==(d=e.promoInfo)?void 0:d.basePrice)||e.listPrice,k,E,null==(p=e.promoInfo)?void 0:p.duration),quantity:1,promotion_duration:(null==(h=e.promoInfo)?void 0:h.duration)||"",recurring_price:parseFloat(E||e.listPrice),onetime_price:parseFloat((null==(g=e.subscriptions)||null==(f=g[0])||null==(m=f.simDetails)?void 0:m.derivedPrice)||(null==(_=e.subscriptions)||null==(v=_[0])||null==(y=v.simDetails)?void 0:y.listPrice)||"0"),promo_id_backend:null==(b=e.promoInfo)?void 0:b.id,contract_duration:parseFloat(k)}},this.CreateEshopServiceOptionItem=(e,t,r,i)=>({item_link_id:t,item_category:"Option",item_id:e.id||e.name||"",item_name:e.id||e.name||"",item_variant:(()=>{var t;return[...(null==(t=e.extraSimDetails)?void 0:t.map(e=>e.simType===o.aw.ESIM?"esim":"sim"))||[]].filter(Boolean).join("|")})()||"esim",price:n.kN.calcEshopItemPriceforAnalytics(e.listPrice,e.contractDuration||"1",e.derivedPrice,e.promoDuration||e.promotionDuration||i),quantity:1,promotion_duration:e.derivedPrice&&(e.promotionDuration||i),recurring_price:parseFloat(e.derivedPrice||e.listPrice),onetime_price:0,promo_id_backend:e.derivedPrice&&r,contract_duration:parseFloat(e.contractDuration||"0")}),this.CreateEshopItemWithValues=(e,t,r,i,a,o,s,l,c,u)=>({item_link_id:c,item_category:l||"Mobile",item_id:e,item_name:e,item_variant:u||"",price:n.kN.calcEshopItemPriceforAnalytics(t,r||"1",i,o),quantity:1,promotion_duration:i&&o,recurring_price:parseFloat(i||t),onetime_price:parseFloat(s||"0"),promo_id_backend:a,contract_duration:parseFloat(r||"0")}),this.trackLoginEvent=(e,t)=>{let r={event:"gaEvent",event_name:"login_click",component:e||"",funnel_step:t||i.q.AUTH_CUSTOMER_TYPE};a.A.trackEvent(r)},this.trackStartCheckoutEvent=(e,t)=>{a.A.trackEvent({event:"gaEvent",event_name:"start_checkout_click",component:e||"",funnel_step:t})},this.trackAddBillingEvent=(e,t)=>{let r={event:"gaEvent",event_name:"add_billing_account",component:e||"",funnel_step:t||i.q.AUTH_CUSTOMER_SBP};a.A.trackEvent(r)},this.trackAfterLoginEvent=async()=>{let e=(0,s.H7)();if(e){var t,r,n;let o={event:"gaEvent",event_name:"login",component:"Authentication",user_id:(null==e||null==(t=e.profile)?void 0:t.email)?await (0,s.o3)(e.profile.email):void 0,method:(null==e||null==(r=e.profile)?void 0:r.channel)==="B2B"?"sbp":"mysunrise",login_status:"logged-in",funnel_step:(0,s.hm)((null==e||null==(n=e.profile)?void 0:n.channel)==="B2B"?i.q.AUTH_CUSTOMER_SBP:void 0)};a.A.trackEvent(o)}},this.trackViewItemDetailsEvent=(e,t,r)=>{let i={event:"gaEvent",event_name:"view_item_details",component:e,headline:t||"",subheadline:r||"",funnel_step:(0,s.hm)()};a.A.trackEvent(i)},this.trackAccordianOpenEvent=(e,t,r,i)=>{let n={event:"gaEvent",event_name:"accordion_open",component:e,click_text:t,headline:r||"",funnel_step:(0,s.hm)(i)};a.A.trackEvent(n)}}}let u=new c},71012:(e,t,r)=>{"use strict";r.d(t,{K1:()=>i,h$:()=>n,xr:()=>a});var i=function(e){return e.SETUP="setup",e.COMPANY_DETAILS="companyDetails",e.PERSONAL_DETAILS="personalDetails",e.REVIEW_CONFIRM="reviewConfirm",e.CONTACT_NUMBER="contactNumber",e.SIM_TYPE="simType",e.MOBILE_SUBSCRIPTIONS="mobileSubscriptions",e.COMPANY_INFO="companyInfo",e.SIGNATURE_RIGHTS="signatureRights",e.BILLING_DETAILS="billingDetails",e.PERSONAL_DATA="personalData",e.REVIEW_CONFIRM_MOBILE_SUBSCRIPTIONS="reviewConfirmMobileSubscriptions",e.REVIEW_ACCOUNT_DETAILS="reviewAccountDetails",e.REVIEW_CONFIRM_COMPANY_DETAILS="reviewConfirmCompanyDetails",e.REVIEW_CONFIRM_PERSONAL_DETAILS="reviewConfirmPersonalDetails",e.REVIEW_CONFIRM_SHIPPING_DETAILS="reviewConfirmShippingDetails",e}({}),n=function(e){return e.PREPAID="PREPAID",e.POSTPAID="POSTPAID",e}({}),a=function(e){return e.SPECIFIED_DATE="SPECIFIC_DATE",e.END_OF_CONTRACT="END_OF_CONTRACT_DATE",e}({})},71355:(e,t,r)=>{"use strict";var i=Function.prototype.call,n=Object.prototype.hasOwnProperty;e.exports=r(28419).call(i,n)},71698:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let i={offers:[]};var n=r(83129);let a=(0,n.y$)((0,n.HY)({cart:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"cart/add":return{...e,items:t.payload?[...t.payload.items]:[],selectedAddons:t.payload&&t.payload.selectedAddons?[...t.payload.selectedAddons]:void 0,tvPublic:t.payload&&t.payload.tvPublic?t.payload.tvPublic:void 0};case"cart/update":return{...e,items:e?[...e.items]:[]};default:return e}},iotCart:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"iotcart/add":return{...e,items:t.payload?[...t.payload.items]:[]};case"iotcart/update":return{...e,items:e?[...e.items]:[]};default:return e}},stellaProductTable:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=[];return"stella/add"===t.type?(t.payload&&(e&&t.payload&&(r=e[t.payload.groupId]||[]),t.payload.offerDetails.forEac
1h(i=>{var n;let[a]=[!1];e&&t.payload&&(null==(n=e[t.payload.groupId])||n.forEach((e,t)=>{e.id===i.id&&(a=!0,r[t]=i)})),a||r.find(e=>e.id===i.id)||r.push(i)})),t.payload?{...e||{},...{[t.payload.groupId]:r}}:e):e},lineCheckData:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"lineCheck/add"===t.type?t.payload||null:e},up2productTableData:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1?arguments[1]:void 0;if("up2/add"!==t.type)return e;if(t.payload&&e){let r=e.offers.findIndex(e=>{var r;return e.groupId==(null==(r=t.payload)?void 0:r.groupId)});-1==r?e.offers.push(t.payload.offers):e.offers[r]=t.payload.offers}return e}}))},71742:e=>{"use strict";e.exports=SyntaxError},71938:e=>{"use strict";e.exports=Function.prototype.apply},72130:e=>{"use strict";e.exports=ReferenceError},72442:e=>{"use strict";e.exports=function(e,t){return function(){return e.apply(t,arguments)}}},72571:(e,t,r)=>{"use strict";r.d(t,{zA:()=>V,QJ:()=>A,Ay:()=>L,Xl:()=>j,ZE:()=>E,$9:()=>z,cw:()=>K,B0:()=>N,g5:()=>W,yQ:()=>$,KA:()=>H,Xz:()=>q,to:()=>Y});var i=r(46348),n=r(10339),a=r(39139),o=r(48501),s=r(95282),l=r(93764),c=r(74977),u=r(81237),d=r(36756),p=r(59535);class h{constructor(){this.updateEshopCart=(e,t,r)=>{try{let i=(0,u.yz)()?s._W.updateCart:(0,l.KQ)()+s.V.updateCart;return r&&(i=(0,u.yz)()?s._W.updateCartProtected:(0,l.KQ)()+s.V.updateCartProtected),c.A.request(i.replace(":cartId",t),o.dF.PUT,e,void 0,void 0,!r,r).then(e=>e.data)}catch(e){return e.message}},this.removeEshopSubscription=(e,t,r)=>{try{let i=(0,u.yz)()?s._W.updateCartProtected:(0,l.KQ)()+s.V.updateCartProtected;return c.A.request(i.replace(":cartId",t),o.dF.PUT,e,void 0,void 0,!1,r).then(e=>e.data)}catch(e){return e.message}},this.addEshopSubscription=(e,t,r)=>{try{let i=(0,u.yz)()?s._W.updateCartProtected:(0,l.KQ)()+s.V.updateCartProtected;return c.A.request(i.replace(":cartId",t),o.dF.PUT,e,void 0,void 0,!1,r).then(e=>e.data)}catch(e){return e.message}},this.createEshopCart=e=>{try{let t=(0,u.yz)()?s._W.createCart:(0,l.KQ)()+s.V.createCart;return c.A.request(t,o.dF.POST,e,void 0,void 0,!0).then(e=>e.data)}catch(e){return e.message}},this.getEshopCart=(e,t)=>{try{let r=(0,u.yz)()?s._W.getCart:(0,l.KQ)()+s.V.getCart;return t&&(r=(0,u.yz)()?s._W.getCartProtected:(0,l.KQ)()+s.V.getCartProtected),c.A.request(r.replace(":cartId",e),o.dF.GET,"",void 0,void 0,!t,t).then(e=>e.data)}catch(e){return e.message}},this.mergeEshopCart=(e,t,r)=>{try{let i=(0,u.yz)()?s._W.mergeCart:(0,l.KQ)()+s.V.mergeCart;return c.A.request(i.replace(":cartId",t).replace(":siteId",e),o.dF.PUT,null,void 0,void 0,!1,r).then(e=>e.data)}catch(e){return e.message}},this.submitCart=(e,t,r)=>{try{let i=(0,u.yz)()?s._W.submitCart:(0,l.KQ)()+s.V.submitCart;return t||(i=(0,u.yz)()?s._W.submitCartUnprotected:(0,l.KQ)()+s.V.submitCartUnprotected),c.A.request(i.replace(":cartId",e),o.dF.PUT,r||null,void 0,void 0,!t,t).then(e=>e.data).catch(e=>({error:e.message}))}catch(e){return e.message}},this.submitEshopManualCart=(e,t)=>{let r=(0,u.Me)(h.submitOrderService,!0);return d.A.request(r,o.dF.POST,e,t).then(t=>{if(t.data.errorCode===o.O4.SUCCESS){var r,i,n,a,s,l,c,u,d,h,m,f,g,y,v;return{isManualCheckout:!0,isOnp:e.cartData.isOnp,emailAddress:null==(n=e.cartData)||null==(i=n.customerDetails)||null==(r=i.contactDetails)?void 0:r.email,phoneNumber:null==(l=e.cartData)||null==(s=l.customerDetails)||null==(a=s.contactDetails)?void 0:a.phoneNumber,firstName:null==(d=e.cartData)||null==(u=d.customerDetails)||null==(c=u.contactDetails)?void 0:c.firstName,lastName:null==(f=e.cartData)||null==(m=f.customerDetails)||null==(h=m.contactDetails)?void 0:h.lastName,salutation:null==(v=e.cartData)||null==(y=v.customerDetails)||null==(g=y.contactDetails)?void 0:g.salutation,totalOrdersSubmitted:(0,p.fj)()}}return{error:t.data}}).catch(()=>{})}}}h.submitOrderService="/api/al/checkout/eshop-cart";let m=new h;var f=r(85383),g=r(97594),y=r(70241),v=r(78730),_=r(35773),b=r(91261),S=r(71012),w=r(57573);let C=(0,n.Z0)({name:"eShopCart",initialState:{cartData:{},createUpdateCartError:!1,isMergeCartFailure:!1,mergeCartFailureCount:0,isApiInProgress:!1,isSubmitApiProgress:!1,isSubmitCartSuccess:!1,isMergeCartInProgress:!1,successResponse:{},updateStatus:{action:"",status:!1,showMessage:!1},isManualCheckoutSuccess:!1,shouldRetriggerCreditCheck:!1},reducers:{initializeCart:(e,t)=>{e.cartData=t.payload},updateCartItem:(e,t)=>
1{e.cartData=t.payload},createUpdateCartError:(e,t)=>{e.createUpdateCartError=t.payload},mergeCartFailure:(e,t)=>{e.isMergeCartFailure=t.payload},mergeCartFailureCount:(e,t)=>{e.mergeCartFailureCount=t.payload},isMergeCartInProgress:(e,t)=>{e.isMergeCartInProgress=t.payload},isApiInProgress:(e,t)=>{e.isApiInProgress=t.payload},isSubmitApiProgress:(e,t)=>{e.isSubmitApiProgress=t.payload},submitSuccessStatus:(e,t)=>{e.isSubmitCartSuccess=t.payload},submitOrderResponse:(e,t)=>{e.successResponse=t.payload},updateApiState:(e,t)=>{e.updateStatus={...e.updateStatus,...t.payload}},manualCheckoutStatus:(e,t)=>{e.isManualCheckoutSuccess=t.payload},updateCCTriggerState:(e,t)=>{e.shouldRetriggerCreditCheck=t.payload},submitCartComplete:(e,t)=>{let{isManualCheckout:r,response:i}=t.payload;console.log("submitCartComplete reducer submitIssue:",{isManualCheckout:r,response:i}),e.successResponse=r?i:{...i,isAutomatedCheckout:!0},r?e.isManualCheckoutSuccess=!0:e.isSubmitCartSuccess=!0}}}),{initializeCart:E,updateCartItem:k,createUpdateCartError:A,mergeCartFailure:P,mergeCartFailureCount:I,isApiInProgress:T,isSubmitApiProgress:O,removeSubscription:D,submitSuccessStatus:R,submitOrderResponse:M,updateApiState:N,isMergeCartInProgress:x,manualCheckoutStatus:U,updateCCTriggerState:B,submitCartComplete:F}=C.actions,L=C.reducer,j=(e,t,r)=>async i=>{try{let r=await m.getEshopCart(e,t);if(r.error)throw r.error;i(k(r))}catch(e){v.A.trackApiErrorEvent(e.response,r)}finally{}},V=(e,t,r,n)=>async a=>{try{var o,s,l,c,u;a(T(!0)),a(A(!1));let i=await m.createEshopCart(e);if(i.error)throw i.error;y.A.trackUpdateToCartWithEcommEvent(i.cartId||"",[],[],t,i,null==r?void 0:r.productName,n),a(k(i));let d=(null==(u=i.items)||null==(c=u.find(e=>e.productId==(null==r?void 0:r.productName)))||null==(l=c.subscriptions)||null==(s=l[0])||null==(o=s.simDetails)?void 0:o.listPrice)||void 0;a((0,b.zL)({product:r,productName:(null==r?void 0:r.productName)||"",eshopActivationPrice:d}))}catch(e){v.A.trackApiErrorEvent(e.response,i.V4.CREATECART,_.q.WEBPAGE),a(A(!0))}finally{a(T(!1))}},q=(e,t,r,i,n,a,o,s,l,c,u)=>async d=>{try{d(T(!0)),d(A(!1));let r=await m.updateEshopCart(e,t,n);if(r.error)throw r.error;if(y.A.trackUpdateToCartWithEcommEvent(r.cartId||"",[],a||[],o,r,null==s?void 0:s.productName,l),d(k(r)),s&&s){var p,h,f,g,_,S,w,C,E;let e=(null==(_=r.items)||null==(g=_.find(e=>e.productId==(null==s?void 0:s.productName)))||null==(f=g.subscriptions)||null==(h=f[0])||null==(p=h.simDetails)?void 0:p.listPrice)||void 0;d(i?void 0!==u&&u>=1?(0,b.RD)({productName:s.productName,index:u}):(0,b._w)({productName:s.productName||""}):c?(0,b.AE)({productName:s.productName,addServiceOption:(null==s||null==(E=s.subscriptionDetails)||null==(C=E[0])||null==(w=C.serviceOption)||null==(S=w[0])?void 0:S.isAddedToCart)||!1}):(0,b.zL)({product:s,productName:s.productName||"",eshopActivationPrice:e}))}}catch(e){v.A.trackApiErrorEvent(e.response,r),d(A(!0))}finally{d(T(!1))}},Y=(e,t,r,i,n,a)=>async o=>{try{o(T(!0)),o(A(!1));let i=await m.removeEshopSubscription(e,t,r);if(i.error)throw i.error;y.A.trackUpdateToCartWithEcommEvent(t,[],n||[],a),o(k(i))}catch(e){v.A.trackApiErrorEvent(e.response,i),o(A(!0))}finally{o(T(!1))}},H=(e,t,r,n,a,o,s,l,c,u,d,p,h,_)=>async b=>{try{b(T(!0)),b(A(!1));let r=await m.updateEshopCart(e,t,o);if(r.error)throw r.error;console.log(a),y.A.trackUpdateToCartWithEcommEvent(t,s||[],l||[],c,r,u),b(k(r)),b(N({action:n,status:!0,showMessage:!0})),p?_||(c&&v.A.trackCheckoutFormStep(c,h||""),b(d?(0,g.uG)({isNewCustomerSteps:!0,stepName:d}):(0,g.jJ)({}))):n==i.X2.DELIVERYADDRESS&&b((0,g.Ql)({activeStep:f.A.CONFIRMATION}))}catch(e){v.A.trackApiErrorEvent(e.response,r),b(A(!0)),b(N({action:n,status:!1,showMessage:!1}))}finally{b(T(!1))}},W=(e,t,r,i,n,a,o,s)=>async l=>{try{var c;l(T(!0)),l(A(!1));let i=await m.updateEshopCart(e,t,r);if(i.error)throw i.error;l(k(i)),null==a||null==(c=a.onSuccess)||c.call(a),n?(o&&v.A.trackCheckoutFormStep(o,s||""),l((0,g.jJ)({}))):(l((0,g.Ql)({activeStep:f.A.CONFIRMATION})),l((0,g.hT)({completedStep:f.A.DELIVERY})),l((0,g.wj)({visitedStep:f.A.CONFIRMATION})))}catch(e){v.A.trackApiErrorEvent(e.response,i),l(A(!0))}finally{l(T(!1))}},z=(e,t,r,i,n)=>async o=>{try{o(T(!0)),o(x(!0)),o(P(!1));let i=await m.mergeEshopCart(e,t,r);if(i.error)throw i.error;o(k(i)),n?w.A.setExistingCustomerProgressIndicatorInitialState():(o((0,g.Ql)({activeStep:f.A.CART})),o((0,g.hT)({completedStep:f.A.CART})))}catch(e){var s,l;v.A.trackApiErrorEvent(e.response,i),o(P(!0)),o(I(((null===a.i||void 0===a.i||null==(l=a.i.getState())||null==(s=l.eshopCartReducer)?void 0:s.mergeCartFailureCount)||0)+1))}finally{o(T(!1)),o(x(!1))}},K=(e,t,r,i,n,a,o)=>async s=>{try{var l;let i;s(O(!0)),s(A(!1));let c=(0,u.H3)(r),d={language:o||"en",isCcRequired:!!t||a||!1,isPhysicalSimPresent:c.simCardPresent||!1,isESimPresent:c.eSimPresent||!1};if(n){let t={emailId:n,cartData:r};if(w.A.checkIsAutomatedOrder()){try{i=await m.submitCart(e,"",d)}catch(e){i=await m.submitEshopManualCart(t,o)}(null==i?void 0:i.ccEligibility)===!1&&(t.cartData={...t.cartData,creditCheckData:null==i?void 0:i.creditCheckData},i=await m.submitEshopManualCart(t,o))}else i=await m.submitEshopManualCart(t,o)}else i=await m.submitCart(e,t,d);if(null==i?void 0:i.error)throw i.error;let p=i;console.log("submitEshopCart response submitIssue:",p),s(F({isManualCheckout:null!=(l=null==p?void 0:p.isManualCheckout)&&l,response:p})),console.log("submitEshopCart Dispatched submitCartComplete submitIssue"),(0,u.g2)(null==r?void 0:r.customerDetails,"eshopCheckout").then(e=>{y.A.trackEshopPurchaseEvent(r.items||[],r.cartId||"","Order Summary",!!r.isAutomatedCheckout,e,t?_.q.ORDER_SUBMIT:_.q.NEW_MOBILE_ORDER_SUBMITTED)}).catch(e=>
1console.warn("Tracking failed, but order completed successfully:",e)),s((0,g.hT)({completedStep:f.A.CONFIRMATION})),await new Promise(e=>setTimeout(e,1e3))}catch(e){v.A.trackApiErrorEvent(e.response,i,t?_.q.ORDER_SUBMIT:_.q.NEW_MOBILE_ORDER_SUBMITTED),s(A(!0))}finally{s(O(!1))}},$=(e,t,r,i,n,o,s,l,c)=>async(d,p)=>{var h,f,y,b,w;try{d(T(!0)),d(A(!1));let r=await m.updateEshopCart(e,t);if(r.error)throw r.error;if(s&&!n&&v.A.trackCheckoutFormStep(s,l||""),d(k(r)),"companyInfo"===l||"personalData"===l){let e=null==(y=a.i.getState().eshopCartReducer)||null==(f=y.cartData)?void 0:f.customerDetails;(0,u.g2)(e,"eshopCheckout").then(e=>{v.A.trackUserDataEvent(e)}).catch(e=>console.warn("Tracking failed, proceeding with checkout:",e))}n||d(i?(0,g.uG)({isNewCustomerSteps:!0,stepName:i}):(0,g.jJ)({})),null==o||null==(h=o.onSuccess)||h.call(o)}catch(e){v.A.trackApiErrorEvent(e.response,r,_.q.WEBPAGE),d(A(!0)),null==o||null==(b=o.onError)||b.call(o,e)}finally{d(T(!1));let e=p(),t=null==(w=e.progressIndicatorReducer.horizontalSteps)?void 0:w.find(e=>e.stepKey===S.K1.REVIEW_CONFIRM);(null==t?void 0:t.isVisited)&&c&&!e.eshopCartReducer.shouldRetriggerCreditCheck&&d(B(!0))}}},73004:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>o,wN:()=>n,yU:()=>a});let i=(0,r(10339).Z0)({name:"salesforce",initialState:{leadForm:null},reducers:{setSalesforceLeadForm:(e,t)=>{e.leadForm=t.payload.data},updateAddress:(e,t)=>{e.leadForm&&(e.leadForm.street=t.payload.street,e.leadForm.postalCode=t.payload.postalCode,e.leadForm.countryCode=t.payload.countryCode,e.leadForm.canton=t.payload.canton)}}}),{setSalesforceLeadForm:n,updateAddress:a}=i.actions,o=i.reducer},73305:e=>{"use strict";e.exports=URIError},73442:(e,t,r)=>{"use strict";var i=r(45525),n=r(66530),a=n([i("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=i(e,!!t);return"function"==typeof r&&a(e,".prototype.")>-1?n([r]):r}},73609:(e,t,r)=>{"use strict";r.d(t,{$q:()=>g,Ay:()=>v,B8:()=>m,Cf:()=>d,_4:()=>y,c6:()=>s,hP:()=>c,n$:()=>h,uX:()=>u,zy:()=>l});var i=r(10339),n=r(16953);let a=(e,t,r)=>{let i=e.findIndex(e=>e.productId===t.productId);if(r<=0){-1!==i&&e.splice(i,1);return}-1!==i?e[i]={...t,quantity:r}:e.push({...t,quantity:r})},o=(0,i.Z0)({name:"boomCart",initialState:{connectivityItem:null,extras:[],oneTimeExtras:[],labels:void 0},reducers:{initBoomCart:(e,t)=>{var r;e.connectivityItem=t.payload.connectivityItem,e.extras=t.payload.extras?[...t.payload.extras]:[];let i=null==(r=t.payload.oneTimeExtras)?void 0:r.find(e=>e.productId===n.S);e.oneTimeExtras=i?[i]:[]},setBoomLabels:(e,t)=>{let{onMissingLineCheck:r,onMissingConnectivitySelection:i,...n}=t.payload;e.labels={...e.labels,...n}},setConnectivityItem:(e,t)=>{e.connectivityItem=t.payload},clearBoomSelections:e=>{e.connectivityItem=null,e.extras=[]},setExtraQuantity:(e,t)=>{a(e.extras,t.payload.item,t.payload.quantity)},adjustExtraQuantity:(e,t)=>{var r,i;let{item:n,delta:o}=t.payload,s=null!=(i=null==(r=e.extras.find(e=>e.productId===n.productId))?void 0:r.quantity)?i:0;a(e.extras,n,s+o)},setExclusiveExtra:(e,t)=>{let{item:r,quantity:i=1}=t.payload;e.extras=e.extras.filter(e=>e.type!==r.type||e.productId===r.productId),a(e.extras,r,i)},removeExtra:(e,t)=>{e.extras=e.extras.filter(e=>e.productId!==t.payload.productId)},addExtraReplacing:(e,t)=>{let{item:r,quantity:i=1,removeProductIds:n=[],removeTypes:o=[]}=t.payload;if(n.length||o.length){let t=new Set(n),i=new Set(o);e.extras=e.extras.filter(e=>e.productId===r.productId||!(t.has(e.productId)||i.has(e.type)))}a(e.extras,r,i)},setOneTimeExtraQuantity:(e,t)=>{a(e.oneTimeExtras,t.payload.item,t.payload.quantity)},removeOneTimeExtra:(e,t)=>{e.oneTimeExtras=e.oneTimeExtras.filter(e=>e.productId!==t.payload.productId)}}}),{initBoomCart:s,setBoomLabels:l,setConnectivityItem:c,clearBoomSelections:u,setExtraQuantity:d,adjustExtraQuantity:p,setExclusiveExtra:h,removeExtra:m,addExtraReplacing:f,setOneTimeExtraQuantity:g,removeOneTimeExtra:y}=o.actions,v=o.reducer},74290:(e,t,r)=>{"use strict";var i=r(15738),n=r(47278),a=r(81151),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,p=a.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset
1:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,filter:void 0,format:p,formatter:a.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},m={},f=function e(t,r,a,o,s,c,d,p,f,g,y,v,_,b,S,w,C,E){for(var k,A,P=t,I=E,T=0,O=!1;void 0!==(I=I.get(m))&&!O;){var D=I.get(t);if(T+=1,void 0!==D)if(D===T)throw RangeError("Cyclic object value");else O=!0;void 0===I.get(m)&&(T=0)}if("function"==typeof g?P=g(r,P):P instanceof Date?P=_(P):"comma"===a&&l(P)&&(P=n.maybeMap(P,function(e){return e instanceof Date?_(e):e})),null===P){if(c)return S(f&&!w?f(r,h.encoder,C,"key",b):r);P=""}if("string"==typeof(k=P)||"number"==typeof k||"boolean"==typeof k||"symbol"==typeof k||"bigint"==typeof k||n.isBuffer(P))return f?[S(w?r:f(r,h.encoder,C,"key",b))+"="+S(f(P,h.encoder,C,"value",b))]:[S(r)+"="+S(String(P))];var R=[];if(void 0===P)return R;if("comma"===a&&l(P))w&&f&&(P=n.maybeMap(P,function(e){return null==e?e:f(e)})),A=[{value:P.length>0?P.join(",")||null:void 0}];else if(l(g))A=g;else{var M=Object.keys(P);A=y?M.sort(y):M}var N=p?String(r).replace(/\./g,"%2E"):String(r),x=o&&l(P)&&1===P.length?N+"[]":N;if(s&&l(P)&&0===P.length)return x+"[]";for(var U=0;U<A.length;++U){var B=A[U],F="object"==typeof B&&B&&void 0!==B.value?B.value:P[B];if(!d||null!==F){var L=v&&p?String(B).replace(/\./g,"%2E"):String(B),j=l(P)?"function"==typeof a?a(x,L):x:x+(v?"."+L:"["+L+"]");E.set(t,T);var V=i();V.set(m,E),u(R,e(F,j,a,o,s,c,d,p,"comma"===a&&w&&l(P)?null:f,g,y,v,_,b,S,w,C,V))}}return R},g=function(e){if(!e)return h;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,r=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=a.default;if(void 0!==e.format){if(!o.call(a.formatters,e.format))throw TypeError("Unknown format option provided.");i=e.format}var n=a.formatters[i],c=h.filter;if(("function"==typeof e.filter||l(e.filter))&&(c=e.filter),t=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":h.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||h.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:
1h.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:h.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:c,format:i,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}};e.exports=function(e,t){var r,n=e,a=g(t);"function"==typeof a.filter?n=(0,a.filter)("",n):l(a.filter)&&(r=a.filter);var o=[];if("object"!=typeof n||null===n)return"";var c=s[a.arrayFormat],d="comma"===c&&a.commaRoundTrip;r||(r=Object.keys(n)),a.sort&&r.sort(a.sort);for(var p=i(),h=0;h<r.length;++h){var m=r[h];if(null!=m){var y=n[m];a.skipNulls&&null===y||u(o,f(y,m,c,d,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,p))}}var v=o.join(a.delimiter),_=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?_+="utf8=%26%2310003%3B"+a.delimiter:_+="utf8=%E2%9C%93"+a.delimiter),v.length>0?_+v:""}},74319:e=>{e.exports={"grey-dusk-font":"Stepper_grey-dusk-font__LU4J9","grey-dusk-font500":"Stepper_grey-dusk-font500__JtJJr","grey-dusk-font400":"Stepper_grey-dusk-font400__XF9AR","grey-dusk-font100":"Stepper_grey-dusk-font100__ABX3W","sunrise-red-font":"Stepper_sunrise-red-font__iU4Rl","white-font":"Stepper_white-font__yXmmN","black-font":"Stepper_black-font__gdQjG","blue-haze-font":"Stepper_blue-haze-font__Qgl_l","darkblue-haze-font":"Stepper_darkblue-haze-font__E_uNI",greydusktext:"Stepper_greydusktext__fi24c",grey500text:"Stepper_grey500text__IuAz_",pointerClass:"Stepper_pointerClass__hM4ru","w-fit-content":"Stepper_w-fit-content__BO95a",stepswrapper:"Stepper_stepswrapper__x2_Oe",centeredsteps:"Stepper_centeredsteps__6Sk4Z",stepsverticalwrapper:"Stepper_stepsverticalwrapper__3TS_G",verticalstepsection:"Stepper_verticalstepsection__qzU79",stepcontainer:"Stepper_stepcontainer__1LQQY",verticalstepcontainer:"Stepper_verticalstepcontainer___mkza",horizontalLine:"Stepper_horizontalLine__FN941",stepitem:"Stepper_stepitem__AYxV0",active:"Stepper_active__gUK_R",inactive:"Stepper_inactive__pfRcE",pointercursor:"Stepper_pointercursor__0V23j",nocursor:"Stepper_nocursor__19XHk",done:"Stepper_done__gBMHm",verticalstepitem:"Stepper_verticalstepitem__ZgrPY",icon:"Stepper_icon__1jtpf",verticalline:"Stepper_verticalline__UW_YE",stepnamebutton:"Stepper_stepnamebutton__HGgEq"}},74371:(e,t,r)=>{"use strict";var i=r(27496);function n(){this.handlers=[]}n.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},n.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},n.prototype.clear=function(){this.handlers&&(this.handlers=[])},n.prototype.forEach=function(e){i.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=n},74512:(e,t,r)=>{"use strict";var i=r(47278),n=Object.prototype.hasOwnProperty,a=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:i.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},l=function(e,t){var r={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c=t.parameterLimit===1/0?void 0:t.parameterLimit,u=l.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==c?c+1:c);if(t.throwOnLimitExceeded&&void 0!==c&&u.length>c)throw RangeError("Parameter limit exceeded. Only "+c+" parameter"+(1===c?"":"s")+" allowed.");var d=-1,p=t.charset;if(t.charsetSentinel)for(h=0;h<u.length;++h)0===u[h].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[h]?p="utf-8":"utf8=%26%2310003%3B"===u[h]&&(p="iso-8859-1"),d=h,h=u.length);for(h=0;h<u.length;++h)if(h!==d){var h,m,f,g=u[h],y=g.indexOf("]="),v=-1===y?g.indexOf("="):y+1;if(-1===v?(m=t.decoder(g,o.decoder,p,"key"),f=t.strictNullHandling?null:""):null!==(m=t.decoder(g.slice(0,v),o.decoder,p,"key"))&&(f=i.maybeMap(s(g.slice(v+1),t,a(r[m])?r[m].length:0),function(e){return t.decoder(e,o.decoder,p,"value")})),f&&t.interpretNumericEntities&&"iso-8859-1"===p&&(f=String(f).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),g.indexOf("[]=")>-1&&(f=a(f)?[f]:f),t.comma&&a(f)&&f.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");f=i.combine([],f,t.arrayLimit,t.plainObjects)}if(null!==m){var _=n.call(r,m);_&&("combine"===t.duplicates||g.indexOf("[]=")>-1)?r[m]=i.combine(r[m],f,t.arrayLimit,t.plainObjects):_&&"last"!==t.duplicates||(r[m]=f)}}return r},c=function(e,t,r,n){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var o=e.slice(0,-1).join("");a=Array.isArray(t)&&t[o]?t[o].length:0}for(var l=n?t:s(t,r,a),c=e.length-1;c>=0;--c){var u,d=e[c];if("[]"===d&&r.parseArrays)u=i.isOverflow(l)?l:r.allowEmptyArrays&&(""===l||r.strictNullHandling&&null===l)?[]:i.combine([],l,r.arrayLimit,r.plainObjects);else{u=r.plainObjects?{__proto__:null}:{};var p="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,h=r.decodeDotInKeys?p.replace(/%2E/g,"."):p,m=parseInt(h,10),f=!isNaN(m)&&d!==h&&String(m)===h&&m>=0&&r.parseArrays;if(r.parseArrays||""!==h)if(f&&m<r.arrayLimit)(u=[])[m]=l;else if(f&&r.throwOnLimitExceeded)throw RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");else f?(u[m]=l,i.markOverflow(u,m)):"__proto__"!==h&&(u[h]=l);else u={0:l}}l=u}return l},u=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&n.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var i=[],a=r.indexOf("["),o=a>=0?r.slice(0,a):r;if(o){if(!t.plainObjects&&n.call(Object.prototype,o)&&!t.allowPrototypes)return;i[i.length]=o}for(var s=r.length,l=a,c=0;l>=0&&c<t.depth;){for(var u=1,d=l+1,p=-1;d<s&&p<0;){var h=r.charCodeAt(d);91===h?u+=1:93===h&&0==(u-=1)&&(p=d),d+=1}if(p<0)return i[i.length]="["+r.slice(l)+"]",i;var m=r.slice(l,p+1),f=m.slice(1,-1);if(!t.plainObjects&&n.call(Object.prototype,f)&&!t.allowPrototypes)return;
1i[i.length]=m,c+=1,l=r.indexOf("[",p+1)}if(l>=0){if(!0===t.strictDepth)throw RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");i[i.length]="["+r.slice(l)+"]"}return i},d=function(e,t,r,i){if(e){var n=u(e,r);if(n)return c(n,t,r,i)}},p=function(e){if(!e)return o;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?o.charset:e.charset,r=void 0===e.duplicates?o.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||o.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:o.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||i.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:o.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:o.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var r=p(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var n="string"==typeof e?l(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(n),s=0;s<o.length;++s){var c=o[s],u=d(c,n[c],r,"string"==typeof e);
1a=i.merge(a,u,r)}return!0===r.allowSparse?a:i.compact(a)}},74977:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var i=r(93764),n=r(81237),a=r(8145),o=r.n(a),s=r(78730),l=r(35773),c=r(46348);class u{request(e,t,r,a,o,s,l,c){let u={url:e,headers:{"Accept-Language":a+"-CH","Content-Type":"application/json","x-Sunrise-App-ID":"B2B-ESHOP","x-Sunrise-Channel":"SBO","x-correlation-id":(0,n.cv)()},method:t,data:r,cancelToken:o};if(s&&(0,n.yz)()&&(null==u?void 0:u.headers))u.headers.Authorization=(0,i.MX)();else if(l&&(null==u?void 0:u.headers))u.headers.authorization="Bearer ".concat(l);else{var d;null==u||null==(d=u.headers)||delete d.Authorization}return c&&(null==u?void 0:u.headers)&&(u.headers["X-Sunrise-Site-ID"]=c),this.apiClient.request(u)}get(e,t){return this.apiClient.get(e,t)}constructor(){this.apiClient=o(),this.apiClient.interceptors.request.use(function(e){return e},function(e){return Promise.reject(e)}),this.apiClient.interceptors.response.use(e=>e,e=>{var t;return(null==e||null==(t=e.response)?void 0:t.status)===504&&s.A.trackApiErrorEvent(e.response,c.V4.TIMEOUTERROR,l.q.WEBPAGE,"A 504 Gateway Timeout"),Promise.reject(e)})}}let d=new u},75526:(e,t,r)=>{"use strict";var i=r(27496);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var i=e;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=i.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},76124:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s,Ep:()=>a,bV:()=>o,ed:()=>n});let i=(0,r(10339).Z0)({name:"eshopOnp",initialState:{onpDataList:[]},reducers:{initializeOnpData:(e,t)=>{t.payload.forEach(t=>{let r=e.onpDataList.findIndex(e=>e.msisdn===t.msisdn);-1!==r?e.onpDataList[r]=t:e.onpDataList.push(t)})},updateSubscriptionOnp:(e,t)=>{let r=e.onpDataList.findIndex(e=>e.msisdn===t.payload.msisdn);-1!==r?e.onpDataList[r]=t.payload:e.onpDataList.push(t.payload)},applyFirstSubscriptionSettingsToAll:(e,t)=>{let{firstSubscriptionData:r,allMsisdns:i}=t.payload;i.forEach(t=>{if(t!==r.msisdn){let i=e.onpDataList.findIndex(e=>e.msisdn===t);-1!==i?e.onpDataList[i]={...e.onpDataList[i],onpInfo:{...e.onpDataList[i].onpInfo,contractType:r.onpInfo.contractType,wishDateType:r.onpInfo.wishDateType,wishDate:r.onpInfo.wishDate}}:e.onpDataList.push({msisdn:t,onpInfo:{onpNumber:"",contractType:r.onpInfo.contractType,wishDateType:r.onpInfo.wishDateType,wishDate:r.onpInfo.wishDate}})}})}}}),{initializeOnpData:n,updateSubscriptionOnp:a,applyFirstSubscriptionSettingsToAll:o}=i.actions,s=i.reducer},77328:(e,t,r)=>{e.exports=r(97918)},77626:(e,t,r)=>{"use strict";r.d(t,{DU:()=>l,Df:()=>c,Mz:()=>s,TV:()=>u,kN:()=>o});var i=r(21204),n=r(31174),a=r(81237);class o{static getTimeDuration(e,t){let r=e.getTime(),i=new Date().getTime();t&&(i=t.getTime());let n=i-r;return n<1e4?"1-9 sec":n<2e4?"10-19 sec":n<3e4?"20-29 sec":n<4e4?"30-39 sec":n<5e4?"40-49 sec":n<6e4?"50-59 sec":n<7e4?"60-69 sec":n<8e4?"70-79 sec":n<9e4?"80-89 sec":n<1e5?"90-99 sec":n<11e4?"100-109 sec":n<12e4?"110-119 sec":n<13e4?"120-129 sec":n<14e4?"130-139 sec":n<15e4?"140-149 sec":"150+ sec"}static calcItemPriceforAnalytics(e,t,r,i){let n=720==i&&(r||0===r)?r*t:i&&(r||0===r)?r*i+e*(t-i):(r||0===r?r:e)*t;return(0,a.nO)(n)}static calcEshopItemPriceforAnalytics(e,t,r,i){let n=parseFloat(e),o=parseFloat(t),s=r?parseFloat(r):void 0,l=i?parseFloat(i):void 0;return(0,a.nO)(l&&(s||0==s)?l>o?s*o:s*l+n*(o-l):(s||0===s?s:n)*o)}static calcItemDiscountforAnalytics(e,t,r){return(0,a.nO)(t||0===t?(e-t)*(r||1):0)}static calculateTotalValue(e){let[t]=[0];return null==e||e.forEach(e=>{t+=e.price*(e.quantity||1)}),(0,a.nO)(t)}static calculateTotalTransactionalValue(e,t,r){return(0,a.nO)(e+t*(r||1))}static calcPriceForAnalytics(e,t){let r={totalItemValue:0,totalTransactionValue:0,contractDuration:1,totalValue:0};
1return null==e||e.forEach(e=>{r.totalItemValue+=(e.additionalDiscount||0===e.additionalDiscount)&&e.quantity>1?e.price+e.additionalDiscount*(e.quantity-1):e.price*(e.quantity||1),r.totalTransactionValue+=(e.additionalDiscount||0===e.additionalDiscount)&&e.quantity>1?(e.price+e.additionalDiscount*(e.quantity-1))*parseFloat(e.promotion_duration||"1"):e.price*(e.quantity||1)*parseFloat(e.promotion_duration||"1"),r.contractDuration=r.contractDuration>parseFloat(e.promotion_duration||"1")?r.contractDuration:parseFloat(e.promotion_duration||"1"),r.totalValue+=e.price*(e.quantity||1)}),r.totalTransactionValue=(t||0)+r.totalTransactionValue,r}static buildAiAssistantEcommerceItem(e,t){let r=(0,i.eH)(e,e.billingMode,t,e.quantity),n=r.isYearly?e.yearlyContractDuration?parseFloat(String(e.yearlyContractDuration)):void 0:e.monthlyContractDuration?parseFloat(String(e.monthlyContractDuration)):void 0,o=r.isYearly?t?"yearly existing":"yearly new":t?"monthly existing":"monthly new";return{item_category:"AI",item_name:e.productName||"",item_variant:o,price:(0,a.nO)(r.analyticsItemPrice),quantity:e.quantity,contract_duration:n,onetime_price:void 0,recurring_price:(0,a.nO)(r.unitPrice),promotion_duration:void 0,promo_id_backend:void 0}}static calculateCardPrice(e,t){let r={totalPrice:parseFloat(e.price),priceWithPromo:e.discountPrice?parseFloat(e.discountPrice):void 0};return t&&(r.totalPrice=r.totalPrice+parseFloat(t.price),(e.discountPrice||t.promoPrice)&&(r.priceWithPromo=parseFloat(e.discountPrice||e.price)+parseFloat(t.promoPrice||t.price))),r}static getCreativeName(e,t){var r,i;return(0,a.Fr)()&&(null==t||null==(r=t.filename)?void 0:r.split("/").pop())||(null==e||null==(i=e.filename)?void 0:i.split("/").pop())||""}}o.getFormattedUrl=e=>{var t,r,i;return(null==(e=(null==(i=e.split(/\/business\/(.*)/,2).pop())||null==(r=i.split("#"))||null==(t=r.shift())?void 0:t.split("?").shift())||"")?void 0:e.endsWith("/"))&&(e=e.slice(0,-1)),e&&!e.startsWith("/")&&(e="/"+e),"/business".concat(e)},o.isValidExtension=e=>{var t;let[r]=[".pdf, .xls, .xlsx, .doc, .docx, .txt, .rtf, .csv, .exe, .key, .pps, .ppt, .pptx, .7z, .pkg, .rar, .gz, .zip, .avi, .mov, .mp4, .mpe, mpeg, .wmv, .mid, .midi, .mp3, .wav, .wma"];return r.includes((null==e||null==(t=e.split("."))?void 0:t.pop())||"unknown")},o.isTestData=(e,t)=>!!(e&&(e.includes("Sunrise GmbH")||e.includes("Testfirma Switzerland GmbH"))||t&&t.includes("sunrise.net")),o.stringSepartor=e=>{let t=e;return("string"==typeof e||e instanceof String)&&e.includes("|")&&(t=e.split("|").map(e=>e.trim())),t},o.replacePlaceholder=(e,t)=>{let r=0;return null==e?void 0:e.replace(/{\d+}/gi,()=>t[++r-1]?t[r-1]:"")};let s=e=>{let t=(null==e?void 0:e.textAlignment)||"left";switch(e.type){case"mediaAndColor":return"var1-media-color";case"media":case"video":return"var2-media-".concat(t);case"color":return"var3-color-".concat(t);default:return}},l=(e,t)=>e&&t?"".concat(e,"|").concat(t):e||t||void 0,c=e=>{var t,r,i,n,a,o,s,l,c,u,d,p,h;if(((null==e?void 0:e.type)==="video"||(null==e?void 0:e.type)==="mediaAndColor")&&(null!=(n=null==e||null==(t=e.backgroundVideo)?void 0:t.length)?n:0)>0&&(null==e||null==(r=e.backgroundVideo)?void 0:r[0])){let t=null==e||null==(a=e.backgroundVideo)?void 0:a[0];if((null==t?void 0:t.source)==="storyblok")return{asset_name:(null==t?void 0:t.title)||(null==t||null==(o=t.storyBlokAsset)?void 0:o.title)||(null==t||null==(l=t.storyBlokAsset)||null==(s=l.filename)?void 0:s.split("/").pop())||void 0,asset_url:(null==t||null==(c=t.storyBlokAsset)?void 0:c.filename)||void 0};if((null==t?void 0:t.source)==="youtube"&&(null==t?void 0:t.videoId))return{asset_name:(null==t?void 0:t.title)||(null==t?void 0:t.videoId)||void 0,asset_url:"youtube|".concat(null==t?void 0:t.videoId)};if((null==t?void 0:t.source)==="vimeo"&&(null==t?void 0:t.videoId))return{asset_name:(null==t?void 0:t.title)||(null==t?void 0:t.videoId)||void 0,asset_url:"vimeo|".concat(null==t?void 0:t.videoId)}}return((null==e?void 0:e.type)==="media"||(null==e?void 0:e.type)==="mediaAndColor")&&(null==e||null==(i=e.image)?void 0:i.filename)?{asset_name:(null==e||null==(u=e.image)?void 0:u.title)||(null==e||null==(p=e.image)||null==(d=p.filename)?void 0:d.split("/").pop())||void 0,asset_url:(null==e||null==(h=e.image)?void 0:h.filename)||void 0}:{asset_name:void 0,asset_url:void 0}},u=(e,t,r,i)=>{var a,u,d,p,h,m,f,g,y,v,_,b,S,w,C,E,k,A,P,I,T,O,D,R,M,N,x,U,B,F,L,j,V;let q,Y,H,W=(null==(a=r.componentSelector)?void 0:a.componentUid)?"#".concat(r.componentSelector.componentUid):"",z=n.A.findUrl(i,(null==(u=r.url)?void 0:u.id)||"",(null==(d=r.url)?void 0:d.cached_url)||""),K=(null==(p=r.asset)?void 0:p.filename)||"",$=!((null==(h=r.url)?void 0:h.id)||W),G=(null==(m=r.url)?void 0:m.linktype)==="story"&&W?r.url.id?z+W:W:(null==(f=r.url)?void 0:f.url)||(null==(g=r.url)?void 0:g.id)?z:(null==(y=r.asset)?void 0:y.filename)?K:void 0,J=(null==(v=r.url)?void 0:v.linktype)==="story"&&W?r.url.id?n.A.findEnglishUrl(i,r.url.id,(null==(_=r.url)?void 0:_.cached_url)||"")+W:W:(null==(b=r.url)?void 0:b.url)||(null==(S=r.url)?void 0:S.id)?n.A.findEnglishUrl(i,(null==(w=r.url)?void 0:w.id)||"",(null==(C=r.url)?void 0:C.cached_url)||""):(null==(E=r.asset)?void 0:E.filename)?K:void 0,Z=G&&($?G:o.getFormattedUrl(G))||void 0,Q=J&&($?J:o.getFormattedUrl(J))||void 0,X=!!((null==(A=r.url)||null==(k=A.url)?void 0:k.startsWith("tel:"))||(null==(I=r.url)||null==(P=I.cached_url)?void 0:P.startsWith("tel:")));(null!=(U=null==e||null==(T=e.video)?void 0:T.length)?U:0)>0?q="video":X?q="click2call":(null==(O=r.asset)?void 0:O.filename)?q="download":W?q="anchor":"webformOverlay"===r.target?q="webform":"_overlay"===r.target||"contactOverlay"===r.target||"chat"===r.target||"voucher"===r.target?q="overlay":(null==(D=r.url)?void 0:D.linktype)==="url"?q="link-ext":(null==(R=r.url)?void 0:R.linktype)==="story"&&(q="link-int");let ee=null==(M=e.contentBlok)?void 0:M[0],et=(null!=(B=null==(N=e.video)?void 0:N.length)?B:0)>0?null==(x=e.video)?void 0:x[0]:void 0;return et?"storyblok"===et.source?(Y=et.title||(null==(F=et.storyBlokAsset)?void 0:F.title)||(null==(j=et.storyBlokAsset)||null==(L=j.filename)?void 0:L.split("/").pop())||void 0,H=(null==(V=et.storyBlokAsset)?void 0:V.filename)||void 0):"youtube"===et.source&&et.videoId?(Y
1=et.title||et.videoId||void 0,H="youtube|".concat(et.videoId)):"vimeo"===et.source&&et.videoId&&(Y=et.title||et.videoId||void 0,H="vimeo|".concat(et.videoId)):{asset_name:Y,asset_url:H}=c(e),{variant:s(e),asset_name:Y,asset_url:H,position:t+1,headline:(null==ee?void 0:ee.title)||void 0,subheadline:l(null==ee?void 0:ee.badge,null==ee?void 0:ee.description),campaign_name:(null==ee?void 0:ee.campaignName)||void 0,target_type:q,click_text:r.title||void 0,link_url:Z,unified_link_url:Q}}},77785:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var i in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},78121:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},78730:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var i=r(1906),n=r(81872),a=r(40709),o=r(81237),s=r(35773),l=r(77626),c=r(31174),u=r(36924),d=r(39151),p=r(89665),h=r(57573),m=r(68678);class f{constructor(){var e=this;this.trackEvent=(e,t)=>{window.dataLayer=window.dataLayer||[],t&&window.dataLayer.push({ecommerce:null}),window.dataLayer.push(e)},this.getProductType=e=>"mobileBB"==e?"Mobile Broadband":"connectivity"==e||"internet"==e?"Internet":"tvAp
1p"==e||"tvPublic"==e?"TV":"Mobile",this.trackBeginCheckOutEvent=(e,t,r,i,n)=>{let a={event:"begin_checkout",event_name:"begin_checkout",component:t,funnel_step:(0,o.hm)(n),cart_id:i||"",ecommerce:{currency:"CHF",value:r||l.kN.calculateTotalValue(e)||0,items:e}};this.trackEvent(a,!0)},this.trackCartBeginCheckoutEvent=(e,t,r,i)=>{var n,a;let o=this.createProductEcommItems(e.items,t,r,!0,e.selectedAddons,null==(a=e.items)||null==(n=a[0])?void 0:n.isNoMinContract,e.tvPublic);this.trackBeginCheckOutEvent(o.map(e=>{let{additionalDiscount:t,...r}=e;return r}),i)},this.trackBundleBeginCheckoutEvent=(e,t,r,i)=>{let n=this.createBundleProductEcommItems(e,t,r);this.trackBeginCheckOutEvent(n.map(e=>{let{additionalDiscount:t,...r}=e;return r}),i)},this.trackCartPurchaseEvent=(e,t,r)=>{if(e){var n,a,s;let c=this.createProductEcommItems(e.items,t.item_list_id,t.item_list_name,!0,null==e?void 0:e.selectedAddons,null==(a=e.items)||null==(n=a[0])?void 0:n.isNoMinContract,e.tvPublic),u=i.A.getCartPriceBreakdown(e,e.activationFee||"0"),d=l.kN.calcPriceForAnalytics(c,u.totalOnetimeCost);null==(s=e.monthlyCostItems)||s.forEach(e=>{d.totalTransactionValue+=(0,o.fE)(e.price||"0")}),this.trackPurchaseEvent(c.map(e=>{let{additionalDiscount:t,...r}=e;return r}),{...t,total_recurring_price:u.totalCost,total_onetime_price:u.totalOnetimeCost,total_contract_duration:d.contractDuration.toString(),total_transactional_value:d.totalValue,userData:r})}},this.trackBasketBeginCheckoutEvent=(e,t,r,i)=>{if(e){let n=e.isDeviceSummaryFlow?e.deviceBasket:e.basketProducts,a=this.createProductEcommItems(n,t,r);this.trackBeginCheckOutEvent(a.map(e=>{let{additionalDiscount:t,...r}=e;return r}),i)}},this.manualTrackBasketBeginCheckoutEvent=(e,t,r,i)=>{if(e){let n=this.manualcreateProductEcommItems(e,t,r);this.trackBeginCheckOutEvent(n.map(e=>{let{additionalDiscount:t,...r}=e;return r}),i)}},this.trackBasketPurchaseEvent=(e,t,r)=>{if(e){let i=this.calculateTotalMultiBasketCost(e),n=e.isDeviceSummaryFlow?e.deviceBasket:e.basketProducts,a=this.createProductEcommItems(n,t.item_list_id,t.item_list_name),o=l.kN.calcPriceForAnalytics(a,i.totalOneTimeCost);this.trackPurchaseEvent(a.map(e=>{let{additionalDiscount:t,...r}=e;return r}),{...t,total_recurring_price:i.totalMonthlyCost,total_onetime_price:i.totalOneTimeCost,total_contract_duration:o.contractDuration.toString(),total_transactional_value:o.totalValue,userData:r})}},this.trackManualCheckoutPurchaseEvent=(e,t,r)=>{if(e){let i=n.A.calculateManualCheckoutTotalCost(e.manualCheckoutCartDetails),a=e.manualCheckoutCartDetails,o=this.manualcreateProductEcommItems(a,t.item_list_id,t.item_list_name),s=l.kN.calcPriceForAnalytics(o,i.totalOneTimeCost);this.trackPurchaseEvent(o.map(e=>{let{additionalDiscount:t,...r}=e;return r}),{...t,total_recurring_price:i.totalMonthlyCost,total_onetime_price:i.totalOneTimeCost,total_contract_duration:s.contractDuration.toString(),total_transactional_value:s.totalValue,userData:r})}},this.trackBundlePurchaseEvent=(e,t,r)=>{if(e){let i=this.calculateTotalBundleCost(e),n=e.bundleCartItems,a=this.createBundleProductEcommItems(n,t.item_list_id,t.item_list_name),o=l.kN.calcPriceForAnalytics(a,i.totalOneTimeBundleCost);this.trackPurchaseEvent(a.map(e=>{let{additionalDiscount:t,...r}=e;return r}),{...t,total_recurring_price:i.totalMonthlyDerivedPrice?i.totalMonthlyDerivedPrice:i.totalMontlyListPrice,total_onetime_price:i.totalOneTimeBundleCost,total_contract_duration:o.contractDuration.toString(),total_transactional_value:o.totalValue,userData:r})}},this.trackAiAssistantPurchaseEvent=(e,t,r,i)=>{if(e&&e.aiAssistantCartDetails){let{ecommerceItems:n,totalRecurringPrice:a,maxContractDuration:o}=this.createAiEcommItems(e,r),s=n.reduce((e,t)=>e+(t.price||0)*(t.quantity||1),0);this.trackPurchaseEvent(n,{...t,id:e.cartId,total_recurring_price:a,total_onetime_price:0,total_contract_duration:o,total_transactional_value:s,userData:i})}else{var n;console.warn("â ï¸ AI Assistant purchase event NOT fired - cart check failed:",{hasCart:!!e,hasAiCartDetails:!!(null==e?void 0:e.aiAssistantCartDetails),cartDetailsLength:null==e||null==(n=e.aiAssistantCartDetails)?void 0:n.length})}},this.trackAiAssistantBeginCheckoutEvent=(e,t,r)=>{var i;if(null==e||null==(i=e.aiAssistantCartDetails)?void 0:i.length){let{ecommerceItems:i}=this.createAiEcommItems(e,r),n=null==i?void 0:i.reduce((e,t)=>
1e+(t.price||0)*(t.quantity||1),0);this.trackBeginCheckOutEvent(i,t,n,e.cartId||"")}},this.createAiEcommItemsFromCartDetails=e=>e.map(e=>l.kN.buildAiAssistantEcommerceItem(e,!!e.isSunriseCustomerToggle)),this.trackAiAssistantViewCartEvent=(e,t)=>{var r;if(null==e||null==(r=e.aiAssistantCartDetails)?void 0:r.length){let r=this.createAiEcommItemsFromCartDetails(e.aiAssistantCartDetails),i=r.reduce((e,t)=>e+(t.price||0)*(t.quantity||1),0);this.eshopViewCartEvent(r,t,i,e.cartId)}},this.trackIOTCartBeginCheckoutEvent=(e,t,r,i)=>{let n=this.createIOTProductEcommItems(e,t,r);this.trackBeginCheckOutEvent(n,i)},this.trackIOTPurchaseEvent=(e,t,r)=>{if(e){var i,n;let a=this.createIOTProductEcommItems(e,t.item_list_id,t.item_list_name),[s]=[0],[l]=[0];null==e||e.items.forEach(e=>{var t,r,i;s+=(null==(t=e.iotCostBreakDown)?void 0:t.totalDiscountPrice)||(null==(r=e.iotCostBreakDown)?void 0:r.totalMonthlyCost)||0,l+=(null==(i=e.iotCostBreakDown)?void 0:i.totalOneTimeCost)||0}),null==(i=e.monthlyCostItems)||i.forEach(e=>{s+=(0,o.fE)(e.price||"0")}),null==(n=e.oneTimeCostItems)||n.forEach(e=>{l+=(0,o.fE)(e.price||"0")}),this.trackPurchaseEvent(a,{...t,total_recurring_price:s,total_onetime_price:l,total_contract_duration:"1",userData:r})}},this.trackVoiceCartBeginCheckoutEvent=(e,t,r,i)=>{let n=this.createVoiceProductEcommItems(e,t,r);this.trackBeginCheckOutEvent(n,i)},this.trackPurchaseEvent=(e,t)=>{let r={event:"purchase",event_name:"purchase",component:t.component,cart_id:t.id,funnel_step:(0,o.hm)(),ecommerce:{transaction_id:t.orderId,currency:"CHF",value:t.total_transactional_value&&(0,o.nO)(t.total_transactional_value)||l.kN.calculateTotalTransactionalValue(t.total_onetime_price,t.total_recurring_price,"number"==typeof t.total_contract_duration?t.total_contract_duration:parseInt(t.total_contract_duration)),items:e},...t.userData&&{user_data:t.userData}};this.trackEvent(r,!0)},this.trackVoicePurchaseEvent=(e,t,r)=>{if(e){let i=this.createVoiceProductEcommItems(e,t.item_list_id,t.item_list_name);this.trackPurchaseEvent(i,{...t,total_recurring_price:a.A.calculateTotalMonthlyPrice(e),total_onetime_price:a.A.calculateTotalUpfrontPrice(e),total_contract_duration:"1",userData:r})}},this.viewItemEvent=(e,t,r,i,n)=>{let a={event:"view_item",event_name:"view_item",component:r,...void 0!==t&&{selection:t},...(null==n?void 0:n.funnelStep)!==void 0?{funnel_step:n.funnelStep}:void 0!==t?{funnel_step:(0,o.hm)()}:{},...(null==n?void 0:n.tabName)!==void 0&&{tab_name:n.tabName},...(null==n?void 0:n.tabIndex)!==void 0&&{tab_index:n.tabIndex},ecommerce:{currency:"CHF",value:i,items:e}};this.trackEvent(a,!0)},this.viewItemListEvent=(e,t,r,i)=>{this.trackEvent({event:"view_item_list",event_name:"view_item_list",component:i,ecommerce:{item_list_id:t,item_list_name:r,items:e}},!0)},this.addToCartEvent=(e,t,r,i,n,a)=>{let s={event:a?"view_cart":"add_to_cart",event_name:a?"view_cart":"add_to_cart",component:r,...void 0!==t&&{selection:t},cart_id:n,...void 0!==t&&{funnel_step:(0,o.hm)()},ecommerce:{currency:"CHF",value:i||l.kN.calculateTotalValue(e),items:e}};this.trackEvent(s,!0)},this.selectItemEvent=(e,t,r,i)=>{let n={event:"select_item",event_name:"select_item",component:r,selection:t,funnel_step:(0,o.hm)(),ecommerce:{currency:"CHF",value:i||l.kN.calculateTotalValue(e),items:e}};this.trackEvent(n,!0)},this.removeFromCartItemEvent=(e,t,r,i,n)=>{let a={event:"remove_from_cart",event_name:"remove_from_cart",component:r,selection:t,cart_id:n,funnel_step:(0,o.hm)(),ecommerce:{currency:"CHF",value:i||l.kN.calculateTotalValue(e),items:e}};this.trackEvent(a,!0)},this.checkOutFormStepEvent=(e,t,r)=>{let i=this.calculateCartValue(t);this.trackEvent({event:"gaEvent",event_name:"checkout_form_step",component:e,currency:"CHF",value:i,step_name:r})},this.trackOrderButtonClick=(e,t)=>{let r=this.calculateCartValue(t);this.trackEvent({event:"gaEvent",event_name:"order_button_click",component:e,currency:"CHF",value:r})},this.trackOrderButtonClickGaEvent=e=>{this.trackEvent({event:"gaEvent",event_name:"order_button_click",component:e})},this.viewRemoveCartEvent=(e,t,r,i,n)=>{let a=this.createProductEcommItems(e,t,r),o={event:n?"remove_from_cart":"view_cart",event_name:n?"remove_from_cart":"view_cart",component:i,ecommerce:{currency:"CHF",value:l.kN.calculateTotalValue(a),items:a.map(e=>{let{additionalDiscount:t,...r}=e;return r})}};this.trackEvent(o,!0)},this.manualViewRemoveCartEvent=(e,t,r,i,n)=>{let a=this.manualcreateProductEcommItems(e,t,r),o={event:n?"remove_from_cart":"view_cart",event_name:n?"remove_from_cart":"view_cart",component:i,ecommerce:{currency:"CHF",value:l.kN.calculateTotalValue(a),items:a.map(e=>{let{additionalDiscount:t,...r}=e;return r})}};this.trackEvent(o,!0)},this.viewRemoveBundleProduct=(e,t,r,i,n)=>{let a=this.createBundleProductEcommItems(e,t,r),o={event:n?"remove_from_cart":"view_cart",event_name:n?"remove_from_cart":"view_cart",component:i,ecommerce:{currency:"CHF",value:l.kN.calculateTotalValue(a),items:a.map(e=>{let{additionalDiscount:t,...r}=e;return r})}};this.trackEvent(o,!0)},this.trackIncreaseDecreaseEvent=(e,t,r,i,n,a)=>{this.trackEvent({event:"gaEvent",event_name:"add"==i?"increase_cart":"decrease_cart",component:n,item_id:r,item_name:t,price:e,remaining:a})},this.trackMainNavigationEvent=(e,t,r,i)=>{let n=!e.id,a=n&&(null==e?void 0:e.cached_url)||l.kN.getFormattedUrl(c.A.findEnglishUrl(i,e.id,e.cached_url)),o=n&&(null==e?void 0:e.cached_url)||l.kN.getFormattedUrl(c.A.findUrl(i,e.id,e.cached_url));this.trackEvent({event:"gaEvent",event_name:"mainnavigation_click",component:r,unified_link_url:a,link_url:o,click_text:t}),this.trackLinkClickEvents(a,o,r,t)},this.trackSubNavigationClick=(e,t,r,i,n)=>{let a=!r.id,o=a&&(null==r?void 0:r.cached_url)||l.kN.getFormattedUrl(c.A.findEnglishUrl(e,r.id,r.cached_url)),s=a&&(null==r?void 0:r.cached_url)||l.kN.getFormattedUrl(c.A.findUrl(e,r.id,r.cached_url));this.trackEvent({event:"gaEvent",event_name:"subnavigation_click",component:i,unified_link_url:o,link_url:s,click_text:t,headline:n||""}),this.trackLinkClickEvents(o,s,i,t)},this.trackFileDownloadEvent=(e,t)=>
1{var r,i;let n=(null==(r=e.split("/"))?void 0:r.pop())||"",a=(null==(i=n.split("."))?void 0:i.pop())||"";this.trackEvent({event:"gaEvent",event_name:"file_download",component:t,file_extension:a,file_name:n})},this.trackContactUsClickEvents=(e,t,r,i,n,a,o)=>{let s={event:"gaEvent",event_name:t,component:e};s=(""===r||r)&&{...s,click_text:r}||s,s=(""===i||i)&&{...s,unified_link_url:i}||s,s=(""===n||n)&&{...s,link_url:n}||s,s=(""===a||a)&&{...s,unified_overlay_launch_url:a}||s,s=(""===o||o)&&{...s,overlay_launch_url:o}||s,this.trackEvent(s)},this.trackContactFormEvents=(e,t,r,i,n,a,o,s,c)=>{let u={event:"gaEvent",event_name:t,component:e,form_name:r,unified_overlay_launch_url:i};u=(""===n||n)&&{...u,message_type:n}||u,u=(""===a||a)&&{...u,error_type:a}||u,u=(""===s||s)&&{...u,number_of_employees:s}||u,u=(""===c||c)&&{...u,overlay_launch_url:c}||u,u=o&&{...u,time:l.kN.getTimeDuration(o)}||u,this.trackEvent(u)},this.trackLinkClickEvents=(e,t,r,i,n)=>{let a={event:"gaEvent",event_name:"link_click",component:r,unified_link_url:e,link_url:t,click_text:i||"",funnel_step:n||s.q.WEBPAGE};this.trackEvent(a),l.kN.isValidExtension(t)&&g.trackFileDownloadEvent(t,r),(e.startsWith("tel:")||t.startsWith("tel:"))&&g.trackContactUsClickEvents(r,"contact_saleshotline_click",i,e,t);let[o]=[d.A.getSessionStorageItem("storefinder_urls")];o||p.A.getDataSourceOptions("storefinder-url","en",e=>{var t,r,i,n;(null==e||null==(t=e.data)?void 0:t.datasource_entries)&&d.A.setSessionStorageItem("storefinder_urls",JSON.stringify(null==e||null==(n=e.data)||null==(i=n.datasource_entries)||null==(r=i.map(e=>e.value))?void 0:r.join(", "))),o=d.A.getSessionStorageItem("storefinder_urls")}),!(""===o||["/en/","/it/","/de/","/fr/"].includes(t))&&t&&o.includes(t)&&g.trackContactUsClickEvents(r,"storefinder_click",void 0,e,t)},this.calculateCartValue=e=>{let[t]=[0];return"basket"===e?t=n.A.getBasketcartValue():"checkout"===e?t=i.A.getCartValue():"iotShoppingCart"===e?t=u.A.getIotCartValue():"smartVoice"===e&&(t=a.A.getSmartVoiceCartValue()),t},this.calculateTotalMultiBasketCost=e=>{if(e.isDeviceSummaryFlow)return n.A.calculateMultiDeviceTotalCost(e);{let e=n.A.getBasketPriceBreakdown();return n.A.calculateTotalCost(e)}},this.calculateTotalBundleCost=e=>m.A.getTotalBundleCost(e.bundleCartItems),this.createProductEcommItems=(e,t,r,i,n,a,o)=>{let s=[],[c]=[0];return e.map(e=>{var o;c+=1,s.push({price:l.kN.calcItemPriceforAnalytics(e.price,parseFloat(e.contractDuration||"1"),!e.isNoMinContract&&(e.discountedPrice||0===e.discountedPrice)?e.discountedPrice:void 0,e.promoRunTime&&parseFloat(e.promoRunTime)||void 0),quantity:e.quantity||1,item_link_id:c,item_brand:"sunrise",item_category:e.analyticsCategory||this.getProductType(e.type||"mobile"),item_id:e.id,item_list_id:t,item_list_name:r,item_name:e.title,item_variant:"",promotion_duration:e.contractDuration||"1",additionalDiscount:e.additionalDiscountPrice}),!i&&e.addonsItems&&e.addonsItems.map(i=>{s.push({price:l.kN.calcItemPriceforAnalytics(i.price,parseFloat(e.contractDuration||"1"),!e.isNoMinContract&&(i.promoPrice||0===i.promoPrice)?i.promoPrice:void 0,e.promoRunTime&&parseFloat(e.promoRunTime)||void 0),quantity:i.quantity||1,item_link_id:c,item_brand:"sunrise",item_category:"Others",item_id:i.id,item_list_id:t,item_list_name:r,item_name:i.name,item_variant:"",promotion_duration:e.contractDuration||"1"})}),null==(o=e.multiAddonItems)||o.map(i=>{s.push({price:l.kN.calcItemPriceforAnalytics(i.price,parseFloat(e.contractDuration||"1"),!e.isNoMinContract&&(i.promoPrice||0===i.promoPrice)?i.promoPrice:void 0,e.promoRunTime&&parseFloat(e.promoRunTime)||void 0),quantity:i.quantity||1,item_link_id:c,item_brand:"sunrise",item_category:"Others",item_id:i.id,item_list_id:t,item_list_name:r,item_name:i.name,item_variant:"",promotion_duration:e.contractDuration||"1"})}),i&&(null==n||n.forEach(i=>{i&&s.push({item_id:i.id,item_name:i.name,item_link_id:c,item_brand:"sunrise",item_category:"Others",item_list_id:t,item_list_name:r,price:l.kN.calcItemPriceforAnalytics(i.price,parseFloat(e.contractDuration||"1"),!a&&(i.promoPrice||0===i.promoPrice)?i.promoPrice:void 0,e.promoRunTime&&parseFloat(e.promoRunTime)||void 0),quantity:i.quantity||1,promotion_duration:e.contractDuration||"1",item_variant:i.addonType||""})})),e.deviceItem&&e.deviceItem.map(e=>{var i,n;s.push({price:l.kN.calcItemPriceforAnalytics(e.price,1,e.discountedPrice,1),quantity:e.quantity||1,item_link_id:c,item_brand:"sunrise",item_category:"Device",item_id:e.sapId,item_list_id:t,item_list_name:r,item_name:e.productName,item_variant:"",promotion_duration:e.contractPerio
1d.toString()||"1"}),e.deviceAddoncartitem&&e.deviceAddoncartitem.isInsuranceIncluded&&s.push({price:l.kN.calcItemPriceforAnalytics(e.deviceAddoncartitem.insurancePrice,1,e.deviceAddoncartitem.insuranceDiscountPrice,1),quantity:1,item_link_id:c,item_brand:"sunrise",item_category:"Others",item_id:(null==(i=e.deviceAddoncartitem.deviceAddonComponent)?void 0:i.id)||"",item_list_id:t,item_list_name:r,item_name:e.deviceAddoncartitem.name||(null==(n=e.deviceAddoncartitem.deviceAddonComponent)?void 0:n.name)||"",item_variant:"",promotion_duration:"1"})})}),i&&o&&(c+=1,s.push({price:l.kN.calcItemPriceforAnalytics(o.price,parseFloat(o.contractDuration||"1"),!o.isNoMinContract&&(o.discountedPrice||0===o.discountedPrice)?o.discountedPrice:void 0,o.promoRunTime&&parseFloat(o.promoRunTime)||void 0),quantity:o.quantity||1,item_link_id:c,item_brand:"sunrise",item_category:o.analyticsCategory||"TV",item_id:o.id,item_list_id:t,item_list_name:r,item_name:o.title,item_variant:"",promotion_duration:o.contractDuration||"1",additionalDiscount:o.additionalDiscountPrice}),o.addonsItems&&o.addonsItems.map(e=>{s.push({item_id:e.id,item_name:e.name,item_link_id:c,item_brand:"sunrise",item_category:"Others",item_list_id:t,item_list_name:r,price:l.kN.calcItemPriceforAnalytics(e.price,parseFloat(o.contractDuration||"1"),!a&&(e.promoPrice||0===e.promoPrice)?e.promoPrice:void 0,o.promoRunTime&&parseFloat(o.promoRunTime)||void 0),quantity:e.quantity||1,promotion_duration:o.contractDuration||"1",item_variant:e.addonType||""})})),s},this.manualcreateProductEcommItems=(e,t,r)=>{let i=[],[n]=[0];return e.map(e=>{var a;n+=1,null==(a=e.subscriptionDetails)||a.map(a=>{var o,s,c,u,d,p,h,m,f,g,y;i.push({price:l.kN.calcItemPriceforAnalytics((null==(o=a.itemCost)?void 0:o.itemListPrice)||0,parseFloat((null==(s=a.itemCost)?void 0:s.contractDuration)||"1"),(null==(c=a.itemCost)?void 0:c.itemPrice)?null==(u=a.itemCost)?void 0:u.itemPrice:void 0,(null==(d=a.itemCost)?void 0:d.promoDuration)&&parseFloat(null==(p=a.itemCost)?void 0:p.promoDuration)||void 0),quantity:(null==(h=e.subscriptionDetails)?void 0:h.length)||1,item_link_id:n,item_brand:"sunrise",item_category:e.analyticsCategory||this.getProductType(e.type||"mobile"),item_id:e.productName,item_list_id:t,item_list_name:r,item_name:e.productName,item_variant:"",promotion_duration:(null==(m=a.itemCost)?void 0:m.promoDuration)||"1"}),(null==a||null==(g=a.serviceOption)||null==(f=g[0])?void 0:f.isAddedToCart)&&(null==a||null==(y=a.serviceOption)||y.map(e=>{i.push({price:l.kN.calcItemPriceforAnalytics(e.price,parseFloat(e.contractDuration||"1"),e.promoPrice||0===e.promoPrice?e.promoPrice:void 0,e.promoDuration&&parseFloat(e.promoDuration)||void 0),quantity:1,item_link_id:n,item_brand:"sunrise",item_category:"Others",item_id:e.id,item_list_id:t,item_list_name:r,item_name:e.name,item_variant:"",promotion_duration:e.promoDuration||"1"})}))})}),i},this.createBundleProductEcommItems=(e,t,r)=>{let i=[],[n]=[0];return e.map(e=>{n+=1,i.push({price:l.kN.calcItemPriceforAnalytics(parseFloat(e.listPrice),parseFloat(e.contractDuration||"1"),e.discountedPrice?parseFloat(e.discountedPrice):void 0,e.promoDuration&&parseFloat(e.promoDuration)||void 0),quantity:e.quantity||1,item_link_id:n,item_brand:"sunrise",item_category:e.analyticsCategory||"Bundle",item_id:e.id,item_list_id:t,item_list_name:r,item_name:e.name,item_variant:"",promotion_duration:e.contractDuration||"1"})}),i},this.createAiEcommItems=(e,t)=>{let r=0,i=0;return{ecommerceItems:null==e?void 0:e.aiAssistantCartDetails.map(e=>{let n=l.kN.buildAiAssistantEcommerceItem(e,t);return r+=(n.recurring_price||0)*e.quantity,n.contract_duration&&n.contract_duration>i&&(i=n.contract_duration),n}),totalRecurringPrice:r,maxContractDuration:i}},this.createIOTProductEcommItems=(e,t,r)=>{let i=[];return e.items.forEach(e=>{let n=u.A.calculateCostBreakdown(e.basicCost,e.numberOfSubscription,e.simCardType);i.push({item_id:e.id.toString(),item_name:e.title,item_brand:"sunrise",item_category:"IOT",item_list_id:t,item_list_name:r,price:(0,o.nO)((n.totalDiscountPrice||n.totalMonthlyCost||0)/e.numberOfSubscription),quantity:e.numberOfSubscription,item_variant:e.simCardType||"",promotion_duration:"1"})}),i}
1,this.createVoiceProductEcommItems=(e,t,r)=>{let i=[];return e.subscriptionDetails.forEach(e=>{i.push({item_id:e.id.toString(),item_name:e.name,item_brand:"sunrise",item_category:"Others",item_list_id:t,item_list_name:r,price:(0,o.fE)(e.price),quantity:e.quantity,item_variant:"Work Smart Voice Subscription",promotion_duration:"1"})}),e.phNumberDetails.forEach(e=>{i.push({item_id:e.id.toString(),item_name:e.name,item_brand:"sunrise",item_category:"Others",item_list_id:t,item_list_name:r,price:(0,o.fE)(e.upfrontPrice),quantity:e.quantity,item_variant:"Work Smart Voice Phone Numbers",promotion_duration:"1"})}),e.packageDetails.forEach(e=>{i.push({item_id:e.id.toString(),item_name:e.name,item_brand:"sunrise",item_category:"Others",item_list_id:t,item_list_name:r,price:(0,o.fE)(e.upfrontPromoPrice||e.upfrontPrice),quantity:1,item_variant:"Work Smart Voice Onboarding Package",promotion_duration:"1"})}),i},this.trackErrorEvent=e=>{var t,r,i,n,a,o,s,l,c,u;let d=null!=(o=null!=(a=(null==e?void 0:e.data)&&(null==e||null==(t=e.data)?void 0:t.code))?a:null==e?void 0:e.status)?o:"",p=null!=(l=null!=(s=(null==e?void 0:e.data)&&(null==e||null==(r=e.data)?void 0:r.message))?s:null==e?void 0:e.statusText)?l:"",h=null!=(c=(null==e?void 0:e.data)&&(null==e||null==(i=e.data)?void 0:i.id))?c:"",m=null!=(u=(null==e?void 0:e.data)&&(null==e||null==(n=e.data)?void 0:n.supplierCode))?u:"";this.trackEvent({event:"gaEvent",event_name:"error_event",message_guid:d,message_reason:"MSA: ".concat(p),message_source:"SBO",message_title:"Api error",message_type:"Error",message_apiinfo:"".concat(h," | AL"),error_origin:"".concat(m)})},this.trackApiErrorEvent=(e,t,r,i)=>{var n,a,s,l,c,u,d,p,m,f;let g=null!=(u=null!=(c=(null==e?void 0:e.data)&&(null==e||null==(n=e.data)?void 0:n.code))?c:null==e?void 0:e.status)?u:"",y=null!=(p=null!=(d=(null==e?void 0:e.data)&&(null==e||null==(a=e.data)?void 0:a.message))?d:null==e?void 0:e.statusText)?p:"",v=null!=(m=(null==e?void 0:e.data)&&(null==e||null==(s=e.data)?void 0:s.id))?m:"",_=null!=(f=(null==e?void 0:e.data)&&(null==e||null==(l=e.data)?void 0:l.supplierCode))?f:"",b=i||h.A.getFEErrorMessage(),S={event:"gaEvent",event_name:"error_event",message_guid:g,message_reason:"".concat(y),message_source:"B2B Eshop",message_title:"Api error",message_type:"Error",message_apiinfo:"".concat(v," | AL"),error_origin:_,message_uniqueID:"",message_frontend:b,headline:"",funnel_step:(0,o.hm)(r),component:t};this.trackEvent(S)},this.trackOverlayEvent=(e,t,r,i,n,a)=>{let s={event:"gaEvent",event_name:n?"overlay_close":"overlay_open",component:e,click_text:t,headline:r||"",subheadline:i||"",funnel_step:a||(0,o.hm)()};this.trackEvent(s)},this.trackAddShippingInfoEvent=(e,t,r,i,n,a)=>{let s={event:"add_shipping_info",event_name:"add_shipping_info",cart_id:t,address_type:r,funnel_step:(0,o.hm)(n),component:i,...a&&{company_info:a},ecommerce:{currency:"CHF",value:l.kN.calculateTotalValue(e),items:e}};this.trackEvent(s,!0)},this.trackNotificationEvent=(e,t,r,i)=>{let n={event:"gaEvent",event_name:"notification",component:e,message_frontend:t,funnel_step:(0,o.hm)(r),headline:i||void 0};this.trackEvent(n)},this.trackTabClickEvent=(e,t,r,i,n)=>{let a={event:"gaEvent",event_name:"tab_click",component:e,click_text:t,headline:r,tab_index:i,funnel_step:(0,o.hm)(n)};this.trackEvent(a)},this.trackctaButtonClickEvent=(e,t,r,i,n,a)=>{let s={event:"gaEvent",event_name:"btn"!==t?"cta_text_click":"cta_button_click",unified_link_url:l.kN.getFormattedUrl(r||""),link_url:l.kN.getFormattedUrl(i||""),click_text:n,headline:"",subheadline:"",component:e,funnel_step:(0,o.hm)(a)};this.trackEvent(s)},this.trackTooltipInteraction=(e,t,r,i)=>{let n={event:"gaEvent",event_name:"tooltip_interaction",component:e,click_text:t,headline:r,funnel_step:(0,o.hm)(i)};g.trackEvent(n)},this.eshopPurchaseEvent=(e,t,r,i,n,a)=>{let s={event:"purchase",event_name:"purchase",cart_id:t,funnel_step:(0,o.hm)(a),component:r,company_info:(0,o.OS)(),order_processing:i?"automatedCheckout":"manualCheckout",ecommerce:{currency:"CHF",value:l.kN.calculateTotalValue(e),transaction_id:t,items:e},...n&&{user_data:n}};this.trackEvent(s,!0)},this.boomPurchaseEvent=function(t,r,i,n){let a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u={event:"purchase",event_name:"purchase",component:r,company_info:(0,o.yW)(n,a,c),funnel_step:(0,o.hm)(s.q.MANUAL_CHECKOUT),ecommerce:{currency:"CHF",value:l.kN.calculateTotalValue(t),transaction_id:i,items:t}};e.trackEvent(u,!0)},this.trackCartAbandonedEvent=(e,t)=>
1{let r={event:"gaEvent",event_name:"cart_abandoned",cart_id:d.A.getSessionStorageValue("b2b-eshop-cartid"),funnel_step:(0,o.hm)(e),component:t||""};this.trackEvent(r)},this.trackLogoutEvent=(e,t,r)=>{let i={event:"gaEvent",event_name:"logout",component:t,click_text:e,funnel_step:r||s.q.WEBPAGE};this.trackEvent(i)},this.trackEshopOrderButtonClick=(e,t)=>{let r={event:"gaEvent",event_name:"order_button_click",component:e,funnel_step:(0,o.hm)(t)};this.trackEvent(r)},this.trackChangeNumberEvent=(e,t,r)=>{let i={event:"gaEvent",event_name:"change_number_click",click_text:e,headline:t,funnel_step:(0,o.hm)(),component:r};this.trackEvent(i)},this.trackMoreNumbersEvent=(e,t,r)=>{let i={event:"gaEvent",event_name:"more_numbers_click",click_text:e,headline:t,funnel_step:(0,o.hm)(),component:r};this.trackEvent(i)},this.eshopViewCartEvent=(e,t,r,i)=>{let n={event:"view_cart",event_name:"view_cart",cart_id:i,funnel_step:(0,o.hm)(),component:t,ecommerce:{currency:"CHF",value:r||l.kN.calculateTotalValue(e),items:e}};this.trackEvent(n,!0)},this.trackDeleteOrEditEvent=(e,t,r)=>{let i={event:"gaEvent",event_name:r?"delete_button_click":"edit_button_click",component:e,headline:t||"",funnel_step:(0,o.hm)()};this.trackEvent(i)},this.trackIctBasketEvent=(e,t,r)=>{var i;let n=null!=(i=null==e?void 0:e.ictProductData)?i:[];if(!n||0===n.length)return;let a=n.map(e=>({item_id:e.productId,item_name:e.productName,item_brand:"sunrise",item_category:"Ict",item_list_id:t.item_list_id,item_list_name:t.item_list_name,price:Number(e.oneTimePrice||0),quantity:1,item_variant:"",promotion_duration:""})),s=a.reduce((e,t)=>e+t.price,0);if("purchase"===r.trim()){let e={event:"purchase",event_name:"purchase",component:t.component,funnel_step:(0,o.hm)(),ecommerce:{transaction_id:t.orderId,currency:"CHF",value:s,items:a}};this.trackEvent(e,!0)}else{let e={event:"begin_checkout",event_name:"begin_checkout",component:t.component,funnel_step:(0,o.hm)(),ecommerce:{currency:"CHF",value:s,items:a},cart_id:""};this.trackEvent(e,!0)}},this.trackContactFormValidationError=(e,t,r,i,n)=>{let a={event:"gaEvent",event_name:"contact_form_validation_error",component:e,message_frontend:t,message_source:r,headline:i,step_name:n,funnel_step:(0,o.hm)()};this.trackEvent(a)},this.trackCheckoutFormStep=(e,t)=>{let r={event:"gaEvent",event_name:"checkout_form_step",component:e,step_name:t,funnel_step:(0,o.hm)()};this.trackEvent(r)},this.trackFunnelStepViewEvent=e=>{let t={event:"gaEvent",event_name:"funnel_step_view",funnel_step:(0,o.hm)(e)};this.trackEvent(t)},this.trackUserDataEvent=e=>{this.trackEvent({event:"user_data",user_data:e})},this.trackHeroImpressionEvent=e=>{let t={event:"hero_impression",event_name:"hero_impression",variant:e.variant,asset_name:e.asset_name,asset_url:e.asset_url,position:e.position,headline:e.headline,subheadline:e.subheadline,campaign_name:e.campaign_name};this.trackEvent(t)},this.trackHeroClickEvent=e=>{let t={event:"hero_click",event_name:"hero_click",variant:e.variant,asset_name:e.asset_name,asset_url:e.asset_url,position:e.position,headline:e.headline,subheadline:e.subheadline,...e.campaign_name?{campaign_name:e.campaign_name}:{},target_type:e.target_type,click_text:e.click_text,link_url:e.link_url,unified_link_url:e.unified_link_url};this.trackEvent(t)},this.trackSelectProductEvent=function(t,r,i){let n=!(arguments.length>3)||void 0===arguments[3]||arguments[3];e.trackEvent({event:"gaEvent",event_name:n?"select_product":"deselect_product",component:t,item_name_evt:r,item_category_evt:i})},this.trackViewDetailsEvent=(e,t,r,i)=>{this.trackEvent({event:"gaEvent",event_name:"view_item_details",component:e,item_name_evt:t,item_category_evt:r,click_text:i})},this.trackPrimaryTabLoadEvent=(e,t)=>{this.trackEvent({primary_tab_name:e,primary_tab_index:t})},this.trackPrimaryTabClickEvent=(e,t,r,i)=>{this.trackEvent({event:"gaEvent",event_name:"primary_tab_click",component:e,primary_tab_name:t,primary_tab_index:r,headline:i||void 0})},this.trackValidationError=(e,t,r,i)=>{this.trackEvent({event:"gaEvent",event_name:"validation_error",component:e,message_frontend:t,message_source:r,headline:i||void 0})}}}let g=new f,y=g},80426:(e,t,r)=>{"use strict";var i=r(27496);
1e.exports=function(e,t){i.forEach(e,function(r,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[i])})}},80611:(e,t,r)=>{"use strict";var i=r(93023);e.exports=function(e){return i(e)||0===e?e:e<0?-1:1}},81073:(e,t,r)=>{var i="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=i&&n&&"function"==typeof n.get?n.get:null,o=i&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"==typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,f=Object.prototype.toString,g=Function.prototype.toString,y=String.prototype.match,v=String.prototype.slice,_=String.prototype.replace,b=String.prototype.toUpperCase,S=String.prototype.toLowerCase,w=RegExp.prototype.test,C=Array.prototype.concat,E=Array.prototype.join,k=Array.prototype.slice,A=Math.floor,P="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,O="function"==typeof Symbol&&"object"==typeof Symbol.iterator,D="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===O?"object":"symbol")?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,M=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var i=e<0?-A(-e):A(e);if(i!==e){var n=String(i),a=v.call(t,n.length+1);return _.call(n,r,"$&_")+"."+_.call(_.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(t,r,"$&_")}var x=r(42634),U=x.custom,B=H(U)?U:null,F={__proto__:null,double:'"',single:"'"},L={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function j(e,t,r){var i=F[r.quoteStyle||t];return i+e+i}function V(e){return!D||!("object"==typeof e&&(D in e||void 0!==e[D]))}function q(e){return"[object Array]"===K(e)&&V(e)}function Y(e){return"[object RegExp]"===K(e)&&V(e)}function H(e){if(O)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}e.exports=function e(t,i,n,s){var l,f,b,w,A,I=i||{};if(z(I,"quoteStyle")&&!z(F,I.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(z(I,"maxStringLength")&&("number"==typeof I.maxStringLength?I.maxStringLength<0&&I.maxStringLength!==1/0:null!==I.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var U=!z(I,"customInspect")||I.customInspect;if("boolean"!=typeof U&&"symbol"!==U)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(I,"indent")&&null!==I.indent&&" "!==I.indent&&!(parseInt(I.indent,10)===I.indent&&I.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(I,"numericSeparator")&&"boolean"!=typeof I.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var W=I.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var i=t.length-r.maxStringLength;return e(v.call(t,0,r.maxStringLength),r)+("... "+i)+" more character"+(i>1?"s":"")}var n=L[r.quoteStyle||"single"];return n.lastIndex=0,j(_.call(_.call(t,n,"\\$1"),/[\x00-\x1f]/g,G),"single",r)}(t,I);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var et=String(t);return W?N(t,et):et}if("bigint"==typeof t){var er=String(t)+"n";return W?N(t,er):er}var ei=void 0===I.depth?5:I.depth;if(void 0===n&&(n=0),n>=ei&&ei>0&&"object"==typeof t)return q(t)?"[Array]":"[Object]";var en=function(e,t){var r;if(" "===e.indent)r=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=E.call(Array(e.indent+1)," ")}return{base:r,prev:E.call(Array(t+1),r)}}(I,n);if(void 0===s)s=[];else if($(s,t)>=0)return"[Circular]";function ea(t,r,i){if(r&&(s=k.call(s)).push(r),i){var a={depth:I.depth};return z(I,"quoteStyle")&&(a.quoteStyle=I.quoteStyle),e(t,a,n+1,s)}return e(t,I,n+1,s)}if("function"==typeof t&&!Y(t)){var eo=function(e){if(e.name)return e.name;var t=y.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),es=ee(t,ea);
1return"[Function"+(eo?": "+eo:" (anonymous)")+"]"+(es.length>0?" { "+E.call(es,", ")+" }":"")}if(H(t)){var el=O?_.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!=typeof t||O?el:J(el)}if((ec=t)&&"object"==typeof ec&&("undefined"!=typeof HTMLElement&&ec instanceof HTMLElement||"string"==typeof ec.nodeName&&"function"==typeof ec.getAttribute)){for(var ec,eu,ed="<"+S.call(String(t.nodeName)),ep=t.attributes||[],eh=0;eh<ep.length;eh++){ed+=" "+ep[eh].name+"="+j((eu=ep[eh].value,_.call(String(eu),/"/g,""")),"double",I)}return ed+=">",t.childNodes&&t.childNodes.length&&(ed+="..."),ed+="</"+S.call(String(t.nodeName))+">"}if(q(t)){if(0===t.length)return"[]";var em=ee(t,ea);return en&&!function(e){for(var t=0;t<e.length;t++)if($(e[t],"\n")>=0)return!1;return!0}(em)?"["+X(em,en)+"]":"[ "+E.call(em,", ")+" ]"}if("[object Error]"===K(l=t)&&V(l)){var ef=ee(t,ea);return"cause"in Error.prototype||!("cause"in t)||R.call(t,"cause")?0===ef.length?"["+String(t)+"]":"{ ["+String(t)+"] "+E.call(ef,", ")+" }":"{ ["+String(t)+"] "+E.call(C.call("[cause]: "+ea(t.cause),ef),", ")+" }"}if("object"==typeof t&&U){if(B&&"function"==typeof t[B]&&x)return x(t,{depth:ei-n});else if("symbol"!==U&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var eg=[];return o&&o.call(t,function(e,r){eg.push(ea(r,t,!0)+" => "+ea(e,t))}),Q("Map",a.call(t),eg,en)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ey=[];return u&&u.call(t,function(e){ey.push(ea(e,t))}),Q("Set",c.call(t),ey,en)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Z("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Z("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if("[object Number]"===K(f=t)&&V(f))return J(ea(Number(t)));if(function(e){if(!e||"object"!=typeof e||!P)return!1;try{return P.call(e),!0}catch(e){}return!1}(t))return J(ea(P.call(t)));if("[object Boolean]"===K(b=t)&&V(b))return J(m.call(t));if("[object String]"===K(w=t)&&V(w))return J(ea(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!("[object Date]"===K(A=t)&&V(A))&&!Y(t)){var ev=ee(t,ea),e_=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,eb=t instanceof Object?"":"null prototype",eS=!e_&&D&&Object(t)===t&&D in t?v.call(K(t),8,-1):eb?"Object":"",ew=(e_||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eS||eb?"["+E.call(C.call([],eS||[],eb||[]),": ")+"] ":"");return 0===ev.length?ew+"{}":en?ew+"{"+X(ev,en)+"}":ew+"{ "+E.call(ev,", ")+" }"}return String(t)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return W.call(e,t)}function K(e){return f.call(e)}function $(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return -1}function G(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+b.call(t.toString(16))}function J(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function Q(e,t,r,i){return e+" ("+t+") {"+(i?X(r,i):E.call(r,", "))+"}"}function X(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+E.call(e,","+r)+"\n"+t.prev}function ee(e,t){var r,i=q(e),n=[];if(i){n.length=e.length;for(var a=0;a<e.length;a++)n[a]=z(e,a)?t(e[a],e):""}var o="function"==typeof I?I(e):[];if(O){r={};for(var s=0;s<o.length;s++)r["$"+o[s]]=o[s]}for(var l in e)if(z(e,l)&&(!i||String(Number(l))!==l||!(l<e.length)))if(O&&r["$"+l]instanceof Symbol)continue;else w.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e));if("function"==typeof I)for(var c=0;c<o.length;c++)R.call(e,o[c])&&n.push("["+t(o[c])+"]: "+t(e[o[c]],e));return n}}
1,81151:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,i={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}},81237:(e,t,r)=>{"use strict";r.d(t,{KH:()=>T,RS:()=>eS,Bo:()=>S(),mM:()=>en,hB:()=>eo,n4:()=>x,Ut:()=>U,b1:()=>ee,cv:()=>X,OS:()=>es,H7:()=>e_,Me:()=>N,LB:()=>ek,gI:()=>eE,$G:()=>K,SI:()=>et,fE:()=>M,po:()=>ei,S3:()=>O,hm:()=>eb,Z0:()=>$,_u:()=>eu,nO:()=>R,kp:()=>D,CH:()=>G,o3:()=>eg,H3:()=>ec,g2:()=>eA,zk:()=>k,yW:()=>el,xx:()=>q,xl:()=>B,fe:()=>F,yz:()=>W,A9:()=>z,w5:()=>L,Fr:()=>A,zc:()=>V,KV:()=>H,_T:()=>P,CK:()=>j,KG:()=>em,d4:()=>eC,M8:()=>ed,PA:()=>Y,C$:()=>I,u3:()=>Q,Tc:()=>ep,wj:()=>ew,yF:()=>eh,d7:()=>J,sX:()=>er});var i,n=r(39151),a=r(10841),o=r.n(a),s=r(30915),l=r.n(s),c=new Uint8Array(16);let u=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var d=[],p=0;p<256;++p)d.push((p+256).toString(16).substr(1));let h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(d[e[t+0]]+d[e[t+1]]+d[e[t+2]]+d[e[t+3]]+"-"+d[e[t+4]]+d[e[t+5]]+"-"+d[e[t+6]]+d[e[t+7]]+"-"+d[e[t+8]]+d[e[t+9]]+"-"+d[e[t+10]]+d[e[t+11]]+d[e[t+12]]+d[e[t+13]]+d[e[t+14]]+d[e[t+15]]).toLowerCase();if(!("string"==typeof r&&u.test(r)))throw TypeError("Stringified UUID is invalid");return r},m=function(e,t,r){var n=(e=e||{}).random||(e.rng||function(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(c)})();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var a=0;a<16;++a)t[r+a]=n[a];return t}return h(n)};var f=r(93764),g=r(44913),y=r(35773),v=r(39139),_=r(85383),b=r(46856),S=r.n(b),w=r(46348),C=r(71012),E=r(99742);let k=()=>window,A=()=>{let e=k();return!!e&&e.innerWidth<768},P=()=>{let e=k();return!!e&&e.innerWidth<390},I=e=>{let t=document.getElementById(e),r=null==t?void 0:t.offsetTop,[i]=[0];r&&Q(r-Z())},T=(e,t)=>{if(window)return window.addEventListener("resize",e),()=>{t&&window.removeEventListener("resize",e,!1)}},O=e=>(null==e?void 0:e.toString().indexOf("."))==-1?e+".â":(Math.round((parseFloat(e)+Number.EPSILON)*100)/100).toFixed(2).replace(/\.00$/,".â"),D=e=>O(e.toString()),R=e=>parseFloat(e.toFixed(2)),M=e=>parseFloat(parseFloat(e).toFixed(2)),N=(e,t)=>t?e:"/business"+e,x=(e,t)=>{if(e&&e.length>0){let r=e.length,i=e.substring(0,3)+" "+e.substring(3,6)+" "+e.substring(6,8)+" "+e.substring(8,r);return t?"+41 "+i.substring(1):i}return e},U=e=>(null==(e=null==e?void 0:e.replaceAll(/[-.]/g,""))?void 0:e.length)<=3?e:(null==e?void 0:e.length)<=6?"".concat(e.substring(0,3),"-").concat(e.substring(3,6)):(null==e?void 0:e.length)<=9?"".concat(e.substring(0,3),"-").concat(e.substring(3,6),".").concat(e.substring(6,9)):"".concat(e.substring(0,3),"-").concat(e.substring(3,6),".").concat(e.substring(6,9),".").concat(e.substring(9,12)),B=()=>{let e=k();return!!e&&e.innerWidth>1439},F=()=>{let e=k();return!!e&&e.innerWidth>1023},L=()=>{let e=k();return!!e&&e.innerWidth>1023&&e.innerWidth<1440},j=()=>{let e=k();return!!e&&e.innerWidth>767&&e.innerWidth<1024},V=()=>{let e=k();return!!e&&e.innerWidth<1023},q=e=>{let[t]=["//a.storyblok.com/"],[r]=["//s3.amazonaws.com/a.storyblok.com/"];return e?e.replace(t,"".concat(r)):e||""},Y=e=>{let t=Z()+35;Q(e.getBoundingClientRect().top+window.scrollY-t)},H=()=>{var e;return(null!=E.env&&(e="false",1)?e.toLowerCase():void 0)==="false"},W=()=>(null==E.env?void 0:"prod")=="dev",z=()=>!0,K=()=>{let e=window.location.href,t="en";return -1!==e.indexOf("/de/")?t="de":-1!==e.indexOf("/fr/")?t="fr":-1!==e.indexOf("/it/")&&(t="it"),t},$=e=>{let[t]=["English"];return"de"===e?t="German":"fr"===e?t="French":"it"===e&&(t="Italian"),t},G=e=>(e=e.substring(e.indexOf("?")+1),l().parse(e)),J=function(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300;return function(){for(var i=arguments.length,n=Array(i),a=0;a<i;a++)n[a]=arguments[a];clearTimeout(t),t=setTimeout(()=>{e.apply(this,n)},r)}},Z=()=>{let e=document.querySelector("#falconNavigation");return(A()||j())&&(e=document.querySelector("#mobile-navigation")),(null==e?void 0:e.offsetHeight)||0},Q=e=>{window.scroll({top:e,behavior:"smooth"})},X=()=>m(),ee=()=>{let e=Date.now().toString().slice(-8),t=Math.floor(1e3*Math.random()).toString().padStart(3,"0");return"SBO".concat(e).concat(t)},et=()=>o()().format("YYYY-MM-DD HH:mm:ss"),er=e=>{let t=e.replaceAll(/[-.\s]/g,"");return/^(CHE)\d{9}$/.test(t)},ei=e=>{let t=new Date(e);return isNaN(t.getTime())?"":new Intl.DateTimeFormat("de-CH",{timeZone:"Europe/Zurich",day:"2-digit",month:"2-digit",year:"numeric"}).format(t)},en=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Europe/Zurich";if(!e)return"";let r=e.match(/^(\d{1,2})[./](\d{1,2})[./](\d{4})$/);if(!r)return"";let i=parseInt(r[1],10),n=parseInt(r[2],10)-1,a=parseInt(r[3],10),o=new Date(a,n,i,12,0,0,0);if(o.getDate()!==i||o.getMonth()!==n||o.getFullYear()!==a||isNaN(o.getTime()))return"";try{let e=new Intl.DateTimeFormat("en-CA",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour12:!1}).formatToParts(o),r={};
1e.forEach(e=>{r[e.type]=e.value});let i="".concat(r.year,"-").concat(r.month,"-").concat(r.day,"T00:00:00"),n=ea(o,t);return"".concat(i).concat(n)}catch(e){return console.error("Error formatting date to ISO:",e),""}},ea=(e,t)=>{if("UTC"===t)return"+00:00";try{let r=new Date(e.toLocaleString("en-US",{timeZone:"UTC"})),i=(new Date(e.toLocaleString("en-US",{timeZone:t})).getTime()-r.getTime())/6e4,n=Math.abs(i),a=Math.floor(n/60);return"".concat(i>=0?"+":"-").concat(a.toString().padStart(2,"0"),":").concat((n%60).toString().padStart(2,"0"))}catch(e){return"+01:00"}},eo=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Europe/Zurich";if(!e)return"";try{let r=new Date(e);if(isNaN(r.getTime()))return"";return new Intl.DateTimeFormat("de-CH",{timeZone:t,day:"2-digit",month:"2-digit",year:"numeric"}).format(r)}catch(e){return console.error("Error formatting ISO date to European format:",e),""}},es=()=>{var e,t;let r=null==(e=v.i.getState().baseEshopCheckoutReducer)?void 0:e.companyDetails,i=null==(t=v.i.getState().eshopCartReducer)?void 0:t.cartData,n=v.i.getState().eshopAddressReducer;return[(null==r?void 0:r.numberOfEmployees)?10>parseInt(r.numberOfEmployees)?"<10":"10+":"",(null==r?void 0:r.isZefix)?"zefix":"nozefix",(null==r?void 0:r.isNoUid)?"nouid":"uid",(null==r?void 0:r.legalFormId)?"legalcode=".concat(r.legalFormId):"","signature=".concat((null==i?void 0:i.hasSignatureRights)?"true":"false"),"billing=".concat((null==n?void 0:n.hasDifferentBillingAddress)?"other":"same"),"shipping=".concat((null==n?void 0:n.hasDifferentShippingAddress)?"other":"same")].filter(Boolean).join("|")},el=(e,t,r)=>[(null==e?void 0:e.numberOfEmployees)?10>parseInt(e.numberOfEmployees)?"<10":"10+":"",(null==e?void 0:e.isZefix)?"zefix":"nozefix",(null==e?void 0:e.isNoUid)?"nouid":"uid","billing=same","shipping=".concat(r?"other":"same"),"sitesurvey=".concat(t?"true":"false")].filter(Boolean).join("|"),ec=e=>{var t;let r=!1,i=!1,n=e=>(e===w.aw.ESIM?r=!0:e&&""!==e&&(i=!0),r&&i);return null==(t=e.items)||t.some(e=>{var t;return null==(t=e.subscriptions)?void 0:t.some(e=>{var t,r,i;return!!((null==(t=e.simDetails)?void 0:t.simType)&&n(e.simDetails.simType)||(null==(r=e.serviceOptions)?void 0:r.some(e=>{var t;return null==(t=e.extraSimDetails)?void 0:t.some(e=>e.simType&&n(e.simType))})))||(null==(i=e.dataPostPaidOffers)?void 0:i.some(e=>{var t;return null==(t=e.extraSimDetails)?void 0:t.some(e=>e.simType&&n(e.simType))}))})}),{eSimPresent:r,simCardPresent:i}},eu=(e,t)=>{let r=ec(e||{}),i=[];return r.eSimPresent&&i.push(eh(t,w.aw.ESIM)),r.simCardPresent&&i.push(eh(t,w.aw.SIMCARD)),i.join(" & ")},ed=e=>e.derivedPrice?e.derivedPrice:e.listPrice,ep=(e,t)=>{let r={};return e.forEach(e=>{r[e.name]=e.dimension_value||e.value}),sessionStorage.setItem(t,JSON.stringify({value:r})),r},eh=(e,t)=>e&&e[t]?e[t]:"sbconstant.".concat(t),em=e=>"string"!=typeof e?"Input must be a string.":e.replace(/\./g,""),ef=async e=>{if(!e)return"";try{let t=new TextEncoder().encode(e),r=await window.crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(r)).map(e=>e.toString(16).padStart(2,"0")).join("")}catch(e){return console.log("SHA-256 hashing failed:",e),""}},eg=async e=>{if(!e)return"";let t=e.trim().toLowerCase().replace(/\s+/g,""),r=(null==t?void 0:t.split("@"))||[];return(null==r?void 0:r.length)===2&&(r[0]=r[0].replace(/\./g,""),t=r.join("@")),ef(t)},ey=async e=>{if(!e)return"";e.startsWith("+")||(e="+41"+e);let t=e.match(/^\+(\d{1,2})?(.*)$/);if(t){let r=t[1],i=t[2];i.startsWith("0")&&(i=i.substring(1)),e="+".concat(r).concat(i)}return ef(e)},ev=async e=>e?ef(e.trim().toLowerCase().replace(/\s+/g,"")):"",e_=()=>{let e=n.A.getLocalStorageItem("oidc.user:".concat((0,f.Vh)(),":").concat((0,f.Ur)()))||"";return e?g.KJ.fromStorageString(e):null},eb=e=>{var t,r,i,n;if(e)return e;let a=null==(t=v.i.getState().progressIndicatorReducer)?void 0:t.isNewCustomerSteps,o=null==(r=v.i.getState().authReducer)?void 0:r.siteDetails,s=Array.isArray(o)&&o.length>0,l=a?null==(i=v.i.getState().progressIndicatorReducer)?void 0:i.activeHorizontalStep:null==(n=v.i.getState().progressIndicatorReducer)?void 0:n.activeStep,c={[C.K1.SETUP]:y.q.SETUP,[C.K1.COMPANY_DETAILS
1]:y.q.COMPANY_DETAILS,[C.K1.PERSONAL_DETAILS]:y.q.PERSONAL_DETAILS,[C.K1.REVIEW_CONFIRM]:y.q.REVIEW_SUMMARY},u={[_.A.AUTHENTICATION]:y.q.AUTH_CUSTOMER_TYPE,[_.A.CART]:y.q.CART,[_.A.DELIVERY]:y.q.DELIVERY_DETAILS,[_.A.CONFIRMATION]:y.q.SUMMARY},d={[C.K1.SETUP]:y.q.CART,[C.K1.REVIEW_CONFIRM]:y.q.SUMMARY};return(a&&s?d:a?c:u)[l]||y.q.WEBPAGE},eS=e=>{e.forEach(e=>{let t=document.querySelectorAll(".".concat(e)),r=0;t.forEach(e=>{e.style.minHeight="",e.offsetHeight>r&&(r=e.offsetHeight)}),t.forEach(e=>{e.style.minHeight="".concat(r,"px")})})},ew=(e,t)=>{let r=document.querySelectorAll(".".concat(e)),i=0;r.forEach(e=>{e.style.minHeight="",e.offsetHeight>i&&(i=e.offsetHeight)}),document.querySelectorAll(".".concat(t)).forEach(e=>{e.style.maxHeight="".concat(i,"px")})},eC=e=>e?e.replace(/\s+/g,""):e,eE=e=>{let t=JSON.parse(n.A.getSessionStorageItem("country_codes")||"{}");return t&&t[e||"Switzerland"]||"CH"},ek=e=>{for(let[t,r]of Object.entries(JSON.parse(n.A.getSessionStorageItem("cantons")||"{}")))if(e&&r.includes(e))return t||"";return""},eA=async(e,t)=>{var r,i,n,a;let o="",s="",l="",c="",u="",d="",p="";if("webform"===t)null==e||null==(r=e.items)||r.forEach(e=>{var t;let r=e.label.toLowerCase(),i=(null==(t=e.value)?void 0:t.toString())||"";r.includes("email*")||r.includes("email address")?o=i:r.includes("phone*")||r.includes("mobile number")?s=i:r.includes("surname*")||r.includes("lastname")?c=i:r.includes("name*")?l=i:r.includes("city")?u=i:r.includes("zip")||r.includes("post")?p=i:r.includes("street")&&(d=i)});else if("eshopCheckout"===t){let t=null==e?void 0:e.contactDetails,r=null==e?void 0:e.deliveryAddress,i=null==e?void 0:e.companyDetails;o=(null==t?void 0:t.email)||"",s=(null==t?void 0:t.phoneNumber)||"",l=(null==t?void 0:t.firstName)||"",c=(null==t?void 0:t.lastName)||"",u=(null==i?void 0:i.city)||(null==r?void 0:r.city)||void 0,p=(null==i?void 0:i.postCode)||(null==r?void 0:r.postCode)||void 0,d=(null==i?void 0:i.streetName)||(null==r?void 0:r.streetName)||void 0}else if("internetCheckout"==t||"multiCheckout"===t||"IOTCheckout"===t){let r="internetCheckout"==t?null==e?void 0:e.customer:"multiCheckout"==t?null==e?void 0:e.personalDetails:"IOTCheckout"==t?null==e?void 0:e.contactPerson:"",h="internetCheckout"==t?null==e?void 0:e.company:"multiCheckout"==t?null==e?void 0:e.companyDetails:"IOTCheckout"==t?null==e?void 0:e.company:"";o=(null==r?void 0:r.email)||"",s=(null==r?void 0:r.phone)||(null==r?void 0:r.phoneNumber)||"",l=(null==r?void 0:r.firstName)||"",c=(null==r?void 0:r.lastName)||"",u=(null==h||null==(i=h.address)?void 0:i.city)||void 0,p=(null==h||null==(n=h.address)?void 0:n.zip)||void 0,d=(null==h||null==(a=h.address)?void 0:a.street)||void 0}let[h,m,f,g]=await Promise.all([eg(o),ey(s),ev(l),ev(c)]);return{sha256_email_address:h,sha256_phone_number:m,address:{sha256_first_name:f,sha256_last_name:g,city:u,region:d,postal_code:p,country:"Switzerland"}}}},81370:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),r=t[0],i=t[1];return(r+i)*3/4-i},t.toByteArray=function(e){var t,r,a=l(e),o=a[0],s=a[1],c=new n((o+s)*3/4-s),u=0,d=s>0?o-4:o;for(r=0;r<d;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,c[u++]=255&t),1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,i=e.length,n=i%3,a=[],o=0,s=i-n;o<s;o+=16383)a.push(function(e,t,i){for(var n,a=[],o=t;o<i;o+=3)n=(e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(255&e[o+2]),a.push(r[n>>18&63]+r[n>>12&63]+r[n>>6&63]+r[63&n]);return a.join("")}(e,o,o+16383>s?s:o+16383));return 1===n?a.push(r[(t=e[i-1])>>2]+r[t<<4&63]+"=="):2===n&&a.push(r[(t=(e[i-2]<<8)+e[i-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),a.join("")};for(var r=[],i=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)r[o]=a[o],i[a.charCodeAt(o)]=o;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var i=r===t?0:4-r%4;return[r,i]}i[45]=62,i[95]=63},81872:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var i=r(39139),n=r(48801),a=r(89665),o=r(48501),s=r(81237),l=r(36756),c=r(39151),u=r(78730),d=r(77626
1),p=r(30683),h=r(46348);class m{constructor(){this.getBasket=()=>i.i.getState().basketReducer,this.getManualBasket=()=>i.i.getState().manualCheckoutReducer,this.getBasketcartValue=()=>{let e=this.getBasket();return e.isDeviceSummaryFlow?this.calculateMultiDeviceTotalCost(e).totalMonthlyCost:f.calculateTotalCost(this.getBasketPriceBreakdown()).totalMonthlyCost},this.getBasketPriceBreakdown=()=>{let e=this.getBasket();if(e&&e.basketProducts){let t=e.basketProducts.some(e=>e.isOverrule),r=e.basketProducts.some(e=>{var t;return!(null==(t=e.multiMobileInfo)?void 0:t.derivedPrice)});return e.basketProducts.map((e,i)=>{let n={activationCost:0,totalCost:0,promotionalSavingsCost:0,totalOnetimeCost:0,totalAddonCost:0,totalAddonUpfrontCost:0,totalMultiAddonCost:0,eshopTotalOneTimeCost:0,totalMMDiscountCost:0,eligibleDiscountType:h.lf.DISCOUNT_BP,totalMonthlyListPrice:0};if(e){var a,o;let s=this.calculateProductCost(e,r,t,i),l=s.price;n.totalCost+=l+n.activationCost,n.eligibleDiscountType=s.showDiscount,n.totalMMDiscountCost=s.discountPrice,n.totalMonthlyListPrice=(n.totalMonthlyListPrice||0)+e.price*(e.quantity||1),n.promotionalSavingsCost+=e.price*e.quantity-l,null==(a=e.addonsItems)||a.forEach(e=>{n.totalAddonCost=e.promoPrice||0===e.promoPrice?e.promoPrice*(e.quantity||0):e.price*(e.quantity||0),n.promotionalSavingsCost+=e.promoPrice&&e.promoPrice||0*(e.quantity||0),n.totalAddonUpfrontCost=e.upfrontPrice,(e.promoPrice||0===e.promoPrice)&&(n.promotionalSavingsCost+=(e.price-e.promoPrice)*(e.quantity||1)),n.totalMonthlyListPrice=(n.totalMonthlyListPrice||0)+e.price*(e.quantity||1)}),null==(o=e.multiAddonItems)||o.forEach(e=>{(n.totalMultiAddonCost||0==n.totalMultiAddonCost)&&(n.totalMultiAddonCost+=e.promoPrice||0===e.promoPrice?e.promoPrice*(e.quantity||1):e.price*(e.quantity||1)),(e.promoPrice||0===e.promoPrice)&&(n.promotionalSavingsCost+=(e.price-e.promoPrice)*(e.quantity||1)),n.totalMonthlyListPrice=(n.totalMonthlyListPrice||0)+e.price*(e.quantity||1)}),e.cashBackBenefit&&s.showDiscount==h.lf.DISCOUNT_BP&&(n.totalCashBackCost=s.cashbackPrice)}return e.eshopActivationPrice&&(n.eshopTotalOneTimeCost=parseFloat(e.eshopActivationPrice)*e.quantity),{...e,costBreakdown:n}})}return null},this.calculateProductCost=function(e,t,r){var i,n,a,o,s;let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,c=e.quantity||1,u=null!=(s=null!=(o=e.discountedPrice)?o:e.price)?s:0,d=parseFloat((null==(i=e.multiMobileInfo)?void 0:i.derivedPrice)||"0"),p=parseFloat((null==(n=e.multiMobileInfo)?void 0:n.discountPrice)||"0"),m=null!=(a=e.multiMobileInfo)&&!!a.derivedPrice,f=e.isOverrule||!m||!1,g=h.lf.DISCOUNT_BP,y=u,v=0,_=0;return"businessMobile"===e.multiBasketIdentifier?r||t?(g=f?h.lf.DISCOUNT_BP:h.lf.DISCOUNT_MM,y=!f&&m?d*c:u*c,e.cashBackBenefit&&(_=!f&&m?0:e.cashBackBenefit*c),v=!f&&m?p*c:0):(g=0==l?h.lf.DISCOUNT_BP:h.lf.DISCOUNT_MM,y=0===l?u+d*(c-1):d*c,e.cashBackBenefit&&0===l&&(_=e.cashBackBenefit),v=0===l?p*(c-1):p*c):(g=h.lf.DISCOUNT_BP,e.cashBackBenefit&&(_=e.cashBackBenefit*c),void 0!==e.discountedPrice&&(y=e.discountedPrice),(e.additionalDiscountPrice||0===e.additionalDiscountPrice)&&c>1?y+=e.additionalDiscountPrice*(c-1):y*=c),{price:y,discountPrice:v,showDiscount:g,cashbackPrice:_}},this.calculateProductCostWithMM=()=>{var e,t,r;let i=this.getBasket(),n=[],a=null==i||null==(e=i.basketProducts)?void 0:e.some(e=>e.isOverrule),o=null==i||null==(t=i.basketProducts)?void 0:t.some(e=>{var t;return!(null==(t=e.multiMobileInfo)?void 0:t.derivedPrice)});return null==i||null==(r=i.basketProducts)||r.forEach((e,t)=>{var r,i,s,l,c,u,d;let p=e.quantity||1,m=null!=(d=null!=(u=e.discountedPrice)?u:e.price)?d:0,f=parseFloat((null==(r=e.multiMobileInfo)?void 0:r.derivedPrice)||"0"),g=parseFloat((null==(i=e.multiMobileInfo)?void 0:i.discountPrice)||"0"),y=!!(null==(s=e.multiMobileInfo)?void 0:s.derivedPrice),v=(null==e?void 0:e.isOverrule)||!1,_=Array.isArray(null==e?void 0:e.addonsItems)&&(null==e||null==(l=e.addonsItems)?void 0:l.length)>0,b=_?Math.min(...(null==e||null==(c=e.addonsItems)?void 0:c.map(e=>(null==e?void 0:e.quantity)||1))||[1]):0,S=(t,r,i,n,a)=>({productName:e.title||e.id,productId:e.id,itemCost:{itemTotalPrice:t+(n?this.calculateProductAddonCost(e,1):0),itemPrice:t,itemDiscountPrice:r,eligibleDiscountType:i,cashbackPrice:e.cashBackBenefit,loyaltyPrice:e.loyaltyBenefit,serviceOptionPrice:n?this.calculateProductAddonCost(e,1):void 0,contractDuration:e.contractDuration,promoDuration:e.promoRunTime,activationFee:e.eshopActivationPrice,itemOneTimePrice:0,itemListPrice:a},serviceOption:n?e.addonsItems:[],addonOptions:[...(null==e?void 0:e.addOns)||[],...(null==e?void 0:e.insuranceCard)||[]],itemType:null==e?void 0:e.itemType});for(let r=0;r<p;r++)a||o?!v&&y?n.push(S(f,g,h.lf.DISCOUNT_MM,_&&r<b,e.price)):n.push(S(m,e.discountedPrice?e.price-e.discountedPrice:void 0,h.lf.DISCOUNT_BP,_&&r<b,e.price)):0===r&&0===t?n.push(S(m,e.discountedPrice?e.price-e.discountedPrice:void 0,h.lf.DISCOUNT_BP,_&&r<b,e.price)):n.push(S(f,g,h.lf.DISCOUNT_MM,_&&r<b,e.price))}),n},this.calculateRateplanAddonCost=e=>{let t={listPrice:0,derivedPrice:0};return e&&e.serviceOption&&e.serviceOption.length>
10&&e.serviceOption.forEach(e=>{e.isAddedToCart&&(t.listPrice+=e.price*(e.quantity||1),t.derivedPrice=(t.derivedPrice||0)+(e.promoPrice||0===e.promoPrice?e.promoPrice*(e.quantity||1):0),t.discountPrice=(t.discountPrice||0)+(e.price-(e.promoPrice||0===e.promoPrice?e.promoPrice:e.price))*(e.quantity||1))}),t},this.calculateManualCheckoutRateplanCost=()=>{var e,t,r;let i=this.getManualBasket(),n=null==i||null==(e=i.manualCheckoutCartDetails)?void 0:e.some(e=>e.isOverrule),a=null==i||null==(t=i.manualCheckoutCartDetails)?void 0:t.some(e=>!e.multiMobileBenefitInfo);return null==i||null==(r=i.manualCheckoutCartDetails)?void 0:r.map((e,t)=>{var r,i,o,s,l,c,u;let d=[],p=parseFloat(null!=(u=null!=(c=null==(r=e.promoInfo)?void 0:r.derivedPrice)?c:e.listPrice)?u:"0"),m=parseFloat((null==(i=e.multiMobileBenefitInfo)?void 0:i.derivedPrice)||"0"),f=parseFloat((null==(o=e.multiMobileBenefitInfo)?void 0:o.discountPrice)||"0"),g=!!(null==(s=e.multiMobileBenefitInfo)?void 0:s.derivedPrice),y=(null==e?void 0:e.isOverrule)||!g||!1,v=(t,r,i,n)=>{var a,o,s;let l=this.calculateRateplanAddonCost(n);return{productName:e.productName,itemCost:{itemTotalPrice:t+(l.derivedPrice||l.listPrice),itemTotalListPrice:parseFloat(e.listPrice)+l.listPrice,itemPrice:t,itemDiscountPrice:r,eligibleDiscountType:i,cashbackPrice:parseFloat((null==(a=e.promoInfo)?void 0:a.cashBack)||"0"),loyaltyPrice:parseFloat((null==(o=e.promoInfo)?void 0:o.basePrice)||"0"),serviceOptionPrice:l.derivedPrice||l.listPrice,serviceOptionTotalPrice:l,contractDuration:e.contractDuration,promoDuration:null==(s=e.promoInfo)?void 0:s.duration,activationFee:e.eshopActivationPrice,itemOneTimePrice:0,itemListPrice:parseFloat(e.listPrice||"0")},serviceOption:n.serviceOption,mobileNumberPorting:n.mobileNumberPorting,simType:n.simType}};return null==(l=e.subscriptionDetails)||l.forEach((r,i)=>{var o,s,l,c,u;n||a?!y&&g?d.push(v(m,f,h.lf.DISCOUNT_MM,r)):d.push(v(p,(null==(c=e.promoInfo)?void 0:c.discountPrice)?parseFloat(e.promoInfo.discountPrice):void 0,h.lf.DISCOUNT_BP,r)):0===i&&0===t?d.push(v(p,(null==(l=e.promoInfo)?void 0:l.discountPrice)?parseFloat(e.promoInfo.discountPrice):void 0,h.lf.DISCOUNT_BP,r)):d.push(v(m,f,h.lf.DISCOUNT_MM,r));let _=d.reduce((e,t)=>{var r;return e+((null==(r=t.itemCost)?void 0:r.itemTotalPrice)||0)},0),b=null!=(u=null==(o=e.subscriptionDetails)?void 0:o.some(e=>{var t;return null==(t=e.itemCost)?void 0:t.serviceOptionDiscountPrice}))&&u,S=null!=(s=e.promoInfo)&&!!s.discountPrice||!!f||!!b;(e={...e,rateplanDerivedPrice:_,isDiscountEligible:S}).rateplanListPrice=d.reduce((e,t)=>{var r,i,n;return e+((null==(r=t.itemCost)?void 0:r.itemListPrice)||0)+((null==(n=t.itemCost)||null==(i=n.serviceOptionTotalPrice)?void 0:i.listPrice)||0)},0),e={...e,subscriptionDetails:d}}),{...e}})},this.calculateManualCheckoutTotalCost=e=>{let t=e||this.calculateManualCheckoutRateplanCost(),r={totalPromotionalSavingsCost:0,totalMonthlyCost:0,totalMonthlyListPrice:0,totalOneTimeCost:0,vatLabel:"",enableExcludingVat:!1,eshopTotalOneTimeCost:0,totalCashBackCost:0,eligibleDiscountType:h.lf.DISCOUNT_BP};return null==t||t.forEach(e=>{var t;null==(t=e.subscriptionDetails)||t.forEach(t=>{if(t.itemCost){var i,n;r.totalMonthlyCost+=t.itemCost.itemTotalPrice||0,r.totalOneTimeCost+=t.itemCost.itemOneTimePrice||0,r.eshopTotalOneTimeCost+=parseFloat((null==e?void 0:e.eshopActivationPrice)?null==e?void 0:e.eshopActivationPrice:"0"),r.totalCashBackCost+=t.itemCost.eligibleDiscountType==h.lf.DISCOUNT_BP&&(t.itemCost.cashbackPrice||0)||0,r.totalPromotionalSavingsCost+=(t.itemCost.itemDiscountPrice||0)+((null==(i=t.itemCost.serviceOptionTotalPrice)?void 0:i.discountPrice)||0)||0,r.totalMonthlyListPrice=(r.totalMonthlyListPrice||0)+((null==(n=t.itemCost)?void 0:n.itemTotalListPrice)||0),r.enableExcludingVat=e.enableExcludingVat}})}),r},this.getManualCheckoutDetailedSummary=()=>{let e=this.calculateManualCheckoutRateplanCost(),t=[];return null==e||e.forEach(e=>{var r;null==(r=e.subscriptionDetails)||r.forEach(r=>{t.push({productName:e.productName,eventKey:e.productName,itemCost:r.itemCost,serviceOption:r.serviceOption})})}),t},this.calculateTotalCost=e=>{let t={totalPromotionalSavingsCost:0,totalMonthlyCost:0,totalOneTimeCost:0,vatLabel:"",enableExcludingVat:!1,eshopTotalOneTimeCost:0,totalCashBackCost:0,eligibleDiscountType:h.lf.DISCOUNT_BP,totalMonthlyListPrice:0};if(e){let r=[],i=[];if(e.map(e=>{if(console.log("manual summaryItem",e),e.costBreakdown){var n,a;e.addonsItems&&(null==(n=e.addonsItems)?void 0:n.length)>0&&(t.totalMonthlyCost+=e.costBreakdown.totalAddonCost||0,t.totalOneTimeCost+=e.costBreakdown.totalAddonUpfrontCost||0),e.multiAddonItems&&(null==(a=e.multiAddonItems)?void 0:a.length)>0&&(t.totalMonthlyCost+=e.costBreakdown.totalMultiAddonCost||0),t.totalMonthlyCost+=e.costBreakdown.totalCost,t.totalPromotionalSavingsCost+=e.costBreakdown.promotionalSavingsCost,t.totalOneTimeCost+=e.costBreakdown.totalOnetimeCost,t.eshopTotalOneTimeCost+=e.costBreakdown.eshopTotalOneTimeCost||0,t.totalMonthlyListPrice=(t.totalMonthlyListPrice||0)+(e.costBreakdown.totalMonthlyListPrice||0),e.cashBackBenefit&&(t.totalCashBackCost+=e.costBreakdown.totalCashBackCost||0)}e.vatTypeDatasource&&-1===r.indexOf(e.vatTypeDatasource)&&(r.push(e.vatTypeDatasource),i.push(e.vatLabel||"")),e.enableExcludingVat&&(t.enableExcludingVat=e.enableExcludingVat)}),1==r.length)return{...t,vatDataSource:r[0],vatLabel:i[0]}}return t},this.calculateProductAddonCost=(e,t)=>
1{var r;let[i]=[0];return null==(r=e.addonsItems)||r.map(e=>{i+=(e.promoPrice||0===e.promoPrice?e.promoPrice:e.price)*(t||e.quantity||1)}),i},this.calculateMultiDeviceTotalCost=e=>{let t={totalPromotionalSavingsCost:0,totalMonthlyCost:0,totalOneTimeCost:0,vatLabel:"",packageMonthlyCost:[],packageOneTimeCost:[],eshopTotalOneTimeCost:0,totalCashBackCost:0};if(e&&e.deviceBasket&&e.deviceBasket.length>0){let r=[],i=[];if(e.deviceBasket.map(e=>{var n,a,o,s;let[l]=[0],[c]=[0],[u]=[0],[d]=[0],[p]=[0];l=e.discountedPrice||e.price,t.totalMonthlyCost+=e.discountedPrice||e.price,t.totalPromotionalSavingsCost+=e.discountedPrice?e.price-e.discountedPrice:0,null==(n=e.deviceItem)||n.map(e=>{t.totalMonthlyCost+=e.monthlyCost,t.totalOneTimeCost+=e.upfrontPrice,t.totalPromotionalSavingsCost+=e.monthlyPromoSaving||0,u+=e.monthlyCost,c+=e.upfrontPrice,e.deviceAddoncartitem&&e.deviceAddoncartitem.isInsuranceIncluded&&(t.totalMonthlyCost+=e.deviceAddoncartitem.insuranceDiscountPrice||e.deviceAddoncartitem.insurancePrice,t.totalPromotionalSavingsCost+=e.deviceAddoncartitem.insuranceDiscountPrice?e.deviceAddoncartitem.insurancePrice-e.deviceAddoncartitem.insuranceDiscountPrice:0,p+=e.deviceAddoncartitem.insuranceDiscountPrice||e.deviceAddoncartitem.insurancePrice)}),null==(a=e.addonsItems)||a.map(e=>{t.totalMonthlyCost+=e.promoPrice||0===e.promoPrice?e.promoPrice:e.price,t.totalOneTimeCost+=e.upfrontPrice||0,(e.promoPrice||0===e.promoPrice)&&(t.totalPromotionalSavingsCost+=e.price-e.promoPrice),d+=e.promoPrice||0===e.promoPrice?e.promoPrice:e.price,c+=e.upfrontPrice||0}),null==(o=t.packageMonthlyCost)||o.push(l+u+d+p),null==(s=t.packageOneTimeCost)||s.push(c),e.vatTypeDatasource&&-1===r.indexOf(e.vatTypeDatasource)&&(r.push(e.vatTypeDatasource),i.push(e.vatLabel||""))}),1==r.length)return{...t,vatDataSource:r[0],vatLabel:i[0]}}return t},this.checkProductCompatibility=()=>{var e;let t=this.getBasket(),r=[];return t&&t.basketProducts&&t.basketProducts.length>1&&t.basketProducts.map(e=>{e.multiBasketIdentifier&&-1===r.indexOf(e.multiBasketIdentifier)&&r.push(e.multiBasketIdentifier)}),1==r.length||(null==t||null==(e=t.basketProducts)?void 0:e.length)<=1},this.checkDeviceFlowCompatability=()=>{var e;let t=this.getBasket(),r=[];return t&&t.deviceBasket&&t.deviceBasket.length>1&&t.deviceBasket.map(e=>{e.multiBasketIdentifier&&-1===r.indexOf(e.multiBasketIdentifier)&&r.push(e.multiBasketIdentifier)}),1==r.length||(null==t||null==(e=t.deviceBasket)?void 0:e.length)<=1},this.removeBasketProduct=e=>{i.i.dispatch((0,n.qY)(e))},this.productCards=(e,t)=>e.find(e=>e._uid===t),this.getProductDetails=(e,t,r,i,n)=>{a.A.getStoryOptions(e,r,e=>{e&&e.data.stories.map(e=>{let r=e.content.body.find(e=>"productTable"==e.component);i(this.getdetails(r,t,n),this.getProductTableAddOns(r,t,n))})})},this.getProductDetailsDeviceFlow=(e,t,r,i,n,o)=>{a.A.getStoryOptions(e,r,e=>{e&&e.data.stories.map(e=>{var r;let a=e.content,s=a.body.find(e=>"deviceDetails"==e.component),l=a.body.find(e=>"deviceConfigurator"==e.component),c=a.body.find(e=>"multiStepCheckout"==e.component),u=o?c.subscriptionSection[0].productTable[0]:s?s.productTable[0]:null==l?void 0:l.deviceDetailsCard[0].productTable[0],d=s.card[0].insuranceBlok||l.deviceDetailsCard[0].card[0].insuranceBlok;i(this.getdetails(u,t,n),this.getAddonDetails(null==c||null==(r=c.addonsSection)?void 0:r[0]),this.getProductTableAddOns(u,t,n),d)})})},this.getdetails=(e,t,r)=>{var i,n;let a=e.groups&&e.groups.length>0?null==(i=e.groups.find(e=>e._uid===r))?void 0:i.cards:e.card,o=null==a?void 0:a.find(e=>e.id==t);return null==o||null==(n=o.group)?void 0:n.filter(e=>e.shouldShowInSummary)},this.getProductTableAddOns=(e,t,r)=>{var i,n,a,o;let s=e.groups&&e.groups.length>0?null==(i=e.groups.find(e=>e._uid===r))?void 0:i.cards:e.card,l=null==s?void 0:s.find(e=>e.id==t);return null==l||null==(o=l.addOns)||null==(a=o[0])||null==(n=a.details)?void 0:n.filter(e=>e.shouldShowInSummary)},this.getAddonDetails=e=>{var t;let r=[];return null==e||null==(t=e.addOnsGroups)||t.map(e=>{var t;null==e||null==(t=e.addOnCards)||t.map(e=>{var t;let i=[];null==e||null==(t=e.details)||t.map(e=>{e.shouldShowInSummary&&i.push(e)}),null==r||r.push({id:e.id,details:i}
1)})}),r},this.clearCart=()=>{c.A.removeSessionStorageItem(m.basketSessionKey)},this.trackPurchaseAsync=(e,t,r,i)=>{(0,s.g2)(r,"multiCheckout").then(n=>{var a,o,s,l,c,d;if((null!=(o=null==e||null==(a=e.aiAssistantCartDetails)?void 0:a.length)?o:0)>0){let i=!!(null==(s=r.personalDetails)?void 0:s.customerSiteId)||null!=(d=null==(c=e.aiAssistantCartDetails)||null==(l=c[0])?void 0:l.isSunriseCustomer)&&d;u.A.trackAiAssistantPurchaseEvent(e,t,i,n)}else i?u.A.trackManualCheckoutPurchaseEvent(e,t,n):u.A.trackBasketPurchaseEvent(e,t,n)}).catch(e=>console.warn("Tracking failed, but order completed successfully:",e))},this.multiBasketSubmitOrder=(e,t,r,a,c,u,h,f,g,y,v,_,b,S,w)=>{var C,E,k,A;let P=i.i.getState().manualCheckoutReducer.isNewManualCheckoutSummary||!1,I=(null!=(A=null==(E=i.i.getState().manualCheckoutReducer)||null==(C=E.aiAssistantCartDetails)?void 0:C.length)?A:0)>0,T=P||I?i.i.getState().manualCheckoutReducer:i.i.getState().basketReducer,O=i.i.getState().checkoutReducer,D={...T,basketProducts:(null==(k=T.basketProducts)?void 0:k.map(e=>{var t,r;return{...e,addOns:[],addonsItems:(null==e?void 0:e.addonsItems)&&(null==e||null==(t=e.addonsItems)?void 0:t.length)>0?null==e||null==(r=e.addonsItems)?void 0:r.map(e=>({...e,addOnDetails:[]})):null==e?void 0:e.addonsItems}}))||[]},R={};if((w||I)&&(R={personalDetails:null==O?void 0:O.personalDetails,internetActivationDate:null==O?void 0:O.internetActivationDate,basketProducts:null==D?void 0:D.basketProducts,landlineNumberDetails:null==O?void 0:O.landlineNumberDetails,aiAssistantCartDetails:null==D?void 0:D.aiAssistantCartDetails}),D&&null!=D){let C={companyDetails:O.companyDetails,personalDetails:O.personalDetails,deliveryAddress:c?O.deliveryAddress:O.companyDetails.address,multiCart:D,emailId:e,isMultiBasketIdentifier:!0,internetActivationDate:null==O?void 0:O.internetActivationDate,internetActivationAddress:null==O?void 0:O.internetActivationAddress,landlineNumberDetails:null==O?void 0:O.landlineNumberDetails,shouldHideCompanyInformation:S,aiAssistantCredDetails:null==O?void 0:O.aiAssistantCredDetails,voiceDetails:null==O?void 0:O.voiceDetails},E=(0,s.Me)(m.submitOrderService,!0);l.A.request(E,o.dF.POST,C,t).then(e=>{if(e.data.errorCode===o.O4.SUCCESS){var l,c;if(_){let e={[y||"email"]:O.personalDetails.email,[v||"mobile-phone"]:O.personalDetails.phone,language:(0,s.Z0)(t),"referring-url":b,comments:"purchase=true"};p.A.submitToPardot(_,e)}d.kN.isTestData(C.companyDetails.name,C.personalDetails.email)||this.trackPurchaseAsync(D,{orderId:null==(l=e.data.data)?void 0:l.orderId,item_list_id:u,component:h,item_list_name:f,beginCheckOutTime:g},O,P),w||I||this.clearCart(),i.i.dispatch((0,n.fA)(R)),window.location.href=r+"?txnId="+(null==(c=e.data.data)?void 0:c.orderId)}else this.clearCart(),window.location.href=a}).catch(()=>{this.clearCart(),window.location.href=a});return}window.location.href=a},this.trackRemoveOrAddToCartEvent=(e,t,r,i,n,a,o,s)=>{let l=[];if(a&&n&&l.push({item_brand:"sunrise",item_category:n.analyticsCategory||("mobileBB"==n.type?"Mobile Broadband":"connectivity"==n.type||"internet"==n.type?"Internet":"tvAp
1p"==n.type||"tvPublic"==n.type?"TV":"Mobile"),item_id:n.id,item_list_id:r,item_list_name:i,item_name:n.title,item_variant:"",price:d.kN.calcItemPriceforAnalytics(n.price,parseFloat(n.contractDuration||"1"),n.discountedPrice,n.promoRunTime&&parseFloat(n.promoRunTime)||void 0),quantity:1,promotion_duration:n.contractDuration||"1"}),o&&l.push({item_brand:"sunrise",item_category:"Others",item_id:o.id,item_list_id:r,item_list_name:i,item_name:o.name,item_variant:"",price:d.kN.calcItemPriceforAnalytics(o.price,parseFloat(n.contractDuration||"1"),o.promoPrice?o.promoPrice:void 0,n.promoRunTime&&parseFloat(n.promoRunTime)||void 0),quantity:1,promotion_duration:n.contractDuration||"1"}),s){var c;l.push({item_brand:s.brand||"",item_category:"Device",item_id:s.sapId,item_list_id:r,item_list_name:i,item_name:s.productName,item_variant:s.color+","+s.memory,price:d.kN.calcItemPriceforAnalytics(s.price,1,s.discountedPrice,1),quantity:1,promotion_duration:(null==(c=s.contractPeriod)?void 0:c.toString())||"1"})}let p=d.kN.calculateTotalValue(l);"remove"==e?u.A.removeFromCartItemEvent(l,"",t,p):"add"==e&&u.A.addToCartEvent(l,"",t,p)},this.manualTrackRemoveOrAddToCartEvent=(e,t,r,i,n,a,o)=>{var s,l,c,p,h,m,f,g,y,v;let _=[];a&&n&&_.push({item_brand:"sunrise",item_category:"Mobile",item_id:n.productName,item_list_id:r,item_list_name:i,item_name:n.productName,item_variant:"",price:d.kN.calcItemPriceforAnalytics((null==(c=n.itemCost)?void 0:c.itemListPrice)||0,parseFloat((null==(p=n.itemCost)?void 0:p.contractDuration)||"1"),(null==(h=n.itemCost)?void 0:h.itemPrice)?null==(m=n.itemCost)?void 0:m.itemPrice:void 0,(null==(f=n.itemCost)?void 0:f.promoDuration)&&parseFloat(null==(g=n.itemCost)?void 0:g.promoDuration)||void 0),quantity:1,promotion_duration:(null==(y=n.itemCost)?void 0:y.promoDuration)||"1"}),((null==n||null==(l=n.serviceOption)||null==(s=l[0])?void 0:s.isAddedToCart)||o)&&(null==n||null==(v=n.serviceOption)||v.map(e=>{_.push({item_brand:"sunrise",item_category:"Others",item_id:e.id,item_list_id:r,item_list_name:i,item_name:e.name,item_variant:"",price:d.kN.calcItemPriceforAnalytics(e.price,parseFloat(e.contractDuration||"1"),e.promoPrice?e.promoPrice:void 0,e.promoDuration&&parseFloat(e.promoDuration)||void 0),quantity:1,promotion_duration:e.promoDuration})}));let b=d.kN.calculateTotalValue(_);"remove"==e?u.A.removeFromCartItemEvent(_,"",t,b):"add"==e&&u.A.addToCartEvent(_,"",t,b)},this.ictSubmitOrder=(e,t,r,n,a,c,h,f,g,y,v,_)=>{var b,S;let w=null==(b=i.i.getState())?void 0:b.ictReducer,C=i.i.getState().checkoutReducer;if(w&&(null==w||null==(S=w.ictProductData)?void 0:S.length)>0&&C){let i={companyDetails:C.companyDetails,personalDetails:C.personalDetails,ictCart:w,emailId:e,domainAndPlatformInformation:null==C?void 0:C.domainAndPlatformInformation},b=(0,s.Me)(m.ictSubmitOrderService,!0);l.A.request(b,o.dF.POST,i,t).then(e=>{if(e.data.errorCode===o.O4.SUCCESS){var l,m;if(v){let e={[g||"email"]:C.personalDetails.email,[y||"mobile-phone"]:C.personalDetails.phone,language:(0,s.Z0)(t),"referring-url":_,comments:"purchase=true"};p.A.submitToPardot(v,e)}d.kN.isTestData(i.companyDetails.name,i.personalDetails.email)||u.A.trackIctBasketEvent(w,{orderId:null==(l=e.data.data)?void 0:l.orderId,item_list_id:a,component:c,item_list_name:h,beginCheckOutTime:f},"purchase"),this.clearCart(),window.location.href=r+"?txnId="+(null==(m=e.data.data)?void 0:m.orderId)}else this.clearCart(),window.location.href=n}).catch(()=>{this.clearCart(),window.location.href=n});return}window.location.href=n},this.basket=null}}m.submitOrderService="/api/al/checkout/manual-cart",m.basketSessionKey="b2b-checkout-basket",m.ictSubmitOrderService="/api/al/checkout/manual-ict-cart";let f=new m,g=f},82909:(e,t,r)=>{"use strict";var i=r(81370),n=r(87247),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e){var i=e,n=t;if(("string"!=typeof n||""===n)&&(n="utf8"),!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);var a=0|m(i,n),l=o(a),c=l.write(i,n);return c!==a&&(l=l.slice(0,c)),l}if(ArrayBuffer.isView(e)){var u=e;if(T(u,Uint8Array)){var f=new Uint8Array(u);return p(f.buffer,f.byteOffset,f.byteLength)}return d(u)}if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(T(e,ArrayBuffer)||e&&T(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(T(e,SharedArrayBuffer)||e&&T(e.buffer,SharedArrayBuffer)))return p(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var g=e.valueOf&&e.valueOf();if(null!=g&&g!==e)return s.from(g,t,r);var y=function(e){if(s.isBuffer(e)){var t=0|h(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?o(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(y)return y;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');
vendor: 17,043 bytes, line 1
1if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return c(e),o(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),r=o(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function p(e,t,r){var i;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),i}function h(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function m(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||T(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return A(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return P(e).length;default:if(n)return i?-1:A(e).length;t=(""+t).toLowerCase(),n=!0}}function f(e,t,r){var n,a,o,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var n="",a=t;a<r;++a)n+=O[e[a]];return n}(this,t,r);case"utf8":case"utf-8":return _(this,t,r);case"ascii":return function(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}(this,t,r);case"latin1":case"binary":return function(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}(this,t,r);case"base64":return n=this,a=t,o=r,0===a&&o===n.length?i.fromByteArray(n):i.fromByteArray(n.slice(a,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var i=e.slice(t,r),n="",a=0;a<i.length-1;a+=2)n+=String.fromCharCode(i[a]+256*i[a+1]);return n}(this,t,r);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function g(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function y(e,t,r,i,n){var a;if(0===e.length)return -1;if("string"==typeof r?(i=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(a=r*=1)!=a&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(n)return -1;else r=e.length-1;else if(r<0)if(!n)return -1;else r=0;if("string"==typeof t&&(t=s.from(t,i)),s.isBuffer(t))return 0===t.length?-1:v(e,t,r,i,n);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(n)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return v(e,[t],r,i,n)}throw TypeError("val must be string, number or Buffer")}function v(e,t,r,i,n){var a,o=1,s=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return -1;o=2,s/=2,l/=2,r/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var u=-1;for(a=r;a<s;a++)if(c(e,a)===c(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===l)return u*o}else -1!==u&&(a-=a-u),u=-1}else for(r+l>s&&(r=s-l),a=r;a>=0;a--){for(var d=!0,p=0;p<l;p++)if(c(e,a+p)!==c(t,p)){d=!1;break}if(d)return a}return -1}function _(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var a,o,s,l,c=e[n],u=null,d=c>239?4:c>223?3:c>191?2:1;if(n+d<=r)switch(d){case 1:c<128&&(u=c);break;case 2:(192&(a=e[n+1]))==128&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[n+1],o=e[n+2],(192&a)==128&&(192&o)==128&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[n+1],o=e[n+2],s=e[n+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),n+=d}var p=i,h=p.length;if(h<=4096)return String.fromCharCode.apply(String,p);for(var m="",f=0;f<h;)m+=String.fromCharCode.apply(String,p.slice(f,f+=4096));return m}function b(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function S(e,t,r,i,n,a){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<a)throw RangeError('"value" argument is out of bounds');if(r+i>e.length)throw RangeError("Index out of range")}function w(e,t,r,i,n,a){if(r+i>e.length||r<0)throw RangeError("Index out of range")}function C(e,t,r,i,a){return t*=1,r>>>=0,a||w(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}function E(e,t,r,i,a){return t*=1,r>>>=0,a||w(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}t.hp=s,t.IS=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(c(e),e<=0)?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)},s.allocUnsafe=function(e){return u(e)},s.allocUnsafeSlow=function(e){return u(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),T(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,a=Math.min(r,i);n<a;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:+(i<r)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,i=s.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var a=e[r];if(T(a,Uint8Array))n+a.length>i.length?s.from(a).copy(i,n):Uint8Array.prototype.set.call(i,a,n);else if(s.isBuffer(a))a.copy(i,n);else throw TypeError('"list" argument must be an Array of Buffers');n+=a.length}return i},s.byteLength=m,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?_(this,0,e):f.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.IS;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(e,t,r,i,n){if(T(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,n>>>=0,this===e)return 0;for(var a=n-i,o=r-t,l=Math.min(a,o),c=this.slice(i,n),u=e.slice(t,r),d=0;d<l;++d)if(c[d]!==u[d]){a=c[d],o=u[d];break}return a<o?-1:+(o<a)},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},s.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n,a,o,s,l,c,u,d,p=this.length-t;if((void 0===r||r>p)&&(r=p),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var h=!1;;)switch(i){case"hex":return function(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?(i=Number(i))>n&&(i=n):i=n;var a=t.length;i>a/2&&(i=a/2);for(var o=0;o<i;++o){var s,l=parseInt(t.substr(2*o,2),16);if((s=l)!=s)break;e[r+o]=l}return o}(this,e,t,r);case"utf8":case"utf-8":return n=t,a=r,I(A(e,this.length-n),this,n,a);case"ascii":case"latin1":case"binary":return o=t,s=r,I(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,o,s);case"base64":return l=t,c=r,I(P(e),this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=t,d=r,I(function(e,t){for(var r,i,n=[],a=0;a<e.length&&!((t-=2)<0);++a)i=(r=e.charCodeAt(a))>>8,n.push(r%256),n.push(i);return n}(e,this.length-u),this,u,d);default:if(h)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,s.prototype),i},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return i},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var i=this[e+--t],n=1;t>0&&(n*=256);)i+=this[e+--t]*n;return i},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var i=t,n=1,a=this[e+--i];i>0&&(n*=256);)a+=this[e+--i]*n;return a>=(n*=128)&&(a-=Math.pow(2,8*t)),a},s.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),n.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;S(this,e,t,r,n,0)}var a=1,o=0;for(this[t]=255&e;++o<r&&(a*=256);)this[t+o]=e/a&255;return t+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;S(this,e,t,r,n,0)}var a=r-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var n=Math.pow(2,8*r-1);S(this,e,t,r,n-1,-n)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var n=Math.pow(2,8*r-1);S(this,e,t,r,n-1,-n)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||S(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return C(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return E(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return E(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,i){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,i):Uint8Array.prototype.set.call(e,this.subarray(r,i),t),n},s.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!s.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===e.length){var n,a=e.charCodeAt(0);("utf8"===i&&a<128||"latin1"===i)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;
1else{var o=s.isBuffer(e)?e:s.from(e,i),l=o.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=o[n%l]}return this};var k=/[^+/0-9A-Za-z-_]/g;function A(e,t){t=t||1/0;for(var r,i=e.length,n=null,a=[],o=0;o<i;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!n){if(r>56319||o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function P(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(k,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function I(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length)&&!(n>=e.length);++n)t[n+r]=e[n];return n}function T(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var O=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()},83129:(e,t,r)=>{"use strict";function i(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}r.d(t,{HY:()=>c,Qd:()=>s,Tw:()=>d,Zz:()=>u,ve:()=>p,y$:()=>l});var n="function"==typeof Symbol&&Symbol.observable||"@@observable",a=()=>Math.random().toString(36).substring(7).split("").join("."),o={INIT:`@@redux/INIT${a()}`,REPLACE:`@@redux/REPLACE${a()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${a()}`};function s(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function l(e,t,r){if("function"!=typeof e)throw Error(i(2));if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw Error(i(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw Error(i(1));return r(l)(e,t)}let a=e,c=t,u=new Map,d=u,p=0,h=!1;function m(){d===u&&(d=new Map,u.forEach((e,t)=>{d.set(t,e)}))}function f(){if(h)throw Error(i(3));return c}function g(e){if("function"!=typeof e)throw Error(i(4));if(h)throw Error(i(5));let t=!0;m();let r=p++;return d.set(r,e),function(){if(t){if(h)throw Error(i(6));t=!1,m(),d.delete(r),u=null}}}function y(e){if(!s(e))throw Error(i(7));if(void 0===e.type)throw Error(i(8));if("string"!=typeof e.type)throw Error(i(17));if(h)throw Error(i(9));try{h=!0,c=a(c,e)}finally{h=!1}return(u=d).forEach(e=>{e()}),e}return y({type:o.INIT}),{dispatch:y,subscribe:g,getState:f,replaceReducer:function(e){if("function"!=typeof e)throw Error(i(10));a=e,y({type:o.REPLACE})},[n]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(i(11));function t(){e.next&&e.next(f())}return t(),{unsubscribe:g(t)}},[n](){return this}}}}}function c(e){let t,r=Object.keys(e),n={};for(let t=0;t<r.length;t++){let i=r[t];"function"==typeof e[i]&&(n[i]=e[i])}let a=Object.keys(n);try{Object.keys(n).forEach(e=>{let t=n[e];if(void 0===t(void 0,{type:o.INIT}))throw Error(i(12));if(void 0===t(void 0,{type:o.PROBE_UNKNOWN_ACTION()}))throw Error(i(13))})}catch(e){t=e}return function(e={},r){if(t)throw t;let o=!1,s={};for(let t=0;t<a.length;t++){let l=a[t],c=n[l],u=e[l],d=c(u,r);if(void 0===d)throw r&&r.type,Error(i(14));s[l]=d,o=o||d!==u}return(o=o||a.length!==Object.keys(e).length)?s:e}}function u(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function d(...e){return t=>(r,n)=>{let a=t(r,n),o=()=>{throw Error(i(15))},s={getState:a.getState,dispatch:(e,...t)=>o(e,...t)};return o=u(...e.map(e=>e(s)))(a.dispatch),{...a,dispatch:o}}}function p(e){return s(e)&&"type"in e&&"string"==typeof e.type}},83395:(e,t,r)=>{"use strict";
1var i=r(27496),n=r(72442),a=r(42493),o=r(52597),s=r(8630),l=r(13112),c=function e(t){var r=new a(t),s=n(a.prototype.request,r);return i.extend(s,a.prototype,r),i.extend(s,r),s.create=function(r){return e(o(t,r))},s}(s);c.Axios=a,c.CanceledError=r(52801),c.CancelToken=r(92125),c.isCancel=r(56992),c.VERSION=r(17915).version,c.toFormData=r(30910),c.AxiosError=r(25037),c.Cancel=c.CanceledError,c.all=function(e){return Promise.all(e)},c.spread=r(52818),c.isAxiosError=r(4093),c.formToJSON=function(e){return l(i.isHTMLForm(e)?new FormData(e):e)},e.exports=c,e.exports.default=c},84084:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},85383:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});class i{constructor(){this.SB_STATIC_LABELS="sbStaticLabels",this.SB_ERROR_MESSAGE="sbErrorMessage",this.AUTHENTICATION="authentication",this.CART="cart",this.DELIVERY="delivery",this.CONFIRMATION="confirmation",this.B2B_ESHOP_CARTID="b2b-eshop-cartid",this.WARNING="warning",this.ERROR="error",this.SUCCESS="success",this.SERVICEOPTIONDEFAULTTAB="voice",this.USERCHANNEL="B2C",this.RATEPLANPROMOTION="promotion",this.OPTIONPROMOTION="option",this.SIMPROMOTION="sim",this.CONTACTWIDGETHEIGHT="50px",this.CUSTOMERNUMBER="selectedCustomer",this.EMTPYDATASOURCE="notdisplayedonUI",this.SB_COMPONENT_STATIC_LABELS="sbComponentStaticLabels",this.SB_CHECKOUT_STEPS_STATIC_LABELS="sbCheckoutStepsStaticLabels"}}let n=new i},86558:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},87247:(e,t)=>{t.read=function(e,t,r,i,n){var a,o,s=8*n-i-1,l=(1<<s)-1,c=l>>1,u=-7,d=r?n-1:0,p=r?-1:1,h=e[t+d];for(d+=p,a=h&(1<<-u)-1,h>>=-u,u+=s;u>0;a=256*a+e[t+d],d+=p,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=i;u>0;o=256*o+e[t+d],d+=p,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,i),a-=c}return(h?-1:1)*o*Math.pow(2,a-i)},t.write=function(e,t,r,i,n,a){var o,s,l,c=8*a-n-1,u=(1<<c)-1,d=u>>1,p=5960464477539062e-23*(23===n),h=i?0:a-1,m=i?1:-1,f=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=p/l:t+=p*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,n),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,n),o=0));n>=8;e[r+h]=255&s,h+=m,s/=256,n-=8);for(o=o<<n|s,c+=n;c>0;e[r+h]=255&o,h+=m,o/=256,c-=8);e[r+h-m]|=128*f}},87282:(e,t,r)=>{"use strict";e.exports=r(2421)},87962:e=>{"use strict";e.exports=Math.round},89665:(e,t,r)=>{"use strict";r.d(t,{A:()=>C});var i=r(37876),n=Object.defineProperty,a=(e,t,r)=>((e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);class o extends Error{constructor(e){super(e),this.name="AbortError"}}class s{constructor(){a(this,"isCDNUrl",(e="")=>e.includes("/cdn/")),a(this,"getOptionsPage",(e,t=25,r=1)=>({...e,per_page:t,page:r})),a(this,"delay",e=>new Promise(t=>setTimeout(t,e))),a(this,"arrayFrom",(e=0,t)=>Array.from({length:e},t)),a(this,"range",(e=0,t=e)=>{let r=Math.abs(t-e)||0,i=e<t?1:-1;return this.arrayFrom(r,(t,r)=>r*i+e)}),a(this,"asyncMap",async(e,t)=>Promise.all(e.map(t))),a(this,"flatMap",(e=[],t)=>e.map(t).reduce((e,t)=>[...e,...t],[])),a(this,"escapeHTML",function(e){let t={"&":"&","<":"<",">":">",'"':""","'":"'"},r=/[&<>"']/g,i=new RegExp(r.source);return e&&i.test(e)?e.replace(r,e=>t[e]):e})}stringify(e,t,r){let i=[];for(let n in e){let a;if(!Object.prototype.hasOwnProperty.call(e,n))continue;let o=e[n];if(null==o)continue;let s=r?"":encodeURIComponent(n);a="object"==typeof o?this.stringify(o,t?t+encodeURIComponent(`[${s}]`):s,Array.isArray(o)):`${t?t+encodeURIComponent(`[${s}]`):s}=${encodeURIComponent(o)}`,i.push(a)}return i.join("&")}getRegionURL(e){switch(e){case"us":return"api-us.storyblok.com";case"cn":return"app.storyblokchina.cn";case"ap":return"api-ap.storyblok.com";case"ca":return"api-ca.storyblok.com";default:return"api.storyblok.com"}}}let l=function(e,t){let r={};for(let i in e){let n=e[i];t.includes(i)&&null!==n&&(r[i]=n)}return r},c={nodes:{horizontal_rule:()=>({singleTag:"hr"}),blockquote:()=>({tag:"blockquote"}),bullet_list:()=>({tag:"ul"}),code_block:e=>({tag:["pre",{tag:"code",attrs:e.attrs}]}),hard_break:()=>({singleTag:"br"}),heading:e=>({tag:`h${e.attrs.level}`}),image:e=>({singleTag:[{tag:"img",attrs:l(e.attrs,["src","alt","title"])}]}),list_item:()=>({tag:"li"}),ordered_list:()=>({tag:"ol"}),paragraph:()=>({tag:"p"}
1),emoji:e=>({tag:[{tag:"span",attrs:{"data-type":"emoji","data-name":e.attrs.name,emoji:e.attrs.emoji}}]})},marks:{bold:()=>({tag:"b"}),strike:()=>({tag:"s"}),underline:()=>({tag:"u"}),strong:()=>({tag:"strong"}),code:()=>({tag:"code"}),italic:()=>({tag:"i"}),link:e=>{if(!e.attrs)return{tag:""};let t=new s().escapeHTML,r={...e.attrs},{linktype:i="url"}=e.attrs;if(delete r.linktype,r.href&&(r.href=t(e.attrs.href||"")),"email"===i&&(r.href=`mailto:${r.href}`),r.anchor&&(r.href=`${r.href}#${r.anchor}`,delete r.anchor),r.custom){for(let e in r.custom)r[e]=r.custom[e];delete r.custom}return{tag:[{tag:"a",attrs:r}]}},styled:e=>({tag:[{tag:"span",attrs:e.attrs}]}),subscript:()=>({tag:"sub"}),superscript:()=>({tag:"sup"}),anchor:e=>({tag:[{tag:"span",attrs:e.attrs}]}),highlight:e=>{var t;return null!=(t=e.attrs)&&t.color?{tag:[{tag:"span",attrs:{style:`background-color:${e.attrs.color};`}}]}:{tag:""}},textStyle:e=>{var t;return null!=(t=e.attrs)&&t.color?{tag:[{tag:"span",attrs:{style:`color:${e.attrs.color}`}}]}:{tag:""}}}},u=function(e){let t={"&":"&","<":"<",">":">",'"':""","'":"'"},r=/[&<>"']/g,i=new RegExp(r.source);return e&&i.test(e)?e.replace(r,e=>t[e]):e},d=!1;class p{constructor(e){a(this,"marks"),a(this,"nodes"),e||(e=c),this.marks=e.marks||[],this.nodes=e.nodes||[]}addNode(e,t){this.nodes[e]=t}addMark(e,t){this.marks[e]=t}render(e,t={optimizeImages:!1},r=!0){if(!d&&r&&(console.warn("Warning â ï¸: The RichTextResolver class is deprecated and will be removed in the next major release. Please use the `@storyblok/richtext` package instead. https://github.com/storyblok/richtext/"),d=!0),e&&e.content&&Array.isArray(e.content)){let r="";return e.content.forEach(e=>{r+=this.renderNode(e)}),t.optimizeImages?this.optimizeImages(r,t.optimizeImages):r}return console.warn(`The render method must receive an Object with a "content" field. 2 The "content" field must be an array of nodes as the type ISbRichtext. 3 ISbRichtext: 4 content?: ISbRichtext[] 5 marks?: ISbRichtext[] 6 attrs?: any 7 text?: string 8 type: string 9 10 Example: 11 { 12 content: [ 13 { 14 content: [ 15 { 16 text: 'Hello World', 17 type: 'text' 18 } 19 ], 20 type: 'paragraph' 21 } 22 ], 23 type: 'doc' 24 }`),""}optimizeImages(e,t){let r=0,i=0,n="",a="";"boolean"!=typeof t&&("number"==typeof t.width&&t.width>0&&(n+=`width="${t.width}" `,r=t.width),"number"==typeof t.height&&t.height>0&&(n+=`height="${t.height}" `,i=t.height),("lazy"===t.loading||"eager"===t.loading)&&(n+=`loading="${t.loading}" `),"string"==typeof t.class&&t.class.length>0&&(n+=`class="${t.class}" `),t.filters&&("number"==typeof t.filters.blur&&t.filters.blur>=0&&t.filters.blur<=100&&(a+=`:blur(${t.filters.blur})`),"number"==typeof t.filters.brightness&&t.filters.brightness>=-100&&t.filters.brightness<=100&&(a+=`:brightness(${t.filters.brightness})`),t.filters.fill&&(t.filters.fill.match(/[0-9A-F]{6}/gi)||"transparent"===t.filters.fill)&&(a+=`:fill(${t.filters.fill})`),t.filters.format&&["webp","png","jpeg"].includes(t.filters.format)&&(a+=`:format(${t.filters.format})`),"boolean"==typeof t.filters.grayscale&&t.filters.grayscale&&(a+=":grayscale()"),"number"==typeof t.filters.quality&&t.filters.quality>=0&&t.filters.quality<=100&&(a+=`:quality(${t.filters.quality})`),t.filters.rotate&&[90,180,270].includes(t.filters.rotate)&&(a+=`:rotate(${t.filters.rotate})`),a.length>0&&(a=`/filters${a}`))),n.length>0&&(e=e.replace(/<img/g,`<img ${n.trim()}`));let o=r>0||i>0||a.length>0?`${r}x${i}${a}`:"";return e=e.replace(/a.storyblok.com\/f\/(\d+)\/([^.]+)\.(gif|jpg|jpeg|png|tif|bmp)/g,`a.storyblok.com/f/$1/$2.$3/m/${o}`),"boolean"!=typeof t&&(t.sizes||t.srcset)&&(e=e.replace(/<img.*?src=["|'](.*?)["|']/g,e=>{var r,i;let n=e.match(/a.storyblok.com\/f\/(\d+)\/([^.]+)\.(gif|jpg|jpeg|png|tif|bmp)/g);if(n&&n.length>0){let o={srcset:null==(r=t.srcset)?void 0:r.map(e=>{if("number"==typeof e)return`//${n}/m/${e}x0${a} ${e}w`;if("object"==typeof e&&2===e.length){let t=0,r=0;return"number"==typeof e[0]&&(t=e[0]),"number"==typeof e[1]&&(r=e[1]),`//${n}/m/${t}x${r}${a} ${t}w`}return""}).join(", "),sizes:null==(i=t.sizes)?void 0:i.map(e=>e).join(", ")},s="";return o.srcset&&(s+=`srcset="${o.srcset}" `),o.sizes&&(s+=`sizes="${o.sizes}" `),e.replace(/<img/g,`<img ${s.trim()}`)}return e})),e}renderNode(e){let t=[];
24e.marks&&e.marks.forEach(e=>{let r=this.getMatchingMark(e);r&&""!==r.tag&&t.push(this.renderOpeningTag(r.tag))});let r=this.getMatchingNode(e);return r&&r.tag&&t.push(this.renderOpeningTag(r.tag)),e.content?e.content.forEach(e=>{t.push(this.renderNode(e))}):e.text?t.push(u(e.text)):r&&r.singleTag?t.push(this.renderTag(r.singleTag," /")):r&&r.html?t.push(r.html):"emoji"===e.type&&t.push(this.renderEmoji(e)),r&&r.tag&&t.push(this.renderClosingTag(r.tag)),e.marks&&e.marks.slice(0).reverse().forEach(e=>{let r=this.getMatchingMark(e);r&&""!==r.tag&&t.push(this.renderClosingTag(r.tag))}),t.join("")}renderTag(e,t){return e.constructor===String?`<${e}${t}>`:e.map(e=>{if(e.constructor===String)return`<${e}${t}>`;{let r=`<${e.tag}`;if(e.attrs){for(let t in e.attrs)if(Object.prototype.hasOwnProperty.call(e.attrs,t)){let i=e.attrs[t];null!==i&&(r+=` ${t}="${i}"`)}}return`${r}${t}>`}}).join("")}renderOpeningTag(e){return this.renderTag(e,"")}renderClosingTag(e){return e.constructor===String?`</${e}>`:e.slice(0).reverse().map(e=>e.constructor===String?`</${e}>`:`</${e.tag}>`).join("")}getMatchingNode(e){let t=this.nodes[e.type];if("function"==typeof t)return t(e)}getMatchingMark(e){let t=this.marks[e.type];if("function"==typeof t)return t(e)}renderEmoji(e){if(e.attrs.emoji)return e.attrs.emoji;let t=[{tag:"img",attrs:{src:e.attrs.fallbackImage,draggable:"false",loading:"lazy",align:"absmiddle"}}];return this.renderTag(t," /")}}class h{constructor(e){a(this,"baseURL"),a(this,"timeout"),a(this,"headers"),a(this,"responseInterceptor"),a(this,"fetch"),a(this,"ejectInterceptor"),a(this,"url"),a(this,"parameters"),a(this,"fetchOptions"),this.baseURL=e.baseURL,this.headers=e.headers||new Headers,this.timeout=null!=e&&e.timeout?1e3*e.timeout:0,this.responseInterceptor=e.responseInterceptor,this.fetch=(...t)=>e.fetch?e.fetch(...t):fetch(...t),this.ejectInterceptor=!1,this.url="",this.parameters={},this.fetchOptions={}}get(e,t){return this.url=e,this.parameters=t,this._methodHandler("get")}post(e,t){return this.url=e,this.parameters=t,this._methodHandler("post")}put(e,t){return this.url=e,this.parameters=t,this._methodHandler("put")}delete(e,t){return this.url=e,this.parameters=t??{},this._methodHandler("delete")}async _responseHandler(e){let t=[],r={data:{},headers:{},status:0,statusText:""};for(let i of(204!==e.status&&await e.json().then(e=>{r.data=e}),e.headers.entries()))t[i[0]]=i[1];return r.headers={...t},r.status=e.status,r.statusText=e.statusText,r}async _methodHandler(e){let t,r=`${this.baseURL}${this.url}`,i=null;if("get"===e){let e=new s;r=`${this.baseURL}${this.url}?${e.stringify(this.parameters)}`}else i=JSON.stringify(this.parameters);let n=new URL(r),a=new AbortController,{signal:o}=a;this.timeout&&(t=setTimeout(()=>a.abort(),this.timeout));try{let r=await this.fetch(`${n}`,{method:e,headers:this.headers,body:i,signal:o,...this.fetchOptions});this.timeout&&clearTimeout(t);let a=await this._responseHandler(r);return this.responseInterceptor&&!this.ejectInterceptor?this._statusHandler(this.responseInterceptor(a)):this._statusHandler(a)}catch(e){return{message:e}}}setFetchOptions(e={}){Object.keys(e).length>0&&"method"in e&&delete e.method,this.fetchOptions={...e}}eject(){this.ejectInterceptor=!0}_statusHandler(e){let t=/20[0-6]/g;return new Promise((r,i)=>{if(t.test(`${e.status}`))return r(e);i({message:e.statusText,status:e.status,response:Array.isArray(e.data)?e.data[0]:e.data.error||e.data.slug})})}}let m="SB-Agent",f={defaultAgentName:"SB-JS-CLIENT",defaultAgentVersion:"SB-Agent-Version",packageVersion:"6.0.0"},g={},y={};class v{constructor(e,t){a(this,"client"),a(this,"maxRetries"),a(this,"retriesDelay"),a(this,"throttle"),a(this,"accessToken"),a(this,"cache"),a(this,"helpers"),a(this,"resolveCounter"),a(this,"relations"),a(this,"links"),a(this,"richTextResolver"),a(this,"resolveNestedRelations"),a(this,"stringifiedStoriesCache"),a(this,"inlineAssets");let r=e.endpoint||t;if(!r){let t=new s().getRegionURL,i=!1===e.https?"http":"https";r=e.oauthToken?`${i}://${t(e.region)}/v1`:`${i}://${t(e.region)}/v2`}let i=new Headers;i.set("Content-Type","application/json"),i.set("Accept","application/json"),e.headers&&("Headers"===e.headers.constructor.name?e.headers.entries().toArray():Object.entries(e.headers)).forEac
24h(([e,t])=>{i.set(e,t)}),i.has(m)||(i.set(m,f.defaultAgentName),i.set(f.defaultAgentVersion,f.packageVersion));let n=5;e.oauthToken&&(i.set("Authorization",e.oauthToken),n=3),e.rateLimit&&(n=e.rateLimit),e.richTextSchema?this.richTextResolver=new p(e.richTextSchema):this.richTextResolver=new p,e.componentResolver&&this.setComponentResolver(e.componentResolver),this.maxRetries=e.maxRetries||10,this.retriesDelay=300,this.throttle=function(e,t,r){if(!Number.isFinite(t))throw TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(1e3))throw TypeError("Expected `interval` to be a finite number");let i=[],n=[],a=0,s=!1,l=async()=>{a++;let t=i.shift();if(t)try{let r=await e(...t.args);t.resolve(r)}catch(e){t.reject(e)}let r=setTimeout(()=>{a--,i.length>0&&l(),n=n.filter(e=>e!==r)},1e3);n.includes(r)||n.push(r)},c=(...e)=>s?Promise.reject(Error("Throttled function is already aborted and not accepting new promises")):new Promise((r,n)=>{i.push({resolve:r,reject:n,args:e}),a<t&&l()});return c.abort=()=>{s=!0,n.forEach(clearTimeout),n=[],i.forEach(e=>e.reject(()=>new o("Throttle function aborted"))),i.length=0},c}(this.throttledRequest.bind(this),n,1e3),this.accessToken=e.accessToken||"",this.relations={},this.links={},this.cache=e.cache||{clear:"manual"},this.helpers=new s,this.resolveCounter=0,this.resolveNestedRelations=e.resolveNestedRelations||!0,this.stringifiedStoriesCache={},this.inlineAssets=e.inlineAssets||!1,this.client=new h({baseURL:r,timeout:e.timeout||0,headers:i,responseInterceptor:e.responseInterceptor,fetch:e.fetch})}setComponentResolver(e){this.richTextResolver.addNode("blok",t=>{let r="";return t.attrs.body&&t.attrs.body.forEach(t=>{r+=e(t.component,t)}),{html:r}}
24)}parseParams(e){return e.token||(e.token=this.getToken()),e.cv||(e.cv=y[e.token]),Array.isArray(e.resolve_relations)&&(e.resolve_relations=e.resolve_relations.join(",")),"u">typeof e.resolve_relations&&(e.resolve_level=2),e}factoryParamOptions(e,t){return this.helpers.isCDNUrl(e)?this.parseParams(t):t}makeRequest(e,t,r,i,n){let a=this.factoryParamOptions(e,this.helpers.getOptionsPage(t,r,i));return this.cacheResponse(e,a,void 0,n)}get(e,t,r){t||(t={});let i=`/${e}`,n=this.factoryParamOptions(i,t);return this.cacheResponse(i,n,void 0,r)}async getAll(e,t,r,i){let n=(null==t?void 0:t.per_page)||25,a=`/${e}`.replace(/\/$/,""),o=r??a.substring(a.lastIndexOf("/")+1),s=await this.makeRequest(a,t,n,1,i),l=s.total?Math.ceil(s.total/n):1,c=await this.helpers.asyncMap(this.helpers.range(1,l),e=>this.makeRequest(a,t,n,e+1,i));return this.helpers.flatMap([s,...c],e=>Object.values(e.data[o]))}post(e,t,r){let i=`/${e}`;return Promise.resolve(this.throttle("post",i,t,r))}put(e,t,r){let i=`/${e}`;return Promise.resolve(this.throttle("put",i,t,r))}delete(e,t,r){t||(t={});let i=`/${e}`;return Promise.resolve(this.throttle("delete",i,t,r))}getStories(e,t){return this._addResolveLevel(e),this.get("cdn/stories",e,t)}getStory(e,t,r){return this._addResolveLevel(t),this.get(`cdn/stories/${e}`,t,r)}getToken(){return this.accessToken}ejectInterceptor(){this.client.eject()}_addResolveLevel(e){"u">typeof e.resolve_relations&&(e.resolve_level=2)}_cleanCopy(e){return JSON.parse(JSON.stringify(e))}_insertLinks(e,t,r){let i=e[t];i&&"multilink"===i.fieldtype&&"story"===i.linktype&&"string"==typeof i.id&&this.links[r][i.id]?i.story=this._cleanCopy(this.links[r][i.id]):i&&"story"===i.linktype&&"string"==typeof i.uuid&&this.links[r][i.uuid]&&(i.story=this._cleanCopy(this.links[r][i.uuid]))}getStoryReference(e,t){return this.relations[e][t]?JSON.parse(this.stringifiedStoriesCache[t]||JSON.stringify(this.relations[e][t])):t}_resolveField(e,t,r){let i=e[t];"string"==typeof i?e[t]=this.getStoryReference(r,i):Array.isArray(i)&&(e[t]=i.map(e=>this.getStoryReference(r,e)).filter(Boolean))}_insertRelations(e,t,r,i){if(Array.isArray(r)?r.find(e=>e.endsWith(`.${t}`)):r.endsWith(`.${t}`))return void this._resolveField(e,t,i);let n=e.component?`${e.component}.${t}`:t;(Array.isArray(r)?r.includes(n):r===n)&&this._resolveField(e,t,i)}iterateTree(e,t,r){let i=(e,n="")=>{if(!(!e||e._stopResolving)){if(Array.isArray(e))e.forEach((e,t)=>i(e,`${n}[${t}]`));else if("object"==typeof e)for(let a in e){let o=n?`${n}.${a}`:a;(e.component&&e._uid||"link"===e.type)&&(this._insertRelations(e,a,t,r),this._insertLinks(e,a,r)),i(e[a],o)}}};i(e.content)}async resolveLinks(e,t,r){let i=[];if(e.link_uuids){let r=e.link_uuids.length,n=[];for(let t=0;t<r;t+=50){let i=Math.min(r,t+50);n.push(e.link_uuids.slice(t,i))}for(let e=0;e<n.length;
24e++)(await this.getStories({per_page:50,language:t.language,version:t.version,starts_with:t.starts_with,by_uuids:n[e].join(",")})).data.stories.forEach(e=>{i.push(e)})}else i=e.links;i.forEach(e=>{this.links[r][e.uuid]={...e,_stopResolving:!0}})}async resolveRelations(e,t,r){let i=[];if(e.rel_uuids){let r=e.rel_uuids.length,n=[];for(let t=0;t<r;t+=50){let i=Math.min(r,t+50);n.push(e.rel_uuids.slice(t,i))}for(let e=0;e<n.length;e++)(await this.getStories({per_page:50,language:t.language,version:t.version,starts_with:t.starts_with,by_uuids:n[e].join(","),excluding_fields:t.excluding_fields})).data.stories.forEach(e=>{i.push(e)});i.length>0&&(e.rels=i,delete e.rel_uuids)}else i=e.rels;i&&i.length>0&&i.forEach(e=>{this.relations[r][e.uuid]={...e,_stopResolving:!0}})}async resolveStories(e,t,r){var i,n;let a=[];if(this.links[r]={},this.relations[r]={},"u">typeof t.resolve_relations&&t.resolve_relations.length>0&&("string"==typeof t.resolve_relations&&(a=t.resolve_relations.split(",")),await this.resolveRelations(e,t,r)),t.resolve_links&&["1","story","url","link"].includes(t.resolve_links)&&(null!=(i=e.links)&&i.length||null!=(n=e.link_uuids)&&n.length)&&await this.resolveLinks(e,t,r),this.resolveNestedRelations)for(let e in this.relations[r])this.iterateTree(this.relations[r][e],a,r);e.story?this.iterateTree(e.story,a,r):e.stories.forEach(e=>{this.iterateTree(e,a,r)}),this.stringifiedStoriesCache={},delete this.links[r],delete this.relations[r]}async cacheResponse(e,t,r,i){let n=this.helpers.stringify({url:e,params:t}),a=this.cacheProvider();if("published"===t.version&&"/cdn/spaces/me"!==e){let e=await a.get(n);if(e)return Promise.resolve(e)}return new Promise(async(o,s)=>{var l;try{let r=await this.throttle("get",e,t,i);if(200!==r.status)return s(r);let c={data:r.data,headers:r.headers};if(null!=(l=r.headers)&&l["per-page"]&&(c=Object.assign({},c,{perPage:r.headers["per-page"]?Number.parseInt(r.headers["per-page"]):0,total:r.headers["per-page"]?Number.parseInt(r.headers.total):0})),c.data.story||c.data.stories){let e=this.resolveCounter=++this.resolveCounter%1e3;await this.resolveStories(c.data,t,`${e}`),c=await this.processInlineAssets(c)}"published"===t.version&&"/cdn/spaces/me"!==e&&await a.set(n,c);let u="onpreview"===this.cache.clear&&"draft"===t.version||"auto"===this.cache.clear;return t.token&&c.data.cv&&(u&&y[t.token]&&y[t.token]!==c.data.cv&&await this.flushCache(),y[t.token]=c.data.cv),o(c)}catch(i){if(i.response&&429===i.status&&(r=typeof r>"u"?0:r+1)<this.maxRetries)return console.log(`Hit rate limit. Retrying in ${this.retriesDelay/1e3} seconds.`),await this.helpers.delay(this.retriesDelay),this.cacheResponse(e,t,r).then(o).catch(s);s(i)}})}throttledRequest(e,t,r,i){return this.client.setFetchOptions(i),this.client[e](t,r)}cacheVersions(){return y}cacheVersion(){return y[this.accessToken]}setCacheVersion(e){this.accessToken&&(y[this.accessToken]=e)}clearCacheVersion(){this.accessToken&&(y[this.accessToken]=0)}cacheProvider(){switch(this.cache.type){case"memory":return{get:e=>Promise.resolve(g[e]),getAll:()=>Promise.resolve(g),set:(e,t)=>(g[e]=t,Promise.resolve(void 0)),flush:()=>(g={},Promise.resolve(void 0))};case"custom":if(this.cache.custom)return this.cache.custom;default:return{get:()=>Promise.resolve(),getAll:()=>Promise.resolve(void 0),set:()=>Promise.resolve(void 0),flush:()=>Promise.resolve(void 0)}}}async flushCache(){return await this.cacheProvider().flush(),this.clearCacheVersion(),this}async processInlineAssets(e){if(!this.inlineAssets)return e;let t=r=>{if(!r||"object"!=typeof r)return r;if(Array.isArray(r))return r.map(e=>t(e));let i={...r};for(let r in"asset"===i.fieldtype&&Array.isArray(e.data.assets)&&(i={...i,...e.data.assets.find(e=>e.id===i.id)}),i)"object"==typeof i[r]&&(i[r]=t(i[r]));return i};return e.data.story&&(e.data.story.content=t(e.data.story.content)),e.data.stories&&(e.data.stories=e.data.stories.map(e=>(e.content=t(e.content),e))),e}}var _=r(81237),b=r(36756),S=r(48501);class w{getStoryblokClient(){return this.client}getCacheVersion(){return this.client.cacheVersion}
24getStory(e,t){return console.log("[StoryBlok] getStory : ".concat(e," - ").concat(JSON.stringify(t))),t=t||{},void 0!==window.StoryblokCacheVersion&&(t.cv=window.StoryblokCacheVersion),this.client.get("cdn/stories/".concat(e),t)}async getAllIndexedStories(e,t){t=t||{},void 0!==window.StoryblokCacheVersion&&(t.cv=window.StoryblokCacheVersion);let r=0,i=[];for(let n=1;n<15&&(1==n||r>100&&r/100+1>n);n++){t.page=n;try{let n=await this.client.get("cdn/stories/?".concat(e),t);r=null==n?void 0:n.total,i.push(...n.data.stories)}catch(e){console.error("Error fetching page ".concat(n),e);break}}return i}getStoryBySlug(e,t){return console.log("[StoryBlok] getStory : ".concat(e," - ").concat(JSON.stringify(t))),t=t||{},void 0!==window.StoryblokCacheVersion&&(t.cv=window.StoryblokCacheVersion),this.client.get("cdn/stories?by_slugs=".concat(e),t)}async getDataSource(e,t){return this.client.get("cdn/datasource_entries",{datasource:e,dimension:t,cv:new Date().getTime(),per_page:1e3})}async getStoryByUuids(e,t){let r="default"!==t?"starts_with=".concat(t,"/*&by_uuids=").concat(e):"by_uuids=".concat(e),i=(0,_.KV)()?"published":"draft";return this.client.get("cdn/stories/?".concat(r),{version:i})}getLinks(e){return e=e||{},void 0!==window.StoryblokCacheVersion&&(e.cv=window.StoryblokCacheVersion),this.client.get("cdn/links",e)}get(e,t){return t=t||{},void 0!==window.StoryblokCacheVersion&&(t.cv=window.StoryblokCacheVersion),this.client.get(e,t)}getContent(e){return"string"!=typeof e?this.client.richTextResolver.render(e).replace(/<[^>]+>/g,""):e}getDraft(e,t){return(t=t||{}).version="draft",this.get(e,t)}initEditor(e){window.storyblok&&(window.storyblok.init({accessToken:this.token}),window.storyblok.on(["change","published"],e=>{e&&!e.slugChanged&&location.reload()}),window.storyblok.on("input",t=>{t&&t.story&&t.story.content._uid===e.state.pageContent._uid&&e.setState({pageContent:t.story.content})}))}constructor(){this.getDataSourceOptions=(e,t,r)=>{let i=(0,_.Me)(w.dataSourceService+"?name="+e,!0);b.A.request(i,S.dF.GET,null,t).then(e=>{e.data.errorCode===S.O4.SUCCESS?r(e.data.data):r()}).catch(()=>r())},this.getStoryOptions=(e,t,r,i,n,a)=>{let o=(0,_.Me)(w.getStoryService+"?uuids="+e+"&locale="+t,!0);i&&n&&(o=(0,_.Me)(w.getStoryService+"?slug="+n+"&locale="+t,!0)),e&&a&&(o=(0,_.Me)(w.getStoryService+"?uuids="+e+"&locale="+t+"&resolve_relations="+a,!0)),b.A.request(o,S.dF.GET,null).then(e=>{e.data.errorCode===S.O4.SUCCESS?r(e.data.data):r()}).catch(()=>r())},this.getStoriesBySlug=(e,t,r)=>{let i=(0,_.Me)(w.getStoriesService,!0);b.A.request(i,S.dF.POST,{slug:t,locale:e},e).then(e=>{e.data.errorCode===S.O4.SUCCESS?r(e.data.data):r()}).catch(()=>r())},this.getSearchedStories=(e,t,r,i,n,a,o)=>{let s=(0,_.Me)(w.getSearchedStories+"?perPage="+t+"&locale="+e+"&page="+r+"&filterQuery="+i+"&filterFieldForTitle="+n+"&filterFieldForDescription="+a,!0);b.A.request(s,S.dF.GET,null).then(e=>{e.data.errorCode===S.O4.SUCCESS?o(e.data.data):o()}).catch(()=>o())},this.bridge=()=>(0,i.jsx)("script",{async:!0,defer:!0,src:"//app.storyblok.com/f/storyblok-latest.js"},"storyblok-bridge"),this.token="JqzHn8DxjePPHu8sCJQCIQtt",this.client=new v({accessToken:this.token,cache:{clear:"auto",type:"memory"}}),this.richTextResolver=this.client.richTextResolver}}w.dataSourceService="/api/al/sb/data-source",w.getStoryService="/api/al/sb/get-story",w.getStoriesService="/api/al/sb/get-stories",w.getSearchedStories="/api/al/sb/get-searched-story";let C=new w},89916:(e,t,r)=>{"use strict";e.exports={isBrowser:!0,classes:{URLSearchParams:r(18e3),FormData:r(54899),Blob:Blob},protocols:["http","https","file","blob","url","data"]}},90640:(e,t,r)=>{"use strict";var i=r(27496),n=r(93567),a=r(56992),o=r(8630),s=r(52801),l=r(80426);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=n.call(e,e.data,e.headers,null,e.transformRequest),l(e.headers,"Accept"),l(e.headers,"Content-Type"),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||o.adapter)(e).then(function(t){return c(e),t.data=n.call(e,t.data,t.headers,t.status,e.transformResponse),t},function(t){return!a(t)&&(c(e),t&&t.response&&(t.response.data=n.call(e,t.response.data,t.response.headers,t.response.status,e.transformResponse))),Promise.reject(t)})}},90831:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>h,Fp:()=>l,Im:()=>u,TS:()=>p,eR:()=>c,hW:()=>d,wm:()=>o,zU:()=>s});var i=r(10339);let n={city:"",number:"",street:"",zip:"",activationAddress:""},a=(0,i.Z0)({name:"internetCheckout",initialState:{company:{name:"",uid:"",numberOfEmployees:"",address:n}
24,customer:{salutation:"",firstName:"",lastName:"",email:"",phone:"",nationality:"",birthDate:"",idType:"",idNumber:"",idExpirationDate:""},deliveryAddress:n,emailId:"",landlineNumber:{portingDate:"",provider:"",simType:"",phoneNumber:"",shouldPort:!1,isDifferentPortingDate:!1,serviceType:"",productId:"",id:""},tvAppLogin:{tvAppLoginNumber:""},internetActivationDate:"",eligibilityStatus:[]},reducers:{updatePersonalDetailsV2:(e,t)=>{e.customer={...e.customer,...t.payload}},updateCompanyDetailsV2:(e,t)=>{e.company={...e.company,...t.payload}},updateTvAppLoginNumber:(e,t)=>{e.tvAppLogin={...e.tvAppLogin,...t.payload}},updateLandlineNumberV2:(e,t)=>{e.landlineNumber={...e.landlineNumber,...t.payload}},updateShippingAddressV2:(e,t)=>{e.deliveryAddress={...e.deliveryAddress,...t.payload}},updateInternetActivationDate:(e,t)=>{e.internetActivationDate=t.payload.activationDate},updateEligibilityStatus:(e,t)=>{e.eligibilityStatus=t.payload}}}),{updatePersonalDetailsV2:o,updateCompanyDetailsV2:s,updateTvAppLoginNumber:l,updateLandlineNumberV2:c,updateShippingAddressV2:u,updateInternetActivationDate:d,updateEligibilityStatus:p}=a.actions,h=a.reducer},90832:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}},91167:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var i=r(48501),n=r(95282),a=r(93764),o=r(74977),s=r(81237),l=r(30915),c=r.n(l),u=r(78730),d=r(46348);class p{constructor(){this.getNewMsisdn=(e,t)=>{let r={standard:!0,sCount:6,category:"POSTPAID"},l=(0,s.yz)()?n._W.getMsisdn:(0,a.KQ)()+n.V.getMsisdn,p=c().stringify(r);o.A.request(l+"?".concat(p),i.dF.GET,r,void 0,void 0,!0).then(t=>{t.data?e(t.data):e()}).catch(r=>{let i="cart"===t?d.V4.GETNUMBERCART:d.V4.GENUMBERSUMMARY;u.A.trackApiErrorEvent(r.response,i),e()})},this.getServiceOptions=(e,t)=>{try{let r=(0,s.yz)()?n._W.serviceOption:(0,a.KQ)()+n.V.serviceOption,l=encodeURIComponent(e),c="?offerId=".concat(l,"&promoId=").concat(t);return o.A.request(r+c,i.dF.GET,void 0,void 0,void 0,!0).then(e=>e.data)}catch(e){return e.message}}}}let h=new p},91261:(e,t,r)=>{"use strict";r.d(t,{AE:()=>p,Ay:()=>k,Cf:()=>w,Ki:()=>E,QD:()=>m,RD:()=>d,Zx:()=>l,_2:()=>f,_w:()=>u,pN:()=>_,q_:()=>h,sY:()=>g,wq:()=>C,zL:()=>c});var i=r(10339),n=r(81237),a=r(49536),o=r(46348);let s=(0,i.Z0)({name:"basket",initialState:{basketProducts:[],deviceBasket:[],email:"",manualCheckoutCartDetails:[],isNewManualCheckoutSummary:!1,aiAssistantCartDetails:[]},reducers:{initRateplans:(e,t)=>{null!==t.payload&&(e.email=t.payload.email,e.manualCheckoutCartDetails=t.payload.manualCheckoutCartDetails,e.isNewManualCheckoutSummary=t.payload.isNewManualCheckoutSummary,e.aiAssistantCartDetails=t.payload.aiAssistantCartDetails,e.aiAssistantLabels=t.payload.aiAssistantLabels,t.payload.cartId&&(e.cartId=t.payload.cartId))},addRateplan:(e,t)=>{e.manualCheckoutCartDetails.push({...t.payload.product,eshopActivationPrice:t.payload.eshopActivationPrice}),e.isNewManualCheckoutSummary=!0},removeRateplan:(e,t)=>{e.manualCheckoutCartDetails=e.manualCheckoutCartDetails.filter(e=>e.productName!==t.payload.productName)},addRatePlanInstance:(e,t)=>{let r={id:(0,n.cv)(),phoneNumber:"",portingDate:"",productId:t.payload.productName,provider:"",simType:"",shouldPort:!1,isDifferentPortingDate:!1};e.manualCheckoutCartDetails.forEach(e=>{if(e.productName===t.payload.productName){var i,n;let s=e.subscriptionDetails?[...e.subscriptionDetails]:[],l=((null==(n=e.subscriptionDetails)||null==(i=n[0])?void 0:i.serviceOption)||[]).map(r=>({...r,isAddedToCart:t.payload.addServiceOption||e.isPreselectOption,simType:a.Q.eSim}));s.push({productName:e.productName,mobileNumberPorting:r,simType:a.Q.eSim,itemCost:{itemListPrice:e.listPrice?parseFloat(e.listPrice):0,itemPrice:0,itemTotalPrice:0,eligibleDiscountType:o.lf.DISCOUNT_BP},serviceOption:l}),e.subscriptionDetails=s}})},removeRateplanInstance:(e,t)=>{e.manualCheckoutCartDetails.forEach(e=>{e.productName===t.payload.productName&&e.subscriptionDetails&&e.subscriptionDetails.splice(t.payload.index,1)})},addUpdateSubSimType:(e,t)=>
24{e.manualCheckoutCartDetails.forEach(e=>{e.productName===t.payload.productId&&e.subscriptionDetails&&e.subscriptionDetails[t.payload.index]&&(e.subscriptionDetails[t.payload.index].simType=t.payload.simType)})},addUpdateSubPortingDetails:(e,t)=>{e.manualCheckoutCartDetails.forEach(e=>{e.productName===t.payload.productId&&e.subscriptionDetails&&e.subscriptionDetails[t.payload.index]&&(e.subscriptionDetails[t.payload.index].mobileNumberPorting=t.payload.data)})},addUpdateExtraSim:(e,t)=>{e.manualCheckoutCartDetails.forEach(e=>{if(e.productName===t.payload.productId){var r;null==(r=e.subscriptionDetails)||r.map((e,r)=>{if(r==t.payload.index){var i,n,a;(null==(n=e.serviceOption)||null==(i=n[0])?void 0:i.simType)&&(e.serviceOption[0].simType=t.payload.extraSim),(null==(a=e.serviceOption)?void 0:a[0])&&(e.serviceOption[0].isAddedToCart=t.payload.isExtraSimSelected)}})}})},addRemoveAddon:(e,t)=>{e.manualCheckoutCartDetails.forEach(e=>{if(e.productName===t.payload.productName&&e.subscriptionDetails&&e.subscriptionDetails[t.payload.subscritionIndex]&&e.subscriptionDetails[t.payload.subscritionIndex].serviceOption){var r;null==(r=e.subscriptionDetails[t.payload.subscritionIndex].serviceOption)||r.forEach(e=>{e.name===t.payload.addonName&&(e.isAddedToCart=t.payload.isAddAction)})}})},updateEligibilityType:(e,t)=>{e.basketProducts.forEach(e=>{e.id===t.payload.productId&&(e.eligibleDiscountType=t.payload.eligibleDiscountType)})},updateEmailId:(e,t)=>{e.email=t.payload},addAiAssistantCartItem:(e,t)=>{let{cartId:r,...i}=t.payload,n=e.aiAssistantCartDetails.findIndex(e=>e.productId===i.productId&&e.billingMode===i.billingMode);n>=0?e.aiAssistantCartDetails[n]=i:e.aiAssistantCartDetails.push(i),r&&(e.cartId=r)},setAiAssistantCartItems:(e,t)=>{e.aiAssistantCartDetails=t.payload},removeAiAssistantCartItem:(e,t)=>{e.aiAssistantCartDetails=e.aiAssistantCartDetails.filter(e=>t.payload.billingMode?e.productId!==t.payload.productId||e.billingMode!==t.payload.billingMode:e.productId!==t.payload.productId)},clearAiAssistantCart:e=>{e.aiAssistantCartDetails=[]},syncAiAssistantCustomerStatus:(e,t)=>{e.aiAssistantCartDetails.forEach(e=>{e.isSunriseCustomer=t.payload})},setAiAssistantLabels:(e,t)=>{e.aiAssistantLabels={...e.aiAssistantLabels,...t.payload}}}}),{initRateplans:l,addRateplan:c,removeRateplan:u,removeRateplanInstance:d,addRatePlanInstance:p,addUpdateSubSimType:h,addUpdateExtraSim:m,addUpdateSubPortingDetails:f,addRemoveAddon:g,updateEligibilityType:y,updateEmailId:v,addAiAssistantCartItem:_,setAiAssistantCartItems:b,removeAiAssistantCartItem:S,clearAiAssistantCart:w,syncAiAssistantCustomerStatus:C,setAiAssistantLabels:E}=s.actions,k=s.reducer},92125:(e,t,r)=>{"use strict";var i=r(52801);function n(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,r=this;this.promise.then(function(e){if(r._listeners){for(var t=r._listeners.length;t-- >0;)r._listeners[t](e);r._listeners=null}}),this.promise.then=function(e){var t,i=new Promise(function(e){r.subscribe(e),t=e}).then(e);return i.cancel=function(){r.unsubscribe(t)},i},e(function(e,n,a){r.reason||(r.reason=new i(e,n,a),t(r.reason))})}n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.prototype.subscribe=function(e){if(this.reason)return void e(this.reason);this._listeners?this._listeners.push(e):this._listeners=[e]},n.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},n.source=function(){var e;return{token:new n(function(t){e=t}),cancel:e}},e.exports=n},92948:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>d,Eb:()=>c,X7:()=>o,Zz:()=>u,aQ:()=>s,cE:()=>a,nQ:()=>l,qv:()=>n});let i=(0,r(10339).Z0)({name:"smartVoice",initialState:{smartVoiceCartItems:{packageDetails:[],phNumberDetails:[],subscriptionDetails:[]}},reducers:{initSmartVoiceProducts:(e,t)=>{e.smartVoiceCartItems=t.payload.items},addPhNoProduct:(e,t)=>{var r,i,n,a;(null==(i=e.smartVoiceCartItems)||null==(r=i.phNumberDetails)?void 0:r.length)>0?(e.smartVoiceCartItems.phNumberDetails=e.smartVoiceCartItems.phNumberDetails.filter(e=>e.id!==t.payload.phNoData.id),null==(n=e.smartVoiceCartItems)||n.phNumberDetails.push(t.payload.phNoData)):null==(a=e.smartVoiceCartItems)||a.phNumberDetails.push(t.payload.phNoData)},removePhNoProduct:(e,t)=>
24{var r,i;(null==(i=e.smartVoiceCartItems)||null==(r=i.phNumberDetails)?void 0:r.length)>0&&(e.smartVoiceCartItems.phNumberDetails=e.smartVoiceCartItems.phNumberDetails.filter(e=>{var r;return e.id!==(null==(r=t.payload.phNoData)?void 0:r.id)}))},addSubscriptionProduct:(e,t)=>{var r,i,n,a;(null==(i=e.smartVoiceCartItems)||null==(r=i.subscriptionDetails)?void 0:r.length)>0?(e.smartVoiceCartItems.subscriptionDetails=e.smartVoiceCartItems.subscriptionDetails.filter(e=>e.id!==t.payload.subData.id),null==(n=e.smartVoiceCartItems)||n.subscriptionDetails.push(t.payload.subData)):null==(a=e.smartVoiceCartItems)||a.subscriptionDetails.push(t.payload.subData)},removeSubscriptionProduct:(e,t)=>{var r,i;(null==(i=e.smartVoiceCartItems)||null==(r=i.subscriptionDetails)?void 0:r.length)>0&&(e.smartVoiceCartItems.subscriptionDetails=e.smartVoiceCartItems.subscriptionDetails.filter(e=>{var r;return e.id!==(null==(r=t.payload.subData)?void 0:r.id)}))},addPackage:(e,t)=>{e.smartVoiceCartItems.packageDetails.push(t.payload.packageData)},removePackage:(e,t)=>{e.smartVoiceCartItems.packageDetails=e.smartVoiceCartItems.packageDetails.filter(e=>{var r;return e.id!==(null==(r=t.payload.packageData)?void 0:r.id)})}}}),{initSmartVoiceProducts:n,addPhNoProduct:a,removePhNoProduct:o,addSubscriptionProduct:s,removeSubscriptionProduct:l,addPackage:c,removePackage:u}=i.actions,d=i.reducer},93023:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},93236:(e,t,r)=>{e.exports=r(41218)},93567:(e,t,r)=>{"use strict";var i=r(27496),n=r(8630);e.exports=function(e,t,r,a){var o=this||n;return i.forEach(a,function(i){e=i.call(o,e,t,r)}),e}},93764:(e,t,r)=>{"use strict";r.d(t,{KQ:()=>o,MX:()=>c,Ur:()=>s,Vh:()=>l});var i=r(95282),n=r(82909).hp,a=r(99742);let o=()=>i.C1.prod,s=()=>i.U6.prod,l=()=>i.ON.prod,c=()=>{let e=n.from("".concat(a.env.ESHOP_3SCALE_CLIENTID,":").concat(a.env.ESHOP_3SCALE_CLIENTSECRET)).toString("base64");return"Basic ".concat(e)}},95282:(e,t,r)=>{"use strict";r.d(t,{C1:()=>i,ON:()=>a,U6:()=>n,V:()=>o,_W:()=>s});let i={t01:"https://www-t01.sunrise.ch",t02:"https://www-t02.sunrise.ch",t03:"https://www-t03.sunrise.ch",t04:"https://www-t04.sunrise.ch",prod:"https://www.sunrise.ch",dev:"http://localhost:4200"},n={t01:"27749d21",t02:"be54d457",t03:"1a3e3caa",t04:"8e5d1d62",prod:"9910fc80",dev:"1a3e3caa"},a={t01:"https://auth-test.sunrise.ch/auth/realms/eShop",t02:"https://auth-test.sunrise.ch/auth/realms/eShop-T02",t03:"https://auth-test.sunrise.ch/auth/realms/eShop-T03",t04:"https://auth-test.sunrise.ch/auth/realms/eShop-T04",prod:"https://auth.sunrise.ch/auth/realms/eShop",dev:"https://auth-test.sunrise.ch/auth/realms/eShop-T03"},o={getOffers:"/inf/catsbo-bff/catalogue/v1/offer",updateCart:"/inf/cartsbo-bff/carts/v1/:cartId",createCart:"/inf/cartsbo-bff/carts/v1",getCart:"/inf/cartsbo-bff/carts/v1/:cartId",getMsisdn:"/inf/ressbo-bff/resource/v1/msisdns",siteDetail:"/inf/custsbo-bff/customer/v1/siteDetails",serviceOption:"/inf/catsbo-bff/catalogue/v1/service-options",getCustomerDetails:"/inf/custsbo-bff/customer/v1/siteDetails",mergeCart:"/inf/cartsbo-sec-bff/carts/v1/:cartId/merge?siteId=:siteId",getCartProtected:"/inf/cartsbo-sec-bff/carts/v1/:cartId",updateCartProtected:"/inf/cartsbo-sec-bff/carts/v1/:cartId",submitCart:"/inf/cartsbo-sec-bff/carts/v1/:cartId/submit",submitCartUnprotected:"/inf/cartsbo-bff/carts/v1/:cartId/submit"},s={getOffers:"https://interface-test.digitalapps.ocp-t-dmz.swi.srse.net/catsbo-bff/t03/catalogue/v1/offer",updateCart:"https://interface-test.digitalapps.ocp-t-dmz.swi.srse.net/cartsbo-bff/t03/carts/v1/:cartId",createCart:"https://interface-test.digitalapps.ocp-t-dmz.swi.srse.net/cartsbo-bff/t03/carts/v1",getCart:"https://interface-test.digitalapps.ocp-t-dmz.swi.srse.net/cartsbo-bff/t03/carts/v1/:cartId",getMsisdn:"https://interface-test.digitalapps.ocp-t-dmz.swi.srse.net/ressbo-bff/t03/resource/v1/msisdns",siteDetail:"https://interface-test.digitalapps.ocp-t-dmz.swi.srse.net/custsbo-bff/t03/customer/v1/siteDetails",serviceOption:"https://interface-test.digitalapps.ocp-t-dmz.swi.srse.net/catsbo-bff/t03/catalogue/v1/service-options",getCustomerDetails:"https://interface-test.digitalapps.ocp-t-dmz.swi.srse.net/custsbo-bff/t03/customer/v1/siteDetails",mergeCart:"https://interface-test.digitalapps.ocp-t-dmz.swi.srse.net/cartsbo-sec-bff/t03/carts/v1/:cartId/merge?siteId=:siteId",getCartProtected:"https://interface-test.digitalapps.ocp-t-dmz.swi.srse.net/cartsbo-sec-bff/t03/carts/v1/:cartId",updateCartProtected:"https://interface-test.digitalapps.ocp-t-dmz.swi.srse.net/cartsbo-sec-bff/t03/carts/v1/:cartId",submitCart:"https://interface-test.digitalapps.ocp-t-dmz.swi.srse.net/cartsbo-sec-bff/t03/carts/v1/:cartId/submit",submitCartUnprotected:"https://interface-test.digitalapps.ocp-t-dmz.swi.srse.net/cartsbo-bff/t03/carts/v1/:cartId/submit"}},95295:(e,t,r)=>{"use strict";var i="undefined"!=typeof Symbol&&Symbol,n=r(77785);e.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&n()}},96207:(e,t,r)=>{"use strict";r.d(t,{$T:()=>l,Aq:()=>o,Ay:()=>c});var i=r(10339);let n={contactDetails:{salutation:"Mr.",firstName:"",lastName:"",email:"",countryCode:"",phoneNumber:"",birthDate:"",nationality:"",isMobileNumber:!0,individualIdentification:{identificationId:"",identificationType:"",issuingAuthority:"",validFor:{endDateTime:""}}}},a=(0,i.Z0)({name:"eshopcontactDetails",initialState:n,reducers:{updatecontactDetails:(e,t)=>{var r,i,n;e.contactDetails={...e.contactDetails,...t.payload,individualIdentification:t.payload.individualIdentification?{...e.contactDetails.individualIdentification,...t.payload.individualIdentification,validFor:(null==(r=t.payload.individualIdentification)?void 0:r.validFor)?{...null==(i=e.contactDetails.individualIdentification)?void 0:i.validFor,...t.payload.individualIdentification.validFor}:(null==(n=e.contactDetails.individualIdentification)?void 0:n.validFor)||{endDateTime:""}}:e.contactDetails.individualIdentification}},initializecontactDetails:(e,t)=>{e.contactDetails={...n.contactDetails,...t.payload}},updatePhoneNumberData:(e,t)=>{var r,i,n;e.contactDetails={...e.contactDetails,phoneNumber:null!=(r=t.payload.phoneNumber)?r:e.contactDetails.phoneNumber,countryCode:null!=(i=t.payload.countryCode)?i:e.contactDetails.countryCode,isMobileNumber:null!=(n=t.payload.isMobileNumber)?n:e.contactDetails.isMobileNumber}}}}),{updatecontactDetails:o,initializecontactDetails:s,updatePhoneNumberData:l}=a.actions,c=a.reducer},97594:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>h,Mh:()=>
24n,Ql:()=>a,TE:()=>c,TM:()=>l,hT:()=>o,jJ:()=>d,lW:()=>p,uG:()=>u,wj:()=>s});let i=(0,r(10339).Z0)({name:"progress",initialState:{activeStep:"",steps:[],completedSteps:[],visitedSteps:[],horizontalSteps:[],activeHorizontalStep:"",verticalSteps:{},isNewCustomerSteps:!1},reducers:{initStepper:(e,t)=>{e.activeStep=t.payload.activeStep,e.steps=t.payload.steps},UpdateCustomerType:(e,t)=>{e.isNewCustomerSteps=t.payload.isNewCustomerSteps,t.payload.stepName?e.activeHorizontalStep=t.payload.stepName:e.activeHorizontalStep="setup"},UpdateActiveStep:(e,t)=>{e.activeStep=t.payload.activeStep},addCompletedStep:(e,t)=>{e.completedSteps.includes(t.payload.completedStep)||e.completedSteps.push(t.payload.completedStep)},addVisitedStep:(e,t)=>{e.visitedSteps.includes(t.payload.visitedStep)||e.visitedSteps.push(t.payload.visitedStep)},initAllStepper:(e,t)=>{e.horizontalSteps=t.payload.horizontalSteps,e.verticalSteps=t.payload.verticalSteps,e.activeHorizontalStep=t.payload.activeHorizontalStep,e.isNewCustomerSteps=t.payload.isNewCustomerSteps},setActiveHorizontalStep:(e,t)=>{var r;let{stepKey:i}=t.payload,n=null==e||null==(r=e.horizontalSteps)?void 0:r.findIndex(e=>(null==e?void 0:e.stepKey)===i);-1!==n&&(e.activeHorizontalStep=i,e.horizontalSteps[n].isVisited=!0)},goToNextStep:e=>{let t=null==e?void 0:e.activeHorizontalStep,r=null==e?void 0:e.verticalSteps[t];if(!r)return;let i=r.findIndex(e=>null==e?void 0:e.isExpanded);if(-1!==i)if(r[i].isSectionCompleted=!0,r[i].isVisited=!0,r[i].isExpanded=!1,i+1<(null==r?void 0:r.length)){let e=r[i+1];e.isExpanded=!0,e.isVisited=!0}else{var n,a;let r=null==e||null==(n=e.horizontalSteps)?void 0:n.findIndex(e=>(null==e?void 0:e.stepKey)===t);if(r+1<(null==e||null==(a=e.horizontalSteps)?void 0:a.length)){e.horizontalSteps[r].isCompleted=!0,e.horizontalSteps[r].isVisited=!0;let t=null==e?void 0:e.horizontalSteps[r+1];t.isVisited=!0,e.activeHorizontalStep=null==t?void 0:t.stepKey;let i=null==e?void 0:e.verticalSteps[null==t?void 0:t.stepKey];i&&(null==i?void 0:i.length)>0&&(i[0].isExpanded=!0,i[0].isVisited=!0)}}},toggleVerticalStep:(e,t)=>{let r=null==e?void 0:e.activeHorizontalStep,i=null==e?void 0:e.verticalSteps[r];if(!i)return;let n=i.find(e=>e.stepKey===t.payload.stepKey);if(((null==n?void 0:n.isSectionCompleted)||(null==n?void 0:n.isVisited))&&!(null==n?void 0:n.isExpanded))for(let e of(n.isExpanded=!0,i))e.stepKey!==t.payload.stepKey&&(e.isExpanded=!1)}}}),{initStepper:n,UpdateActiveStep:a,addCompletedStep:o,addVisitedStep:s,initAllStepper:l,setActiveHorizontalStep:c,UpdateCustomerType:u,goToNextStep:d,toggleVerticalStep:p}=i.actions,h=i.reducer},98857:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},99212:(e,t,r)=>{"use strict";r.d(t,{$j:()=>b,Ay:()=>_,Bw:()=>y,N0:()=>u,QO:()=>f,Xq:()=>h,ks:()=>v,sg:()=>m});var i=r(10339),n=r(44627),a=r(78730),o=r(35773);let s=(0,i.Z0)({name:"authSlice",initialState:{siteDetails:[],getSiteIdError:!1,siteIdApiError:{},isApiInProgress:!1,selectedSiteId:{},inputValue:"",itemSelected:!1,successMessageSiteSelection:!1,showSiteSelectionModel:!1},reducers:{updatesiteDetailList:(e,t)=>{e.siteDetails=t.payload,e.siteIdApiError={},e.getSiteIdError=!1},getSiteIdError:(e,t)=>{e.getSiteIdError=t.payload},apiError:(e,t)=>{e.siteIdApiError=t.payload},isApiInProgress:(e,t)=>{e.isApiInProgress=t.payload},resetSiteDetails:e=>{e.siteDetails=[],e.siteIdApiError={},e.getSiteIdError=!1,e.selectedSiteId={}},selectedSiteId:(e,t)=>{e.selectedSiteId=t.payload},setInputValue:(e,t)=>{e.inputValue=t.payload},setItemSelected:(e,t)=>{e.itemSelected=t.payload},showSuccessMessageSiteSelection:(e,t)=>{e.successMessageSiteSelection=t.payload},hideModel:(e,t)=>{e.showSiteSelectionModel=t.payload}}}),{initContent:l,updatesiteDetailList:c,getSiteIdError:u,apiError:d,isApiInProgress:p,resetSiteDetails:h,selectedSiteId:m,setInputValue:f,setItemSelected:g,showSuccessMessageSiteSelection:y,hideModel:v}=s.actions,_=s.reducer,b=(e,t)=>async r=>{try{r(p(!0)),r(u(!1));let t=await n.A.siteDetailList(e);if(t.error)throw t.error;let i=(t||[]).map(e=>({...e,displayValue:"".concat(e.siteId," - ").concat(e.companyName||e.name)}));r(c(i))}catch(e){a.A.trackApiErrorEvent(e.response,t,o.q.AUTH_CUSTOMER_TYPE),r(d(e)),r(u(!0))}finally{r(p(!1))}}}},e=>{var t=t=>e(e.s=t);e.O(0,[46593,38792],()=>(t(92),t(6763))),_N_E=e.O()}]);
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.