PageSourceSearch

https://feedback.satisfactory.fr/fr/chunk-DyI3ejte.js

js satisfactory.fr collected 2026-10-04 18:42:19 UTC 52,305 bytes, 2 lines download raw bytes

1import{B}from'./chunk-Ct5LjhTD.js';import{i as ie}from'./chunk-DLgS22rx.js';import{y as y$1}from'./chunk-DzlLtzwb.js';import{M as M$1}from'./chunk-R-6tiyxc.js';import{_}from'./chunk-2zvFZIOD.js';import{m as m$1,$}from'./chunk-DvSBwDEh.js';import{e as et,k,M}from'./chunk-u4d08lMM.js';import{u}from'./chunk-BI3BBCpF.js';import{E,t as t$1}from'./chunk-CNvuZpGu.js';import{v as ve}from'./chunk-CkLSmY9n.js';import{V,q as qi$1,a as Vi$1,G as Gu,m as mi$1}from'./chunk-kqFvozTW.js';import'./chunk-0e8mQyI2.js';import{_ as _$1,f as S,o as o$1,t as jH,C as Ci$1,Z as s$1,m as mb,ak as Z,w as is,x as iC,y as ru,a1 as Kg,u as uT,E as Em,z as SD,d as dT,Y as Yg,aG as t_,A as _m,B as gC,ah as PH,v as v_,b3 as z,ck as se,a0 as Cf,ag as I_,q as qy,aU as sd,c as cd,dG as ad,bg as GI,n as b,M as M$2,bo as xg,ap as Rm,b as XC,G,R,D as ou,am as hT,F as iu,P as BC,aq as gT,ac as cu,p as aC,r as LH,gm as d,ax as y,ai as x$1,cS as Ei$1,bm as ii$1,bG as Yn,bH as pn$1,bY as Gm,bJ as Sw,c0 as Wm,bK as xw,a8 as DT,a5 as cC,g as a,i as o$2,bj as Db,c$ as Dm,aI as tf,aJ as nf,ad as $m,aH as Um,aE as D$1,f_ as R$1,a2 as at,av as U,a3 as x,bL as Am,N as Jg,ay as fT,ab as e_,aw as Ie,au as X,aQ as Di$1,fQ as _i$1,aF as t,ao as AC,aB as c_,a4 as Qm,aX as Zg,aD as d_,a6 as WC,aY as f_,cb as qC,az as GC,ae as Im,af as sC,b2 as u_,aZ as vh}from'./main-HE2JCDSJ.js';import{u as ut,F as Fe$1}from'./chunk-fpLgA6oG.js';import{D}from'./chunk-leXFkUpU.js';import'./chunk-Cgc9mxU_.js';import{TranslationLabelComponent as p}from'./chunk-BH7Oz_RV.js';import{HighlightPipe as l}from'./chunk-Dgb07_HM.js';import{g as gM}from'./chunk-b6N5yxL5.js';import{a as a$1}from'./chunk-Se7oMdV1.js';import'./chunk-BnnBWzoB.js';import'./chunk-DuG4ArFo.js';import'./chunk-BRAL0SlR.js';import'./chunk-BAKbWBJe.js';import'./chunk-XAxsyRiZ.js';import'./chunk-DNUfcjuI.js';import'./chunk-CLkdxwHi.js';import'./chunk-DFQ6H5eh.js';import{$ as $$1}from'./chunk-DYKJC29-.js';import'./chunk-iwOapg0h.js';import'./chunk-Dt2mJWVc.js';import{T}from'./chunk-Ci9ZdzMM.js';import'./chunk-BSodYw30.js';import'./chunk-BqrzVwm3.js';import'./chunk-BFSyEXCg.js';import'./chunk-Bvi1P18d.js';import'./chunk-DhH_g7sB.js';var Mt=(()=>{class t{constructor(){this.name=LH.required(),this.displayName=v_(()=>this.name().split(" ").slice(0,2).map(e=>e.charAt(0)).join("").toUpperCase()||"A");}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵcmp=mb({type:t,selectors:[["app-verbatim-name-icon"]],inputs:{name:[1,"name"]},decls:2,vars:1,consts:[[1,"flex","size-8","items-center","justify-center","rounded-md","bg-gray-200","text-sm","text-gray-800"]],template:function(i,n){i&1&&(ou(0,"div",0),BC(1),iu()),i&2&&(SD(),cu(" ",n.displayName(),`
2`));},encapsulation:2});}}return t;})();function ei(t,c){if(t&1&&Kg(0,"app-icon",1),t&2){let e=cC();Yg("iconName",e.channelIcon())("width",30)("height",30);}}function ti(t,c){if(t&1&&Kg(0,"app-verbatim-name-icon",2),t&2){let e=cC();Yg("name",e.verbatim().client.name||"");}}var ii={google:"googleWithColor",phone:"interactionPhone"},Le=(()=>{class t{constructor(){this.verbatim=LH.required(),this.channelIcon=v_(()=>ii[this.verbatim().channelInfo.channel]);}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵcmp=mb({type:t,selectors:[["app-verbatim-channel-icon"]],inputs:{verbatim:[1,"verbatim"]},decls:3,vars:1,consts:[[1,"flex","size-8","items-center","justify-center"],[1,"text-blue-600",3,"iconName","width","height"],[3,"name"]],template:function(i,n){i&1&&(is(0,"div",0),uT(1,ei,1,3,"app-icon",1)(2,ti,1,1,"app-verbatim-name-icon",2),ru()),i&2&&(SD(),dT(n.channelIcon()?1:2));},dependencies:[b,Mt],encapsulation:2});}}return t;})();function ni(t,c){if(t&1&&(is(0,"div",3),BC(1),ru()),t&2){let e=cC();Am("background-color",e.verbatim().alert.color||"black"),SD(),cu(" ",e.verbatim().alert.name," ");}}function oi(t,c){if(t&1&&(is(0,"div",4),BC(1),ru()),t&2){let e=cC();Rm("bg-emerald-600",e.verbatim().treatment.status===e.AlertStatus.TREATED)("bg-yellow-400",e.verbatim().treatment.status===e.AlertStatus.TOPROCESS)("bg-blue-500",e.verbatim().treatment.status===e.AlertStatus.INPROGRESS)("bg-red-500",e.verbatim().treatment.status===e.AlertStatus.EXPIRED),SD(),cu(" ",e.treatmentLabelMapping[e.verbatim().treatment.status]||""," ");}}var ri={[o$2.TREATED]:"Trait\xE9",[o$2.TOPROCESS]:"\xC0 traiter",[o$2.INPROGRESS]:"En cours",[o$2.EXPIRED]:"Alertes expir\xE9es"},Fe=(()=>{class t{constructor(){this.verbatim=LH.required(),this.align=LH("start"),this.treatmentLabelMapping=ri,this.AlertStatus=o$2;}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵcmp=mb({type:t,selectors:[["app-verbatim-badge"]],inputs:{verbatim:[1,"verbatim"],align:[1,"align"]},decls:3,vars:4,consts:[[1,"flex","min-h-6","w-fit","max-w-full","flex-row","flex-wrap","gap-1"],["appEllipsis","",1,"h-full","truncate","rounded-md","px-3","py-1","capitalize","text-white",3,"background-color"],[1,"h-full","truncate","rounded-md","px-3","py-1","capitalize","text-white",3,"bg-emerald-600","bg-yellow-400","bg-blue-500","bg-red-500"],["appEllipsis","",1,"h-full","truncate","rounded-md","px-3","py-1","capitalize","text-white"],[1,"h-full","truncate","rounded-md","px-3","py-1","capitalize","text-white"]],template:function(i,n){i&1&&(is(0,"div",0),uT(1,ni,2,3,"div",1),uT(2,oi,2,9,"div",2),ru()),i&2&&(AC("justify-"+n.align()),S
2D(),dT(n.verbatim().alert?.name?1:-1),SD(),dT(n.verbatim()&&n.verbatim().treatment?.status&&n.verbatim().treatment.status?2:-1));},dependencies:[a$1],styles:["[_nghost-%COMP%]{max-width:100%}"]});}}return t;})();function ai(t,c){if(t&1&&BC(0),t&2){let e=cC().$implicit;cu(" ",e.client.name," ");}}function li(t,c){t&1&&(is(0,"span",13),iC(1,0),ru());}function si(t,c){t&1&&(BC(0," ... "),is(1,"span",23),iC(2,1),ru());}function ci(t,c){t&1&&(is(0,"span",23),iC(1,2),ru());}function di(t,c){if(t&1){let e=DT();is(0,"span",22),Em("keyup.space",function(n){tf(e);let o=cC(4).$implicit,d=cC();return nf(d.toggleShowFullText(o,n));})("click",function(n){tf(e);let o=cC(4).$implicit,d=cC();return nf(d.toggleShowFullText(o,n));}),uT(1,si,3,0)(2,ci,2,0,"span",23),ru();}if(t&2){let e=cC(4).$implicit,i=cC();SD(),dT(i.showFullText()[e.experienceId]?2:1);}}function mi(t,c){if(t&1&&(is(0,"p",19),Kg(1,"span",20),c_(2,"highlight"),uT(3,di,3,1,"span",21),ru()),t&2){cC();let e=GC(0);cC(2);let i=GC(15),n=cC();AC(i.isFallback?"italic text-gray-500":"text-gray-600"),SD(),Yg("innerHtml",d_(2,4,e,n.filters().searchVerbatim),vh),SD(2),dT(i.value.length>n.charLimit()?3:-1);}}function pi(t,c){if(t&1&&(Qm(0),c_(1,"slice"),uT(2,mi,4,7,"p",18)),t&2){let e=cC(2).$implicit,i=GC(15),n=cC(),o=WC(n.show
2FullText()[e.experienceId]?i.value:f_(1,1,i.value,0,n.charLimit()));SD(2),dT(o?2:-1);}}function _i(t,c){t&1&&(BC(0," ... "),is(1,"span",23),iC(2,3),ru());}function ui(t,c){t&1&&(is(0,"span",23),iC(1,4),ru());}function fi(t,c){if(t&1){let e=DT();is(0,"span",22),Em("keyup.space",function(n){tf(e);let o=cC(4).$implicit,d=cC();return nf(d.toggleShowFullText(o,n));})("click",function(n){tf(e);let o=cC(4).$implicit,d=cC();return nf(d.toggleShowFullText(o,n));}),uT(1,_i,3,0)(2,ui,2,0,"span",23),ru();}if(t&2){let e=cC(4).$implicit,i=cC();SD(),dT(i.showFullText()[e.experienceId]?2:1);}}function Ci(t,c){if(t&1&&(is(0,"p",27),Kg(1,"span",20),c_(2,"highlight"),uT(3,fi,3,1,"span",21),ru()),t&2){cC();let e=GC(0),i=GC(1);cC(2);let n=GC(15),o=cC();AC(n.isFallback?"italic text-gray-500":"text-gray-600"),SD(),Yg("innerHtml",d_(2,4,i,o.filters().searchVerbatim),vh),SD(2),dT(e.length>o.charLimit()?3:-1);}}function Ei(t,c){if(t&1){let e=DT();Qm(0)(1),c_(2,"slice"),uT(3,Ci,4,7,"p",24),is(4,"h4",25),Em("click",function(){tf(e),cC(2);let n=GC(15),o=cC();return nf(o.onToggleTranslation(n.id));})("keydown.enter",function(){tf(e),cC(2);let n=GC(15),o=cC();return nf(o.onToggleTranslation(n.id));})("keydown.space",function(){tf(e),cC(2);let n=GC(15),o=cC();return nf(o.onToggleTranslation(n.id));}),Kg(5,"app-translation-label",26),ru();}if(t&2){let e=cC(2).$implicit,i=GC(15),n=cC(),o=WC(n.displayedText(i));SD();
2let d=WC(n.showFullText()[e.experienceId]?o:f_(2,4,o,0,n.charLimit()));SD(2),dT(d?3:-1),SD(),Zg("aria-busy",n.isTranslating(i.id)),SD(),Yg("state",n.translations()[i.id]);}}function gi(t,c){if(t&1&&uT(0,pi,3,6)(1,Ei,6,9),t&2){cC();let e=GC(15);dT(e.canBeTranslated?1:0);}}function Si(t,c){if(t&1&&(is(0,"div",28),c_(1,"getScoreColor"),BC(2),ru()),t&2){let e=cC().$implicit;AC("border-"+d_(1,4,e.score.value,e.score.calculType)),SD(2),Um(" ",e.score.value,"/",e.score.max," ");}}function hi(t,c){if(t&1){let e=DT();is(0,"div",7),Em("click",function(){let n=tf(e).$implicit,o=cC();return nf(o.onCardClick(n));}),is(1,"div",8)(2,"div",9),Kg(3,"app-verbatim-channel-icon",10),is(4,"div",11)(5,"div",12),uT(6,ai,1,1)(7,li,2,0,"span",13),ru(),is(8,"span"),BC(9,"\u2022"),ru(),is(10,"time"),BC(11),c_(12,"date"),ru()()(),is(13,"div",14)(14,"div",15),Qm(15),uT(16,gi,2,1),ru()(),Kg(17,"app-verbatim-badge",10),ru(),is(18,"div",16),uT(19,Si,3,7,"div",17),ru()();}if(t&2){let e=c.$implicit,i=cC();AC(e.experienceId===i.selectedExperienceId()?"bg-gray-100 border-gray-300":"border-gray-200"),SD(3),Yg("verbatim",e),SD(3),dT(e.client.name?6:7),SD(4),Zg("datetime",e.date.toISO()),SD(),$m(d_(12,9,e.date.toJSDate(),"dd/MM/yy")),SD(4);let n=WC(e.answers[0]);SD(),dT(n?16:-1),SD(),Yg("verbatim",e),SD(2),dT(e.score!==null?19:-1);}}var wt=(()=>{class t{constructor(){this.filtersSvc=_$1(S),this.verbatims=LH.required(),this.isSelected=LH(false),this.translations=LH.required(),this.charLimit=LH(150),this.selectedExperienceId=LH(null),this.cardClick=PH(),this.toggleTranslation=PH(),this.showFullText=Ci$1({}),this.filters=this.filtersSvc.filters,this.AlertStatus=o$2;}onCardClick(e){this.cardClick.emit(e);}isTranslating(e){return this.translations()[e]?.loading??false;}displayedText(e){return mi$1(this.translations()[e.id],e.value);}onToggleTranslation(e){this.toggleTranslation.emit(e);}toggleShowFullText(e,i){i.stopPropagation(),this.showFullText.update(n=>y(x$1({},n),{[e.experienceId]:!n[e.experienceId]}));}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵcmp=mb({type:t,selectors:[["app-verbatim-card-view"]],inputs:{verbatims:[1,"verbatims"],isSelected:[1,"isSelected"],translations:[1,"translations"],charLimit:[1,"charLimit"],selectedExperienceId:[1,"selectedExperienceId"]},outputs:{cardClick:"cardClick",toggleTranslation:"toggleTranslation"},decls:3,vars:0,consts:()=>{let e;e="Anonyme";let i;i="Voir plus";let n;n="Voir moins";let o;o="Voir plus";let d;return d="Voir moins",[e,i,n,o,d,[1,"flex","h-full","flex-col","gap-3","px-3","py-2"],["aria-hidden","true",1,"flex","cursor-pointer","flex-row","justify-between","gap-2","rounded-lg","border","p-4",3,"class"],["aria-hidden","true",1,"flex","cursor-pointer","flex-row","justify-between","gap-2","rounded-lg","border","p-4",3,"click"],[1,"flex","flex-1","flex-col","items-stretch","gap-3"],[1,"grid","w-full","grid-cols-[32px_1fr]","gap-2"],[3,"verbatim"],[1,"flex","h-full","min-w-0","flex-1","shrink","flex-row","items-center","gap-1","text-gray-600"],["appEllipsis","",1,"truncate","whitespace-nowrap","font-medium","text-black"],[1,"text-sm","font-medium","italic","text-gray-400"],[1,"flex","flex-row","items-center","justify-between","gap-3"],[1,"flex","h-full","flex-col","items-start"],[1,"flex","h-full","w-fit","items-center","justify-center","gap-3","self-center"],[1,"flex","size-16","items-center","justify-center","rounded-full","border-4","text-sm",3,"class"],[1,"grow","pb-2",3,"class"],[1,"grow","pb-2"],["appEllipsis","",1,"wrap-break-word",3,"innerHtml"],["tabindex","0"],["tabindex","0",3,"keyup.space","click"],[1,"ml-2","cursor-pointer","text-gray-600","underline"],[1,"grow",3,"class"],["tabindex","0","role","button",1,"mt-2","grow","cursor-pointer","pb-2","text-xs","tracking-wide","text-gray-600","underline",3,"click","keydown.enter","keydown.space"],[3,"state"],[1,"grow"],[1,"flex","size-16","items-center","justify-center","rounded-full","border-4","text-sm"]];},template:function(i,n){i&1&&(is(0,"div",5),hT(1,hi,20,13,"div",6,fT),ru()),i&2&&(SD(),gT(n.verbatims()));},dependencies:[a$1,Le,Fe,p,Di$1,l,_i$1,u],encapsulation:2});}}return t;})();function vi(t,c){if(t&1&&(is(0,"span",18),c_(1,"getScoreColor"),BC(2),ru()),t&2){let e=cC().$implicit;AC("bg-"+d_(1,4,e.score.value,e.score.calculType)),SD(2),Um(" ",e.score.value,"/",e.score.max," ");}}function Ti(t,c){if(t&1&&BC(0),t&2){let e=cC().$implicit;cu(" ",e.client.name," ");}}function xi(t,c){t&1&&(is(0,"span",11),iC(1,0),ru());}function Ii(t,c){if(t&1&&(is(0,"span",14),BC(1),ru()),t&2){let e=c.$implicit;SD(),$m(e.value);}}function bi(t,c){if(t&1){let e=DT();is(0,"tr",4),Em("click",function(){let n=tf(e).$implicit,o=cC();return nf(o.onRowClick(n));}),is(1,"td",5),Kg(2,"app-verbatim-channel-icon",6),ru(),is(3,"td",7),uT(4,vi,3,7,"span",8),ru(),is(5,"td",9)(6,"div",10),uT(7,Ti,1,1)(8,xi,2,0,"span",11),ru()(),is(9,"td",12),BC(10),c_(11,"date"),ru(),is(12,"td",13),hT(13,Ii,2,1,"span",14,fT),c_(15,"slice"),ru(),is(16,"td",15)(17,"div",16),Kg(18,"app-verbatim-badge",17),ru()()();}if(t&2){let e=c.$implicit,i=cC();Rm("bg-gray-100",e.experienceId===i.selectedExperienceId()),SD(2),Yg("verbatim",e),SD(2),dT(e.score!==null?4:-1),SD(3),dT(e.client.name?7:8),SD(3),cu(" ",d_(11,7,e.date.toJSDate(),"dd MMM yyyy")," "),SD(3),gT(f_(15,10,e.clientMetadata,0,4)),SD(5),Yg("verbatim",e);}}var Pt=(()=>{class t{constructor(){this.verbatims=LH.required(),this.selectedExperienceId=LH(null),this.rowClick=PH(),this.AlertStatus=o$2;}onRowClick(e){this.rowClick.emit(e);}getTreatmentLabel(e){switch(e){case o$2.TREATED:return"Trait\xE9";case o$2.TOPROCESS:return"\xC0 traiter";case o$2.INPROGRESS:return"En cours";case o$2.EXPIRED:return"Expir\xE9";default:return"";}}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵcmp=mb({type:t,selectors:[["app-verbatim-table-view"]],inputs:{verbatims:[1,"verbatims"],selectedExperienceId:[1,"selectedExperienceId"]},outputs:{rowClick:"rowClick"},decls:4,vars:0,consts:()=>{let e;return e="Anonyme",[e,[1,"w-full","max-w-full","table-auto"],[1,"divi
2de-y","divide-gray-200","bg-white"],[1,"cursor-pointer","hover:bg-gray-50",3,"bg-gray-100"],[1,"cursor-pointer","hover:bg-gray-50",3,"click"],[1,"w-min","px-2","py-3"],[1,"block",3,"verbatim"],[1,"w-0","p-3"],[1,"rounded-md","px-2","py-1","text-sm","text-white",3,"class"],[1,"w-full","max-w-0","p-1","font-medium","@2xl:p-3"],["appEllipsis","",1,"w-full","min-w-10","truncate","text-nowrap","text-gray-900"],[1,"text-sm","font-medium","italic","text-gray-400"],[1,"text-nowrap","p-1","text-gray-900","@2xl:p-3"],[1,"flex","w-0","min-w-0","flex-col","truncate","p-1","text-gray-900","@2xl:p-3"],["appEllipsis","",1,"h-5","max-w-20","truncate","whitespace-nowrap","2xl:max-w-12"],[1,"w-full","min-w-48","max-w-0","p-3"],[1,"flex","w-full","max-w-full","flex-wrap","justify-end"],["align","end",3,"verbatim"],[1,"rounded-md","px-2","py-1","text-sm","text-white"]];},template:function(i,n){i&1&&(is(0,"table",1)(1,"tbody",2),hT(2,bi,19,14,"tr",3,fT),ru()()),i&2&&(SD(2),gT(n.verbatims()));},dependencies:[Le,a$1,Fe,Di$1,u,_i$1],encapsulation:2});}}return t;})();function yi(t,c){if(t&1){let e=DT();is(0,"app-verbatim-card-view",5),Em("cardClick",function(n){tf(e);let o=cC(3);return nf(o.openCustomerFile(n));})("toggleTranslation",function(n){tf(e);let o=cC(3);return nf(o.toggleShowTranslation(n));}),ru();}if(t&2){let e=cC(3);Yg("verbatims",e.verbatims())("translations",e.translations())("charLimit",e.CHAR_LIMIT)("selectedExperienceId",e.selectedExperienceId());}}function Ai(t,c){if(t&1){let e=DT();is(0,"app-verbatim-table-view",6),Em("rowClick",function(n){tf(e);let o=cC(3);return nf(o.openCustomerFile(n));}),ru();}if(t&2){let e=cC(3);Yg("verbatims",e.verbatims())("selectedExperienceId",e.selectedExperienceId());}}function Ri(t,c){if(t&1&&(is(0,"div",1),uT(1,yi,1,4,"app-verbatim-card-view",3)(2,Ai,1,2,"app-verbatim-table-view",4),ru()),t&2){let e=cC(2);SD(),dT(e.isCardView()?1:2);}}function Ni(t,c){t&1&&(is(0,"div",2),iC(1,0),ru());}function Mi(t,c){if(t&1&&uT(0,Ri,3,1,"div",1)(1,Ni,2,0,"div",2),t&2){let e=cC();dT(e.verbatims().length>0?0:1);}}function wi(t,c){t&1&&(is(0,"div",7),Kg(1,"app-bar-chart-skeleton")(2,"app-bar-chart-skeleton")(3,"app-bar-chart-skeleton"),ru());}function Pi(t,c){t&1&&Kg(0,"app-table-skeleton");}function Li(t,c){if(t&1&&uT(0,wi,4,0,"div",7)(1,Pi,1,0,"app-table-skeleton"),t&2){let e=cC();dT(e.isCardView()?0:1);}}var Lt=(()=>{class t extends Gu{constructor(){super(...arguments),this.customerFileSvc=_$1(V,{skipSelf:true}),this.viewMode=LH.required(),this.isCardView=v_(()=>this.viewMode()===K.CARD),this.selectedExperienceId=v_(()=>this.customerFileSvc.data()?.experience?.id??null);}openCustomerFile(e){this.customerFileSvc.setExperienceId(e.experienceId);}static{this.ɵfac=(()=>{let e;return function(n){return(e||(e=GI(t)))(n||t);};})();}static{this.ɵcmp=mb({type:t,selectors:[["app-verbatim-interactions"]],inputs:{viewMode:[1,"viewMode"]},features:[XC([V]),xg],decls:2,vars:1,consts:()=>{let e;return e="Aucune interaction disponible",[e,[1,"pb-3"],[1,"p-4"],[3,"verbatims","translations","charLimit","selectedExperienceId"],[3,"verbatims","selectedExperienceId"],[3,"cardClick","toggleTranslation","verbatims","translations","charLimit","selectedExperienceId"],[3,"rowClick","verbatims","selectedExperienceId"],[1,"flex","flex-col","gap-4","p-4"]];},template:function(i,n){i&1&&uT(0,Mi,2,1)(1,Li,2,1),i&2&&dT(n.loaded()?0:1);},dependencies:[wt,Pt,_,y$1],encapsulation:2});}}return t;})();var Fi=["scrollContainer"];function Vi(t,c){if(t&1){let e=DT();is(0,"div",5)(1,"div",11)(2,"span"),iC(3,1),ru(),is(4,"app-radio-input",12),Em("valueChange",function(n){tf(e);let o=cC();return nf(o.onViewModeChange(n));}),ru()(),is(5,"button",13),Em("click",function(){tf(e);let n=cC();return nf(n.scrollToTop());}),Kg(6,"app-icon",14),ru()();}if(t&2){let e=cC();SD(4),Yg("options",e.viewModeOptions)("inputValue",e.viewMode()),SD(2),Yg("width",16)("height",16);}}function Oi(t,c){t&1&&(is(0,"div",9),Kg(1,"app-loading-spinner"),ru());}function Di(t,c){t&1&&(is(0,"div",10),iC(1,2),ru());}var Ft=750,K=function(t){return t.TABLE="table",t.CARD="card",t;}(K||{}),Vt=(()=>{class t extends ve{constructor(){super(...arguments),this.loadingStatusChange=PH(),this.showPageOptionsMenu=v_(()=>this.consumerPathway()),this.progress=Ci$1(0),this.from=Ci$1(0),this.filename=Ci$1(""),this.viewMode=Ci$1(K.CARD),this.viewModeOptions=[{label:"Table",value:K.TABLE,prependIcon:"list"},{label:"Carte",value:K.CARD,prependIcon:"grid"}],this.itemsPerPage=Ci$1(50),this.headers=[],this.dialogSvc=_$1(z),this.exportSvc=_$1(et),this.fileSvc=_$1(D),this.customerFileSvc=_$1(V),this.scrollContainer=jH.required("scrollContainer"),this.cancelRequest=new se(),this._verbatimSelectEffect=Cf(()=>{let e=this.verbatims()[0]?.experienceId??"";I_(()=>{this.customerFileSvc.hasExperienceIdFromUrl()||this.customerFileSvc.setExperienceId(e);});}),this._loadingStatusEffect=Cf(()=>{let e=!this.loaded();this.loadingStatusChange.emit(e);});}initData(){this.customerFileSvc.hasExperienceIdFromUrl()||this.customerFileSvc.setExperienceId(""),this.loaded.set(false),qy([this.accountSvc.getAccountById(),this.consumerPathwaySvc.getConsumerPathways(),this.clientMetadataSvc.getClientMetadata(),this.alertSvc.getAlertSettings()]).pipe(sd(([e,i,n,o])=>(this.consumerPathway.set(i),this.verbatimThemes.set(i.verbatims),this.account.set(e),n.length>0&&this.clientMetadata.set(n),o.length>0&&(this.alertSettings=o),this.experienceSvc.getExperiencesForAlert(this.itemsPerPage(),this.offset(),this.currentFilter()))),cd(e=>{this.totalItems.set(e.total),this.computeVerbatims(e),this.loaded.set(true);})).subscribe();}onLoadMore(){if(this.isLoadingMore()||this.verbatims().length>=this.totalItems())return;this.isLoadingMore.set(true);let e=this.verbatims().length;this.experienceSvc.getExperiencesForAlert(this.itemsPerPage(),e,this.currentFilter()).subscribe(i=>{this.totalItems.set(i.total),this.isAppendMode.set(true),this.computeVerbatims(i),this.isLoadingMore.set(false);});}onViewModeChange(e){(e===K.TABLE||e===K.CARD)&&this.viewMode.set(e);}scrollToTop(){this.scrollContainer().nativeElement.scrollTo({top:0,behavior:"smooth"});}exportCustomerExperience(){this.dialogSvc.openProgressbarDialog(this.progress,()=>this.cancel()),this.downloadInteractionsExport();}cancel(){this.cancelRequest.next(),this.resetProgressState();}downloadInteractionsExport(){if(this.progress()===100){this.downloadFile();return;}let e=k(this.clientMetadata(),d=>d.metadata.exportHeader),i=this.consumerPathway(),n=i?k(i.keyIndicators,d=>d.exportHeader):[],o=k(this.verbatimThemes(),d=>d.exportHeader);this.exportSvc.postExportFile(Ft,this.from(),this.filtersSvc.filters(),[...M,...e,...n,...o],false,null,this.filename()).pipe(ad(this.cancelRequest)).subscribe(d=>{this.progress.set(d.progress),this.from.update(X=>X+Ft),this.filename.set(d.filename),this.downloadInteractionsExport();});}downloadFile(){this.exportSvc.getExportFile(this.filename(),true).subscribe(e=>{this.fileSvc.downloadCSVFile(e,"Experiences");});}resetProgressState(){this.progress.set(0),this.from.set(0),this.filename.set("");}static{this.ɵfac=(()=>{let e;return function(n){return(e||(e=GI(t)))(n||t);};})();}static{this.ɵcmp=mb({type:t,selectors:[["app-experience-listing"]],viewQuery:function(i,n){i&1&&_m(n.scrollContainer,Fi,5),i&2&&gC();},outputs:{loadingStatusChange:"loadingStatusChange"},features:[XC([T,G,$$1,R]),xg],decls:9,vars:11,consts:()=>{let e;e="Remonter en haut";let i;i="Vue :";let n;
2return n="Toutes les interactions sont charg\xE9es",[["scrollContainer",""],i,n,[1,"grid","h-full","grid-rows-1"],[1,"relative","grid","h-full","grid-rows-1"],[1,"absolute","top-0","flex","w-full","flex-col","items-start","justify-between","gap-3","border-b","border-gray-200","bg-white","px-3","py-1","text-sm","sm:flex-row","sm:items-center","sm:gap-0"],[1,"overflow-y-auto","overflow-x-clip","@container"],["appInfiniteScroll","",1,"size-full",3,"loadMore","totalItems","currentCount","loading"],[3,"verbatims","loaded","viewMode"],[1,"flex","justify-center","py-4"],["role","status","aria-live","polite",1,"flex","justify-center","pb-4","text-sm","text-gray-500"],[1,"flex","flex-row","items-center","gap-2"],["align","row","name","viewMode",3,"valueChange","options","inputValue"],["title",e,1,"rounded-md","p-2","transition-colors","hover:bg-gray-100","disabled:opacity-50",3,"click"],["iconName","arrowUp",1,"fill-gray-600",3,"width","height"]];},template:function(i,n){i&1&&(is(0,"div",3)(1,"div",4),uT(2,Vi,7,4,"div",5),is(3,"div",6,0)(5,"div",7),Em("loadMore",function(){return n.onLoadMore();}),Kg(6,"app-verbatim-interactions",8),uT(7,Oi,2,0,"div",9),uT(8,Di,2,0,"div",10),ru()()()()),i&2&&(SD(),Rm("pt-10",n.totalItems()>0),SD(),dT(n.totalItems()>0?2:-1),SD(3),Yg("totalItems",n.totalItems())("currentCount",n.verbatims().length)("loading",n.isLoadingMore()),SD(),Yg("verbatims",n.verbatims())("loaded",n.loaded())("viewMode",n.viewMode()),SD(),dT(n.isLoadingMore()?7:-1),SD(),dT(n.loaded()&&n.verbatims().length>=n.totalItems()&&n.verbatims().length>0?8:-1));},dependencies:[Lt,b,B,M$1,M$2],encapsulation:2});}}return t;})();var $t=D$1(t());var Ot=D$1(t());var ce=(()=>{class t{constructor(){this.alertStats=Ci$1({total:void 0,avgClosingTime:void 0,closingRate:void 0,totalToTreated:void 0,perAlertType:[]}),this.alertStatsReadonly=this.alertStats.asReadonly(),this.alertSvc=_$1($$1),this.experienceSvc=_$1(T),this.alertFields=["avgClosingTime","closingRate","totalToTreated","perAlertType","expireIn72Hours","inprogress","notTreated","treated"],this.experienceFields=["total","totalNotInAlert"],this.recompute$=new se();}computeAlertStats(e){this.recompute$.next();let i=(0,Ot.default)(e);i.clearAlertStatus(),qy([this.alertSvc.getAlertStatistics(this.alertFields,i),this.experienceSvc.getExperienceStatistics(this.experienceFields,i)]).pipe(ad(this.recompute$),Ie(([n,o])=>({total:o.total,avgClosingTime:n.avgClosingTime?parseFloat(n.avgClosingTime.toFixed(1)):void 0,closingRate:n.closingRate,totalToTreated:n.totalToTreated,expireIn72Hours:n.expireIn72Hours,inProgress:n.inprogress,notTreated:n.notTreated,treated:n.treated,withoutAlert:o.totalNotInAlert,perAlertType:n.perAlertType.map(d=>({id:d.id,label:d.name,value:(d.repartition.toprocess??0)+(d.repartition.inprogress??0)}))}))).subscribe(n=>{this.alertStats.set(n);});}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵprov=X({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();var Dt=(()=>{class t{constructor(){this.filtersSvc=_$1(S),this.alertStatisticsSvc=_$1(ce),this._filterChangeEffect=Cf(()=>{let i=this.filtersSvc.filters();I_(()=>this.handleFilterChange(i));});let e=this.filtersSvc.filters();e.alertStatus?.length&&this.handleFilterChange(e);}forceRecompute(){let e=this.filtersSvc.filters();this.handleFilterChange(e);}handleFilterChange(e){this.alertStatisticsSvc.computeAlertStats(e);}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵprov=X({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();var m=function(t){return t.all="all",t.expiresSoon="expiresSoon",t.toBeTreated="toBeTreated",t.toBeTreatedWithFullLabel="toBeTreatedWithFullLabel",t.inprogress="inprogress",t.notTreated="notTreated",t.treated="treated",t.withoutAlert="withoutAlert",t.perAlertType="perAlertType",t;}(m||{});var Ve=(()=>{class t{constructor(){this.selectedAlertStatusTab=Ci$1(null),this.statistics=v_(()=>this.getStatistics()),this.filtersSvc=_$1(S),this.alertStatisticsSvc=_$1(ce),this.alertStatisticsFilterManager=_$1(Dt),this.cacheSvc=_$1(o$1),this._filterWatcherEffect=Cf(()=>{let e=this.filtersSvc.filters();I_(()=>{let i=this.getTabForCurrentFilters(e);i&&this.selectedAlertStatusTab()?.id!==i.id&&this.selectedAlertStatusTab.set(i);});});}
2ngOnInit(){this.alertStatisticsFilterManager.forceRecompute();}handleClick(e){e?.value&&this.onStatClick(e);}isStatSelected(e){return this.selectedAlertStatusTab()?.id===e.id;}getStatistics(){let e=this.alertStatisticsSvc.alertStatsReadonly(),i=this.getRequiredFields(),n=i.map(o=>this.createTabFromFieldId(o,e)).filter(o=>o!==null);return i.includes(m.perAlertType)&&n.push(...e.perAlertType),n;}onStatClick(e){if(this.selectedAlertStatusTab.set(e),e.id===m.all){this.clearStatus();return;}if(e.id===m.toBeTreated||e.id===m.toBeTreatedWithFullLabel){this.setFilterToProcess();return;}if(e.id===m.expiresSoon){this.setFilterToExpire();return;}if(e.id===m.inprogress){this.setFilterToInProgress();return;}if(e.id===m.notTreated){this.setFilterToNotTreated();return;}if(e.id===m.treated){this.setFilterToTreated();return;}if(e.id===m.withoutAlert){this.setFilterToWithoutAlert();return;}this.setFilterByAlertType(e);}clearStatus(){let e=this.filtersSvc.filters();e.setAlertStatus([]),this.filtersSvc.setFilters(e);}setFilterToExpire(){let e=this.filtersSvc.filters();e.setAlertStatus(a(o$2.EXPIREDSOON)),this.filtersSvc.setFilters(e);}setFilterToProcess(){let e=this.filtersSvc.filters();e.setAlertStatus(a(o$2.TOPROCESS,o$2.INPROGRESS)),this.filtersSvc.setFilters(e);}setFilterToInProgress(){let e=this.filtersSvc.filters();e.setAlertStatus(a(o$2.INPROGRESS)),this.filtersSvc.setFilters(e);}setFilterToNotTreated(){let e=this.filtersSvc.filters();e.setAlertStatus(a(o$2.TOPROCESS,o$2.INPROGRESS,o$2.EXPIRED)),this.filtersSvc.setFilters(e);}setFilterToTreated(){let e=this.filtersSvc.filters();e.setAlertStatus(a(o$2.TREATED)),this.filtersSvc.setFilters(e);}setFilterToWithoutAlert(){let e=this.filtersSvc.filters();e.setAlertStatus(a(o$2.WITHOUTALERT)),this.filtersSvc.setFilters(e);}setFilterByAlertType(e){let i=(0,$t.default)(this.filtersSvc.filters());i.setAlertType([{id:e.id,label:e.label,value:e.label}]),i.addAlertStatus(...a(o$2.TOPROCESS,o$2.INPROGRESS)),this.filtersSvc.setFilters(i);}createTabFromFieldId(e,i){switch(e){case m.all:return{id:m.all,label:"Tout",value:i.total};case m.toBeTreated:return{id:m.toBeTreated,label:"\xC0 traiter",value:i.totalToTreated};case m.toBeTreatedWithFullLabel:return{id:m.toBeTreatedWithFullLabel,label:"Alertes \xE0 traiter",value:i.totalToTreated};case m.expiresSoon:return{id:m.expiresSoon,label:"Expire bient\xF4t",value:i.expireIn72Hours};case m.inprogress:return{id:m.inprogress,label:"En cours",value:i.inProgress};case m.notTreated:return{id:m.notTreated,label:"Non trait\xE9",value:i.notTreated};case m.treated:return{id:m.treated,label:"Trait\xE9",value:i.treated};case m.withoutAlert:return{id:m.withoutAlert,label:"Sans alerte",value:i.withoutAlert};default:return null;}}getTabForCurrentFilters(e){let i=e.alertStatus||[],n=e.alertType,o=this.statistics();if(n?.length===1){let h=o.find(Jt=>Jt.id===n[0].id);if(h)return h;}if(!i.length)return o.find(h=>h.id===m.all)||null;let d=i.map(h=>String(h.id)),X=a(o$2.EXPIREDSOON).map(h=>String(h.id));if(this.arraysEqual(d.sort(),X.sort()))return o.find(h=>h.id===m.expiresSoon)||null;let J=a(o$2.TOPROCESS,o$2.INPROGRESS).map(h=>String(h.id));if(this.arraysEqual(d.sort(),J.sort()))return o.find(h=>h.id===m.toBeTreated||h.id===m.toBeTreatedWithFullLabel)||null;let qt=a(o$2.INPROGRESS).map(h=>String(h.id));if(this.arraysEqual(d.sort(),qt.sort()))return o.find(h=>h.id===m.inprogress)||null;let Yt=a(o$2.TOPROCESS,o$2.INPROGRESS,o$2.EXPIRED).map(h=>String(h.id));if(this.arraysEqual(d.sort(),Yt.sort()))return o.find(h=>h.id===m.notTreated)||null;let Qt=a(o$2.TREATED).map(h=>String(h.id));if(this.arraysEqual(d.sort(),Qt.sort()))return o.find(h=>h.id===m.treated)||null;let Kt=a(o$2.WITHOUTALERT)?.map(h=>String(h.id))||[];return this.arraysEqual(d.sort(),Kt.sort())&&o.find(h=>h.id===m.withoutAlert)||null;}arraysEqual(e,i){return e.length===i.length&&e.every(n=>i.includes(n));}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵdir=Db({type:t});}}return t;})();var $i=(t,c)=>c.id;function ki(t,c){if(t&1){let e=DT();ou(0,"div",9),Dm("click",function(){let n=tf(e).$implicit,o=cC();return nf(o.handleClick(n));}),ou(1,"div",7),BC(2),iu(),ou(3,"div",8),BC(4),iu()();}if(t&2){let e=c.$implicit;Rm("cursor-pointer",!!e.value),SD(2),$m(e.label),SD(2),$m(e.value);}}function Bi(t,c){if(t&1&&(BC(0),ou(1,"span"),iC(2,2),iu()),t&2){let e=cC();cu(" ",e.stats().avgClosingTime," "),SD(2),Im(e.stats().avgClosingTime),sC(2);}}function Xi(t,c){t&1&&(ou(0,"span"),BC(1,"-"),iu());}var kt=(()=>{class t extends Ve{constructor(){super(...arguments),this.stats=this.alertStatisticsSvc.alertStatsReadonly,this.statsToDisplay=v_(()=>this.statistics().filter(e=>e.id!=="all"));}getRequiredFields(){return[m.all,m.toBeTreatedWithFullLabel,m.expiresSoon];}static{this.ɵfac=(()=>{let e;return function(n){return(e||(e=GI(t)))(n||t);};})();}static{this.ɵcmp=mb({type:t,selectors:[["app-alert-statistics"]],features:[xg],decls:15,vars:2,consts:()=>{let e;e="Taux de traitement";let i;i="Temps moyen de traitement";let n;return n="{VAR_PLURAL, plural, =0 {jour} =1 {jour} other {jours}}",n=aC(n,{VAR_PLURAL:"\uFFFD0\uFFFD"}),[e,i,n,[1,"w-full","@container"],[1,"grid","grid-cols-4","gap-2","@lg:grid-cols-5","@xl:gr
2id-cols-6"],["aria-hidden","true",1,"flex","flex-1","cursor-not-allowed","flex-col","justify-between","gap-4","rounded-lg","border","border-gray-200","bg-white","p-3",3,"cursor-pointer"],[1,"flex","flex-1","cursor-not-allowed","flex-col","justify-between","gap-4","rounded-lg","border","border-gray-200","bg-white","p-3"],[1,"text-base","text-gray-500"],[1,"text-3xl","font-semibold","text-gray-700"],["aria-hidden","true",1,"flex","flex-1","cursor-not-allowed","flex-col","justify-between","gap-4","rounded-lg","border","border-gray-200","bg-white","p-3",3,"click"]];},template:function(i,n){i&1&&(ou(0,"div",3)(1,"div",4),hT(2,ki,5,4,"div",5,$i),ou(4,"div",6)(5,"div",7),iC(6,0),iu(),ou(7,"div",8),BC(8),iu()(),ou(9,"div",6)(10,"div",7),iC(11,1),iu(),ou(12,"div",8),uT(13,Bi,3,2)(14,Xi,2,0,"span"),iu()()()()),i&2&&(SD(2),gT(n.statsToDisplay()),SD(6),cu(" ",n.stats().closingRate?n.stats().closingRate+"%":"-"," "),SD(5),dT(n.stats().avgClosingTime?13:14));},encapsulation:2});}}return t;})();var Gi=(t,c)=>c.id;function zi(t,c){if(t&1){let e=DT();ou(0,"div",2),Dm("click",function(){let n=tf(e).$implicit,o=cC();return nf(o.handleClick(n));}),BC(1),iu();}if(t&2){let e=c.$implicit,i=cC();Rm("bg-gray-200",i.isStatSelected(e))("cursor-not-allowed",!e.value),SD(),Um(" ",e.label," (",e.value||0,") ");}}var Bt=(()=>{class t extends Ve{getRequiredFields(){return[m.all,m.toBeTreated,m.inprogress,m.expiresSoon,m.notTreated,m.treated,m.withoutAlert];}onStatClick(e){this.isStatSelected(e)||super.onStatClick(e);}static{this.ɵfac=(()=>{let e;return function(n){return(e||(e=GI(t)))(n||t);};})();}static{this.ɵcmp=mb({type:t,selectors:[["app-selectable-alert-statistics"]],features:[xg],decls:3,vars:0,consts:[[1,"flex","flex-row","flex-wrap","gap-3"],["aria-hidden","true",1,"cursor-pointer","rounded-md","px-2","py-1","text-sm","transition-all","duration-200","hover:bg-gray-50",3,"bg-gray-200","cursor-not-allowed"],["aria-hidden","true",1,"cursor-pointer","rounded-md","px-2","py-1","text-sm","transition-all","duration-200","hover:bg-gray-50",3,"click"]],template:function(i,n){i&1&&(ou(0,"div",0),hT(1,zi,2,6,"div",1,Gi),iu()),i&2&&(SD(),gT(n.statistics()));},encapsulation:2});}}return t;})();var Ut=D$1(R$1());var Ui=["audioElement"];function Wi(t,c){t&1&&Kg(0,"div",6);}function ji(t,c){t&1&&Kg(0,"app-icon",7),t&2&&Yg("width",12)("height",12);}function Hi(t,c){t&1&&Kg(0,"app-icon",8),t&2&&Yg("width",12)("height",12);}function qi(t,c){if(t&1){let e=DT();is(0,"div",16)(1,"span",17),iC(2,1),ru(),is(3,"button",18),Em("click",function(){tf(e);let n=cC();return nf(n.retry());}),iC(4,2),ru()();}}var Xt=(()=>{class t extends Fe$1{constructor(){super(),this.audioRef=jH("audioElement"),this.audioSeekSvc=_$1(ut),this.destroyRef=_$1(at),this.currentTime=Ci$1(0),this.duration=Ci$1(0),this.formatDuration=U,this.currentAudioUrl=null,this.audioSeekSvc.stopRequest$.pipe(x(this.destroyRef)).subscribe(()=>{this.stop();});}ngAfterViewInit(){this.loadAudioFile();}onCanPlay(){this.isLoading.set(false),this.isReady.set(true),this.hasError.set(false),this.updateDuration();}onError(){this.isLoading.set(false),this.hasError.set(true),this.errorMessage.set("\xC9chec du chargement de l'audio"),this.isReady.set(false);}onPlay(){this.isPlaying.set(true),this.isPaused.set(false);}onPause(){this.isPlaying.set(false),this.isPaused.set(true);}onEnded(){this.isPlaying.set(false),this.isPaused.set(false),this.currentTime.set(0);}onTimeUpdate(){this.audioRef()?.nativeElement&&this.currentTime.set(this.audioRef().nativeElement.currentTime);}onLoadedMetadata(){this.updateDuration();}play(){if(this.audioRef()?.nativeElement&&this.isReady()&&!this.hasError())try{this.audioRef().nativeElement.play();}catch(e){console.error("Error playing audio:",e),this.hasError.set(true),this.errorMessage.set("\xC9chec du chargement de l'audio");}}pause(){if(this.audioRef()?.nativeElement&&this.isReady()&&!this.hasError())try{this.audioRef().nativeElement.pause();}catch(e){console.error("Error pausing audio:",e);}}stop(){if(this.audioRef()?.nativeElement&&this.isReady()&&!this.hasError())try{this.audioRef().nativeElement.pause(),this.audioRef().nativeElement.currentTime=0,this.isPlaying.set(!1),this.isPaused.set(!1),this.currentTime.set(0);}catch(e){console.error("Error stopping audio:",e);}}
2retry(){this.hasError.set(false),this.errorMessage.set(""),this.isReady.set(false),this.loadAudioFile();}cleanup(){this.audioRef()?.nativeElement&&(this.audioRef().nativeElement.pause(),this.audioRef().nativeElement.src="");}updateDuration(){this.audioRef()?.nativeElement&&this.duration.set(this.audioRef().nativeElement.duration||0);}loadAudioFile(){let e=this.audioUrl(),i=this.loadAudioUrl();e?this.loadAudio(e):i?(this.isLoading.set(true),i().subscribe({next:n=>{n?this.loadAudio(n):(this.hasError.set(true),this.errorMessage.set("\xC9chec du chargement de l'audio"),this.isLoading.set(false));},error:n=>{console.error("Failed to get audio URL:",n),this.hasError.set(true),this.errorMessage.set("\xC9chec du chargement de l'audio"),this.isLoading.set(false);}})):(this.hasError.set(true),this.errorMessage.set("\xC9chec du chargement de l'audio"));}loadAudio(e){this.currentAudioUrl===e&&this.isReady()||(this.currentAudioUrl=e,this.isLoading.set(true),this.hasError.set(false),this.isReady.set(false),this.audioRef()?.nativeElement&&(this.audioRef().nativeElement.src=e,this.audioRef().nativeElement.load()));}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵcmp=mb({type:t,selectors:[["app-simple-audio"]],viewQuery:function(i,n){i&1&&_m(n.audioRef,Ui,5),i&2&&gC();},features:[xg],decls:16,vars:9,consts:()=>{let e;e="\xC9chec du chargement de l'audio";let i;return i="R\xE9essayer",[["audioElement",""],e,i,[1,"flex","w-full","items-center","gap-3","rounded-lg","border","border-gray-400","bg-white","p-3","shadow-sm"],["preload","metadata",3,"canplay","error","play","pause","ended","timeupdate","loadedmetadata"],["type","button",1,"flex","size-4","items-center","justify-center","rounded-full","disabled:cursor-not-allowed","disabled:bg-gray-300",3,"click","disabled"],[1,"size-4","animate-spin","rounded-full","border-2","border-white","border-t-transparent"],["iconName","pause",3,"width","height"],["iconName","play",3,"width","height"],[1,"flex","flex-1","flex-row","items-center","gap-2"],[1,"w-fit","text-xs","whitespace-nowrap","text-gray-500"],[1,"relative","h-2","w-full","rounded-full","bg-gray-200"],[1,"h-full","rounded-full","bg-blue-600","transition-all","duration-75"],[1,"flex","flex-row","gap-2","p-2"],["type","button",1,"flex","items-center","justify-center","rounded","p-1","transition-colors","hover:bg-gray-100"],["iconName","sound",3,"width","height"],[1,"flex","items-center","gap-2"],[1,"text-sm","text-red-600"],["type","button",1,"rounded","px-2","py-1","text-xs","text-blue-600","hover:bg-blue-50",3,"click"]];},template:function(i,n){i&1&&(is(0,"div",3)(1,"audio",4,0),Em("canplay",function(){return n.onCanPlay();})("error",function(){return n.onError();})("play",function(){return n.onPlay();})("pause",function(){return n.onPause();})("ended",function(){return n.onEnded();})("timeupdate",function(){return n.onTimeUpdate();})("loadedmetadata",function(){return n.onLoadedMetadata();}),ru(),is(3,"button",5),Em("click",function(){return n.isPlaying()?n.pause():n.play();}),uT(4,Wi,1,0,"div",6)(5,ji,1,2,"app-icon",7)(6,Hi,1,2,"app-icon",8),ru(),is(7,"div",9)(8,"div",10),BC(9),ru(),is(10,"div",11),Kg(11,"div",12),ru(),is(12,"div",13)(13,"button",14),Kg(14,"app-icon",15),ru()()(),uT(15,qi,5,0,"div",16),ru()),i&2&&(SD(3),Yg("disabled",!n.isReady()||n.hasError()),SD(),dT(n.isLoading()?4:n.isPlaying()?5:6),SD(5),Um(" ",n.formatDuration(n.currentTime())," / ",n.formatDuration(n.duration())," "),SD(2),Am("width",n.duration()>0?n.currentTime()/n.duration()*100:0,"%"),SD(3),Yg("width",12)("height",12),SD(),dT(n.hasError()?15:-1));},dependencies:[b],encapsulation:2});}}return t;})();var Gt=()=>[];function Yi(t,c){t&1&&Jg(0,"div",8);}function Qi(t,c){t&1&&Jg(0,"div",9);}var zt=(()=>{class t{static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵcmp=mb({type:t,selectors:[["app-details-skeleton"]],decls:15,vars:2,consts:[["role","status",1,"max-w-full","animate-pulse","space-y-4","rounded-lg","p-4"],[1,"flex","items-center","justify-between","rounded-t-lg","p-2"],[1,"flex","flex-col","gap-4"],[1,"h-4","w-48","rounded-lg","bg-gray-300"],[1,"h-2","w-40","rounded-lg","bg-gray-300"],[1,"h-8","w-24","rounded-lg","bg-gray-300"],[1,"divi
2de-y"],[1,"flex","flex-row","gap-2"],[1,"h-6","flex-1","rounded-lg","bg-gray-300"],[1,"h-20","flex-1","rounded-lg","bg-gray-300"],[1,"h-4","w-20","flex-1","rounded-lg","bg-gray-300"],[1,"h-80","w-full","flex-1","rounded-lg","bg-gray-300"]],template:function(i,n){i&1&&(ou(0,"div",0)(1,"div",1)(2,"div",2),Jg(3,"div",3)(4,"div",4),iu(),Jg(5,"div",5),iu(),Jg(6,"div",6),ou(7,"div",7),hT(8,Yi,1,0,"div",8,fT),iu(),ou(10,"div",7),hT(11,Qi,1,0,"div",9,fT),iu(),Jg(13,"div",10)(14,"div",11),iu()),i&2&&(SD(8),gT(e_(0,Gt).constructor(4)),SD(3),gT(e_(1,Gt).constructor(3)));},encapsulation:2});}}return t;})();var Ki=(t,c)=>c.key;function Ji(t,c){if(t&1&&(is(0,"span",9),BC(1),ru()),t&2){let e=cC(3);SD(),$m(e.customerFile().name);}}function Zi(t,c){t&1&&(is(0,"span",10),iC(1,2),ru());}function en(t,c){if(t&1&&(is(0,"div",17),BC(1),ru()),t&2){let e=c.$implicit;SD(),Um("",e.key,"\xA0:\xA0",e.value);}}function tn(t,c){if(t&1&&(is(0,"div",23),c_(1,"getScoreColor"),is(2,"span",24),BC(3),ru(),is(4,"span",25),BC(5),ru()()),t&2){let e=c.$implicit;AC("border-b-"+d_(1,5,e.value,e.calculType)),SD(3),$m(e.name),SD(2),Um("",e.value,"/",e.max);}}function nn(t,c){if(t&1&&hT(0,tn,6,8,"div",22,fT),t&2){let e=cC(3);gT(e.customerFile().keyIndicators);}}function on(t,c){if(t&1&&(is(0,"div")(1,"p",27),BC(2),ru(),Kg(3,"p",28),ru()),t&2){let e=c.$implicit;SD(2),$m(e.verbatimName),SD(),Yg("innerHTML",e.valueString.value,vh);}}function rn(t,c){if(t&1&&(is(0,"div",20)(1,"span",26),iC(2,3),ru(),hT(3,on,4,2,"div",null,fT),ru()),t&2){let e=cC(3);SD(3),gT(e.customerFile().verbatims);}}function an(t,c){if(t&1&&(Kg(0,"app-simple-audio",30),is(1,"div")(2,"h3",29),iC(3,5),ru(),is(4,"p",31),BC(5),ru()()),t&2){let e=c.$implicit,i=cC(4);Yg("audioUrl",e.valueAudio?.signedUrl)("loadAudioUrl",i.createAudioLoader.bind(i,e)),SD(5),$m(e.valueAudio?.summary);}}function ln(t,c){if(t&1&&(is(0,"div",20)(1,"span",29),iC(2,4),ru(),hT(3,an,6,3,null,null,fT),ru()),t&2){let e=cC(3);SD(3),gT(e.audioAnswers());}}function sn(t,c){if(t&1&&Kg(0,"app-interaction-history",21),t&2){let e=cC(3);Yg("interactions",e.interactions());}}function cn(t,c){if(t&1){let e=DT();is(0,"div",6)(1,"div",7)(2,"div",8),uT(3,Ji,2,1,"span",9)(4,Zi,2,0,"span",10),is(5,"p",11)(6,"span"),BC(7),ru(),BC(8," \xA0"),is(9,"span"),iC(10,0),ru()()(),is(11,"div",12),Em("click",function(){tf(e);let n=cC(2);return nf(n.goToCustomerFile());}),is(12,"span",13),iC(13,1),ru(),Kg(14,"app-icon",14),ru()(),is(15,"div",15)(16,"div",16),hT(17,en,2,2,"div",17,Ki),c_(19,"keyvalue"),ru(),is(20,"div",18),uT(21,nn,2,0),ru()(),is(22,"div",19),uT(23,rn,5,0,"div",20),uT(24,ln,5,0,"div",20),uT(25,sn,1,1,"app-interaction-history",21),ru()();}if(t&2){let e=cC(2);SD(3),dT(e.customerFile().name?3:4),SD(4),$m(e.customerFile().interactionCount),SD(3),Im(e.customerFile().interactionCount),sC(10),SD(4),Yg("width",8),SD(3),gT(u_(19,8,e.customerFile().additionalData)),SD(4),dT(e.customerFile().keyIndicators.length?21:-1),SD(2),dT(e.customerFile().verbatims.length?23:-1),SD(),dT(e.audioAnswers().length?24:-1),SD(),dT(e.interactions().length?25:-1);}}function dn(t,c){if(t&1&&uT(0,cn,26,10,"div",6),t&2){let e=cC();dT(e.customerFile()?0:-1);}}function mn(t,c){t&1&&(is(0,"div"),Kg(1,"app-details-skeleton"),ru());}var Wt=(()=>{class t{constructor(){this.customerFileSvc=_$1(V),this.consumerPathwaySvc=_$1(G),this.audioUrlLoaderSvc=_$1(qi$1),this.audioSeekSvc=_$1(ut),this.isListLoading=LH(false),this.customerFile=Ci$1(null),this.feedback=v_(()=>this.customerFileSvc.data().experience.feedback?.[0]??null),this.isLoading=v_(()=>this.customerFileSvc.isLoading()||this.isListLoading()),this.experience=v_(()=>this.customerFileSvc.data().experience??null),this.interactions=v_(()=>this.customerFileSvc.data().experience.feedback[0]?.interactions),this.audioAnswers=v_(()=>(this.feedback()?.answers??[]).filter(e=>e.type===d.AUDIO&&!!e.valueAudio)),this._customerFileEffect=Cf(()=>{let e=this.customerFileSvc.data(),i=this.consumerPathwaySvc.consumerPathway()?.keyIndicators??[],n=this.consumerPathwaySvc.consumerPathway()?.verbatims??[];I_(()=>this.customerFile.set(this.getCustomerFile(e,i,n)));}),this._resetDetailsEffect=Cf(()=>{this.isListLoading()&&this.customerFile.set(null);});}
2ngOnInit(){this.consumerPathwaySvc.getConsumerPathways();}goToCustomerFile(){this.audioSeekSvc.stop(),this.customerFileSvc.open();}createAudioLoader(e){return this.audioUrlLoaderSvc.loadAudioUrl(e);}getCustomerFile(e,i,n){if(!Object.keys(e).length)return null;let o=e.experience?.feedback?.at(0)?.answers??[],d=this.getVerbatims(o,n);return{name:e?.experience?.client.nameAndLastname(" ")??"",interactionCount:this.getInteractionCount(e.experience),additionalData:this.getAdditionalData(e.clientMetadata??[],e.experience),keyIndicators:this.getKeyIndicators(o,i??[]),verbatims:d};}getVerbatims(e,i){let n=i.reduce((o,d)=>(d?.containerAnswer?.wsName&&d?.name&&(o[d.containerAnswer.wsName]=d.name),o),{});return e.filter(o=>o.type===d.STRING).map(o=>y(x$1({},o),{verbatimName:n[o.wsName]??o.wsName}));}getInteractionCount(e){return e?.feedback.filter(i=>Array.isArray(i.interactions)).reduce((i,n)=>i+n.interactions.length,0)??0;}getAdditionalData(e,i){let n=i?.client;return x$1(x$1(x$1({tel:n.tel,email:n.email},i?.channel&&{channel:i?.channel}),i?.source&&{source:i?.source}),Object.fromEntries((0,Ut.default)(e)?[]:e.map(o=>[o.name,o.value])));}getKeyIndicators(e,i){return e.length?e.map(n=>{let o=i.find(d=>d.indicator.wsNames===n.wsName);return o?{name:o.attribute.name,max:o.indicator.max,type:n.type,value:n.valueInt,calculType:o.indicator.calculType,order:o.order}:null;}).filter(n=>!!n).sort((n,o)=>n.order-o.order):[];}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵcmp=mb({type:t,selectors:[["app-experience-details"]],inputs:{isListLoading:[1,"isListLoading"]},decls:2,vars:1,consts:()=>{let e;e="{VAR_PLURAL, plural, =0 {\xE9change} =1 {\xE9change} other {\xE9changes}}",e=aC(e,{VAR_PLURAL:"\uFFFD0\uFFFD"});let i;i="Voir la fiche client";let n;n="Anonyme";let o;o="Commentaires";let d;d="Note vocale";let X;return X="Transcription",[e,i,n,o,d,X,[1,"size-full","overflow-y-auto"],[1,"flex","flex-row","items-center","justify-between","gap-2","border-b","border-gray-200","p-3"],[1,"flex","flex-col","gap-1"],[1,"text-lg"],[1,"text-sm","font-medium","italic","text-gray-400"],[1,"text-xs","text-gray-600"],["aria-hidden","true",1,"flex","cursor-pointer","flex-row","items-center","gap-3",3,"click"],[1,"text-sm","text-blue-700"],["iconName","chevronRight",1,"fill-blue-700",3,"width"],[1,"flex","flex-col","gap-5","border-b","border-gray-200","px-3","py-5","@container"],[1,"flex","flex-wrap","gap-x-2","gap-y-3"],[1,"rounded-md","bg-gray-100","p-2","text-xs"],[1,"grid","grid-cols-1","flex-wrap","gap-x-2","gap-y-3","@md:grid-cols-2","@xl:grid-cols-3"],[1,"flex","flex-col","gap-8","px-3","py-5"],[1,"flex","flex-col","gap-3","rounded-md","bg-gray-100","p-6"],[3,"interactions"],[1,"flex","flex-col","gap-4","border","border-b-4","border-x-gray-200","border-t-gray-200","px-2","py-3",3,"class"],[1,"flex","flex-col","gap-4","border","border-b-4","border-x-gray-200","border-t-gray-200","px-2","py-3"],[1,"text-xs"],[1,"text-2xl"],[1,"text-xl","font-semibold"],[1,"mb-2","text-xl","font-medium"],[1,"text-gray-600",3,"innerHTML"],[1,"text-xl"],[3,"audioUrl","loadAudioUrl"],[1,"mt-2","text-gray-600"]];},template:function(i,n){i&1&&uT(0,dn,1,1)(1,mn,2,0,"div"),i&2&&dT(n.isLoading()?1:0);},dependencies:[b,Xt,Vi$1,zt,Ei$1,u],encapsulation:2});}}return t;})();var jt=D$1(t());var Ht=(()=>{class t{constructor(){this.alertStatsSvc=_$1(ce),this.filtersSvc=_$1(S),this.alertSvc=_$1($$1),this.selectedAlertTypes=Ci$1([]),this.alertTypeOptions=Ci$1([]),this.placeholder="Toutes les interactions",this._alertTypeChangeEffect=Cf(()=>{let e=this.selectedAlertTypes();I_(()=>{let i=this.filtersSvc.filters().alertType?.map(d=>d.id)??[];if(this.areSameSelection(e,i))return;let n=this.getAlertTypesByIds(e),o=(0,jt.default)(this.filtersSvc.filters()).setAlertType(n.length?n:null);this.filtersSvc.setFilters(o);});}),this._filterChangeEffect=Cf(()=>{let e=this.filtersSvc.filters();I_(()=>{let i=e.alertType?.map(n=>n.id)??[];this.areSameSelection(this.selectedAlertTypes(),i)||this.selectedAlertTypes.set(i);});});}ngOnInit(){this.alertSvc.getAlertSettings().subscribe(e=>{this.alertTypeOptions.set(e.filter(i=>i.isActive).map(i=>({label:i.name,value:i.id})));});}getAlertTypesByIds(e){let i=this.alertStatsSvc.alertStatsReadonly().perAlertType;return e.map(n=>{let o=i.find(d=>d.id===n)?.label??this.alertTypeOptions().find(d=>d.value===n)?.label??"";return{id:n,label:o,value:o};});}areSameSelection(e,i){return e.length===i.length&&e.every(n=>i.includes(n));}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵcmp=mb({type:t,selectors:[["app-filter-by-alert-type"]],decls:3,vars:3,consts:()=>{let e;return e="Type",[e,[1,"my-2","text-xs","capitalize"],["prependIcon","bell","heightClass","h-10","dropdownClass","min-w-full w-max max-w-sm",3,"ngModelChange","options","placeholder","ngModel"]];},template:function(i,n){i&1&&(is(0,"h2",1),iC(1,0),ru(),is(2,"app-multiselect-input",2),Gm("ngModelChange",function(d){return qC(n.selectedAlertTypes,d)||(n.selectedAlertTypes=d),d;}),ru(),Sw()),i&2&&(SD(2),Yg("options",n.alertTypeOptions())("placeholder",n.placeholder),Wm("ngModel",n.selectedAlertTypes),xw());},dependencies:[ie,ii$1,Yn,pn$1],encapsulation:2});}}return t;})();var pn=["experienceListingComponent"],_n=t=>[t];function un(t,c){if(t&1&&(is(0,"div"),Kg(1,"app-context-menu",18),ru()),t&2){let e=cC();SD(),Yg("contextMenuConfig",e.contextMenuConfig);}}var sa=(()=>{class t{constructor(){this.filtersSvc=_$1(S),this.cacheSvc=_$1(o$1),this.experienceListingRef=jH.required("experienceListingComponent"),this.isListLoading=Ci$1(false),this.contextMenuConfig={title:"Options de page",items:[{label:"T\xE9l\xE9charger",type:"button",action:()=>this.experienceListingRef().exportCustomerExperience()}]},this.FilterType=s$1,this.searchType=m$1.METADATA,this.searchPlaceholder="Rechercher un nom, une adresse email",this.widgetFilter=Ci$1(null),this.previousFilter=Ci$1(null);}ngOnInit(){this.useCache();}ngOnDestroy(){let e=this.previousFilter();if(this.widgetFilter()&&e){this.filtersSvc.setFilters(e);return;}let i=this.filtersSvc.filters();i.alertStatus=null,i.alertType=null,this.filtersSvc.setFilters(i);}useCache(){let e=this.cacheSvc.getObject(E);e&&(this.filtersSvc.setFilters(e),this.widgetFilter.set(e),this.previousFilter.set(this.cacheSvc.getObject(t$1)),this.cacheSvc.removeObject(E),this.cacheSvc.removeObject(t$1));}static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵcmp=mb({type:t,selectors:[["app-client-response"]],viewQuery:function(i,n){i&1&&_m(n.experienceListingRef,pn,5),i&2&&gC();},decls:21,vars:11,consts:()=>{let e;e="Alertes";let i;return i="Interactions",[["experienceListingComponent",""],e,i,[1,"flex","flex-col","gap-4"],[1,"z-20","flex","flex-col","gap-3","pb-4"],[1,"text-2xl","font-medium"],[1,"grid","h-[calc(100vh-116px)]","max-h-[calc(100vh-116px)]","min-h-[calc(100vh-116px)]","flex-1","grid-rows-[auto_1fr]","flex-col","gap-2","overflow-hidden","rounded-md","border","border-gray-200","bg-white","pt-3"],[1,"flex","flex-col","px-3"],[1,"flex","items-center","justify-between"],[1,"text-xl"],[1,"mb-3","grid","grid-cols-[auto_minmax(0,1fr)]","items-end","gap-2"],[3,"showLabel","searchType","placeholder"],[1,"min-w-0",3,"withMarginBottom","withAlerts","hiddenFiltersSummarize","scrollableFilters"],["filterBarStart","",1,"max-w-48","shrink-0","xl:max-w-64"],[1,"grid","min-h-0","flex-1","grid-cols-2","grid-rows-1","border-t","border-gray-200"],[3,"loadingStatusChange"],[1,"border-l","border-gray-200"],[3,"isListLoading"],[3,"contextMenuConfig"]];},template:function(i,n){i&1&&(is(0,"div",3)(1,"div",4)(2,"h2",5),iC(3,1),ru(),Kg(4,"app-alert-statistics"),ru(),is(5,"div",6)(6,"div",7)(7,"div",8)(8,"h2",9),iC(9,2),ru(),uT(10,un,2,1,"div"),ru(),is(11,"div",10),Kg(12,"app-searchbar",11),is(13,"a
2pp-filters",12),Kg(14,"app-filter-by-alert-type",13),ru()(),Kg(15,"app-selectable-alert-statistics"),ru(),is(16,"div",14)(17,"app-experience-listing",15,0),Em("loadingStatusChange",function(d){return n.isListLoading.set(d);}),ru(),is(19,"div",16),Kg(20,"app-experience-details",17),ru()()()()),i&2&&(SD(10),dT(n.experienceListingRef().showPageOptionsMenu()?10:-1),SD(2),Yg("showLabel",false)("searchType",n.searchType)("placeholder",n.searchPlaceholder),SD(),Yg("withMarginBottom",false)("withAlerts",true)("hiddenFiltersSummarize",t_(9,_n,n.FilterType.ALERT_TYPE))("scrollableFilters",true),SD(7),Yg("isListLoading",n.isListLoading()));},dependencies:[Vt,Z,kt,Bt,Wt,$,gM,Ht],encapsulation:2});}}return t;})();/**i18n:94c3022101991aeb689c9671dfc63f1ad1e101c244587efd84d5135b09354d1b*/export{sa as ClientResponseComponent};

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.