1import{a as v}from"./chunk-QNZMYQEL.js";import{ac as p,b as l,oc as S,wc as h}from"./chunk-UMFZ3LLX.js";import{a as o,b as u}from"./chunk-BWEGVNY2.js";import"./chunk-AG6QEAUI.js";import{P as d}from"./chunk-SAUKD7DD.js";import{Tb as m,ob as c,ub as n}from"./chunk-KKSGD2T6.js";import{a as s,b as a}from"./chunk-EQDQRRRY.js";var C=(()=>{class i{constructor(e,t,r,f,g){this.customerService=e,this.usageService=t,this.commonService=r,this.packageService=f,this.storageService=g,this.config=l}ngOnInit(){let e=this.resolveSelectedContract();e&&this.usageService.fetchSubscriptionDetailsV2(e)}ngOnDestroy(){this.commonService.pageTitle="",this.commonService.setPageTitle("","")}resolveSelectedContract(){if(this.customerService.selectedContract)return this.backfillProductPackageName(this.customerService.selectedContract),this.customerService.selectedContract;let e=this.customerService.fetchSelectedContract();if(e)return e.contractIdentity&&this.storageService.set(o.CID,e.contractIdentity),e.customerIdentity&&this.storageService.set(o.CAID,e.customerIdentity),this.customerService.selectedContractObj=e,this.customerService.selectedContract=a(s({},e),{msisdn:e.contractMsisdn||e.msisdn}),this.backfillProductPackageName(this.customerService.selectedContract),this.customerService.selectedContract;let t=this.customerService.getSelectedContract();return t&&this.customerService.setSelectedContract(t),this.customerService.selectedContract&&this.backfillProductPackageName(this.customerService.selectedContract),this.customerService.selectedContract}backfillProductPackageName(e){if(!e||e.productPackageName)return;let t=this.customerService.customersContracts?.find(r=>r?.contractNo===e.contractNo);t?.productPackageName&&(e.productPackageName=t.productPackageName,e.productPackageNameEN=t.productPackageNameEN||t.productPackageName)}static{this.\u0275fac=function(t){return new(t||i)(c(S),c(p),c(h),c(v),c(u))}}static{this.\u0275cmp=n({type:i,selectors:[["app-subscription-detail"]],decls:1,vars:0,template:function(t,r){t&1&&m(0,"router-outlet")},dependencies:[d],encapsulation:2})}}return i})();var y=[{path:"subscription-detail",component:C,children:[{path:"",loadChildren:()=>import("./chunk-D6GUPVH7.js").then(i=>i.DASHBOARD_ROUTES)},{path:"",loadChildren:()=>import("./chunk-P5XSR25S.js").then(i=>i.OFFERS_ACCEPTED_HISTORY_ROUTES)},{path:"",loadChildren:()=>import("./chunk-VMOCGURM.js").then(i=>i.CHANGE_TARIFF_PLAN_ROUTES)},{path:"",loadChildren:()=>import("./chunk-S5RJWAEZ.js").then(i=>i.INCLUDED_TV_PACKAGE_ROUTES)}]}];export{y as SUBSCRIPTION_DETAIL_ROUTES};
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.