Files
doneit-web/.angular/cache/14.2.12/babel-webpack/a54cdfe17adc729a44629daff8dafa2b.json
T
Eudes Inácio 53b71ea16f its working
2023-06-30 09:54:21 +01:00

1 line
775 KiB
JSON

{"ast":null,"code":"import { __decorate, __param } from 'tslib';\nimport { Injectable, EventEmitter, ViewChild, Input, Output, Component, ElementRef, HostBinding, ViewEncapsulation, Inject, LOCALE_ID, NgModule } from '@angular/core';\nimport { DatePipe, CommonModule } from '@angular/common';\nimport { IonicModule } from '@ionic/angular';\nimport { Subject } from 'rxjs';\nimport * as ɵngcc0 from '@angular/core';\nimport * as ɵngcc1 from '@ionic/angular';\nimport * as ɵngcc2 from '@angular/common';\nconst _c0 = [\"monthSlider\"];\nfunction MonthViewComponent_table_4_th_3_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"th\")(1, \"small\");\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const dayHeader_r10 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate(dayHeader_r10);\n }\n}\nfunction MonthViewComponent_table_4_tr_5_td_1_ng_template_1_Template(rf, ctx) {}\nconst _c1 = function (a0, a1, a2) {\n return {\n view: a0,\n row: a1,\n col: a2\n };\n};\nfunction MonthViewComponent_table_4_tr_5_td_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r16 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"td\", 7);\n ɵngcc0.ɵɵlistener(\"click\", function MonthViewComponent_table_4_tr_5_td_1_Template_td_click_0_listener() {\n const restoredCtx = ɵngcc0.ɵɵrestoreView(_r16);\n const col_r13 = restoredCtx.$implicit;\n const row_r11 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r15 = ɵngcc0.ɵɵnextContext(2);\n return ɵngcc0.ɵɵresetView(ctx_r15.select(ctx_r15.views[0].dates[row_r11 * 7 + col_r13]));\n });\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_4_tr_5_td_1_ng_template_1_Template, 0, 0, \"ng-template\", 3);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const col_r13 = ctx.$implicit;\n const row_r11 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r12 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵproperty(\"ngClass\", ctx_r12.getHighlightClass(ctx_r12.views[0].dates[row_r11 * 7 + col_r13]));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r12.monthviewDisplayEventTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(3, _c1, ctx_r12.views[0], row_r11, col_r13));\n }\n}\nconst _c2 = function () {\n return [0, 1, 2, 3, 4, 5, 6];\n};\nfunction MonthViewComponent_table_4_tr_5_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\");\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_4_tr_5_td_1_Template, 2, 7, \"td\", 6);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(1, _c2));\n }\n}\nconst _c3 = function () {\n return [0, 1, 2, 3, 4, 5];\n};\nfunction MonthViewComponent_table_4_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"table\", 4)(1, \"thead\")(2, \"tr\");\n ɵngcc0.ɵɵtemplate(3, MonthViewComponent_table_4_th_3_Template, 3, 1, \"th\", 5);\n ɵngcc0.ɵɵelementEnd()();\n ɵngcc0.ɵɵelementStart(4, \"tbody\");\n ɵngcc0.ɵɵtemplate(5, MonthViewComponent_table_4_tr_5_Template, 2, 2, \"tr\", 5);\n ɵngcc0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const ctx_r1 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r1.views[0].dayHeaders);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(2, _c3));\n }\n}\nfunction MonthViewComponent_table_5_th_3_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"th\")(1, \"small\");\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const dayHeader_r21 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate(dayHeader_r21);\n }\n}\nfunction MonthViewComponent_table_5_tr_5_td_1_ng_template_1_Template(rf, ctx) {}\nfunction MonthViewComponent_table_5_tr_5_td_1_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\");\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_5_tr_5_td_1_ng_template_1_Template, 0, 0, \"ng-template\", 3);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const col_r24 = ctx.$implicit;\n const row_r22 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r23 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r23.monthviewInactiveDisplayEventTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(2, _c1, ctx_r23.views[0], row_r22, col_r24));\n }\n}\nfunction MonthViewComponent_table_5_tr_5_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\");\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_5_tr_5_td_1_Template, 2, 6, \"td\", 5);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(1, _c2));\n }\n}\nfunction MonthViewComponent_table_5_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"table\", 4)(1, \"thead\")(2, \"tr\", 8);\n ɵngcc0.ɵɵtemplate(3, MonthViewComponent_table_5_th_3_Template, 3, 1, \"th\", 5);\n ɵngcc0.ɵɵelementEnd()();\n ɵngcc0.ɵɵelementStart(4, \"tbody\");\n ɵngcc0.ɵɵtemplate(5, MonthViewComponent_table_5_tr_5_Template, 2, 2, \"tr\", 5);\n ɵngcc0.ɵɵelement(6, \"tr\");\n ɵngcc0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const ctx_r2 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r2.views[0].dayHeaders);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(2, _c3));\n }\n}\nfunction MonthViewComponent_table_7_th_3_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"th\")(1, \"small\");\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const dayHeader_r29 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate(dayHeader_r29);\n }\n}\nfunction MonthViewComponent_table_7_tr_5_td_1_ng_template_1_Template(rf, ctx) {}\nfunction MonthViewComponent_table_7_tr_5_td_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r35 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"td\", 7);\n ɵngcc0.ɵɵlistener(\"click\", function MonthViewComponent_table_7_tr_5_td_1_Template_td_click_0_listener() {\n const restoredCtx = ɵngcc0.ɵɵrestoreView(_r35);\n const col_r32 = restoredCtx.$implicit;\n const row_r30 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r34 = ɵngcc0.ɵɵnextContext(2);\n return ɵngcc0.ɵɵresetView(ctx_r34.select(ctx_r34.views[1].dates[row_r30 * 7 + col_r32]));\n });\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_7_tr_5_td_1_ng_template_1_Template, 0, 0, \"ng-template\", 3);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const col_r32 = ctx.$implicit;\n const row_r30 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r31 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵproperty(\"ngClass\", ctx_r31.getHighlightClass(ctx_r31.views[1].dates[row_r30 * 7 + col_r32]));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r31.monthviewDisplayEventTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(3, _c1, ctx_r31.views[1], row_r30, col_r32));\n }\n}\nfunction MonthViewComponent_table_7_tr_5_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\");\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_7_tr_5_td_1_Template, 2, 7, \"td\", 6);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(1, _c2));\n }\n}\nfunction MonthViewComponent_table_7_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"table\", 4)(1, \"thead\")(2, \"tr\");\n ɵngcc0.ɵɵtemplate(3, MonthViewComponent_table_7_th_3_Template, 3, 1, \"th\", 5);\n ɵngcc0.ɵɵelementEnd()();\n ɵngcc0.ɵɵelementStart(4, \"tbody\");\n ɵngcc0.ɵɵtemplate(5, MonthViewComponent_table_7_tr_5_Template, 2, 2, \"tr\", 5);\n ɵngcc0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const ctx_r3 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r3.views[1].dayHeaders);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(2, _c3));\n }\n}\nfunction MonthViewComponent_table_8_th_3_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"th\")(1, \"small\");\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const dayHeader_r40 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate(dayHeader_r40);\n }\n}\nfunction MonthViewComponent_table_8_tr_5_td_1_ng_template_1_Template(rf, ctx) {}\nfunction MonthViewComponent_table_8_tr_5_td_1_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\");\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_8_tr_5_td_1_ng_template_1_Template, 0, 0, \"ng-template\", 3);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const col_r43 = ctx.$implicit;\n const row_r41 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r42 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r42.monthviewInactiveDisplayEventTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(2, _c1, ctx_r42.views[1], row_r41, col_r43));\n }\n}\nfunction MonthViewComponent_table_8_tr_5_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\");\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_8_tr_5_td_1_Template, 2, 6, \"td\", 5);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(1, _c2));\n }\n}\nfunction MonthViewComponent_table_8_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"table\", 4)(1, \"thead\")(2, \"tr\", 8);\n ɵngcc0.ɵɵtemplate(3, MonthViewComponent_table_8_th_3_Template, 3, 1, \"th\", 5);\n ɵngcc0.ɵɵelementEnd()();\n ɵngcc0.ɵɵelementStart(4, \"tbody\");\n ɵngcc0.ɵɵtemplate(5, MonthViewComponent_table_8_tr_5_Template, 2, 2, \"tr\", 5);\n ɵngcc0.ɵɵelement(6, \"tr\");\n ɵngcc0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const ctx_r4 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r4.views[1].dayHeaders);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(2, _c3));\n }\n}\nfunction MonthViewComponent_table_10_th_3_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"th\")(1, \"small\");\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const dayHeader_r48 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate(dayHeader_r48);\n }\n}\nfunction MonthViewComponent_table_10_tr_5_td_1_ng_template_1_Template(rf, ctx) {}\nfunction MonthViewComponent_table_10_tr_5_td_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r54 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"td\", 7);\n ɵngcc0.ɵɵlistener(\"click\", function MonthViewComponent_table_10_tr_5_td_1_Template_td_click_0_listener() {\n const restoredCtx = ɵngcc0.ɵɵrestoreView(_r54);\n const col_r51 = restoredCtx.$implicit;\n const row_r49 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r53 = ɵngcc0.ɵɵnextContext(2);\n return ɵngcc0.ɵɵresetView(ctx_r53.select(ctx_r53.views[2].dates[row_r49 * 7 + col_r51]));\n });\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_10_tr_5_td_1_ng_template_1_Template, 0, 0, \"ng-template\", 3);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const col_r51 = ctx.$implicit;\n const row_r49 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r50 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵproperty(\"ngClass\", ctx_r50.getHighlightClass(ctx_r50.views[2].dates[row_r49 * 7 + col_r51]));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r50.monthviewDisplayEventTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(3, _c1, ctx_r50.views[2], row_r49, col_r51));\n }\n}\nfunction MonthViewComponent_table_10_tr_5_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\");\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_10_tr_5_td_1_Template, 2, 7, \"td\", 6);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(1, _c2));\n }\n}\nfunction MonthViewComponent_table_10_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"table\", 4)(1, \"thead\")(2, \"tr\");\n ɵngcc0.ɵɵtemplate(3, MonthViewComponent_table_10_th_3_Template, 3, 1, \"th\", 5);\n ɵngcc0.ɵɵelementEnd()();\n ɵngcc0.ɵɵelementStart(4, \"tbody\");\n ɵngcc0.ɵɵtemplate(5, MonthViewComponent_table_10_tr_5_Template, 2, 2, \"tr\", 5);\n ɵngcc0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const ctx_r5 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r5.views[2].dayHeaders);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(2, _c3));\n }\n}\nfunction MonthViewComponent_table_11_th_3_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"th\")(1, \"small\");\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const dayHeader_r59 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate(dayHeader_r59);\n }\n}\nfunction MonthViewComponent_table_11_tr_5_td_1_ng_template_1_Template(rf, ctx) {}\nfunction MonthViewComponent_table_11_tr_5_td_1_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\");\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_11_tr_5_td_1_ng_template_1_Template, 0, 0, \"ng-template\", 3);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const col_r62 = ctx.$implicit;\n const row_r60 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r61 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r61.monthviewInactiveDisplayEventTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(2, _c1, ctx_r61.views[2], row_r60, col_r62));\n }\n}\nfunction MonthViewComponent_table_11_tr_5_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\");\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_11_tr_5_td_1_Template, 2, 6, \"td\", 5);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(1, _c2));\n }\n}\nfunction MonthViewComponent_table_11_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"table\", 4)(1, \"thead\")(2, \"tr\", 8);\n ɵngcc0.ɵɵtemplate(3, MonthViewComponent_table_11_th_3_Template, 3, 1, \"th\", 5);\n ɵngcc0.ɵɵelementEnd()();\n ɵngcc0.ɵɵelementStart(4, \"tbody\");\n ɵngcc0.ɵɵtemplate(5, MonthViewComponent_table_11_tr_5_Template, 2, 2, \"tr\", 5);\n ɵngcc0.ɵɵelement(6, \"tr\");\n ɵngcc0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const ctx_r6 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r6.views[2].dayHeaders);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(2, _c3));\n }\n}\nfunction MonthViewComponent_ng_template_12_Template(rf, ctx) {}\nconst _c4 = function (a0, a1, a2) {\n return {\n showEventDetail: a0,\n selectedDate: a1,\n noEventsLabel: a2\n };\n};\nconst _c5 = [\"weekSlider\"];\nfunction WeekViewComponent_th_7_ng_template_1_Template(rf, ctx) {}\nconst _c6 = function (a0) {\n return {\n viewDate: a0\n };\n};\nfunction WeekViewComponent_th_7_Template(rf, ctx) {\n if (rf & 1) {\n const _r13 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"th\", 7);\n ɵngcc0.ɵɵlistener(\"click\", function WeekViewComponent_th_7_Template_th_click_0_listener() {\n const restoredCtx = ɵngcc0.ɵɵrestoreView(_r13);\n const date_r10 = restoredCtx.$implicit;\n const ctx_r12 = ɵngcc0.ɵɵnextContext();\n return ɵngcc0.ɵɵresetView(ctx_r12.daySelected(date_r10));\n });\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_th_7_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const date_r10 = ctx.$implicit;\n const ctx_r1 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"ngClass\", ctx_r1.getHighlightClass(date_r10));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.weekviewHeaderTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(3, _c6, date_r10));\n }\n}\nfunction WeekViewComponent_div_8_td_8_ng_template_1_Template(rf, ctx) {}\nconst _c7 = function (a0, a1) {\n return {\n day: a0,\n eventTemplate: a1\n };\n};\nfunction WeekViewComponent_div_8_td_8_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 17);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_8_td_8_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const day_r16 = ctx.$implicit;\n const ctx_r14 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r14.weekviewAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(2, _c7, day_r16, ctx_r14.weekviewAllDayEventTemplate));\n }\n}\nfunction WeekViewComponent_div_8_tr_12_td_3_ng_template_1_Template(rf, ctx) {}\nconst _c8 = function (a0, a1, a2) {\n return {\n tm: a0,\n hourParts: a1,\n eventTemplate: a2\n };\n};\nfunction WeekViewComponent_div_8_tr_12_td_3_Template(rf, ctx) {\n if (rf & 1) {\n const _r24 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"td\", 20);\n ɵngcc0.ɵɵlistener(\"click\", function WeekViewComponent_div_8_tr_12_td_3_Template_td_click_0_listener() {\n const restoredCtx = ɵngcc0.ɵɵrestoreView(_r24);\n const tm_r21 = restoredCtx.$implicit;\n const ctx_r23 = ɵngcc0.ɵɵnextContext(3);\n return ɵngcc0.ɵɵresetView(ctx_r23.select(tm_r21.time, tm_r21.events));\n });\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_8_tr_12_td_3_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const tm_r21 = ctx.$implicit;\n const ctx_r20 = ɵngcc0.ɵɵnextContext(3);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r20.weekviewNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(2, _c8, tm_r21, ctx_r20.hourParts, ctx_r20.weekviewNormalEventTemplate));\n }\n}\nfunction WeekViewComponent_div_8_tr_12_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 18);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵtemplate(3, WeekViewComponent_div_8_tr_12_td_3_Template, 2, 6, \"td\", 19);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const row_r18 = ctx.$implicit;\n const i_r19 = ctx.index;\n const ctx_r15 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r15.hourColumnLabels[i_r19], \" \");\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", row_r18);\n }\n}\nfunction WeekViewComponent_div_8_Template(rf, ctx) {\n if (rf & 1) {\n const _r26 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"div\")(1, \"div\", 9)(2, \"div\", 10);\n ɵngcc0.ɵɵtext(3);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(4, \"div\", 11)(5, \"table\", 12)(6, \"tbody\")(7, \"tr\");\n ɵngcc0.ɵɵtemplate(8, WeekViewComponent_div_8_td_8_Template, 2, 5, \"td\", 13);\n ɵngcc0.ɵɵelementEnd()()()()();\n ɵngcc0.ɵɵelementStart(9, \"init-position-scroll\", 14);\n ɵngcc0.ɵɵlistener(\"onScroll\", function WeekViewComponent_div_8_Template_init_position_scroll_onScroll_9_listener($event) {\n ɵngcc0.ɵɵrestoreView(_r26);\n const ctx_r25 = ɵngcc0.ɵɵnextContext();\n return ɵngcc0.ɵɵresetView(ctx_r25.setScrollPosition($event));\n });\n ɵngcc0.ɵɵelementStart(10, \"table\", 15)(11, \"tbody\");\n ɵngcc0.ɵɵtemplate(12, WeekViewComponent_div_8_tr_12_Template, 4, 2, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()()();\n }\n if (rf & 2) {\n const ctx_r2 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵtextInterpolate(ctx_r2.allDayLabel);\n ɵngcc0.ɵɵadvance(5);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r2.views[0].dates);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r2.initScrollPosition)(\"emitEvent\", ctx_r2.preserveScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r2.views[0].rows);\n }\n}\nfunction WeekViewComponent_div_9_td_8_ng_template_1_Template(rf, ctx) {}\nconst _c9 = function (a0) {\n return {\n day: a0\n };\n};\nfunction WeekViewComponent_div_9_td_8_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 17);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_9_td_8_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const day_r29 = ctx.$implicit;\n const ctx_r27 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r27.weekviewInactiveAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(2, _c9, day_r29));\n }\n}\nfunction WeekViewComponent_div_9_tr_12_td_3_ng_template_1_Template(rf, ctx) {}\nconst _c10 = function (a0, a1) {\n return {\n tm: a0,\n hourParts: a1\n };\n};\nfunction WeekViewComponent_div_9_tr_12_td_3_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 17);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_9_tr_12_td_3_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const tm_r34 = ctx.$implicit;\n const ctx_r33 = ɵngcc0.ɵɵnextContext(3);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r33.weekviewInactiveNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(2, _c10, tm_r34, ctx_r33.hourParts));\n }\n}\nfunction WeekViewComponent_div_9_tr_12_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 18);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵtemplate(3, WeekViewComponent_div_9_tr_12_td_3_Template, 2, 5, \"td\", 13);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const row_r31 = ctx.$implicit;\n const i_r32 = ctx.index;\n const ctx_r28 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r28.hourColumnLabels[i_r32], \" \");\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", row_r31);\n }\n}\nfunction WeekViewComponent_div_9_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\")(1, \"div\", 9)(2, \"div\", 10);\n ɵngcc0.ɵɵtext(3);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(4, \"div\", 11)(5, \"table\", 12)(6, \"tbody\")(7, \"tr\");\n ɵngcc0.ɵɵtemplate(8, WeekViewComponent_div_9_td_8_Template, 2, 4, \"td\", 13);\n ɵngcc0.ɵɵelementEnd()()()()();\n ɵngcc0.ɵɵelementStart(9, \"init-position-scroll\", 21)(10, \"table\", 15)(11, \"tbody\");\n ɵngcc0.ɵɵtemplate(12, WeekViewComponent_div_9_tr_12_Template, 4, 2, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()()();\n }\n if (rf & 2) {\n const ctx_r3 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵtextInterpolate(ctx_r3.allDayLabel);\n ɵngcc0.ɵɵadvance(5);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r3.views[0].dates);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r3.initScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r3.views[0].rows);\n }\n}\nfunction WeekViewComponent_th_15_ng_template_1_Template(rf, ctx) {}\nfunction WeekViewComponent_th_15_Template(rf, ctx) {\n if (rf & 1) {\n const _r39 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"th\", 7);\n ɵngcc0.ɵɵlistener(\"click\", function WeekViewComponent_th_15_Template_th_click_0_listener() {\n const restoredCtx = ɵngcc0.ɵɵrestoreView(_r39);\n const date_r36 = restoredCtx.$implicit;\n const ctx_r38 = ɵngcc0.ɵɵnextContext();\n return ɵngcc0.ɵɵresetView(ctx_r38.daySelected(date_r36));\n });\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_th_15_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const date_r36 = ctx.$implicit;\n const ctx_r4 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"ngClass\", ctx_r4.getHighlightClass(date_r36));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r4.weekviewHeaderTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(3, _c6, date_r36));\n }\n}\nfunction WeekViewComponent_div_16_td_8_ng_template_1_Template(rf, ctx) {}\nfunction WeekViewComponent_div_16_td_8_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 17);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_16_td_8_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const day_r42 = ctx.$implicit;\n const ctx_r40 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r40.weekviewAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(2, _c7, day_r42, ctx_r40.weekviewAllDayEventTemplate));\n }\n}\nfunction WeekViewComponent_div_16_tr_12_td_3_div_1_ng_template_1_Template(rf, ctx) {}\nconst _c11 = function (a0) {\n return {\n \"calendar-event-wrap\": a0\n };\n};\nfunction WeekViewComponent_div_16_tr_12_td_3_div_1_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\", 23);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_16_tr_12_td_3_div_1_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const tm_r47 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r48 = ɵngcc0.ɵɵnextContext(3);\n ɵngcc0.ɵɵproperty(\"ngClass\", ɵngcc0.ɵɵpureFunction1(3, _c11, tm_r47.events));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r48.weekviewNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(5, _c8, tm_r47, ctx_r48.hourParts, ctx_r48.weekviewNormalEventTemplate));\n }\n}\nfunction WeekViewComponent_div_16_tr_12_td_3_Template(rf, ctx) {\n if (rf & 1) {\n const _r52 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"td\", 20);\n ɵngcc0.ɵɵlistener(\"click\", function WeekViewComponent_div_16_tr_12_td_3_Template_td_click_0_listener() {\n const restoredCtx = ɵngcc0.ɵɵrestoreView(_r52);\n const tm_r47 = restoredCtx.$implicit;\n const ctx_r51 = ɵngcc0.ɵɵnextContext(3);\n return ɵngcc0.ɵɵresetView(ctx_r51.select(tm_r47.time, tm_r47.events));\n });\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_16_tr_12_td_3_div_1_Template, 2, 9, \"div\", 22);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const tm_r47 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", tm_r47.events);\n }\n}\nfunction WeekViewComponent_div_16_tr_12_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 18);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵtemplate(3, WeekViewComponent_div_16_tr_12_td_3_Template, 2, 1, \"td\", 19);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const row_r44 = ctx.$implicit;\n const i_r45 = ctx.index;\n const ctx_r41 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r41.hourColumnLabels[i_r45], \" \");\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", row_r44);\n }\n}\nfunction WeekViewComponent_div_16_Template(rf, ctx) {\n if (rf & 1) {\n const _r54 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"div\")(1, \"div\", 9)(2, \"div\", 10);\n ɵngcc0.ɵɵtext(3);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(4, \"div\", 11)(5, \"table\", 12)(6, \"tbody\")(7, \"tr\");\n ɵngcc0.ɵɵtemplate(8, WeekViewComponent_div_16_td_8_Template, 2, 5, \"td\", 13);\n ɵngcc0.ɵɵelementEnd()()()()();\n ɵngcc0.ɵɵelementStart(9, \"init-position-scroll\", 14);\n ɵngcc0.ɵɵlistener(\"onScroll\", function WeekViewComponent_div_16_Template_init_position_scroll_onScroll_9_listener($event) {\n ɵngcc0.ɵɵrestoreView(_r54);\n const ctx_r53 = ɵngcc0.ɵɵnextContext();\n return ɵngcc0.ɵɵresetView(ctx_r53.setScrollPosition($event));\n });\n ɵngcc0.ɵɵelementStart(10, \"table\", 15)(11, \"tbody\");\n ɵngcc0.ɵɵtemplate(12, WeekViewComponent_div_16_tr_12_Template, 4, 2, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()()();\n }\n if (rf & 2) {\n const ctx_r5 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵtextInterpolate(ctx_r5.allDayLabel);\n ɵngcc0.ɵɵadvance(5);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r5.views[1].dates);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r5.initScrollPosition)(\"emitEvent\", ctx_r5.preserveScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r5.views[1].rows);\n }\n}\nfunction WeekViewComponent_div_17_td_8_ng_template_1_Template(rf, ctx) {}\nfunction WeekViewComponent_div_17_td_8_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 17);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_17_td_8_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const day_r57 = ctx.$implicit;\n const ctx_r55 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r55.weekviewInactiveAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(2, _c9, day_r57));\n }\n}\nfunction WeekViewComponent_div_17_tr_12_td_3_div_1_ng_template_1_Template(rf, ctx) {}\nfunction WeekViewComponent_div_17_tr_12_td_3_div_1_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\", 23);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_17_tr_12_td_3_div_1_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const tm_r62 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r63 = ɵngcc0.ɵɵnextContext(3);\n ɵngcc0.ɵɵproperty(\"ngClass\", ɵngcc0.ɵɵpureFunction1(3, _c11, tm_r62.events));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r63.weekviewInactiveNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(5, _c10, tm_r62, ctx_r63.hourParts));\n }\n}\nfunction WeekViewComponent_div_17_tr_12_td_3_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 17);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_17_tr_12_td_3_div_1_Template, 2, 8, \"div\", 22);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const tm_r62 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", tm_r62.events);\n }\n}\nfunction WeekViewComponent_div_17_tr_12_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 18);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵtemplate(3, WeekViewComponent_div_17_tr_12_td_3_Template, 2, 1, \"td\", 13);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const row_r59 = ctx.$implicit;\n const i_r60 = ctx.index;\n const ctx_r56 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r56.hourColumnLabels[i_r60], \" \");\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", row_r59);\n }\n}\nfunction WeekViewComponent_div_17_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\")(1, \"div\", 9)(2, \"div\", 10);\n ɵngcc0.ɵɵtext(3);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(4, \"div\", 11)(5, \"table\", 12)(6, \"tbody\")(7, \"tr\");\n ɵngcc0.ɵɵtemplate(8, WeekViewComponent_div_17_td_8_Template, 2, 4, \"td\", 13);\n ɵngcc0.ɵɵelementEnd()()()()();\n ɵngcc0.ɵɵelementStart(9, \"init-position-scroll\", 21)(10, \"table\", 15)(11, \"tbody\");\n ɵngcc0.ɵɵtemplate(12, WeekViewComponent_div_17_tr_12_Template, 4, 2, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()()();\n }\n if (rf & 2) {\n const ctx_r6 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵtextInterpolate(ctx_r6.allDayLabel);\n ɵngcc0.ɵɵadvance(5);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r6.views[1].dates);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r6.initScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r6.views[1].rows);\n }\n}\nfunction WeekViewComponent_th_23_ng_template_1_Template(rf, ctx) {}\nfunction WeekViewComponent_th_23_Template(rf, ctx) {\n if (rf & 1) {\n const _r69 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"th\", 7);\n ɵngcc0.ɵɵlistener(\"click\", function WeekViewComponent_th_23_Template_th_click_0_listener() {\n const restoredCtx = ɵngcc0.ɵɵrestoreView(_r69);\n const date_r66 = restoredCtx.$implicit;\n const ctx_r68 = ɵngcc0.ɵɵnextContext();\n return ɵngcc0.ɵɵresetView(ctx_r68.daySelected(date_r66));\n });\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_th_23_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const date_r66 = ctx.$implicit;\n const ctx_r7 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"ngClass\", ctx_r7.getHighlightClass(date_r66));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r7.weekviewHeaderTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(3, _c6, date_r66));\n }\n}\nfunction WeekViewComponent_div_24_td_8_ng_template_1_Template(rf, ctx) {}\nfunction WeekViewComponent_div_24_td_8_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 17);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_24_td_8_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const day_r72 = ctx.$implicit;\n const ctx_r70 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r70.weekviewAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(2, _c7, day_r72, ctx_r70.weekviewAllDayEventTemplate));\n }\n}\nfunction WeekViewComponent_div_24_tr_12_td_3_div_1_ng_template_1_Template(rf, ctx) {}\nfunction WeekViewComponent_div_24_tr_12_td_3_div_1_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\", 23);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_24_tr_12_td_3_div_1_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const tm_r77 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r78 = ɵngcc0.ɵɵnextContext(3);\n ɵngcc0.ɵɵproperty(\"ngClass\", ɵngcc0.ɵɵpureFunction1(3, _c11, tm_r77.events));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r78.weekviewNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(5, _c8, tm_r77, ctx_r78.hourParts, ctx_r78.weekviewNormalEventTemplate));\n }\n}\nfunction WeekViewComponent_div_24_tr_12_td_3_Template(rf, ctx) {\n if (rf & 1) {\n const _r82 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"td\", 20);\n ɵngcc0.ɵɵlistener(\"click\", function WeekViewComponent_div_24_tr_12_td_3_Template_td_click_0_listener() {\n const restoredCtx = ɵngcc0.ɵɵrestoreView(_r82);\n const tm_r77 = restoredCtx.$implicit;\n const ctx_r81 = ɵngcc0.ɵɵnextContext(3);\n return ɵngcc0.ɵɵresetView(ctx_r81.select(tm_r77.time, tm_r77.events));\n });\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_24_tr_12_td_3_div_1_Template, 2, 9, \"div\", 22);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const tm_r77 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", tm_r77.events);\n }\n}\nfunction WeekViewComponent_div_24_tr_12_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 18);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵtemplate(3, WeekViewComponent_div_24_tr_12_td_3_Template, 2, 1, \"td\", 19);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const row_r74 = ctx.$implicit;\n const i_r75 = ctx.index;\n const ctx_r71 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r71.hourColumnLabels[i_r75], \" \");\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", row_r74);\n }\n}\nfunction WeekViewComponent_div_24_Template(rf, ctx) {\n if (rf & 1) {\n const _r84 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"div\")(1, \"div\", 9)(2, \"div\", 10);\n ɵngcc0.ɵɵtext(3);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(4, \"div\", 11)(5, \"table\", 12)(6, \"tbody\")(7, \"tr\");\n ɵngcc0.ɵɵtemplate(8, WeekViewComponent_div_24_td_8_Template, 2, 5, \"td\", 13);\n ɵngcc0.ɵɵelementEnd()()()()();\n ɵngcc0.ɵɵelementStart(9, \"init-position-scroll\", 14);\n ɵngcc0.ɵɵlistener(\"onScroll\", function WeekViewComponent_div_24_Template_init_position_scroll_onScroll_9_listener($event) {\n ɵngcc0.ɵɵrestoreView(_r84);\n const ctx_r83 = ɵngcc0.ɵɵnextContext();\n return ɵngcc0.ɵɵresetView(ctx_r83.setScrollPosition($event));\n });\n ɵngcc0.ɵɵelementStart(10, \"table\", 15)(11, \"tbody\");\n ɵngcc0.ɵɵtemplate(12, WeekViewComponent_div_24_tr_12_Template, 4, 2, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()()();\n }\n if (rf & 2) {\n const ctx_r8 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵtextInterpolate(ctx_r8.allDayLabel);\n ɵngcc0.ɵɵadvance(5);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r8.views[2].dates);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r8.initScrollPosition)(\"emitEvent\", ctx_r8.preserveScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r8.views[2].rows);\n }\n}\nfunction WeekViewComponent_div_25_td_8_ng_template_1_Template(rf, ctx) {}\nfunction WeekViewComponent_div_25_td_8_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 17);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_25_td_8_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const day_r87 = ctx.$implicit;\n const ctx_r85 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r85.weekviewInactiveAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(2, _c9, day_r87));\n }\n}\nfunction WeekViewComponent_div_25_tr_12_td_3_div_1_ng_template_1_Template(rf, ctx) {}\nfunction WeekViewComponent_div_25_tr_12_td_3_div_1_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\", 23);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_25_tr_12_td_3_div_1_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const tm_r92 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r93 = ɵngcc0.ɵɵnextContext(3);\n ɵngcc0.ɵɵproperty(\"ngClass\", ɵngcc0.ɵɵpureFunction1(3, _c11, tm_r92.events));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r93.weekviewInactiveNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(5, _c10, tm_r92, ctx_r93.hourParts));\n }\n}\nfunction WeekViewComponent_div_25_tr_12_td_3_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 17);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_25_tr_12_td_3_div_1_Template, 2, 8, \"div\", 22);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const tm_r92 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", tm_r92.events);\n }\n}\nfunction WeekViewComponent_div_25_tr_12_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 18);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵtemplate(3, WeekViewComponent_div_25_tr_12_td_3_Template, 2, 1, \"td\", 13);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const row_r89 = ctx.$implicit;\n const i_r90 = ctx.index;\n const ctx_r86 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r86.hourColumnLabels[i_r90], \" \");\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", row_r89);\n }\n}\nfunction WeekViewComponent_div_25_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\")(1, \"div\", 9)(2, \"div\", 10);\n ɵngcc0.ɵɵtext(3);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(4, \"div\", 11)(5, \"table\", 12)(6, \"tbody\")(7, \"tr\");\n ɵngcc0.ɵɵtemplate(8, WeekViewComponent_div_25_td_8_Template, 2, 4, \"td\", 13);\n ɵngcc0.ɵɵelementEnd()()()()();\n ɵngcc0.ɵɵelementStart(9, \"init-position-scroll\", 21)(10, \"table\", 15)(11, \"tbody\");\n ɵngcc0.ɵɵtemplate(12, WeekViewComponent_div_25_tr_12_Template, 4, 2, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()()();\n }\n if (rf & 2) {\n const ctx_r9 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵtextInterpolate(ctx_r9.allDayLabel);\n ɵngcc0.ɵɵadvance(5);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r9.views[2].dates);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r9.initScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r9.views[2].rows);\n }\n}\nconst _c12 = [\"daySlider\"];\nfunction DayViewComponent_td_10_ng_template_1_Template(rf, ctx) {}\nconst _c13 = function (a0) {\n return {\n height: a0\n };\n};\nconst _c14 = function (a0, a1) {\n return {\n allDayEvents: a0,\n eventTemplate: a1\n };\n};\nfunction DayViewComponent_td_10_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 11);\n ɵngcc0.ɵɵtemplate(1, DayViewComponent_td_10_ng_template_1_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"ngClass\", ɵngcc0.ɵɵpureFunction1(4, _c11, ctx_r1.views[0].allDayEvents.length > 0))(\"ngStyle\", ɵngcc0.ɵɵpureFunction1(6, _c13, 25 * ctx_r1.views[0].allDayEvents.length + \"px\"));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.dayviewAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(8, _c14, ctx_r1.views[0].allDayEvents, ctx_r1.dayviewAllDayEventTemplate));\n }\n}\nfunction DayViewComponent_td_11_ng_template_1_Template(rf, ctx) {}\nconst _c15 = function (a0) {\n return {\n allDayEvents: a0\n };\n};\nfunction DayViewComponent_td_11_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 13);\n ɵngcc0.ɵɵtemplate(1, DayViewComponent_td_11_ng_template_1_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r2 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r2.dayviewInactiveAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(2, _c15, ctx_r2.views[0].allDayEvents));\n }\n}\nfunction DayViewComponent_init_position_scroll_12_tr_3_ng_template_4_Template(rf, ctx) {}\nfunction DayViewComponent_init_position_scroll_12_tr_3_Template(rf, ctx) {\n if (rf & 1) {\n const _r20 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 17);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(3, \"td\", 18);\n ɵngcc0.ɵɵlistener(\"click\", function DayViewComponent_init_position_scroll_12_tr_3_Template_td_click_3_listener() {\n const restoredCtx = ɵngcc0.ɵɵrestoreView(_r20);\n const tm_r16 = restoredCtx.$implicit;\n const ctx_r19 = ɵngcc0.ɵɵnextContext(2);\n return ɵngcc0.ɵɵresetView(ctx_r19.select(tm_r16.time, tm_r16.events));\n });\n ɵngcc0.ɵɵtemplate(4, DayViewComponent_init_position_scroll_12_tr_3_ng_template_4_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const tm_r16 = ctx.$implicit;\n const i_r17 = ctx.index;\n const ctx_r15 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r15.hourColumnLabels[i_r17], \" \");\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r15.dayviewNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(3, _c8, tm_r16, ctx_r15.hourParts, ctx_r15.dayviewNormalEventTemplate));\n }\n}\nfunction DayViewComponent_init_position_scroll_12_Template(rf, ctx) {\n if (rf & 1) {\n const _r22 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"init-position-scroll\", 14);\n ɵngcc0.ɵɵlistener(\"onScroll\", function DayViewComponent_init_position_scroll_12_Template_init_position_scroll_onScroll_0_listener($event) {\n ɵngcc0.ɵɵrestoreView(_r22);\n const ctx_r21 = ɵngcc0.ɵɵnextContext();\n return ɵngcc0.ɵɵresetView(ctx_r21.setScrollPosition($event));\n });\n ɵngcc0.ɵɵelementStart(1, \"table\", 15)(2, \"tbody\");\n ɵngcc0.ɵɵtemplate(3, DayViewComponent_init_position_scroll_12_tr_3_Template, 5, 7, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()();\n }\n if (rf & 2) {\n const ctx_r3 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r3.initScrollPosition)(\"emitEvent\", ctx_r3.preserveScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r3.views[0].rows);\n }\n}\nfunction DayViewComponent_init_position_scroll_13_tr_3_ng_template_4_Template(rf, ctx) {}\nfunction DayViewComponent_init_position_scroll_13_tr_3_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 17);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(3, \"td\", 13);\n ɵngcc0.ɵɵtemplate(4, DayViewComponent_init_position_scroll_13_tr_3_ng_template_4_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const tm_r24 = ctx.$implicit;\n const i_r25 = ctx.index;\n const ctx_r23 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r23.hourColumnLabels[i_r25], \" \");\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r23.dayviewInactiveNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(3, _c10, tm_r24, ctx_r23.hourParts));\n }\n}\nfunction DayViewComponent_init_position_scroll_13_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"init-position-scroll\", 19)(1, \"table\", 15)(2, \"tbody\");\n ɵngcc0.ɵɵtemplate(3, DayViewComponent_init_position_scroll_13_tr_3_Template, 5, 6, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()();\n }\n if (rf & 2) {\n const ctx_r4 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r4.initScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r4.views[0].rows);\n }\n}\nfunction DayViewComponent_td_22_ng_template_1_Template(rf, ctx) {}\nfunction DayViewComponent_td_22_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 11);\n ɵngcc0.ɵɵtemplate(1, DayViewComponent_td_22_ng_template_1_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r5 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"ngClass\", ɵngcc0.ɵɵpureFunction1(4, _c11, ctx_r5.views[1].allDayEvents.length > 0))(\"ngStyle\", ɵngcc0.ɵɵpureFunction1(6, _c13, 25 * ctx_r5.views[1].allDayEvents.length + \"px\"));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r5.dayviewAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(8, _c14, ctx_r5.views[1].allDayEvents, ctx_r5.dayviewAllDayEventTemplate));\n }\n}\nfunction DayViewComponent_td_23_ng_template_1_Template(rf, ctx) {}\nfunction DayViewComponent_td_23_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 13);\n ɵngcc0.ɵɵtemplate(1, DayViewComponent_td_23_ng_template_1_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r6 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r6.dayviewInactiveAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(2, _c15, ctx_r6.views[1].allDayEvents));\n }\n}\nfunction DayViewComponent_init_position_scroll_24_tr_3_ng_template_4_Template(rf, ctx) {}\nfunction DayViewComponent_init_position_scroll_24_tr_3_Template(rf, ctx) {\n if (rf & 1) {\n const _r34 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 17);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(3, \"td\", 18);\n ɵngcc0.ɵɵlistener(\"click\", function DayViewComponent_init_position_scroll_24_tr_3_Template_td_click_3_listener() {\n const restoredCtx = ɵngcc0.ɵɵrestoreView(_r34);\n const tm_r30 = restoredCtx.$implicit;\n const ctx_r33 = ɵngcc0.ɵɵnextContext(2);\n return ɵngcc0.ɵɵresetView(ctx_r33.select(tm_r30.time, tm_r30.events));\n });\n ɵngcc0.ɵɵtemplate(4, DayViewComponent_init_position_scroll_24_tr_3_ng_template_4_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const tm_r30 = ctx.$implicit;\n const i_r31 = ctx.index;\n const ctx_r29 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r29.hourColumnLabels[i_r31], \" \");\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r29.dayviewNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(3, _c8, tm_r30, ctx_r29.hourParts, ctx_r29.dayviewNormalEventTemplate));\n }\n}\nfunction DayViewComponent_init_position_scroll_24_Template(rf, ctx) {\n if (rf & 1) {\n const _r36 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"init-position-scroll\", 14);\n ɵngcc0.ɵɵlistener(\"onScroll\", function DayViewComponent_init_position_scroll_24_Template_init_position_scroll_onScroll_0_listener($event) {\n ɵngcc0.ɵɵrestoreView(_r36);\n const ctx_r35 = ɵngcc0.ɵɵnextContext();\n return ɵngcc0.ɵɵresetView(ctx_r35.setScrollPosition($event));\n });\n ɵngcc0.ɵɵelementStart(1, \"table\", 15)(2, \"tbody\");\n ɵngcc0.ɵɵtemplate(3, DayViewComponent_init_position_scroll_24_tr_3_Template, 5, 7, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()();\n }\n if (rf & 2) {\n const ctx_r7 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r7.initScrollPosition)(\"emitEvent\", ctx_r7.preserveScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r7.views[1].rows);\n }\n}\nfunction DayViewComponent_init_position_scroll_25_tr_3_ng_template_4_Template(rf, ctx) {}\nfunction DayViewComponent_init_position_scroll_25_tr_3_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 17);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(3, \"td\", 13);\n ɵngcc0.ɵɵtemplate(4, DayViewComponent_init_position_scroll_25_tr_3_ng_template_4_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const tm_r38 = ctx.$implicit;\n const i_r39 = ctx.index;\n const ctx_r37 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r37.hourColumnLabels[i_r39], \" \");\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r37.dayviewInactiveNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(3, _c10, tm_r38, ctx_r37.hourParts));\n }\n}\nfunction DayViewComponent_init_position_scroll_25_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"init-position-scroll\", 19)(1, \"table\", 15)(2, \"tbody\");\n ɵngcc0.ɵɵtemplate(3, DayViewComponent_init_position_scroll_25_tr_3_Template, 5, 6, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()();\n }\n if (rf & 2) {\n const ctx_r8 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r8.initScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r8.views[1].rows);\n }\n}\nfunction DayViewComponent_td_34_ng_template_1_Template(rf, ctx) {}\nfunction DayViewComponent_td_34_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 11);\n ɵngcc0.ɵɵtemplate(1, DayViewComponent_td_34_ng_template_1_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r9 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"ngClass\", ɵngcc0.ɵɵpureFunction1(4, _c11, ctx_r9.views[2].allDayEvents.length > 0))(\"ngStyle\", ɵngcc0.ɵɵpureFunction1(6, _c13, 25 * ctx_r9.views[2].allDayEvents.length + \"px\"));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r9.dayviewAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(8, _c14, ctx_r9.views[2].allDayEvents, ctx_r9.dayviewAllDayEventTemplate));\n }\n}\nfunction DayViewComponent_td_35_ng_template_1_Template(rf, ctx) {}\nfunction DayViewComponent_td_35_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 13);\n ɵngcc0.ɵɵtemplate(1, DayViewComponent_td_35_ng_template_1_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r10 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r10.dayviewInactiveAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(2, _c15, ctx_r10.views[2].allDayEvents));\n }\n}\nfunction DayViewComponent_init_position_scroll_36_tr_3_ng_template_4_Template(rf, ctx) {}\nfunction DayViewComponent_init_position_scroll_36_tr_3_Template(rf, ctx) {\n if (rf & 1) {\n const _r48 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 17);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(3, \"td\", 18);\n ɵngcc0.ɵɵlistener(\"click\", function DayViewComponent_init_position_scroll_36_tr_3_Template_td_click_3_listener() {\n const restoredCtx = ɵngcc0.ɵɵrestoreView(_r48);\n const tm_r44 = restoredCtx.$implicit;\n const ctx_r47 = ɵngcc0.ɵɵnextContext(2);\n return ɵngcc0.ɵɵresetView(ctx_r47.select(tm_r44.time, tm_r44.events));\n });\n ɵngcc0.ɵɵtemplate(4, DayViewComponent_init_position_scroll_36_tr_3_ng_template_4_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const tm_r44 = ctx.$implicit;\n const i_r45 = ctx.index;\n const ctx_r43 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r43.hourColumnLabels[i_r45], \" \");\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r43.dayviewNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(3, _c8, tm_r44, ctx_r43.hourParts, ctx_r43.dayviewNormalEventTemplate));\n }\n}\nfunction DayViewComponent_init_position_scroll_36_Template(rf, ctx) {\n if (rf & 1) {\n const _r50 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"init-position-scroll\", 14);\n ɵngcc0.ɵɵlistener(\"onScroll\", function DayViewComponent_init_position_scroll_36_Template_init_position_scroll_onScroll_0_listener($event) {\n ɵngcc0.ɵɵrestoreView(_r50);\n const ctx_r49 = ɵngcc0.ɵɵnextContext();\n return ɵngcc0.ɵɵresetView(ctx_r49.setScrollPosition($event));\n });\n ɵngcc0.ɵɵelementStart(1, \"table\", 15)(2, \"tbody\");\n ɵngcc0.ɵɵtemplate(3, DayViewComponent_init_position_scroll_36_tr_3_Template, 5, 7, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()();\n }\n if (rf & 2) {\n const ctx_r11 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r11.initScrollPosition)(\"emitEvent\", ctx_r11.preserveScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r11.views[2].rows);\n }\n}\nfunction DayViewComponent_init_position_scroll_37_tr_3_ng_template_4_Template(rf, ctx) {}\nfunction DayViewComponent_init_position_scroll_37_tr_3_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 17);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(3, \"td\", 13);\n ɵngcc0.ɵɵtemplate(4, DayViewComponent_init_position_scroll_37_tr_3_ng_template_4_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const tm_r52 = ctx.$implicit;\n const i_r53 = ctx.index;\n const ctx_r51 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r51.hourColumnLabels[i_r53], \" \");\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r51.dayviewInactiveNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(3, _c10, tm_r52, ctx_r51.hourParts));\n }\n}\nfunction DayViewComponent_init_position_scroll_37_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"init-position-scroll\", 19)(1, \"table\", 15)(2, \"tbody\");\n ɵngcc0.ɵɵtemplate(3, DayViewComponent_init_position_scroll_37_tr_3_Template, 5, 6, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()();\n }\n if (rf & 2) {\n const ctx_r12 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r12.initScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r12.views[2].rows);\n }\n}\nfunction CalendarComponent_ng_template_0_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵtext(0);\n }\n if (rf & 2) {\n const view_r23 = ctx.view;\n const row_r24 = ctx.row;\n const col_r25 = ctx.col;\n ɵngcc0.ɵɵtextInterpolate1(\" \", view_r23.dates[row_r24 * 7 + col_r25].label, \" \");\n }\n}\nfunction CalendarComponent_ng_template_2_ion_list_0_ion_item_1_span_1_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"span\", 21);\n ɵngcc0.ɵɵtext(1);\n ɵngcc0.ɵɵpipe(2, \"date\");\n ɵngcc0.ɵɵpipe(3, \"date\");\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const event_r32 = ɵngcc0.ɵɵnextContext().$implicit;\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵtextInterpolate2(\"\", ɵngcc0.ɵɵpipeBind2(2, 2, event_r32.startTime, \"HH:mm\"), \" - \", ɵngcc0.ɵɵpipeBind2(3, 5, event_r32.endTime, \"HH:mm\"), \" \");\n }\n}\nfunction CalendarComponent_ng_template_2_ion_list_0_ion_item_1_span_2_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"span\", 21);\n ɵngcc0.ɵɵtext(1);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r34 = ɵngcc0.ɵɵnextContext(4);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵtextInterpolate(ctx_r34.allDayLabel);\n }\n}\nfunction CalendarComponent_ng_template_2_ion_list_0_ion_item_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r37 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"ion-item\", 18);\n ɵngcc0.ɵɵlistener(\"click\", function CalendarComponent_ng_template_2_ion_list_0_ion_item_1_Template_ion_item_click_0_listener() {\n const restoredCtx = ɵngcc0.ɵɵrestoreView(_r37);\n const event_r32 = restoredCtx.$implicit;\n const ctx_r36 = ɵngcc0.ɵɵnextContext(3);\n return ɵngcc0.ɵɵresetView(ctx_r36.eventSelected(event_r32));\n });\n ɵngcc0.ɵɵtemplate(1, CalendarComponent_ng_template_2_ion_list_0_ion_item_1_span_1_Template, 4, 8, \"span\", 19);\n ɵngcc0.ɵɵtemplate(2, CalendarComponent_ng_template_2_ion_list_0_ion_item_1_span_2_Template, 2, 1, \"span\", 19);\n ɵngcc0.ɵɵelementStart(3, \"span\", 20);\n ɵngcc0.ɵɵtext(4);\n ɵngcc0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const event_r32 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", !event_r32.allDay);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", event_r32.allDay);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" | \", event_r32.title, \"\");\n }\n}\nfunction CalendarComponent_ng_template_2_ion_list_0_ion_item_2_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"ion-item\")(1, \"div\", 22);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const noEventsLabel_r28 = ɵngcc0.ɵɵnextContext(2).noEventsLabel;\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate(noEventsLabel_r28);\n }\n}\nfunction CalendarComponent_ng_template_2_ion_list_0_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"ion-list\", 15);\n ɵngcc0.ɵɵtemplate(1, CalendarComponent_ng_template_2_ion_list_0_ion_item_1_Template, 5, 3, \"ion-item\", 16);\n ɵngcc0.ɵɵtemplate(2, CalendarComponent_ng_template_2_ion_list_0_ion_item_2_Template, 3, 1, \"ion-item\", 17);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const selectedDate_r27 = ɵngcc0.ɵɵnextContext().selectedDate;\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", selectedDate_r27 == null ? null : selectedDate_r27.events);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", (selectedDate_r27 == null ? null : selectedDate_r27.events.length) == 0);\n }\n}\nfunction CalendarComponent_ng_template_2_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵtemplate(0, CalendarComponent_ng_template_2_ion_list_0_Template, 3, 2, \"ion-list\", 14);\n }\n if (rf & 2) {\n const showEventDetail_r26 = ctx.showEventDetail;\n ɵngcc0.ɵɵproperty(\"ngIf\", showEventDetail_r26);\n }\n}\nfunction CalendarComponent_ng_template_4_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵtext(0);\n }\n if (rf & 2) {\n const viewDate_r40 = ctx.viewDate;\n ɵngcc0.ɵɵtextInterpolate1(\" \", viewDate_r40.dayHeader, \" \");\n }\n}\nfunction CalendarComponent_ng_template_6_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\", 23);\n ɵngcc0.ɵɵtext(1);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const displayEvent_r41 = ctx.displayEvent;\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵtextInterpolate(displayEvent_r41.event.title);\n }\n}\nfunction CalendarComponent_ng_template_8_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\", 23);\n ɵngcc0.ɵɵtext(1);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const displayEvent_r42 = ctx.displayEvent;\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵtextInterpolate(displayEvent_r42.event.title);\n }\n}\nfunction CalendarComponent_ng_template_10_div_0_div_1_ng_template_1_Template(rf, ctx) {}\nconst _c16 = function (a0, a1) {\n return {\n top: a0,\n width: a1,\n height: \"25px\"\n };\n};\nconst _c17 = function (a0) {\n return {\n displayEvent: a0\n };\n};\nfunction CalendarComponent_ng_template_10_div_0_div_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r50 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"div\", 27);\n ɵngcc0.ɵɵlistener(\"click\", function CalendarComponent_ng_template_10_div_0_div_1_Template_div_click_0_listener() {\n const restoredCtx = ɵngcc0.ɵɵrestoreView(_r50);\n const displayEvent_r47 = restoredCtx.$implicit;\n const ctx_r49 = ɵngcc0.ɵɵnextContext(3);\n return ɵngcc0.ɵɵresetView(ctx_r49.eventSelected(displayEvent_r47.event));\n });\n ɵngcc0.ɵɵtemplate(1, CalendarComponent_ng_template_10_div_0_div_1_ng_template_1_Template, 0, 0, \"ng-template\", 28);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const displayEvent_r47 = ctx.$implicit;\n const eventTemplate_r44 = ɵngcc0.ɵɵnextContext(2).eventTemplate;\n ɵngcc0.ɵɵproperty(\"ngStyle\", ɵngcc0.ɵɵpureFunction2(3, _c16, 25 * displayEvent_r47.position + \"px\", 100 * (displayEvent_r47.endIndex - displayEvent_r47.startIndex) + \"%\"));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", eventTemplate_r44)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(6, _c17, displayEvent_r47));\n }\n}\nfunction CalendarComponent_ng_template_10_div_0_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\", 25);\n ɵngcc0.ɵɵtemplate(1, CalendarComponent_ng_template_10_div_0_div_1_Template, 2, 8, \"div\", 26);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const day_r43 = ɵngcc0.ɵɵnextContext().day;\n ɵngcc0.ɵɵproperty(\"ngClass\", ɵngcc0.ɵɵpureFunction1(3, _c11, day_r43.events))(\"ngStyle\", ɵngcc0.ɵɵpureFunction1(5, _c13, 25 * day_r43.events.length + \"px\"));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", day_r43.events);\n }\n}\nfunction CalendarComponent_ng_template_10_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵtemplate(0, CalendarComponent_ng_template_10_div_0_Template, 2, 7, \"div\", 24);\n }\n if (rf & 2) {\n const day_r43 = ctx.day;\n ɵngcc0.ɵɵproperty(\"ngIf\", day_r43.events);\n }\n}\nfunction CalendarComponent_ng_template_12_div_0_ng_template_1_Template(rf, ctx) {}\nconst _c18 = function (a0) {\n return {\n top: a0,\n width: \"100%\",\n height: \"25px\"\n };\n};\nfunction CalendarComponent_ng_template_12_div_0_Template(rf, ctx) {\n if (rf & 1) {\n const _r60 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"div\", 27);\n ɵngcc0.ɵɵlistener(\"click\", function CalendarComponent_ng_template_12_div_0_Template_div_click_0_listener() {\n const restoredCtx = ɵngcc0.ɵɵrestoreView(_r60);\n const displayEvent_r56 = restoredCtx.$implicit;\n const ctx_r59 = ɵngcc0.ɵɵnextContext(2);\n return ɵngcc0.ɵɵresetView(ctx_r59.eventSelected(displayEvent_r56.event));\n });\n ɵngcc0.ɵɵtemplate(1, CalendarComponent_ng_template_12_div_0_ng_template_1_Template, 0, 0, \"ng-template\", 28);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const displayEvent_r56 = ctx.$implicit;\n const eventIndex_r57 = ctx.index;\n const eventTemplate_r54 = ɵngcc0.ɵɵnextContext().eventTemplate;\n ɵngcc0.ɵɵproperty(\"ngStyle\", ɵngcc0.ɵɵpureFunction1(3, _c18, 25 * eventIndex_r57 + \"px\"));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", eventTemplate_r54)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(5, _c17, displayEvent_r56));\n }\n}\nfunction CalendarComponent_ng_template_12_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵtemplate(0, CalendarComponent_ng_template_12_div_0_Template, 2, 7, \"div\", 26);\n }\n if (rf & 2) {\n const allDayEvents_r53 = ctx.allDayEvents;\n ɵngcc0.ɵɵproperty(\"ngForOf\", allDayEvents_r53);\n }\n}\nfunction CalendarComponent_ng_template_14_div_0_div_1_ng_template_1_Template(rf, ctx) {}\nconst _c19 = function (a0, a1, a2, a3) {\n return {\n top: a0,\n left: a1,\n width: a2,\n height: a3\n };\n};\nfunction CalendarComponent_ng_template_14_div_0_div_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r70 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"div\", 27);\n ɵngcc0.ɵɵlistener(\"click\", function CalendarComponent_ng_template_14_div_0_div_1_Template_div_click_0_listener() {\n const restoredCtx = ɵngcc0.ɵɵrestoreView(_r70);\n const displayEvent_r67 = restoredCtx.$implicit;\n const ctx_r69 = ɵngcc0.ɵɵnextContext(3);\n return ɵngcc0.ɵɵresetView(ctx_r69.eventSelected(displayEvent_r67.event));\n });\n ɵngcc0.ɵɵtemplate(1, CalendarComponent_ng_template_14_div_0_div_1_ng_template_1_Template, 0, 0, \"ng-template\", 28);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const displayEvent_r67 = ctx.$implicit;\n const ctx_r71 = ɵngcc0.ɵɵnextContext(2);\n const hourParts_r63 = ctx_r71.hourParts;\n const eventTemplate_r64 = ctx_r71.eventTemplate;\n ɵngcc0.ɵɵproperty(\"ngStyle\", ɵngcc0.ɵɵpureFunction4(3, _c19, 37 * displayEvent_r67.startOffset / hourParts_r63 + \"px\", 100 / displayEvent_r67.overlapNumber * displayEvent_r67.position + \"%\", 100 / displayEvent_r67.overlapNumber + \"%\", 37 * (displayEvent_r67.endIndex - displayEvent_r67.startIndex - (displayEvent_r67.endOffset + displayEvent_r67.startOffset) / hourParts_r63) + \"px\"));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", eventTemplate_r64)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(8, _c17, displayEvent_r67));\n }\n}\nfunction CalendarComponent_ng_template_14_div_0_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\", 30);\n ɵngcc0.ɵɵtemplate(1, CalendarComponent_ng_template_14_div_0_div_1_Template, 2, 10, \"div\", 26);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const tm_r62 = ɵngcc0.ɵɵnextContext().tm;\n ɵngcc0.ɵɵproperty(\"ngClass\", ɵngcc0.ɵɵpureFunction1(2, _c11, tm_r62.events));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", tm_r62.events);\n }\n}\nfunction CalendarComponent_ng_template_14_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵtemplate(0, CalendarComponent_ng_template_14_div_0_Template, 2, 4, \"div\", 29);\n }\n if (rf & 2) {\n const tm_r62 = ctx.tm;\n ɵngcc0.ɵɵproperty(\"ngIf\", tm_r62.events);\n }\n}\nfunction CalendarComponent_ng_template_16_Template(rf, ctx) {}\nfunction CalendarComponent_ng_template_18_Template(rf, ctx) {}\nfunction CalendarComponent_monthview_21_Template(rf, ctx) {\n if (rf & 1) {\n const _r74 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"monthview\", 31);\n ɵngcc0.ɵɵlistener(\"onRangeChanged\", function CalendarComponent_monthview_21_Template_monthview_onRangeChanged_0_listener($event) {\n ɵngcc0.ɵɵrestoreView(_r74);\n const ctx_r73 = ɵngcc0.ɵɵnextContext();\n return ɵngcc0.ɵɵresetView(ctx_r73.rangeChanged($event));\n })(\"onEventSelected\", function CalendarComponent_monthview_21_Template_monthview_onEventSelected_0_listener($event) {\n ɵngcc0.ɵɵrestoreView(_r74);\n const ctx_r75 = ɵngcc0.ɵɵnextContext();\n return ɵngcc0.ɵɵresetView(ctx_r75.eventSelected($event));\n })(\"onTimeSelected\", function CalendarComponent_monthview_21_Template_monthview_onTimeSelected_0_listener($event) {\n ɵngcc0.ɵɵrestoreView(_r74);\n const ctx_r76 = ɵngcc0.ɵɵnextContext();\n return ɵngcc0.ɵɵresetView(ctx_r76.timeSelected($event));\n })(\"onTitleChanged\", function CalendarComponent_monthview_21_Template_monthview_onTitleChanged_0_listener($event) {\n ɵngcc0.ɵɵrestoreView(_r74);\n const ctx_r77 = ɵngcc0.ɵɵnextContext();\n return ɵngcc0.ɵɵresetView(ctx_r77.titleChanged($event));\n });\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r20 = ɵngcc0.ɵɵnextContext();\n const _r0 = ɵngcc0.ɵɵreference(1);\n const _r2 = ɵngcc0.ɵɵreference(3);\n ɵngcc0.ɵɵproperty(\"formatDay\", ctx_r20.formatDay)(\"formatDayHeader\", ctx_r20.formatDayHeader)(\"formatMonthTitle\", ctx_r20.formatMonthTitle)(\"startingDayMonth\", ctx_r20.startingDayMonth)(\"showEventDetail\", ctx_r20.showEventDetail)(\"noEventsLabel\", ctx_r20.noEventsLabel)(\"autoSelect\", ctx_r20.autoSelect)(\"eventSource\", ctx_r20.eventSource)(\"markDisabled\", ctx_r20.markDisabled)(\"monthviewDisplayEventTemplate\", ctx_r20.monthviewDisplayEventTemplate || _r0)(\"monthviewInactiveDisplayEventTemplate\", ctx_r20.monthviewInactiveDisplayEventTemplate || _r0)(\"monthviewEventDetailTemplate\", ctx_r20.monthviewEventDetailTemplate || _r2)(\"locale\", ctx_r20.locale)(\"dateFormatter\", ctx_r20.dateFormatter)(\"dir\", ctx_r20.dir)(\"lockSwipeToPrev\", ctx_r20.lockSwipeToPrev)(\"lockSwipes\", ctx_r20.lockSwipes)(\"sliderOptions\", ctx_r20.sliderOptions);\n }\n}\nfunction CalendarComponent_weekview_22_Template(rf, ctx) {\n if (rf & 1) {\n const _r79 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"weekview\", 32);\n ɵngcc0.ɵɵlistener(\"onRangeChanged\", function CalendarComponent_weekview_22_Template_weekview_onRangeChanged_0_listener($event) {\n ɵngcc0.ɵɵrestoreView(_r79);\n const ctx_r78 = ɵngcc0.ɵɵnextContext();\n return ɵngcc0.ɵɵresetView(ctx_r78.rangeChanged($event));\n })(\"onEventSelected\", function CalendarComponent_weekview_22_Template_weekview_onEventSelected_0_listener($event) {\n ɵngcc0.ɵɵrestoreView(_r79);\n const ctx_r80 = ɵngcc0.ɵɵnextContext();\n return ɵngcc0.ɵɵresetView(ctx_r80.eventSelected($event));\n })(\"onDayHeaderSelected\", function CalendarComponent_weekview_22_Template_weekview_onDayHeaderSelected_0_listener($event) {\n ɵngcc0.ɵɵrestoreView(_r79);\n const ctx_r81 = ɵngcc0.ɵɵnextContext();\n return ɵngcc0.ɵɵresetView(ctx_r81.daySelected($event));\n })(\"onTimeSelected\", function CalendarComponent_weekview_22_Template_weekview_onTimeSelected_0_listener($event) {\n ɵngcc0.ɵɵrestoreView(_r79);\n const ctx_r82 = ɵngcc0.ɵɵnextContext();\n return ɵngcc0.ɵɵresetView(ctx_r82.timeSelected($event));\n })(\"onTitleChanged\", function CalendarComponent_weekview_22_Template_weekview_onTitleChanged_0_listener($event) {\n ɵngcc0.ɵɵrestoreView(_r79);\n const ctx_r83 = ɵngcc0.ɵɵnextContext();\n return ɵngcc0.ɵɵresetView(ctx_r83.titleChanged($event));\n });\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r21 = ɵngcc0.ɵɵnextContext();\n const _r4 = ɵngcc0.ɵɵreference(5);\n const _r6 = ɵngcc0.ɵɵreference(7);\n const _r8 = ɵngcc0.ɵɵreference(9);\n const _r10 = ɵngcc0.ɵɵreference(11);\n const _r14 = ɵngcc0.ɵɵreference(15);\n const _r16 = ɵngcc0.ɵɵreference(17);\n const _r18 = ɵngcc0.ɵɵreference(19);\n ɵngcc0.ɵɵproperty(\"formatWeekTitle\", ctx_r21.formatWeekTitle)(\"formatWeekViewDayHeader\", ctx_r21.formatWeekViewDayHeader)(\"formatHourColumn\", ctx_r21.formatHourColumn)(\"startingDayWeek\", ctx_r21.startingDayWeek)(\"allDayLabel\", ctx_r21.allDayLabel)(\"hourParts\", ctx_r21.hourParts)(\"autoSelect\", ctx_r21.autoSelect)(\"hourSegments\", ctx_r21.hourSegments)(\"eventSource\", ctx_r21.eventSource)(\"markDisabled\", ctx_r21.markDisabled)(\"weekviewHeaderTemplate\", ctx_r21.weekviewHeaderTemplate || _r4)(\"weekviewAllDayEventTemplate\", ctx_r21.weekviewAllDayEventTemplate || _r6)(\"weekviewNormalEventTemplate\", ctx_r21.weekviewNormalEventTemplate || _r8)(\"weekviewAllDayEventSectionTemplate\", ctx_r21.weekviewAllDayEventSectionTemplate || _r10)(\"weekviewNormalEventSectionTemplate\", ctx_r21.weekviewNormalEventSectionTemplate || _r14)(\"weekviewInactiveAllDayEventSectionTemplate\", ctx_r21.weekviewInactiveAllDayEventSectionTemplate || _r16)(\"weekviewInactiveNormalEventSectionTemplate\", ctx_r21.weekviewInactiveNormalEventSectionTemplate || _r18)(\"locale\", ctx_r21.locale)(\"dateFormatter\", ctx_r21.dateFormatter)(\"dir\", ctx_r21.dir)(\"scrollToHour\", ctx_r21.scrollToHour)(\"preserveScrollPosition\", ctx_r21.preserveScrollPosition)(\"lockSwipeToPrev\", ctx_r21.lockSwipeToPrev)(\"lockSwipes\", ctx_r21.lockSwipes)(\"startHour\", ctx_r21.startHour)(\"endHour\", ctx_r21.endHour)(\"sliderOptions\", ctx_r21.sliderOptions);\n }\n}\nfunction CalendarComponent_dayview_23_Template(rf, ctx) {\n if (rf & 1) {\n const _r85 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"dayview\", 33);\n ɵngcc0.ɵɵlistener(\"onRangeChanged\", function CalendarComponent_dayview_23_Template_dayview_onRangeChanged_0_listener($event) {\n ɵngcc0.ɵɵrestoreView(_r85);\n const ctx_r84 = ɵngcc0.ɵɵnextContext();\n return ɵngcc0.ɵɵresetView(ctx_r84.rangeChanged($event));\n })(\"onEventSelected\", function CalendarComponent_dayview_23_Template_dayview_onEventSelected_0_listener($event) {\n ɵngcc0.ɵɵrestoreView(_r85);\n const ctx_r86 = ɵngcc0.ɵɵnextContext();\n return ɵngcc0.ɵɵresetView(ctx_r86.eventSelected($event));\n })(\"onTimeSelected\", function CalendarComponent_dayview_23_Template_dayview_onTimeSelected_0_listener($event) {\n ɵngcc0.ɵɵrestoreView(_r85);\n const ctx_r87 = ɵngcc0.ɵɵnextContext();\n return ɵngcc0.ɵɵresetView(ctx_r87.timeSelected($event));\n })(\"onTitleChanged\", function CalendarComponent_dayview_23_Template_dayview_onTitleChanged_0_listener($event) {\n ɵngcc0.ɵɵrestoreView(_r85);\n const ctx_r88 = ɵngcc0.ɵɵnextContext();\n return ɵngcc0.ɵɵresetView(ctx_r88.titleChanged($event));\n });\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r22 = ɵngcc0.ɵɵnextContext();\n const _r6 = ɵngcc0.ɵɵreference(7);\n const _r8 = ɵngcc0.ɵɵreference(9);\n const _r12 = ɵngcc0.ɵɵreference(13);\n const _r14 = ɵngcc0.ɵɵreference(15);\n const _r16 = ɵngcc0.ɵɵreference(17);\n const _r18 = ɵngcc0.ɵɵreference(19);\n ɵngcc0.ɵɵproperty(\"formatDayTitle\", ctx_r22.formatDayTitle)(\"formatHourColumn\", ctx_r22.formatHourColumn)(\"allDayLabel\", ctx_r22.allDayLabel)(\"hourParts\", ctx_r22.hourParts)(\"hourSegments\", ctx_r22.hourSegments)(\"eventSource\", ctx_r22.eventSource)(\"markDisabled\", ctx_r22.markDisabled)(\"dayviewAllDayEventTemplate\", ctx_r22.dayviewAllDayEventTemplate || _r6)(\"dayviewNormalEventTemplate\", ctx_r22.dayviewNormalEventTemplate || _r8)(\"dayviewAllDayEventSectionTemplate\", ctx_r22.dayviewAllDayEventSectionTemplate || _r12)(\"dayviewNormalEventSectionTemplate\", ctx_r22.dayviewNormalEventSectionTemplate || _r14)(\"dayviewInactiveAllDayEventSectionTemplate\", ctx_r22.dayviewInactiveAllDayEventSectionTemplate || _r16)(\"dayviewInactiveNormalEventSectionTemplate\", ctx_r22.dayviewInactiveNormalEventSectionTemplate || _r18)(\"locale\", ctx_r22.locale)(\"dateFormatter\", ctx_r22.dateFormatter)(\"dir\", ctx_r22.dir)(\"scrollToHour\", ctx_r22.scrollToHour)(\"preserveScrollPosition\", ctx_r22.preserveScrollPosition)(\"lockSwipeToPrev\", ctx_r22.lockSwipeToPrev)(\"lockSwipes\", ctx_r22.lockSwipes)(\"startHour\", ctx_r22.startHour)(\"endHour\", ctx_r22.endHour)(\"sliderOptions\", ctx_r22.sliderOptions);\n }\n}\nconst _c20 = [\"*\"];\nlet CalendarService = class CalendarService {\n constructor() {\n this.currentDateChangedFromParent = new Subject();\n this.currentDateChangedFromChildren = new Subject();\n this.eventSourceChanged = new Subject();\n this.slideChanged = new Subject();\n this.slideUpdated = new Subject();\n this.currentDateChangedFromParent$ = this.currentDateChangedFromParent.asObservable();\n this.currentDateChangedFromChildren$ = this.currentDateChangedFromChildren.asObservable();\n this.eventSourceChanged$ = this.eventSourceChanged.asObservable();\n this.slideChanged$ = this.slideChanged.asObservable();\n this.slideUpdated$ = this.slideUpdated.asObservable();\n }\n setCurrentDate(val, fromParent = false) {\n this._currentDate = new Date(val);\n if (fromParent) {\n this.currentDateChangedFromParent.next(val);\n } else {\n this.currentDateChangedFromChildren.next(val);\n }\n }\n get currentDate() {\n return this._currentDate;\n }\n rangeChanged(component) {\n if (this.queryMode === 'local') {\n if (component.eventSource && component.onDataLoaded) {\n component.onDataLoaded();\n }\n } else if (this.queryMode === 'remote') {\n let rangeStart = new Date(component.range.startTime.getTime()),\n rangeEnd = new Date(component.range.endTime.getTime());\n rangeStart.setHours(0);\n if (rangeStart.getHours() === 23) {\n rangeStart.setTime(rangeStart.getTime() + 3600000);\n }\n rangeEnd.setHours(0);\n if (rangeEnd.getHours() === 23) {\n rangeEnd.setTime(rangeEnd.getTime() + 3600000);\n }\n component.onRangeChanged.emit({\n startTime: rangeStart,\n endTime: rangeEnd\n });\n }\n }\n getStep(mode) {\n switch (mode) {\n case 'month':\n return {\n years: 0,\n months: 1,\n days: 0\n };\n case 'week':\n return {\n years: 0,\n months: 0,\n days: 7\n };\n case 'day':\n return {\n years: 0,\n months: 0,\n days: 1\n };\n }\n }\n getAdjacentCalendarDate(mode, direction) {\n let calculateCalendarDate = this.currentDate;\n const step = this.getStep(mode),\n year = calculateCalendarDate.getFullYear() + direction * step.years,\n month = calculateCalendarDate.getMonth() + direction * step.months,\n date = calculateCalendarDate.getDate() + direction * step.days;\n calculateCalendarDate = new Date(year, month, date, 12, 0, 0);\n if (mode === 'month') {\n const firstDayInNextMonth = new Date(year, month + 1, 1, 12, 0, 0);\n if (firstDayInNextMonth.getTime() <= calculateCalendarDate.getTime()) {\n calculateCalendarDate = new Date(firstDayInNextMonth.getTime() - 24 * 60 * 60 * 1000);\n }\n }\n return calculateCalendarDate;\n }\n getAdjacentViewStartTime(component, direction) {\n let adjacentCalendarDate = this.getAdjacentCalendarDate(component.mode, direction);\n return component.getRange(adjacentCalendarDate).startTime;\n }\n populateAdjacentViews(component) {\n let currentViewStartDate,\n currentViewData,\n toUpdateViewIndex,\n currentViewIndex = component.currentViewIndex;\n if (component.direction === 1) {\n currentViewStartDate = this.getAdjacentViewStartTime(component, 1);\n toUpdateViewIndex = (currentViewIndex + 1) % 3;\n component.views[toUpdateViewIndex] = component.getViewData(currentViewStartDate);\n } else if (component.direction === -1) {\n currentViewStartDate = this.getAdjacentViewStartTime(component, -1);\n toUpdateViewIndex = (currentViewIndex + 2) % 3;\n component.views[toUpdateViewIndex] = component.getViewData(currentViewStartDate);\n } else {\n if (!component.views) {\n currentViewData = [];\n currentViewStartDate = component.range.startTime;\n currentViewData.push(component.getViewData(currentViewStartDate));\n currentViewStartDate = this.getAdjacentViewStartTime(component, 1);\n currentViewData.push(component.getViewData(currentViewStartDate));\n currentViewStartDate = this.getAdjacentViewStartTime(component, -1);\n currentViewData.push(component.getViewData(currentViewStartDate));\n component.views = currentViewData;\n } else {\n currentViewStartDate = component.range.startTime;\n component.views[currentViewIndex] = component.getViewData(currentViewStartDate);\n currentViewStartDate = this.getAdjacentViewStartTime(component, -1);\n toUpdateViewIndex = (currentViewIndex + 2) % 3;\n component.views[toUpdateViewIndex] = component.getViewData(currentViewStartDate);\n currentViewStartDate = this.getAdjacentViewStartTime(component, 1);\n toUpdateViewIndex = (currentViewIndex + 1) % 3;\n component.views[toUpdateViewIndex] = component.getViewData(currentViewStartDate);\n }\n }\n }\n loadEvents() {\n this.eventSourceChanged.next();\n }\n slide(direction) {\n this.slideChanged.next(direction);\n }\n update() {\n this.slideUpdated.next();\n }\n};\nCalendarService.ɵfac = function CalendarService_Factory(t) {\n return new (t || CalendarService)();\n};\nCalendarService.ɵprov = /*@__PURE__*/ɵngcc0.ɵɵdefineInjectable({\n token: CalendarService,\n factory: function (t) {\n return CalendarService.ɵfac(t);\n }\n});\nvar MonthViewComponent_1;\nlet MonthViewComponent = MonthViewComponent_1 = class MonthViewComponent {\n constructor(calendarService) {\n this.calendarService = calendarService;\n this.autoSelect = true;\n this.dir = '';\n this.onRangeChanged = new EventEmitter();\n this.onEventSelected = new EventEmitter();\n this.onTimeSelected = new EventEmitter(true);\n this.onTitleChanged = new EventEmitter(true);\n this.views = [];\n this.currentViewIndex = 0;\n this.mode = 'month';\n this.direction = 0;\n this.moveOnSelected = false;\n this.inited = false;\n this.callbackOnInit = true;\n }\n static getDates(startDate, n) {\n const dates = new Array(n),\n current = new Date(startDate.getTime());\n let i = 0;\n while (i < n) {\n dates[i++] = new Date(current.getTime());\n current.setDate(current.getDate() + 1);\n }\n return dates;\n }\n ngOnInit() {\n if (!this.sliderOptions) {\n this.sliderOptions = {};\n }\n this.sliderOptions.loop = true;\n if (this.dateFormatter && this.dateFormatter.formatMonthViewDay) {\n this.formatDayLabel = this.dateFormatter.formatMonthViewDay;\n } else {\n const dayLabelDatePipe = new DatePipe('en-US');\n this.formatDayLabel = function (date) {\n return dayLabelDatePipe.transform(date, this.formatDay);\n };\n }\n if (this.dateFormatter && this.dateFormatter.formatMonthViewDayHeader) {\n this.formatDayHeaderLabel = this.dateFormatter.formatMonthViewDayHeader;\n } else {\n const datePipe = new DatePipe(this.locale);\n this.formatDayHeaderLabel = function (date) {\n return datePipe.transform(date, this.formatDayHeader);\n };\n }\n if (this.dateFormatter && this.dateFormatter.formatMonthViewTitle) {\n this.formatTitle = this.dateFormatter.formatMonthViewTitle;\n } else {\n const datePipe = new DatePipe(this.locale);\n this.formatTitle = function (date) {\n return datePipe.transform(date, this.formatMonthTitle);\n };\n }\n if (this.lockSwipeToPrev) {\n this.slider.lockSwipeToPrev(true);\n }\n if (this.lockSwipes) {\n this.slider.lockSwipes(true);\n }\n this.refreshView();\n this.inited = true;\n this.currentDateChangedFromParentSubscription = this.calendarService.currentDateChangedFromParent$.subscribe(currentDate => {\n this.refreshView();\n });\n this.eventSourceChangedSubscription = this.calendarService.eventSourceChanged$.subscribe(() => {\n this.onDataLoaded();\n });\n this.slideChangedSubscription = this.calendarService.slideChanged$.subscribe(direction => {\n if (direction === 1) {\n this.slider.slideNext();\n } else if (direction === -1) {\n this.slider.slidePrev();\n }\n });\n this.slideUpdatedSubscription = this.calendarService.slideUpdated$.subscribe(() => {\n this.slider.update();\n });\n }\n ngOnDestroy() {\n if (this.currentDateChangedFromParentSubscription) {\n this.currentDateChangedFromParentSubscription.unsubscribe();\n this.currentDateChangedFromParentSubscription = null;\n }\n if (this.eventSourceChangedSubscription) {\n this.eventSourceChangedSubscription.unsubscribe();\n this.eventSourceChangedSubscription = null;\n }\n if (this.slideChangedSubscription) {\n this.slideChangedSubscription.unsubscribe();\n this.slideChangedSubscription = null;\n }\n if (this.slideUpdatedSubscription) {\n this.slideUpdatedSubscription.unsubscribe();\n this.slideUpdatedSubscription = null;\n }\n }\n ngOnChanges(changes) {\n if (!this.inited) {\n return;\n }\n const eventSourceChange = changes.eventSource;\n if (eventSourceChange && eventSourceChange.currentValue) {\n this.onDataLoaded();\n }\n const lockSwipeToPrev = changes.lockSwipeToPrev;\n if (lockSwipeToPrev) {\n this.slider.lockSwipeToPrev(lockSwipeToPrev.currentValue);\n }\n const lockSwipes = changes.lockSwipes;\n if (lockSwipes) {\n this.slider.lockSwipes(lockSwipes.currentValue);\n }\n }\n ngAfterViewInit() {\n const title = this.getTitle();\n this.onTitleChanged.emit(title);\n }\n onSlideChanged() {\n if (this.callbackOnInit) {\n this.callbackOnInit = false;\n return;\n }\n let direction = 0;\n const currentViewIndex = this.currentViewIndex;\n this.slider.getActiveIndex().then(currentSlideIndex => {\n currentSlideIndex = (currentSlideIndex + 2) % 3;\n if (isNaN(currentSlideIndex)) {\n currentSlideIndex = currentViewIndex;\n }\n if (currentSlideIndex - currentViewIndex === 1) {\n direction = 1;\n } else if (currentSlideIndex === 0 && currentViewIndex === 2) {\n direction = 1;\n this.slider.slideTo(1, 0, false);\n } else if (currentViewIndex - currentSlideIndex === 1) {\n direction = -1;\n } else if (currentSlideIndex === 2 && currentViewIndex === 0) {\n direction = -1;\n this.slider.slideTo(3, 0, false);\n }\n this.currentViewIndex = currentSlideIndex;\n this.move(direction);\n });\n }\n move(direction) {\n if (direction === 0) {\n return;\n }\n this.direction = direction;\n if (!this.moveOnSelected) {\n const adjacentDate = this.calendarService.getAdjacentCalendarDate(this.mode, direction);\n this.calendarService.setCurrentDate(adjacentDate);\n }\n this.refreshView();\n this.direction = 0;\n this.moveOnSelected = false;\n }\n createDateObject(date) {\n let disabled = false;\n if (this.markDisabled) {\n disabled = this.markDisabled(date);\n }\n return {\n date,\n events: [],\n label: this.formatDayLabel(date),\n secondary: false,\n disabled\n };\n }\n getViewData(startTime) {\n const startDate = startTime,\n date = startDate.getDate(),\n month = (startDate.getMonth() + (date !== 1 ? 1 : 0)) % 12;\n const dates = MonthViewComponent_1.getDates(startDate, 42);\n const days = [];\n for (let i = 0; i < 42; i++) {\n const dateObject = this.createDateObject(dates[i]);\n dateObject.secondary = dates[i].getMonth() !== month;\n days[i] = dateObject;\n }\n const dayHeaders = [];\n for (let i = 0; i < 7; i++) {\n dayHeaders.push(this.formatDayHeaderLabel(days[i].date));\n }\n return {\n dates: days,\n dayHeaders\n };\n }\n getHighlightClass(date) {\n let className = '';\n if (date.hasEvent) {\n if (date.secondary) {\n className = 'monthview-secondary-with-event';\n } else {\n className = 'monthview-primary-with-event';\n }\n }\n if (date.selected) {\n if (className) {\n className += ' ';\n }\n className += 'monthview-selected';\n }\n if (date.current) {\n if (className) {\n className += ' ';\n }\n className += 'monthview-current';\n }\n if (date.secondary) {\n if (className) {\n className += ' ';\n }\n className += 'text-muted';\n }\n if (date.disabled) {\n if (className) {\n className += ' ';\n }\n className += 'monthview-disabled';\n }\n return className;\n }\n getRange(currentDate) {\n const year = currentDate.getFullYear(),\n month = currentDate.getMonth(),\n firstDayOfMonth = new Date(year, month, 1, 12, 0, 0),\n // set hour to 12 to avoid DST problem\n difference = this.startingDayMonth - firstDayOfMonth.getDay(),\n numDisplayedFromPreviousMonth = difference > 0 ? 7 - difference : -difference,\n startDate = new Date(firstDayOfMonth.getTime());\n if (numDisplayedFromPreviousMonth > 0) {\n startDate.setDate(-numDisplayedFromPreviousMonth + 1);\n }\n const endDate = new Date(startDate.getTime());\n endDate.setDate(endDate.getDate() + 42);\n return {\n startTime: startDate,\n endTime: endDate\n };\n }\n onDataLoaded() {\n const range = this.range,\n eventSource = this.eventSource,\n len = eventSource ? eventSource.length : 0,\n startTime = range.startTime,\n endTime = range.endTime,\n utcStartTime = Date.UTC(startTime.getFullYear(), startTime.getMonth(), startTime.getDate()),\n utcEndTime = Date.UTC(endTime.getFullYear(), endTime.getMonth(), endTime.getDate()),\n currentViewIndex = this.currentViewIndex,\n dates = this.views[currentViewIndex].dates,\n oneDay = 86400000,\n eps = 0.0006;\n for (let r = 0; r < 42; r += 1) {\n if (dates[r].hasEvent) {\n dates[r].hasEvent = false;\n dates[r].events = [];\n }\n }\n for (let i = 0; i < len; i += 1) {\n const event = eventSource[i],\n eventStartTime = event.startTime,\n eventEndTime = event.endTime;\n let eventUTCStartTime, eventUTCEndTime;\n if (event.allDay) {\n eventUTCStartTime = eventStartTime.getTime();\n eventUTCEndTime = eventEndTime.getTime();\n } else {\n eventUTCStartTime = Date.UTC(eventStartTime.getFullYear(), eventStartTime.getMonth(), eventStartTime.getDate());\n eventUTCEndTime = Date.UTC(eventEndTime.getFullYear(), eventEndTime.getMonth(), eventEndTime.getDate() + 1);\n }\n if (eventUTCEndTime <= utcStartTime || eventUTCStartTime >= utcEndTime) {\n continue;\n }\n let timeDifferenceStart, timeDifferenceEnd;\n if (eventUTCStartTime < utcStartTime) {\n timeDifferenceStart = 0;\n } else {\n timeDifferenceStart = (eventUTCStartTime - utcStartTime) / oneDay;\n }\n if (eventUTCEndTime > utcEndTime) {\n timeDifferenceEnd = (utcEndTime - utcStartTime) / oneDay;\n } else {\n timeDifferenceEnd = (eventUTCEndTime - utcStartTime) / oneDay;\n }\n let index = Math.floor(timeDifferenceStart);\n const endIndex = Math.ceil(timeDifferenceEnd - eps);\n while (index < endIndex) {\n dates[index].hasEvent = true;\n let eventSet = dates[index].events;\n if (eventSet) {\n eventSet.push(event);\n } else {\n eventSet = [];\n eventSet.push(event);\n dates[index].events = eventSet;\n }\n index += 1;\n }\n }\n for (let r = 0; r < 42; r += 1) {\n if (dates[r].hasEvent) {\n dates[r].events.sort(this.compareEvent);\n }\n }\n if (this.autoSelect) {\n let findSelected = false;\n for (let r = 0; r < 42; r += 1) {\n if (dates[r].selected) {\n this.selectedDate = dates[r];\n findSelected = true;\n break;\n }\n }\n if (findSelected) {\n this.onTimeSelected.emit({\n selectedTime: this.selectedDate.date,\n events: this.selectedDate.events,\n disabled: this.selectedDate.disabled\n });\n }\n }\n }\n refreshView() {\n this.range = this.getRange(this.calendarService.currentDate);\n if (this.inited) {\n const title = this.getTitle();\n this.onTitleChanged.emit(title);\n }\n this.calendarService.populateAdjacentViews(this);\n this.updateCurrentView(this.range.startTime, this.views[this.currentViewIndex]);\n this.calendarService.rangeChanged(this);\n }\n getTitle() {\n const currentViewStartDate = this.range.startTime,\n date = currentViewStartDate.getDate(),\n month = (currentViewStartDate.getMonth() + (date !== 1 ? 1 : 0)) % 12,\n year = currentViewStartDate.getFullYear() + (date !== 1 && month === 0 ? 1 : 0),\n headerDate = new Date(year, month, 1, 12, 0, 0, 0);\n return this.formatTitle(headerDate);\n }\n compareEvent(event1, event2) {\n if (event1.allDay) {\n return 1;\n } else if (event2.allDay) {\n return -1;\n } else {\n return event1.startTime.getTime() - event2.startTime.getTime();\n }\n }\n select(viewDate) {\n if (!this.views) {\n return;\n }\n const selectedDate = viewDate.date,\n events = viewDate.events;\n if (!viewDate.disabled) {\n const dates = this.views[this.currentViewIndex].dates,\n currentCalendarDate = this.calendarService.currentDate,\n currentMonth = currentCalendarDate.getMonth(),\n currentYear = currentCalendarDate.getFullYear(),\n selectedMonth = selectedDate.getMonth(),\n selectedYear = selectedDate.getFullYear();\n let direction = 0;\n if (currentYear === selectedYear) {\n if (currentMonth !== selectedMonth) {\n direction = currentMonth < selectedMonth ? 1 : -1;\n }\n } else {\n direction = currentYear < selectedYear ? 1 : -1;\n }\n this.calendarService.setCurrentDate(selectedDate);\n if (direction === 0) {\n const currentViewStartDate = this.range.startTime,\n oneDay = 86400000,\n selectedDayDifference = Math.round((Date.UTC(selectedDate.getFullYear(), selectedDate.getMonth(), selectedDate.getDate()) - Date.UTC(currentViewStartDate.getFullYear(), currentViewStartDate.getMonth(), currentViewStartDate.getDate())) / oneDay);\n for (let r = 0; r < 42; r += 1) {\n dates[r].selected = false;\n }\n if (selectedDayDifference >= 0 && selectedDayDifference < 42) {\n dates[selectedDayDifference].selected = true;\n this.selectedDate = dates[selectedDayDifference];\n }\n } else {\n this.moveOnSelected = true;\n this.slideView(direction);\n }\n }\n this.onTimeSelected.emit({\n selectedTime: selectedDate,\n events,\n disabled: viewDate.disabled\n });\n }\n slideView(direction) {\n if (direction === 1) {\n this.slider.slideNext();\n } else if (direction === -1) {\n this.slider.slidePrev();\n }\n }\n updateCurrentView(currentViewStartDate, view) {\n const currentCalendarDate = this.calendarService.currentDate,\n today = new Date(),\n oneDay = 86400000,\n selectedDayDifference = Math.round((Date.UTC(currentCalendarDate.getFullYear(), currentCalendarDate.getMonth(), currentCalendarDate.getDate()) - Date.UTC(currentViewStartDate.getFullYear(), currentViewStartDate.getMonth(), currentViewStartDate.getDate())) / oneDay),\n currentDayDifference = Math.round((Date.UTC(today.getFullYear(), today.getMonth(), today.getDate()) - Date.UTC(currentViewStartDate.getFullYear(), currentViewStartDate.getMonth(), currentViewStartDate.getDate())) / oneDay);\n for (let r = 0; r < 42; r += 1) {\n view.dates[r].selected = false;\n }\n if (selectedDayDifference >= 0 && selectedDayDifference < 42 && !view.dates[selectedDayDifference].disabled && (this.autoSelect || this.moveOnSelected)) {\n view.dates[selectedDayDifference].selected = true;\n this.selectedDate = view.dates[selectedDayDifference];\n } else {\n this.selectedDate = {\n date: null,\n events: [],\n label: null,\n secondary: null,\n disabled: false\n };\n }\n if (currentDayDifference >= 0 && currentDayDifference < 42) {\n view.dates[currentDayDifference].current = true;\n }\n }\n eventSelected(event) {\n this.onEventSelected.emit(event);\n }\n};\nMonthViewComponent.ɵfac = function MonthViewComponent_Factory(t) {\n return new (t || MonthViewComponent)(ɵngcc0.ɵɵdirectiveInject(CalendarService));\n};\nMonthViewComponent.ɵcmp = /*@__PURE__*/ɵngcc0.ɵɵdefineComponent({\n type: MonthViewComponent,\n selectors: [[\"monthview\"]],\n viewQuery: function MonthViewComponent_Query(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵviewQuery(_c0, 7);\n }\n if (rf & 2) {\n let _t;\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.slider = _t.first);\n }\n },\n inputs: {\n autoSelect: \"autoSelect\",\n dir: \"dir\",\n sliderOptions: \"sliderOptions\",\n monthviewDisplayEventTemplate: \"monthviewDisplayEventTemplate\",\n monthviewInactiveDisplayEventTemplate: \"monthviewInactiveDisplayEventTemplate\",\n monthviewEventDetailTemplate: \"monthviewEventDetailTemplate\",\n formatDay: \"formatDay\",\n formatDayHeader: \"formatDayHeader\",\n formatMonthTitle: \"formatMonthTitle\",\n eventSource: \"eventSource\",\n startingDayMonth: \"startingDayMonth\",\n showEventDetail: \"showEventDetail\",\n noEventsLabel: \"noEventsLabel\",\n markDisabled: \"markDisabled\",\n locale: \"locale\",\n dateFormatter: \"dateFormatter\",\n lockSwipeToPrev: \"lockSwipeToPrev\",\n lockSwipes: \"lockSwipes\"\n },\n outputs: {\n onRangeChanged: \"onRangeChanged\",\n onEventSelected: \"onEventSelected\",\n onTimeSelected: \"onTimeSelected\",\n onTitleChanged: \"onTitleChanged\"\n },\n features: [ɵngcc0.ɵɵNgOnChangesFeature],\n decls: 13,\n vars: 14,\n consts: [[3, \"options\", \"dir\", \"ionSlideDidChange\"], [\"monthSlider\", \"\"], [\"class\", \"table table-bordered table-fixed monthview-datetable\", 4, \"ngIf\"], [3, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [1, \"table\", \"table-bordered\", \"table-fixed\", \"monthview-datetable\"], [4, \"ngFor\", \"ngForOf\"], [\"tappable\", \"\", 3, \"ngClass\", \"click\", 4, \"ngFor\", \"ngForOf\"], [\"tappable\", \"\", 3, \"ngClass\", \"click\"], [1, \"text-center\"]],\n template: function MonthViewComponent_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\")(1, \"ion-slides\", 0, 1);\n ɵngcc0.ɵɵlistener(\"ionSlideDidChange\", function MonthViewComponent_Template_ion_slides_ionSlideDidChange_1_listener() {\n return ctx.onSlideChanged();\n });\n ɵngcc0.ɵɵelementStart(3, \"ion-slide\");\n ɵngcc0.ɵɵtemplate(4, MonthViewComponent_table_4_Template, 6, 3, \"table\", 2);\n ɵngcc0.ɵɵtemplate(5, MonthViewComponent_table_5_Template, 7, 3, \"table\", 2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(6, \"ion-slide\");\n ɵngcc0.ɵɵtemplate(7, MonthViewComponent_table_7_Template, 6, 3, \"table\", 2);\n ɵngcc0.ɵɵtemplate(8, MonthViewComponent_table_8_Template, 7, 3, \"table\", 2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(9, \"ion-slide\");\n ɵngcc0.ɵɵtemplate(10, MonthViewComponent_table_10_Template, 6, 3, \"table\", 2);\n ɵngcc0.ɵɵtemplate(11, MonthViewComponent_table_11_Template, 7, 3, \"table\", 2);\n ɵngcc0.ɵɵelementEnd()();\n ɵngcc0.ɵɵtemplate(12, MonthViewComponent_ng_template_12_Template, 0, 0, \"ng-template\", 3);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"options\", ctx.sliderOptions)(\"dir\", ctx.dir);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngIf\", 0 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 0 !== ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngIf\", 1 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 1 !== ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngIf\", 2 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 2 !== ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx.monthviewEventDetailTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(10, _c4, ctx.showEventDetail, ctx.selectedDate, ctx.noEventsLabel));\n }\n },\n dependencies: [ɵngcc1.IonSlide, ɵngcc1.IonSlides, ɵngcc2.NgClass, ɵngcc2.NgForOf, ɵngcc2.NgIf, ɵngcc2.NgTemplateOutlet],\n styles: [\".text-muted[_ngcontent-%COMP%] {\\n color: #999;\\n }\\n\\n .table-fixed[_ngcontent-%COMP%] {\\n table-layout: fixed;\\n }\\n\\n .table[_ngcontent-%COMP%] {\\n width: 100%;\\n max-width: 100%;\\n background-color: transparent;\\n }\\n\\n .table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > tfoot[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > tfoot[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%] {\\n padding: 8px;\\n line-height: 20px;\\n vertical-align: top;\\n }\\n\\n .table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%] {\\n vertical-align: bottom;\\n border-bottom: 2px solid #ddd;\\n }\\n\\n .table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%]:first-child > tr[_ngcontent-%COMP%]:first-child > th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%]:first-child > tr[_ngcontent-%COMP%]:first-child > td[_ngcontent-%COMP%] {\\n border-top: 0\\n }\\n\\n .table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] + tbody[_ngcontent-%COMP%] {\\n border-top: 2px solid #ddd;\\n }\\n\\n .table-bordered[_ngcontent-%COMP%] {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], .table-bordered[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], .table-bordered[_ngcontent-%COMP%] > tfoot[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], .table-bordered[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%], .table-bordered[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%], .table-bordered[_ngcontent-%COMP%] > tfoot[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%] {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], .table-bordered[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%] {\\n border-bottom-width: 2px;\\n }\\n\\n .table-striped[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:nth-child(odd) > td[_ngcontent-%COMP%], .table-striped[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:nth-child(odd) > th[_ngcontent-%COMP%] {\\n background-color: #f9f9f9\\n }\\n\\n .monthview-primary-with-event[_ngcontent-%COMP%] {\\n background-color: #3a87ad;\\n color: white;\\n }\\n\\n .monthview-current[_ngcontent-%COMP%] {\\n background-color: #f0f0f0;\\n }\\n\\n .monthview-selected[_ngcontent-%COMP%] {\\n background-color: #009900;\\n color: white;\\n }\\n\\n .monthview-datetable[_ngcontent-%COMP%] td.monthview-disabled[_ngcontent-%COMP%] {\\n color: lightgrey;\\n cursor: default;\\n }\\n\\n .monthview-datetable[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\\n text-align: center;\\n }\\n\\n .monthview-datetable[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\\n cursor: pointer;\\n text-align: center;\\n }\\n\\n .monthview-secondary-with-event[_ngcontent-%COMP%] {\\n background-color: #d9edf7;\\n }\\n\\n [_ngcontent-%COMP%]::-webkit-scrollbar, *[_ngcontent-%COMP%]::-webkit-scrollbar {\\n display: none;\\n }\"]\n});\nMonthViewComponent.ctorParameters = () => [{\n type: CalendarService\n}];\n__decorate([ViewChild('monthSlider', {\n static: true\n})], MonthViewComponent.prototype, \"slider\", void 0);\n__decorate([Input()], MonthViewComponent.prototype, \"monthviewDisplayEventTemplate\", void 0);\n__decorate([Input()], MonthViewComponent.prototype, \"monthviewInactiveDisplayEventTemplate\", void 0);\n__decorate([Input()], MonthViewComponent.prototype, \"monthviewEventDetailTemplate\", void 0);\n__decorate([Input()], MonthViewComponent.prototype, \"formatDay\", void 0);\n__decorate([Input()], MonthViewComponent.prototype, \"formatDayHeader\", void 0);\n__decorate([Input()], MonthViewComponent.prototype, \"formatMonthTitle\", void 0);\n__decorate([Input()], MonthViewComponent.prototype, \"eventSource\", void 0);\n__decorate([Input()], MonthViewComponent.prototype, \"startingDayMonth\", void 0);\n__decorate([Input()], MonthViewComponent.prototype, \"showEventDetail\", void 0);\n__decorate([Input()], MonthViewComponent.prototype, \"noEventsLabel\", void 0);\n__decorate([Input()], MonthViewComponent.prototype, \"autoSelect\", void 0);\n__decorate([Input()], MonthViewComponent.prototype, \"markDisabled\", void 0);\n__decorate([Input()], MonthViewComponent.prototype, \"locale\", void 0);\n__decorate([Input()], MonthViewComponent.prototype, \"dateFormatter\", void 0);\n__decorate([Input()], MonthViewComponent.prototype, \"dir\", void 0);\n__decorate([Input()], MonthViewComponent.prototype, \"lockSwipeToPrev\", void 0);\n__decorate([Input()], MonthViewComponent.prototype, \"lockSwipes\", void 0);\n__decorate([Input()], MonthViewComponent.prototype, \"sliderOptions\", void 0);\n__decorate([Output()], MonthViewComponent.prototype, \"onRangeChanged\", void 0);\n__decorate([Output()], MonthViewComponent.prototype, \"onEventSelected\", void 0);\n__decorate([Output()], MonthViewComponent.prototype, \"onTimeSelected\", void 0);\n__decorate([Output()], MonthViewComponent.prototype, \"onTitleChanged\", void 0);\nvar WeekViewComponent_1;\nlet WeekViewComponent = WeekViewComponent_1 = class WeekViewComponent {\n constructor(calendarService, elm) {\n this.calendarService = calendarService;\n this.elm = elm;\n this.class = true;\n this.autoSelect = true;\n this.dir = '';\n this.scrollToHour = 0;\n this.onRangeChanged = new EventEmitter();\n this.onEventSelected = new EventEmitter();\n this.onTimeSelected = new EventEmitter();\n this.onDayHeaderSelected = new EventEmitter();\n this.onTitleChanged = new EventEmitter(true);\n this.views = [];\n this.currentViewIndex = 0;\n this.direction = 0;\n this.mode = 'week';\n this.inited = false;\n this.callbackOnInit = true;\n }\n static createDateObjects(startTime, startHour, endHour, timeInterval) {\n const times = [],\n currentHour = 0,\n currentDate = startTime.getDate();\n let hourStep, minStep;\n if (timeInterval < 1) {\n hourStep = Math.floor(1 / timeInterval);\n minStep = 60;\n } else {\n hourStep = 1;\n minStep = Math.floor(60 / timeInterval);\n }\n for (let hour = startHour; hour < endHour; hour += hourStep) {\n for (let interval = 0; interval < 60; interval += minStep) {\n const row = [];\n for (let day = 0; day < 7; day += 1) {\n const time = new Date(startTime.getTime());\n time.setHours(currentHour + hour, interval);\n time.setDate(currentDate + day);\n row.push({\n events: [],\n time\n });\n }\n times.push(row);\n }\n }\n return times;\n }\n static getDates(startTime, n) {\n const dates = new Array(n),\n current = new Date(startTime.getTime());\n let i = 0;\n while (i < n) {\n dates[i++] = {\n date: new Date(current.getTime()),\n events: [],\n dayHeader: ''\n };\n current.setDate(current.getDate() + 1);\n }\n return dates;\n }\n static compareEventByStartOffset(eventA, eventB) {\n return eventA.startOffset - eventB.startOffset;\n }\n static calculateWidth(orderedEvents, size, hourParts) {\n const totalSize = size * hourParts,\n cells = new Array(totalSize);\n // sort by position in descending order, the right most columns should be calculated first\n orderedEvents.sort((eventA, eventB) => {\n return eventB.position - eventA.position;\n });\n for (let i = 0; i < totalSize; i += 1) {\n cells[i] = {\n calculated: false,\n events: []\n };\n }\n const len = orderedEvents.length;\n for (let i = 0; i < len; i += 1) {\n const event = orderedEvents[i];\n let index = event.startIndex * hourParts + event.startOffset;\n while (index < event.endIndex * hourParts - event.endOffset) {\n cells[index].events.push(event);\n index += 1;\n }\n }\n let i = 0;\n while (i < len) {\n let event = orderedEvents[i];\n if (!event.overlapNumber) {\n const overlapNumber = event.position + 1;\n event.overlapNumber = overlapNumber;\n const eventQueue = [event];\n while (event = eventQueue.shift()) {\n let index = event.startIndex * hourParts + event.startOffset;\n while (index < event.endIndex * hourParts - event.endOffset) {\n if (!cells[index].calculated) {\n cells[index].calculated = true;\n if (cells[index].events) {\n const eventCountInCell = cells[index].events.length;\n for (let j = 0; j < eventCountInCell; j += 1) {\n const currentEventInCell = cells[index].events[j];\n if (!currentEventInCell.overlapNumber) {\n currentEventInCell.overlapNumber = overlapNumber;\n eventQueue.push(currentEventInCell);\n }\n }\n }\n }\n index += 1;\n }\n }\n }\n i += 1;\n }\n }\n ngOnInit() {\n if (!this.sliderOptions) {\n this.sliderOptions = {};\n }\n this.sliderOptions.loop = true;\n this.hourRange = (this.endHour - this.startHour) * this.hourSegments;\n if (this.dateFormatter && this.dateFormatter.formatWeekViewDayHeader) {\n this.formatDayHeader = this.dateFormatter.formatWeekViewDayHeader;\n } else {\n const datePipe = new DatePipe(this.locale);\n this.formatDayHeader = function (date) {\n return datePipe.transform(date, this.formatWeekViewDayHeader);\n };\n }\n if (this.dateFormatter && this.dateFormatter.formatWeekViewTitle) {\n this.formatTitle = this.dateFormatter.formatWeekViewTitle;\n } else {\n const datePipe = new DatePipe(this.locale);\n this.formatTitle = function (date) {\n return datePipe.transform(date, this.formatWeekTitle);\n };\n }\n if (this.dateFormatter && this.dateFormatter.formatWeekViewHourColumn) {\n this.formatHourColumnLabel = this.dateFormatter.formatWeekViewHourColumn;\n } else {\n const datePipe = new DatePipe(this.locale);\n this.formatHourColumnLabel = function (date) {\n return datePipe.transform(date, this.formatHourColumn);\n };\n }\n if (this.lockSwipeToPrev) {\n this.slider.lockSwipeToPrev(true);\n }\n if (this.lockSwipes) {\n this.slider.lockSwipes(true);\n }\n this.refreshView();\n this.hourColumnLabels = this.getHourColumnLabels();\n this.inited = true;\n this.currentDateChangedFromParentSubscription = this.calendarService.currentDateChangedFromParent$.subscribe(currentDate => {\n this.refreshView();\n });\n this.eventSourceChangedSubscription = this.calendarService.eventSourceChanged$.subscribe(() => {\n this.onDataLoaded();\n });\n this.slideChangedSubscription = this.calendarService.slideChanged$.subscribe(direction => {\n if (direction === 1) {\n this.slider.slideNext();\n } else if (direction === -1) {\n this.slider.slidePrev();\n }\n });\n this.slideUpdatedSubscription = this.calendarService.slideUpdated$.subscribe(() => {\n this.slider.update();\n });\n }\n ngAfterViewInit() {\n const title = this.getTitle();\n this.onTitleChanged.emit(title);\n if (this.scrollToHour > 0) {\n const hourColumns = this.elm.nativeElement.querySelector('.weekview-normal-event-container').querySelectorAll('.calendar-hour-column');\n const me = this;\n setTimeout(() => {\n me.initScrollPosition = hourColumns[me.scrollToHour - me.startHour].offsetTop;\n }, 50);\n }\n }\n ngOnChanges(changes) {\n if (!this.inited) {\n return;\n }\n if ((changes.startHour || changes.endHour) && (!changes.startHour.isFirstChange() || !changes.endHour.isFirstChange())) {\n this.views = undefined;\n this.hourRange = (this.endHour - this.startHour) * this.hourSegments;\n this.direction = 0;\n this.refreshView();\n this.hourColumnLabels = this.getHourColumnLabels();\n }\n const eventSourceChange = changes.eventSource;\n if (eventSourceChange && eventSourceChange.currentValue) {\n this.onDataLoaded();\n }\n const lockSwipeToPrev = changes.lockSwipeToPrev;\n if (lockSwipeToPrev) {\n this.slider.lockSwipeToPrev(lockSwipeToPrev.currentValue);\n }\n const lockSwipes = changes.lockSwipes;\n if (lockSwipes) {\n this.slider.lockSwipes(lockSwipes.currentValue);\n }\n }\n ngOnDestroy() {\n if (this.currentDateChangedFromParentSubscription) {\n this.currentDateChangedFromParentSubscription.unsubscribe();\n this.currentDateChangedFromParentSubscription = null;\n }\n if (this.eventSourceChangedSubscription) {\n this.eventSourceChangedSubscription.unsubscribe();\n this.eventSourceChangedSubscription = null;\n }\n if (this.slideChangedSubscription) {\n this.slideChangedSubscription.unsubscribe();\n this.slideChangedSubscription = null;\n }\n if (this.slideUpdatedSubscription) {\n this.slideUpdatedSubscription.unsubscribe();\n this.slideUpdatedSubscription = null;\n }\n }\n onSlideChanged() {\n if (this.callbackOnInit) {\n this.callbackOnInit = false;\n return;\n }\n const currentViewIndex = this.currentViewIndex;\n let direction = 0;\n this.slider.getActiveIndex().then(currentSlideIndex => {\n currentSlideIndex = (currentSlideIndex + 2) % 3;\n if (isNaN(currentSlideIndex)) {\n currentSlideIndex = currentViewIndex;\n }\n if (currentSlideIndex - currentViewIndex === 1) {\n direction = 1;\n } else if (currentSlideIndex === 0 && currentViewIndex === 2) {\n direction = 1;\n this.slider.slideTo(1, 0, false);\n } else if (currentViewIndex - currentSlideIndex === 1) {\n direction = -1;\n } else if (currentSlideIndex === 2 && currentViewIndex === 0) {\n direction = -1;\n this.slider.slideTo(3, 0, false);\n }\n this.currentViewIndex = currentSlideIndex;\n this.move(direction);\n });\n }\n move(direction) {\n if (direction === 0) {\n return;\n }\n this.direction = direction;\n const adjacent = this.calendarService.getAdjacentCalendarDate(this.mode, direction);\n this.calendarService.setCurrentDate(adjacent);\n this.refreshView();\n this.direction = 0;\n }\n getHourColumnLabels() {\n const hourColumnLabels = [];\n for (let hour = 0, length = this.views[0].rows.length; hour < length; hour += 1) {\n // handle edge case for DST\n if (hour === 0 && this.views[0].rows[hour][0].time.getHours() !== this.startHour) {\n const time = new Date(this.views[0].rows[hour][0].time);\n time.setDate(time.getDate() + 1);\n time.setHours(this.startHour);\n hourColumnLabels.push(this.formatHourColumnLabel(time));\n } else {\n hourColumnLabels.push(this.formatHourColumnLabel(this.views[0].rows[hour][0].time));\n }\n }\n return hourColumnLabels;\n }\n getViewData(startTime) {\n const dates = WeekViewComponent_1.getDates(startTime, 7);\n for (let i = 0; i < 7; i++) {\n dates[i].dayHeader = this.formatDayHeader(dates[i].date);\n }\n return {\n rows: WeekViewComponent_1.createDateObjects(startTime, this.startHour, this.endHour, this.hourSegments),\n dates\n };\n }\n getRange(currentDate) {\n const year = currentDate.getFullYear(),\n month = currentDate.getMonth(),\n date = currentDate.getDate(),\n day = currentDate.getDay();\n let difference = day - this.startingDayWeek;\n if (difference < 0) {\n difference += 7;\n }\n // set hour to 12 to avoid DST problem\n const firstDayOfWeek = new Date(year, month, date - difference, 12, 0, 0),\n endTime = new Date(year, month, date - difference + 7, 12, 0, 0);\n return {\n startTime: firstDayOfWeek,\n endTime\n };\n }\n onDataLoaded() {\n const eventSource = this.eventSource,\n len = eventSource ? eventSource.length : 0,\n startTime = this.range.startTime,\n endTime = this.range.endTime,\n utcStartTime = Date.UTC(startTime.getFullYear(), startTime.getMonth(), startTime.getDate()),\n utcEndTime = Date.UTC(endTime.getFullYear(), endTime.getMonth(), endTime.getDate()),\n currentViewIndex = this.currentViewIndex,\n rows = this.views[currentViewIndex].rows,\n dates = this.views[currentViewIndex].dates,\n oneHour = 3600000,\n oneDay = 86400000,\n // add allday eps\n eps = 0.016,\n rangeStartRowIndex = this.startHour * this.hourSegments,\n rangeEndRowIndex = this.endHour * this.hourSegments,\n allRows = 24 * this.hourSegments;\n let allDayEventInRange = false,\n normalEventInRange = false;\n for (let i = 0; i < 7; i += 1) {\n dates[i].events = [];\n dates[i].hasEvent = false;\n }\n for (let day = 0; day < 7; day += 1) {\n for (let hour = 0; hour < this.hourRange; hour += 1) {\n rows[hour][day].events = [];\n }\n }\n for (let i = 0; i < len; i += 1) {\n const event = eventSource[i];\n const eventStartTime = event.startTime;\n const eventEndTime = event.endTime;\n let eventUTCStartTime, eventUTCEndTime;\n if (event.allDay) {\n eventUTCStartTime = eventStartTime.getTime();\n eventUTCEndTime = eventEndTime.getTime();\n } else {\n eventUTCStartTime = Date.UTC(eventStartTime.getFullYear(), eventStartTime.getMonth(), eventStartTime.getDate());\n eventUTCEndTime = Date.UTC(eventEndTime.getFullYear(), eventEndTime.getMonth(), eventEndTime.getDate() + 1);\n }\n if (eventUTCEndTime <= utcStartTime || eventUTCStartTime >= utcEndTime || eventStartTime >= eventEndTime) {\n continue;\n }\n if (event.allDay) {\n allDayEventInRange = true;\n let allDayStartIndex;\n if (eventUTCStartTime <= utcStartTime) {\n allDayStartIndex = 0;\n } else {\n allDayStartIndex = Math.round((eventUTCStartTime - utcStartTime) / oneDay);\n }\n let allDayEndIndex;\n if (eventUTCEndTime >= utcEndTime) {\n allDayEndIndex = Math.round((utcEndTime - utcStartTime) / oneDay);\n } else {\n allDayEndIndex = Math.round((eventUTCEndTime - utcStartTime) / oneDay);\n }\n const displayAllDayEvent = {\n event,\n startIndex: allDayStartIndex,\n endIndex: allDayEndIndex\n };\n let eventSet = dates[allDayStartIndex].events;\n if (eventSet) {\n eventSet.push(displayAllDayEvent);\n } else {\n eventSet = [];\n eventSet.push(displayAllDayEvent);\n dates[allDayStartIndex].events = eventSet;\n }\n dates[allDayStartIndex].hasEvent = true;\n } else {\n normalEventInRange = true;\n let timeDifferenceStart;\n if (eventUTCStartTime < utcStartTime) {\n timeDifferenceStart = 0;\n } else {\n timeDifferenceStart = (eventUTCStartTime - utcStartTime) / oneHour * this.hourSegments + (eventStartTime.getHours() + eventStartTime.getMinutes() / 60) * this.hourSegments;\n }\n let timeDifferenceEnd;\n if (eventUTCEndTime > utcEndTime) {\n timeDifferenceEnd = (utcEndTime - utcStartTime) / oneHour * this.hourSegments;\n } else {\n timeDifferenceEnd = (eventUTCEndTime - oneDay - utcStartTime) / oneHour * this.hourSegments + (eventEndTime.getHours() + eventEndTime.getMinutes() / 60) * this.hourSegments;\n }\n const startIndex = Math.floor(timeDifferenceStart),\n endIndex = Math.ceil(timeDifferenceEnd - eps);\n let startRowIndex = startIndex % allRows,\n dayIndex = Math.floor(startIndex / allRows),\n endOfDay = dayIndex * allRows,\n startOffset = 0,\n endOffset = 0;\n if (this.hourParts !== 1) {\n if (startRowIndex < rangeStartRowIndex) {\n startOffset = 0;\n } else {\n startOffset = Math.floor((timeDifferenceStart - startIndex) * this.hourParts);\n }\n }\n do {\n endOfDay += allRows;\n let endRowIndex;\n if (endOfDay < endIndex) {\n endRowIndex = allRows;\n } else {\n if (endOfDay === endIndex) {\n endRowIndex = allRows;\n } else {\n endRowIndex = endIndex % allRows;\n }\n if (this.hourParts !== 1) {\n if (endRowIndex > rangeEndRowIndex) {\n endOffset = 0;\n } else {\n endOffset = Math.floor((endIndex - timeDifferenceEnd) * this.hourParts);\n }\n }\n }\n if (startRowIndex < rangeStartRowIndex) {\n startRowIndex = 0;\n } else {\n startRowIndex -= rangeStartRowIndex;\n }\n if (endRowIndex > rangeEndRowIndex) {\n endRowIndex = rangeEndRowIndex;\n }\n endRowIndex -= rangeStartRowIndex;\n if (startRowIndex < endRowIndex) {\n const displayEvent = {\n event,\n startIndex: startRowIndex,\n endIndex: endRowIndex,\n startOffset,\n endOffset\n };\n let eventSet = rows[startRowIndex][dayIndex].events;\n if (eventSet) {\n eventSet.push(displayEvent);\n } else {\n eventSet = [];\n eventSet.push(displayEvent);\n rows[startRowIndex][dayIndex].events = eventSet;\n }\n dates[dayIndex].hasEvent = true;\n }\n startRowIndex = 0;\n startOffset = 0;\n dayIndex += 1;\n } while (endOfDay < endIndex);\n }\n }\n if (normalEventInRange) {\n for (let day = 0; day < 7; day += 1) {\n let orderedEvents = [];\n for (let hour = 0; hour < this.hourRange; hour += 1) {\n if (rows[hour][day].events) {\n rows[hour][day].events.sort(WeekViewComponent_1.compareEventByStartOffset);\n orderedEvents = orderedEvents.concat(rows[hour][day].events);\n }\n }\n if (orderedEvents.length > 0) {\n this.placeEvents(orderedEvents);\n }\n }\n }\n if (allDayEventInRange) {\n let orderedAllDayEvents = [];\n for (let day = 0; day < 7; day += 1) {\n if (dates[day].events) {\n orderedAllDayEvents = orderedAllDayEvents.concat(dates[day].events);\n }\n }\n if (orderedAllDayEvents.length > 0) {\n this.placeAllDayEvents(orderedAllDayEvents);\n }\n }\n if (this.autoSelect) {\n let findSelected = false;\n let selectedDate;\n for (let r = 0; r < 7; r += 1) {\n if (dates[r].selected) {\n selectedDate = dates[r];\n findSelected = true;\n break;\n }\n }\n if (findSelected) {\n let disabled = false;\n if (this.markDisabled) {\n disabled = this.markDisabled(selectedDate.date);\n }\n this.onTimeSelected.emit({\n selectedTime: selectedDate.date,\n events: selectedDate.events.map(e => e.event),\n disabled\n });\n }\n }\n }\n refreshView() {\n this.range = this.getRange(this.calendarService.currentDate);\n if (this.inited) {\n const title = this.getTitle();\n this.onTitleChanged.emit(title);\n }\n this.calendarService.populateAdjacentViews(this);\n this.updateCurrentView(this.range.startTime, this.views[this.currentViewIndex]);\n this.calendarService.rangeChanged(this);\n }\n getTitle() {\n const firstDayOfWeek = new Date(this.range.startTime.getTime());\n firstDayOfWeek.setHours(12, 0, 0, 0);\n return this.formatTitle(firstDayOfWeek);\n }\n getHighlightClass(date) {\n let className = '';\n if (date.hasEvent) {\n if (className) {\n className += ' ';\n }\n className = 'weekview-with-event';\n }\n if (date.selected) {\n if (className) {\n className += ' ';\n }\n className += 'weekview-selected';\n }\n if (date.current) {\n if (className) {\n className += ' ';\n }\n className += 'weekview-current';\n }\n return className;\n }\n select(selectedTime, events) {\n let disabled = false;\n if (this.markDisabled) {\n disabled = this.markDisabled(selectedTime);\n }\n this.onTimeSelected.emit({\n selectedTime,\n events: events.map(e => e.event),\n disabled\n });\n }\n placeEvents(orderedEvents) {\n this.calculatePosition(orderedEvents);\n WeekViewComponent_1.calculateWidth(orderedEvents, this.hourRange, this.hourParts);\n }\n placeAllDayEvents(orderedEvents) {\n this.calculatePosition(orderedEvents);\n }\n overlap(event1, event2) {\n let earlyEvent = event1,\n lateEvent = event2;\n if (event1.startIndex > event2.startIndex || event1.startIndex === event2.startIndex && event1.startOffset > event2.startOffset) {\n earlyEvent = event2;\n lateEvent = event1;\n }\n if (earlyEvent.endIndex <= lateEvent.startIndex) {\n return false;\n } else {\n return !(earlyEvent.endIndex - lateEvent.startIndex === 1 && earlyEvent.endOffset + lateEvent.startOffset >= this.hourParts);\n }\n }\n calculatePosition(events) {\n const len = events.length,\n isForbidden = new Array(len);\n let maxColumn = 0;\n for (let i = 0; i < len; i += 1) {\n let col;\n for (col = 0; col < maxColumn; col += 1) {\n isForbidden[col] = false;\n }\n for (let j = 0; j < i; j += 1) {\n if (this.overlap(events[i], events[j])) {\n isForbidden[events[j].position] = true;\n }\n }\n for (col = 0; col < maxColumn; col += 1) {\n if (!isForbidden[col]) {\n break;\n }\n }\n if (col < maxColumn) {\n events[i].position = col;\n } else {\n events[i].position = maxColumn++;\n }\n }\n if (this.dir === 'rtl') {\n for (let i = 0; i < len; i += 1) {\n events[i].position = maxColumn - 1 - events[i].position;\n }\n }\n }\n updateCurrentView(currentViewStartDate, view) {\n const currentCalendarDate = this.calendarService.currentDate,\n today = new Date(),\n oneDay = 86400000,\n selectedDayDifference = Math.round((Date.UTC(currentCalendarDate.getFullYear(), currentCalendarDate.getMonth(), currentCalendarDate.getDate()) - Date.UTC(currentViewStartDate.getFullYear(), currentViewStartDate.getMonth(), currentViewStartDate.getDate())) / oneDay),\n currentDayDifference = Math.floor((Date.UTC(today.getFullYear(), today.getMonth(), today.getDate()) - Date.UTC(currentViewStartDate.getFullYear(), currentViewStartDate.getMonth(), currentViewStartDate.getDate())) / oneDay);\n for (let r = 0; r < 7; r += 1) {\n view.dates[r].selected = false;\n }\n if (selectedDayDifference >= 0 && selectedDayDifference < 7 && this.autoSelect) {\n view.dates[selectedDayDifference].selected = true;\n }\n if (currentDayDifference >= 0 && currentDayDifference < 7) {\n view.dates[currentDayDifference].current = true;\n }\n }\n daySelected(viewDate) {\n const selectedDate = viewDate.date,\n dates = this.views[this.currentViewIndex].dates,\n currentViewStartDate = this.range.startTime,\n oneDay = 86400000,\n selectedDayDifference = Math.round((Date.UTC(selectedDate.getFullYear(), selectedDate.getMonth(), selectedDate.getDate()) - Date.UTC(currentViewStartDate.getFullYear(), currentViewStartDate.getMonth(), currentViewStartDate.getDate())) / oneDay);\n this.calendarService.setCurrentDate(selectedDate);\n for (let r = 0; r < 7; r += 1) {\n dates[r].selected = false;\n }\n if (selectedDayDifference >= 0 && selectedDayDifference < 7) {\n dates[selectedDayDifference].selected = true;\n }\n let disabled = false;\n if (this.markDisabled) {\n disabled = this.markDisabled(selectedDate);\n }\n this.onDayHeaderSelected.emit({\n selectedTime: selectedDate,\n events: viewDate.events.map(e => e.event),\n disabled\n });\n }\n setScrollPosition(scrollPosition) {\n this.initScrollPosition = scrollPosition;\n }\n};\nWeekViewComponent.ɵfac = function WeekViewComponent_Factory(t) {\n return new (t || WeekViewComponent)(ɵngcc0.ɵɵdirectiveInject(CalendarService), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ElementRef));\n};\nWeekViewComponent.ɵcmp = /*@__PURE__*/ɵngcc0.ɵɵdefineComponent({\n type: WeekViewComponent,\n selectors: [[\"weekview\"]],\n viewQuery: function WeekViewComponent_Query(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵviewQuery(_c5, 7);\n }\n if (rf & 2) {\n let _t;\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.slider = _t.first);\n }\n },\n hostVars: 2,\n hostBindings: function WeekViewComponent_HostBindings(rf, ctx) {\n if (rf & 2) {\n ɵngcc0.ɵɵclassProp(\"weekview\", ctx.class);\n }\n },\n inputs: {\n autoSelect: \"autoSelect\",\n dir: \"dir\",\n scrollToHour: \"scrollToHour\",\n sliderOptions: \"sliderOptions\",\n weekviewHeaderTemplate: \"weekviewHeaderTemplate\",\n weekviewAllDayEventTemplate: \"weekviewAllDayEventTemplate\",\n weekviewNormalEventTemplate: \"weekviewNormalEventTemplate\",\n weekviewAllDayEventSectionTemplate: \"weekviewAllDayEventSectionTemplate\",\n weekviewNormalEventSectionTemplate: \"weekviewNormalEventSectionTemplate\",\n weekviewInactiveAllDayEventSectionTemplate: \"weekviewInactiveAllDayEventSectionTemplate\",\n weekviewInactiveNormalEventSectionTemplate: \"weekviewInactiveNormalEventSectionTemplate\",\n formatWeekTitle: \"formatWeekTitle\",\n formatWeekViewDayHeader: \"formatWeekViewDayHeader\",\n formatHourColumn: \"formatHourColumn\",\n startingDayWeek: \"startingDayWeek\",\n allDayLabel: \"allDayLabel\",\n hourParts: \"hourParts\",\n eventSource: \"eventSource\",\n markDisabled: \"markDisabled\",\n locale: \"locale\",\n dateFormatter: \"dateFormatter\",\n preserveScrollPosition: \"preserveScrollPosition\",\n lockSwipeToPrev: \"lockSwipeToPrev\",\n lockSwipes: \"lockSwipes\",\n startHour: \"startHour\",\n endHour: \"endHour\",\n hourSegments: \"hourSegments\"\n },\n outputs: {\n onRangeChanged: \"onRangeChanged\",\n onEventSelected: \"onEventSelected\",\n onTimeSelected: \"onTimeSelected\",\n onDayHeaderSelected: \"onDayHeaderSelected\",\n onTitleChanged: \"onTitleChanged\"\n },\n features: [ɵngcc0.ɵɵNgOnChangesFeature],\n decls: 26,\n vars: 11,\n consts: [[1, \"slides-container\", 3, \"options\", \"dir\", \"ionSlideDidChange\"], [\"weekSlider\", \"\"], [1, \"slide-container\"], [1, \"table\", \"table-bordered\", \"table-fixed\", \"weekview-header\"], [1, \"calendar-hour-column\"], [\"class\", \"weekview-header text-center\", 3, \"ngClass\", \"click\", 4, \"ngFor\", \"ngForOf\"], [4, \"ngIf\"], [1, \"weekview-header\", \"text-center\", 3, \"ngClass\", \"click\"], [3, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [1, \"weekview-allday-table\"], [1, \"weekview-allday-label\"], [1, \"weekview-allday-content-wrapper\", \"scroll-content\"], [1, \"table\", \"table-fixed\", \"weekview-allday-content-table\"], [\"class\", \"calendar-cell\", 4, \"ngFor\", \"ngForOf\"], [1, \"weekview-normal-event-container\", 3, \"initPosition\", \"emitEvent\", \"onScroll\"], [1, \"table\", \"table-bordered\", \"table-fixed\", \"weekview-normal-event-table\"], [4, \"ngFor\", \"ngForOf\"], [1, \"calendar-cell\"], [1, \"calendar-hour-column\", \"text-center\"], [\"class\", \"calendar-cell\", \"tappable\", \"\", 3, \"click\", 4, \"ngFor\", \"ngForOf\"], [\"tappable\", \"\", 1, \"calendar-cell\", 3, \"click\"], [1, \"weekview-normal-event-container\", 3, \"initPosition\"], [3, \"ngClass\", 4, \"ngIf\"], [3, \"ngClass\"]],\n template: function WeekViewComponent_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"ion-slides\", 0, 1);\n ɵngcc0.ɵɵlistener(\"ionSlideDidChange\", function WeekViewComponent_Template_ion_slides_ionSlideDidChange_0_listener() {\n return ctx.onSlideChanged();\n });\n ɵngcc0.ɵɵelementStart(2, \"ion-slide\", 2)(3, \"table\", 3)(4, \"thead\")(5, \"tr\");\n ɵngcc0.ɵɵelement(6, \"th\", 4);\n ɵngcc0.ɵɵtemplate(7, WeekViewComponent_th_7_Template, 2, 5, \"th\", 5);\n ɵngcc0.ɵɵelementEnd()()();\n ɵngcc0.ɵɵtemplate(8, WeekViewComponent_div_8_Template, 13, 5, \"div\", 6);\n ɵngcc0.ɵɵtemplate(9, WeekViewComponent_div_9_Template, 13, 4, \"div\", 6);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(10, \"ion-slide\", 2)(11, \"table\", 3)(12, \"thead\")(13, \"tr\");\n ɵngcc0.ɵɵelement(14, \"th\", 4);\n ɵngcc0.ɵɵtemplate(15, WeekViewComponent_th_15_Template, 2, 5, \"th\", 5);\n ɵngcc0.ɵɵelementEnd()()();\n ɵngcc0.ɵɵtemplate(16, WeekViewComponent_div_16_Template, 13, 5, \"div\", 6);\n ɵngcc0.ɵɵtemplate(17, WeekViewComponent_div_17_Template, 13, 4, \"div\", 6);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(18, \"ion-slide\", 2)(19, \"table\", 3)(20, \"thead\")(21, \"tr\");\n ɵngcc0.ɵɵelement(22, \"th\", 4);\n ɵngcc0.ɵɵtemplate(23, WeekViewComponent_th_23_Template, 2, 5, \"th\", 5);\n ɵngcc0.ɵɵelementEnd()()();\n ɵngcc0.ɵɵtemplate(24, WeekViewComponent_div_24_Template, 13, 5, \"div\", 6);\n ɵngcc0.ɵɵtemplate(25, WeekViewComponent_div_25_Template, 13, 4, \"div\", 6);\n ɵngcc0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n ɵngcc0.ɵɵproperty(\"options\", ctx.sliderOptions)(\"dir\", ctx.dir);\n ɵngcc0.ɵɵadvance(7);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx.views[0].dates);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 0 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 0 !== ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(6);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx.views[1].dates);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 1 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 1 !== ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(6);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx.views[2].dates);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 2 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 2 !== ctx.currentViewIndex);\n }\n },\n dependencies: function () {\n return [ɵngcc1.IonSlide, ɵngcc1.IonSlides, ɵngcc2.NgClass, ɵngcc2.NgForOf, ɵngcc2.NgIf, ɵngcc2.NgTemplateOutlet, initPositionScrollComponent];\n },\n styles: [\"\\n .table-fixed {\\n table-layout: fixed;\\n }\\n\\n .table {\\n width: 100%;\\n max-width: 100%;\\n background-color: transparent;\\n }\\n\\n .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td,\\n .table > tbody > tr > td, .table > tfoot > tr > td {\\n padding: 8px;\\n line-height: 20px;\\n vertical-align: top;\\n }\\n\\n .table > thead > tr > th {\\n vertical-align: bottom;\\n border-bottom: 2px solid #ddd;\\n }\\n\\n .table > thead:first-child > tr:first-child > th, .table > thead:first-child > tr:first-child > td {\\n border-top: 0\\n }\\n\\n .table > tbody + tbody {\\n border-top: 2px solid #ddd;\\n }\\n\\n .table-bordered {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th,\\n .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered > thead > tr > th, .table-bordered > thead > tr > td {\\n border-bottom-width: 2px;\\n }\\n\\n .table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th {\\n background-color: #f9f9f9\\n }\\n\\n .calendar-hour-column {\\n width: 50px;\\n white-space: nowrap;\\n }\\n\\n .calendar-event-wrap {\\n position: relative;\\n width: 100%;\\n height: 100%;\\n }\\n\\n .calendar-event {\\n position: absolute;\\n padding: 2px;\\n cursor: pointer;\\n z-index: 10000;\\n }\\n\\n .calendar-cell {\\n padding: 0 !important;\\n height: 37px;\\n }\\n\\n .slides-container {\\n height: 100%;\\n }\\n\\n .slide-container {\\n display: block;\\n }\\n\\n .weekview-allday-label {\\n float: left;\\n height: 100%;\\n line-height: 50px;\\n text-align: center;\\n width: 50px;\\n border-left: 1px solid #ddd;\\n }\\n\\n [dir=\\\"rtl\\\"] .weekview-allday-label {\\n float: right;\\n border-right: 1px solid #ddd;\\n }\\n\\n .weekview-allday-content-wrapper {\\n margin-left: 50px;\\n overflow: hidden;\\n height: 51px;\\n }\\n\\n [dir=\\\"rtl\\\"] .weekview-allday-content-wrapper {\\n margin-left: 0;\\n margin-right: 50px;\\n }\\n\\n .weekview-allday-content-table {\\n min-height: 50px;\\n }\\n\\n .weekview-allday-content-table td {\\n border-left: 1px solid #ddd;\\n border-right: 1px solid #ddd;\\n }\\n\\n .weekview-header th {\\n overflow: hidden;\\n white-space: nowrap;\\n font-size: 14px;\\n }\\n\\n .weekview-allday-table {\\n height: 50px;\\n position: relative;\\n border-bottom: 1px solid #ddd;\\n font-size: 14px;\\n }\\n\\n .weekview-normal-event-container {\\n margin-top: 87px;\\n overflow: hidden;\\n left: 0;\\n right: 0;\\n top: 0;\\n bottom: 0;\\n position: absolute;\\n font-size: 14px;\\n }\\n\\n .scroll-content {\\n overflow-y: auto;\\n overflow-x: hidden;\\n }\\n\\n ::-webkit-scrollbar,\\n *::-webkit-scrollbar {\\n display: none;\\n }\\n\\n .table > tbody > tr > td.calendar-hour-column {\\n padding-left: 0;\\n padding-right: 0;\\n vertical-align: middle;\\n }\\n\\n @media (max-width: 750px) {\\n .weekview-allday-label, .calendar-hour-column {\\n width: 31px;\\n font-size: 12px;\\n }\\n\\n .weekview-allday-label {\\n padding-top: 4px;\\n }\\n\\n .table > tbody > tr > td.calendar-hour-column {\\n padding-left: 0;\\n padding-right: 0;\\n vertical-align: middle;\\n line-height: 12px;\\n }\\n\\n .table > thead > tr > th.weekview-header {\\n padding-left: 0;\\n padding-right: 0;\\n font-size: 12px;\\n }\\n\\n .weekview-allday-label {\\n line-height: 20px;\\n }\\n\\n .weekview-allday-content-wrapper {\\n margin-left: 31px;\\n }\\n\\n [dir=\\\"rtl\\\"] .weekview-allday-content-wrapper {\\n margin-left: 0;\\n margin-right: 31px;\\n }\\n }\\n \"],\n encapsulation: 2\n});\nWeekViewComponent.ctorParameters = () => [{\n type: CalendarService\n}, {\n type: ElementRef\n}];\n__decorate([ViewChild('weekSlider', {\n static: true\n})], WeekViewComponent.prototype, \"slider\", void 0);\n__decorate([HostBinding('class.weekview')], WeekViewComponent.prototype, \"class\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"weekviewHeaderTemplate\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"weekviewAllDayEventTemplate\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"weekviewNormalEventTemplate\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"weekviewAllDayEventSectionTemplate\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"weekviewNormalEventSectionTemplate\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"weekviewInactiveAllDayEventSectionTemplate\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"weekviewInactiveNormalEventSectionTemplate\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"formatWeekTitle\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"formatWeekViewDayHeader\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"formatHourColumn\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"startingDayWeek\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"allDayLabel\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"hourParts\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"eventSource\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"autoSelect\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"markDisabled\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"locale\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"dateFormatter\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"dir\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"scrollToHour\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"preserveScrollPosition\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"lockSwipeToPrev\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"lockSwipes\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"startHour\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"endHour\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"sliderOptions\", void 0);\n__decorate([Input()], WeekViewComponent.prototype, \"hourSegments\", void 0);\n__decorate([Output()], WeekViewComponent.prototype, \"onRangeChanged\", void 0);\n__decorate([Output()], WeekViewComponent.prototype, \"onEventSelected\", void 0);\n__decorate([Output()], WeekViewComponent.prototype, \"onTimeSelected\", void 0);\n__decorate([Output()], WeekViewComponent.prototype, \"onDayHeaderSelected\", void 0);\n__decorate([Output()], WeekViewComponent.prototype, \"onTitleChanged\", void 0);\nvar DayViewComponent_1;\nlet DayViewComponent = DayViewComponent_1 = class DayViewComponent {\n constructor(calendarService, elm) {\n this.calendarService = calendarService;\n this.elm = elm;\n this.class = true;\n this.dir = '';\n this.scrollToHour = 0;\n this.onRangeChanged = new EventEmitter();\n this.onEventSelected = new EventEmitter();\n this.onTimeSelected = new EventEmitter();\n this.onTitleChanged = new EventEmitter(true);\n this.views = [];\n this.currentViewIndex = 0;\n this.direction = 0;\n this.mode = 'day';\n this.inited = false;\n this.callbackOnInit = true;\n }\n static createDateObjects(startTime, startHour, endHour, timeInterval) {\n const rows = [],\n currentHour = 0,\n currentDate = startTime.getDate();\n let time, hourStep, minStep;\n if (timeInterval < 1) {\n hourStep = Math.floor(1 / timeInterval);\n minStep = 60;\n } else {\n hourStep = 1;\n minStep = Math.floor(60 / timeInterval);\n }\n for (let hour = startHour; hour < endHour; hour += hourStep) {\n for (let interval = 0; interval < 60; interval += minStep) {\n time = new Date(startTime.getTime());\n time.setHours(currentHour + hour, interval);\n time.setDate(currentDate);\n rows.push({\n time,\n events: []\n });\n }\n }\n return rows;\n }\n static compareEventByStartOffset(eventA, eventB) {\n return eventA.startOffset - eventB.startOffset;\n }\n static calculateWidth(orderedEvents, size, hourParts) {\n const totalSize = size * hourParts,\n cells = new Array(totalSize);\n // sort by position in descending order, the right most columns should be calculated first\n orderedEvents.sort((eventA, eventB) => {\n return eventB.position - eventA.position;\n });\n for (let i = 0; i < totalSize; i += 1) {\n cells[i] = {\n calculated: false,\n events: []\n };\n }\n const len = orderedEvents.length;\n for (let i = 0; i < len; i += 1) {\n const event = orderedEvents[i];\n let index = event.startIndex * hourParts + event.startOffset;\n while (index < event.endIndex * hourParts - event.endOffset) {\n cells[index].events.push(event);\n index += 1;\n }\n }\n let i = 0;\n while (i < len) {\n let event = orderedEvents[i];\n if (!event.overlapNumber) {\n const overlapNumber = event.position + 1;\n event.overlapNumber = overlapNumber;\n const eventQueue = [event];\n while (event = eventQueue.shift()) {\n let index = event.startIndex * hourParts + event.startOffset;\n while (index < event.endIndex * hourParts - event.endOffset) {\n if (!cells[index].calculated) {\n cells[index].calculated = true;\n if (cells[index].events) {\n const eventCountInCell = cells[index].events.length;\n for (let j = 0; j < eventCountInCell; j += 1) {\n const currentEventInCell = cells[index].events[j];\n if (!currentEventInCell.overlapNumber) {\n currentEventInCell.overlapNumber = overlapNumber;\n eventQueue.push(currentEventInCell);\n }\n }\n }\n }\n index += 1;\n }\n }\n }\n i += 1;\n }\n }\n ngOnInit() {\n if (!this.sliderOptions) {\n this.sliderOptions = {};\n }\n this.sliderOptions.loop = true;\n this.hourRange = (this.endHour - this.startHour) * this.hourSegments;\n if (this.dateFormatter && this.dateFormatter.formatDayViewTitle) {\n this.formatTitle = this.dateFormatter.formatDayViewTitle;\n } else {\n const datePipe = new DatePipe(this.locale);\n this.formatTitle = function (date) {\n return datePipe.transform(date, this.formatDayTitle);\n };\n }\n if (this.dateFormatter && this.dateFormatter.formatDayViewHourColumn) {\n this.formatHourColumnLabel = this.dateFormatter.formatDayViewHourColumn;\n } else {\n const datePipe = new DatePipe(this.locale);\n this.formatHourColumnLabel = function (date) {\n return datePipe.transform(date, this.formatHourColumn);\n };\n }\n if (this.lockSwipeToPrev) {\n this.slider.lockSwipeToPrev(true);\n }\n if (this.lockSwipes) {\n this.slider.lockSwipes(true);\n }\n this.refreshView();\n this.hourColumnLabels = this.getHourColumnLabels();\n this.inited = true;\n this.currentDateChangedFromParentSubscription = this.calendarService.currentDateChangedFromParent$.subscribe(currentDate => {\n this.refreshView();\n });\n this.eventSourceChangedSubscription = this.calendarService.eventSourceChanged$.subscribe(() => {\n this.onDataLoaded();\n });\n this.slideChangedSubscription = this.calendarService.slideChanged$.subscribe(direction => {\n if (direction === 1) {\n this.slider.slideNext();\n } else if (direction === -1) {\n this.slider.slidePrev();\n }\n });\n this.slideUpdatedSubscription = this.calendarService.slideUpdated$.subscribe(() => {\n this.slider.update();\n });\n }\n ngAfterViewInit() {\n const title = this.getTitle();\n this.onTitleChanged.emit(title);\n if (this.scrollToHour > 0) {\n const hourColumns = this.elm.nativeElement.querySelector('.dayview-normal-event-container').querySelectorAll('.calendar-hour-column');\n const me = this;\n setTimeout(() => {\n me.initScrollPosition = hourColumns[me.scrollToHour - me.startHour].offsetTop;\n }, 50);\n }\n }\n ngOnChanges(changes) {\n if (!this.inited) {\n return;\n }\n if ((changes.startHour || changes.endHour) && (!changes.startHour.isFirstChange() || !changes.endHour.isFirstChange())) {\n this.views = undefined;\n this.hourRange = (this.endHour - this.startHour) * this.hourSegments;\n this.direction = 0;\n this.refreshView();\n this.hourColumnLabels = this.getHourColumnLabels();\n }\n const eventSourceChange = changes.eventSource;\n if (eventSourceChange && eventSourceChange.currentValue) {\n this.onDataLoaded();\n }\n const lockSwipeToPrev = changes.lockSwipeToPrev;\n if (lockSwipeToPrev) {\n this.slider.lockSwipeToPrev(lockSwipeToPrev.currentValue);\n }\n const lockSwipes = changes.lockSwipes;\n if (lockSwipes) {\n this.slider.lockSwipes(lockSwipes.currentValue);\n }\n }\n ngOnDestroy() {\n if (this.currentDateChangedFromParentSubscription) {\n this.currentDateChangedFromParentSubscription.unsubscribe();\n this.currentDateChangedFromParentSubscription = null;\n }\n if (this.eventSourceChangedSubscription) {\n this.eventSourceChangedSubscription.unsubscribe();\n this.eventSourceChangedSubscription = null;\n }\n if (this.slideChangedSubscription) {\n this.slideChangedSubscription.unsubscribe();\n this.slideChangedSubscription = null;\n }\n if (this.slideUpdatedSubscription) {\n this.slideUpdatedSubscription.unsubscribe();\n this.slideUpdatedSubscription = null;\n }\n }\n onSlideChanged() {\n if (this.callbackOnInit) {\n this.callbackOnInit = false;\n return;\n }\n let direction = 0;\n const currentViewIndex = this.currentViewIndex;\n this.slider.getActiveIndex().then(currentSlideIndex => {\n currentSlideIndex = (currentSlideIndex + 2) % 3;\n if (isNaN(currentSlideIndex)) {\n currentSlideIndex = currentViewIndex;\n }\n if (currentSlideIndex - currentViewIndex === 1) {\n direction = 1;\n } else if (currentSlideIndex === 0 && currentViewIndex === 2) {\n direction = 1;\n this.slider.slideTo(1, 0, false);\n } else if (currentViewIndex - currentSlideIndex === 1) {\n direction = -1;\n } else if (currentSlideIndex === 2 && currentViewIndex === 0) {\n direction = -1;\n this.slider.slideTo(3, 0, false);\n }\n this.currentViewIndex = currentSlideIndex;\n this.move(direction);\n });\n }\n move(direction) {\n if (direction === 0) {\n return;\n }\n this.direction = direction;\n const adjacentDate = this.calendarService.getAdjacentCalendarDate(this.mode, direction);\n this.calendarService.setCurrentDate(adjacentDate);\n this.refreshView();\n this.direction = 0;\n }\n getHourColumnLabels() {\n const hourColumnLabels = [];\n for (let hour = 0, length = this.views[0].rows.length; hour < length; hour += 1) {\n // handle edge case for DST\n if (hour === 0 && this.views[0].rows[hour].time.getHours() !== this.startHour) {\n const time = new Date(this.views[0].rows[hour].time);\n time.setDate(time.getDate() + 1);\n time.setHours(this.startHour);\n hourColumnLabels.push(this.formatHourColumnLabel(time));\n } else {\n hourColumnLabels.push(this.formatHourColumnLabel(this.views[0].rows[hour].time));\n }\n }\n return hourColumnLabels;\n }\n getViewData(startTime) {\n return {\n rows: DayViewComponent_1.createDateObjects(startTime, this.startHour, this.endHour, this.hourSegments),\n allDayEvents: []\n };\n }\n getRange(currentDate) {\n const year = currentDate.getFullYear(),\n month = currentDate.getMonth(),\n date = currentDate.getDate(),\n startTime = new Date(year, month, date, 12, 0, 0),\n endTime = new Date(year, month, date + 1, 12, 0, 0);\n return {\n startTime,\n endTime\n };\n }\n onDataLoaded() {\n const eventSource = this.eventSource,\n len = eventSource ? eventSource.length : 0,\n startTime = this.range.startTime,\n endTime = this.range.endTime,\n utcStartTime = Date.UTC(startTime.getFullYear(), startTime.getMonth(), startTime.getDate()),\n utcEndTime = Date.UTC(endTime.getFullYear(), endTime.getMonth(), endTime.getDate()),\n currentViewIndex = this.currentViewIndex,\n rows = this.views[currentViewIndex].rows,\n allDayEvents = this.views[currentViewIndex].allDayEvents = [],\n oneHour = 3600000,\n eps = 0.016,\n rangeStartRowIndex = this.startHour * this.hourSegments,\n rangeEndRowIndex = this.endHour * this.hourSegments;\n let normalEventInRange = false;\n for (let hour = 0; hour < this.hourRange; hour += 1) {\n rows[hour].events = [];\n }\n for (let i = 0; i < len; i += 1) {\n const event = eventSource[i];\n const eventStartTime = event.startTime;\n const eventEndTime = event.endTime;\n let eventUTCStartTime, eventUTCEndTime;\n if (event.allDay) {\n eventUTCStartTime = eventStartTime.getTime();\n eventUTCEndTime = eventEndTime.getTime();\n } else {\n eventUTCStartTime = Date.UTC(eventStartTime.getFullYear(), eventStartTime.getMonth(), eventStartTime.getDate());\n eventUTCEndTime = Date.UTC(eventEndTime.getFullYear(), eventEndTime.getMonth(), eventEndTime.getDate() + 1);\n }\n if (eventUTCEndTime <= utcStartTime || eventUTCStartTime >= utcEndTime || eventStartTime >= eventEndTime) {\n continue;\n }\n if (event.allDay) {\n allDayEvents.push({\n event\n });\n } else {\n normalEventInRange = true;\n let timeDifferenceStart;\n if (eventUTCStartTime < utcStartTime) {\n timeDifferenceStart = 0;\n } else {\n timeDifferenceStart = (eventStartTime.getHours() + eventStartTime.getMinutes() / 60) * this.hourSegments;\n }\n let timeDifferenceEnd;\n if (eventUTCEndTime > utcEndTime) {\n timeDifferenceEnd = (utcEndTime - utcStartTime) / oneHour * this.hourSegments;\n } else {\n timeDifferenceEnd = (eventEndTime.getHours() + eventEndTime.getMinutes() / 60) * this.hourSegments;\n }\n let startIndex = Math.floor(timeDifferenceStart);\n let endIndex = Math.ceil(timeDifferenceEnd - eps);\n let startOffset = 0;\n let endOffset = 0;\n if (this.hourParts !== 1) {\n if (startIndex < rangeStartRowIndex) {\n startOffset = 0;\n } else {\n startOffset = Math.floor((timeDifferenceStart - startIndex) * this.hourParts);\n }\n if (endIndex > rangeEndRowIndex) {\n endOffset = 0;\n } else {\n endOffset = Math.floor((endIndex - timeDifferenceEnd) * this.hourParts);\n }\n }\n if (startIndex < rangeStartRowIndex) {\n startIndex = 0;\n } else {\n startIndex -= rangeStartRowIndex;\n }\n if (endIndex > rangeEndRowIndex) {\n endIndex = rangeEndRowIndex;\n }\n endIndex -= rangeStartRowIndex;\n if (startIndex < endIndex) {\n const displayEvent = {\n event,\n startIndex,\n endIndex,\n startOffset,\n endOffset\n };\n let eventSet = rows[startIndex].events;\n if (eventSet) {\n eventSet.push(displayEvent);\n } else {\n eventSet = [];\n eventSet.push(displayEvent);\n rows[startIndex].events = eventSet;\n }\n }\n }\n }\n if (normalEventInRange) {\n let orderedEvents = [];\n for (let hour = 0; hour < this.hourRange; hour += 1) {\n if (rows[hour].events) {\n rows[hour].events.sort(DayViewComponent_1.compareEventByStartOffset);\n orderedEvents = orderedEvents.concat(rows[hour].events);\n }\n }\n if (orderedEvents.length > 0) {\n this.placeEvents(orderedEvents);\n }\n }\n }\n refreshView() {\n this.range = this.getRange(this.calendarService.currentDate);\n if (this.inited) {\n const title = this.getTitle();\n this.onTitleChanged.emit(title);\n }\n this.calendarService.populateAdjacentViews(this);\n this.calendarService.rangeChanged(this);\n }\n getTitle() {\n const startingDate = new Date(this.range.startTime.getTime());\n startingDate.setHours(12, 0, 0, 0);\n return this.formatTitle(startingDate);\n }\n select(selectedTime, events) {\n let disabled = false;\n if (this.markDisabled) {\n disabled = this.markDisabled(selectedTime);\n }\n this.onTimeSelected.emit({\n selectedTime,\n events: events.map(e => e.event),\n disabled\n });\n }\n placeEvents(orderedEvents) {\n this.calculatePosition(orderedEvents);\n DayViewComponent_1.calculateWidth(orderedEvents, this.hourRange, this.hourParts);\n }\n placeAllDayEvents(orderedEvents) {\n this.calculatePosition(orderedEvents);\n }\n overlap(event1, event2) {\n let earlyEvent = event1,\n lateEvent = event2;\n if (event1.startIndex > event2.startIndex || event1.startIndex === event2.startIndex && event1.startOffset > event2.startOffset) {\n earlyEvent = event2;\n lateEvent = event1;\n }\n if (earlyEvent.endIndex <= lateEvent.startIndex) {\n return false;\n } else {\n return !(earlyEvent.endIndex - lateEvent.startIndex === 1 && earlyEvent.endOffset + lateEvent.startOffset >= this.hourParts);\n }\n }\n calculatePosition(events) {\n const len = events.length,\n isForbidden = new Array(len);\n let maxColumn = 0,\n col;\n for (let i = 0; i < len; i += 1) {\n for (col = 0; col < maxColumn; col += 1) {\n isForbidden[col] = false;\n }\n for (let j = 0; j < i; j += 1) {\n if (this.overlap(events[i], events[j])) {\n isForbidden[events[j].position] = true;\n }\n }\n for (col = 0; col < maxColumn; col += 1) {\n if (!isForbidden[col]) {\n break;\n }\n }\n if (col < maxColumn) {\n events[i].position = col;\n } else {\n events[i].position = maxColumn++;\n }\n }\n if (this.dir === 'rtl') {\n for (let i = 0; i < len; i += 1) {\n events[i].position = maxColumn - 1 - events[i].position;\n }\n }\n }\n eventSelected(event) {\n this.onEventSelected.emit(event);\n }\n setScrollPosition(scrollPosition) {\n this.initScrollPosition = scrollPosition;\n }\n};\nDayViewComponent.ɵfac = function DayViewComponent_Factory(t) {\n return new (t || DayViewComponent)(ɵngcc0.ɵɵdirectiveInject(CalendarService), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ElementRef));\n};\nDayViewComponent.ɵcmp = /*@__PURE__*/ɵngcc0.ɵɵdefineComponent({\n type: DayViewComponent,\n selectors: [[\"dayview\"]],\n viewQuery: function DayViewComponent_Query(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵviewQuery(_c12, 7);\n }\n if (rf & 2) {\n let _t;\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.slider = _t.first);\n }\n },\n hostVars: 2,\n hostBindings: function DayViewComponent_HostBindings(rf, ctx) {\n if (rf & 2) {\n ɵngcc0.ɵɵclassProp(\"dayview\", ctx.class);\n }\n },\n inputs: {\n dir: \"dir\",\n scrollToHour: \"scrollToHour\",\n sliderOptions: \"sliderOptions\",\n dayviewAllDayEventTemplate: \"dayviewAllDayEventTemplate\",\n dayviewNormalEventTemplate: \"dayviewNormalEventTemplate\",\n dayviewAllDayEventSectionTemplate: \"dayviewAllDayEventSectionTemplate\",\n dayviewNormalEventSectionTemplate: \"dayviewNormalEventSectionTemplate\",\n dayviewInactiveAllDayEventSectionTemplate: \"dayviewInactiveAllDayEventSectionTemplate\",\n dayviewInactiveNormalEventSectionTemplate: \"dayviewInactiveNormalEventSectionTemplate\",\n formatHourColumn: \"formatHourColumn\",\n formatDayTitle: \"formatDayTitle\",\n allDayLabel: \"allDayLabel\",\n hourParts: \"hourParts\",\n eventSource: \"eventSource\",\n markDisabled: \"markDisabled\",\n locale: \"locale\",\n dateFormatter: \"dateFormatter\",\n preserveScrollPosition: \"preserveScrollPosition\",\n lockSwipeToPrev: \"lockSwipeToPrev\",\n lockSwipes: \"lockSwipes\",\n startHour: \"startHour\",\n endHour: \"endHour\",\n hourSegments: \"hourSegments\"\n },\n outputs: {\n onRangeChanged: \"onRangeChanged\",\n onEventSelected: \"onEventSelected\",\n onTimeSelected: \"onTimeSelected\",\n onTitleChanged: \"onTitleChanged\"\n },\n features: [ɵngcc0.ɵɵNgOnChangesFeature],\n decls: 38,\n vars: 17,\n consts: [[1, \"slides-container\", 3, \"options\", \"dir\", \"ionSlideDidChange\"], [\"daySlider\", \"\"], [1, \"slide-container\"], [1, \"dayview-allday-table\"], [1, \"dayview-allday-label\"], [1, \"dayview-allday-content-wrapper\", \"scroll-content\"], [1, \"table\", \"table-bordered\", \"dayview-allday-content-table\"], [\"class\", \"calendar-cell\", 3, \"ngClass\", \"ngStyle\", 4, \"ngIf\"], [\"class\", \"calendar-cell\", 4, \"ngIf\"], [\"class\", \"dayview-normal-event-container\", 3, \"initPosition\", \"emitEvent\", \"onScroll\", 4, \"ngIf\"], [\"class\", \"dayview-normal-event-container\", 3, \"initPosition\", 4, \"ngIf\"], [1, \"calendar-cell\", 3, \"ngClass\", \"ngStyle\"], [3, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [1, \"calendar-cell\"], [1, \"dayview-normal-event-container\", 3, \"initPosition\", \"emitEvent\", \"onScroll\"], [1, \"table\", \"table-bordered\", \"table-fixed\", \"dayview-normal-event-table\"], [4, \"ngFor\", \"ngForOf\"], [1, \"calendar-hour-column\", \"text-center\"], [\"tappable\", \"\", 1, \"calendar-cell\", 3, \"click\"], [1, \"dayview-normal-event-container\", 3, \"initPosition\"]],\n template: function DayViewComponent_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"ion-slides\", 0, 1);\n ɵngcc0.ɵɵlistener(\"ionSlideDidChange\", function DayViewComponent_Template_ion_slides_ionSlideDidChange_0_listener() {\n return ctx.onSlideChanged();\n });\n ɵngcc0.ɵɵelementStart(2, \"ion-slide\", 2)(3, \"div\", 3)(4, \"div\", 4);\n ɵngcc0.ɵɵtext(5);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(6, \"div\", 5)(7, \"table\", 6)(8, \"tbody\")(9, \"tr\");\n ɵngcc0.ɵɵtemplate(10, DayViewComponent_td_10_Template, 2, 11, \"td\", 7);\n ɵngcc0.ɵɵtemplate(11, DayViewComponent_td_11_Template, 2, 4, \"td\", 8);\n ɵngcc0.ɵɵelementEnd()()()()();\n ɵngcc0.ɵɵtemplate(12, DayViewComponent_init_position_scroll_12_Template, 4, 3, \"init-position-scroll\", 9);\n ɵngcc0.ɵɵtemplate(13, DayViewComponent_init_position_scroll_13_Template, 4, 2, \"init-position-scroll\", 10);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(14, \"ion-slide\", 2)(15, \"div\", 3)(16, \"div\", 4);\n ɵngcc0.ɵɵtext(17);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(18, \"div\", 5)(19, \"table\", 6)(20, \"tbody\")(21, \"tr\");\n ɵngcc0.ɵɵtemplate(22, DayViewComponent_td_22_Template, 2, 11, \"td\", 7);\n ɵngcc0.ɵɵtemplate(23, DayViewComponent_td_23_Template, 2, 4, \"td\", 8);\n ɵngcc0.ɵɵelementEnd()()()()();\n ɵngcc0.ɵɵtemplate(24, DayViewComponent_init_position_scroll_24_Template, 4, 3, \"init-position-scroll\", 9);\n ɵngcc0.ɵɵtemplate(25, DayViewComponent_init_position_scroll_25_Template, 4, 2, \"init-position-scroll\", 10);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(26, \"ion-slide\", 2)(27, \"div\", 3)(28, \"div\", 4);\n ɵngcc0.ɵɵtext(29);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(30, \"div\", 5)(31, \"table\", 6)(32, \"tbody\")(33, \"tr\");\n ɵngcc0.ɵɵtemplate(34, DayViewComponent_td_34_Template, 2, 11, \"td\", 7);\n ɵngcc0.ɵɵtemplate(35, DayViewComponent_td_35_Template, 2, 4, \"td\", 8);\n ɵngcc0.ɵɵelementEnd()()()()();\n ɵngcc0.ɵɵtemplate(36, DayViewComponent_init_position_scroll_36_Template, 4, 3, \"init-position-scroll\", 9);\n ɵngcc0.ɵɵtemplate(37, DayViewComponent_init_position_scroll_37_Template, 4, 2, \"init-position-scroll\", 10);\n ɵngcc0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n ɵngcc0.ɵɵproperty(\"options\", ctx.sliderOptions)(\"dir\", ctx.dir);\n ɵngcc0.ɵɵadvance(5);\n ɵngcc0.ɵɵtextInterpolate(ctx.allDayLabel);\n ɵngcc0.ɵɵadvance(5);\n ɵngcc0.ɵɵproperty(\"ngIf\", 0 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 0 !== ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 0 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 0 !== ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(4);\n ɵngcc0.ɵɵtextInterpolate(ctx.allDayLabel);\n ɵngcc0.ɵɵadvance(5);\n ɵngcc0.ɵɵproperty(\"ngIf\", 1 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 1 !== ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 1 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 1 !== ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(4);\n ɵngcc0.ɵɵtextInterpolate(ctx.allDayLabel);\n ɵngcc0.ɵɵadvance(5);\n ɵngcc0.ɵɵproperty(\"ngIf\", 2 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 2 !== ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 2 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 2 !== ctx.currentViewIndex);\n }\n },\n dependencies: function () {\n return [ɵngcc1.IonSlide, ɵngcc1.IonSlides, ɵngcc2.NgClass, ɵngcc2.NgForOf, ɵngcc2.NgIf, ɵngcc2.NgTemplateOutlet, ɵngcc2.NgStyle, initPositionScrollComponent];\n },\n styles: [\"\\n .table-fixed {\\n table-layout: fixed;\\n }\\n\\n .table {\\n width: 100%;\\n max-width: 100%;\\n background-color: transparent;\\n }\\n\\n .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td,\\n .table > tbody > tr > td, .table > tfoot > tr > td {\\n padding: 8px;\\n line-height: 20px;\\n vertical-align: top;\\n }\\n\\n .table > thead > tr > th {\\n vertical-align: bottom;\\n border-bottom: 2px solid #ddd;\\n }\\n\\n .table > thead:first-child > tr:first-child > th, .table > thead:first-child > tr:first-child > td {\\n border-top: 0\\n }\\n\\n .table > tbody + tbody {\\n border-top: 2px solid #ddd;\\n }\\n\\n .table-bordered {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th,\\n .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered > thead > tr > th, .table-bordered > thead > tr > td {\\n border-bottom-width: 2px;\\n }\\n\\n .table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th {\\n background-color: #f9f9f9\\n }\\n\\n .calendar-hour-column {\\n width: 50px;\\n white-space: nowrap;\\n }\\n\\n .calendar-event-wrap {\\n position: relative;\\n width: 100%;\\n height: 100%;\\n }\\n\\n .calendar-event {\\n position: absolute;\\n padding: 2px;\\n cursor: pointer;\\n z-index: 10000;\\n }\\n\\n .slides-container {\\n height: 100%;\\n }\\n\\n .slide-container {\\n display: block;\\n }\\n\\n .calendar-cell {\\n padding: 0 !important;\\n height: 37px;\\n }\\n\\n .dayview-allday-label {\\n float: left;\\n height: 100%;\\n line-height: 50px;\\n text-align: center;\\n width: 50px;\\n border-left: 1px solid #ddd;\\n }\\n\\n [dir=\\\"rtl\\\"] .dayview-allday-label {\\n border-right: 1px solid #ddd;\\n float: right;\\n }\\n\\n .dayview-allday-content-wrapper {\\n margin-left: 50px;\\n overflow: hidden;\\n height: 51px;\\n }\\n\\n [dir=\\\"rtl\\\"] .dayview-allday-content-wrapper {\\n margin-left: 0;\\n margin-right: 50px;\\n }\\n\\n .dayview-allday-content-table {\\n min-height: 50px;\\n }\\n\\n .dayview-allday-content-table td {\\n border-left: 1px solid #ddd;\\n border-right: 1px solid #ddd;\\n }\\n\\n .dayview-allday-table {\\n height: 50px;\\n position: relative;\\n border-bottom: 1px solid #ddd;\\n font-size: 14px;\\n }\\n\\n .dayview-normal-event-container {\\n margin-top: 50px;\\n overflow: hidden;\\n left: 0;\\n right: 0;\\n top: 0;\\n bottom: 0;\\n position: absolute;\\n font-size: 14px;\\n }\\n\\n .scroll-content {\\n overflow-y: auto;\\n overflow-x: hidden;\\n }\\n\\n ::-webkit-scrollbar,\\n *::-webkit-scrollbar {\\n display: none;\\n }\\n\\n .table > tbody > tr > td.calendar-hour-column {\\n padding-left: 0;\\n padding-right: 0;\\n vertical-align: middle;\\n }\\n\\n @media (max-width: 750px) {\\n .dayview-allday-label, .calendar-hour-column {\\n width: 31px;\\n font-size: 12px;\\n }\\n\\n .dayview-allday-label {\\n padding-top: 4px;\\n }\\n\\n .table > tbody > tr > td.calendar-hour-column {\\n padding-left: 0;\\n padding-right: 0;\\n vertical-align: middle;\\n line-height: 12px;\\n }\\n\\n .dayview-allday-label {\\n line-height: 20px;\\n }\\n\\n .dayview-allday-content-wrapper {\\n margin-left: 31px;\\n }\\n\\n [dir=\\\"rtl\\\"] .dayview-allday-content-wrapper {\\n margin-left: 0;\\n margin-right: 31px;\\n }\\n }\\n \"],\n encapsulation: 2\n});\nDayViewComponent.ctorParameters = () => [{\n type: CalendarService\n}, {\n type: ElementRef\n}];\n__decorate([ViewChild('daySlider', {\n static: true\n})], DayViewComponent.prototype, \"slider\", void 0);\n__decorate([HostBinding('class.dayview')], DayViewComponent.prototype, \"class\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"dayviewAllDayEventTemplate\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"dayviewNormalEventTemplate\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"dayviewAllDayEventSectionTemplate\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"dayviewNormalEventSectionTemplate\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"dayviewInactiveAllDayEventSectionTemplate\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"dayviewInactiveNormalEventSectionTemplate\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"formatHourColumn\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"formatDayTitle\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"allDayLabel\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"hourParts\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"eventSource\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"markDisabled\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"locale\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"dateFormatter\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"dir\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"scrollToHour\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"preserveScrollPosition\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"lockSwipeToPrev\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"lockSwipes\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"startHour\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"endHour\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"sliderOptions\", void 0);\n__decorate([Input()], DayViewComponent.prototype, \"hourSegments\", void 0);\n__decorate([Output()], DayViewComponent.prototype, \"onRangeChanged\", void 0);\n__decorate([Output()], DayViewComponent.prototype, \"onEventSelected\", void 0);\n__decorate([Output()], DayViewComponent.prototype, \"onTimeSelected\", void 0);\n__decorate([Output()], DayViewComponent.prototype, \"onTitleChanged\", void 0);\nvar Step;\n(function (Step) {\n Step[Step[\"QuarterHour\"] = 15] = \"QuarterHour\";\n Step[Step[\"HalfHour\"] = 30] = \"HalfHour\";\n Step[Step[\"Hour\"] = 60] = \"Hour\";\n})(Step || (Step = {}));\nlet CalendarComponent = class CalendarComponent {\n constructor(calendarService, appLocale) {\n this.calendarService = calendarService;\n this.appLocale = appLocale;\n this.eventSource = [];\n this.calendarMode = 'month';\n this.formatDay = 'd';\n this.formatDayHeader = 'EEE';\n this.formatDayTitle = 'MMMM dd, yyyy';\n this.formatWeekTitle = 'MMMM yyyy, \\'Week\\' w';\n this.formatMonthTitle = 'MMMM yyyy';\n this.formatWeekViewDayHeader = 'EEE d';\n this.formatHourColumn = 'ha';\n this.showEventDetail = true;\n this.startingDayMonth = 0;\n this.startingDayWeek = 0;\n this.allDayLabel = 'all day';\n this.noEventsLabel = 'No Events';\n this.queryMode = 'local';\n this.step = Step.Hour;\n this.timeInterval = 60;\n this.autoSelect = true;\n this.dir = \"\";\n this.scrollToHour = 0;\n this.preserveScrollPosition = false;\n this.lockSwipeToPrev = false;\n this.lockSwipes = false;\n this.locale = \"\";\n this.startHour = 0;\n this.endHour = 24;\n this.onCurrentDateChanged = new EventEmitter();\n this.onRangeChanged = new EventEmitter();\n this.onEventSelected = new EventEmitter();\n this.onTimeSelected = new EventEmitter();\n this.onDayHeaderSelected = new EventEmitter();\n this.onTitleChanged = new EventEmitter();\n this.hourParts = 1;\n this.hourSegments = 1;\n this.locale = appLocale;\n }\n get currentDate() {\n return this._currentDate;\n }\n set currentDate(val) {\n if (!val) {\n val = new Date();\n }\n this._currentDate = val;\n this.calendarService.setCurrentDate(val, true);\n this.onCurrentDateChanged.emit(this._currentDate);\n }\n ngOnInit() {\n if (this.autoSelect) {\n if (this.autoSelect.toString() === 'false') {\n this.autoSelect = false;\n } else {\n this.autoSelect = true;\n }\n }\n this.hourSegments = 60 / this.timeInterval;\n this.hourParts = 60 / this.step;\n if (this.hourParts <= this.hourSegments) {\n this.hourParts = 1;\n } else {\n this.hourParts = this.hourParts / this.hourSegments;\n }\n this.startHour = parseInt(this.startHour.toString());\n this.endHour = parseInt(this.endHour.toString());\n this.calendarService.queryMode = this.queryMode;\n this.currentDateChangedFromChildrenSubscription = this.calendarService.currentDateChangedFromChildren$.subscribe(currentDate => {\n this._currentDate = currentDate;\n this.onCurrentDateChanged.emit(currentDate);\n });\n }\n ngOnDestroy() {\n if (this.currentDateChangedFromChildrenSubscription) {\n this.currentDateChangedFromChildrenSubscription.unsubscribe();\n this.currentDateChangedFromChildrenSubscription = null;\n }\n }\n rangeChanged(range) {\n this.onRangeChanged.emit(range);\n }\n eventSelected(event) {\n this.onEventSelected.emit(event);\n }\n timeSelected(timeSelected) {\n this.onTimeSelected.emit(timeSelected);\n }\n daySelected(daySelected) {\n this.onDayHeaderSelected.emit(daySelected);\n }\n titleChanged(title) {\n this.onTitleChanged.emit(title);\n }\n loadEvents() {\n this.calendarService.loadEvents();\n }\n slideNext() {\n this.calendarService.slide(1);\n }\n slidePrev() {\n this.calendarService.slide(-1);\n }\n update() {\n this.calendarService.update();\n }\n};\nCalendarComponent.ɵfac = function CalendarComponent_Factory(t) {\n return new (t || CalendarComponent)(ɵngcc0.ɵɵdirectiveInject(CalendarService), ɵngcc0.ɵɵdirectiveInject(LOCALE_ID));\n};\nCalendarComponent.ɵcmp = /*@__PURE__*/ɵngcc0.ɵɵdefineComponent({\n type: CalendarComponent,\n selectors: [[\"calendar\"]],\n inputs: {\n eventSource: \"eventSource\",\n calendarMode: \"calendarMode\",\n formatDay: \"formatDay\",\n formatDayHeader: \"formatDayHeader\",\n formatDayTitle: \"formatDayTitle\",\n formatWeekTitle: \"formatWeekTitle\",\n formatMonthTitle: \"formatMonthTitle\",\n formatWeekViewDayHeader: \"formatWeekViewDayHeader\",\n formatHourColumn: \"formatHourColumn\",\n showEventDetail: \"showEventDetail\",\n startingDayMonth: \"startingDayMonth\",\n startingDayWeek: \"startingDayWeek\",\n allDayLabel: \"allDayLabel\",\n noEventsLabel: \"noEventsLabel\",\n queryMode: \"queryMode\",\n step: \"step\",\n timeInterval: \"timeInterval\",\n autoSelect: \"autoSelect\",\n dir: \"dir\",\n scrollToHour: \"scrollToHour\",\n preserveScrollPosition: \"preserveScrollPosition\",\n lockSwipeToPrev: \"lockSwipeToPrev\",\n lockSwipes: \"lockSwipes\",\n locale: \"locale\",\n startHour: \"startHour\",\n endHour: \"endHour\",\n currentDate: \"currentDate\",\n markDisabled: \"markDisabled\",\n monthviewDisplayEventTemplate: \"monthviewDisplayEventTemplate\",\n monthviewInactiveDisplayEventTemplate: \"monthviewInactiveDisplayEventTemplate\",\n monthviewEventDetailTemplate: \"monthviewEventDetailTemplate\",\n weekviewHeaderTemplate: \"weekviewHeaderTemplate\",\n weekviewAllDayEventTemplate: \"weekviewAllDayEventTemplate\",\n weekviewNormalEventTemplate: \"weekviewNormalEventTemplate\",\n dayviewAllDayEventTemplate: \"dayviewAllDayEventTemplate\",\n dayviewNormalEventTemplate: \"dayviewNormalEventTemplate\",\n weekviewAllDayEventSectionTemplate: \"weekviewAllDayEventSectionTemplate\",\n weekviewNormalEventSectionTemplate: \"weekviewNormalEventSectionTemplate\",\n dayviewAllDayEventSectionTemplate: \"dayviewAllDayEventSectionTemplate\",\n dayviewNormalEventSectionTemplate: \"dayviewNormalEventSectionTemplate\",\n weekviewInactiveAllDayEventSectionTemplate: \"weekviewInactiveAllDayEventSectionTemplate\",\n weekviewInactiveNormalEventSectionTemplate: \"weekviewInactiveNormalEventSectionTemplate\",\n dayviewInactiveAllDayEventSectionTemplate: \"dayviewInactiveAllDayEventSectionTemplate\",\n dayviewInactiveNormalEventSectionTemplate: \"dayviewInactiveNormalEventSectionTemplate\",\n dateFormatter: \"dateFormatter\",\n sliderOptions: \"sliderOptions\"\n },\n outputs: {\n onCurrentDateChanged: \"onCurrentDateChanged\",\n onRangeChanged: \"onRangeChanged\",\n onEventSelected: \"onEventSelected\",\n onTimeSelected: \"onTimeSelected\",\n onDayHeaderSelected: \"onDayHeaderSelected\",\n onTitleChanged: \"onTitleChanged\"\n },\n features: [ɵngcc0.ɵɵProvidersFeature([CalendarService])],\n decls: 24,\n vars: 7,\n consts: [[\"monthviewDefaultDisplayEventTemplate\", \"\"], [\"monthviewDefaultEventDetailTemplate\", \"\"], [\"defaultWeekviewHeaderTemplate\", \"\"], [\"defaultAllDayEventTemplate\", \"\"], [\"defaultNormalEventTemplate\", \"\"], [\"defaultWeekViewAllDayEventSectionTemplate\", \"\"], [\"defaultDayViewAllDayEventSectionTemplate\", \"\"], [\"defaultNormalEventSectionTemplate\", \"\"], [\"defaultInactiveAllDayEventSectionTemplate\", \"\"], [\"defaultInactiveNormalEventSectionTemplate\", \"\"], [3, \"ngSwitch\"], [3, \"formatDay\", \"formatDayHeader\", \"formatMonthTitle\", \"startingDayMonth\", \"showEventDetail\", \"noEventsLabel\", \"autoSelect\", \"eventSource\", \"markDisabled\", \"monthviewDisplayEventTemplate\", \"monthviewInactiveDisplayEventTemplate\", \"monthviewEventDetailTemplate\", \"locale\", \"dateFormatter\", \"dir\", \"lockSwipeToPrev\", \"lockSwipes\", \"sliderOptions\", \"onRangeChanged\", \"onEventSelected\", \"onTimeSelected\", \"onTitleChanged\", 4, \"ngSwitchCase\"], [3, \"formatWeekTitle\", \"formatWeekViewDayHeader\", \"formatHourColumn\", \"startingDayWeek\", \"allDayLabel\", \"hourParts\", \"autoSelect\", \"hourSegments\", \"eventSource\", \"markDisabled\", \"weekviewHeaderTemplate\", \"weekviewAllDayEventTemplate\", \"weekviewNormalEventTemplate\", \"weekviewAllDayEventSectionTemplate\", \"weekviewNormalEventSectionTemplate\", \"weekviewInactiveAllDayEventSectionTemplate\", \"weekviewInactiveNormalEventSectionTemplate\", \"locale\", \"dateFormatter\", \"dir\", \"scrollToHour\", \"preserveScrollPosition\", \"lockSwipeToPrev\", \"lockSwipes\", \"startHour\", \"endHour\", \"sliderOptions\", \"onRangeChanged\", \"onEventSelected\", \"onDayHeaderSelected\", \"onTimeSelected\", \"onTitleChanged\", 4, \"ngSwitchCase\"], [3, \"formatDayTitle\", \"formatHourColumn\", \"allDayLabel\", \"hourParts\", \"hourSegments\", \"eventSource\", \"markDisabled\", \"dayviewAllDayEventTemplate\", \"dayviewNormalEventTemplate\", \"dayviewAllDayEventSectionTemplate\", \"dayviewNormalEventSectionTemplate\", \"dayviewInactiveAllDayEventSectionTemplate\", \"dayviewInactiveNormalEventSectionTemplate\", \"locale\", \"dateFormatter\", \"dir\", \"scrollToHour\", \"preserveScrollPosition\", \"lockSwipeToPrev\", \"lockSwipes\", \"startHour\", \"endHour\", \"sliderOptions\", \"onRangeChanged\", \"onEventSelected\", \"onTimeSelected\", \"onTitleChanged\", 4, \"ngSwitchCase\"], [\"class\", \"event-detail-container\", \"has-bouncing\", \"false\", \"overflow-scroll\", \"false\", 4, \"ngIf\"], [\"has-bouncing\", \"false\", \"overflow-scroll\", \"false\", 1, \"event-detail-container\"], [3, \"click\", 4, \"ngFor\", \"ngForOf\"], [4, \"ngIf\"], [3, \"click\"], [\"class\", \"monthview-eventdetail-timecolumn\", 4, \"ngIf\"], [1, \"event-detail\"], [1, \"monthview-eventdetail-timecolumn\"], [1, \"no-events-label\"], [1, \"calendar-event-inner\"], [3, \"ngClass\", \"ngStyle\", 4, \"ngIf\"], [3, \"ngClass\", \"ngStyle\"], [\"class\", \"calendar-event\", \"tappable\", \"\", 3, \"ngStyle\", \"click\", 4, \"ngFor\", \"ngForOf\"], [\"tappable\", \"\", 1, \"calendar-event\", 3, \"ngStyle\", \"click\"], [3, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [3, \"ngClass\", 4, \"ngIf\"], [3, \"ngClass\"], [3, \"formatDay\", \"formatDayHeader\", \"formatMonthTitle\", \"startingDayMonth\", \"showEventDetail\", \"noEventsLabel\", \"autoSelect\", \"eventSource\", \"markDisabled\", \"monthviewDisplayEventTemplate\", \"monthviewInactiveDisplayEventTemplate\", \"monthviewEventDetailTemplate\", \"locale\", \"dateFormatter\", \"dir\", \"lockSwipeToPrev\", \"lockSwipes\", \"sliderOptions\", \"onRangeChanged\", \"onEventSelected\", \"onTimeSelected\", \"onTitleChanged\"], [3, \"formatWeekTitle\", \"formatWeekViewDayHeader\", \"formatHourColumn\", \"startingDayWeek\", \"allDayLabel\", \"hourParts\", \"autoSelect\", \"hourSegments\", \"eventSource\", \"markDisabled\", \"weekviewHeaderTemplate\", \"weekviewAllDayEventTemplate\", \"weekviewNormalEventTemplate\", \"weekviewAllDayEventSectionTemplate\", \"weekviewNormalEventSectionTemplate\", \"weekviewInactiveAllDayEventSectionTemplate\", \"weekviewInactiveNormalEventSectionTemplate\", \"locale\", \"dateFormatter\", \"dir\", \"scrollToHour\", \"preserveScrollPosition\", \"lockSwipeToPrev\", \"lockSwipes\", \"startHour\", \"endHour\", \"sliderOptions\", \"onRangeChanged\", \"onEventSelected\", \"onDayHeaderSelected\", \"onTimeSelected\", \"onTitleChanged\"], [3, \"formatDayTitle\", \"formatHourColumn\", \"allDayLabel\", \"hourParts\", \"hourSegments\", \"eventSource\", \"markDisabled\", \"dayviewAllDayEventTemplate\", \"dayviewNormalEventTemplate\", \"dayviewAllDayEventSectionTemplate\", \"dayviewNormalEventSectionTemplate\", \"dayviewInactiveAllDayEventSectionTemplate\", \"dayviewInactiveNormalEventSectionTemplate\", \"locale\", \"dateFormatter\", \"dir\", \"scrollToHour\", \"preserveScrollPosition\", \"lockSwipeToPrev\", \"lockSwipes\", \"startHour\", \"endHour\", \"sliderOptions\", \"onRangeChanged\", \"onEventSelected\", \"onTimeSelected\", \"onTitleChanged\"]],\n template: function CalendarComponent_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵtemplate(0, CalendarComponent_ng_template_0_Template, 1, 1, \"ng-template\", null, 0, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵtemplate(2, CalendarComponent_ng_template_2_Template, 1, 1, \"ng-template\", null, 1, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵtemplate(4, CalendarComponent_ng_template_4_Template, 1, 1, \"ng-template\", null, 2, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵtemplate(6, CalendarComponent_ng_template_6_Template, 2, 1, \"ng-template\", null, 3, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵtemplate(8, CalendarComponent_ng_template_8_Template, 2, 1, \"ng-template\", null, 4, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵtemplate(10, CalendarComponent_ng_template_10_Template, 1, 1, \"ng-template\", null, 5, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵtemplate(12, CalendarComponent_ng_template_12_Template, 1, 1, \"ng-template\", null, 6, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵtemplate(14, CalendarComponent_ng_template_14_Template, 1, 1, \"ng-template\", null, 7, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵtemplate(16, CalendarComponent_ng_template_16_Template, 0, 0, \"ng-template\", null, 8, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵtemplate(18, CalendarComponent_ng_template_18_Template, 0, 0, \"ng-template\", null, 9, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵelementStart(20, \"div\", 10);\n ɵngcc0.ɵɵtemplate(21, CalendarComponent_monthview_21_Template, 1, 18, \"monthview\", 11);\n ɵngcc0.ɵɵtemplate(22, CalendarComponent_weekview_22_Template, 1, 27, \"weekview\", 12);\n ɵngcc0.ɵɵtemplate(23, CalendarComponent_dayview_23_Template, 1, 23, \"dayview\", 13);\n ɵngcc0.ɵɵelementEnd();\n }\n if (rf & 2) {\n ɵngcc0.ɵɵadvance(20);\n ɵngcc0.ɵɵclassMapInterpolate1(\"\", ctx.calendarMode, \"view-container\");\n ɵngcc0.ɵɵproperty(\"ngSwitch\", ctx.calendarMode);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngSwitchCase\", \"month\");\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngSwitchCase\", \"week\");\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngSwitchCase\", \"day\");\n }\n },\n dependencies: [ɵngcc1.IonItem, ɵngcc1.IonList, ɵngcc2.NgClass, ɵngcc2.NgForOf, ɵngcc2.NgIf, ɵngcc2.NgTemplateOutlet, ɵngcc2.NgStyle, ɵngcc2.NgSwitch, ɵngcc2.NgSwitchCase, MonthViewComponent, WeekViewComponent, DayViewComponent, ɵngcc2.DatePipe],\n styles: [\"[_nghost-%COMP%] > div[_ngcontent-%COMP%] { height: 100%; }\\n\\n .event-detail-container[_ngcontent-%COMP%] {\\n border-top: 2px darkgrey solid;\\n }\\n\\n .no-events-label[_ngcontent-%COMP%] {\\n font-weight: bold;\\n color: darkgrey;\\n text-align: center;\\n }\\n\\n .event-detail[_ngcontent-%COMP%] {\\n cursor: pointer;\\n white-space: nowrap;\\n text-overflow: ellipsis;\\n }\\n\\n .monthview-eventdetail-timecolumn[_ngcontent-%COMP%] {\\n width: 110px;\\n overflow: hidden;\\n }\\n\\n .calendar-event-inner[_ngcontent-%COMP%] {\\n overflow: hidden;\\n background-color: #3a87ad;\\n color: white;\\n height: 100%;\\n width: 100%;\\n padding: 2px;\\n line-height: 15px;\\n text-align: initial;\\n }\\n\\n @media (max-width: 750px) {\\n .calendar-event-inner[_ngcontent-%COMP%] {\\n font-size: 12px;\\n }\\n }\"]\n});\nCalendarComponent.ctorParameters = () => [{\n type: CalendarService\n}, {\n type: String,\n decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }]\n}];\n__decorate([Input()], CalendarComponent.prototype, \"currentDate\", null);\n__decorate([Input()], CalendarComponent.prototype, \"eventSource\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"calendarMode\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"formatDay\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"formatDayHeader\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"formatDayTitle\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"formatWeekTitle\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"formatMonthTitle\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"formatWeekViewDayHeader\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"formatHourColumn\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"showEventDetail\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"startingDayMonth\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"startingDayWeek\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"allDayLabel\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"noEventsLabel\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"queryMode\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"step\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"timeInterval\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"autoSelect\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"markDisabled\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"monthviewDisplayEventTemplate\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"monthviewInactiveDisplayEventTemplate\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"monthviewEventDetailTemplate\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"weekviewHeaderTemplate\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"weekviewAllDayEventTemplate\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"weekviewNormalEventTemplate\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"dayviewAllDayEventTemplate\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"dayviewNormalEventTemplate\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"weekviewAllDayEventSectionTemplate\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"weekviewNormalEventSectionTemplate\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"dayviewAllDayEventSectionTemplate\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"dayviewNormalEventSectionTemplate\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"weekviewInactiveAllDayEventSectionTemplate\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"weekviewInactiveNormalEventSectionTemplate\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"dayviewInactiveAllDayEventSectionTemplate\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"dayviewInactiveNormalEventSectionTemplate\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"dateFormatter\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"dir\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"scrollToHour\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"preserveScrollPosition\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"lockSwipeToPrev\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"lockSwipes\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"locale\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"startHour\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"endHour\", void 0);\n__decorate([Input()], CalendarComponent.prototype, \"sliderOptions\", void 0);\n__decorate([Output()], CalendarComponent.prototype, \"onCurrentDateChanged\", void 0);\n__decorate([Output()], CalendarComponent.prototype, \"onRangeChanged\", void 0);\n__decorate([Output()], CalendarComponent.prototype, \"onEventSelected\", void 0);\n__decorate([Output()], CalendarComponent.prototype, \"onTimeSelected\", void 0);\n__decorate([Output()], CalendarComponent.prototype, \"onDayHeaderSelected\", void 0);\n__decorate([Output()], CalendarComponent.prototype, \"onTitleChanged\", void 0);\nCalendarComponent = __decorate([__param(1, Inject(LOCALE_ID))], CalendarComponent);\nlet initPositionScrollComponent = class initPositionScrollComponent {\n constructor(el) {\n this.onScroll = new EventEmitter();\n this.listenerAttached = false;\n this.element = el;\n }\n ngOnChanges(changes) {\n let initPosition = changes['initPosition'];\n if (initPosition && initPosition.currentValue !== undefined && this.scrollContent) {\n const me = this;\n setTimeout(function () {\n me.scrollContent.scrollTop = initPosition.currentValue;\n }, 0);\n }\n }\n ngAfterViewInit() {\n const scrollContent = this.scrollContent = this.element.nativeElement.querySelector('.scroll-content');\n if (this.initPosition !== undefined) {\n scrollContent.scrollTop = this.initPosition;\n }\n if (this.emitEvent && !this.listenerAttached) {\n let onScroll = this.onScroll;\n this.handler = function () {\n onScroll.emit(scrollContent.scrollTop);\n };\n this.listenerAttached = true;\n scrollContent.addEventListener('scroll', this.handler);\n }\n }\n ngOnDestroy() {\n if (this.listenerAttached) {\n this.scrollContent.removeEventListener('scroll', this.handler);\n }\n }\n};\ninitPositionScrollComponent.ɵfac = function initPositionScrollComponent_Factory(t) {\n return new (t || initPositionScrollComponent)(ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ElementRef));\n};\ninitPositionScrollComponent.ɵcmp = /*@__PURE__*/ɵngcc0.ɵɵdefineComponent({\n type: initPositionScrollComponent,\n selectors: [[\"init-position-scroll\"]],\n inputs: {\n initPosition: \"initPosition\",\n emitEvent: \"emitEvent\"\n },\n outputs: {\n onScroll: \"onScroll\"\n },\n features: [ɵngcc0.ɵɵNgOnChangesFeature],\n ngContentSelectors: _c20,\n decls: 2,\n vars: 0,\n consts: [[1, \"scroll-content\", 2, \"height\", \"100%\"]],\n template: function initPositionScrollComponent_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵprojectionDef();\n ɵngcc0.ɵɵelementStart(0, \"div\", 0);\n ɵngcc0.ɵɵprojection(1);\n ɵngcc0.ɵɵelementEnd();\n }\n },\n styles: [\"\\n .scroll-content {\\n overflow-y: auto;\\n overflow-x: hidden;\\n } \\n \"],\n encapsulation: 2\n});\ninitPositionScrollComponent.ctorParameters = () => [{\n type: ElementRef\n}];\n__decorate([Input()], initPositionScrollComponent.prototype, \"initPosition\", void 0);\n__decorate([Input()], initPositionScrollComponent.prototype, \"emitEvent\", void 0);\n__decorate([Output()], initPositionScrollComponent.prototype, \"onScroll\", void 0);\nlet NgCalendarModule = class NgCalendarModule {};\nNgCalendarModule.ɵfac = function NgCalendarModule_Factory(t) {\n return new (t || NgCalendarModule)();\n};\nNgCalendarModule.ɵmod = /*@__PURE__*/ɵngcc0.ɵɵdefineNgModule({\n type: NgCalendarModule\n});\nNgCalendarModule.ɵinj = /*@__PURE__*/ɵngcc0.ɵɵdefineInjector({\n imports: [IonicModule, CommonModule]\n});\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(CalendarService, [{\n type: Injectable\n }], function () {\n return [];\n }, null);\n})();\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MonthViewComponent, [{\n type: Component,\n args: [{\n selector: 'monthview',\n template: `\n <div>\n <ion-slides #monthSlider [options]=\"sliderOptions\" [dir]=\"dir\" (ionSlideDidChange)=\"onSlideChanged()\">\n <ion-slide>\n <table *ngIf=\"0===currentViewIndex\" class=\"table table-bordered table-fixed monthview-datetable\">\n <thead>\n <tr>\n <th *ngFor=\"let dayHeader of views[0].dayHeaders\">\n <small>{{dayHeader}}</small>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let row of [0,1,2,3,4,5]\">\n <td *ngFor=\"let col of [0,1,2,3,4,5,6]\" tappable (click)=\"select(views[0].dates[row*7+col])\"\n [ngClass]=\"getHighlightClass(views[0].dates[row*7+col])\">\n <ng-template [ngTemplateOutlet]=\"monthviewDisplayEventTemplate\"\n [ngTemplateOutletContext]=\"{view: views[0], row: row, col: col}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n <table *ngIf=\"0!==currentViewIndex\" class=\"table table-bordered table-fixed monthview-datetable\">\n <thead>\n <tr class=\"text-center\">\n <th *ngFor=\"let dayHeader of views[0].dayHeaders\">\n <small>{{dayHeader}}</small>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let row of [0,1,2,3,4,5]\">\n <td *ngFor=\"let col of [0,1,2,3,4,5,6]\">\n <ng-template [ngTemplateOutlet]=\"monthviewInactiveDisplayEventTemplate\"\n [ngTemplateOutletContext]=\"{view: views[0], row: row, col: col}\">\n </ng-template>\n </td>\n <tr>\n </tbody>\n </table>\n </ion-slide>\n <ion-slide>\n <table *ngIf=\"1===currentViewIndex\" class=\"table table-bordered table-fixed monthview-datetable\">\n <thead>\n <tr>\n <th *ngFor=\"let dayHeader of views[1].dayHeaders\">\n <small>{{dayHeader}}</small>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let row of [0,1,2,3,4,5]\">\n <td *ngFor=\"let col of [0,1,2,3,4,5,6]\" tappable (click)=\"select(views[1].dates[row*7+col])\"\n [ngClass]=\"getHighlightClass(views[1].dates[row*7+col])\">\n <ng-template [ngTemplateOutlet]=\"monthviewDisplayEventTemplate\"\n [ngTemplateOutletContext]=\"{view: views[1], row: row, col: col}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n <table *ngIf=\"1!==currentViewIndex\" class=\"table table-bordered table-fixed monthview-datetable\">\n <thead>\n <tr class=\"text-center\">\n <th *ngFor=\"let dayHeader of views[1].dayHeaders\">\n <small>{{dayHeader}}</small>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let row of [0,1,2,3,4,5]\">\n <td *ngFor=\"let col of [0,1,2,3,4,5,6]\">\n <ng-template [ngTemplateOutlet]=\"monthviewInactiveDisplayEventTemplate\"\n [ngTemplateOutletContext]=\"{view: views[1], row: row, col: col}\">\n </ng-template>\n </td>\n <tr>\n </tbody>\n </table>\n </ion-slide>\n <ion-slide>\n <table *ngIf=\"2===currentViewIndex\" class=\"table table-bordered table-fixed monthview-datetable\">\n <thead>\n <tr>\n <th *ngFor=\"let dayHeader of views[2].dayHeaders\">\n <small>{{dayHeader}}</small>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let row of [0,1,2,3,4,5]\">\n <td *ngFor=\"let col of [0,1,2,3,4,5,6]\" tappable (click)=\"select(views[2].dates[row*7+col])\"\n [ngClass]=\"getHighlightClass(views[2].dates[row*7+col])\">\n <ng-template [ngTemplateOutlet]=\"monthviewDisplayEventTemplate\"\n [ngTemplateOutletContext]=\"{view: views[2], row: row, col: col}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n <table *ngIf=\"2!==currentViewIndex\" class=\"table table-bordered table-fixed monthview-datetable\">\n <thead>\n <tr class=\"text-center\">\n <th *ngFor=\"let dayHeader of views[2].dayHeaders\">\n <small>{{dayHeader}}</small>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let row of [0,1,2,3,4,5]\">\n <td *ngFor=\"let col of [0,1,2,3,4,5,6]\">\n <ng-template [ngTemplateOutlet]=\"monthviewInactiveDisplayEventTemplate\"\n [ngTemplateOutletContext]=\"{view: views[2], row: row, col: col}\">\n </ng-template>\n </td>\n <tr>\n </tbody>\n </table>\n </ion-slide>\n </ion-slides>\n <ng-template [ngTemplateOutlet]=\"monthviewEventDetailTemplate\"\n [ngTemplateOutletContext]=\"{showEventDetail:showEventDetail, selectedDate: selectedDate, noEventsLabel: noEventsLabel}\">\n </ng-template>\n </div>\n `,\n styles: [\"\\n .text-muted {\\n color: #999;\\n }\\n\\n .table-fixed {\\n table-layout: fixed;\\n }\\n\\n .table {\\n width: 100%;\\n max-width: 100%;\\n background-color: transparent;\\n }\\n\\n .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td,\\n .table > tbody > tr > td, .table > tfoot > tr > td {\\n padding: 8px;\\n line-height: 20px;\\n vertical-align: top;\\n }\\n\\n .table > thead > tr > th {\\n vertical-align: bottom;\\n border-bottom: 2px solid #ddd;\\n }\\n\\n .table > thead:first-child > tr:first-child > th, .table > thead:first-child > tr:first-child > td {\\n border-top: 0\\n }\\n\\n .table > tbody + tbody {\\n border-top: 2px solid #ddd;\\n }\\n\\n .table-bordered {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th,\\n .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered > thead > tr > th, .table-bordered > thead > tr > td {\\n border-bottom-width: 2px;\\n }\\n\\n .table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th {\\n background-color: #f9f9f9\\n }\\n\\n .monthview-primary-with-event {\\n background-color: #3a87ad;\\n color: white;\\n }\\n\\n .monthview-current {\\n background-color: #f0f0f0;\\n }\\n\\n .monthview-selected {\\n background-color: #009900;\\n color: white;\\n }\\n\\n .monthview-datetable td.monthview-disabled {\\n color: lightgrey;\\n cursor: default;\\n }\\n\\n .monthview-datetable th {\\n text-align: center;\\n }\\n\\n .monthview-datetable td {\\n cursor: pointer;\\n text-align: center;\\n }\\n\\n .monthview-secondary-with-event {\\n background-color: #d9edf7;\\n }\\n\\n ::-webkit-scrollbar,\\n *::-webkit-scrollbar {\\n display: none;\\n }\\n \"]\n }]\n }], function () {\n return [{\n type: CalendarService\n }];\n }, {\n autoSelect: [{\n type: Input\n }],\n dir: [{\n type: Input\n }],\n onRangeChanged: [{\n type: Output\n }],\n onEventSelected: [{\n type: Output\n }],\n onTimeSelected: [{\n type: Output\n }],\n onTitleChanged: [{\n type: Output\n }],\n sliderOptions: [{\n type: Input\n }],\n slider: [{\n type: ViewChild,\n args: ['monthSlider', {\n static: true\n }]\n }],\n monthviewDisplayEventTemplate: [{\n type: Input\n }],\n monthviewInactiveDisplayEventTemplate: [{\n type: Input\n }],\n monthviewEventDetailTemplate: [{\n type: Input\n }],\n formatDay: [{\n type: Input\n }],\n formatDayHeader: [{\n type: Input\n }],\n formatMonthTitle: [{\n type: Input\n }],\n eventSource: [{\n type: Input\n }],\n startingDayMonth: [{\n type: Input\n }],\n showEventDetail: [{\n type: Input\n }],\n noEventsLabel: [{\n type: Input\n }],\n markDisabled: [{\n type: Input\n }],\n locale: [{\n type: Input\n }],\n dateFormatter: [{\n type: Input\n }],\n lockSwipeToPrev: [{\n type: Input\n }],\n lockSwipes: [{\n type: Input\n }]\n });\n})();\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(WeekViewComponent, [{\n type: Component,\n args: [{\n selector: 'weekview',\n template: `\n <ion-slides #weekSlider [options]=\"sliderOptions\" [dir]=\"dir\" (ionSlideDidChange)=\"onSlideChanged()\"\n class=\"slides-container\">\n <ion-slide class=\"slide-container\">\n <table class=\"table table-bordered table-fixed weekview-header\">\n <thead>\n <tr>\n <th class=\"calendar-hour-column\"></th>\n <th class=\"weekview-header text-center\" *ngFor=\"let date of views[0].dates\"\n [ngClass]=\"getHighlightClass(date)\"\n (click)=\"daySelected(date)\">\n <ng-template [ngTemplateOutlet]=\"weekviewHeaderTemplate\"\n [ngTemplateOutletContext]=\"{viewDate:date}\">\n </ng-template>\n </th>\n </tr>\n </thead>\n </table>\n <div *ngIf=\"0===currentViewIndex\">\n <div class=\"weekview-allday-table\">\n <div class=\"weekview-allday-label\">{{allDayLabel}}</div>\n <div class=\"weekview-allday-content-wrapper scroll-content\">\n <table class=\"table table-fixed weekview-allday-content-table\">\n <tbody>\n <tr>\n <td *ngFor=\"let day of views[0].dates\" class=\"calendar-cell\">\n <ng-template [ngTemplateOutlet]=\"weekviewAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{day:day, eventTemplate:weekviewAllDayEventTemplate}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <init-position-scroll class=\"weekview-normal-event-container\" [initPosition]=\"initScrollPosition\"\n [emitEvent]=\"preserveScrollPosition\" (onScroll)=\"setScrollPosition($event)\">\n <table class=\"table table-bordered table-fixed weekview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let row of views[0].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td *ngFor=\"let tm of row\" class=\"calendar-cell\" tappable\n (click)=\"select(tm.time, tm.events)\">\n <ng-template [ngTemplateOutlet]=\"weekviewNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts, eventTemplate:weekviewNormalEventTemplate}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n </div>\n <div *ngIf=\"0!==currentViewIndex\">\n <div class=\"weekview-allday-table\">\n <div class=\"weekview-allday-label\">{{allDayLabel}}</div>\n <div class=\"weekview-allday-content-wrapper scroll-content\">\n <table class=\"table table-fixed weekview-allday-content-table\">\n <tbody>\n <tr>\n <td *ngFor=\"let day of views[0].dates\" class=\"calendar-cell\">\n <ng-template [ngTemplateOutlet]=\"weekviewInactiveAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{day:day}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <init-position-scroll class=\"weekview-normal-event-container\" [initPosition]=\"initScrollPosition\">\n <table class=\"table table-bordered table-fixed weekview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let row of views[0].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td *ngFor=\"let tm of row\" class=\"calendar-cell\">\n <ng-template [ngTemplateOutlet]=\"weekviewInactiveNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n </div>\n </ion-slide>\n <ion-slide class=\"slide-container\">\n <table class=\"table table-bordered table-fixed weekview-header\">\n <thead>\n <tr>\n <th class=\"calendar-hour-column\"></th>\n <th class=\"weekview-header text-center\" *ngFor=\"let date of views[1].dates\"\n [ngClass]=\"getHighlightClass(date)\"\n (click)=\"daySelected(date)\">\n <ng-template [ngTemplateOutlet]=\"weekviewHeaderTemplate\"\n [ngTemplateOutletContext]=\"{viewDate:date}\">\n </ng-template>\n </th>\n </tr>\n </thead>\n </table>\n <div *ngIf=\"1===currentViewIndex\">\n <div class=\"weekview-allday-table\">\n <div class=\"weekview-allday-label\">{{allDayLabel}}</div>\n <div class=\"weekview-allday-content-wrapper scroll-content\">\n <table class=\"table table-fixed weekview-allday-content-table\">\n <tbody>\n <tr>\n <td *ngFor=\"let day of views[1].dates\" class=\"calendar-cell\">\n <ng-template [ngTemplateOutlet]=\"weekviewAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{day:day, eventTemplate:weekviewAllDayEventTemplate}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <init-position-scroll class=\"weekview-normal-event-container\" [initPosition]=\"initScrollPosition\"\n [emitEvent]=\"preserveScrollPosition\" (onScroll)=\"setScrollPosition($event)\">\n <table class=\"table table-bordered table-fixed weekview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let row of views[1].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td *ngFor=\"let tm of row\" class=\"calendar-cell\" tappable\n (click)=\"select(tm.time, tm.events)\">\n <div [ngClass]=\"{'calendar-event-wrap': tm.events}\" *ngIf=\"tm.events\">\n <ng-template [ngTemplateOutlet]=\"weekviewNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts, eventTemplate:weekviewNormalEventTemplate}\">\n </ng-template>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n </div>\n <div *ngIf=\"1!==currentViewIndex\">\n <div class=\"weekview-allday-table\">\n <div class=\"weekview-allday-label\">{{allDayLabel}}</div>\n <div class=\"weekview-allday-content-wrapper scroll-content\">\n <table class=\"table table-fixed weekview-allday-content-table\">\n <tbody>\n <tr>\n <td *ngFor=\"let day of views[1].dates\" class=\"calendar-cell\">\n <ng-template [ngTemplateOutlet]=\"weekviewInactiveAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{day:day}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <init-position-scroll class=\"weekview-normal-event-container\" [initPosition]=\"initScrollPosition\">\n <table class=\"table table-bordered table-fixed weekview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let row of views[1].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td *ngFor=\"let tm of row\" class=\"calendar-cell\">\n <div [ngClass]=\"{'calendar-event-wrap': tm.events}\" *ngIf=\"tm.events\">\n <ng-template [ngTemplateOutlet]=\"weekviewInactiveNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts}\">\n </ng-template>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n </div>\n </ion-slide>\n <ion-slide class=\"slide-container\">\n <table class=\"table table-bordered table-fixed weekview-header\">\n <thead>\n <tr>\n <th class=\"calendar-hour-column\"></th>\n <th class=\"weekview-header text-center\" *ngFor=\"let date of views[2].dates\"\n [ngClass]=\"getHighlightClass(date)\"\n (click)=\"daySelected(date)\">\n <ng-template [ngTemplateOutlet]=\"weekviewHeaderTemplate\"\n [ngTemplateOutletContext]=\"{viewDate:date}\">\n </ng-template>\n </th>\n </tr>\n </thead>\n </table>\n <div *ngIf=\"2===currentViewIndex\">\n <div class=\"weekview-allday-table\">\n <div class=\"weekview-allday-label\">{{allDayLabel}}</div>\n <div class=\"weekview-allday-content-wrapper scroll-content\">\n <table class=\"table table-fixed weekview-allday-content-table\">\n <tbody>\n <tr>\n <td *ngFor=\"let day of views[2].dates\" class=\"calendar-cell\">\n <ng-template [ngTemplateOutlet]=\"weekviewAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{day:day, eventTemplate:weekviewAllDayEventTemplate}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <init-position-scroll class=\"weekview-normal-event-container\" [initPosition]=\"initScrollPosition\"\n [emitEvent]=\"preserveScrollPosition\" (onScroll)=\"setScrollPosition($event)\">\n <table class=\"table table-bordered table-fixed weekview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let row of views[2].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td *ngFor=\"let tm of row\" class=\"calendar-cell\" tappable\n (click)=\"select(tm.time, tm.events)\">\n <div [ngClass]=\"{'calendar-event-wrap': tm.events}\" *ngIf=\"tm.events\">\n <ng-template [ngTemplateOutlet]=\"weekviewNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts, eventTemplate:weekviewNormalEventTemplate}\">\n </ng-template>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n </div>\n <div *ngIf=\"2!==currentViewIndex\">\n <div class=\"weekview-allday-table\">\n <div class=\"weekview-allday-label\">{{allDayLabel}}</div>\n <div class=\"weekview-allday-content-wrapper scroll-content\">\n <table class=\"table table-fixed weekview-allday-content-table\">\n <tbody>\n <tr>\n <td *ngFor=\"let day of views[2].dates\" class=\"calendar-cell\">\n <ng-template [ngTemplateOutlet]=\"weekviewInactiveAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{day:day}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <init-position-scroll class=\"weekview-normal-event-container\" [initPosition]=\"initScrollPosition\">\n <table class=\"table table-bordered table-fixed weekview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let row of views[2].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td *ngFor=\"let tm of row\" class=\"calendar-cell\">\n <div [ngClass]=\"{'calendar-event-wrap': tm.events}\" *ngIf=\"tm.events\">\n <ng-template [ngTemplateOutlet]=\"weekviewInactiveNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts}\">\n </ng-template>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n </div>\n </ion-slide>\n </ion-slides>\n `,\n encapsulation: ViewEncapsulation.None,\n styles: [\"\\n .table-fixed {\\n table-layout: fixed;\\n }\\n\\n .table {\\n width: 100%;\\n max-width: 100%;\\n background-color: transparent;\\n }\\n\\n .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td,\\n .table > tbody > tr > td, .table > tfoot > tr > td {\\n padding: 8px;\\n line-height: 20px;\\n vertical-align: top;\\n }\\n\\n .table > thead > tr > th {\\n vertical-align: bottom;\\n border-bottom: 2px solid #ddd;\\n }\\n\\n .table > thead:first-child > tr:first-child > th, .table > thead:first-child > tr:first-child > td {\\n border-top: 0\\n }\\n\\n .table > tbody + tbody {\\n border-top: 2px solid #ddd;\\n }\\n\\n .table-bordered {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th,\\n .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered > thead > tr > th, .table-bordered > thead > tr > td {\\n border-bottom-width: 2px;\\n }\\n\\n .table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th {\\n background-color: #f9f9f9\\n }\\n\\n .calendar-hour-column {\\n width: 50px;\\n white-space: nowrap;\\n }\\n\\n .calendar-event-wrap {\\n position: relative;\\n width: 100%;\\n height: 100%;\\n }\\n\\n .calendar-event {\\n position: absolute;\\n padding: 2px;\\n cursor: pointer;\\n z-index: 10000;\\n }\\n\\n .calendar-cell {\\n padding: 0 !important;\\n height: 37px;\\n }\\n\\n .slides-container {\\n height: 100%;\\n }\\n\\n .slide-container {\\n display: block;\\n }\\n\\n .weekview-allday-label {\\n float: left;\\n height: 100%;\\n line-height: 50px;\\n text-align: center;\\n width: 50px;\\n border-left: 1px solid #ddd;\\n }\\n\\n [dir=\\\"rtl\\\"] .weekview-allday-label {\\n float: right;\\n border-right: 1px solid #ddd;\\n }\\n\\n .weekview-allday-content-wrapper {\\n margin-left: 50px;\\n overflow: hidden;\\n height: 51px;\\n }\\n\\n [dir=\\\"rtl\\\"] .weekview-allday-content-wrapper {\\n margin-left: 0;\\n margin-right: 50px;\\n }\\n\\n .weekview-allday-content-table {\\n min-height: 50px;\\n }\\n\\n .weekview-allday-content-table td {\\n border-left: 1px solid #ddd;\\n border-right: 1px solid #ddd;\\n }\\n\\n .weekview-header th {\\n overflow: hidden;\\n white-space: nowrap;\\n font-size: 14px;\\n }\\n\\n .weekview-allday-table {\\n height: 50px;\\n position: relative;\\n border-bottom: 1px solid #ddd;\\n font-size: 14px;\\n }\\n\\n .weekview-normal-event-container {\\n margin-top: 87px;\\n overflow: hidden;\\n left: 0;\\n right: 0;\\n top: 0;\\n bottom: 0;\\n position: absolute;\\n font-size: 14px;\\n }\\n\\n .scroll-content {\\n overflow-y: auto;\\n overflow-x: hidden;\\n }\\n\\n ::-webkit-scrollbar,\\n *::-webkit-scrollbar {\\n display: none;\\n }\\n\\n .table > tbody > tr > td.calendar-hour-column {\\n padding-left: 0;\\n padding-right: 0;\\n vertical-align: middle;\\n }\\n\\n @media (max-width: 750px) {\\n .weekview-allday-label, .calendar-hour-column {\\n width: 31px;\\n font-size: 12px;\\n }\\n\\n .weekview-allday-label {\\n padding-top: 4px;\\n }\\n\\n .table > tbody > tr > td.calendar-hour-column {\\n padding-left: 0;\\n padding-right: 0;\\n vertical-align: middle;\\n line-height: 12px;\\n }\\n\\n .table > thead > tr > th.weekview-header {\\n padding-left: 0;\\n padding-right: 0;\\n font-size: 12px;\\n }\\n\\n .weekview-allday-label {\\n line-height: 20px;\\n }\\n\\n .weekview-allday-content-wrapper {\\n margin-left: 31px;\\n }\\n\\n [dir=\\\"rtl\\\"] .weekview-allday-content-wrapper {\\n margin-left: 0;\\n margin-right: 31px;\\n }\\n }\\n \"]\n }]\n }], function () {\n return [{\n type: CalendarService\n }, {\n type: ɵngcc0.ElementRef\n }];\n }, {\n class: [{\n type: HostBinding,\n args: ['class.weekview']\n }],\n autoSelect: [{\n type: Input\n }],\n dir: [{\n type: Input\n }],\n scrollToHour: [{\n type: Input\n }],\n onRangeChanged: [{\n type: Output\n }],\n onEventSelected: [{\n type: Output\n }],\n onTimeSelected: [{\n type: Output\n }],\n onDayHeaderSelected: [{\n type: Output\n }],\n onTitleChanged: [{\n type: Output\n }],\n sliderOptions: [{\n type: Input\n }],\n slider: [{\n type: ViewChild,\n args: ['weekSlider', {\n static: true\n }]\n }],\n weekviewHeaderTemplate: [{\n type: Input\n }],\n weekviewAllDayEventTemplate: [{\n type: Input\n }],\n weekviewNormalEventTemplate: [{\n type: Input\n }],\n weekviewAllDayEventSectionTemplate: [{\n type: Input\n }],\n weekviewNormalEventSectionTemplate: [{\n type: Input\n }],\n weekviewInactiveAllDayEventSectionTemplate: [{\n type: Input\n }],\n weekviewInactiveNormalEventSectionTemplate: [{\n type: Input\n }],\n formatWeekTitle: [{\n type: Input\n }],\n formatWeekViewDayHeader: [{\n type: Input\n }],\n formatHourColumn: [{\n type: Input\n }],\n startingDayWeek: [{\n type: Input\n }],\n allDayLabel: [{\n type: Input\n }],\n hourParts: [{\n type: Input\n }],\n eventSource: [{\n type: Input\n }],\n markDisabled: [{\n type: Input\n }],\n locale: [{\n type: Input\n }],\n dateFormatter: [{\n type: Input\n }],\n preserveScrollPosition: [{\n type: Input\n }],\n lockSwipeToPrev: [{\n type: Input\n }],\n lockSwipes: [{\n type: Input\n }],\n startHour: [{\n type: Input\n }],\n endHour: [{\n type: Input\n }],\n hourSegments: [{\n type: Input\n }]\n });\n})();\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(DayViewComponent, [{\n type: Component,\n args: [{\n selector: 'dayview',\n template: `\n <ion-slides #daySlider [options]=\"sliderOptions\" [dir]=\"dir\" (ionSlideDidChange)=\"onSlideChanged()\" class=\"slides-container\">\n <ion-slide class=\"slide-container\">\n <div class=\"dayview-allday-table\">\n <div class=\"dayview-allday-label\">{{allDayLabel}}</div>\n <div class=\"dayview-allday-content-wrapper scroll-content\">\n <table class=\"table table-bordered dayview-allday-content-table\">\n <tbody>\n <tr>\n <td class=\"calendar-cell\" [ngClass]=\"{'calendar-event-wrap':views[0].allDayEvents.length>0}\"\n [ngStyle]=\"{height: 25*views[0].allDayEvents.length+'px'}\"\n *ngIf=\"0===currentViewIndex\">\n <ng-template [ngTemplateOutlet]=\"dayviewAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{allDayEvents:views[0].allDayEvents,eventTemplate:dayviewAllDayEventTemplate}\">\n </ng-template>\n </td>\n <td class=\"calendar-cell\" *ngIf=\"0!==currentViewIndex\">\n <ng-template [ngTemplateOutlet]=\"dayviewInactiveAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{allDayEvents:views[0].allDayEvents}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <init-position-scroll *ngIf=\"0===currentViewIndex\" class=\"dayview-normal-event-container\"\n [initPosition]=\"initScrollPosition\" [emitEvent]=\"preserveScrollPosition\"\n (onScroll)=\"setScrollPosition($event)\">\n <table class=\"table table-bordered table-fixed dayview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let tm of views[0].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td class=\"calendar-cell\" tappable (click)=\"select(tm.time, tm.events)\">\n <ng-template [ngTemplateOutlet]=\"dayviewNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts, eventTemplate:dayviewNormalEventTemplate}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n <init-position-scroll *ngIf=\"0!==currentViewIndex\" class=\"dayview-normal-event-container\"\n [initPosition]=\"initScrollPosition\">\n <table class=\"table table-bordered table-fixed dayview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let tm of views[0].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td class=\"calendar-cell\">\n <ng-template [ngTemplateOutlet]=\"dayviewInactiveNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n </ion-slide>\n <ion-slide class=\"slide-container\">\n <div class=\"dayview-allday-table\">\n <div class=\"dayview-allday-label\">{{allDayLabel}}</div>\n <div class=\"dayview-allday-content-wrapper scroll-content\">\n <table class=\"table table-bordered dayview-allday-content-table\">\n <tbody>\n <tr>\n <td class=\"calendar-cell\" [ngClass]=\"{'calendar-event-wrap':views[1].allDayEvents.length>0}\"\n [ngStyle]=\"{height: 25*views[1].allDayEvents.length+'px'}\"\n *ngIf=\"1===currentViewIndex\">\n <ng-template [ngTemplateOutlet]=\"dayviewAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{allDayEvents:views[1].allDayEvents,eventTemplate:dayviewAllDayEventTemplate}\">\n </ng-template>\n </td>\n <td class=\"calendar-cell\" *ngIf=\"1!==currentViewIndex\">\n <ng-template [ngTemplateOutlet]=\"dayviewInactiveAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{allDayEvents:views[1].allDayEvents}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <init-position-scroll *ngIf=\"1===currentViewIndex\" class=\"dayview-normal-event-container\"\n [initPosition]=\"initScrollPosition\" [emitEvent]=\"preserveScrollPosition\"\n (onScroll)=\"setScrollPosition($event)\">\n <table class=\"table table-bordered table-fixed dayview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let tm of views[1].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td class=\"calendar-cell\" tappable (click)=\"select(tm.time, tm.events)\">\n <ng-template [ngTemplateOutlet]=\"dayviewNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts, eventTemplate:dayviewNormalEventTemplate}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n <init-position-scroll *ngIf=\"1!==currentViewIndex\" class=\"dayview-normal-event-container\"\n [initPosition]=\"initScrollPosition\">\n <table class=\"table table-bordered table-fixed dayview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let tm of views[1].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td class=\"calendar-cell\">\n <ng-template [ngTemplateOutlet]=\"dayviewInactiveNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n </ion-slide>\n <ion-slide class=\"slide-container\">\n <div class=\"dayview-allday-table\">\n <div class=\"dayview-allday-label\">{{allDayLabel}}</div>\n <div class=\"dayview-allday-content-wrapper scroll-content\">\n <table class=\"table table-bordered dayview-allday-content-table\">\n <tbody>\n <tr>\n <td class=\"calendar-cell\" [ngClass]=\"{'calendar-event-wrap':views[2].allDayEvents.length>0}\"\n [ngStyle]=\"{height: 25*views[2].allDayEvents.length+'px'}\"\n *ngIf=\"2===currentViewIndex\">\n <ng-template [ngTemplateOutlet]=\"dayviewAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{allDayEvents:views[2].allDayEvents,eventTemplate:dayviewAllDayEventTemplate}\">\n </ng-template>\n </td>\n <td class=\"calendar-cell\" *ngIf=\"2!==currentViewIndex\">\n <ng-template [ngTemplateOutlet]=\"dayviewInactiveAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{allDayEvents:views[2].allDayEvents}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <init-position-scroll *ngIf=\"2===currentViewIndex\" class=\"dayview-normal-event-container\"\n [initPosition]=\"initScrollPosition\" [emitEvent]=\"preserveScrollPosition\"\n (onScroll)=\"setScrollPosition($event)\">\n <table class=\"table table-bordered table-fixed dayview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let tm of views[2].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td class=\"calendar-cell\" tappable (click)=\"select(tm.time, tm.events)\">\n <ng-template [ngTemplateOutlet]=\"dayviewNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts, eventTemplate:dayviewNormalEventTemplate}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n <init-position-scroll *ngIf=\"2!==currentViewIndex\" class=\"dayview-normal-event-container\"\n [initPosition]=\"initScrollPosition\">\n <table class=\"table table-bordered table-fixed dayview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let tm of views[2].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td class=\"calendar-cell\">\n <ng-template [ngTemplateOutlet]=\"dayviewInactiveNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n </ion-slide>\n </ion-slides>\n `,\n encapsulation: ViewEncapsulation.None,\n styles: [\"\\n .table-fixed {\\n table-layout: fixed;\\n }\\n\\n .table {\\n width: 100%;\\n max-width: 100%;\\n background-color: transparent;\\n }\\n\\n .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td,\\n .table > tbody > tr > td, .table > tfoot > tr > td {\\n padding: 8px;\\n line-height: 20px;\\n vertical-align: top;\\n }\\n\\n .table > thead > tr > th {\\n vertical-align: bottom;\\n border-bottom: 2px solid #ddd;\\n }\\n\\n .table > thead:first-child > tr:first-child > th, .table > thead:first-child > tr:first-child > td {\\n border-top: 0\\n }\\n\\n .table > tbody + tbody {\\n border-top: 2px solid #ddd;\\n }\\n\\n .table-bordered {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th,\\n .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered > thead > tr > th, .table-bordered > thead > tr > td {\\n border-bottom-width: 2px;\\n }\\n\\n .table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th {\\n background-color: #f9f9f9\\n }\\n\\n .calendar-hour-column {\\n width: 50px;\\n white-space: nowrap;\\n }\\n\\n .calendar-event-wrap {\\n position: relative;\\n width: 100%;\\n height: 100%;\\n }\\n\\n .calendar-event {\\n position: absolute;\\n padding: 2px;\\n cursor: pointer;\\n z-index: 10000;\\n }\\n\\n .slides-container {\\n height: 100%;\\n }\\n\\n .slide-container {\\n display: block;\\n }\\n\\n .calendar-cell {\\n padding: 0 !important;\\n height: 37px;\\n }\\n\\n .dayview-allday-label {\\n float: left;\\n height: 100%;\\n line-height: 50px;\\n text-align: center;\\n width: 50px;\\n border-left: 1px solid #ddd;\\n }\\n\\n [dir=\\\"rtl\\\"] .dayview-allday-label {\\n border-right: 1px solid #ddd;\\n float: right;\\n }\\n\\n .dayview-allday-content-wrapper {\\n margin-left: 50px;\\n overflow: hidden;\\n height: 51px;\\n }\\n\\n [dir=\\\"rtl\\\"] .dayview-allday-content-wrapper {\\n margin-left: 0;\\n margin-right: 50px;\\n }\\n\\n .dayview-allday-content-table {\\n min-height: 50px;\\n }\\n\\n .dayview-allday-content-table td {\\n border-left: 1px solid #ddd;\\n border-right: 1px solid #ddd;\\n }\\n\\n .dayview-allday-table {\\n height: 50px;\\n position: relative;\\n border-bottom: 1px solid #ddd;\\n font-size: 14px;\\n }\\n\\n .dayview-normal-event-container {\\n margin-top: 50px;\\n overflow: hidden;\\n left: 0;\\n right: 0;\\n top: 0;\\n bottom: 0;\\n position: absolute;\\n font-size: 14px;\\n }\\n\\n .scroll-content {\\n overflow-y: auto;\\n overflow-x: hidden;\\n }\\n\\n ::-webkit-scrollbar,\\n *::-webkit-scrollbar {\\n display: none;\\n }\\n\\n .table > tbody > tr > td.calendar-hour-column {\\n padding-left: 0;\\n padding-right: 0;\\n vertical-align: middle;\\n }\\n\\n @media (max-width: 750px) {\\n .dayview-allday-label, .calendar-hour-column {\\n width: 31px;\\n font-size: 12px;\\n }\\n\\n .dayview-allday-label {\\n padding-top: 4px;\\n }\\n\\n .table > tbody > tr > td.calendar-hour-column {\\n padding-left: 0;\\n padding-right: 0;\\n vertical-align: middle;\\n line-height: 12px;\\n }\\n\\n .dayview-allday-label {\\n line-height: 20px;\\n }\\n\\n .dayview-allday-content-wrapper {\\n margin-left: 31px;\\n }\\n\\n [dir=\\\"rtl\\\"] .dayview-allday-content-wrapper {\\n margin-left: 0;\\n margin-right: 31px;\\n }\\n }\\n \"]\n }]\n }], function () {\n return [{\n type: CalendarService\n }, {\n type: ɵngcc0.ElementRef\n }];\n }, {\n class: [{\n type: HostBinding,\n args: ['class.dayview']\n }],\n dir: [{\n type: Input\n }],\n scrollToHour: [{\n type: Input\n }],\n onRangeChanged: [{\n type: Output\n }],\n onEventSelected: [{\n type: Output\n }],\n onTimeSelected: [{\n type: Output\n }],\n onTitleChanged: [{\n type: Output\n }],\n sliderOptions: [{\n type: Input\n }],\n slider: [{\n type: ViewChild,\n args: ['daySlider', {\n static: true\n }]\n }],\n dayviewAllDayEventTemplate: [{\n type: Input\n }],\n dayviewNormalEventTemplate: [{\n type: Input\n }],\n dayviewAllDayEventSectionTemplate: [{\n type: Input\n }],\n dayviewNormalEventSectionTemplate: [{\n type: Input\n }],\n dayviewInactiveAllDayEventSectionTemplate: [{\n type: Input\n }],\n dayviewInactiveNormalEventSectionTemplate: [{\n type: Input\n }],\n formatHourColumn: [{\n type: Input\n }],\n formatDayTitle: [{\n type: Input\n }],\n allDayLabel: [{\n type: Input\n }],\n hourParts: [{\n type: Input\n }],\n eventSource: [{\n type: Input\n }],\n markDisabled: [{\n type: Input\n }],\n locale: [{\n type: Input\n }],\n dateFormatter: [{\n type: Input\n }],\n preserveScrollPosition: [{\n type: Input\n }],\n lockSwipeToPrev: [{\n type: Input\n }],\n lockSwipes: [{\n type: Input\n }],\n startHour: [{\n type: Input\n }],\n endHour: [{\n type: Input\n }],\n hourSegments: [{\n type: Input\n }]\n });\n})();\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(CalendarComponent, [{\n type: Component,\n args: [{\n selector: 'calendar',\n template: `\n <ng-template #monthviewDefaultDisplayEventTemplate let-view=\"view\" let-row=\"row\" let-col=\"col\">\n {{view.dates[row*7+col].label}}\n </ng-template>\n <ng-template #monthviewDefaultEventDetailTemplate let-showEventDetail=\"showEventDetail\" let-selectedDate=\"selectedDate\" let-noEventsLabel=\"noEventsLabel\">\n <ion-list class=\"event-detail-container\" has-bouncing=\"false\" *ngIf=\"showEventDetail\" overflow-scroll=\"false\">\n <ion-item *ngFor=\"let event of selectedDate?.events\" (click)=\"eventSelected(event)\">\n <span *ngIf=\"!event.allDay\" class=\"monthview-eventdetail-timecolumn\">{{event.startTime|date: 'HH:mm'}}\n -\n {{event.endTime|date: 'HH:mm'}}\n </span>\n <span *ngIf=\"event.allDay\" class=\"monthview-eventdetail-timecolumn\">{{allDayLabel}}</span>\n <span class=\"event-detail\"> | {{event.title}}</span>\n </ion-item>\n <ion-item *ngIf=\"selectedDate?.events.length==0\">\n <div class=\"no-events-label\">{{noEventsLabel}}</div>\n </ion-item>\n </ion-list>\n </ng-template>\n <ng-template #defaultWeekviewHeaderTemplate let-viewDate=\"viewDate\">\n {{ viewDate.dayHeader }}\n </ng-template>\n <ng-template #defaultAllDayEventTemplate let-displayEvent=\"displayEvent\">\n <div class=\"calendar-event-inner\">{{displayEvent.event.title}}</div>\n </ng-template>\n <ng-template #defaultNormalEventTemplate let-displayEvent=\"displayEvent\">\n <div class=\"calendar-event-inner\">{{displayEvent.event.title}}</div>\n </ng-template>\n <ng-template #defaultWeekViewAllDayEventSectionTemplate let-day=\"day\" let-eventTemplate=\"eventTemplate\">\n <div [ngClass]=\"{'calendar-event-wrap': day.events}\" *ngIf=\"day.events\"\n [ngStyle]=\"{height: 25*day.events.length+'px'}\">\n <div *ngFor=\"let displayEvent of day.events\" class=\"calendar-event\" tappable\n (click)=\"eventSelected(displayEvent.event)\"\n [ngStyle]=\"{top: 25*displayEvent.position+'px', width: 100*(displayEvent.endIndex-displayEvent.startIndex)+'%', height: '25px'}\">\n <ng-template [ngTemplateOutlet]=\"eventTemplate\"\n [ngTemplateOutletContext]=\"{displayEvent:displayEvent}\">\n </ng-template>\n </div>\n </div>\n </ng-template>\n <ng-template #defaultDayViewAllDayEventSectionTemplate let-allDayEvents=\"allDayEvents\" let-eventTemplate=\"eventTemplate\">\n <div *ngFor=\"let displayEvent of allDayEvents; let eventIndex=index\"\n class=\"calendar-event\" tappable\n (click)=\"eventSelected(displayEvent.event)\"\n [ngStyle]=\"{top: 25*eventIndex+'px',width: '100%',height:'25px'}\">\n <ng-template [ngTemplateOutlet]=\"eventTemplate\"\n [ngTemplateOutletContext]=\"{displayEvent:displayEvent}\">\n </ng-template>\n </div>\n </ng-template>\n <ng-template #defaultNormalEventSectionTemplate let-tm=\"tm\" let-hourParts=\"hourParts\" let-eventTemplate=\"eventTemplate\">\n <div [ngClass]=\"{'calendar-event-wrap': tm.events}\" *ngIf=\"tm.events\">\n <div *ngFor=\"let displayEvent of tm.events\" class=\"calendar-event\" tappable\n (click)=\"eventSelected(displayEvent.event)\"\n [ngStyle]=\"{top: (37*displayEvent.startOffset/hourParts)+'px',left: 100/displayEvent.overlapNumber*displayEvent.position+'%', width: 100/displayEvent.overlapNumber+'%', height: 37*(displayEvent.endIndex -displayEvent.startIndex - (displayEvent.endOffset + displayEvent.startOffset)/hourParts)+'px'}\">\n <ng-template [ngTemplateOutlet]=\"eventTemplate\"\n [ngTemplateOutletContext]=\"{displayEvent:displayEvent}\">\n </ng-template>\n </div>\n </div>\n </ng-template>\n <ng-template #defaultInactiveAllDayEventSectionTemplate>\n </ng-template>\n <ng-template #defaultInactiveNormalEventSectionTemplate>\n </ng-template>\n\n <div [ngSwitch]=\"calendarMode\" class=\"{{calendarMode}}view-container\">\n <monthview *ngSwitchCase=\"'month'\"\n [formatDay]=\"formatDay\"\n [formatDayHeader]=\"formatDayHeader\"\n [formatMonthTitle]=\"formatMonthTitle\"\n [startingDayMonth]=\"startingDayMonth\"\n [showEventDetail]=\"showEventDetail\"\n [noEventsLabel]=\"noEventsLabel\"\n [autoSelect]=\"autoSelect\"\n [eventSource]=\"eventSource\"\n [markDisabled]=\"markDisabled\"\n [monthviewDisplayEventTemplate]=\"monthviewDisplayEventTemplate||monthviewDefaultDisplayEventTemplate\"\n [monthviewInactiveDisplayEventTemplate]=\"monthviewInactiveDisplayEventTemplate||monthviewDefaultDisplayEventTemplate\"\n [monthviewEventDetailTemplate]=\"monthviewEventDetailTemplate||monthviewDefaultEventDetailTemplate\"\n [locale]=\"locale\"\n [dateFormatter]=\"dateFormatter\"\n [dir]=\"dir\"\n [lockSwipeToPrev]=\"lockSwipeToPrev\"\n [lockSwipes]=\"lockSwipes\"\n [sliderOptions]=\"sliderOptions\"\n (onRangeChanged)=\"rangeChanged($event)\"\n (onEventSelected)=\"eventSelected($event)\"\n (onTimeSelected)=\"timeSelected($event)\"\n (onTitleChanged)=\"titleChanged($event)\">\n </monthview>\n <weekview *ngSwitchCase=\"'week'\"\n [formatWeekTitle]=\"formatWeekTitle\"\n [formatWeekViewDayHeader]=\"formatWeekViewDayHeader\"\n [formatHourColumn]=\"formatHourColumn\"\n [startingDayWeek]=\"startingDayWeek\"\n [allDayLabel]=\"allDayLabel\"\n [hourParts]=\"hourParts\"\n [autoSelect]=\"autoSelect\"\n [hourSegments]=\"hourSegments\"\n [eventSource]=\"eventSource\"\n [markDisabled]=\"markDisabled\"\n [weekviewHeaderTemplate]=\"weekviewHeaderTemplate||defaultWeekviewHeaderTemplate\"\n [weekviewAllDayEventTemplate]=\"weekviewAllDayEventTemplate||defaultAllDayEventTemplate\"\n [weekviewNormalEventTemplate]=\"weekviewNormalEventTemplate||defaultNormalEventTemplate\"\n [weekviewAllDayEventSectionTemplate]=\"weekviewAllDayEventSectionTemplate||defaultWeekViewAllDayEventSectionTemplate\"\n [weekviewNormalEventSectionTemplate]=\"weekviewNormalEventSectionTemplate||defaultNormalEventSectionTemplate\"\n [weekviewInactiveAllDayEventSectionTemplate]=\"weekviewInactiveAllDayEventSectionTemplate||defaultInactiveAllDayEventSectionTemplate\"\n [weekviewInactiveNormalEventSectionTemplate]=\"weekviewInactiveNormalEventSectionTemplate||defaultInactiveNormalEventSectionTemplate\"\n [locale]=\"locale\"\n [dateFormatter]=\"dateFormatter\"\n [dir]=\"dir\"\n [scrollToHour]=\"scrollToHour\"\n [preserveScrollPosition]=\"preserveScrollPosition\"\n [lockSwipeToPrev]=\"lockSwipeToPrev\"\n [lockSwipes]=\"lockSwipes\"\n [startHour]=\"startHour\"\n [endHour]=\"endHour\"\n [sliderOptions]=\"sliderOptions\"\n (onRangeChanged)=\"rangeChanged($event)\"\n (onEventSelected)=\"eventSelected($event)\"\n (onDayHeaderSelected)=\"daySelected($event)\"\n (onTimeSelected)=\"timeSelected($event)\"\n (onTitleChanged)=\"titleChanged($event)\">\n </weekview>\n <dayview *ngSwitchCase=\"'day'\"\n [formatDayTitle]=\"formatDayTitle\"\n [formatHourColumn]=\"formatHourColumn\"\n [allDayLabel]=\"allDayLabel\"\n [hourParts]=\"hourParts\"\n [hourSegments]=\"hourSegments\"\n [eventSource]=\"eventSource\"\n [markDisabled]=\"markDisabled\"\n [dayviewAllDayEventTemplate]=\"dayviewAllDayEventTemplate||defaultAllDayEventTemplate\"\n [dayviewNormalEventTemplate]=\"dayviewNormalEventTemplate||defaultNormalEventTemplate\"\n [dayviewAllDayEventSectionTemplate]=\"dayviewAllDayEventSectionTemplate||defaultDayViewAllDayEventSectionTemplate\"\n [dayviewNormalEventSectionTemplate]=\"dayviewNormalEventSectionTemplate||defaultNormalEventSectionTemplate\"\n [dayviewInactiveAllDayEventSectionTemplate]=\"dayviewInactiveAllDayEventSectionTemplate||defaultInactiveAllDayEventSectionTemplate\"\n [dayviewInactiveNormalEventSectionTemplate]=\"dayviewInactiveNormalEventSectionTemplate||defaultInactiveNormalEventSectionTemplate\"\n [locale]=\"locale\"\n [dateFormatter]=\"dateFormatter\"\n [dir]=\"dir\"\n [scrollToHour]=\"scrollToHour\"\n [preserveScrollPosition]=\"preserveScrollPosition\"\n [lockSwipeToPrev]=\"lockSwipeToPrev\"\n [lockSwipes]=\"lockSwipes\"\n [startHour]=\"startHour\"\n [endHour]=\"endHour\"\n [sliderOptions]=\"sliderOptions\"\n (onRangeChanged)=\"rangeChanged($event)\"\n (onEventSelected)=\"eventSelected($event)\"\n (onTimeSelected)=\"timeSelected($event)\"\n (onTitleChanged)=\"titleChanged($event)\">\n </dayview>\n </div>\n `,\n providers: [CalendarService],\n styles: [\"\\n :host > div { height: 100%; }\\n\\n .event-detail-container {\\n border-top: 2px darkgrey solid;\\n }\\n\\n .no-events-label {\\n font-weight: bold;\\n color: darkgrey;\\n text-align: center;\\n }\\n\\n .event-detail {\\n cursor: pointer;\\n white-space: nowrap;\\n text-overflow: ellipsis;\\n }\\n\\n .monthview-eventdetail-timecolumn {\\n width: 110px;\\n overflow: hidden;\\n }\\n\\n .calendar-event-inner {\\n overflow: hidden;\\n background-color: #3a87ad;\\n color: white;\\n height: 100%;\\n width: 100%;\\n padding: 2px;\\n line-height: 15px;\\n text-align: initial;\\n }\\n\\n @media (max-width: 750px) {\\n .calendar-event-inner {\\n font-size: 12px;\\n }\\n }\\n \"]\n }]\n }], function () {\n return [{\n type: CalendarService\n }, {\n type: String,\n decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }]\n }];\n }, {\n eventSource: [{\n type: Input\n }],\n calendarMode: [{\n type: Input\n }],\n formatDay: [{\n type: Input\n }],\n formatDayHeader: [{\n type: Input\n }],\n formatDayTitle: [{\n type: Input\n }],\n formatWeekTitle: [{\n type: Input\n }],\n formatMonthTitle: [{\n type: Input\n }],\n formatWeekViewDayHeader: [{\n type: Input\n }],\n formatHourColumn: [{\n type: Input\n }],\n showEventDetail: [{\n type: Input\n }],\n startingDayMonth: [{\n type: Input\n }],\n startingDayWeek: [{\n type: Input\n }],\n allDayLabel: [{\n type: Input\n }],\n noEventsLabel: [{\n type: Input\n }],\n queryMode: [{\n type: Input\n }],\n step: [{\n type: Input\n }],\n timeInterval: [{\n type: Input\n }],\n autoSelect: [{\n type: Input\n }],\n dir: [{\n type: Input\n }],\n scrollToHour: [{\n type: Input\n }],\n preserveScrollPosition: [{\n type: Input\n }],\n lockSwipeToPrev: [{\n type: Input\n }],\n lockSwipes: [{\n type: Input\n }],\n locale: [{\n type: Input\n }],\n startHour: [{\n type: Input\n }],\n endHour: [{\n type: Input\n }],\n onCurrentDateChanged: [{\n type: Output\n }],\n onRangeChanged: [{\n type: Output\n }],\n onEventSelected: [{\n type: Output\n }],\n onTimeSelected: [{\n type: Output\n }],\n onDayHeaderSelected: [{\n type: Output\n }],\n onTitleChanged: [{\n type: Output\n }],\n currentDate: [{\n type: Input\n }],\n markDisabled: [{\n type: Input\n }],\n monthviewDisplayEventTemplate: [{\n type: Input\n }],\n monthviewInactiveDisplayEventTemplate: [{\n type: Input\n }],\n monthviewEventDetailTemplate: [{\n type: Input\n }],\n weekviewHeaderTemplate: [{\n type: Input\n }],\n weekviewAllDayEventTemplate: [{\n type: Input\n }],\n weekviewNormalEventTemplate: [{\n type: Input\n }],\n dayviewAllDayEventTemplate: [{\n type: Input\n }],\n dayviewNormalEventTemplate: [{\n type: Input\n }],\n weekviewAllDayEventSectionTemplate: [{\n type: Input\n }],\n weekviewNormalEventSectionTemplate: [{\n type: Input\n }],\n dayviewAllDayEventSectionTemplate: [{\n type: Input\n }],\n dayviewNormalEventSectionTemplate: [{\n type: Input\n }],\n weekviewInactiveAllDayEventSectionTemplate: [{\n type: Input\n }],\n weekviewInactiveNormalEventSectionTemplate: [{\n type: Input\n }],\n dayviewInactiveAllDayEventSectionTemplate: [{\n type: Input\n }],\n dayviewInactiveNormalEventSectionTemplate: [{\n type: Input\n }],\n dateFormatter: [{\n type: Input\n }],\n sliderOptions: [{\n type: Input\n }]\n });\n})();\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(initPositionScrollComponent, [{\n type: Component,\n args: [{\n selector: 'init-position-scroll',\n template: `\n <div class=\"scroll-content\" style=\"height:100%\">\n <ng-content></ng-content>\n </div>\n `,\n encapsulation: ViewEncapsulation.None,\n styles: [\"\\n .scroll-content {\\n overflow-y: auto;\\n overflow-x: hidden;\\n } \\n \"]\n }]\n }], function () {\n return [{\n type: ɵngcc0.ElementRef\n }];\n }, {\n onScroll: [{\n type: Output\n }],\n initPosition: [{\n type: Input\n }],\n emitEvent: [{\n type: Input\n }]\n });\n})();\n(function () {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(NgCalendarModule, [{\n type: NgModule,\n args: [{\n declarations: [MonthViewComponent, WeekViewComponent, DayViewComponent, CalendarComponent, initPositionScrollComponent],\n imports: [IonicModule, CommonModule],\n exports: [CalendarComponent]\n }]\n }], null, null);\n})();\n(function () {\n (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(NgCalendarModule, {\n declarations: function () {\n return [MonthViewComponent, WeekViewComponent, DayViewComponent, CalendarComponent, initPositionScrollComponent];\n },\n imports: function () {\n return [IonicModule, CommonModule];\n },\n exports: function () {\n return [CalendarComponent];\n }\n });\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { CalendarComponent, NgCalendarModule, MonthViewComponent as ɵa, CalendarService as ɵb, WeekViewComponent as ɵc, DayViewComponent as ɵd, initPositionScrollComponent as ɵe };","map":{"version":3,"names":["__decorate","__param","Injectable","EventEmitter","ViewChild","Input","Output","Component","ElementRef","HostBinding","ViewEncapsulation","Inject","LOCALE_ID","NgModule","DatePipe","CommonModule","IonicModule","Subject","ɵngcc0","ɵngcc1","ɵngcc2","_c0","MonthViewComponent_table_4_th_3_Template","rf","ctx","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","dayHeader_r10","$implicit","ɵɵadvance","ɵɵtextInterpolate","MonthViewComponent_table_4_tr_5_td_1_ng_template_1_Template","_c1","a0","a1","a2","view","row","col","MonthViewComponent_table_4_tr_5_td_1_Template","_r16","ɵɵgetCurrentView","ɵɵlistener","MonthViewComponent_table_4_tr_5_td_1_Template_td_click_0_listener","restoredCtx","ɵɵrestoreView","col_r13","row_r11","ɵɵnextContext","ctx_r15","ɵɵresetView","select","views","dates","ɵɵtemplate","ctx_r12","ɵɵproperty","getHighlightClass","monthviewDisplayEventTemplate","ɵɵpureFunction3","_c2","MonthViewComponent_table_4_tr_5_Template","ɵɵpureFunction0","_c3","MonthViewComponent_table_4_Template","ctx_r1","dayHeaders","MonthViewComponent_table_5_th_3_Template","dayHeader_r21","MonthViewComponent_table_5_tr_5_td_1_ng_template_1_Template","MonthViewComponent_table_5_tr_5_td_1_Template","col_r24","row_r22","ctx_r23","monthviewInactiveDisplayEventTemplate","MonthViewComponent_table_5_tr_5_Template","MonthViewComponent_table_5_Template","ɵɵelement","ctx_r2","MonthViewComponent_table_7_th_3_Template","dayHeader_r29","MonthViewComponent_table_7_tr_5_td_1_ng_template_1_Template","MonthViewComponent_table_7_tr_5_td_1_Template","_r35","MonthViewComponent_table_7_tr_5_td_1_Template_td_click_0_listener","col_r32","row_r30","ctx_r34","ctx_r31","MonthViewComponent_table_7_tr_5_Template","MonthViewComponent_table_7_Template","ctx_r3","MonthViewComponent_table_8_th_3_Template","dayHeader_r40","MonthViewComponent_table_8_tr_5_td_1_ng_template_1_Template","MonthViewComponent_table_8_tr_5_td_1_Template","col_r43","row_r41","ctx_r42","MonthViewComponent_table_8_tr_5_Template","MonthViewComponent_table_8_Template","ctx_r4","MonthViewComponent_table_10_th_3_Template","dayHeader_r48","MonthViewComponent_table_10_tr_5_td_1_ng_template_1_Template","MonthViewComponent_table_10_tr_5_td_1_Template","_r54","MonthViewComponent_table_10_tr_5_td_1_Template_td_click_0_listener","col_r51","row_r49","ctx_r53","ctx_r50","MonthViewComponent_table_10_tr_5_Template","MonthViewComponent_table_10_Template","ctx_r5","MonthViewComponent_table_11_th_3_Template","dayHeader_r59","MonthViewComponent_table_11_tr_5_td_1_ng_template_1_Template","MonthViewComponent_table_11_tr_5_td_1_Template","col_r62","row_r60","ctx_r61","MonthViewComponent_table_11_tr_5_Template","MonthViewComponent_table_11_Template","ctx_r6","MonthViewComponent_ng_template_12_Template","_c4","showEventDetail","selectedDate","noEventsLabel","_c5","WeekViewComponent_th_7_ng_template_1_Template","_c6","viewDate","WeekViewComponent_th_7_Template","_r13","WeekViewComponent_th_7_Template_th_click_0_listener","date_r10","daySelected","weekviewHeaderTemplate","ɵɵpureFunction1","WeekViewComponent_div_8_td_8_ng_template_1_Template","_c7","day","eventTemplate","WeekViewComponent_div_8_td_8_Template","day_r16","ctx_r14","weekviewAllDayEventSectionTemplate","ɵɵpureFunction2","weekviewAllDayEventTemplate","WeekViewComponent_div_8_tr_12_td_3_ng_template_1_Template","_c8","tm","hourParts","WeekViewComponent_div_8_tr_12_td_3_Template","_r24","WeekViewComponent_div_8_tr_12_td_3_Template_td_click_0_listener","tm_r21","time","events","ctx_r20","weekviewNormalEventSectionTemplate","weekviewNormalEventTemplate","WeekViewComponent_div_8_tr_12_Template","row_r18","i_r19","index","ɵɵtextInterpolate1","hourColumnLabels","WeekViewComponent_div_8_Template","_r26","WeekViewComponent_div_8_Template_init_position_scroll_onScroll_9_listener","$event","ctx_r25","setScrollPosition","allDayLabel","initScrollPosition","preserveScrollPosition","rows","WeekViewComponent_div_9_td_8_ng_template_1_Template","_c9","WeekViewComponent_div_9_td_8_Template","day_r29","ctx_r27","weekviewInactiveAllDayEventSectionTemplate","WeekViewComponent_div_9_tr_12_td_3_ng_template_1_Template","_c10","WeekViewComponent_div_9_tr_12_td_3_Template","tm_r34","ctx_r33","weekviewInactiveNormalEventSectionTemplate","WeekViewComponent_div_9_tr_12_Template","row_r31","i_r32","ctx_r28","WeekViewComponent_div_9_Template","WeekViewComponent_th_15_ng_template_1_Template","WeekViewComponent_th_15_Template","_r39","WeekViewComponent_th_15_Template_th_click_0_listener","date_r36","ctx_r38","WeekViewComponent_div_16_td_8_ng_template_1_Template","WeekViewComponent_div_16_td_8_Template","day_r42","ctx_r40","WeekViewComponent_div_16_tr_12_td_3_div_1_ng_template_1_Template","_c11","WeekViewComponent_div_16_tr_12_td_3_div_1_Template","tm_r47","ctx_r48","WeekViewComponent_div_16_tr_12_td_3_Template","_r52","WeekViewComponent_div_16_tr_12_td_3_Template_td_click_0_listener","ctx_r51","WeekViewComponent_div_16_tr_12_Template","row_r44","i_r45","ctx_r41","WeekViewComponent_div_16_Template","WeekViewComponent_div_16_Template_init_position_scroll_onScroll_9_listener","WeekViewComponent_div_17_td_8_ng_template_1_Template","WeekViewComponent_div_17_td_8_Template","day_r57","ctx_r55","WeekViewComponent_div_17_tr_12_td_3_div_1_ng_template_1_Template","WeekViewComponent_div_17_tr_12_td_3_div_1_Template","tm_r62","ctx_r63","WeekViewComponent_div_17_tr_12_td_3_Template","WeekViewComponent_div_17_tr_12_Template","row_r59","i_r60","ctx_r56","WeekViewComponent_div_17_Template","WeekViewComponent_th_23_ng_template_1_Template","WeekViewComponent_th_23_Template","_r69","WeekViewComponent_th_23_Template_th_click_0_listener","date_r66","ctx_r68","ctx_r7","WeekViewComponent_div_24_td_8_ng_template_1_Template","WeekViewComponent_div_24_td_8_Template","day_r72","ctx_r70","WeekViewComponent_div_24_tr_12_td_3_div_1_ng_template_1_Template","WeekViewComponent_div_24_tr_12_td_3_div_1_Template","tm_r77","ctx_r78","WeekViewComponent_div_24_tr_12_td_3_Template","_r82","WeekViewComponent_div_24_tr_12_td_3_Template_td_click_0_listener","ctx_r81","WeekViewComponent_div_24_tr_12_Template","row_r74","i_r75","ctx_r71","WeekViewComponent_div_24_Template","_r84","WeekViewComponent_div_24_Template_init_position_scroll_onScroll_9_listener","ctx_r83","ctx_r8","WeekViewComponent_div_25_td_8_ng_template_1_Template","WeekViewComponent_div_25_td_8_Template","day_r87","ctx_r85","WeekViewComponent_div_25_tr_12_td_3_div_1_ng_template_1_Template","WeekViewComponent_div_25_tr_12_td_3_div_1_Template","tm_r92","ctx_r93","WeekViewComponent_div_25_tr_12_td_3_Template","WeekViewComponent_div_25_tr_12_Template","row_r89","i_r90","ctx_r86","WeekViewComponent_div_25_Template","ctx_r9","_c12","DayViewComponent_td_10_ng_template_1_Template","_c13","height","_c14","allDayEvents","DayViewComponent_td_10_Template","length","dayviewAllDayEventSectionTemplate","dayviewAllDayEventTemplate","DayViewComponent_td_11_ng_template_1_Template","_c15","DayViewComponent_td_11_Template","dayviewInactiveAllDayEventSectionTemplate","DayViewComponent_init_position_scroll_12_tr_3_ng_template_4_Template","DayViewComponent_init_position_scroll_12_tr_3_Template","_r20","DayViewComponent_init_position_scroll_12_tr_3_Template_td_click_3_listener","tm_r16","ctx_r19","i_r17","dayviewNormalEventSectionTemplate","dayviewNormalEventTemplate","DayViewComponent_init_position_scroll_12_Template","_r22","DayViewComponent_init_position_scroll_12_Template_init_position_scroll_onScroll_0_listener","ctx_r21","DayViewComponent_init_position_scroll_13_tr_3_ng_template_4_Template","DayViewComponent_init_position_scroll_13_tr_3_Template","tm_r24","i_r25","dayviewInactiveNormalEventSectionTemplate","DayViewComponent_init_position_scroll_13_Template","DayViewComponent_td_22_ng_template_1_Template","DayViewComponent_td_22_Template","DayViewComponent_td_23_ng_template_1_Template","DayViewComponent_td_23_Template","DayViewComponent_init_position_scroll_24_tr_3_ng_template_4_Template","DayViewComponent_init_position_scroll_24_tr_3_Template","_r34","DayViewComponent_init_position_scroll_24_tr_3_Template_td_click_3_listener","tm_r30","i_r31","ctx_r29","DayViewComponent_init_position_scroll_24_Template","_r36","DayViewComponent_init_position_scroll_24_Template_init_position_scroll_onScroll_0_listener","ctx_r35","DayViewComponent_init_position_scroll_25_tr_3_ng_template_4_Template","DayViewComponent_init_position_scroll_25_tr_3_Template","tm_r38","i_r39","ctx_r37","DayViewComponent_init_position_scroll_25_Template","DayViewComponent_td_34_ng_template_1_Template","DayViewComponent_td_34_Template","DayViewComponent_td_35_ng_template_1_Template","DayViewComponent_td_35_Template","ctx_r10","DayViewComponent_init_position_scroll_36_tr_3_ng_template_4_Template","DayViewComponent_init_position_scroll_36_tr_3_Template","_r48","DayViewComponent_init_position_scroll_36_tr_3_Template_td_click_3_listener","tm_r44","ctx_r47","ctx_r43","DayViewComponent_init_position_scroll_36_Template","_r50","DayViewComponent_init_position_scroll_36_Template_init_position_scroll_onScroll_0_listener","ctx_r49","ctx_r11","DayViewComponent_init_position_scroll_37_tr_3_ng_template_4_Template","DayViewComponent_init_position_scroll_37_tr_3_Template","tm_r52","i_r53","DayViewComponent_init_position_scroll_37_Template","CalendarComponent_ng_template_0_Template","view_r23","row_r24","col_r25","label","CalendarComponent_ng_template_2_ion_list_0_ion_item_1_span_1_Template","ɵɵpipe","event_r32","ɵɵtextInterpolate2","ɵɵpipeBind2","startTime","endTime","CalendarComponent_ng_template_2_ion_list_0_ion_item_1_span_2_Template","CalendarComponent_ng_template_2_ion_list_0_ion_item_1_Template","_r37","CalendarComponent_ng_template_2_ion_list_0_ion_item_1_Template_ion_item_click_0_listener","ctx_r36","eventSelected","allDay","title","CalendarComponent_ng_template_2_ion_list_0_ion_item_2_Template","noEventsLabel_r28","CalendarComponent_ng_template_2_ion_list_0_Template","selectedDate_r27","CalendarComponent_ng_template_2_Template","showEventDetail_r26","CalendarComponent_ng_template_4_Template","viewDate_r40","dayHeader","CalendarComponent_ng_template_6_Template","displayEvent_r41","displayEvent","event","CalendarComponent_ng_template_8_Template","displayEvent_r42","CalendarComponent_ng_template_10_div_0_div_1_ng_template_1_Template","_c16","top","width","_c17","CalendarComponent_ng_template_10_div_0_div_1_Template","CalendarComponent_ng_template_10_div_0_div_1_Template_div_click_0_listener","displayEvent_r47","eventTemplate_r44","position","endIndex","startIndex","CalendarComponent_ng_template_10_div_0_Template","day_r43","CalendarComponent_ng_template_10_Template","CalendarComponent_ng_template_12_div_0_ng_template_1_Template","_c18","CalendarComponent_ng_template_12_div_0_Template","_r60","CalendarComponent_ng_template_12_div_0_Template_div_click_0_listener","displayEvent_r56","ctx_r59","eventIndex_r57","eventTemplate_r54","CalendarComponent_ng_template_12_Template","allDayEvents_r53","CalendarComponent_ng_template_14_div_0_div_1_ng_template_1_Template","_c19","a3","left","CalendarComponent_ng_template_14_div_0_div_1_Template","_r70","CalendarComponent_ng_template_14_div_0_div_1_Template_div_click_0_listener","displayEvent_r67","ctx_r69","hourParts_r63","eventTemplate_r64","ɵɵpureFunction4","startOffset","overlapNumber","endOffset","CalendarComponent_ng_template_14_div_0_Template","CalendarComponent_ng_template_14_Template","CalendarComponent_ng_template_16_Template","CalendarComponent_ng_template_18_Template","CalendarComponent_monthview_21_Template","_r74","CalendarComponent_monthview_21_Template_monthview_onRangeChanged_0_listener","ctx_r73","rangeChanged","CalendarComponent_monthview_21_Template_monthview_onEventSelected_0_listener","ctx_r75","CalendarComponent_monthview_21_Template_monthview_onTimeSelected_0_listener","ctx_r76","timeSelected","CalendarComponent_monthview_21_Template_monthview_onTitleChanged_0_listener","ctx_r77","titleChanged","_r0","ɵɵreference","_r2","formatDay","formatDayHeader","formatMonthTitle","startingDayMonth","autoSelect","eventSource","markDisabled","monthviewEventDetailTemplate","locale","dateFormatter","dir","lockSwipeToPrev","lockSwipes","sliderOptions","CalendarComponent_weekview_22_Template","_r79","CalendarComponent_weekview_22_Template_weekview_onRangeChanged_0_listener","CalendarComponent_weekview_22_Template_weekview_onEventSelected_0_listener","ctx_r80","CalendarComponent_weekview_22_Template_weekview_onDayHeaderSelected_0_listener","CalendarComponent_weekview_22_Template_weekview_onTimeSelected_0_listener","ctx_r82","CalendarComponent_weekview_22_Template_weekview_onTitleChanged_0_listener","_r4","_r6","_r8","_r10","_r14","_r18","formatWeekTitle","formatWeekViewDayHeader","formatHourColumn","startingDayWeek","hourSegments","scrollToHour","startHour","endHour","CalendarComponent_dayview_23_Template","_r85","CalendarComponent_dayview_23_Template_dayview_onRangeChanged_0_listener","ctx_r84","CalendarComponent_dayview_23_Template_dayview_onEventSelected_0_listener","CalendarComponent_dayview_23_Template_dayview_onTimeSelected_0_listener","ctx_r87","CalendarComponent_dayview_23_Template_dayview_onTitleChanged_0_listener","ctx_r88","ctx_r22","_r12","formatDayTitle","_c20","CalendarService","constructor","currentDateChangedFromParent","currentDateChangedFromChildren","eventSourceChanged","slideChanged","slideUpdated","currentDateChangedFromParent$","asObservable","currentDateChangedFromChildren$","eventSourceChanged$","slideChanged$","slideUpdated$","setCurrentDate","val","fromParent","_currentDate","Date","next","currentDate","component","queryMode","onDataLoaded","rangeStart","range","getTime","rangeEnd","setHours","getHours","setTime","onRangeChanged","emit","getStep","mode","years","months","days","getAdjacentCalendarDate","direction","calculateCalendarDate","step","year","getFullYear","month","getMonth","date","getDate","firstDayInNextMonth","getAdjacentViewStartTime","adjacentCalendarDate","getRange","populateAdjacentViews","currentViewStartDate","currentViewData","toUpdateViewIndex","currentViewIndex","getViewData","push","loadEvents","slide","update","ɵfac","CalendarService_Factory","t","ɵprov","ɵɵdefineInjectable","token","factory","MonthViewComponent_1","MonthViewComponent","calendarService","onEventSelected","onTimeSelected","onTitleChanged","moveOnSelected","inited","callbackOnInit","getDates","startDate","n","Array","current","i","setDate","ngOnInit","loop","formatMonthViewDay","formatDayLabel","dayLabelDatePipe","transform","formatMonthViewDayHeader","formatDayHeaderLabel","datePipe","formatMonthViewTitle","formatTitle","slider","refreshView","currentDateChangedFromParentSubscription","subscribe","eventSourceChangedSubscription","slideChangedSubscription","slideNext","slidePrev","slideUpdatedSubscription","ngOnDestroy","unsubscribe","ngOnChanges","changes","eventSourceChange","currentValue","ngAfterViewInit","getTitle","onSlideChanged","getActiveIndex","then","currentSlideIndex","isNaN","slideTo","move","adjacentDate","createDateObject","disabled","secondary","dateObject","className","hasEvent","selected","firstDayOfMonth","difference","getDay","numDisplayedFromPreviousMonth","endDate","len","utcStartTime","UTC","utcEndTime","oneDay","eps","r","eventStartTime","eventEndTime","eventUTCStartTime","eventUTCEndTime","timeDifferenceStart","timeDifferenceEnd","Math","floor","ceil","eventSet","sort","compareEvent","findSelected","selectedTime","updateCurrentView","headerDate","event1","event2","currentCalendarDate","currentMonth","currentYear","selectedMonth","selectedYear","selectedDayDifference","round","slideView","today","currentDayDifference","MonthViewComponent_Factory","ɵɵdirectiveInject","ɵcmp","ɵɵdefineComponent","type","selectors","viewQuery","MonthViewComponent_Query","ɵɵviewQuery","_t","ɵɵqueryRefresh","ɵɵloadQuery","first","inputs","outputs","features","ɵɵNgOnChangesFeature","decls","vars","consts","template","MonthViewComponent_Template","MonthViewComponent_Template_ion_slides_ionSlideDidChange_1_listener","dependencies","IonSlide","IonSlides","NgClass","NgForOf","NgIf","NgTemplateOutlet","styles","ctorParameters","static","prototype","WeekViewComponent_1","WeekViewComponent","elm","class","onDayHeaderSelected","createDateObjects","timeInterval","times","currentHour","hourStep","minStep","hour","interval","compareEventByStartOffset","eventA","eventB","calculateWidth","orderedEvents","size","totalSize","cells","calculated","eventQueue","shift","eventCountInCell","j","currentEventInCell","hourRange","formatWeekViewTitle","formatWeekViewHourColumn","formatHourColumnLabel","getHourColumnLabels","hourColumns","nativeElement","querySelector","querySelectorAll","me","setTimeout","offsetTop","isFirstChange","undefined","adjacent","firstDayOfWeek","oneHour","rangeStartRowIndex","rangeEndRowIndex","allRows","allDayEventInRange","normalEventInRange","allDayStartIndex","allDayEndIndex","displayAllDayEvent","getMinutes","startRowIndex","dayIndex","endOfDay","endRowIndex","concat","placeEvents","orderedAllDayEvents","placeAllDayEvents","map","e","calculatePosition","overlap","earlyEvent","lateEvent","isForbidden","maxColumn","scrollPosition","WeekViewComponent_Factory","WeekViewComponent_Query","hostVars","hostBindings","WeekViewComponent_HostBindings","ɵɵclassProp","WeekViewComponent_Template","WeekViewComponent_Template_ion_slides_ionSlideDidChange_0_listener","initPositionScrollComponent","encapsulation","DayViewComponent_1","DayViewComponent","formatDayViewTitle","formatDayViewHourColumn","startingDate","DayViewComponent_Factory","DayViewComponent_Query","DayViewComponent_HostBindings","DayViewComponent_Template","DayViewComponent_Template_ion_slides_ionSlideDidChange_0_listener","NgStyle","Step","CalendarComponent","appLocale","calendarMode","Hour","onCurrentDateChanged","toString","parseInt","currentDateChangedFromChildrenSubscription","CalendarComponent_Factory","ɵɵProvidersFeature","CalendarComponent_Template","ɵɵtemplateRefExtractor","ɵɵclassMapInterpolate1","IonItem","IonList","NgSwitch","NgSwitchCase","String","decorators","args","el","onScroll","listenerAttached","element","initPosition","scrollContent","scrollTop","emitEvent","handler","addEventListener","removeEventListener","initPositionScrollComponent_Factory","ngContentSelectors","initPositionScrollComponent_Template","ɵɵprojectionDef","ɵɵprojection","NgCalendarModule","NgCalendarModule_Factory","ɵmod","ɵɵdefineNgModule","ɵinj","ɵɵdefineInjector","imports","ngDevMode","ɵsetClassMetadata","selector","None","providers","declarations","exports","ngJitMode","ɵɵsetNgModuleScope","ɵa","ɵb","ɵc","ɵd","ɵe"],"sources":["C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/ionic2-calendar/__ivy_ngcc__/fesm2015/ionic2-calendar.js"],"sourcesContent":["import { __decorate, __param } from 'tslib';\nimport { Injectable, EventEmitter, ViewChild, Input, Output, Component, ElementRef, HostBinding, ViewEncapsulation, Inject, LOCALE_ID, NgModule } from '@angular/core';\nimport { DatePipe, CommonModule } from '@angular/common';\nimport { IonicModule } from '@ionic/angular';\nimport { Subject } from 'rxjs';\n\nimport * as ɵngcc0 from '@angular/core';\nimport * as ɵngcc1 from '@ionic/angular';\nimport * as ɵngcc2 from '@angular/common';\n\nconst _c0 = [\"monthSlider\"];\nfunction MonthViewComponent_table_4_th_3_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"th\")(1, \"small\");\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd()();\n} if (rf & 2) {\n const dayHeader_r10 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate(dayHeader_r10);\n} }\nfunction MonthViewComponent_table_4_tr_5_td_1_ng_template_1_Template(rf, ctx) { }\nconst _c1 = function (a0, a1, a2) { return { view: a0, row: a1, col: a2 }; };\nfunction MonthViewComponent_table_4_tr_5_td_1_Template(rf, ctx) { if (rf & 1) {\n const _r16 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"td\", 7);\n ɵngcc0.ɵɵlistener(\"click\", function MonthViewComponent_table_4_tr_5_td_1_Template_td_click_0_listener() { const restoredCtx = ɵngcc0.ɵɵrestoreView(_r16); const col_r13 = restoredCtx.$implicit; const row_r11 = ɵngcc0.ɵɵnextContext().$implicit; const ctx_r15 = ɵngcc0.ɵɵnextContext(2); return ɵngcc0.ɵɵresetView(ctx_r15.select(ctx_r15.views[0].dates[row_r11 * 7 + col_r13])); });\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_4_tr_5_td_1_ng_template_1_Template, 0, 0, \"ng-template\", 3);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const col_r13 = ctx.$implicit;\n const row_r11 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r12 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵproperty(\"ngClass\", ctx_r12.getHighlightClass(ctx_r12.views[0].dates[row_r11 * 7 + col_r13]));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r12.monthviewDisplayEventTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(3, _c1, ctx_r12.views[0], row_r11, col_r13));\n} }\nconst _c2 = function () { return [0, 1, 2, 3, 4, 5, 6]; };\nfunction MonthViewComponent_table_4_tr_5_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\");\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_4_tr_5_td_1_Template, 2, 7, \"td\", 6);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(1, _c2));\n} }\nconst _c3 = function () { return [0, 1, 2, 3, 4, 5]; };\nfunction MonthViewComponent_table_4_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"table\", 4)(1, \"thead\")(2, \"tr\");\n ɵngcc0.ɵɵtemplate(3, MonthViewComponent_table_4_th_3_Template, 3, 1, \"th\", 5);\n ɵngcc0.ɵɵelementEnd()();\n ɵngcc0.ɵɵelementStart(4, \"tbody\");\n ɵngcc0.ɵɵtemplate(5, MonthViewComponent_table_4_tr_5_Template, 2, 2, \"tr\", 5);\n ɵngcc0.ɵɵelementEnd()();\n} if (rf & 2) {\n const ctx_r1 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r1.views[0].dayHeaders);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(2, _c3));\n} }\nfunction MonthViewComponent_table_5_th_3_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"th\")(1, \"small\");\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd()();\n} if (rf & 2) {\n const dayHeader_r21 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate(dayHeader_r21);\n} }\nfunction MonthViewComponent_table_5_tr_5_td_1_ng_template_1_Template(rf, ctx) { }\nfunction MonthViewComponent_table_5_tr_5_td_1_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\");\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_5_tr_5_td_1_ng_template_1_Template, 0, 0, \"ng-template\", 3);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const col_r24 = ctx.$implicit;\n const row_r22 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r23 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r23.monthviewInactiveDisplayEventTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(2, _c1, ctx_r23.views[0], row_r22, col_r24));\n} }\nfunction MonthViewComponent_table_5_tr_5_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\");\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_5_tr_5_td_1_Template, 2, 6, \"td\", 5);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(1, _c2));\n} }\nfunction MonthViewComponent_table_5_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"table\", 4)(1, \"thead\")(2, \"tr\", 8);\n ɵngcc0.ɵɵtemplate(3, MonthViewComponent_table_5_th_3_Template, 3, 1, \"th\", 5);\n ɵngcc0.ɵɵelementEnd()();\n ɵngcc0.ɵɵelementStart(4, \"tbody\");\n ɵngcc0.ɵɵtemplate(5, MonthViewComponent_table_5_tr_5_Template, 2, 2, \"tr\", 5);\n ɵngcc0.ɵɵelement(6, \"tr\");\n ɵngcc0.ɵɵelementEnd()();\n} if (rf & 2) {\n const ctx_r2 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r2.views[0].dayHeaders);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(2, _c3));\n} }\nfunction MonthViewComponent_table_7_th_3_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"th\")(1, \"small\");\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd()();\n} if (rf & 2) {\n const dayHeader_r29 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate(dayHeader_r29);\n} }\nfunction MonthViewComponent_table_7_tr_5_td_1_ng_template_1_Template(rf, ctx) { }\nfunction MonthViewComponent_table_7_tr_5_td_1_Template(rf, ctx) { if (rf & 1) {\n const _r35 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"td\", 7);\n ɵngcc0.ɵɵlistener(\"click\", function MonthViewComponent_table_7_tr_5_td_1_Template_td_click_0_listener() { const restoredCtx = ɵngcc0.ɵɵrestoreView(_r35); const col_r32 = restoredCtx.$implicit; const row_r30 = ɵngcc0.ɵɵnextContext().$implicit; const ctx_r34 = ɵngcc0.ɵɵnextContext(2); return ɵngcc0.ɵɵresetView(ctx_r34.select(ctx_r34.views[1].dates[row_r30 * 7 + col_r32])); });\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_7_tr_5_td_1_ng_template_1_Template, 0, 0, \"ng-template\", 3);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const col_r32 = ctx.$implicit;\n const row_r30 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r31 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵproperty(\"ngClass\", ctx_r31.getHighlightClass(ctx_r31.views[1].dates[row_r30 * 7 + col_r32]));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r31.monthviewDisplayEventTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(3, _c1, ctx_r31.views[1], row_r30, col_r32));\n} }\nfunction MonthViewComponent_table_7_tr_5_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\");\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_7_tr_5_td_1_Template, 2, 7, \"td\", 6);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(1, _c2));\n} }\nfunction MonthViewComponent_table_7_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"table\", 4)(1, \"thead\")(2, \"tr\");\n ɵngcc0.ɵɵtemplate(3, MonthViewComponent_table_7_th_3_Template, 3, 1, \"th\", 5);\n ɵngcc0.ɵɵelementEnd()();\n ɵngcc0.ɵɵelementStart(4, \"tbody\");\n ɵngcc0.ɵɵtemplate(5, MonthViewComponent_table_7_tr_5_Template, 2, 2, \"tr\", 5);\n ɵngcc0.ɵɵelementEnd()();\n} if (rf & 2) {\n const ctx_r3 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r3.views[1].dayHeaders);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(2, _c3));\n} }\nfunction MonthViewComponent_table_8_th_3_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"th\")(1, \"small\");\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd()();\n} if (rf & 2) {\n const dayHeader_r40 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate(dayHeader_r40);\n} }\nfunction MonthViewComponent_table_8_tr_5_td_1_ng_template_1_Template(rf, ctx) { }\nfunction MonthViewComponent_table_8_tr_5_td_1_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\");\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_8_tr_5_td_1_ng_template_1_Template, 0, 0, \"ng-template\", 3);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const col_r43 = ctx.$implicit;\n const row_r41 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r42 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r42.monthviewInactiveDisplayEventTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(2, _c1, ctx_r42.views[1], row_r41, col_r43));\n} }\nfunction MonthViewComponent_table_8_tr_5_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\");\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_8_tr_5_td_1_Template, 2, 6, \"td\", 5);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(1, _c2));\n} }\nfunction MonthViewComponent_table_8_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"table\", 4)(1, \"thead\")(2, \"tr\", 8);\n ɵngcc0.ɵɵtemplate(3, MonthViewComponent_table_8_th_3_Template, 3, 1, \"th\", 5);\n ɵngcc0.ɵɵelementEnd()();\n ɵngcc0.ɵɵelementStart(4, \"tbody\");\n ɵngcc0.ɵɵtemplate(5, MonthViewComponent_table_8_tr_5_Template, 2, 2, \"tr\", 5);\n ɵngcc0.ɵɵelement(6, \"tr\");\n ɵngcc0.ɵɵelementEnd()();\n} if (rf & 2) {\n const ctx_r4 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r4.views[1].dayHeaders);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(2, _c3));\n} }\nfunction MonthViewComponent_table_10_th_3_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"th\")(1, \"small\");\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd()();\n} if (rf & 2) {\n const dayHeader_r48 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate(dayHeader_r48);\n} }\nfunction MonthViewComponent_table_10_tr_5_td_1_ng_template_1_Template(rf, ctx) { }\nfunction MonthViewComponent_table_10_tr_5_td_1_Template(rf, ctx) { if (rf & 1) {\n const _r54 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"td\", 7);\n ɵngcc0.ɵɵlistener(\"click\", function MonthViewComponent_table_10_tr_5_td_1_Template_td_click_0_listener() { const restoredCtx = ɵngcc0.ɵɵrestoreView(_r54); const col_r51 = restoredCtx.$implicit; const row_r49 = ɵngcc0.ɵɵnextContext().$implicit; const ctx_r53 = ɵngcc0.ɵɵnextContext(2); return ɵngcc0.ɵɵresetView(ctx_r53.select(ctx_r53.views[2].dates[row_r49 * 7 + col_r51])); });\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_10_tr_5_td_1_ng_template_1_Template, 0, 0, \"ng-template\", 3);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const col_r51 = ctx.$implicit;\n const row_r49 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r50 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵproperty(\"ngClass\", ctx_r50.getHighlightClass(ctx_r50.views[2].dates[row_r49 * 7 + col_r51]));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r50.monthviewDisplayEventTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(3, _c1, ctx_r50.views[2], row_r49, col_r51));\n} }\nfunction MonthViewComponent_table_10_tr_5_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\");\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_10_tr_5_td_1_Template, 2, 7, \"td\", 6);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(1, _c2));\n} }\nfunction MonthViewComponent_table_10_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"table\", 4)(1, \"thead\")(2, \"tr\");\n ɵngcc0.ɵɵtemplate(3, MonthViewComponent_table_10_th_3_Template, 3, 1, \"th\", 5);\n ɵngcc0.ɵɵelementEnd()();\n ɵngcc0.ɵɵelementStart(4, \"tbody\");\n ɵngcc0.ɵɵtemplate(5, MonthViewComponent_table_10_tr_5_Template, 2, 2, \"tr\", 5);\n ɵngcc0.ɵɵelementEnd()();\n} if (rf & 2) {\n const ctx_r5 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r5.views[2].dayHeaders);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(2, _c3));\n} }\nfunction MonthViewComponent_table_11_th_3_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"th\")(1, \"small\");\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd()();\n} if (rf & 2) {\n const dayHeader_r59 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate(dayHeader_r59);\n} }\nfunction MonthViewComponent_table_11_tr_5_td_1_ng_template_1_Template(rf, ctx) { }\nfunction MonthViewComponent_table_11_tr_5_td_1_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\");\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_11_tr_5_td_1_ng_template_1_Template, 0, 0, \"ng-template\", 3);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const col_r62 = ctx.$implicit;\n const row_r60 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r61 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r61.monthviewInactiveDisplayEventTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(2, _c1, ctx_r61.views[2], row_r60, col_r62));\n} }\nfunction MonthViewComponent_table_11_tr_5_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\");\n ɵngcc0.ɵɵtemplate(1, MonthViewComponent_table_11_tr_5_td_1_Template, 2, 6, \"td\", 5);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(1, _c2));\n} }\nfunction MonthViewComponent_table_11_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"table\", 4)(1, \"thead\")(2, \"tr\", 8);\n ɵngcc0.ɵɵtemplate(3, MonthViewComponent_table_11_th_3_Template, 3, 1, \"th\", 5);\n ɵngcc0.ɵɵelementEnd()();\n ɵngcc0.ɵɵelementStart(4, \"tbody\");\n ɵngcc0.ɵɵtemplate(5, MonthViewComponent_table_11_tr_5_Template, 2, 2, \"tr\", 5);\n ɵngcc0.ɵɵelement(6, \"tr\");\n ɵngcc0.ɵɵelementEnd()();\n} if (rf & 2) {\n const ctx_r6 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r6.views[2].dayHeaders);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ɵngcc0.ɵɵpureFunction0(2, _c3));\n} }\nfunction MonthViewComponent_ng_template_12_Template(rf, ctx) { }\nconst _c4 = function (a0, a1, a2) { return { showEventDetail: a0, selectedDate: a1, noEventsLabel: a2 }; };\nconst _c5 = [\"weekSlider\"];\nfunction WeekViewComponent_th_7_ng_template_1_Template(rf, ctx) { }\nconst _c6 = function (a0) { return { viewDate: a0 }; };\nfunction WeekViewComponent_th_7_Template(rf, ctx) { if (rf & 1) {\n const _r13 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"th\", 7);\n ɵngcc0.ɵɵlistener(\"click\", function WeekViewComponent_th_7_Template_th_click_0_listener() { const restoredCtx = ɵngcc0.ɵɵrestoreView(_r13); const date_r10 = restoredCtx.$implicit; const ctx_r12 = ɵngcc0.ɵɵnextContext(); return ɵngcc0.ɵɵresetView(ctx_r12.daySelected(date_r10)); });\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_th_7_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const date_r10 = ctx.$implicit;\n const ctx_r1 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"ngClass\", ctx_r1.getHighlightClass(date_r10));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.weekviewHeaderTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(3, _c6, date_r10));\n} }\nfunction WeekViewComponent_div_8_td_8_ng_template_1_Template(rf, ctx) { }\nconst _c7 = function (a0, a1) { return { day: a0, eventTemplate: a1 }; };\nfunction WeekViewComponent_div_8_td_8_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 17);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_8_td_8_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const day_r16 = ctx.$implicit;\n const ctx_r14 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r14.weekviewAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(2, _c7, day_r16, ctx_r14.weekviewAllDayEventTemplate));\n} }\nfunction WeekViewComponent_div_8_tr_12_td_3_ng_template_1_Template(rf, ctx) { }\nconst _c8 = function (a0, a1, a2) { return { tm: a0, hourParts: a1, eventTemplate: a2 }; };\nfunction WeekViewComponent_div_8_tr_12_td_3_Template(rf, ctx) { if (rf & 1) {\n const _r24 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"td\", 20);\n ɵngcc0.ɵɵlistener(\"click\", function WeekViewComponent_div_8_tr_12_td_3_Template_td_click_0_listener() { const restoredCtx = ɵngcc0.ɵɵrestoreView(_r24); const tm_r21 = restoredCtx.$implicit; const ctx_r23 = ɵngcc0.ɵɵnextContext(3); return ɵngcc0.ɵɵresetView(ctx_r23.select(tm_r21.time, tm_r21.events)); });\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_8_tr_12_td_3_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const tm_r21 = ctx.$implicit;\n const ctx_r20 = ɵngcc0.ɵɵnextContext(3);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r20.weekviewNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(2, _c8, tm_r21, ctx_r20.hourParts, ctx_r20.weekviewNormalEventTemplate));\n} }\nfunction WeekViewComponent_div_8_tr_12_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 18);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵtemplate(3, WeekViewComponent_div_8_tr_12_td_3_Template, 2, 6, \"td\", 19);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const row_r18 = ctx.$implicit;\n const i_r19 = ctx.index;\n const ctx_r15 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r15.hourColumnLabels[i_r19], \" \");\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", row_r18);\n} }\nfunction WeekViewComponent_div_8_Template(rf, ctx) { if (rf & 1) {\n const _r26 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"div\")(1, \"div\", 9)(2, \"div\", 10);\n ɵngcc0.ɵɵtext(3);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(4, \"div\", 11)(5, \"table\", 12)(6, \"tbody\")(7, \"tr\");\n ɵngcc0.ɵɵtemplate(8, WeekViewComponent_div_8_td_8_Template, 2, 5, \"td\", 13);\n ɵngcc0.ɵɵelementEnd()()()()();\n ɵngcc0.ɵɵelementStart(9, \"init-position-scroll\", 14);\n ɵngcc0.ɵɵlistener(\"onScroll\", function WeekViewComponent_div_8_Template_init_position_scroll_onScroll_9_listener($event) { ɵngcc0.ɵɵrestoreView(_r26); const ctx_r25 = ɵngcc0.ɵɵnextContext(); return ɵngcc0.ɵɵresetView(ctx_r25.setScrollPosition($event)); });\n ɵngcc0.ɵɵelementStart(10, \"table\", 15)(11, \"tbody\");\n ɵngcc0.ɵɵtemplate(12, WeekViewComponent_div_8_tr_12_Template, 4, 2, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()()();\n} if (rf & 2) {\n const ctx_r2 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵtextInterpolate(ctx_r2.allDayLabel);\n ɵngcc0.ɵɵadvance(5);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r2.views[0].dates);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r2.initScrollPosition)(\"emitEvent\", ctx_r2.preserveScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r2.views[0].rows);\n} }\nfunction WeekViewComponent_div_9_td_8_ng_template_1_Template(rf, ctx) { }\nconst _c9 = function (a0) { return { day: a0 }; };\nfunction WeekViewComponent_div_9_td_8_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 17);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_9_td_8_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const day_r29 = ctx.$implicit;\n const ctx_r27 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r27.weekviewInactiveAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(2, _c9, day_r29));\n} }\nfunction WeekViewComponent_div_9_tr_12_td_3_ng_template_1_Template(rf, ctx) { }\nconst _c10 = function (a0, a1) { return { tm: a0, hourParts: a1 }; };\nfunction WeekViewComponent_div_9_tr_12_td_3_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 17);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_9_tr_12_td_3_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const tm_r34 = ctx.$implicit;\n const ctx_r33 = ɵngcc0.ɵɵnextContext(3);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r33.weekviewInactiveNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(2, _c10, tm_r34, ctx_r33.hourParts));\n} }\nfunction WeekViewComponent_div_9_tr_12_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 18);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵtemplate(3, WeekViewComponent_div_9_tr_12_td_3_Template, 2, 5, \"td\", 13);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const row_r31 = ctx.$implicit;\n const i_r32 = ctx.index;\n const ctx_r28 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r28.hourColumnLabels[i_r32], \" \");\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", row_r31);\n} }\nfunction WeekViewComponent_div_9_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\")(1, \"div\", 9)(2, \"div\", 10);\n ɵngcc0.ɵɵtext(3);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(4, \"div\", 11)(5, \"table\", 12)(6, \"tbody\")(7, \"tr\");\n ɵngcc0.ɵɵtemplate(8, WeekViewComponent_div_9_td_8_Template, 2, 4, \"td\", 13);\n ɵngcc0.ɵɵelementEnd()()()()();\n ɵngcc0.ɵɵelementStart(9, \"init-position-scroll\", 21)(10, \"table\", 15)(11, \"tbody\");\n ɵngcc0.ɵɵtemplate(12, WeekViewComponent_div_9_tr_12_Template, 4, 2, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()()();\n} if (rf & 2) {\n const ctx_r3 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵtextInterpolate(ctx_r3.allDayLabel);\n ɵngcc0.ɵɵadvance(5);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r3.views[0].dates);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r3.initScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r3.views[0].rows);\n} }\nfunction WeekViewComponent_th_15_ng_template_1_Template(rf, ctx) { }\nfunction WeekViewComponent_th_15_Template(rf, ctx) { if (rf & 1) {\n const _r39 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"th\", 7);\n ɵngcc0.ɵɵlistener(\"click\", function WeekViewComponent_th_15_Template_th_click_0_listener() { const restoredCtx = ɵngcc0.ɵɵrestoreView(_r39); const date_r36 = restoredCtx.$implicit; const ctx_r38 = ɵngcc0.ɵɵnextContext(); return ɵngcc0.ɵɵresetView(ctx_r38.daySelected(date_r36)); });\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_th_15_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const date_r36 = ctx.$implicit;\n const ctx_r4 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"ngClass\", ctx_r4.getHighlightClass(date_r36));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r4.weekviewHeaderTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(3, _c6, date_r36));\n} }\nfunction WeekViewComponent_div_16_td_8_ng_template_1_Template(rf, ctx) { }\nfunction WeekViewComponent_div_16_td_8_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 17);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_16_td_8_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const day_r42 = ctx.$implicit;\n const ctx_r40 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r40.weekviewAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(2, _c7, day_r42, ctx_r40.weekviewAllDayEventTemplate));\n} }\nfunction WeekViewComponent_div_16_tr_12_td_3_div_1_ng_template_1_Template(rf, ctx) { }\nconst _c11 = function (a0) { return { \"calendar-event-wrap\": a0 }; };\nfunction WeekViewComponent_div_16_tr_12_td_3_div_1_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\", 23);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_16_tr_12_td_3_div_1_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const tm_r47 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r48 = ɵngcc0.ɵɵnextContext(3);\n ɵngcc0.ɵɵproperty(\"ngClass\", ɵngcc0.ɵɵpureFunction1(3, _c11, tm_r47.events));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r48.weekviewNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(5, _c8, tm_r47, ctx_r48.hourParts, ctx_r48.weekviewNormalEventTemplate));\n} }\nfunction WeekViewComponent_div_16_tr_12_td_3_Template(rf, ctx) { if (rf & 1) {\n const _r52 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"td\", 20);\n ɵngcc0.ɵɵlistener(\"click\", function WeekViewComponent_div_16_tr_12_td_3_Template_td_click_0_listener() { const restoredCtx = ɵngcc0.ɵɵrestoreView(_r52); const tm_r47 = restoredCtx.$implicit; const ctx_r51 = ɵngcc0.ɵɵnextContext(3); return ɵngcc0.ɵɵresetView(ctx_r51.select(tm_r47.time, tm_r47.events)); });\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_16_tr_12_td_3_div_1_Template, 2, 9, \"div\", 22);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const tm_r47 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", tm_r47.events);\n} }\nfunction WeekViewComponent_div_16_tr_12_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 18);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵtemplate(3, WeekViewComponent_div_16_tr_12_td_3_Template, 2, 1, \"td\", 19);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const row_r44 = ctx.$implicit;\n const i_r45 = ctx.index;\n const ctx_r41 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r41.hourColumnLabels[i_r45], \" \");\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", row_r44);\n} }\nfunction WeekViewComponent_div_16_Template(rf, ctx) { if (rf & 1) {\n const _r54 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"div\")(1, \"div\", 9)(2, \"div\", 10);\n ɵngcc0.ɵɵtext(3);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(4, \"div\", 11)(5, \"table\", 12)(6, \"tbody\")(7, \"tr\");\n ɵngcc0.ɵɵtemplate(8, WeekViewComponent_div_16_td_8_Template, 2, 5, \"td\", 13);\n ɵngcc0.ɵɵelementEnd()()()()();\n ɵngcc0.ɵɵelementStart(9, \"init-position-scroll\", 14);\n ɵngcc0.ɵɵlistener(\"onScroll\", function WeekViewComponent_div_16_Template_init_position_scroll_onScroll_9_listener($event) { ɵngcc0.ɵɵrestoreView(_r54); const ctx_r53 = ɵngcc0.ɵɵnextContext(); return ɵngcc0.ɵɵresetView(ctx_r53.setScrollPosition($event)); });\n ɵngcc0.ɵɵelementStart(10, \"table\", 15)(11, \"tbody\");\n ɵngcc0.ɵɵtemplate(12, WeekViewComponent_div_16_tr_12_Template, 4, 2, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()()();\n} if (rf & 2) {\n const ctx_r5 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵtextInterpolate(ctx_r5.allDayLabel);\n ɵngcc0.ɵɵadvance(5);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r5.views[1].dates);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r5.initScrollPosition)(\"emitEvent\", ctx_r5.preserveScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r5.views[1].rows);\n} }\nfunction WeekViewComponent_div_17_td_8_ng_template_1_Template(rf, ctx) { }\nfunction WeekViewComponent_div_17_td_8_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 17);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_17_td_8_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const day_r57 = ctx.$implicit;\n const ctx_r55 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r55.weekviewInactiveAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(2, _c9, day_r57));\n} }\nfunction WeekViewComponent_div_17_tr_12_td_3_div_1_ng_template_1_Template(rf, ctx) { }\nfunction WeekViewComponent_div_17_tr_12_td_3_div_1_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\", 23);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_17_tr_12_td_3_div_1_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const tm_r62 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r63 = ɵngcc0.ɵɵnextContext(3);\n ɵngcc0.ɵɵproperty(\"ngClass\", ɵngcc0.ɵɵpureFunction1(3, _c11, tm_r62.events));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r63.weekviewInactiveNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(5, _c10, tm_r62, ctx_r63.hourParts));\n} }\nfunction WeekViewComponent_div_17_tr_12_td_3_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 17);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_17_tr_12_td_3_div_1_Template, 2, 8, \"div\", 22);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const tm_r62 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", tm_r62.events);\n} }\nfunction WeekViewComponent_div_17_tr_12_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 18);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵtemplate(3, WeekViewComponent_div_17_tr_12_td_3_Template, 2, 1, \"td\", 13);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const row_r59 = ctx.$implicit;\n const i_r60 = ctx.index;\n const ctx_r56 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r56.hourColumnLabels[i_r60], \" \");\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", row_r59);\n} }\nfunction WeekViewComponent_div_17_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\")(1, \"div\", 9)(2, \"div\", 10);\n ɵngcc0.ɵɵtext(3);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(4, \"div\", 11)(5, \"table\", 12)(6, \"tbody\")(7, \"tr\");\n ɵngcc0.ɵɵtemplate(8, WeekViewComponent_div_17_td_8_Template, 2, 4, \"td\", 13);\n ɵngcc0.ɵɵelementEnd()()()()();\n ɵngcc0.ɵɵelementStart(9, \"init-position-scroll\", 21)(10, \"table\", 15)(11, \"tbody\");\n ɵngcc0.ɵɵtemplate(12, WeekViewComponent_div_17_tr_12_Template, 4, 2, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()()();\n} if (rf & 2) {\n const ctx_r6 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵtextInterpolate(ctx_r6.allDayLabel);\n ɵngcc0.ɵɵadvance(5);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r6.views[1].dates);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r6.initScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r6.views[1].rows);\n} }\nfunction WeekViewComponent_th_23_ng_template_1_Template(rf, ctx) { }\nfunction WeekViewComponent_th_23_Template(rf, ctx) { if (rf & 1) {\n const _r69 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"th\", 7);\n ɵngcc0.ɵɵlistener(\"click\", function WeekViewComponent_th_23_Template_th_click_0_listener() { const restoredCtx = ɵngcc0.ɵɵrestoreView(_r69); const date_r66 = restoredCtx.$implicit; const ctx_r68 = ɵngcc0.ɵɵnextContext(); return ɵngcc0.ɵɵresetView(ctx_r68.daySelected(date_r66)); });\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_th_23_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const date_r66 = ctx.$implicit;\n const ctx_r7 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"ngClass\", ctx_r7.getHighlightClass(date_r66));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r7.weekviewHeaderTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(3, _c6, date_r66));\n} }\nfunction WeekViewComponent_div_24_td_8_ng_template_1_Template(rf, ctx) { }\nfunction WeekViewComponent_div_24_td_8_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 17);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_24_td_8_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const day_r72 = ctx.$implicit;\n const ctx_r70 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r70.weekviewAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(2, _c7, day_r72, ctx_r70.weekviewAllDayEventTemplate));\n} }\nfunction WeekViewComponent_div_24_tr_12_td_3_div_1_ng_template_1_Template(rf, ctx) { }\nfunction WeekViewComponent_div_24_tr_12_td_3_div_1_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\", 23);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_24_tr_12_td_3_div_1_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const tm_r77 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r78 = ɵngcc0.ɵɵnextContext(3);\n ɵngcc0.ɵɵproperty(\"ngClass\", ɵngcc0.ɵɵpureFunction1(3, _c11, tm_r77.events));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r78.weekviewNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(5, _c8, tm_r77, ctx_r78.hourParts, ctx_r78.weekviewNormalEventTemplate));\n} }\nfunction WeekViewComponent_div_24_tr_12_td_3_Template(rf, ctx) { if (rf & 1) {\n const _r82 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"td\", 20);\n ɵngcc0.ɵɵlistener(\"click\", function WeekViewComponent_div_24_tr_12_td_3_Template_td_click_0_listener() { const restoredCtx = ɵngcc0.ɵɵrestoreView(_r82); const tm_r77 = restoredCtx.$implicit; const ctx_r81 = ɵngcc0.ɵɵnextContext(3); return ɵngcc0.ɵɵresetView(ctx_r81.select(tm_r77.time, tm_r77.events)); });\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_24_tr_12_td_3_div_1_Template, 2, 9, \"div\", 22);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const tm_r77 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", tm_r77.events);\n} }\nfunction WeekViewComponent_div_24_tr_12_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 18);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵtemplate(3, WeekViewComponent_div_24_tr_12_td_3_Template, 2, 1, \"td\", 19);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const row_r74 = ctx.$implicit;\n const i_r75 = ctx.index;\n const ctx_r71 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r71.hourColumnLabels[i_r75], \" \");\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", row_r74);\n} }\nfunction WeekViewComponent_div_24_Template(rf, ctx) { if (rf & 1) {\n const _r84 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"div\")(1, \"div\", 9)(2, \"div\", 10);\n ɵngcc0.ɵɵtext(3);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(4, \"div\", 11)(5, \"table\", 12)(6, \"tbody\")(7, \"tr\");\n ɵngcc0.ɵɵtemplate(8, WeekViewComponent_div_24_td_8_Template, 2, 5, \"td\", 13);\n ɵngcc0.ɵɵelementEnd()()()()();\n ɵngcc0.ɵɵelementStart(9, \"init-position-scroll\", 14);\n ɵngcc0.ɵɵlistener(\"onScroll\", function WeekViewComponent_div_24_Template_init_position_scroll_onScroll_9_listener($event) { ɵngcc0.ɵɵrestoreView(_r84); const ctx_r83 = ɵngcc0.ɵɵnextContext(); return ɵngcc0.ɵɵresetView(ctx_r83.setScrollPosition($event)); });\n ɵngcc0.ɵɵelementStart(10, \"table\", 15)(11, \"tbody\");\n ɵngcc0.ɵɵtemplate(12, WeekViewComponent_div_24_tr_12_Template, 4, 2, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()()();\n} if (rf & 2) {\n const ctx_r8 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵtextInterpolate(ctx_r8.allDayLabel);\n ɵngcc0.ɵɵadvance(5);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r8.views[2].dates);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r8.initScrollPosition)(\"emitEvent\", ctx_r8.preserveScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r8.views[2].rows);\n} }\nfunction WeekViewComponent_div_25_td_8_ng_template_1_Template(rf, ctx) { }\nfunction WeekViewComponent_div_25_td_8_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 17);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_25_td_8_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const day_r87 = ctx.$implicit;\n const ctx_r85 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r85.weekviewInactiveAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(2, _c9, day_r87));\n} }\nfunction WeekViewComponent_div_25_tr_12_td_3_div_1_ng_template_1_Template(rf, ctx) { }\nfunction WeekViewComponent_div_25_tr_12_td_3_div_1_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\", 23);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_25_tr_12_td_3_div_1_ng_template_1_Template, 0, 0, \"ng-template\", 8);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const tm_r92 = ɵngcc0.ɵɵnextContext().$implicit;\n const ctx_r93 = ɵngcc0.ɵɵnextContext(3);\n ɵngcc0.ɵɵproperty(\"ngClass\", ɵngcc0.ɵɵpureFunction1(3, _c11, tm_r92.events));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r93.weekviewInactiveNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(5, _c10, tm_r92, ctx_r93.hourParts));\n} }\nfunction WeekViewComponent_div_25_tr_12_td_3_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 17);\n ɵngcc0.ɵɵtemplate(1, WeekViewComponent_div_25_tr_12_td_3_div_1_Template, 2, 8, \"div\", 22);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const tm_r92 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", tm_r92.events);\n} }\nfunction WeekViewComponent_div_25_tr_12_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 18);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵtemplate(3, WeekViewComponent_div_25_tr_12_td_3_Template, 2, 1, \"td\", 13);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const row_r89 = ctx.$implicit;\n const i_r90 = ctx.index;\n const ctx_r86 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r86.hourColumnLabels[i_r90], \" \");\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", row_r89);\n} }\nfunction WeekViewComponent_div_25_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\")(1, \"div\", 9)(2, \"div\", 10);\n ɵngcc0.ɵɵtext(3);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(4, \"div\", 11)(5, \"table\", 12)(6, \"tbody\")(7, \"tr\");\n ɵngcc0.ɵɵtemplate(8, WeekViewComponent_div_25_td_8_Template, 2, 4, \"td\", 13);\n ɵngcc0.ɵɵelementEnd()()()()();\n ɵngcc0.ɵɵelementStart(9, \"init-position-scroll\", 21)(10, \"table\", 15)(11, \"tbody\");\n ɵngcc0.ɵɵtemplate(12, WeekViewComponent_div_25_tr_12_Template, 4, 2, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()()();\n} if (rf & 2) {\n const ctx_r9 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵtextInterpolate(ctx_r9.allDayLabel);\n ɵngcc0.ɵɵadvance(5);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r9.views[2].dates);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r9.initScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r9.views[2].rows);\n} }\nconst _c12 = [\"daySlider\"];\nfunction DayViewComponent_td_10_ng_template_1_Template(rf, ctx) { }\nconst _c13 = function (a0) { return { height: a0 }; };\nconst _c14 = function (a0, a1) { return { allDayEvents: a0, eventTemplate: a1 }; };\nfunction DayViewComponent_td_10_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 11);\n ɵngcc0.ɵɵtemplate(1, DayViewComponent_td_10_ng_template_1_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const ctx_r1 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"ngClass\", ɵngcc0.ɵɵpureFunction1(4, _c11, ctx_r1.views[0].allDayEvents.length > 0))(\"ngStyle\", ɵngcc0.ɵɵpureFunction1(6, _c13, 25 * ctx_r1.views[0].allDayEvents.length + \"px\"));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.dayviewAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(8, _c14, ctx_r1.views[0].allDayEvents, ctx_r1.dayviewAllDayEventTemplate));\n} }\nfunction DayViewComponent_td_11_ng_template_1_Template(rf, ctx) { }\nconst _c15 = function (a0) { return { allDayEvents: a0 }; };\nfunction DayViewComponent_td_11_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 13);\n ɵngcc0.ɵɵtemplate(1, DayViewComponent_td_11_ng_template_1_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const ctx_r2 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r2.dayviewInactiveAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(2, _c15, ctx_r2.views[0].allDayEvents));\n} }\nfunction DayViewComponent_init_position_scroll_12_tr_3_ng_template_4_Template(rf, ctx) { }\nfunction DayViewComponent_init_position_scroll_12_tr_3_Template(rf, ctx) { if (rf & 1) {\n const _r20 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 17);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(3, \"td\", 18);\n ɵngcc0.ɵɵlistener(\"click\", function DayViewComponent_init_position_scroll_12_tr_3_Template_td_click_3_listener() { const restoredCtx = ɵngcc0.ɵɵrestoreView(_r20); const tm_r16 = restoredCtx.$implicit; const ctx_r19 = ɵngcc0.ɵɵnextContext(2); return ɵngcc0.ɵɵresetView(ctx_r19.select(tm_r16.time, tm_r16.events)); });\n ɵngcc0.ɵɵtemplate(4, DayViewComponent_init_position_scroll_12_tr_3_ng_template_4_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd()();\n} if (rf & 2) {\n const tm_r16 = ctx.$implicit;\n const i_r17 = ctx.index;\n const ctx_r15 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r15.hourColumnLabels[i_r17], \" \");\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r15.dayviewNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(3, _c8, tm_r16, ctx_r15.hourParts, ctx_r15.dayviewNormalEventTemplate));\n} }\nfunction DayViewComponent_init_position_scroll_12_Template(rf, ctx) { if (rf & 1) {\n const _r22 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"init-position-scroll\", 14);\n ɵngcc0.ɵɵlistener(\"onScroll\", function DayViewComponent_init_position_scroll_12_Template_init_position_scroll_onScroll_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r22); const ctx_r21 = ɵngcc0.ɵɵnextContext(); return ɵngcc0.ɵɵresetView(ctx_r21.setScrollPosition($event)); });\n ɵngcc0.ɵɵelementStart(1, \"table\", 15)(2, \"tbody\");\n ɵngcc0.ɵɵtemplate(3, DayViewComponent_init_position_scroll_12_tr_3_Template, 5, 7, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()();\n} if (rf & 2) {\n const ctx_r3 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r3.initScrollPosition)(\"emitEvent\", ctx_r3.preserveScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r3.views[0].rows);\n} }\nfunction DayViewComponent_init_position_scroll_13_tr_3_ng_template_4_Template(rf, ctx) { }\nfunction DayViewComponent_init_position_scroll_13_tr_3_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 17);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(3, \"td\", 13);\n ɵngcc0.ɵɵtemplate(4, DayViewComponent_init_position_scroll_13_tr_3_ng_template_4_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd()();\n} if (rf & 2) {\n const tm_r24 = ctx.$implicit;\n const i_r25 = ctx.index;\n const ctx_r23 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r23.hourColumnLabels[i_r25], \" \");\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r23.dayviewInactiveNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(3, _c10, tm_r24, ctx_r23.hourParts));\n} }\nfunction DayViewComponent_init_position_scroll_13_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"init-position-scroll\", 19)(1, \"table\", 15)(2, \"tbody\");\n ɵngcc0.ɵɵtemplate(3, DayViewComponent_init_position_scroll_13_tr_3_Template, 5, 6, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()();\n} if (rf & 2) {\n const ctx_r4 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r4.initScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r4.views[0].rows);\n} }\nfunction DayViewComponent_td_22_ng_template_1_Template(rf, ctx) { }\nfunction DayViewComponent_td_22_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 11);\n ɵngcc0.ɵɵtemplate(1, DayViewComponent_td_22_ng_template_1_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const ctx_r5 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"ngClass\", ɵngcc0.ɵɵpureFunction1(4, _c11, ctx_r5.views[1].allDayEvents.length > 0))(\"ngStyle\", ɵngcc0.ɵɵpureFunction1(6, _c13, 25 * ctx_r5.views[1].allDayEvents.length + \"px\"));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r5.dayviewAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(8, _c14, ctx_r5.views[1].allDayEvents, ctx_r5.dayviewAllDayEventTemplate));\n} }\nfunction DayViewComponent_td_23_ng_template_1_Template(rf, ctx) { }\nfunction DayViewComponent_td_23_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 13);\n ɵngcc0.ɵɵtemplate(1, DayViewComponent_td_23_ng_template_1_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const ctx_r6 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r6.dayviewInactiveAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(2, _c15, ctx_r6.views[1].allDayEvents));\n} }\nfunction DayViewComponent_init_position_scroll_24_tr_3_ng_template_4_Template(rf, ctx) { }\nfunction DayViewComponent_init_position_scroll_24_tr_3_Template(rf, ctx) { if (rf & 1) {\n const _r34 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 17);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(3, \"td\", 18);\n ɵngcc0.ɵɵlistener(\"click\", function DayViewComponent_init_position_scroll_24_tr_3_Template_td_click_3_listener() { const restoredCtx = ɵngcc0.ɵɵrestoreView(_r34); const tm_r30 = restoredCtx.$implicit; const ctx_r33 = ɵngcc0.ɵɵnextContext(2); return ɵngcc0.ɵɵresetView(ctx_r33.select(tm_r30.time, tm_r30.events)); });\n ɵngcc0.ɵɵtemplate(4, DayViewComponent_init_position_scroll_24_tr_3_ng_template_4_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd()();\n} if (rf & 2) {\n const tm_r30 = ctx.$implicit;\n const i_r31 = ctx.index;\n const ctx_r29 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r29.hourColumnLabels[i_r31], \" \");\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r29.dayviewNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(3, _c8, tm_r30, ctx_r29.hourParts, ctx_r29.dayviewNormalEventTemplate));\n} }\nfunction DayViewComponent_init_position_scroll_24_Template(rf, ctx) { if (rf & 1) {\n const _r36 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"init-position-scroll\", 14);\n ɵngcc0.ɵɵlistener(\"onScroll\", function DayViewComponent_init_position_scroll_24_Template_init_position_scroll_onScroll_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r36); const ctx_r35 = ɵngcc0.ɵɵnextContext(); return ɵngcc0.ɵɵresetView(ctx_r35.setScrollPosition($event)); });\n ɵngcc0.ɵɵelementStart(1, \"table\", 15)(2, \"tbody\");\n ɵngcc0.ɵɵtemplate(3, DayViewComponent_init_position_scroll_24_tr_3_Template, 5, 7, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()();\n} if (rf & 2) {\n const ctx_r7 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r7.initScrollPosition)(\"emitEvent\", ctx_r7.preserveScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r7.views[1].rows);\n} }\nfunction DayViewComponent_init_position_scroll_25_tr_3_ng_template_4_Template(rf, ctx) { }\nfunction DayViewComponent_init_position_scroll_25_tr_3_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 17);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(3, \"td\", 13);\n ɵngcc0.ɵɵtemplate(4, DayViewComponent_init_position_scroll_25_tr_3_ng_template_4_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd()();\n} if (rf & 2) {\n const tm_r38 = ctx.$implicit;\n const i_r39 = ctx.index;\n const ctx_r37 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r37.hourColumnLabels[i_r39], \" \");\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r37.dayviewInactiveNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(3, _c10, tm_r38, ctx_r37.hourParts));\n} }\nfunction DayViewComponent_init_position_scroll_25_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"init-position-scroll\", 19)(1, \"table\", 15)(2, \"tbody\");\n ɵngcc0.ɵɵtemplate(3, DayViewComponent_init_position_scroll_25_tr_3_Template, 5, 6, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()();\n} if (rf & 2) {\n const ctx_r8 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r8.initScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r8.views[1].rows);\n} }\nfunction DayViewComponent_td_34_ng_template_1_Template(rf, ctx) { }\nfunction DayViewComponent_td_34_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 11);\n ɵngcc0.ɵɵtemplate(1, DayViewComponent_td_34_ng_template_1_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const ctx_r9 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"ngClass\", ɵngcc0.ɵɵpureFunction1(4, _c11, ctx_r9.views[2].allDayEvents.length > 0))(\"ngStyle\", ɵngcc0.ɵɵpureFunction1(6, _c13, 25 * ctx_r9.views[2].allDayEvents.length + \"px\"));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r9.dayviewAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(8, _c14, ctx_r9.views[2].allDayEvents, ctx_r9.dayviewAllDayEventTemplate));\n} }\nfunction DayViewComponent_td_35_ng_template_1_Template(rf, ctx) { }\nfunction DayViewComponent_td_35_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"td\", 13);\n ɵngcc0.ɵɵtemplate(1, DayViewComponent_td_35_ng_template_1_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const ctx_r10 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r10.dayviewInactiveAllDayEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(2, _c15, ctx_r10.views[2].allDayEvents));\n} }\nfunction DayViewComponent_init_position_scroll_36_tr_3_ng_template_4_Template(rf, ctx) { }\nfunction DayViewComponent_init_position_scroll_36_tr_3_Template(rf, ctx) { if (rf & 1) {\n const _r48 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 17);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(3, \"td\", 18);\n ɵngcc0.ɵɵlistener(\"click\", function DayViewComponent_init_position_scroll_36_tr_3_Template_td_click_3_listener() { const restoredCtx = ɵngcc0.ɵɵrestoreView(_r48); const tm_r44 = restoredCtx.$implicit; const ctx_r47 = ɵngcc0.ɵɵnextContext(2); return ɵngcc0.ɵɵresetView(ctx_r47.select(tm_r44.time, tm_r44.events)); });\n ɵngcc0.ɵɵtemplate(4, DayViewComponent_init_position_scroll_36_tr_3_ng_template_4_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd()();\n} if (rf & 2) {\n const tm_r44 = ctx.$implicit;\n const i_r45 = ctx.index;\n const ctx_r43 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r43.hourColumnLabels[i_r45], \" \");\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r43.dayviewNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(3, _c8, tm_r44, ctx_r43.hourParts, ctx_r43.dayviewNormalEventTemplate));\n} }\nfunction DayViewComponent_init_position_scroll_36_Template(rf, ctx) { if (rf & 1) {\n const _r50 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"init-position-scroll\", 14);\n ɵngcc0.ɵɵlistener(\"onScroll\", function DayViewComponent_init_position_scroll_36_Template_init_position_scroll_onScroll_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r50); const ctx_r49 = ɵngcc0.ɵɵnextContext(); return ɵngcc0.ɵɵresetView(ctx_r49.setScrollPosition($event)); });\n ɵngcc0.ɵɵelementStart(1, \"table\", 15)(2, \"tbody\");\n ɵngcc0.ɵɵtemplate(3, DayViewComponent_init_position_scroll_36_tr_3_Template, 5, 7, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()();\n} if (rf & 2) {\n const ctx_r11 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r11.initScrollPosition)(\"emitEvent\", ctx_r11.preserveScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r11.views[2].rows);\n} }\nfunction DayViewComponent_init_position_scroll_37_tr_3_ng_template_4_Template(rf, ctx) { }\nfunction DayViewComponent_init_position_scroll_37_tr_3_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"tr\")(1, \"td\", 17);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(3, \"td\", 13);\n ɵngcc0.ɵɵtemplate(4, DayViewComponent_init_position_scroll_37_tr_3_ng_template_4_Template, 0, 0, \"ng-template\", 12);\n ɵngcc0.ɵɵelementEnd()();\n} if (rf & 2) {\n const tm_r52 = ctx.$implicit;\n const i_r53 = ctx.index;\n const ctx_r51 = ɵngcc0.ɵɵnextContext(2);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" \", ctx_r51.hourColumnLabels[i_r53], \" \");\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r51.dayviewInactiveNormalEventSectionTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(3, _c10, tm_r52, ctx_r51.hourParts));\n} }\nfunction DayViewComponent_init_position_scroll_37_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"init-position-scroll\", 19)(1, \"table\", 15)(2, \"tbody\");\n ɵngcc0.ɵɵtemplate(3, DayViewComponent_init_position_scroll_37_tr_3_Template, 5, 6, \"tr\", 16);\n ɵngcc0.ɵɵelementEnd()()();\n} if (rf & 2) {\n const ctx_r12 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"initPosition\", ctx_r12.initScrollPosition);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx_r12.views[2].rows);\n} }\nfunction CalendarComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵtext(0);\n} if (rf & 2) {\n const view_r23 = ctx.view;\n const row_r24 = ctx.row;\n const col_r25 = ctx.col;\n ɵngcc0.ɵɵtextInterpolate1(\" \", view_r23.dates[row_r24 * 7 + col_r25].label, \" \");\n} }\nfunction CalendarComponent_ng_template_2_ion_list_0_ion_item_1_span_1_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"span\", 21);\n ɵngcc0.ɵɵtext(1);\n ɵngcc0.ɵɵpipe(2, \"date\");\n ɵngcc0.ɵɵpipe(3, \"date\");\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const event_r32 = ɵngcc0.ɵɵnextContext().$implicit;\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵtextInterpolate2(\"\", ɵngcc0.ɵɵpipeBind2(2, 2, event_r32.startTime, \"HH:mm\"), \" - \", ɵngcc0.ɵɵpipeBind2(3, 5, event_r32.endTime, \"HH:mm\"), \" \");\n} }\nfunction CalendarComponent_ng_template_2_ion_list_0_ion_item_1_span_2_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"span\", 21);\n ɵngcc0.ɵɵtext(1);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const ctx_r34 = ɵngcc0.ɵɵnextContext(4);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵtextInterpolate(ctx_r34.allDayLabel);\n} }\nfunction CalendarComponent_ng_template_2_ion_list_0_ion_item_1_Template(rf, ctx) { if (rf & 1) {\n const _r37 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"ion-item\", 18);\n ɵngcc0.ɵɵlistener(\"click\", function CalendarComponent_ng_template_2_ion_list_0_ion_item_1_Template_ion_item_click_0_listener() { const restoredCtx = ɵngcc0.ɵɵrestoreView(_r37); const event_r32 = restoredCtx.$implicit; const ctx_r36 = ɵngcc0.ɵɵnextContext(3); return ɵngcc0.ɵɵresetView(ctx_r36.eventSelected(event_r32)); });\n ɵngcc0.ɵɵtemplate(1, CalendarComponent_ng_template_2_ion_list_0_ion_item_1_span_1_Template, 4, 8, \"span\", 19);\n ɵngcc0.ɵɵtemplate(2, CalendarComponent_ng_template_2_ion_list_0_ion_item_1_span_2_Template, 2, 1, \"span\", 19);\n ɵngcc0.ɵɵelementStart(3, \"span\", 20);\n ɵngcc0.ɵɵtext(4);\n ɵngcc0.ɵɵelementEnd()();\n} if (rf & 2) {\n const event_r32 = ctx.$implicit;\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", !event_r32.allDay);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", event_r32.allDay);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate1(\" | \", event_r32.title, \"\");\n} }\nfunction CalendarComponent_ng_template_2_ion_list_0_ion_item_2_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"ion-item\")(1, \"div\", 22);\n ɵngcc0.ɵɵtext(2);\n ɵngcc0.ɵɵelementEnd()();\n} if (rf & 2) {\n const noEventsLabel_r28 = ɵngcc0.ɵɵnextContext(2).noEventsLabel;\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵtextInterpolate(noEventsLabel_r28);\n} }\nfunction CalendarComponent_ng_template_2_ion_list_0_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"ion-list\", 15);\n ɵngcc0.ɵɵtemplate(1, CalendarComponent_ng_template_2_ion_list_0_ion_item_1_Template, 5, 3, \"ion-item\", 16);\n ɵngcc0.ɵɵtemplate(2, CalendarComponent_ng_template_2_ion_list_0_ion_item_2_Template, 3, 1, \"ion-item\", 17);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const selectedDate_r27 = ɵngcc0.ɵɵnextContext().selectedDate;\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", selectedDate_r27 == null ? null : selectedDate_r27.events);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", (selectedDate_r27 == null ? null : selectedDate_r27.events.length) == 0);\n} }\nfunction CalendarComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵtemplate(0, CalendarComponent_ng_template_2_ion_list_0_Template, 3, 2, \"ion-list\", 14);\n} if (rf & 2) {\n const showEventDetail_r26 = ctx.showEventDetail;\n ɵngcc0.ɵɵproperty(\"ngIf\", showEventDetail_r26);\n} }\nfunction CalendarComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵtext(0);\n} if (rf & 2) {\n const viewDate_r40 = ctx.viewDate;\n ɵngcc0.ɵɵtextInterpolate1(\" \", viewDate_r40.dayHeader, \" \");\n} }\nfunction CalendarComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\", 23);\n ɵngcc0.ɵɵtext(1);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const displayEvent_r41 = ctx.displayEvent;\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵtextInterpolate(displayEvent_r41.event.title);\n} }\nfunction CalendarComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\", 23);\n ɵngcc0.ɵɵtext(1);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const displayEvent_r42 = ctx.displayEvent;\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵtextInterpolate(displayEvent_r42.event.title);\n} }\nfunction CalendarComponent_ng_template_10_div_0_div_1_ng_template_1_Template(rf, ctx) { }\nconst _c16 = function (a0, a1) { return { top: a0, width: a1, height: \"25px\" }; };\nconst _c17 = function (a0) { return { displayEvent: a0 }; };\nfunction CalendarComponent_ng_template_10_div_0_div_1_Template(rf, ctx) { if (rf & 1) {\n const _r50 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"div\", 27);\n ɵngcc0.ɵɵlistener(\"click\", function CalendarComponent_ng_template_10_div_0_div_1_Template_div_click_0_listener() { const restoredCtx = ɵngcc0.ɵɵrestoreView(_r50); const displayEvent_r47 = restoredCtx.$implicit; const ctx_r49 = ɵngcc0.ɵɵnextContext(3); return ɵngcc0.ɵɵresetView(ctx_r49.eventSelected(displayEvent_r47.event)); });\n ɵngcc0.ɵɵtemplate(1, CalendarComponent_ng_template_10_div_0_div_1_ng_template_1_Template, 0, 0, \"ng-template\", 28);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const displayEvent_r47 = ctx.$implicit;\n const eventTemplate_r44 = ɵngcc0.ɵɵnextContext(2).eventTemplate;\n ɵngcc0.ɵɵproperty(\"ngStyle\", ɵngcc0.ɵɵpureFunction2(3, _c16, 25 * displayEvent_r47.position + \"px\", 100 * (displayEvent_r47.endIndex - displayEvent_r47.startIndex) + \"%\"));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", eventTemplate_r44)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(6, _c17, displayEvent_r47));\n} }\nfunction CalendarComponent_ng_template_10_div_0_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\", 25);\n ɵngcc0.ɵɵtemplate(1, CalendarComponent_ng_template_10_div_0_div_1_Template, 2, 8, \"div\", 26);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const day_r43 = ɵngcc0.ɵɵnextContext().day;\n ɵngcc0.ɵɵproperty(\"ngClass\", ɵngcc0.ɵɵpureFunction1(3, _c11, day_r43.events))(\"ngStyle\", ɵngcc0.ɵɵpureFunction1(5, _c13, 25 * day_r43.events.length + \"px\"));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", day_r43.events);\n} }\nfunction CalendarComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵtemplate(0, CalendarComponent_ng_template_10_div_0_Template, 2, 7, \"div\", 24);\n} if (rf & 2) {\n const day_r43 = ctx.day;\n ɵngcc0.ɵɵproperty(\"ngIf\", day_r43.events);\n} }\nfunction CalendarComponent_ng_template_12_div_0_ng_template_1_Template(rf, ctx) { }\nconst _c18 = function (a0) { return { top: a0, width: \"100%\", height: \"25px\" }; };\nfunction CalendarComponent_ng_template_12_div_0_Template(rf, ctx) { if (rf & 1) {\n const _r60 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"div\", 27);\n ɵngcc0.ɵɵlistener(\"click\", function CalendarComponent_ng_template_12_div_0_Template_div_click_0_listener() { const restoredCtx = ɵngcc0.ɵɵrestoreView(_r60); const displayEvent_r56 = restoredCtx.$implicit; const ctx_r59 = ɵngcc0.ɵɵnextContext(2); return ɵngcc0.ɵɵresetView(ctx_r59.eventSelected(displayEvent_r56.event)); });\n ɵngcc0.ɵɵtemplate(1, CalendarComponent_ng_template_12_div_0_ng_template_1_Template, 0, 0, \"ng-template\", 28);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const displayEvent_r56 = ctx.$implicit;\n const eventIndex_r57 = ctx.index;\n const eventTemplate_r54 = ɵngcc0.ɵɵnextContext().eventTemplate;\n ɵngcc0.ɵɵproperty(\"ngStyle\", ɵngcc0.ɵɵpureFunction1(3, _c18, 25 * eventIndex_r57 + \"px\"));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", eventTemplate_r54)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(5, _c17, displayEvent_r56));\n} }\nfunction CalendarComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵtemplate(0, CalendarComponent_ng_template_12_div_0_Template, 2, 7, \"div\", 26);\n} if (rf & 2) {\n const allDayEvents_r53 = ctx.allDayEvents;\n ɵngcc0.ɵɵproperty(\"ngForOf\", allDayEvents_r53);\n} }\nfunction CalendarComponent_ng_template_14_div_0_div_1_ng_template_1_Template(rf, ctx) { }\nconst _c19 = function (a0, a1, a2, a3) { return { top: a0, left: a1, width: a2, height: a3 }; };\nfunction CalendarComponent_ng_template_14_div_0_div_1_Template(rf, ctx) { if (rf & 1) {\n const _r70 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"div\", 27);\n ɵngcc0.ɵɵlistener(\"click\", function CalendarComponent_ng_template_14_div_0_div_1_Template_div_click_0_listener() { const restoredCtx = ɵngcc0.ɵɵrestoreView(_r70); const displayEvent_r67 = restoredCtx.$implicit; const ctx_r69 = ɵngcc0.ɵɵnextContext(3); return ɵngcc0.ɵɵresetView(ctx_r69.eventSelected(displayEvent_r67.event)); });\n ɵngcc0.ɵɵtemplate(1, CalendarComponent_ng_template_14_div_0_div_1_ng_template_1_Template, 0, 0, \"ng-template\", 28);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const displayEvent_r67 = ctx.$implicit;\n const ctx_r71 = ɵngcc0.ɵɵnextContext(2);\n const hourParts_r63 = ctx_r71.hourParts;\n const eventTemplate_r64 = ctx_r71.eventTemplate;\n ɵngcc0.ɵɵproperty(\"ngStyle\", ɵngcc0.ɵɵpureFunction4(3, _c19, 37 * displayEvent_r67.startOffset / hourParts_r63 + \"px\", 100 / displayEvent_r67.overlapNumber * displayEvent_r67.position + \"%\", 100 / displayEvent_r67.overlapNumber + \"%\", 37 * (displayEvent_r67.endIndex - displayEvent_r67.startIndex - (displayEvent_r67.endOffset + displayEvent_r67.startOffset) / hourParts_r63) + \"px\"));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", eventTemplate_r64)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction1(8, _c17, displayEvent_r67));\n} }\nfunction CalendarComponent_ng_template_14_div_0_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\", 30);\n ɵngcc0.ɵɵtemplate(1, CalendarComponent_ng_template_14_div_0_div_1_Template, 2, 10, \"div\", 26);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const tm_r62 = ɵngcc0.ɵɵnextContext().tm;\n ɵngcc0.ɵɵproperty(\"ngClass\", ɵngcc0.ɵɵpureFunction1(2, _c11, tm_r62.events));\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", tm_r62.events);\n} }\nfunction CalendarComponent_ng_template_14_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵtemplate(0, CalendarComponent_ng_template_14_div_0_Template, 2, 4, \"div\", 29);\n} if (rf & 2) {\n const tm_r62 = ctx.tm;\n ɵngcc0.ɵɵproperty(\"ngIf\", tm_r62.events);\n} }\nfunction CalendarComponent_ng_template_16_Template(rf, ctx) { }\nfunction CalendarComponent_ng_template_18_Template(rf, ctx) { }\nfunction CalendarComponent_monthview_21_Template(rf, ctx) { if (rf & 1) {\n const _r74 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"monthview\", 31);\n ɵngcc0.ɵɵlistener(\"onRangeChanged\", function CalendarComponent_monthview_21_Template_monthview_onRangeChanged_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r74); const ctx_r73 = ɵngcc0.ɵɵnextContext(); return ɵngcc0.ɵɵresetView(ctx_r73.rangeChanged($event)); })(\"onEventSelected\", function CalendarComponent_monthview_21_Template_monthview_onEventSelected_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r74); const ctx_r75 = ɵngcc0.ɵɵnextContext(); return ɵngcc0.ɵɵresetView(ctx_r75.eventSelected($event)); })(\"onTimeSelected\", function CalendarComponent_monthview_21_Template_monthview_onTimeSelected_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r74); const ctx_r76 = ɵngcc0.ɵɵnextContext(); return ɵngcc0.ɵɵresetView(ctx_r76.timeSelected($event)); })(\"onTitleChanged\", function CalendarComponent_monthview_21_Template_monthview_onTitleChanged_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r74); const ctx_r77 = ɵngcc0.ɵɵnextContext(); return ɵngcc0.ɵɵresetView(ctx_r77.titleChanged($event)); });\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const ctx_r20 = ɵngcc0.ɵɵnextContext();\n const _r0 = ɵngcc0.ɵɵreference(1);\n const _r2 = ɵngcc0.ɵɵreference(3);\n ɵngcc0.ɵɵproperty(\"formatDay\", ctx_r20.formatDay)(\"formatDayHeader\", ctx_r20.formatDayHeader)(\"formatMonthTitle\", ctx_r20.formatMonthTitle)(\"startingDayMonth\", ctx_r20.startingDayMonth)(\"showEventDetail\", ctx_r20.showEventDetail)(\"noEventsLabel\", ctx_r20.noEventsLabel)(\"autoSelect\", ctx_r20.autoSelect)(\"eventSource\", ctx_r20.eventSource)(\"markDisabled\", ctx_r20.markDisabled)(\"monthviewDisplayEventTemplate\", ctx_r20.monthviewDisplayEventTemplate || _r0)(\"monthviewInactiveDisplayEventTemplate\", ctx_r20.monthviewInactiveDisplayEventTemplate || _r0)(\"monthviewEventDetailTemplate\", ctx_r20.monthviewEventDetailTemplate || _r2)(\"locale\", ctx_r20.locale)(\"dateFormatter\", ctx_r20.dateFormatter)(\"dir\", ctx_r20.dir)(\"lockSwipeToPrev\", ctx_r20.lockSwipeToPrev)(\"lockSwipes\", ctx_r20.lockSwipes)(\"sliderOptions\", ctx_r20.sliderOptions);\n} }\nfunction CalendarComponent_weekview_22_Template(rf, ctx) { if (rf & 1) {\n const _r79 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"weekview\", 32);\n ɵngcc0.ɵɵlistener(\"onRangeChanged\", function CalendarComponent_weekview_22_Template_weekview_onRangeChanged_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r79); const ctx_r78 = ɵngcc0.ɵɵnextContext(); return ɵngcc0.ɵɵresetView(ctx_r78.rangeChanged($event)); })(\"onEventSelected\", function CalendarComponent_weekview_22_Template_weekview_onEventSelected_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r79); const ctx_r80 = ɵngcc0.ɵɵnextContext(); return ɵngcc0.ɵɵresetView(ctx_r80.eventSelected($event)); })(\"onDayHeaderSelected\", function CalendarComponent_weekview_22_Template_weekview_onDayHeaderSelected_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r79); const ctx_r81 = ɵngcc0.ɵɵnextContext(); return ɵngcc0.ɵɵresetView(ctx_r81.daySelected($event)); })(\"onTimeSelected\", function CalendarComponent_weekview_22_Template_weekview_onTimeSelected_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r79); const ctx_r82 = ɵngcc0.ɵɵnextContext(); return ɵngcc0.ɵɵresetView(ctx_r82.timeSelected($event)); })(\"onTitleChanged\", function CalendarComponent_weekview_22_Template_weekview_onTitleChanged_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r79); const ctx_r83 = ɵngcc0.ɵɵnextContext(); return ɵngcc0.ɵɵresetView(ctx_r83.titleChanged($event)); });\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const ctx_r21 = ɵngcc0.ɵɵnextContext();\n const _r4 = ɵngcc0.ɵɵreference(5);\n const _r6 = ɵngcc0.ɵɵreference(7);\n const _r8 = ɵngcc0.ɵɵreference(9);\n const _r10 = ɵngcc0.ɵɵreference(11);\n const _r14 = ɵngcc0.ɵɵreference(15);\n const _r16 = ɵngcc0.ɵɵreference(17);\n const _r18 = ɵngcc0.ɵɵreference(19);\n ɵngcc0.ɵɵproperty(\"formatWeekTitle\", ctx_r21.formatWeekTitle)(\"formatWeekViewDayHeader\", ctx_r21.formatWeekViewDayHeader)(\"formatHourColumn\", ctx_r21.formatHourColumn)(\"startingDayWeek\", ctx_r21.startingDayWeek)(\"allDayLabel\", ctx_r21.allDayLabel)(\"hourParts\", ctx_r21.hourParts)(\"autoSelect\", ctx_r21.autoSelect)(\"hourSegments\", ctx_r21.hourSegments)(\"eventSource\", ctx_r21.eventSource)(\"markDisabled\", ctx_r21.markDisabled)(\"weekviewHeaderTemplate\", ctx_r21.weekviewHeaderTemplate || _r4)(\"weekviewAllDayEventTemplate\", ctx_r21.weekviewAllDayEventTemplate || _r6)(\"weekviewNormalEventTemplate\", ctx_r21.weekviewNormalEventTemplate || _r8)(\"weekviewAllDayEventSectionTemplate\", ctx_r21.weekviewAllDayEventSectionTemplate || _r10)(\"weekviewNormalEventSectionTemplate\", ctx_r21.weekviewNormalEventSectionTemplate || _r14)(\"weekviewInactiveAllDayEventSectionTemplate\", ctx_r21.weekviewInactiveAllDayEventSectionTemplate || _r16)(\"weekviewInactiveNormalEventSectionTemplate\", ctx_r21.weekviewInactiveNormalEventSectionTemplate || _r18)(\"locale\", ctx_r21.locale)(\"dateFormatter\", ctx_r21.dateFormatter)(\"dir\", ctx_r21.dir)(\"scrollToHour\", ctx_r21.scrollToHour)(\"preserveScrollPosition\", ctx_r21.preserveScrollPosition)(\"lockSwipeToPrev\", ctx_r21.lockSwipeToPrev)(\"lockSwipes\", ctx_r21.lockSwipes)(\"startHour\", ctx_r21.startHour)(\"endHour\", ctx_r21.endHour)(\"sliderOptions\", ctx_r21.sliderOptions);\n} }\nfunction CalendarComponent_dayview_23_Template(rf, ctx) { if (rf & 1) {\n const _r85 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"dayview\", 33);\n ɵngcc0.ɵɵlistener(\"onRangeChanged\", function CalendarComponent_dayview_23_Template_dayview_onRangeChanged_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r85); const ctx_r84 = ɵngcc0.ɵɵnextContext(); return ɵngcc0.ɵɵresetView(ctx_r84.rangeChanged($event)); })(\"onEventSelected\", function CalendarComponent_dayview_23_Template_dayview_onEventSelected_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r85); const ctx_r86 = ɵngcc0.ɵɵnextContext(); return ɵngcc0.ɵɵresetView(ctx_r86.eventSelected($event)); })(\"onTimeSelected\", function CalendarComponent_dayview_23_Template_dayview_onTimeSelected_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r85); const ctx_r87 = ɵngcc0.ɵɵnextContext(); return ɵngcc0.ɵɵresetView(ctx_r87.timeSelected($event)); })(\"onTitleChanged\", function CalendarComponent_dayview_23_Template_dayview_onTitleChanged_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r85); const ctx_r88 = ɵngcc0.ɵɵnextContext(); return ɵngcc0.ɵɵresetView(ctx_r88.titleChanged($event)); });\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const ctx_r22 = ɵngcc0.ɵɵnextContext();\n const _r6 = ɵngcc0.ɵɵreference(7);\n const _r8 = ɵngcc0.ɵɵreference(9);\n const _r12 = ɵngcc0.ɵɵreference(13);\n const _r14 = ɵngcc0.ɵɵreference(15);\n const _r16 = ɵngcc0.ɵɵreference(17);\n const _r18 = ɵngcc0.ɵɵreference(19);\n ɵngcc0.ɵɵproperty(\"formatDayTitle\", ctx_r22.formatDayTitle)(\"formatHourColumn\", ctx_r22.formatHourColumn)(\"allDayLabel\", ctx_r22.allDayLabel)(\"hourParts\", ctx_r22.hourParts)(\"hourSegments\", ctx_r22.hourSegments)(\"eventSource\", ctx_r22.eventSource)(\"markDisabled\", ctx_r22.markDisabled)(\"dayviewAllDayEventTemplate\", ctx_r22.dayviewAllDayEventTemplate || _r6)(\"dayviewNormalEventTemplate\", ctx_r22.dayviewNormalEventTemplate || _r8)(\"dayviewAllDayEventSectionTemplate\", ctx_r22.dayviewAllDayEventSectionTemplate || _r12)(\"dayviewNormalEventSectionTemplate\", ctx_r22.dayviewNormalEventSectionTemplate || _r14)(\"dayviewInactiveAllDayEventSectionTemplate\", ctx_r22.dayviewInactiveAllDayEventSectionTemplate || _r16)(\"dayviewInactiveNormalEventSectionTemplate\", ctx_r22.dayviewInactiveNormalEventSectionTemplate || _r18)(\"locale\", ctx_r22.locale)(\"dateFormatter\", ctx_r22.dateFormatter)(\"dir\", ctx_r22.dir)(\"scrollToHour\", ctx_r22.scrollToHour)(\"preserveScrollPosition\", ctx_r22.preserveScrollPosition)(\"lockSwipeToPrev\", ctx_r22.lockSwipeToPrev)(\"lockSwipes\", ctx_r22.lockSwipes)(\"startHour\", ctx_r22.startHour)(\"endHour\", ctx_r22.endHour)(\"sliderOptions\", ctx_r22.sliderOptions);\n} }\nconst _c20 = [\"*\"];\nlet CalendarService = class CalendarService {\n constructor() {\n this.currentDateChangedFromParent = new Subject();\n this.currentDateChangedFromChildren = new Subject();\n this.eventSourceChanged = new Subject();\n this.slideChanged = new Subject();\n this.slideUpdated = new Subject();\n this.currentDateChangedFromParent$ = this.currentDateChangedFromParent.asObservable();\n this.currentDateChangedFromChildren$ = this.currentDateChangedFromChildren.asObservable();\n this.eventSourceChanged$ = this.eventSourceChanged.asObservable();\n this.slideChanged$ = this.slideChanged.asObservable();\n this.slideUpdated$ = this.slideUpdated.asObservable();\n }\n setCurrentDate(val, fromParent = false) {\n this._currentDate = new Date(val);\n if (fromParent) {\n this.currentDateChangedFromParent.next(val);\n }\n else {\n this.currentDateChangedFromChildren.next(val);\n }\n }\n get currentDate() {\n return this._currentDate;\n }\n rangeChanged(component) {\n if (this.queryMode === 'local') {\n if (component.eventSource && component.onDataLoaded) {\n component.onDataLoaded();\n }\n }\n else if (this.queryMode === 'remote') {\n let rangeStart = new Date(component.range.startTime.getTime()), rangeEnd = new Date(component.range.endTime.getTime());\n rangeStart.setHours(0);\n if (rangeStart.getHours() === 23) {\n rangeStart.setTime(rangeStart.getTime() + 3600000);\n }\n rangeEnd.setHours(0);\n if (rangeEnd.getHours() === 23) {\n rangeEnd.setTime(rangeEnd.getTime() + 3600000);\n }\n component.onRangeChanged.emit({\n startTime: rangeStart,\n endTime: rangeEnd\n });\n }\n }\n getStep(mode) {\n switch (mode) {\n case 'month':\n return {\n years: 0,\n months: 1,\n days: 0\n };\n case 'week':\n return {\n years: 0,\n months: 0,\n days: 7\n };\n case 'day':\n return {\n years: 0,\n months: 0,\n days: 1\n };\n }\n }\n getAdjacentCalendarDate(mode, direction) {\n let calculateCalendarDate = this.currentDate;\n const step = this.getStep(mode), year = calculateCalendarDate.getFullYear() + direction * step.years, month = calculateCalendarDate.getMonth() + direction * step.months, date = calculateCalendarDate.getDate() + direction * step.days;\n calculateCalendarDate = new Date(year, month, date, 12, 0, 0);\n if (mode === 'month') {\n const firstDayInNextMonth = new Date(year, month + 1, 1, 12, 0, 0);\n if (firstDayInNextMonth.getTime() <= calculateCalendarDate.getTime()) {\n calculateCalendarDate = new Date(firstDayInNextMonth.getTime() - 24 * 60 * 60 * 1000);\n }\n }\n return calculateCalendarDate;\n }\n getAdjacentViewStartTime(component, direction) {\n let adjacentCalendarDate = this.getAdjacentCalendarDate(component.mode, direction);\n return component.getRange(adjacentCalendarDate).startTime;\n }\n populateAdjacentViews(component) {\n let currentViewStartDate, currentViewData, toUpdateViewIndex, currentViewIndex = component.currentViewIndex;\n if (component.direction === 1) {\n currentViewStartDate = this.getAdjacentViewStartTime(component, 1);\n toUpdateViewIndex = (currentViewIndex + 1) % 3;\n component.views[toUpdateViewIndex] = component.getViewData(currentViewStartDate);\n }\n else if (component.direction === -1) {\n currentViewStartDate = this.getAdjacentViewStartTime(component, -1);\n toUpdateViewIndex = (currentViewIndex + 2) % 3;\n component.views[toUpdateViewIndex] = component.getViewData(currentViewStartDate);\n }\n else {\n if (!component.views) {\n currentViewData = [];\n currentViewStartDate = component.range.startTime;\n currentViewData.push(component.getViewData(currentViewStartDate));\n currentViewStartDate = this.getAdjacentViewStartTime(component, 1);\n currentViewData.push(component.getViewData(currentViewStartDate));\n currentViewStartDate = this.getAdjacentViewStartTime(component, -1);\n currentViewData.push(component.getViewData(currentViewStartDate));\n component.views = currentViewData;\n }\n else {\n currentViewStartDate = component.range.startTime;\n component.views[currentViewIndex] = component.getViewData(currentViewStartDate);\n currentViewStartDate = this.getAdjacentViewStartTime(component, -1);\n toUpdateViewIndex = (currentViewIndex + 2) % 3;\n component.views[toUpdateViewIndex] = component.getViewData(currentViewStartDate);\n currentViewStartDate = this.getAdjacentViewStartTime(component, 1);\n toUpdateViewIndex = (currentViewIndex + 1) % 3;\n component.views[toUpdateViewIndex] = component.getViewData(currentViewStartDate);\n }\n }\n }\n loadEvents() {\n this.eventSourceChanged.next();\n }\n slide(direction) {\n this.slideChanged.next(direction);\n }\n update() {\n this.slideUpdated.next();\n }\n};\nCalendarService.ɵfac = function CalendarService_Factory(t) { return new (t || CalendarService)(); };\nCalendarService.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: CalendarService, factory: function (t) { return CalendarService.ɵfac(t); } });\n\nvar MonthViewComponent_1;\nlet MonthViewComponent = MonthViewComponent_1 = class MonthViewComponent {\n constructor(calendarService) {\n this.calendarService = calendarService;\n this.autoSelect = true;\n this.dir = '';\n this.onRangeChanged = new EventEmitter();\n this.onEventSelected = new EventEmitter();\n this.onTimeSelected = new EventEmitter(true);\n this.onTitleChanged = new EventEmitter(true);\n this.views = [];\n this.currentViewIndex = 0;\n this.mode = 'month';\n this.direction = 0;\n this.moveOnSelected = false;\n this.inited = false;\n this.callbackOnInit = true;\n }\n ;\n static getDates(startDate, n) {\n const dates = new Array(n), current = new Date(startDate.getTime());\n let i = 0;\n while (i < n) {\n dates[i++] = new Date(current.getTime());\n current.setDate(current.getDate() + 1);\n }\n return dates;\n }\n ngOnInit() {\n if (!this.sliderOptions) {\n this.sliderOptions = {};\n }\n this.sliderOptions.loop = true;\n if (this.dateFormatter && this.dateFormatter.formatMonthViewDay) {\n this.formatDayLabel = this.dateFormatter.formatMonthViewDay;\n }\n else {\n const dayLabelDatePipe = new DatePipe('en-US');\n this.formatDayLabel = function (date) {\n return dayLabelDatePipe.transform(date, this.formatDay);\n };\n }\n if (this.dateFormatter && this.dateFormatter.formatMonthViewDayHeader) {\n this.formatDayHeaderLabel = this.dateFormatter.formatMonthViewDayHeader;\n }\n else {\n const datePipe = new DatePipe(this.locale);\n this.formatDayHeaderLabel = function (date) {\n return datePipe.transform(date, this.formatDayHeader);\n };\n }\n if (this.dateFormatter && this.dateFormatter.formatMonthViewTitle) {\n this.formatTitle = this.dateFormatter.formatMonthViewTitle;\n }\n else {\n const datePipe = new DatePipe(this.locale);\n this.formatTitle = function (date) {\n return datePipe.transform(date, this.formatMonthTitle);\n };\n }\n if (this.lockSwipeToPrev) {\n this.slider.lockSwipeToPrev(true);\n }\n if (this.lockSwipes) {\n this.slider.lockSwipes(true);\n }\n this.refreshView();\n this.inited = true;\n this.currentDateChangedFromParentSubscription = this.calendarService.currentDateChangedFromParent$.subscribe(currentDate => {\n this.refreshView();\n });\n this.eventSourceChangedSubscription = this.calendarService.eventSourceChanged$.subscribe(() => {\n this.onDataLoaded();\n });\n this.slideChangedSubscription = this.calendarService.slideChanged$.subscribe(direction => {\n if (direction === 1) {\n this.slider.slideNext();\n }\n else if (direction === -1) {\n this.slider.slidePrev();\n }\n });\n this.slideUpdatedSubscription = this.calendarService.slideUpdated$.subscribe(() => {\n this.slider.update();\n });\n }\n ngOnDestroy() {\n if (this.currentDateChangedFromParentSubscription) {\n this.currentDateChangedFromParentSubscription.unsubscribe();\n this.currentDateChangedFromParentSubscription = null;\n }\n if (this.eventSourceChangedSubscription) {\n this.eventSourceChangedSubscription.unsubscribe();\n this.eventSourceChangedSubscription = null;\n }\n if (this.slideChangedSubscription) {\n this.slideChangedSubscription.unsubscribe();\n this.slideChangedSubscription = null;\n }\n if (this.slideUpdatedSubscription) {\n this.slideUpdatedSubscription.unsubscribe();\n this.slideUpdatedSubscription = null;\n }\n }\n ngOnChanges(changes) {\n if (!this.inited) {\n return;\n }\n const eventSourceChange = changes.eventSource;\n if (eventSourceChange && eventSourceChange.currentValue) {\n this.onDataLoaded();\n }\n const lockSwipeToPrev = changes.lockSwipeToPrev;\n if (lockSwipeToPrev) {\n this.slider.lockSwipeToPrev(lockSwipeToPrev.currentValue);\n }\n const lockSwipes = changes.lockSwipes;\n if (lockSwipes) {\n this.slider.lockSwipes(lockSwipes.currentValue);\n }\n }\n ngAfterViewInit() {\n const title = this.getTitle();\n this.onTitleChanged.emit(title);\n }\n onSlideChanged() {\n if (this.callbackOnInit) {\n this.callbackOnInit = false;\n return;\n }\n let direction = 0;\n const currentViewIndex = this.currentViewIndex;\n this.slider.getActiveIndex().then((currentSlideIndex) => {\n currentSlideIndex = (currentSlideIndex + 2) % 3;\n if (isNaN(currentSlideIndex)) {\n currentSlideIndex = currentViewIndex;\n }\n if (currentSlideIndex - currentViewIndex === 1) {\n direction = 1;\n }\n else if (currentSlideIndex === 0 && currentViewIndex === 2) {\n direction = 1;\n this.slider.slideTo(1, 0, false);\n }\n else if (currentViewIndex - currentSlideIndex === 1) {\n direction = -1;\n }\n else if (currentSlideIndex === 2 && currentViewIndex === 0) {\n direction = -1;\n this.slider.slideTo(3, 0, false);\n }\n this.currentViewIndex = currentSlideIndex;\n this.move(direction);\n });\n }\n move(direction) {\n if (direction === 0) {\n return;\n }\n this.direction = direction;\n if (!this.moveOnSelected) {\n const adjacentDate = this.calendarService.getAdjacentCalendarDate(this.mode, direction);\n this.calendarService.setCurrentDate(adjacentDate);\n }\n this.refreshView();\n this.direction = 0;\n this.moveOnSelected = false;\n }\n createDateObject(date) {\n let disabled = false;\n if (this.markDisabled) {\n disabled = this.markDisabled(date);\n }\n return {\n date,\n events: [],\n label: this.formatDayLabel(date),\n secondary: false,\n disabled\n };\n }\n getViewData(startTime) {\n const startDate = startTime, date = startDate.getDate(), month = (startDate.getMonth() + (date !== 1 ? 1 : 0)) % 12;\n const dates = MonthViewComponent_1.getDates(startDate, 42);\n const days = [];\n for (let i = 0; i < 42; i++) {\n const dateObject = this.createDateObject(dates[i]);\n dateObject.secondary = dates[i].getMonth() !== month;\n days[i] = dateObject;\n }\n const dayHeaders = [];\n for (let i = 0; i < 7; i++) {\n dayHeaders.push(this.formatDayHeaderLabel(days[i].date));\n }\n return {\n dates: days,\n dayHeaders\n };\n }\n getHighlightClass(date) {\n let className = '';\n if (date.hasEvent) {\n if (date.secondary) {\n className = 'monthview-secondary-with-event';\n }\n else {\n className = 'monthview-primary-with-event';\n }\n }\n if (date.selected) {\n if (className) {\n className += ' ';\n }\n className += 'monthview-selected';\n }\n if (date.current) {\n if (className) {\n className += ' ';\n }\n className += 'monthview-current';\n }\n if (date.secondary) {\n if (className) {\n className += ' ';\n }\n className += 'text-muted';\n }\n if (date.disabled) {\n if (className) {\n className += ' ';\n }\n className += 'monthview-disabled';\n }\n return className;\n }\n getRange(currentDate) {\n const year = currentDate.getFullYear(), month = currentDate.getMonth(), firstDayOfMonth = new Date(year, month, 1, 12, 0, 0), // set hour to 12 to avoid DST problem\n difference = this.startingDayMonth - firstDayOfMonth.getDay(), numDisplayedFromPreviousMonth = (difference > 0) ? 7 - difference : -difference, startDate = new Date(firstDayOfMonth.getTime());\n if (numDisplayedFromPreviousMonth > 0) {\n startDate.setDate(-numDisplayedFromPreviousMonth + 1);\n }\n const endDate = new Date(startDate.getTime());\n endDate.setDate(endDate.getDate() + 42);\n return {\n startTime: startDate,\n endTime: endDate\n };\n }\n onDataLoaded() {\n const range = this.range, eventSource = this.eventSource, len = eventSource ? eventSource.length : 0, startTime = range.startTime, endTime = range.endTime, utcStartTime = Date.UTC(startTime.getFullYear(), startTime.getMonth(), startTime.getDate()), utcEndTime = Date.UTC(endTime.getFullYear(), endTime.getMonth(), endTime.getDate()), currentViewIndex = this.currentViewIndex, dates = this.views[currentViewIndex].dates, oneDay = 86400000, eps = 0.0006;\n for (let r = 0; r < 42; r += 1) {\n if (dates[r].hasEvent) {\n dates[r].hasEvent = false;\n dates[r].events = [];\n }\n }\n for (let i = 0; i < len; i += 1) {\n const event = eventSource[i], eventStartTime = event.startTime, eventEndTime = event.endTime;\n let eventUTCStartTime, eventUTCEndTime;\n if (event.allDay) {\n eventUTCStartTime = eventStartTime.getTime();\n eventUTCEndTime = eventEndTime.getTime();\n }\n else {\n eventUTCStartTime = Date.UTC(eventStartTime.getFullYear(), eventStartTime.getMonth(), eventStartTime.getDate());\n eventUTCEndTime = Date.UTC(eventEndTime.getFullYear(), eventEndTime.getMonth(), eventEndTime.getDate() + 1);\n }\n if (eventUTCEndTime <= utcStartTime || eventUTCStartTime >= utcEndTime) {\n continue;\n }\n let timeDifferenceStart, timeDifferenceEnd;\n if (eventUTCStartTime < utcStartTime) {\n timeDifferenceStart = 0;\n }\n else {\n timeDifferenceStart = (eventUTCStartTime - utcStartTime) / oneDay;\n }\n if (eventUTCEndTime > utcEndTime) {\n timeDifferenceEnd = (utcEndTime - utcStartTime) / oneDay;\n }\n else {\n timeDifferenceEnd = (eventUTCEndTime - utcStartTime) / oneDay;\n }\n let index = Math.floor(timeDifferenceStart);\n const endIndex = Math.ceil(timeDifferenceEnd - eps);\n while (index < endIndex) {\n dates[index].hasEvent = true;\n let eventSet = dates[index].events;\n if (eventSet) {\n eventSet.push(event);\n }\n else {\n eventSet = [];\n eventSet.push(event);\n dates[index].events = eventSet;\n }\n index += 1;\n }\n }\n for (let r = 0; r < 42; r += 1) {\n if (dates[r].hasEvent) {\n dates[r].events.sort(this.compareEvent);\n }\n }\n if (this.autoSelect) {\n let findSelected = false;\n for (let r = 0; r < 42; r += 1) {\n if (dates[r].selected) {\n this.selectedDate = dates[r];\n findSelected = true;\n break;\n }\n }\n if (findSelected) {\n this.onTimeSelected.emit({\n selectedTime: this.selectedDate.date,\n events: this.selectedDate.events,\n disabled: this.selectedDate.disabled\n });\n }\n }\n }\n refreshView() {\n this.range = this.getRange(this.calendarService.currentDate);\n if (this.inited) {\n const title = this.getTitle();\n this.onTitleChanged.emit(title);\n }\n this.calendarService.populateAdjacentViews(this);\n this.updateCurrentView(this.range.startTime, this.views[this.currentViewIndex]);\n this.calendarService.rangeChanged(this);\n }\n getTitle() {\n const currentViewStartDate = this.range.startTime, date = currentViewStartDate.getDate(), month = (currentViewStartDate.getMonth() + (date !== 1 ? 1 : 0)) % 12, year = currentViewStartDate.getFullYear() + (date !== 1 && month === 0 ? 1 : 0), headerDate = new Date(year, month, 1, 12, 0, 0, 0);\n return this.formatTitle(headerDate);\n }\n compareEvent(event1, event2) {\n if (event1.allDay) {\n return 1;\n }\n else if (event2.allDay) {\n return -1;\n }\n else {\n return (event1.startTime.getTime() - event2.startTime.getTime());\n }\n }\n select(viewDate) {\n if (!this.views) {\n return;\n }\n const selectedDate = viewDate.date, events = viewDate.events;\n if (!viewDate.disabled) {\n const dates = this.views[this.currentViewIndex].dates, currentCalendarDate = this.calendarService.currentDate, currentMonth = currentCalendarDate.getMonth(), currentYear = currentCalendarDate.getFullYear(), selectedMonth = selectedDate.getMonth(), selectedYear = selectedDate.getFullYear();\n let direction = 0;\n if (currentYear === selectedYear) {\n if (currentMonth !== selectedMonth) {\n direction = currentMonth < selectedMonth ? 1 : -1;\n }\n }\n else {\n direction = currentYear < selectedYear ? 1 : -1;\n }\n this.calendarService.setCurrentDate(selectedDate);\n if (direction === 0) {\n const currentViewStartDate = this.range.startTime, oneDay = 86400000, selectedDayDifference = Math.round((Date.UTC(selectedDate.getFullYear(), selectedDate.getMonth(), selectedDate.getDate()) - Date.UTC(currentViewStartDate.getFullYear(), currentViewStartDate.getMonth(), currentViewStartDate.getDate())) / oneDay);\n for (let r = 0; r < 42; r += 1) {\n dates[r].selected = false;\n }\n if (selectedDayDifference >= 0 && selectedDayDifference < 42) {\n dates[selectedDayDifference].selected = true;\n this.selectedDate = dates[selectedDayDifference];\n }\n }\n else {\n this.moveOnSelected = true;\n this.slideView(direction);\n }\n }\n this.onTimeSelected.emit({ selectedTime: selectedDate, events, disabled: viewDate.disabled });\n }\n slideView(direction) {\n if (direction === 1) {\n this.slider.slideNext();\n }\n else if (direction === -1) {\n this.slider.slidePrev();\n }\n }\n updateCurrentView(currentViewStartDate, view) {\n const currentCalendarDate = this.calendarService.currentDate, today = new Date(), oneDay = 86400000, selectedDayDifference = Math.round((Date.UTC(currentCalendarDate.getFullYear(), currentCalendarDate.getMonth(), currentCalendarDate.getDate()) - Date.UTC(currentViewStartDate.getFullYear(), currentViewStartDate.getMonth(), currentViewStartDate.getDate())) / oneDay), currentDayDifference = Math.round((Date.UTC(today.getFullYear(), today.getMonth(), today.getDate()) - Date.UTC(currentViewStartDate.getFullYear(), currentViewStartDate.getMonth(), currentViewStartDate.getDate())) / oneDay);\n for (let r = 0; r < 42; r += 1) {\n view.dates[r].selected = false;\n }\n if (selectedDayDifference >= 0 && selectedDayDifference < 42 && !view.dates[selectedDayDifference].disabled && (this.autoSelect || this.moveOnSelected)) {\n view.dates[selectedDayDifference].selected = true;\n this.selectedDate = view.dates[selectedDayDifference];\n }\n else {\n this.selectedDate = {\n date: null,\n events: [],\n label: null,\n secondary: null,\n disabled: false\n };\n }\n if (currentDayDifference >= 0 && currentDayDifference < 42) {\n view.dates[currentDayDifference].current = true;\n }\n }\n eventSelected(event) {\n this.onEventSelected.emit(event);\n }\n};\nMonthViewComponent.ɵfac = function MonthViewComponent_Factory(t) { return new (t || MonthViewComponent)(ɵngcc0.ɵɵdirectiveInject(CalendarService)); };\nMonthViewComponent.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: MonthViewComponent, selectors: [[\"monthview\"]], viewQuery: function MonthViewComponent_Query(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵviewQuery(_c0, 7);\n } if (rf & 2) {\n let _t;\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.slider = _t.first);\n } }, inputs: { autoSelect: \"autoSelect\", dir: \"dir\", sliderOptions: \"sliderOptions\", monthviewDisplayEventTemplate: \"monthviewDisplayEventTemplate\", monthviewInactiveDisplayEventTemplate: \"monthviewInactiveDisplayEventTemplate\", monthviewEventDetailTemplate: \"monthviewEventDetailTemplate\", formatDay: \"formatDay\", formatDayHeader: \"formatDayHeader\", formatMonthTitle: \"formatMonthTitle\", eventSource: \"eventSource\", startingDayMonth: \"startingDayMonth\", showEventDetail: \"showEventDetail\", noEventsLabel: \"noEventsLabel\", markDisabled: \"markDisabled\", locale: \"locale\", dateFormatter: \"dateFormatter\", lockSwipeToPrev: \"lockSwipeToPrev\", lockSwipes: \"lockSwipes\" }, outputs: { onRangeChanged: \"onRangeChanged\", onEventSelected: \"onEventSelected\", onTimeSelected: \"onTimeSelected\", onTitleChanged: \"onTitleChanged\" }, features: [ɵngcc0.ɵɵNgOnChangesFeature], decls: 13, vars: 14, consts: [[3, \"options\", \"dir\", \"ionSlideDidChange\"], [\"monthSlider\", \"\"], [\"class\", \"table table-bordered table-fixed monthview-datetable\", 4, \"ngIf\"], [3, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [1, \"table\", \"table-bordered\", \"table-fixed\", \"monthview-datetable\"], [4, \"ngFor\", \"ngForOf\"], [\"tappable\", \"\", 3, \"ngClass\", \"click\", 4, \"ngFor\", \"ngForOf\"], [\"tappable\", \"\", 3, \"ngClass\", \"click\"], [1, \"text-center\"]], template: function MonthViewComponent_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\")(1, \"ion-slides\", 0, 1);\n ɵngcc0.ɵɵlistener(\"ionSlideDidChange\", function MonthViewComponent_Template_ion_slides_ionSlideDidChange_1_listener() { return ctx.onSlideChanged(); });\n ɵngcc0.ɵɵelementStart(3, \"ion-slide\");\n ɵngcc0.ɵɵtemplate(4, MonthViewComponent_table_4_Template, 6, 3, \"table\", 2);\n ɵngcc0.ɵɵtemplate(5, MonthViewComponent_table_5_Template, 7, 3, \"table\", 2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(6, \"ion-slide\");\n ɵngcc0.ɵɵtemplate(7, MonthViewComponent_table_7_Template, 6, 3, \"table\", 2);\n ɵngcc0.ɵɵtemplate(8, MonthViewComponent_table_8_Template, 7, 3, \"table\", 2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(9, \"ion-slide\");\n ɵngcc0.ɵɵtemplate(10, MonthViewComponent_table_10_Template, 6, 3, \"table\", 2);\n ɵngcc0.ɵɵtemplate(11, MonthViewComponent_table_11_Template, 7, 3, \"table\", 2);\n ɵngcc0.ɵɵelementEnd()();\n ɵngcc0.ɵɵtemplate(12, MonthViewComponent_ng_template_12_Template, 0, 0, \"ng-template\", 3);\n ɵngcc0.ɵɵelementEnd();\n } if (rf & 2) {\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"options\", ctx.sliderOptions)(\"dir\", ctx.dir);\n ɵngcc0.ɵɵadvance(3);\n ɵngcc0.ɵɵproperty(\"ngIf\", 0 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 0 !== ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngIf\", 1 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 1 !== ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(2);\n ɵngcc0.ɵɵproperty(\"ngIf\", 2 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 2 !== ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx.monthviewEventDetailTemplate)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction3(10, _c4, ctx.showEventDetail, ctx.selectedDate, ctx.noEventsLabel));\n } }, dependencies: [ɵngcc1.IonSlide, ɵngcc1.IonSlides, ɵngcc2.NgClass, ɵngcc2.NgForOf, ɵngcc2.NgIf, ɵngcc2.NgTemplateOutlet], styles: [\".text-muted[_ngcontent-%COMP%] {\\n color: #999;\\n }\\n\\n .table-fixed[_ngcontent-%COMP%] {\\n table-layout: fixed;\\n }\\n\\n .table[_ngcontent-%COMP%] {\\n width: 100%;\\n max-width: 100%;\\n background-color: transparent;\\n }\\n\\n .table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > tfoot[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > tfoot[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%] {\\n padding: 8px;\\n line-height: 20px;\\n vertical-align: top;\\n }\\n\\n .table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%] {\\n vertical-align: bottom;\\n border-bottom: 2px solid #ddd;\\n }\\n\\n .table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%]:first-child > tr[_ngcontent-%COMP%]:first-child > th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%]:first-child > tr[_ngcontent-%COMP%]:first-child > td[_ngcontent-%COMP%] {\\n border-top: 0\\n }\\n\\n .table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] + tbody[_ngcontent-%COMP%] {\\n border-top: 2px solid #ddd;\\n }\\n\\n .table-bordered[_ngcontent-%COMP%] {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], .table-bordered[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], .table-bordered[_ngcontent-%COMP%] > tfoot[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], .table-bordered[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%], .table-bordered[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%], .table-bordered[_ngcontent-%COMP%] > tfoot[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%] {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%], .table-bordered[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%] {\\n border-bottom-width: 2px;\\n }\\n\\n .table-striped[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:nth-child(odd) > td[_ngcontent-%COMP%], .table-striped[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:nth-child(odd) > th[_ngcontent-%COMP%] {\\n background-color: #f9f9f9\\n }\\n\\n .monthview-primary-with-event[_ngcontent-%COMP%] {\\n background-color: #3a87ad;\\n color: white;\\n }\\n\\n .monthview-current[_ngcontent-%COMP%] {\\n background-color: #f0f0f0;\\n }\\n\\n .monthview-selected[_ngcontent-%COMP%] {\\n background-color: #009900;\\n color: white;\\n }\\n\\n .monthview-datetable[_ngcontent-%COMP%] td.monthview-disabled[_ngcontent-%COMP%] {\\n color: lightgrey;\\n cursor: default;\\n }\\n\\n .monthview-datetable[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\\n text-align: center;\\n }\\n\\n .monthview-datetable[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\\n cursor: pointer;\\n text-align: center;\\n }\\n\\n .monthview-secondary-with-event[_ngcontent-%COMP%] {\\n background-color: #d9edf7;\\n }\\n\\n [_ngcontent-%COMP%]::-webkit-scrollbar, *[_ngcontent-%COMP%]::-webkit-scrollbar {\\n display: none;\\n }\"] });\nMonthViewComponent.ctorParameters = () => [\n { type: CalendarService }\n];\n__decorate([\n ViewChild('monthSlider', { static: true })\n], MonthViewComponent.prototype, \"slider\", void 0);\n__decorate([\n Input()\n], MonthViewComponent.prototype, \"monthviewDisplayEventTemplate\", void 0);\n__decorate([\n Input()\n], MonthViewComponent.prototype, \"monthviewInactiveDisplayEventTemplate\", void 0);\n__decorate([\n Input()\n], MonthViewComponent.prototype, \"monthviewEventDetailTemplate\", void 0);\n__decorate([\n Input()\n], MonthViewComponent.prototype, \"formatDay\", void 0);\n__decorate([\n Input()\n], MonthViewComponent.prototype, \"formatDayHeader\", void 0);\n__decorate([\n Input()\n], MonthViewComponent.prototype, \"formatMonthTitle\", void 0);\n__decorate([\n Input()\n], MonthViewComponent.prototype, \"eventSource\", void 0);\n__decorate([\n Input()\n], MonthViewComponent.prototype, \"startingDayMonth\", void 0);\n__decorate([\n Input()\n], MonthViewComponent.prototype, \"showEventDetail\", void 0);\n__decorate([\n Input()\n], MonthViewComponent.prototype, \"noEventsLabel\", void 0);\n__decorate([\n Input()\n], MonthViewComponent.prototype, \"autoSelect\", void 0);\n__decorate([\n Input()\n], MonthViewComponent.prototype, \"markDisabled\", void 0);\n__decorate([\n Input()\n], MonthViewComponent.prototype, \"locale\", void 0);\n__decorate([\n Input()\n], MonthViewComponent.prototype, \"dateFormatter\", void 0);\n__decorate([\n Input()\n], MonthViewComponent.prototype, \"dir\", void 0);\n__decorate([\n Input()\n], MonthViewComponent.prototype, \"lockSwipeToPrev\", void 0);\n__decorate([\n Input()\n], MonthViewComponent.prototype, \"lockSwipes\", void 0);\n__decorate([\n Input()\n], MonthViewComponent.prototype, \"sliderOptions\", void 0);\n__decorate([\n Output()\n], MonthViewComponent.prototype, \"onRangeChanged\", void 0);\n__decorate([\n Output()\n], MonthViewComponent.prototype, \"onEventSelected\", void 0);\n__decorate([\n Output()\n], MonthViewComponent.prototype, \"onTimeSelected\", void 0);\n__decorate([\n Output()\n], MonthViewComponent.prototype, \"onTitleChanged\", void 0);\n\nvar WeekViewComponent_1;\nlet WeekViewComponent = WeekViewComponent_1 = class WeekViewComponent {\n constructor(calendarService, elm) {\n this.calendarService = calendarService;\n this.elm = elm;\n this.class = true;\n this.autoSelect = true;\n this.dir = '';\n this.scrollToHour = 0;\n this.onRangeChanged = new EventEmitter();\n this.onEventSelected = new EventEmitter();\n this.onTimeSelected = new EventEmitter();\n this.onDayHeaderSelected = new EventEmitter();\n this.onTitleChanged = new EventEmitter(true);\n this.views = [];\n this.currentViewIndex = 0;\n this.direction = 0;\n this.mode = 'week';\n this.inited = false;\n this.callbackOnInit = true;\n }\n static createDateObjects(startTime, startHour, endHour, timeInterval) {\n const times = [], currentHour = 0, currentDate = startTime.getDate();\n let hourStep, minStep;\n if (timeInterval < 1) {\n hourStep = Math.floor(1 / timeInterval);\n minStep = 60;\n }\n else {\n hourStep = 1;\n minStep = Math.floor(60 / timeInterval);\n }\n for (let hour = startHour; hour < endHour; hour += hourStep) {\n for (let interval = 0; interval < 60; interval += minStep) {\n const row = [];\n for (let day = 0; day < 7; day += 1) {\n const time = new Date(startTime.getTime());\n time.setHours(currentHour + hour, interval);\n time.setDate(currentDate + day);\n row.push({\n events: [],\n time\n });\n }\n times.push(row);\n }\n }\n return times;\n }\n static getDates(startTime, n) {\n const dates = new Array(n), current = new Date(startTime.getTime());\n let i = 0;\n while (i < n) {\n dates[i++] = {\n date: new Date(current.getTime()),\n events: [],\n dayHeader: ''\n };\n current.setDate(current.getDate() + 1);\n }\n return dates;\n }\n static compareEventByStartOffset(eventA, eventB) {\n return eventA.startOffset - eventB.startOffset;\n }\n static calculateWidth(orderedEvents, size, hourParts) {\n const totalSize = size * hourParts, cells = new Array(totalSize);\n // sort by position in descending order, the right most columns should be calculated first\n orderedEvents.sort((eventA, eventB) => {\n return eventB.position - eventA.position;\n });\n for (let i = 0; i < totalSize; i += 1) {\n cells[i] = {\n calculated: false,\n events: []\n };\n }\n const len = orderedEvents.length;\n for (let i = 0; i < len; i += 1) {\n const event = orderedEvents[i];\n let index = event.startIndex * hourParts + event.startOffset;\n while (index < event.endIndex * hourParts - event.endOffset) {\n cells[index].events.push(event);\n index += 1;\n }\n }\n let i = 0;\n while (i < len) {\n let event = orderedEvents[i];\n if (!event.overlapNumber) {\n const overlapNumber = event.position + 1;\n event.overlapNumber = overlapNumber;\n const eventQueue = [event];\n while (event = eventQueue.shift()) {\n let index = event.startIndex * hourParts + event.startOffset;\n while (index < event.endIndex * hourParts - event.endOffset) {\n if (!cells[index].calculated) {\n cells[index].calculated = true;\n if (cells[index].events) {\n const eventCountInCell = cells[index].events.length;\n for (let j = 0; j < eventCountInCell; j += 1) {\n const currentEventInCell = cells[index].events[j];\n if (!currentEventInCell.overlapNumber) {\n currentEventInCell.overlapNumber = overlapNumber;\n eventQueue.push(currentEventInCell);\n }\n }\n }\n }\n index += 1;\n }\n }\n }\n i += 1;\n }\n }\n ngOnInit() {\n if (!this.sliderOptions) {\n this.sliderOptions = {};\n }\n this.sliderOptions.loop = true;\n this.hourRange = (this.endHour - this.startHour) * this.hourSegments;\n if (this.dateFormatter && this.dateFormatter.formatWeekViewDayHeader) {\n this.formatDayHeader = this.dateFormatter.formatWeekViewDayHeader;\n }\n else {\n const datePipe = new DatePipe(this.locale);\n this.formatDayHeader = function (date) {\n return datePipe.transform(date, this.formatWeekViewDayHeader);\n };\n }\n if (this.dateFormatter && this.dateFormatter.formatWeekViewTitle) {\n this.formatTitle = this.dateFormatter.formatWeekViewTitle;\n }\n else {\n const datePipe = new DatePipe(this.locale);\n this.formatTitle = function (date) {\n return datePipe.transform(date, this.formatWeekTitle);\n };\n }\n if (this.dateFormatter && this.dateFormatter.formatWeekViewHourColumn) {\n this.formatHourColumnLabel = this.dateFormatter.formatWeekViewHourColumn;\n }\n else {\n const datePipe = new DatePipe(this.locale);\n this.formatHourColumnLabel = function (date) {\n return datePipe.transform(date, this.formatHourColumn);\n };\n }\n if (this.lockSwipeToPrev) {\n this.slider.lockSwipeToPrev(true);\n }\n if (this.lockSwipes) {\n this.slider.lockSwipes(true);\n }\n this.refreshView();\n this.hourColumnLabels = this.getHourColumnLabels();\n this.inited = true;\n this.currentDateChangedFromParentSubscription = this.calendarService.currentDateChangedFromParent$.subscribe(currentDate => {\n this.refreshView();\n });\n this.eventSourceChangedSubscription = this.calendarService.eventSourceChanged$.subscribe(() => {\n this.onDataLoaded();\n });\n this.slideChangedSubscription = this.calendarService.slideChanged$.subscribe(direction => {\n if (direction === 1) {\n this.slider.slideNext();\n }\n else if (direction === -1) {\n this.slider.slidePrev();\n }\n });\n this.slideUpdatedSubscription = this.calendarService.slideUpdated$.subscribe(() => {\n this.slider.update();\n });\n }\n ngAfterViewInit() {\n const title = this.getTitle();\n this.onTitleChanged.emit(title);\n if (this.scrollToHour > 0) {\n const hourColumns = this.elm.nativeElement.querySelector('.weekview-normal-event-container').querySelectorAll('.calendar-hour-column');\n const me = this;\n setTimeout(() => {\n me.initScrollPosition = hourColumns[me.scrollToHour - me.startHour].offsetTop;\n }, 50);\n }\n }\n ngOnChanges(changes) {\n if (!this.inited) {\n return;\n }\n if ((changes.startHour || changes.endHour) && (!changes.startHour.isFirstChange() || !changes.endHour.isFirstChange())) {\n this.views = undefined;\n this.hourRange = (this.endHour - this.startHour) * this.hourSegments;\n this.direction = 0;\n this.refreshView();\n this.hourColumnLabels = this.getHourColumnLabels();\n }\n const eventSourceChange = changes.eventSource;\n if (eventSourceChange && eventSourceChange.currentValue) {\n this.onDataLoaded();\n }\n const lockSwipeToPrev = changes.lockSwipeToPrev;\n if (lockSwipeToPrev) {\n this.slider.lockSwipeToPrev(lockSwipeToPrev.currentValue);\n }\n const lockSwipes = changes.lockSwipes;\n if (lockSwipes) {\n this.slider.lockSwipes(lockSwipes.currentValue);\n }\n }\n ngOnDestroy() {\n if (this.currentDateChangedFromParentSubscription) {\n this.currentDateChangedFromParentSubscription.unsubscribe();\n this.currentDateChangedFromParentSubscription = null;\n }\n if (this.eventSourceChangedSubscription) {\n this.eventSourceChangedSubscription.unsubscribe();\n this.eventSourceChangedSubscription = null;\n }\n if (this.slideChangedSubscription) {\n this.slideChangedSubscription.unsubscribe();\n this.slideChangedSubscription = null;\n }\n if (this.slideUpdatedSubscription) {\n this.slideUpdatedSubscription.unsubscribe();\n this.slideUpdatedSubscription = null;\n }\n }\n onSlideChanged() {\n if (this.callbackOnInit) {\n this.callbackOnInit = false;\n return;\n }\n const currentViewIndex = this.currentViewIndex;\n let direction = 0;\n this.slider.getActiveIndex().then(currentSlideIndex => {\n currentSlideIndex = (currentSlideIndex + 2) % 3;\n if (isNaN(currentSlideIndex)) {\n currentSlideIndex = currentViewIndex;\n }\n if (currentSlideIndex - currentViewIndex === 1) {\n direction = 1;\n }\n else if (currentSlideIndex === 0 && currentViewIndex === 2) {\n direction = 1;\n this.slider.slideTo(1, 0, false);\n }\n else if (currentViewIndex - currentSlideIndex === 1) {\n direction = -1;\n }\n else if (currentSlideIndex === 2 && currentViewIndex === 0) {\n direction = -1;\n this.slider.slideTo(3, 0, false);\n }\n this.currentViewIndex = currentSlideIndex;\n this.move(direction);\n });\n }\n move(direction) {\n if (direction === 0) {\n return;\n }\n this.direction = direction;\n const adjacent = this.calendarService.getAdjacentCalendarDate(this.mode, direction);\n this.calendarService.setCurrentDate(adjacent);\n this.refreshView();\n this.direction = 0;\n }\n getHourColumnLabels() {\n const hourColumnLabels = [];\n for (let hour = 0, length = this.views[0].rows.length; hour < length; hour += 1) {\n // handle edge case for DST\n if (hour === 0 && this.views[0].rows[hour][0].time.getHours() !== this.startHour) {\n const time = new Date(this.views[0].rows[hour][0].time);\n time.setDate(time.getDate() + 1);\n time.setHours(this.startHour);\n hourColumnLabels.push(this.formatHourColumnLabel(time));\n }\n else {\n hourColumnLabels.push(this.formatHourColumnLabel(this.views[0].rows[hour][0].time));\n }\n }\n return hourColumnLabels;\n }\n getViewData(startTime) {\n const dates = WeekViewComponent_1.getDates(startTime, 7);\n for (let i = 0; i < 7; i++) {\n dates[i].dayHeader = this.formatDayHeader(dates[i].date);\n }\n return {\n rows: WeekViewComponent_1.createDateObjects(startTime, this.startHour, this.endHour, this.hourSegments),\n dates\n };\n }\n getRange(currentDate) {\n const year = currentDate.getFullYear(), month = currentDate.getMonth(), date = currentDate.getDate(), day = currentDate.getDay();\n let difference = day - this.startingDayWeek;\n if (difference < 0) {\n difference += 7;\n }\n // set hour to 12 to avoid DST problem\n const firstDayOfWeek = new Date(year, month, date - difference, 12, 0, 0), endTime = new Date(year, month, date - difference + 7, 12, 0, 0);\n return {\n startTime: firstDayOfWeek,\n endTime\n };\n }\n onDataLoaded() {\n const eventSource = this.eventSource, len = eventSource ? eventSource.length : 0, startTime = this.range.startTime, endTime = this.range.endTime, utcStartTime = Date.UTC(startTime.getFullYear(), startTime.getMonth(), startTime.getDate()), utcEndTime = Date.UTC(endTime.getFullYear(), endTime.getMonth(), endTime.getDate()), currentViewIndex = this.currentViewIndex, rows = this.views[currentViewIndex].rows, dates = this.views[currentViewIndex].dates, oneHour = 3600000, oneDay = 86400000, \n // add allday eps\n eps = 0.016, rangeStartRowIndex = this.startHour * this.hourSegments, rangeEndRowIndex = this.endHour * this.hourSegments, allRows = 24 * this.hourSegments;\n let allDayEventInRange = false, normalEventInRange = false;\n for (let i = 0; i < 7; i += 1) {\n dates[i].events = [];\n dates[i].hasEvent = false;\n }\n for (let day = 0; day < 7; day += 1) {\n for (let hour = 0; hour < this.hourRange; hour += 1) {\n rows[hour][day].events = [];\n }\n }\n for (let i = 0; i < len; i += 1) {\n const event = eventSource[i];\n const eventStartTime = event.startTime;\n const eventEndTime = event.endTime;\n let eventUTCStartTime, eventUTCEndTime;\n if (event.allDay) {\n eventUTCStartTime = eventStartTime.getTime();\n eventUTCEndTime = eventEndTime.getTime();\n }\n else {\n eventUTCStartTime = Date.UTC(eventStartTime.getFullYear(), eventStartTime.getMonth(), eventStartTime.getDate());\n eventUTCEndTime = Date.UTC(eventEndTime.getFullYear(), eventEndTime.getMonth(), eventEndTime.getDate() + 1);\n }\n if (eventUTCEndTime <= utcStartTime || eventUTCStartTime >= utcEndTime || eventStartTime >= eventEndTime) {\n continue;\n }\n if (event.allDay) {\n allDayEventInRange = true;\n let allDayStartIndex;\n if (eventUTCStartTime <= utcStartTime) {\n allDayStartIndex = 0;\n }\n else {\n allDayStartIndex = Math.round((eventUTCStartTime - utcStartTime) / oneDay);\n }\n let allDayEndIndex;\n if (eventUTCEndTime >= utcEndTime) {\n allDayEndIndex = Math.round((utcEndTime - utcStartTime) / oneDay);\n }\n else {\n allDayEndIndex = Math.round((eventUTCEndTime - utcStartTime) / oneDay);\n }\n const displayAllDayEvent = {\n event,\n startIndex: allDayStartIndex,\n endIndex: allDayEndIndex\n };\n let eventSet = dates[allDayStartIndex].events;\n if (eventSet) {\n eventSet.push(displayAllDayEvent);\n }\n else {\n eventSet = [];\n eventSet.push(displayAllDayEvent);\n dates[allDayStartIndex].events = eventSet;\n }\n dates[allDayStartIndex].hasEvent = true;\n }\n else {\n normalEventInRange = true;\n let timeDifferenceStart;\n if (eventUTCStartTime < utcStartTime) {\n timeDifferenceStart = 0;\n }\n else {\n timeDifferenceStart = (eventUTCStartTime - utcStartTime) / oneHour * this.hourSegments + (eventStartTime.getHours() + eventStartTime.getMinutes() / 60) * this.hourSegments;\n }\n let timeDifferenceEnd;\n if (eventUTCEndTime > utcEndTime) {\n timeDifferenceEnd = (utcEndTime - utcStartTime) / oneHour * this.hourSegments;\n }\n else {\n timeDifferenceEnd = (eventUTCEndTime - oneDay - utcStartTime) / oneHour * this.hourSegments + (eventEndTime.getHours() + eventEndTime.getMinutes() / 60) * this.hourSegments;\n }\n const startIndex = Math.floor(timeDifferenceStart), endIndex = Math.ceil(timeDifferenceEnd - eps);\n let startRowIndex = startIndex % allRows, dayIndex = Math.floor(startIndex / allRows), endOfDay = dayIndex * allRows, startOffset = 0, endOffset = 0;\n if (this.hourParts !== 1) {\n if (startRowIndex < rangeStartRowIndex) {\n startOffset = 0;\n }\n else {\n startOffset = Math.floor((timeDifferenceStart - startIndex) * this.hourParts);\n }\n }\n do {\n endOfDay += allRows;\n let endRowIndex;\n if (endOfDay < endIndex) {\n endRowIndex = allRows;\n }\n else {\n if (endOfDay === endIndex) {\n endRowIndex = allRows;\n }\n else {\n endRowIndex = endIndex % allRows;\n }\n if (this.hourParts !== 1) {\n if (endRowIndex > rangeEndRowIndex) {\n endOffset = 0;\n }\n else {\n endOffset = Math.floor((endIndex - timeDifferenceEnd) * this.hourParts);\n }\n }\n }\n if (startRowIndex < rangeStartRowIndex) {\n startRowIndex = 0;\n }\n else {\n startRowIndex -= rangeStartRowIndex;\n }\n if (endRowIndex > rangeEndRowIndex) {\n endRowIndex = rangeEndRowIndex;\n }\n endRowIndex -= rangeStartRowIndex;\n if (startRowIndex < endRowIndex) {\n const displayEvent = {\n event,\n startIndex: startRowIndex,\n endIndex: endRowIndex,\n startOffset,\n endOffset\n };\n let eventSet = rows[startRowIndex][dayIndex].events;\n if (eventSet) {\n eventSet.push(displayEvent);\n }\n else {\n eventSet = [];\n eventSet.push(displayEvent);\n rows[startRowIndex][dayIndex].events = eventSet;\n }\n dates[dayIndex].hasEvent = true;\n }\n startRowIndex = 0;\n startOffset = 0;\n dayIndex += 1;\n } while (endOfDay < endIndex);\n }\n }\n if (normalEventInRange) {\n for (let day = 0; day < 7; day += 1) {\n let orderedEvents = [];\n for (let hour = 0; hour < this.hourRange; hour += 1) {\n if (rows[hour][day].events) {\n rows[hour][day].events.sort(WeekViewComponent_1.compareEventByStartOffset);\n orderedEvents = orderedEvents.concat(rows[hour][day].events);\n }\n }\n if (orderedEvents.length > 0) {\n this.placeEvents(orderedEvents);\n }\n }\n }\n if (allDayEventInRange) {\n let orderedAllDayEvents = [];\n for (let day = 0; day < 7; day += 1) {\n if (dates[day].events) {\n orderedAllDayEvents = orderedAllDayEvents.concat(dates[day].events);\n }\n }\n if (orderedAllDayEvents.length > 0) {\n this.placeAllDayEvents(orderedAllDayEvents);\n }\n }\n if (this.autoSelect) {\n let findSelected = false;\n let selectedDate;\n for (let r = 0; r < 7; r += 1) {\n if (dates[r].selected) {\n selectedDate = dates[r];\n findSelected = true;\n break;\n }\n }\n if (findSelected) {\n let disabled = false;\n if (this.markDisabled) {\n disabled = this.markDisabled(selectedDate.date);\n }\n this.onTimeSelected.emit({\n selectedTime: selectedDate.date,\n events: selectedDate.events.map(e => e.event),\n disabled\n });\n }\n }\n }\n refreshView() {\n this.range = this.getRange(this.calendarService.currentDate);\n if (this.inited) {\n const title = this.getTitle();\n this.onTitleChanged.emit(title);\n }\n this.calendarService.populateAdjacentViews(this);\n this.updateCurrentView(this.range.startTime, this.views[this.currentViewIndex]);\n this.calendarService.rangeChanged(this);\n }\n getTitle() {\n const firstDayOfWeek = new Date(this.range.startTime.getTime());\n firstDayOfWeek.setHours(12, 0, 0, 0);\n return this.formatTitle(firstDayOfWeek);\n }\n getHighlightClass(date) {\n let className = '';\n if (date.hasEvent) {\n if (className) {\n className += ' ';\n }\n className = 'weekview-with-event';\n }\n if (date.selected) {\n if (className) {\n className += ' ';\n }\n className += 'weekview-selected';\n }\n if (date.current) {\n if (className) {\n className += ' ';\n }\n className += 'weekview-current';\n }\n return className;\n }\n select(selectedTime, events) {\n let disabled = false;\n if (this.markDisabled) {\n disabled = this.markDisabled(selectedTime);\n }\n this.onTimeSelected.emit({\n selectedTime,\n events: events.map(e => e.event),\n disabled\n });\n }\n placeEvents(orderedEvents) {\n this.calculatePosition(orderedEvents);\n WeekViewComponent_1.calculateWidth(orderedEvents, this.hourRange, this.hourParts);\n }\n placeAllDayEvents(orderedEvents) {\n this.calculatePosition(orderedEvents);\n }\n overlap(event1, event2) {\n let earlyEvent = event1, lateEvent = event2;\n if (event1.startIndex > event2.startIndex || (event1.startIndex === event2.startIndex && event1.startOffset > event2.startOffset)) {\n earlyEvent = event2;\n lateEvent = event1;\n }\n if (earlyEvent.endIndex <= lateEvent.startIndex) {\n return false;\n }\n else {\n return !(earlyEvent.endIndex - lateEvent.startIndex === 1 && earlyEvent.endOffset + lateEvent.startOffset >= this.hourParts);\n }\n }\n calculatePosition(events) {\n const len = events.length, isForbidden = new Array(len);\n let maxColumn = 0;\n for (let i = 0; i < len; i += 1) {\n let col;\n for (col = 0; col < maxColumn; col += 1) {\n isForbidden[col] = false;\n }\n for (let j = 0; j < i; j += 1) {\n if (this.overlap(events[i], events[j])) {\n isForbidden[events[j].position] = true;\n }\n }\n for (col = 0; col < maxColumn; col += 1) {\n if (!isForbidden[col]) {\n break;\n }\n }\n if (col < maxColumn) {\n events[i].position = col;\n }\n else {\n events[i].position = maxColumn++;\n }\n }\n if (this.dir === 'rtl') {\n for (let i = 0; i < len; i += 1) {\n events[i].position = maxColumn - 1 - events[i].position;\n }\n }\n }\n updateCurrentView(currentViewStartDate, view) {\n const currentCalendarDate = this.calendarService.currentDate, today = new Date(), oneDay = 86400000, selectedDayDifference = Math.round((Date.UTC(currentCalendarDate.getFullYear(), currentCalendarDate.getMonth(), currentCalendarDate.getDate()) - Date.UTC(currentViewStartDate.getFullYear(), currentViewStartDate.getMonth(), currentViewStartDate.getDate())) / oneDay), currentDayDifference = Math.floor((Date.UTC(today.getFullYear(), today.getMonth(), today.getDate()) - Date.UTC(currentViewStartDate.getFullYear(), currentViewStartDate.getMonth(), currentViewStartDate.getDate())) / oneDay);\n for (let r = 0; r < 7; r += 1) {\n view.dates[r].selected = false;\n }\n if (selectedDayDifference >= 0 && selectedDayDifference < 7 && this.autoSelect) {\n view.dates[selectedDayDifference].selected = true;\n }\n if (currentDayDifference >= 0 && currentDayDifference < 7) {\n view.dates[currentDayDifference].current = true;\n }\n }\n daySelected(viewDate) {\n const selectedDate = viewDate.date, dates = this.views[this.currentViewIndex].dates, currentViewStartDate = this.range.startTime, oneDay = 86400000, selectedDayDifference = Math.round((Date.UTC(selectedDate.getFullYear(), selectedDate.getMonth(), selectedDate.getDate()) - Date.UTC(currentViewStartDate.getFullYear(), currentViewStartDate.getMonth(), currentViewStartDate.getDate())) / oneDay);\n this.calendarService.setCurrentDate(selectedDate);\n for (let r = 0; r < 7; r += 1) {\n dates[r].selected = false;\n }\n if (selectedDayDifference >= 0 && selectedDayDifference < 7) {\n dates[selectedDayDifference].selected = true;\n }\n let disabled = false;\n if (this.markDisabled) {\n disabled = this.markDisabled(selectedDate);\n }\n this.onDayHeaderSelected.emit({ selectedTime: selectedDate, events: viewDate.events.map(e => e.event), disabled });\n }\n setScrollPosition(scrollPosition) {\n this.initScrollPosition = scrollPosition;\n }\n};\nWeekViewComponent.ɵfac = function WeekViewComponent_Factory(t) { return new (t || WeekViewComponent)(ɵngcc0.ɵɵdirectiveInject(CalendarService), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ElementRef)); };\nWeekViewComponent.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: WeekViewComponent, selectors: [[\"weekview\"]], viewQuery: function WeekViewComponent_Query(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵviewQuery(_c5, 7);\n } if (rf & 2) {\n let _t;\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.slider = _t.first);\n } }, hostVars: 2, hostBindings: function WeekViewComponent_HostBindings(rf, ctx) { if (rf & 2) {\n ɵngcc0.ɵɵclassProp(\"weekview\", ctx.class);\n } }, inputs: { autoSelect: \"autoSelect\", dir: \"dir\", scrollToHour: \"scrollToHour\", sliderOptions: \"sliderOptions\", weekviewHeaderTemplate: \"weekviewHeaderTemplate\", weekviewAllDayEventTemplate: \"weekviewAllDayEventTemplate\", weekviewNormalEventTemplate: \"weekviewNormalEventTemplate\", weekviewAllDayEventSectionTemplate: \"weekviewAllDayEventSectionTemplate\", weekviewNormalEventSectionTemplate: \"weekviewNormalEventSectionTemplate\", weekviewInactiveAllDayEventSectionTemplate: \"weekviewInactiveAllDayEventSectionTemplate\", weekviewInactiveNormalEventSectionTemplate: \"weekviewInactiveNormalEventSectionTemplate\", formatWeekTitle: \"formatWeekTitle\", formatWeekViewDayHeader: \"formatWeekViewDayHeader\", formatHourColumn: \"formatHourColumn\", startingDayWeek: \"startingDayWeek\", allDayLabel: \"allDayLabel\", hourParts: \"hourParts\", eventSource: \"eventSource\", markDisabled: \"markDisabled\", locale: \"locale\", dateFormatter: \"dateFormatter\", preserveScrollPosition: \"preserveScrollPosition\", lockSwipeToPrev: \"lockSwipeToPrev\", lockSwipes: \"lockSwipes\", startHour: \"startHour\", endHour: \"endHour\", hourSegments: \"hourSegments\" }, outputs: { onRangeChanged: \"onRangeChanged\", onEventSelected: \"onEventSelected\", onTimeSelected: \"onTimeSelected\", onDayHeaderSelected: \"onDayHeaderSelected\", onTitleChanged: \"onTitleChanged\" }, features: [ɵngcc0.ɵɵNgOnChangesFeature], decls: 26, vars: 11, consts: [[1, \"slides-container\", 3, \"options\", \"dir\", \"ionSlideDidChange\"], [\"weekSlider\", \"\"], [1, \"slide-container\"], [1, \"table\", \"table-bordered\", \"table-fixed\", \"weekview-header\"], [1, \"calendar-hour-column\"], [\"class\", \"weekview-header text-center\", 3, \"ngClass\", \"click\", 4, \"ngFor\", \"ngForOf\"], [4, \"ngIf\"], [1, \"weekview-header\", \"text-center\", 3, \"ngClass\", \"click\"], [3, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [1, \"weekview-allday-table\"], [1, \"weekview-allday-label\"], [1, \"weekview-allday-content-wrapper\", \"scroll-content\"], [1, \"table\", \"table-fixed\", \"weekview-allday-content-table\"], [\"class\", \"calendar-cell\", 4, \"ngFor\", \"ngForOf\"], [1, \"weekview-normal-event-container\", 3, \"initPosition\", \"emitEvent\", \"onScroll\"], [1, \"table\", \"table-bordered\", \"table-fixed\", \"weekview-normal-event-table\"], [4, \"ngFor\", \"ngForOf\"], [1, \"calendar-cell\"], [1, \"calendar-hour-column\", \"text-center\"], [\"class\", \"calendar-cell\", \"tappable\", \"\", 3, \"click\", 4, \"ngFor\", \"ngForOf\"], [\"tappable\", \"\", 1, \"calendar-cell\", 3, \"click\"], [1, \"weekview-normal-event-container\", 3, \"initPosition\"], [3, \"ngClass\", 4, \"ngIf\"], [3, \"ngClass\"]], template: function WeekViewComponent_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"ion-slides\", 0, 1);\n ɵngcc0.ɵɵlistener(\"ionSlideDidChange\", function WeekViewComponent_Template_ion_slides_ionSlideDidChange_0_listener() { return ctx.onSlideChanged(); });\n ɵngcc0.ɵɵelementStart(2, \"ion-slide\", 2)(3, \"table\", 3)(4, \"thead\")(5, \"tr\");\n ɵngcc0.ɵɵelement(6, \"th\", 4);\n ɵngcc0.ɵɵtemplate(7, WeekViewComponent_th_7_Template, 2, 5, \"th\", 5);\n ɵngcc0.ɵɵelementEnd()()();\n ɵngcc0.ɵɵtemplate(8, WeekViewComponent_div_8_Template, 13, 5, \"div\", 6);\n ɵngcc0.ɵɵtemplate(9, WeekViewComponent_div_9_Template, 13, 4, \"div\", 6);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(10, \"ion-slide\", 2)(11, \"table\", 3)(12, \"thead\")(13, \"tr\");\n ɵngcc0.ɵɵelement(14, \"th\", 4);\n ɵngcc0.ɵɵtemplate(15, WeekViewComponent_th_15_Template, 2, 5, \"th\", 5);\n ɵngcc0.ɵɵelementEnd()()();\n ɵngcc0.ɵɵtemplate(16, WeekViewComponent_div_16_Template, 13, 5, \"div\", 6);\n ɵngcc0.ɵɵtemplate(17, WeekViewComponent_div_17_Template, 13, 4, \"div\", 6);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(18, \"ion-slide\", 2)(19, \"table\", 3)(20, \"thead\")(21, \"tr\");\n ɵngcc0.ɵɵelement(22, \"th\", 4);\n ɵngcc0.ɵɵtemplate(23, WeekViewComponent_th_23_Template, 2, 5, \"th\", 5);\n ɵngcc0.ɵɵelementEnd()()();\n ɵngcc0.ɵɵtemplate(24, WeekViewComponent_div_24_Template, 13, 5, \"div\", 6);\n ɵngcc0.ɵɵtemplate(25, WeekViewComponent_div_25_Template, 13, 4, \"div\", 6);\n ɵngcc0.ɵɵelementEnd()();\n } if (rf & 2) {\n ɵngcc0.ɵɵproperty(\"options\", ctx.sliderOptions)(\"dir\", ctx.dir);\n ɵngcc0.ɵɵadvance(7);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx.views[0].dates);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 0 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 0 !== ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(6);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx.views[1].dates);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 1 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 1 !== ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(6);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx.views[2].dates);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 2 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 2 !== ctx.currentViewIndex);\n } }, dependencies: function () { return [ɵngcc1.IonSlide, ɵngcc1.IonSlides, ɵngcc2.NgClass, ɵngcc2.NgForOf, ɵngcc2.NgIf, ɵngcc2.NgTemplateOutlet, initPositionScrollComponent]; }, styles: [\"\\n .table-fixed {\\n table-layout: fixed;\\n }\\n\\n .table {\\n width: 100%;\\n max-width: 100%;\\n background-color: transparent;\\n }\\n\\n .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td,\\n .table > tbody > tr > td, .table > tfoot > tr > td {\\n padding: 8px;\\n line-height: 20px;\\n vertical-align: top;\\n }\\n\\n .table > thead > tr > th {\\n vertical-align: bottom;\\n border-bottom: 2px solid #ddd;\\n }\\n\\n .table > thead:first-child > tr:first-child > th, .table > thead:first-child > tr:first-child > td {\\n border-top: 0\\n }\\n\\n .table > tbody + tbody {\\n border-top: 2px solid #ddd;\\n }\\n\\n .table-bordered {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th,\\n .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered > thead > tr > th, .table-bordered > thead > tr > td {\\n border-bottom-width: 2px;\\n }\\n\\n .table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th {\\n background-color: #f9f9f9\\n }\\n\\n .calendar-hour-column {\\n width: 50px;\\n white-space: nowrap;\\n }\\n\\n .calendar-event-wrap {\\n position: relative;\\n width: 100%;\\n height: 100%;\\n }\\n\\n .calendar-event {\\n position: absolute;\\n padding: 2px;\\n cursor: pointer;\\n z-index: 10000;\\n }\\n\\n .calendar-cell {\\n padding: 0 !important;\\n height: 37px;\\n }\\n\\n .slides-container {\\n height: 100%;\\n }\\n\\n .slide-container {\\n display: block;\\n }\\n\\n .weekview-allday-label {\\n float: left;\\n height: 100%;\\n line-height: 50px;\\n text-align: center;\\n width: 50px;\\n border-left: 1px solid #ddd;\\n }\\n\\n [dir=\\\"rtl\\\"] .weekview-allday-label {\\n float: right;\\n border-right: 1px solid #ddd;\\n }\\n\\n .weekview-allday-content-wrapper {\\n margin-left: 50px;\\n overflow: hidden;\\n height: 51px;\\n }\\n\\n [dir=\\\"rtl\\\"] .weekview-allday-content-wrapper {\\n margin-left: 0;\\n margin-right: 50px;\\n }\\n\\n .weekview-allday-content-table {\\n min-height: 50px;\\n }\\n\\n .weekview-allday-content-table td {\\n border-left: 1px solid #ddd;\\n border-right: 1px solid #ddd;\\n }\\n\\n .weekview-header th {\\n overflow: hidden;\\n white-space: nowrap;\\n font-size: 14px;\\n }\\n\\n .weekview-allday-table {\\n height: 50px;\\n position: relative;\\n border-bottom: 1px solid #ddd;\\n font-size: 14px;\\n }\\n\\n .weekview-normal-event-container {\\n margin-top: 87px;\\n overflow: hidden;\\n left: 0;\\n right: 0;\\n top: 0;\\n bottom: 0;\\n position: absolute;\\n font-size: 14px;\\n }\\n\\n .scroll-content {\\n overflow-y: auto;\\n overflow-x: hidden;\\n }\\n\\n ::-webkit-scrollbar,\\n *::-webkit-scrollbar {\\n display: none;\\n }\\n\\n .table > tbody > tr > td.calendar-hour-column {\\n padding-left: 0;\\n padding-right: 0;\\n vertical-align: middle;\\n }\\n\\n @media (max-width: 750px) {\\n .weekview-allday-label, .calendar-hour-column {\\n width: 31px;\\n font-size: 12px;\\n }\\n\\n .weekview-allday-label {\\n padding-top: 4px;\\n }\\n\\n .table > tbody > tr > td.calendar-hour-column {\\n padding-left: 0;\\n padding-right: 0;\\n vertical-align: middle;\\n line-height: 12px;\\n }\\n\\n .table > thead > tr > th.weekview-header {\\n padding-left: 0;\\n padding-right: 0;\\n font-size: 12px;\\n }\\n\\n .weekview-allday-label {\\n line-height: 20px;\\n }\\n\\n .weekview-allday-content-wrapper {\\n margin-left: 31px;\\n }\\n\\n [dir=\\\"rtl\\\"] .weekview-allday-content-wrapper {\\n margin-left: 0;\\n margin-right: 31px;\\n }\\n }\\n \"], encapsulation: 2 });\nWeekViewComponent.ctorParameters = () => [\n { type: CalendarService },\n { type: ElementRef }\n];\n__decorate([\n ViewChild('weekSlider', { static: true })\n], WeekViewComponent.prototype, \"slider\", void 0);\n__decorate([\n HostBinding('class.weekview')\n], WeekViewComponent.prototype, \"class\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"weekviewHeaderTemplate\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"weekviewAllDayEventTemplate\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"weekviewNormalEventTemplate\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"weekviewAllDayEventSectionTemplate\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"weekviewNormalEventSectionTemplate\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"weekviewInactiveAllDayEventSectionTemplate\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"weekviewInactiveNormalEventSectionTemplate\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"formatWeekTitle\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"formatWeekViewDayHeader\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"formatHourColumn\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"startingDayWeek\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"allDayLabel\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"hourParts\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"eventSource\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"autoSelect\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"markDisabled\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"locale\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"dateFormatter\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"dir\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"scrollToHour\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"preserveScrollPosition\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"lockSwipeToPrev\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"lockSwipes\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"startHour\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"endHour\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"sliderOptions\", void 0);\n__decorate([\n Input()\n], WeekViewComponent.prototype, \"hourSegments\", void 0);\n__decorate([\n Output()\n], WeekViewComponent.prototype, \"onRangeChanged\", void 0);\n__decorate([\n Output()\n], WeekViewComponent.prototype, \"onEventSelected\", void 0);\n__decorate([\n Output()\n], WeekViewComponent.prototype, \"onTimeSelected\", void 0);\n__decorate([\n Output()\n], WeekViewComponent.prototype, \"onDayHeaderSelected\", void 0);\n__decorate([\n Output()\n], WeekViewComponent.prototype, \"onTitleChanged\", void 0);\n\nvar DayViewComponent_1;\nlet DayViewComponent = DayViewComponent_1 = class DayViewComponent {\n constructor(calendarService, elm) {\n this.calendarService = calendarService;\n this.elm = elm;\n this.class = true;\n this.dir = '';\n this.scrollToHour = 0;\n this.onRangeChanged = new EventEmitter();\n this.onEventSelected = new EventEmitter();\n this.onTimeSelected = new EventEmitter();\n this.onTitleChanged = new EventEmitter(true);\n this.views = [];\n this.currentViewIndex = 0;\n this.direction = 0;\n this.mode = 'day';\n this.inited = false;\n this.callbackOnInit = true;\n }\n static createDateObjects(startTime, startHour, endHour, timeInterval) {\n const rows = [], currentHour = 0, currentDate = startTime.getDate();\n let time, hourStep, minStep;\n if (timeInterval < 1) {\n hourStep = Math.floor(1 / timeInterval);\n minStep = 60;\n }\n else {\n hourStep = 1;\n minStep = Math.floor(60 / timeInterval);\n }\n for (let hour = startHour; hour < endHour; hour += hourStep) {\n for (let interval = 0; interval < 60; interval += minStep) {\n time = new Date(startTime.getTime());\n time.setHours(currentHour + hour, interval);\n time.setDate(currentDate);\n rows.push({\n time,\n events: []\n });\n }\n }\n return rows;\n }\n static compareEventByStartOffset(eventA, eventB) {\n return eventA.startOffset - eventB.startOffset;\n }\n static calculateWidth(orderedEvents, size, hourParts) {\n const totalSize = size * hourParts, cells = new Array(totalSize);\n // sort by position in descending order, the right most columns should be calculated first\n orderedEvents.sort((eventA, eventB) => {\n return eventB.position - eventA.position;\n });\n for (let i = 0; i < totalSize; i += 1) {\n cells[i] = {\n calculated: false,\n events: []\n };\n }\n const len = orderedEvents.length;\n for (let i = 0; i < len; i += 1) {\n const event = orderedEvents[i];\n let index = event.startIndex * hourParts + event.startOffset;\n while (index < event.endIndex * hourParts - event.endOffset) {\n cells[index].events.push(event);\n index += 1;\n }\n }\n let i = 0;\n while (i < len) {\n let event = orderedEvents[i];\n if (!event.overlapNumber) {\n const overlapNumber = event.position + 1;\n event.overlapNumber = overlapNumber;\n const eventQueue = [event];\n while (event = eventQueue.shift()) {\n let index = event.startIndex * hourParts + event.startOffset;\n while (index < event.endIndex * hourParts - event.endOffset) {\n if (!cells[index].calculated) {\n cells[index].calculated = true;\n if (cells[index].events) {\n const eventCountInCell = cells[index].events.length;\n for (let j = 0; j < eventCountInCell; j += 1) {\n const currentEventInCell = cells[index].events[j];\n if (!currentEventInCell.overlapNumber) {\n currentEventInCell.overlapNumber = overlapNumber;\n eventQueue.push(currentEventInCell);\n }\n }\n }\n }\n index += 1;\n }\n }\n }\n i += 1;\n }\n }\n ngOnInit() {\n if (!this.sliderOptions) {\n this.sliderOptions = {};\n }\n this.sliderOptions.loop = true;\n this.hourRange = (this.endHour - this.startHour) * this.hourSegments;\n if (this.dateFormatter && this.dateFormatter.formatDayViewTitle) {\n this.formatTitle = this.dateFormatter.formatDayViewTitle;\n }\n else {\n const datePipe = new DatePipe(this.locale);\n this.formatTitle = function (date) {\n return datePipe.transform(date, this.formatDayTitle);\n };\n }\n if (this.dateFormatter && this.dateFormatter.formatDayViewHourColumn) {\n this.formatHourColumnLabel = this.dateFormatter.formatDayViewHourColumn;\n }\n else {\n const datePipe = new DatePipe(this.locale);\n this.formatHourColumnLabel = function (date) {\n return datePipe.transform(date, this.formatHourColumn);\n };\n }\n if (this.lockSwipeToPrev) {\n this.slider.lockSwipeToPrev(true);\n }\n if (this.lockSwipes) {\n this.slider.lockSwipes(true);\n }\n this.refreshView();\n this.hourColumnLabels = this.getHourColumnLabels();\n this.inited = true;\n this.currentDateChangedFromParentSubscription = this.calendarService.currentDateChangedFromParent$.subscribe(currentDate => {\n this.refreshView();\n });\n this.eventSourceChangedSubscription = this.calendarService.eventSourceChanged$.subscribe(() => {\n this.onDataLoaded();\n });\n this.slideChangedSubscription = this.calendarService.slideChanged$.subscribe(direction => {\n if (direction === 1) {\n this.slider.slideNext();\n }\n else if (direction === -1) {\n this.slider.slidePrev();\n }\n });\n this.slideUpdatedSubscription = this.calendarService.slideUpdated$.subscribe(() => {\n this.slider.update();\n });\n }\n ngAfterViewInit() {\n const title = this.getTitle();\n this.onTitleChanged.emit(title);\n if (this.scrollToHour > 0) {\n const hourColumns = this.elm.nativeElement.querySelector('.dayview-normal-event-container').querySelectorAll('.calendar-hour-column');\n const me = this;\n setTimeout(() => {\n me.initScrollPosition = hourColumns[me.scrollToHour - me.startHour].offsetTop;\n }, 50);\n }\n }\n ngOnChanges(changes) {\n if (!this.inited) {\n return;\n }\n if ((changes.startHour || changes.endHour) && (!changes.startHour.isFirstChange() || !changes.endHour.isFirstChange())) {\n this.views = undefined;\n this.hourRange = (this.endHour - this.startHour) * this.hourSegments;\n this.direction = 0;\n this.refreshView();\n this.hourColumnLabels = this.getHourColumnLabels();\n }\n const eventSourceChange = changes.eventSource;\n if (eventSourceChange && eventSourceChange.currentValue) {\n this.onDataLoaded();\n }\n const lockSwipeToPrev = changes.lockSwipeToPrev;\n if (lockSwipeToPrev) {\n this.slider.lockSwipeToPrev(lockSwipeToPrev.currentValue);\n }\n const lockSwipes = changes.lockSwipes;\n if (lockSwipes) {\n this.slider.lockSwipes(lockSwipes.currentValue);\n }\n }\n ngOnDestroy() {\n if (this.currentDateChangedFromParentSubscription) {\n this.currentDateChangedFromParentSubscription.unsubscribe();\n this.currentDateChangedFromParentSubscription = null;\n }\n if (this.eventSourceChangedSubscription) {\n this.eventSourceChangedSubscription.unsubscribe();\n this.eventSourceChangedSubscription = null;\n }\n if (this.slideChangedSubscription) {\n this.slideChangedSubscription.unsubscribe();\n this.slideChangedSubscription = null;\n }\n if (this.slideUpdatedSubscription) {\n this.slideUpdatedSubscription.unsubscribe();\n this.slideUpdatedSubscription = null;\n }\n }\n onSlideChanged() {\n if (this.callbackOnInit) {\n this.callbackOnInit = false;\n return;\n }\n let direction = 0;\n const currentViewIndex = this.currentViewIndex;\n this.slider.getActiveIndex().then((currentSlideIndex) => {\n currentSlideIndex = (currentSlideIndex + 2) % 3;\n if (isNaN(currentSlideIndex)) {\n currentSlideIndex = currentViewIndex;\n }\n if (currentSlideIndex - currentViewIndex === 1) {\n direction = 1;\n }\n else if (currentSlideIndex === 0 && currentViewIndex === 2) {\n direction = 1;\n this.slider.slideTo(1, 0, false);\n }\n else if (currentViewIndex - currentSlideIndex === 1) {\n direction = -1;\n }\n else if (currentSlideIndex === 2 && currentViewIndex === 0) {\n direction = -1;\n this.slider.slideTo(3, 0, false);\n }\n this.currentViewIndex = currentSlideIndex;\n this.move(direction);\n });\n }\n move(direction) {\n if (direction === 0) {\n return;\n }\n this.direction = direction;\n const adjacentDate = this.calendarService.getAdjacentCalendarDate(this.mode, direction);\n this.calendarService.setCurrentDate(adjacentDate);\n this.refreshView();\n this.direction = 0;\n }\n getHourColumnLabels() {\n const hourColumnLabels = [];\n for (let hour = 0, length = this.views[0].rows.length; hour < length; hour += 1) {\n // handle edge case for DST\n if (hour === 0 && this.views[0].rows[hour].time.getHours() !== this.startHour) {\n const time = new Date(this.views[0].rows[hour].time);\n time.setDate(time.getDate() + 1);\n time.setHours(this.startHour);\n hourColumnLabels.push(this.formatHourColumnLabel(time));\n }\n else {\n hourColumnLabels.push(this.formatHourColumnLabel(this.views[0].rows[hour].time));\n }\n }\n return hourColumnLabels;\n }\n getViewData(startTime) {\n return {\n rows: DayViewComponent_1.createDateObjects(startTime, this.startHour, this.endHour, this.hourSegments),\n allDayEvents: []\n };\n }\n getRange(currentDate) {\n const year = currentDate.getFullYear(), month = currentDate.getMonth(), date = currentDate.getDate(), startTime = new Date(year, month, date, 12, 0, 0), endTime = new Date(year, month, date + 1, 12, 0, 0);\n return {\n startTime,\n endTime\n };\n }\n onDataLoaded() {\n const eventSource = this.eventSource, len = eventSource ? eventSource.length : 0, startTime = this.range.startTime, endTime = this.range.endTime, utcStartTime = Date.UTC(startTime.getFullYear(), startTime.getMonth(), startTime.getDate()), utcEndTime = Date.UTC(endTime.getFullYear(), endTime.getMonth(), endTime.getDate()), currentViewIndex = this.currentViewIndex, rows = this.views[currentViewIndex].rows, allDayEvents = this.views[currentViewIndex].allDayEvents = [], oneHour = 3600000, eps = 0.016, rangeStartRowIndex = this.startHour * this.hourSegments, rangeEndRowIndex = this.endHour * this.hourSegments;\n let normalEventInRange = false;\n for (let hour = 0; hour < this.hourRange; hour += 1) {\n rows[hour].events = [];\n }\n for (let i = 0; i < len; i += 1) {\n const event = eventSource[i];\n const eventStartTime = event.startTime;\n const eventEndTime = event.endTime;\n let eventUTCStartTime, eventUTCEndTime;\n if (event.allDay) {\n eventUTCStartTime = eventStartTime.getTime();\n eventUTCEndTime = eventEndTime.getTime();\n }\n else {\n eventUTCStartTime = Date.UTC(eventStartTime.getFullYear(), eventStartTime.getMonth(), eventStartTime.getDate());\n eventUTCEndTime = Date.UTC(eventEndTime.getFullYear(), eventEndTime.getMonth(), eventEndTime.getDate() + 1);\n }\n if (eventUTCEndTime <= utcStartTime || eventUTCStartTime >= utcEndTime || eventStartTime >= eventEndTime) {\n continue;\n }\n if (event.allDay) {\n allDayEvents.push({\n event\n });\n }\n else {\n normalEventInRange = true;\n let timeDifferenceStart;\n if (eventUTCStartTime < utcStartTime) {\n timeDifferenceStart = 0;\n }\n else {\n timeDifferenceStart = (eventStartTime.getHours() + eventStartTime.getMinutes() / 60) * this.hourSegments;\n }\n let timeDifferenceEnd;\n if (eventUTCEndTime > utcEndTime) {\n timeDifferenceEnd = (utcEndTime - utcStartTime) / oneHour * this.hourSegments;\n }\n else {\n timeDifferenceEnd = (eventEndTime.getHours() + eventEndTime.getMinutes() / 60) * this.hourSegments;\n }\n let startIndex = Math.floor(timeDifferenceStart);\n let endIndex = Math.ceil(timeDifferenceEnd - eps);\n let startOffset = 0;\n let endOffset = 0;\n if (this.hourParts !== 1) {\n if (startIndex < rangeStartRowIndex) {\n startOffset = 0;\n }\n else {\n startOffset = Math.floor((timeDifferenceStart - startIndex) * this.hourParts);\n }\n if (endIndex > rangeEndRowIndex) {\n endOffset = 0;\n }\n else {\n endOffset = Math.floor((endIndex - timeDifferenceEnd) * this.hourParts);\n }\n }\n if (startIndex < rangeStartRowIndex) {\n startIndex = 0;\n }\n else {\n startIndex -= rangeStartRowIndex;\n }\n if (endIndex > rangeEndRowIndex) {\n endIndex = rangeEndRowIndex;\n }\n endIndex -= rangeStartRowIndex;\n if (startIndex < endIndex) {\n const displayEvent = {\n event,\n startIndex,\n endIndex,\n startOffset,\n endOffset\n };\n let eventSet = rows[startIndex].events;\n if (eventSet) {\n eventSet.push(displayEvent);\n }\n else {\n eventSet = [];\n eventSet.push(displayEvent);\n rows[startIndex].events = eventSet;\n }\n }\n }\n }\n if (normalEventInRange) {\n let orderedEvents = [];\n for (let hour = 0; hour < this.hourRange; hour += 1) {\n if (rows[hour].events) {\n rows[hour].events.sort(DayViewComponent_1.compareEventByStartOffset);\n orderedEvents = orderedEvents.concat(rows[hour].events);\n }\n }\n if (orderedEvents.length > 0) {\n this.placeEvents(orderedEvents);\n }\n }\n }\n refreshView() {\n this.range = this.getRange(this.calendarService.currentDate);\n if (this.inited) {\n const title = this.getTitle();\n this.onTitleChanged.emit(title);\n }\n this.calendarService.populateAdjacentViews(this);\n this.calendarService.rangeChanged(this);\n }\n getTitle() {\n const startingDate = new Date(this.range.startTime.getTime());\n startingDate.setHours(12, 0, 0, 0);\n return this.formatTitle(startingDate);\n }\n select(selectedTime, events) {\n let disabled = false;\n if (this.markDisabled) {\n disabled = this.markDisabled(selectedTime);\n }\n this.onTimeSelected.emit({\n selectedTime,\n events: events.map(e => e.event),\n disabled\n });\n }\n placeEvents(orderedEvents) {\n this.calculatePosition(orderedEvents);\n DayViewComponent_1.calculateWidth(orderedEvents, this.hourRange, this.hourParts);\n }\n placeAllDayEvents(orderedEvents) {\n this.calculatePosition(orderedEvents);\n }\n overlap(event1, event2) {\n let earlyEvent = event1, lateEvent = event2;\n if (event1.startIndex > event2.startIndex || (event1.startIndex === event2.startIndex && event1.startOffset > event2.startOffset)) {\n earlyEvent = event2;\n lateEvent = event1;\n }\n if (earlyEvent.endIndex <= lateEvent.startIndex) {\n return false;\n }\n else {\n return !(earlyEvent.endIndex - lateEvent.startIndex === 1 && earlyEvent.endOffset + lateEvent.startOffset >= this.hourParts);\n }\n }\n calculatePosition(events) {\n const len = events.length, isForbidden = new Array(len);\n let maxColumn = 0, col;\n for (let i = 0; i < len; i += 1) {\n for (col = 0; col < maxColumn; col += 1) {\n isForbidden[col] = false;\n }\n for (let j = 0; j < i; j += 1) {\n if (this.overlap(events[i], events[j])) {\n isForbidden[events[j].position] = true;\n }\n }\n for (col = 0; col < maxColumn; col += 1) {\n if (!isForbidden[col]) {\n break;\n }\n }\n if (col < maxColumn) {\n events[i].position = col;\n }\n else {\n events[i].position = maxColumn++;\n }\n }\n if (this.dir === 'rtl') {\n for (let i = 0; i < len; i += 1) {\n events[i].position = maxColumn - 1 - events[i].position;\n }\n }\n }\n eventSelected(event) {\n this.onEventSelected.emit(event);\n }\n setScrollPosition(scrollPosition) {\n this.initScrollPosition = scrollPosition;\n }\n};\nDayViewComponent.ɵfac = function DayViewComponent_Factory(t) { return new (t || DayViewComponent)(ɵngcc0.ɵɵdirectiveInject(CalendarService), ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ElementRef)); };\nDayViewComponent.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: DayViewComponent, selectors: [[\"dayview\"]], viewQuery: function DayViewComponent_Query(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵviewQuery(_c12, 7);\n } if (rf & 2) {\n let _t;\n ɵngcc0.ɵɵqueryRefresh(_t = ɵngcc0.ɵɵloadQuery()) && (ctx.slider = _t.first);\n } }, hostVars: 2, hostBindings: function DayViewComponent_HostBindings(rf, ctx) { if (rf & 2) {\n ɵngcc0.ɵɵclassProp(\"dayview\", ctx.class);\n } }, inputs: { dir: \"dir\", scrollToHour: \"scrollToHour\", sliderOptions: \"sliderOptions\", dayviewAllDayEventTemplate: \"dayviewAllDayEventTemplate\", dayviewNormalEventTemplate: \"dayviewNormalEventTemplate\", dayviewAllDayEventSectionTemplate: \"dayviewAllDayEventSectionTemplate\", dayviewNormalEventSectionTemplate: \"dayviewNormalEventSectionTemplate\", dayviewInactiveAllDayEventSectionTemplate: \"dayviewInactiveAllDayEventSectionTemplate\", dayviewInactiveNormalEventSectionTemplate: \"dayviewInactiveNormalEventSectionTemplate\", formatHourColumn: \"formatHourColumn\", formatDayTitle: \"formatDayTitle\", allDayLabel: \"allDayLabel\", hourParts: \"hourParts\", eventSource: \"eventSource\", markDisabled: \"markDisabled\", locale: \"locale\", dateFormatter: \"dateFormatter\", preserveScrollPosition: \"preserveScrollPosition\", lockSwipeToPrev: \"lockSwipeToPrev\", lockSwipes: \"lockSwipes\", startHour: \"startHour\", endHour: \"endHour\", hourSegments: \"hourSegments\" }, outputs: { onRangeChanged: \"onRangeChanged\", onEventSelected: \"onEventSelected\", onTimeSelected: \"onTimeSelected\", onTitleChanged: \"onTitleChanged\" }, features: [ɵngcc0.ɵɵNgOnChangesFeature], decls: 38, vars: 17, consts: [[1, \"slides-container\", 3, \"options\", \"dir\", \"ionSlideDidChange\"], [\"daySlider\", \"\"], [1, \"slide-container\"], [1, \"dayview-allday-table\"], [1, \"dayview-allday-label\"], [1, \"dayview-allday-content-wrapper\", \"scroll-content\"], [1, \"table\", \"table-bordered\", \"dayview-allday-content-table\"], [\"class\", \"calendar-cell\", 3, \"ngClass\", \"ngStyle\", 4, \"ngIf\"], [\"class\", \"calendar-cell\", 4, \"ngIf\"], [\"class\", \"dayview-normal-event-container\", 3, \"initPosition\", \"emitEvent\", \"onScroll\", 4, \"ngIf\"], [\"class\", \"dayview-normal-event-container\", 3, \"initPosition\", 4, \"ngIf\"], [1, \"calendar-cell\", 3, \"ngClass\", \"ngStyle\"], [3, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [1, \"calendar-cell\"], [1, \"dayview-normal-event-container\", 3, \"initPosition\", \"emitEvent\", \"onScroll\"], [1, \"table\", \"table-bordered\", \"table-fixed\", \"dayview-normal-event-table\"], [4, \"ngFor\", \"ngForOf\"], [1, \"calendar-hour-column\", \"text-center\"], [\"tappable\", \"\", 1, \"calendar-cell\", 3, \"click\"], [1, \"dayview-normal-event-container\", 3, \"initPosition\"]], template: function DayViewComponent_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"ion-slides\", 0, 1);\n ɵngcc0.ɵɵlistener(\"ionSlideDidChange\", function DayViewComponent_Template_ion_slides_ionSlideDidChange_0_listener() { return ctx.onSlideChanged(); });\n ɵngcc0.ɵɵelementStart(2, \"ion-slide\", 2)(3, \"div\", 3)(4, \"div\", 4);\n ɵngcc0.ɵɵtext(5);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(6, \"div\", 5)(7, \"table\", 6)(8, \"tbody\")(9, \"tr\");\n ɵngcc0.ɵɵtemplate(10, DayViewComponent_td_10_Template, 2, 11, \"td\", 7);\n ɵngcc0.ɵɵtemplate(11, DayViewComponent_td_11_Template, 2, 4, \"td\", 8);\n ɵngcc0.ɵɵelementEnd()()()()();\n ɵngcc0.ɵɵtemplate(12, DayViewComponent_init_position_scroll_12_Template, 4, 3, \"init-position-scroll\", 9);\n ɵngcc0.ɵɵtemplate(13, DayViewComponent_init_position_scroll_13_Template, 4, 2, \"init-position-scroll\", 10);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(14, \"ion-slide\", 2)(15, \"div\", 3)(16, \"div\", 4);\n ɵngcc0.ɵɵtext(17);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(18, \"div\", 5)(19, \"table\", 6)(20, \"tbody\")(21, \"tr\");\n ɵngcc0.ɵɵtemplate(22, DayViewComponent_td_22_Template, 2, 11, \"td\", 7);\n ɵngcc0.ɵɵtemplate(23, DayViewComponent_td_23_Template, 2, 4, \"td\", 8);\n ɵngcc0.ɵɵelementEnd()()()()();\n ɵngcc0.ɵɵtemplate(24, DayViewComponent_init_position_scroll_24_Template, 4, 3, \"init-position-scroll\", 9);\n ɵngcc0.ɵɵtemplate(25, DayViewComponent_init_position_scroll_25_Template, 4, 2, \"init-position-scroll\", 10);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(26, \"ion-slide\", 2)(27, \"div\", 3)(28, \"div\", 4);\n ɵngcc0.ɵɵtext(29);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵelementStart(30, \"div\", 5)(31, \"table\", 6)(32, \"tbody\")(33, \"tr\");\n ɵngcc0.ɵɵtemplate(34, DayViewComponent_td_34_Template, 2, 11, \"td\", 7);\n ɵngcc0.ɵɵtemplate(35, DayViewComponent_td_35_Template, 2, 4, \"td\", 8);\n ɵngcc0.ɵɵelementEnd()()()()();\n ɵngcc0.ɵɵtemplate(36, DayViewComponent_init_position_scroll_36_Template, 4, 3, \"init-position-scroll\", 9);\n ɵngcc0.ɵɵtemplate(37, DayViewComponent_init_position_scroll_37_Template, 4, 2, \"init-position-scroll\", 10);\n ɵngcc0.ɵɵelementEnd()();\n } if (rf & 2) {\n ɵngcc0.ɵɵproperty(\"options\", ctx.sliderOptions)(\"dir\", ctx.dir);\n ɵngcc0.ɵɵadvance(5);\n ɵngcc0.ɵɵtextInterpolate(ctx.allDayLabel);\n ɵngcc0.ɵɵadvance(5);\n ɵngcc0.ɵɵproperty(\"ngIf\", 0 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 0 !== ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 0 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 0 !== ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(4);\n ɵngcc0.ɵɵtextInterpolate(ctx.allDayLabel);\n ɵngcc0.ɵɵadvance(5);\n ɵngcc0.ɵɵproperty(\"ngIf\", 1 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 1 !== ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 1 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 1 !== ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(4);\n ɵngcc0.ɵɵtextInterpolate(ctx.allDayLabel);\n ɵngcc0.ɵɵadvance(5);\n ɵngcc0.ɵɵproperty(\"ngIf\", 2 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 2 !== ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 2 === ctx.currentViewIndex);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", 2 !== ctx.currentViewIndex);\n } }, dependencies: function () { return [ɵngcc1.IonSlide, ɵngcc1.IonSlides, ɵngcc2.NgClass, ɵngcc2.NgForOf, ɵngcc2.NgIf, ɵngcc2.NgTemplateOutlet, ɵngcc2.NgStyle, initPositionScrollComponent]; }, styles: [\"\\n .table-fixed {\\n table-layout: fixed;\\n }\\n\\n .table {\\n width: 100%;\\n max-width: 100%;\\n background-color: transparent;\\n }\\n\\n .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td,\\n .table > tbody > tr > td, .table > tfoot > tr > td {\\n padding: 8px;\\n line-height: 20px;\\n vertical-align: top;\\n }\\n\\n .table > thead > tr > th {\\n vertical-align: bottom;\\n border-bottom: 2px solid #ddd;\\n }\\n\\n .table > thead:first-child > tr:first-child > th, .table > thead:first-child > tr:first-child > td {\\n border-top: 0\\n }\\n\\n .table > tbody + tbody {\\n border-top: 2px solid #ddd;\\n }\\n\\n .table-bordered {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th,\\n .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered > thead > tr > th, .table-bordered > thead > tr > td {\\n border-bottom-width: 2px;\\n }\\n\\n .table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th {\\n background-color: #f9f9f9\\n }\\n\\n .calendar-hour-column {\\n width: 50px;\\n white-space: nowrap;\\n }\\n\\n .calendar-event-wrap {\\n position: relative;\\n width: 100%;\\n height: 100%;\\n }\\n\\n .calendar-event {\\n position: absolute;\\n padding: 2px;\\n cursor: pointer;\\n z-index: 10000;\\n }\\n\\n .slides-container {\\n height: 100%;\\n }\\n\\n .slide-container {\\n display: block;\\n }\\n\\n .calendar-cell {\\n padding: 0 !important;\\n height: 37px;\\n }\\n\\n .dayview-allday-label {\\n float: left;\\n height: 100%;\\n line-height: 50px;\\n text-align: center;\\n width: 50px;\\n border-left: 1px solid #ddd;\\n }\\n\\n [dir=\\\"rtl\\\"] .dayview-allday-label {\\n border-right: 1px solid #ddd;\\n float: right;\\n }\\n\\n .dayview-allday-content-wrapper {\\n margin-left: 50px;\\n overflow: hidden;\\n height: 51px;\\n }\\n\\n [dir=\\\"rtl\\\"] .dayview-allday-content-wrapper {\\n margin-left: 0;\\n margin-right: 50px;\\n }\\n\\n .dayview-allday-content-table {\\n min-height: 50px;\\n }\\n\\n .dayview-allday-content-table td {\\n border-left: 1px solid #ddd;\\n border-right: 1px solid #ddd;\\n }\\n\\n .dayview-allday-table {\\n height: 50px;\\n position: relative;\\n border-bottom: 1px solid #ddd;\\n font-size: 14px;\\n }\\n\\n .dayview-normal-event-container {\\n margin-top: 50px;\\n overflow: hidden;\\n left: 0;\\n right: 0;\\n top: 0;\\n bottom: 0;\\n position: absolute;\\n font-size: 14px;\\n }\\n\\n .scroll-content {\\n overflow-y: auto;\\n overflow-x: hidden;\\n }\\n\\n ::-webkit-scrollbar,\\n *::-webkit-scrollbar {\\n display: none;\\n }\\n\\n .table > tbody > tr > td.calendar-hour-column {\\n padding-left: 0;\\n padding-right: 0;\\n vertical-align: middle;\\n }\\n\\n @media (max-width: 750px) {\\n .dayview-allday-label, .calendar-hour-column {\\n width: 31px;\\n font-size: 12px;\\n }\\n\\n .dayview-allday-label {\\n padding-top: 4px;\\n }\\n\\n .table > tbody > tr > td.calendar-hour-column {\\n padding-left: 0;\\n padding-right: 0;\\n vertical-align: middle;\\n line-height: 12px;\\n }\\n\\n .dayview-allday-label {\\n line-height: 20px;\\n }\\n\\n .dayview-allday-content-wrapper {\\n margin-left: 31px;\\n }\\n\\n [dir=\\\"rtl\\\"] .dayview-allday-content-wrapper {\\n margin-left: 0;\\n margin-right: 31px;\\n }\\n }\\n \"], encapsulation: 2 });\nDayViewComponent.ctorParameters = () => [\n { type: CalendarService },\n { type: ElementRef }\n];\n__decorate([\n ViewChild('daySlider', { static: true })\n], DayViewComponent.prototype, \"slider\", void 0);\n__decorate([\n HostBinding('class.dayview')\n], DayViewComponent.prototype, \"class\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"dayviewAllDayEventTemplate\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"dayviewNormalEventTemplate\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"dayviewAllDayEventSectionTemplate\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"dayviewNormalEventSectionTemplate\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"dayviewInactiveAllDayEventSectionTemplate\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"dayviewInactiveNormalEventSectionTemplate\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"formatHourColumn\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"formatDayTitle\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"allDayLabel\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"hourParts\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"eventSource\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"markDisabled\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"locale\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"dateFormatter\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"dir\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"scrollToHour\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"preserveScrollPosition\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"lockSwipeToPrev\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"lockSwipes\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"startHour\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"endHour\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"sliderOptions\", void 0);\n__decorate([\n Input()\n], DayViewComponent.prototype, \"hourSegments\", void 0);\n__decorate([\n Output()\n], DayViewComponent.prototype, \"onRangeChanged\", void 0);\n__decorate([\n Output()\n], DayViewComponent.prototype, \"onEventSelected\", void 0);\n__decorate([\n Output()\n], DayViewComponent.prototype, \"onTimeSelected\", void 0);\n__decorate([\n Output()\n], DayViewComponent.prototype, \"onTitleChanged\", void 0);\n\nvar Step;\n(function (Step) {\n Step[Step[\"QuarterHour\"] = 15] = \"QuarterHour\";\n Step[Step[\"HalfHour\"] = 30] = \"HalfHour\";\n Step[Step[\"Hour\"] = 60] = \"Hour\";\n})(Step || (Step = {}));\nlet CalendarComponent = class CalendarComponent {\n constructor(calendarService, appLocale) {\n this.calendarService = calendarService;\n this.appLocale = appLocale;\n this.eventSource = [];\n this.calendarMode = 'month';\n this.formatDay = 'd';\n this.formatDayHeader = 'EEE';\n this.formatDayTitle = 'MMMM dd, yyyy';\n this.formatWeekTitle = 'MMMM yyyy, \\'Week\\' w';\n this.formatMonthTitle = 'MMMM yyyy';\n this.formatWeekViewDayHeader = 'EEE d';\n this.formatHourColumn = 'ha';\n this.showEventDetail = true;\n this.startingDayMonth = 0;\n this.startingDayWeek = 0;\n this.allDayLabel = 'all day';\n this.noEventsLabel = 'No Events';\n this.queryMode = 'local';\n this.step = Step.Hour;\n this.timeInterval = 60;\n this.autoSelect = true;\n this.dir = \"\";\n this.scrollToHour = 0;\n this.preserveScrollPosition = false;\n this.lockSwipeToPrev = false;\n this.lockSwipes = false;\n this.locale = \"\";\n this.startHour = 0;\n this.endHour = 24;\n this.onCurrentDateChanged = new EventEmitter();\n this.onRangeChanged = new EventEmitter();\n this.onEventSelected = new EventEmitter();\n this.onTimeSelected = new EventEmitter();\n this.onDayHeaderSelected = new EventEmitter();\n this.onTitleChanged = new EventEmitter();\n this.hourParts = 1;\n this.hourSegments = 1;\n this.locale = appLocale;\n }\n get currentDate() {\n return this._currentDate;\n }\n set currentDate(val) {\n if (!val) {\n val = new Date();\n }\n this._currentDate = val;\n this.calendarService.setCurrentDate(val, true);\n this.onCurrentDateChanged.emit(this._currentDate);\n }\n ngOnInit() {\n if (this.autoSelect) {\n if (this.autoSelect.toString() === 'false') {\n this.autoSelect = false;\n }\n else {\n this.autoSelect = true;\n }\n }\n this.hourSegments = 60 / this.timeInterval;\n this.hourParts = 60 / this.step;\n if (this.hourParts <= this.hourSegments) {\n this.hourParts = 1;\n }\n else {\n this.hourParts = this.hourParts / this.hourSegments;\n }\n this.startHour = parseInt(this.startHour.toString());\n this.endHour = parseInt(this.endHour.toString());\n this.calendarService.queryMode = this.queryMode;\n this.currentDateChangedFromChildrenSubscription = this.calendarService.currentDateChangedFromChildren$.subscribe(currentDate => {\n this._currentDate = currentDate;\n this.onCurrentDateChanged.emit(currentDate);\n });\n }\n ngOnDestroy() {\n if (this.currentDateChangedFromChildrenSubscription) {\n this.currentDateChangedFromChildrenSubscription.unsubscribe();\n this.currentDateChangedFromChildrenSubscription = null;\n }\n }\n rangeChanged(range) {\n this.onRangeChanged.emit(range);\n }\n eventSelected(event) {\n this.onEventSelected.emit(event);\n }\n timeSelected(timeSelected) {\n this.onTimeSelected.emit(timeSelected);\n }\n daySelected(daySelected) {\n this.onDayHeaderSelected.emit(daySelected);\n }\n titleChanged(title) {\n this.onTitleChanged.emit(title);\n }\n loadEvents() {\n this.calendarService.loadEvents();\n }\n slideNext() {\n this.calendarService.slide(1);\n }\n slidePrev() {\n this.calendarService.slide(-1);\n }\n update() {\n this.calendarService.update();\n }\n};\nCalendarComponent.ɵfac = function CalendarComponent_Factory(t) { return new (t || CalendarComponent)(ɵngcc0.ɵɵdirectiveInject(CalendarService), ɵngcc0.ɵɵdirectiveInject(LOCALE_ID)); };\nCalendarComponent.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: CalendarComponent, selectors: [[\"calendar\"]], inputs: { eventSource: \"eventSource\", calendarMode: \"calendarMode\", formatDay: \"formatDay\", formatDayHeader: \"formatDayHeader\", formatDayTitle: \"formatDayTitle\", formatWeekTitle: \"formatWeekTitle\", formatMonthTitle: \"formatMonthTitle\", formatWeekViewDayHeader: \"formatWeekViewDayHeader\", formatHourColumn: \"formatHourColumn\", showEventDetail: \"showEventDetail\", startingDayMonth: \"startingDayMonth\", startingDayWeek: \"startingDayWeek\", allDayLabel: \"allDayLabel\", noEventsLabel: \"noEventsLabel\", queryMode: \"queryMode\", step: \"step\", timeInterval: \"timeInterval\", autoSelect: \"autoSelect\", dir: \"dir\", scrollToHour: \"scrollToHour\", preserveScrollPosition: \"preserveScrollPosition\", lockSwipeToPrev: \"lockSwipeToPrev\", lockSwipes: \"lockSwipes\", locale: \"locale\", startHour: \"startHour\", endHour: \"endHour\", currentDate: \"currentDate\", markDisabled: \"markDisabled\", monthviewDisplayEventTemplate: \"monthviewDisplayEventTemplate\", monthviewInactiveDisplayEventTemplate: \"monthviewInactiveDisplayEventTemplate\", monthviewEventDetailTemplate: \"monthviewEventDetailTemplate\", weekviewHeaderTemplate: \"weekviewHeaderTemplate\", weekviewAllDayEventTemplate: \"weekviewAllDayEventTemplate\", weekviewNormalEventTemplate: \"weekviewNormalEventTemplate\", dayviewAllDayEventTemplate: \"dayviewAllDayEventTemplate\", dayviewNormalEventTemplate: \"dayviewNormalEventTemplate\", weekviewAllDayEventSectionTemplate: \"weekviewAllDayEventSectionTemplate\", weekviewNormalEventSectionTemplate: \"weekviewNormalEventSectionTemplate\", dayviewAllDayEventSectionTemplate: \"dayviewAllDayEventSectionTemplate\", dayviewNormalEventSectionTemplate: \"dayviewNormalEventSectionTemplate\", weekviewInactiveAllDayEventSectionTemplate: \"weekviewInactiveAllDayEventSectionTemplate\", weekviewInactiveNormalEventSectionTemplate: \"weekviewInactiveNormalEventSectionTemplate\", dayviewInactiveAllDayEventSectionTemplate: \"dayviewInactiveAllDayEventSectionTemplate\", dayviewInactiveNormalEventSectionTemplate: \"dayviewInactiveNormalEventSectionTemplate\", dateFormatter: \"dateFormatter\", sliderOptions: \"sliderOptions\" }, outputs: { onCurrentDateChanged: \"onCurrentDateChanged\", onRangeChanged: \"onRangeChanged\", onEventSelected: \"onEventSelected\", onTimeSelected: \"onTimeSelected\", onDayHeaderSelected: \"onDayHeaderSelected\", onTitleChanged: \"onTitleChanged\" }, features: [ɵngcc0.ɵɵProvidersFeature([CalendarService])], decls: 24, vars: 7, consts: [[\"monthviewDefaultDisplayEventTemplate\", \"\"], [\"monthviewDefaultEventDetailTemplate\", \"\"], [\"defaultWeekviewHeaderTemplate\", \"\"], [\"defaultAllDayEventTemplate\", \"\"], [\"defaultNormalEventTemplate\", \"\"], [\"defaultWeekViewAllDayEventSectionTemplate\", \"\"], [\"defaultDayViewAllDayEventSectionTemplate\", \"\"], [\"defaultNormalEventSectionTemplate\", \"\"], [\"defaultInactiveAllDayEventSectionTemplate\", \"\"], [\"defaultInactiveNormalEventSectionTemplate\", \"\"], [3, \"ngSwitch\"], [3, \"formatDay\", \"formatDayHeader\", \"formatMonthTitle\", \"startingDayMonth\", \"showEventDetail\", \"noEventsLabel\", \"autoSelect\", \"eventSource\", \"markDisabled\", \"monthviewDisplayEventTemplate\", \"monthviewInactiveDisplayEventTemplate\", \"monthviewEventDetailTemplate\", \"locale\", \"dateFormatter\", \"dir\", \"lockSwipeToPrev\", \"lockSwipes\", \"sliderOptions\", \"onRangeChanged\", \"onEventSelected\", \"onTimeSelected\", \"onTitleChanged\", 4, \"ngSwitchCase\"], [3, \"formatWeekTitle\", \"formatWeekViewDayHeader\", \"formatHourColumn\", \"startingDayWeek\", \"allDayLabel\", \"hourParts\", \"autoSelect\", \"hourSegments\", \"eventSource\", \"markDisabled\", \"weekviewHeaderTemplate\", \"weekviewAllDayEventTemplate\", \"weekviewNormalEventTemplate\", \"weekviewAllDayEventSectionTemplate\", \"weekviewNormalEventSectionTemplate\", \"weekviewInactiveAllDayEventSectionTemplate\", \"weekviewInactiveNormalEventSectionTemplate\", \"locale\", \"dateFormatter\", \"dir\", \"scrollToHour\", \"preserveScrollPosition\", \"lockSwipeToPrev\", \"lockSwipes\", \"startHour\", \"endHour\", \"sliderOptions\", \"onRangeChanged\", \"onEventSelected\", \"onDayHeaderSelected\", \"onTimeSelected\", \"onTitleChanged\", 4, \"ngSwitchCase\"], [3, \"formatDayTitle\", \"formatHourColumn\", \"allDayLabel\", \"hourParts\", \"hourSegments\", \"eventSource\", \"markDisabled\", \"dayviewAllDayEventTemplate\", \"dayviewNormalEventTemplate\", \"dayviewAllDayEventSectionTemplate\", \"dayviewNormalEventSectionTemplate\", \"dayviewInactiveAllDayEventSectionTemplate\", \"dayviewInactiveNormalEventSectionTemplate\", \"locale\", \"dateFormatter\", \"dir\", \"scrollToHour\", \"preserveScrollPosition\", \"lockSwipeToPrev\", \"lockSwipes\", \"startHour\", \"endHour\", \"sliderOptions\", \"onRangeChanged\", \"onEventSelected\", \"onTimeSelected\", \"onTitleChanged\", 4, \"ngSwitchCase\"], [\"class\", \"event-detail-container\", \"has-bouncing\", \"false\", \"overflow-scroll\", \"false\", 4, \"ngIf\"], [\"has-bouncing\", \"false\", \"overflow-scroll\", \"false\", 1, \"event-detail-container\"], [3, \"click\", 4, \"ngFor\", \"ngForOf\"], [4, \"ngIf\"], [3, \"click\"], [\"class\", \"monthview-eventdetail-timecolumn\", 4, \"ngIf\"], [1, \"event-detail\"], [1, \"monthview-eventdetail-timecolumn\"], [1, \"no-events-label\"], [1, \"calendar-event-inner\"], [3, \"ngClass\", \"ngStyle\", 4, \"ngIf\"], [3, \"ngClass\", \"ngStyle\"], [\"class\", \"calendar-event\", \"tappable\", \"\", 3, \"ngStyle\", \"click\", 4, \"ngFor\", \"ngForOf\"], [\"tappable\", \"\", 1, \"calendar-event\", 3, \"ngStyle\", \"click\"], [3, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [3, \"ngClass\", 4, \"ngIf\"], [3, \"ngClass\"], [3, \"formatDay\", \"formatDayHeader\", \"formatMonthTitle\", \"startingDayMonth\", \"showEventDetail\", \"noEventsLabel\", \"autoSelect\", \"eventSource\", \"markDisabled\", \"monthviewDisplayEventTemplate\", \"monthviewInactiveDisplayEventTemplate\", \"monthviewEventDetailTemplate\", \"locale\", \"dateFormatter\", \"dir\", \"lockSwipeToPrev\", \"lockSwipes\", \"sliderOptions\", \"onRangeChanged\", \"onEventSelected\", \"onTimeSelected\", \"onTitleChanged\"], [3, \"formatWeekTitle\", \"formatWeekViewDayHeader\", \"formatHourColumn\", \"startingDayWeek\", \"allDayLabel\", \"hourParts\", \"autoSelect\", \"hourSegments\", \"eventSource\", \"markDisabled\", \"weekviewHeaderTemplate\", \"weekviewAllDayEventTemplate\", \"weekviewNormalEventTemplate\", \"weekviewAllDayEventSectionTemplate\", \"weekviewNormalEventSectionTemplate\", \"weekviewInactiveAllDayEventSectionTemplate\", \"weekviewInactiveNormalEventSectionTemplate\", \"locale\", \"dateFormatter\", \"dir\", \"scrollToHour\", \"preserveScrollPosition\", \"lockSwipeToPrev\", \"lockSwipes\", \"startHour\", \"endHour\", \"sliderOptions\", \"onRangeChanged\", \"onEventSelected\", \"onDayHeaderSelected\", \"onTimeSelected\", \"onTitleChanged\"], [3, \"formatDayTitle\", \"formatHourColumn\", \"allDayLabel\", \"hourParts\", \"hourSegments\", \"eventSource\", \"markDisabled\", \"dayviewAllDayEventTemplate\", \"dayviewNormalEventTemplate\", \"dayviewAllDayEventSectionTemplate\", \"dayviewNormalEventSectionTemplate\", \"dayviewInactiveAllDayEventSectionTemplate\", \"dayviewInactiveNormalEventSectionTemplate\", \"locale\", \"dateFormatter\", \"dir\", \"scrollToHour\", \"preserveScrollPosition\", \"lockSwipeToPrev\", \"lockSwipes\", \"startHour\", \"endHour\", \"sliderOptions\", \"onRangeChanged\", \"onEventSelected\", \"onTimeSelected\", \"onTitleChanged\"]], template: function CalendarComponent_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵtemplate(0, CalendarComponent_ng_template_0_Template, 1, 1, \"ng-template\", null, 0, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵtemplate(2, CalendarComponent_ng_template_2_Template, 1, 1, \"ng-template\", null, 1, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵtemplate(4, CalendarComponent_ng_template_4_Template, 1, 1, \"ng-template\", null, 2, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵtemplate(6, CalendarComponent_ng_template_6_Template, 2, 1, \"ng-template\", null, 3, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵtemplate(8, CalendarComponent_ng_template_8_Template, 2, 1, \"ng-template\", null, 4, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵtemplate(10, CalendarComponent_ng_template_10_Template, 1, 1, \"ng-template\", null, 5, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵtemplate(12, CalendarComponent_ng_template_12_Template, 1, 1, \"ng-template\", null, 6, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵtemplate(14, CalendarComponent_ng_template_14_Template, 1, 1, \"ng-template\", null, 7, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵtemplate(16, CalendarComponent_ng_template_16_Template, 0, 0, \"ng-template\", null, 8, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵtemplate(18, CalendarComponent_ng_template_18_Template, 0, 0, \"ng-template\", null, 9, ɵngcc0.ɵɵtemplateRefExtractor);\n ɵngcc0.ɵɵelementStart(20, \"div\", 10);\n ɵngcc0.ɵɵtemplate(21, CalendarComponent_monthview_21_Template, 1, 18, \"monthview\", 11);\n ɵngcc0.ɵɵtemplate(22, CalendarComponent_weekview_22_Template, 1, 27, \"weekview\", 12);\n ɵngcc0.ɵɵtemplate(23, CalendarComponent_dayview_23_Template, 1, 23, \"dayview\", 13);\n ɵngcc0.ɵɵelementEnd();\n } if (rf & 2) {\n ɵngcc0.ɵɵadvance(20);\n ɵngcc0.ɵɵclassMapInterpolate1(\"\", ctx.calendarMode, \"view-container\");\n ɵngcc0.ɵɵproperty(\"ngSwitch\", ctx.calendarMode);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngSwitchCase\", \"month\");\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngSwitchCase\", \"week\");\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngSwitchCase\", \"day\");\n } }, dependencies: [ɵngcc1.IonItem, ɵngcc1.IonList, ɵngcc2.NgClass, ɵngcc2.NgForOf, ɵngcc2.NgIf, ɵngcc2.NgTemplateOutlet, ɵngcc2.NgStyle, ɵngcc2.NgSwitch, ɵngcc2.NgSwitchCase, MonthViewComponent, WeekViewComponent, DayViewComponent, ɵngcc2.DatePipe], styles: [\"[_nghost-%COMP%] > div[_ngcontent-%COMP%] { height: 100%; }\\n\\n .event-detail-container[_ngcontent-%COMP%] {\\n border-top: 2px darkgrey solid;\\n }\\n\\n .no-events-label[_ngcontent-%COMP%] {\\n font-weight: bold;\\n color: darkgrey;\\n text-align: center;\\n }\\n\\n .event-detail[_ngcontent-%COMP%] {\\n cursor: pointer;\\n white-space: nowrap;\\n text-overflow: ellipsis;\\n }\\n\\n .monthview-eventdetail-timecolumn[_ngcontent-%COMP%] {\\n width: 110px;\\n overflow: hidden;\\n }\\n\\n .calendar-event-inner[_ngcontent-%COMP%] {\\n overflow: hidden;\\n background-color: #3a87ad;\\n color: white;\\n height: 100%;\\n width: 100%;\\n padding: 2px;\\n line-height: 15px;\\n text-align: initial;\\n }\\n\\n @media (max-width: 750px) {\\n .calendar-event-inner[_ngcontent-%COMP%] {\\n font-size: 12px;\\n }\\n }\"] });\nCalendarComponent.ctorParameters = () => [\n { type: CalendarService },\n { type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] }\n];\n__decorate([\n Input()\n], CalendarComponent.prototype, \"currentDate\", null);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"eventSource\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"calendarMode\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"formatDay\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"formatDayHeader\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"formatDayTitle\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"formatWeekTitle\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"formatMonthTitle\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"formatWeekViewDayHeader\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"formatHourColumn\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"showEventDetail\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"startingDayMonth\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"startingDayWeek\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"allDayLabel\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"noEventsLabel\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"queryMode\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"step\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"timeInterval\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"autoSelect\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"markDisabled\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"monthviewDisplayEventTemplate\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"monthviewInactiveDisplayEventTemplate\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"monthviewEventDetailTemplate\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"weekviewHeaderTemplate\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"weekviewAllDayEventTemplate\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"weekviewNormalEventTemplate\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"dayviewAllDayEventTemplate\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"dayviewNormalEventTemplate\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"weekviewAllDayEventSectionTemplate\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"weekviewNormalEventSectionTemplate\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"dayviewAllDayEventSectionTemplate\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"dayviewNormalEventSectionTemplate\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"weekviewInactiveAllDayEventSectionTemplate\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"weekviewInactiveNormalEventSectionTemplate\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"dayviewInactiveAllDayEventSectionTemplate\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"dayviewInactiveNormalEventSectionTemplate\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"dateFormatter\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"dir\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"scrollToHour\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"preserveScrollPosition\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"lockSwipeToPrev\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"lockSwipes\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"locale\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"startHour\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"endHour\", void 0);\n__decorate([\n Input()\n], CalendarComponent.prototype, \"sliderOptions\", void 0);\n__decorate([\n Output()\n], CalendarComponent.prototype, \"onCurrentDateChanged\", void 0);\n__decorate([\n Output()\n], CalendarComponent.prototype, \"onRangeChanged\", void 0);\n__decorate([\n Output()\n], CalendarComponent.prototype, \"onEventSelected\", void 0);\n__decorate([\n Output()\n], CalendarComponent.prototype, \"onTimeSelected\", void 0);\n__decorate([\n Output()\n], CalendarComponent.prototype, \"onDayHeaderSelected\", void 0);\n__decorate([\n Output()\n], CalendarComponent.prototype, \"onTitleChanged\", void 0);\nCalendarComponent = __decorate([ __param(1, Inject(LOCALE_ID))\n], CalendarComponent);\n\nlet initPositionScrollComponent = class initPositionScrollComponent {\n constructor(el) {\n this.onScroll = new EventEmitter();\n this.listenerAttached = false;\n this.element = el;\n }\n ngOnChanges(changes) {\n let initPosition = changes['initPosition'];\n if (initPosition && initPosition.currentValue !== undefined && this.scrollContent) {\n const me = this;\n setTimeout(function () {\n me.scrollContent.scrollTop = initPosition.currentValue;\n }, 0);\n }\n }\n ngAfterViewInit() {\n const scrollContent = this.scrollContent = this.element.nativeElement.querySelector('.scroll-content');\n if (this.initPosition !== undefined) {\n scrollContent.scrollTop = this.initPosition;\n }\n if (this.emitEvent && !this.listenerAttached) {\n let onScroll = this.onScroll;\n this.handler = function () {\n onScroll.emit(scrollContent.scrollTop);\n };\n this.listenerAttached = true;\n scrollContent.addEventListener('scroll', this.handler);\n }\n }\n ngOnDestroy() {\n if (this.listenerAttached) {\n this.scrollContent.removeEventListener('scroll', this.handler);\n }\n }\n};\ninitPositionScrollComponent.ɵfac = function initPositionScrollComponent_Factory(t) { return new (t || initPositionScrollComponent)(ɵngcc0.ɵɵdirectiveInject(ɵngcc0.ElementRef)); };\ninitPositionScrollComponent.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: initPositionScrollComponent, selectors: [[\"init-position-scroll\"]], inputs: { initPosition: \"initPosition\", emitEvent: \"emitEvent\" }, outputs: { onScroll: \"onScroll\" }, features: [ɵngcc0.ɵɵNgOnChangesFeature], ngContentSelectors: _c20, decls: 2, vars: 0, consts: [[1, \"scroll-content\", 2, \"height\", \"100%\"]], template: function initPositionScrollComponent_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵprojectionDef();\n ɵngcc0.ɵɵelementStart(0, \"div\", 0);\n ɵngcc0.ɵɵprojection(1);\n ɵngcc0.ɵɵelementEnd();\n } }, styles: [\"\\n .scroll-content {\\n overflow-y: auto;\\n overflow-x: hidden;\\n } \\n \"], encapsulation: 2 });\ninitPositionScrollComponent.ctorParameters = () => [\n { type: ElementRef }\n];\n__decorate([\n Input()\n], initPositionScrollComponent.prototype, \"initPosition\", void 0);\n__decorate([\n Input()\n], initPositionScrollComponent.prototype, \"emitEvent\", void 0);\n__decorate([\n Output()\n], initPositionScrollComponent.prototype, \"onScroll\", void 0);\n\nlet NgCalendarModule = class NgCalendarModule {\n};\nNgCalendarModule.ɵfac = function NgCalendarModule_Factory(t) { return new (t || NgCalendarModule)(); };\nNgCalendarModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: NgCalendarModule });\nNgCalendarModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({ imports: [IonicModule, CommonModule] });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(CalendarService, [{\n type: Injectable\n }], function () { return []; }, null); })();\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(MonthViewComponent, [{\n type: Component,\n args: [{ selector: 'monthview', template: `\n <div>\n <ion-slides #monthSlider [options]=\"sliderOptions\" [dir]=\"dir\" (ionSlideDidChange)=\"onSlideChanged()\">\n <ion-slide>\n <table *ngIf=\"0===currentViewIndex\" class=\"table table-bordered table-fixed monthview-datetable\">\n <thead>\n <tr>\n <th *ngFor=\"let dayHeader of views[0].dayHeaders\">\n <small>{{dayHeader}}</small>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let row of [0,1,2,3,4,5]\">\n <td *ngFor=\"let col of [0,1,2,3,4,5,6]\" tappable (click)=\"select(views[0].dates[row*7+col])\"\n [ngClass]=\"getHighlightClass(views[0].dates[row*7+col])\">\n <ng-template [ngTemplateOutlet]=\"monthviewDisplayEventTemplate\"\n [ngTemplateOutletContext]=\"{view: views[0], row: row, col: col}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n <table *ngIf=\"0!==currentViewIndex\" class=\"table table-bordered table-fixed monthview-datetable\">\n <thead>\n <tr class=\"text-center\">\n <th *ngFor=\"let dayHeader of views[0].dayHeaders\">\n <small>{{dayHeader}}</small>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let row of [0,1,2,3,4,5]\">\n <td *ngFor=\"let col of [0,1,2,3,4,5,6]\">\n <ng-template [ngTemplateOutlet]=\"monthviewInactiveDisplayEventTemplate\"\n [ngTemplateOutletContext]=\"{view: views[0], row: row, col: col}\">\n </ng-template>\n </td>\n <tr>\n </tbody>\n </table>\n </ion-slide>\n <ion-slide>\n <table *ngIf=\"1===currentViewIndex\" class=\"table table-bordered table-fixed monthview-datetable\">\n <thead>\n <tr>\n <th *ngFor=\"let dayHeader of views[1].dayHeaders\">\n <small>{{dayHeader}}</small>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let row of [0,1,2,3,4,5]\">\n <td *ngFor=\"let col of [0,1,2,3,4,5,6]\" tappable (click)=\"select(views[1].dates[row*7+col])\"\n [ngClass]=\"getHighlightClass(views[1].dates[row*7+col])\">\n <ng-template [ngTemplateOutlet]=\"monthviewDisplayEventTemplate\"\n [ngTemplateOutletContext]=\"{view: views[1], row: row, col: col}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n <table *ngIf=\"1!==currentViewIndex\" class=\"table table-bordered table-fixed monthview-datetable\">\n <thead>\n <tr class=\"text-center\">\n <th *ngFor=\"let dayHeader of views[1].dayHeaders\">\n <small>{{dayHeader}}</small>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let row of [0,1,2,3,4,5]\">\n <td *ngFor=\"let col of [0,1,2,3,4,5,6]\">\n <ng-template [ngTemplateOutlet]=\"monthviewInactiveDisplayEventTemplate\"\n [ngTemplateOutletContext]=\"{view: views[1], row: row, col: col}\">\n </ng-template>\n </td>\n <tr>\n </tbody>\n </table>\n </ion-slide>\n <ion-slide>\n <table *ngIf=\"2===currentViewIndex\" class=\"table table-bordered table-fixed monthview-datetable\">\n <thead>\n <tr>\n <th *ngFor=\"let dayHeader of views[2].dayHeaders\">\n <small>{{dayHeader}}</small>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let row of [0,1,2,3,4,5]\">\n <td *ngFor=\"let col of [0,1,2,3,4,5,6]\" tappable (click)=\"select(views[2].dates[row*7+col])\"\n [ngClass]=\"getHighlightClass(views[2].dates[row*7+col])\">\n <ng-template [ngTemplateOutlet]=\"monthviewDisplayEventTemplate\"\n [ngTemplateOutletContext]=\"{view: views[2], row: row, col: col}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n <table *ngIf=\"2!==currentViewIndex\" class=\"table table-bordered table-fixed monthview-datetable\">\n <thead>\n <tr class=\"text-center\">\n <th *ngFor=\"let dayHeader of views[2].dayHeaders\">\n <small>{{dayHeader}}</small>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let row of [0,1,2,3,4,5]\">\n <td *ngFor=\"let col of [0,1,2,3,4,5,6]\">\n <ng-template [ngTemplateOutlet]=\"monthviewInactiveDisplayEventTemplate\"\n [ngTemplateOutletContext]=\"{view: views[2], row: row, col: col}\">\n </ng-template>\n </td>\n <tr>\n </tbody>\n </table>\n </ion-slide>\n </ion-slides>\n <ng-template [ngTemplateOutlet]=\"monthviewEventDetailTemplate\"\n [ngTemplateOutletContext]=\"{showEventDetail:showEventDetail, selectedDate: selectedDate, noEventsLabel: noEventsLabel}\">\n </ng-template>\n </div>\n `, styles: [\"\\n .text-muted {\\n color: #999;\\n }\\n\\n .table-fixed {\\n table-layout: fixed;\\n }\\n\\n .table {\\n width: 100%;\\n max-width: 100%;\\n background-color: transparent;\\n }\\n\\n .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td,\\n .table > tbody > tr > td, .table > tfoot > tr > td {\\n padding: 8px;\\n line-height: 20px;\\n vertical-align: top;\\n }\\n\\n .table > thead > tr > th {\\n vertical-align: bottom;\\n border-bottom: 2px solid #ddd;\\n }\\n\\n .table > thead:first-child > tr:first-child > th, .table > thead:first-child > tr:first-child > td {\\n border-top: 0\\n }\\n\\n .table > tbody + tbody {\\n border-top: 2px solid #ddd;\\n }\\n\\n .table-bordered {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th,\\n .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered > thead > tr > th, .table-bordered > thead > tr > td {\\n border-bottom-width: 2px;\\n }\\n\\n .table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th {\\n background-color: #f9f9f9\\n }\\n\\n .monthview-primary-with-event {\\n background-color: #3a87ad;\\n color: white;\\n }\\n\\n .monthview-current {\\n background-color: #f0f0f0;\\n }\\n\\n .monthview-selected {\\n background-color: #009900;\\n color: white;\\n }\\n\\n .monthview-datetable td.monthview-disabled {\\n color: lightgrey;\\n cursor: default;\\n }\\n\\n .monthview-datetable th {\\n text-align: center;\\n }\\n\\n .monthview-datetable td {\\n cursor: pointer;\\n text-align: center;\\n }\\n\\n .monthview-secondary-with-event {\\n background-color: #d9edf7;\\n }\\n\\n ::-webkit-scrollbar,\\n *::-webkit-scrollbar {\\n display: none;\\n }\\n \"] }]\n }], function () { return [{ type: CalendarService }]; }, { autoSelect: [{\n type: Input\n }], dir: [{\n type: Input\n }], onRangeChanged: [{\n type: Output\n }], onEventSelected: [{\n type: Output\n }], onTimeSelected: [{\n type: Output\n }], onTitleChanged: [{\n type: Output\n }], sliderOptions: [{\n type: Input\n }], slider: [{\n type: ViewChild,\n args: ['monthSlider', { static: true }]\n }], monthviewDisplayEventTemplate: [{\n type: Input\n }], monthviewInactiveDisplayEventTemplate: [{\n type: Input\n }], monthviewEventDetailTemplate: [{\n type: Input\n }], formatDay: [{\n type: Input\n }], formatDayHeader: [{\n type: Input\n }], formatMonthTitle: [{\n type: Input\n }], eventSource: [{\n type: Input\n }], startingDayMonth: [{\n type: Input\n }], showEventDetail: [{\n type: Input\n }], noEventsLabel: [{\n type: Input\n }], markDisabled: [{\n type: Input\n }], locale: [{\n type: Input\n }], dateFormatter: [{\n type: Input\n }], lockSwipeToPrev: [{\n type: Input\n }], lockSwipes: [{\n type: Input\n }] }); })();\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(WeekViewComponent, [{\n type: Component,\n args: [{ selector: 'weekview', template: `\n <ion-slides #weekSlider [options]=\"sliderOptions\" [dir]=\"dir\" (ionSlideDidChange)=\"onSlideChanged()\"\n class=\"slides-container\">\n <ion-slide class=\"slide-container\">\n <table class=\"table table-bordered table-fixed weekview-header\">\n <thead>\n <tr>\n <th class=\"calendar-hour-column\"></th>\n <th class=\"weekview-header text-center\" *ngFor=\"let date of views[0].dates\"\n [ngClass]=\"getHighlightClass(date)\"\n (click)=\"daySelected(date)\">\n <ng-template [ngTemplateOutlet]=\"weekviewHeaderTemplate\"\n [ngTemplateOutletContext]=\"{viewDate:date}\">\n </ng-template>\n </th>\n </tr>\n </thead>\n </table>\n <div *ngIf=\"0===currentViewIndex\">\n <div class=\"weekview-allday-table\">\n <div class=\"weekview-allday-label\">{{allDayLabel}}</div>\n <div class=\"weekview-allday-content-wrapper scroll-content\">\n <table class=\"table table-fixed weekview-allday-content-table\">\n <tbody>\n <tr>\n <td *ngFor=\"let day of views[0].dates\" class=\"calendar-cell\">\n <ng-template [ngTemplateOutlet]=\"weekviewAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{day:day, eventTemplate:weekviewAllDayEventTemplate}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <init-position-scroll class=\"weekview-normal-event-container\" [initPosition]=\"initScrollPosition\"\n [emitEvent]=\"preserveScrollPosition\" (onScroll)=\"setScrollPosition($event)\">\n <table class=\"table table-bordered table-fixed weekview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let row of views[0].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td *ngFor=\"let tm of row\" class=\"calendar-cell\" tappable\n (click)=\"select(tm.time, tm.events)\">\n <ng-template [ngTemplateOutlet]=\"weekviewNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts, eventTemplate:weekviewNormalEventTemplate}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n </div>\n <div *ngIf=\"0!==currentViewIndex\">\n <div class=\"weekview-allday-table\">\n <div class=\"weekview-allday-label\">{{allDayLabel}}</div>\n <div class=\"weekview-allday-content-wrapper scroll-content\">\n <table class=\"table table-fixed weekview-allday-content-table\">\n <tbody>\n <tr>\n <td *ngFor=\"let day of views[0].dates\" class=\"calendar-cell\">\n <ng-template [ngTemplateOutlet]=\"weekviewInactiveAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{day:day}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <init-position-scroll class=\"weekview-normal-event-container\" [initPosition]=\"initScrollPosition\">\n <table class=\"table table-bordered table-fixed weekview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let row of views[0].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td *ngFor=\"let tm of row\" class=\"calendar-cell\">\n <ng-template [ngTemplateOutlet]=\"weekviewInactiveNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n </div>\n </ion-slide>\n <ion-slide class=\"slide-container\">\n <table class=\"table table-bordered table-fixed weekview-header\">\n <thead>\n <tr>\n <th class=\"calendar-hour-column\"></th>\n <th class=\"weekview-header text-center\" *ngFor=\"let date of views[1].dates\"\n [ngClass]=\"getHighlightClass(date)\"\n (click)=\"daySelected(date)\">\n <ng-template [ngTemplateOutlet]=\"weekviewHeaderTemplate\"\n [ngTemplateOutletContext]=\"{viewDate:date}\">\n </ng-template>\n </th>\n </tr>\n </thead>\n </table>\n <div *ngIf=\"1===currentViewIndex\">\n <div class=\"weekview-allday-table\">\n <div class=\"weekview-allday-label\">{{allDayLabel}}</div>\n <div class=\"weekview-allday-content-wrapper scroll-content\">\n <table class=\"table table-fixed weekview-allday-content-table\">\n <tbody>\n <tr>\n <td *ngFor=\"let day of views[1].dates\" class=\"calendar-cell\">\n <ng-template [ngTemplateOutlet]=\"weekviewAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{day:day, eventTemplate:weekviewAllDayEventTemplate}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <init-position-scroll class=\"weekview-normal-event-container\" [initPosition]=\"initScrollPosition\"\n [emitEvent]=\"preserveScrollPosition\" (onScroll)=\"setScrollPosition($event)\">\n <table class=\"table table-bordered table-fixed weekview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let row of views[1].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td *ngFor=\"let tm of row\" class=\"calendar-cell\" tappable\n (click)=\"select(tm.time, tm.events)\">\n <div [ngClass]=\"{'calendar-event-wrap': tm.events}\" *ngIf=\"tm.events\">\n <ng-template [ngTemplateOutlet]=\"weekviewNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts, eventTemplate:weekviewNormalEventTemplate}\">\n </ng-template>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n </div>\n <div *ngIf=\"1!==currentViewIndex\">\n <div class=\"weekview-allday-table\">\n <div class=\"weekview-allday-label\">{{allDayLabel}}</div>\n <div class=\"weekview-allday-content-wrapper scroll-content\">\n <table class=\"table table-fixed weekview-allday-content-table\">\n <tbody>\n <tr>\n <td *ngFor=\"let day of views[1].dates\" class=\"calendar-cell\">\n <ng-template [ngTemplateOutlet]=\"weekviewInactiveAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{day:day}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <init-position-scroll class=\"weekview-normal-event-container\" [initPosition]=\"initScrollPosition\">\n <table class=\"table table-bordered table-fixed weekview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let row of views[1].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td *ngFor=\"let tm of row\" class=\"calendar-cell\">\n <div [ngClass]=\"{'calendar-event-wrap': tm.events}\" *ngIf=\"tm.events\">\n <ng-template [ngTemplateOutlet]=\"weekviewInactiveNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts}\">\n </ng-template>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n </div>\n </ion-slide>\n <ion-slide class=\"slide-container\">\n <table class=\"table table-bordered table-fixed weekview-header\">\n <thead>\n <tr>\n <th class=\"calendar-hour-column\"></th>\n <th class=\"weekview-header text-center\" *ngFor=\"let date of views[2].dates\"\n [ngClass]=\"getHighlightClass(date)\"\n (click)=\"daySelected(date)\">\n <ng-template [ngTemplateOutlet]=\"weekviewHeaderTemplate\"\n [ngTemplateOutletContext]=\"{viewDate:date}\">\n </ng-template>\n </th>\n </tr>\n </thead>\n </table>\n <div *ngIf=\"2===currentViewIndex\">\n <div class=\"weekview-allday-table\">\n <div class=\"weekview-allday-label\">{{allDayLabel}}</div>\n <div class=\"weekview-allday-content-wrapper scroll-content\">\n <table class=\"table table-fixed weekview-allday-content-table\">\n <tbody>\n <tr>\n <td *ngFor=\"let day of views[2].dates\" class=\"calendar-cell\">\n <ng-template [ngTemplateOutlet]=\"weekviewAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{day:day, eventTemplate:weekviewAllDayEventTemplate}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <init-position-scroll class=\"weekview-normal-event-container\" [initPosition]=\"initScrollPosition\"\n [emitEvent]=\"preserveScrollPosition\" (onScroll)=\"setScrollPosition($event)\">\n <table class=\"table table-bordered table-fixed weekview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let row of views[2].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td *ngFor=\"let tm of row\" class=\"calendar-cell\" tappable\n (click)=\"select(tm.time, tm.events)\">\n <div [ngClass]=\"{'calendar-event-wrap': tm.events}\" *ngIf=\"tm.events\">\n <ng-template [ngTemplateOutlet]=\"weekviewNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts, eventTemplate:weekviewNormalEventTemplate}\">\n </ng-template>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n </div>\n <div *ngIf=\"2!==currentViewIndex\">\n <div class=\"weekview-allday-table\">\n <div class=\"weekview-allday-label\">{{allDayLabel}}</div>\n <div class=\"weekview-allday-content-wrapper scroll-content\">\n <table class=\"table table-fixed weekview-allday-content-table\">\n <tbody>\n <tr>\n <td *ngFor=\"let day of views[2].dates\" class=\"calendar-cell\">\n <ng-template [ngTemplateOutlet]=\"weekviewInactiveAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{day:day}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <init-position-scroll class=\"weekview-normal-event-container\" [initPosition]=\"initScrollPosition\">\n <table class=\"table table-bordered table-fixed weekview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let row of views[2].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td *ngFor=\"let tm of row\" class=\"calendar-cell\">\n <div [ngClass]=\"{'calendar-event-wrap': tm.events}\" *ngIf=\"tm.events\">\n <ng-template [ngTemplateOutlet]=\"weekviewInactiveNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts}\">\n </ng-template>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n </div>\n </ion-slide>\n </ion-slides>\n `, encapsulation: ViewEncapsulation.None, styles: [\"\\n .table-fixed {\\n table-layout: fixed;\\n }\\n\\n .table {\\n width: 100%;\\n max-width: 100%;\\n background-color: transparent;\\n }\\n\\n .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td,\\n .table > tbody > tr > td, .table > tfoot > tr > td {\\n padding: 8px;\\n line-height: 20px;\\n vertical-align: top;\\n }\\n\\n .table > thead > tr > th {\\n vertical-align: bottom;\\n border-bottom: 2px solid #ddd;\\n }\\n\\n .table > thead:first-child > tr:first-child > th, .table > thead:first-child > tr:first-child > td {\\n border-top: 0\\n }\\n\\n .table > tbody + tbody {\\n border-top: 2px solid #ddd;\\n }\\n\\n .table-bordered {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th,\\n .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered > thead > tr > th, .table-bordered > thead > tr > td {\\n border-bottom-width: 2px;\\n }\\n\\n .table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th {\\n background-color: #f9f9f9\\n }\\n\\n .calendar-hour-column {\\n width: 50px;\\n white-space: nowrap;\\n }\\n\\n .calendar-event-wrap {\\n position: relative;\\n width: 100%;\\n height: 100%;\\n }\\n\\n .calendar-event {\\n position: absolute;\\n padding: 2px;\\n cursor: pointer;\\n z-index: 10000;\\n }\\n\\n .calendar-cell {\\n padding: 0 !important;\\n height: 37px;\\n }\\n\\n .slides-container {\\n height: 100%;\\n }\\n\\n .slide-container {\\n display: block;\\n }\\n\\n .weekview-allday-label {\\n float: left;\\n height: 100%;\\n line-height: 50px;\\n text-align: center;\\n width: 50px;\\n border-left: 1px solid #ddd;\\n }\\n\\n [dir=\\\"rtl\\\"] .weekview-allday-label {\\n float: right;\\n border-right: 1px solid #ddd;\\n }\\n\\n .weekview-allday-content-wrapper {\\n margin-left: 50px;\\n overflow: hidden;\\n height: 51px;\\n }\\n\\n [dir=\\\"rtl\\\"] .weekview-allday-content-wrapper {\\n margin-left: 0;\\n margin-right: 50px;\\n }\\n\\n .weekview-allday-content-table {\\n min-height: 50px;\\n }\\n\\n .weekview-allday-content-table td {\\n border-left: 1px solid #ddd;\\n border-right: 1px solid #ddd;\\n }\\n\\n .weekview-header th {\\n overflow: hidden;\\n white-space: nowrap;\\n font-size: 14px;\\n }\\n\\n .weekview-allday-table {\\n height: 50px;\\n position: relative;\\n border-bottom: 1px solid #ddd;\\n font-size: 14px;\\n }\\n\\n .weekview-normal-event-container {\\n margin-top: 87px;\\n overflow: hidden;\\n left: 0;\\n right: 0;\\n top: 0;\\n bottom: 0;\\n position: absolute;\\n font-size: 14px;\\n }\\n\\n .scroll-content {\\n overflow-y: auto;\\n overflow-x: hidden;\\n }\\n\\n ::-webkit-scrollbar,\\n *::-webkit-scrollbar {\\n display: none;\\n }\\n\\n .table > tbody > tr > td.calendar-hour-column {\\n padding-left: 0;\\n padding-right: 0;\\n vertical-align: middle;\\n }\\n\\n @media (max-width: 750px) {\\n .weekview-allday-label, .calendar-hour-column {\\n width: 31px;\\n font-size: 12px;\\n }\\n\\n .weekview-allday-label {\\n padding-top: 4px;\\n }\\n\\n .table > tbody > tr > td.calendar-hour-column {\\n padding-left: 0;\\n padding-right: 0;\\n vertical-align: middle;\\n line-height: 12px;\\n }\\n\\n .table > thead > tr > th.weekview-header {\\n padding-left: 0;\\n padding-right: 0;\\n font-size: 12px;\\n }\\n\\n .weekview-allday-label {\\n line-height: 20px;\\n }\\n\\n .weekview-allday-content-wrapper {\\n margin-left: 31px;\\n }\\n\\n [dir=\\\"rtl\\\"] .weekview-allday-content-wrapper {\\n margin-left: 0;\\n margin-right: 31px;\\n }\\n }\\n \"] }]\n }], function () { return [{ type: CalendarService }, { type: ɵngcc0.ElementRef }]; }, { class: [{\n type: HostBinding,\n args: ['class.weekview']\n }], autoSelect: [{\n type: Input\n }], dir: [{\n type: Input\n }], scrollToHour: [{\n type: Input\n }], onRangeChanged: [{\n type: Output\n }], onEventSelected: [{\n type: Output\n }], onTimeSelected: [{\n type: Output\n }], onDayHeaderSelected: [{\n type: Output\n }], onTitleChanged: [{\n type: Output\n }], sliderOptions: [{\n type: Input\n }], slider: [{\n type: ViewChild,\n args: ['weekSlider', { static: true }]\n }], weekviewHeaderTemplate: [{\n type: Input\n }], weekviewAllDayEventTemplate: [{\n type: Input\n }], weekviewNormalEventTemplate: [{\n type: Input\n }], weekviewAllDayEventSectionTemplate: [{\n type: Input\n }], weekviewNormalEventSectionTemplate: [{\n type: Input\n }], weekviewInactiveAllDayEventSectionTemplate: [{\n type: Input\n }], weekviewInactiveNormalEventSectionTemplate: [{\n type: Input\n }], formatWeekTitle: [{\n type: Input\n }], formatWeekViewDayHeader: [{\n type: Input\n }], formatHourColumn: [{\n type: Input\n }], startingDayWeek: [{\n type: Input\n }], allDayLabel: [{\n type: Input\n }], hourParts: [{\n type: Input\n }], eventSource: [{\n type: Input\n }], markDisabled: [{\n type: Input\n }], locale: [{\n type: Input\n }], dateFormatter: [{\n type: Input\n }], preserveScrollPosition: [{\n type: Input\n }], lockSwipeToPrev: [{\n type: Input\n }], lockSwipes: [{\n type: Input\n }], startHour: [{\n type: Input\n }], endHour: [{\n type: Input\n }], hourSegments: [{\n type: Input\n }] }); })();\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(DayViewComponent, [{\n type: Component,\n args: [{ selector: 'dayview', template: `\n <ion-slides #daySlider [options]=\"sliderOptions\" [dir]=\"dir\" (ionSlideDidChange)=\"onSlideChanged()\" class=\"slides-container\">\n <ion-slide class=\"slide-container\">\n <div class=\"dayview-allday-table\">\n <div class=\"dayview-allday-label\">{{allDayLabel}}</div>\n <div class=\"dayview-allday-content-wrapper scroll-content\">\n <table class=\"table table-bordered dayview-allday-content-table\">\n <tbody>\n <tr>\n <td class=\"calendar-cell\" [ngClass]=\"{'calendar-event-wrap':views[0].allDayEvents.length>0}\"\n [ngStyle]=\"{height: 25*views[0].allDayEvents.length+'px'}\"\n *ngIf=\"0===currentViewIndex\">\n <ng-template [ngTemplateOutlet]=\"dayviewAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{allDayEvents:views[0].allDayEvents,eventTemplate:dayviewAllDayEventTemplate}\">\n </ng-template>\n </td>\n <td class=\"calendar-cell\" *ngIf=\"0!==currentViewIndex\">\n <ng-template [ngTemplateOutlet]=\"dayviewInactiveAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{allDayEvents:views[0].allDayEvents}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <init-position-scroll *ngIf=\"0===currentViewIndex\" class=\"dayview-normal-event-container\"\n [initPosition]=\"initScrollPosition\" [emitEvent]=\"preserveScrollPosition\"\n (onScroll)=\"setScrollPosition($event)\">\n <table class=\"table table-bordered table-fixed dayview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let tm of views[0].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td class=\"calendar-cell\" tappable (click)=\"select(tm.time, tm.events)\">\n <ng-template [ngTemplateOutlet]=\"dayviewNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts, eventTemplate:dayviewNormalEventTemplate}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n <init-position-scroll *ngIf=\"0!==currentViewIndex\" class=\"dayview-normal-event-container\"\n [initPosition]=\"initScrollPosition\">\n <table class=\"table table-bordered table-fixed dayview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let tm of views[0].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td class=\"calendar-cell\">\n <ng-template [ngTemplateOutlet]=\"dayviewInactiveNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n </ion-slide>\n <ion-slide class=\"slide-container\">\n <div class=\"dayview-allday-table\">\n <div class=\"dayview-allday-label\">{{allDayLabel}}</div>\n <div class=\"dayview-allday-content-wrapper scroll-content\">\n <table class=\"table table-bordered dayview-allday-content-table\">\n <tbody>\n <tr>\n <td class=\"calendar-cell\" [ngClass]=\"{'calendar-event-wrap':views[1].allDayEvents.length>0}\"\n [ngStyle]=\"{height: 25*views[1].allDayEvents.length+'px'}\"\n *ngIf=\"1===currentViewIndex\">\n <ng-template [ngTemplateOutlet]=\"dayviewAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{allDayEvents:views[1].allDayEvents,eventTemplate:dayviewAllDayEventTemplate}\">\n </ng-template>\n </td>\n <td class=\"calendar-cell\" *ngIf=\"1!==currentViewIndex\">\n <ng-template [ngTemplateOutlet]=\"dayviewInactiveAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{allDayEvents:views[1].allDayEvents}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <init-position-scroll *ngIf=\"1===currentViewIndex\" class=\"dayview-normal-event-container\"\n [initPosition]=\"initScrollPosition\" [emitEvent]=\"preserveScrollPosition\"\n (onScroll)=\"setScrollPosition($event)\">\n <table class=\"table table-bordered table-fixed dayview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let tm of views[1].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td class=\"calendar-cell\" tappable (click)=\"select(tm.time, tm.events)\">\n <ng-template [ngTemplateOutlet]=\"dayviewNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts, eventTemplate:dayviewNormalEventTemplate}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n <init-position-scroll *ngIf=\"1!==currentViewIndex\" class=\"dayview-normal-event-container\"\n [initPosition]=\"initScrollPosition\">\n <table class=\"table table-bordered table-fixed dayview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let tm of views[1].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td class=\"calendar-cell\">\n <ng-template [ngTemplateOutlet]=\"dayviewInactiveNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n </ion-slide>\n <ion-slide class=\"slide-container\">\n <div class=\"dayview-allday-table\">\n <div class=\"dayview-allday-label\">{{allDayLabel}}</div>\n <div class=\"dayview-allday-content-wrapper scroll-content\">\n <table class=\"table table-bordered dayview-allday-content-table\">\n <tbody>\n <tr>\n <td class=\"calendar-cell\" [ngClass]=\"{'calendar-event-wrap':views[2].allDayEvents.length>0}\"\n [ngStyle]=\"{height: 25*views[2].allDayEvents.length+'px'}\"\n *ngIf=\"2===currentViewIndex\">\n <ng-template [ngTemplateOutlet]=\"dayviewAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{allDayEvents:views[2].allDayEvents,eventTemplate:dayviewAllDayEventTemplate}\">\n </ng-template>\n </td>\n <td class=\"calendar-cell\" *ngIf=\"2!==currentViewIndex\">\n <ng-template [ngTemplateOutlet]=\"dayviewInactiveAllDayEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{allDayEvents:views[2].allDayEvents}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n <init-position-scroll *ngIf=\"2===currentViewIndex\" class=\"dayview-normal-event-container\"\n [initPosition]=\"initScrollPosition\" [emitEvent]=\"preserveScrollPosition\"\n (onScroll)=\"setScrollPosition($event)\">\n <table class=\"table table-bordered table-fixed dayview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let tm of views[2].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td class=\"calendar-cell\" tappable (click)=\"select(tm.time, tm.events)\">\n <ng-template [ngTemplateOutlet]=\"dayviewNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts, eventTemplate:dayviewNormalEventTemplate}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n <init-position-scroll *ngIf=\"2!==currentViewIndex\" class=\"dayview-normal-event-container\"\n [initPosition]=\"initScrollPosition\">\n <table class=\"table table-bordered table-fixed dayview-normal-event-table\">\n <tbody>\n <tr *ngFor=\"let tm of views[2].rows; let i = index\">\n <td class=\"calendar-hour-column text-center\">\n {{hourColumnLabels[i]}}\n </td>\n <td class=\"calendar-cell\">\n <ng-template [ngTemplateOutlet]=\"dayviewInactiveNormalEventSectionTemplate\"\n [ngTemplateOutletContext]=\"{tm:tm, hourParts: hourParts}\">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n </init-position-scroll>\n </ion-slide>\n </ion-slides>\n `, encapsulation: ViewEncapsulation.None, styles: [\"\\n .table-fixed {\\n table-layout: fixed;\\n }\\n\\n .table {\\n width: 100%;\\n max-width: 100%;\\n background-color: transparent;\\n }\\n\\n .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td,\\n .table > tbody > tr > td, .table > tfoot > tr > td {\\n padding: 8px;\\n line-height: 20px;\\n vertical-align: top;\\n }\\n\\n .table > thead > tr > th {\\n vertical-align: bottom;\\n border-bottom: 2px solid #ddd;\\n }\\n\\n .table > thead:first-child > tr:first-child > th, .table > thead:first-child > tr:first-child > td {\\n border-top: 0\\n }\\n\\n .table > tbody + tbody {\\n border-top: 2px solid #ddd;\\n }\\n\\n .table-bordered {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th,\\n .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {\\n border: 1px solid #ddd;\\n }\\n\\n .table-bordered > thead > tr > th, .table-bordered > thead > tr > td {\\n border-bottom-width: 2px;\\n }\\n\\n .table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th {\\n background-color: #f9f9f9\\n }\\n\\n .calendar-hour-column {\\n width: 50px;\\n white-space: nowrap;\\n }\\n\\n .calendar-event-wrap {\\n position: relative;\\n width: 100%;\\n height: 100%;\\n }\\n\\n .calendar-event {\\n position: absolute;\\n padding: 2px;\\n cursor: pointer;\\n z-index: 10000;\\n }\\n\\n .slides-container {\\n height: 100%;\\n }\\n\\n .slide-container {\\n display: block;\\n }\\n\\n .calendar-cell {\\n padding: 0 !important;\\n height: 37px;\\n }\\n\\n .dayview-allday-label {\\n float: left;\\n height: 100%;\\n line-height: 50px;\\n text-align: center;\\n width: 50px;\\n border-left: 1px solid #ddd;\\n }\\n\\n [dir=\\\"rtl\\\"] .dayview-allday-label {\\n border-right: 1px solid #ddd;\\n float: right;\\n }\\n\\n .dayview-allday-content-wrapper {\\n margin-left: 50px;\\n overflow: hidden;\\n height: 51px;\\n }\\n\\n [dir=\\\"rtl\\\"] .dayview-allday-content-wrapper {\\n margin-left: 0;\\n margin-right: 50px;\\n }\\n\\n .dayview-allday-content-table {\\n min-height: 50px;\\n }\\n\\n .dayview-allday-content-table td {\\n border-left: 1px solid #ddd;\\n border-right: 1px solid #ddd;\\n }\\n\\n .dayview-allday-table {\\n height: 50px;\\n position: relative;\\n border-bottom: 1px solid #ddd;\\n font-size: 14px;\\n }\\n\\n .dayview-normal-event-container {\\n margin-top: 50px;\\n overflow: hidden;\\n left: 0;\\n right: 0;\\n top: 0;\\n bottom: 0;\\n position: absolute;\\n font-size: 14px;\\n }\\n\\n .scroll-content {\\n overflow-y: auto;\\n overflow-x: hidden;\\n }\\n\\n ::-webkit-scrollbar,\\n *::-webkit-scrollbar {\\n display: none;\\n }\\n\\n .table > tbody > tr > td.calendar-hour-column {\\n padding-left: 0;\\n padding-right: 0;\\n vertical-align: middle;\\n }\\n\\n @media (max-width: 750px) {\\n .dayview-allday-label, .calendar-hour-column {\\n width: 31px;\\n font-size: 12px;\\n }\\n\\n .dayview-allday-label {\\n padding-top: 4px;\\n }\\n\\n .table > tbody > tr > td.calendar-hour-column {\\n padding-left: 0;\\n padding-right: 0;\\n vertical-align: middle;\\n line-height: 12px;\\n }\\n\\n .dayview-allday-label {\\n line-height: 20px;\\n }\\n\\n .dayview-allday-content-wrapper {\\n margin-left: 31px;\\n }\\n\\n [dir=\\\"rtl\\\"] .dayview-allday-content-wrapper {\\n margin-left: 0;\\n margin-right: 31px;\\n }\\n }\\n \"] }]\n }], function () { return [{ type: CalendarService }, { type: ɵngcc0.ElementRef }]; }, { class: [{\n type: HostBinding,\n args: ['class.dayview']\n }], dir: [{\n type: Input\n }], scrollToHour: [{\n type: Input\n }], onRangeChanged: [{\n type: Output\n }], onEventSelected: [{\n type: Output\n }], onTimeSelected: [{\n type: Output\n }], onTitleChanged: [{\n type: Output\n }], sliderOptions: [{\n type: Input\n }], slider: [{\n type: ViewChild,\n args: ['daySlider', { static: true }]\n }], dayviewAllDayEventTemplate: [{\n type: Input\n }], dayviewNormalEventTemplate: [{\n type: Input\n }], dayviewAllDayEventSectionTemplate: [{\n type: Input\n }], dayviewNormalEventSectionTemplate: [{\n type: Input\n }], dayviewInactiveAllDayEventSectionTemplate: [{\n type: Input\n }], dayviewInactiveNormalEventSectionTemplate: [{\n type: Input\n }], formatHourColumn: [{\n type: Input\n }], formatDayTitle: [{\n type: Input\n }], allDayLabel: [{\n type: Input\n }], hourParts: [{\n type: Input\n }], eventSource: [{\n type: Input\n }], markDisabled: [{\n type: Input\n }], locale: [{\n type: Input\n }], dateFormatter: [{\n type: Input\n }], preserveScrollPosition: [{\n type: Input\n }], lockSwipeToPrev: [{\n type: Input\n }], lockSwipes: [{\n type: Input\n }], startHour: [{\n type: Input\n }], endHour: [{\n type: Input\n }], hourSegments: [{\n type: Input\n }] }); })();\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(CalendarComponent, [{\n type: Component,\n args: [{ selector: 'calendar', template: `\n <ng-template #monthviewDefaultDisplayEventTemplate let-view=\"view\" let-row=\"row\" let-col=\"col\">\n {{view.dates[row*7+col].label}}\n </ng-template>\n <ng-template #monthviewDefaultEventDetailTemplate let-showEventDetail=\"showEventDetail\" let-selectedDate=\"selectedDate\" let-noEventsLabel=\"noEventsLabel\">\n <ion-list class=\"event-detail-container\" has-bouncing=\"false\" *ngIf=\"showEventDetail\" overflow-scroll=\"false\">\n <ion-item *ngFor=\"let event of selectedDate?.events\" (click)=\"eventSelected(event)\">\n <span *ngIf=\"!event.allDay\" class=\"monthview-eventdetail-timecolumn\">{{event.startTime|date: 'HH:mm'}}\n -\n {{event.endTime|date: 'HH:mm'}}\n </span>\n <span *ngIf=\"event.allDay\" class=\"monthview-eventdetail-timecolumn\">{{allDayLabel}}</span>\n <span class=\"event-detail\"> | {{event.title}}</span>\n </ion-item>\n <ion-item *ngIf=\"selectedDate?.events.length==0\">\n <div class=\"no-events-label\">{{noEventsLabel}}</div>\n </ion-item>\n </ion-list>\n </ng-template>\n <ng-template #defaultWeekviewHeaderTemplate let-viewDate=\"viewDate\">\n {{ viewDate.dayHeader }}\n </ng-template>\n <ng-template #defaultAllDayEventTemplate let-displayEvent=\"displayEvent\">\n <div class=\"calendar-event-inner\">{{displayEvent.event.title}}</div>\n </ng-template>\n <ng-template #defaultNormalEventTemplate let-displayEvent=\"displayEvent\">\n <div class=\"calendar-event-inner\">{{displayEvent.event.title}}</div>\n </ng-template>\n <ng-template #defaultWeekViewAllDayEventSectionTemplate let-day=\"day\" let-eventTemplate=\"eventTemplate\">\n <div [ngClass]=\"{'calendar-event-wrap': day.events}\" *ngIf=\"day.events\"\n [ngStyle]=\"{height: 25*day.events.length+'px'}\">\n <div *ngFor=\"let displayEvent of day.events\" class=\"calendar-event\" tappable\n (click)=\"eventSelected(displayEvent.event)\"\n [ngStyle]=\"{top: 25*displayEvent.position+'px', width: 100*(displayEvent.endIndex-displayEvent.startIndex)+'%', height: '25px'}\">\n <ng-template [ngTemplateOutlet]=\"eventTemplate\"\n [ngTemplateOutletContext]=\"{displayEvent:displayEvent}\">\n </ng-template>\n </div>\n </div>\n </ng-template>\n <ng-template #defaultDayViewAllDayEventSectionTemplate let-allDayEvents=\"allDayEvents\" let-eventTemplate=\"eventTemplate\">\n <div *ngFor=\"let displayEvent of allDayEvents; let eventIndex=index\"\n class=\"calendar-event\" tappable\n (click)=\"eventSelected(displayEvent.event)\"\n [ngStyle]=\"{top: 25*eventIndex+'px',width: '100%',height:'25px'}\">\n <ng-template [ngTemplateOutlet]=\"eventTemplate\"\n [ngTemplateOutletContext]=\"{displayEvent:displayEvent}\">\n </ng-template>\n </div>\n </ng-template>\n <ng-template #defaultNormalEventSectionTemplate let-tm=\"tm\" let-hourParts=\"hourParts\" let-eventTemplate=\"eventTemplate\">\n <div [ngClass]=\"{'calendar-event-wrap': tm.events}\" *ngIf=\"tm.events\">\n <div *ngFor=\"let displayEvent of tm.events\" class=\"calendar-event\" tappable\n (click)=\"eventSelected(displayEvent.event)\"\n [ngStyle]=\"{top: (37*displayEvent.startOffset/hourParts)+'px',left: 100/displayEvent.overlapNumber*displayEvent.position+'%', width: 100/displayEvent.overlapNumber+'%', height: 37*(displayEvent.endIndex -displayEvent.startIndex - (displayEvent.endOffset + displayEvent.startOffset)/hourParts)+'px'}\">\n <ng-template [ngTemplateOutlet]=\"eventTemplate\"\n [ngTemplateOutletContext]=\"{displayEvent:displayEvent}\">\n </ng-template>\n </div>\n </div>\n </ng-template>\n <ng-template #defaultInactiveAllDayEventSectionTemplate>\n </ng-template>\n <ng-template #defaultInactiveNormalEventSectionTemplate>\n </ng-template>\n\n <div [ngSwitch]=\"calendarMode\" class=\"{{calendarMode}}view-container\">\n <monthview *ngSwitchCase=\"'month'\"\n [formatDay]=\"formatDay\"\n [formatDayHeader]=\"formatDayHeader\"\n [formatMonthTitle]=\"formatMonthTitle\"\n [startingDayMonth]=\"startingDayMonth\"\n [showEventDetail]=\"showEventDetail\"\n [noEventsLabel]=\"noEventsLabel\"\n [autoSelect]=\"autoSelect\"\n [eventSource]=\"eventSource\"\n [markDisabled]=\"markDisabled\"\n [monthviewDisplayEventTemplate]=\"monthviewDisplayEventTemplate||monthviewDefaultDisplayEventTemplate\"\n [monthviewInactiveDisplayEventTemplate]=\"monthviewInactiveDisplayEventTemplate||monthviewDefaultDisplayEventTemplate\"\n [monthviewEventDetailTemplate]=\"monthviewEventDetailTemplate||monthviewDefaultEventDetailTemplate\"\n [locale]=\"locale\"\n [dateFormatter]=\"dateFormatter\"\n [dir]=\"dir\"\n [lockSwipeToPrev]=\"lockSwipeToPrev\"\n [lockSwipes]=\"lockSwipes\"\n [sliderOptions]=\"sliderOptions\"\n (onRangeChanged)=\"rangeChanged($event)\"\n (onEventSelected)=\"eventSelected($event)\"\n (onTimeSelected)=\"timeSelected($event)\"\n (onTitleChanged)=\"titleChanged($event)\">\n </monthview>\n <weekview *ngSwitchCase=\"'week'\"\n [formatWeekTitle]=\"formatWeekTitle\"\n [formatWeekViewDayHeader]=\"formatWeekViewDayHeader\"\n [formatHourColumn]=\"formatHourColumn\"\n [startingDayWeek]=\"startingDayWeek\"\n [allDayLabel]=\"allDayLabel\"\n [hourParts]=\"hourParts\"\n [autoSelect]=\"autoSelect\"\n [hourSegments]=\"hourSegments\"\n [eventSource]=\"eventSource\"\n [markDisabled]=\"markDisabled\"\n [weekviewHeaderTemplate]=\"weekviewHeaderTemplate||defaultWeekviewHeaderTemplate\"\n [weekviewAllDayEventTemplate]=\"weekviewAllDayEventTemplate||defaultAllDayEventTemplate\"\n [weekviewNormalEventTemplate]=\"weekviewNormalEventTemplate||defaultNormalEventTemplate\"\n [weekviewAllDayEventSectionTemplate]=\"weekviewAllDayEventSectionTemplate||defaultWeekViewAllDayEventSectionTemplate\"\n [weekviewNormalEventSectionTemplate]=\"weekviewNormalEventSectionTemplate||defaultNormalEventSectionTemplate\"\n [weekviewInactiveAllDayEventSectionTemplate]=\"weekviewInactiveAllDayEventSectionTemplate||defaultInactiveAllDayEventSectionTemplate\"\n [weekviewInactiveNormalEventSectionTemplate]=\"weekviewInactiveNormalEventSectionTemplate||defaultInactiveNormalEventSectionTemplate\"\n [locale]=\"locale\"\n [dateFormatter]=\"dateFormatter\"\n [dir]=\"dir\"\n [scrollToHour]=\"scrollToHour\"\n [preserveScrollPosition]=\"preserveScrollPosition\"\n [lockSwipeToPrev]=\"lockSwipeToPrev\"\n [lockSwipes]=\"lockSwipes\"\n [startHour]=\"startHour\"\n [endHour]=\"endHour\"\n [sliderOptions]=\"sliderOptions\"\n (onRangeChanged)=\"rangeChanged($event)\"\n (onEventSelected)=\"eventSelected($event)\"\n (onDayHeaderSelected)=\"daySelected($event)\"\n (onTimeSelected)=\"timeSelected($event)\"\n (onTitleChanged)=\"titleChanged($event)\">\n </weekview>\n <dayview *ngSwitchCase=\"'day'\"\n [formatDayTitle]=\"formatDayTitle\"\n [formatHourColumn]=\"formatHourColumn\"\n [allDayLabel]=\"allDayLabel\"\n [hourParts]=\"hourParts\"\n [hourSegments]=\"hourSegments\"\n [eventSource]=\"eventSource\"\n [markDisabled]=\"markDisabled\"\n [dayviewAllDayEventTemplate]=\"dayviewAllDayEventTemplate||defaultAllDayEventTemplate\"\n [dayviewNormalEventTemplate]=\"dayviewNormalEventTemplate||defaultNormalEventTemplate\"\n [dayviewAllDayEventSectionTemplate]=\"dayviewAllDayEventSectionTemplate||defaultDayViewAllDayEventSectionTemplate\"\n [dayviewNormalEventSectionTemplate]=\"dayviewNormalEventSectionTemplate||defaultNormalEventSectionTemplate\"\n [dayviewInactiveAllDayEventSectionTemplate]=\"dayviewInactiveAllDayEventSectionTemplate||defaultInactiveAllDayEventSectionTemplate\"\n [dayviewInactiveNormalEventSectionTemplate]=\"dayviewInactiveNormalEventSectionTemplate||defaultInactiveNormalEventSectionTemplate\"\n [locale]=\"locale\"\n [dateFormatter]=\"dateFormatter\"\n [dir]=\"dir\"\n [scrollToHour]=\"scrollToHour\"\n [preserveScrollPosition]=\"preserveScrollPosition\"\n [lockSwipeToPrev]=\"lockSwipeToPrev\"\n [lockSwipes]=\"lockSwipes\"\n [startHour]=\"startHour\"\n [endHour]=\"endHour\"\n [sliderOptions]=\"sliderOptions\"\n (onRangeChanged)=\"rangeChanged($event)\"\n (onEventSelected)=\"eventSelected($event)\"\n (onTimeSelected)=\"timeSelected($event)\"\n (onTitleChanged)=\"titleChanged($event)\">\n </dayview>\n </div>\n `, providers: [CalendarService], styles: [\"\\n :host > div { height: 100%; }\\n\\n .event-detail-container {\\n border-top: 2px darkgrey solid;\\n }\\n\\n .no-events-label {\\n font-weight: bold;\\n color: darkgrey;\\n text-align: center;\\n }\\n\\n .event-detail {\\n cursor: pointer;\\n white-space: nowrap;\\n text-overflow: ellipsis;\\n }\\n\\n .monthview-eventdetail-timecolumn {\\n width: 110px;\\n overflow: hidden;\\n }\\n\\n .calendar-event-inner {\\n overflow: hidden;\\n background-color: #3a87ad;\\n color: white;\\n height: 100%;\\n width: 100%;\\n padding: 2px;\\n line-height: 15px;\\n text-align: initial;\\n }\\n\\n @media (max-width: 750px) {\\n .calendar-event-inner {\\n font-size: 12px;\\n }\\n }\\n \"] }]\n }], function () { return [{ type: CalendarService }, { type: String, decorators: [{\n type: Inject,\n args: [LOCALE_ID]\n }] }]; }, { eventSource: [{\n type: Input\n }], calendarMode: [{\n type: Input\n }], formatDay: [{\n type: Input\n }], formatDayHeader: [{\n type: Input\n }], formatDayTitle: [{\n type: Input\n }], formatWeekTitle: [{\n type: Input\n }], formatMonthTitle: [{\n type: Input\n }], formatWeekViewDayHeader: [{\n type: Input\n }], formatHourColumn: [{\n type: Input\n }], showEventDetail: [{\n type: Input\n }], startingDayMonth: [{\n type: Input\n }], startingDayWeek: [{\n type: Input\n }], allDayLabel: [{\n type: Input\n }], noEventsLabel: [{\n type: Input\n }], queryMode: [{\n type: Input\n }], step: [{\n type: Input\n }], timeInterval: [{\n type: Input\n }], autoSelect: [{\n type: Input\n }], dir: [{\n type: Input\n }], scrollToHour: [{\n type: Input\n }], preserveScrollPosition: [{\n type: Input\n }], lockSwipeToPrev: [{\n type: Input\n }], lockSwipes: [{\n type: Input\n }], locale: [{\n type: Input\n }], startHour: [{\n type: Input\n }], endHour: [{\n type: Input\n }], onCurrentDateChanged: [{\n type: Output\n }], onRangeChanged: [{\n type: Output\n }], onEventSelected: [{\n type: Output\n }], onTimeSelected: [{\n type: Output\n }], onDayHeaderSelected: [{\n type: Output\n }], onTitleChanged: [{\n type: Output\n }], currentDate: [{\n type: Input\n }], markDisabled: [{\n type: Input\n }], monthviewDisplayEventTemplate: [{\n type: Input\n }], monthviewInactiveDisplayEventTemplate: [{\n type: Input\n }], monthviewEventDetailTemplate: [{\n type: Input\n }], weekviewHeaderTemplate: [{\n type: Input\n }], weekviewAllDayEventTemplate: [{\n type: Input\n }], weekviewNormalEventTemplate: [{\n type: Input\n }], dayviewAllDayEventTemplate: [{\n type: Input\n }], dayviewNormalEventTemplate: [{\n type: Input\n }], weekviewAllDayEventSectionTemplate: [{\n type: Input\n }], weekviewNormalEventSectionTemplate: [{\n type: Input\n }], dayviewAllDayEventSectionTemplate: [{\n type: Input\n }], dayviewNormalEventSectionTemplate: [{\n type: Input\n }], weekviewInactiveAllDayEventSectionTemplate: [{\n type: Input\n }], weekviewInactiveNormalEventSectionTemplate: [{\n type: Input\n }], dayviewInactiveAllDayEventSectionTemplate: [{\n type: Input\n }], dayviewInactiveNormalEventSectionTemplate: [{\n type: Input\n }], dateFormatter: [{\n type: Input\n }], sliderOptions: [{\n type: Input\n }] }); })();\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(initPositionScrollComponent, [{\n type: Component,\n args: [{ selector: 'init-position-scroll', template: `\n <div class=\"scroll-content\" style=\"height:100%\">\n <ng-content></ng-content>\n </div>\n `, encapsulation: ViewEncapsulation.None, styles: [\"\\n .scroll-content {\\n overflow-y: auto;\\n overflow-x: hidden;\\n } \\n \"] }]\n }], function () { return [{ type: ɵngcc0.ElementRef }]; }, { onScroll: [{\n type: Output\n }], initPosition: [{\n type: Input\n }], emitEvent: [{\n type: Input\n }] }); })();\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(NgCalendarModule, [{\n type: NgModule,\n args: [{\n declarations: [\n MonthViewComponent, WeekViewComponent, DayViewComponent, CalendarComponent, initPositionScrollComponent\n ],\n imports: [IonicModule, CommonModule],\n exports: [CalendarComponent]\n }]\n }], null, null); })();\n(function () { (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(NgCalendarModule, { declarations: function () { return [MonthViewComponent, WeekViewComponent, DayViewComponent, CalendarComponent, initPositionScrollComponent]; }, imports: function () { return [IonicModule, CommonModule]; }, exports: function () { return [CalendarComponent]; } }); })();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { CalendarComponent, NgCalendarModule, MonthViewComponent as ɵa, CalendarService as ɵb, WeekViewComponent as ɵc, DayViewComponent as ɵd, initPositionScrollComponent as ɵe };\n\n"],"mappings":"AAA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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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C;MAClBkN,IAAI,EAAE5pB;IACV,CAAC,CAAC;IAAE2c,UAAU,EAAE,CAAC;MACbiN,IAAI,EAAE5pB;IACV,CAAC,CAAC;IAAEke,SAAS,EAAE,CAAC;MACZ0L,IAAI,EAAE5pB;IACV,CAAC,CAAC;IAAEme,OAAO,EAAE,CAAC;MACVyL,IAAI,EAAE5pB;IACV,CAAC,CAAC;IAAEge,YAAY,EAAE,CAAC;MACf4L,IAAI,EAAE5pB;IACV,CAAC;EAAE,CAAC,CAAC;AAAE,CAAC,EAAE,CAAC;AACnB,CAAC,YAAY;EAAE,CAAC,OAAOi0B,SAAS,KAAK,WAAW,IAAIA,SAAS,KAAKpzB,MAAM,CAACqzB,iBAAiB,CAACvD,gBAAgB,EAAE,CAAC;IACtG/G,IAAI,EAAE1pB,SAAS;IACfuyB,IAAI,EAAE,CAAC;MAAE0B,QAAQ,EAAE,SAAS;MAAEvJ,QAAQ,EAAG;AACjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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AAO,EAAE,CAAC;MACVyL,IAAI,EAAE5pB;IACV,CAAC,CAAC;IAAEge,YAAY,EAAE,CAAC;MACf4L,IAAI,EAAE5pB;IACV,CAAC;EAAE,CAAC,CAAC;AAAE,CAAC,EAAE,CAAC;AACnB,CAAC,YAAY;EAAE,CAAC,OAAOi0B,SAAS,KAAK,WAAW,IAAIA,SAAS,KAAKpzB,MAAM,CAACqzB,iBAAiB,CAAC5C,iBAAiB,EAAE,CAAC;IACvG1H,IAAI,EAAE1pB,SAAS;IACfuyB,IAAI,EAAE,CAAC;MAAE0B,QAAQ,EAAE,UAAU;MAAEvJ,QAAQ,EAAG;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;MAAEyJ,SAAS,EAAE,CAACpV,eAAe,CAAC;MAAEqM,MAAM,EAAE,CAAC,o5BAAo5B;IAA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