1import{a as v}from"./chunk-AWCPMMPC.js";import{i as S,n as h}from"./chunk-VUASBBXJ.js";import"./chunk-O6L37FVV.js";import"./chunk-EN33RNOB.js";import"./chunk-YGRMDJRB.js";import{Ha as p,b as u}from"./chunk-MGYJXOAP.js";import{a as o,b as l}from"./chunk-THXBBYWB.js";import{N as d}from"./chunk-J4K66FRB.js";import{Qb as m,mb as i,sb as n}from"./chunk-7DQSQO6M.js";import{a as s,b as a}from"./chunk-EQDQRRRY.js";var f=(()=>{class c{constructor(e,t,r,C,g){this.customerService=e,this.usageService=t,this.commonService=r,this.packageService=C,this.storageService=g,this.config=u}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||c)(i(h),i(S),i(p),i(v),i(l))}}static{this.\u0275cmp=n({type:c,selectors:[["app-subscription-detail"]],decls:1,vars:0,template:function(t,r){t&1&&m(0,"router-outlet")},dependencies:[d],encapsulation:2})}}return c})();var R=[{path:"subscription-detail",component:f,children:[{path:"",loadChildren:()=>import("./chunk-3A3NCTTV.js").then(c=>c.DASHBOARD_ROUTES)},{path:"",loadChildren:()=>import("./chunk-YPRESNCX.js").then(c=>c.INCLUDED_TV_PACKAGE_ROUTES)}]}];export{R 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.