PageSourceSearch

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

js hou.la collected 2026-09-25 03:33:34 UTC 16,570 bytes, 1 lines download raw bytes

1import{a as Z}from"./chunk-HBTIAQWU.js";import{a as Y}from"./chunk-HPMOSIW5.js";import{a as X}from"./chunk-IPKLJJ3K.js";import{a as K}from"./chunk-ATXEZIPJ.js";import{a as Q,b as G}from"./chunk-M6YDMVQ7.js";import{a as D}from"./chunk-EB6TJ75L.js";import{D as J,c as H,g as z,l as U}from"./chunk-FOJCKIWO.js";import{a as $}from"./chunk-NBMUSEX4.js";import"./chunk-AB6CKZTE.js";import"./chunk-H4HD3LNW.js";import"./chunk-AQEWHUN5.js";import"./chunk-YQZAETCE.js";import{o as N,s as j,x as F}from"./chunk-EO42E46J.js";import"./chunk-3QVSKJ3X.js";import{D as P,I as R,r as q,s as L}from"./chunk-ERUCNOOT.js";import{$b as b,Cc as C,Dc as w,Ec as S,Hc as O,Jb as s,Lb as M,Qc as h,Sc as E,Vb as i,Wb as t,Xb as v,Yb as I,Zb as A,_a as W,da as k,db as a,fc as f,gc as d,la as _,ma as x,sb as T,tc as n,uc as g,vc as c,wc as B,xc as V,yb as u}from"./chunk-DBE7WQEG.js";import{g as y}from"./chunk-W7GRJBO5.js";var te=r=>["/",r];function ie(r,o){r&1&&v(0,"app-widget-loading",6)}function ne(r,o){if(r&1&&(i(0,"div",7),n(1),t()),r&2){let e=d();a(),g(e.erreur)}}function ae(r,o){r&1&&v(0,"i",42)}function re(r,o){if(r&1){let e=b();i(0,"div",24)(1,"div",22)(2,"h3",43),n(3),t(),i(4,"p",13),n(5," Le message part sign\xE9 \xE0 votre nom (\xAB Pr\xE9nom - AM Hou.la \xBB). Il arrive dans le studio du compte, par notification et par e-mail, sans \xE9tape d\u2019acceptation. "),t(),i(6,"input",44),S("ngModelChange",function(m){_(e);let p=d(2);return w(p.sujet,m)||(p.sujet=m),x(m)}),t(),i(7,"textarea",45),S("ngModelChange",function(m){_(e);let p=d(2);return w(p.message,m)||(p.message=m),x(m)}),t(),i(8,"div",14)(9,"button",46),f("click",function(){_(e);let m=d(2);return x(m.envoyer())}),n(10," Envoyer "),t(),i(11,"button",47),f("click",function(){_(e);let m=d(2);return x(m.contactOuvert=!1)}),n(12," Annuler "),t()()()()}if(r&2){let e=d(2);a(3),c("Contacter ",e.detail.name,""),a(3),C("ngModel",e.sujet),a(),C("ngModel",e.message),a(2),s("disabled",!e.message.trim()||e.envoiEnCours)}}function oe(r,o){if(r&1&&(I(0),n(1),h(2,"date"),A()),r&2){let e=d().$implicit;a(),c(" \xB7 rappel le ",E(2,1,e.nextReminderAt,"dd/MM/yyyy HH:mm")," ")}}function le(r,o){r&1&&v(0,"p-tag",55)}function se(r,o){if(r&1){let e=b();i(0,"button",56),f("click",function(){_(e);let m=d().$implicit,p=d(2);return x(p.traiter(m))}),n(1," Marquer trait\xE9 "),t()}}function me(r,o){if(r&1){let e=b();i(0,"div",48)(1,"div",49)(2,"div",50),n(3),t(),i(4,"div",13),n(5),h(6,"date"),u(7,oe,3,4,"ng-container",5),t()(),u(8,le,1,0,"p-tag",51)(9,se,2,0,"button",52),i(10,"button",53),f("click",function(){let m=_(e).$implicit,p=d(2);return x(p.supprimerNote(m))}),v(11,"i",54),t()()}if(r&2){let e=o.$implicit;a(3),g(e.content),a(2),c(" ",E(6,5,e.createdAt,"dd/MM/yyyy HH:mm")," "),a(2),s("ngIf",e.nextReminderAt),a(),s("ngIf",e.nextReminderAt&&e.doneAt),a(),s("ngIf",e.nextReminderAt&&!e.doneAt)}}function de(r,o){r&1&&(i(0,"p",57),n(1," Journal vide. La premi\xE8re note est souvent la plus utile : pourquoi ce compte, et ce qu\u2019on lui a propos\xE9. "),t())}function ce(r,o){if(r&1&&(i(0,"a",61),n(1,"Voir"),t()),r&2){let e=d().$implicit;s("href",e.replayUrl,W)}}function pe(r,o){r&1&&(i(0,"span",13),n(1,"\u2014"),t())}function ue(r,o){if(r&1&&(i(0,"tr")(1,"td"),n(2),t(),i(3,"td",58),n(4),h(5,"date"),t(),i(6,"td",36),n(7),t(),i(8,"td",36),n(9),t(),i(10,"td",36),n(11),t(),i(12,"td",36),n(13),t(),i(14,"td"),u(15,ce,2,1,"a",59)(16,pe,2,0,"span",60),t()()),r&2){let e=o.$implicit,l=d(2);a(2),g(e.label||"\u2014"),a(2),c(" ",E(5,8,e.startedAt,"dd/MM/yyyy HH:mm")," "),a(3),c(" ",l.nombre(e.peakViewers)," "),a(2),c(" ",l.nombre(e.giftCoins)," "),a(2),c(" ",e.orderCount||0," "),a(2),c(" ",l.euros(e.revenueCents)," "),a(2),s("ngIf",e.replayUrl),a(),s("ngIf",!e.replayUrl)}}function _e(r,o){r&1&&(i(0,"tr")(1,"td",62),n(2," Aucun live. C\u2019est souvent le premier levier \xE0 activer. "),t()())}function xe(r,o){if(r&1&&(i(0,"span",63),n(1),t()),r&2){let e=d(2);a(),V(" Boosts : ",e.quota.used," / ",e.quota.quota," sur 30 jours (",e.quota.remaining," restants) ")}}function ve(r,o){r&1&&v(0,"p-tag",67)}function ge(r,o){if(r&1){let e=b();i(0,"tr")(1,"td"),n(2),t(),i(3,"td",58),n(4),h(5,"date"),t(),i(6,"td"),v(7,"p-tag",64),u(8,ve,1,0,"p-tag",65),t(),i(9,"td",36),n(10),t(),i(11,"td",36),n(12),t(),i(13,"td",36)(14,"button",66),f("click",function(){let m=_(e).$implicit,p=d(2);return x(p.basculerBoost(m))}),n(15),t()()()}if(r&2){let e=o.$implicit,l=d(2);a(2),g(e.title||"\u2014"),a(2),c(" ",E(5,13,e.createdAt,"dd/MM/yyyy")," "),a(3),s("severity",e.status==="published"?"success":"secondary")("value",e.status),a(),s("ngIf",e.isBoosted),a(2),c(" ",l.nombre(e.viewCount)," "),a(2),c(" ",l.nombre(e.likeCount)," "),a(2),M("btn-outline-secondary",e.isBoosted)("btn-outline-primary",!e.isBoosted),s("disabled",l.boostEnCours===e.id),a(),c(" ",e.isBoosted?"Retirer le boost":"Booster"," ")}}function fe(r,o){r&1&&(i(0,"tr")(1,"td",68),n(2," Aucun contenu publi\xE9. "),t()())}function ye(r,o){if(r&1&&(i(0,"tr")(1,"td",69),n(2),t(),i(3,"td"),n(4),t(),i(5,"td",36),n(6),t(),i(7,"td"),v(8,"p-tag",64),t(),i(9,"td",58),n(10),h(11,"date"),t()()),r&2){let e=o.$implicit,l=d(2);a(2),g(e.code),a(2),c(" ",e.valuePercent?e.valuePercent+" %":l.euros(e.valueCents)," "),a(2),g(e.usesCount||0),a(2),s("severity",e.isActive?"success":"secondary")("value",e.isActive?"Actif":"Inactif"),a(2),c(" ",e.expiresAt?E(11,6,e.expiresAt,"dd/MM/yyyy"):"\u2014"," ")}}function he(r,o){r&1&&(i(0,"tr")(1,"td",70),n(2," Aucun code promo. "),t()())}function Ee(r,o){if(r&1&&(i(0,"tr")(1,"td"),n(2),t(),i(3,"td",58),n(4),t(),i(5,"td",58),n(6),t(),i(7,"td",36),n(8),t(),i(9,"td",36),n(10),t()()),r&2){let e=o.$implicit,l=d(2);a(2),g(e.title),a(2),g(e.placement),a(2),g(e.status),a(2),c(" ",l.nombre(e.impressions)," "),a(2),g(l.nombre(e.clicks))}}function be(r,o){r&1&&(i(0,"tr")(1,"td",70),n(2," Aucune annonce. "),t()())}function Ce(r,o){if(r&1){let e=b();I(0),i(1,"div",8)(2,"div",9),v(3,"app-widget-workspace-avatar",10),i(4,"div")(5,"h2",11),n(6),u(7,ae,1,0,"i",12),t(),i(8,"div",13),n(9),h(10,"date"),t()()(),i(11,"div",14)(12,"a",15),n(13,"Voir le profil public"),t(),i(14,"button",16),f("click",function(){_(e);let m=d();return x(m.contactOuvert=!m.contactOuvert)}),v(15,"i",17),n(16," Contacter "),t()()(),u(17,re,13,4,"div",18),i(18,"div",19)(19,"div",20)(20,"div",21)(21,"div",22)(22,"div",13),n(23,"Chiffre d\u2019affaires"),t(),i(24,"div",23),n(25),t()()()(),i(26,"div",20)(27,"div",21)(28,"div",22)(29,"div",13),n(30,"Coins re\xE7us"),t(),i(31,"div",23),n(32),t(),i(33,"div",13),n(34),t()()()(),i(35,"div",20)(36,"div",21)(37,"div",22)(38,"div",13),n(39,"Abonn\xE9s"),t(),i(40,"div",23),n(41),t()()()(),i(42,"div",20)(43,"div",21)(44,"div",22)(45,"div",13),n(46,"J\u2019aime re\xE7us"),t(),i(47,"div",23),n(48),t()()()()(),i(49,"div",24)(50,"div",22)(51,"h3",25),n(52,"Journal d\u2019accompagnement"),t(),i(53,"p",13),n(54," Ce qui a \xE9t\xE9 dit, fait, et quand relancer. Le journal suit le COMPTE : si l\u2019accompagnement change de main, le suivant reprend le fil au lieu de repartir de z\xE9ro. "),t(),i(55,"textarea",26),S("ngModelChange",function(m){_(e);let p=d();return w(p.noteTexte,m)||(p.noteTexte=m),x(m)}),t(),i(56,"div",27)(57,"label",28),n(58,"Me le rappeler le"),t(),i(59,"input",29),S("ngModelChange",function(m){_(e);let p=d();return w(p.noteRappel,m)||(p.noteRappel=m),x(m)}),t(),i(60,"button",30),f("click",function(){_(e);let m=d();return x(m.ajouterNote())}),n(61," Consigner "),t()(),u(62,me,12,8,"div",31)(63,de,2,0,"p",32),t()(),i(64,"div",24)(65,"div",22)(66,"h3",33),n(67," Lives "),i(68,"span",13),n(69,"(20 derniers)"),t()(),i(70,"div",34)(71,"table",35)(72,"thead")(73,"tr")(74,"th"),n(75,"Titre"),t(),i(76,"th"),n(77,"Date"),t(),i(78,"th",36),n(79,"Pic de spectateurs"),t(),i(80,"th",36),n(81,"Coins"),t(),i(82,"th",36),n(83,"Commandes"),t(),i(84,"th",36),n(85,"CA"),t(),i(86,"th"),n(87,"Replay"),t()()(),i(88,"tbody"),u(89,ue,17,11,"tr",37)(90,_e,3,0,"tr",5),t()()()()(),i(91,"div",24)(92,"div",22)(93,"div",38)(94,"h3",39),n(95," Contenus "),i(96,"span",13),n(97,"(20 derniers)"),t()(),u(98,xe,2,3,"span",40),t(),i(99,"div",34)(100,"table",35)(101,"thead")(102,"tr")(103,"th"),n(104,"Titre"),t(),i(105,"th"),n(106,"Date"),t(),i(107,"th"),n(108,"\xC9tat"),t(),i(109,"th",36),n(110,"Vues"),t(),i(111,"th",36),n(112,"J\u2019aime"),t(),v(113,"th"),t()(),i(114,"tbody"),u(115,ge,16,16,"tr",37)(116,fe,3,0,"tr",5),t()()()()(),i(117,"div",24)(118,"div",22)(119,"h3",33),n(120,"Codes promo"),t(),i(121,"div",34)(122,"table",35)(123,"thead")(124,"tr")(125,"th"),n(126,"Code"),t(),i(127,"th"),n(128,"Remise"),t(),i(129,"th",36),n(130,"Utilisations"),t(),i(131,"th"),n(132,"\xC9tat"),t(),i(133,"th"),n(134,"Expire"),t()()(),i(135,"tbody"),u(136,ye,12,9,"tr",37)(137,he,3,0,"tr",5),t()()()()(),i(138,"div",41)(139,"div",22)(140,"h3",25),n(141,"Annonces diffus\xE9es"),t(),i(142,"p",13),n(143," Lecture seule. Les annonces se cr\xE9ent et se modifient c\xF4t\xE9 administration. "),t(),i(144,"div",34)(145,"table",35)(146,"thead")(147,"tr")(148,"th"),n(149,"Titre"),t(),i(150,"th"),n(151,"Emplacement"),t(),i(152,"th"),n(153,"\xC9tat"),t(),i(154,"th",36),n(155,"Impressions"),t(),i(156,"th",36),n(157,"Clics"),t()()(),i(158,"tbody"),u(159,Ee,11,5,"tr",37)(160,be,3,0,"tr",5),t()()()()(),A()}if(r&2){let e=d();a(3),s("workspace",e.detail)("size",56),a(3),c(" ",e.detail.name," "),a(),s("ngIf",e.detail.isVerified),a(2),B(" @",e.detail.slug," \xB7 inscrit le ",E(10,29,e.detail.createdAt,"dd/MM/yyyy")," "),a(3),s("routerLink",O(32,te,e.detail.slug)),a(5),s("ngIf",e.contactOuvert),a(8),g(e.euros(e.detail.caCents)),a(7
1),c(" ",e.nombre(e.detail.coinsTotal)," "),a(2),V(" ",e.nombre(e.detail.coinsLive)," live \xB7 ",e.nombre(e.detail.coinsVod)," VOD \xB7 ",e.nombre(e.detail.coinsAutre)," autre "),a(7),c(" ",e.nombre(e.detail.followerCount)," "),a(7),c(" ",e.nombre(e.detail.totalLikesReceived)," "),a(7),C("ngModel",e.noteTexte),a(4),C("ngModel",e.noteRappel),a(),s("disabled",!e.noteTexte.trim()||e.noteEnCours),a(2),s("ngForOf",e.notes),a(),s("ngIf",!e.notes.length),a(26),s("ngForOf",e.detail.lives),a(),s("ngIf",!e.detail.lives.length),a(8),s("ngIf",e.quota),a(17),s("ngForOf",e.detail.contenus),a(),s("ngIf",!e.detail.contenus.length),a(20),s("ngForOf",e.detail.promos),a(),s("ngIf",!e.detail.promos.length),a(22),s("ngForOf",e.detail.annonces),a(),s("ngIf",!e.detail.annonces.length)}}var ee=class r{api=k(Y);route=k(N);toast=k(D);nombre=X;euros=Z;detail=null;loading=!0;erreur=null;contactOuvert=!1;sujet="";message="";envoiEnCours=!1;quota=null;boostEnCours=null;notes=[];noteTexte="";noteRappel="";noteEnCours=!1;ngOnInit(){return y(this,null,function*(){let o=this.route.snapshot.paramMap.get("id");if(!o){this.erreur="Compte introuvable.",this.loading=!1;return}try{this.detail=yield this.api.workspace(o)}catch(e){this.erreur=e?.status===403?"Ce compte n\u2019est pas dans votre portefeuille.":"Impossible de charger la fiche."}finally{this.loading=!1}try{this.quota=yield this.api.quota()}catch{}try{this.notes=yield this.api.notes(o)}catch{}})}ajouterNote(){return y(this,null,function*(){if(!(!this.detail||!this.noteTexte.trim())){this.noteEnCours=!0;try{let o=yield this.api.addNote(this.detail.id,this.noteTexte.trim(),this.noteRappel?new Date(this.noteRappel).toISOString():null);this.notes=[o,...this.notes],this.noteTexte="",this.noteRappel=""}catch{this.toast.add({severity:"error",detail:"La note n\u2019a pas pu \xEAtre enregistr\xE9e."})}finally{this.noteEnCours=!1}}})}traiter(o){return y(this,null,function*(){try{let e=yield this.api.markNoteDone(o.id);this.notes=this.notes.map(l=>l.id===o.id?e:l)}catch{this.toast.add({severity:"error",detail:"Action impossible."})}})}supprimerNote(o){return y(this,null,function*(){try{yield this.api.deleteNote(o.id),this.notes=this.notes.filter(e=>e.id!==o.id)}catch(e){this.toast.add({severity:"warn",detail:e?.status===403?"Seul l\u2019auteur d\u2019une note peut la supprimer.":"Suppression impossible."})}})}envoyer(){return y(this,null,function*(){if(!(!this.detail||!this.message.trim())){this.envoiEnCours=!0;try{yield this.api.contact(this.detail.id,this.sujet.trim()||void 0,this.message.trim()),this.toast.add({severity:"success",detail:"Message envoy\xE9. Il appara\xEEt dans le studio du compte et part aussi par e-mail."}),this.contactOuvert=!1,this.sujet="",this.message=""}catch{this.toast.add({severity:"error",detail:"L\u2019envoi a \xE9chou\xE9."})}finally{this.envoiEnCours=!1}}})}basculerBoost(o){return y(this,null,function*(){let e=!o.isBoosted;this.boostEnCours=o.id;try{yield this.api.setBoost(o.id,e),o.isBoosted=e?1:0,e&&this.quota&&(this.quota.used+=1,this.quota.remaining=Math.max(0,this.quota.remaining-1)),this.toast.add({severity:"success",detail:e?"Contenu boost\xE9 : il remonte fortement dans le fil.":"Boost retir\xE9."})}catch(l){this.toast.add({severity:"warn",detail:l?.status===429?"Quota de boosts atteint pour les 30 derniers jours.":"L\u2019action a \xE9chou\xE9."})}finally{this.boostEnCours=null}})}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=T({type:r,selectors:[["app-view-am-workspace"]],decls:7,vars:3,consts:[[1,"p-4"],["routerLink","/am/portefeuille",1,"small","text-decoration-none"],[1,"pi","pi-arrow-left"],["class","d-block mt-3",4,"ngIf"],["class","alert alert-warning mt-3",4,"ngIf"],[4,"ngIf"],[1,"d-block","mt-3"],[1,"alert","alert-warning","mt-3"],[1,"d-flex","flex-wrap","align-items-center","justify-content-between","gap-3","mt-3","mb-4"],[1,"d-flex","align-items-center","gap-3"],[3,"workspace","size"],[1,"h4","mb-1"],["class","pi pi-verified text-primary","title","Compte certifi\xE9",4,"ngIf"],[1,"text-muted","small"],[1,"d-flex","gap-2"],["target","_blank",1,"btn","btn-outline-secondary",3,"routerLink"],["type","button",1,"btn","btn-primary",3,"click"],[1,"pi","pi-send"],["class","card mb-4",4,"ngIf"],[1,"row","g-3","mb-4"],[1,"col-6","col-lg-3"],[1,"card","h-100"],[1,"card-body"],[1,"h4","mb-0"],[1,"card","mb-4"],[1,"h6","mb-1"],["rows","2","placeholder","Ce que vous venez de faire, ou ce qu\u2019il faudra faire\u2026",1,"form-control","mb-2",3,"ngModelChange","ngModel"],[1,"d-flex","flex-wrap","align-items-center","gap-2","mb-3"],["for","am-rappel",1,"small","text-muted"],["id","am-rappel","type","datetime-local",1,"form-control",2,"max-width","230px",3,"ngModelChange","ngModel"],["type","button",1,"btn","btn-sm","btn-primary",3,"click","disabled"],["class","py-2 border-top d-flex align-items-start gap-2",4,"ngFor","ngForOf"],["class","text-muted small mb-0",4,"ngIf"],[1,"h6","mb-3"],[1,"table-responsive"],[1,"table","table-sm","align-middle","mb-0"],[1,"text-end"],[4,"ngFor","ngForOf"],[1,"d-flex","flex-wrap","align-items-center","justify-content-between","gap-2","mb-3"],[1,"h6","mb-0"],["class","badge bg-secondary",4,"ngIf"],[1,"card"],["title","Compte certifi\xE9",1,"pi","pi-verified","text-primary"],[1,"h6"],["type","text","placeholder","Objet 
1(facultatif)",1,"form-control","mb-2",3,"ngModelChange","ngModel"],["rows","4","placeholder","Votre message\u2026",1,"form-control","mb-2",3,"ngModelChange","ngModel"],["type","button",1,"btn","btn-primary",3,"click","disabled"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"py-2","border-top","d-flex","align-items-start","gap-2"],[1,"flex-grow-1"],[2,"white-space","pre-wrap"],["severity","secondary","value","Trait\xE9",4,"ngIf"],["type","button","class","btn btn-sm btn-outline-secondary",3,"click",4,"ngIf"],["type","button","title","Supprimer (auteur seulement)",1,"btn","btn-sm","btn-outline-danger",3,"click"],[1,"pi","pi-trash"],["severity","secondary","value","Trait\xE9"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click"],[1,"text-muted","small","mb-0"],[1,"small"],["target","_blank","class","small",3,"href",4,"ngIf"],["class","text-muted small",4,"ngIf"],["target","_blank",1,"small",3,"href"],["colspan","7",1,"text-muted","small"],[1,"badge","bg-secondary"],[3,"severity","value"],["severity","warn","value","Boost\xE9","class","ms-1",4,"ngIf"],["type","button",1,"btn","btn-sm",3,"click","disabled"],["severity","warn","value","Boost\xE9",1,"ms-1"],["colspan","6",1,"text-muted","small"],[1,"font-monospace"],["colspan","5",1,"text-muted","small"]],template:function(e,l){e&1&&(i(0,"div",0)(1,"a",1),v(2,"i",2),n(3," Mon portefeuille "),t(),u(4,ie,1,0,"app-widget-loading",3)(5,ne,2,1,"div",4)(6,Ce,161,34,"ng-container",5),t()),e&2&&(a(4),s("ngIf",l.loading),a(),s("ngIf",l.erreur),a(),s("ngIf",!l.loading&&l.detail))},dependencies:[R,q,L,P,J,H,z,U,F,j,G,Q,$,K],encapsulation:2})};export{ee as ViewAmWorkspaceComponent};

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.