1import{b as ke,c as Te}from"./chunk-5VLIHN6G.js";import{a as pe,b as ge}from"./chunk-OKC6FPX2.js";import"./chunk-H6RLFBCZ.js";import{b as fe,c as Q,d as he}from"./chunk-4VCBNYNF.js";import{a as Pe}from"./chunk-LEOK3TBM.js";import{a as ve}from"./chunk-N2MVBGGZ.js";import"./chunk-V3EKAILP.js";import"./chunk-OS3CABJ4.js";import"./chunk-Y2QBTOIT.js";import"./chunk-WDX5GBAZ.js";import"./chunk-R3ABRJGS.js";import{a as ce}from"./chunk-4AUMSLPO.js";import"./chunk-GGQ7LRWG.js";import"./chunk-W4BNGQYG.js";import"./chunk-26QG2NYG.js";import{F as de,c as ie,e as j,h as ne,i as oe,j as B,l as re,n as ae,r as se,u as le}from"./chunk-IT7TKBQK.js";import{a as Ce,b as Se}from"./chunk-54JU5EOI.js";import{a as xe}from"./chunk-CIG6VMOU.js";import{e as ye,q as we}from"./chunk-ZIEJAFXK.js";import"./chunk-CGXOZM2U.js";import{a as me,b as ue}from"./chunk-UFP4MN6V.js";import{a as be}from"./chunk-NJ4UKWCM.js";import{b as _e}from"./chunk-SHNDZLFX.js";import"./chunk-WPILDL5A.js";import{l as te}from"./chunk-QOPGEPEN.js";import{O as J,R as Z,S as ee,U as L,n as Y,t as z}from"./chunk-4FDDMESX.js";import{Bb as d,Ec as _,Fa as h,Fc as p,Ga as b,Hb as X,N as T,Qb as K,Rb as E,Sc as m,Tc as $,Uc as V,Vc as S,Wb as v,gc as g,hc as U,na as O,oc as x,pc as F,pd as q,qc as W,qd as R,rc as w,sa as y,sc as P,tc as a,ub as G,uc as l,vc as f,yd as H,zc as N}from"./chunk-FGMC3YKI.js";import{a as k,b as A}from"./chunk-TWZW5B45.js";function Me(r,o){if(r&1&&(a(0,"div",2)(1,"div",5)(2,"span",6),m(3," Upgrade/Downgrade "),l(),a(4,"div",7)(5,"span",8),m(6),l(),a(7,"span",9),m(8),l()()()()),r&2){let e=o;d(6),S("",e.product.groupname," - ",e.product.name,""),d(2),$(e.domain)}}function Ae(r,o){r&1&&f(0,"five-cents-skeleton-summary-table",3)}function Ue(r,o){r&1&&f(0,"fivecents-sub-account-permissions",3)}function $e(r,o){if(r&1&&(a(0,"div",45),f(1,"h4",46),l()),r&2){let e=o.$implicit;d(),g("innerHTML",e,G)}}function Ve(r,o){if(r&1&&(a(0,"div",null,0)(2,"div",44),w(3,$e,2,1,"div",45,W),l()()),r&2){let e=p(3);d(3),P(e.warnings)}}function qe(r,o){if(r&1){let e=N();a(0,"tr")(1,"td",47),m(2),l(),a(3,"td",48),m(4),l(),a(5,"td",49)(6,"div",50)(7,"button",51),_("click",function(){let i=h(e),t=i.$implicit,c=i.$index,s=p(4);return b(s.incOrDec(c,s.Number(s.orderForm.controls[t.id].value),"upgrade",!1,s.getProduct(t.id),t.option))}),f(8,"img",52),l(),a(9,"input",53),_("keydown",function(i){let t=h(e),c=t.$implicit,s=t.$index,u=p(4);return b(u.onKeyDown(i,s,"upgrade",u.getProduct(c.id),c.option))}),l(),a(10,"button",54),_("click",function(){let i=h(e),t=i.$implicit,c=i.$index,s=p(4);return b(s.incOrDec(c,s.Number(s.orderForm.controls[t.id].value),"upgrade",!0,s.getProduct(t.id)))}),f(11,"img",55),l()()()()}if(r&2){let e,n,i=o.$implicit,t=p(4);d(2),V(" ",i.option," "),d(2),S(" ",i.value," x ",(e=t.getOption(i.id,0))==null?null:e.name," "),d(3),g("disabled",t.isAtMinQty(i.option,t.getProduct(i.id),t.Number(t.orderForm.controls[i.id].value))||t.loading)("matTooltip",t.getDecrementTooltip(i.option,t.getProduct(i.id),t.Number(t.orderForm.controls[i.id].value)))("matTooltipDisabled",!t.getDecrementTooltip(i.option,t.getProduct(i.id),t.Number(t.orderForm.controls[i.id].value))),d(),U("opacity",(t.isAtMinQty(i.option,t.getProduct(i.id),t.Number(t.orderForm.controls[i.id].value))?.5:1)||(t.loading?.5:1)),d(),g("formControlName",i.id)("readonly",t.loading),d(),g("disabled",!!(t.getProduct(i.id)&&((n=t.getProduct(i.id))==null?null:n.qtymaximum)!==0&&((n=t.getProduct(i.id))==null?null:n.qtymaximum)===t.Number(t.orderForm.controls[i.id].value))||t.loading)}}function Re(r,o){if(r&1&&w(0,qe,12,11,"tr",null,F),r&2){let e=p(3);P(e.clientProducts[0].configoptions.configoption)}}function Le(r,o){r&1&&(a(0,"tr")(1,"td",56),f(2,"ngx-skeleton-loader",57),l(),a(3,"td",58),f(4,"ngx-skeleton-loader",57),l(),a(5,"td",59),f(6,"ngx-skeleton-loader",57),l()())}function je(r,o){if(r&1&&w(0,Le,7,0,"tr",null,F),r&2){let e=p(3);P(e.skeletonArray)}}function Be(r,o){if(r&1&&(a(0,"div",36)(1,"span",60),m(2),l(),a(3,"div",32)(4,"button",61),m(5),l()()()),r&2){let e=o;d(2),S(" ",e.product.name," ",e.product.groupname,""),d(3),V(" ",e.domainstatus," ")}}function Qe(r,o){if(r&1){let e=N();a(0,"div",62)(1,"div",63)(2,"span",64),m(3),l(),a(4,"span",65)(5,"span",66),m(6,"Current Config:"),l(),m(7),l()(),a(8,"div",67)(9,"div",5)(10,"button",68),_("click",function(){let i=h(e),t=i.$implicit,c=i.$index,s=p(4);return b(s.incOrDec(c,s.Number(s.orderForm.controls[t.id].value),"upgrade",!1,s.getProduct(t.id),t.option))}),f(11,"img",69),l(),a(12,"input",70),_("keydown",function(i){let t=h(e),c=t.$implicit,s=t.$index,u=p(4);return b(u.onKeyDown(i,s,"upgrade",u.getProduct(c.id),c.option))}),l(),a(13,"button",71),_("click",function(){let i=h(e),t=i.$implicit,c=i.$index,s=p(4);return b(s.incOrDec(c,s.Number(s.orderForm.controls[t.id].value),"upgrade",!0,s.getProduct(t.id)))}
1),f(14,"img",72),l()(),a(15,"span",73),m(16,"New Configuration"),l()()()}if(r&2){let e,n,i=o.$implicit,t=p(4);d(3),$(i.option),d(4),S(" ",i.value,` x 2`,((e=t.getOption(i.id,0))==null?null:e.name)==="Video Manager Advanced Encoding"?"VMAE":(e=t.getOption(i.id,0))==null?null:e.name,` 3`),d(3),g("disabled",t.isAtMinQty(i.option,t.getProduct(i.id),t.Number(t.orderForm.controls[i.id].value))||t.loading)("matTooltip",t.getDecrementTooltip(i.option,t.getProduct(i.id),t.Number(t.orderForm.controls[i.id].value)))("matTooltipDisabled",!t.getDecrementTooltip(i.option,t.getProduct(i.id),t.Number(t.orderForm.controls[i.id].value))),d(),U("opacity",(t.isAtMinQty(i.option,t.getProduct(i.id),t.Number(t.orderForm.controls[i.id].value))?.5:1)||(t.loading?.5:1)),d(),g("formControlName",i.id)("disabled",!0)("readonly",t.loading),d(),g("disabled",!!(t.getProduct(i.id)&&((n=t.getProduct(i.id))==null?null:n.qtymaximum)!==0&&((n=t.getProduct(i.id))==null?null:n.qtymaximum)===t.Number(t.orderForm.controls[i.id].value))||t.loading)}}function Ge(r,o){if(r&1&&w(0,Qe,17,12,"div",62,F),r&2){let e=p(3);P(e.clientProducts[0].configoptions.configoption)}}function Xe(r,o){if(r&1){let e=N();v(0,Ve,5,0,"div"),a(1,"form",10),_("ngSubmit",function(){h(e);let i=p(2);return b(i.submitOrder())}),a(2,"div",11)(3,"div",5)(4,"span",12),m(5,"Configure Plan"),l(),a(6,"span",13),m(7,"Upgrade/Downgrade the configurable options on this product."),l()(),f(8,"div",14),a(9,"div",15)(10,"table",16)(11,"thead",17)(12,"tr")(13,"th",18),m(14," CDN Bandwidth "),l(),a(15,"th",19),m(16," Current Configuration "),l(),a(17,"th",20),m(18," New Configuration "),l()()(),a(19,"tbody",21),v(20,Re,2,0)(21,je,2,0),l()()(),a(22,"div",22)(23,"span",23),m(24,"NOTE :"),l(),a(25,"span",13),m(26,"We offer an instant configurable options downgrade, however, you'll be charged accordingly if the usage limit is exceeded beyond the new configuration value. For your convenience, a downgrade on the 1st of the month is recommended."),a(27,"span",24),m(28," Please note that no credit is provided for a downgrade. As far as the upgrades are concerned, a full price is charged even if an upgrade is made on the last day of the month as it is not pro-rated."),l()()()(),a(29,"div",25)(30,"button",26),_("click",function(){h(e);let i=p(2);return b(i.cancelOrder())}),m(31," Cancel "),l(),a(32,"button",27),m(33," Upgrade "),l()()(),a(34,"div",28)(35,"div",29)(36,"div",30)(37,"div",31)(38,"div",32),f(39,"img",33),l(),a(40,"span",34),m(41,"Upgrade/Downgrade"),l()()(),a(42,"div",35),v(43,Be,6,3,"div",36),q(44,"async"),a(45,"div",37)(46,"span",38),m(47,"Configure Plan"),l(),a(48,"form",39),v(49,Ge,2,0),l()()(),a(50,"form",40),_("ngSubmit",function(){h(e);let i=p(2);return b(i.submitOrder())}),a(51,"div",41)(52,"div",42)(53,"button",43),m(54," Upgrade "),l()()()()()()}if(r&2){let e,n=p(2);x(n.warnings.length?0:-1),d(),g("formGroup",n.orderForm),d(19),x(n.tableIsReady?20:21),d(10),g("disabled",n.loading||!n.orderForm.dirty||n.orderForm.invali
3d),d(2),g("disabled",n.loading||n.submitting||!n.orderForm.dirty||n.orderForm.invalid),d(11),x((e=R(44,9,n.serviceDetails$))?43:-1,e),d(5),g("formGroup",n.orderForm),d(),x(n.tableIsReady?49:-1),d(),g("formGroup",n.orderForm)}}function Ke(r,o){if(r&1&&v(0,Ue,1,0,"fivecents-sub-account-permissions",3)(1,Xe,55,11),r&2){let e=p();x(e.hasEmailPermission?1:0)}}var D=class r{constructor(o){this.activatedRoute=o}serviceIdToUpgrade;breadcrumbsData=[];loading=!1;clientProducts=[];productsList=[];orderForm=new B({});skeletonArray=Array.from({length:10});serviceToUpgrade;hasEmailPermission=!1;showPermissionChecked=!1;Number=Number;store=y(te);actions$=y(ke);toastr=y(ce);homeService=y(be);cdr=y(H);router=y(Z);serviceDetails$=this.store.select(_e);isSunAccountDetails=this.store.select(xe);ngOnInit(){this.activatedRoute.paramMap.subscribe(o=>{let e=o.get("serviceId");e&&(this.serviceIdToUpgrade=parseInt(e,10),this.breadcrumbsData=[{text:"My-Services",route:"home/my-services"},{text:`#${this.serviceIdToUpgrade}`,route:`home/my-services/${this.serviceIdToUpgrade}`},{text:"Upgrade/Downgrade",route:""}])}),this.isSunAccountDetails.pipe(T(1)).subscribe(o=>{if(o){let n=o?.contacts?.contact?.[0]?.permissions??[],i=Array.isArray(n)?n:n.split(",");this.hasEmailPermission=i.includes("orders")}else{let e=localStorage.getItem("isSubContact")==="true",n=localStorage.getItem("contactResponse");if(e&&n)try{let c=JSON.parse(n)?.contacts.contact?.[0]?.permissions??[],s=Array.isArray(c)?c:c.split(",");this.hasEmailPermission=s.includes("orders")}catch(i){console.error("Invalid contactResponse from localStorage",i),this.hasEmailPermission=!1}else this.hasEmailPermission=!0}this.hasEmailPermission&&(this.hasEmailPermission=!0,this.handleRouteParams()),this.showPermissionChecked=!0})}handleRouteParams(){this.serviceIdToUpgrade&&!isNaN(this.serviceIdToUpgrade)?(this.checkIfUpgradeInProgress(),this.get
3Service()):(this.toastr.error("Service ID is missing in the route"),this.router.navigate(["/home"]))}checkIfUpgradeInProgress(){let o={serviceid:this.serviceIdToUpgrade,calconly:!0,paymentmethod:"stripe",type:"configoptions",configoptions:{}};this.homeService.upgradeProduct(o).subscribe(e=>{e.result==="success"?e.upgradeinprogress===1&&this.addWarning(this.upgradeInProgressErrorMessage):(this.toastr.error(e.message||"An error occured, please try again later"),this.loading=!1)},e=>{this.toastr.error(e.message||"An error occured, please try again later"),this.loading=!1})}upgradeInProgressErrorMessage=` 4 You cannot currently upgrade or downgrade this product because an invoice has already been generated for the next renewal. 5 To proceed, please first pay the outstanding invoice and then you will be able to upgrade or downgrade immediately following that and be charged the difference or credited as appropriate. 6 If you believe you are receiving this message in error, please submit a trouble ticket. 7 `;warnings=[];addWarning(o){this.warnings.includes(o)||this.warnings.push(o);let e=document.querySelector(".alert-tag");e&&e.scrollIntoView({behavior:"smooth"})}removeWarning(o){o>-1&&o<this.warnings.length&&this.warnings.splice(o,1)}getService(){this.loading=!0,this.store.dispatch(he({serviceId:this.serviceIdToUpgrade})),this.actions$.pipe(Te(fe,Q),T(1)).subscribe(o=>{if(o.type===Q.type){this.toastr.error("An error occurred while fetching service"),this.router.navigate(["/home"]),this.loading=!1;return}this.serviceDetails$.pipe(T(1)).subscribe(e=>{if(!e||e.id!==this.serviceIdToUpgrade){this.toastr.error("Service not found"),this.router.navigate(["/home"]),this.loading=!1;return}this.serviceToUpgrade=e,this.checkIfTrial(),this.loading=!1})})}checkIfTrial(){let o=this.serviceToUpgrade?.domainstatus;if(o==="Cancelled"||o==="Terminated"){this.toastr.warning("You cannot upgrade or downgrade a cancelled or terminated service"),this.router.navigate(["/home"]);return}this.serviceToUpgrade&&this.serviceToUpgrade.product?.groupname?.toLowerCase()==="trial"?(this.toastr.warning("You cannot upgrade or downgrade a trial service"),this.router.navigate(["/home"])):this.getProductsList()}getProductsList(){let o={serviceid:this.serviceIdToUpgrade};this.loading=!0,this.homeService.getClientProducts(o).subscribe({next:e=>{let n={pid:e.products.product[0].pid};this.clientProducts=e.products.product;let i=this.clientProducts.map(t=>A(k({},t),{configoptions:A(k({},t.configoptions),{configoption:t.configoptions.configoption.filter(c=>c.hidden!==1)})}));this.clientProducts=i,this.homeService.getProductDetails(n).subscribe({next:t=>{this.loading=!1,this.productsList=t.products.product,this.setOrderForm()},error:t=>{console.log(t),this.toastr.error("An error occurred while fetching client details, please reload the page."),this.loading=!1}})},error:e=>{console.log(e),this.toastr.error("An error occurred while fetching client details, please reload the page."),this.loading=!1}})}get tableIsReady(){let o=Array.isArray(this.clientProducts)&&this.clientProducts.length>0,e=Array.isArray(this.productsList)&&this.productsList.length>0;return o&&e&&!this.loading}getProduct(o){return this.productsList?.length?this.productsList[0].configoptions.configoption.find(n=>n.id===o):void 0}getOption(o,e){return this.getProduct(o)?.options.option[e]}streamNamesOptionLabel="stream names";streamNameInUseTooltip="You cannot downgrade below the number of stream names currently in use. Delete the stream names you no longer need first, then try again.";isStreamNamesOption(o){return(o??"").trim().toLowerCase()===this.streamNamesOptionLabel}get usedStreamNames(){return this.serviceToUpgrade?.counts?.stream?.total??0}get availableStreamNames(){return this.serviceToUpgrade?.counts?.stream?.available??0}getEffectiveMinQty(o,e){return e?this.isStreamNamesOption(o)?Math.max(e.qtyminimum,this.usedStreamNames):e.qtyminimum:0}isAtMinQty(o,e,n){return e?n<=this.getEffectiveMinQty(o,e):!1}getDecrementTooltip(o,e,n){return!e||!this.isStreamNamesOption(o)?"":this.usedStreamNames>e.qtyminimum&&n<=this.usedStreamNames?this.streamNameInUseTooltip:""}incOrDec(o,e,n,i,t,c){if(!t){this.toastr.warning("Product is undefined");return}let s=i?e+1:e-1;s<0&&(s=0,this.toastr.warning("Quantity cannot be less than 0"));let u=this.getEffectiveMinQty(c,t);if(!i&&e<=u){this.toastr.warning(u>t.qtyminimum?this.streamNameInUseTooltip:`Quantity cannot be less than ${t.qtyminimum}`);return}if(t.qtyminimum===0||t.qtymaximum===0){s<u&&(s=u,this.toastr.warning(this.streamNameInUseTooltip)),this.orderForm.controls[t.id].setValue(s),this.orderForm.controls[t.id].markAsTouched(),this.orderForm.controls[t.id].markAsDirty();return}if(t.qtyminimum<=0||t.qtymaximum<=0){console.error("Invalid qtyminimum or qtymaximum. Both must be greater than 0.");return}if(t.qtyminimum>
7t.qtymaximum){console.error("qtyminimum cannot be greater than qtymaximum.");return}s<u?(s=u,this.toastr.warning(u>t.qtyminimum?this.streamNameInUseTooltip:`Quantity cannot be less than ${t.qtyminimum}`)):s>t.qtymaximum&&(s=t.qtymaximum,this.toastr.warning(`Quantity cannot be more than ${t.qtymaximum}`)),this.orderForm.controls[t.id].setValue(s),this.orderForm.controls[t.id].markAsTouched(),this.orderForm.controls[t.id].markAsDirty()}onKeyDown(o,e,n,i,t){if(!i){this.toastr.warning("Product is undefined");return}o.key==="ArrowUp"?(o.preventDefault(),this.incOrDec(e,Number(this.orderForm.controls[i?.id].value),n,!0,i,t),this.orderForm.controls[i?.id].markAsTouched(),this.orderForm.controls[i?.id].markAsDirty()):o.key==="ArrowDown"&&(o.preventDefault(),this.incOrDec(e,Number(this.orderForm.controls[i?.id].value),n,!1,i,t),this.orderForm.controls[i?.id].markAsTouched(),this.orderForm.controls[i?.id].markAsDirty())}setOrderForm(){let o=this.clientProducts[0].configoptions.configoption,e={};o.forEach(n=>{let i=String(n.id),t=Number(n.value)||0,c=[j.required];this.isStreamNamesOption(n.option)&&c.push(j.min(this.usedStreamNames)),e[i]=new re(t,c)}),this.orderForm=new B(e),this.cdr.detectChanges(),this.markAsPristineAndUntouched(this.orderForm)}markAsPristineAndUntouched(o){Object.keys(o.controls).forEach(e=>{let n=o.get(e);n&&(n.markAsPristine(),n.markAsUntouched())})}submitOrder(){if(this.orderForm.valid){this.submitting=!0;let o={};Object.keys(this.orderForm.controls).forEach(e=>{let n=this.orderForm.get(e);n&&n.touched&&(o[e]=n.value)}),this.calculateCart(o)}}submitting=!1;calculateCart(o){let e={serviceid:this.serviceIdToUpgrade,calconly:!0,paymentmethod:"stripe",type:"configoptions",configoptions:o};this.homeService.upgradeProduct(e).subscribe(n=>{n.result==="success"?n.upgradeinprogress===1?(this.toastr.warning("An upgrade is currently in progress."),this.addWarning(this.upgradeInProgressErrorMessage)):(sessionStorage.setItem("upgrade_product_payload",JSON.stringify(e)),this.processOrder(o,n)):this.toastr.error("Failed to submit order"),this.submitting=!1},n=>{this.toastr.error("Failed to submit order"),this.submitting=!1})}processOrder(o,e){let n=this.productsList[0],i=n.pricing.USD.monthly,t=this.extractValue(e.total).toString(),c={tab:{label:this.clientProducts[0].groupname,value:n.gid},gid:n.gid,pid:n.pid,serviceid:this.serviceIdToUpgrade,monthly:n.pricing.USD.monthly,prorated:t,name:n.name,type:n.type,tax:n.tax,discount:this.extractValue(e.discount).toString(),subtotal:this.extractValue(e.subtotal).toString(),items:Object.keys(o).map((u,Fe)=>{let C=this.getProduct(Number(u)),Ne=C?.id,M=this.clientProducts[0].configoptions.configoption.find(Ie=>Ie.id.toString()===Ne?.toString()),De=M?Number(M.value?M.value:0):0;return k({id:Number(u),name:C?C.name:"",options:{option:{id:Number(C?.options.option[0].id),name:C?.options.option[0].name,pricing:C?.options.option[0].pricing}},qty:Number(o[u]),newqty:Number(o[u]),oldqty:De},this.getConfigDetails(e,Fe))})},s={date:new Date().toString(),id:Number(new Date().toISOString()),type:"upgrade",item:c};localStorage.setItem("UpgradeCart",JSON.stringify([s])),this.router.navigate(["cart/checkout/upgrade"])}extractValue(o){let e=/\$([\d.]+)(?: USD)?/,n=o.match(e);return n?parseFloat(n[1]):0}getConfigDetails(o,e){let n=`configname${e+1}`,i=`newvalue${e+1}`,t=`price${e+1}`,c=o[n],s=o[i],u=o[t];return{configname:c,newvalue:s,price:u}}cancelOrder(){this.tableIsReady&&window.confirm("Are you sure you want to cancel the order? All changes will be lost.")&&this.setOrderForm()}static \u0275fac=function(e){return new(e||r)(X(J))};static \u0275cmp=K({type:r,selectors:[["fivecents-configure-plan"]],standalone:!1,decls:7,vars:5,consts:[["warningsEl",""],[1,"d-none-bp576",3,"breadcrumbs"],[1,"banner-container","p-25","bg-black","radius-S","mb-20","d-none-bp576"],[1,"d-none-bp576"],[1,"d-none"],[1,"d-flex","justify-content-between","align-items-center"],[1,"white","font-L","fw-500"],[1,"d-flex","flex-column","gap-5px"],[1,"font-L","fw-400","white"],[1,"d-flex","justify-content-end","font-S",2,"color","#ffffff80"],[1,"mt-20","d-none-bp576",3,"ngSubmit","formGroup"],[1,"table-container","p-20","bg-white","br-12"],[1,"font-XM","fw-700","light-black"],[1,"font-S","fw-400","gray"],[1,"container","pt-20"],[1,"summary-table","table-content","mt-20"],["cellpadding","10",1,"w-100","border-collapse"],[1,"config-thead"],["scope","col",1,"w-50","font-M","fw-500","text-start","py-12","px-25","brtl"],["scope","col",1,"w-25","font-M","fw-500","text-start","py-12","px-25"],["scope","col",1,"w-25","font-M","fw-500","text-start","py-12","px-25","brtr"],[1,"custom-border","br-12"],[1,"d-flex","flex-column","gap-5","mt-30"],[1,"font-M","fw-500","gray"],[1,"light-black"],[1,"button-container","d-flex","justify-content-center","gap-13","mt-20"],["type","button",1,"green-button","bg-button-gray","font-M","fw-400","px-25","py-15","radius-XS",3,"click","disabled"],["type","submit ",1,"green-button","font-M","fw-400","px-25","py-15","radius-XS",3,"disabled"],[1,"show","mobile-fullscreen-popup"],[1,"mobile-addfund-container","w-100"],[1,"mobile-header",2,"background-color","#0d0e10"],[1,"py-15","px-16","d-flex"],[1,"d-flex"],["src","assets/images/home-mobile-svgs/back-icon.svg","width","30px","height","30px","alt","back","routerLink","/home"],[1,"white","font-XL","fw-700","d-flex","justify-content-center","w-100"],[1,"pt-85","px-16","d-flex","flex-column","gap-16","pb-93"],[1,"bg-black","p-15","radius-S","d-flex","justify-content-between","align-items-center"],[1,"d-flex","flex-column","gap-15"],[1,"fw-600","font-L","gray"],[1,"d-flex","flex-column","gap-10",3,"formGroup"],[1,"mobile-bottom-nav",3,"ngSubmit","formGroup"],[1,"bottom-nav","bg-white"],[1,"d-flex","p-15"],[1,"green-button","text-center","font-M","fw-600","p-15","radius-S","w-100"],[1,"row","m-0","d-none-bp576"],["role","alert",1,"alert","alert-warning","radius-XS","px-30"],[1,"status-text","font-S",3,"innerHTML"],[1,"light-black","font-S","fw-400","py-15","px-25"],[1,"gray","font-S","fw-600","py-15","px-25"],[1,"py-15","px-25"],[1,"d-flex","align-items-center","gap-13"],["type","button","matTooltipPosition","above",3,"click","disabled","matTooltip","matTooltipDisabled"],["src","assets/images/decrease-icon.svg"],["NumbersOnly","",1,"quantity","py-9","radius-XS","font-S","fw-500","light-black","w-95px",3,"keydown","formControlName","readonly"],["type","button",3,"click","disabled"],["src","assets/images/increase-icon.svg"],[1,"services-td","px-40","pt-20"],["count","1"],[1,"quantity-td","px-40","pt-20"],[1,"price-td","px-40","pt-20"],[1,"font-L","fw-600","white"],[1,"green-button","text-center","font-M","fw-600","radius-S","py-5","px-10"],[1,"bg-white","px-15","pt-15","pb-6","radius-M","d-flex","flex-column","gap-14",2,"box-shadow","0px 10px 30px 0px #00000008"],[1,"d-flex","justify-content-between","pb-11","border-bottom","align-items-center",2,"border-bottom","1px solid var(--Colors-Border-Primary, #E1E1E1)"],[1,"font-L","fw-600","light-black"],[1,"font-M","fw-500","light-black","d-flex","align-items-center","gap-5",2,"white-space","nowrap"],[1,"font-XS","gray","fw-400"],[1,"d-flex","flex-column","gap-2"],["type","button","matTooltipPosition","above",1,"d-flex",3,"click","disabled","matTooltip","matTooltipDisabled"],["src","assets/images/decrease-icon.svg","width","30px","height","30px"],["NumbersOnly","",1,"quantity-mobile","py-10","px-20","radius-S","font-M","fw-500","light-black","text-center",2,"border","1p
7x solid var(--Colors-Border-Primary, #E1E1E1)",3,"keydown","formControlName","disabled","readonly"],["type","button",1,"d-flex",3,"click","disabled"],["src","assets/images/increase-icon.svg","width","30px","height","30px"],[1,"fw-400","font-XS","gray","d-flex","justify-content-center"]],template:function(e,n){if(e&1&&(f(0,"fivecents-breadcrumbs",1),v(1,Me,9,3,"div",2),q(2,"async"),v(3,Ae,1,0,"five-cents-skeleton-summary-table",3)(4,Ke,2,1),a(5,"div",4),m(6,` 8version: v1.0.3 9fix: add padding to skeleton loader table cells for improved layout in upgrade/downgrade component 10version: v1.0.7 11feat: enhance ConfigurePlanComponent to manage upgrade permissions for subaccount 12fix: Testing `),l()),e&2){let i;g("breadcrumbs",n.breadcrumbsData),d(),x((i=R(2,3,n.serviceDetails$))?1:-1,i),d(2),x(n.showPermissionChecked?4:3)}},dependencies:[ee,ve,ae,ie,ne,oe,se,le,me,ye,Ce,pe,Y],styles:['.banner-container[_ngcontent-%COMP%]{box-shadow:0 10px 30px #0000004d}.container[_ngcontent-%COMP%]{border-bottom:1px solid #E1E1E1}.config-thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#f8f9fb;color:#b2b6c6}.brtl[_ngcontent-%COMP%]{border-top-left-radius:12px}.brtr[_ngcontent-%COMP%]{border-top-right-radius:12px}.custom-border[_ngcontent-%COMP%]{border:1px solid #E7E7E7;border-top:unset}.quantity[_ngcontent-%COMP%]{background-color:#f8f9fb;border:unset;text-align:center}button[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.alert-warning[_ngcontent-%COMP%]{background-color:#ffb22929!important;position:relative;color:#e1940c!important;border:none;overflow:hidden}.alert-warning[_ngcontent-%COMP%]:before{content:" ";height:100%;width:4px;position:absolute;top:0;left:0;background-color:#ffb229}.show[_ngcontent-%COMP%]{display:none!important}@media (max-width: 480px){.hide[_ngcontent-%COMP%]{display:none!important}.show[_ngcontent-%COMP%]{display:flex!important}.mobile-header[_ngcontent-%COMP%]{width:100vw;position:fixed;z-index:10;top:0}.bottom-nav[_ngcontent-%COMP%]{position:fixed;bottom:0;box-shadow:0 -4px 30px #0000001a;width:100vw;z-index:10}}']})};var We=[{path:"",component:D}],I=class r{static \u0275fac=function(e){return new(e||r)};static \u0275mod=E({type:r});static \u0275inj=O({imports:[L.forChild(We),L]})};var Ee=class r{static \u0275fac=function(e){return new(e||r)};static \u0275mod=E({type:r});static \u0275inj=O({imports:[z,I,Pe,de,ue,we,Se,ge]})};export{Ee as ConfigurePlanModule};
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.