1"use strict";(self.webpackChunkwebapp=self.webpackChunkwebapp||[]).push([[1603],{6262:(O,f,r)=>{r.d(f,{k:()=>e});var o=r(9808),s=r(5e3);let e=(()=>{class d{}return d.\u0275fac=function(h){return new(h||d)},d.\u0275mod=s.oAB({type:d}),d.\u0275inj=s.cJS({imports:[[o.ez]]}),d})()},2721:(O,f,r)=>{r.d(f,{n:()=>h});var o=r(9808),s=r(3075),e=r(1072),d=r(9695),g=r(5e3);let h=(()=>{class a{}return a.\u0275fac=function(u){return new(u||a)},a.\u0275mod=g.oAB({type:a}),a.\u0275inj=g.cJS({imports:[[o.ez,s.u5,e.Kz,d.F]]}),a})()},2787:(O,f,r)=>{r.d(f,{A:()=>a});var o=r(2654),s=r(5e3),e=r(6165),d=r(9808);function g(t,u){if(1&t&&(s.TgZ(0,"p",2),s._uU(1),s.qZA()),2&t){const i=u.$implicit;s.xp6(1),s.Oqu(i)}}function h(t,u){if(1&t&&(s.ynx(0),s.YNc(1,g,2,1,"p",1),s.BQk()),2&t){const i=s.oxw();s.xp6(1),s.Q6J("ngForOf",i.errors)}}let a=(()=>{class t{constructor(i){this.formErrorsService=i,this.subscription=new o.w}ngOnInit(){var i;this.control&&this.subscription.add(null===(i=this.control.statusChanges)||void 0===i?void 0:i.subscribe(()=>{this.errors=this.formErrorsService.getControlErrors(this.control)}))}ngOnDestroy(){this.subscription.unsubscribe()}}return t.\u0275fac=function(i){return new(i||t)(s.Y36(e.u))},t.\u0275cmp=s.Xpm({type:t,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(i,E){1&i&&s.YNc(0,h,2,1,"ng-container",0),2&i&&s.Q6J("ngIf",E.control&&E.control.dirty&&E.control.invalid)},directives:[d.O5,d.sg],styles:[""]}),t})()},6165:(O,f,r)=>{r.d(f,{u:()=>d});var o=r(3075),s=r(5e3),e=r(5008);let d=(()=>{class g{constructor(a){this.snackbar=a,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(a){a instanceof o.NI?(a.markAsDirty(),a.updateValueAndValidity()):Object.keys(a.controls).forEach(t=>{var u,i;null===(u=a.get(t))||void 0===u||u.markAsDirty(),null===(i=a.get(t))||void 0===i||i.updateValueAndValidity(),a.get(t)instanceof o.cw&&this.markAllAsTouched(a.get(t))})}setErrors(a,t){t.error?t.error.errors?Object.keys(t.error.errors).forEach(u=>{var i;const E={};t.error.errors[u].forEach(M=>E[M]=!0),a.get(u)?null===(i=a.get(u))||void 0===i||i.setErrors(E):this.snackbar.error(this.messages[t.error.errors[u][0]]||t.error.errors[u][0],"Errore")}):t.error.error&&this.snackbar.error(t.error.error,"Errore"):this.showMessage()}showMessage(){this.snackbar.error("Si \xe8 verificato un errore, si prega di riprovare.","Errore")}getControlErrors(a){return a.errors?Object.keys(a.errors).map(t=>this.messages[t]?this.messages[t]:t):[]}}return g.\u0275fac=function(a){return new(a||g)(s.LFG(e.o))},g.\u0275prov=s.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},1927:(O,f,r)=>{r.d(f,{a:()=>y});var o=r(5e3),s=r(3075),e=r(9808),d=r(1072),g=r(2787);const h=["input"];function a(c,C){if(1&c&&(o.TgZ(0,"label",6),o._uU(1),o.qZA()),2&c){const n=o.oxw();o.xp6(1),o.Oqu(n.label)}}const t=function(c,C,n){return{"border-error-600":c,"border-grey-300":C,"pl-12":n}};function u(c,C){if(1&c){const n=o.EpF();o.TgZ(0,"input",7,8),o.NdJ("ngModelChange",function(l){return o.CHM(n),o.oxw().model=l})("ngModelChange",function(l){return o.CHM(n),o.oxw().onModelChange(l)}),o.qZA()}if(2&c){const n=o.oxw();o.Q6J("ngClass",o.kEZ(5,t,(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 i=function(c,C,n,p){return{"border-error-600":c,"border-grey-300":C,"pl-12":n,"h-44":p}};function E(c,C){if(1&c){const n=o.EpF();o.TgZ(0,"textarea",9,8),o.NdJ("ngModelChange",function(l){return o.CHM(n),o.oxw().model=l})("ngModelChange",function(l){return o.CHM(n),o.oxw().onModelChange(l)}),o.qZA()}if(2&c){const n=o.oxw();o.Q6J("ngClass",o.l5B(5,i,(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 M(c,C){if(1&c&&o._UZ(0,"svg-icon",10),2&c){const n=o.oxw();o.Q6J("key",n.icon)}}let y=(()=>{class c{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 c.\u0275fac=function(n){return new(n||c)(o.Y36(s.a5,10))},c.\u0275cmp=o.Xpm({type:c,selectors:[["ui-input"]],viewQuery:function(n,p){if(1&n&&o.Gf(h,5),2&n){let l;o.iGM(l=o.CRH())&&(p.input=l.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,a,2,1,"label",0),o.TgZ(1,"div",1),o.YNc(2,u,2,9,"input",2),o.YNc(3,E,2,10,"textarea",3),o.YNc(4,M,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:[e.O5,s.Fj,e.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}"]}),c})()},2141:(O,f,r)=>{r.d(f,{A:()=>u});var o=r(9808),s=r(3075),e=r(1072),d=r(6262),g=r(3685),h=r(2721),a=r(9695),t=r(5e3);let u=(()=>{class i{}return i.\u0275fac=function(M){return new(M||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[o.ez,s.u5,e.Kz,d.k,g.g,s.UX,h.n,a.F]]}),i})()},5975:(O,f,r)=>{r.r(f),r.d(f,{GroupLogsModule:()=>p});var o=r(9808),s=r(218),e=r(5e3),d=r(2311),g=r(5765),h=r(8034),a=r(5850);function t(l,m){if(1&l){const _=e.EpF();e.TgZ(0,"div",2)(1,"lib-log-item",3),e.NdJ("edit",function(x){return e.CHM(_),e.oxw().onEdit(x)}),e.qZA()()}if(2&l){const _=m.ngIf,v=e.oxw();e.xp6(1),e.Q6J("title","Note del gruppo "+v.group.name)("log",_.content)}}function u(l,m){1&l&&(e.TgZ(0,"div",4),e._UZ(1,"ui-spinner",5),e.qZA()),2&l&&(e.xp6(1),e.Q6J("diameter",80))}const E=[{path:"",component:(()=>{class l{constructor(_,v,x){this.route=_,this.groupService=v,this.therapyService=x}ngOnInit(){var _,v;this.group=null===(v=null===(_=this.route.parent)||void 0===_?void 0:_.parent)||void 0===v?void 0:v.snapshot.data.group,this.log$=this.groupService.getLog(this.group.id)}onEdit(_){this.therapyService.updateLog(this.group.id,"note",_).subscribe()}}return l.\u0275fac=function(_){return new(_||l)(e.Y36(s.gz),e.Y36(d.l),e.Y36(g.C))},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-group-logs"]],decls:4,vars:4,consts:[["class","flex-h overflow-y-auto",4,"ngIf","ngIfElse"],["loading",""],[1,"flex-h","overflow-y-auto"],[3,"title","log","edit"],[1,"flex","justify-center","mt-20"],[3,"diameter"]],template:function(_,v){if(1&_&&(e.YNc(0,t,2,2,"div",0),e.ALo(1,"async"),e.YNc(2,u,2,1,"ng-template",null,1,e.W1O)),2&_){const x=e.MAs(3);e.Q6J("ngIf",e.lcZ(1,2,v.log$))("ngIfElse",x)}},directives:[o.O5,h.n,a.O],pipes:[o.Ov],styles:[".flex-h[_ngcontent-%COMP%]{height:calc(100vh - 261px)}"]}),l})()}];let M=(()=>{class l{}return l.\u0275fac=function(_){return new(_||l)},l.\u0275mod=e.oAB({type:l}),l.\u0275inj=e.cJS({imports:[[s.Bz.forChild(E)],s.Bz]}),l})();var y=r(3685),c=r(8806),C=r(8080),n=r(1148);let p=(()=>{class l{}return l.\u0275fac=function(_){return new(_||l)},l.\u0275mod=e.oAB({type:l}),l.\u0275inj=e.cJS({imports:[[o.ez,M,y.g,c.h,C.w,n.F]]}),l})()}}]);
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.