PageSourceSearch

https://dstanza.transiti.net/4945.7239cf07d5aa0231.js

js transiti.net collected 2026-10-06 05:26:59 UTC 5,679 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebapp=self.webpackChunkwebapp||[]).push([[4945],{4945:(R,m,s)=>{s.r(m),s.d(m,{TherapistsListModule:()=>H});var l=s(9808),p=s(218),n=s(3075),c=s(846),f=s(4350),t=s(5e3),g=s(9665),u=s(7721),v=s(6165),d=s(1927),T=s(3976),h=s(4164);let b=(()=>{class i{constructor(e,o,r,B){this.ref=e,this.therapistService=o,this.formErrorsService=r,this.fb=B,this.THERAPIST_TYPES_OPTIONS=c.l8,this.therapiesEnabled=JSON.parse(JSON.stringify([...c.Mm,{label:"Accoglienza",value:"reception"}])),this.form=this.fb.group({first_name:["",n.kI.required],last_name:["",n.kI.required],email:["",[n.kI.required,n.kI.email]],type:[c.l8[0].value,n.kI.required],therapies:[[f.N3.single]]})}ngOnInit(){}add(){if(this.form.valid){this.loading=!0;const e=this.form.value;e.supervisor="supervisor"===e.type,delete e.type,e.permissions={therapies:e.therapies},delete e.therapies,e.password="test123",this.therapistService.create(e).subscribe(o=>{this.ref.close(o)},o=>{this.formErrorsService.setErrors(this.form,o),this.loading=!1})}else this.formErrorsService.markAllAsTouched(this.form)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(g.S),t.Y36(u.Q),t.Y36(v.u),t.Y36(n.qu))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-therapist-modal"]],decls:15,vars:5,consts:[[1,"sm:w-160"],[1,"text-dark","text-xl","font-semibold","leading-7","mb-6"],[3,"formGroup"],[1,"grid","grid-cols-2","gap-8","mb-4"],["placeholder","Nome","formControlName","first_name"],["placeholder","Cognome","formControlName","last_name"],["placeholder","Email","formControlName","email","type","email"],["label","Tipologia utente","placeholder","--- Scegli il livello di amministrazione ---","formControlName","type",1,"mt-10","mb-8","block",3,"options"],["label","Terapie abilitate","placeholder","--- Seleziona la/le tipologie di terapia per questo terapeuta ---","formControlName","therapies",3,"options","multiple"],[1,"border-t","border-grey-200","mt-8","pt-6","flex","items-center","justify-end"],["fill","outline",1,"mr-5",3,"click"],[3,"loading","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2,"Aggiungi terapeuta"),t.qZA(),t.TgZ(3,"form",2)(4,"div",3),t._UZ(5,"ui-input",4)(6,"ui-input",5),t.qZA(),t._UZ(7,"ui-input",6)(8,"ui-select",7)(9,"ui-select",8),t.TgZ(10,"div",9)(11,"ui-button",10),t.NdJ("click",function(){return o.ref.close()}),t._uU(12,"Annulla"),t.qZA(),t.TgZ(13,"ui-button",11),t.NdJ("click",function(){return o.add()}),t._uU(14,"Aggiungi"),t.qZA()()()()),2&e&&(t.xp6(3),t.Q6J("formGroup",o.form),t.xp6(5),t.Q6J("options",o.THERAPIST_TYPES_OPTIONS),t.xp6(1),t.Q6J("options",o.therapiesEnabled)("multiple",!0),t.xp6(4),t.Q6J("loading",o.loading))},directives:[n._Y,n.JL,n.sg,d.a,n.JJ,n.u,T.H,h.r],styles:[""]}),i})();var C=s(5241),A=s(2654),y=s(13),L=s(5525),S=s(3792),J=s(1769),Z=s(5850);function N(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"ui-button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().addTherapist()}),t._uU(1,"Aggiungi terapeuta"),t.qZA()}2&i&&t.Q6J("block",!0)}function x(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"ui-table",8),t.NdJ("nextPage",function(){return t.CHM(e),t.oxw().table.nextPage()}),t.qZA()}if(2&i){const e=a.ngIf,o=t.oxw();t.Q6J("columns",o.columns)("isLastPage",o.table.isLastPage)("heightOffset",340)("data",e)}}function M(i,a){1&i&&(t.TgZ(0,"div",9),t._UZ(1,"ui-spinner",10),t.qZA()),2&i&&(t.xp6(1),t.Q6J("diameter",80))}const I=function(){return["admin"]},P=[{path:"",component:(()=>{class i{constructor(e,o,r){this.therapistService=e,this.router=o,this.overlayService=r,this.table=new C.i(this.therapistService.list.bind(this.therapistService)),this.columns=[{label:"Terapeuta",field:"fullName",type:"therapist"},{label:"Terapie attive",field:"therapiesEnabledLabels"},{label:"Numero pazienti",field:"patients_count"},{label:"Accoglienza",field:"receptionLabel"}],this.searchControl=new n.NI,this.subscription=new A.w}ngOnInit(){this.subscription.add(this.searchControl.valueChanges.pipe((0,y.b)(500)).subscribe(e=>this.table.filterByUserName(e)))}ngOnDestroy(){this.subscription.unsubscribe()}addTherapist(){this.overlayService.open(b).afterClosed$.subscribe(e=>{e.data&&this.table.reload()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.Q),t.Y36(p.F0),t.Y36(L.F))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-therapists-list"]],decls:9,vars:7,consts:[[1,"grid","grid-cols-12","mb-8","gap-5"],[1,"col-span-12","sm:col-span-9"],["placeholder","Cerca terapeuti","icon","search",3,"formControl"],[1,"col-span-12","sm:col-span-3"],["size","big",3,"block","click",4,"hasPermission"],[3,"columns","isLastPage","heightOffset","data","nextPage",4,"ngIf","ngIfElse"],["loading",""],["size","big",3,"block","click"],[3,"columns","isLastPage","heightOffset","data","nextPage"],[1,"flex","justify-center","mt-20"],[3,"diameter"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"ui-input",2),t.qZA(),t.TgZ(3,"div",3),t.YNc(4,N,2,1,"ui-button",4),t.qZA()(),t.YNc(5,x,1,4,"ui-table",5),t.ALo(6,"async"),t.YNc(7,M,2,1,"ng-template",null,6,t.W1O)),2&e){const r=t.MAs(8);t.xp6(2),t.Q6J("formControl",o.searchControl),t.xp6(2),t.Q6J("hasPermission",t.DdM(6,I)),t.xp6(1),t.Q6J("ngIf",t.lcZ(6,4,o.table.items$))("ngIfElse",r)}},directives:[d.a,n.JJ,n.oH,S.A,h.r,l.O5,J.a,Z.O],pipes:[l.Ov],styles:[""]}),i})()}];let E=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[p.Bz.forChild(P)],p.Bz]}),i})();var O=s(3685),Y=s(8806),Q=s(209),U=s(2141),z=s(1148),F=s(1660);let H=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[l.ez,E,O.g,Y.h,Q.U,n.UX,U.A,z.F,F.n]]}),i})()}}]);

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.