PageSourceSearch

https://hou.la/chunk-E6PXQWXY.js

js hou.la collected 2026-09-25 03:33:33 UTC 5,983 bytes, 1 lines download raw bytes

1import{a as J}from"./chunk-HBTIAQWU.js";import{a as H}from"./chunk-HPMOSIW5.js";import{a as G}from"./chunk-IPKLJJ3K.js";import{a as U}from"./chunk-ATXEZIPJ.js";import{a as q}from"./chunk-QIOURN4K.js";import{a as W}from"./chunk-JS6LICOA.js";import{a as O}from"./chunk-EB6TJ75L.js";import{D as z,c as $,g as N,l as j}from"./chunk-FOJCKIWO.js";import{a as B}from"./chunk-NBMUSEX4.js";import"./chunk-AB6CKZTE.js";import"./chunk-YQZAETCE.js";import{s as R,x as F}from"./chunk-EO42E46J.js";import"./chunk-3QVSKJ3X.js";import{D,I as L,r as V,s as T}from"./chunk-ERUCNOOT.js";import{$b as S,H as E,Hc as C,Jb as m,L as I,Lb as P,Qc as h,Sc as x,Vb as i,Wb as t,Xb as v,da as c,db as r,f as k,fc as g,gc as d,la as _,ma as w,sa as A,sb as M,tc as n,uc as y,vc as s,yb as f}from"./chunk-DBE7WQEG.js";import{g as b}from"./chunk-W7GRJBO5.js";var K=a=>["/am/workspace",a];function X(a,o){if(a&1){let e=S();i(0,"button",12),g("click",function(){let u=_(e).$implicit,p=d();return w(p.onSort(u.key))}),n(1),t()}if(a&2){let e=o.$implicit,l=d();P("btn-primary",l.sort===e.key)("btn-outline-secondary",l.sort!==e.key),r(),s(" ",e.label," ")}}function Y(a,o){a&1&&v(0,"app-widget-loading")}function Z(a,o){if(a&1){let e=S();i(0,"tr")(1,"td")(2,"a",17),v(3,"app-widget-workspace-avatar",18),i(4,"div")(5,"div",19),n(6),t(),i(7,"div",20),n(8),t()()()(),i(9,"td",21),n(10),h(11,"date"),t(),i(12,"td",15),n(13),t(),i(14,"td",15),n(15),t(),i(16,"td",21),n(17),h(18,"date"),t(),i(19,"td",21),n(20),h(21,"date"),t(),i(22,"td",15)(23,"a",22),n(24,"Ouvrir"),t(),i(25,"button",23),g("click",function(){let u=_(e).$implicit,p=d(2);return w(p.rendre(u))}),n(26," Rendre "),t()()()}if(a&2){let e=o.$implicit,l=d(2);r(2),m("routerLink",C(20,K,e.id)),r(),m("workspace",e)("size",32),r(3),y(e.name),r(2),s(" @",e.slug," "),r(2),s(" ",x(11,11,e.assignedAt,"dd/MM/yyyy")," "),r(3),y(l.euros(e.caCents)),r(2),y(l.nombre(e.coinsTotal)),r(2),s(" ",e.dernierLive?x(18,14,e.dernierLive,"dd/MM/yyyy"):"\u2014"," "),r(3),s(" ",e.dernierContenu?x(21,17,e.dernierContenu,"dd/MM/yyyy"):"\u2014"," "),r(3),m("routerLink",C(22,K,e.id))}}function ee(a,o){a&1&&(i(0,"tr")(1,"td",24),n(2," Aucun compte. Servez-vous dans le "),i(3,"a",25),n(4,"vivier"),t(),n(5,". "),t()())}function te(a,o){if(a&1&&(i(0,"div",13)(1,"table",14)(2,"thead")(3,"tr")(4,"th"),n(5,"Compte"),t(),i(6,"th"),n(7,"Depuis"),t(),i(8,"th",15),n(9,"CA"),t(),i(10,"th",15),n(11,"Coins"),t(),i(12,"th"),n(13,"Dernier live"),t(),i(14,"th"),n(15,"Dernier contenu"),t(),v(16,"th"),t()(),i(17,"tbody"),f(18,Z,27,24,"tr",16)(19,ee,6,0,"tr",10),t()()()),a&2){let e=d();r(18),m("ngForOf",e.items),r(),m("ngIf",!e.items.length)}}var ie=[{key:"performance",label:"Performance"},{key:"ca",label:"Chiffre d\u2019affaires"},{key:"coins",label:"Coins re\xE7us"},{key:"activite",label:"Derni\xE8re activit\xE9"},{key:"live",label:"Dernier live"},{key:"contenu",label:"Dernier contenu"},{key:"nom",label:"Nom"}],Q=class a{api=c(H);toast=c(O);confirm=c(q);destroyRef=c(A);tris=ie;nombre=G;euros=J;items=[];loading=!0;sort="performance";search="";search$=new k;ngOnInit(){this.search$.pipe(E(350),I(),W(this.destroyRef)).subscribe(()=>this.charger()),this.charger()}onSearch(o){this.search=o,this.search$.next(o)}onSort(o){this.sort=o,this.charger()}charger(){return b(this,null,function*(){this.loading=!0;try{this.items=yield this.api.portfolio(this.sort,this.search)}catch{this.toast.add({severity:"error",detail:"Impossible de charger le portefeuille."})}finally{this.loading=!1}})}rendre(o){return b(this,null,function*(){if(yield this.confirm.confirm({message:`Rendre \xAB ${o.name} \xBB au vivier ? L\u2019historique de la prise en charge est conserv\xE9.`,header:"Rendre le compte"}))try{yield this.api.release(o.id),this.items=this.items.filter(l=>l.id!==o.id),this.toast.add({severity:"success",detail:`\xAB ${o.name} \xBB est retourn\xE9 au vivier.`})}catch{this.toast.add({severity:"error",detail:"La restitution a \xE9chou\xE9."})}})}static \u0275fac=function(e){return new(e||a)};static \u0275cmp=M({type:a,selectors:[["app-view-am-portefeuille"]],decls:18,vars:5,consts:[[1,"p-4"],[1,"d-flex","flex-wrap","align-items-center","justify-content-between","mb-3","gap-2"],[1,"h4","mb-1"],[1,"text-muted","mb-0","small"],["routerLink","/am/resultats"],[1,"badge","bg-secondary"],[1,"d-flex","flex-wrap","gap-2","mb-3"],["type","search","placeholder","Rechercher un compte (nom ou identifiant)\u2026",1,"form-control",2,"max-width","320px",3,"ngModelChange","ngModel"],["role","group","aria-label","Tri",1,"btn-group","flex-wrap"],["type","button","class","btn btn-sm",3,"btn-primary","btn-outline-secondary","click",4,"ngFor","ngForOf"],[4,"ngIf"],["class","table-responsive",4,"ngIf"],["type","button",1,"btn","btn-sm",3,"click"],[1,"table-responsive"],[1,"table","table-hover","align-middle"],[1,"text-end"],[4,"ngFor","ngForOf"],[1,"d-flex","align-items-center","gap-2","text-decoration-none",3,"routerLink"],[3,"workspace","size"],[1,"fw-semibold"],[1,"text-muted","small"],[1,"small"],[1,"btn","btn-sm","btn-outline-primary","me-1",3,"routerLink"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],["colspan","7",1,"text-center","text-muted","py-4"],["routerLink","/am/vivier"]],template:function(e,l){e&1&&(i(0,"div",0)(1,"div",1)(2,"div")(3,"h2",2),n(4,"Mon portefeuille"),t(),i(5,"p",3),n(6," Class\xE9 par performance. Les montants ci-dessous sont le total du compte\xA0; ce qui compte pour votre r\xE9mun\xE9ration est dans "),i(7,"a",4),n(8,"Mes r\xE9sultats"),t(),n(9,". "),t()(),i(10,"span",5),n(11),t()(),i(12,"div",6)(13,"input",7),g("ngModelChange",function(p){return l.onSearch(p)}),t(),i(14,"div",8),f(15,X,2,5,"button",9),t()(),f(16,Y,1,0,"app-widget-loading",10)(17,te,20,2,"div",11),t()),e&2&&(r(11),s("",l.items.length," comptes"),r(2),m("ngModel",l.search),r(2),m("ngForOf",l.tris),r(),m("ngIf",l.loading),r(),m("ngIf",!l.loading))},dependencies:[L,V,T,D,z,$,N,j,F,R,B,U],encapsulation:2})};export{Q as ViewAmPortefeuilleComponent};

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.