PageSourceSearch

https://dstanza.transiti.net/4107.29f956095d7407bb.js

js transiti.net collected 2026-10-06 05:26:51 UTC 16,203 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebapp=self.webpackChunkwebapp||[]).push([[4107],{2864:(P,g,l)=>{l.d(g,{A:()=>f});var t=l(5e3),s=l(9808);const u=function(d,e){return{"shadow-2xl":d,"border-3 border-white":e}};let f=(()=>{class d{constructor(){}ngOnChanges(){setTimeout(()=>{this.avatar||(this.avatar="/assets/images/user.svg")})}}return d.\u0275fac=function(r){return new(r||d)},d.\u0275cmp=t.Xpm({type:d,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(r,a){1&r&&t._UZ(0,"img",0),2&r&&t.Q6J("src",a.avatar,t.LSH)("ngClass",t.WLB(2,u,a.shadow,a.border))},directives:[s.mk],styles:["[_nghost-%COMP%]{display:block}"]}),d})()},9613:(P,g,l)=>{l.d(g,{F:()=>u});var t=l(9808),s=l(5e3);let u=(()=>{class f{}return f.\u0275fac=function(e){return new(e||f)},f.\u0275mod=s.oAB({type:f}),f.\u0275inj=s.cJS({imports:[[t.ez]]}),f})()},9589:(P,g,l)=>{l.d(g,{e:()=>e});var t=l(5e3),s=l(9808),u=l(4164);function f(r,a){if(1&r){const _=t.EpF();t.TgZ(0,"ui-button",4),t.NdJ("click",function(){return t.CHM(_),t.oxw().clicked.emit()}),t._uU(1),t.qZA()}if(2&r){const _=t.oxw();
1t.xp6(1),t.Oqu(_.action)}}const d=["*"];let e=(()=>{class r{constructor(){this.clicked=new t.vpe}ngOnInit(){}}return r.\u0275fac=function(_){return new(_||r)},r.\u0275cmp=t.Xpm({type:r,selectors:[["ui-fieldset"]],inputs:{label:"label",action:"action"},outputs:{clicked:"clicked"},ngContentSelectors:d,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(_,c){1&_&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1)(2,"h2",2),t._uU(3),t.qZA(),t.YNc(4,f,2,1,"ui-button",3),t.qZA(),t.Hsn(5),t.qZA()),2&_&&(t.xp6(3),t.Oqu(c.label),t.xp6(1),t.Q6J("ngIf",c.action))},directives:[s.O5,u.r],styles:[""]}),r})()},2455:(P,g,l)=>{l.d(g,{L:()=>f});var t=l(9808),s=l(8806),u=l(5e3);let f=(()=>{class d{}return d.\u0275fac=function(r){return new(r||d)},d.\u0275mod=u.oAB({type:d}),d.\u0275inj=u.cJS({imports:[[t.ez,s.h]]}),d})()},2787:(P,g,l)=>{l.d(g,{A:()=>r});var t=l(2654),s=l(5e3),u=l(6165),f=l(9808);function d(a,_){if(1&a&&(s.TgZ(0,"p",2),s._uU(1),s.qZA()),2&a){const c=_.$implicit;s.xp6(1),s.Oqu(c)}}function e(a,_){if(1&a&&(s.ynx(0),s.YNc(1,d,2,1,"p",1),s.BQk()),2&a){const c=s.oxw();s.xp6(1),s.Q6J("ngForOf",c.errors)}}let r=(()=>{class a{constructor(c){this.formErrorsService=c,this.subscription=new t.w}ngOnInit(){var c;this.control&&this.subscription.add(null===(c=this.control.statusChanges)||void 0===c?void 0:c.subscribe(()=>{this.errors=this.formErrorsService.getControlErrors(this.control)}))}ngOnDestroy(){this.subscription.unsubscribe()}}return a.\u0275fac=function(c){return new(c||a)(s.Y36(u.u))},a.\u0275cmp=s.Xpm({type:a,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(c,v){1&c&&s.YNc(0,e,2,1,"ng-container",0),2&c&&s.Q6J("ngIf",v.control&&v.control.dirty&&v.control.invalid)},directives:[f.O5,f.sg],styles:[""]}),a})()},6165:(P,g,l)=>{l.d(g,{u:()=>f});var t=l(3075),s=l(5e3),u=l(5008);let f=(()=>{class d{constructor(r){this.snackbar=r,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(r){r instanceof t.NI?(r.markAsDirty(),r.updateValueAndValidity()):Object.keys(r.controls).forEach(a=>{var _,c;null===(_=r.get(a))||void 0===_||_.markAsDirty(),null===(c=r.get(a))||void 0===c||c.updateValueAndValidity(),r.get(a)instanceof t.cw&&this.markAllAsTouched(r.get(a))})}setErrors(r,a){a.error?a.error.errors?Object.keys(a.error.errors).forEach(_=>{var c;const v={};a.error.errors[_].forEach(T=>v[T]=!0),r.get(_)?null===(c=r.get(_))||void 0===c||c.setErrors(v):this.snackbar.error(this.messages[a.error.errors[_][0]]||a.error.errors[_][0],"Errore")}):a.error.error&&this.snackbar.error(a.error.error,"Errore"):this.showMessage()}showMessage(){this.snackbar.error("Si \xe8 verificato un errore, si prega di riprovare.","Errore")}getControlErrors(r){return r.errors?Object.keys(r.errors).map(a=>this.messages[a]?this.messages[a]:a):[]}}return d.\u0275fac=function(r){return new(r||d)(s.LFG(u.o))},d.\u0275prov=s.Yz7({token:d,factory:d.\u0275fac,providedIn:"root"}),d})()},1927:(P,g,l)=>{l.d(g,{a:()=>M});var t=l(5e3),s=l(3075),u=l(9808),f=l(1072),d=l(2787);const e=["input"];function r(p,h){if(1&p&&(t.TgZ(0,"label",6),t._uU(1),t.qZA()),2&p){const o=t.oxw();t.xp6(1),t.Oqu(o.label)}}const a=function(p,h,o){return{"border-error-600":p,"border-grey-300":h,"pl-12":o}};function _(p,h){if(1&p){const o=t.EpF();t.TgZ(0,"input",7,8),t.NdJ("ngModelChange",function(x){return t.CHM(o),t.oxw().model=x})("ngModelChange",function(x){return t.CHM(o),t.oxw().onModelChange(x)}),t.qZA()}if(2&p){const o=t.oxw();t.Q6J("ngClass",t.kEZ(5,a,(null==o.ngControl?null:o.ngControl.dirty)&&(null==o.ngControl?null:o.ngControl.invalid),!(null!=o.ngControl&&o.ngControl.dirty&&null!=o.ngControl&&o.ngControl.invalid),o.icon))("type",o.type)("ngModel",o.model)("readonly",o.readonly)("placeholder",o.placeholder)}}const c=function(p,h,o,C){return{"border-error-600":p,"border-grey-300":h,"pl-12":o,"h-44":C}};
1function v(p,h){if(1&p){const o=t.EpF();t.TgZ(0,"textarea",9,8),t.NdJ("ngModelChange",function(x){return t.CHM(o),t.oxw().model=x})("ngModelChange",function(x){return t.CHM(o),t.oxw().onModelChange(x)}),t.qZA()}if(2&p){const o=t.oxw();t.Q6J("ngClass",t.l5B(5,c,(null==o.ngControl?null:o.ngControl.dirty)&&(null==o.ngControl?null:o.ngControl.invalid),!(null!=o.ngControl&&o.ngControl.dirty&&null!=o.ngControl&&o.ngControl.invalid),o.icon,!o.rows))("ngModel",o.model)("readonly",o.readonly)("placeholder",o.placeholder)("rows",o.rows)}}function T(p,h){if(1&p&&t._UZ(0,"svg-icon",10),2&p){const o=t.oxw();t.Q6J("key",o.icon)}}let M=(()=>{class p{constructor(o){this.ngControl=o,this.type="input",this.placeholder="",this.onChange=C=>{},this.onTouched=()=>{},o&&(o.valueAccessor=this)}ngOnInit(){}onModelChange(o){this.onChange(o)}registerOnChange(o){this.onChange=o}registerOnTouched(o){this.onTouched=o}writeValue(o){this.model=o}focus(){this.input.nativeElement.focus()}}return p.\u0275fac=function(o){return new(o||p)(t.Y36(s.a5,10))},p.\u0275cmp=t.Xpm({type:p,selectors:[["ui-input"]],viewQuery:function(o,C){if(1&o&&t.Gf(e,5),2&o){let x;t.iGM(x=t.CRH())&&(C.input=x.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(o,C){1&o&&(t.YNc(0,r,2,1,"label",0),t.TgZ(1,"div",1),t.YNc(2,_,2,9,"input",2),t.YNc(3,v,2,10,"textarea",3),t.YNc(4,T,1,1,"svg-icon",4),t.qZA(),t._UZ(5,"ui-form-errors",5)),2&o&&(t.Q6J("ngIf",C.label),t.xp6(2),t.Q6J("ngIf","textarea"!==C.type),t.xp6(1),t.Q6J("ngIf","textarea"===C.type),t.xp6(1),t.Q6J("ngIf",C.icon),t.xp6(1),t.Q6J("control",C.ngControl))},directives:[u.O5,s.Fj,u.mk,s.JJ,s.On,f.bk,d.A],styles:["[_nghost-%COMP%]{display:block;position:relative}input[type=time][_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{display:none}"]}),p})()},262:(P,g,l)=>{l.r(g),l.d(g,{PatientPersonalDataModule:()=>k});var t=l(9808),s=l(218),u=l(3075),f=l(846),d=l(2654),e=l(5e3),r=l(4445),a=l(1048),_=l(3792),c=l(9589),v=l(7817),T=l(9362);function M(i,m){if(1&i&&(e.TgZ(0,"form",3)(1,"ui-fieldset",4),e._UZ(2,"ui-field-edit",5)(3,"ui-field-edit",6)(4,"ui-field-edit",7)(5,"ui-field-edit",8)(6,"ui-field-edit",9)(7,"ui-field-edit",10)(8,"ui-field-edit",11),e.qZA(),e.TgZ(9,"ui-fieldset",12),e._UZ(10,"ui-field-edit",13)(11,"ui-field-edit",14),e.ALo(12,"async"),e._UZ(13,"ui-field-edit",15),e.qZA()()),2&i){const n=e.oxw();e.Q6J("formGroup",n.form),e.xp6(4),e.Q6J("options",n.USER_GENDERS_OPTIONS),e.xp6(7),e.Q6J("options",e.lcZ(12,5,n.timezones$))("enableSearch",!0),e.xp6(2),e.Q6J("options",n.USER_STATUSES_OPTIONS)}}function p(i,m){if(1&i&&(e.TgZ(0,"ui-field",26),e._uU(1),e.ALo(2,"date"),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.Oqu(e.xi3(2,1,n.patient.birthdate,"longDate"))}}function h(i,m){if(1&i&&(e.TgZ(0,"ui-field",27),e._uU(1),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.Oqu(n.patient.workplace)}}function o(i,m){if(1&i&&(e.TgZ(0,"ui-field",28),e._uU(1),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.Oqu(n.patient.workcountry)}}function C(i,m){if(1&i&&(e.TgZ(0,"ui-field",29),e._uU(1),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.Oqu(n.patient.profession)}}function x(i,m){if(1&i&&(e.TgZ(0,"ui-fieldset",4)(1,"ui-field",16),e._uU(2),e.qZA(),e.TgZ(3,"ui-field",17),e._uU(4),e.qZA(),e.TgZ(5,"ui-field",18),e._uU(6),e.qZA(),e.YNc(7,p,3,4,"ui-field",19),e.YNc(8,h,2,1,"ui-field",20),e.YNc(9,o,2,1,"ui-field",21),e.YNc(10,C,2,1,"ui-field",22),e.qZA(),e.TgZ(11,"ui-fieldset",12)(12,"ui-field",23),e._uU(13),e.qZA(),e.TgZ(14,"ui-field",24),e._uU(15),e.qZA(),e.TgZ(16,"ui-field",25),e._uU(17),e.qZA()()),2&i){const n=e.oxw();e.xp6(2),e.Oqu(n.patient.first_name),e.xp6(2),e.Oqu(n.patient.last_name),e.xp6(2),e.Oqu(n.patient.genderLabel),e.xp6(1),e.Q6J("ngIf",n.patient.birthdate),e.xp6(1),e.Q6J("ngIf",n.patient.workplace),e.xp6(1),e.Q6J("ngIf",n.patient.workcountry),e.xp6(1),e.Q6J("ngIf",n.patient.profession),e.xp6(3),e.Oqu(n.patient.email),e.xp6(2),e.Oqu(n.patient.time_zone),e.xp6(2),e.Oqu(n.patient.status)}}function E(i,m){if(1&i&&(e.TgZ(0,"ui-field",16),e._uU(1),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.Oqu(n.patient.billing_address.first_name)}}function y(i,m){if(1&i&&(e.TgZ(0,"ui-field",17),e._uU(1),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.Oqu(n.patient.billing_address.last_name)}}function A(i,m){if(1&i&&(e.TgZ(0,"ui-field",38),e._uU(1),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.Oqu(n.patient.billing_address.street)}}function D(i,m){if(1&i&&(e.TgZ(0,"ui-field",39),e._uU(1),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.Oqu(n.patient.billing_address.city)}}function Z(i,m){if(1&i&&(e.TgZ(0,"ui-field",40),e._uU(1),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.Oqu(n.patient.billing_address.postal_code)}}function U(i,m){if(1&i&&(e.TgZ(0,"ui-field",41),e._uU(1),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.Oqu(n.patient.billing_address.country)}}function w(i,m){if(1&i&&(e.TgZ(0,"ui-field",42),e._uU(1),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.Oqu(n.patient.billing_address.vat)}}function N(i,m){if(1&i&&(e.TgZ(0,"ui-fieldset",30),e.YNc(1,E,2,1,"ui-field",31),e.YNc(2,y,2,1,"ui-field",32),e.YNc(3,A,2,1,"ui-field",33),e.YNc(4,D,2,1,"ui-field",34),e.YNc(5,Z,2,1,"ui-field",35),e.YNc(6,U,2,1,"ui-field",36),e.YNc(7,w,2,1,"ui-field",37),e.qZA()),2&i){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",null==n.patient.billing_address?null:n.patient.billing_address.first_name),e.xp6(1),e.Q6J("ngIf",null==n.patient.billing_address?null:n.patient.billing_address.last_name),e.xp6(1),e.Q6J("ngIf",null==n.patient.billing_address?null:n.patient.billing_address.street),e.xp6(1),e.Q6J("ngIf",null==n.patient.billing_address?null:n.patient.billing_address.city),e.xp6(1),e.Q6J("ngIf",null==n.patient.billing_address?null:n.patient.billing_address.postal_code),e.xp6(1),e.Q6J("ngIf",null==n.patient.billing_address?null:n.patient.billing_address.country),e.xp6(1),e.Q6J("ngIf",null==n.patient.billing_address?null:n.patient.billing_address.vat)}}const F=function(){return["admin"]},J=[{path:"",component:(()=>{class i{constructor(n,b,O,I){this.route=n,this.patientService=b,this.timeZoneService=O,this.fb=I,this.USER_GENDERS_OPTIONS=f.vH,this.USER_STATUSES_OPTIONS=f.Kl,this.subscription=new d.w,this.form=this.fb.group({first_name:["",u.kI.required],last_name:["",u.kI.required],gender:["",u.kI.required],workplace:["",u.kI.required],workcountry:["",u.kI.required],birthdate:["",u.kI.required],profession:["",u.kI.required],email:["",u.kI.required],time_zone:["",u.kI.required],status:["",u.kI.required]})}ngOnInit(){var n,b;this.patient=null===(b=null===(n=this.route.parent)||void 0===n?void 0:n.parent)||void 0===b?void 0:b.snapshot.data.patient,this.form.patchValue(this.patient),this.timezones$=this.timeZoneService.list(),Object.keys(this.form.controls).map(O=>{var I;this.subscription.add(null===(I=this.form.get(O))||void 0===I?void 0:I.valueChanges.subscribe(q=>this.onFieldChange(O,q)))})}ngOnDestroy(){this.subscription.unsubscribe()}onFieldChange(n,b){n&&b&&this.patientService.update(this.patient.id,{[n]:b}).subscribe()}}return i.\u0275fac=function(n){return new(n||i)(e.Y36(s.gz),e.Y36(r.e),e.Y36(a.F),e.Y36(u.qu))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-patient-personal-data"]],decls:4,vars:4,consts:[[3,"formGroup",4,"hasPermission","hasPermissionElse"],["noPerm",""],["label","Dati fiscali",4,"ngIf"],[3,"formGroup"],["label","Dati personali"],["label","Nome","formControlName","first_name"],["label","Cognome","formControlName","last_name"],["label","Genere","formControlName","gender","type","select",3,"options"],["label","Data di nascita","formControlName","birthdate","type","date"],["label","Citt\xe0 di lavoro","formControlName","workplace"],["label","Stato","formControlName","workcountry"],["label","Professione","formControlName","profession"],["label","Account"],["label","Email","formControlName","email"],["label","Fuso orario","formControlName","time_zone","type","select",3,"options","enableSearch"],["label","Status","formControlName","status","type","select",3,"options"],["label","Nome"],["label","Cognome"],["label","Genere"],["label","Data di nascita",4,"ngIf"],["label","Citt\xe0 di lavoro",4,"ngIf"],["label","Stato",4,"ngIf"],["label","Professione",4,"ngIf"],["label","Email"],["label","Fuso orario"],["label","Status"],["label","Data di nascita"],["label","Citt\xe0 di lavoro"],["label","Stato"],["label","Professione"],["label","Dati fiscali"],["label","Nome",4,"ngIf"],["label","Cognome",4,"ngIf"],["label","Indirizzo",4,"ngIf"],["label","Citt\xe0",4,"ngIf"],["label","CAP",4,"ngIf"],["label","Nazione",4,"ngIf"],["label","Partita IVA/Codice fiscale",4,"ngIf"],["label","Indirizzo"],["label","Citt\xe0"],["label","CAP"],["label","Nazione"],["label","Partita IVA/Codice fiscale"]],template:function(n,b){if(1&n&&(e.YNc(0,M,14,7,"form",0),e.YNc(1,x,18,10,"ng-template",null,1,e.W1O),e.YNc(3,N,8,7,"ui-fieldset",2)),2&n){const O=e.MAs(2);e.Q6J("hasPermission",e.DdM(3,F))("hasPermissionElse",O),e.xp6(3),e.Q6J("ngIf",b.patient.billing_address)}},directives:[_.A,u._Y,u.JL,u.sg,c.e,v.B,u.JJ,u.u,T.C,t.O5],pipes:[t.Ov,t.uU],styles:[""]}),i})()}];let S=(()=>{class i{}return i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[s.Bz.forChild(J)],s.Bz]}),i})();var B=l(3685),L=l(2455),R=l(4980),Q=l(180),Y=l(1660);let k=(()=>{class i{}return i.\u0275fac=function(n){return new(n||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[[t.ez,S,u.UX,B.g,R.R,L.L,Q.f,Y.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.