1import{a as ae}from"./chunk-CXACER6L.js";import{a as le}from"./chunk-6W3BC7VQ.js";import{a as T,b as oe}from"./chunk-WBP73L23.js";import"./chunk-JYTLMDS2.js";import{a as q,b as W,c as G,d as J,e as K,f as X,g as Y,h as Z,i as ee,j as te,k as ie,l as ne}from"./chunk-EHSKWIZA.js";import{a as V}from"./chunk-5XJN6G4E.js";import{a as F}from"./chunk-46OECEEY.js";import"./chunk-ETTGII3S.js";import"./chunk-EFFKYZ4R.js";import"./chunk-S3OUMWH4.js";import{a as j,b as Q}from"./chunk-FHSHMNFM.js";import{m as O}from"./chunk-QRHPXOKA.js";import"./chunk-BR7SVKEQ.js";import"./chunk-FBPQG6MS.js";import"./chunk-HYC3WGKD.js";import"./chunk-2PPFUFFT.js";import{a as P,b as N}from"./chunk-7OXH5EWV.js";import"./chunk-FTXGPRFJ.js";import"./chunk-BRRFPLOY.js";import"./chunk-HGFVTFKX.js";import{Bc as $,C as L,Fc as y,Gc as S,Ib as p,Kb as D,Pb as _,T as x,U as w,Ub as a,V as C,Vb as o,Wb as d,Xb as c,Yb as u,bb as M,dc as U,f as h,gb as r,kc as B,l as k,lb as b,lc as A,mc as E,p as I,pd as z,qc as m,rc as R,sb as g,sc as f,yb as s,yd as H}from"./chunk-EL2YAQZX.js";import"./chunk-EQDQRRRY.js";var se=e=>({display:e});function pe(e,i){e&1&&(a(0,"th",15),m(1,"ID"),o())}function de(e,i){if(e&1&&(a(0,"td",16),m(1),o()),e&2){let t=i.$implicit;r(),f(" ",t.id," ")}}function ce(e,i){e&1&&(a(0,"th",17),m(1,"Name"),o())}function ue(e,i){if(e&1&&(a(0,"td",18)(1,"a",19),m(2),o()()),e&2){let t=i.$implicit;r(),p("href","/u/"+t.name,M),r(),f(" ","@"+t.name," ")}}function fe(e,i){e&1&&(a(0,"th",17),m(1,"Title"),o())}function he(e,i){if(e&1&&(a(0,"td",18)(1,"span",20),m(2),o()()),e&2){let t=i.$implicit;r(2),R(t.title||"-")}}function Ce(e,i){e&1&&(a(0,"th",17)(1,"mat-icon",21),m(2,"link"),o()())}function be(e,i){if(e&1&&(a(0,"td",18)(1,"p",22),m(2),y(3,"formatNumber"),o()()),e&2){let t=i.$implicit;r(2),f(" ",S(3,1,t.linksCount)," ")}}function ge(e,i){e&1&&(a(0,"th",17)(1,"mat-icon",23),m(2,"visibility"),o()())}function _e(e,i){if(e&1&&(a(0,"td",18)(1,"p",22),m(2),y(3,"formatNumber"),o()()),e&2){let t=i.$implicit;r(2),f(" ",S(3,1,t.views)," ")}}function Te(e,i){e&1&&d(0,"tr",24)}function ye(e,i){e&1&&d(0,"tr",25)}function Se(e,i){e&1&&(a(0,"app-card")(1,"p",26),m(2,"No link-in-bios found for this user"),o()())}var re=(()=>{class e{constructor(t){this.service=t,this.dataSource=new ne,this.resultsLength=0,this.isLoadingResults=!0,this.displayedColumns=["id","name","title","linksCount","views"],this.pageSize=25,this.pageSizeOptions=[10,25,50,100],this.destroy$=new h}ngAfterViewInit(){this.load()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}load(){this.paginator.page.pipe(x({}),w(()=>(this.isLoadingResults=!0,this.service.getUserLinkInBios(this.email,{page:this.paginator.pageIndex,pageSize:this.paginator.pageSize}).pipe(L(()=>k(null))))),I(t=>(this.isLoadingResults=!1,t?(this.resultsLength=t.totalCount,t.items):(this.resultsLength=0,[]))),C(this.destroy$)).subscribe(t=>{this.dataSource.data=t??[]})}static{this.\u0275fac=function(l){return new(l||e)(b(ae))}}static{this.\u0275cmp=g({type:e,selectors:[["app-admin-user-link-in-bios-table"]],viewQuery:function(l,n){if(l&1&&B(T,5),l&2){let v;A(v=E())&&(n.paginator=v.first)}},inputs:{email:"email"},decls:22,vars:12,consts:[[1,"px-0",3,"ngStyle"],[1,"overflow-x-auto"],["mat-table","",1,"w-full","-mt-[17px]","transition-opacity","duration-500","ease-in-out",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","class","!pl-6",4,"matHeaderCellDef"],["mat-cell","","class","!pl-6",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["matColumnDef","linksCount"],["matColumnDef","views"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","hover:bg-[#2b2b2b]",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",1,"pt-2",3,"length","pageSize","pageSizeOptions"],["mat-header-cell","",1,"!pl-6"],["mat-cell","",1,"!pl-6"],["mat-header-cell",""],["mat-cell",""],["target","_blank",1,"text-white","hover:text-orange-400",3,"href"],[1,"text-gray-300"],["matTooltip","Links count","matTooltipClass","tooltip","matTooltipPosition","above"],[1,"text-gray-400"],["matTooltip","Views","matTooltipClass","tooltip","matTooltipPosition","above"],["mat-header-row",""],["mat-row","",1,"hover:bg-[#2b2b2b]"],[1,"text-gray-400","text-center","py-8"]],template:function(l,n){l&1&&(a(0,"app-card",0)(1,"div",1)(2,"table",2),c(3,3),s(4,pe,2,0,"th",4)(5,de,2,1,"td",5),u(),c(6,6),s(7,ce,2,0,"th",7)(8,ue,3,2,"td",8),u(),c(9,9),s(10,fe,2,0,"th",7)(11,he,3,1,"td",8),u(),c(12,10),s(13,Ce,3,0,"th",7)(14,be,4,3,"td",8),u(),c(15,11),s(16,ge,3,0,"th",7)(17,_e,4,3,"td",8),u(),s(18,Te,1,0,"tr",12)(19,ye,1,0,"tr",13),o()(),d(20,"mat-paginator",14),o(),s(21,Se,3,0,"app-card")),l&2&&(p("ngStyle",$(10,se,n.resultsLength>0?"block":"none")),r(2),D("opacity-50",n.isLoadingResults),p("dataSource",n.dataSource),r(16),p("matHeaderRowDef",n.displayedColumns),r(),p("matRowDefColumns",n.displayedColumns),r(),p("length",n.resultsLength)("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions),r(),_(n.resultsLength===0&&!n.isLoadingResults?21:-1))},dependencies:[ie,q,G,Y,J,W,Z,K,X,ee,te,H,z,oe,T,V,N,P,F,O,Q,j],encapsulation:2})}}return e})();function ve(e,i){if(e&1&&d(0,"app-admin-user-link-in-bios-table",0),e&2){let t=U();p("email",t.user.email)}}var je=(()=>{class e{constructor(t){this.userState=t,this.user=null,this.destroy$=new h}ngOnInit(){this.userState.user$.pipe(C(this.destroy$)).subscribe(t=>{this.user=t})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(l){return new(l||e)(b(le))}}static{this.\u0275cmp=g({type:e,selectors:[["app-admin-user-link-in-bios-tab"]],decls:1,vars:1,consts:[[3,"email"]],template:function(l,n){l&1&&s(0,ve,1,1,"app-admin-user-link-in-bios-table",0),l&2&&_(n.user?0:-1)},dependencies:[re],encapsulation:2})}}return e})();export{je as AdminUserLinkInBiosTabComponent};
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.