1import{a as E,b as L}from"./chunk-KDMLIWB4.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-CNM4I6YC.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{a as G}from"./chunk-BGA7254Z.js";import"./chunk-7IXEN3CQ.js";import{b as N}from"./chunk-STVWBOZG.js";import{b as A}from"./chunk-PEZRHS2V.js";import{a as F,c as q}from"./chunk-TUDP2KJ3.js";import{Ye as B,Zd as U,ta as $,ua as k,za as w}from"./chunk-E46PARQF.js";import{$a as m,Cc as O,Gb as I,K as d,Oc as T,Ra as P,Uc as R,Wa as r,_a as b,ad as j,ba as C,ea as v,eb as u,hc as D,ka as c,m as f,nc as g,oc as M,s,sb as a,v as S,vb as l,w as _,wd as y,x}from"./chunk-MNQHZSSI.js";import"./chunk-SE5JAREP.js";var ie=()=>["merchants"];function ne(e,J){e&1&&l(0,"app-non-supported-groups",2),e&2&&a("supportedGroups",D(1,ie))}function re(e,J){if(e&1&&l(0,"app-snapshot",3),e&2){let i=I();a("settings",i.settings)("entityConfig",i.entityConfig)("snapshotRequestTracker$",i.snapshotRequestTracker$)("accountPermissions",i.accountPermissions)("dashboard","merchant")}}var z=(()=>{class e{constructor(i,n,p,K,Q,V,W,X,Z){this.userSettingsApi=i,this.dashboardService=n,this.merchantApi=p,this.dashboardStateService=K,this.requestTracker=Q,this.routingService=V,this.dashboardPermissionsService=W,this.dashboardApiService=X,this.changeDetectorRef=Z,this.snapshotRequestTracker$=this.requestTracker.affiliateSnapshotRequestTracker$.pipe(v(()=>this.changeDetectorRef.detectChanges())),this.settings={entityId:"",entityType:"",currencyFilter:"USD",networkFilter:"US",merchantFilters:[]},this.isMerchantGroup$=this.dashboardApiService.currentAccount$.pipe(S(t=>t.entity_group_name==="merchant_groups")),this.accountWithPermissions$Sub=this.dashboardPermissionsService.accountWithPermissions$.pipe(C(([t,o])=>t.entity_group_name==="merchant_groups"?f:t.entity_group_name!=="merchants"?(this.routingService.directToDashboard(),f):s([t,o])),x(t=>_([this.userSettingsApi.getUserDashboardConfig("merchant",t[0].entity_id).pipe(d(o=>s(null))),this.merchantApi.getMerchantById(t[0].entity_id).pipe(d(o=>s(null))),this.userSettingsApi.getDefaultCurrency(t[0]),s(t)]))).subscribe(([t,o,ee,[h,te]])=>{this.settings={entityId:h.entity_id,entityType:h.entity_group_name,currencyFilter:ee,networkFilter:h.entity_network,merchantFilters:[o.merchant_id]},this.entityConfig=t,this.accountPermissions=te})}ngOnDestroy(){this.accountWithPermissions$Sub.unsubscribe()}static{this.\u0275fac=function(n){return new(n||e)(r(A),r(G),r(k),r(F),r($),r(q),r(N),r(w),r(O))}}static{this.\u0275cmp=b({type:e,selectors:[["app-merchant-snapshot"]],standalone:!1,decls:4,vars:6,consts:[[3,"supportedGroups",4,"ngIf"],[3,"settings","entityConfig","snapshotRequestTracker$","accountPermissions","dashboard",4,"ngIf"],[3,"supportedGroups"],[3,"settings","entityConfig","snapshotRequestTracker$","accountPermissions","dashboard"]],template:function(n,p){n&1&&(u(0,ne,1,2,"app-non-supported-groups",0),g(1,"async"),u(2,re,1,5,"app-snapshot",1),g(3,"async")),n&2&&(a("ngIf",M(1,2,p.isMerchantGroup$)===!0),P(2),a("ngIf",M(3,4,p.isMerchantGroup$)===!1))},dependencies:[T,E,U,R],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=merchant-snapshot.component-NCYEDSLD.css.map */`]})}}return e})();var oe=[{path:"",component:z}],H=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=m({type:e})}static{this.\u0275inj=c({imports:[y.forChild(oe),y]})}}return e})();var Te=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=m({type:e})}static{this.\u0275inj=c({imports:[j,H,L,B]})}}return e})();export{Te as MerchantSnapshotModule}; 3//# sourceMappingURL=chunk-KCR2BXTS.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.