PageSourceSearch

https://hou.la/chunk-3GAIZ2NM.js

js hou.la collected 2026-09-25 03:33:31 UTC 7,365 bytes, 1 lines download raw bytes

1import{a as L}from"./chunk-S5EBLHJA.js";import{a as N}from"./chunk-HBTIAQWU.js";import{a as O}from"./chunk-HPMOSIW5.js";import{a as M}from"./chunk-IPKLJJ3K.js";import{a as F}from"./chunk-ATXEZIPJ.js";import{a as k,b as R}from"./chunk-M6YDMVQ7.js";import{a as T}from"./chunk-NBMUSEX4.js";import"./chunk-AB6CKZTE.js";import"./chunk-H4HD3LNW.js";import"./chunk-AQEWHUN5.js";import"./chunk-YQZAETCE.js";import{s as A,x as H}from"./chunk-EO42E46J.js";import"./chunk-3QVSKJ3X.js";import{D as I,I as S,r as C,s as b}from"./chunk-ERUCNOOT.js";import{Hc as v,Jb as m,Qc as g,Sc as f,Vb as i,Wb as t,Xb as c,Yb as w,Zb as y,da as h,db as o,gc as u,sb as E,tc as n,uc as d,vc as s,yb as p}from"./chunk-DBE7WQEG.js";import{g as _}from"./chunk-W7GRJBO5.js";var x=a=>["/am/workspace",a];function z(a,r){a&1&&c(0,"app-widget-loading")}function B(a,r){if(a&1&&(i(0,"div",26)(1,"div",27)(2,"div",28),n(3),t(),i(4,"div",9),n(5),g(6,"date"),t()(),i(7,"a",29),n(8,"Ouvrir le compte"),t()()),a&2){let e=r.$implicit;o(3),d(e.content),o(2),s(" pr\xE9vu le ",f(6,3,e.nextReminderAt,"dd/MM/yyyy HH:mm")," "),o(2),m("routerLink",v(6,x,e.workspaceId))}}function $(a,r){if(a&1&&(i(0,"div",23)(1,"div",8)(2,"h3",24),n(3),t(),i(4,"p",9),n(5," Les rappels que vous vous \xEAtes pos\xE9s et dont l\u2019heure est pass\xE9e. "),t(),p(6,B,9,8,"div",25),t()()),a&2){let e=u(2);o(3),s(" \xC0 traiter aujourd\u2019hui (",e.rappels.length,") "),o(3),m("ngForOf",e.rappels)}}function q(a,r){if(a&1&&(i(0,"div",30),c(1,"app-widget-workspace-avatar",31),i(2,"div",27)(3,"a",32),n(4),t(),i(5,"div",9),n(6),g(7,"date"),t()(),i(8,"a",29),n(9,"Relancer"),t()()),a&2){let e=r.$implicit,l=u(2);o(),m("workspace",e)("size",32),o(2),m("routerLink",v(9,x,e.id)),o(),d(e.name),o(2),s(" Derni\xE8re activit\xE9 : ",l.derniereActivite(e)?f(7,6,l.derniereActivite(e),"dd/MM/yyyy"):"jamais"," "),o(2),m("routerLink",v(11,x,e.id))}}function W(a,r){if(a&1&&(i(0,"p",33),n(1),t()),a&2){let e=u(2);o(),s(" Personne n\u2019a d\xE9croch\xE9. Tout le portefeuille a publi\xE9 ou fait un live dans les ",e.joursDecrochage," derniers jours. ")}}function G(a,r){if(a&1&&(i(0,"div",30),c(1,"app-widget-workspace-avatar",31),i(2,"div",27)(3,"div",34),n(4),t(),c(5,"p-tag",35),t()()),a&2){let e=r.$implicit,l=u(2);o(),m("workspace",e)("size",32),o(3),d(e.name),o(),m("severity",l.signaux[e.signalName].ton)("value",l.signaux[e.signalName].libelle)}}function J(a,r){a&1&&(i(0,"p",33),n(1," Rien \xE0 signaler dans le vivier pour le moment. "),t())}function U(a,r){if(a&1&&(i(0,"div",30)(1,"div",27)(2,"a",36),n(3),t(),i(4,"div",9),n(5),g(6,"date"),t()(),c(7,"p-tag",35),t()),a&2){let e=r.$implicit;o(3),d(e.subject||"Sans objet"),o(2),s(" ",f(6,4,e.updatedAt,"dd/MM/yyyy HH:mm")," "),o(2),m("severity",e.status==="closed"?"secondary":"info")("value",e.status)}}function K(a,r){a&1&&(i(0,"p",33),n(1," Aucune conversation. Ouvrez-en une depuis la fiche d\u2019un compte. "),t())}function Q(a,r){if(a&1&&(w(0),i(1,"div",5)(2,"div",6)(3,"div",7)(4,"div",8)(5,"div",9),n(6,"Comptes accompagn\xE9s"),t(),i(7,"div",10),n(8),t()()()(),i(9,"div",6)(10,"div",7)(11,"div",8)(12,"div",9),n(13,"CA g\xE9n\xE9r\xE9"),t(),i(14,"div",10),n(15),t(),i(16,"div",9),n(17," depuis vos prises en charge "),t()()()(),i(18,"div",6)(19,"div",7)(20,"div",8)(21,"div",9),n(22,"Coins re\xE7us"),t(),i(23,"div",10),n(24),t(),i(25,"div",9),n(26," depuis vos prises en charge "),t()()()(),i(27,"div",6)(28,"div",7)(29,"div",8)(30,"div",9),n(31,"En d\xE9crochage"),t(),i(32,"div",10),n(33),t(),i(34,"div",9),n(35),t()()()()(),p(36,$,7,2,"div",11),i(37,"div",12)(38,"div",13)(39,"div",7)(40,"div",8)(41,"h3",14),n(42,"Comptes en d\xE9crochage"),t(),p(43,q,10,13,"div",15)(44,W,2,1,"p",16),t()()(),i(45,"div",13)(46,"div",7)(47,"div",8)(48,"div",17)(49,"h3",18),n(50,"\xC0 prendre dans le vivier"),t(),i(51,"a",19),n(52,"Tout voir"),t()(),p(53,G,6,5,"div",15)(54,J,2,0,"p",16),t()()(),i(55,"div",20)(56,"div",21)(57,"div",8)(58,"div",17)(59,"h3",18),n(60,"Derni\xE8res conversations"),t(),i(61,"a",22),n(62,"Tout voir"),t()(),p(63,U,8,7,"div",15)(64,K,2,0,"p",16),t()()()(),y()),a&2){let e=u();o(8),d(e.portefeuille.length),o(7),d(e.euros(e.totalCa)),o(9),d(e.nombre(e.totalCoins)),o(9),d(e.decrochage.length),o(2),s(" rien publi\xE9 depuis ",e.joursDecrochage," jours "),o(),m("ngIf",e.rappels.length),o(7),m("ngForOf",e.decrochage),o(),m("ngIf",!e.decrochage.length),o(9),m("ngForOf",e.prospectsChauds),o(),m("ngIf",!e.prospectsChauds.length),o(9),m("ngForOf",e.conversations),o(),m("ngIf",!e.conversations.length)}}var V=21,j=class a{api=h(O);signaux=L;nombre=M;euros=N;joursDecrochage=V;portefeuille=[];resultats=[];prospects=[];conversations=[];rappels=[];loading=!0;get totalCa(){return this.resultats.reduce((r,e)=>r+Number(e.caCents||0),0)}get totalCoins(){return this.resultats.reduce((r,e)=>r+Number(e.coinsTotal||0),0)}get decrochage(){let r=Date.now()-V*864e5;return this.portefeuille.filter(e=>{let l=this.derniereActivite(e);return l===null||l<r}).slice(0,10)}get prospectsChauds(){return this.prospects.filter(r=>r.signalName!=="actif").slice(0,8)}derniereActivite(r){let e=[r.dernierLive,r.dernierContenu].filter(
1Boolean).map(l=>new Date(l).getTime()).filter(l=>Number.isFinite(l));return e.length?Math.max(...e):null}ngOnInit(){return _(this,null,function*(){let[r,e,l,D,P]=yield Promise.all([this.api.portfolio("activite").catch(()=>[]),this.api.results().catch(()=>[]),this.api.prospects(40).catch(()=>({items:[],total:0})),this.api.conversations({limit:10}).catch(()=>({data:[],total:0})),this.api.dueReminders().catch(()=>[])]);this.portefeuille=r,this.resultats=e,this.prospects=l.items??[],this.conversations=D.data??[],this.rappels=P,this.loading=!1})}static \u0275fac=function(e){return new(e||a)};static \u0275cmp=E({type:a,selectors:[["app-view-am-home"]],decls:8,vars:2,consts:[[1,"p-4"],[1,"mb-3"],[1,"h4","mb-1"],[1,"text-muted","mb-0","small"],[4,"ngIf"],[1,"row","g-3","mb-4"],[1,"col-6","col-lg-3"],[1,"card","h-100"],[1,"card-body"],[1,"text-muted","small"],[1,"h3","mb-0"],["class","card mb-3",4,"ngIf"],[1,"row","g-3"],[1,"col-12","col-xl-6"],[1,"h6","mb-3"],["class","d-flex align-items-center gap-2 py-2 border-bottom",4,"ngFor","ngForOf"],["class","text-muted small mb-0",4,"ngIf"],[1,"d-flex","align-items-center","justify-content-between","mb-3"],[1,"h6","mb-0"],["routerLink","/am/vivier",1,"small"],[1,"col-12"],[1,"card"],["routerLink","/am/messages",1,"small"],[1,"card","mb-3"],[1,"h6","mb-1"],["class","py-2 border-top d-flex align-items-start gap-2",4,"ngFor","ngForOf"],[1,"py-2","border-top","d-flex","align-items-start","gap-2"],[1,"flex-grow-1"],[2,"white-space","pre-wrap"],[1,"btn","btn-sm","btn-outline-primary",3,"routerLink"],[1,"d-flex","align-items-center","gap-2","py-2","border-bottom"],[3,"workspace","size"],[1,"fw-semibold","text-decoration-none",3,"routerLink"],[1,"text-muted","small","mb-0"],[1,"fw-semibold"],[3,"severity","value"],["routerLink","/am/messages",1,"fw-semibold","text-decoration-none"]],template:function(e,l){e&1&&(i(0,"div",0)(1,"div",1)(2,"h2",2),n(3,"Accueil"),t(),i(4,"p",3),n(5," \xC0 qui parler aujourd\u2019hui, et ce que votre accompagnement a produit. "),t()(),p(6,z,1,0,"app-widget-loading",4)(7,Q,65,12,"ng-container",4),t()),e&2&&(o(6),m("ngIf",l.loading),o(),m("ngIf",!l.loading))},dependencies:[S,C,b,I,H,A,R,k,T,F],encapsulation:2})};export{j as ViewAmHomeComponent};

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.