1"use strict";(self.webpackChunkwebapp=self.webpackChunkwebapp||[]).push([[4221],{4221:(Y,d,t)=>{t.r(d),t.d(d,{AgendaModule:()=>I});var c=t(9808),p=t(218),m=t(4251),f=t(5161),v=t(846),C=t(2654),e=t(5e3),h=t(2582),x=t(3976),r=t(3075),A=t(7616),w=t(6304),y=t(9571),M=t(1599),T=t(8809),u=t(7146),Z=t(5525),g=t(1072);const J=function(n,l){return{"text-accent-500":n,"text-grey-300":l}};function S(n,l){if(1&n){const o=e.EpF();e.TgZ(0,"a",4),e.NdJ("click",function(){return e.CHM(o),e.oxw().openVideocall()}),e._UZ(1,"svg-icon",5),e._uU(2," Avvia D-stanza "),e.qZA()}if(2&n){const o=e.oxw();e.Q6J("ngClass",e.WLB(1,J,o.canCall,!o.canCall))}}function D(n,l){if(1&n){const o=e.EpF();e.TgZ(0,"a",6),e.NdJ("click",function(){return e.CHM(o),e.oxw().confirm()}),e._UZ(1,"svg-icon",7),e._uU(2," Conferma e salda "),e.qZA()}}let b=(()=>{class n{constructor(o,a){this.overlayService=o,this.videocallService=a,this.AppointmentStatuses=v.lx}ngOnInit(){}openVideocall(){this.canCall&&this.videocallService.open({appointment:this.appointment})}confirm(){this.overlayService.open(T.E,{appointments:[this.appointment]})}get canCall(){return this.appointment.canCall}}return n.\u0275fac=function(o){return new(o||n)(e.Y36(Z.F),e.Y36(u.N))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-event-context-menu"]],inputs:{appointment:"appointment"},features:[e._Bn([u.N])],decls:5,vars:2,consts:[[1,"border","border-grey-300","shadow-2xl","rounded-2xl","bg-white","overflow-hidden","mt-2"],[1,"w-full"],["class","text-sm font-semibold leading-5 block py-3 px-4 cursor-pointer flex items-center",3,"ngClass","click",4,"ngIf"],["class","text-accent-500 text-sm font-semibold leading-5 block py-3 px-4 cursor-pointer flex items-center",3,"click",4,"ngIf"],[1,"text-sm","font-semibold","leading-5","block","py-3","px-4","cursor-pointer","flex","items-center",3,"ngClass","click"],["key","phone",1,"mr-2"],[1,"text-accent-500","text-sm","font-semibold","leading-5","block","py-3","px-4","cursor-pointer","flex","items-center",3,"click"],["key","card",1,"mr-2"]],template:function(o,a){1&o&&(e.TgZ(0,"div",0)(1,"ul",1)(2,"li"),e.YNc(3,S,3,4,"a",2),e.YNc(4,D,3,0,"a",3),e.qZA()()()),2&o&&(e.xp6(3),e.Q6J("ngIf",(null==a.appointment?null:a.appointment.status)===a.AppointmentStatuses.confirmed),e.xp6(1),e.Q6J("ngIf",(null==a.appointment?null:a.appointment.status)===a.AppointmentStatuses.pending))},directives:[c.O5,c.mk,g.bk],styles:[""]}),n})();function E(n,l){1&n&&e._UZ(0,"ui-event-title",11),2&n&&e.Q6J("event",l.event)}const N=[{path:"",component:(()=>{class n{constructor(o){this.appointmentService=o,this.calendar=new f.f(this.appointmentService.list.bind(this.appointmentService),!1,!0),this.viewOptions=[{label:"Settimana",value:m.wr.Week},{label:"Mese",value:m.wr.Month}],this.AppointmentStatuses=v.lx,this.subscription=new C.w}ngOnInit(){this.subscription.add(this.appointmentService.statusChange$.subscribe(()=>{this.calendar.reload()}))}ngOnDestroy(){this.subscription.unsubscribe()}}return n.\u0275fac=function(o){return new(o||n)(e.Y36(h.H))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-agenda"]],decls:13,vars:14,consts:[[1,"rounded-lg","bg-white","shadow","mt-4","overflow-hidden"],[1,"flex","flex-col","sm:flex-row","items-center","justify-between","p-6","border-b","border-grey-200","mb-3","gap-4"],[1,"sm:w-36","w-full",3,"options","ngModel","ngModelChange"],[1,"order-last","sm:order-none","w-full",3,"viewDate","view","viewDateChange"],[1,"w-full","sm:min-w-max","sm:w-auto"],[1,"scroll","lg:overflow-y-auto"],[3,"viewDate","view","events","eventTitleTemplate","dropdownTemplate","dayClicked"],["eventTitleTemplate",""],[3,"disableMaxHeight","widthAuto"],["dropdown",""],[3,"appointment"],[3,"event"]],template:function(o,a){if(1&o&&(e.TgZ(0,"div",0)(1,"div",1)(2,"ui-select",2),e.NdJ("ngModelChange",function(i){return a.calendar.view=i}),e.qZA(),e.TgZ(3,"ui-calendar-nav",3),e.NdJ("viewDateChange",function(i){return a.calendar.viewDate=i}),e.qZA(),e._UZ(4,"div",4),e.qZA(),e.TgZ(5,"div",5)(6,"ui-calendar",6),e.NdJ("dayClicked",function(i){return a.calendar.onDayClicked(i)}),e.ALo(7,"async"),e.qZA()()(),e.YNc(8,E,1,1,"ng-template",null,7,e.W1O),e.TgZ(10,"ui-dropdown",8,9),e._UZ(12,"app-event-context-menu",10),e.qZA()),2&o){const s=e.MAs(9),i=e.MAs(11);e.xp6(2),e.Q6J("options",a.viewOptions)("ngModel",a.calendar.view),e.xp6(1),e.Q6J("viewDate",a.calendar.viewDate)("view",a.calendar.view),e.xp6(3),e.Q6J("viewDate",a.calendar.viewDate)("view",a.calendar.view)("events",e.lcZ(7,12,a.calendar.events$))("eventTitleTemplate",s)("dropdownTemplate",i
1),e.xp6(4),e.Q6J("disableMaxHeight",!0)("widthAuto",!0),e.xp6(2),e.Q6J("appointment",i.meta)}},directives:[x.H,r.JJ,r.On,A.z,w.e,y.D,M.J,b],pipes:[c.Ov],styles:["@media (min-width: 1024px){.scroll[_ngcontent-%COMP%]{height:calc(100vh - 280px)}}"]}),n})()}];let O=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[p.Bz.forChild(N)],p.Bz]}),n})();var Q=t(2141),F=t(292),U=t(8806),z=t(6262),B=t(6891),H=t(9655);let I=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[c.ez,O,Q.A,F._,r.u5,U.h,z.k,g.Kz,B.h,H.W]]}),n})()}}]);
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.