1"use strict";(self.webpackChunkwebapp=self.webpackChunkwebapp||[]).push([[986],{986:(P,r,n)=>{n.r(r),n.d(r,{HistoryModule:()=>O});var l=n(9808),c=n(218),u=n(5241),p=n(1158),d=n(846),t=n(5e3),m=n(2582),f=n(5525),y=n(7576),h=n(1769),g=n(5850);function v(e,s){if(1&e){const o=t.EpF();t.TgZ(0,"ui-table",2),t.NdJ("nextPage",function(){return t.CHM(o),t.oxw().table.nextPage()}),t.qZA()}if(2&e){const o=s.ngIf,i=t.oxw();t.Q6J("columns",i.columns)("isLastPage",i.table.isLastPage)("heightOffset",254)("data",o)}}function b(e,s){1&e&&(t.TgZ(0,"div",3),t._UZ(1,"ui-spinner",4),t.qZA()),2&e&&(t.xp6(1),t.Q6J("diameter",80))}const C=[{path:"",component:(()=>{class e{constructor(o,i,a){this.appointmentService=o,this.overlayService=i,this.userService=a,this.table=new u.i(this.appointmentService.list.bind(this.appointmentService)),this.columns=[{label:"Nome Paziente/Gruppo",field:"patient",type:"patient_group"},{label:"Tipologia",field:"typologyLabel"},{label:"Data",field:"start_date",type:"date"},{label:"Ora",field:"start_date",type:"time"},{label:"Status appuntamento",field:"statusLabel",type:"status"}]}ngOnInit(){this.userService.can(["single","couple","group","reception"],"OR")&&this.columns.push({label:"",field:"actions",type:"button",buttonLabel:"Chiudi seduta",buttonAction:o=>this.closeAppointment(o),buttonCondition:o=>o.status===d.lx.confirmed}),this.userService.can(["admin"])&&this.columns.splice(1,0,{label:"Terapeuta",field:"therapist",type:"therapist"}),this.table.addFilter({"q[start_date_lt]":p().utc().toISOString(),"q[s]":"start_date+desc"})}closeAppointment(o){this.overlayService.confirm("Chiudi seduta con "+o.getTitle(!1),"Chiudendo la seduta, non sar\xe0 pi\xf9 possibile riprendere il colloquio e la seduta sar\xe0 classificata come conclusa.").afterClosed$.subscribe(i=>{i.data&&this.appointmentService.done(o.id).subscribe(()=>this.table.reload())})}}return e.\u0275fac=function(o){return new(o||e)(t.Y36(m.H),t.Y36(f.F),t.Y36(y.K))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-history"]],decls:4,vars:4,consts:[[3,"columns","isLastPage","heightOffset","data","nextPage",4,"ngIf","ngIfElse"],["loading",""],[3,"columns","isLastPage","heightOffset","data","nextPage"],[1,"flex","justify-center","mt-20"],[3,"diameter"]],template:function(o,i){if(1&o&&(t.YNc(0,v,1,4,"ui-table",0),t.ALo(1,"async"),t.YNc(2,b,2,1,"ng-template",null,1,t.W1O)),2&o){const a=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,i.table.items$))("ngIfElse",a)}},directives:[l.O5,h.a,g.O],pipes:[l.Ov],styles:[""]}),e})()}];let H=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[c.Bz.forChild(C)],c.Bz]}),e})();var S=n(209),x=n(1148);let O=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[l.ez,H,S.U,x.F]]}),e})()}}]);
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.