1import{Bb as Re,P as Be,Z as se}from"./chunk-IK75QF4R.js";import{Db as ae,La as Ie,Ld as Le,Na as Ne,U as _e,Wa as ne,X as Oe,Xa as oe,Y as Z,ba as Ee,c as Te,de as je,ee as Fe,h as De,la as ee,m as Ve,ma as ze,oe as F,qa as Ae,sa as te,wa as ie}from"./chunk-43676PJW.js";import{Bc as h,Da as b,Eb as W,Fc as ge,G as xe,Gc as ue,Hc as he,Ja as _,Ka as C,Kb as ve,L as Me,Nc as Se,Qb as L,Qc as m,Rc as j,Sc as we,Ta as v,Tc as $,Vc as Y,Wc as G,X as be,Xc as K,_ as de,dc as P,fc as k,fd as Pe,gc as ye,h as f,i as y,ic as U,j as S,jc as q,jd as O,k as N,kc as D,kd as E,l as H,lc as n,ld as J,mc as l,nc as R,qa as pe,rd as ke,s as ce,sd as z,ta as me,td as fe,uc as V,v as Ce,wd as X,ya as Q,zb as p,zc as x}from"./chunk-BSUXTLK4.js";var le=(()=>{let i=class i{constructor(){this.isMobileSignal=v(!1),this.isMobile()?this.isMobileSignal.set(!0):this.isMobileSignal.set(!1)}isMobile(){let s=navigator.userAgent,c=/Mobi|Android.*Mobile|iPhone|IEMobile|BlackBerry|Opera Mini/i.test(s),a=/iPad|Android(?!.*Mobile)|Tablet|PlayBook|Silk/i.test(s),g=/Macintosh/.test(s)&&"ontouchend"in document;return!!(c||a||g)}};i.\u0275fac=function(c){return new(c||i)},i.\u0275prov=Q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var B=(()=>{var i,e,s,c,a,g,$e,He,Qe;let u=class u extends Oe{constructor(){super();y(this,g);y(this,i);y(this,e);y(this,s);y(this,c);y(this,a);S(this,i,new Ne),S(this,e,b(Z)),S(this,s,b(Le)),S(this,c,v([])),this.contacts=z(()=>f(this,c).call(this)),this.contacts$=new ce,S(this,a,v([])),this.messages=z(()=>f(this,a).call(this)),this.messages$=new ce,this.contacts$.pipe(me(()=>this.setLoading()),pe(()=>N(this,g,$e).call(this)),de(()=>(this.setSuccess(),xe(null))),_e()).subscribe(M=>{this.setSuccess(),M&&f(this,c).set(M.contatti)}),this.messages$.pipe(be(M=>!!M),me(()=>this.setLoading()),pe(M=>N(this,g,He).call(this,M)),de(()=>(this.setSuccess(),Ce)),_e()).subscribe(M=>{this.setSuccess(),f(this,a).set(M.messaggi)})}clearData(){f(this,c).set([]),f(this,a).set([])}updateMessages(M){f(this,a).update(T=>[...T,...M])}sendMessage(M,T){return H(this,null,function*(){this.setLoading();let I=yield Me(N(this,g,Qe).call(this,M,T));return this.setSuccess(),I})}};i=new WeakMap,e=new WeakMap,s=new WeakMap,c=new WeakMap,a=new WeakMap,g=new WeakSet,$e=function(){let M=f(this,e).user(),T=`MyDiet/Chat/Contatti/${M?.idLogin}/${M?.idCentro}`;return f(this,i).get(T)},He=function(M){let T=f(this,e).user(),I=`MyDiet/Chat/Paziente/${T?.idLogin}/${T?.idCentro}/${M}`;return f(this,i).get(I)},Qe=function(M,T){let I=f(this,e).user(),Ye=`MyDiet/Chat/Messaggio/${I?.idLogin}/${I?.idCentro}/${M}`;return f(this,i).post(Ye,{messaggio:T})},u.\u0275fac=function(T){return new(T||u)},u.\u0275prov=Q({token:u,factory:u.\u0275fac,providedIn:"root"});let t=u;return t})();var Xe=["scrollContainer"],Ze=["messageInput"];function et(t,i){t&1&&(n(0,"span",15),m(1," fullscreen "),l())}function tt(t,i){t&1&&(n(0,"span",15),m(1," fullscreen_exit "),l())}function it(t,i){if(t&1){let e=V();n(0,"button",14),x("click",function(){_(e);let c=h();return C(c.close())}),n(1,"span",15),m(2," close "),l()(),n(3,"button",16),x("click",function(){_(e);let c=h();return C(c.toggleFullScreen())}),P(4,et,2,0,"span",15)(5,tt,2,0,"span",15),l(),n(6,"button",17),x("click",function(){_(e);let c=h();return C(c.onRefresh())}),n(7,"span",15),m(8," refresh "),l()()}if(t&2){let e=h();p(4),k(e.fullscreen()?5:4)}}function nt(t,i){if(t&1){let e=V();n(0,"button",18),x("click",function(){_(e);let c=h();return C(c.back.emit())}),n(1,"span",19),m(2," arrow_back_ios_new "),l()(),n(3,"button",20),x("click",function(){_(e);let c=h();return C(c.onRefresh())}),n(4,"span",15),m(5," refresh "),l()()}}function ot(t,i){if(t&1&&(n(0,"span",4),m(1),l()),t&2){let e=i;p(),$("",e.nome," ",e.cognome)}}function at(t,i){t&1&&(n(0,"div",6),m(1,"Caricamento..."),l())}function st(t,i){if(t&1&&(n(0,"div",21)(1,"div",22),m(2),n(3,"div",23),m(4),O(5,"stringToDateTime"),O(6,"dateFormat"),l()()()),t&2){let e=i.$implicit;Se("sent",!e.fromPatient),p(2),we(" ",e.testo," "),p(2),j(J(6,6,E(5,4,e.dataMessaggio),!0))}}function rt(t,i){t&1&&(n(0,"div",13),R(1,"mat-spinner",24),l())}var We=(()=>{var i,e,s,Ue;let a=class a{constructor(){y(this,s);y(this,i);y(this,e);this.dialogRef=b(ee),this.mobileService=b(le),S(this,i,b(se)),S(this,e,b(Ee)),this.chatService=b(B),this.data=b(ze,{optional:!0}),this.isDialog=!0,this.back=new W,this.idAna=X(null),this.patientInfo=z(()=>{let o=this.idAna()??this.data?.patientId??null;return f(this,i).pazienti().find(d=>d.idAna==o)}),this.pageSize=10,this.currentPage=v(0),this.loadedMessages=v([]),this.loading=v(!1),this.hasMore=v(!0),this.message=null,this.fullscreen=v(!1),fe(()=>{let o=this.idAna()??this.data?.patientId??null;o&&this.chatService.messages$.next(o)}),fe(()=>{this.chatService.messages()?.length&&ke(()=>{this.currentPage.set(0),this.loadedMessages.set([]),this.hasMore.set(!0),f(this,e).getMessagesCounter(),this.loadMoreMessages(),this.scrollToBottom()})})}close(){this.chatService.clearData(),this.dialogRef.close()}loadMoreMessages(){if(this.loading()||!this.hasMore())return;this.loading.set(!0);let o=this.chatService.messages(),r=o.length,d=Math.max(0,r-(this.currentPage()+1)*this.pageSize),u=r-this.currentPage()*this.pageSize,A=o.slice(d,u);A.length===0?this.hasMore.set(!1):(this.loadedMessages.update(w=>[...A,...w]),this.currentPage.update(w=>w+1)),this.loading.set(!1)}onScroll(o){let r=o.target;if(r.scrollTop<=10&&this.hasMore()&&!this.loading()){let d=r.scrollHeight;this.loadMoreMessages(),requestAnimationFrame(()=>{r.scrollTop=r.scrollHeight-d})}}scrollToBottom(){let o=this.scrollContainer.nativeElement;setTimeout(()=>{o.scrollTop=o.scrollHeight},0)}onMessageChange(o){let r=o.target;this.message=r?.value??""}onSendMessage(){return H(this,null,function*(){let o=this.idAna()??this.data?.patientId??null;if(o!=null&&this.message&&this.message.length>0){let r=yield this.chatService.sendMessage(o,this.message);r&&this.chatService.updateMessages(r.messaggi),this.message=null,N(this,s,Ue).
1call(this)}})}toggleFullScreen(){let o=!this.fullscreen();this.fullscreen.set(o),o?this.dialogRef.updateSize("100%","100%"):this.dialogRef.updateSize("70%","80%")}onEnter(o){o.shiftKey||(o.preventDefault(),this.onSendMessage())}autoResize(o){let r=o.target;r.style.height="auto";let d=120;r.scrollHeight>d?(r.style.height=d+"px",r.style.overflowY="auto"):(r.style.height=r.scrollHeight+"px",r.style.overflowY="hidden")}onRefresh(){this.chatService.contacts$.next();let o=this.idAna();o&&this.chatService.messages$.next(o)}};i=new WeakMap,e=new WeakMap,s=new WeakSet,Ue=function(){let o=this.textarea.nativeElement;o.style.height="auto",o.style.overflowY="hidden"},a.\u0275fac=function(r){return new(r||a)},a.\u0275cmp=L({type:a,selectors:[["app-mydiet-chat-patient-messages"]],viewQuery:function(r,d){if(r&1&&(ge(Xe,5),ge(Ze,5)),r&2){let u;ue(u=he())&&(d.scrollContainer=u.first),ue(u=he())&&(d.textarea=u.first)}},inputs:{isDialog:"isDialog",idAna:[1,"idAna"]},outputs:{back:"back"},decls:19,vars:8,consts:[["scrollContainer",""],["messageInput",""],[1,"chat-container"],[1,"chat-header"],[1,"name"],[1,"messages",3,"scroll"],[1,"loader"],[1,"message",3,"sent"],[1,"chat-input"],["rows","1",3,"ngModelChange","input","keydown.enter","ngModel","disabled"],[3,"click","disabled"],[2,"display","flex","align-items","center","justify-content","center"],[1,"material-symbols-outlined",2,"transform","rotate(-23deg)","margin-left","8px"],[1,"loading-overlay"],[2,"position","absolute","top","4px","right","8px","border","0","background-color","transparent","cursor","pointer","z-index","1",3,"click"],[1,"material-symbols-outlined"],[2,"position","absolute","top","4px","right","40px","border","0","background-color","transparent","cursor","pointer","z-index","1",3,"click"],[2,"position","absolute","top","4px","right","80px","border","0","background-color","transparent","cursor","pointer","z-index","1",3,"click"],[1,"back-button",3,"click"],[1,"material-symbols-outlined",2,"color","darkgray","font-size","22px"],[2,"position","absolute","top","16px","right","16px","border","0","background-color","transparent","cursor","pointer","z-index","1",3,"click"],[1,"message"],[1,"bubble"],[1,"time"],["diameter","50"]],template:function(r,d){if(r&1){let u=V();n(0,"div",2),P(1,it,9,1),n(2,"div",3),P(3,nt,6,0),P(4,ot,2,2,"span",4),l(),n(5,"div",5,0),x("scroll",function(w){return _(u),C(d.onScroll(w))}),P(7,at,2,0,"div",6),U(8,st,7,9,"div",7,ye),l(),n(10,"div",8)(11,"textarea",9,1),K("ngModelChange",function(w){return _(u),G(d.message,w)||(d.message=w),C(w)}),x("input",function(w){return _(u),C(d.autoResize(w))})("keydown.enter",function(w){return _(u),C(d.onEnter(w))}),l(),n(13,"button",10),x("click",function(){return _(u),C(d.onSendMessage())}),n(14,"div",11),m(15," Invia "),n(16,"span",12),m(17," send "),l()()()()(),P(18,rt,2,0,"div",13)}if(r&2){let u;p(),k(d.isDialog?1:-1),p(2),k(d.mobileService.isMobile()?3:-1),p(),k((u=d.patientInfo())?4:-1,u),p(3),k(d.loading()?7:-1),p(),q(d.loadedMessages()),p(3),Y("ngModel",d.message),D("disabled",!d.idAna()&&!(d.data!=null&&d.data.patientId)),p(2),D("disabled",!d.message),p(5),k(d.chatService.isLoading()&&d.isDialog?18:-1)}},dependencies:[F,Ae,te,ie,ae,oe,ne],styles:["[_nghost-%COMP%]{display:flex;flex:1;min-width:0;height:100%}.chat-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;background:#f0f2f5;width:100%;height:100%;min-height:0;position:relative}.chat-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:14px;background:#fff;border-bottom:1px solid #ddd}.messages[_ngcontent-%COMP%]{flex:1;min-height:0;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:10px;height:100%}.message[_ngcontent-%COMP%]{display:flex}.message.sent[_ngcontent-%COMP%]{justify-content:flex-end}.bubble[_ngcontent-%COMP%]{background:#fff;padding:10px 14px;border-radius:10px;max-width:60%;font-size:14px}.message.sent[_ngcontent-%COMP%] .bubble[_ngcontent-%COMP%]{background:#d9fdd3}.time[_ngcontent-%COMP%]{font-size:11px;margin-top:4px;text-align:right;color:#888}.chat-input[_ngcontent-%COMP%]{display:flex;gap:10px;padding:10px;background:#fff;border-top:1px solid #ddd}textarea[_ngcontent-%COMP%]{width:100%;border:none;outline:none;resize:none;overflow-y:hidden;padding:10px 14px;border-radius:18px;font-size:14px;line-height:1.4;background-color:#f0f2f5;max-height:120px;box-sizing:border-box}.chat-input[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:10px 16px;border-radius:20px;border:none;background:#ff7b00;color:#fff}
1.avatar[_ngcontent-%COMP%]{height:60px;width:60px;border-radius:50%}.name[_ngcontent-%COMP%]{font-size:20px;font-weight:600}.back-button[_ngcontent-%COMP%]{width:30px;height:100%;background-color:transparent;border:0px;cursor:pointer}button[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed;background-color:#d3d3d3}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background:#0006;display:flex;justify-content:center;align-items:center;z-index:1000;pointer-events:all}"]});let t=a;return t})();var lt=t=>({selected:t}),ct=(t,i)=>i.idAna;function dt(t,i){if(t&1&&(n(0,"span",15),m(1),l()),t&2){let e=h().$implicit;p(),j(e.daVisualizzare)}}function pt(t,i){if(t&1){let e=V();n(0,"div",10),x("click",function(){let c=_(e).$implicit,a=h();return C(a.selectPatient(c.idAna))}),n(1,"div",11)(2,"span"),m(3),O(4,"shortName"),O(5,"uppercase"),O(6,"shortName"),O(7,"uppercase"),l()(),n(8,"div",12)(9,"div",13)(10,"span",14),m(11),l(),P(12,dt,2,1,"span",15),n(13,"span",16),m(14),O(15,"stringToDateTime"),O(16,"dateFormat"),l()(),n(17,"div",17)(18,"span",18),m(19),l()()()()}if(t&2){let e=i.$implicit,s=h();D("ngClass",Pe(21,lt,s.selected()==e.idAna)),p(3),$(" ",E(5,10,E(4,8,(e.patient==null?null:e.patient.nome)??"")),"",E(7,14,E(6,12,(e.patient==null?null:e.patient.cognome)??""))," "),p(8),$("",e.patient==null?null:e.patient.nome," ",e.patient==null?null:e.patient.cognome),p(),k(e.daVisualizzare>0?12:-1),p(2),j(J(16,18,E(15,16,e.dataUltimoMessaggio),!0)),p(5),j(e.ultimoMessaggio)}}var qe=(()=>{var i,e;let s=class s{constructor(){y(this,i);y(this,e);S(this,i,b(B)),S(this,e,b(se)),this.contacts=X.required(),this.patientSelected=new W,this.selected=v(null),this.search=v(""),this.all=v(!0),this.patients=z(()=>{let a=this.contacts(),g=f(this,e).pazienti();return a.map(r=>{let d=g.find(u=>u.idAna==r.idAna);return r.patient=d,r})}),this.filteredPatients=z(()=>{let a=this.search().toLowerCase(),g=this.all();return this.patients().filter(r=>g?!0:r.daVisualizzare>0).filter(r=>a?r.patient?r.patient.nome.toLowerCase().includes(a)||r.patient.cognome.toLowerCase().includes(a):!1:!0)})}ngOnInit(){f(this,i).contacts$.next()}selectPatient(a){this.selected.set(a),this.patientSelected.emit(a);var g=this.contacts().find(o=>o.idAna==a);g&&g.daVisualizzare>0&&(g.daVisualizzare=0)}};i=new WeakMap,e=new WeakMap,s.\u0275fac=function(g){return new(g||s)},s.\u0275cmp=L({type:s,selectors:[["app-mydiet-chat-patients-list"]],inputs:{contacts:[1,"contacts"]},outputs:{patientSelected:"patientSelected"},decls:17,vars:7,consts:[[1,"patients-list"],[1,"patients-header"],[1,"patients-search"],["type","text","placeholder","Cerca paziente...",3,"input"],[1,"patient-toggle"],[3,"ngModelChange","ngModel"],[3,"first","value","size"],[3,"last","value","size"],[1,"patients-scroll"],[1,"patient-item",3,"ngClass"],[1,"patient-item",3,"click","ngClass"],[1,"avatar-small"],[1,"patient-info"],[1,"top-row"],[1,"name"],[1,"chip"],[1,"time"],[1,"bottom-row"],[1,"preview"]],template:function(g,o){g&1&&(n(0,"div",0)(1,"div",1)(2,"h3"),m(3,"Messaggi su MyDiet"),l(),n(4,"div",2)(5,"input",3),x("input",function(d){return o.search.set(d.target.value)}),l()()(),n(6,"div",4)(7,"mtdc-button-group",5),K("ngModelChange",function(d){return G(o.all,d)||(o.all=d),d}),n(8,"mtdc-radio-button",6)(9,"p"),m(10,"Tutti"),l()(),n(11,"mtdc-radio-button",7)(12,"p"),m(13,"Non letti"),l()()()(),n(14,"div",8),U(15,pt,20,23,"div",9,ct),l()()),g&2&&(p(7),Y("ngModel",o.all),p(),D("first",!0)("value",!0)("size","medium"),p(3),D("last",!0)("value",!1)("size","medium"),p(4),q(o.filteredPatients()))},dependencies:[Re,F,Te,te,ie,Fe,je,Be,oe,ne,De],styles:[".patients-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:350px;height:100%;background:#fff;border-right:1px solid #e5e5e5}.patients-header[_ngcontent-%COMP%]{flex:0 0 auto;padding:16px 16px 0;background:#fff;z-index:1}.patient-toggle[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding-bottom:8px;border-bottom:1px solid #eee}.patients-scroll[_ngcontent-%COMP%]{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}.patient-item[_ngcontent-%COMP%]{display:flex;gap:12px;padding:14px;cursor:pointer;border-bottom:1px solid #f5f5f5}.patient-item.selected[_ngcontent-%COMP%]{background-color:#ffc4ad}.patient-item[_ngcontent-%COMP%]:hover{background:#f7f7f7}
1.avatar[_ngcontent-%COMP%]{width:45px;height:45px;border-radius:50%}.patient-info[_ngcontent-%COMP%]{flex:1;min-width:0}.top-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.name[_ngcontent-%COMP%]{font-weight:600}.time[_ngcontent-%COMP%]{font-size:12px;color:#999}.bottom-row[_ngcontent-%COMP%]{font-size:13px;color:#666;margin-top:4px}.preview[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;line-clamp:3;-webkit-line-clamp:3;overflow:hidden;text-overflow:ellipsis}.patients-search[_ngcontent-%COMP%]{padding:10px;background:#fff}.patients-search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;padding:8px 12px;border-radius:20px;border:1px solid #ddd;outline:none;font-size:14px}.patients-search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{border-color:#25d366}.chip[_ngcontent-%COMP%]{font-size:12px;width:20px;height:20px;border-radius:50%;background-color:#ff7b00;display:flex;align-items:center;justify-content:center;text-align:center}@media (max-width: 768px){.patients-list[_ngcontent-%COMP%]{width:100%;border-right:none;height:calc(100% - 50px)}}"]});let t=s;return t})();function mt(t,i){t&1&&(n(0,"span",3),m(1," fullscreen "),l())}function gt(t,i){t&1&&(n(0,"span",3),m(1," fullscreen_exit "),l())}function ut(t,i){if(t&1){let e=V();n(0,"button",2),x("click",function(){_(e);let c=h();return C(c.close())}),n(1,"span",3),m(2," close "),l()(),n(3,"button",4),x("click",function(){_(e);let c=h();return C(c.toggleFullScreen())}),P(4,mt,2,0,"span",3)(5,gt,2,0,"span",3),l(),n(6,"button",5),x("click",function(){_(e);let c=h();return C(c.refresh())}),n(7,"span",3),m(8," refresh "),l()(),n(9,"app-mydiet-chat-patients-list",6),x("patientSelected",function(c){_(e);let a=h();return C(a.selectPatient(c))}),l(),n(10,"app-mydiet-chat-patient-messages",7),x("back",function(){_(e);let c=h();return C(c.backToList())}),l()}if(t&2){let e=h();p(4),k(e.fullscreen()?5:4),p(5),D("contacts",e.chatService.contacts()),p(),D("idAna",e.idAna())("isDialog",!1)}}function ht(t,i){if(t&1){let e=V();n(0,"div",9)(1,"div",10)(2,"div",11),m(3,"Metadieta Software"),l(),R(4,"img",12)(5,"img",13),l(),n(6,"div",14),x("click",function(){_(e);let c=h(2);return C(c.logout())}),n(7,"span",3),m(8," logout "),l()()(),n(9,"app-mydiet-chat-patients-list",6),x("patientSelected",function(c){_(e);let a=h(2);return C(a.selectPatient(c))}),l()}if(t&2){let e=h(2);p(9),D("contacts",e.chatService.contacts())}}function ft(t,i){if(t&1){let e=V();n(0,"app-mydiet-chat-patient-messages",7),x("back",function(){_(e);let c=h(2);return C(c.backToList())}),l()}if(t&2){let e=h(2);D("idAna",e.idAna())("isDialog",!1)}}function _t(t,i){if(t&1&&P(0,ht,10,1)(1,ft,1,2,"app-mydiet-chat-patient-messages",8),t&2){let e=h();k(e.idAna()?1:0)}}function Ct(t,i){t&1&&(n(0,"div",1),R(1,"mat-spinner",15),l())}var ui=(()=>{var i,e;let s=class s{constructor(a){y(this,i);y(this,e);this.responsive=a,S(this,i,b(Z)),S(this,e,b(Ie)),this.chatService=b(B),this.dialogRef=b(ee),this.isMobile=!1,this.idAna=v(null),this.fullscreen=v(!1)}ngOnInit(){this.isMobile=this.responsive.isMobile()}selectPatient(a){this.idAna.set(a)}backToList(){this.chatService.clearData(),this.idAna.set(null)}close(){this.chatService.clearData(),this.dialogRef.close()}logout(){f(this,e).logout(f(this,i).user())}toggleFullScreen(){let a=!this.fullscreen();this.fullscreen.set(a),a?this.dialogRef.updateSize("100%","100%"):this.dialogRef.updateSize("70%","80%")}refresh(){this.chatService.contacts$.next();let a=this.idAna();a&&this.chatService.messages$.next(a)}};i=new WeakMap,e=new WeakMap,s.\u0275fac=function(g){return new(g||s)(ve(le))},s.\u0275cmp=L({type:s,selectors:[["app-mydiet-chat-container"]],decls:4,vars:2,consts:[[1,"chat-layout"],[1,"loading-overlay"],[2,"position","absolute","top","4px","right","8px","border","0","background-color","transparent","cursor","pointer","z-index","1",3,"click"],[1,"material-symbols-outlined"],[2,"position","absolute","top","4px","right","40px","border","0","background-color","transparent","cursor","pointer","z-index","1",3,"click"],[2,"position","absolute","top","4px","right","80px","border","0","background-color","transparent","cursor","pointer","z-index","1",3,"click"],[3,"patientSelected","contacts"],[3,"back","idAna","isDialog"],[3,"idAna","isDialog"],[2,"display","flex","align-items","center","justify-content","space-between","padding","8px"],[2,"display","flex","align-items","center","justify-content","center"],[2,"font-size","22px","margin-right","16px"],["src","assets\\Loghi\\md-icon.svg",2,"height","18px","padding-right","8px"],["src","assets\\Loghi\\ce-icon.svg",2,"height","18px"],[2,"display","flex","align-items","center","justify-content","center","cursor","pointer",3,"click"],["diameter","50"]],template:function(g,o){g&
11&&(n(0,"div",0),P(1,ut,11,4)(2,_t,2,1),l(),P(3,Ct,2,0,"div",1)),g&2&&(p(),k(o.isMobile?2:1),p(2),k(o.chatService.isLoading()?3:-1))},dependencies:[Ve,We,qe,F,ae],styles:[".chat-layout[_ngcontent-%COMP%]{display:flex;height:100%;width:100%;position:relative}app-mydiet-chat-patients-list[_ngcontent-%COMP%]{width:350px;border-right:1px solid #ddd;flex-shrink:0}app-mydiet-chat-patient-messages[_ngcontent-%COMP%]{display:flex;flex:1;min-width:0;min-height:0}@media (max-width: 768px){.chat-layout[_ngcontent-%COMP%]{flex-direction:column}app-mydiet-chat-patients-list[_ngcontent-%COMP%], app-mydiet-chat-patient-messages[_ngcontent-%COMP%]{width:100%}}.loading-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background:#0006;display:flex;justify-content:center;align-items:center;z-index:1000;pointer-events:all}"]});let t=s;return t})();export{le as a,We as b,ui as c};
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.