1"use strict";(self.webpackChunkwebapp=self.webpackChunkwebapp||[]).push([[4914],{2787:(T,h,r)=>{r.d(h,{A:()=>l});var o=r(2654),i=r(5e3),c=r(6165),g=r(9808);function m(n,d){if(1&n&&(i.TgZ(0,"p",2),i._uU(1),i.qZA()),2&n){const a=d.$implicit;i.xp6(1),i.Oqu(a)}}function e(n,d){if(1&n&&(i.ynx(0),i.YNc(1,m,2,1,"p",1),i.BQk()),2&n){const a=i.oxw();i.xp6(1),i.Q6J("ngForOf",a.errors)}}let l=(()=>{class n{constructor(a){this.formErrorsService=a,this.subscription=new o.w}ngOnInit(){var a;this.control&&this.subscription.add(null===(a=this.control.statusChanges)||void 0===a?void 0:a.subscribe(()=>{this.errors=this.formErrorsService.getControlErrors(this.control)}))}ngOnDestroy(){this.subscription.unsubscribe()}}return n.\u0275fac=function(a){return new(a||n)(i.Y36(c.u))},n.\u0275cmp=i.Xpm({type:n,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(a,C){1&a&&i.YNc(0,e,2,1,"ng-container",0),2&a&&i.Q6J("ngIf",C.control&&C.control.dirty&&C.control.invalid)},directives:[g.O5,g.sg],styles:[""]}),n})()},9695:(T,h,r)=>{r.d(h,{F:()=>c});var o=r(9808),i=r(5e3);let c=(()=>{class g{}return g.\u0275fac=function(e){return new(e||g)},g.\u0275mod=i.oAB({type:g}),g.\u0275inj=i.cJS({imports:[[o.ez]]}),g})()},6165:(T,h,r)=>{r.d(h,{u:()=>g});var o=r(3075),i=r(5e3),c=r(5008);let g=(()=>{class m{constructor(l){this.snackbar=l,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(l){l instanceof o.NI?(l.markAsDirty(),l.updateValueAndValidity()):Object.keys(l.controls).forEach(n=>{var d,a;null===(d=l.get(n))||void 0===d||d.markAsDirty(),null===(a=l.get(n))||void 0===a||a.updateValueAndValidity(),l.get(n)instanceof o.cw&&this.markAllAsTouched(l.get(n))})}setErrors(l,n){n.error?n.error.errors?Object.keys(n.error.errors).forEach(d=>{var a;const C={};n.error.errors[d].forEach(I=>C[I]=!0),l.get(d)?null===(a=l.get(d))||void 0===a||a.setErrors(C):this.snackbar.error(this.messages[n.error.errors[d][0]]||n.error.errors[d][0],"Errore")}):n.error.error&&this.snackbar.error(n.error.error,"Errore"):this.showMessage()}showMessage(){this.snackbar.error("Si \xe8 verificato un errore, si prega di riprovare.","Errore")}getControlErrors(l){return l.errors?Object.keys(l.errors).map(n=>this.messages[n]?this.messages[n]:n):[]}}return m.\u0275fac=function(l){return new(l||m)(i.LFG(c.o))},m.\u0275prov=i.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},1927:(T,h,r)=>{r.d(h,{a:()=>b});var o=r(5e3),i=r(3075),c=r(9808),g=r(1072),m=r(2787);const e=["input"];function l(p,f){if(1&p&&(o.TgZ(0,"label",6),o._uU(1),o.qZA()),2&p){const t=o.oxw();o.xp6(1),o.Oqu(t.label)}}const n=function(p,f,t){return{"border-error-600":p,"border-grey-300":f,"pl-12":t}};function d(p,f){if(1&p){const t=o.EpF();o.TgZ(0,"input",7,8),o.NdJ("ngModelChange",function(v){return o.CHM(t),o.oxw().model=v})("ngModelChange",function(v){return o.CHM(t),o.oxw().onModelChange(v)}),o.qZA()}if(2&p){const t=o.oxw();o.Q6J("ngClass",o.kEZ(5,n,(null==t.ngControl?null:t.ngControl.dirty)&&(null==t.ngControl?null:t.ngControl.invalid),!(null!=t.ngControl&&t.ngControl.dirty&&null!=t.ngControl&&t.ngControl.invalid),t.icon))("type",t.type)("ngModel",t.model)("readonly",t.readonly)("placeholder",t.placeholder)}}const a=function(p,f,t,_){return{"border-error-600":p,"border-grey-300":f,"pl-12":t,"h-44":_}};function C(p,f){if(1&p){const t=o.EpF();o.TgZ(0,"textarea",9,8),o.NdJ("ngModelChange",function(v){return o.CHM(t),o.oxw().model=v})("ngModelChange",function(v){return o.CHM(t),o.oxw().onModelChange(v)}),o.qZA()}if(2&p){const t=o.oxw();o.Q6J("ngClass",o.l5B(5,a,(null==t.ngControl?null:t.ngControl.dirty)&&(null==t.ngControl?null:t.ngControl.invalid),!(null!=t.ngControl&&t.ngControl.dirty&&null!=t.ngControl&&t.ngControl.invalid),t.icon,!t.rows))("ngModel",t.model)("readonly",t.readonly)("placeholder",t.placeholder)("rows",t.rows)}}function I(p,f){if(1&p&&o._UZ(0,"svg-icon",10),2&p){const t=o.oxw();o.Q6J("key",t.icon)}}let b=(()=>{class p{constructor(t){this.ngControl=t,this.type="input",this.placeholder="",this.onChange=_=>{},this.onTouched=()=>{},t&&(t.valueAccessor=this)}ngOnInit(){}onModelChange(t){this.onChange(t)}
1registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}writeValue(t){this.model=t}focus(){this.input.nativeElement.focus()}}return p.\u0275fac=function(t){return new(t||p)(o.Y36(i.a5,10))},p.\u0275cmp=o.Xpm({type:p,selectors:[["ui-input"]],viewQuery:function(t,_){if(1&t&&o.Gf(e,5),2&t){let v;o.iGM(v=o.CRH())&&(_.input=v.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(t,_){1&t&&(o.YNc(0,l,2,1,"label",0),o.TgZ(1,"div",1),o.YNc(2,d,2,9,"input",2),o.YNc(3,C,2,10,"textarea",3),o.YNc(4,I,1,1,"svg-icon",4),o.qZA(),o._UZ(5,"ui-form-errors",5)),2&t&&(o.Q6J("ngIf",_.label),o.xp6(2),o.Q6J("ngIf","textarea"!==_.type),o.xp6(1),o.Q6J("ngIf","textarea"===_.type),o.xp6(1),o.Q6J("ngIf",_.icon),o.xp6(1),o.Q6J("control",_.ngControl))},directives:[c.O5,i.Fj,c.mk,i.JJ,i.On,g.bk,m.A],styles:["[_nghost-%COMP%]{display:block;position:relative}input[type=time][_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{display:none}"]}),p})()},3685:(T,h,r)=>{r.d(h,{g:()=>e});var o=r(9808),i=r(3075),c=r(1072),g=r(9695),m=r(5e3);let e=(()=>{class l{}return l.\u0275fac=function(d){return new(d||l)},l.\u0275mod=m.oAB({type:l}),l.\u0275inj=m.cJS({imports:[[o.ez,i.u5,c.Kz,g.F]]}),l})()},4914:(T,h,r)=>{r.r(h),r.d(h,{RegisterModule:()=>D});var o=r(9808),i=r(218),c=r(3075),g=r(1158),m=r(846),e=r(5e3),l=r(4835),n=r(6165),d=r(4164),a=r(1927),C=r(3976),I=r(6630);function b(s,x){if(1&s){const u=e.EpF();e.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),e._uU(4,"Benvenuto!"),e.qZA()()(),e.TgZ(5,"h2",6),e._uU(6,"Che cosa stai cercando?"),e.qZA(),e.TgZ(7,"div",7)(8,"div",8)(9,"p",9),e._uU(10,"Informazioni e orientamento"),e.qZA(),e.TgZ(11,"ui-button",10),e.NdJ("click",function(){return e.CHM(u),e.oxw().therapyType="reception"}),e._uU(12,"Prenota un colloquio di accoglienza GRATUITO"),e.qZA()(),e.TgZ(13,"div",11)(14,"p",9),e._uU(15,"Cominciare la terapia"),e.qZA(),e.TgZ(16,"ui-button",10),e.NdJ("click",function(){return e.CHM(u),e.oxw().therapyType="therapist"}),e._uU(17,"Prenota il PRIMO colloquio"),e.qZA()()()()}2&s&&(e.xp6(11),e.Q6J("block",!0),e.xp6(5),e.Q6J("block",!0))}function p(s,x){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&s){const u=e.oxw(2);e.xp6(1),e.hij("con ",u.therapistName,"")}}const f=function(){return["../login"]};function t(s,x){if(1&s){const u=e.EpF();e.TgZ(0,"div",12)(1,"div",13)(2,"div",14)(3,"h1",15),e._uU(4," Registrati per prenotare il TUO colloquio "),e.YNc(5,p,2,1,"span",16),e.qZA(),e.TgZ(6,"form",17)(7,"div",18),e._UZ(8,"ui-input",19)(9,"ui-input",20),e.qZA(),e._UZ(10,"ui-input",21)(11,"ui-input",22)(12,"ui-select",23),e.TgZ(13,"ui-checkbox",24)(14,"span",25),e._uU(15," Ho letto la "),e.TgZ(16,"a",26),e._uU(17,"Privacy Policy"),e.qZA(),e._uU(18," e autorizzo Transiti all'utilizzo dei dati sensibili. "),e.qZA()(),e.TgZ(19,"ui-button",27),e.NdJ("click",function(){return e.CHM(u),e.oxw().register()}),e._uU(20,"Registrati"),e.qZA()(),e.TgZ(21,"p",28),e._uU(22," Hai gi\xe0 un account? "),e.TgZ(23,"a",29),e._uU(24,"Accedi alla D-stanza"),e.qZA()()(),e.TgZ(25,"div",30),e._UZ(26,"img",31),e.qZA()()()}if(2&s){const u=e.oxw();e.xp6(5),e.Q6J("ngIf",u.therapistName),e.xp6(1),e.Q6J("formGroup",u.form),e.xp6(6),e.Q6J("options",u.USER_GENDERS_OPTIONS),e.xp6(7),e.Q6J("block",!0)("loading",u.loading),e.xp6(4),e.Q6J("routerLink",e.DdM(6,f))}}const v=[{path:"",component:(()=>{class s{constructor(u,y,M,U,Z){this.authService=u,this.fb=y,this.formErrorsService=M,this.route=U,this.router=Z,this.USER_GENDERS_OPTIONS=m.vH,this.form=this.fb.group({first_name:["",[c.kI.required]],last_name:["",[c.kI.required]],privacy:["",[c.kI.requiredTrue]],email:["",[c.kI.required,
1c.kI.email]],password:["",[c.kI.required]],gender:["",[c.kI.required]],time_zone:g.tz.guess()})}ngOnInit(){this.therapistName=this.route.snapshot.queryParams.therapist,this.therapistName&&("reception"===this.therapistName?(this.therapyType="reception",this.therapistName="l'accoglienza"):this.therapyType="therapist")}register(){this.form.valid?(this.loading=!0,this.authService.register(this.form.value).subscribe(u=>{this.router.navigate(["/onboarding/"+this.therapyType],{queryParams:{therapist:this.therapistName}})},u=>{this.formErrorsService.setErrors(this.form,u),this.loading=!1})):this.formErrorsService.markAllAsTouched(this.form)}}return s.\u0275fac=function(u){return new(u||s)(e.Y36(l.e),e.Y36(c.qu),e.Y36(n.u),e.Y36(i.gz),e.Y36(i.F0))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-register"]],decls:2,vars:2,consts:[["class","container-full pt-18 pb-5 text-center",4,"ngIf"],["class","container-full pt-16 pb-5",4,"ngIf"],[1,"container-full","pt-18","pb-5","text-center"],[1,"grid","grid-cols-12","gap-x-5","mb-18"],[1,"bg-brand-200","col-span-12","sm:col-start-3","sm:col-span-8","rounded-lg","p-5","relative"],[1,"font-medium","text-xl","uppercase"],[1,"font-serif","font-bold","text-3xl","mb-12"],[1,"grid","md:grid-cols-12","gap-5"],[1,"bg-white","shadow-md","rounded-lg","px-6","py-8","md:col-span-6","lg:col-start-3","lg:col-span-4","flex","flex-col"],[1,"mb-6","flex-grow"],["size","big",3,"block","click"],[1,"bg-white","shadow-md","rounded-lg","px-6","py-8","md:col-span-6","lg:col-span-4","flex","flex-col"],[1,"container-full","pt-16","pb-5"],[1,"grid","grid-cols-12","gap-x-5"],[1,"col-span-12","sm:col-span-6"],[1,"text-dark","font-bold","text-3xl","font-serif","mb-8"],[4,"ngIf"],[3,"formGroup"],[1,"grid","md:grid-cols-2","gap-x-5","gap-y-8","mb-8"],["formControlName","first_name","label","Nome","placeholder","Il tuo nome"],["formControlName","last_name","label","Cognome","placeholder","Il tuo cognome"],["formControlName","email","label","Email","icon","patients","placeholder","La tua email",1,"mb-8"],["formControlName","password","label","Password","icon","password","placeholder","La tua password","type","password",1,"mb-8"],["formControlName","gender","label","Genere",1,"mb-8",3,"options"],["formControlName","privacy",1,"text-sm","mb-8","block"],[1,"ml-2"],["href","https://transiti.net/privacy-policy/","target","_blank",1,"font-bold"],[3,"block","loading","click"],[1,"text-sm","text-center","mt-10","text-dark"],[1,"text-link",3,"routerLink"],[1,"col-span-4","col-start-9","hidden","sm:block"],["src","/assets/images/register.png",1,"w-full","h-auto"]],template:function(u,y){1&u&&(e.YNc(0,b,18,2,"div",0),e.YNc(1,t,27,7,"div",1)),2&u&&(e.Q6J("ngIf",!y.therapyType),e.xp6(1),e.Q6J("ngIf",y.therapyType))},directives:[o.O5,d.r,c._Y,c.JL,c.sg,a.a,c.JJ,c.u,C.H,I.b,i.yS],styles:[""]}),s})()}];let E=(()=>{class s{}return s.\u0275fac=function(u){return new(u||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[[i.Bz.forChild(v)],i.Bz]}),s})();var O=r(3685),A=r(8806),P=r(2721),R=r(2141);let D=(()=>{class s{}return s.\u0275fac=function(u){return new(u||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[[o.ez,E,c.UX,O.g,A.h,P.n,R.A]]}),s})()}}]);
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.