1import{a as ke}from"./chunk-ZVCHMNXO.js";import"./chunk-32B64V2R.js";import"./chunk-3XLVKQRY.js";import"./chunk-DJ5AJG3T.js";import"./chunk-SLPC3Y4V.js";import"./chunk-XIRWNEM2.js";import"./chunk-AAORKXGN.js";import"./chunk-KDGXQRVY.js";import{b as ye,c as be,d as Me,e as R,f as Oe,g as Ie,h as Pe,i as we,j as Le,k as Ae,l as F}from"./chunk-ODX4XZAQ.js";import{a as he}from"./chunk-UUEFXD6N.js";import{D as ve,g as ge,l as me,t as ue,u as _e,v as xe}from"./chunk-Q2KKZV5J.js";import{a as pe}from"./chunk-JICM7NVH.js";import{a as Ee}from"./chunk-SVTU2J67.js";import{a as Ce}from"./chunk-BD6EMWWF.js";import{m as A}from"./chunk-64AEJNO3.js";import{e as fe}from"./chunk-5PMXPALR.js";import"./chunk-AB6CKZTE.js";import{c as se,d as ce,e as de}from"./chunk-DIGPPQJE.js";import{o as oe,s as re,x as le}from"./chunk-EU6HCBUP.js";import"./chunk-KAJMKXZ6.js";import{D as ae,w as ie,x as ne}from"./chunk-ZAQTNZYS.js";import{c as te}from"./chunk-SRTXE2HR.js";import{Ba as v,Dc as Q,Ec as K,Fa as j,Fc as X,Ib as $,Jb as w,Lb as H,Lc as P,Nb as S,Rb as C,Tb as J,Ub as T,Uc as c,Vb as N,Vc as u,Wb as o,Wc as b,Xb as r,Yb as p,ac as L,da as E,db as a,gc as I,hc as m,kd as Z,la as M,ld as D,ma as O,md as ee,nc as B,oc as Y,pc as G,sb as W,uc as s,vc as h,wa as U,wc as d,yb as f}from"./chunk-NTTV6FWH.js";import{a as z,b as q,g as x}from"./chunk-W7GRJBO5.js";var Ve=["video"],Se=["audio"],V=i=>({name:i}),Be=i=>({n:i}),Te=(i,e)=>e.id;function Ye(i,e){i&1&&p(0,"app-widget-loading")}function Ge(i,e){if(i&1&&(s(0),c(1,"translate")),i&2){let t=m(2);d(" ",b(1,1,"AGENCY.LIVE.REVOKED",P(4,V,t.nomCreateur))," ")}}function De(i,e){if(i&1&&(s(0),c(1,"translate")),i&2){let t=m(2);d(" ",u(1,1,t.bloque())," ")}}function Re(i,e){if(i&1&&(o(0,"div",5),p(1,"i",6),o(2,"span"),f(3,Ge,2,6)(4,De,2,3),r()()),i&2){let t=m();a(3),C(t.retire()?3:4)}}function Fe(i,e){if(i&1&&(o(0,"p",10),s(1),r()),i&2){let t=m(2);a(),h(t.live().title)}}function ze(i,e){if(i&1&&(o(0,"div",11),p(1,"i",12),o(2,"span"),s(3),c(4,"translate"),p(5,"br"),o(6,"span",13),s(7),c(8,"translate"),r()()()),i&2){let t=m(2);a(3),d(" ",b(4,2,t.fini()?"AGENCY.LIVE.ENDED":"AGENCY.LIVE.NOT_LIVE",P(7,V,t.nomCreateur))," "),a(4),h(u(8,5,"AGENCY.LIVE.NOT_LIVE_HINT"))}}function qe(i,e){i&1&&(o(0,"span"),p(1,"i",40),s(2),c(3,"translate"),r()),i&2&&(a(2),d(" ",u(3,1,"AGENCY.LIVE.PAUSED"),""))}function Ue(i,e){i&1&&(o(0,"span",18),p(1,"span",41),s(2),c(3,"translate"),r()),i&2&&(a(2),h(u(3,1,"AGENCY.STABLE.LIVE_NOW")))}function je(i,e){i&1&&(o(0,"div",28),p(1,"i",42),s(2),c(3,"translate"),r()),i&2&&(a(2),d(" ",u(3,1,"AGENCY.LIVE.VIDEO_CONNECTING")," "))}function We(i,e){if(i&1){let t=L();o(0,"div",28),p(1,"i",43),s(2),c(3,"translate"),o(4,"button",44),I("click",function(){M(t);let l=m(3);return O(l.reessayerVideo())}),p(5,"i",45),s(6),c(7,"translate"),r()()}i&2&&(a(2),d(" ",u(3,2,"AGENCY.LIVE.VIDEO_FAILED")," "),a(4),d(" ",u(7,4,"AGENCY.LIVE.RETRY")," "))}function $e(i,e){if(i&1&&(o(0,"option",48),s(1),c(2,"translate"),r()),i&2){let t=e.$implicit,n=m(4);w("ngValue",t),a(),d(" ",b(2,2,n.libelle(t).key,n.libelle(t).params)," ")}}function He(i,e){if(i&1){let t=L();o(0,"label",46)(1,"span"),s(2),c(3,"translate"),r(),o(4,"select",47),X("ngModelChange",function(l){M(t);let _=m(3);return K(_.dureeExclusion,l)||(_.dureeExclusion=l),O(l)}),T(5,$e,3,5,"option",48,J),r()(),o(7,"p",49),p(8,"i",50),s(9),c(10,"translate"),r()}if(i&2){let t=m(3);a(2),h(u(3,3,"AGENCY.LIVE.TIMEOUT_DURATION")),a(2),Q("ngModel",t.dureeExclusion),a(),N(t.durees),a(4),d(" ",b(10,5,"AGENCY.LIVE.MOD_NOTICE",P(8,V,t.nomCreateur))," ")}}function Je(i,e){i&1&&(o(0,"span",52),p(1,"i",55),s(2),c(3,"translate"),r()),i&2&&(a(2),h(u(3,1,"AGENCY.LIVE.HOST")))}function Qe(i,e){if(i&1&&(o(0,"span",52),p(1,"i",56),s(2),c(3,"translate"),r()),i&2){let t=m().$implicit;a(2),h(b(3,1,"AGENCY.LIVE.PAID",P(4,Be,t.coins)))}}function Ke(i,e){if(i&1){let t=L();o(0,"div",54)(1,"button",57),I("click",function(){M(t);let l=m().$implicit,_=m(3);return O(_.supprimer(l))}),p(2,"i",58),s(3),c(4,"translate"),r(),o(5,"button",59),I("click",function(){M(t);let l=m().$implicit,_=m(3);return O(_.exclure(l))}),p(6,"i",12),s(7),c(8,"translate"),r(),o(9,"button",60),I("click",function(){M(t);let l=m().$implicit,_=m(3);return O(_.bannir(l))}),p(10,"i",61),s(11),c(12,"translate"),r()()}if(i&2){let t=m().$implicit,n=m(3);
1a(),w("disabled",n.occupe()===t.id),a(2),d("",u(4,6,"AGENCY.LIVE.DELETE")," "),a(2),w("disabled",n.occupe()===t.id),a(2),d("",u(8,8,"AGENCY.LIVE.TIMEOUT")," "),a(2),w("disabled",n.occupe()===t.id),a(2),d("",u(12,10,"AGENCY.LIVE.BAN")," ")}}function Xe(i,e){if(i&1&&(o(0,"li",36)(1,"div",51)(2,"strong"),s(3),r(),f(4,Je,4,3,"span",52)(5,Qe,4,6,"span",52),o(6,"span",13),s(7),c(8,"date"),r()(),o(9,"div",53),s(10),r(),f(11,Ke,13,12,"div",54),r()),i&2){let t=e.$implicit,n=m(3);$("data-testid","msg-"+t.id),a(3),h(n.auteur(t)),a(),C(t.workspaceId===n.creatorId?4:-1),a(),C(t.coins>0?5:-1),a(2),h(b(8,7,t.createdAt,"shortTime")),a(3),h(t.content),a(),C(n.peutModerer(t)?11:-1)}}function Ze(i,e){i&1&&(o(0,"li",13),s(1),c(2,"translate"),r()),i&2&&(a(),d(" ",u(2,1,"AGENCY.LIVE.CHAT_EMPTY")," "))}function et(i,e){if(i&1&&(p(0,"br"),o(1,"span",13),s(2),r()),i&2){let t=m().$implicit;a(2),d("\xAB ",t.commentExcerpt," \xBB")}}function tt(i,e){if(i&1&&(o(0,"li"),p(1,"i",31),o(2,"span")(3,"strong"),s(4),c(5,"uppercase"),c(6,"translate"),r(),s(7),o(8,"span",13),s(9),c(10,"date"),r(),f(11,et,3,1),r()()),i&2){let t=e.$implicit,n=m(3);a(),S(n.icones[t.action]),a(3),h(t.actor.name||u(6,8,u(5,6,"AGENCY.ROLES."+t.actor.role))),a(3),d(" ",n.texteAction(t)," "),a(2),d("\xB7 ",b(10,10,t.at,"short"),""),a(2),C(t.commentExcerpt?11:-1)}}function it(i,e){i&1&&(o(0,"li",13),s(1),c(2,"translate"),r()),i&2&&(a(),d(" ",u(2,1,"AGENCY.LIVE.JOURNAL_EMPTY")," "))}function nt(i,e){if(i&1){let t=L();o(0,"div",14)(1,"div",15)(2,"div",16),s(3),c(4,"translate"),r(),o(5,"div",17),f(6,qe,4,3,"span")(7,Ue,4,3,"span",18),r()(),o(8,"div",15)(9,"div",16),p(10,"i",19),s(11),c(12,"translate"),r(),o(13,"div",20),s(14),r()(),o(15,"div",15)(16,"div",16),p(17,"i",21),s(18),c(19,"translate"),r(),o(20,"div",17),s(21),r()(),o(22,"div",15)(23,"div",16),p(24,"i",22),s(25),c(26,"translate"),r(),o(27,"div",17),s(28),r()()(),o(29,"div",23)(30,"section",24)(31,"div",25),p(32,"video",26,0)(34,"div",27,1),f(36,je,4,3,"div",28)(37,We,8,6,"div",28),r(),o(38,"div",29)(39,"button",30),I("click",function(){M(t);let l=m(2);return O(l.basculerSon())}),p(40,"i",31),s(41),c(42,"translate"),r()()(),o(43,"section",32)(44,"h2",33),p(45,"i",34),s(46),c(47,"translate"),r(),f(48,He,11,10),o(49,"ol",35),T(50,Xe,12,10,"li",36,Te,!1,Ze,3,3,"li",13),r()()(),o(53,"section",37)(54,"h2",33),p(55,"i",38),s(56),c(57,"translate"),r(),o(58,"ul",39),T(59,tt,12,13,"li",null,Te,!1,it,3,3,"li",13),r()()}if(i&2){let t=m(2);a(3),d(" ",u(4,19,"AGENCY.LIVE.STATUS")," "),a(3),C(t.live().status==="paused"?6:7),a(5),d(" ",u(12,21,"AGENCY.LIVE.VIEWERS")," "),a(3),d(" ",t.live().viewerCount," "),a(4),d(" ",u(19,23,"AGENCY.LIVE.PEAK")," "),a(3),d(" ",t.live().peakViewerCount," "),a(4),d(" ",u(26,25,"AGENCY.LIVE.DURATION")," "),a(3),h(t.duree()),a(2),H("al-player--landscape",t.live().orientation==="landscape"),a(6),C(t.videoEtat()==="connexion"?36:t.videoEtat()==="echec"?37:-1),a(4),S(t.son()?"pi pi-volume-off":"pi pi-volume-up"),a(),d(" ",u(42,27,t.son()?"AGENCY.LIVE.SOUND_OFF":"AGENCY.LIVE.SOUND_ON")," "),a(5),d(" ",u(47,29,"AGENCY.LIVE.CHAT")," "),a(2),C(t.ctx.can("moderer_live")?48:-1),a(2),N(t.messages()),a(6),d(" ",u(57,31,"AGENCY.LIVE.JOURNAL_TITLE")," "),a(3),N(t.journal())}}function at(i,e){if(i&1&&(o(0,"div",7)(1,"h1",8),p(2,"i",9),s(3),c(4,"translate"),r(),f(5,Fe,2,1,"p",10),r(),f(6,ze,9,9,"div",11)(7,nt,62,33)),i&2){let t,n=m();a(3),d(" ",b(4,3,"AGENCY.LIVE.TITLE",P(6,V,n.nomCreateur))," "),a(2),C((t=n.live())!=null&&t.title?5:-1),a(),C(n.live()?7:6)}}var ot=3e4,Ne=class i{ctx=E(Ee);api=E(fe);socket=E(ke);route=E(oe);confirm=E(he);toast=E(pe);t=E(se);zone=E(U);isBrowser=te(E(j));videoEl;audioEl;creatorId=this.route.snapshot.paramMap.get("creatorWorkspaceId")??"";etat=v(null);messages=v([]);journal=v([]);loading=v(!0);bloque=v(null);fini=v(!1);retire=v(!1);occupe=v(null);videoEtat=v("connexion");son=v(!1);maintenant=v(Date.now());dureeExclusion=10;live=D(()=>{let e=this.etat();return e&&e.live?e:null});duree=D(()=>{let e=this.live();return e?be(ye(e,this.maintenant())):""});icones=Ae;room=null;salleVideo=null;numeroVideo=0;relanceVideo=null;relecture=null;tic=null;quitterSocket=null;ecouteurs=[];detruit=!1;constructor(){ee(()=>{let e=this.ctx.agencyId();e&&Z(()=>void this.demarrer(e))})}get agencyId(){return this.ctx.agencyId()??""}
1get nomCreateur(){let e=this.etat()?.creator;return e?.name||(e?.slug?`@${e.slug}`:"")}get durees(){return Pe(this.live()?.moderation.timeoutMaxMinutes??1440)}libelle(e){return we(e)}peutModerer(e){return this.ctx.can("moderer_live")&&Ie(e,this.creatorId,this.ctx.view()?.agency.workspaceId??null)}demarrer(e){return x(this,null,function*(){this.arreterTout(),this.detruit=!1,this.loading.set(!0),yield this.lire(e,!0),this.loading.set(!1),!(!this.isBrowser||this.bloque())&&(this.brancherSocket(e),this.relecture=setInterval(()=>void this.lire(e,!1),ot),this.tic=setInterval(()=>this.maintenant.set(Date.now()),1e3))})}lire(e,t){return x(this,null,function*(){try{let n=yield this.api.creatorLive(e,this.creatorId);if(this.detruit)return;let l=this.live();if(this.etat.set(n),!n.live){l&&this.fini.set(!0),this.couperVideo();return}this.fini.set(!1),(t||!l||l.roomId!==n.roomId)&&(this.messages.set(n.messages),this.lireJournal()),this.salleVideo!==n.roomId&&this.brancherVideo(n)}catch(n){if(this.detruit)return;let l=n?.error?.code;F(l,n?.status)?(this.bloque.set(A(n)),this.arreterTout()):t&&this.bloque.set(A(n))}})}lireJournal(){return x(this,null,function*(){try{let e=yield this.api.liveModeration(this.agencyId,this.creatorId);this.journal.set(e.items)}catch{}})}brancherSocket(e){let t=()=>this.live()?.roomId,n=g=>g?.agencyId===e&&g?.creatorWorkspaceId===this.creatorId,l=(g,y)=>this.ecouteurs.push(this.socket.on(g,k=>this.zone.run(()=>y(k))));l("comment:approved",g=>{if(g?.roomId!==t())return;let y=Oe(g);y&&this.messages.set(Me(this.messages(),y))}),l("comment:deleted",g=>{g?.roomId===t()&&this.messages.set(R(this.messages(),g.commentId))}),l("live:viewer_count",g=>{let y=this.live();if(y&&g?.roomId===y.roomId){let k=Number(g.viewerCount)||0;this.etat.set(q(z({},y),{viewerCount:k,peakViewerCount:Math.max(y.peakViewerCount,k)}))}});let _=g=>{g?.roomId&&g.roomId===t()&&this.lire(e,!1)};l("live:ended",_),l("live:force_stopped",_),l("agency-live:revoked",g=>{n(g)&&(this.retire.set(!0),this.bloque.set("AGENCY.ERRORS.AGENCY_LIVE_FOLLOW_NOT_ALLOWED"),this.arreterTout())}),l("agency-live:refused",g=>{n(g)&&g.code!=="AGENCY_LIVE_NOT_LIVE"&&(this.bloque.set(A({error:{code:g.code},status:403})),this.arreterTout())}),this.quitterSocket=this.socket.subscribeAgencyLive(e,this.creatorId)}brancherVideo(e){return x(this,null,function*(){if(!this.isBrowser)return;this.couperVideo();let t=++this.numeroVideo;this.salleVideo=e.roomId,this.videoEtat.set("connexion");let n=null;try{let l=yield import("./chunk-MW3ZKR3I.js");if(t!==this.numeroVideo)return;if(n=new l.Room({adaptiveStream:!0,dynacast:!0}),this.room=n,n.on(l.RoomEvent.TrackSubscribed,_=>this.zone.run(()=>this.attacher(_))),n.on(l.RoomEvent.Disconnected,()=>this.zone.run(()=>{this.room===n&&(this.room=null,this.salleVideo=null,this.videoEtat.set("echec"),this.relanceVideo=setTimeout(()=>void this.lire(this.agencyId,!1),4e3))})),yield n.connect(e.video.wsUrl,e.video.token),t!==this.numeroVideo){n.disconnect();return}n.remoteParticipants?.forEach(_=>_.trackPublications?.forEach(g=>g.track&&this.attacher(g.track))),this.videoEtat.set("ok")}catch{if(t!==this.numeroVideo)return;try{n?.disconnect?.()}catch{}this.room===n&&(this.room=null),this.salleVideo=null,this.videoEtat.set("echec")}})}attacher(e){try{if(e.kind==="video"&&this.videoEl)e.attach(this.videoEl.nativeElement);else if(e.kind==="audio"&&this.audioEl){let t=e.attach();t.muted=!this.son(),this.audioEl.nativeElement.innerHTML="",this.audioEl.nativeElement.appendChild(t)}}catch{}}basculerSon(){this.son.set(!this.son()),this.audioEl?.nativeElement.querySelectorAll("audio").forEach(e=>{e.muted=!this.son(),this.son()&&e.play().catch(()=>{})})}reessayerVideo(){this.lire(this.agencyId,!1).then(()=>{let e=this.live();e&&!this.room&&this.brancherVideo(e)})}couperVideo(){this.numeroVideo++,this.relanceVideo&&(clearTimeout(this.relanceVideo),this.relanceVideo=null);let e=this.room;this.room=null,this.salleVideo=null;try{e?.disconnect?.()}catch{}this.audioEl&&(this.audioEl.nativeElement.innerHTML="")}arreterTout(){this.couperVideo(),this.relecture&&clearInterval(this.relecture),this.tic&&clearInterval(this.tic),this.relecture=this.tic=null,this.quitterSocket?.(),this.quitterSocket=null;for(let e of this.ecouteurs)e();this.ecouteurs=[]}ngOnDestroy(){this.detruit=!0,this.arreterTout()}auteur(e){return e.workspace?.name||(e.workspace?.slug?`@${e.workspace.slug}`:"")}supprimer(e){return x(this,null,function*(){(yield this.confirm.confirm({header:this.t.instant("AGENCY.LIVE.CONFIRM_DELETE_TITLE"),message:this.t.instant("AGENCY.LIVE.CONFIRM_DELETE_TEXT",{name:this.auteur(e),text:e.content.slice(0,140)}),acceptLabel:this.t.instant("AGENCY.LIVE.DELETE"),rejectLabel:this.t.instant("AGENCY.COMMON.CANCEL"),severity:"warn"}))&&(yield this.agir(e.id,()=>x(this,null,function*(){return yield this.api.deleteLiveMessage(this.agencyId,this.creatorId,e.id),this.messages.set(R(this.messages(),e.id)),this.t.instant("AGENCY.LIVE.DONE_DELETE")})))})}exclure(e){return x(this,null,function*(){let t=this.libelle(this.dureeExclusion),n=this.t.instant(t.key,t.params);(yield this.confirm.confirm({header:this.t.instant("AGENCY.LIVE.CONFIRM_TIMEOUT_TITLE",{name:this.auteur(e)}),message:this.t.instant("AGENCY.LIVE.CONFIRM_TIMEOUT_TEXT",{name:this.auteur(e),duree:n}),acceptLabel:this.t.instant("AGENCY.LIVE.TIMEOUT"),rejectLabel:this.t.instant("AGENCY.COMMON.CANCEL"),severity:"warn"}))&&(yield this.agir(e.id,()=>x(this,null,function*(){return yield this.api.timeoutLive(this.agencyId,this.creatorId,e.workspaceId,this.dureeExclusion),this.t.instant("AGENCY.LIVE.DONE_TIMEOUT",{name:this.auteur(e),duree:n})}
1)))})}bannir(e){return x(this,null,function*(){(yield this.confirm.confirm({header:this.t.instant("AGENCY.LIVE.CONFIRM_BAN_TITLE",{name:this.auteur(e)}),message:this.t.instant("AGENCY.LIVE.CONFIRM_BAN_TEXT",{name:this.auteur(e),creator:this.nomCreateur}),warning:this.t.instant("AGENCY.LIVE.CONFIRM_BAN_WARNING",{creator:this.nomCreateur}),acceptLabel:this.t.instant("AGENCY.LIVE.BAN"),rejectLabel:this.t.instant("AGENCY.COMMON.CANCEL"),severity:"danger"}))&&(yield this.agir(e.id,()=>x(this,null,function*(){return yield this.api.banLive(this.agencyId,this.creatorId,e.workspaceId),this.t.instant("AGENCY.LIVE.DONE_BAN",{name:this.auteur(e)})})))})}agir(e,t){return x(this,null,function*(){this.occupe.set(e);try{let n=yield t();this.toast.add({severity:"success",detail:n}),this.lireJournal()}catch(n){let l=A(n);this.toast.add({severity:"error",detail:this.t.instant(l)}),F(n?.error?.code,n?.status)&&(this.bloque.set(l),this.arreterTout())}finally{this.occupe.set(null)}})}texteAction(e){return Le(e,(t,n)=>this.t.instant(t,n))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=W({type:i,selectors:[["app-agency-live"]],viewQuery:function(t,n){if(t&1&&(B(Ve,5),B(Se,5)),t&2){let l;Y(l=G())&&(n.videoEl=l.first),Y(l=G())&&(n.audioEl=l.first)}},decls:8,vars:4,consts:[["video",""],["audio",""],["data-testid","agency-live"],["routerLink","/studio/agency/stable",1,"ag-btn","ag-btn--ghost","ag-btn--sm","mb-3"],["aria-hidden","true",1,"pi","pi-arrow-left"],["role","alert","data-testid","live-blocked",1,"ag-note","ag-note--warn"],["aria-hidden","true",1,"pi","pi-lock"],[1,"mb-3"],[1,"ag-title"],["aria-hidden","true",1,"pi","pi-video"],[1,"ag-sub"],["role","status","data-testid","live-off",1,"ag-note"],["aria-hidden","true",1,"pi","pi-clock"],[1,"ag-muted"],["data-testid","live-stats",1,"ag-grid","mb-3"],[1,"ag-stat"],[1,"ag-stat__label"],[1,"ag-stat__value"],[1,"ag-live"],["aria-hidden","true",1,"pi","pi-eye"],["data-testid","live-viewers",1,"ag-stat__value"],["aria-hidden","true",1,"pi","pi-chart-line"],["aria-hidden","true",1,"pi","pi-stopwatch"],[1,"al-layout"],[1,"ag-card","al-player"],[1,"al-video"],["autoplay","","playsinline","","muted","","data-testid","live-video"],["aria-hidden","true",1,"d-none"],["role","status",1,"al-overlay"],[1,"ag-actions","mt-2"],["type","button","data-testid","live-sound",1,"ag-btn","ag-btn--ghost","ag-btn--sm",3,"click"],["aria-hidden","true"],["data-testid","live-chat",1,"ag-card","al-chat"],[1,"ag-card__title"],["aria-hidden","true",1,"pi","pi-comments"],["aria-live","polite",1,"al-messages"],[1,"al-msg"],["data-testid","live-journal",1,"ag-card"],["aria-hidden","true",1,"pi","pi-history"],[1,"ag-alerts"],["aria-hidden","true",1,"pi","pi-pause"],["aria-hidden","true",1,"ag-live__dot"],["aria-hidden","true",1,"pi","pi-spin","pi-spinner"],["aria-hidden","true",1,"pi","pi-exclamation-circle"],["type","button",1,"ag-btn","ag-btn--sm",3,"click"],["aria-hidden","true",1,"pi","pi-refresh"],[1,"al-duration"],["name","duree","data-testid","timeout-duration",3,"ngModelChange","ngModel"],[3,"ngValue"],[1,"ag-muted","mb-2"],["aria-hidden","true",1,"pi","pi-info-circle"],[1,"al-msg__head"],[1,"ag-pill"],[1,"al-msg__text"],[1,"al-msg__actions"],["aria-hidden","true",1,"pi","pi-star"],["aria-hidden","true",1,"pi","pi-bolt"],["type","button","data-testid","mod-delete",1,"ag-btn","ag-btn--ghost","ag-btn--sm",3,"click","disabled"],["aria-hidden","true",1,"pi","pi-trash"],["type","button","data-testid","mod-timeout",1,"ag-btn","ag-btn--ghost","ag-btn--sm",3,"click","disabled"],["type","button","data-testid","mod-ban",1,"ag-btn","ag-btn--ghost","ag-btn--sm",3,"click","disabled"],["aria-hidden","true",1,"pi","pi-ban"]],template:function(t,n){t&1&&(o(0,"div",2)(1,"a",3),p(2,"i",4),s(3),c(4,"translate"),r(),f(5,Ye,1,0,"app-widget-loading")(6,Re,5,1,"div",5)(7,at,8,8),r()),t&2&&(a(3),d(" ",u(4,2,"AGENCY.LIVE.BACK")," "),a(2),C(n.loading()?5:n.bloque()?6:n.etat()?7:-1))},dependencies:[ae,ie,ne,ve,_e,xe,ue,ge,me,le,re,de,ce,Ce],styles:["[_nghost-%COMP%]{display:block;--accent: #2f8eef;--accent-dark: #1f6fd0;--ink: #14141f;--ink-soft: #5a5a6b;--line: #e7e7ee;--surface: #fff;--surface-2: #f7f7fa;--live: #ff3b30;color:var(--ink)}.ag-title[_ngcontent-%COMP%]{font-size:20px;font-weight:800;margin:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.ag-sub[_ngcontent-%COMP%]{color:var(--ink-soft);font-size:14px;margin:4px 0 0}.ag-muted[_ngcontent-%COMP%]{color:var(--ink-soft);font-size:13px}.ag-card[_ngcontent-%COMP%]{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px;margin-bottom:16px}.ag-card__title[_ngcontent-%COMP%]{font-size:15px;font-weight:700;margin:0 0 12px;display:flex;align-items:center;gap:8px}.ag-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.ag-stat[_ngcontent-%COMP%]{background:var(--surface-2);border-radius:12px;padding:12px}.ag-stat__label[_ngcontent-%COMP%]{font-size:12px;color:var(--ink-soft)}.ag-stat__value[_ngcontent-%COMP%]{font-size:20px;font-weight:800}.ag-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--surface-2);border-radius:999px;padding:3px 10px;font-size:12px;font-weight:600;white-space:nowrap}.ag-pill--strong[_ngcontent-%COMP%]{border-color:var(--accent);color:var(--accent-dark)}
1.ag-live[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:var(--live)}.ag-live__dot[_ngcontent-%COMP%]{width:8px;height:8px;border-radius:50%;background:var(--live);animation:_ngcontent-%COMP%_ag-pulse 1.4s ease-in-out infinite}@keyframes _ngcontent-%COMP%_ag-pulse{50%{opacity:.35}}@media (prefers-reduced-motion: reduce){.ag-live__dot[_ngcontent-%COMP%]{animation:none}}.ag-tabs[_ngcontent-%COMP%]{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--line);margin:16px 0;scrollbar-width:thin}.ag-tabs[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ag-tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:0;background:none;padding:10px 12px;color:var(--ink-soft);text-decoration:none;white-space:nowrap;border-bottom:3px solid transparent;font-size:14px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}.ag-tabs[_ngcontent-%COMP%] a.is-active[_ngcontent-%COMP%], .ag-tabs[_ngcontent-%COMP%] button.is-active[_ngcontent-%COMP%]{color:var(--ink);font-weight:800;border-bottom-color:var(--accent)}.ag-gauge[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.ag-gauge[_ngcontent-%COMP%]:last-child{border-bottom:0}.ag-gauge__label[_ngcontent-%COMP%]{font-weight:600}.ag-gauge__status[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:13px}.ag-gauge__bar[_ngcontent-%COMP%]{grid-column:1/-1;height:8px;border-radius:99px;background:var(--surface-2);border:1px solid var(--line);overflow:hidden}.ag-gauge__fill[_ngcontent-%COMP%]{height:100%;background:var(--accent)}.ag-gauge--missing[_ngcontent-%COMP%] .ag-gauge__fill[_ngcontent-%COMP%]{background:repeating-linear-gradient(135deg,var(--accent) 0 6px,#9cc7f5 6px 12px)}.ag-gauge__figures[_ngcontent-%COMP%]{grid-column:1/-1;font-size:12px;color:var(--ink-soft)}.ag-table-wrap[_ngcontent-%COMP%]{overflow-x:auto}.ag-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:13px}.ag-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .ag-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:10px 8px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.ag-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:12px;color:var(--ink-soft);font-weight:600;white-space:nowrap}.ag-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:0;background:none;padding:0;font:inherit;color:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:4px}.ag-table[_ngcontent-%COMP%] th[aria-sort=ascending][_ngcontent-%COMP%] button[_ngcontent-%COMP%], .ag-table[_ngcontent-%COMP%] th[aria-sort=descending][_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:var(--ink);font-weight:800}.ag-table[_ngcontent-%COMP%] .num[_ngcontent-%COMP%]{text-align:right;white-space:nowrap}.ag-notshared[_ngcontent-%COMP%]{color:var(--ink-soft);font-style:italic;white-space:nowrap;display:inline-flex;align-items:center;gap:4px}.ag-creator[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;min-width:160px}.ag-creator[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .ag-creator[_ngcontent-%COMP%] .ag-avatar[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:50%;object-fit:cover;background:var(--surface-2);flex-shrink:0}.ag-creator[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--ink);font-weight:700;text-decoration:none}.ag-alerts[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}.ag-alerts[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;gap:6px;align-items:flex-start}.ag-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;border:1px solid transparent;border-radius:10px;padding:9px 14px;font-size:14px;font-weight:600;cursor:pointer;text-decoration:none}.ag-btn[_ngcontent-%COMP%]:disabled{opacity:.55;cursor:not-allowed}.ag-btn--primary[_ngcontent-%COMP%]{background:var(--accent);color:#fff}.ag-btn--primary[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--accent-dark)}.ag-btn--ghost[_ngcontent-%COMP%]{background:var(--surface);border-color:var(--line);color:var(--ink)}.ag-btn--ghost[_ngcontent-%COMP%]:hover:not(:disabled){border-color:var(--accent);color:var(--accent-dark)}.ag-btn--sm[_ngcontent-%COMP%]{padding:5px 10px;font-size:12px}.ag-actions[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.ag-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}.ag-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:13px;font-weight:600}.ag-field[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .ag-field[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .ag-field[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{border:1px solid var(--line);border-radius:10px;padding:9px 11px;font:inherit;background:var(--surface);color:var(--ink);width:100%}.ag-field[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:var(--ink-soft)}.ag-check[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:flex-start;padding:8px 0}.ag-check[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin-top:3px;width:18px;height:18px;flex-shrink:0}.ag-note[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-left:4px solid var(--accent);background:var(--surface-2);border-radius:10px;padding:10px 12px;margin-bottom:12px;font-size:14px}.ag-note[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-top:2px}.ag-note--warn[_ngcontent-%COMP%]{border-left-style:double;border-left-width:6px}.ag-steps[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:6px}.ag-steps[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--ink-soft)}.ag-steps[_ngcontent-%COMP%] li.is-done[_ngcontent-%COMP%]{color:var(--ink);font-weight:700}.ag-empty[_ngcontent-%COMP%]{text-align:center;padding:32px 16px;color:var(--ink-soft)}.ag-empty[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:28px;display:block;margin-bottom:8px}.ag-qr[_ngcontent-%COMP%]{display:flex;gap:16px;flex-wrap:wrap;align-items:center}.ag-qr[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:180px;height:180px;border:1px solid var(--line);border-radius:12px;background:#fff}.ag-qr[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{word-break:break-all;background:var(--surface-2);padding:6px 8px;border-radius:8px;display:block}.ag-goal[_ngcontent-%COMP%]{border-top:1px solid var(--line);padding:14px 0 4px}.ag-goal[_ngcontent-%COMP%]:first-of-type{border-top:0;padding-top:0}.ag-goal__title[_ngcontent-%COMP%]{font-size:15px;font-weight:700;margin:0 0 2px}.ag-rank[_ngcontent-%COMP%]{display:inline-block;font-weight:800;margin-right:6px;padding:0 6px;border:1px solid var(--line);border-radius:6px;background:var(--surface-2);font-size:12px}.ag-quote[_ngcontent-%COMP%]{margin:0;padding:10px 14px;border-left:4px solid var(--accent);background:var(--surface-2);border-radius:10px;white-space:pre-line}.ag-actions[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:1px solid var(--line);border-radius:10px;padding:6px 9px;font:inherit}.ag-lib[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}.ag-lib[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px 12px;align-items:start;padding:12px 0;border-bottom:1px solid var(--line)}.ag-lib[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:last-child{border-bottom:0}.ag-lib__icon[_ngcontent-%COMP%]{font-size:20px;margin-top:2px}.ag-lib__title[_ngcontent-%COMP%]{font-weight:700;overflow-wrap:anywhere}.ag-lib__state[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600}@media (max-width: 560px){.ag-lib[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{grid-template-columns:auto minmax(0,1fr)}.ag-lib[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] .ag-actions[_ngcontent-%COMP%]{grid-column:1/-1}}.ag-card--cible[_ngcontent-%COMP%]{border-width:3px;border-color:var(--accent)}",".al-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}@media (max-width: 900px){.al-layout[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr)}}.al-video[_ngcontent-%COMP%]{position:relative;background:#0a0a14;border-radius:12px;overflow:hidden;aspect-ratio:9/16;max-height:70vh;margin:0 auto}.al-video[_ngcontent-%COMP%] video[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain;display:block}.al-player--landscape[_ngcontent-%COMP%] .al-video[_ngcontent-%COMP%]{aspect-ratio:16/9}.al-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#fff;font-size:14px;text-align:center;padding:16px}.al-duration[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:13px;margin-bottom:8px}.al-duration[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{border:1px solid var(--line);border-radius:8px;padding:4px 8px;background:var(--surface);color:var(--ink)}.al-messages[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;max-height:60vh;overflow-y:auto;display:grid;gap:8px}.al-msg[_ngcontent-%COMP%]{border:1px solid var(--line);border-radius:12px;padding:8px 10px;background:var(--surface-2)}.al-msg__head[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px}.al-msg__text[_ngcontent-%COMP%]{font-size:14px;margin-top:2px;overflow-wrap:anywhere}.al-msg__actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}"]})};export{Ne as AgencyLiveComponent};
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.