PageSourceSearch

https://szerzi.hu/1857.64ab1bad63410c4b.js

js szerzi.hu collected 2026-10-04 13:26:17 UTC 47,057 bytes, 27 lines download raw bytes

1"use strict";(self.webpackChunkszerzi_front=self.webpackChunkszerzi_front||[]).push([[1857],{91857:(nt,W,r)=>{r.d(W,{g:()=>E});var H=r(97582),p=r(37340),d=r(36057),x=r(44224),N=r(45218),Y=r(78321),u=r(36416),c=r(43455),M=r(90895),T=r(51236),S=r(47910),w=r(35119),D=r(86833),A=r(56463),k=r(85866),O=r(80737),y=r(24185),L=r(35650),K=r(59756),P=r(21186),B=r(77579),V=r(17445),b=r(54968),J=r(28746),F=r(82722),e=r(94650),Q=r(49651),R=r(32925),G=r(50211),j=r(20494),$=r(14206),q=r(81664),X=r(69872),ee=r(61479),te=r(3417),ne=r(29262),ie=r(55393),g=r(36895),se=r(60630),oe=r(66616),ae=r(47044),re=r(21811),le=r(47423),ce=r(46581),I=r(20545),de=r(65681),he=r(37570),_e=r(43398),me=r(81801);
2/*
3     * @license
4     * Szerzi UG (haftungsbeschränkt) CONFIDENTIAL
5     * Unpublished Copyright (c) 2021 Szerzi UG (haftungsbeschränkt), All Rights Reserved.
6     *
7     * NOTICE: All information contained herein is, and remains the property of Szerzi UG (haftungsbeschränkt)
8     * The intellectual and technical concepts contained herein are proprietary to Szerzi UG (haftungsbeschränkt)
9     * and may be covered by E.U. and Foreign Patents, patents in process, and are protected by
10     * trade secret or copyright law.
11     *
12     * Dissemination of this information or reproduction of this material is strictly forbidden
13     * unless prior written permission is obtained from Szerzi UG (haftungsbeschränkt). Access to the source code
14     * obtained herein is hereby forbidden to anyone except current Szerzi UG (haftungsbeschränkt) employees,
15     * managers or contractors who have executed Confidentiality and Non-disclosure agreements
16     * explicitly covering such access.
17     *
18     * The copyright notice above does not evidence any actual or intended publication or disclosure
19     * of this source code, which includes information that is confidential and/or proprietary,
20     * and is a trade secret, of Szerzi UG (haftungsbeschränkt) ANY REPRODUCTION, MODIFICATION, DISTRIBUTION,
21     * PUBLIC PERFORMANCE, OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE
22     * EXPRESS WRITTEN CONSENT OF Szerzi UG (haftungsbeschränkt) IS STRICTLY PROHIBITED, AND IN VIOLATION OF
23     * APPLICABLE LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE
24     * AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS TO REPRODUCE, DISCLOSE OR
25     * DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE,
26     * IN WHOLE OR IN PART.
27     */const ue=["messageTemplate"],ve=["weekView"],pe=function(o){return{color:o,paddingRight:"8px"}};function ge(o,n){if(1&o&&(e.TgZ(0,"div",13),e._UZ(1,"i",14),e.TgZ(2,"div",15),e._uU(3),e.ALo(4,"translate"),e._UZ(5,"br"),e._uU(6),e.ALo(7,"translate"),e.qZA()()),2&o){const t=e.oxw();e.xp6(1),e.Akn(e.VKq(8,pe,t.ColorSettings.Danger)),e.xp6(2),e.hij(" ",e.lcZ(4,4,"LAWYER.SCHEDULER.MESSAGES.OVERLAP.TITLE")," "),e.xp6(3),e.hij(" ",e.lcZ(7,6,"LAWYER.SCHEDULER.MESSAGES.OVERLAP.CONTENT")," ")}}function Ee(o,n){if(1&o&&e._UZ(0,"app-matchmaker-scheduler-information",16),2&o){const t=e.oxw();e.Q6J("configuration",t.backendConfiguration)}}const Z=function(o){return{days:o}},z=function(o){return{limit:o}};function fe(o,n){if(1&o){const t=e.EpF();e.TgZ(0,"div",17)(1,"div",18)(2,"div",19)(3,"button",20),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.setView(i.CalendarView.Week))}),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"button",21),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.setView(i.CalendarView.Month))}),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.TgZ(9,"button",22),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.previousStepAllowed?i.view===i.CalendarView.Week?i.setPreviousWeek():i.setPreviousMonth():i.setPreviousTooltipToShow())}),e.ALo(10,"translate"),e._UZ(11,"i",23),e.qZA(),e.TgZ(12,"button",24),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.nextStepAllowed?i.view===i.CalendarView.Week?i.setNextWeek():i.setNextMonth():i.setNextTooltipToShow())}),e.ALo(13,"translate"),e._UZ(14,"i",25),e.qZA(),e.TgZ(15,"button",26),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.setToday())}),e._uU(16),e.ALo(17,"translate"),e.qZA()()(),e.TgZ(18,"div",27)(19,"h4"),e._uU(20),e.ALo(21,"date"),e.ALo(22,"date"),e.qZA()(),e.TgZ(23,"div",28)(24,"button",29),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.events.length>=i.backendConfiguration.maxIntervalCount?null:i.openEventModal())}),e.ALo(25,"translate"),e._UZ(26,"i",30),e._uU(27),e.ALo(28,"translate"),e.qZA()()()}if(2&o){const t=e.oxw();e.xp6(3),e.Q6J("nzType",t.view===t.CalendarView.Week?"primary":"default"),e.xp6(1),e.hij(" ",e.lcZ(5,16,"LAWYER.SCHEDULER.VIEW_MODE.WEEK")," "),e.xp6(2),e.Q6J("nzType",t.view===t.CalendarView.Month?"primary":"default"),e.xp6(1),e.hij(" ",e.lcZ(8,18,"LAWYER.SCHEDULER.VIEW_MODE.MONTH")," "),e.xp6(2),e.ekj("disabled",!t.previousStepAllowed),e.Q6J("nzTooltipTitle",t.previousStepReached?e.lcZ(10,20,"LAWYER.SCHEDULER.STEPPER.INFO.PREVIOUS_NOT_ALLOWED"):null),e.xp6(3),e.ekj("disabled",!t.nextStepAllowed),e.Q6J("nzTooltipTitle",t.nextStepReached?e.xi3(13,22,"LAWYER.SCHEDULER.STEPPER.INFO.NEXT_NOT_ALLOWED",e.VKq(42,Z,t.backendConfiguration.presetTime/t.SchedulerSettings.oneDaysLengthInMilliseconds)):null),e.xp6(4),e.hij(" ",e.lcZ(17,25,"LAWYER.SCHEDULER.STEPPER.TODAY")," "),e.xp6(4),e.AsE(" ",e.gM2(21,27,t.viewDateStart,"yyyy. MMMM d.","",t.currentLanguage)," - ",e.gM2(22,32,t.viewDateEnd,"yyyy. MMMM d.","",t.currentLanguage)," "),e.xp6(4),e.Q6J("nzTooltipTitle",t.events.length>=t.backendConfiguration.maxIntervalCount?e.xi3(25,37,"LAWYER.SCHEDULER.MESSAGES.LIMIT_REACHED",e.VKq(44,z,t.backendConfiguration.maxIntervalCount)):null)("nzType",t.events.length>=t.backendConfiguration.maxIntervalCount?"default":"primary"),e.xp6(3),e.hij(" ",e.lcZ(28,40,"LAWYER.SCHEDULER.EVENT_MODAL.CREATE.OPENER")," ")}}function Te(o,n){if(1&o){const t=e.EpF();e.TgZ(0,"div",31)(1,"div",32)(2,"div",33)(3,"div",34)(4,"button",20),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.setView(i.CalendarView.Week))}),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"button",35),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.setView(i.CalendarView.Month))}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",36),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.setToday())}),e._uU(11),e.ALo(12,"translate"),e.qZA()(),e.TgZ(13,"div")(14,"button",37),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.previousStepAllowed?i.view===i.CalendarView.Week?i.setPreviousWeek():i.setPreviousMonth():i.setPreviousTooltipToShow())}),e.ALo(15,"translate"),e._UZ(16,"i",38),e.qZA(),e.TgZ(17,"button",39),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.nextStepAllowed?i.view===i.CalendarView.Week?i.setNextWeek():i.setNextMonth():i.setNextTooltipToShow())}),e.ALo(18,"translate"),e._UZ(19,"i",40),e.qZA()()(),e.TgZ(20,"div",41)(21,"button",29),e.NdJ("click",function(){e.CHM(t);const i=e.oxw();return e.KtG(i.events.length>=i.backendConfiguration.maxIntervalCount?null:i.openEventModal())}),e.ALo(22,"translate"),e._UZ(23,"i",30),e._uU(24),e.ALo(25,"translate"),e.qZA()()(),e.TgZ(26,"div",42)(27,"h4"),e._uU(28),e.ALo(29,"date"),e.ALo(30,"date"),e.qZA()()()}if(2&o){const t=e.oxw();e.xp6(4),e.Q6J("nzType",t.view===t.CalendarView.Week?"primary":"default"),e.xp6(1),e.hij(" ",e.lcZ(6,16,"LAWYER.SCHEDULER.VIEW_MODE.WEEK")," "),e.xp6(2),e.Q6J("nzType",t.view===t.CalendarView.Month?"primary":"default"),e.xp6(1),e.hij(" ",e.lcZ(9,18,"LAWYER.SCHEDULER.VIEW_MODE.MONTH")," "),e.xp6(3),e.hij(" ",e.lcZ(12,20,"LAWYER.SCHEDULER.STEPPER.TODAY")," "),e.xp6(3),e.ekj("disabled",!t.previousStepAllowed),e.Q6J("nzTooltipTitle",t.previousStepReached?e.lcZ(15,22,"LAWYER.SCHEDULER.STEPPER.INFO.PREVIOUS_NOT_ALLOWED"):null),e.xp6(3),e.ekj("disabled",!t.nextStepAllowed),e.Q6J("nzTooltipTitle",t.nextStepReached?e.xi3(18,24,"LAWYER.SCHEDULER.STEPPER.INFO.NEXT_NOT_ALLOWED",e.VKq(42,Z,t.backendConfiguration.presetTime/t.SchedulerSettings.oneDaysLengthInMilliseconds)):null),e.xp6(4),e.Q6J("nzTooltipTitle",t.events.length>=t.backendConfiguration.maxIntervalCount?e.xi3(22,27,"LAWYER.SCHEDULER.MESSAGES.LIMIT_REACHED",e.VKq(44,z,t.backendConfiguration.maxIntervalCount)):null)("nzType",t.events.length>=t.backendConfiguration.maxIntervalCount?"default":"primary"),e.xp6(3),e.hij(" ",e.lcZ(25,30,"LAWYER.SCHEDULER.EVENT_MODAL.CREATE.OPENER")," "),e.xp6(4),e.AsE(" ",e.gM2(29,32,t.viewD
27ateStart,"yyyy. MMMM d.","","hu")," - ",e.gM2(30,37,t.viewDateEnd,"yyyy. MMMM d.","","hu")," ")}}function Se(o,n){if(1&o){const t=e.EpF();e.TgZ(0,"mwl-calendar-month-view",47),e.NdJ("eventClicked",function(i){e.CHM(t);const a=e.oxw(2);return e.KtG(a.openEventModal(i.event))})("dayClicked",function(i){e.CHM(t);const a=e.oxw(2);return e.KtG(a.createEventFromMonthView(i.day.date))}),e.qZA()}if(2&o){const t=e.oxw(2),s=e.MAs(15);e.Q6J("activeDayIsOpen",!1)("events",t.events)("cellTemplate",s)("locale",t.language)("viewDate",t.viewDate)("weekStartsOn",t.SchedulerSettings.weekStartsOn)}}function Ce(o,n){if(1&o){const t=e.EpF();e.TgZ(0,"mwl-calendar-week-view",48),e.NdJ("eventTimesChanged",function(i){e.CHM(t);const a=e.oxw(2);return e.KtG(a.eventTimesChanged(i))}),e.qZA()}if(2&o){const t=e.oxw(2),s=e.MAs(13),i=e.MAs(9),a=e.MAs(11);e.Q6J("locale",t.language)("events",t.events)("headerTemplate",s)("eventTemplate",i)("hourSegments",60/t.SchedulerSettings.segmentLengthInMinutes)("hourSegmentTemplate",a)("hourSegmentHeight",t.SchedulerSettings.segmentHeight)("refresh",t.refreshView)("validateEventTimesChanged",t.validateEventTimesChanged)("viewDate",t.viewDate)("weekStartsOn",t.SchedulerSettings.weekStartsOn)("minimumEventHeight",1)}}function Me(o,n){if(1&o&&(e.TgZ(0,"div",43),e.YNc(1,Se,1,6,"mwl-calendar-month-view",44),e.TgZ(2,"div",null,45),e.YNc(4,Ce,1,12,"mwl-calendar-week-view",46),e.qZA()()),2&o){const t=e.oxw();e.Q6J("ngSwitch",t.view),e.xp6(1),e.Q6J("ngSwitchCase",t.CalendarView.Month),e.xp6(3),e.Q6J("ngSwitchCase",t.CalendarView.Week)}}function we(o,n){1&o&&e._UZ(0,"nz-skeleton-element",50),2&o&&e.Q6J("nzActive",!0)}function De(o,n){1&o&&(e.TgZ(0,"div"),e.YNc(1,we,1,1,"nz-skeleton-element",49),e.ALo(2,"numberArray"),e.qZA()),2&o&&(e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,12)))}function xe(o,n){if(1&o){const t=e.EpF();e.TgZ(0,"button",62),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2).weekEvent,a=e.oxw();return e.KtG(a.openEventModal(i.event))})("mousedown",function(i){return i.preventDefault(),i.stopPropagation()}),e._UZ(1,"i",63),e.qZA()}}function Ae(o,n){if(1&o){const t=e.EpF();e.TgZ(0,"div",57),e.ynx(1),e.TgZ(2,"div"),e.YNc(3,xe,2,0,"button",58),e.TgZ(4,"button",59),e.NdJ("click",function(){e.CHM(t);const i=e.oxw().weekEvent,a=e.oxw();return e.KtG(a.removeEvent(i.event.id))})("mousedown",function(i){return i.preventDefault(),i.stopPropagation()}),e._UZ(5,"i",60),e.qZA()(),e.TgZ(6,"div",61),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.BQk(),e.qZA()}if(2&o){const t=e.oxw().weekEvent;e.xp6(3),e.Q6J("ngIf",!t.event.meta.static),e.xp6(4),e.hij(" ",e.lcZ(8,2,"LAWYER.SCHEDULER.EVENT.TITLE")," ")}}function ke(o,n){if(1&o&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"date"),e.ALo(3,"date"),e.qZA()),2&o){const t=n.ngVar,s=e.oxw(2).weekEvent,i=e.oxw();e.xp6(1),e.lnq(" ",e.xi3(2,3,s.event.start,t||i.mobileMode?"HH:mm":"yyyy.MM.dd. HH:mm")," ",i.mobileMode?null:"-"," ",e.xi3(3,6,s.event.end,t||i.mobileMode?"HH:mm":"yyyy.MM.dd. HH:mm")," ")}}function Oe(o,n){if(1&o&&e.YNc(0,ke,4,9,"div",64),2&o){const t=e.oxw().weekEvent;e.Q6J("ngVar",t.event.start.getDate()===t.event.end.getDate())}}function ye(o,n){1&o&&(e.TgZ(0,"div",65),e._UZ(1,"nz-spin",66),e.qZA()),2&o&&e.Q6J("@fadeIn",void 0)}const Le=function(o,n){return{backgroundColor:o,borderColor:n}},Pe=function(o){return{event:o,locale:"hu"}};function be(o,n){if(1&o){const t=e.EpF();e.TgZ(0,"div",51),e.NdJ("mwlClick",function(){const a=e.CHM(t).weekEvent,l=e.oxw();return e.KtG(l.mobileMode&&!l.creating?l.openEventModal(a.event):null)})("mwlKeydownEnter",function(i){const l=e.CHM(t).eventClicked;return e.KtG(l.emit({sourceEvent:i}))}),e.ALo(1,"calendarEventTitle"),e.ALo(2,"calendarA11y"),e.YNc(3,Ae,9,4,"ng-template",null,52,e.W1O),e._UZ(5,"mwl-calendar-event-actions",53),e.YNc(6,Oe,1,1,"ng-template",null,54,e.W1O),e._UZ(8,"mwl-calendar-event-title",55),e.YNc(9,ye,2,1,"div",56),e.qZA()}if(2&o){const t=n.weekEvent,s=n.tooltipPlacement,i=n.tooltipTemplate,a=n.tooltipAppendToBody,l=n.tooltipDisabled,h=n.tooltipDelay,_=n.daysInWeek,f=e.MAs(4),C=e.MAs(7);e.Q6J("ngStyle",e.WLB(21,Le,null==t.event.color?null:t.event.color.secondary,null==t.event.color?null:t.event.color.primary))("mwlCalendarTooltip",l?"":e.Dn7(1,14,t.event.title,1===_?"dayTooltip":"weekTooltip",t.event))("tooltipPlacement",s)("tooltipEvent",t.event)("tooltipTemplate",i
27)("tooltipAppendToBody",a)("tooltipDelay",h),e.uIk("aria-label",e.xi3(2,18,e.VKq(24,Pe,t.event),"eventDescription")),e.xp6(5),e.Q6J("customTemplate",f)("event",t.event),e.xp6(3),e.Q6J("customTemplate",C)("event",t.event)("view",1===_?"day":"week"),e.xp6(1),e.Q6J("ngIf",t&&t.event&&t.event.meta&&t.event.meta.loading)}}function Re(o,n){if(1&o&&(e.TgZ(0,"div",71),e._uU(1),e.ALo(2,"date"),e.qZA()),2&o){const t=e.oxw(),s=t.segment,i=t.locale;e.xp6(1),e.hij(" ",e.gM2(2,1,s.date,"H:mm",null,i)," ")}}function Ie(o,n){1&o&&e._UZ(0,"div",72),2&o&&e.Q6J("@fadeIn",void 0)}function Ze(o,n){if(1&o){const t=e.EpF();e.TgZ(0,"div",67,68),e.NdJ("mousedown",function(i){const l=e.CHM(t).segment,h=e.MAs(1),_=e.oxw();return e.KtG(_.mobileMode?_.createEventFromTouch(l):_.startDragToCreate(l,i,h))}),e.YNc(2,Re,3,6,"div",69),e.YNc(3,Ie,1,1,"div",70),e.qZA()}if(2&o){const t=n.segment,s=n.segmentHeight,i=n.isTimeLabel,a=e.oxw();e.Udp("height",s,"px"),e.ekj("cal-hour-start",t.isStart)("cal-after-hour-start",!t.isStart)("past-hour",a.schedulerService.isUnallowedPastDate(t.date))("foggy-future-hour",a.schedulerService.isFoggyFutureDate(t.date,!0)),e.Q6J("ngClass",t.cssClass),e.xp6(2),e.Q6J("ngIf",i),e.xp6(1),e.Q6J("ngIf",a.schedulerService.isRestrictedSegment(t.date,a.restrictedIntervals))}}function ze(o,n){if(1&o&&(e.TgZ(0,"div",75)(1,"b"),e._uU(2),e.ALo(3,"calendarDate"),e.qZA(),e._UZ(4,"br"),e.TgZ(5,"span"),e._uU(6),e.ALo(7,"calendarDate"),e.ALo(8,"calendarDate"),e.qZA()()),2&o){const t=n.$implicit,s=e.oxw().locale,i=e.oxw();e.ekj("cal-past",t.isPast)("cal-today",t.isToday)("cal-future",t.isFuture)("cal-weekend",t.isWeekend),e.Q6J("ngClass",t.cssClass),e.xp6(2),e.Oqu(e.Dn7(3,11,t.date,"weekViewColumnHeader",s)),e.xp6(4),e.Oqu(i.mobileMode?e.Dn7(8,19,t.date,"monthViewDayNumber",s):e.Dn7(7,15,t.date,"weekViewColumnSubHeader",s))}}function Ue(o,n){if(1&o&&(e.TgZ(0,"div",73),e.YNc(1,ze,9,23,"div",74),e.qZA()),2&o){const t=n.days;e.xp6(1),e.Q6J("ngForOf",t)}}function We(o,n){if(1&o&&(e.TgZ(0,"span",81),e._uU(1),e.qZA()),2&o){const t=e.oxw(2);e.xp6(1),e.hij(" ",t.currentBadge,"")}}function He(o,n){}function Ne(o,n){1&o&&e.YNc(0,He,0,0,"ng-template")}function Ye(o,n){if(1&o&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"date"),e.ALo(3,"date"),e.ALo(4,"date"),e.ALo(5,"date"),e.qZA()),2&o){const t=n.ngVar,s=e.oxw(3).$implicit,i=e.oxw(2).day,a=e.oxw();e.xp6(1),e.hij(" ",t?e.xi3(2,1,s.start,"HH:mm")+"-"+e.xi3(3,4,s.end,"HH:mm"):a.schedulerService.startDateIsInThisDay(s.start,i.date)?e.xi3(4,7,s.start,"HH:mm")+"- 23:59":"00:00-"+e.xi3(5,10,s.end,"HH:mm")," ")}}const Ke=function(o){return{backgroundColor:o}};function Be(o,n){if(1&o){const t=e.EpF();e.TgZ(0,"div",88),e.NdJ("mwlClick",function(){e.CHM(t);const i=e.oxw(2).$implicit,a=e.oxw(2).eventClicked;return e.KtG(a.emit({event:i}))}),e.ALo(1,"calendarEventTitle"),e.YNc(2,Ye,6,13,"div",64),e.qZA()}if(2&o){const t=e.oxw(2).$implicit,s=e.oxw(2),i=s.tooltipPlacement,a=s.tooltipTemplate,l=s.tooltipAppendToBody,h=s.tooltipDelay;e.Q6J("ngStyle",e.VKq(13,Ke,null==t.color?null:t.color.primary))("ngClass",null==t?null:t.cssClass)("mwlCalendarTooltip",e.Dn7(1,9,t.title,"monthTooltip",t))("tooltipPlacement",i)("tooltipEvent",t)("tooltipTemplate",a)("tooltipAppendToBody",l)("tooltipDelay",h),e.xp6(2),e.Q6J("ngVar",t.start.getDate()===t.end.getDate())}}function Ve(o,n){if(1&o&&e.YNc(0,Be,3,15,"div",87),2&o){const t=e.oxw().index,s=e.oxw(3);e.Q6J("ngIf",t<s.SchedulerSettings.eventLimit)}}const U=function(o){return{count:o}};function Je(o,n){if(1&o){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",89),e.NdJ("nzPopoverVisibleChange",function(i){e.CHM(t);const a=e.oxw(4).day,l=e.oxw();return e.KtG(l.handleMoreEvent(i,a))})("click",function(i){return i.stopPropagation()}),e.TgZ(2,"button",90),e._uU(3),e.ALo(4,"translate"),e.ALo(5,"translate"),e.qZA()(),e.BQk()}if(2&o){const t=e.oxw(4).day,s=e.oxw(),i=e.MAs(17),a=e.MAs(19);e.xp6(1),e.Q6J("nzPopoverTitle",i)("nzPopoverContent",a)("nzPopoverVisible",s.schedulerCurrentDate===t.date&&s.moreEvents.length>0)("nzPopoverBackdrop",!0),e.xp6(2),e.hij(" ",s.mobileMode?e.xi3(4,5,"LAWYER.SCHEDULER.MONTH.EVENTS",e.VKq(11,U,s.filterMidnights(t).length)):e.xi3(5,8,"LAWYER.SCHEDULER.MONTH.MORE",e.VKq(13,U,s.filterMidnights(t).length-s.SchedulerSettings.eventLimit))," ")}}function Fe(o,n){if(1&o&&e.YNc(0,Je,6,15,"ng-container",5),2&o){const t=e.oxw().index,s=e.oxw(3);e.Q6J("ngIf",t===s.SchedulerSettings.eventLimit&&!s.mobileMode||s.mobileMode&&0===t)}}function Qe(o,n){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,Ne,1,0,null,84),e.YNc(2,Ve,1,1,"ng-template",null,85,e.W1O),e.YNc(4,Fe,1,1,"ng-template",null,86,e.W1O),e.qZA()),2&o){const t=n.index,s=e.MAs(3),i=e.MAs(5),a=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t<a.SchedulerSettings.eventLimit&&!a.mobileMode)("ngIfThen",s)("ngIfElse",i)}}function Ge(o,n){if(1&o&&(e.TgZ(0,"div",82),e.YNc(1,Qe,6,3,"div",83),e.qZA()),2&o){const t=e.oxw().day,s=e.oxw();e.xp6(1),e.Q6J("ngForOf",s.filterMidnights(t))}}function je(o,n){if(1&o&&(e.TgZ(0,"div",76)(1,"div",77),e.YNc(2,We,2,1,"span",78),e.TgZ(3,"span",79),e._uU(4),e.ALo(5,"calendarDate"),e.qZA()(),e.YNc(6,Ge,2,1,"div",80),e.qZA()),2&o){const t=n.day,s=n.locale,i=e.oxw();let a;e.ekj("foggy-future-day",i.schedulerService.isFoggyFutureDate(t.date,!0))("past-date",i.schedulerService.isUnallowedMonthPastDate(t.date)),e.Q6J("ngClass",t.cssClass),e.xp6(2),e.Q6J("ngIf",t.badgeTotal>0&&(null==(a=i.getBadge(t.date))?null:a.length)>0),e.xp6(2),e.hij(" ",e.Dn7(5,8,t.date,"monthViewDayNumber",s),""),e.xp6(2),e.Q6J("ngIf",t.events.length>0)}}function $e(o,n){if(1&o){const t=e.EpF();e.TgZ(0,"button",94),e.NdJ("click",function(){e.CHM(t);const i=e.oxw(2);return e.KtG(i.handleMoreEvent(!1))}),e._UZ(1,"i",95),e.qZA()}2&o&&e.Q6J("nzSize","small")}function qe(o,n){if(1&o&&(e.TgZ(0,"div",91)(1,"div",92),e._uU(2),e.ALo(3,"date"),e.qZA(),e.YNc(4,$e,2,1,"button",93),e.qZA()),2&o){const t=e.oxw();e.xp6(2),e.hij(" ",e.gM2(3,2,t.moreEvents[0].start,"d. cccc","",t.language)," "),e.xp6(2),e.Q6J("ngIf",!t.mobileMode)}}function Xe(o,n){if(1&o){const t=e.EpF();e.TgZ(0,"div",98),e.NdJ("click",function(){e.CHM(t);const i=e.oxw().$implicit,a=e.oxw(2);return e.KtG(a.openEventModal(i))}),e._uU(1),e.ALo(2,"date"),e.ALo(3,"date"),e.ALo(4,"date"),e.ALo(5,"date"),e.qZA()}if(2&o){const t=n.ngVar,s=e.oxw().$implicit,i=e.oxw(2);e.xp6(1),e.hij(" ",t?e.xi3(2,1,s.start,"HH:mm")+"-"+e.xi3(3,4,s.end,"HH:mm"):i.schedulerService.startDateIsInThisDay(s.start,i.schedulerCurrentDate)?e.xi3(4,7,s.start,"HH:mm")+"- 23:59":"00:00-"+e.xi3(5,10,s.end,"HH:mm")," ")}}function et(o,n){if(1&o&&(e.TgZ(0,"div"),e.YNc(1,Xe,6,13,"div",97),e.qZA()),2&o){const t=n.$implicit;e.xp6(1),e.Q6J("ngVar",t.start.getDate()===t.end.getDate())}}function tt(o,n){if(1&o&&(e.TgZ(0,"div",96),e.YNc(1,et,2,1,"div",83),e.qZA()),2&o){const t=e.oxw();e.xp6(1),e.Q6J("ngForOf",t.moreEvents)}}let E=class{constructor(n,t,s,i,a,l,h,_,f,C,v){this.cdr=n,this.nzMessageService=t,this.translate=s,this.clientService=i,this.configurationService=a,this.matchmakingService=l,this.modalService=h,this.schedulerService=_,this.resizeService=f,this.languageService=C,this.highlightService=v,this.activeDayIsOpen=!0,this.days=[],this.dragToCreateActive=!1,this.events=[],this.eventsPreviousState=new Map,this.restrictedIntervals=[],this.saveQueue=[],this.savingInProgress=!1,this.scheduleLo
27aded=!1,this.slots=[],this.view=c.wr.Week,this.viewDate=new Date,this.viewDateStart=(0,M.Z)(this.viewDate,{weekStartsOn:1}),this.viewDateEnd=(0,T.Z)(this.viewDate,{weekStartsOn:1}),this.moreEvents=[],this.customerReceptionTimePerDay=new Map,this.refreshView=new B.x,this.currentBadge=null,this.creating=!1,this.highlightMode=!1,this.highlightModeChanged=!1,this.userSelect="none",this.CalendarView=c.wr,this.SchedulerSettings=u.D,this.ColorSettings=Y.y,this.validateEventTimesChanged=(m,it=!0)=>!(m.type===c.ol.Resize&&m.newEnd.getTime()-m.newStart.getTime()<this.backendConfiguration.minIntervalLength||m.newEnd.getTime()-m.newStart.getTime()>this.backendConfiguration.maxIntervalLength||m.type===c.ol.Resize&&this.schedulerService.isOverlappingWithOtherEventsOrRestrictions(`${m.event.id}`,m.newStart,m.newEnd,this.events,this.restrictedIntervals)),this.highlightMode=this.highlightService.isHighlighterMode,this.highlightService.highlightModeEvent.subscribe(m=>{this.highlightMode=m,this.userSelect=m?"text":"none",this.highlightModeChanged=!0,this.setUserselect()})}ngOnInit(){this.currentLanguage=this.languageService.currentLanguage,this.translate.onLangChange.subscribe(n=>{this.currentLanguage=n.lang}),this.resizeService.width.pipe((0,x.t)(this)).subscribe(n=>{this.mobileMode=n<768,this.cdr.detectChanges()}),this.configurationService.getConfiguration().then(n=>{this.backendConfiguration=n.matchmaking.schedule,this.refreshStepperState(),this.refreshSchedule()}),this.language=this.translate.currentLang,this.translate.onLangChange.subscribe(n=>{this.language=n.lang}),this.scheduleChangedSubscription=this.schedulerService.scheduleChanged.subscribe(n=>{this.refreshScheduleFromIntervals(n),this.customerReceptionTimePerDay=this.schedulerService.calculateCustomerReceptionByDay(this.events),this.cdr.detectChanges()}),this.schedulerDeleteEventSubscription=this.schedulerService.schedulerEventDeleted.subscribe(n=>{this.saveSuccessfulHandler(n),this.cdr.detectChanges()}),this.refreshIntervalSubscription=(0,V.F)(6e4).pipe((0,x.t)(this)).subscribe(()=>{this.refreshEventsStaticStatus(),this.refreshView.next(),this.cdr.markForCheck()})}ngAfterViewInit(){this.userSelect="none",this.setUserselect()}setUserselect(){if(N.L.config.selectionEnabled){const n=document.getElementsByTagName("style");for(let t of n)t.innerHTML.includes("user-select: "+("none"!==this.userSelect||!this.highlightModeChanged&&this.highlightMode?"none":"text"))&&!t.innerHTML.includes(".display-none")&&(t.innerHTML=`* {\n              -webkit-touch-callout: ${this.userSelect} !important;\n              -webkit-user-select: ${this.userSelect} !important;\n              -khtml-user-select: ${this.userSelect} !important;\n              -moz-user-select: ${this.userSelect} !important;\n              -ms-user-select: ${this.userSelect} !important;\n              user-select: ${this.userSelect} !important;\n            }`)}}isElementContainsTarget(n,t){return!!n.contains(t)||(n.childNodes.forEach(s=>this.isElementContainsTarget(s,t)),!1)}ngOnDestroy(){this.userSelect="text",this.setUserselect(),this.refreshIntervalSubscription&&(this.refreshIntervalSubscription.unsubscribe(),this.refreshIntervalSubscription=null),this.scheduleChangedSubscription&&(this.scheduleChangedSubscription.unsubscribe(),this.scheduleChangedSubscription=null),this.schedulerDeleteEventSubscription&&(this.schedulerDeleteEventSubscription.unsubscribe(),this.schedulerDeleteEventSubscription=null)}clearRestrictedIntervalsForEvents(n){this.restrictedIntervals=this.restrictedIntervals.filter(t=>!n.find(s=>s.start.getTime()===t.start.getTime()&&s.end.getTime()===t.end.getTime()))}eventTimesChanged({event:n,newStart:t,newEnd:s}){if(n.start.getTime()!==t.getTime()||n.end.getTime()!==s.getTime()){if(this.schedulerService.isUnallowedPastDate(t))return void this.nzMessageService.error(this.translate.instant("LAWYER.SCHEDULER.MESSAGES.TOO_EARLY"));if(this.schedulerService.isFoggyFutureDate(s))return void this.nzMessageService.error(this.translate.instant("LAWYER.SCHEDULER.MESSAGES.TOO_LATE",{days:this.backendConfiguration.presetTime/u.D.oneDaysLengthInMilliseconds}));if(this.schedulerService.isOverlappingWithOtherEventsOrRestrictions(`${n.id}`,t,s,this.events,this.restrictedIntervals))return void this.nzMessageService.create("",this.messageTemplate,{nzDuration:5e3});if(this.schedulerService.isOngoingEvent(n)&&!this.schedulerService.isOngoingEvent(this.schedulerService.createEventByMutatingAnother(n,{start:t,end:s}))){const i=n.start.getDate()!==t.getDate()?"MM.dd. HH:mm":"HH:mm";return void this.modalService.confirmModal(this.translate.instant("LAWYER.SCHEDULER.QUESTIONS.TITLE"),this.translate.instant("LAWYER.SCHEDULER.QUESTIONS.MODIFY_ONGOING",{originalStart:(0,S.Z)(n.start,i),originalEnd:(0,S.Z)(n.end,i),newStart:(0,S.Z)(t,i),newEnd:(0,S.Z)(s,i)})).afterClose.toPromise().then(l=>{l&&this.modifyEvent(n,t,s)})}this.modifyEvent(n,t,s)}}modifyEvent(n,t,s){this.eventsPreviousState.set(`${n.id}`,n);const i=this.setEventLoading(this.schedulerService.createEventByMutatingAnother(n,{start:t,end:s}),!0);this.events=this.events.map(a=>a.id===n.id?i:a).sort((a,l)=>a.start<l.start?-1:1),this.queueEvents(new d.$d(i,[n],this.schedulerService.findNeighboringEvents(i,this.events)))}isPreviousMonthAllowed(){return(0,w.Z)(this.viewDate).getTime()>this.schedulerService.allowedPastTimestamp()}isNextMonthAllowed(){return(0,D.Z)(this.viewDate).getTime()<this.schedulerService.fogg
27yFutureTimestamp()}isPreviousWeekAllowed(){return(0,M.Z)(this.viewDate,{weekStartsOn:u.D.weekStartsOn}).getTime()>this.schedulerService.allowedPastTimestamp()}isNextWeekAllowed(){return(0,T.Z)(this.viewDate,{weekStartsOn:u.D.weekStartsOn}).getTime()<this.schedulerService.foggyFutureTimestamp()}isTouchable(n){return n&&(!n.meta||n.meta&&!n.meta.loading)}mergeEvents(n){if(!n||0===n.length)return void console.log("You must pass at least one event to merge!");const t=this.events.filter(s=>-1===n.map(i=>i.id).indexOf(s.id));this.events=[...t,this.schedulerService.createMergedEvent(n)].sort((s,i)=>s.start<i.start?-1:1),this.cdr.detectChanges()}openEventModal(n,t,s){this.schedulerService.openEventModal(this.backendConfiguration,u.D.segmentLengthInMinutes,this.events,this.eventsPreviousState,n,t,s).afterClose.subscribe(i=>{i&&(this.events=this.events.filter(a=>n.id!==a.id),this.customerReceptionTimePerDay=this.schedulerService.calculateCustomerReceptionByDay(this.events),this.cdr.detectChanges())})}removeEvent(n){const t=this.events.find(s=>s.id===n);t?this.schedulerService.isOngoingEvent(t)?this.modalService.confirmModal(this.translate.instant("LAWYER.SCHEDULER.QUESTIONS.TITLE"),this.translate.instant("LAWYER.SCHEDULER.QUESTIONS.REMOVE_ONGOING")).afterClose.asObservable().subscribe(i=>{i&&this.queueEvents(new d.He(t))}):this.queueEvents(new d.He(t)):console.log(`Could not find event to delete by id [${n}]...`)}refresh(){this.events=[...this.events],this.cdr.detectChanges(),this.getSlots()}refreshEventsStaticStatus(){this.events.forEach(n=>{this.setEventStaticBasedOnStart(n)})}refreshStepperState(){this.previousStepReached=!this.previousStepReached&&!this.previousStepAllowed,this.previousStepAllowed=this.view===c.wr.Month?this.isPreviousMonthAllowed():this.isPreviousWeekAllowed(),this.nextStepReached=!this.nextStepReached&&!this.nextStepAllowed,this.nextStepAllowed=this.view===c.wr.Month?this.isNextMonthAllowed():this.isNextWeekAllowed(),this.cdr.detectChanges()}refreshSchedule(){return this.scheduleLoaded=!1,this.cdr.detectChanges(),this.clientService.getSchedule().subscribe(n=>{this.refreshScheduleFromIntervals(n.intervals),this.customerReceptionTimePerDay=this.schedulerService.calculateCustomerReceptionByDay(this.events),this.scheduleLoaded=!0,this.cdr.detectChanges()},n=>{console.log("Loading schedule failed, retrying...",n),setTimeout(()=>{this.refreshSchedule()},5e3)})}refreshScheduleFromIntervals(n){this.events=n.map(t=>this.setEventStaticBasedOnStart(this.schedulerService.createEvent(new Date(t.startInMillis),new Date(t.endInMillis)))).sort((t,s)=>t.start<s.start?-1:1)}queueEvents(n){if(n.neighboringEvents.length>0){const t=this.schedulerService.createMergedEvent([n.event,...n.neighboringEvents]);if(t.end.getTime()-t.start.getTime()>this.backendConfiguration.maxIntervalLength)return this.saveFailedHandler(n,!1),void this.nzMessageService.error(this.translate.instant("LAWYER.SCHEDULER.MESSAGES.TOO_LONG",{hours:this.backendConfiguration.maxIntervalLength/u.D.oneHoursLengthInMilliseconds}))}this.setEventLoading(n.event,!0),this.setEventsLoading(n.neighboringEvents,!0),n.type===d.YZ.UPDATE&&(this.restrictedIntervals=[...this.restrictedIntervals,...n.eventsToRollbackTo.map(s=>new d.m8(s.start,s.end))],this.cdr.detectChanges()),this.saveQueue.push(n),this.savingInProgress||(this.savingInProgress=!0,this.saveEvents(n))}saveEvents(n){const t=this.schedulerService.prepareSaveEvent(n,this.eventsPreviousState);this.clientService.modifySchedule(t).toPromise().then(()=>{this.saveSuccessfulHandler(n)}).catch(()=>{this.saveFailedHandler(n)}).finally(()=>{this.saveFinishedOneWayOrAnother(),this.customerReceptionTimePerDay=this.schedulerService.calculateCustomerReceptionByDay(this.events),this.creating=!1})}saveFailedHandler(n,t=!0){if(n.type===d.YZ.CREATE)this.setEventsLoading(this.schedulerService.findNeighboringEvents(n.event,this.events),!1),this.events=this.events.filter(s=>n.event.id!==s.id),t&&this.nzMessageService.error(this.translate.instant("LAWYER.SCHEDULER.MESSAGES.SAVE_FAILED.CREATE"));else if(n.type===d.YZ.DELETE)this.setEventLoading(n.event,!1),t&&this.nzMessageService.error(this.translate.instant("LAWYER.SCHEDULER.MESSAGES.SAVE_FAILED.DELETE"));else if(n.type===d.YZ.UPDATE){this.setEventLoading(n.event,!1),this.setEventsLoading(this.schedulerService.findNeighboringEvents(n.event,this.events),!1);const s=n;this.clearRestrictedIntervalsForEvents(s.eventsToRollbackTo),this.events=this.events.map(i=>s.eventsToRollbackTo.find(l=>l.id===i.id)||i),t&&this.nzMessageService.error(this.translate.instant("LAWYER.SCHEDULER.MESSAGES.SAVE_FAILED.UPDATE"))}this.cdr.detectChanges()}saveFinishedOneWayOrAnother(){this.saveQueue.shift(),this.saveQueue.length>0?(console.log("Next save event in the queue: ",this.saveQueue[0]),this.saveEvents(this.saveQueue[0])):this.savingInProgress=!1,this.cdr.detectChanges()}saveSuccessfulHandler(n){if(n.type===d.YZ.UPDATE&&this.clearRestrictedIntervalsForEvents(n.eventsToRollbackTo),n.type===d.YZ.CREATE||n.type===d.YZ.UPDATE){const t=this.schedulerService.findNeighboringEvents(n.event,this.events);t.length>0?this.mergeEvents([n.event,...t]):this.setEventLoading(n.event,!1),n.event.start.getDate()!==n.event.end.getDate()&&this.nzMessageService.info(this.translate.instant("LAWYER.SCHEDULER.MESSAGES.OVERFLOW_TO_NEXT_DAY"))}else n.type===d.YZ.DELETE&&(this.events=this.events.filter(t=>n.event.id!==t.id));(this.schedulerService.isOngoingEvent(n.event)||this.eventsPreviousState.get(`${n.event.id}`)&&this.schedulerService.isOngoingEvent(this.eventsPreviousState.get(`${n.event.id}`)))&&setTimeout(()=>{this.matchmakingService.updateLawyerStatus().then(t=>{})},1e3),this.cdr.detectChanges()}setEventLoading(n,t){return n=this.schedulerService.setEventLoading(n,t),this.cdr.detectChanges(),n}
27setEventsLoading(n,t){return n.forEach(s=>this.setEventLoading(s,t)),this.cdr.detectChanges(),n}setEventStaticBasedOnStart(n){return this.schedulerService.isUnallowedPastDate(n.start)&&(n.draggable=!1,n.resizable.beforeStart=!1,n.resizable.afterEnd=!1,n.meta.static=!0),n}setPreviousTooltipToShow(){this.previousStepReached=!0}setNextTooltipToShow(){this.nextStepReached=!0}setPreviousMonth(){this.viewDate=(0,A.Z)(this.viewDate,1),this.viewDateStart=(0,w.Z)((0,A.Z)(this.viewDateStart,1)),this.viewDateEnd=(0,D.Z)((0,A.Z)(this.viewDateEnd,1)),this.refreshStepperState()}setNextMonth(){this.viewDate=(0,k.Z)(this.viewDate,1),this.viewDateStart=(0,w.Z)((0,k.Z)(this.viewDateStart,1)),this.viewDateEnd=(0,D.Z)((0,k.Z)(this.viewDateEnd,1)),this.refreshStepperState()}setPreviousWeek(){this.viewDate=(0,O.Z)(this.viewDate,1),this.viewDateStart=(0,M.Z)((0,O.Z)(this.viewDateStart,1),{weekStartsOn:1}),this.viewDateEnd=(0,T.Z)((0,O.Z)(this.viewDateEnd,1),{weekStartsOn:1}),this.refreshStepperState()}setNextWeek(){this.viewDate=(0,y.Z)(this.viewDate,1),this.viewDateStart=(0,M.Z)((0,y.Z)(this.viewDateStart,1),{weekStartsOn:1}),this.viewDateEnd=(0,T.Z)((0,y.Z)(this.viewDateEnd,1),{weekStartsOn:1}),this.refreshStepperState()}setToday(){this.viewDate=new Date,this.view===c.wr.Month?(this.viewDateStart=(0,w.Z)(this.viewDate),this.viewDateEnd=(0,D.Z)(this.viewDate)):this.view===c.wr.Week&&(this.viewDateStart=(0,M.Z)(this.viewDate,{weekStartsOn:1}),this.viewDateEnd=(0,T.Z)(this.viewDate,{weekStartsOn:1})),this.refreshStepperState()}setView(n){this.view=n,this.setToday(),this.refreshStepperState(),this.cdr.detectChanges()}ceilToNearest(n,t){return Math.ceil(n/t)*t}convertTime(n){return new Date(n).toTimeString()}convertDay(n){return new Date(n).toLocaleString("en-us",{weekday:"long"})}floorToNearest(n,t){return Math.floor(n/t)*t}getSlots(){this.slots.map((n,t)=>{this.slots[t].time=[],this.events.forEach(s=>{n.day==this.convertDay(s.start)&&this.slots[t].time.push({startTime:s.start,endTime:s.end,id:s.id})})})}initDays(){this.days=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];for(let n=0;n<this.days.length;n++)this.slots.push({day:this.days[n],time:[]})}isRestricted(n){return this.events.length>=this.backendConfiguration.maxIntervalCount?(this.nzMessageService.error(this.translate.instant("LAWYER.SCHEDULER.MESSAGES.LIMIT_REACHED",{limit:this.backendConfiguration.maxIntervalCount})),!1):this.schedulerService.isUnallowedPastDate(n.start)?(this.nzMessageService.error(this.translate.instant("LAWYER.SCHEDULER.MESSAGES.TOO_EARLY")),!1):this.schedulerService.isFoggyFutureDate(n.end)?(this.nzMessageService.error(this.translate.instant("LAWYER.SCHEDULER.MESSAGES.TOO_LATE",{days:this.backendConfiguration.presetTime/u.D.oneDaysLengthInMilliseconds})),!1):!this.schedulerService.isOverlappingWithOtherEventsOrRestrictions(`${n.id}`,n.start,new Date(n.start.getTime()+this.backendConfiguration.minIntervalLength),this.events,this.restrictedIntervals)||(this.nzMessageService.create("",this.messageTemplate,{nzDuration:5e3}),!1)}startDragToCreate(n,t,s){this.creating=!0;const i=this.schedulerService.createEvent(n.date,new Date(n.date.getTime()+this.backendConfiguration.minIntervalLength),{meta:{temporaryEvent:!0}});if(!this.isRestricted(i))return;this.events=[...this.events,i].sort((h,_)=>h.start<_.start?-1:1);const a=s.getBoundingClientRect();this.dragToCreateActive=!0;const l=(0,T.Z)(this.viewDate,{weekStartsOn:u.D.weekStartsOn});(0,b.R)(document,"mousemove").pipe((0,J.x)(()=>{delete i.meta.temporaryEvent,this.setEventLoading(i,!0),this.dragToCreateActive=!1,this.queueEvents(new d.XA(i,this.schedulerService.findNeighboringEvents(i,this.events)))}),(0,F.R)((0,b.R)(document,"mouseup"))).subscribe(h=>{let f=this.ceilToNearest(h.clientY-a.top,u.D.segmentLengthInMinutes);const C=this.floorToNearest(h.clientX-a.left,a.width)/a.width;f<60&&0===C&&(f=60);const v=(0,L.Z)((0,K.Z)(n.date,f),C);this.schedulerService.isOverlappingWithOtherEventsOrRestrictions(`${i.id}`,i.start,v,this.events,this.restrictedIntervals)||v.getTime()-n.date.getTime()>this.backendConfiguration.maxIntervalLength||(v.getTime()>
27this.schedulerService.foggyFutureTimestamp()?i.end=new Date(this.schedulerService.foggyFutureTimestamp()):v>n.date&&v<l&&(i.end=v)),this.refresh()})}removeSlot(n){for(let t=0;t<this.slots.length;t++)this.slots[t].time=this.slots[t].time.filter(s=>s.id!==n)}handleMoreEvent(n,t){n?(this.moreEvents=this.filterMidnights(t),this.schedulerCurrentDate=t.date):this.moreEvents=[]}filterMidnights(n){return n.events.filter(t=>"0:00:00"!==(0,S.Z)(t.end,"H:mm:ss")||"0:00:00"===(0,S.Z)(t.end,"H:mm:ss")&&(0,P.Z)(n.date)!==(0,P.Z)(t.end))}createEventFromTouch(n){const t=this.schedulerService.createEvent(n.date,new Date(n.date.getTime()+this.backendConfiguration.minIntervalLength),{meta:{temporaryEvent:!0}});!this.isRestricted(t)||this.openEventModal(null,n.date,!0)}createEventFromMonthView(n){this.schedulerService.isUnallowedPastDate((0,L.Z)(n,1))?this.nzMessageService.error(this.translate.instant("LAWYER.SCHEDULER.MESSAGES.TOO_EARLY")):this.schedulerService.isFoggyFutureDate(n)?this.nzMessageService.error(this.translate.instant("LAWYER.SCHEDULER.MESSAGES.TOO_LATE",{days:this.backendConfiguration.presetTime/u.D.oneDaysLengthInMilliseconds})):this.openEventModal(null,n)}getBadge(n){return this.currentBadge=this.schedulerService.getTodayClientReceptionInHoursAndMinutes(this.customerReceptionTimePerDay,n),this.currentBadge}};E.\u0275fac=function(n){return new(n||E)(e.Y36(e.sBO),e.Y36(Q.dD),e.Y36(R.sK),e.Y36(G.y),e.Y36(j.e),e.Y36($.$),e.Y36(q.Z),e.Y36(X.G),e.Y36(ee._),e.Y36(te.T),e.Y36(ne.l))},E.\u0275cmp=e.Xpm({type:E,selectors:[["app-matchmaker-scheduler"]],viewQuery:function(n,t){if(1&n&&(e.Gf(ue,5),e.Gf(ve,5)),2&n){let s;e.iGM(s=e.CRH())&&(t.messageTemplate=s.first),e.iGM(s=e.CRH())&&(t.weekView=s.first)}},decls:20,vars:5,consts:[["messageTemplate",""],[3,"configuration",4,"ngIf"],["class","row text-center m-b-10 align-items-end",4,"ngIf"],["class","text-center m-b-10 m-l-10 m-r-10 align-items-end",4,"ngIf"],[3,"ngSwitch",4,"ngIf"],[4,"ngIf"],[1,"container"],["weekViewEventTemplate",""],["weekViewHourSegmentTemplate",""],["weekHeaderTemplate",""],["monthViewCellTemplate",""],["morePopupTitle",""],["morePopupContent",""],[1,"d-flex"],["nz-icon","","nzType","clock-circle",1,"font-size-24"],[1,"text-left"],[3,"configuration"],[1,"row","text-center","m-b-10","align-items-end"],[1,"col-md-5","text-left"],[1,"btn-group"],["nz-button","",3,"nzType","click"],["nz-button","",1,"m-l-5",3,"nzType","click"],["nz-button","","nzType","link","nz-tooltip","","nzTooltipPlacement","top","nzTooltipTrigger","click",1,"m-l-5","pl-3","pr-2","text-center","align-middle",2,"position","relative","top","-1px",3,"nzTooltipTitle","click"],["nz-icon","","nzType","left","theme","outline",1,"font-size-16","no-padding","scheduler-icon-position","text-center","align-middle"],["nz-button","","nzType","link","nz-tooltip","","nzTooltipPlacement","top","nzTooltipTrigger","click",1,"m-r-5","pl-3","pr-2","text-center","align-middle",2,"position","relative","top","-1px",3,"nzTooltipTitle","click"],["nz-icon","","nzType","right","theme","outline",1,"font-size-16","scheduler-icon-position","text-center","align-middle"],["nz-button","",3,"click"],[1,"col-md-4","main-date","text-break"],[1,"col-md-3","text-right"],["nz-button","","nz-tooltip","","nzTooltipPlacement","top","nzTooltipTrigger","click",3,"nzTooltipTitle","nzType","click"],["nz-icon","","nzType","plus-circle","theme","outline"],[1,"text-center","m-b-10","m-l-10","m-r-10","align-items-end"],[1,"d-flex","flex-column-reverse","flex-sm-row","justify-content-between"],[1,"btn-group","d-flex","justify-content-center","text-center","m-b-10"],[1,"m-b-10"],["nz-button","",1,"m-r-10",3,"nzType","click"],["nz-button","",1,"m-r-10",3,"click"],["nz-button","","nzType","link","nz-tooltip","","nzTooltipPlacement","top","nzTooltipTrigger","click",1,"m-l-5",3,"nzTooltipTitle","click"],["nz-icon","","nzType","left","theme","outline"],["nz-button","","nzType","link","nz-tooltip","","nzTooltipPlacement","top","nzTooltipTrigger","click",1,"m-r-5",3,"nzTooltipTitle","click"],["nz-icon","","nzType","right","theme","outline"],[1,"text-center","m-b-10"],[1,"main-date"],[3,"ngSwitch"],[3,"activeDayIsOpen","events","cellTemplate","locale","viewDate","weekStartsOn","eventClicked","dayClicked",4,"ngSwitchCase"],["weekView",""],[3,"locale","events","headerTemplate","eventTemplate","hour
27Segments","hourSegmentTemplate","hourSegmentHeight","refresh","validateEventTimesChanged","viewDate","weekStartsOn","minimumEventHeight","eventTimesChanged",4,"ngSwitchCase"],[3,"activeDayIsOpen","events","cellTemplate","locale","viewDate","weekStartsOn","eventClicked","dayClicked"],[3,"locale","events","headerTemplate","eventTemplate","hourSegments","hourSegmentTemplate","hourSegmentHeight","refresh","validateEventTimesChanged","viewDate","weekStartsOn","minimumEventHeight","eventTimesChanged"],["class","p-t-10 p-b-10 w-100","nzType","input","nzSize","default",3,"nzActive",4,"ngFor","ngForOf"],["nzType","input","nzSize","default",1,"p-t-10","p-b-10","w-100",3,"nzActive"],["tabindex","0","role","application",1,"cal-event",3,"ngStyle","mwlCalendarTooltip","tooltipPlacement","tooltipEvent","tooltipTemplate","tooltipAppendToBody","tooltipDelay","mwlClick","mwlKeydownEnter"],["weekViewEventActionsTemplate",""],[3,"customTemplate","event"],["weekViewEventTitleTemplate",""],[3,"customTemplate","event","view"],["class","week-event-loading",4,"ngIf"],[1,"d-none","d-md-flex","flex-row-reverse","justify-content-xxl-between","week-event-actions","m-t-5","m-l-5","m-r-5","text-right"],["nzType","default","class","m-r-5 template-button border-0 scheduler-style",3,"click","mousedown",4,"ngIf"],["nzType","default",1,"template-button","border-0","text-center","scheduler-style",3,"click","mousedown"],["nz-icon","","nzType","close",1,"font-size-16",2,"position","relative","left","-1px"],[1,"m-r-5","d-none","d-md-inline-block","text-truncate"],["nzType","default",1,"m-r-5","template-button","border-0","scheduler-style",3,"click","mousedown"],["nz-icon","","nzType","edit",1,"font-size-16",2,"position","relative","left","-1px"],[4,"ngVar"],[1,"week-event-loading"],["nzSimple",""],[1,"cal-hour-segment",3,"ngClass","mousedown"],["segmentElement",""],["class","cal-time",4,"ngIf"],["class","restricted-segment",4,"ngIf"],[1,"cal-time"],[1,"restricted-segment"],["role","row",1,"cal-day-headers"],["class","cal-header","mwlDroppable","","dragOverClass","cal-drag-over","tabindex","0","role","columnheader",3,"cal-past","cal-today","cal-future","cal-weekend","ngClass",4,"ngFor","ngForOf"],["mwlDroppable","","dragOverClass","cal-drag-over","tabindex","0","role","columnheader",1,"cal-header",3,"ngClass"],[1,"cal-day-cell",3,"ngClass"],[1,"cal-cell-top","d-flex","flex-column-reverse","d-md-block","justify-content-between"],["class","cal-day-badge",4,"ngIf"],[1,"cal-day-number"],["class","month-events",4,"ngIf"],[1,"cal-day-badge"],[1,"month-events"],[4,"ngFor","ngForOf"],[4,"ngIf","ngIfThen","ngIfElse"],["showEventsBlock",""],["showMoreBlock",""],["class","cal-events event-box",3,"ngStyle","ngClass","mwlCalendarTooltip","tooltipPlacement","tooltipEvent","tooltipTemplate","tooltipAppendToBody","tooltipDelay","mwlClick",4,"ngIf"],[1,"cal-events","event-box",3,"ngStyle","ngClass","mwlCalendarTooltip","tooltipPlacement","tooltipEvent","tooltipTemplate","tooltipAppendToBody","tooltipDelay","mwlClick"],["nz-popover","","nzPopoverPlacement","bottom","nzPopoverTrigger","click",1,"cal-events",3,"nzPopoverTitle","nzPopoverContent","nzPopoverVisible","nzPopoverBackdrop","nzPopoverVisibleChange","click"],["nz-button","","nzType","link",1,"show-more","link-like-button"],[1,"d-flex","column","justify-content-between","p-t-5","p-b-5","vertical-align-middle","more-popup-header"],[1,"p-t-5","p-r-10"],["nz-button","","nzType","primary","class","template-button",3,"nzSize","click",4,"ngIf"],["nz-button","","nzType","primary",1,"template-button",3,"nzSize","click"],["nz-icon","","nzType","close","nzTheme","outline"],[1,"p-l-5","p-r-5"],["class","d-inline-flex cloumn justify-content-between p-l-5 p-r-5 m-b-5 event-body",3,"click",4,"ngVar"],[1,"d-inline-flex","cloumn","justify-content-between","p-l-5","p-r-5","m-b-5","event-body",3,"click"]],template:function(n,t){1&n&&(e.YNc(0,ge,8,10,"ng-template",null,0,e.W1O),e.YNc(2,Ee,1,1,"app-matchmaker-scheduler-information",1),e.YNc(3,fe,29,46,"div",2),e.YNc(4,Te,31,46,"div",3),e.YNc(5,Me,5,3,"div",4),e.YNc(6,De,3,3,"div",5),e.TgZ(7,"div",6),e.YNc(8,be,10,26,"ng-template",null,7,e.W1O),e.YNc(10,Ze,4,13,"ng-template",null,8,e.W1O),e.qZA(),e.YNc(12,Ue,2,1,"ng-template",null,9,e.W1O),e.YNc(14,je,7,12,"ng-template",null,10,e.W1O),e.YNc(16,qe,5,7,"ng-template",null,11,e.W1O),e.YNc(18,tt,2,1,"ng-template",null,12,e.W1O)),2&n&&(e.xp6(2),e.Q6J("ngIf",t.backendConfiguration),e.xp6(1),e.Q6J("ngIf",t.scheduleLo
27aded&&!t.mobileMode),e.xp6(1),e.Q6J("ngIf",t.scheduleLoaded&&t.mobileMode),e.xp6(1),e.Q6J("ngIf",t.scheduleLoaded),e.xp6(1),e.Q6J("ngIf",!t.scheduleLoaded))},dependencies:[c.QW,c.Bm,c.wi,c.Vw,c.Tl,ie.D5,c.GH,c.TK,g.mk,g.sg,g.O5,g.PC,g.RF,g.n9,se.g,oe.ix,ae.w,re.dQ,le.Ls,ce.lU,I.Xw,I.yg,de.W,he.SY,_e.K,c.vk,c.CG,c.rL,g.uU,R.X$,me.A],styles:['@charset "UTF-8";.brand-success[_ngcontent-%COMP%]{color:#92ddea!important}.brand-failure[_ngcontent-%COMP%]{color:#9579d1!important}.brand-red[_ngcontent-%COMP%]{color:#de4436!important}.brand-success-bg-border[_ngcontent-%COMP%]{background-color:#92ddea!important;border-color:#92ddea!important;color:#fff!important}.brand-failure-bg-border[_ngcontent-%COMP%]{background-color:#ffa5d8!important;border-color:#ffa5d8!important;color:#fff!important}mwl-calendar-event-title[_ngcontent-%COMP%]{white-space:normal}.cal-day-cell.foggy-future-day[_ngcontent-%COMP%], .cal-day-cell.past-date[_ngcontent-%COMP%]{height:100%}.cal-hour-segment.past-hour[_ngcontent-%COMP%]:empty, .cal-hour-segment.past-hour[_ngcontent-%COMP%]:empty:hover, .cal-hour-segment.foggy-future-hour[_ngcontent-%COMP%]:empty, .cal-hour-segment.foggy-future-hour[_ngcontent-%COMP%]:empty:hover, .cal-day-cell.foggy-future-day[_ngcontent-%COMP%], .cal-day-cell.past-date[_ngcontent-%COMP%]{background-color:#f1f2f3!important}.cal-hour-segment[_ngcontent-%COMP%]   .restricted-segment[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#f1f2f3!important}.week-event-actions[_ngcontent-%COMP%]{min-height:28px;text-overflow:ellipsis}.week-event-loading[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;top:0;left:0;background:rgba(0,0,0,.1);cursor:default}.week-event-loading[_ngcontent-%COMP%] > nz-spin[_ngcontent-%COMP%]{position:relative;top:50%;transform:translateY(-50%);text-align:center}.template-button[_ngcontent-%COMP%]{width:25px!important;height:25px}.month-events[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.show-more[_ngcontent-%COMP%]{margin:0 5px 5px 3px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.event-body[_ngcontent-%COMP%]{border-radius:10px;background:#92ddea!important;color:#53535f!important;font-size:14px;cursor:pointer}.main-date[_ngcontent-%COMP%] > h4[_ngcontent-%COMP%]{color:#53535f}@media (max-width: 768px){.main-date[_ngcontent-%COMP%] > h4[_ngcontent-%COMP%]{font-size:1.3em}}@media (max-width: 320px){.btn-group[_ngcontent-%COMP%]{flex-direction:column}}'],data:{animation:[(0,p.X$)("fadeIn",[(0,p.eR)(":enter",[(0,p.jt)("0s ease-in",(0,p.oB)({opacity:1}))]),(0,p.eR)(":leave",[(0,p.jt)("0.3s ease-in",(0,p.oB)({opacity:0}))])])]},changeDetection:0}),E=(0,H.gn)([(0,x.c)()],E)}}]);

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.