PageSourceSearch

https://sociallab.sa/chunk-D2UjjJfR.js

js sociallab.sa collected 2026-10-01 23:57:55 UTC 6,247 bytes, 1 lines download raw bytes

1import {m}from'./chunk-LjBT0QLt.js';import {E as En,D as De}from'./chunk-DFWdtebV.js';import {f}from'./chunk-CmdXsb3H.js';import {h as he}from'./chunk-DvLFd6NQ.js';import'./chunk-BGOHF1M9.js';import {c as ce}from'./chunk-BRsHFk4j.js';import'./chunk-C0DmzTpz.js';import'./chunk-CkU8oUfw.js';import {c3 as Xr,V,bK as P,X as Xb,j as Xv,R as RM,T as Tt$1,N as Ng,z as zg,w as w0,H as H0,Z as Zx,k as dn,l as zw,s as sk,n as nd,r as rC,m as wC,o as mv,p as GC,t as tD,q as vD,aO as cD,aP as hD,b0 as _D,aX as mD,u as al,x as tM,y as dM,L as Lb,A as r1,P as P1,B as xS,C as Vs,J as GS,K as iI,M as RI,Q as us,S as ms,Y as UI,_ as tE,$ as Dn,a0 as ME,a1 as ny,a2 as go,a3 as Kd,a4 as XE,a5 as LT,a6 as mA,b4 as $M,cx as WM,a7 as mt,a8 as fy,aa as Js,ac as H_,ad as gd,ae as pS,aB as ey,ab as Ey,ai as dy,bn as nS,ag as SC,ak as Ed,al as gS,aj as jy,aT as d_,bg as mS,bl as zg$1}from'./main-4WA6AAHG.js';var Pt=()=>["Work the list from the top; it is ordered by how much attention each client needs.","Open a client to see exactly which features are unused or unconfigured."],Tt=()=>[10,25,50];function wt(e,o){if(e&1&&(Js(0,"a",10),H_(1),gd()),e&2){let t=o.$implicit;dy("href","/admin/clients/client-profile/"+t.clientId,zg$1),SC(),Ed(" ",t.businessName||t.clientId," ");}}function Dt(e,o){if(e&1&&(Js(0,"strong"),H_(1),gd()),e&2){let t=o.$implicit;SC(),jy(t.healthScore);}}function It(e,o){if(e&1&&(Js(0,"span",11),H_(1),gd()),e&2){let t=o.$implicit,i=d_();dy("ngClass",i.getHealthStatusClass(t.healthScore)),SC(),Ed(" ",t.healthStatusLabel," ");}}function kt(e,o){if(e&1&&H_(0),e&2){let t=o.$implicit;Ed(" ",t.topRecommendation," ");}}function Ot(e,o){if(e&1&&(Js(0,"span",11),H_(1),pS(2,"titlecase"),gd()),e&2){let t=o.$implicit,i=d_();dy("ngClass",i.getSeverityClass(t.severity)),SC(),Ed(" ",gS(2,2,t.severity)," ");}}function Lt(e,o){if(e&1&&H_(0),e&2){let t=o.$implicit;Ed(" ",t.unresolvedRecommendationCount," ");}}function Rt(e,o){if(e&1&&(H_(0),pS(1,"date")),e&2){let t=o.$implicit;Ed(" ",mS(1,1,t.lastActivityDate,"mediumDate")," ");}}var Oe=(()=>{class e{constructor(t,i){this.healthService=t,this.loadingService=i,this.items=[],this.loading=true,this.totalCount=0,this.pageSize=10,this.pageIndex=0,this.columns=[{key:"businessName",label:"Business",priority:1},{key:"healthScore",label:"Score",priority:1},{key:"healthStatusLabel",label:"Status",priority:1},{key:"topRecommendation",label:"Top Recommendation",priority:2},{key:"severity",label:"Severity",priority:2},{key:"unresolvedRecommendationCount",label:"Unresolved",priority:3},{key:"lastActivityDate",label:"Last Activity",priority:3}],this.subs=[];}ngOnInit(){this.load();}ngOnDestroy(){this.subs.forEach(t=>t.unsubscribe());}load(){this.loading=true,this.loadingService.beginSuppress();let t=this.healthService.getClientsActionList(this.pageIndex+1,this.pageSize).pipe(Xr(()=>{this.loading=false,this.loadingService.endSuppress();})).subscribe({next:i=>{i.succeeded&&(this.items=i.data,this.totalCount=i.count??0);},error:()=>{}});this.subs.push(t);}onPage(t){this.pageIndex=t.pageIndex,this.pageSize=t.pageSize,this.load();}getSeverityColor(t){switch(t){case "Critical":return "var(--status-fail, #f44336)";case "Warning":return "var(--status-warn, #ff9800)";default:return "var(--sl-blue, #2196f3)"}}getHealthStatusClass(t){return t>=80?"badge-excellent":t>=60?"badge-good":t>=40?"badge-fair":"badge-poor"}getSeverityClass(t){switch(t){case "Critical":return "badge-critical";case "Warning":return "badge-warning";default:return "badge-info"}}static{this.\u0275fac=function(i){return new(i||e)(V(m),V(P))};}static{this.\u0275cmp=Xb({type:e,selectors:[["app-admin-action-list"]],decls:18,vars:11,consts:[["helpKey","admin-client-health-actions","intro","Clients whose account health says they need help \u2014 under-using what they pay for, or not set up properly.",3,"steps"],[3,"dataSource","columns","loading"],["rtColumnDef","businessName"],["rtColumnDef","healthScore"],["rtColumnDef","healthStatusLabel"],["rtColumnDef","topRecommendation"],["rtColumnDef","severity"],["rtColumnDef","unresolvedRecommendationCount"],["rtColumnDef","lastActivityDate"],[3,"page","length","pageSizeOptions"],["target","_blank",1,"f-w-600","text-primary",3,"href"],[1,"status-badge",3,"ngClass"]],template:function(i,p){i&1&&(fy(0,"app-page-help",0),Js(1,"mat-card")(2,"mat-card-header")(3,"mat-card-title")(4,"mat-icon"),H_(5,"admin_panel_settings"),gd(),H_(6),pS(7,"translate"),gd()(),Js(8,"mat-card-content")(9,"app-responsive-table",1),ey(10,wt,2,2,"ng-template",2)(11,Dt,2,1,"ng-template",3)(12,It,2,2,"ng-template",4)(13,kt,1,1,"ng-template",5)(14,Ot,3,4,"ng-template",6)(15,Lt,1,1,"ng-template",7)(16,Rt,2,4,"ng-template",8),gd(),Js(17,"paginator-configurable",9),Ey("page",function(At){return p.onPage(At)}),gd()()()),i&2&&(dy("steps",nS(9,Pt)),SC(6),Ed(" ",gS(7,7,"Clients Needing Attention")," "),SC(3),dy("dataSource",p.items)("columns",p.columns)("loading",p.loading),SC(8),dy("length",p.totalCount)("pageSizeOptions",nS(10,Tt)));},dependencies:[ce,Xv,RM,Tt$1,En,De,f,he,Ng,zg,w0,H0,Zx,dn,zw,sk,nd,rC,wC,mv,GC,tD,vD,cD,hD,_D,mD,al,tM,dM,Lb,r1,P1,xS,Vs,GS,iI,RI,us,ms,UI,tE,Dn,ME,ny,go,Kd,XE,LT,mA,$M,WM,mt],styles:["[_nghost-%COMP%]{display:block;padding:24px}table[_ngcontent-%COMP%]{width:100%}.status-badge[_ngcontent-%COMP%]{display:inline-block;padding:4px 12px;border-radius:var(--radius-xl);font-size:var(--font-size-xs);font-weight:600;line-height:1.4;white-space:nowrap}.badge-excellent[_ngcontent-%COMP%]{background-color:#e6fffa;color:var(--color-primary-dark)}.badge-good[_ngcontent-%COMP%]{background-color:#e6fbf7;color:#1565c0}.badge-fair[_ngcontent-%COMP%]{background-color:#fef5e5;color:#e65100}.badge-poor[_ngcontent-%COMP%], .badge-critical[_ngcontent-%COMP%]{background-color:#fdede8;color:var(--color-error-text)}.badge-warning[_ngcontent-%COMP%]{background-color:#fef5e5;color:#e65100}.badge-info[_ngcontent-%COMP%]{background-color:#e6fbf7;color:#1565c0}a.text-primary[_ngcontent-%COMP%]{text-decoration:none}a.text-primary[_ngcontent-%COMP%]:hover{text-decoration:underline}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-header[_ngcontent-%COMP%]{display:flex;align-items:center}"],changeDetection:1});}}return e})();export{Oe as AdminActionListComponent};

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.