1import{a as O,b as I}from"./chunk-UXEDQY27.js";import"./chunk-TWQ63W5S.js";import"./chunk-2TEV366Q.js";import"./chunk-UBPYWRON.js";import"./chunk-N3KCSZ2Q.js";import"./chunk-NTKIJ7N3.js";import"./chunk-KYG4AUPP.js";import"./chunk-FCVXRDFQ.js";import"./chunk-3BXBV2R5.js";import"./chunk-R4EIWZJ3.js";import"./chunk-CWKXUSMS.js";import"./chunk-4VIMGQ7Q.js";import"./chunk-CULNMTZB.js";import"./chunk-JVPJOP4U.js";import"./chunk-URB7H4RC.js";import"./chunk-BGA7254Z.js";import"./chunk-7IXEN3CQ.js";import{b as w}from"./chunk-STVWBOZG.js";import{b as P}from"./chunk-PEZRHS2V.js";import{a as v,c as _}from"./chunk-TUDP2KJ3.js";import{sa as C,ta as M}from"./chunk-E46PARQF.js";import{$a as l,K as m,Wa as o,_a as b,ad as x,ba as d,ka as f,m as u,s as a,sb as y,vb as S,w as g,wd as h}from"./chunk-MNQHZSSI.js";import"./chunk-SE5JAREP.js";var A=(()=>{class e{constructor(r,t,n,F,k,j){this.userSettingsApi=r,this.affiliateApi=t,this.dashboardStateService=n,this.requestTracker=F,this.dashboardRoutingService=k,this.dashboardPermissionsService=j,this.snapshotRequestTracker$=this.requestTracker.affiliateSnapshotRequestTracker$,this.settings={entityId:"",entityType:"",websiteFilters:[],currencyFilter:"USD",networkFilter:"US"},this.accountWithPermissions$Sub=this.dashboardPermissionsService.accountWithPermissions$.pipe(d(([i,s])=>i.entity_group_name!=="affiliates"?(this.dashboardRoutingService.directToDashboard(),u):a([i,s])),d(i=>g([this.userSettingsApi.getUserDashboardConfig("affiliate",i[0].entity_id).pipe(m(s=>a(null))),this.affiliateApi.getAffiliate(i[0].entity_id).pipe(m(s=>a(null))),this.userSettingsApi.getDefaultCurrency(i[0]),a(i)]))).subscribe(([i,s,D,[p,q]])=>{this.websiteFilterOptions=s.affiliate_website.filter(c=>c.is_active),this.unfilteredWebsiteIds=s.affiliate_website.map(c=>c.affiliate_website_id),this.settings={entityId:p.entity_id,entityType:p.entity_group_name,currencyFilter:D,networkFilter:p.entity_network},this.entityConfig=i,this.accountPermissions=q})}ngOnDestroy(){this.accountWithPermissions$Sub.unsubscribe()}static{this.\u0275fac=function(t){return new(t||e)(o(P),o(C),o(v),o(M),o(_),o(w))}}static{this.\u0275cmp=b({type:e,selectors:[["app-affiliate-snapshot"]],standalone:!1,decls:1,vars:7,consts:[[3,"settings","entityConfig","websiteFilterOptions","allUnfilteredWebsiteIds","snapshotRequestTracker$","accountPermissions","dashboard"]],template:function(t,n){t&1&&S(0,"app-snapshot",0),t&2&&y("settings",n.settings)("entityConfig",n.entityConfig)("websiteFilterOptions",n.websiteFilterOptions)("allUnfilteredWebsiteIds",n.unfilteredWebsiteIds)("snapshotRequestTracker$",n.snapshotRequestTracker$)("accountPermissions",n.accountPermissions)("dashboard","affiliate")},dependencies:[O],styles:[`.flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row.reverse[_ngcontent-%COMP%]{flex-direction:row-reverse}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.flex-column.reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.flex-1[_ngcontent-%COMP%]{flex:1}.flex-2[_ngcontent-%COMP%]{flex:2}.flex-3[_ngcontent-%COMP%]{flex:3}.flex-4[_ngcontent-%COMP%]{flex:4}.flex-5[_ngcontent-%COMP%]{flex:5}.flex-6[_ngcontent-%COMP%]{flex:6}.flex-7[_ngcontent-%COMP%]{flex:7}.flex-8[_ngcontent-%COMP%]{flex:8}.flex-9[_ngcontent-%COMP%]{flex:9}.container[_ngcontent-%COMP%]{padding-bottom:32px}[_nghost-%COMP%]{flex:1;overflow:auto;position:relative} 2/*# sourceMappingURL=affiliate-snapshot.component-4X6REIZQ.css.map */`]})}}return e})();var $=[{path:"",component:A}],T=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275mod=l({type:e})}static{this.\u0275inj=f({imports:[h.forChild($),h]})}}return e})();var ie=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275mod=l({type:e})}static{this.\u0275inj=f({imports:[x,T,I]})}}return e})();export{ie as AffiliateSnapshotModule}; 3//# sourceMappingURL=chunk-QISRTAXS.js.map
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.