PageSourceSearch

https://dstanza.transiti.net/453.5535f32ac8bda0d9.js

js transiti.net collected 2026-10-06 05:26:27 UTC 15,470 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebapp=self.webpackChunkwebapp||[]).push([[453],{2864:(x,h,o)=>{o.d(h,{A:()=>m});var t=o(5e3),s=o(9808);const u=function(c,e){return{"shadow-2xl":c,"border-3 border-white":e}};let m=(()=>{class c{constructor(){}ngOnChanges(){setTimeout(()=>{this.avatar||(this.avatar="/assets/images/user.svg")})}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275cmp=t.Xpm({type:c,selectors:[["ui-avatar"]],inputs:{avatar:"avatar",shadow:"shadow",border:"border"},features:[t.TTD],decls:1,vars:5,consts:[[1,"rounded-full","block","w-full","h-full",3,"src","ngClass"]],template:function(a,i){1&a&&t._UZ(0,"img",0),2&a&&t.Q6J("src",i.avatar,t.LSH)("ngClass",t.WLB(2,u,i.shadow,i.border))},directives:[s.mk],styles:["[_nghost-%COMP%]{display:block}"]}),c})()},9613:(x,h,o)=>{o.d(h,{F:()=>u});var t=o(9808),s=o(5e3);let u=(()=>{class m{}return m.\u0275fac=function(e){return new(e||m)},m.\u0275mod=s.oAB({type:m}),m.\u0275inj=s.cJS({imports:[[t.ez]]}),m})()},9589:(x,h,o)=>{o.d(h,{e:()=>e});var t=o(5e3),s=o(9808),u=o(4164);function m(a,i){if(1&a){const d=t.EpF();t.TgZ(0,"ui-button",4),t.NdJ("click",function(){return t.CHM(d),t.oxw().clicked.emit()}),t._uU(1),t.qZA()}if(2&a){const d=t.oxw();t.xp6(1),t.Oqu(d.action)}}const c=["*"];let e=(()=>{class a{constructor(){this.clicked=new t.vpe}ngOnInit(){}}return a.\u0275fac=function(d){return new(d||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["ui-fieldset"]],inputs:{label:"label",action:"action"},outputs:{clicked:"clicked"},ngContentSelectors:c,decls:6,vars:2,consts:[[1,"mb-10","md:mb-20"],[1,"flex","justify-between","items-center"],[1,"font-medium","text-lg","mb-4","uppercase","text-dark"],["fill","none",3,"click",4,"ngIf"],["fill","none",3,"click"]],template:function(d,p){1&d&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1)(2,"h2",2),t._uU(3),t.qZA(),t.YNc(4,m,2,1,"ui-button",3),t.qZA(),t.Hsn(5),t.qZA()),2&d&&(t.xp6(3),t.Oqu(p.label),t.xp6(1),t.Q6J("ngIf",p.action))},directives:[s.O5,u.r],styles:[""]}),a})()},2455:(x,h,o)=>{o.d(h,{L:()=>m});var t=o(9808),s=o(8806),u=o(5e3);let m=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=u.oAB({type:c}),c.\u0275inj=u.cJS({imports:[[t.ez,s.h]]}),c})()},2787:(x,h,o)=>{o.d(h,{A:()=>a});var t=o(2654),s=o(5e3),u=o(6165),m=o(9808);function c(i,d){if(1&i&&(s.TgZ(0,"p",2),s._uU(1),s.qZA()),2&i){const p=d.$implicit;s.xp6(1),s.Oqu(p)}}function e(i,d){if(1&i&&(s.ynx(0),s.YNc(1,c,2,1,"p",1),s.BQk()),2&i){const p=s.oxw();s.xp6(1),s.Q6J("ngForOf",p.errors)}}let a=(()=>{class i{constructor(p){this.formErrorsService=p,this.subscription=new t.w}ngOnInit(){var p;this.control&&this.subscription.add(null===(p=this.control.statusChanges)||void 0===p?void 0:p.subscribe(()=>{this.errors=this.formErrorsService.getControlErrors(this.control)}))}ngOnDestroy(){this.subscription.unsubscribe()}}return i.\u0275fac=function(p){return new(p||i)(s.Y36(u.u))},i.\u0275cmp=s.Xpm({type:i,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(p,E){1&p&&s.YNc(0,e,2,1,"ng-container",0),2&p&&s.Q6J("ngIf",E.control&&E.control.dirty&&E.control.invalid)},directives:[m.O5,m.sg],styles:[""]}),i})()},6165:(x,h,o)=>{o.d(h,{u:()=>m});var t=o(3075),s=o(5e3),u=o(5008);let m=(()=>{class c{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 t.NI?(a.markAsDirty(),a.updateValueAndValidity()):Object.keys(a.controls).forEach(i=>{var d,p;null===(d=a.get(i))||void 0===d||d.markAsDirty(),null===(p=a.get(i))||void 0===p||p.updateValueAndValidity(),a.get(i)instanceof t.cw&&this.markAllAsTouched(a.get(i))})}setErrors(a,i){i.error?i.error.errors?Object.keys(i.error.errors).forEach(d=>{var p;const E={};i.error.errors[d].forEach(y=>E[y]=!0),a.get(d)?null===(p=a.get(d))||void 0===p||p.setErrors(E):this.snackbar.error(this.messages[i.error.errors[d][0]]||i.error.errors[d][0],"Errore")}):i.error.error&&this.snackbar.error(i.error.error,"Errore"):this.showMessage()}
1showMessage(){this.snackbar.error("Si \xe8 verificato un errore, si prega di riprovare.","Errore")}getControlErrors(a){return a.errors?Object.keys(a.errors).map(i=>this.messages[i]?this.messages[i]:i):[]}}return c.\u0275fac=function(a){return new(a||c)(s.LFG(u.o))},c.\u0275prov=s.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})()},1927:(x,h,o)=>{o.d(h,{a:()=>P});var t=o(5e3),s=o(3075),u=o(9808),m=o(1072),c=o(2787);const e=["input"];function a(g,C){if(1&g&&(t.TgZ(0,"label",6),t._uU(1),t.qZA()),2&g){const n=t.oxw();t.xp6(1),t.Oqu(n.label)}}const i=function(g,C,n){return{"border-error-600":g,"border-grey-300":C,"pl-12":n}};function d(g,C){if(1&g){const n=t.EpF();t.TgZ(0,"input",7,8),t.NdJ("ngModelChange",function(T){return t.CHM(n),t.oxw().model=T})("ngModelChange",function(T){return t.CHM(n),t.oxw().onModelChange(T)}),t.qZA()}if(2&g){const n=t.oxw();t.Q6J("ngClass",t.kEZ(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))("type",n.type)("ngModel",n.model)("readonly",n.readonly)("placeholder",n.placeholder)}}const p=function(g,C,n,f){return{"border-error-600":g,"border-grey-300":C,"pl-12":n,"h-44":f}};function E(g,C){if(1&g){const n=t.EpF();t.TgZ(0,"textarea",9,8),t.NdJ("ngModelChange",function(T){return t.CHM(n),t.oxw().model=T})("ngModelChange",function(T){return t.CHM(n),t.oxw().onModelChange(T)}),t.qZA()}if(2&g){const n=t.oxw();t.Q6J("ngClass",t.l5B(5,p,(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 y(g,C){if(1&g&&t._UZ(0,"svg-icon",10),2&g){const n=t.oxw();t.Q6J("key",n.icon)}}let P=(()=>{class g{constructor(n){this.ngControl=n,this.type="input",this.placeholder="",this.onChange=f=>{},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 g.\u0275fac=function(n){return new(n||g)(t.Y36(s.a5,10))},g.\u0275cmp=t.Xpm({type:g,selectors:[["ui-input"]],viewQuery:function(n,f){if(1&n&&t.Gf(e,5),2&n){let T;t.iGM(T=t.CRH())&&(f.input=T.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","ngModelChange",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,f){1&n&&(t.YNc(0,a,2,1,"label",0),t.TgZ(1,"div",1),t.YNc(2,d,2,9,"input",2),t.YNc(3,E,2,10,"textarea",3),t.YNc(4,y,1,1,"svg-icon",4),t.qZA(),t._UZ(5,"ui-form-errors",5)),2&n&&(t.Q6J("ngIf",f.label),t.xp6(2),t.Q6J("ngIf","textarea"!==f.type),t.xp6(1),t.Q6J("ngIf","textarea"===f.type),t.xp6(1),t.Q6J("ngIf",f.icon),t.xp6(1),t.Q6J("control",f.ngControl))},directives:[u.O5,s.Fj,u.mk,s.JJ,s.On,m.bk,c.A],styles:["[_nghost-%COMP%]{display:block;position:relative}input[type=time][_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{display:none}"]}),g})()},607:(x,h,o)=>{o.r(h),o.d(h,{TherapistPersonalDataModule:()=>N});var t=o(9808),s=o(218),u=o(3075),m=o(846),c=o(2654),e=o(5e3),a=o(7721),i=o(1048),d=o(9589),p=o(3792),E=o(9362),y=o(7817);function P(l,v){if(1&l&&(e.ynx(0),e.TgZ(1,"ui-field",16),e._uU(2),e.qZA(),e.TgZ(3,"ui-field",17),e._uU(4),e.qZA(),e.BQk()),2&l){const r=e.oxw();e.xp6(2),e.Oqu(r.therapist.fullName),e.xp6(2),e.Oqu(r.therapist.genderLabel)}}function g(l,v){if(1&l&&e._UZ(0,"ui-field-edit",18)(1,"ui-field-edit",19)(2,"ui-field-edit",20),2&l){const r=e.oxw();e.xp6(2),e.Q6J("options",r.USER_GENDERS_OPTIONS)}}function C(l,v){if(1&l&&(e.ynx(0),e.TgZ(1,"ui-field",21),e._uU(2),e.qZA(),e.TgZ(3,"ui-field",22),e._uU(4),e.qZA(),e.TgZ(5,"ui-field",23),e._uU(6),e.qZA(),e.BQk()),2&l){const r=e.oxw();e.xp6(2),e.Oqu(r.therapist.description),e.xp6(2),e.Oqu(null!=r.therapist&&r.therapist.supervisor?"Supervisor":"Terapeuta"),e.xp6(2),e.Oqu(r.therapist.therapiesEnabledLabels)}}function n(l,v){if(1&l&&e._UZ(0,"ui-field-edit",24)(1,"ui-field-edit",25)(2,"ui-field-edit",26),2&l){const r=e.oxw();e.xp6(1),e.Q6J("options",r.THERAPIST_TYPES_OPTIONS),e.xp6(1),e.Q6J("multiple",!0)("transformFn",r.therapyTypeTransformFn)("options",r.therapiesEnabled)}}function f(l,v){if(1&l&&(e.ynx(0),e.TgZ(1,"ui-field",27),e._uU(2),e.qZA(),e.TgZ(3,"ui-field",28),e._uU(4),e.qZA(),e.TgZ(5,"ui-field",29),e._uU(6),e.qZA(),e.BQk()),2&l){const r=e.oxw();e.xp6(2),e.Oqu(r.therapist.email),e.xp6(2),e.Oqu(r.therapist.time_zone),e.xp6(2),e.Oqu(r.therapist.status)}}function T(l,v){if(1&l&&(e._UZ(0,"ui-field-edit",30)(1,"ui-field-edit",31),e.ALo(2,"async"),e._UZ(3,"ui-field-edit",32),e.TgZ(4,"ui-field",33),e._uU(5),e.qZA()),2&l){const r=e.oxw();e.xp6(1),e.Q6J("options",e.lcZ(2,4,r.timezones$))("enableSearch",!0),e.xp6(2),e.Q6J("options",r.USER_STATUSES_OPTIONS),e.xp6(2),e.Oqu(r.therapist.referral_code)}}const O=function(){return["notAdmin"]},D=[{path:"",component:(()=>{class l{constructor(r,_,b,M){this.fb=r,this.therapistService=_,this.timeZoneService=b,this.route=M,this.THERAPIST_TYPES_OPTIONS=m.l8,this.THERAPIST_TYPES=m.Sm,this.USER_GENDERS_OPTIONS=m.vH,this.USER_STATUSES_OPTIONS=m.Kl,this.therapiesEnabled=[...m.Mm,{label:"Accoglienza",value:"reception"}],this.subscription=new c.w,this.form=this.fb.group({first_name:["",u.kI.required],last_name:["",u.kI.required],email:["",u.kI.required],gender:[""],description:["",u.kI.required],therapies:["",u.kI.required],type:["",u.kI.required],time_zone:["",u.kI.required],status:["",u.kI.required]})}ngOnInit(){var r,_;this.therapist=null===(_=null===(r=this.route.parent)||void 0===r?void 0:r.parent)||void 0===_?void 0:_.snapshot.data.therapist,this.timezones$=this.timeZoneService.list(),this.form.patchValue(Object.assign(Object.assign({},this.therapist),{therapies:this.therapist.therapies_enabled,type:this.therapist.supervisor?"supervisor":"normal"})),Object.keys(this.form.controls).map(b=>{var M;this.subscription.add(null===(M=this.form.get(b))||void 0===M?void 0:M.valueChanges.subscribe(A=>this.onFieldChange(b,A)))})}ngOnDestroy(){this.subscription.unsubscribe()}therapistTypeTransformFn(r){return m.Sm[r]}therapyTypeTransformFn(r){return r.map(_=>m.mi[_]).join(", ")}onFieldChange(r,_){if(r&&_){let b;b="therapies"===r?{permissions:{therapies:_}}:"type"===r?{supervisor:"supervisor"===_}:{[r]:_},this.therapistService.update(this.therapist.id,b).subscribe()}}}return l.\u0275fac=function(r){return new(r||l)(e.Y36(u.qu),e.Y36(a.Q),e.Y36(i.F),e.Y36(s.gz))},l.\u0275cmp=e.Xpm({type:l,selectors:[["app-therapist-personal-data"]],decls:28,vars:17,consts:[[3,"formGroup"],["label","Dati anagrafici"],[4,"hasPermission","hasPermissionElse"],["noPerm1",""],["label","Profilo terapeuta"],["noPerm2",""],["label","Account"],["noPerm3",""],["label","Dati di fatturazione"],["label","Nome"],["label","Cognome"],["label","Indirizzo"],["label","Citt\xe0"],["label","CAP"],["label","Nazione"],["label","Partita IVA/Codice fiscale"],["label","Nome e Cognome"],["label","Genere"],["label","Nome","formControlName","first_name"],["label","Cognome","formControlName","last_name"],["label","Genere","formControlName","gender","type","select",3,"options"],["label","Descrizione"],["label","Tipologia utente"],["label","Tipologia terapia"],["label","Descrizione","formControlName","description","type","textarea"],["label","Tipologia utente","formControlName","type","type","select",3,"options"],["label","Tipologia terapia","formControlName","therapies","type","select",3,"multiple","transformFn","options"],["label","Email"],["label","Fuso orario"],["label","Status"],["label","Email","formControlName","email","type","email"],["label","Fuso orario","formControlName","time_zone","type","select",3,"options","enableSearch"],["label","Status","formControlName","status","type","select",3,"options"],["label","Codice referral"]],template:function(r,_){if(1&r&&(e.TgZ(0,"form",0)(1,"ui-fieldset",1),e.YNc(2,P,5,2,"ng-container",2),e.YNc(3,g,3,1,"ng-template",null,3,e.W1O),e.qZA(),e.TgZ(5,"ui-fieldset",4),e.YNc(6,C,7,3,"ng-container",2),e.YNc(7,n,3,4,"ng-template",null,5,e.W1O),e.qZA(),e.TgZ(9,"ui-fieldset",6),e.YNc(10,f,7,3,"ng-container",2),e.YNc(11,T,6,6,"ng-template",null,7,e.W1O),e.qZA()(),e.TgZ(13,"ui-fieldset",8)(14,"ui-field",9),e._uU(15),e.qZA(),e.TgZ(16,"ui-field",10),e._uU(17),e.qZA(),e.TgZ(18,"ui-field",11),e._uU(19),e.qZA(),e.TgZ(20,"ui-field",12),e._uU(21),e.qZA(),e.TgZ(22,"ui-field",13),e._uU(23),e.qZA(),e.TgZ(24,"ui-field",14),e._uU(25),e.qZA(),e.TgZ(26,"ui-field",15),e._uU(27),e.qZA()()),2&r){const b=e.MAs(4),M=e.MAs(8),A=e.MAs(12);e.Q6J("formGroup",_.form),e.xp6(2),e.Q6J("hasPermission",e.DdM(14,O))("hasPermissionElse",b),e.xp6(4),e.Q6J("hasPermission",e.DdM(15,O))("hasPermissionElse",M),e.xp6(4),e.Q6J("hasPermission",e.DdM(16,O))("hasPermissionElse",A),e.xp6(5),e.Oqu(null==_.therapist.billing_address?null:_.therapist.billing_address.first_name),e.xp6(2),e.Oqu(null==_.therapist.billing_address?null:_.therapist.billing_address.last_name),e.xp6(2),e.Oqu(null==_.therapist.billing_address?null:_.therapist.billing_address.street),e.xp6(2),e.Oqu(null==_.therapist.billing_address?null:_.therapist.billing_address.city),e.xp6(2),e.Oqu(null==_.therapist.billing_address?null:_.therapist.billing_address.postal_code),e.xp6(2),e.Oqu(null==_.therapist.billing_address?null:_.therapist.billing_address.country),e.xp6(2),e.Oqu(null==_.therapist.billing_address?null:_.therapist.billing_address.vat)}},directives:[u._Y,u.JL,u.sg,d.e,p.A,E.C,y.B,u.JJ,u.u],pipes:[t.Ov],styles:[""]}),l})()}];let I=(()=>{class l{}return l.\u0275fac=function(r){return new(r||l)},l.\u0275mod=e.oAB({type:l}),l.\u0275inj=e.cJS({imports:[[s.Bz.forChild(D)],s.Bz]}),l})();var Z=o(2455),U=o(180),S=o(4980),F=o(1660);let N=(()=>{class l{}return l.\u0275fac=function(r){return new(r||l)},l.\u0275mod=e.oAB({type:l}),l.\u0275inj=e.cJS({imports:[[t.ez,I,Z.L,U.f,u.UX,S.R,F.n]]}),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.