1"use strict";(self.webpackChunkwebapp=self.webpackChunkwebapp||[]).push([[2455],{6262:(y,m,e)=>{e.d(m,{k:()=>t});var o=e(9808),s=e(5e3);let t=(()=>{class d{}return d.\u0275fac=function(f){return new(f||d)},d.\u0275mod=s.oAB({type:d}),d.\u0275inj=s.cJS({imports:[[o.ez]]}),d})()},2721:(y,m,e)=>{e.d(m,{n:()=>f});var o=e(9808),s=e(3075),t=e(1072),d=e(9695),g=e(5e3);let f=(()=>{class i{}return i.\u0275fac=function(c){return new(c||i)},i.\u0275mod=g.oAB({type:i}),i.\u0275inj=g.cJS({imports:[[o.ez,s.u5,t.Kz,d.F]]}),i})()},2787:(y,m,e)=>{e.d(m,{A:()=>i});var o=e(2654),s=e(5e3),t=e(6165),d=e(9808);function g(l,c){if(1&l&&(s.TgZ(0,"p",2),s._uU(1),s.qZA()),2&l){const a=c.$implicit;s.xp6(1),s.Oqu(a)}}function f(l,c){if(1&l&&(s.ynx(0),s.YNc(1,g,2,1,"p",1),s.BQk()),2&l){const a=s.oxw();s.xp6(1),s.Q6J("ngForOf",a.errors)}}let i=(()=>{class l{constructor(a){this.formErrorsService=a,this.subscription=new o.w}ngOnInit(){var a;this.control&&this.subscription.add(null===(a=this.control.statusChanges)||void 0===a?void 0:a.subscribe(()=>{this.errors=this.formErrorsService.getControlErrors(this.control)}))}ngOnDestroy(){this.subscription.unsubscribe()}}return l.\u0275fac=function(a){return new(a||l)(s.Y36(t.u))},l.\u0275cmp=s.Xpm({type:l,selectors:[["ui-form-errors"]],inputs:{control:"control"},decls:1,vars:1,consts:[[4,"ngIf"],["class","text-xs text-error-600 whitespace-nowrap",4,"ngFor","ngForOf"],[1,"text-xs","text-error-600","whitespace-nowrap"]],template:function(a,E){1&a&&s.YNc(0,f,2,1,"ng-container",0),2&a&&s.Q6J("ngIf",E.control&&E.control.dirty&&E.control.invalid)},directives:[d.O5,d.sg],styles:[""]}),l})()},6165:(y,m,e)=>{e.d(m,{u:()=>d});var o=e(3075),s=e(5e3),t=e(5008);let d=(()=>{class g{constructor(i){this.snackbar=i,this.messages={required:"Campo obbligatorio",email:"Indirizzo email non valido",endTimeBeforeStart:"L'orario di fine non pu\xf2 essere minore di quello di inizio",startTimeBeforeEnd:"L'orario di inizio non pu\xf2 essere minore di quello di fine precedente"}}markAllAsTouched(i){i instanceof o.NI?(i.markAsDirty(),i.updateValueAndValidity()):Object.keys(i.controls).forEach(l=>{var c,a;null===(c=i.get(l))||void 0===c||c.markAsDirty(),null===(a=i.get(l))||void 0===a||a.updateValueAndValidity(),i.get(l)instanceof o.cw&&this.markAllAsTouched(i.get(l))})}setErrors(i,l){l.error?l.error.errors?Object.keys(l.error.errors).forEach(c=>{var a;const E={};l.error.errors[c].forEach(x=>E[x]=!0),i.get(c)?null===(a=i.get(c))||void 0===a||a.setErrors(E):this.snackbar.error(this.messages[l.error.errors[c][0]]||l.error.errors[c][0],"Errore")}):l.error.error&&this.snackbar.error(l.error.error,"Errore"):this.showMessage()}showMessage(){this.snackbar.error("Si \xe8 verificato un errore, si prega di riprovare.","Errore")}getControlErrors(i){return i.errors?Object.keys(i.errors).map(l=>this.messages[l]?this.messages[l]:l):[]}}return g.\u0275fac=function(i){return new(i||g)(s.LFG(t.o))},g.\u0275prov=s.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},1927:(y,m,e)=>{e.d(m,{a:()=>P});var o=e(5e3),s=e(3075),t=e(9808),d=e(1072),g=e(2787);const f=["input"];function i(u,h){if(1&u&&(o.TgZ(0,"label",6),o._uU(1),o.qZA()),2&u){const n=o.oxw();o.xp6(1),o.Oqu(n.label)}}const l=function(u,h,n){return{"border-error-600":u,"border-grey-300":h,"pl-12":n}};function c(u,h){if(1&u){const n=o.EpF();o.TgZ(0,"input",7,8),o.NdJ("ngModelChange",function(v){return o.CHM(n),o.oxw().model=v})("ngModelChange",function(v){return o.CHM(n),o.oxw().onModelChange(v)}),o.qZA()}if(2&u){const n=o.oxw();o.Q6J("ngClass",o.kEZ(5,l,(null==n.ngControl?null:n.ngControl.dirty)&&(null==n.ngControl?null:n.ngControl.invalid),!(null!=n.ngControl&&n.ngControl.dirty&&null!=n.ngControl&&n.ngControl.invalid),n.icon))("type",n.type)("ngModel",n.model)("readonly",n.readonly)("placeholder",n.placeholder)}}const a=function(u,h,n,p){return{"border-error-600":u,"border-grey-300":h,"pl-12":n,"h-44":p}};function E(u,h){if(1&u){const n=o.EpF();o.TgZ(0,"textarea",9,8),o.NdJ("ngModelChange",function(v){return o.CHM(n),o.oxw().model=v})("ngModelChange",function(v){return o.CHM(n),o.oxw().onModelChange(v)}),o.qZA()}if(2&u){const n=o.oxw();o.Q6J("ngClass",o.l5B(5,a,(null==n.ngControl?null:n.ngControl.dirty)&&(null==n.ngControl?null:n.ngControl.invalid),!(null!=n.ngControl&&n.ngControl.dirty&&null!=n.ngControl&&n.ngControl.invalid),n.icon,!n.rows))("ngModel",n.model)("readonly",n.readonly)("placeholder",n.placeholder)("rows",n.rows)}}function x(u,h){if(1&u&&o._UZ(0,"svg-icon",10),2&u){const n=o.oxw();o.Q6J("key",n.icon)}}let P=(()=>{class u{constructor(n){this.ngControl=n,this.type="input",this.placeholder="",this.onChange=p=>{},this.onTouched=()=>{},n&&(n.valueAccessor=this)}ngOnInit(){}onModelChange(n){this.onChange(n)}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}writeValue(n){this.model=n}focus(){this.input.nativeElement.focus()}}return u.\u0275fac=function(n){return new(n||u)(o.Y36(s.a5,10))},u.\u0275cmp=o.Xpm({type:u,selectors:[["ui-input"]],viewQuery:function(n,p){if(1&n&&o.Gf(f,5),2&n){let v;o.iGM(v=o.CRH())&&(p.input=v.first)}},inputs:{type:"type",label:"label",icon:"icon",placeholder:"placeholder",readonly:"readonly",rows:"rows"},decls:6,vars:5,consts:[["class","font-medium text-grey-500 text-sm block mb-2.5",4,"ngIf"],[1,"relative"],["class","appearance-none h-11 border shadow w-full text-dark text-sm rounded px-3 leading-tight focus:outline-none placeholder-grey-500",3,"ngClass","type","ngModel","readonly","placeholder","ngModelChange",4,"ngIf"],["class","appearance-none border shadow w-full text-dark text-sm rounded p-3 focus:outline-none placeholder-grey-500",3,"ngClass","ngModel","readonly","placeholder","rows","
1ngModelChange",4,"ngIf"],["class","absolute top-2.5 left-3 text-grey-500",3,"key",4,"ngIf"],[1,"absolute",3,"control"],[1,"font-medium","text-grey-500","text-sm","block","mb-2.5"],[1,"appearance-none","h-11","border","shadow","w-full","text-dark","text-sm","rounded","px-3","leading-tight","focus:outline-none","placeholder-grey-500",3,"ngClass","type","ngModel","readonly","placeholder","ngModelChange"],["input",""],[1,"appearance-none","border","shadow","w-full","text-dark","text-sm","rounded","p-3","focus:outline-none","placeholder-grey-500",3,"ngClass","ngModel","readonly","placeholder","rows","ngModelChange"],[1,"absolute","top-2.5","left-3","text-grey-500",3,"key"]],template:function(n,p){1&n&&(o.YNc(0,i,2,1,"label",0),o.TgZ(1,"div",1),o.YNc(2,c,2,9,"input",2),o.YNc(3,E,2,10,"textarea",3),o.YNc(4,x,1,1,"svg-icon",4),o.qZA(),o._UZ(5,"ui-form-errors",5)),2&n&&(o.Q6J("ngIf",p.label),o.xp6(2),o.Q6J("ngIf","textarea"!==p.type),o.xp6(1),o.Q6J("ngIf","textarea"===p.type),o.xp6(1),o.Q6J("ngIf",p.icon),o.xp6(1),o.Q6J("control",p.ngControl))},directives:[t.O5,s.Fj,t.mk,s.JJ,s.On,d.bk,g.A],styles:["[_nghost-%COMP%]{display:block;position:relative}input[type=time][_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{display:none}"]}),u})()},2141:(y,m,e)=>{e.d(m,{A:()=>c});var o=e(9808),s=e(3075),t=e(1072),d=e(6262),g=e(3685),f=e(2721),i=e(9695),l=e(5e3);let c=(()=>{class a{}return a.\u0275fac=function(x){return new(x||a)},a.\u0275mod=l.oAB({type:a}),a.\u0275inj=l.cJS({imports:[[o.ez,s.u5,t.Kz,d.k,g.g,s.UX,f.n,i.F]]}),a})()},1587:(y,m,e)=>{e.r(m),e.d(m,{PatientLogsModule:()=>v});var o=e(9808),s=e(218),t=e(5e3),d=e(5765),g=e(4445),f=e(8034),i=e(5850);function l(r,C){if(1&r){const _=t.EpF();t.TgZ(0,"lib-log-item",6),t.NdJ("edit",function(O){const I=t.CHM(_).$implicit;return t.oxw(3).onEdit(I,O)}),t.qZA()}if(2&r){const _=C.$implicit;t.Q6J("title","Note "+_.typologyLabel)("log",_.log)}}function c(r,C){if(1&r&&(t.ynx(0),t.YNc(1,l,1,2,"lib-log-item",5),t.BQk()),2&r){const _=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",_)}}function a(r,C){1&r&&t._uU(0,"Non ci sono terapie attive")}function E(r,C){if(1&r&&(t.TgZ(0,"div",2),t.YNc(1,c,2,1,"ng-container",3),t.YNc(2,a,1,0,"ng-template",null,4,t.W1O),t.qZA()),2&r){const _=C.ngIf,M=t.MAs(3);t.xp6(1),t.Q6J("ngIf",_.length)("ngIfElse",M)}}function x(r,C){1&r&&(t.TgZ(0,"div",7),t._UZ(1,"ui-spinner",8),t.qZA()),2&r&&(t.xp6(1),t.Q6J("diameter",80))}const u=[{path:"",component:(()=>{class r{constructor(_,M,O){this.route=_,this.therapyService=M,this.patientService=O}ngOnInit(){var _,M;this.patient=null===(M=null===(_=this.route.parent)||void 0===_?void 0:_.parent)||void 0===M?void 0:M.snapshot.data.patient,this.therapies$=this.patientService.getTherapiesWithLogs(this.patient.id,"note")}onEdit(_,M){this.therapyService.updateLog(_.id,"note",M).subscribe()}}return r.\u0275fac=function(_){return new(_||r)(t.Y36(s.gz),t.Y36(d.C),t.Y36(g.e))},r.\u0275cmp=t.Xpm({type:r,selectors:[["app-patient-logs"]],decls:4,vars:4,consts:[["class","flex-h overflow-y-auto",4,"ngIf","ngIfElse"],["loading",""],[1,"flex-h","overflow-y-auto"],[4,"ngIf","ngIfElse"],["noItems",""],["class","block mb-4",3,"title","log","edit",4,"ngFor","ngForOf"],[1,"block","mb-4",3,"title","log","edit"],[1,"flex","justify-center","mt-20"],[3,"diameter"]],template:function(_,M){if(1&_&&(t.YNc(0,E,4,2,"div",0),t.ALo(1,"async"),t.YNc(2,x,2,1,"ng-template",null,1,t.W1O)),2&_){const O=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,M.therapies$))("ngIfElse",O)}},directives:[o.O5,o.sg,f.n,i.O],pipes:[o.Ov],styles:[""]}),r})()}];let h=(()=>{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275mod=t.oAB({type:r}),r.\u0275inj=t.cJS({imports:[[s.Bz.forChild(u)],s.Bz]}),r})();var n=e(8080),p=e(1148);let v=(()=>{class r{}return r.\u0275fac=function(_){return new(_||r)},r.\u0275mod=t.oAB({type:r}),r.\u0275inj=t.cJS({imports:[[o.ez,h,n.w,p.F]]}),r})()}}]);
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.