1"use strict";(self.webpackChunkwebapp=self.webpackChunkwebapp||[]).push([[1185],{2721:(O,f,o)=>{o.d(f,{n:()=>y});var n=o(9808),s=o(3075),h=o(1072),t=o(9695),p=o(5e3);let y=(()=>{class a{}return a.\u0275fac=function(u){return new(u||a)},a.\u0275mod=p.oAB({type:a}),a.\u0275inj=p.cJS({imports:[[n.ez,s.u5,h.Kz,t.F]]}),a})()},2787:(O,f,o)=>{o.d(f,{A:()=>a});var n=o(2654),s=o(5e3),h=o(6165),t=o(9808);function p(r,u){if(1&r&&(s.TgZ(0,"p",2),s._uU(1),s.qZA()),2&r){const l=u.$implicit;s.xp6(1),s.Oqu(l)}}function y(r,u){if(1&r&&(s.ynx(0),s.YNc(1,p,2,1,"p",1),s.BQk()),2&r){const l=s.oxw();s.xp6(1),s.Q6J("ngForOf",l.errors)}}let a=(()=>{class r{constructor(l){this.formErrorsService=l,this.subscription=new n.w}ngOnInit(){var l;this.control&&this.subscription.add(null===(l=this.control.statusChanges)||void 0===l?void 0:l.subscribe(()=>{this.errors=this.formErrorsService.getControlErrors(this.control)}))}ngOnDestroy(){this.subscription.unsubscribe()}}return r.\u0275fac=function(l){return new(l||r)(s.Y36(h.u))},r.\u0275cmp=s.Xpm({type:r,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(l,C){1&l&&s.YNc(0,y,2,1,"ng-container",0),2&l&&s.Q6J("ngIf",C.control&&C.control.dirty&&C.control.invalid)},directives:[t.O5,t.sg],styles:[""]}),r})()},6165:(O,f,o)=>{o.d(f,{u:()=>t});var n=o(3075),s=o(5e3),h=o(5008);let t=(()=>{class p{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 n.NI?(a.markAsDirty(),a.updateValueAndValidity()):Object.keys(a.controls).forEach(r=>{var u,l;null===(u=a.get(r))||void 0===u||u.markAsDirty(),null===(l=a.get(r))||void 0===l||l.updateValueAndValidity(),a.get(r)instanceof n.cw&&this.markAllAsTouched(a.get(r))})}setErrors(a,r){r.error?r.error.errors?Object.keys(r.error.errors).forEach(u=>{var l;const C={};r.error.errors[u].forEach(T=>C[T]=!0),a.get(u)?null===(l=a.get(u))||void 0===l||l.setErrors(C):this.snackbar.error(this.messages[r.error.errors[u][0]]||r.error.errors[u][0],"Errore")}):r.error.error&&this.snackbar.error(r.error.error,"Errore"):this.showMessage()}showMessage(){this.snackbar.error("Si \xe8 verificato un errore, si prega di riprovare.","Errore")}getControlErrors(a){return a.errors?Object.keys(a.errors).map(r=>this.messages[r]?this.messages[r]:r):[]}}return p.\u0275fac=function(a){return new(a||p)(s.LFG(h.o))},p.\u0275prov=s.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"}),p})()},1927:(O,f,o)=>{o.d(f,{a:()=>P});var n=o(5e3),s=o(3075),h=o(9808),t=o(1072),p=o(2787);const y=["input"];function a(c,g){if(1&c&&(n.TgZ(0,"label",6),n._uU(1),n.qZA()),2&c){const e=n.oxw();n.xp6(1),n.Oqu(e.label)}}const r=function(c,g,e){return{"border-error-600":c,"border-grey-300":g,"pl-12":e}};function u(c,g){if(1&c){const e=n.EpF();n.TgZ(0,"input",7,8),n.NdJ("ngModelChange",function(_){return n.CHM(e),n.oxw().model=_})("ngModelChange",function(_){return n.CHM(e),n.oxw().onModelChange(_)}),n.qZA()}if(2&c){const e=n.oxw();n.Q6J("ngClass",n.kEZ(5,r,(null==e.ngControl?null:e.ngControl.dirty)&&(null==e.ngControl?null:e.ngControl.invalid),!(null!=e.ngControl&&e.ngControl.dirty&&null!=e.ngControl&&e.ngControl.invalid),e.icon))("type",e.type)("ngModel",e.model)("readonly",e.readonly)("placeholder",e.placeholder)}}const l=function(c,g,e,m){return{"border-error-600":c,"border-grey-300":g,"pl-12":e,"h-44":m}};function C(c,g){if(1&c){const e=n.EpF();n.TgZ(0,"textarea",9,8),n.NdJ("ngModelChange",function(_){return n.CHM(e),n.oxw().model=_})("ngModelChange",function(_){return n.CHM(e),n.oxw().onModelChange(_)}),n.qZA()}if(2&c){const e=n.oxw();n.Q6J("ngClass",n.l5B(5,l,(null==e.ngControl?null:e.ngControl.dirty)&&(null==e.ngControl?null:e.ngControl.invalid),!(null!=e.ngControl&&e.ngControl.dirty&&null!=e.ngControl&&e.ngControl.invalid),e.icon,!e.rows))("ngModel",e.model)("readonly",e.readonly)("placeholder",e.placeholder)("rows",e.rows)}}function T(c,g){if(1&c&&n._UZ(0,"svg-icon",10),2&c){const e=n.oxw();n.Q6J("key",e.icon)}}let P=(()=>{class c{constructor(e){this.ngControl=e,this.type="input",this.placeholder="",this.onChange=m=>{},this.onTouched=()=>{},e&&(e.valueAccessor=this)}ngOnInit(){}onModelChange(e){this.onChange(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}writeValue(e){this.model=e}focus(){this.input.nativeElement.focus()}}return c.\u0275fac=function(e){return new(e||c)(n.Y36(s.a5,10))},c.\u0275cmp=n.Xpm({type:c,selectors:[["ui-input"]],viewQuery:function(e,m){if(1&e&&n.Gf(y,5),2&e){let _;n.iGM(_=n.CRH())&&(m.input=_.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","
1ngModelChange",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(e,m){1&e&&(n.YNc(0,a,2,1,"label",0),n.TgZ(1,"div",1),n.YNc(2,u,2,9,"input",2),n.YNc(3,C,2,10,"textarea",3),n.YNc(4,T,1,1,"svg-icon",4),n.qZA(),n._UZ(5,"ui-form-errors",5)),2&e&&(n.Q6J("ngIf",m.label),n.xp6(2),n.Q6J("ngIf","textarea"!==m.type),n.xp6(1),n.Q6J("ngIf","textarea"===m.type),n.xp6(1),n.Q6J("ngIf",m.icon),n.xp6(1),n.Q6J("control",m.ngControl))},directives:[h.O5,s.Fj,h.mk,s.JJ,s.On,t.bk,p.A],styles:["[_nghost-%COMP%]{display:block;position:relative}input[type=time][_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{display:none}"]}),c})()},6022:(O,f,o)=>{o.r(f),o.d(f,{PaymentMethodsModule:()=>M});var n=o(9808),s=o(218),h=o(774),t=o(5e3),p=o(9665),y=o(256);let a=(()=>{class i{constructor(d){this.ref=d}ngOnInit(){}addCard(d){this.ref.close(d)}}return i.\u0275fac=function(d){return new(d||i)(t.Y36(p.S))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-card-modal"]],decls:2,vars:1,consts:[[1,"sm:w-160"],[3,"title","paymentMethod"]],template:function(d,E){1&d&&(t.TgZ(0,"div",0)(1,"lib-add-card-form",1),t.NdJ("paymentMethod",function(I){return E.addCard(I)}),t.qZA()()),2&d&&(t.xp6(1),t.Q6J("title","Inserisci i dati della nuova carta"))},directives:[y.c],styles:[""]}),i})();var r=o(5525),u=o(7576),l=o(4445),C=o(4164);const P=[{path:"",component:(()=>{class i{constructor(d,E,x){this.overlayService=d,this.userService=E,this.patientService=x}ngOnInit(){}addCard(){this.overlayService.open(a).afterClosed$.subscribe(d=>{d.data&&this.userService.user&&this.patientService.attachPaymentMethod(this.userService.user.id,d.data.id).subscribe(()=>{this.paymentMethodsList.reload()})})}}return i.\u0275fac=function(d){return new(d||i)(t.Y36(r.F),t.Y36(u.K),t.Y36(l.e))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-payment-methods"]],viewQuery:function(d,E){if(1&d&&t.Gf(h.i,5),2&d){let x;t.iGM(x=t.CRH())&&(E.paymentMethodsList=x.first)}},decls:13,vars:0,consts:[[1,"flex","flex-col","md:flex-row","bg-brand-200","text-dark","p-8","pb-10","rounded","mt-14","relative","md:h-52"],["src","/assets/images/safe.png",1,"w-48","absolute","left-20","-top-16","hidden","md:inline"],[1,"md:w-1/2","md:ml-48","xl:ml-64"],[1,"font-serif","text-xl","font-bold","mb-2"],[1,"font-serif","text-base"],[1,"flex-grow","flex","justify-center","md:items-end","md:justify-end","mt-5","md:mt-0"],["src","/assets/images/payment.svg",1,"mx-auto","mb-2"],[3,"click"]],template:function(d,E){1&d&&(t.TgZ(0,"lib-payment-methods-list")(1,"div",0),t._UZ(2,"img",1),t.TgZ(3,"div",2)(4,"h2",3),t._uU(5,"Aggiungi la carta che userai per i pagamenti: \xe8 sicuro!"),t.qZA(),t.TgZ(6,"p",4),t._uU(7,"Transiti non salva i tuoi dati: vengono salvati e gestiti direttamente da Stripe, i pagamenti sono sicuri ed affidabili."),t.qZA()(),t.TgZ(8,"div",5)(9,"div"),t._UZ(10,"img",6),t.TgZ(11,"ui-button",7),t.NdJ("click",function(){return E.addCard()}),t._uU(12,"Aggiungi una carta"),t.qZA()()()()())},directives:[h.i,C.r],styles:[""]}),i})()}];let c=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[s.Bz.forChild(P)],s.Bz]}),i})();var g=o(8806),e=o(1072),m=o(7535),_=o(1148);let M=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[n.ez,c,g.h,e.Kz,m.v,_.F]]}),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.