1import{a as Yt}from"./chunk-R7DU2ZWT.js";import"./chunk-4STF6XGI.js";import{D as rt,F as $,H as U,I as G,N as q,O as H,P as Vt,Q as k,R as W,S as R,T as N,W as Lt,X as Bt,Y as $t,Z as Ut,_ as Gt,a as et,c as T,da as qt,e as it,f as L,ga as st,h as Nt,k as B,m as nt,ma as Ht,na as Qt,p as ot,q as zt,qa as D,r as Ft,s as jt,ua as Jt,v as at,va as Xt}from"./chunk-TXGVB7MQ.js";import{Ba as p,Da as J,Ga as u,Ha as A,I as bt,Ia as w,J as vt,Ja as O,Ka as i,L as dt,La as e,Lb as Et,Ma as x,Mb as M,Na as St,Oa as Pt,P,Pb as Z,Pd as Wt,Q as ht,Qa as S,Qb as At,Rd as Rt,Sc as Ot,Ta as C,Tb as wt,V as v,Va as d,W as h,Xc as I,Xd as y,Ya as X,Yc as Tt,Za as _t,Zc as V,_a as ut,ab as Mt,bb as It,cb as yt,fb as Dt,ha as F,hb as o,ib as _,ja as r,jb as b,ka as g,kb as j,kc as K,lc as tt,rb as gt,tb as ft,vb as xt,wb as Y,za as c,zd as kt}from"./chunk-GWEXS2NE.js";import"./chunk-RV33I2IG.js";var E=(()=>{let a=class a{constructor(s,l){this.http=s,this.baseUrl=l}getCustomers(){return this.http.get(`${this.baseUrl}api/webapp/practitioner/customers/practitionerCustomers`)}getCustomerDetails(s){return this.http.get(`${this.baseUrl}api/webapp/practitioner/customers/practitionerCustomers/customerDetails/${s}`)}getMedicalRecordPractitioners(s){return this.http.get(`${this.baseUrl}api/webapp/practitioner/customers/practitionerCustomers/medical-record-practitioners/${s}`)}getSections(s,l){let m=l?`${this.baseUrl}api/webapp/practitioner/customers/practitionerCustomers/practitioner-sections/${s}/${l}`:`${this.baseUrl}api/webapp/practitioner/customers/practitionerCustomers/practitioner-sections/${s}`;return this.http.get(m)}getSection(s){return this.http.get(`${this.baseUrl}api/webapp/practitioner/customers/practitionerCustomers/medical-record-section/${s}`)}addSection(s){return this.http.post(`${this.baseUrl}api/webapp/practitioner/customers/practitionerCustomers/add-medical-record-section`,s)}getComment(s){return this.http.get(`${this.baseUrl}api/webapp/practitioner/customers/practitionerCustomers/medical-record-comment/${s}`)}addComment(s){return this.http.post(`${this.baseUrl}api/webapp/practitioner/customers/practitionerCustomers/add-medical-record-comment`,s)}getAssesmentDetails(s){return this.http.get(`${this.baseUrl}api/webapp/practitioner/customers/practitionerCustomers/assessmentDetails/${s}`)}};a.\u0275fac=function(l){return new(l||a)(dt(wt),dt("BASE_URL"))},a.\u0275prov=bt({token:a,factory:a.\u0275fac});let t=a;return t})();var ee=t=>["/app/practitioner/customers/details",t];function ce(t,a){if(t&1&&(i(0,"div",11)(1,"div",15),o(2),e()()),t&2){let n=d().$implicit;r(2),_(n.initials)}}function pe(t,a){if(t&1&&(i(0,"button",13)(1,"mat-icon"),o(2,"chevron_right"),e()()),t&2){let n=d().$implicit;p("routerLink",gt(1,ee,n.id))}}function de(t,a){if(t&1&&(i(0,"button",14),o(1," Dettagli "),e()),t&2){let n=d().$implicit;p("routerLink",gt(1,ee,n.id))}}function _e(t,a){if(t&1&&(i(0,"div",8)(1,"div",10),c(2,ce,3,1,"div",11),i(3,"div",12)(4,"h2"),o(5),e(),i(6,"p")(7,"strong"),o(8,"Email:"),e(),o(9),e(),i(10,"p")(11,"strong"),o(12,"Telefono:"),e(),o(13),e()(),i(14,"div"),c(15,pe,3,3,"button",13)(16,de,2,3,"button",14),e()()()),t&2){let n=a.$implicit,s=d();r(2),u(s.isMobile?-1:2),r(3),b(" ",n.name," "),r(4),b(" ",n.email,""),r(4),b(" ",n.phoneNumber,""),r(2),u(s.isMobile?15:16)}}function ue(t,a){t&1&&(i(0,"div",16),x(1,"mat-progress-spinner",17),e())}var ie=(()=>{let a=class a{constructor(s,l){this.breakpointObserver=s,this.practitionerCustomersService=l,this.subs=new D,this.customersList=[],this.filteredCustomer=[],this.isLoading=!0,this.breakpointObserver.observe([tt.Handset]).subscribe(m=>{this.isMobile=m.matches})}ngOnInit(){this.getCustomers()}ngOnDestroy(){this.subs.unsubscribe()}getCustomers(){this.isLoading=!0,this.subs.sink=this.practitionerCustomersService.getCustomers().subscribe({next:s=>{this.customersList=s,this.filteredCustomer=s,this.isLoading=!1},error:s=>{console.log(s)}})}onSearch(s){let l=s.toLowerCase();this.filteredCustomer=this.customersList.filter(m=>m.name.toLowerCase().includes(l))}};a.\u0275fac=function(l){return new(l||a)(g(K),g(E))}
1,a.\u0275cmp=P({type:a,selectors:[["webapp-practitioner-customer-list"]],decls:22,vars:1,consts:[[1,"page_title"],[1,"page_content"],[1,"inner"],[1,"pwa_form"],[1,"pwa_form_control"],["matInput","","placeholder","Cerca per nome",3,"input"],["matIconSuffix",""],[1,"customer-list"],[1,"customer-card"],["class","spinner-container",4,"ngIf"],[1,"customer"],[1,"customer-image"],[1,"customer-details"],["mat-icon-button","",3,"routerLink"],["mat-stroked-button","","color","accent",3,"routerLink"],[1,"initials"],[1,"spinner-container"],["mode","indeterminate","color","accent"]],template:function(l,m){l&1&&(i(0,"div")(1,"h1",0)(2,"mat-icon"),o(3,"personal_injury"),e(),i(4,"span")(5,"span"),o(6,"Clienti"),e(),i(7,"small"),o(8,"Gestisci i clienti e visualizza i dettagli."),e()()(),i(9,"div",1)(10,"div",2)(11,"div",3)(12,"form")(13,"div",4)(14,"mat-form-field")(15,"input",5),C("input",function(z){return m.onSearch(z.target.value)}),e(),i(16,"mat-icon",6),o(17,"search"),e()()()()(),i(18,"div",7),w(19,_e,17,5,"div",8,A),e(),c(21,ue,2,0,"div",9),e()()()),l&2&&(r(19),O(m.filteredCustomer),r(2),p("ngIf",m.isLoading))},dependencies:[M,B,L,Nt,U,$,st,I,V,y,G,Wt],styles:[`@keyframes _ngcontent-%COMP%_blink-animation{to{visibility:hidden}}@-webkit-keyframes _ngcontent-%COMP%_blink-animation{to{visibility:hidden}}@-webkit-keyframes _ngcontent-%COMP%_rotating{0%{-webkit-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_rotating{0%{-ms-transform:rotate(0deg);-moz-transform:rotate(0deg);-webkit-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}.search-bar[_ngcontent-%COMP%]{margin-top:16px;margin-left:16px;margin-right:16px}mat-form-field[_ngcontent-%COMP%]{width:100%;max-width:400px}mat-expansion-panel[_ngcontent-%COMP%]{box-shadow:none!important;background:none!important}.spinner-container[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;display:flex;align-items:center;justify-content:center}.customer-card[_ngcontent-%COMP%]{box-shadow:none;background-color:#fff;border-radius:8px;border-left:5px solid #bc1543;padding:16px 16px 16px 11px;margin-bottom:1rem}.customer-card[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.customer-card[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%] .customer-image[_ngcontent-%COMP%]{width:80px;height:80px;border-radius:50%;background-color:#e8d2b6;display:flex;align-items:center;justify-content:center;font-size:24px;color:#fff;font-weight:700;text-transform:uppercase;margin-right:1rem}.customer-card[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%] .customer-details[_ngcontent-%COMP%]{flex:1}.customer-card[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%] .customer-details[_ngcontent-%COMP%] > p[_ngcontent-%COMP%] > strong[_ngcontent-%COMP%]{color:#bc1543} 2/*# sourceMappingURL=practitioner-customers.component-QJRBHF74.css.map */`]});let t=a;return t})();function ge(t,a){t&1&&o(0," Modifica Sezione ")}function fe(t,a){t&1&&o(0," Inserisci Sezione ")}function xe(t,a){t&1&&(i(0,"mat-error"),o(1," Inserisci titolo sezione "),e())}function Ce(t,a){t&1&&o(0," Aggiungi ")}function be(t,a){t&1&&o(0," Modifica ")}var ne=(()=>{let a=class a{get id(){return this.form.get("id")}get medicalRecordId(){return this.form.get("medicalRecordId")}get title(){return this.form.get("title")}constructor(s,l,m,f){this.fb=s,this.practitionerCustomersService=l,this.dialogRef=m,this.data=f,this.subs=new D,this.isLoading=!1,this.form=this.fb.group({id:this.fb.control(null),medicalRecordId:this.fb.control(null,[T.required]),title:this.fb.control(null,[T.required])})}ngOnInit(){this.data.sectionId?this.getSingle(this.data.sectionId):this.form.patchValue({medicalRecordId:this.data.medicalRecordId})}onSubmit(){this.isLoading=!0;let s=this.form.value;this.subs.sink=this.practitionerCustomersService.addSection(s).subscribe({next:l=>{this.isLoading=!1,this.dialogRef.close(l)},error:l=>{console.log(l)}})}getSingle(s){this.subs.sink=this.practitionerCustomersService.getSection(s).subscribe({next:l=>{this.form.patchValue(l)},error:l=>{console.log(l)}})}};a.\u0275fac=function(l){return new(l||a)(g(at),g(E),g(q),g(H))}
2,a.\u0275cmp=P({type:a,selectors:[["webapp-add-medical-record-section-dialog"]],decls:23,vars:7,consts:[["mat-dialog-title",""],[1,"dialog-content"],[1,"pwa_form"],[3,"formGroup"],[1,"pwa_form_control"],["type","text","matInput","","placeholder","Titolo","formControlName","title"],["matIconSuffix",""],[4,"ngIf"],[1,"dialog-actions"],["mat-button","","mat-dialog-close",""],["mat-flat-button","","color","accent",3,"click","disabled"]],template:function(l,m){l&1&&(i(0,"h2",0),c(1,ge,1,0)(2,fe,1,0),e(),i(3,"mat-dialog-content",1)(4,"div",2)(5,"form",3)(6,"div",4)(7,"label")(8,"mat-icon"),o(9,"chevron_right"),e(),i(10,"span"),o(11,"Titolo sezione"),e()(),i(12,"mat-form-field"),x(13,"input",5),i(14,"mat-icon",6),o(15,"edit"),e(),c(16,xe,2,0,"mat-error",7),e()()()()(),i(17,"mat-dialog-actions",8)(18,"button",9),o(19,"Chiudi"),e(),i(20,"button",10),C("click",function(){return m.onSubmit()}),c(21,Ce,1,0)(22,be,1,0),e()()),l&2&&(r(),u(m.id.value!=null?1:2),r(4),p("formGroup",m.form),r(11),p("ngIf",m.title.invalid&&(m.title.touched||m.title.dirty)),r(4),J("disabled",m.form.invalid||m.isLoading),p("disabled",m.form.invalid||m.isLoading),r(),u(m.id.value==null?21:22))},dependencies:[M,B,et,it,L,nt,ot,U,rt,$,I,y,k,W,N,R,G]});let t=a;return t})();function ve(t,a){t&1&&o(0," Commento ")}function he(t,a){t&1&&o(0," Modifica Commento ")}function Se(t,a){t&1&&o(0," Inserisci Commento ")}function Pe(t,a){if(t&1&&c(0,he,1,0)(1,Se,1,0),t&2){let n=d();u(n.id.value?0:1)}}function Me(t,a){t&1&&(i(0,"select",5)(1,"option",14),o(2,"Seleziona un'opzione"),e(),i(3,"option",15),o(4,"Pubblico"),e(),i(5,"option",15),o(6,"Privato"),e()()),t&2&&(r(3),p("value",1),r(2),p("value",2))}function Ie(t,a){t&1&&(i(0,"mat-select",6)(1,"mat-option",15),o(2,"Pubblico"),e(),i(3,"mat-option",15),o(4,"Privato"),e()()),t&2&&(r(),p("value",1),r(2),p("value",2))}function ye(t,a){t&1&&(i(0,"mat-error"),o(1," Seleziona tipologia "),e())}function De(t,a){t&1&&(i(0,"mat-error"),o(1," Inserisci titolo commento "),e())}function Ee(t,a){t&1&&(i(0,"mat-error"),o(1," Inserisci testo commento "),e())}function Ae(t,a){t&1&&o(0," Aggiungi ")}function we(t,a){t&1&&o(0," Modifica ")}function Oe(t,a){if(t&1){let n=S();i(0,"button",16),C("click",function(){v(n);let l=d();return h(l.onSubmit())}),c(1,Ae,1,0)(2,we,1,0),e()}if(t&2){let n=d();J("disabled",n.isLoading),p("disabled",n.form.invalid||n.isLoading),r(),u(n.id.value==null?1:2)}}var oe=(()=>{let a=class a{get id(){return this.form.get("id")}get medicalRecordSectionId(){return this.form.get("medicalRecordSectionId")}get commentTypeId(){return this.form.get("commentTypeId")}get title(){return this.form.get("title")}get comment(){return this.form.get("comment")}constructor(s,l,m,f,z){this.fb=s,this.practitionerCustomersService=l,this.dialogRef=m,this.data=f,this.breakpointObserver=z,this.subs=new D,this.readOnly=!1,this.isMobile=!1,this.isLoading=!1,this.form=this.fb.group({id:this.fb.control(null),medicalRecordSectionId:this.fb.control(null,[T.required]),commentTypeId:this.fb.control(null,[T.required]),title:this.fb.control(null,[T.required]),comment:this.fb.control(null,[T.required])}),this.breakpointObserver.observe([tt.Handset]).subscribe(se=>{this.isMobile=se.matches})}ngOnInit(){this.readOnly=this.data.readOnly,this.readOnly&&this.setReadOnly(),this.data.commentId?this.getSingle(this.data.commentId):this.form.patchValue({medicalRecordSectionId:this.data.sectionId})}onSubmit(){this.isLoading=!0;let s=this.form.value;this.subs.sink=this.practitionerCustomersService.addComment(s).subscribe({next:l=>{this.isLoading=!1,this.dialogRef.close(l)},error:l=>{console.log(l)}})}getSingle(s){this.subs.sink=this.practitionerCustomersService.getComment(s).subscribe({next:l=>{this.form.patchValue(l)},error:l=>{console.log(l)}})}setReadOnly(){this.form.disable()}};a.\u0275fac=function(l){return new(l||a)(g(at),g(E),g(q),g(H),g(K))},a.\u0275cmp=P({type:a,selectors:[["webapp-add-medical-record-comment-dialog"]],decls:42,vars:7,consts:[["mat-dialog-title",""],[1,"dialog-content"],[1,"pwa_form"],[3,"formGroup"],[1,"pwa_form_control"],["matNativeControl","","placeholder","Seleziona un'opzione","formControlName","commentTypeId"],["placeholder","Seleziona un'opzione","formControlName","commentTypeId"],["matIconSuffix",""],[4,"ngIf"],["type","text","matInput","","placeholder","Titolo","formControlName","title"],["matInput","","rows","4","formControlName","comment","placeholder","Testo del commento"],[1,"dialog-actions"],["mat-button","","mat-dialog-close",""],["mat-flat-button","","color","accent",3,"disabled"],["value","null","disabled","","selected",""],[3,"value"],["mat-flat-button","","color","accent",3,"click","disabled"]],template:function(l,m){l&1&&(i(0,"h2",0),c(1,ve,1,0)(2,Pe,2,1),e(),i(3,"mat-dialog-content",1)(4,"div",2)(5,"form",3)(6,"div",4)(7,"label")(8,"mat-icon"),o(9,"chevron_right"),e(),i(10,"span"),o(11,"Tipologia commento"),e()(),i(12,"mat-form-field"),c(13,Me,7,2,"select",5)(14,Ie,5,2,"mat-select",6),i(15,"mat-icon",7),o(16,"lock"),e(),c(17,ye,2,0,"mat-error",8),e(
2)(),i(18,"div",4)(19,"label")(20,"mat-icon"),o(21,"chevron_right"),e(),i(22,"span"),o(23,"Titolo commento"),e()(),i(24,"mat-form-field"),x(25,"input",9),i(26,"mat-icon",7),o(27,"edit"),e(),c(28,De,2,0,"mat-error",8),e()(),i(29,"div",4)(30,"label")(31,"mat-icon"),o(32,"chevron_right"),e(),i(33,"span"),o(34,"Testo commento"),e()(),i(35,"mat-form-field"),x(36,"textarea",10),c(37,Ee,2,0,"mat-error",8),e()()()()(),i(38,"mat-dialog-actions",11)(39,"button",12),o(40,"Chiudi"),e(),c(41,Oe,3,4,"button",13),e()),l&2&&(r(),u(m.readOnly?1:2),r(4),p("formGroup",m.form),r(8),u(m.isMobile?13:14),r(4),p("ngIf",m.commentTypeId.invalid),r(11),p("ngIf",m.title.invalid&&(m.title.touched||m.title.dirty)),r(9),p("ngIf",m.comment.invalid&&(m.comment.touched||m.comment.dirty)),r(4),u(m.readOnly?-1:41))},dependencies:[M,B,Ft,jt,et,zt,it,L,nt,ot,U,rt,$,qt,Ot,I,y,k,W,N,R,G]});let t=a;return t})();function Te(t,a){t&1&&(i(0,"mat-icon",15),o(1,"person"),e())}function ke(t,a){if(t&1&&x(0,"img",16),t&2){let n=d().$implicit;X("alt",n.name),p("src",n.profileImageUrl,F)}}function We(t,a){t&1&&x(0,"span",17)}function Re(t,a){if(t&1&&(i(0,"mat-list-option",10)(1,"div",11),c(2,Te,2,0,"mat-icon",12)(3,ke,1,2,"img",13),i(4,"div")(5,"div")(6,"strong"),o(7),e(),c(8,We,1,0,"span",14),e(),i(9,"small"),o(10),e()()()()),t&2){let n=a.$implicit,s=d(2);p("value",n)("selected",n===s.selectedPractitioner),r(2),p("ngIf",!n.profileImageUrl),r(),p("ngIf",n.profileImageUrl),r(4),_(n.name),r(),p("ngIf",n.active),r(2),_(n.specialization)}}function Ne(t,a){if(t&1){let n=S();i(0,"div")(1,"mat-selection-list",8),C("selectionChange",function(l){v(n);let m=d();return h(m.onSelect(l))}),c(2,Re,11,7,"mat-list-option",9),e()()}if(t&2){let n=d();r(),p("multiple",!1),r(),p("ngForOf",n.data.practitioners)}}function ze(t,a){t&1&&(i(0,"p"),o(1,"Nessun professionista disponibile."),e())}var ae=(()=>{let a=class a{constructor(s,l){this.dialogRef=s,this.data=l,this.subs=new D,this.selectedPractitioner=null}ngOnInit(){this.data.selectedPractitioner!=null&&(this.selectedPractitioner=this.data.selectedPractitioner)}onSelect(s){let l=s.source.selectedOptions.selected;l.length>0?this.selectedPractitioner=l[0].value:this.selectedPractitioner=null}onConfirm(){this.dialogRef.close(this.selectedPractitioner)}onCancel(){this.dialogRef.close(null)}onReset(){this.selectedPractitioner=null,this.dialogRef.close(null)}};a.\u0275fac=function(l){return new(l||a)(g(q),g(H))},a.\u0275cmp=P({type:a,selectors:[["webapp-select-practitioner-dialog"]],decls:16,vars:3,consts:[["noPractitioners",""],["mat-dialog-title","",1,"dialog-title"],["mat-icon-button","",3,"click"],[4,"ngIf","ngIfElse"],[1,"dialog-actions"],["type","button","mat-dialog-close","","mat-button",""],["mat-flat-button","","color","accent",3,"click","disabled"],[1,"mr-2"],[3,"selectionChange","multiple"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"],[1,"practitioner-item"],["matListIcon","",4,"ngIf"],["class","avatar",3,"src","alt",4,"ngIf"],["class","status-indicator",4,"ngIf"],["matListIcon",""],[1,"avatar",3,"src","alt"],[1,"status-indicator"]],template:function(l,m){if(l&1){let f=S();i(0,"h2",1),o(1," Professionista "),i(2,"button",2),C("click",function(){return v(f),h(m.onReset())}),i(3,"mat-icon"),o(4,"restart_alt"),e()()(),i(5,"mat-dialog-content"),c(6,Ne,3,2,"div",3)(7,ze,2,0,"ng-template",null,0,Y),e(),i(9,"mat-dialog-actions",4)(10,"button",5),o(11," Annulla "),e(),i(12,"button",6),C("click",function(){return v(f),h(m.onConfirm())}),i(13,"mat-icon",7),o(14,"done"),e(),o(15," Conferma "),e()()}if(l&2){let f=Dt(8);r(6),p("ngIf",m.data.practitioners.length>0)("ngIfElse",f),r(6),p("disabled",!m.selectedPractitioner)}},dependencies:[Et,M,I,V,y,k,W,N,R,Gt,Ut],styles:[`@keyframes _ngcontent-%COMP%_blink-animation{to{visibility:hidden}}@-webkit-keyframes _ngcontent-%COMP%_blink-animation{to{visibility:hidden}}@-webkit-keyframes _ngcontent-%COMP%_rotating{0%{-webkit-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_rotating{0%{-ms-transform:rotate(0deg);-moz-transform:rotate(0deg);-webkit-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}.practitioner-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;padding:8px 0}
2.avatar[_ngcontent-%COMP%]{width:35px;height:35px;border-radius:50%;object-fit:cover;flex-shrink:0;border:2px solid #ddd}.default-avatar[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background-color:#f5f5f5;color:#888;font-size:8px}.practitioner-details[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;overflow:hidden}.practitioner-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:2px}.practitioner-name[_ngcontent-%COMP%]{font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 20px)}.status-indicator[_ngcontent-%COMP%]{display:inline-block;width:10px;height:10px;border-radius:50%;margin-left:8px;vertical-align:middle;background-color:green}.practitioner-specialization[_ngcontent-%COMP%]{font-size:12px;color:#666} .mdc-list-item--with-trailing-radio .mdc-list-item__end, .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin:0!important;padding:0} 3/*# sourceMappingURL=select-practitioner-dialog.component-YFZOSI6Q.css.map */`]});let t=a;return t})();var Fe=["practitionerDialogTemplate"];function je(t,a){if(t&1&&(i(0,"span"),o(1),e()),t&2){let n=d();r(),j("",n.customer.medicalRecord.firstName," ",n.customer.medicalRecord.lastName,"")}}function Ve(t,a){if(t&1){let n=S();i(0,"button",30),C("click",function(l){v(n);let m=d(2).$implicit;return d(2).onAddSection(m.sectionId),h(l.stopPropagation())}),i(1,"mat-icon"),o(2,"edit"),e()()}}function Le(t,a){if(t&1&&c(0,Ve,3,0,"button",29),t&2){let n=d(3);u(n.selectedPractitioner?-1:0)}}function Be(t,a){t&1&&(i(0,"mat-icon"),o(1,"lock"),e())}function $e(t,a){if(t&1){let n=S();i(0,"div",32),C("click",function(){let l=v(n).$implicit,m=d(2).$implicit,f=d(2);return h(f.onAddComment(m.sectionId,l.id))}),i(1,"div",33)(2,"span",34),o(3),e()(),i(4,"div",35)(5,"p"),o(6),e()(),i(7,"div",36)(8,"span",37),o(9),ft(10,"date"),e(),c(11,Be,2,0,"mat-icon"),e()()}if(t&2){let n=a.$implicit;r(3),b(" ",n.title," "),r(3),_(n.comment),r(3),_(xt(10,4,n.insertDate,"dd/MM/yyyy")),r(2),u(n.type=="Privato"?11:-1)}}function Ue(t,a){if(t&1&&w(0,$e,12,7,"div",31,A),t&2){let n=d().$implicit;O(n.comments)}}function Ge(t,a){t&1&&(i(0,"p"),o(1,"Nessun commento inserito"),e())}
3function qe(t,a){if(t&1){let n=S();i(0,"div",28)(1,"p",38),o(2,"Aggiungi un commento"),e(),i(3,"button",39),C("click",function(){v(n);let l=d().$implicit,m=d(2);return h(m.onAddComment(l.sectionId))}),i(4,"mat-icon"),o(5,"add"),e()()()}}function He(t,a){if(t&1&&(i(0,"mat-expansion-panel",17)(1,"mat-expansion-panel-header",11)(2,"div",26)(3,"span",12),o(4),e(),c(5,Le,1,1),e()(),i(6,"div")(7,"div",27),c(8,Ue,2,0)(9,Ge,2,0,"p"),e(),c(10,qe,6,0,"div",28),e()()),t&2){let n=a.$implicit,s=d(2);r(4),_(n.sectionTitle),r(),u(n.sectionTypeId!=2?5:-1),r(3),u(n.comments.length>0?8:9),r(2),u(s.selectedPractitioner?-1:10)}}function Qe(t,a){if(t&1){let n=S();i(0,"div",18)(1,"p",40),o(2,"Aggiungi una sezione"),e(),i(3,"button",41),C("click",function(){v(n);let l=d(2);return h(l.onAddSection())}),i(4,"mat-icon"),o(5,"add"),e()()()}}function Je(t,a){t&1&&(i(0,"mat-icon"),o(1,"switch_account"),e())}function Xe(t,a){if(t&1&&x(0,"img",20),t&2){let n=d(3);X("alt",n.selectedPractitioner.name),p("src",n.selectedPractitioner.profileImageUrl,F)}}function Ye(t,a){if(t&1&&c(0,Xe,1,2,"img",42),t&2){let n=d(2);p("ngIf",n.selectedPractitioner.profileImageUrl)}}function Ze(t,a){if(t&1&&(i(0,"div",14)(1,"span",15),o(2,"Numero di figli:"),e(),i(3,"span",16),o(4),e()()),t&2){let n=d(3);r(4),_(n.assessmentDetails.childrenCount)}}function Ke(t,a){if(t&1&&(i(0,"div",43)(1,"span",15),o(2,"Note situazione familiare:"),e(),i(3,"span",16),o(4),e()()),t&2){let n=d(3);r(4),_(n.assessmentDetails.familyStatusNote)}}function ti(t,a){if(t&1&&(i(0,"div",14)(1,"span",15),o(2,"Specifica occupazione:"),e(),i(3,"span",16),o(4),e()()),t&2){let n=d(3);r(4),_(n.assessmentDetails.otherOccupation)}}function ei(t,a){t&1&&(i(0,"span",16),o(1,"1 - Molto insoddisfatto"),e())}function ii(t,a){t&1&&(i(0,"span",16),o(1,"2 - Insoddisfatto"),e())}function ni(t,a){t&1&&(i(0,"span",16),o(1,"3 - Neutrale"),e())}function oi(t,a){t&1&&(i(0,"span",16),o(1,"4 - Soddisfatto"),e())}function ai(t,a){t&1&&(i(0,"span",16),o(1,"5 - Molto soddisfatto"),e())}function ri(t,a){t&1&&(St(0),o(1,":"),Pt())}function si(t,a){if(t&1&&(i(0,"div",43)(1,"span",15),o(2),c(3,ri,2,0,"ng-container",46),e(),i(4,"span",16),o(5),e()()),t&2){let n=a.$implicit;r(2),_(n.distressName),r(),p("ngIf",n.distressNote),r(2),_(n.distressNote)}}function li(t,a){if(t&1&&(i(0,"div",43)(1,"span",15),o(2,"Altre forme di disagio:"),e(),i(3,"span",16),o(4),e()()),t&2){let n=d(3);r(4),_(n.assessmentDetails.otherDistressNote)}}function mi(t,a){t&1&&(i(0,"span",16),o(1,"Si"),e())}function ci(t,a){t&1&&(i(0,"span",16),o(1,"No"),e())}function pi(t,a){t&1&&(i(0,"span",16),o(1,"Perso"),e())}function di(t,a){t&1&&(i(0,"span",16),o(1,"Guadagnato"),e())}function _i(t,a){if(t&1&&(i(0,"div",14)(1,"span",15),o(2,"Perso o guadagnato:"),e(),c(3,pi,2,0,"span",44)(4,di,2,0,"span",44),e(),i(5,"div",14)(6,"span",15),o(7,"Quanto:"),e(),i(8,"span",16),o(9),e()()),t&2){let n=d(3);r(3),p("ngIf",n.assessmentDetails.weightChangeDirection==1),r(),p("ngIf",n.assessmentDetails.weightChangeDirection==2),r(5),_(n.assessmentDetails.weightChangeAmount)}}function ui(t,a){t&1&&(i(0,"span",16),o(1,"S\xEC"),e())}function gi(t,a){t&1&&(i(0,"span",16),o(1,"No"),e())}function fi(t,a){if(t&1&&(i(0,"div",43)(1,"span",15),o(2),e(),i(3,"span",16),o(4),e()()),t&2){let n=a.$implicit;r(2),b("",n.activityName,":"),r(2),_(n.activityFrequencyName)}}function xi(t,a){if(t&1&&w(0,fi,5,2,"div",43,A),t&2){let n=d(3);O(n.assessmentDetails.sportActivities)}}function Ci(t,a){if(t&1&&(i(0,"div",43)(1,"span",15),o(2,"Problemi fisici:"),e(),i(3,"span",16),o(4),e()()),t&2){let n=d(3);r(4),_(n.assessmentDetails.sportActivityProblems)}}function bi(t,a){if(t&1&&(i(0,"div",14)(1,"span",15),o(2,"Cigarette al giorno:"),e(),i(3,"span",16),o(4),e()()),t&2){let n=d(4);r(4),_(n.assessmentDetails.cigarettesRangeName)}}function vi(t,a){if(t&1&&(i(0,"div",14)(1,"span",15),o(2,"Unit\xE0 di alcol alla settimana:"),e(),i(3,"span",16),o(4),e()()),t&2){let n=d(4);r(4),_(n.assessmentDetails.alcoolRangeName)}}function hi(t,a){if(t&1&&(i(0,"div",43)(1,"span",15),o(2,"Breve descrizione:"),e(),i(3,"span",16),o(4),e()()),t&2){let n=d(4);r(4),_(n.assessmentDetails.leisureNote)}}function Si(t,a){if(t&1&&(i(0,"mat-expansion-panel",17)(1,"mat-expansion-panel-header",11)(2,"
3span",12),o(3,"Stile di vita"),e()(),i(4,"div",13),c(5,bi,5,1,"div",14)(6,vi,5,1,"div",14)(7,hi,5,1,"div",43),e()()),t&2){let n=d(3);r(5),u(n.assessmentDetails.cigarettesRangeId?5:-1),r(),u(n.assessmentDetails.alcoolRangeId?6:-1),r(),u(n.assessmentDetails.leisureNote?7:-1)}}function Pi(t,a){if(t&1&&(i(0,"div",43)(1,"span",15),o(2),e(),i(3,"span",16),o(4),x(5,"br"),o(6),e()()),t&2){let n=a.$implicit;r(2),b("",n.distressName,":"),r(2),b(" Insorto nel: ",n.distressAroseDate," "),r(2),b(" Imputa il disagio a: ",n.distressCauses," ")}}function Mi(t,a){if(t&1&&(i(0,"div",43)(1,"span",15),o(2,"Soluzione tentate:"),e(),i(3,"span",16),o(4),e()()),t&2){let n=d(3);r(4),_(n.assessmentDetails.distressSolutionTried)}}function Ii(t,a){if(t&1&&(i(0,"div",8)(1,"mat-accordion",9)(2,"mat-expansion-panel",10)(3,"mat-expansion-panel-header",11)(4,"span",12),o(5,"Situazione familiare"),e()(),i(6,"div",13)(7,"div",14)(8,"span",15),o(9,"Condizione familiare:"),e(),i(10,"span",16),o(11),e()(),i(12,"div",14)(13,"span",15),o(14,"Con chi vive:"),e(),i(15,"span",16),o(16),e()(),i(17,"div",14)(18,"span",15),o(19,"Ha figli:"),e(),i(20,"span",16),o(21),e()(),c(22,Ze,5,1,"div",14)(23,Ke,5,1,"div",43),e()(),i(24,"mat-expansion-panel",17)(25,"mat-expansion-panel-header",11)(26,"span",12),o(27,"Situazione professionale"),e()(),i(28,"div",13)(29,"div",14)(30,"span",15),o(31,"Occupazione:"),e(),i(32,"span",16),o(33),e()(),c(34,ti,5,1,"div",14),i(35,"div",14)(36,"span",15),o(37,"Grado soddisfazione:"),e(),c(38,ei,2,0,"span",44)(39,ii,2,0,"span",44)(40,ni,2,0,"span",44)(41,oi,2,0,"span",44)(42,ai,2,0,"span",44),e(),i(43,"div",43)(44,"span",15),o(45,"Obiettivi a medio termine:"),e(),i(46,"span",16),o(47),e()()()(),i(48,"mat-expansion-panel",17)(49,"mat-expansion-panel-header",11)(50,"span",12),o(51,"Stato emotivo"),e()(),i(52,"div",13),w(53,si,6,3,"div",43,A),c(55,li,5,1,"div",43),e()(),i(56,"mat-expansion-panel",17)(57,"mat-expansion-panel-header",11)(58,"span",12),o(59,"Stato fisico"),e()(),i(60,"div",13)(61,"div",14)(62,"span",15),o(63,"Peso:"),e(),i(64,"span",16),o(65),e()(),i(66,"div",14)(67,"span",15),o(68,"Altezza:"),e(),i(69,"span",16),o(70),e()(),i(71,"div",14)(72,"span",15),o(73,"BMI:"),e(),i(74,"span",16),o(75),e()(),i(76,"div",14)(77,"span",15),o(78,"Perso/Preso peso ultimi 3 mesi:"),e(),c(79,mi,2,0,"span",44)(80,ci,2,0,"span",44),e(),c(81,_i,10,3),i(82,"div",14)(83,"span",15),o(84,"Fa sport:"),e(
3),c(85,ui,2,0,"span",44)(86,gi,2,0,"span",44),e(),c(87,xi,2,0)(88,Ci,5,1,"div",43),e()(),c(89,Si,8,3,"mat-expansion-panel",45),i(90,"mat-expansion-panel",17)(91,"mat-expansion-panel-header",11)(92,"span",12),o(93,"Motivo supporto"),e()(),i(94,"div",13),w(95,Pi,7,3,"div",43,A),i(97,"div",43)(98,"span",15),o(99,"Obiettivi:"),e(),i(100,"span",16),o(101),e()(),c(102,Mi,5,1,"div",43),e()()()()),t&2){let n=d(2);r(11),_(n.assessmentDetails.familyStatusName),r(5),_(n.assessmentDetails.livingSituationName),r(5),_(n.assessmentDetails.hasChild==!0?"S\xEC":"No"),r(),u(n.assessmentDetails.hasChild?22:-1),r(),u(n.assessmentDetails.familyStatusNote?23:-1),r(10),_(n.assessmentDetails.occupationName),r(),u(n.assessmentDetails.occupationId==21?34:-1),r(4),p("ngIf",n.assessmentDetails.occupationSatisfaction==1),r(),p("ngIf",n.assessmentDetails.occupationSatisfaction==2),r(),p("ngIf",n.assessmentDetails.occupationSatisfaction==3),r(),p("ngIf",n.assessmentDetails.occupationSatisfaction==4),r(),p("ngIf",n.assessmentDetails.occupationSatisfaction==5),r(5),_(n.assessmentDetails.occupationGoals),r(6),O(n.assessmentDetails.distressList),r(2),u(n.assessmentDetails.otherDistressNote?55:-1),r(10),b("",n.assessmentDetails.weight," kg"),r(5),b("",n.assessmentDetails.height," cm"),r(5),_(n.assessmentDetails.bmi),r(4),p("ngIf",n.assessmentDetails.lostTakenWeight),r(),p("ngIf",!n.assessmentDetails.lostTakenWeight),r(),u(n.assessmentDetails.lostTakenWeight?81:-1),r(4),p("ngIf",n.assessmentDetails.sport),r(),p("ngIf",!n.assessmentDetails.sport),r(),u(n.assessmentDetails.sport?87:-1),r(),u(n.assessmentDetails.sportActivityProblems?88:-1),r(),p("ngIf",n.assessmentDetails.cigarettesRangeId||n.assessmentDetails.alcoolRangeId||n.assessmentDetails.leisureNote),r(6),O(n.assessmentDetails.requiredDistress),r(6),_(n.assessmentDetails.supportGoalsNote),r(),u(n.assessmentDetails.distressSolutionTried?102:-1)}}function yi(t,a){if(t&1){let n=S();i(0,"li")(1,"div",48)(2,"div",49),x(3,"img",50),e(),i(4,"div",51)(5,"h2"),o(6),e(),i(7,"p"),o(8),e()(),i(9,"button",52),C("click",function(){let l=v(n).$implicit,m=d(4);return h(m.showPractitionerDialog(l))}),o(10," Biografia "),e()()()}if(t&2){let n=a.$implicit;r(3),_t("src","",n.profileImageUrl,"?width=180&height=180&quality=80",F),ut("alt","",n.firstName,"_",n.lastName,"_profileImage"),r(3),j("",n.firstName," ",n.lastName,""),r(2),_(n.specialization)}}function Di(t,a){if(t&1&&w(0,yi,11,8,"li",null,A),t&2){let n=d(3);O(n.customer.equipe)}}function Ei(t,a){if(t&1&&(i(0,"ul",47),c(1,Di,2,0),e()),t&2){let n=d(2);r(),u(n.practitioners.length>0?1:-1)}}function Ai(t,a){t&1&&(i(0,"div",53),x(1,"img",54),i(2,"p"),o(3,"Nessun professionista assegnato"),e()())}function wi(t,a){if(t&1){let n=S();i(0,"mat-tab-group",6)(1,"mat-tab",7)(2,"div",8)(3,"mat-accordion",9)(4,"mat-expansion-panel",10)(5,"mat-expansion-panel-header",11)(6,"span",12),o(7,"Anagrafica"),e()(),i(8,"div",13)(9,"div",14)(10,"span",15),o(11,"Nome:"),e(),i(12,"span",16),o(13),e()(),i(14,"div",14)(15,"span",15),o(16,"Cognome:"),e(),i(17,"span",16),o(18),e()(),i(19,"div",14)(20,"span",15),o(21,"Sesso:"),e(),i(22,"span",16),o(23),e()(),i(24,"div",14)(25,"span",15),o(26,"Data Nascita:"),e(),i(27,"span",16),o(28),ft(29,"date"),e()(),i(30,"div",14)(31,"span",15),o(32,"Altezza:"),e(),i(33,"span",16),o(34),e()(),i(35,"div",14)(36,"span",15),o(37,"Peso:"),e(),i(38,"span",16),o(39),e()(),i(40,"div",14)(41,"span",15),o(42,"BMI:"),e(),i(43,"span",16),o(44),e()(),i(45,"div",14)(46,"span",15),o(47,"Email:"),e(),i(48,"span",16),o(49),e()(),i(50,"div",14)(51,"span",15),o(52,"Numero di telefono:"),e(),i(53,"span",16),o(54),e()(),i(55,"div",14)(56,"span",15),o(57,"Indirizzo residenza:"),e(),i(58,"span",16),o(59),e()()()(),w(60,He,11,4,"mat-expansion-panel",17,A),e(),c(62,Qe,6,0,"div",18),e(),i(63,"button",19),C("click",function(){v(n);let l=d();return h(l.onSelectPractitioner())}),c(64,Je,2,0,"mat-icon")(65,Ye,1,1,"img",20),e()(),i(66,"mat-tab",21),c(67,Ii,103,27,"div",22),e(),i(68,"mat-tab",23)(69,"div",8),c(70,Ei,2,1,"ul",24)(71,Ai,4,0,"div",25),e()()()}if(t&2){let n=d();r(13),_(n.customer.medicalRecord.firstName),r(5),_(n.customer.medicalRecord.lastName),r(5),_(n.customer.medicalRecord.gender),r(5),j("",xt(29,17,n.customer.medicalRecord.birthDate,"dd/MM/yyyy")," (",n.customer.medicalRecord.years," anni)"),r(6),b("",n.customer.medicalRecord.height," cm"),r(5),b("",n.customer.medicalRecord.weight," kg"),r(5),j("",n.customer.medicalRecord.bmi," (",n.getBMIDescription(n.
3customer.medicalRecord.bmi),")"),r(5),_(n.customer.medicalRecord.email),r(5),_(n.customer.medicalRecord.phoneNumber),r(5),_(n.customer.medicalRecord.residenceAddress),r(),O(n.sections),r(2),u(n.selectedPractitioner?-1:62),r(2),u(n.selectedPractitioner?65:64),r(3),p("ngIf",n.assessmentDetails),r(3),p("ngIf",!n.isLoading),r(),p("ngIf",!n.isLoading&&n.practitioners.length===0)}}function Oi(t,a){t&1&&(i(0,"div",55),x(1,"mat-progress-spinner",56),e())}function Ti(t,a){if(t&1&&(i(0,"div",57)(1,"div",58),x(2,"img",50),i(3,"div",59),o(4),i(5,"small"),o(6),e()()(),i(7,"div",60),o(8),e(),i(9,"div",61)(10,"button",62),o(11,"Chiudi"),e()()()),t&2){let n=d();r(2),_t("src","",n.focusPractitioner.profileImageUrl,"?width=100&height=100&quality=80",F),ut("alt","",n.focusPractitioner.firstName,"_",n.focusPractitioner.lastName,"_profileImage"),r(2),j(" ",n.focusPractitioner.firstName," ",n.focusPractitioner.lastName," "),r(2),_(n.focusPractitioner.specialization),r(2),b(" ",n.focusPractitioner.bio," ")}}var re=(()=>{let a=class a{constructor(s,l,m){this.dialog=s,this.practitionerCustomersService=l,this.pcodeService=m,this.subs=new D,this.isLoading=!0,this.sections=[],this.practitioners=[]}ngOnInit(){this.getSingle()}ngOnDestroy(){this.subs.unsubscribe()}getSingle(){this.isLoading=!0,this.subs.sink=this.practitionerCustomersService.getCustomerDetails(this.customerId).subscribe({next:s=>{this.customer=s,this.medicalRecordId=s.medicalRecord.id,this.getSections(),this.getPractitioners(),this.getAssessment(),this.isLoading=!1},error:s=>{console.log(s)}})}getAssessment(){this.subs.sink=this.practitionerCustomersService.getAssesmentDetails(this.customerId).subscribe({next:s=>{this.assessmentDetails=s},error:s=>{console.log(s)}})}getPractitioners(){this.subs.sink=this.practitionerCustomersService.getMedicalRecordPractitioners(this.medicalRecordId).subscribe({next:s=>{this.practitioners=s},error:s=>{console.log(s)}})}getSections(s){this.subs.sink=this.practitionerCustomersService.getSections(this.medicalRecordId,s).subscribe({next:l=>{this.sections=l},error:l=>{console.log(l)}})}onAddSection(s){let l=this.pcodeService.openAppDialog(ne,{medicalRecordId:this.customer.medicalRecord.id,sectionId:s}).afterClosed().subscribe(m=>{this.getSections()})}onAddComment(s,l){var m=this.selectedPractitioner!=null;let f=this.pcodeService.openAppDialog(oe,{sectionId:s,commentId:l,readOnly:m}).afterClosed().subscribe(z=>{this.getSections()})}onSelectPractitioner(){let s=this.pcodeService.openAppDialog(ae,{practitioners:this.practitioners,selectedPractitioner:this.selectedPractitioner}).afterClosed().subscribe(l=>{this.selectedPractitioner=l,this.getSections(this.selectedPractitioner!=null?this.selectedPractitioner.id:null)})}getBMIDescription(s){return s<18.5?"Sottopeso":s>=18.5&&s<=24.9?"Normopeso":s>=25&&s<=29.9?"Sovrappeso":"Obesit\xE0"}toggleCard(s){s.isExpanded=!s.isExpanded}showPractitionerDialog(s){this.focusPractitioner=s,this.dialog.open(this.practitionerDialogTemplate,{width:"600px",maxWidth:"90vw",maxHeight:"90%",backdropClass:"pwa-dialog-overlay-wrapper",panelClass:"pwa-dialog-panel",disableClose:!1,autoFocus:!1,scrollStrategy:new kt})}};a.\u0275fac=function(l){return new(l||a)(g(Vt),g(E),g(Jt))},a.\u0275cmp=P({type:a,selectors:[["webapp-practitioner-customers-details"]],viewQuery:function(l,m){if(l&1&&Mt(Fe,5),l&2){let f;It(f=yt())&&(m.practitionerDialogTemplate=f.first)}},inputs:{customerId:"customerId"},decls:14,vars:3,consts:[["practitionerDialogTemplate",""],[1,"page_title"],[1,"page_content"],[1,"inner"],["class","tabs mb-12","mat-stretch-tabs","",4,"ngIf"],["class","spinner-container",4,"ngIf"],["mat-stretch-tabs","",1,"tabs","mb-12"],["label","Note di Percorso"],[1,"tab-content"],[1,"custom-accordion"],["expanded","",1,"custom-panel"],[1,"custom-panel-header"],[1,"header-title"],[1,"info-container"],[1,"info-row"],[1,"label"],[1,"value"],[1,"custom-panel"],[1,"add-section-container"],["mat-fab","","color","accent",1,"switch-button",3,"click"],[1,"avatar",3,"src","alt"],["label","Assessment"],["class","tab-content",4,"ngIf"],["label","Equipe"],["class","practitioner-list",4,"ngIf"],["class","empty-page",4,"ngIf"],[1,"header-content"],[1,"comments-list"],[1,"add-comment-container"],["mat-icon-button","",1,"edit-icon"],["mat-icon-button","",1,"edit-icon",3,"click"],[1,"comment-item"],[1,"comment-item",3,"click"],[1,"comment-header"],[1,"comment-title"],[1,"comment-body"],[1,"comment-footer"],[1,"comment-date"],[1,"add-comment-text"],["mat-icon-button","","color","primary",1,"add-comment-button",3,"click"],[1,"add-section-text"],["mat-icon-button","","color","accent",1,"add-section-button",3,"click"],["class","avatar",3,"src","alt",4,"ngIf"],[1,"info-row","info-row--note"],["class","value",4,"ngIf"],["class","custom-panel",4,"ngIf"],[4,"ngIf"],[1,"practitioner-list"],[1,"practitioner"],[1,"practitioner-image"],[3,"src","alt"],[1,"practitioner-details"],["mat-flat-button","","color","accent",1,"mt-4",3,"click"],[1,"empty-page"],["src","/assets/img/web/customer-practitioners-empty.svg"],[1,"spinner-container"],["mode","indeterminate","color","accent"],[1,"practitioner_dialog"],["mat-dialog-title",""],[1,"practitioner_dialog_title"],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-button","","mat-dialog-close","",1,"flex-none"]],template:function(l,m){l&1&&(i(0,"div")(1,"h1",1)(2,"mat-icon"),o(3,"personal_injury"),e(),i(4,"span"),c(5,je,2,2,"span"),i(6,"small"),o(7,"Note di Percorso e equipe a portata di mano."),e()()(),i(8,"div",2)(9,"div",3),c(10,wi,72,20,"mat-tab-group",4)(11,Oi,2,0,"div",5),e()()(),c(12,Ti,12,9,"ng-template",null,0,Y)),l&2&&(r(5),u(m.customer?5:-1),r(5),p("ngIf",!m.isLoading),r(),p("ngIf",m.isLoading))},dependencies:[M,st,I,V,Tt,y,$t,Lt,Bt,k,W,N,R,Ht,Qt,Z],styles:[`@keyframes _ngcontent-%COMP%_blink-animation{to{visibility:hidden}}@-webkit-keyframes _ngcontent-%COMP%_blink-animation{to{visibility:hidden}}@-webkit-keyframes _ngcontent-%COMP%_rotating{0%{-webkit-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_rotating{0%{-ms-transform:rotate(0deg);-moz-transform:rotate(0deg);-webkit-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@media (max-width: 767px){.inner[_ngcontent-%COMP%]{padding:0 0 15px!important}}.tab-content[_ngcontent-%COMP%]{margin-top:12px;margin-bottom:20px}mat-expansion-panel[_ngcontent-%COMP%]{box-shadow:none!important;background:none!important}.custom-accordion[_ngcontent-%COMP%]{background:none;box-shadow:none;border:none}.custom-panel[_ngcontent-%COMP%]{background:none;box-shadow:none!important;margin:0;border-bottom:1px solid #e0e0e0}.custom-panel-header[_ngcontent-%COMP%]{padding:0 16px;background:none;border:none;box-shadow:none;font-size:16px;display:flex;align-items:center;justify-content:space-between;width:100%}.custom-panel[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:100%}.custom-panel[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{flex:1;font-weight:700}.custom-panel[_ngcontent-%COMP%] .edit-icon[_ngcontent-%COMP%]{margin-left:auto;cursor:pointer}.custom-panel[_ngcontent-%COMP%] .mat-expansion-panel-body{padding:0 15px 15px;background:none;box-shadow:none}.info-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;font-size:14px}.info-container-vertical[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;font-size:14px}.info-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:4px 0;border-bottom:1px solid #e0e0e0}.info-row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:700;color:#555;flex:1}.info-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{color:#333;text-align:right;flex:2}.info-row.info-row--note[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;justify-content:flex-start}.info-row.info-row--note[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{text-align:left}.info-row[_ngcontent-%COMP%]:last-child{border-bottom:none}.info-container-vertical[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:700;color:#555;text-align:left}.info-container-vertical[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{color:#333;text-align:left}.info-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;padding:8px 0;border-bottom:1px solid #e0e0e0}.info-item[_ngcontent-%COMP%]:last-child{border-bottom:none}.add-section-container[_ngcontent-%COMP%]{border:2px dashed #ccc;margin:16px 12px 12px;padding:16px;text-align:center;border-radius:8px}.add-section-text[_ngcontent-%COMP%]{font-size:16px;margin-bottom:8px;color:#666}.add-section-button[_ngcontent-%COMP%]{background-color:#bc1543;color:#fff;border-radius:50%;width:48px;height:48px;display:inline-flex;justify-content:center;align-items:center;padding:0}.add-comment-container[_ngcontent-%COMP%]{border:2px dashed #ccc;margin:16px 12px 12px;padding:16px;text-align:center;border-radius:8px}.add-comment-text[_ngcontent-%COMP%]{font-size:16px;margin-bottom:8px;color:#666}.add-comment-button[_ngcontent-%COMP%]{background-color:#e8d2b6;color:#fff;border-radius:50%;width:48px;height:48px;display:inline-flex;justify-content:center;align-items:center;padding:0}.comment-list[_ngcontent-%COMP%]{margin-top:8px;display:flex;flex-direction:column;gap:12px}.comment-item[_ngcontent-%COMP%]{margin-top:8px;border:1px solid #ccc;padding:12px;border-radius:8px;background-color:#f9f9f9}.comment-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-weight:700;margin-bottom:8px}.comment-type[_ngcontent-%COMP%]{font-size:12px;display:flex;align-items:center;color:#5d8295}.comment-body[_ngcontent-%COMP%]{margin-bottom:8px;font-size:14px;color:#333}.comment-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;text-align:right;font-size:12px;color:#666}.switch-button[_ngcontent-%COMP%]{position:fixed;bottom:calc(20px + var(--bottom-nav-height));right:16px;z-index:1000;width:70px;height:70px;background-color:#5d8295;display:flex;justify-content:center;align-items:center;font-size:24px}
3.avatar[_ngcontent-%COMP%]{width:45px;height:45px;border-radius:50%;object-fit:cover;flex-shrink:0;border:2px solid #ddd}.email-icon[_ngcontent-%COMP%]{display:none;font-size:1.2rem;margin-right:8px;vertical-align:middle}.spinner-container[_ngcontent-%COMP%]{margin-top:40px;display:flex;align-items:center;justify-content:center}@media (min-width: 768px) and (max-width: 1024px){.page_title[_ngcontent-%COMP%]{margin-bottom:0;padding-bottom:0;line-height:1}.page_title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{text-align:left;display:block}.page_title[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{display:block;margin-top:10px}mat-tab-group.tabs[_ngcontent-%COMP%]{background-color:#fff;margin-top:0}mat-tab-group[_ngcontent-%COMP%]{border-radius:0 0 10px 10px;margin-top:0;padding-top:0}}.practitioner-list[_ngcontent-%COMP%]{display:flex;list-style:none;align-items:center;justify-content:flex-start;margin:25px 0 0;padding:0}.practitioner-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{display:block;margin:0 30px 30px 0;text-align:center}.practitioner-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] .practitioner[_ngcontent-%COMP%] .practitioner-image[_ngcontent-%COMP%]{display:block;margin:0 auto 15px;width:180px;height:180px;border-radius:50%;overflow:hidden}.practitioner-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] .practitioner[_ngcontent-%COMP%] .practitioner-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}@media (max-width: 767px){.practitioner-list[_ngcontent-%COMP%]{flex-direction:column}.practitioner-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{margin:0 0 30px;padding:0 0 30px;border-bottom:1px dashed #e8d2b6}.practitioner-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:last-child{margin-bottom:0;padding-bottom:0;border-bottom:0}}.practitioner_dialog[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;height:auto;padding:10px 20px}.practitioner_dialog[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:60px;height:60px;border-radius:100%;object-fit:cover}.practitioner_dialog[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%] .practitioner_dialog_title[_ngcontent-%COMP%]{margin-left:15px}.practitioner_dialog[_ngcontent-%COMP%] .mat-mdc-dialog-title[_ngcontent-%COMP%] .practitioner_dialog_title[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{display:block;font-size:14px;line-height:normal;font-family:Raleway,sans-serif} 4/*# sourceMappingURL=practitioner-customers-details.component-AUJXOFME.css.map */`]});let t=a;return t})();var ki=[{path:"",component:ie,data:{title:"Modules.Customers.PageTitle"}},{path:"details/:customerId",component:re,data:{title:"Modules.Customers.PageTitle"}}],Vn=(()=>{let a=class a{};a.\u0275fac=function(l){return new(l||a)},a.\u0275mod=ht({type:a}),a.\u0275inj=vt({providers:[E,Yt,Z],imports:[At,Xt,Rt.forChild(ki)]});let t=a;return t})();export{Vn as WebAppPractitionerCustomersModule}; 5//# sourceMappingURL=chunk-Q7ADCGWA.js.map
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.