1"use strict";(self.webpackChunkwebapp=self.webpackChunkwebapp||[]).push([[8812],{4563:(h,d,n)=>{n.d(d,{O:()=>v});var r=n(1158);function v(u,m,p){let l=r(m,"HH:mm");return p&&(l=l.add(p,"minutes")),r(u).set({hour:l.get("hour"),minute:l.get("minute"),second:l.get("second")}).utc().toISOString()}},1396:(h,d,n)=>{n.d(d,{E:()=>v});var r=n(1158);function v(u,m,p){return"http://www.google.com/calendar/event?action=TEMPLATE&dates="+r(u).utc().format("YYYYMMDD[T]HHmmss[Z]")+"/"+r(m).utc().format("YYYYMMDD[T]HHmmss[Z]")+"&text="+p}},8812:(h,d,n)=>{n.r(d),n.d(d,{ReceptionModule:()=>j});var r=n(9808),g=n(218),v=n(1396),u=n(4563),m=n(1158),p=n(8929),l=n(1059),M=n(7545),e=n(5e3),Z=n(7576),b=n(4445),S=n(5008),R=n(2582),z=n(5613),f=n(3075),A=n(5268),E=n(5850),J=n(4164),D=n(1927);function Y(o,a){if(1&o){const t=e.EpF();e.TgZ(0,"ui-time-selector",15),e.NdJ("timeSelect",function(c){return e.CHM(t),e.oxw(2).selectTime(c)}),e.qZA()}2&o&&e.Q6J("times",a.ngIf)}function O(o,a){1&o&&(e.TgZ(0,"div",16),e._UZ(1,"ui-spinner",17),e.qZA()),2&o&&(e.xp6(1),e.Q6J("diameter",80))}function U(o,a){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",2)(2,"div",3)(3,"h2",4),e._uU(4,"Seleziona data e ora del tuo colloquio gratuito di accoglienza"),e.qZA(),e.TgZ(5,"p",5),e._uU(6,"Durante il colloquio d'accoglienza parlerai con uno psicologo specializzato che ti ascolter\xe0 e ti guider\xe0 verso il percorso pi\xf9 adatto a te."),e.qZA()()(),e.TgZ(7,"div",6)(8,"div",7)(9,"div",8)(10,"div",9),e._uU(11,"Orari mostrati con fuso orario"),e.qZA(),e.TgZ(12,"lib-time-zone",10),e.NdJ("ngModelChange",function(c){return e.CHM(t),e.oxw().userService.user.time_zone=c})("ngModelChange",function(c){return e.CHM(t),e.oxw().onTimezoneChange(c)}),e.qZA()(),e.YNc(13,Y,1,1,"ui-time-selector",11),e.ALo(14,"async"),e.YNc(15,O,2,1,"ng-template",null,12,e.W1O),e.TgZ(17,"div",13)(18,"ui-button",14),e.NdJ("click",function(){return e.CHM(t),e.oxw().next()}),e._uU(19,"Prenota colloquio"),e.qZA()()()(),e.BQk()}if(2&o){const t=e.MAs(16),i=e.oxw();e.xp6(12),e.Q6J("ngModel",i.userService.user.time_zone),e.xp6(1),e.Q6J("ngIf",e.lcZ(14,5,i.times$))("ngIfElse",t),e.xp6(5),e.Q6J("block",!0)("disabled",!i.userService.onboarding.selectedTime)}}function y(o,a){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",18)(2,"div",3)(3,"h2",19),e._uU(4,"C'\xe8 qualcosa che vorresti condividere con il servizio d'accoglienza prima d'incontrarci?"),e.qZA(),e.TgZ(5,"ui-input",20),e.NdJ("ngModelChange",function(c){return e.CHM(t),e.oxw().notes=c}),e.qZA(),e.TgZ(6,"div",21)(7,"ui-button",22),e.NdJ("click",function(){return e.CHM(t),e.oxw().reserve()}),e._uU(8,"Salta"),e.qZA(),e.TgZ(9,"ui-button",23),e.NdJ("click",function(){return e.CHM(t),e.oxw().reserve()}),e._uU(10,"Invia"),e.qZA()()()(),e.BQk()}if(2&o){const t=e.oxw();e.xp6(5),e.Q6J("ngModel",t.notes),e.xp6(2),e.Q6J("block",!0),e.xp6(2),e.Q6J("block",!0)}}const I=function(){return["/patient"]};function Q(o,a){if(1&o&&(e.ynx(0),e.TgZ(1,"h2",24),e._uU(2,"Il tuo colloquio d'accoglienza \xe8 confermato"),e.qZA(),e.TgZ(3,"div",25)(4,"div",26)(5,"h1",27),e._uU(6),e.ALo(7,"date"),e.qZA()()(),e.TgZ(8,"p",28)(9,"a",29),e._uU(10,"+ Aggiungi a Google Calendar"),e.qZA()(),e.TgZ(11,"div",18)(12,"p",30),e._uU(13,"Ora hai accesso alla tua area personale e riservata per effettuare il tuo colloquio e comunicare con noi"),e.qZA()(),e.TgZ(14,"div",31)(15,"div",32)(16,"ui-button",33),e._uU(17,"Accedi alla tua area personale"),e.qZA()()(),e.BQk()),2&o){const t=e.oxw();e.xp6(6),e.AsE("",e.xi3(7,5,t.userService.onboarding.selectedTime.date,"fullDate")," - ",t.userService.onboarding.selectedTime.time,""),e.xp6(3),e.Q6J("href",t.googleCalendarLink,e.LSH),e.xp6(7),e.Q6J("block",!0)("routerLink",e.DdM(8,I))}}const H=[{path:"",component:(()=>{class o{constructor(t,i,c,s){this.userService=t,this.patientService=i,this.snackbar=c,this.appointmentService=s,this.step=1,this.reload$=new p.xQ}ngOnInit(){this.times$=this.reload$.pipe((0,l.O)(""),(0,M.w)(()=>this.appointmentService.listSlots({end_date:m().add(11,"days").format("YYYY-MM-DD")})))}onTimezoneChange(t){m.tz.setDefault(t),this.userService.user&&this.patientService.update(this.userService.user.id,{time_zone:t}).subscribe(()=>{this.reload$.next()})}next(){this.step++}reserve(){var t,i,c,s;const _=(0,u.O)(null===(t=this.userService.onboarding.selectedTime)||void 0===t?void 0:t.date,null===(i=this.userService.onboarding.selectedTime)||void 0===i?void 0:i.time),T=(0,u.O)(null===(c=this.userService.onboarding.selectedTime)||void 0===c?void 0:c.date,null===(s=this.userService.onboarding.selectedTime)||void 0===s?void 0:s.time,60);this.appointmentService.createReception({start_date:_,end_date:T,notes:this.notes}).subscribe(C=>{this.step++,this.setGoogleCalendarLink(_,T),this.userService.user&&this.patientService.update(this.userService.user.id,{onboarding:!0}).subscribe()},C=>{var x;const K=(null===(x=C.error.errors)||void 0===x?void 0:x.start_date)?"La data selezionata non \xe8 pi\xf9 disponibile":"Si \xe8 verificato un errore";this.snackbar.error(K,"Errore"),this.step--})}setGoogleCalendarLink(t,i){this.googleCalendarLink=(0,v.E)(t,i,"Colloquio accoglienza D-stanza")}selectTime(t){this.userService.onboarding.selectedTime=t}}return o.\u0275fac=function(t){return new(t||o)(e.Y36(Z.K),e.Y36(b.e),e.Y36(S.o),e.Y36(R.H))},o.\u0275cmp=e.Xpm({type:o,selectors:[["app-reception"]],decls:4,vars:3,consts:[[1,"container-full","pt-10","pb-5","text-center"],[4,"ngIf"],[1,"grid","lg:grid-cols-12","gap-x-5","mb-12"],[1,"lg:col-start-4","col-span-6"],[1,"font-serif","font-bold","text-3xl","mb-2"],[1,"font-serif","text-base"],[1,"lg:grid","grid-cols-12","gap-x-5"],[1,"bg-white","shadow-base","rounded-lg","px-1","lg:px-8","py-6","lg:col-start-3","col-span-8","flex","items-center","flex-col"],[1,"flex","items-center","justify-center","mb-8"],[1,"text-grey-500","text-sm","mr-4"],[3,"ngModel","ngModelChange"],["height","267",3,"times","timeSelect",4,"ngIf","ngIfElse"],["loading",""],[1,"mt-9","w-72"],[3,"block","disabled","click"],["height","267",3,"times","timeSelect"],[1,"flex","justify-center","mt-5"],[3,"diameter"],[1,"grid","md:grid-cols-12","gap-x-5","mt-8"],[1,"font-serif","font-bold","text-3xl","mb-8","mt-12"],["type","textarea","placeholder","Messaggio per l\u2019accoglienza",3,"ngModel","ngModelChange"],[1,"mt-10","flex","gap-5"],["fill","outline",3,"block","click"],[3,"block","click"],[1,"font-serif","font-bold","text-3xl","mb-12","mt-12"],[1,"grid","md:grid-cols-12","gap-x-5"],[1,"bg-brand-200","md:col-start-3","md:col-end-11","rounded-lg","p-5","relative"],[1,"font-medium","text-xl","uppercase"],[1,"mt-6"],["target","_blank",1,"text-link",3,"href"],[1,"md:col-start-4","col-span-6","text-sm"],[1,"mt-16","flex","justify-center"],[1,"w-72"],[3,"block","routerLink"]],template:function(t,i){1&t&&(e.TgZ(0,"div",0),e.YNc(1,U,20,7,"ng-container",1),e.YNc(2,y,11,3,"ng-container",1),e.YNc(3,Q,18,9,"ng-container",1),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",1===i.step),e.xp6(1),e.Q6J("ngIf",2===i.step),e.xp6(1),e.Q6J("ngIf",3===i.step))},directives:[r.O5,z.F,f.JJ,f.On,A.K,E.O,J.r,D.a,g.rH],pipes:[r.Ov,r.uU],styles:[""]}),o})()}];let L=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[g.Bz.forChild(H)],g.Bz]}),o})();var B=n(1332),N=n(8806),P=n(3685),k=n(1321),F=n(1148);let j=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.oAB({type:o}),o.\u0275inj=e.cJS({imports:[[r.ez,L,B.U,N.h,P.g,f.u5,k.d,F.F]]}),o})()}}]);
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.