1"use strict";(self.webpackChunkwebapp=self.webpackChunkwebapp||[]).push([[2018],{2018:(R,u,e)=>{e.r(u),e.d(u,{PatientsListModule:()=>Q});var r=e(9808),c=e(218),d=e(846),p=e(2223),v=e(5241),l=e(3075),h=e(2654),f=e(13),t=e(5e3),g=e(4445),P=e(5525),C=e(7576),b=e(1927),L=e(3792),x=e(477),y=e(1769),O=e(5850);function T(n,s){if(1&n){const o=t.EpF();t.TgZ(0,"ui-button-dropdown",7),t.NdJ("event",function(a){return t.CHM(o),t.oxw().onMainButtonClick(a)}),t._uU(1,"+ Crea nuovo"),t.qZA()}if(2&n){const o=t.oxw();t.Q6J("options",o.buttonsOptions)}}function M(n,s){if(1&n){const o=t.EpF();t.TgZ(0,"ui-table",8),t.NdJ("nextPage",function(){return t.CHM(o),t.oxw().table.nextPage()}),t.qZA()}if(2&n){const o=s.ngIf,i=t.oxw();t.Q6J("columns",i.columns)("isLastPage",i.table.isLastPage)("heightOffset",254)("data",o)}}function A(n,s){1&n&&(t.TgZ(0,"div",9),t._UZ(1,"ui-spinner",10),t.qZA()),2&n&&(t.xp6(1),t.Q6J("diameter",80))}const S=function(){return["single","couple","group","reception"]},Z=[{path:"",component:(()=>{class n{constructor(o,i,a,m){this.patientService=o,this.overlayService=i,this.userService=a,this.router=m,this.table=new v.i(this.patientService.list.bind(this.patientService)),this.columns=[{label:"Paziente",field:"fullName",type:"patient"}],this.THERAPY_TYPES_OPTIONS=d.Mm,this.buttonsOptions=[{label:"Crea nuova seduta",value:"new"}],this.searchControl=new l.NI,this.subscription=new h.w}ngOnInit(){this.subscription.add(this.searchControl.valueChanges.pipe((0,f.b)(500)).subscribe(o=>this.table.filterByUserName(o))),this.userService.can(["single","couple","group","reception"],"OR")&&this.columns.push({label:"",field:"actions",type:"button",buttonLabel:"Crea nuova seduta",buttonAction:o=>this.overlayService.open(p.F,{patient:o})})}ngOnDestroy(){this.subscription.unsubscribe()}onMainButtonClick(o){"new"===o&&this.overlayService.open(p.F)}}return n.\u0275fac=function(o){return new(o||n)(t.Y36(g.e),t.Y36(P.F),t.Y36(C.K),t.Y36(c.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-patients-list"]],decls:9,vars:8,consts:[[1,"grid","grid-cols-12","mb-8","gap-5"],[1,"col-span-12","sm:col-span-9"],["placeholder","Cerca paziente","icon","search",3,"formControl"],[1,"col-span-12","sm:col-span-3"],[3,"options","event",4,"hasPermission","hasPermissionOp"],[3,"columns","isLastPage","heightOffset","data","nextPage",4,"ngIf","ngIfElse"],["loading",""],[3,"options","event"],[3,"columns","isLastPage","heightOffset","data","nextPage"],[1,"flex","justify-center","mt-20"],[3,"diameter"]],template:function(o,i){if(1&o&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"ui-input",2),t.qZA(),t.TgZ(3,"div",3),t.YNc(4,T,2,1,"ui-button-dropdown",4),t.qZA()(),t.YNc(5,M,1,4,"ui-table",5),t.ALo(6,"async"),t.YNc(7,A,2,1,"ng-template",null,6,t.W1O)),2&o){const a=t.MAs(8);t.xp6(2),t.Q6J("formControl",i.searchControl),t.xp6(2),t.Q6J("hasPermission",t.DdM(7,S))("hasPermissionOp","OR"),t.xp6(1),t.Q6J("ngIf",t.lcZ(6,5,i.table.items$))("ngIfElse",a)}},directives:[b.a,l.JJ,l.oH,L.A,x.a,r.O5,y.a,O.O],pipes:[r.Ov],styles:[""]}),n})()}];let J=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[c.Bz.forChild(Z)],c.Bz]}),n})();var F=e(209),N=e(3685),Y=e(2141),I=e(7682),B=e(1148),E=e(1660);let Q=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[r.ez,J,F.U,N.g,Y.A,I.q,l.UX,B.F,E.n]]}),n})()}}]);
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.