decidim-calendar 0.13.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE-AGPLv3.txt +661 -0
- data/README.md +9 -0
- data/Rakefile +43 -0
- data/app/assets/config/decidim_calendar_manifest.css +2 -0
- data/app/assets/config/decidim_calendar_manifest.js +2 -0
- data/app/assets/images/decidim/calendar/icon.svg +51 -0
- data/app/assets/javascripts/decidim/calendar/calendar.js.es6 +6 -0
- data/app/assets/javascripts/decidim/calendar/gantt.js.es6 +1 -0
- data/app/assets/stylesheets/decidim/calendar/calendar.scss +102 -0
- data/app/assets/stylesheets/decidim/calendar/gantt.scss +1 -0
- data/app/commands/decidim/calendar/admin/create_external_event.rb +38 -0
- data/app/commands/decidim/calendar/admin/destroy_external_event.rb +27 -0
- data/app/commands/decidim/calendar/admin/update_external_event.rb +43 -0
- data/app/controllers/decidim/calendar/admin/application_controller.rb +23 -0
- data/app/controllers/decidim/calendar/admin/external_events_controller.rb +84 -0
- data/app/controllers/decidim/calendar/application_controller.rb +21 -0
- data/app/controllers/decidim/calendar/calendar_controller.rb +33 -0
- data/app/forms/decidim/calendar/admin/external_event_form.rb +21 -0
- data/app/helpers/decidim/calendar/calendar_helper.rb +57 -0
- data/app/models/decidim/calendar/application_record.rb +9 -0
- data/app/models/decidim/calendar/event.rb +25 -0
- data/app/models/decidim/calendar/external_event.rb +18 -0
- data/app/permissions/decidim/calendar/admin/permissions.rb +22 -0
- data/app/presenters/decidim/calendar/event_presenter.rb +104 -0
- data/app/queries/decidim/calendar/organization_calendar.rb +15 -0
- data/app/services/decidim/calendar/event_to_ical.rb +27 -0
- data/app/services/decidim/calendar/general_calendar.rb +13 -0
- data/app/services/decidim/calendar/meeting_to_event.rb +8 -0
- data/app/services/decidim/meetings/calendar/base_calendar.rb +61 -0
- data/app/views/decidim/calendar/admin/external_events/_form.html.erb +22 -0
- data/app/views/decidim/calendar/admin/external_events/edit.html.erb +6 -0
- data/app/views/decidim/calendar/admin/external_events/index.html.erb +66 -0
- data/app/views/decidim/calendar/admin/external_events/new.html.erb +6 -0
- data/app/views/decidim/calendar/calendar/gantt.html.erb +22 -0
- data/app/views/decidim/calendar/calendar/index.html.erb +63 -0
- data/app/views/decidim/shared/_extended_navigation_bar.html.erb +51 -0
- data/app/views/layouts/_calendar_navigation.html.erb +18 -0
- data/app/views/layouts/calendar.html.erb +4 -0
- data/config/locales/ca.yml +38 -0
- data/config/locales/de.yml +38 -0
- data/config/locales/en.yml +48 -0
- data/config/locales/es.yml +38 -0
- data/config/locales/fi.yml +38 -0
- data/config/locales/fr.yml +38 -0
- data/config/locales/it.yml +38 -0
- data/config/locales/pl.yml +38 -0
- data/config/locales/pt.yml +38 -0
- data/config/locales/ro.yml +38 -0
- data/config/locales/ru.yml +38 -0
- data/config/locales/sv.yml +38 -0
- data/config/locales/tr.yml +38 -0
- data/config/locales/uk.yml +38 -0
- data/db/migrate/20190312132654_create_decidim_calendar_external_events.rb +18 -0
- data/lib/decidim/calendar.rb +11 -0
- data/lib/decidim/calendar/admin.rb +9 -0
- data/lib/decidim/calendar/admin_engine.rb +30 -0
- data/lib/decidim/calendar/engine.rb +34 -0
- data/lib/decidim/calendar/participatory_space.rb +20 -0
- data/lib/decidim/calendar/test/factories.rb +12 -0
- data/lib/decidim/calendar/version.rb +10 -0
- data/vendor/assets/javascripts/frappe-gantt/frappe-gantt.css +119 -0
- data/vendor/assets/javascripts/frappe-gantt/frappe-gantt.js +1883 -0
- data/vendor/assets/javascripts/fullcalendar/bootstrap/main.css +33 -0
- data/vendor/assets/javascripts/fullcalendar/bootstrap/main.js +90 -0
- data/vendor/assets/javascripts/fullcalendar/bootstrap/main.min.css +5 -0
- data/vendor/assets/javascripts/fullcalendar/bootstrap/main.min.js +20 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales-all.js +1353 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales-all.min.js +6 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/af.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ar-dz.js +31 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ar-kw.js +31 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ar-ly.js +31 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ar-ma.js +31 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ar-sa.js +31 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ar-tn.js +31 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ar.js +31 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/bg.js +31 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/bs.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ca.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/cs.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/da.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/de.js +33 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/el.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/en-au.js +17 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/en-gb.js +17 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/en-nz.js +17 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/es-us.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/es.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/et.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/eu.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/fa.js +33 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/fi.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/fr-ca.js +27 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/fr-ch.js +31 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/fr.js +31 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/gl.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/he.js +27 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/hi.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/hr.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/hu.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/id.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/is.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/it.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ja.js +28 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ka.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/kk.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ko.js +26 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/lb.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/lt.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/lv.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/mk.js +28 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ms.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/nb.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/nl.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/nn.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/pl.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/pt-br.js +28 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/pt.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ro.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/ru.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/sk.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/sl.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/sq.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/sr-cyrl.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/sr.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/sv.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/th.js +25 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/tr.js +30 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/uk.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/vi.js +32 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/zh-cn.js +33 -0
- data/vendor/assets/javascripts/fullcalendar/core/locales/zh-tw.js +26 -0
- data/vendor/assets/javascripts/fullcalendar/core/main.css +900 -0
- data/vendor/assets/javascripts/fullcalendar/core/main.js +8791 -0
- data/vendor/assets/javascripts/fullcalendar/core/main.min.css +5 -0
- data/vendor/assets/javascripts/fullcalendar/core/main.min.js +9 -0
- data/vendor/assets/javascripts/fullcalendar/daygrid/main.css +69 -0
- data/vendor/assets/javascripts/fullcalendar/daygrid/main.js +1630 -0
- data/vendor/assets/javascripts/fullcalendar/daygrid/main.min.css +5 -0
- data/vendor/assets/javascripts/fullcalendar/daygrid/main.min.js +20 -0
- data/vendor/assets/javascripts/fullcalendar/google-calendar/main.js +169 -0
- data/vendor/assets/javascripts/fullcalendar/google-calendar/main.min.js +20 -0
- data/vendor/assets/javascripts/fullcalendar/interaction/main.js +2155 -0
- data/vendor/assets/javascripts/fullcalendar/interaction/main.min.js +21 -0
- data/vendor/assets/javascripts/fullcalendar/list/main.css +101 -0
- data/vendor/assets/javascripts/fullcalendar/list/main.js +341 -0
- data/vendor/assets/javascripts/fullcalendar/list/main.min.css +5 -0
- data/vendor/assets/javascripts/fullcalendar/list/main.min.js +20 -0
- data/vendor/assets/javascripts/fullcalendar/luxon/main.js +162 -0
- data/vendor/assets/javascripts/fullcalendar/luxon/main.min.js +20 -0
- data/vendor/assets/javascripts/fullcalendar/moment-timezone/main.js +64 -0
- data/vendor/assets/javascripts/fullcalendar/moment-timezone/main.min.js +20 -0
- data/vendor/assets/javascripts/fullcalendar/moment/main.js +103 -0
- data/vendor/assets/javascripts/fullcalendar/moment/main.min.js +6 -0
- data/vendor/assets/javascripts/fullcalendar/rrule/main.js +127 -0
- data/vendor/assets/javascripts/fullcalendar/rrule/main.min.js +20 -0
- data/vendor/assets/javascripts/fullcalendar/timegrid/main.css +266 -0
- data/vendor/assets/javascripts/fullcalendar/timegrid/main.js +1339 -0
- data/vendor/assets/javascripts/fullcalendar/timegrid/main.min.css +5 -0
- data/vendor/assets/javascripts/fullcalendar/timegrid/main.min.js +20 -0
- metadata +247 -0
@@ -0,0 +1,5 @@
|
|
1
|
+
/*!
|
2
|
+
FullCalendar Core Package v4.0.2
|
3
|
+
Docs & License: https://fullcalendar.io/
|
4
|
+
(c) 2019 Adam Shaw
|
5
|
+
*/.fc-button:not(:disabled),.fc-event.fc-draggable,.fc-event[href],.fc-popover .fc-header .fc-close,a.fc-more,a[data-goto]{cursor:pointer}.fc-bg,.fc-row .fc-bgevent-skeleton,.fc-row .fc-highlight-skeleton{bottom:0}.fc{direction:ltr;text-align:left}.fc-rtl{text-align:right}body .fc{font-size:1em}.fc-highlight{background:#bce8f1;opacity:.3}.fc-bgevent{background:#8fdf82;opacity:.3}.fc-nonbusiness{background:#d7d7d7}.fc-popover{position:absolute;box-shadow:0 2px 6px rgba(0,0,0,.15)}.fc-popover .fc-header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:2px 4px}.fc-rtl .fc-popover .fc-header{flex-direction:row-reverse}.fc-popover .fc-header .fc-title{margin:0 2px}.fc-popover .fc-header .fc-close{opacity:.65;font-size:1.1em}.fc-divider{border-style:solid;border-width:1px}hr.fc-divider{height:0;margin:0;padding:0 0 2px;border-width:1px 0}.fc-bg table,.fc-row .fc-bgevent-skeleton table,.fc-row .fc-highlight-skeleton table{height:100%}.fc-bg,.fc-bgevent-skeleton,.fc-highlight-skeleton,.fc-mirror-skeleton{position:absolute;top:0;left:0;right:0}.fc table{width:100%;box-sizing:border-box;table-layout:fixed;border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{border-style:solid;border-width:1px;padding:0;vertical-align:top}.fc td.fc-today{border-style:double}a[data-goto]:hover{text-decoration:underline}.fc .fc-row{border-style:solid;border-width:0}.fc-row table{border-left:0 hidden transparent;border-right:0 hidden transparent;border-bottom:0 hidden transparent}.fc-row:first-child table{border-top:0 hidden transparent}.fc-row{position:relative}.fc-row .fc-bg{z-index:1}.fc-row .fc-bgevent-skeleton td,.fc-row .fc-highlight-skeleton td{border-color:transparent}.fc-row .fc-bgevent-skeleton{z-index:2}.fc-row .fc-highlight-skeleton{z-index:3}.fc-row .fc-content-skeleton{position:relative;z-index:4;padding-bottom:2px}.fc-row .fc-mirror-skeleton{z-index:5}.fc .fc-row .fc-content-skeleton table,.fc .fc-row .fc-content-skeleton td,.fc .fc-row .fc-mirror-skeleton td{background:0 0;border-color:transparent}.fc-row .fc-content-skeleton td,.fc-row .fc-mirror-skeleton td{border-bottom:0}.fc-row .fc-content-skeleton tbody td,.fc-row .fc-mirror-skeleton tbody td{border-top:0}.fc-scroller{-webkit-overflow-scrolling:touch}.fc-scroller>.fc-day-grid,.fc-scroller>.fc-time-grid{position:relative;width:100%}.fc-event{position:relative;display:block;font-size:.85em;line-height:1.4;border-radius:3px;border:1px solid #3788d8}.fc-event,.fc-event-dot{background-color:#3788d8}.fc-event,.fc-event:hover{color:#fff;text-decoration:none}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc-event .fc-content{position:relative;z-index:2}.fc-event .fc-resizer{position:absolute;z-index:4;display:none}.fc-event.fc-allow-mouse-resize .fc-resizer,.fc-event.fc-selected .fc-resizer{display:block}.fc-event.fc-selected .fc-resizer:before{content:"";position:absolute;z-index:9999;top:50%;left:50%;width:40px;height:40px;margin-left:-20px;margin-top:-20px}.fc-event.fc-selected{z-index:9999!important;box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event.fc-selected:after{content:"";position:absolute;z-index:1;top:-1px;right:-1px;bottom:-1px;left:-1px;background:#000;opacity:.25}.fc-event.fc-dragging.fc-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event.fc-dragging:not(.fc-selected){opacity:.75}.fc-h-event.fc-selected:before{content:"";position:absolute;z-index:3;top:-10px;bottom:-10px;left:0;right:0}.fc-ltr .fc-h-event.fc-not-start,.fc-rtl .fc-h-event.fc-not-end{margin-left:0;border-left-width:0;padding-left:1px;border-top-left-radius:0;border-bottom-left-radius:0}.fc-ltr .fc-h-event.fc-not-end,.fc-rtl .fc-h-event.fc-not-start{margin-right:0;border-right-width:0;padding-right:1px;border-top-right-radius:0;border-bottom-right-radius:0}.fc-ltr .fc-h-event .fc-start-resizer,.fc-rtl .fc-h-event .fc-end-resizer{cursor:w-resize;left:-1px}.fc-ltr .fc-h-event .fc-end-resizer,.fc-rtl .fc-h-event .fc-start-resizer{cursor:e-resize;right:-1px}.fc-h-event.fc-allow-mouse-resize .fc-resizer{width:7px;top:-1px;bottom:-1px}.fc-h-event.fc-selected .fc-resizer{border-radius:4px;border-width:1px;width:6px;height:6px;border-style:solid;border-color:inherit;background:#fff;top:50%;margin-top:-4px}.fc-ltr .fc-h-event.fc-selected .fc-start-resizer,.fc-rtl .fc-h-event.fc-selected .fc-end-resizer{margin-left:-4px}.fc-ltr .fc-h-event.fc-selected .fc-end-resizer,.fc-rtl .fc-h-event.fc-selected .fc-start-resizer{margin-right:-4px}.fc-day-grid-event{margin:1px 2px 0;padding:0 1px}tr:first-child>td>.fc-day-grid-event{margin-top:2px}.fc-mirror-skeleton tr:first-child>td>.fc-day-grid-event{margin-top:0}.fc-day-grid-event .fc-content{white-space:nowrap;overflow:hidden}.fc-day-grid-event .fc-time{font-weight:700}.fc-ltr .fc-day-grid-event.fc-allow-mouse-resize .fc-start-resizer,.fc-rtl .fc-day-grid-event.fc-allow-mouse-resize .fc-end-resizer{margin-left:-2px}.fc-ltr .fc-day-grid-event.fc-allow-mouse-resize .fc-end-resizer,.fc-rtl .fc-day-grid-event.fc-allow-mouse-resize .fc-start-resizer{margin-right:-2px}a.fc-more{margin:1px 3px;font-size:.85em;text-decoration:none}a.fc-more:hover{text-decoration:underline}.fc-limited{display:none}.fc-button,.fc-icon{display:inline-block;font-weight:400;text-align:center}.fc-day-grid .fc-row{z-index:1}.fc-more-popover{z-index:2;width:220px}.fc-more-popover .fc-event-container{padding:10px}.fc-now-indicator{position:absolute;border:0 solid red}.fc-unselectable{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}.fc-unthemed .fc-content,.fc-unthemed .fc-divider,.fc-unthemed .fc-list-heading td,.fc-unthemed .fc-list-view,.fc-unthemed .fc-popover,.fc-unthemed .fc-row,.fc-unthemed tbody,.fc-unthemed td,.fc-unthemed th,.fc-unthemed thead{border-color:#ddd}.fc-unthemed .fc-popover{background-color:#fff}.fc-unthemed .fc-divider,.fc-unthemed .fc-list-heading td,.fc-unthemed .fc-popover .fc-header{background:#eee}.fc-unthemed td.fc-today{background:#fcf8e3}.fc-unthemed .fc-disabled-day{background:#d7d7d7;opacity:.3}@font-face{font-family:fcicons;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype");font-weight:400;font-style:normal}.fc-icon{font-family:fcicons!important;speak:none;font-style:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:1em;height:1em}.fc-icon-chevron-left:before{content:"\e900"}.fc-icon-chevron-right:before{content:"\e901"}.fc-icon-chevrons-left:before{content:"\e902"}.fc-icon-chevrons-right:before{content:"\e903"}.fc-icon-minus-square:before{content:"\e904"}.fc-icon-plus-square:before{content:"\e905"}.fc-icon-x:before{content:"\e906"}.fc-button{overflow:visible;text-transform:none;margin:0;font-family:inherit}.fc-button::-moz-focus-inner{padding:0;border-style:none}.fc-button{-webkit-appearance:button;color:#212529;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:transparent;border:1px solid transparent;padding:.4em .65em;font-size:1em;line-height:1.5;border-radius:.25em}.fc-button:hover{color:#212529;text-decoration:none}.fc-button:focus{outline:0;-webkit-box-shadow:0 0 0 .2rem rgba(44,62,80,.25);box-shadow:0 0 0 .2rem rgba(44,62,80,.25)}.fc-button:disabled{opacity:.65}.fc-button-primary{color:#fff;background-color:#2C3E50;border-color:#2C3E50}.fc-button-primary:hover{color:#fff;background-color:#1e2b37;border-color:#1a252f}.fc-button-primary:focus{-webkit-box-shadow:0 0 0 .2rem rgba(76,91,106,.5);box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc-button-primary:disabled{color:#fff;background-color:#2C3E50;border-color:#2C3E50}.fc-button-primary:not(:disabled).fc-button-active,.fc-button-primary:not(:disabled):active{color:#fff;background-color:#1a252f;border-color:#151e27}.fc-button-primary:not(:disabled).fc-button-active:focus,.fc-button-primary:not(:disabled):active:focus{-webkit-box-shadow:0 0 0 .2rem rgba(76,91,106,.5);box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc-button .fc-icon{vertical-align:middle;font-size:1.5em}.fc-button-group{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle}.fc-button-group>.fc-button{position:relative;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}.fc-button-group>.fc-button.fc-button-active,.fc-button-group>.fc-button:active,.fc-button-group>.fc-button:focus,.fc-button-group>.fc-button:hover{z-index:1}.fc-button-group>.fc-button:not(:first-child){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}.fc-button-group>.fc-button:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.fc-unthemed .fc-popover{border-width:1px;border-style:solid}.fc-unthemed .fc-list-item:hover td{background-color:#f5f5f5}.fc-toolbar{display:flex;justify-content:space-between;align-items:center}.fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-toolbar h2{font-size:1.75em;margin:0}.fc-view-container{position:relative}.fc-view-container *,.fc-view-container :after,.fc-view-container :before{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.fc-view,.fc-view>table{position:relative;z-index:1}@media print{.fc-bg,.fc-bgevent-container,.fc-bgevent-skeleton,.fc-business-container,.fc-event .fc-resizer,.fc-highlight-container,.fc-highlight-skeleton,.fc-mirror-container,.fc-mirror-skeleton{display:none}.fc tbody .fc-row,.fc-time-grid{min-height:0!important}.fc-time-grid .fc-event.fc-not-end:after,.fc-time-grid .fc-event.fc-not-start:before{content:"..."}.fc{max-width:100%!important}.fc-event{background:#fff!important;color:#000!important;page-break-inside:avoid}.fc hr,.fc tbody,.fc td,.fc th,.fc thead,.fc-row{border-color:#ccc!important;background:#fff!important}.fc tbody .fc-row{height:auto!important}.fc tbody .fc-row .fc-content-skeleton{position:static;padding-bottom:0!important}.fc tbody .fc-row .fc-content-skeleton tbody tr:last-child td{padding-bottom:1em}.fc tbody .fc-row .fc-content-skeleton table{height:1em}.fc-more,.fc-more-cell{display:none!important}.fc tr.fc-limited{display:table-row!important}.fc td.fc-limited{display:table-cell!important}.fc-popover,.fc-timeGrid-view .fc-axis{display:none}.fc-slats,.fc-time-grid hr{display:none!important}.fc button,.fc-button-group,.fc-time-grid .fc-event .fc-time span{display:none}.fc-time-grid .fc-content-skeleton{position:static}.fc-time-grid .fc-content-skeleton table{height:4em}.fc-time-grid .fc-event-container{margin:0!important}.fc-time-grid .fc-event{position:static!important;margin:3px 2px!important}.fc-time-grid .fc-event.fc-not-end{border-bottom-width:1px!important}.fc-time-grid .fc-event.fc-not-start{border-top-width:1px!important}.fc-time-grid .fc-event .fc-time{white-space:normal!important}.fc-time-grid .fc-event .fc-time:after{content:attr(data-full)}.fc-day-grid-container,.fc-scroller,.fc-time-grid-container{overflow:visible!important;height:auto!important}.fc-row{border:0!important;margin:0!important}}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/*!
|
2
|
+
FullCalendar Core Package v4.0.2
|
3
|
+
Docs & License: https://fullcalendar.io/
|
4
|
+
(c) 2019 Adam Shaw
|
5
|
+
*/
|
6
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):(e=e||self,t(e.FullCalendar={}))}(this,function(e){"use strict";function t(e,t,n){var r=document.createElement(e);if(t)for(var i in t)"style"===i?g(r,t[i]):mi[i]?r[i]=t[i]:r.setAttribute(i,t[i]);return"string"==typeof n?r.innerHTML=n:null!=n&&a(r,n),r}function n(e){e=e.trim();var t=document.createElement(o(e));return t.innerHTML=e,t.firstChild}function r(e){return Array.prototype.slice.call(i(e))}function i(e){e=e.trim();var t=document.createElement(o(e));return t.innerHTML=e,t.childNodes}function o(e){return Ei[e.substr(0,3)]||"div"}function a(e,t){for(var n=l(t),r=0;r<n.length;r++)e.appendChild(n[r])}function s(e,t){for(var n=l(t),r=e.firstChild||null,i=0;i<n.length;i++)e.insertBefore(n[i],r)}function u(e,t){for(var n=l(t),r=e.nextSibling||null,i=0;i<n.length;i++)e.parentNode.insertBefore(n[i],r)}function l(e){return"string"==typeof e?r(e):e instanceof Node?[e]:Array.prototype.slice.call(e)}function c(e){e.parentNode&&e.parentNode.removeChild(e)}function d(e,t){return Di.call(e,t)}function f(e,t){return Si.call(e,t)}function p(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],i=0;i<n.length;i++)for(var o=n[i].querySelectorAll(t),a=0;a<o.length;a++)r.push(o[a]);return r}function h(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],i=0;i<n.length;i++)for(var o=n[i].children,a=0;a<o.length;a++){var s=o[a];t&&!f(s,t)||r.push(s)}return r}function v(e,t,n){n?e.classList.add(t):e.classList.remove(t)}function g(e,t){for(var n in t)y(e,n,t[n])}function y(e,t,n){null==n?e.style[t]="":"number"==typeof n&&bi.test(t)?e.style[t]=n+"px":e.style[t]=n}function m(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function E(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function S(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}}function D(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function b(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function T(e,t){return{left:e.left-t.left,top:e.top-t.top}}function w(){return null===Ti&&(Ti=R()),Ti}function R(){var e=t("div",{style:{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}},"<div></div>");document.body.appendChild(e);var n=e.firstChild,r=n.getBoundingClientRect().left>e.getBoundingClientRect().left;return c(e),r}function I(e){return e=Math.max(0,e),e=Math.round(e)}function C(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,o=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,s=I(e.offsetWidth-e.clientWidth-r-i),u=I(e.offsetHeight-e.clientHeight-o-a),l={borderLeft:r,borderRight:i,borderTop:o,borderBottom:a,scrollbarBottom:u,scrollbarLeft:0,scrollbarRight:0};return w()&&"rtl"===n.direction?l.scrollbarLeft=s:l.scrollbarRight=s,t&&(l.paddingLeft=parseInt(n.paddingLeft,10)||0,l.paddingRight=parseInt(n.paddingRight,10)||0,l.paddingTop=parseInt(n.paddingTop,10)||0,l.paddingBottom=parseInt(n.paddingBottom,10)||0),l}function M(e,t){void 0===t&&(t=!1);var n=k(e),r=C(e,t),i={left:n.left+r.borderLeft+r.scrollbarLeft,right:n.right-r.borderRight-r.scrollbarRight,top:n.top+r.borderTop,bottom:n.bottom-r.borderBottom-r.scrollbarBottom};return t&&(i.left+=r.paddingLeft,i.right-=r.paddingRight,i.top+=r.paddingTop,i.bottom-=r.paddingBottom),i}function k(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function O(){return{left:window.pageXOffset,right:window.pageXOffset+document.documentElement.clientWidth,top:window.pageYOffset,bottom:window.pageYOffset+document.documentElement.clientHeight}}function _(e){var t=window.getComputedStyle(e);return e.getBoundingClientRect().height+parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}function P(e){for(var t=[];e instanceof HTMLElement;){var n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function H(e){return P(e).map(function(e){return M(e)}).concat(O()).reduce(function(e,t){return E(e,t)||t})}function x(e){e.preventDefault()}function N(e,t,n,r){function i(e){var t=d(e.target,n);t&&r.call(t,e,t)}return e.addEventListener(t,i),function(){e.removeEventListener(t,i)}}function z(e,t,n,r){var i;return N(e,"mouseover",t,function(e,t){if(t!==i){i=t,n(e,t);var o=function(e){i=null,r(e,t),t.removeEventListener("mouseleave",o)};t.addEventListener("mouseleave",o)}})}function U(e,t){var n=function(r){t(r),wi.forEach(function(t){e.removeEventListener(t,n)})};wi.forEach(function(t){e.addEventListener(t,n)})}function L(e,t){var n=ie(e);return n[2]+=7*t,oe(n)}function A(e,t){var n=ie(e);return n[2]+=t,oe(n)}function V(e,t){var n=ie(e);return n[6]+=t,oe(n)}function B(e,t){return F(e,t)/7}function F(e,t){return(t.valueOf()-e.valueOf())/864e5}function W(e,t){return(t.valueOf()-e.valueOf())/36e5}function Z(e,t){return(t.valueOf()-e.valueOf())/6e4}function j(e,t){return(t.valueOf()-e.valueOf())/1e3}function Y(e,t){var n=X(e),r=X(t);return{years:0,months:0,days:Math.round(F(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function q(e,t){var n=G(e,t);return null!==n&&n%7==0?n/7:null}function G(e,t){return se(e)===se(t)?Math.round(F(e,t)):null}function X(e){return oe([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function J(e){return oe([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function K(e){return oe([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function Q(e){return oe([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function $(e,t,n){var r=e.getUTCFullYear(),i=ee(e,r,t,n);if(i<1)return ee(e,r-1,t,n);var o=ee(e,r+1,t,n);return o>=1?Math.min(i,o):i}function ee(e,t,n,r){var i=oe([t,0,1+te(t,n,r)]),o=X(e),a=Math.round(F(i,o));return Math.floor(a/7)+1}function te(e,t,n){var r=7+t-n;return-(7+oe([e,0,r]).getUTCDay()-t)%7+r-1}function ne(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function re(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function ie(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function oe(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function ae(e){return!isNaN(e.valueOf())}function se(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function ue(e,t){var n;return"string"==typeof e?le(e):"object"==typeof e&&e?ce(e):"number"==typeof e?ce((n={},n[t||"milliseconds"]=e,n)):null}function le(e){var t=Ci.exec(e);if(t){var n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}function ce(e){return{years:e.years||e.year||0,months:e.months||e.month||0,days:(e.days||e.day||0)+7*de(e),milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)}}function de(e){return e.weeks||e.week||0}function fe(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function pe(e){return 0===e.years&&0===e.months&&1===e.days&&0===e.milliseconds}function he(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function ve(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function ge(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function ye(e){return Ee(e)/365}function me(e){return Ee(e)/30}function Ee(e){return be(e)/864e5}function Se(e){return be(e)/6e4}function De(e){return be(e)/1e3}function be(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function Te(e,t){for(var n=null,r=0;r<Ii.length;r++){var i=Ii[r];if(t[i]){var o=e[i]/t[i];if(!Ze(o)||null!==n&&n!==o)return null;n=o}else if(e[i])return null}return n}function we(e,t){var n=e.milliseconds;if(n){if(n%1e3!=0)return{unit:"millisecond",value:n};if(n%6e4!=0)return{unit:"second",value:n/1e3};if(n%36e5!=0)return{unit:"minute",value:n/6e4};if(n)return{unit:"hour",value:n/36e5}}return e.days?t||e.days%7!=0?{unit:"day",value:e.days}:{unit:"week",value:e.days/7}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function Re(e,t){t.left&&g(e,{borderLeftWidth:1,marginLeft:t.left-1}),t.right&&g(e,{borderRightWidth:1,marginRight:t.right-1})}function Ie(e){g(e,{marginLeft:"",marginRight:"",borderLeftWidth:"",borderRightWidth:""})}function Ce(){document.body.classList.add("fc-not-allowed")}function Me(){document.body.classList.remove("fc-not-allowed")}function ke(e,t,n){var r=Math.floor(t/e.length),i=Math.floor(t-r*(e.length-1)),o=[],a=[],s=[],u=0;Oe(e),e.forEach(function(t,n){var l=n===e.length-1?i:r,c=_(t);c<l?(o.push(t),a.push(c),s.push(t.offsetHeight)):u+=c}),n&&(t-=u,r=Math.floor(t/o.length),i=Math.floor(t-r*(o.length-1))),o.forEach(function(e,t){var n=t===o.length-1?i:r,u=a[t],l=s[t],c=n-(u-l);u<n&&(e.style.height=c+"px")})}function Oe(e){e.forEach(function(e){e.style.height=""})}function _e(e){var t=0;return e.forEach(function(e){var n=e.firstChild;if(n instanceof HTMLElement){var r=n.offsetWidth;r>t&&(t=r)}}),t++,e.forEach(function(e){e.style.width=t+"px"}),t}function Pe(e,t){var n={position:"relative",left:-1};g(e,n),g(t,n);var r=e.offsetHeight-t.offsetHeight,i={position:"",left:""};return g(e,i),g(t,i),r}function He(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",x)}function xe(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",x)}function Ne(e){e.addEventListener("contextmenu",x)}function ze(e){e.removeEventListener("contextmenu",x)}function Ue(e){var t,n,r=[],i=[];for("string"==typeof e?i=e.split(/\s*,\s*/):"function"==typeof e?i=[e]:Array.isArray(e)&&(i=e),t=0;t<i.length;t++)n=i[t],"string"==typeof n?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r}function Le(e,t,n){var r,i;for(r=0;r<n.length;r++)if(i=Ae(e,t,n[r]))return i;return 0}function Ae(e,t,n){return n.func?n.func(e,t):Ve(e[n.field],t[n.field])*(n.order||1)}function Ve(e,t){return e||t?null==t?-1:null==e?1:"string"==typeof e||"string"==typeof t?String(e).localeCompare(String(t)):e-t:0}function Be(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Fe(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function We(e,t){return e-t}function Ze(e){return e%1==0}function je(e,t,n){if("function"==typeof e&&(e=[e]),e){var r=void 0,i=void 0;for(r=0;r<e.length;r++)i=e[r].apply(t,n)||i;return i}}function Ye(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++)if(void 0!==e[n])return e[n]}function qe(e,t){var n,r,i,o,a,s=function(){var u=(new Date).valueOf()-o;u<t?n=setTimeout(s,t-u):(n=null,a=e.apply(i,r),i=r=null)};return function(){return i=this,r=arguments,o=(new Date).valueOf(),n||(n=setTimeout(s,t)),a}}function Ge(e,t,n,r){void 0===n&&(n={});var i={};for(var o in t){var a=t[o];void 0!==e[o]?a===Function?i[o]="function"==typeof e[o]?e[o]:null:i[o]=a?a(e[o]):e[o]:void 0!==n[o]?i[o]=n[o]:a===String?i[o]="":a&&a!==Number&&a!==Boolean&&a!==Function?i[o]=a(null):i[o]=null}if(r)for(var o in e)void 0===t[o]&&(r[o]=e[o]);return i}function Xe(e){return Array.isArray(e)?Array.prototype.slice.call(e):e}function Je(e){var t=Math.floor(F(e.start,e.end))||1,n=X(e.start);return{start:n,end:A(n,t)}}function Ke(e,t){void 0===t&&(t=ue(0));var n=null,r=null;if(e.end){r=X(e.end);var i=e.end.valueOf()-r.valueOf();i&&i>=be(t)&&(r=A(r,1))}return e.start&&(n=X(e.start),r&&r<=n&&(r=A(n,1))),{start:n,end:r}}function Qe(e){var t=Ke(e);return F(t.start,t.end)>1}function $e(e,t,n,r){return"year"===r?ue(n.diffWholeYears(e,t),"year"):"month"===r?ue(n.diffWholeMonths(e,t),"month"):Y(e,t)}function et(e,t){function n(){this.constructor=e}Mi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function tt(e,t,n,r,i){for(var o=0;o<r.length;o++){var a={},s=r[o].parse(e,a,n);if(s){var u=a.allDay;return delete a.allDay,null==u&&null==(u=t)&&null==(u=s.allDayGuess)&&(u=!1),ki(i,a),{allDay:u,duration:s.duration,typeData:s.typeData,typeId:o}}}return null}function nt(e,t,n,r){var i=r[e.recurringDef.typeId],o=i.expand(e.recurringDef.typeData,t,n);return e.allDay&&(o=o.map(X)),o}function rt(e,t){var n,r,i,o,a,s,u={};if(t)for(n=0;n<t.length;n++){for(r=t[n],i=[],o=e.length-1;o>=0;o--)if("object"==typeof(a=e[o][r])&&a)i.unshift(a);else if(void 0!==a){u[r]=a;break}i.length&&(u[r]=rt(i))}for(n=e.length-1;n>=0;n--){s=e[n];for(r in s)r in u||(u[r]=s[r])}return u}function it(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function ot(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function at(e){for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}function st(e){var t=[];for(var n in e)t.push(e[n]);return t}function ut(e,t,n,r){for(var i=vt(),o=0,a=e;o<a.length;o++){var s=a[o],u=On(s,t,n,r);u&<(u,i)}return i}function lt(e,t){return void 0===t&&(t=vt()),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function ct(e,t,n){var r=n.dateEnv,i=e.defs,o=e.instances;o=it(o,function(e){return!i[e.defId].recurringDef});for(var a in i){var s=i[a];if(s.recurringDef){var u=nt(s,t,n.dateEnv,n.pluginSystem.hooks.recurringTypes),l=s.recurringDef.duration;l||(l=s.allDay?n.defaultAllDayEventDuration:n.defaultTimedEventDuration);for(var c=0,d=u;c<d.length;c++){var f=d[c],p=Pn(a,{start:f,end:r.add(f,l)});o[p.instanceId]=p}}}return{defs:i,instances:o}}function dt(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],i=yt(e,function(e){return ft(r,e)});return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return vt()}function ft(e,t){return Boolean(e.groupId&&e.groupId===t.groupId)}function pt(e,t,n){var r=n.opt("eventDataTransform"),i=t?t.eventDataTransform:null;return i&&(e=ht(e,i)),r&&(e=ht(e,r)),e}function ht(e,t){var n;if(t){n=[];for(var r=0,i=e;r<i.length;r++){var o=i[r],a=t(o);a?n.push(a):null==a&&n.push(o)}}else n=e;return n}function vt(){return{defs:{},instances:{}}}function gt(e,t){return{defs:ki({},e.defs,t.defs),instances:ki({},e.instances,t.instances)}}function yt(e,t){var n=it(e.defs,t),r=it(e.instances,function(e){return n[e.defId]});return{defs:n,instances:r}}function mt(e,t){var n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),n||r?n&&r&&r<n?null:{start:n,end:r}:null}function Et(e,t){var n,r,i=[],o=t.start;for(e.sort(St),n=0;n<e.length;n++)r=e[n],r.start>o&&i.push({start:o,end:r.start}),r.end>o&&(o=r.end);return o<t.end&&i.push({start:o,end:t.end}),i}function St(e,t){return e.start.valueOf()-t.start.valueOf()}function Dt(e,t){var n=e.start,r=e.end,i=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(i={start:n,end:r}),i}function bt(e,t){return(null===e.start?null:e.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===e.end?null:e.end.valueOf())===(null===t.end?null:t.end.valueOf())}function Tt(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function wt(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function Rt(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function It(e,t){return null!=t.start&&e<t.start?t.start:null!=t.end&&e>=t.end?new Date(t.end.valueOf()-1):e}function Ct(e,t){for(var n=0,r=0;r<e.length;)e[r]===t?(e.splice(r,1),n++):r++;return n}function Mt(e,t){var n,r=e.length;if(r!==t.length)return!1;for(n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function kt(e){var t,n;return function(){return t&&Mt(t,arguments)||(t=arguments,n=e.apply(this,arguments)),n}}function Ot(e,t){var n=null;return function(){var r=e.apply(this,arguments);return(null===n||n!==r&&!t(n,r))&&(n=r),n}}function _t(e,t,n){var r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?function(e){return Wt(e.timeZoneOffset)}:0===r&&t.week?function(e){return zt(n.computeWeekNumber(e.marker),n.weekLabel,n.locale,t.week)}:Pt(e,t,n)}function Pt(e,t,n){e=ki({},e),t=ki({},t),Ht(e,t),e.timeZone="UTC";var r,i=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){var o=ki({},e);delete o.minute,r=new Intl.DateTimeFormat(n.locale.codes,o)}return function(o){var a,s=o.marker;return a=r&&!s.getUTCMinutes()?r:i,xt(a.format(s),o,e,t,n)}}function Ht(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit")),"long"===e.timeZoneName&&(e.timeZoneName="short"),t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}function xt(e,t,n,r,i){return e=e.replace(Ni,""),"short"===n.timeZoneName&&(e=Nt(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":Wt(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(Hi,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),!1===r.meridiem?e=e.replace(Pi,"").trim():"narrow"===r.meridiem?e=e.replace(Pi,function(e,t){return t.toLocaleLowerCase()}):"short"===r.meridiem?e=e.replace(Pi,function(e,t){return t.toLocaleLowerCase()+"m"}):"lowercase"===r.meridiem&&(e=e.replace(Pi,function(e){return e.toLocaleLowerCase()})),e=e.replace(xi," "),e=e.trim()}function Nt(e,t){var n=!1;return e=e.replace(zi,function(){return n=!0,t}),n||(e+=" "+t),e}function zt(e,t,n,r){var i=[];return"narrow"===r?i.push(t):"short"===r&&i.push(t," "),i.push(n.simpleNumberFormat.format(e)),n.options.isRtl&&i.reverse(),i.join("")}function Ut(e,t,n){return n.getMarkerYear(e)!==n.getMarkerYear(t)?5:n.getMarkerMonth(e)!==n.getMarkerMonth(t)?4:n.getMarkerDay(e)!==n.getMarkerDay(t)?2:se(e)!==se(t)?1:0}function Lt(e,t){var n={};for(var r in e)r in _i&&!(_i[r]<=t)||(n[r]=e[r]);return n}function At(e,t,n,r){for(var i=0;i<e.length;){var o=e.indexOf(t,i);if(-1===o)break;var a=e.substr(0,o);i=o+t.length;for(var s=e.substr(i),u=0;u<n.length;){var l=n.indexOf(r,u);if(-1===l)break;var c=n.substr(0,l);u=l+r.length;var d=n.substr(u);if(a===c&&s===d)return{before:a,after:s}}}return null}function Vt(e,t){return"object"==typeof e&&e?("string"==typeof t&&(e=ki({separator:t},e)),new Ui(e)):"string"==typeof e?new Li(e,t):"function"==typeof e?new Ai(e):void 0}function Bt(e,t,n){void 0===n&&(n=!1);var r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",Wt(t,!0)))),r}function Ft(e){return Fe(e.getUTCHours(),2)+":"+Fe(e.getUTCMinutes(),2)+":"+Fe(e.getUTCSeconds(),2)}function Wt(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=Math.round(r%60);return t?n+Fe(i,2)+":"+Fe(o,2):"GMT"+n+i+(o?":"+Fe(o,2):"")}function Zt(e,t,n,r){var i=jt(e,n.calendarSystem);return{date:i,start:i,end:t?jt(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,separator:r}}function jt(e,t){var n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function Yt(e,t,n,r){var i={},o={},a={},s=[],u=[],l=Kt(e.defs,t);for(var c in e.defs){var d=e.defs[c];"inverse-background"===d.rendering&&(d.groupId?(i[d.groupId]=[],a[d.groupId]||(a[d.groupId]=d)):o[c]=[])}for(var f in e.instances){var p=e.instances[f],d=e.defs[p.defId],h=l[d.defId],v=p.range,g=!d.allDay&&r?Ke(v,r):v,y=Dt(g,n);y&&("inverse-background"===d.rendering?d.groupId?i[d.groupId].push(y):o[p.defId].push(y):("background"===d.rendering?s:u).push({def:d,ui:h,instance:p,range:y,isStart:g.start&&g.start.valueOf()===y.start.valueOf(),isEnd:g.end&&g.end.valueOf()===y.end.valueOf()}))}for(var m in i)for(var E=i[m],S=Et(E,n),D=0,b=S;D<b.length;D++){var T=b[D],d=a[m],h=l[d.defId];s.push({def:d,ui:h,instance:null,range:T,isStart:!1,isEnd:!1})}for(var c in o)for(var E=o[c],S=Et(E,n),w=0,R=S;w<R.length;w++){var T=R[w];s.push({def:e.defs[c],ui:l[c],instance:null,range:T,isStart:!1,isEnd:!1})}return{bg:s,fg:u}}function qt(e){return"background"===e.rendering||"inverse-background"===e.rendering}function Gt(e,t,n){e.hasPublicHandlers("eventRender")&&(t=t.filter(function(t){var r=e.publiclyTrigger("eventRender",[{event:new Bi(e.calendar,t.eventRange.def,t.eventRange.instance),isMirror:n,isStart:t.isStart,isEnd:t.isEnd,el:t.el,view:e}]);return!1!==r&&(r&&!0!==r&&(t.el=r),!0)}));for(var r=0,i=t;r<i.length;r++){var o=i[r];Xt(o.el,o)}return t}function Xt(e,t){e.fcSeg=t}function Jt(e){return e.fcSeg||null}function Kt(e,t){return ot(e,function(e){return Qt(e,t)})}function Qt(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),Mn(n)}function $t(e,t,n,r){var i=Kt(e.defs,t),o=vt();for(var a in e.defs){var s=e.defs[a];o.defs[a]=en(s,i[a],n,r.pluginSystem.hooks.eventDefMutationAppliers,r)}for(var u in e.instances){var l=e.instances[u],s=o.defs[l.defId];o.instances[u]=nn(l,s,i[l.defId],n,r)}return o}function en(e,t,n,r,i){var o=n.standardProps||{};null==o.hasEnd&&t.durationEditable&&tn(t.startEditable?n.startDelta:null,n.endDelta||null)&&(o.hasEnd=!0);var a=ki({},e,o,{ui:ki({},e.ui,o.ui)});n.extendedProps&&(a.extendedProps=ki({},a.extendedProps,n.extendedProps));for(var s=0,u=r;s<u.length;s++){(0,u[s])(a,n,i)}return!a.hasEnd&&i.opt("forceEventDuration")&&(a.hasEnd=!0),a}function tn(e,t){return e&&!be(e)&&(e=null),t&&!be(t)&&(t=null),!(!e&&!t)&&(Boolean(e)!==Boolean(t)||!fe(e,t))}function nn(e,t,n,r,i){var o=i.dateEnv,a=r.standardProps&&!0===r.standardProps.allDay,s=r.standardProps&&!1===r.standardProps.hasEnd,u=ki({},e);return a&&(u.range=Je(u.range)),r.startDelta&&n.startEditable&&(u.range={start:o.add(u.range.start,r.startDelta),end:u.range.end}),s?u.range={start:u.range.start,end:i.getDefaultEventEnd(t.allDay,u.range.start)}:!r.endDelta||!n.durationEditable&&tn(n.startEditable?r.startDelta:null,r.endDelta)||(u.range={start:u.range.start,end:o.add(u.range.end,r.endDelta)}),t.allDay&&(u.range={start:X(u.range.start),end:X(u.range.end)}),u.range.end<u.range.start&&(u.range.end=i.getDefaultEventEnd(t.allDay,u.range.start)),u}function rn(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return on(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"ADD_EVENTS":return an(e,t.eventStore,r?r.activeRange:null,i);case"MERGE_EVENTS":return gt(e,t.eventStore);case"PREV":case"NEXT":case"SET_DATE":case"SET_VIEW_TYPE":return r?ct(e,r.activeRange,i):e;case"CHANGE_TIMEZONE":return sn(e,t.oldDateEnv,i.dateEnv);case"MUTATE_EVENTS":return un(e,t.instanceId,t.mutation,t.fromApi,i);case"REMOVE_EVENT_INSTANCES":return cn(e,t.instances);case"REMOVE_EVENT_DEF":return yt(e,function(e){return e.defId!==t.defId});case"REMOVE_EVENT_SOURCE":return ln(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return yt(e,function(e){return!e.sourceId});case"REMOVE_ALL_EVENTS":return vt();case"RESET_EVENTS":return{defs:e.defs,instances:e.instances};default:return e}}function on(e,t,n,r,i,o){if(t&&n===t.latestFetchId){var a=ut(pt(i,t,o),t.sourceId,o);return r&&(a=ct(a,r,o)),gt(ln(e,t.sourceId),a)}return e}function an(e,t,n,r){return n&&(t=ct(t,n,r)),gt(e,t)}function sn(e,t,n){var r=e.defs,i=ot(e.instances,function(e){var i=r[e.defId];return i.allDay||i.recurringDef?e:ki({},e,{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})});return{defs:r,instances:i}}function un(e,t,n,r,i){var o=dt(e,t);return o=$t(o,r?{"":{startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}}:i.eventUiBases,n,i),gt(e,o)}function ln(e,t){return yt(e,function(e){return e.sourceId!==t})}function cn(e,t){return{defs:e.defs,instances:it(e.instances,function(e){return!t[e.instanceId]})}}function dn(e,t){return pn({eventDrag:e},t)}function fn(e,t){return pn({dateSelection:e},t)}function pn(e,t){var n=t.view,r=ki({businessHours:n?n.props.businessHours:vt(),dateSelection:"",eventStore:t.state.eventStore,eventUiBases:t.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginSystem.hooks.isPropsValid||hn)(r,t)}function hn(e,t,n,r){return void 0===n&&(n={}),!(e.eventDrag&&!vn(e,t,n,r))&&!(e.dateSelection&&!gn(e,t,n,r))}function vn(e,t,n,r){var i=e.eventDrag,o=i.mutatedEvents,a=o.defs,s=o.instances,u=Kt(a,i.isEvent?e.eventUiBases:{"":t.selectionConfig});r&&(u=ot(u,r));var l=cn(e.eventStore,i.affectedEvents.instances),c=l.defs,d=l.instances,f=Kt(c,e.eventUiBases);for(var p in s){var h=s[p],v=h.range,g=u[h.defId],y=a[h.defId];if(!yn(g.constraints,v,l,e.businessHours,t))return!1;var m=t.opt("eventOverlap");"function"!=typeof m&&(m=null);for(var E in d){var S=d[E];if(Tt(v,S.range)){if(!1===f[S.defId].overlap&&i.isEvent)return!1;if(!1===g.overlap)return!1;if(m&&!m(new Bi(t,c[S.defId],S),new Bi(t,y,h)))return!1}}for(var D=0,b=g.allows;D<b.length;D++){var T=b[D],w=ki({},n,{range:h.range,allDay:y.allDay}),R=e.eventStore.defs[y.defId],I=e.eventStore.instances[p],C=void 0;if(C=R?new Bi(t,R,I):new Bi(t,y),!T(t.buildDateSpanApi(w),C))return!1}}return!0}function gn(e,t,n,r){var i=e.eventStore,o=i.defs,a=i.instances,s=e.dateSelection,u=s.range,l=t.selectionConfig;if(r&&(l=r(l)),!yn(l.constraints,u,i,e.businessHours,t))return!1;var c=t.opt("selectOverlap");"function"!=typeof c&&(c=null);for(var d in a){var f=a[d];if(Tt(u,f.range)){if(!1===l.overlap)return!1;if(c&&!c(new Bi(t,o[f.defId],f)))return!1}}for(var p=0,h=l.allows;p<h.length;p++){var v=h[p],g=ki({},n,s);if(!v(t.buildDateSpanApi(g),null))return!1}return!0}function yn(e,t,n,r,i){for(var o=0,a=e;o<a.length;o++){if(!Sn(mn(a[o],t,n,r,i),t))return!1}return!0}function mn(e,t,n,r,i){return"businessHours"===e?En(ct(r,t,i)):"string"==typeof e?En(yt(n,function(t){return t.groupId===e})):"object"==typeof e&&e?En(ct(e,t,i)):[]}function En(e){var t=e.instances,n=[];for(var r in t)n.push(t[r].range);return n}function Sn(e,t){for(var n=0,r=e;n<r.length;n++){if(wt(r[n],t))return!0}return!1}function Dn(e,t){return Array.isArray(e)?ut(e,"",t,!0):"object"==typeof e&&e?ut([e],"",t,!0):null!=e?String(e):null}function bn(e){return(e+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}function Tn(e){var t=[];for(var n in e){var r=e[n];null!=r&&""!==r&&t.push(n+":"+r)}return t.join(";")}function wn(e){var t=[];for(var n in e){var r=e[n];null!=r&&t.push(n+'="'+bn(r)+'"')}return t.join(" ")}function Rn(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}function In(e,t,n){var r=Ge(e,Fi,{},n),i=Dn(r.constraint,t);return{startEditable:null!=r.startEditable?r.startEditable:r.editable,durationEditable:null!=r.durationEditable?r.durationEditable:r.editable,constraints:null!=i?[i]:[],overlap:r.overlap,allows:null!=r.allow?[r.allow]:[],backgroundColor:r.backgroundColor||r.color,borderColor:r.borderColor||r.color,textColor:r.textColor,classNames:r.classNames.concat(r.className)}}function Cn(e,t,n,r){var i={},o={};for(var a in Fi){var s=e+Be(a);i[a]=t[s],o[s]=!0}if("event"===e&&(i.editable=t.editable),r)for(var a in t)o[a]||(r[a]=t[a]);return In(i,n)}function Mn(e){return e.reduce(kn,Wi)}function kn(e,t){return{startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}function On(e,t,n,r){var i=zn(t,n),o={},a=tt(e,i,n.dateEnv,n.pluginSystem.hooks.recurringTypes,o);if(a){var s=_n(o,t,a.allDay,Boolean(a.duration),n);return s.recurringDef={typeId:a.typeId,typeData:a.typeData,duration:a.duration},{def:s,instance:null}}var u={},l=Hn(e,i,n,u,r);if(l){var s=_n(u,t,l.allDay,l.hasEnd,n);return{def:s,instance:Pn(s.defId,l.range,l.forcedStartTzo,l.forcedEndTzo)}}return null}function _n(e,t,n,r,i){var o={},a=Nn(e,i,o);a.defId=String(Yi++),a.sourceId=t,a.allDay=n,a.hasEnd=r;for(var s=0,u=i.pluginSystem.hooks.eventDefParsers;s<u.length;s++){var l=u[s],c={};l(a,o,c),o=c}return a.extendedProps=ki(o,a.extendedProps||{}),Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function Pn(e,t,n,r){return{instanceId:String(Yi++),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function Hn(e,t,n,r,i){var o,a,s=xn(e,r),u=s.allDay,l=null,c=!1,d=null;if(o=n.dateEnv.createMarkerMeta(s.start))l=o.marker;else if(!i)return null;return null!=s.end&&(a=n.dateEnv.createMarkerMeta(s.end)),null==u&&(u=null!=t?t:(!o||o.isTimeUnspecified)&&(!a||a.isTimeUnspecified)),u&&l&&(l=X(l)),a&&(d=a.marker,u&&(d=X(d)),l&&d<=l&&(d=null)),d?c=!0:i||(c=n.opt("forceEventDuration")||!1,d=n.dateEnv.add(l,u?n.defaultAllDayEventDuration:n.defaultTimedEventDuration)),{allDay:u,hasEnd:c,range:{start:l,end:d},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:a?a.forcedTzo:null}}function xn(e,t){var n=Ge(e,ji,{},t);return n.start=null!==n.start?n.start:n.date,delete n.date,n}function Nn(e,t,n){var r={},i=Ge(e,Zi,{},r),o=In(r,t,n);return i.publicId=i.id,delete i.id,i.ui=o,i}function zn(e,t){var n=null;if(e){n=t.state.eventSources[e].allDayDefault}return null==n&&(n=t.opt("allDayDefault")),n}function Un(e,t){return ut(Ln(e),"",t)}function Ln(e){var t;return t=!0===e?[{}]:Array.isArray(e)?e.filter(function(e){return e.daysOfWeek}):"object"==typeof e&&e?[e]:[],t=t.map(function(e){return ki({},qi,e)})}function An(e,t,n){function r(){if(a){for(var e=0,n=s;e<n.length;e++){n[e].unrender()}t&&t.apply(o,a),a=null}}function i(){a&&Mt(a,arguments)||(r(),o=this,a=arguments,e.apply(this,arguments))}void 0===n&&(n=[]);var o,a,s=[];i.dependents=s,i.unrender=r;for(var u=0,l=n;u<l.length;u++){l[u].dependents.push(i)}return i}function Vn(e,t,n){return void 0===n&&(n=1),e===t||(Array.isArray(e)&&Array.isArray(t)?Bn(e,t,n):!("object"!=typeof e||!e||"object"!=typeof t||!t)&&Fn(e,t,n))}function Bn(e,t,n){if(void 0===n&&(n=1),e===t)return!0;if(n>0){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!Vn(e[r],t[r],n-1))return!1;return!0}return!1}function Fn(e,t,n){if(void 0===n&&(n=1),e===t)return!0;if(n>0){for(var r in e)if(!(r in t))return!1;for(var r in t){if(!(r in e))return!1;if(!Vn(e[r],t[r],n-1))return!1}return!0}return!1}function Wn(e,t,n){void 0===n&&(n=1);var r={};for(var i in t)i in e&&Vn(e[i],t[i],n-1)||(r[i]=t[i]);return r}function Zn(e,t){for(var n in e)if(!(n in t))return!0;return!1}function jn(e,t,n){var r=[];e&&r.push(e),t&&r.push(t);var i={"":Mn(r)};return n&&ki(i,n),i}function Yn(e,t,n,r){var i,o,a,s,u=e.dateEnv;return t instanceof Date?i=t:(i=t.date,o=t.type,a=t.forceOff),s={date:u.formatIso(i,{omitTime:!0}),type:o||"day"},"string"==typeof n&&(r=n,n=null),n=n?" "+wn(n):"",r=r||"",!a&&e.opt("navLinks")?"<a"+n+' data-goto="'+bn(JSON.stringify(s))+'">'+r+"</a>":"<span"+n+">"+r+"</span>"}function qn(e){return e.opt("allDayHtml")||bn(e.opt("allDayText"))}
|
7
|
+
function Gn(e,t,n,r){var i,o,a=n.calendar,s=n.view,u=n.theme,l=n.dateEnv,c=[];return Rt(t.activeRange,e)?(c.push("fc-"+Ri[e.getUTCDay()]),s.opt("monthMode")&&l.getMonth(e)!==l.getMonth(t.currentRange.start)&&c.push("fc-other-month"),i=X(a.getNow()),o=A(i,1),e<i?c.push("fc-past"):e>=o?c.push("fc-future"):(c.push("fc-today"),!0!==r&&c.push(u.getClass("today")))):c.push("fc-disabled-day"),c}function Xn(e,t,n){var r=!1,i=function(){r||(r=!0,t.apply(this,arguments))},o=function(){r||(r=!0,n&&n.apply(this,arguments))},a=e(i,o);a&&"function"==typeof a.then&&a.then(i,o)}function Jn(e,t,n){(e[t]||(e[t]=[])).push(n)}function Kn(e,t,n){n?e[t]&&(e[t]=e[t].filter(function(e){return e!==n})):delete e[t]}function Qn(e,t,n){var r={},i=!1;for(var o in t)o in e&&(e[o]===t[o]||n[o]&&n[o](e[o],t[o]))?r[o]=e[o]:(r[o]=t[o],i=!0);for(var o in e)if(!(o in t)){i=!0;break}return{anyChanges:i,comboProps:r}}function $n(e){return{id:String(so++),deps:e.deps||[],reducers:e.reducers||[],eventDefParsers:e.eventDefParsers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],eventResizeJoinTransforms:e.eventResizeJoinTransforms||[],viewContainerModifiers:e.viewContainerModifiers||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,defaultView:e.defaultView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{}}}function er(e,t){return{reducers:e.reducers.concat(t.reducers),eventDefParsers:e.eventDefParsers.concat(t.eventDefParsers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:ki({},e.views,t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),eventResizeJoinTransforms:e.eventResizeJoinTransforms.concat(t.eventResizeJoinTransforms),viewContainerModifiers:e.viewContainerModifiers.concat(t.viewContainerModifiers),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),themeClasses:ki({},e.themeClasses,t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,defaultView:e.defaultView||t.defaultView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:ki({},e.optionChangeHandlers,t.optionChangeHandlers)}}function tr(e,t,n,r,i){e=e.toUpperCase();var o=null;"GET"===e?t=nr(t,n):o=rr(n);var a=new XMLHttpRequest;a.open(e,t,!0),"GET"!==e&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.onload=function(){if(a.status>=200&&a.status<400)try{var e=JSON.parse(a.responseText);r(e,a)}catch(e){i("Failure parsing JSON",a)}else i("Request failed",a)},a.onerror=function(){i("Request failed",a)},a.send(o)}function nr(e,t){return e+(-1===e.indexOf("?")?"?":"&")+rr(t)}function rr(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}function ir(e,t,n){var r,i,o,a,s=n.dateEnv,u={};return r=e.startParam,null==r&&(r=n.opt("startParam")),i=e.endParam,null==i&&(i=n.opt("endParam")),o=e.timeZoneParam,null==o&&(o=n.opt("timeZoneParam")),a="function"==typeof e.extraParams?e.extraParams():e.extraParams||{},ki(u,a),u[r]=s.formatIso(t.start),u[i]=s.formatIso(t.end),"local"!==s.timeZone&&(u[o]=s.timeZone),u}function or(e,t,n,r){for(var i=e?at(e):null,o=X(n.start),a=n.end,s=[];o<a;){var u=void 0;i&&!i[o.getUTCDay()]||(u=t?r.add(o,t):o,s.push(u)),o=A(o,1)}return s}function ar(e,t){for(var n=st(t.state.eventSources),r=[],i=0,o=e;i<o.length;i++){for(var a=o[i],s=!1,u=0;u<n.length;u++)if(Vn(n[u]._raw,a,2)){n.splice(u,1),s=!0;break}s||r.push(a)}for(var l=0,c=n;l<c.length;l++){var d=c[l];t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:d.sourceId})}for(var f=0,p=r;f<p.length;f++){var h=p[f];t.addEventSource(h)}}function sr(e,t){t.addPluginInputs(e)}function ur(e){return rt(e,bo)}function lr(e){for(var t=[],n=0,r=e;n<r.length;n++){var i=r[n];if("string"==typeof i){var o="FullCalendar"+Be(i);window[o]?t.push(window[o].default):console.warn("Plugin file not loaded for "+i)}else t.push(i)}return To.concat(t)}function cr(e){for(var t=e.length>0?e[0].code:"en",n=window.FullCalendarLocalesAll||[],r=window.FullCalendarLocales||{},i=n.concat(st(r),e),o={en:wo},a=0,s=i;a<s.length;a++){var u=s[a];o[u.code]=u}return{map:o,defaultCode:t}}function dr(e,t){return"object"!=typeof e||Array.isArray(e)?fr(e,t):hr(e.code,[e.code],e)}function fr(e,t){var n=[].concat(e||[]);return hr(e,n,pr(n,t)||wo)}function pr(e,t){for(var n=0;n<e.length;n++)for(var r=e[n].toLocaleLowerCase().split("-"),i=r.length;i>0;i--){var o=r.slice(0,i).join("-");if(t[o])return t[o]}return null}function hr(e,t,n){var r=rt([wo,n],["buttonText"]);delete r.code;var i=r.week;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function vr(e){return new Io[e]}function gr(e){var t=null,n=!1,r=Mo.exec(e);r&&(n=!r[1],n?e+="T00:00:00Z":e=e.replace(ko,function(e,n,r,i,o){return t=n?0:(60*parseInt(i,10)+parseInt(o||0,10))*("-"===r?-1:1),""})+"Z");var i=new Date(e);return ae(i)?{marker:i,isTimeUnspecified:n,timeZoneOffset:t}:null}function yr(e,t){return!t.pluginSystem.hooks.eventSourceDefs[e.sourceDefId].ignoreRange}function mr(e,t){for(var n=t.pluginSystem.hooks.eventSourceDefs,r=n.length-1;r>=0;r--){var i=n[r],o=i.parseMeta(e);if(o){var a=Er("object"==typeof e?e:{},o,r,t);return a._raw=Xe(e),a}}return null}function Er(e,t,n,r){var i={},o=Ge(e,_o,{},i),a={},s=In(i,r,a);return o.isFetching=!1,o.latestFetchId="",o.fetchRange=null,o.publicId=String(e.id||""),o.sourceId=String(Po++),o.sourceDefId=n,o.meta=t,o.ui=s,o.extendedProps=a,o}function Sr(e,t,n,r){switch(t.type){case"ADD_EVENT_SOURCES":return Dr(e,t.sources,n?n.activeRange:null,r);case"REMOVE_EVENT_SOURCE":return br(e,t.sourceId);case"PREV":case"NEXT":case"SET_DATE":case"SET_VIEW_TYPE":return n?Tr(e,n.activeRange,r):e;case"FETCH_EVENT_SOURCES":case"CHANGE_TIMEZONE":return Rr(e,t.sourceIds?at(t.sourceIds):Mr(e,r),n?n.activeRange:null,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return Cr(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function Dr(e,t,n,r){for(var i={},o=0,a=t;o<a.length;o++){var s=a[o];i[s.sourceId]=s}return n&&(i=Tr(i,n,r)),ki({},e,i)}function br(e,t){return it(e,function(e){return e.sourceId!==t})}function Tr(e,t,n){return Rr(e,it(e,function(e){return wr(e,t,n)}),t,n)}function wr(e,t,n){return yr(e,n)?!n.opt("lazyFetching")||!e.fetchRange||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}function Rr(e,t,n,r){var i={};for(var o in e){var a=e[o];t[o]?i[o]=Ir(a,n,r):i[o]=a}return i}function Ir(e,t,n){var r=n.pluginSystem.hooks.eventSourceDefs[e.sourceDefId],i=String(Ho++);return r.fetch({eventSource:e,calendar:n,range:t},function(r){var o,a,s=r.rawEvents,u=n.opt("eventSourceSuccess");e.success&&(a=e.success(s,r.xhr)),u&&(o=u(s,r.xhr)),s=a||o||s,n.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:i,fetchRange:t,rawEvents:s})},function(r){var o=n.opt("eventSourceFailure");console.warn(r.message,r),e.failure&&e.failure(r),o&&o(r),n.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:i,fetchRange:t,error:r})}),ki({},e,{isFetching:!0,latestFetchId:i})}function Cr(e,t,n,r){var i,o=e[t];return o&&n===o.latestFetchId?ki({},e,(i={},i[t]=ki({},o,{isFetching:!1,fetchRange:r}),i)):e}function Mr(e,t){return it(e,function(e){return yr(e,t)})}function kr(e,t){return bt(e.activeRange,t.activeRange)&&bt(e.validRange,t.validRange)&&fe(e.minTime,t.minTime)&&fe(e.maxTime,t.maxTime)}function Or(e,t,n){for(var r=_r(e.viewType,t),i=Pr(e.dateProfile,t,e.currentDate,r,n),o=Sr(e.eventSources,t,i,n),a=ki({},e,{viewType:r,dateProfile:i,currentDate:Hr(e.currentDate,t,i),eventSources:o,eventStore:rn(e.eventStore,t,o,i,n),dateSelection:xr(e.dateSelection,t,n),eventSelection:Nr(e.eventSelection,t),eventDrag:zr(e.eventDrag,t,o,n),eventResize:Ur(e.eventResize,t,o,n),eventSourceLoadingLevel:Lr(o),loadingLevel:Lr(o)}),s=0,u=n.pluginSystem.hooks.reducers;s<u.length;s++){a=(0,u[s])(a,t,n)}return a}function _r(e,t){switch(t.type){case"SET_VIEW_TYPE":return t.viewType;default:return e}}function Pr(e,t,n,r,i){var o;switch(t.type){case"PREV":o=i.dateProfileGenerators[r].buildPrev(e,n);break;case"NEXT":o=i.dateProfileGenerators[r].buildNext(e,n);break;case"SET_DATE":e.activeRange&&Rt(e.currentRange,t.dateMarker)||(o=i.dateProfileGenerators[r].build(t.dateMarker,void 0,!0));break;case"SET_VIEW_TYPE":var a=i.dateProfileGenerators[r];if(!a)throw new Error(r?'The FullCalendar view "'+r+'" does not exist. Make sure your plugins are loaded correctly.':"No available FullCalendar view plugins.");o=a.build(t.dateMarker||n,void 0,!0)}return!o||!o.isValid||e&&kr(e,o)?e:o}function Hr(e,t,n){switch(t.type){case"PREV":case"NEXT":return Rt(n.currentRange,e)?e:n.currentRange.start;case"SET_DATE":case"SET_VIEW_TYPE":var r=t.dateMarker||e;return n.activeRange&&!Rt(n.activeRange,r)?n.currentRange.start:r;default:return e}}function xr(e,t,n){switch(t.type){case"SELECT_DATES":return t.selection;case"UNSELECT_DATES":return null;default:return e}}function Nr(e,t){switch(t.type){case"SELECT_EVENT":return t.eventInstanceId;case"UNSELECT_EVENT":return"";default:return e}}function zr(e,t,n,r){switch(t.type){case"SET_EVENT_DRAG":var i=t.state;return{affectedEvents:i.affectedEvents,mutatedEvents:i.mutatedEvents,isEvent:i.isEvent,origSeg:i.origSeg};case"UNSET_EVENT_DRAG":return null;default:return e}}function Ur(e,t,n,r){switch(t.type){case"SET_EVENT_RESIZE":var i=t.state;return{affectedEvents:i.affectedEvents,mutatedEvents:i.mutatedEvents,isEvent:i.isEvent,origSeg:i.origSeg};case"UNSET_EVENT_RESIZE":return null;default:return e}}function Lr(e){var t=0;for(var n in e)e[n].isFetching&&t++;return t}function Ar(e,t,n){var r=Vr(e,t),i=r.range;if(!i.start)return null;if(!i.end){if(null==n)return null;i.end=t.add(i.start,n)}return r}function Vr(e,t){var n={},r=Ge(e,No,{},n),i=r.start?t.createMarkerMeta(r.start):null,o=r.end?t.createMarkerMeta(r.end):null,a=r.allDay;return null==a&&(a=i&&i.isTimeUnspecified&&(!o||o.isTimeUnspecified)),n.range={start:i?i.marker:null,end:o?o.marker:null},n.allDay=a,n}function Br(e,t){return bt(e.range,t.range)&&e.allDay===t.allDay&&Fr(e,t)}function Fr(e,t){for(var n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}function Wr(e,t){return{start:t.toDate(e.range.start),end:t.toDate(e.range.end),startStr:t.formatIso(e.range.start,{omitTime:e.allDay}),endStr:t.formatIso(e.range.end,{omitTime:e.allDay}),allDay:e.allDay}}function Zr(e,t){return{date:t.toDate(e.range.start),dateStr:t.formatIso(e.range.start,{omitTime:e.allDay}),allDay:e.allDay}}function jr(e,t,n){var r=_n({editable:!1},"",e.allDay,!0,n);return{def:r,ui:Qt(r,t),instance:Pn(r.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function Yr(e,t){var n,r={};for(n in e)qr(n,r,e,t);for(n in t)qr(n,r,e,t);return r}function qr(e,t,n,r){if(t[e])return t[e];var i=Gr(e,t,n,r);return i&&(t[e]=i),i}function Gr(e,t,n,r){var i=n[e],o=r[e],a=function(e){return i&&null!==i[e]?i[e]:o&&null!==o[e]?o[e]:null},s=a("class"),u=a("superType");!u&&s&&(u=Xr(s,r)||Xr(s,n));var l=u?qr(u,t,n,r):null;return!s&&l&&(s=l.class),s?{type:e,class:s,defaults:ki({},l?l.defaults:{},i?i.options:{}),overrides:ki({},l?l.overrides:{},o?o.options:{})}:null}function Xr(e,t){var n=Object.getPrototypeOf(e.prototype);for(var r in t){var i=t[r];if(i.class&&i.class.prototype===n)return r}return""}function Jr(e){return ot(e,Kr)}function Kr(e){"function"==typeof e&&(e={class:e});var t={},n=Ge(e,zo,{},t);return{superType:n.type,class:n.class,options:t}}function Qr(e,t){var n=Jr(e),r=Jr(t.overrides.views);return ot(Yr(n,r),function(e){return $r(e,r,t)})}function $r(e,t,n){var r=e.overrides.duration||e.defaults.duration||n.dynamicOverrides.duration||n.overrides.duration,i=null,o="",a="",s={};if(r&&(i=ue(r))){var u=we(i,!de(r));o=u.unit,1===u.value&&(a=o,s=t[o]?t[o].options:{})}var l=function(t){var n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[a]?n[a]:void 0};return{type:e.type,class:e.class,duration:i,durationUnit:o,singleUnit:a,options:ki({},So,e.defaults,n.dirDefaults,n.localeDefaults,n.overrides,s,e.overrides,n.dynamicOverrides),buttonTextOverride:l(n.dynamicOverrides)||l(n.overrides)||e.overrides.buttonText,buttonTextDefault:l(n.localeDefaults)||l(n.dirDefaults)||e.defaults.buttonText||l(So)||e.type}}function ei(e,t){var n;return n=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,this.dateEnv.formatRange(n.start,n.end,Vt(t.titleFormat||ti(e),t.titleRangeSeparator),{isEndExclusive:e.isRangeAllDay})}function ti(e){var t=e.currentRangeUnit;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};var n=G(e.currentRange.start,e.currentRange.end);return null!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}function ni(e){return e.map(function(e){return new e})}function ri(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter}}function ii(e){var t;return t={},t[e.component.uid]=e,t}function oi(e,t,n,r,i,o,a){return new Oo({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:n,locale:e,weekNumberCalculation:i,firstDay:r,weekLabel:o,cmdFormatter:a})}function ai(e){return new(this.pluginSystem.hooks.themeClasses[e.themeSystem]||Wo)(e)}function si(e){var t=this.tryRerender.bind(this);return null!=e&&(t=qe(t,e)),t}function ui(e){return ot(e,function(e){return e.ui})}function li(e,t,n){var r={"":t};for(var i in e){var o=e[i];o.sourceId&&n[o.sourceId]&&(r[i]=n[o.sourceId])}return r}function ci(e){var t=e.eventRange.def,n=e.eventRange.instance.range,r=n.start?n.start.valueOf():0,i=n.end?n.end.valueOf():0;return ki({},t.extendedProps,t,{id:t.publicId,start:r,end:i,duration:i-r,allDay:Number(t.allDay),_seg:e})}function di(e,t){void 0===t&&(t={});var n=pi(t),r=Vt(t),i=n.createMarkerMeta(e);return i?n.format(i.marker,r,{forcedTzo:i.forcedTzo}):""}function fi(e,t,n){var r=pi("object"==typeof n&&n?n:{}),i=Vt(n,So.defaultRangeSeparator),o=r.createMarkerMeta(e),a=r.createMarkerMeta(t);return o&&a?r.formatRange(o.marker,a.marker,i,{forcedStartTzo:o.forcedTzo,forcedEndTzo:a.forcedTzo,isEndExclusive:n.isEndExclusive}):""}function pi(e){var t=dr(e.locale||"en",cr([]).map);return e=ki({timeZone:So.timeZone,calendarSystem:"gregory"},e,{locale:t}),new Oo(e)}function hi(e){var t={},n=Ge(e,Jo,Ko,t);return n.leftoverProps=t,n}function vi(e,t){return!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"}}function gi(e,t,n,r,i,o,a,s){var u,l=o.view,c=o.dateEnv,d=o.theme,f=o.options,p=Rt(t.activeRange,e),h=["fc-day-header",d.getClass("widgetHeader")];return u="function"==typeof f.columnHeaderHtml?f.columnHeaderHtml(c.toDate(e)):bn("function"==typeof f.columnHeaderText?f.columnHeaderText(c.toDate(e)):c.format(e,i)),n?h=h.concat(Gn(e,t,o,!0)):h.push("fc-"+Ri[e.getUTCDay()]),'<th class="'+h.join(" ")+'"'+(p&&n?' data-date="'+c.formatIso(e,{omitTime:!0})+'"':"")+(a>1?' colspan="'+a+'"':"")+(s?" "+s:"")+">"+(p?Yn(l,{date:e,forceOff:!n||1===r},u):u)+"</th>"}function yi(e,t){var n=e.activeRange;return t?n:{start:V(n.start,e.minTime.milliseconds),end:V(n.end,e.maxTime.milliseconds-864e5)}}var mi={className:!0,colSpan:!0,rowSpan:!0},Ei={"<tr":"tbody","<td":"tr"},Si=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.msMatchesSelector,Di=Element.prototype.closest||function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(f(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null},bi=/(top|left|right|bottom|width|height)$/i,Ti=null,wi=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"],Ri=["sun","mon","tue","wed","thu","fri","sat"],Ii=["years","months","days","milliseconds"],Ci=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/,Mi=function(e,t){return(Mi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},ki=function(){return ki=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ki.apply(this,arguments)},Oi={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},_i={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Pi=/\s*([ap])\.?m\.?/i,Hi=/,/g,xi=/\s+/g,Ni=/\u200e/g,zi=/UTC|GMT/,Ui=function(){function e(e){var t={},n={},r=0;for(var i in e)i in Oi?(n[i]=e[i],r=Math.max(Oi[i],r)):(t[i]=e[i],i in _i&&(r=Math.max(_i[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=kt(_t)}return e.prototype.format=function(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)},e.prototype.formatRange=function(e,t,n){var r=this,i=r.standardDateProps,o=r.extendedSettings,a=Ut(e.marker,t.marker,n.calendarSystem);if(!a)return this.format(e,n);var s=a;!(s>1)||"numeric"!==i.year&&"2-digit"!==i.year||"numeric"!==i.month&&"2-digit"!==i.month||"numeric"!==i.day&&"2-digit"!==i.day||(s=1);var u=this.format(e,n),l=this.format(t,n);if(u===l)return u;var c=Lt(i,s),d=_t(c,o,n),f=d(e),p=d(t),h=At(u,f,l,p),v=o.separator||"";return h?h.before+f+v+p+h.after:u+v+l},e.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";default:return"day"}},e}(),Li=function(){function e(e,t){this.cmdStr=e,this.separator=t}return e.prototype.format=function(e,t){return t.cmdFormatter(this.cmdStr,Zt(e,null,t,this.separator))},e.prototype.formatRange=function(e,t,n){return n.cmdFormatter(this.cmdStr,Zt(e,t,n,this.separator))},e}(),Ai=function(){function e(e){this.func=e}return e.prototype.format=function(e,t){return this.func(Zt(e,null,t))},e.prototype.formatRange=function(e,t,n){return this.func(Zt(e,t,n))},e}(),Vi=function(){function e(e,t){this.calendar=e,this.internalEventSource=t}return e.prototype.remove=function(){this.calendar.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},e.prototype.refetch=function(){this.calendar.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId]})},Object.defineProperty(e.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!0,configurable:!0}),e}(),Bi=function(){function e(e,t,n){this._calendar=e,this._def=t,this._instance=n||null}return e.prototype.setProp=function(e,t){var n,r;if(e in ji);else if(e in Zi)"function"==typeof Zi[e]&&(t=Zi[e](t)),this.mutate({standardProps:(n={},n[e]=t,n)});else if(e in Fi){var i=void 0;"function"==typeof Fi[e]&&(t=Fi[e](t)),"color"===e?i={backgroundColor:t,borderColor:t}:"editable"===e?i={startEditable:t,durationEditable:t}:(r={},r[e]=t,i=r),this.mutate({standardProps:{ui:i}})}},e.prototype.setExtendedProp=function(e,t){var n;this.mutate({extendedProps:(n={},n[e]=t,n)})},e.prototype.setStart=function(e,t){void 0===t&&(t={});var n=this._calendar.dateEnv,r=n.createMarker(e);if(r&&this._instance){var i=this._instance.range,o=$e(i.start,r,n,t.granularity),a=null;if(t.maintainDuration){a=ve($e(i.start,i.end,n,t.granularity),$e(r,i.end,n,t.granularity))}this.mutate({startDelta:o,endDelta:a})}},e.prototype.setEnd=function(e,t){void 0===t&&(t={});var n,r=this._calendar.dateEnv;if((null==e||(n=r.createMarker(e)))&&this._instance)if(n){var i=$e(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:i})}else this.mutate({standardProps:{hasEnd:!1}})},e.prototype.setDates=function(e,t,n){void 0===n&&(n={});var r,i=this._calendar.dateEnv,o={allDay:n.allDay},a=i.createMarker(e);if(a&&(null==t||(r=i.createMarker(t)))&&this._instance){var s=this._instance.range;!0===n.allDay&&(s=Je(s));var u=$e(s.start,a,i,n.granularity);if(r){var l=$e(s.end,r,i,n.granularity);this.mutate({startDelta:u,endDelta:l,standardProps:o})}else o.hasEnd=!1,this.mutate({startDelta:u,standardProps:o})}},e.prototype.moveStart=function(e){var t=ue(e);t&&this.mutate({startDelta:t})},e.prototype.moveEnd=function(e){var t=ue(e);t&&this.mutate({endDelta:t})},e.prototype.moveDates=function(e){var t=ue(e);t&&this.mutate({startDelta:t,endDelta:t})},e.prototype.setAllDay=function(e,t){void 0===t&&(t={});var n={allDay:e},r=t.maintainDuration;null==r&&(r=this._calendar.opt("allDayMaintainDuration")),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})},e.prototype.formatRange=function(e){var t=this._calendar.dateEnv,n=this._instance,r=Vt(e,this._calendar.opt("defaultRangeSeparator"));return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})},e.prototype.mutate=function(e){var t=this._def,n=this._instance;if(n){this._calendar.dispatch({type:"MUTATE_EVENTS",instanceId:n.instanceId,mutation:e,fromApi:!0});var r=this._calendar.state.eventStore;this._def=r.defs[t.defId],this._instance=r.instances[n.instanceId]}},e.prototype.remove=function(){this._calendar.dispatch({type:"REMOVE_EVENT_DEF",defId:this._def.defId})},Object.defineProperty(e.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new Vi(this._calendar,this._calendar.state.eventSources[e]):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._instance?this._calendar.dateEnv.toDate(this._instance.range.start):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._calendar.dateEnv.toDate(this._instance.range.end):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._def.publicId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._def.title},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._def.url},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rendering",{get:function(){return this._def.rendering},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!0,configurable:!0}),e}(),Fi={editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:null,overlap:null,allow:null,className:Rn,classNames:Rn,color:String,backgroundColor:String,borderColor:String,textColor:String},Wi={startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]},Zi={id:String,groupId:String,title:String,url:String,rendering:String,extendedProps:null},ji={start:null,date:null,end:null,allDay:null},Yi=0,qi={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],rendering:"inverse-background",classNames:"fc-nonbusiness",groupId:"_businessHours"},Gi=vt(),Xi=function(){function e(){this.getKeysForEventDefs=kt(this._getKeysForEventDefs),this.splitDateSelection=kt(this._splitDateSpan),this.splitEventStore=kt(this._splitEventStore),this.splitIndividualUi=kt(this._splitIndividualUi),this.splitEventDrag=kt(this._splitInteraction),this.splitEventResize=kt(this._splitInteraction),this.eventUiBuilders={}}return e.prototype.splitProps=function(e){var t=this,n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),o=this.splitIndividualUi(e.eventUiBases,r),a=this.splitEventStore(e.eventStore,r),s=this.splitEventDrag(e.eventDrag),u=this.splitEventResize(e.eventResize),l={};this.eventUiBuilders=ot(n,function(e,n){return t.eventUiBuilders[n]||kt(jn)});for(var c in n){var d=n[c],f=a[c]||Gi,p=this.eventUiBuilders[c];l[c]={businessHours:d.businessHours||e.businessHours,dateSelection:i[c]||null,eventStore:f,eventUiBases:p(e.eventUiBases[""],d.ui,o[c]),eventSelection:f.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[c]||null,eventResize:u[c]||null}}return l},e.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=this.getKeysForDateSpan(e),r=0,i=n;r<i.length;r++){var o=i[r];t[o]=e}return t},e.prototype._getKeysForEventDefs=function(e){var t=this;return ot(e.defs,function(e){return t.getKeysForEventDef(e)})},e.prototype._splitEventStore=function(e,t){var n=e.defs,r=e.instances,i={};for(var o in n)for(var a=0,s=t[o];a<s.length;a++){var u=s[a];i[u]||(i[u]=vt()),i[u].defs[o]=n[o]}for(var l in r)for(var c=r[l],d=0,f=t[c.defId];d<f.length;d++){var u=f[d];i[u]&&(i[u].instances[l]=c)}return i},e.prototype._splitIndividualUi=function(e,t){var n={};for(var r in e)if(r)for(var i=0,o=t[r];i<o.length;i++){var a=o[i];n[a]||(n[a]={}),n[a][r]=e[r]}return n},e.prototype._splitInteraction=function(e){var t={};if(e){var n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),i=this._splitEventStore(e.mutatedEvents,r),o=function(r){t[r]||(t[r]={affectedEvents:n[r]||Gi,mutatedEvents:i[r]||Gi,isEvent:e.isEvent,origSeg:e.origSeg})};for(var a in n)o(a);for(var a in i)o(a)}return t},e}(),Ji=function(){function e(){}return e.mixInto=function(e){this.mixIntoObj(e.prototype)},e.mixIntoObj=function(e){var t=this;Object.getOwnPropertyNames(this.prototype).forEach(function(n){e[n]||(e[n]=t.prototype[n])})},e.mixOver=function(e){var t=this;Object.getOwnPropertyNames(this.prototype).forEach(function(n){e.prototype[n]=t.prototype[n]})},e}(),Ki=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return et(t,e),t.prototype.on=function(e,t){return Jn(this._handlers||(this._handlers={}),e,t),this},t.prototype.one=function(e,t){return Jn(this._oneHandlers||(this._oneHandlers={}),e,t),this},t.prototype.off=function(e,t){return this._handlers&&Kn(this._handlers,e,t),this._oneHandlers&&Kn(this._oneHandlers,e,t),this},t.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this.triggerWith(e,this,t),this},t.prototype.triggerWith=function(e,t,n){return this._handlers&&je(this._handlers[e],t,n),this._oneHandlers&&(je(this._oneHandlers[e],t,n),delete this._oneHandlers[e]),this},t.prototype.hasHandlers=function(e){return this._handlers&&this._handlers[e]&&this._handlers[e].length||this._oneHandlers&&this._oneHandlers[e]&&this._oneHandlers[e].length},t}(Ji),Qi=function(){function e(e,t,n,r){this.originEl=e,this.els=t,this.isHorizontal=n,this.isVertical=r}return e.prototype.build=function(){var e=this.originEl,t=this.originClientRect=e.getBoundingClientRect();this.isHorizontal&&this.buildElHorizontals(t.left),this.isVertical&&this.buildElVerticals(t.top)},e.prototype.buildElHorizontals=function(e){for(var t=[],n=[],r=0,i=this.els;r<i.length;r++){var o=i[r],a=o.getBoundingClientRect();t.push(a.left-e),n.push(a.right-e)}this.lefts=t,this.rights=n},e.prototype.buildElVerticals=function(e){for(var t=[],n=[],r=0,i=this.els;r<i.length;r++){var o=i[r],a=o.getBoundingClientRect();t.push(a.top-e),n.push(a.bottom-e)}this.tops=t,this.bottoms=n},e.prototype.leftToIndex=function(e){var t,n=this.lefts,r=this.rights,i=n.length;for(t=0;t<i;t++)if(e>=n[t]&&e<r[t])return t},e.prototype.topToIndex=function(e){var t,n=this.tops,r=this.bottoms,i=n.length;for(t=0;t<i;t++)if(e>=n[t]&&e<r[t])return t},e.prototype.getWidth=function(e){return this.rights[e]-this.lefts[e]},e.prototype.getHeight=function(e){return this.bottoms[e]-this.tops[e]},e}(),$i=function(){function e(){}return e.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},e.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},e.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},e.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},e.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},e}(),eo=function(e){function t(t){var n=e.call(this)||this;return n.el=t,n}return et(t,e),t.prototype.getScrollTop=function(){return this.el.scrollTop},t.prototype.getScrollLeft=function(){return this.el.scrollLeft},t.prototype.setScrollTop=function(e){this.el.scrollTop=e},t.prototype.setScrollLeft=function(e){this.el.scrollLeft=e},t.prototype.getScrollWidth=function(){return this.el.scrollWidth},t.prototype.getScrollHeight=function(){return this.el.scrollHeight},t.prototype.getClientHeight=function(){return this.el.clientHeight},t.prototype.getClientWidth=function(){return this.el.clientWidth},t}($i),to=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return et(t,e),t.prototype.getScrollTop=function(){return window.pageYOffset},t.prototype.getScrollLeft=function(){return window.pageXOffset},t.prototype.setScrollTop=function(e){
|
8
|
+
window.scroll(window.pageXOffset,e)},t.prototype.setScrollLeft=function(e){window.scroll(e,window.pageYOffset)},t.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},t.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},t.prototype.getClientHeight=function(){return document.documentElement.clientHeight},t.prototype.getClientWidth=function(){return document.documentElement.clientWidth},t}($i),no=function(e){function n(n,r){var i=e.call(this,t("div",{className:"fc-scroller"}))||this;return i.overflowX=n,i.overflowY=r,i.applyOverflow(),i}return et(n,e),n.prototype.clear=function(){this.setHeight("auto"),this.applyOverflow()},n.prototype.destroy=function(){c(this.el)},n.prototype.applyOverflow=function(){g(this.el,{overflowX:this.overflowX,overflowY:this.overflowY})},n.prototype.lockOverflow=function(e){var t=this.overflowX,n=this.overflowY;e=e||this.getScrollbarWidths(),"auto"===t&&(t=e.bottom||this.canScrollHorizontally()?"scroll":"hidden"),"auto"===n&&(n=e.left||e.right||this.canScrollVertically()?"scroll":"hidden"),g(this.el,{overflowX:t,overflowY:n})},n.prototype.setHeight=function(e){y(this.el,"height",e)},n.prototype.getScrollbarWidths=function(){var e=C(this.el);return{left:e.scrollbarLeft,right:e.scrollbarRight,bottom:e.scrollbarBottom}},n}(eo),ro=function(){function e(e){this.calendarOptions=e,this.processIconOverride()}return e.prototype.processIconOverride=function(){this.iconOverrideOption&&this.setIconOverride(this.calendarOptions[this.iconOverrideOption])},e.prototype.setIconOverride=function(e){var t,n;if("object"==typeof e&&e){t=ki({},this.iconClasses);for(n in e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})},e.prototype.applyIconOverridePrefix=function(e){var t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e},e.prototype.getClass=function(e){return this.classes[e]||""},e.prototype.getIconClass=function(e){var t=this.iconClasses[e];return t?this.baseIconClass+" "+t:""},e.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},e}();ro.prototype.classes={},ro.prototype.iconClasses={},ro.prototype.baseIconClass="",ro.prototype.iconOverridePrefix="";var io=0,oo=function(){function e(e,t){t&&(e.view=this),this.uid=String(io++),this.context=e,this.dateEnv=e.dateEnv,this.theme=e.theme,this.view=e.view,this.calendar=e.calendar,this.isRtl="rtl"===this.opt("dir")}return e.addEqualityFuncs=function(e){this.prototype.equalityFuncs=ki({},this.prototype.equalityFuncs,e)},e.prototype.opt=function(e){return this.context.options[e]},e.prototype.receiveProps=function(e){var t=Qn(this.props||{},e,this.equalityFuncs),n=t.anyChanges,r=t.comboProps;this.props=r,n&&this.render(r)},e.prototype.render=function(e){},e.prototype.destroy=function(){},e}();oo.prototype.equalityFuncs={};var ao=function(e){function t(t,n,r){var i=e.call(this,t,r)||this;return i.el=n,i}return et(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),c(this.el)},t.prototype.queryHit=function(e,t,n,r){return null},t.prototype.isInteractionValid=function(e){var t=this.calendar,n=this.props.dateProfile,r=e.mutatedEvents.instances;if(n)for(var i in r)if(!wt(n.validRange,r[i].range))return!1;return dn(e,t)},t.prototype.isDateSelectionValid=function(e){var t=this.props.dateProfile;return!(t&&!wt(t.validRange,e.range))&&fn(e,this.calendar)},t.prototype.publiclyTrigger=function(e,t){return this.calendar.publiclyTrigger(e,t)},t.prototype.publiclyTriggerAfterSizing=function(e,t){return this.calendar.publiclyTriggerAfterSizing(e,t)},t.prototype.hasPublicHandlers=function(e){return this.calendar.hasPublicHandlers(e)},t.prototype.triggerRenderedSegs=function(e,t){var n=this.calendar;if(this.hasPublicHandlers("eventPositioned"))for(var r=0,i=e;r<i.length;r++){var o=i[r];this.publiclyTriggerAfterSizing("eventPositioned",[{event:new Bi(n,o.eventRange.def,o.eventRange.instance),isMirror:t,isStart:o.isStart,isEnd:o.isEnd,el:o.el,view:this}])}n.state.loadingLevel||(n.afterSizingTriggers._eventsPositioned=[null])},t.prototype.triggerWillRemoveSegs=function(e,t){for(var n=this.calendar,r=0,i=e;r<i.length;r++){var o=i[r];n.trigger("eventElRemove",o.el)}if(this.hasPublicHandlers("eventDestroy"))for(var a=0,s=e;a<s.length;a++){var o=s[a];this.publiclyTrigger("eventDestroy",[{event:new Bi(n,o.eventRange.def,o.eventRange.instance),isMirror:t,el:o.el,view:this}])}},t.prototype.isValidSegDownEl=function(e){return!this.props.eventDrag&&!this.props.eventResize&&!d(e,".fc-mirror")&&(this.isPopover()||!this.isInPopover(e))},t.prototype.isValidDateDownEl=function(e){var t=d(e,this.fgSegSelector);return(!t||t.classList.contains("fc-mirror"))&&!d(e,".fc-more")&&!d(e,"a[data-goto]")&&!this.isInPopover(e)},t.prototype.isPopover=function(){return this.el.classList.contains("fc-popover")},t.prototype.isInPopover=function(e){return Boolean(d(e,".fc-popover"))},t}(oo);ao.prototype.fgSegSelector=".fc-event-container > *",ao.prototype.bgSegSelector=".fc-bgevent:not(.fc-nonbusiness)";var so=0,uo=function(){function e(){this.hooks={reducers:[],eventDefParsers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],eventResizeJoinTransforms:[],viewContainerModifiers:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,defaultView:"",elementDraggingImpl:null,optionChangeHandlers:{}},this.addedHash={}}return e.prototype.add=function(e){if(!this.addedHash[e.id]){this.addedHash[e.id]=!0;for(var t=0,n=e.deps;t<n.length;t++){var r=n[t];this.add(r)}this.hooks=er(this.hooks,e)}},e}(),lo={ignoreRange:!0,parseMeta:function(e){return Array.isArray(e)?e:Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}},co=$n({eventSourceDefs:[lo]}),fo={parseMeta:function(e){return"function"==typeof e?e:"function"==typeof e.events?e.events:null},fetch:function(e,t,n){var r=e.calendar.dateEnv;Xn(e.eventSource.meta.bind(null,{start:r.toDate(e.range.start),end:r.toDate(e.range.end),startStr:r.formatIso(e.range.start),endStr:r.formatIso(e.range.end),timeZone:r.timeZone}),function(e){t({rawEvents:e})},n)}},po=$n({eventSourceDefs:[fo]}),ho={parseMeta:function(e){if("string"==typeof e)e={url:e};else if(!e||"object"!=typeof e||!e.url)return null;return{url:e.url,method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,t,n){var r=e.eventSource.meta,i=ir(r,e.range,e.calendar);tr(r.method,r.url,i,function(e,n){t({rawEvents:e,xhr:n})},function(e,t){n({message:e,xhr:t})})}},vo=$n({eventSourceDefs:[ho]}),go={parse:function(e,t,n){var r=n.createMarker.bind(n),i={daysOfWeek:null,startTime:ue,endTime:ue,startRecur:r,endRecur:r},o=Ge(e,i,{},t),a=!1;for(var s in o)if(null!=o[s]){a=!0;break}return a?{allDayGuess:Boolean(!o.startTime&&!o.endTime),duration:o.startTime&&o.endTime?ve(o.endTime,o.startTime):null,typeData:o}:null},expand:function(e,t,n){var r=Dt(t,{start:e.startRecur,end:e.endRecur});return r?or(e.daysOfWeek,e.startTime,r,n):[]}},yo=$n({recurringTypes:[go]}),mo=$n({optionChangeHandlers:{events:function(e,t){ar([e],t)},eventSources:ar,plugins:sr}}),Eo={},So={defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",columnHeader:!0,defaultView:"",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",timeGridEventMinHeight:0,themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",eventLimit:!1,eventLimitClick:"popover",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5},Do={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"}},bo=["header","footer","buttonText","buttonIcons"],To=[co,po,vo,yo,mo],wo={code:"en",week:{dow:0,doy:4},dir:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekLabel:"W",allDayText:"all-day",eventLimitText:"more",noEventsMessage:"No events to display"},Ro=function(){function e(e){this.overrides=ki({},e),this.dynamicOverrides={},this.compute()}return e.prototype.add=function(e){ki(this.overrides,e),this.compute()},e.prototype.addDynamic=function(e){ki(this.dynamicOverrides,e),this.compute()},e.prototype.reset=function(e){this.overrides=e,this.compute()},e.prototype.compute=function(){var e=Ye(this.dynamicOverrides.locales,this.overrides.locales,So.locales),t=Ye(this.dynamicOverrides.locale,this.overrides.locale,So.locale),n=cr(e),r=dr(t||n.defaultCode,n.map).options,i=Ye(this.dynamicOverrides.dir,this.overrides.dir,r.dir),o="rtl"===i?Do:{};this.dirDefaults=o,this.localeDefaults=r,this.computed=ur([So,o,r,this.overrides,this.dynamicOverrides])},e}(),Io={},Co=function(){function e(){}return e.prototype.getMarkerYear=function(e){return e.getUTCFullYear()},e.prototype.getMarkerMonth=function(e){return e.getUTCMonth()},e.prototype.getMarkerDay=function(e){return e.getUTCDate()},e.prototype.arrayToMarker=function(e){return oe(e)},e.prototype.markerToArray=function(e){return ie(e)},e}();!function(e,t){Io[e]=t}("gregory",Co);var Mo=/^\s*\d{4}-\d\d-\d\d([T ]\d)?/,ko=/(?:(Z)|([-+])(\d\d)(?::(\d\d))?)$/,Oo=function(){function e(e){var t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=vr(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation?(this.weekDow=1,this.weekDoy=4):"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekLabel=null!=e.weekLabel?e.weekLabel:e.locale.options.weekLabel,this.cmdFormatter=e.cmdFormatter}return e.prototype.createMarker=function(e){var t=this.createMarkerMeta(e);return null===t?null:t.marker},e.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):oe(ne(new Date))},e.prototype.createMarkerMeta=function(e){if("string"==typeof e)return this.parse(e);var t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=oe(e)),null!==t&&ae(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},e.prototype.parse=function(e){var t=gr(e);if(null===t)return null;var n=t.marker,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}},e.prototype.getYear=function(e){return this.calendarSystem.getMarkerYear(e)},e.prototype.getMonth=function(e){return this.calendarSystem.getMarkerMonth(e)},e.prototype.add=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.subtract=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.addYears=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.addMonths=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.diffWholeYears=function(e,t){var n=this.calendarSystem;return se(e)===se(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null},e.prototype.diffWholeMonths=function(e,t){var n=this.calendarSystem;return se(e)===se(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null},e.prototype.greatestWholeUnit=function(e,t){var n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:null!==(n=this.diffWholeMonths(e,t))?{unit:"month",value:n}:null!==(n=q(e,t))?{unit:"week",value:n}:null!==(n=G(e,t))?{unit:"day",value:n}:(n=W(e,t),Ze(n)?{unit:"hour",value:n}:(n=Z(e,t),Ze(n)?{unit:"minute",value:n}:(n=j(e,t),Ze(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()})))},e.prototype.countDurationsBetween=function(e,t,n){var r;return n.years&&null!==(r=this.diffWholeYears(e,t))?r/ye(n):n.months&&null!==(r=this.diffWholeMonths(e,t))?r/me(n):n.days&&null!==(r=G(e,t))?r/Ee(n):(t.valueOf()-e.valueOf())/be(n)},e.prototype.startOf=function(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?X(e):"hour"===t?J(e):"minute"===t?K(e):"second"===t?Q(e):void 0},e.prototype.startOfYear=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},e.prototype.startOfMonth=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},e.prototype.startOfWeek=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},e.prototype.computeWeekNumber=function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):$(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,n){return void 0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},e.prototype.formatRange=function(e,t,n,r){return void 0===r&&(r={}),r.isEndExclusive&&(t=V(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this)},e.prototype.formatIso=function(e,t){void 0===t&&(t={});var n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),Bt(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?oe(ne(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?oe(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-re(ie(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(ie(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?re(ie(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(ie(e))*60):new Date(e.valueOf()-(t||0))},e}(),_o={id:String,allDayDefault:Boolean,eventDataTransform:Function,success:Function,failure:Function},Po=0,Ho=0,xo=function(){function e(e,t){this.viewSpec=e,this.options=e.options,this.dateEnv=t.dateEnv,this.calendar=t,this.initHiddenDays()}return e.prototype.buildPrev=function(e,t){var n=this.dateEnv,r=n.subtract(n.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,-1)},e.prototype.buildNext=function(e,t){var n=this.dateEnv,r=n.add(n.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,1)},e.prototype.build=function(e,t,n){void 0===n&&(n=!1);var r,i,o,a,s,u,l=null,c=null;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(e=It(e,r)),i=this.buildCurrentRangeInfo(e,t),o=/^(year|month|week|day)$/.test(i.unit),a=this.buildRenderRange(this.trimHiddenDays(i.range),i.unit,o),a=this.trimHiddenDays(a),s=a,this.options.showNonCurrentDates||(s=Dt(s,i.range)),l=ue(this.options.minTime),c=ue(this.options.maxTime),s=this.adjustActiveRange(s,l,c),s=Dt(s,r),u=Tt(i.range,r),{validRange:r,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:o,activeRange:s,renderRange:a,minTime:l,maxTime:c,isValid:u,dateIncrement:this.buildDateIncrement(i.duration)}},e.prototype.buildValidRange=function(){return this.getRangeOption("validRange",this.calendar.getNow())||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this,i=r.viewSpec,o=r.dateEnv,a=null,s=null,u=null;return i.duration?(a=i.duration,s=i.durationUnit,u=this.buildRangeFromDuration(e,t,a,s)):(n=this.options.dayCount)?(s="day",u=this.buildRangeFromDayCount(e,t,n)):(u=this.buildCustomVisibleRange(e))?s=o.greatestWholeUnit(u.start,u.end).unit:(a=this.getFallbackDuration(),s=we(a).unit,u=this.buildRangeFromDuration(e,t,a,s)),{duration:a,unit:s,range:u}},e.prototype.getFallbackDuration=function(){return ue({day:1})},e.prototype.adjustActiveRange=function(e,t,n){var r=this.dateEnv,i=e.start,o=e.end;return this.viewSpec.class.prototype.usesMinMaxTime&&(Ee(t)<0&&(i=X(i),i=r.add(i,t)),Ee(n)>1&&(o=X(o),o=A(o,-1),o=r.add(o,n))),{start:i,end:o}},e.prototype.buildRangeFromDuration=function(e,t,n,r){function i(){s=c.startOf(e,d),u=c.add(s,n),l={start:s,end:u}}var o,a,s,u,l,c=this.dateEnv,d=this.options.dateAlignment;return d||(o=this.options.dateIncrement,o?(a=ue(o),d=be(a)<be(n)?we(a,!de(o)).unit:r):d=r),Ee(n)<=1&&this.isHiddenDay(s)&&(s=this.skipHiddenDays(s,t),s=X(s)),i(),this.trimHiddenDays(l)||(e=this.skipHiddenDays(e,t),i()),l},e.prototype.buildRangeFromDayCount=function(e,t,n){var r,i=this.dateEnv,o=this.options.dateAlignment,a=0,s=e;o&&(s=i.startOf(s,o)),s=X(s),s=this.skipHiddenDays(s,t),r=s;do{r=A(r,1),this.isHiddenDay(r)||a++}while(a<n);return{start:s,end:r}},e.prototype.buildCustomVisibleRange=function(e){var t=this.dateEnv,n=this.getRangeOption("visibleRange",t.toDate(e));return!n||null!=n.start&&null!=n.end?n:null},e.prototype.buildRenderRange=function(e,t,n){return e},e.prototype.buildDateIncrement=function(e){var t,n=this.options.dateIncrement;return n?ue(n):(t=this.options.dateAlignment)?ue(1,t):e||ue({days:1})},e.prototype.getRangeOption=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.options[e];return"function"==typeof r&&(r=r.apply(null,t)),r&&(r=mt(r,this.dateEnv)),r&&(r=Ke(r)),r},e.prototype.initHiddenDays=function(){var e,t=this.options.hiddenDays||[],n=[],r=0;for(!1===this.options.weekends&&t.push(0,6),e=0;e<7;e++)(n[e]=-1!==t.indexOf(e))||r++;if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},e.prototype.trimHiddenDays=function(e){var t=e.start,n=e.end;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null},e.prototype.isHiddenDay=function(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]},e.prototype.skipHiddenDays=function(e,t,n){for(void 0===t&&(t=1),void 0===n&&(n=!1);this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=A(e,t);return e},e}(),No={start:null,end:null,allDay:Boolean},zo={type:String,class:null},Uo=function(e){function r(n,r){var i=e.call(this,n)||this;return i._renderLayout=An(i.renderLayout,i.unrenderLayout),i._updateTitle=An(i.updateTitle,null,[i._renderLayout]),i._updateActiveButton=An(i.updateActiveButton,null,[i._renderLayout]),i._updateToday=An(i.updateToday,null,[i._renderLayout]),i._updatePrev=An(i.updatePrev,null,[i._renderLayout]),i._updateNext=An(i.updateNext,null,[i._renderLayout]),i.el=t("div",{className:"fc-toolbar "+r}),i}return et(r,e),r.prototype.destroy=function(){e.prototype.destroy.call(this),this._renderLayout.unrender(),c(this.el)},r.prototype.render=function(e){this._renderLayout(e.layout),this._updateTitle(e.title),this._updateActiveButton(e.activeButton),this._updateToday(e.isTodayEnabled),this._updatePrev(e.isPrevEnabled),this._updateNext(e.isNextEnabled)},r.prototype.renderLayout=function(e){var t=this.el;this.viewsWithButtons=[],a(t,this.renderSection("left",e.left)),a(t,this.renderSection("center",e.center)),a(t,this.renderSection("right",e.right))},r.prototype.unrenderLayout=function(){this.el.innerHTML=""},r.prototype.renderSection=function(e,r){var i=this,o=this,s=o.theme,u=o.calendar,l=u.optionsManager,c=u.viewSpecs,d=t("div",{className:"fc-"+e}),f=l.computed.customButtons||{},p=l.overrides.buttonText||{},h=l.computed.buttonText||{};return r&&r.split(" ").forEach(function(e,t){var r,o=[],l=!0;if(e.split(",").forEach(function(e,t){var r,a,d,v,g,y,m,E,S;"title"===e?(o.push(n("<h2> </h2>")),l=!1):((r=f[e])?(d=function(e){r.click&&r.click.call(E,e)},(v=s.getCustomButtonIconClass(r))||(v=s.getIconClass(e))||(g=r.text)):(a=c[e])?(i.viewsWithButtons.push(e),d=function(){u.changeView(e)},(g=a.buttonTextOverride)||(v=s.getIconClass(e))||(g=a.buttonTextDefault)):u[e]&&(d=function(){u[e]()},(g=p[e])||(v=s.getIconClass(e))||(g=h[e])),d&&(m=["fc-"+e+"-button",s.getClass("button")],g?(y=bn(g),S=""):v&&(y="<span class='"+v+"'></span>",S=' aria-label="'+e+'"'),E=n('<button type="button" class="'+m.join(" ")+'"'+S+">"+y+"</button>"),E.addEventListener("click",d),o.push(E)))}),o.length>1){r=document.createElement("div");var v=s.getClass("buttonGroup");l&&v&&r.classList.add(v),a(r,o),d.appendChild(r)}else a(d,o)}),d},r.prototype.updateToday=function(e){this.toggleButtonEnabled("today",e)},r.prototype.updatePrev=function(e){this.toggleButtonEnabled("prev",e)},r.prototype.updateNext=function(e){this.toggleButtonEnabled("next",e)},r.prototype.updateTitle=function(e){p(this.el,"h2").forEach(function(t){t.innerText=e})},r.prototype.updateActiveButton=function(e){var t=this.theme.getClass("buttonActive");p(this.el,"button").forEach(function(n){e&&n.classList.contains("fc-"+e+"-button")?n.classList.add(t):n.classList.remove(t)})},r.prototype.toggleButtonEnabled=function(e,t){p(this.el,".fc-"+e+"-button").forEach(function(e){e.disabled=!t})},r}(oo),Lo=function(e){function n(n,r){var i=e.call(this,n)||this;i._renderToolbars=An(i.renderToolbars),i.buildViewPropTransformers=kt(ni),i.el=r,s(r,i.contentEl=t("div",{className:"fc-view-container"}));for(var o=i.calendar,a=0,u=o.pluginSystem.hooks.viewContainerModifiers;a<u.length;a++){(0,u[a])(i.contentEl,o)}return i.toggleElClassNames(!0),i.computeTitle=kt(ei),i.parseBusinessHours=kt(function(e){return Un(e,i.calendar)}),i}return et(n,e),n.prototype.destroy=function(){this.header&&this.header.destroy(),this.footer&&this.footer.destroy(),this.view&&this.view.destroy(),c(this.contentEl),this.toggleElClassNames(!1),e.prototype.destroy.call(this)},n.prototype.toggleElClassNames=function(e){var t=this.el.classList,n="fc-"+this.opt("dir"),r=this.theme.getClass("widget");e?(t.add("fc"),t.add(n),t.add(r)):(t.remove("fc"),t.remove(n),t.remove(r))},n.prototype.render=function(e){this.freezeHeight();var t=this.computeTitle(e.dateProfile,e.viewSpec.options);this._renderToolbars(e.viewSpec,e.dateProfile,e.currentDate,e.dateProfileGenerator,t),this.renderView(e,t),this.updateSize(),this.thawHeight()},n.prototype.renderToolbars=function(e,t,n,r,i){var o=this.opt("header"),u=this.opt("footer"),l=this.calendar.getNow(),c=r.build(l),d=r.buildPrev(t,n),f=r.buildNext(t,n),p={title:i,activeButton:e.type,isTodayEnabled:c.isValid&&!Rt(t.currentRange,l),isPrevEnabled:d.isValid,isNextEnabled:f.isValid};o?(this.header||(this.header=new Uo(this.context,"fc-header-toolbar"),s(this.el,this.header.el)),this.header.receiveProps(ki({layout:o},p))):this.header&&(this.header.destroy(),this.header=null),u?(this.footer||(this.footer=new Uo(this.context,"fc-footer-toolbar"),a(this.el,this.footer.el)),this.footer.receiveProps(ki({layout:u},p))):this.footer&&(this.footer.destroy(),this.footer=null)},n.prototype.renderView=function(e,t){var n=this.view,r=e.viewSpec,i=e.dateProfileGenerator;n&&n.viewSpec===r?n.addScroll(n.queryScroll()):(n&&n.destroy(),n=this.view=new r.class({calendar:this.calendar,view:null,dateEnv:this.dateEnv,theme:this.theme,options:r.options},r,i,this.contentEl)),n.title=t;for(var o={dateProfile:e.dateProfile,businessHours:this.parseBusinessHours(r.options.businessHours),eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize},a=this.buildViewPropTransformers(this.calendar.pluginSystem.hooks.viewPropsTransformers),s=0,u=a;s<u.length;s++){var l=u[s];ki(o,l.transform(o,r,e,n))}n.receiveProps(o)},n.prototype.updateSize=function(e){void 0===e&&(e=!1);var t=this.view;e&&t.addScroll(t.queryScroll()),(e||null==this.isHeightAuto)&&this.computeHeightVars(),t.updateSize(e,this.viewHeight,this.isHeightAuto),t.updateNowIndicator(),t.popScroll(e)},n.prototype.computeHeightVars=function(){var e=this.calendar,t=e.opt("height"),n=e.opt("contentHeight");this.isHeightAuto="auto"===t||"auto"===n,this.viewHeight="number"==typeof n?n:"function"==typeof n?n():"number"==typeof t?t-this.queryToolbarsHeight():"function"==typeof t?t()-this.queryToolbarsHeight():"parent"===t?this.el.parentNode.offsetHeight-this.queryToolbarsHeight():Math.round(this.contentEl.offsetWidth/Math.max(e.opt("aspectRatio"),.5))},n.prototype.queryToolbarsHeight=function(){var e=0;return this.header&&(e+=_(this.header.el)),this.footer&&(e+=_(this.footer.el)),e},n.prototype.freezeHeight=function(){g(this.el,{height:this.el.offsetHeight,overflow:"hidden"})},n.prototype.thawHeight=function(){g(this.el,{height:"",overflow:""})},n}(oo),Ao=function(){function e(e){this.component=e.component}return e.prototype.destroy=function(){},e}(),Vo={},Bo=function(e){function t(t){var n=e.call(this,t)||this;n.handleSegClick=function(e,t){var r=n.component,i=Jt(t);if(i&&r.isValidSegDownEl(e.target)){var o=d(e.target,".fc-has-url"),a=o?o.querySelector("a[href]").href:"";r.publiclyTrigger("eventClick",[{el:t,event:new Bi(r.calendar,i.eventRange.def,i.eventRange.instance),jsEvent:e,view:r.view}]),a&&!e.defaultPrevented&&(window.location.href=a)}};var r=t.component;return n.destroy=N(r.el,"click",r.fgSegSelector+","+r.bgSegSelector,n.handleSegClick),n}return et(t,e),t}(Ao),Fo=function(e){function t(t){var n=e.call(this,t)||this;n.handleEventElRemove=function(e){e===n.currentSegEl&&n.handleSegLeave(null,n.currentSegEl)},n.handleSegEnter=function(e,t){Jt(t)&&(t.classList.add("fc-allow-mouse-resize"),n.currentSegEl=t,n.triggerEvent("eventMouseEnter",e,t))},n.handleSegLeave=function(e,t){n.currentSegEl&&(t.classList.remove("fc-allow-mouse-resize"),n.currentSegEl=null,n.triggerEvent("eventMouseLeave",e,t))};var r=t.component;return n.removeHoverListeners=z(r.el,r.fgSegSelector+","+r.bgSegSelector,n.handleSegEnter,n.handleSegLeave),r.calendar.on("eventElRemove",n.handleEventElRemove),n}return et(t,e),t.prototype.destroy=function(){this.removeHoverListeners(),this.component.calendar.off("eventElRemove",this.handleEventElRemove)},t.prototype.triggerEvent=function(e,t,n){var r=this.component,i=Jt(n);t&&!r.isValidSegDownEl(t.target)||r.publiclyTrigger(e,[{el:n,event:new Bi(this.component.calendar,i.eventRange.def,i.eventRange.instance),jsEvent:t,view:r.view}])},t}(Ao),Wo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return et(t,e),t}(ro);Wo.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},Wo.prototype.baseIconClass="fc-icon",Wo.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Wo.prototype.iconOverrideOption="buttonIcons",Wo.prototype.iconOverrideCustomButtonOption="icon",Wo.prototype.iconOverridePrefix="fc-icon-";var Zo=function(){function e(e,t){var n=this;this.parseRawLocales=kt(cr),this.buildLocale=kt(dr),this.buildDateEnv=kt(oi),this.buildTheme=kt(ai),this.buildEventUiSingleBase=kt(this._buildEventUiSingleBase),this.buildSelectionConfig=kt(this._buildSelectionConfig),this.buildEventUiBySource=Ot(ui,Fn),this.buildEventUiBases=kt(li),this.interactionsStore={},this.actionQueue=[],this.isReducing=!1,this.needsRerender=!1,this.needsFullRerender=!1,this.isRendering=!1,this.renderingPauseDepth=0,this.buildDelayedRerender=kt(si),this.afterSizingTriggers={},this.isViewUpdated=!1,this.isDatesUpdated=!1,this.isEventsUpdated=!1,this.el=e,this.optionsManager=new Ro(t||{}),this.pluginSystem=new uo,this.addPluginInputs(this.optionsManager.computed.plugins||[]),this.handleOptions(this.optionsManager.computed),this.publiclyTrigger("_init"),this.hydrate(),this.calendarInteractions=this.pluginSystem.hooks.calendarInteractions.map(function(e){return new e(n)})}return e.prototype.addPluginInputs=function(e){for(var t=lr(e),n=0,r=t;n<r.length;n++){var i=r[n];this.pluginSystem.add(i)}},Object.defineProperty(e.prototype,"view",{get:function(){return this.component?this.component.view:null},enumerable:!0,configurable:!0}),e.prototype.render=function(){this.component?this.requestRerender(!0):(this.renderableEventStore=vt(),this.bindHandlers(),this.executeRender())},e.prototype.destroy=function(){if(this.component){this.unbindHandlers(),this.component.destroy(),this.component=null;for(var e=0,t=this.calendarInteractions;e<t.length;e++){t[e].destroy()}this.publiclyTrigger("_destroyed")}},e.prototype.bindHandlers=function(){var e=this;this.removeNavLinkListener=N(this.el,"click","a[data-goto]",function(t,n){var r=n.getAttribute("data-goto");r=r?JSON.parse(r):{};var i=e.dateEnv,o=i.createMarker(r.date),a=r.type,s=e.viewOpt("navLink"+Be(a)+"Click");"function"==typeof s?s(i.toDate(o),t):("string"==typeof s&&(a=s),e.zoomTo(o,a))}),this.opt("handleWindowResize")&&window.addEventListener("resize",this.windowResizeProxy=qe(this.windowResize.bind(this),this.opt("windowResizeDelay")))},e.prototype.unbindHandlers=function(){this.removeNavLinkListener(),this.windowResizeProxy&&(window.removeEventListener("resize",this.windowResizeProxy),this.windowResizeProxy=null)},e.prototype.hydrate=function(){var e=this;this.state=this.buildInitialState();var t=this.opt("eventSources")||[],n=this.opt("events"),r=[];n&&t.unshift(n);for(var i=0,o=t;i<o.length;i++){var a=o[i],s=mr(a,this);s&&r.push(s)}this.batchRendering(function(){e.dispatch({type:"INIT"}),e.dispatch({type:"ADD_EVENT_SOURCES",sources:r}),e.dispatch({type:"SET_VIEW_TYPE",viewType:e.opt("defaultView")||e.pluginSystem.hooks.defaultView})})},e.prototype.buildInitialState=function(){return{viewType:null,loadingLevel:0,eventSourceLoadingLevel:0,currentDate:this.getInitialDate(),dateProfile:null,eventSources:{},eventStore:vt(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null}},e.prototype.dispatch=function(e){if(this.actionQueue.push(e),!this.isReducing){this.isReducing=!0;for(var t=this.state;this.actionQueue.length;)this.state=this.reduce(this.state,this.actionQueue.shift(),this);var n=this.state;this.isReducing=!1,!t.loadingLevel&&n.loadingLevel?this.publiclyTrigger("loading",[!0]):t.loadingLevel&&!n.loadingLevel&&this.publiclyTrigger("loading",[!1]);var r=this.component&&this.component.view;(t.eventStore!==n.eventStore||this.needsFullRerender)&&t.eventStore&&(this.isEventsUpdated=!0),
|
9
|
+
(t.dateProfile!==n.dateProfile||this.needsFullRerender)&&(t.dateProfile&&r&&this.publiclyTrigger("datesDestroy",[{view:r,el:r.el}]),this.isDatesUpdated=!0),(t.viewType!==n.viewType||this.needsFullRerender)&&(t.viewType&&r&&this.publiclyTrigger("viewSkeletonDestroy",[{view:r,el:r.el}]),this.isViewUpdated=!0),this.requestRerender()}},e.prototype.reduce=function(e,t,n){return Or(e,t,n)},e.prototype.requestRerender=function(e){void 0===e&&(e=!1),this.needsRerender=!0,this.needsFullRerender=this.needsFullRerender||e,this.delayedRerender()},e.prototype.tryRerender=function(){this.component&&this.needsRerender&&!this.renderingPauseDepth&&!this.isRendering&&this.executeRender()},e.prototype.batchRendering=function(e){this.renderingPauseDepth++,e(),this.renderingPauseDepth--,this.needsRerender&&this.requestRerender()},e.prototype.executeRender=function(){var e=this.needsFullRerender;this.needsRerender=!1,this.needsFullRerender=!1,this.isRendering=!0,this.renderComponent(e),this.isRendering=!1,this.needsRerender&&this.delayedRerender()},e.prototype.renderComponent=function(e){var t=this,n=t.state,r=t.component,i=n.viewType,o=this.viewSpecs[i],a=e&&r?r.view.queryScroll():null;if(!o)throw new Error('View type "'+i+'" is not valid');var s=this.renderableEventStore=n.eventSourceLoadingLevel&&!this.opt("progressiveEventRendering")?this.renderableEventStore:n.eventStore,u=this.buildEventUiSingleBase(o.options),l=this.buildEventUiBySource(n.eventSources),c=this.eventUiBases=this.buildEventUiBases(s.defs,u,l);!e&&r||(r&&(r.freezeHeight(),r.destroy()),r=this.component=new Lo({calendar:this,view:null,dateEnv:this.dateEnv,theme:this.theme,options:this.optionsManager.computed},this.el)),r.receiveProps(ki({},n,{viewSpec:o,dateProfile:n.dateProfile,dateProfileGenerator:this.dateProfileGenerators[i],eventStore:s,eventUiBases:c,dateSelection:n.dateSelection,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize})),a&&r.view.applyScroll(a,!1),this.isViewUpdated&&(this.isViewUpdated=!1,this.publiclyTrigger("viewSkeletonRender",[{view:r.view,el:r.view.el}])),this.isDatesUpdated&&(this.isDatesUpdated=!1,this.publiclyTrigger("datesRender",[{view:r.view,el:r.view.el}])),this.isEventsUpdated&&(this.isEventsUpdated=!1),this.releaseAfterSizingTriggers()},e.prototype.resetOptions=function(e){var t=this,n=this.pluginSystem.hooks.optionChangeHandlers,r=this.optionsManager.overrides,i={},o={},a={};for(var s in r)n[s]||(i[s]=r[s]);for(var u in e)n[u]?a[u]=e[u]:o[u]=e[u];this.batchRendering(function(){Zn(i,o)?t.processOptions(e,"reset"):t.processOptions(Wn(i,o));for(var r in a)n[r](a[r],t)})},e.prototype.setOptions=function(e){var t=this,n=this.pluginSystem.hooks.optionChangeHandlers,r={},i={};for(var o in e)n[o]?i[o]=e[o]:r[o]=e[o];this.batchRendering(function(){t.processOptions(r);for(var e in i)n[e](i[e],t)})},e.prototype.processOptions=function(e,t){var n=this,r=this.dateEnv,i=!1,o=!1,a=!1;for(var s in e)/^(height|contentHeight|aspectRatio)$/.test(s)?o=!0:/^(defaultDate|defaultView)$/.test(s)||(a=!0,"timeZone"===s&&(i=!0));"reset"===t?(a=!0,this.optionsManager.reset(e)):"dynamic"===t?this.optionsManager.addDynamic(e):this.optionsManager.add(e),a&&(this.handleOptions(this.optionsManager.computed),this.needsFullRerender=!0,this.batchRendering(function(){i&&n.dispatch({type:"CHANGE_TIMEZONE",oldDateEnv:r}),n.dispatch({type:"SET_VIEW_TYPE",viewType:n.state.viewType})})),o&&this.updateSize()},e.prototype.setOption=function(e,t){var n;this.processOptions((n={},n[e]=t,n),"dynamic")},e.prototype.getOption=function(e){return this.optionsManager.computed[e]},e.prototype.opt=function(e){return this.optionsManager.computed[e]},e.prototype.viewOpt=function(e){return this.viewOpts()[e]},e.prototype.viewOpts=function(){return this.viewSpecs[this.state.viewType].options},e.prototype.handleOptions=function(e){var t=this,n=this.pluginSystem.hooks;this.defaultAllDayEventDuration=ue(e.defaultAllDayEventDuration),this.defaultTimedEventDuration=ue(e.defaultTimedEventDuration),this.delayedRerender=this.buildDelayedRerender(e.rerenderDelay),this.theme=this.buildTheme(e);var r=this.parseRawLocales(e.locales);this.availableRawLocales=r.map;var i=this.buildLocale(e.locale||r.defaultCode,r.map);this.dateEnv=this.buildDateEnv(i,e.timeZone,n.namedTimeZonedImpl,e.firstDay,e.weekNumberCalculation,e.weekLabel,n.cmdFormatter),this.selectionConfig=this.buildSelectionConfig(e),this.viewSpecs=Qr(n.views,this.optionsManager),this.dateProfileGenerators=ot(this.viewSpecs,function(e){return new e.class.prototype.dateProfileGeneratorClass(e,t)})},e.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.availableRawLocales)},e.prototype._buildSelectionConfig=function(e){return Cn("select",e,this)},e.prototype._buildEventUiSingleBase=function(e){return e.editable&&(e=ki({},e,{eventEditable:!0})),Cn("event",e,this)},e.prototype.hasPublicHandlers=function(e){return this.hasHandlers(e)||this.opt(e)},e.prototype.publiclyTrigger=function(e,t){var n=this.opt(e);if(this.triggerWith(e,this,t),n)return n.apply(this,t)},e.prototype.publiclyTriggerAfterSizing=function(e,t){var n=this.afterSizingTriggers;(n[e]||(n[e]=[])).push(t)},e.prototype.releaseAfterSizingTriggers=function(){var e=this.afterSizingTriggers;for(var t in e)for(var n=0,r=e[t];n<r.length;n++){var i=r[n];this.publiclyTrigger(t,i)}this.afterSizingTriggers={}},e.prototype.isValidViewType=function(e){return Boolean(this.viewSpecs[e])},e.prototype.changeView=function(e,t){var n=null;t&&(t.start&&t.end?(this.optionsManager.addDynamic({visibleRange:t}),this.handleOptions(this.optionsManager.computed)):n=this.dateEnv.createMarker(t)),this.unselect(),this.dispatch({type:"SET_VIEW_TYPE",viewType:e,dateMarker:n})},e.prototype.zoomTo=function(e,t){var n;t=t||"day",n=this.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"SET_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"SET_DATE",dateMarker:e})},e.prototype.getUnitViewSpec=function(e){var t,n,r;t=this.component.header.viewsWithButtons;for(var i in this.viewSpecs)t.push(i);for(n=0;n<t.length;n++)if((r=this.viewSpecs[t[n]])&&r.singleUnit===e)return r},e.prototype.getInitialDate=function(){var e=this.opt("defaultDate");return null!=e?this.dateEnv.createMarker(e):this.getNow()},e.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},e.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},e.prototype.prevYear=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.addYears(this.state.currentDate,-1)})},e.prototype.nextYear=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.addYears(this.state.currentDate,1)})},e.prototype.today=function(){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.getNow()})},e.prototype.gotoDate=function(e){this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.createMarker(e)})},e.prototype.incrementDate=function(e){var t=ue(e);t&&(this.unselect(),this.dispatch({type:"SET_DATE",dateMarker:this.dateEnv.add(this.state.currentDate,t)}))},e.prototype.getDate=function(){return this.dateEnv.toDate(this.state.currentDate)},e.prototype.formatDate=function(e,t){var n=this.dateEnv;return n.format(n.createMarker(e),Vt(t))},e.prototype.formatRange=function(e,t,n){var r=this.dateEnv;return r.formatRange(r.createMarker(e),r.createMarker(t),Vt(n,this.opt("defaultRangeSeparator")),n)},e.prototype.formatIso=function(e,t){var n=this.dateEnv;return n.formatIso(n.createMarker(e),{omitTime:t})},e.prototype.windowResize=function(e){!this.isHandlingWindowResize&&this.component&&e.target===window&&(this.isHandlingWindowResize=!0,this.updateSize(),this.publiclyTrigger("windowResize",[this.view]),this.isHandlingWindowResize=!1)},e.prototype.updateSize=function(){this.component&&this.component.updateSize(!0)},e.prototype.registerInteractiveComponent=function(e,t){var n=ri(e,t),r=[Bo,Fo],i=r.concat(this.pluginSystem.hooks.componentInteractions),o=i.map(function(e){return new e(n)});this.interactionsStore[e.uid]=o,Vo[e.uid]=n},e.prototype.unregisterInteractiveComponent=function(e){for(var t=0,n=this.interactionsStore[e.uid];t<n.length;t++){n[t].destroy()}delete this.interactionsStore[e.uid],delete Vo[e.uid]},e.prototype.select=function(e,t){var n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};var r=Ar(n,this.dateEnv,ue({days:1}));r&&(this.dispatch({type:"SELECT_DATES",selection:r}),this.triggerDateSelect(r))},e.prototype.unselect=function(e){this.state.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),this.triggerDateUnselect(e))},e.prototype.triggerDateSelect=function(e,t){var n=this.buildDateSpanApi(e);n.jsEvent=t?t.origEvent:null,n.view=this.view,this.publiclyTrigger("select",[n])},e.prototype.triggerDateUnselect=function(e){this.publiclyTrigger("unselect",[{jsEvent:e?e.origEvent:null,view:this.view}])},e.prototype.triggerDateClick=function(e,t,n,r){var i=this.buildDatePointApi(e);i.dayEl=t,i.jsEvent=r,i.view=n,this.publiclyTrigger("dateClick",[i])},e.prototype.buildDatePointApi=function(e){for(var t={},n=0,r=this.pluginSystem.hooks.datePointTransforms;n<r.length;n++){var i=r[n];ki(t,i(e,this))}return ki(t,Zr(e,this.dateEnv)),t},e.prototype.buildDateSpanApi=function(e){for(var t={},n=0,r=this.pluginSystem.hooks.dateSpanTransforms;n<r.length;n++){var i=r[n];ki(t,i(e,this))}return ki(t,Wr(e,this.dateEnv)),t},e.prototype.getNow=function(){var e=this.opt("now");return"function"==typeof e&&(e=e()),null==e?this.dateEnv.createNowMarker():this.dateEnv.createMarker(e)},e.prototype.getDefaultEventEnd=function(e,t){var n=t;return e?(n=X(n),n=this.dateEnv.add(n,this.defaultAllDayEventDuration)):n=this.dateEnv.add(n,this.defaultTimedEventDuration),n},e.prototype.addEvent=function(e,t){if(e instanceof Bi){var n=e._def,r=e._instance;return this.state.eventStore.defs[n.defId]||this.dispatch({type:"ADD_EVENTS",eventStore:lt({def:n,instance:r})}),e}var i;if(t instanceof Vi)i=t.internalEventSource.sourceId;else if(null!=t){var o=this.getEventSourceById(t);if(!o)return console.warn('Could not find an event source with ID "'+t+'"'),null;i=o.internalEventSource.sourceId}var a=On(e,i,this);return a?(this.dispatch({type:"ADD_EVENTS",eventStore:lt(a)}),new Bi(this,a.def,a.def.recurringDef?null:a.instance)):null},e.prototype.getEventById=function(e){var t=this.state.eventStore,n=t.defs,r=t.instances;e=String(e);for(var i in n){var o=n[i];if(o.publicId===e){if(o.recurringDef)return new Bi(this,o,null);for(var a in r){var s=r[a];if(s.defId===o.defId)return new Bi(this,o,s)}}}return null},e.prototype.getEvents=function(){var e=this.state.eventStore,t=e.defs,n=e.instances,r=[];for(var i in n){var o=n[i],a=t[o.defId];r.push(new Bi(this,a,o))}return r},e.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},e.prototype.rerenderEvents=function(){this.dispatch({type:"RESET_EVENTS"})},e.prototype.getEventSources=function(){var e=this.state.eventSources,t=[];for(var n in e)t.push(new Vi(this,e[n]));return t},e.prototype.getEventSourceById=function(e){var t=this.state.eventSources;e=String(e);for(var n in t)if(t[n].publicId===e)return new Vi(this,t[n]);return null},e.prototype.addEventSource=function(e){if(e instanceof Vi)return this.state.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var t=mr(e,this);return t?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t]}),new Vi(this,t)):null},e.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},e.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES"})},e}();Ki.mixInto(Zo);var jo=function(e){function n(n,r,i,o){var a=e.call(this,n,t("div",{className:"fc-view fc-"+r.type+"-view"}),!0)||this;return a.renderDatesMem=An(a.renderDatesWrap,a.unrenderDatesWrap),a.renderBusinessHoursMem=An(a.renderBusinessHours,a.unrenderBusinessHours,[a.renderDatesMem]),a.renderDateSelectionMem=An(a.renderDateSelectionWrap,a.unrenderDateSelectionWrap,[a.renderDatesMem]),a.renderEventsMem=An(a.renderEvents,a.unrenderEvents,[a.renderDatesMem]),a.renderEventSelectionMem=An(a.renderEventSelectionWrap,a.unrenderEventSelectionWrap,[a.renderEventsMem]),a.renderEventDragMem=An(a.renderEventDragWrap,a.unrenderEventDragWrap,[a.renderDatesMem]),a.renderEventResizeMem=An(a.renderEventResizeWrap,a.unrenderEventResizeWrap,[a.renderDatesMem]),a.viewSpec=r,a.dateProfileGenerator=i,a.type=r.type,a.eventOrderSpecs=Ue(a.opt("eventOrder")),a.nextDayThreshold=ue(a.opt("nextDayThreshold")),o.appendChild(a.el),a.initialize(),a}return et(n,e),n.prototype.initialize=function(){},Object.defineProperty(n.prototype,"activeStart",{get:function(){return this.dateEnv.toDate(this.props.dateProfile.activeRange.start)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"activeEnd",{get:function(){return this.dateEnv.toDate(this.props.dateProfile.activeRange.end)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"currentStart",{get:function(){return this.dateEnv.toDate(this.props.dateProfile.currentRange.start)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"currentEnd",{get:function(){return this.dateEnv.toDate(this.props.dateProfile.currentRange.end)},enumerable:!0,configurable:!0}),n.prototype.render=function(e){this.renderDatesMem(e.dateProfile),this.renderBusinessHoursMem(e.businessHours),this.renderDateSelectionMem(e.dateSelection),this.renderEventsMem(e.eventStore),this.renderEventSelectionMem(e.eventSelection),this.renderEventDragMem(e.eventDrag),this.renderEventResizeMem(e.eventResize)},n.prototype.destroy=function(){e.prototype.destroy.call(this),this.renderDatesMem.unrender()},n.prototype.updateSize=function(e,t,n){var r=this.calendar;(e||r.isViewUpdated||r.isDatesUpdated||r.isEventsUpdated)&&this.updateBaseSize(e,t,n)},n.prototype.updateBaseSize=function(e,t,n){},n.prototype.renderDatesWrap=function(e){this.renderDates(e),this.addScroll({isDateInit:!0}),this.startNowIndicator(e)},n.prototype.unrenderDatesWrap=function(){this.stopNowIndicator(),this.unrenderDates()},n.prototype.renderDates=function(e){},n.prototype.unrenderDates=function(){},n.prototype.renderBusinessHours=function(e){},n.prototype.unrenderBusinessHours=function(){},n.prototype.renderDateSelectionWrap=function(e){e&&this.renderDateSelection(e)},n.prototype.unrenderDateSelectionWrap=function(e){e&&this.unrenderDateSelection(e)},n.prototype.renderDateSelection=function(e){},n.prototype.unrenderDateSelection=function(e){},n.prototype.renderEvents=function(e){},n.prototype.unrenderEvents=function(){},n.prototype.sliceEvents=function(e,t){var n=this.props;return Yt(e,n.eventUiBases,n.dateProfile.activeRange,t?this.nextDayThreshold:null).fg},n.prototype.renderEventSelectionWrap=function(e){e&&this.renderEventSelection(e)},n.prototype.unrenderEventSelectionWrap=function(e){e&&this.unrenderEventSelection(e)},n.prototype.renderEventSelection=function(e){},n.prototype.unrenderEventSelection=function(e){},n.prototype.renderEventDragWrap=function(e){e&&this.renderEventDrag(e)},n.prototype.unrenderEventDragWrap=function(e){e&&this.unrenderEventDrag(e)},n.prototype.renderEventDrag=function(e){},n.prototype.unrenderEventDrag=function(e){},n.prototype.renderEventResizeWrap=function(e){e&&this.renderEventResize(e)},n.prototype.unrenderEventResizeWrap=function(e){e&&this.unrenderEventResize(e)},n.prototype.renderEventResize=function(e){},n.prototype.unrenderEventResize=function(e){},n.prototype.startNowIndicator=function(e){var t,n,r,i=this,o=this.dateEnv;this.opt("nowIndicator")&&(t=this.getNowIndicatorUnit(e))&&(n=this.updateNowIndicator.bind(this),this.initialNowDate=this.calendar.getNow(),this.initialNowQueriedMs=(new Date).valueOf(),r=o.add(o.startOf(this.initialNowDate,t),ue(1,t)).valueOf()-this.initialNowDate.valueOf(),this.nowIndicatorTimeoutID=setTimeout(function(){i.nowIndicatorTimeoutID=null,n(),r="second"===t?1e3:6e4,i.nowIndicatorIntervalID=setInterval(n,r)},r))},n.prototype.updateNowIndicator=function(){this.props.dateProfile&&this.initialNowDate&&(this.unrenderNowIndicator(),this.renderNowIndicator(V(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs)),this.isNowIndicatorRendered=!0)},n.prototype.stopNowIndicator=function(){this.isNowIndicatorRendered&&(this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearInterval(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},n.prototype.getNowIndicatorUnit=function(e){},n.prototype.renderNowIndicator=function(e){},n.prototype.unrenderNowIndicator=function(){},n.prototype.addScroll=function(e){var t=this.queuedScroll||(this.queuedScroll={});ki(t,e)},n.prototype.popScroll=function(e){this.applyQueuedScroll(e),this.queuedScroll=null},n.prototype.applyQueuedScroll=function(e){this.applyScroll(this.queuedScroll||{},e)},n.prototype.queryScroll=function(){var e={};return this.props.dateProfile&&ki(e,this.queryDateScroll()),e},n.prototype.applyScroll=function(e,t){e.isDateInit&&(delete e.isDateInit,this.props.dateProfile&&ki(e,this.computeInitialDateScroll())),this.props.dateProfile&&this.applyDateScroll(e)},n.prototype.computeInitialDateScroll=function(){return{}},n.prototype.queryDateScroll=function(){return{}},n.prototype.applyDateScroll=function(e){},n}(ao);Ki.mixInto(jo),jo.prototype.usesMinMaxTime=!1,jo.prototype.dateProfileGeneratorClass=xo;var Yo=function(){function e(e){this.segs=[],this.isSizeDirty=!1,this.context=e}return e.prototype.renderSegs=function(e,t){this.rangeUpdated(),e=this.renderSegEls(e,t),this.segs=e,this.attachSegs(e,t),this.isSizeDirty=!0,this.context.view.triggerRenderedSegs(this.segs,Boolean(t))},e.prototype.unrender=function(e,t){this.context.view.triggerWillRemoveSegs(this.segs,Boolean(t)),this.detachSegs(this.segs),this.segs=[]},e.prototype.rangeUpdated=function(){var e,t,n=this.context.options;this.eventTimeFormat=Vt(n.eventTimeFormat||this.computeEventTimeFormat(),n.defaultRangeSeparator),e=n.displayEventTime,null==e&&(e=this.computeDisplayEventTime()),t=n.displayEventEnd,null==t&&(t=this.computeDisplayEventEnd()),this.displayEventTime=e,this.displayEventEnd=t},e.prototype.renderSegEls=function(e,t){var n,i="";if(e.length){for(n=0;n<e.length;n++)i+=this.renderSegHtml(e[n],t);r(i).forEach(function(t,n){var r=e[n];t&&(r.el=t)}),e=Gt(this.context.view,e,Boolean(t))}return e},e.prototype.getSegClasses=function(e,t,n,r){var i=["fc-event",e.isStart?"fc-start":"fc-not-start",e.isEnd?"fc-end":"fc-not-end"].concat(e.eventRange.ui.classNames);return t&&i.push("fc-draggable"),n&&i.push("fc-resizable"),r&&(i.push("fc-mirror"),r.isDragging&&i.push("fc-dragging"),r.isResizing&&i.push("fc-resizing")),i},e.prototype.getTimeText=function(e,t,n){var r=e.def,i=e.instance;return this._getTimeText(i.range.start,r.hasEnd?i.range.end:null,r.allDay,t,n,i.forcedStartTzo,i.forcedEndTzo)},e.prototype._getTimeText=function(e,t,n,r,i,o,a){var s=this.context.dateEnv;return null==r&&(r=this.eventTimeFormat),null==i&&(i=this.displayEventEnd),this.displayEventTime&&!n?i&&t?s.formatRange(e,t,r,{forcedStartTzo:o,forcedEndTzo:a}):s.format(e,r,{forcedTzo:o}):""},e.prototype.computeEventTimeFormat=function(){return{hour:"numeric",minute:"2-digit",omitZeroMinute:!0}},e.prototype.computeDisplayEventTime=function(){return!0},e.prototype.computeDisplayEventEnd=function(){return!0},e.prototype.getSkinCss=function(e){return{"background-color":e.backgroundColor,"border-color":e.borderColor,color:e.textColor}},e.prototype.sortEventSegs=function(e){var t=this.context.view.eventOrderSpecs,n=e.map(ci);return n.sort(function(e,n){return Le(e,n,t)}),n.map(function(e){return e._seg})},e.prototype.computeSizes=function(e){(e||this.isSizeDirty)&&this.computeSegSizes(this.segs)},e.prototype.assignSizes=function(e){(e||this.isSizeDirty)&&(this.assignSegSizes(this.segs),this.isSizeDirty=!1)},e.prototype.computeSegSizes=function(e){},e.prototype.assignSegSizes=function(e){},e.prototype.hideByHash=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t];e[r.eventRange.instance.instanceId]&&(r.el.style.visibility="hidden")}},e.prototype.showByHash=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t];e[r.eventRange.instance.instanceId]&&(r.el.style.visibility="")}},e.prototype.selectByInstanceId=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t],i=r.eventRange.instance;i&&i.instanceId===e&&r.el&&r.el.classList.add("fc-selected")}},e.prototype.unselectByInstanceId=function(e){if(e)for(var t=0,n=this.segs;t<n.length;t++){var r=n[t];r.el&&r.el.classList.remove("fc-selected")}},e}(),qo=function(){function e(e){this.fillSegTag="div",this.dirtySizeFlags={},this.context=e,this.containerElsByType={},this.segsByType={}}return e.prototype.getSegsByType=function(e){return this.segsByType[e]||[]},e.prototype.renderSegs=function(e,t){var n,r=this.renderSegEls(e,t),i=this.attachSegs(e,r);i&&(n=this.containerElsByType[e]||(this.containerElsByType[e]=[])).push.apply(n,i),this.segsByType[e]=r,"bgEvent"===e&&this.context.view.triggerRenderedSegs(r,!1),this.dirtySizeFlags[e]=!0},e.prototype.unrender=function(e){var t=this.segsByType[e];t&&("bgEvent"===e&&this.context.view.triggerWillRemoveSegs(t,!1),this.detachSegs(e,t))},e.prototype.renderSegEls=function(e,t){var n,i=this,o="";if(t.length){for(n=0;n<t.length;n++)o+=this.renderSegHtml(e,t[n]);r(o).forEach(function(e,n){var r=t[n];e&&(r.el=e)}),"bgEvent"===e&&(t=Gt(this.context.view,t,!1)),t=t.filter(function(e){return f(e.el,i.fillSegTag)})}return t},e.prototype.renderSegHtml=function(e,t){var n=null,r=[];return"highlight"!==e&&"businessHours"!==e&&(n={"background-color":t.eventRange.ui.backgroundColor}),"highlight"!==e&&(r=r.concat(t.eventRange.ui.classNames)),"businessHours"===e?r.push("fc-bgevent"):r.push("fc-"+e.toLowerCase()),"<"+this.fillSegTag+(r.length?' class="'+r.join(" ")+'"':"")+(n?' style="'+Tn(n)+'"':"")+"></"+this.fillSegTag+">"},e.prototype.detachSegs=function(e,t){var n=this.containerElsByType[e];n&&(n.forEach(c),delete this.containerElsByType[e])},e.prototype.computeSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.computeSegSizes(this.segsByType[t])},e.prototype.assignSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.assignSegSizes(this.segsByType[t]);this.dirtySizeFlags={}},e.prototype.computeSegSizes=function(e){},e.prototype.assignSegSizes=function(e){},e}(),Go=function(){function e(e){this.timeZoneName=e}return e}(),Xo=function(){function e(e){this.emitter=new Ki}return e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}(),Jo={startTime:ue,duration:ue,create:Boolean,sourceId:String},Ko={create:!0},Qo=function(e){function t(t,r){var i=e.call(this,t)||this;return r.innerHTML="",r.appendChild(i.el=n('<div class="fc-row '+i.theme.getClass("headerRow")+'"><table class="'+i.theme.getClass("tableGrid")+'"><thead></thead></table></div>')),i.thead=i.el.querySelector("thead"),i}return et(t,e),t.prototype.destroy=function(){c(this.el)},t.prototype.render=function(e){var t=e.dates,n=e.datesRepDistinctDays,r=[];e.renderIntroHtml&&r.push(e.renderIntroHtml());for(var i=Vt(this.opt("columnHeaderFormat")||vi(n,t.length)),o=0,a=t;o<a.length;o++){var s=a[o];r.push(gi(s,e.dateProfile,n,t.length,i,this.context))}this.isRtl&&r.reverse(),this.thead.innerHTML="<tr>"+r.join("")+"</tr>"},t}(oo),$o=function(){function e(e,t){for(var n=e.start,r=e.end,i=[],o=[],a=-1;n<r;)t.isHiddenDay(n)?i.push(a+.5):(a++,i.push(a),o.push(n)),n=A(n,1);this.dates=o,this.indices=i,this.cnt=o.length}return e.prototype.sliceRange=function(e){var t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(A(e.end,-1)),r=Math.max(0,t),i=Math.min(this.cnt-1,n);return r=Math.ceil(r),i=Math.floor(i),r<=i?{firstIndex:r,lastIndex:i,isStart:t===r,isEnd:n===i}:null},e.prototype.getDateDayIndex=function(e){var t=this.indices,n=Math.floor(F(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},e}(),ea=function(){function e(e,t){var n,r,i,o=e.dates;if(t){for(r=o[0].getUTCDay(),n=1;n<o.length&&o[n].getUTCDay()!==r;n++);i=Math.ceil(o.length/n)}else i=1,n=o.length;this.rowCnt=i,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}return e.prototype.buildCells=function(){for(var e=[],t=0;t<this.rowCnt;t++){for(var n=[],r=0;r<this.colCnt;r++)n.push(this.buildCell(t,r));e.push(n)}return e},e.prototype.buildCell=function(e,t){return{date:this.daySeries.dates[e*this.colCnt+t]}},e.prototype.buildHeaderDates=function(){for(var e=[],t=0;t<this.colCnt;t++)e.push(this.cells[0][t].date);return e},e.prototype.sliceRange=function(e){var t=this.colCnt,n=this.daySeries.sliceRange(e),r=[];if(n)for(var i=n.firstIndex,o=n.lastIndex,a=i;a<=o;){var s=Math.floor(a/t),u=Math.min((s+1)*t,o+1);r.push({row:s,firstCol:a%t,lastCol:(u-1)%t,isStart:n.isStart&&a===i,isEnd:n.isEnd&&u-1===o}),a=u}return r},e}(),ta=function(){function e(){this.sliceBusinessHours=kt(this._sliceBusinessHours),this.sliceDateSelection=kt(this._sliceDateSpan),this.sliceEventStore=kt(this._sliceEventStore),this.sliceEventDrag=kt(this._sliceInteraction),this.sliceEventResize=kt(this._sliceInteraction)}return e.prototype.sliceProps=function(e,t,n,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var a=e.eventUiBases,s=this.sliceEventStore.apply(this,[e.eventStore,a,t,n,r].concat(i));return{dateSelectionSegs:this.sliceDateSelection.apply(this,[e.dateSelection,a,r].concat(i)),businessHourSegs:this.sliceBusinessHours.apply(this,[e.businessHours,t,n,r].concat(i)),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag.apply(this,[e.eventDrag,a,t,n,r].concat(i)),eventResize:this.sliceEventResize.apply(this,[e.eventResize,a,t,n,r].concat(i)),eventSelection:e.eventSelection}},e.prototype.sliceNowDate=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this._sliceDateSpan.apply(this,[{range:{start:e,end:V(e,1)},allDay:!1},{},t].concat(n))},e.prototype._sliceBusinessHours=function(e,t,n,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];return e?this._sliceEventStore.apply(this,[ct(e,yi(t,Boolean(n)),r.calendar),{},t,n,r].concat(i)).bg:[]},e.prototype._sliceEventStore=function(e,t,n,r,i){for(var o=[],a=5;a<arguments.length;a++)o[a-5]=arguments[a];if(e){var s=Yt(e,t,yi(n,Boolean(r)),r);return{bg:this.sliceEventRanges(s.bg,i,o),fg:this.sliceEventRanges(s.fg,i,o)}}return{bg:[],fg:[]}},e.prototype._sliceInteraction=function(e,t,n,r,i){for(var o=[],a=5;a<arguments.length;a++)o[a-5]=arguments[a];if(!e)return null;var s=Yt(e.mutatedEvents,t,yi(n,Boolean(r)),r);return{segs:this.sliceEventRanges(s.fg,i,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent,sourceSeg:e.origSeg}},e.prototype._sliceDateSpan=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];if(!e)return[];for(var o=jr(e,t,n.calendar),a=this.sliceRange.apply(this,[e.range].concat(r)),s=0,u=a;s<u.length;s++){var l=u[s];l.component=n,l.eventRange=o}return a},e.prototype.sliceEventRanges=function(e,t,n){for(var r=[],i=0,o=e;i<o.length;i++){var a=o[i];r.push.apply(r,this.sliceEventRange(a,t,n))}return r},e.prototype.sliceEventRange=function(e,t,n){for(var r=this.sliceRange.apply(this,[e.range].concat(n)),i=0,o=r;i<o.length;i++){var a=o[i];a.component=t,a.eventRange=e,a.isStart=e.isStart&&a.isStart,a.isEnd=e.isEnd&&a.isEnd}return r},e}();e.Calendar=Zo,e.Component=oo,e.DateComponent=ao,e.DateEnv=Oo,e.DateProfileGenerator=xo,e.DayHeader=Qo,e.DaySeries=$o,e.DayTable=ea,e.ElementDragging=Xo,e.ElementScrollController=eo,e.EmitterMixin=Ki,e.EventApi=Bi,e.FgEventRenderer=Yo,e.FillRenderer=qo,e.Interaction=Ao,e.Mixin=Ji,e.NamedTimeZoneImpl=Go,e.PositionCache=Qi,e.ScrollComponent=no,e.ScrollController=$i,e.Slicer=ta,e.Splitter=Xi,e.Theme=ro,e.View=jo,e.WindowScrollController=to,e.addDays=A,e.addDurations=he,e.addMs=V,e.addWeeks=L,e.allowContextMenu=ze,e.allowSelection=xe,e.appendToElement=a,e.applyAll=je,e.applyMutationToEventStore=$t,e.applyStyle=g,e.applyStyleProp=y,e.asRoughMinutes=Se,e.asRoughMs=be,e.asRoughSeconds=De,e.buildGotoAnchorHtml=Yn,e.buildSegCompareObj=ci,e.capitaliseFirstLetter=Be,e.combineEventUis=Mn,e.compareByFieldSpec=Ae,e.compareByFieldSpecs=Le,e.compareNumbers=We,e.compensateScroll=Re,e.computeClippingRect=H,e.computeEdges=C,e.computeFallbackHeaderFormat=vi,e.computeHeightAndMargins=_,e.computeInnerRect=M,e.computeRect=k,e.computeVisibleDayRange=Ke,e.config=Eo,e.constrainPoint=D,e.createDuration=ue,e.createElement=t,e.createEmptyEventStore=vt,e.createEventInstance=Pn,e.createFormatter=Vt,e.createPlugin=$n,e.cssToStr=Tn,e.debounce=qe,e.diffDates=$e,e.diffDayAndTime=Y,e.diffDays=F,e.diffPoints=T,e.diffWeeks=B,e.diffWholeDays=G,e.diffWholeWeeks=q,e.disableCursor=Ce,e.distributeHeight=ke,e.elementClosest=d,e.elementMatches=f,e.enableCursor=Me,e.eventTupleToStore=lt,e.filterEventStoreDefs=yt,e.filterHash=it,e.findChildren=h,e.findElements=p,e.flexibleCompare=Ve,e.forceClassName=v,e.formatDate=di,e.formatIsoTimeString=Ft,e.formatRange=fi,e.freezeRaw=Xe,e.getAllDayHtml=qn,e.getClippingParents=P,e.getDayClasses=Gn,e.getElSeg=Jt,e.getRectCenter=b,e.getRelevantEvents=dt,e.globalDefaults=So,e.greatestDurationDenominator=we,e.hasBgRendering=qt,e.htmlEscape=bn,e.htmlToElement=n,e.insertAfterElement=u,e.interactionSettingsStore=Vo,e.interactionSettingsToStore=ii,e.intersectRanges=Dt,e.intersectRects=E,e.isArraysEqual=Mt,e.isDateSpansEqual=Br,e.isInt=Ze,e.isInteractionValid=dn,e.isMultiDayRange=Qe,e.isObjectsSimilar=Fn,e.isPropsValid=hn,e.isSingleDay=pe,e.isValidDate=ae,e.isValuesSimilar=Vn,e.listenBySelector=N,e.mapHash=ot,e.matchCellWidths=_e,e.memoize=kt,e.memoizeOutput=Ot,e.memoizeRendering=An,e.mergeEventStores=gt,e.multiplyDuration=ge,e.padStart=Fe,e.parseBusinessHours=Un,e.parseDragMeta=hi,e.parseEventDef=_n,e.parseFieldSpecs=Ue,e.parseMarker=gr,e.pointInsideRect=m,e.prependToElement=s,e.preventContextMenu=Ne,e.preventDefault=x,e.preventSelection=He,e.processScopedUiProps=Cn,e.rangeContainsMarker=Rt,e.rangeContainsRange=wt,e.rangesEqual=bt,e.rangesIntersect=Tt,e.refineProps=Ge,e.removeElement=c,e.removeExact=Ct,e.renderDateCell=gi,e.requestJson=tr,e.sliceEventStore=Yt,e.startOfDay=X,e.subtractInnerElHeight=Pe,e.translateRect=S,e.uncompensateScroll=Ie,e.undistributeHeight=Oe,e.unpromisify=Xn,e.version="4.0.2",e.whenTransitionDone=U,e.wholeDivideDurations=Te,Object.defineProperty(e,"__esModule",{value:!0})});
|
@@ -0,0 +1,69 @@
|
|
1
|
+
/*!
|
2
|
+
FullCalendar Day Grid Plugin v4.0.2
|
3
|
+
Docs & License: https://fullcalendar.io/
|
4
|
+
(c) 2019 Adam Shaw
|
5
|
+
*/
|
6
|
+
/* DayGridView
|
7
|
+
--------------------------------------------------------------------------------------------------*/
|
8
|
+
/* day row structure */
|
9
|
+
.fc-dayGridWeek-view .fc-content-skeleton,
|
10
|
+
.fc-dayGridDay-view .fc-content-skeleton {
|
11
|
+
/* there may be week numbers in these views, so no padding-top */
|
12
|
+
padding-bottom: 1em;
|
13
|
+
/* ensure a space at bottom of cell for user selecting/clicking */ }
|
14
|
+
|
15
|
+
.fc-dayGrid-view .fc-body .fc-row {
|
16
|
+
min-height: 4em;
|
17
|
+
/* ensure that all rows are at least this tall */ }
|
18
|
+
|
19
|
+
/* a "rigid" row will take up a constant amount of height because content-skeleton is absolute */
|
20
|
+
.fc-row.fc-rigid {
|
21
|
+
overflow: hidden; }
|
22
|
+
|
23
|
+
.fc-row.fc-rigid .fc-content-skeleton {
|
24
|
+
position: absolute;
|
25
|
+
top: 0;
|
26
|
+
left: 0;
|
27
|
+
right: 0; }
|
28
|
+
|
29
|
+
/* week and day number styling */
|
30
|
+
.fc-day-top.fc-other-month {
|
31
|
+
opacity: 0.3; }
|
32
|
+
|
33
|
+
.fc-dayGrid-view .fc-week-number,
|
34
|
+
.fc-dayGrid-view .fc-day-number {
|
35
|
+
padding: 2px; }
|
36
|
+
|
37
|
+
.fc-dayGrid-view th.fc-week-number,
|
38
|
+
.fc-dayGrid-view th.fc-day-number {
|
39
|
+
padding: 0 2px;
|
40
|
+
/* column headers can't have as much v space */ }
|
41
|
+
|
42
|
+
.fc-ltr .fc-dayGrid-view .fc-day-top .fc-day-number {
|
43
|
+
float: right; }
|
44
|
+
|
45
|
+
.fc-rtl .fc-dayGrid-view .fc-day-top .fc-day-number {
|
46
|
+
float: left; }
|
47
|
+
|
48
|
+
.fc-ltr .fc-dayGrid-view .fc-day-top .fc-week-number {
|
49
|
+
float: left;
|
50
|
+
border-radius: 0 0 3px 0; }
|
51
|
+
|
52
|
+
.fc-rtl .fc-dayGrid-view .fc-day-top .fc-week-number {
|
53
|
+
float: right;
|
54
|
+
border-radius: 0 0 0 3px; }
|
55
|
+
|
56
|
+
.fc-dayGrid-view .fc-day-top .fc-week-number {
|
57
|
+
min-width: 1.5em;
|
58
|
+
text-align: center;
|
59
|
+
background-color: #f2f2f2;
|
60
|
+
color: #808080; }
|
61
|
+
|
62
|
+
/* when week/day number have own column */
|
63
|
+
.fc-dayGrid-view td.fc-week-number {
|
64
|
+
text-align: center; }
|
65
|
+
|
66
|
+
.fc-dayGrid-view td.fc-week-number > * {
|
67
|
+
/* work around the way we do column resizing and ensure a minimum width */
|
68
|
+
display: inline-block;
|
69
|
+
min-width: 1.25em; }
|
@@ -0,0 +1,1630 @@
|
|
1
|
+
/*!
|
2
|
+
FullCalendar Day Grid Plugin v4.0.2
|
3
|
+
Docs & License: https://fullcalendar.io/
|
4
|
+
(c) 2019 Adam Shaw
|
5
|
+
*/
|
6
|
+
(function (global, factory) {
|
7
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@fullcalendar/core')) :
|
8
|
+
typeof define === 'function' && define.amd ? define(['exports', '@fullcalendar/core'], factory) :
|
9
|
+
(global = global || self, factory(global.FullCalendarDayGrid = {}, global.FullCalendar));
|
10
|
+
}(this, function (exports, core) { 'use strict';
|
11
|
+
|
12
|
+
/*! *****************************************************************************
|
13
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
14
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
15
|
+
this file except in compliance with the License. You may obtain a copy of the
|
16
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
17
|
+
|
18
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
19
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
20
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
21
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
22
|
+
|
23
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
24
|
+
and limitations under the License.
|
25
|
+
***************************************************************************** */
|
26
|
+
/* global Reflect, Promise */
|
27
|
+
|
28
|
+
var extendStatics = function(d, b) {
|
29
|
+
extendStatics = Object.setPrototypeOf ||
|
30
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
31
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
32
|
+
return extendStatics(d, b);
|
33
|
+
};
|
34
|
+
|
35
|
+
function __extends(d, b) {
|
36
|
+
extendStatics(d, b);
|
37
|
+
function __() { this.constructor = d; }
|
38
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
39
|
+
}
|
40
|
+
|
41
|
+
var __assign = function() {
|
42
|
+
__assign = Object.assign || function __assign(t) {
|
43
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
44
|
+
s = arguments[i];
|
45
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
46
|
+
}
|
47
|
+
return t;
|
48
|
+
};
|
49
|
+
return __assign.apply(this, arguments);
|
50
|
+
};
|
51
|
+
|
52
|
+
var DayGridDateProfileGenerator = /** @class */ (function (_super) {
|
53
|
+
__extends(DayGridDateProfileGenerator, _super);
|
54
|
+
function DayGridDateProfileGenerator() {
|
55
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
56
|
+
}
|
57
|
+
// Computes the date range that will be rendered.
|
58
|
+
DayGridDateProfileGenerator.prototype.buildRenderRange = function (currentRange, currentRangeUnit, isRangeAllDay) {
|
59
|
+
var dateEnv = this.dateEnv;
|
60
|
+
var renderRange = _super.prototype.buildRenderRange.call(this, currentRange, currentRangeUnit, isRangeAllDay);
|
61
|
+
var start = renderRange.start;
|
62
|
+
var end = renderRange.end;
|
63
|
+
var endOfWeek;
|
64
|
+
// year and month views should be aligned with weeks. this is already done for week
|
65
|
+
if (/^(year|month)$/.test(currentRangeUnit)) {
|
66
|
+
start = dateEnv.startOfWeek(start);
|
67
|
+
// make end-of-week if not already
|
68
|
+
endOfWeek = dateEnv.startOfWeek(end);
|
69
|
+
if (endOfWeek.valueOf() !== end.valueOf()) {
|
70
|
+
end = core.addWeeks(endOfWeek, 1);
|
71
|
+
}
|
72
|
+
}
|
73
|
+
// ensure 6 weeks
|
74
|
+
if (this.options.monthMode &&
|
75
|
+
this.options.fixedWeekCount) {
|
76
|
+
var rowCnt = Math.ceil(// could be partial weeks due to hiddenDays
|
77
|
+
core.diffWeeks(start, end));
|
78
|
+
end = core.addWeeks(end, 6 - rowCnt);
|
79
|
+
}
|
80
|
+
return { start: start, end: end };
|
81
|
+
};
|
82
|
+
return DayGridDateProfileGenerator;
|
83
|
+
}(core.DateProfileGenerator));
|
84
|
+
|
85
|
+
/* A rectangular panel that is absolutely positioned over other content
|
86
|
+
------------------------------------------------------------------------------------------------------------------------
|
87
|
+
Options:
|
88
|
+
- className (string)
|
89
|
+
- content (HTML string, element, or element array)
|
90
|
+
- parentEl
|
91
|
+
- top
|
92
|
+
- left
|
93
|
+
- right (the x coord of where the right edge should be. not a "CSS" right)
|
94
|
+
- autoHide (boolean)
|
95
|
+
- show (callback)
|
96
|
+
- hide (callback)
|
97
|
+
*/
|
98
|
+
var Popover = /** @class */ (function () {
|
99
|
+
function Popover(options) {
|
100
|
+
var _this = this;
|
101
|
+
this.isHidden = true;
|
102
|
+
this.margin = 10; // the space required between the popover and the edges of the scroll container
|
103
|
+
// Triggered when the user clicks *anywhere* in the document, for the autoHide feature
|
104
|
+
this.documentMousedown = function (ev) {
|
105
|
+
// only hide the popover if the click happened outside the popover
|
106
|
+
if (_this.el && !_this.el.contains(ev.target)) {
|
107
|
+
_this.hide();
|
108
|
+
}
|
109
|
+
};
|
110
|
+
this.options = options;
|
111
|
+
}
|
112
|
+
// Shows the popover on the specified position. Renders it if not already
|
113
|
+
Popover.prototype.show = function () {
|
114
|
+
if (this.isHidden) {
|
115
|
+
if (!this.el) {
|
116
|
+
this.render();
|
117
|
+
}
|
118
|
+
this.el.style.display = '';
|
119
|
+
this.position();
|
120
|
+
this.isHidden = false;
|
121
|
+
this.trigger('show');
|
122
|
+
}
|
123
|
+
};
|
124
|
+
// Hides the popover, through CSS, but does not remove it from the DOM
|
125
|
+
Popover.prototype.hide = function () {
|
126
|
+
if (!this.isHidden) {
|
127
|
+
this.el.style.display = 'none';
|
128
|
+
this.isHidden = true;
|
129
|
+
this.trigger('hide');
|
130
|
+
}
|
131
|
+
};
|
132
|
+
// Creates `this.el` and renders content inside of it
|
133
|
+
Popover.prototype.render = function () {
|
134
|
+
var _this = this;
|
135
|
+
var options = this.options;
|
136
|
+
var el = this.el = core.createElement('div', {
|
137
|
+
className: 'fc-popover ' + (options.className || ''),
|
138
|
+
style: {
|
139
|
+
top: '0',
|
140
|
+
left: '0'
|
141
|
+
}
|
142
|
+
});
|
143
|
+
if (typeof options.content === 'function') {
|
144
|
+
options.content(el);
|
145
|
+
}
|
146
|
+
options.parentEl.appendChild(el);
|
147
|
+
// when a click happens on anything inside with a 'fc-close' className, hide the popover
|
148
|
+
core.listenBySelector(el, 'click', '.fc-close', function (ev) {
|
149
|
+
_this.hide();
|
150
|
+
});
|
151
|
+
if (options.autoHide) {
|
152
|
+
document.addEventListener('mousedown', this.documentMousedown);
|
153
|
+
}
|
154
|
+
};
|
155
|
+
// Hides and unregisters any handlers
|
156
|
+
Popover.prototype.destroy = function () {
|
157
|
+
this.hide();
|
158
|
+
if (this.el) {
|
159
|
+
core.removeElement(this.el);
|
160
|
+
this.el = null;
|
161
|
+
}
|
162
|
+
document.removeEventListener('mousedown', this.documentMousedown);
|
163
|
+
};
|
164
|
+
// Positions the popover optimally, using the top/left/right options
|
165
|
+
Popover.prototype.position = function () {
|
166
|
+
var options = this.options;
|
167
|
+
var el = this.el;
|
168
|
+
var elDims = el.getBoundingClientRect(); // only used for width,height
|
169
|
+
var origin = core.computeRect(el.offsetParent);
|
170
|
+
var clippingRect = core.computeClippingRect(options.parentEl);
|
171
|
+
var top; // the "position" (not "offset") values for the popover
|
172
|
+
var left; //
|
173
|
+
// compute top and left
|
174
|
+
top = options.top || 0;
|
175
|
+
if (options.left !== undefined) {
|
176
|
+
left = options.left;
|
177
|
+
}
|
178
|
+
else if (options.right !== undefined) {
|
179
|
+
left = options.right - elDims.width; // derive the left value from the right value
|
180
|
+
}
|
181
|
+
else {
|
182
|
+
left = 0;
|
183
|
+
}
|
184
|
+
// constrain to the view port. if constrained by two edges, give precedence to top/left
|
185
|
+
top = Math.min(top, clippingRect.bottom - elDims.height - this.margin);
|
186
|
+
top = Math.max(top, clippingRect.top + this.margin);
|
187
|
+
left = Math.min(left, clippingRect.right - elDims.width - this.margin);
|
188
|
+
left = Math.max(left, clippingRect.left + this.margin);
|
189
|
+
core.applyStyle(el, {
|
190
|
+
top: top - origin.top,
|
191
|
+
left: left - origin.left
|
192
|
+
});
|
193
|
+
};
|
194
|
+
// Triggers a callback. Calls a function in the option hash of the same name.
|
195
|
+
// Arguments beyond the first `name` are forwarded on.
|
196
|
+
// TODO: better code reuse for this. Repeat code
|
197
|
+
// can kill this???
|
198
|
+
Popover.prototype.trigger = function (name) {
|
199
|
+
if (this.options[name]) {
|
200
|
+
this.options[name].apply(this, Array.prototype.slice.call(arguments, 1));
|
201
|
+
}
|
202
|
+
};
|
203
|
+
return Popover;
|
204
|
+
}());
|
205
|
+
|
206
|
+
/* Event-rendering methods for the DayGrid class
|
207
|
+
----------------------------------------------------------------------------------------------------------------------*/
|
208
|
+
// "Simple" is bad a name. has nothing to do with SimpleDayGrid
|
209
|
+
var SimpleDayGridEventRenderer = /** @class */ (function (_super) {
|
210
|
+
__extends(SimpleDayGridEventRenderer, _super);
|
211
|
+
function SimpleDayGridEventRenderer() {
|
212
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
213
|
+
}
|
214
|
+
// Builds the HTML to be used for the default element for an individual segment
|
215
|
+
SimpleDayGridEventRenderer.prototype.renderSegHtml = function (seg, mirrorInfo) {
|
216
|
+
var options = this.context.options;
|
217
|
+
var eventRange = seg.eventRange;
|
218
|
+
var eventDef = eventRange.def;
|
219
|
+
var eventUi = eventRange.ui;
|
220
|
+
var allDay = eventDef.allDay;
|
221
|
+
var isDraggable = eventUi.startEditable;
|
222
|
+
var isResizableFromStart = allDay && seg.isStart && eventUi.durationEditable && options.eventResizableFromStart;
|
223
|
+
var isResizableFromEnd = allDay && seg.isEnd && eventUi.durationEditable;
|
224
|
+
var classes = this.getSegClasses(seg, isDraggable, isResizableFromStart || isResizableFromEnd, mirrorInfo);
|
225
|
+
var skinCss = core.cssToStr(this.getSkinCss(eventUi));
|
226
|
+
var timeHtml = '';
|
227
|
+
var timeText;
|
228
|
+
var titleHtml;
|
229
|
+
classes.unshift('fc-day-grid-event', 'fc-h-event');
|
230
|
+
// Only display a timed events time if it is the starting segment
|
231
|
+
if (seg.isStart) {
|
232
|
+
timeText = this.getTimeText(eventRange);
|
233
|
+
if (timeText) {
|
234
|
+
timeHtml = '<span class="fc-time">' + core.htmlEscape(timeText) + '</span>';
|
235
|
+
}
|
236
|
+
}
|
237
|
+
titleHtml =
|
238
|
+
'<span class="fc-title">' +
|
239
|
+
(core.htmlEscape(eventDef.title || '') || ' ') + // we always want one line of height
|
240
|
+
'</span>';
|
241
|
+
return '<a class="' + classes.join(' ') + '"' +
|
242
|
+
(eventDef.url ?
|
243
|
+
' href="' + core.htmlEscape(eventDef.url) + '"' :
|
244
|
+
'') +
|
245
|
+
(skinCss ?
|
246
|
+
' style="' + skinCss + '"' :
|
247
|
+
'') +
|
248
|
+
'>' +
|
249
|
+
'<div class="fc-content">' +
|
250
|
+
(options.dir === 'rtl' ?
|
251
|
+
titleHtml + ' ' + timeHtml : // put a natural space in between
|
252
|
+
timeHtml + ' ' + titleHtml //
|
253
|
+
) +
|
254
|
+
'</div>' +
|
255
|
+
(isResizableFromStart ?
|
256
|
+
'<div class="fc-resizer fc-start-resizer"></div>' :
|
257
|
+
'') +
|
258
|
+
(isResizableFromEnd ?
|
259
|
+
'<div class="fc-resizer fc-end-resizer"></div>' :
|
260
|
+
'') +
|
261
|
+
'</a>';
|
262
|
+
};
|
263
|
+
// Computes a default event time formatting string if `eventTimeFormat` is not explicitly defined
|
264
|
+
SimpleDayGridEventRenderer.prototype.computeEventTimeFormat = function () {
|
265
|
+
return {
|
266
|
+
hour: 'numeric',
|
267
|
+
minute: '2-digit',
|
268
|
+
omitZeroMinute: true,
|
269
|
+
meridiem: 'narrow'
|
270
|
+
};
|
271
|
+
};
|
272
|
+
SimpleDayGridEventRenderer.prototype.computeDisplayEventEnd = function () {
|
273
|
+
return false; // TODO: somehow consider the originating DayGrid's column count
|
274
|
+
};
|
275
|
+
return SimpleDayGridEventRenderer;
|
276
|
+
}(core.FgEventRenderer));
|
277
|
+
|
278
|
+
/* Event-rendering methods for the DayGrid class
|
279
|
+
----------------------------------------------------------------------------------------------------------------------*/
|
280
|
+
var DayGridEventRenderer = /** @class */ (function (_super) {
|
281
|
+
__extends(DayGridEventRenderer, _super);
|
282
|
+
function DayGridEventRenderer(dayGrid) {
|
283
|
+
var _this = _super.call(this, dayGrid.context) || this;
|
284
|
+
_this.dayGrid = dayGrid;
|
285
|
+
return _this;
|
286
|
+
}
|
287
|
+
// Renders the given foreground event segments onto the grid
|
288
|
+
DayGridEventRenderer.prototype.attachSegs = function (segs, mirrorInfo) {
|
289
|
+
var rowStructs = this.rowStructs = this.renderSegRows(segs);
|
290
|
+
// append to each row's content skeleton
|
291
|
+
this.dayGrid.rowEls.forEach(function (rowNode, i) {
|
292
|
+
rowNode.querySelector('.fc-content-skeleton > table').appendChild(rowStructs[i].tbodyEl);
|
293
|
+
});
|
294
|
+
// removes the "more.." events popover
|
295
|
+
if (!mirrorInfo) {
|
296
|
+
this.dayGrid.removeSegPopover();
|
297
|
+
}
|
298
|
+
};
|
299
|
+
// Unrenders all currently rendered foreground event segments
|
300
|
+
DayGridEventRenderer.prototype.detachSegs = function () {
|
301
|
+
var rowStructs = this.rowStructs || [];
|
302
|
+
var rowStruct;
|
303
|
+
while ((rowStruct = rowStructs.pop())) {
|
304
|
+
core.removeElement(rowStruct.tbodyEl);
|
305
|
+
}
|
306
|
+
this.rowStructs = null;
|
307
|
+
};
|
308
|
+
// Uses the given events array to generate <tbody> elements that should be appended to each row's content skeleton.
|
309
|
+
// Returns an array of rowStruct objects (see the bottom of `renderSegRow`).
|
310
|
+
// PRECONDITION: each segment shoud already have a rendered and assigned `.el`
|
311
|
+
DayGridEventRenderer.prototype.renderSegRows = function (segs) {
|
312
|
+
var rowStructs = [];
|
313
|
+
var segRows;
|
314
|
+
var row;
|
315
|
+
segRows = this.groupSegRows(segs); // group into nested arrays
|
316
|
+
// iterate each row of segment groupings
|
317
|
+
for (row = 0; row < segRows.length; row++) {
|
318
|
+
rowStructs.push(this.renderSegRow(row, segRows[row]));
|
319
|
+
}
|
320
|
+
return rowStructs;
|
321
|
+
};
|
322
|
+
// Given a row # and an array of segments all in the same row, render a <tbody> element, a skeleton that contains
|
323
|
+
// the segments. Returns object with a bunch of internal data about how the render was calculated.
|
324
|
+
// NOTE: modifies rowSegs
|
325
|
+
DayGridEventRenderer.prototype.renderSegRow = function (row, rowSegs) {
|
326
|
+
var dayGrid = this.dayGrid;
|
327
|
+
var colCnt = dayGrid.colCnt, isRtl = dayGrid.isRtl;
|
328
|
+
var segLevels = this.buildSegLevels(rowSegs); // group into sub-arrays of levels
|
329
|
+
var levelCnt = Math.max(1, segLevels.length); // ensure at least one level
|
330
|
+
var tbody = document.createElement('tbody');
|
331
|
+
var segMatrix = []; // lookup for which segments are rendered into which level+col cells
|
332
|
+
var cellMatrix = []; // lookup for all <td> elements of the level+col matrix
|
333
|
+
var loneCellMatrix = []; // lookup for <td> elements that only take up a single column
|
334
|
+
var i;
|
335
|
+
var levelSegs;
|
336
|
+
var col;
|
337
|
+
var tr;
|
338
|
+
var j;
|
339
|
+
var seg;
|
340
|
+
var td;
|
341
|
+
// populates empty cells from the current column (`col`) to `endCol`
|
342
|
+
function emptyCellsUntil(endCol) {
|
343
|
+
while (col < endCol) {
|
344
|
+
// try to grab a cell from the level above and extend its rowspan. otherwise, create a fresh cell
|
345
|
+
td = (loneCellMatrix[i - 1] || [])[col];
|
346
|
+
if (td) {
|
347
|
+
td.rowSpan = (td.rowSpan || 1) + 1;
|
348
|
+
}
|
349
|
+
else {
|
350
|
+
td = document.createElement('td');
|
351
|
+
tr.appendChild(td);
|
352
|
+
}
|
353
|
+
cellMatrix[i][col] = td;
|
354
|
+
loneCellMatrix[i][col] = td;
|
355
|
+
col++;
|
356
|
+
}
|
357
|
+
}
|
358
|
+
for (i = 0; i < levelCnt; i++) { // iterate through all levels
|
359
|
+
levelSegs = segLevels[i];
|
360
|
+
col = 0;
|
361
|
+
tr = document.createElement('tr');
|
362
|
+
segMatrix.push([]);
|
363
|
+
cellMatrix.push([]);
|
364
|
+
loneCellMatrix.push([]);
|
365
|
+
// levelCnt might be 1 even though there are no actual levels. protect against this.
|
366
|
+
// this single empty row is useful for styling.
|
367
|
+
if (levelSegs) {
|
368
|
+
for (j = 0; j < levelSegs.length; j++) { // iterate through segments in level
|
369
|
+
seg = levelSegs[j];
|
370
|
+
var leftCol = isRtl ? (colCnt - 1 - seg.lastCol) : seg.firstCol;
|
371
|
+
var rightCol = isRtl ? (colCnt - 1 - seg.firstCol) : seg.lastCol;
|
372
|
+
emptyCellsUntil(leftCol);
|
373
|
+
// create a container that occupies or more columns. append the event element.
|
374
|
+
td = core.createElement('td', { className: 'fc-event-container' }, seg.el);
|
375
|
+
if (leftCol !== rightCol) {
|
376
|
+
td.colSpan = rightCol - leftCol + 1;
|
377
|
+
}
|
378
|
+
else { // a single-column segment
|
379
|
+
loneCellMatrix[i][col] = td;
|
380
|
+
}
|
381
|
+
while (col <= rightCol) {
|
382
|
+
cellMatrix[i][col] = td;
|
383
|
+
segMatrix[i][col] = seg;
|
384
|
+
col++;
|
385
|
+
}
|
386
|
+
tr.appendChild(td);
|
387
|
+
}
|
388
|
+
}
|
389
|
+
emptyCellsUntil(colCnt); // finish off the row
|
390
|
+
var introHtml = dayGrid.renderProps.renderIntroHtml();
|
391
|
+
if (introHtml) {
|
392
|
+
if (dayGrid.isRtl) {
|
393
|
+
core.appendToElement(tr, introHtml);
|
394
|
+
}
|
395
|
+
else {
|
396
|
+
core.prependToElement(tr, introHtml);
|
397
|
+
}
|
398
|
+
}
|
399
|
+
tbody.appendChild(tr);
|
400
|
+
}
|
401
|
+
return {
|
402
|
+
row: row,
|
403
|
+
tbodyEl: tbody,
|
404
|
+
cellMatrix: cellMatrix,
|
405
|
+
segMatrix: segMatrix,
|
406
|
+
segLevels: segLevels,
|
407
|
+
segs: rowSegs
|
408
|
+
};
|
409
|
+
};
|
410
|
+
// Stacks a flat array of segments, which are all assumed to be in the same row, into subarrays of vertical levels.
|
411
|
+
// NOTE: modifies segs
|
412
|
+
DayGridEventRenderer.prototype.buildSegLevels = function (segs) {
|
413
|
+
var _a = this.dayGrid, isRtl = _a.isRtl, colCnt = _a.colCnt;
|
414
|
+
var levels = [];
|
415
|
+
var i;
|
416
|
+
var seg;
|
417
|
+
var j;
|
418
|
+
// Give preference to elements with certain criteria, so they have
|
419
|
+
// a chance to be closer to the top.
|
420
|
+
segs = this.sortEventSegs(segs);
|
421
|
+
for (i = 0; i < segs.length; i++) {
|
422
|
+
seg = segs[i];
|
423
|
+
// loop through levels, starting with the topmost, until the segment doesn't collide with other segments
|
424
|
+
for (j = 0; j < levels.length; j++) {
|
425
|
+
if (!isDaySegCollision(seg, levels[j])) {
|
426
|
+
break;
|
427
|
+
}
|
428
|
+
}
|
429
|
+
// `j` now holds the desired subrow index
|
430
|
+
seg.level = j;
|
431
|
+
seg.leftCol = isRtl ? (colCnt - 1 - seg.lastCol) : seg.firstCol; // for sorting only
|
432
|
+
seg.rightCol = isRtl ? (colCnt - 1 - seg.firstCol) : seg.lastCol // for sorting only
|
433
|
+
;
|
434
|
+
(levels[j] || (levels[j] = [])).push(seg);
|
435
|
+
}
|
436
|
+
// order segments left-to-right. very important if calendar is RTL
|
437
|
+
for (j = 0; j < levels.length; j++) {
|
438
|
+
levels[j].sort(compareDaySegCols);
|
439
|
+
}
|
440
|
+
return levels;
|
441
|
+
};
|
442
|
+
// Given a flat array of segments, return an array of sub-arrays, grouped by each segment's row
|
443
|
+
DayGridEventRenderer.prototype.groupSegRows = function (segs) {
|
444
|
+
var segRows = [];
|
445
|
+
var i;
|
446
|
+
for (i = 0; i < this.dayGrid.rowCnt; i++) {
|
447
|
+
segRows.push([]);
|
448
|
+
}
|
449
|
+
for (i = 0; i < segs.length; i++) {
|
450
|
+
segRows[segs[i].row].push(segs[i]);
|
451
|
+
}
|
452
|
+
return segRows;
|
453
|
+
};
|
454
|
+
// Computes a default `displayEventEnd` value if one is not expliclty defined
|
455
|
+
DayGridEventRenderer.prototype.computeDisplayEventEnd = function () {
|
456
|
+
return this.dayGrid.colCnt === 1; // we'll likely have space if there's only one day
|
457
|
+
};
|
458
|
+
return DayGridEventRenderer;
|
459
|
+
}(SimpleDayGridEventRenderer));
|
460
|
+
// Computes whether two segments' columns collide. They are assumed to be in the same row.
|
461
|
+
function isDaySegCollision(seg, otherSegs) {
|
462
|
+
var i;
|
463
|
+
var otherSeg;
|
464
|
+
for (i = 0; i < otherSegs.length; i++) {
|
465
|
+
otherSeg = otherSegs[i];
|
466
|
+
if (otherSeg.firstCol <= seg.lastCol &&
|
467
|
+
otherSeg.lastCol >= seg.firstCol) {
|
468
|
+
return true;
|
469
|
+
}
|
470
|
+
}
|
471
|
+
return false;
|
472
|
+
}
|
473
|
+
// A cmp function for determining the leftmost event
|
474
|
+
function compareDaySegCols(a, b) {
|
475
|
+
return a.leftCol - b.leftCol;
|
476
|
+
}
|
477
|
+
|
478
|
+
var DayGridMirrorRenderer = /** @class */ (function (_super) {
|
479
|
+
__extends(DayGridMirrorRenderer, _super);
|
480
|
+
function DayGridMirrorRenderer() {
|
481
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
482
|
+
}
|
483
|
+
DayGridMirrorRenderer.prototype.attachSegs = function (segs, mirrorInfo) {
|
484
|
+
var sourceSeg = mirrorInfo.sourceSeg;
|
485
|
+
var rowStructs = this.rowStructs = this.renderSegRows(segs);
|
486
|
+
// inject each new event skeleton into each associated row
|
487
|
+
this.dayGrid.rowEls.forEach(function (rowNode, row) {
|
488
|
+
var skeletonEl = core.htmlToElement('<div class="fc-mirror-skeleton"><table></table></div>'); // will be absolutely positioned
|
489
|
+
var skeletonTopEl;
|
490
|
+
var skeletonTop;
|
491
|
+
// If there is an original segment, match the top position. Otherwise, put it at the row's top level
|
492
|
+
if (sourceSeg && sourceSeg.row === row) {
|
493
|
+
skeletonTopEl = sourceSeg.el;
|
494
|
+
}
|
495
|
+
else {
|
496
|
+
skeletonTopEl = rowNode.querySelector('.fc-content-skeleton tbody');
|
497
|
+
if (!skeletonTopEl) { // when no events
|
498
|
+
skeletonTopEl = rowNode.querySelector('.fc-content-skeleton table');
|
499
|
+
}
|
500
|
+
}
|
501
|
+
skeletonTop = skeletonTopEl.getBoundingClientRect().top -
|
502
|
+
rowNode.getBoundingClientRect().top; // the offsetParent origin
|
503
|
+
skeletonEl.style.top = skeletonTop + 'px';
|
504
|
+
skeletonEl.querySelector('table').appendChild(rowStructs[row].tbodyEl);
|
505
|
+
rowNode.appendChild(skeletonEl);
|
506
|
+
});
|
507
|
+
};
|
508
|
+
return DayGridMirrorRenderer;
|
509
|
+
}(DayGridEventRenderer));
|
510
|
+
|
511
|
+
var DayGridFillRenderer = /** @class */ (function (_super) {
|
512
|
+
__extends(DayGridFillRenderer, _super);
|
513
|
+
function DayGridFillRenderer(dayGrid) {
|
514
|
+
var _this = _super.call(this, dayGrid.context) || this;
|
515
|
+
_this.fillSegTag = 'td'; // override the default tag name
|
516
|
+
_this.dayGrid = dayGrid;
|
517
|
+
return _this;
|
518
|
+
}
|
519
|
+
DayGridFillRenderer.prototype.renderSegs = function (type, segs) {
|
520
|
+
// don't render timed background events
|
521
|
+
if (type === 'bgEvent') {
|
522
|
+
segs = segs.filter(function (seg) {
|
523
|
+
return seg.eventRange.def.allDay;
|
524
|
+
});
|
525
|
+
}
|
526
|
+
_super.prototype.renderSegs.call(this, type, segs);
|
527
|
+
};
|
528
|
+
DayGridFillRenderer.prototype.attachSegs = function (type, segs) {
|
529
|
+
var els = [];
|
530
|
+
var i;
|
531
|
+
var seg;
|
532
|
+
var skeletonEl;
|
533
|
+
for (i = 0; i < segs.length; i++) {
|
534
|
+
seg = segs[i];
|
535
|
+
skeletonEl = this.renderFillRow(type, seg);
|
536
|
+
this.dayGrid.rowEls[seg.row].appendChild(skeletonEl);
|
537
|
+
els.push(skeletonEl);
|
538
|
+
}
|
539
|
+
return els;
|
540
|
+
};
|
541
|
+
// Generates the HTML needed for one row of a fill. Requires the seg's el to be rendered.
|
542
|
+
DayGridFillRenderer.prototype.renderFillRow = function (type, seg) {
|
543
|
+
var dayGrid = this.dayGrid;
|
544
|
+
var colCnt = dayGrid.colCnt, isRtl = dayGrid.isRtl;
|
545
|
+
var leftCol = isRtl ? (colCnt - 1 - seg.lastCol) : seg.firstCol;
|
546
|
+
var rightCol = isRtl ? (colCnt - 1 - seg.firstCol) : seg.lastCol;
|
547
|
+
var startCol = leftCol;
|
548
|
+
var endCol = rightCol + 1;
|
549
|
+
var className;
|
550
|
+
var skeletonEl;
|
551
|
+
var trEl;
|
552
|
+
if (type === 'businessHours') {
|
553
|
+
className = 'bgevent';
|
554
|
+
}
|
555
|
+
else {
|
556
|
+
className = type.toLowerCase();
|
557
|
+
}
|
558
|
+
skeletonEl = core.htmlToElement('<div class="fc-' + className + '-skeleton">' +
|
559
|
+
'<table><tr></tr></table>' +
|
560
|
+
'</div>');
|
561
|
+
trEl = skeletonEl.getElementsByTagName('tr')[0];
|
562
|
+
if (startCol > 0) {
|
563
|
+
core.appendToElement(trEl,
|
564
|
+
// will create (startCol + 1) td's
|
565
|
+
new Array(startCol + 1).join('<td></td>'));
|
566
|
+
}
|
567
|
+
seg.el.colSpan = endCol - startCol;
|
568
|
+
trEl.appendChild(seg.el);
|
569
|
+
if (endCol < colCnt) {
|
570
|
+
core.appendToElement(trEl,
|
571
|
+
// will create (colCnt - endCol) td's
|
572
|
+
new Array(colCnt - endCol + 1).join('<td></td>'));
|
573
|
+
}
|
574
|
+
var introHtml = dayGrid.renderProps.renderIntroHtml();
|
575
|
+
if (introHtml) {
|
576
|
+
if (dayGrid.isRtl) {
|
577
|
+
core.appendToElement(trEl, introHtml);
|
578
|
+
}
|
579
|
+
else {
|
580
|
+
core.prependToElement(trEl, introHtml);
|
581
|
+
}
|
582
|
+
}
|
583
|
+
return skeletonEl;
|
584
|
+
};
|
585
|
+
return DayGridFillRenderer;
|
586
|
+
}(core.FillRenderer));
|
587
|
+
|
588
|
+
var DayTile = /** @class */ (function (_super) {
|
589
|
+
__extends(DayTile, _super);
|
590
|
+
function DayTile(context, el) {
|
591
|
+
var _this = _super.call(this, context, el) || this;
|
592
|
+
var eventRenderer = _this.eventRenderer = new DayTileEventRenderer(_this);
|
593
|
+
var renderFrame = _this.renderFrame = core.memoizeRendering(_this._renderFrame);
|
594
|
+
_this.renderFgEvents = core.memoizeRendering(eventRenderer.renderSegs.bind(eventRenderer), eventRenderer.unrender.bind(eventRenderer), [renderFrame]);
|
595
|
+
_this.renderEventSelection = core.memoizeRendering(eventRenderer.selectByInstanceId.bind(eventRenderer), eventRenderer.unselectByInstanceId.bind(eventRenderer), [_this.renderFgEvents]);
|
596
|
+
_this.renderEventDrag = core.memoizeRendering(eventRenderer.hideByHash.bind(eventRenderer), eventRenderer.showByHash.bind(eventRenderer), [renderFrame]);
|
597
|
+
_this.renderEventResize = core.memoizeRendering(eventRenderer.hideByHash.bind(eventRenderer), eventRenderer.showByHash.bind(eventRenderer), [renderFrame]);
|
598
|
+
context.calendar.registerInteractiveComponent(_this, {
|
599
|
+
el: _this.el,
|
600
|
+
useEventCenter: false
|
601
|
+
});
|
602
|
+
return _this;
|
603
|
+
}
|
604
|
+
DayTile.prototype.render = function (props) {
|
605
|
+
this.renderFrame(props.date);
|
606
|
+
this.renderFgEvents(props.fgSegs);
|
607
|
+
this.renderEventSelection(props.eventSelection);
|
608
|
+
this.renderEventDrag(props.eventDragInstances);
|
609
|
+
this.renderEventResize(props.eventResizeInstances);
|
610
|
+
};
|
611
|
+
DayTile.prototype.destroy = function () {
|
612
|
+
_super.prototype.destroy.call(this);
|
613
|
+
this.renderFrame.unrender(); // should unrender everything else
|
614
|
+
this.calendar.unregisterInteractiveComponent(this);
|
615
|
+
};
|
616
|
+
DayTile.prototype._renderFrame = function (date) {
|
617
|
+
var _a = this, theme = _a.theme, dateEnv = _a.dateEnv;
|
618
|
+
var title = dateEnv.format(date, core.createFormatter(this.opt('dayPopoverFormat')) // TODO: cache
|
619
|
+
);
|
620
|
+
this.el.innerHTML =
|
621
|
+
'<div class="fc-header ' + theme.getClass('popoverHeader') + '">' +
|
622
|
+
'<span class="fc-title">' +
|
623
|
+
core.htmlEscape(title) +
|
624
|
+
'</span>' +
|
625
|
+
'<span class="fc-close ' + theme.getIconClass('close') + '"></span>' +
|
626
|
+
'</div>' +
|
627
|
+
'<div class="fc-body ' + theme.getClass('popoverContent') + '">' +
|
628
|
+
'<div class="fc-event-container"></div>' +
|
629
|
+
'</div>';
|
630
|
+
this.segContainerEl = this.el.querySelector('.fc-event-container');
|
631
|
+
};
|
632
|
+
DayTile.prototype.queryHit = function (positionLeft, positionTop, elWidth, elHeight) {
|
633
|
+
var date = this.props.date; // HACK
|
634
|
+
if (positionLeft < elWidth && positionTop < elHeight) {
|
635
|
+
return {
|
636
|
+
component: this,
|
637
|
+
dateSpan: {
|
638
|
+
allDay: true,
|
639
|
+
range: { start: date, end: core.addDays(date, 1) }
|
640
|
+
},
|
641
|
+
dayEl: this.el,
|
642
|
+
rect: {
|
643
|
+
left: 0,
|
644
|
+
top: 0,
|
645
|
+
right: elWidth,
|
646
|
+
bottom: elHeight
|
647
|
+
},
|
648
|
+
layer: 1
|
649
|
+
};
|
650
|
+
}
|
651
|
+
};
|
652
|
+
return DayTile;
|
653
|
+
}(core.DateComponent));
|
654
|
+
var DayTileEventRenderer = /** @class */ (function (_super) {
|
655
|
+
__extends(DayTileEventRenderer, _super);
|
656
|
+
function DayTileEventRenderer(dayTile) {
|
657
|
+
var _this = _super.call(this, dayTile.context) || this;
|
658
|
+
_this.dayTile = dayTile;
|
659
|
+
return _this;
|
660
|
+
}
|
661
|
+
DayTileEventRenderer.prototype.attachSegs = function (segs) {
|
662
|
+
for (var _i = 0, segs_1 = segs; _i < segs_1.length; _i++) {
|
663
|
+
var seg = segs_1[_i];
|
664
|
+
this.dayTile.segContainerEl.appendChild(seg.el);
|
665
|
+
}
|
666
|
+
};
|
667
|
+
DayTileEventRenderer.prototype.detachSegs = function (segs) {
|
668
|
+
for (var _i = 0, segs_2 = segs; _i < segs_2.length; _i++) {
|
669
|
+
var seg = segs_2[_i];
|
670
|
+
core.removeElement(seg.el);
|
671
|
+
}
|
672
|
+
};
|
673
|
+
return DayTileEventRenderer;
|
674
|
+
}(SimpleDayGridEventRenderer));
|
675
|
+
|
676
|
+
var DayBgRow = /** @class */ (function () {
|
677
|
+
function DayBgRow(context) {
|
678
|
+
this.context = context;
|
679
|
+
}
|
680
|
+
DayBgRow.prototype.renderHtml = function (props) {
|
681
|
+
var parts = [];
|
682
|
+
if (props.renderIntroHtml) {
|
683
|
+
parts.push(props.renderIntroHtml());
|
684
|
+
}
|
685
|
+
for (var _i = 0, _a = props.cells; _i < _a.length; _i++) {
|
686
|
+
var cell = _a[_i];
|
687
|
+
parts.push(renderCellHtml(cell.date, props.dateProfile, this.context, cell.htmlAttrs));
|
688
|
+
}
|
689
|
+
if (!props.cells.length) {
|
690
|
+
parts.push('<td class="fc-day ' + this.context.theme.getClass('widgetContent') + '"></td>');
|
691
|
+
}
|
692
|
+
if (this.context.options.dir === 'rtl') {
|
693
|
+
parts.reverse();
|
694
|
+
}
|
695
|
+
return '<tr>' + parts.join('') + '</tr>';
|
696
|
+
};
|
697
|
+
return DayBgRow;
|
698
|
+
}());
|
699
|
+
function renderCellHtml(date, dateProfile, context, otherAttrs) {
|
700
|
+
var dateEnv = context.dateEnv, theme = context.theme;
|
701
|
+
var isDateValid = core.rangeContainsMarker(dateProfile.activeRange, date); // TODO: called too frequently. cache somehow.
|
702
|
+
var classes = core.getDayClasses(date, dateProfile, context);
|
703
|
+
classes.unshift('fc-day', theme.getClass('widgetContent'));
|
704
|
+
return '<td class="' + classes.join(' ') + '"' +
|
705
|
+
(isDateValid ?
|
706
|
+
' data-date="' + dateEnv.formatIso(date, { omitTime: true }) + '"' :
|
707
|
+
'') +
|
708
|
+
(otherAttrs ?
|
709
|
+
' ' + otherAttrs :
|
710
|
+
'') +
|
711
|
+
'></td>';
|
712
|
+
}
|
713
|
+
|
714
|
+
var DAY_NUM_FORMAT = core.createFormatter({ day: 'numeric' });
|
715
|
+
var WEEK_NUM_FORMAT = core.createFormatter({ week: 'numeric' });
|
716
|
+
var DayGrid = /** @class */ (function (_super) {
|
717
|
+
__extends(DayGrid, _super);
|
718
|
+
function DayGrid(context, el, renderProps) {
|
719
|
+
var _this = _super.call(this, context, el) || this;
|
720
|
+
_this.bottomCoordPadding = 0; // hack for extending the hit area for the last row of the coordinate grid
|
721
|
+
_this.isCellSizesDirty = false;
|
722
|
+
var eventRenderer = _this.eventRenderer = new DayGridEventRenderer(_this);
|
723
|
+
var fillRenderer = _this.fillRenderer = new DayGridFillRenderer(_this);
|
724
|
+
_this.mirrorRenderer = new DayGridMirrorRenderer(_this);
|
725
|
+
var renderCells = _this.renderCells = core.memoizeRendering(_this._renderCells, _this._unrenderCells);
|
726
|
+
_this.renderBusinessHours = core.memoizeRendering(fillRenderer.renderSegs.bind(fillRenderer, 'businessHours'), fillRenderer.unrender.bind(fillRenderer, 'businessHours'), [renderCells]);
|
727
|
+
_this.renderDateSelection = core.memoizeRendering(fillRenderer.renderSegs.bind(fillRenderer, 'highlight'), fillRenderer.unrender.bind(fillRenderer, 'highlight'), [renderCells]);
|
728
|
+
_this.renderBgEvents = core.memoizeRendering(fillRenderer.renderSegs.bind(fillRenderer, 'bgEvent'), fillRenderer.unrender.bind(fillRenderer, 'bgEvent'), [renderCells]);
|
729
|
+
_this.renderFgEvents = core.memoizeRendering(eventRenderer.renderSegs.bind(eventRenderer), eventRenderer.unrender.bind(eventRenderer), [renderCells]);
|
730
|
+
_this.renderEventSelection = core.memoizeRendering(eventRenderer.selectByInstanceId.bind(eventRenderer), eventRenderer.unselectByInstanceId.bind(eventRenderer), [_this.renderFgEvents]);
|
731
|
+
_this.renderEventDrag = core.memoizeRendering(_this._renderEventDrag, _this._unrenderEventDrag, [renderCells]);
|
732
|
+
_this.renderEventResize = core.memoizeRendering(_this._renderEventResize, _this._unrenderEventResize, [renderCells]);
|
733
|
+
_this.renderProps = renderProps;
|
734
|
+
return _this;
|
735
|
+
}
|
736
|
+
DayGrid.prototype.render = function (props) {
|
737
|
+
var cells = props.cells;
|
738
|
+
this.rowCnt = cells.length;
|
739
|
+
this.colCnt = cells[0].length;
|
740
|
+
this.renderCells(cells, props.isRigid);
|
741
|
+
this.renderBusinessHours(props.businessHourSegs);
|
742
|
+
this.renderDateSelection(props.dateSelectionSegs);
|
743
|
+
this.renderBgEvents(props.bgEventSegs);
|
744
|
+
this.renderFgEvents(props.fgEventSegs);
|
745
|
+
this.renderEventSelection(props.eventSelection);
|
746
|
+
this.renderEventDrag(props.eventDrag);
|
747
|
+
this.renderEventResize(props.eventResize);
|
748
|
+
if (this.segPopoverTile) {
|
749
|
+
this.updateSegPopoverTile();
|
750
|
+
}
|
751
|
+
};
|
752
|
+
DayGrid.prototype.destroy = function () {
|
753
|
+
_super.prototype.destroy.call(this);
|
754
|
+
this.renderCells.unrender(); // will unrender everything else
|
755
|
+
};
|
756
|
+
DayGrid.prototype.getCellRange = function (row, col) {
|
757
|
+
var start = this.props.cells[row][col].date;
|
758
|
+
var end = core.addDays(start, 1);
|
759
|
+
return { start: start, end: end };
|
760
|
+
};
|
761
|
+
DayGrid.prototype.updateSegPopoverTile = function (date, segs) {
|
762
|
+
var ownProps = this.props;
|
763
|
+
this.segPopoverTile.receiveProps({
|
764
|
+
date: date || this.segPopoverTile.props.date,
|
765
|
+
fgSegs: segs || this.segPopoverTile.props.fgSegs,
|
766
|
+
eventSelection: ownProps.eventSelection,
|
767
|
+
eventDragInstances: ownProps.eventDrag ? ownProps.eventDrag.affectedInstances : null,
|
768
|
+
eventResizeInstances: ownProps.eventResize ? ownProps.eventResize.affectedInstances : null
|
769
|
+
});
|
770
|
+
};
|
771
|
+
/* Date Rendering
|
772
|
+
------------------------------------------------------------------------------------------------------------------*/
|
773
|
+
DayGrid.prototype._renderCells = function (cells, isRigid) {
|
774
|
+
var _a = this, view = _a.view, dateEnv = _a.dateEnv;
|
775
|
+
var _b = this, rowCnt = _b.rowCnt, colCnt = _b.colCnt;
|
776
|
+
var html = '';
|
777
|
+
var row;
|
778
|
+
var col;
|
779
|
+
for (row = 0; row < rowCnt; row++) {
|
780
|
+
html += this.renderDayRowHtml(row, isRigid);
|
781
|
+
}
|
782
|
+
this.el.innerHTML = html;
|
783
|
+
this.rowEls = core.findElements(this.el, '.fc-row');
|
784
|
+
this.cellEls = core.findElements(this.el, '.fc-day, .fc-disabled-day');
|
785
|
+
if (this.isRtl) {
|
786
|
+
this.cellEls.reverse();
|
787
|
+
}
|
788
|
+
this.rowPositions = new core.PositionCache(this.el, this.rowEls, false, true // vertical
|
789
|
+
);
|
790
|
+
this.colPositions = new core.PositionCache(this.el, this.cellEls.slice(0, colCnt), // only the first row
|
791
|
+
true, false // horizontal
|
792
|
+
);
|
793
|
+
// trigger dayRender with each cell's element
|
794
|
+
for (row = 0; row < rowCnt; row++) {
|
795
|
+
for (col = 0; col < colCnt; col++) {
|
796
|
+
this.publiclyTrigger('dayRender', [
|
797
|
+
{
|
798
|
+
date: dateEnv.toDate(cells[row][col].date),
|
799
|
+
el: this.getCellEl(row, col),
|
800
|
+
view: view
|
801
|
+
}
|
802
|
+
]);
|
803
|
+
}
|
804
|
+
}
|
805
|
+
this.isCellSizesDirty = true;
|
806
|
+
};
|
807
|
+
DayGrid.prototype._unrenderCells = function () {
|
808
|
+
this.removeSegPopover();
|
809
|
+
};
|
810
|
+
// Generates the HTML for a single row, which is a div that wraps a table.
|
811
|
+
// `row` is the row number.
|
812
|
+
DayGrid.prototype.renderDayRowHtml = function (row, isRigid) {
|
813
|
+
var theme = this.theme;
|
814
|
+
var classes = ['fc-row', 'fc-week', theme.getClass('dayRow')];
|
815
|
+
if (isRigid) {
|
816
|
+
classes.push('fc-rigid');
|
817
|
+
}
|
818
|
+
var bgRow = new DayBgRow(this.context);
|
819
|
+
return '' +
|
820
|
+
'<div class="' + classes.join(' ') + '">' +
|
821
|
+
'<div class="fc-bg">' +
|
822
|
+
'<table class="' + theme.getClass('tableGrid') + '">' +
|
823
|
+
bgRow.renderHtml({
|
824
|
+
cells: this.props.cells[row],
|
825
|
+
dateProfile: this.props.dateProfile,
|
826
|
+
renderIntroHtml: this.renderProps.renderBgIntroHtml
|
827
|
+
}) +
|
828
|
+
'</table>' +
|
829
|
+
'</div>' +
|
830
|
+
'<div class="fc-content-skeleton">' +
|
831
|
+
'<table>' +
|
832
|
+
(this.getIsNumbersVisible() ?
|
833
|
+
'<thead>' +
|
834
|
+
this.renderNumberTrHtml(row) +
|
835
|
+
'</thead>' :
|
836
|
+
'') +
|
837
|
+
'</table>' +
|
838
|
+
'</div>' +
|
839
|
+
'</div>';
|
840
|
+
};
|
841
|
+
DayGrid.prototype.getIsNumbersVisible = function () {
|
842
|
+
return this.getIsDayNumbersVisible() ||
|
843
|
+
this.renderProps.cellWeekNumbersVisible ||
|
844
|
+
this.renderProps.colWeekNumbersVisible;
|
845
|
+
};
|
846
|
+
DayGrid.prototype.getIsDayNumbersVisible = function () {
|
847
|
+
return this.rowCnt > 1;
|
848
|
+
};
|
849
|
+
/* Grid Number Rendering
|
850
|
+
------------------------------------------------------------------------------------------------------------------*/
|
851
|
+
DayGrid.prototype.renderNumberTrHtml = function (row) {
|
852
|
+
var intro = this.renderProps.renderNumberIntroHtml(row, this);
|
853
|
+
return '' +
|
854
|
+
'<tr>' +
|
855
|
+
(this.isRtl ? '' : intro) +
|
856
|
+
this.renderNumberCellsHtml(row) +
|
857
|
+
(this.isRtl ? intro : '') +
|
858
|
+
'</tr>';
|
859
|
+
};
|
860
|
+
DayGrid.prototype.renderNumberCellsHtml = function (row) {
|
861
|
+
var htmls = [];
|
862
|
+
var col;
|
863
|
+
var date;
|
864
|
+
for (col = 0; col < this.colCnt; col++) {
|
865
|
+
date = this.props.cells[row][col].date;
|
866
|
+
htmls.push(this.renderNumberCellHtml(date));
|
867
|
+
}
|
868
|
+
if (this.isRtl) {
|
869
|
+
htmls.reverse();
|
870
|
+
}
|
871
|
+
return htmls.join('');
|
872
|
+
};
|
873
|
+
// Generates the HTML for the <td>s of the "number" row in the DayGrid's content skeleton.
|
874
|
+
// The number row will only exist if either day numbers or week numbers are turned on.
|
875
|
+
DayGrid.prototype.renderNumberCellHtml = function (date) {
|
876
|
+
var _a = this, view = _a.view, dateEnv = _a.dateEnv;
|
877
|
+
var html = '';
|
878
|
+
var isDateValid = core.rangeContainsMarker(this.props.dateProfile.activeRange, date); // TODO: called too frequently. cache somehow.
|
879
|
+
var isDayNumberVisible = this.getIsDayNumbersVisible() && isDateValid;
|
880
|
+
var classes;
|
881
|
+
var weekCalcFirstDow;
|
882
|
+
if (!isDayNumberVisible && !this.renderProps.cellWeekNumbersVisible) {
|
883
|
+
// no numbers in day cell (week number must be along the side)
|
884
|
+
return '<td></td>'; // will create an empty space above events :(
|
885
|
+
}
|
886
|
+
classes = core.getDayClasses(date, this.props.dateProfile, this.context);
|
887
|
+
classes.unshift('fc-day-top');
|
888
|
+
if (this.renderProps.cellWeekNumbersVisible) {
|
889
|
+
weekCalcFirstDow = dateEnv.weekDow;
|
890
|
+
}
|
891
|
+
html += '<td class="' + classes.join(' ') + '"' +
|
892
|
+
(isDateValid ?
|
893
|
+
' data-date="' + dateEnv.formatIso(date, { omitTime: true }) + '"' :
|
894
|
+
'') +
|
895
|
+
'>';
|
896
|
+
if (this.renderProps.cellWeekNumbersVisible && (date.getUTCDay() === weekCalcFirstDow)) {
|
897
|
+
html += core.buildGotoAnchorHtml(view, { date: date, type: 'week' }, { 'class': 'fc-week-number' }, dateEnv.format(date, WEEK_NUM_FORMAT) // inner HTML
|
898
|
+
);
|
899
|
+
}
|
900
|
+
if (isDayNumberVisible) {
|
901
|
+
html += core.buildGotoAnchorHtml(view, date, { 'class': 'fc-day-number' }, dateEnv.format(date, DAY_NUM_FORMAT) // inner HTML
|
902
|
+
);
|
903
|
+
}
|
904
|
+
html += '</td>';
|
905
|
+
return html;
|
906
|
+
};
|
907
|
+
/* Sizing
|
908
|
+
------------------------------------------------------------------------------------------------------------------*/
|
909
|
+
DayGrid.prototype.updateSize = function (isResize) {
|
910
|
+
var _a = this, fillRenderer = _a.fillRenderer, eventRenderer = _a.eventRenderer, mirrorRenderer = _a.mirrorRenderer;
|
911
|
+
if (isResize || this.isCellSizesDirty) {
|
912
|
+
this.buildColPositions();
|
913
|
+
this.buildRowPositions();
|
914
|
+
this.isCellSizesDirty = false;
|
915
|
+
}
|
916
|
+
fillRenderer.computeSizes(isResize);
|
917
|
+
eventRenderer.computeSizes(isResize);
|
918
|
+
mirrorRenderer.computeSizes(isResize);
|
919
|
+
fillRenderer.assignSizes(isResize);
|
920
|
+
eventRenderer.assignSizes(isResize);
|
921
|
+
mirrorRenderer.assignSizes(isResize);
|
922
|
+
};
|
923
|
+
DayGrid.prototype.buildColPositions = function () {
|
924
|
+
this.colPositions.build();
|
925
|
+
};
|
926
|
+
DayGrid.prototype.buildRowPositions = function () {
|
927
|
+
this.rowPositions.build();
|
928
|
+
this.rowPositions.bottoms[this.rowCnt - 1] += this.bottomCoordPadding; // hack
|
929
|
+
};
|
930
|
+
/* Hit System
|
931
|
+
------------------------------------------------------------------------------------------------------------------*/
|
932
|
+
DayGrid.prototype.positionToHit = function (leftPosition, topPosition) {
|
933
|
+
var _a = this, colPositions = _a.colPositions, rowPositions = _a.rowPositions;
|
934
|
+
var col = colPositions.leftToIndex(leftPosition);
|
935
|
+
var row = rowPositions.topToIndex(topPosition);
|
936
|
+
if (row != null && col != null) {
|
937
|
+
return {
|
938
|
+
row: row,
|
939
|
+
col: col,
|
940
|
+
dateSpan: {
|
941
|
+
range: this.getCellRange(row, col),
|
942
|
+
allDay: true
|
943
|
+
},
|
944
|
+
dayEl: this.getCellEl(row, col),
|
945
|
+
relativeRect: {
|
946
|
+
left: colPositions.lefts[col],
|
947
|
+
right: colPositions.rights[col],
|
948
|
+
top: rowPositions.tops[row],
|
949
|
+
bottom: rowPositions.bottoms[row]
|
950
|
+
}
|
951
|
+
};
|
952
|
+
}
|
953
|
+
};
|
954
|
+
/* Cell System
|
955
|
+
------------------------------------------------------------------------------------------------------------------*/
|
956
|
+
// FYI: the first column is the leftmost column, regardless of date
|
957
|
+
DayGrid.prototype.getCellEl = function (row, col) {
|
958
|
+
return this.cellEls[row * this.colCnt + col];
|
959
|
+
};
|
960
|
+
/* Event Drag Visualization
|
961
|
+
------------------------------------------------------------------------------------------------------------------*/
|
962
|
+
DayGrid.prototype._renderEventDrag = function (state) {
|
963
|
+
if (state) {
|
964
|
+
this.eventRenderer.hideByHash(state.affectedInstances);
|
965
|
+
this.fillRenderer.renderSegs('highlight', state.segs);
|
966
|
+
}
|
967
|
+
};
|
968
|
+
DayGrid.prototype._unrenderEventDrag = function (state) {
|
969
|
+
if (state) {
|
970
|
+
this.eventRenderer.showByHash(state.affectedInstances);
|
971
|
+
this.fillRenderer.unrender('highlight');
|
972
|
+
}
|
973
|
+
};
|
974
|
+
/* Event Resize Visualization
|
975
|
+
------------------------------------------------------------------------------------------------------------------*/
|
976
|
+
DayGrid.prototype._renderEventResize = function (state) {
|
977
|
+
if (state) {
|
978
|
+
this.eventRenderer.hideByHash(state.affectedInstances);
|
979
|
+
this.fillRenderer.renderSegs('highlight', state.segs);
|
980
|
+
this.mirrorRenderer.renderSegs(state.segs, { isResizing: true, sourceSeg: state.sourceSeg });
|
981
|
+
}
|
982
|
+
};
|
983
|
+
DayGrid.prototype._unrenderEventResize = function (state) {
|
984
|
+
if (state) {
|
985
|
+
this.eventRenderer.showByHash(state.affectedInstances);
|
986
|
+
this.fillRenderer.unrender('highlight');
|
987
|
+
this.mirrorRenderer.unrender(state.segs, { isResizing: true, sourceSeg: state.sourceSeg });
|
988
|
+
}
|
989
|
+
};
|
990
|
+
/* More+ Link Popover
|
991
|
+
------------------------------------------------------------------------------------------------------------------*/
|
992
|
+
DayGrid.prototype.removeSegPopover = function () {
|
993
|
+
if (this.segPopover) {
|
994
|
+
this.segPopover.hide(); // in handler, will call segPopover's removeElement
|
995
|
+
}
|
996
|
+
};
|
997
|
+
// Limits the number of "levels" (vertically stacking layers of events) for each row of the grid.
|
998
|
+
// `levelLimit` can be false (don't limit), a number, or true (should be computed).
|
999
|
+
DayGrid.prototype.limitRows = function (levelLimit) {
|
1000
|
+
var rowStructs = this.eventRenderer.rowStructs || [];
|
1001
|
+
var row; // row #
|
1002
|
+
var rowLevelLimit;
|
1003
|
+
for (row = 0; row < rowStructs.length; row++) {
|
1004
|
+
this.unlimitRow(row);
|
1005
|
+
if (!levelLimit) {
|
1006
|
+
rowLevelLimit = false;
|
1007
|
+
}
|
1008
|
+
else if (typeof levelLimit === 'number') {
|
1009
|
+
rowLevelLimit = levelLimit;
|
1010
|
+
}
|
1011
|
+
else {
|
1012
|
+
rowLevelLimit = this.computeRowLevelLimit(row);
|
1013
|
+
}
|
1014
|
+
if (rowLevelLimit !== false) {
|
1015
|
+
this.limitRow(row, rowLevelLimit);
|
1016
|
+
}
|
1017
|
+
}
|
1018
|
+
};
|
1019
|
+
// Computes the number of levels a row will accomodate without going outside its bounds.
|
1020
|
+
// Assumes the row is "rigid" (maintains a constant height regardless of what is inside).
|
1021
|
+
// `row` is the row number.
|
1022
|
+
DayGrid.prototype.computeRowLevelLimit = function (row) {
|
1023
|
+
var rowEl = this.rowEls[row]; // the containing "fake" row div
|
1024
|
+
var rowBottom = rowEl.getBoundingClientRect().bottom; // relative to viewport!
|
1025
|
+
var trEls = core.findChildren(this.eventRenderer.rowStructs[row].tbodyEl);
|
1026
|
+
var i;
|
1027
|
+
var trEl;
|
1028
|
+
// Reveal one level <tr> at a time and stop when we find one out of bounds
|
1029
|
+
for (i = 0; i < trEls.length; i++) {
|
1030
|
+
trEl = trEls[i];
|
1031
|
+
trEl.classList.remove('fc-limited'); // reset to original state (reveal)
|
1032
|
+
if (trEl.getBoundingClientRect().bottom > rowBottom) {
|
1033
|
+
return i;
|
1034
|
+
}
|
1035
|
+
}
|
1036
|
+
return false; // should not limit at all
|
1037
|
+
};
|
1038
|
+
// Limits the given grid row to the maximum number of levels and injects "more" links if necessary.
|
1039
|
+
// `row` is the row number.
|
1040
|
+
// `levelLimit` is a number for the maximum (inclusive) number of levels allowed.
|
1041
|
+
DayGrid.prototype.limitRow = function (row, levelLimit) {
|
1042
|
+
var _this = this;
|
1043
|
+
var _a = this, colCnt = _a.colCnt, isRtl = _a.isRtl;
|
1044
|
+
var rowStruct = this.eventRenderer.rowStructs[row];
|
1045
|
+
var moreNodes = []; // array of "more" <a> links and <td> DOM nodes
|
1046
|
+
var col = 0; // col #, left-to-right (not chronologically)
|
1047
|
+
var levelSegs; // array of segment objects in the last allowable level, ordered left-to-right
|
1048
|
+
var cellMatrix; // a matrix (by level, then column) of all <td> elements in the row
|
1049
|
+
var limitedNodes; // array of temporarily hidden level <tr> and segment <td> DOM nodes
|
1050
|
+
var i;
|
1051
|
+
var seg;
|
1052
|
+
var segsBelow; // array of segment objects below `seg` in the current `col`
|
1053
|
+
var totalSegsBelow; // total number of segments below `seg` in any of the columns `seg` occupies
|
1054
|
+
var colSegsBelow; // array of segment arrays, below seg, one for each column (offset from segs's first column)
|
1055
|
+
var td;
|
1056
|
+
var rowSpan;
|
1057
|
+
var segMoreNodes; // array of "more" <td> cells that will stand-in for the current seg's cell
|
1058
|
+
var j;
|
1059
|
+
var moreTd;
|
1060
|
+
var moreWrap;
|
1061
|
+
var moreLink;
|
1062
|
+
// Iterates through empty level cells and places "more" links inside if need be
|
1063
|
+
var emptyCellsUntil = function (endCol) {
|
1064
|
+
while (col < endCol) {
|
1065
|
+
segsBelow = _this.getCellSegs(row, col, levelLimit);
|
1066
|
+
if (segsBelow.length) {
|
1067
|
+
td = cellMatrix[levelLimit - 1][col];
|
1068
|
+
moreLink = _this.renderMoreLink(row, col, segsBelow);
|
1069
|
+
moreWrap = core.createElement('div', null, moreLink);
|
1070
|
+
td.appendChild(moreWrap);
|
1071
|
+
moreNodes.push(moreWrap[0]);
|
1072
|
+
}
|
1073
|
+
col++;
|
1074
|
+
}
|
1075
|
+
};
|
1076
|
+
if (levelLimit && levelLimit < rowStruct.segLevels.length) { // is it actually over the limit?
|
1077
|
+
levelSegs = rowStruct.segLevels[levelLimit - 1];
|
1078
|
+
cellMatrix = rowStruct.cellMatrix;
|
1079
|
+
limitedNodes = core.findChildren(rowStruct.tbodyEl).slice(levelLimit); // get level <tr> elements past the limit
|
1080
|
+
limitedNodes.forEach(function (node) {
|
1081
|
+
node.classList.add('fc-limited'); // hide elements and get a simple DOM-nodes array
|
1082
|
+
});
|
1083
|
+
// iterate though segments in the last allowable level
|
1084
|
+
for (i = 0; i < levelSegs.length; i++) {
|
1085
|
+
seg = levelSegs[i];
|
1086
|
+
var leftCol = isRtl ? (colCnt - 1 - seg.lastCol) : seg.firstCol;
|
1087
|
+
var rightCol = isRtl ? (colCnt - 1 - seg.firstCol) : seg.lastCol;
|
1088
|
+
emptyCellsUntil(leftCol); // process empty cells before the segment
|
1089
|
+
// determine *all* segments below `seg` that occupy the same columns
|
1090
|
+
colSegsBelow = [];
|
1091
|
+
totalSegsBelow = 0;
|
1092
|
+
while (col <= rightCol) {
|
1093
|
+
segsBelow = this.getCellSegs(row, col, levelLimit);
|
1094
|
+
colSegsBelow.push(segsBelow);
|
1095
|
+
totalSegsBelow += segsBelow.length;
|
1096
|
+
col++;
|
1097
|
+
}
|
1098
|
+
if (totalSegsBelow) { // do we need to replace this segment with one or many "more" links?
|
1099
|
+
td = cellMatrix[levelLimit - 1][leftCol]; // the segment's parent cell
|
1100
|
+
rowSpan = td.rowSpan || 1;
|
1101
|
+
segMoreNodes = [];
|
1102
|
+
// make a replacement <td> for each column the segment occupies. will be one for each colspan
|
1103
|
+
for (j = 0; j < colSegsBelow.length; j++) {
|
1104
|
+
moreTd = core.createElement('td', { className: 'fc-more-cell', rowSpan: rowSpan });
|
1105
|
+
segsBelow = colSegsBelow[j];
|
1106
|
+
moreLink = this.renderMoreLink(row, leftCol + j, [seg].concat(segsBelow) // count seg as hidden too
|
1107
|
+
);
|
1108
|
+
moreWrap = core.createElement('div', null, moreLink);
|
1109
|
+
moreTd.appendChild(moreWrap);
|
1110
|
+
segMoreNodes.push(moreTd);
|
1111
|
+
moreNodes.push(moreTd);
|
1112
|
+
}
|
1113
|
+
td.classList.add('fc-limited');
|
1114
|
+
core.insertAfterElement(td, segMoreNodes);
|
1115
|
+
limitedNodes.push(td);
|
1116
|
+
}
|
1117
|
+
}
|
1118
|
+
emptyCellsUntil(this.colCnt); // finish off the level
|
1119
|
+
rowStruct.moreEls = moreNodes; // for easy undoing later
|
1120
|
+
rowStruct.limitedEls = limitedNodes; // for easy undoing later
|
1121
|
+
}
|
1122
|
+
};
|
1123
|
+
// Reveals all levels and removes all "more"-related elements for a grid's row.
|
1124
|
+
// `row` is a row number.
|
1125
|
+
DayGrid.prototype.unlimitRow = function (row) {
|
1126
|
+
var rowStruct = this.eventRenderer.rowStructs[row];
|
1127
|
+
if (rowStruct.moreEls) {
|
1128
|
+
rowStruct.moreEls.forEach(core.removeElement);
|
1129
|
+
rowStruct.moreEls = null;
|
1130
|
+
}
|
1131
|
+
if (rowStruct.limitedEls) {
|
1132
|
+
rowStruct.limitedEls.forEach(function (limitedEl) {
|
1133
|
+
limitedEl.classList.remove('fc-limited');
|
1134
|
+
});
|
1135
|
+
rowStruct.limitedEls = null;
|
1136
|
+
}
|
1137
|
+
};
|
1138
|
+
// Renders an <a> element that represents hidden event element for a cell.
|
1139
|
+
// Responsible for attaching click handler as well.
|
1140
|
+
DayGrid.prototype.renderMoreLink = function (row, col, hiddenSegs) {
|
1141
|
+
var _this = this;
|
1142
|
+
var _a = this, view = _a.view, dateEnv = _a.dateEnv;
|
1143
|
+
var a = core.createElement('a', { className: 'fc-more' });
|
1144
|
+
a.innerText = this.getMoreLinkText(hiddenSegs.length);
|
1145
|
+
a.addEventListener('click', function (ev) {
|
1146
|
+
var clickOption = _this.opt('eventLimitClick');
|
1147
|
+
var _col = _this.isRtl ? _this.colCnt - col - 1 : col; // HACK: props.cells has different dir system?
|
1148
|
+
var date = _this.props.cells[row][_col].date;
|
1149
|
+
var moreEl = ev.currentTarget;
|
1150
|
+
var dayEl = _this.getCellEl(row, col);
|
1151
|
+
var allSegs = _this.getCellSegs(row, col);
|
1152
|
+
// rescope the segments to be within the cell's date
|
1153
|
+
var reslicedAllSegs = _this.resliceDaySegs(allSegs, date);
|
1154
|
+
var reslicedHiddenSegs = _this.resliceDaySegs(hiddenSegs, date);
|
1155
|
+
if (typeof clickOption === 'function') {
|
1156
|
+
// the returned value can be an atomic option
|
1157
|
+
clickOption = _this.publiclyTrigger('eventLimitClick', [
|
1158
|
+
{
|
1159
|
+
date: dateEnv.toDate(date),
|
1160
|
+
allDay: true,
|
1161
|
+
dayEl: dayEl,
|
1162
|
+
moreEl: moreEl,
|
1163
|
+
segs: reslicedAllSegs,
|
1164
|
+
hiddenSegs: reslicedHiddenSegs,
|
1165
|
+
jsEvent: ev,
|
1166
|
+
view: view
|
1167
|
+
}
|
1168
|
+
]);
|
1169
|
+
}
|
1170
|
+
if (clickOption === 'popover') {
|
1171
|
+
_this.showSegPopover(row, col, moreEl, reslicedAllSegs);
|
1172
|
+
}
|
1173
|
+
else if (typeof clickOption === 'string') { // a view name
|
1174
|
+
view.calendar.zoomTo(date, clickOption);
|
1175
|
+
}
|
1176
|
+
});
|
1177
|
+
return a;
|
1178
|
+
};
|
1179
|
+
// Reveals the popover that displays all events within a cell
|
1180
|
+
DayGrid.prototype.showSegPopover = function (row, col, moreLink, segs) {
|
1181
|
+
var _this = this;
|
1182
|
+
var _a = this, calendar = _a.calendar, view = _a.view, theme = _a.theme;
|
1183
|
+
var _col = this.isRtl ? this.colCnt - col - 1 : col; // HACK: props.cells has different dir system?
|
1184
|
+
var moreWrap = moreLink.parentNode; // the <div> wrapper around the <a>
|
1185
|
+
var topEl; // the element we want to match the top coordinate of
|
1186
|
+
var options;
|
1187
|
+
if (this.rowCnt === 1) {
|
1188
|
+
topEl = view.el; // will cause the popover to cover any sort of header
|
1189
|
+
}
|
1190
|
+
else {
|
1191
|
+
topEl = this.rowEls[row]; // will align with top of row
|
1192
|
+
}
|
1193
|
+
options = {
|
1194
|
+
className: 'fc-more-popover ' + theme.getClass('popover'),
|
1195
|
+
parentEl: view.el,
|
1196
|
+
top: core.computeRect(topEl).top,
|
1197
|
+
autoHide: true,
|
1198
|
+
content: function (el) {
|
1199
|
+
_this.segPopoverTile = new DayTile(_this.context, el);
|
1200
|
+
_this.updateSegPopoverTile(_this.props.cells[row][_col].date, segs);
|
1201
|
+
},
|
1202
|
+
hide: function () {
|
1203
|
+
_this.segPopoverTile.destroy();
|
1204
|
+
_this.segPopoverTile = null;
|
1205
|
+
_this.segPopover.destroy();
|
1206
|
+
_this.segPopover = null;
|
1207
|
+
}
|
1208
|
+
};
|
1209
|
+
// Determine horizontal coordinate.
|
1210
|
+
// We use the moreWrap instead of the <td> to avoid border confusion.
|
1211
|
+
if (this.isRtl) {
|
1212
|
+
options.right = core.computeRect(moreWrap).right + 1; // +1 to be over cell border
|
1213
|
+
}
|
1214
|
+
else {
|
1215
|
+
options.left = core.computeRect(moreWrap).left - 1; // -1 to be over cell border
|
1216
|
+
}
|
1217
|
+
this.segPopover = new Popover(options);
|
1218
|
+
this.segPopover.show();
|
1219
|
+
calendar.releaseAfterSizingTriggers(); // hack for eventPositioned
|
1220
|
+
};
|
1221
|
+
// Given the events within an array of segment objects, reslice them to be in a single day
|
1222
|
+
DayGrid.prototype.resliceDaySegs = function (segs, dayDate) {
|
1223
|
+
var dayStart = dayDate;
|
1224
|
+
var dayEnd = core.addDays(dayStart, 1);
|
1225
|
+
var dayRange = { start: dayStart, end: dayEnd };
|
1226
|
+
var newSegs = [];
|
1227
|
+
for (var _i = 0, segs_1 = segs; _i < segs_1.length; _i++) {
|
1228
|
+
var seg = segs_1[_i];
|
1229
|
+
var eventRange = seg.eventRange;
|
1230
|
+
var origRange = eventRange.range;
|
1231
|
+
var slicedRange = core.intersectRanges(origRange, dayRange);
|
1232
|
+
if (slicedRange) {
|
1233
|
+
newSegs.push(__assign({}, seg, { eventRange: {
|
1234
|
+
def: eventRange.def,
|
1235
|
+
ui: __assign({}, eventRange.ui, { durationEditable: false }),
|
1236
|
+
instance: eventRange.instance,
|
1237
|
+
range: slicedRange
|
1238
|
+
}, isStart: seg.isStart && slicedRange.start.valueOf() === origRange.start.valueOf(), isEnd: seg.isEnd && slicedRange.end.valueOf() === origRange.end.valueOf() }));
|
1239
|
+
}
|
1240
|
+
}
|
1241
|
+
return newSegs;
|
1242
|
+
};
|
1243
|
+
// Generates the text that should be inside a "more" link, given the number of events it represents
|
1244
|
+
DayGrid.prototype.getMoreLinkText = function (num) {
|
1245
|
+
var opt = this.opt('eventLimitText');
|
1246
|
+
if (typeof opt === 'function') {
|
1247
|
+
return opt(num);
|
1248
|
+
}
|
1249
|
+
else {
|
1250
|
+
return '+' + num + ' ' + opt;
|
1251
|
+
}
|
1252
|
+
};
|
1253
|
+
// Returns segments within a given cell.
|
1254
|
+
// If `startLevel` is specified, returns only events including and below that level. Otherwise returns all segs.
|
1255
|
+
DayGrid.prototype.getCellSegs = function (row, col, startLevel) {
|
1256
|
+
var segMatrix = this.eventRenderer.rowStructs[row].segMatrix;
|
1257
|
+
var level = startLevel || 0;
|
1258
|
+
var segs = [];
|
1259
|
+
var seg;
|
1260
|
+
while (level < segMatrix.length) {
|
1261
|
+
seg = segMatrix[level][col];
|
1262
|
+
if (seg) {
|
1263
|
+
segs.push(seg);
|
1264
|
+
}
|
1265
|
+
level++;
|
1266
|
+
}
|
1267
|
+
return segs;
|
1268
|
+
};
|
1269
|
+
return DayGrid;
|
1270
|
+
}(core.DateComponent));
|
1271
|
+
|
1272
|
+
var WEEK_NUM_FORMAT$1 = core.createFormatter({ week: 'numeric' });
|
1273
|
+
/* An abstract class for the daygrid views, as well as month view. Renders one or more rows of day cells.
|
1274
|
+
----------------------------------------------------------------------------------------------------------------------*/
|
1275
|
+
// It is a manager for a DayGrid subcomponent, which does most of the heavy lifting.
|
1276
|
+
// It is responsible for managing width/height.
|
1277
|
+
var DayGridView = /** @class */ (function (_super) {
|
1278
|
+
__extends(DayGridView, _super);
|
1279
|
+
function DayGridView(context, viewSpec, dateProfileGenerator, parentEl) {
|
1280
|
+
var _this = _super.call(this, context, viewSpec, dateProfileGenerator, parentEl) || this;
|
1281
|
+
/* Header Rendering
|
1282
|
+
------------------------------------------------------------------------------------------------------------------*/
|
1283
|
+
// Generates the HTML that will go before the day-of week header cells
|
1284
|
+
_this.renderHeadIntroHtml = function () {
|
1285
|
+
var theme = _this.theme;
|
1286
|
+
if (_this.colWeekNumbersVisible) {
|
1287
|
+
return '' +
|
1288
|
+
'<th class="fc-week-number ' + theme.getClass('widgetHeader') + '" ' + _this.weekNumberStyleAttr() + '>' +
|
1289
|
+
'<span>' + // needed for matchCellWidths
|
1290
|
+
core.htmlEscape(_this.opt('weekLabel')) +
|
1291
|
+
'</span>' +
|
1292
|
+
'</th>';
|
1293
|
+
}
|
1294
|
+
return '';
|
1295
|
+
};
|
1296
|
+
/* Day Grid Rendering
|
1297
|
+
------------------------------------------------------------------------------------------------------------------*/
|
1298
|
+
// Generates the HTML that will go before content-skeleton cells that display the day/week numbers
|
1299
|
+
_this.renderDayGridNumberIntroHtml = function (row, dayGrid) {
|
1300
|
+
var dateEnv = _this.dateEnv;
|
1301
|
+
var weekStart = dayGrid.props.cells[row][0].date;
|
1302
|
+
if (_this.colWeekNumbersVisible) {
|
1303
|
+
return '' +
|
1304
|
+
'<td class="fc-week-number" ' + _this.weekNumberStyleAttr() + '>' +
|
1305
|
+
core.buildGotoAnchorHtml(// aside from link, important for matchCellWidths
|
1306
|
+
_this, { date: weekStart, type: 'week', forceOff: dayGrid.colCnt === 1 }, dateEnv.format(weekStart, WEEK_NUM_FORMAT$1) // inner HTML
|
1307
|
+
) +
|
1308
|
+
'</td>';
|
1309
|
+
}
|
1310
|
+
return '';
|
1311
|
+
};
|
1312
|
+
// Generates the HTML that goes before the day bg cells for each day-row
|
1313
|
+
_this.renderDayGridBgIntroHtml = function () {
|
1314
|
+
var theme = _this.theme;
|
1315
|
+
if (_this.colWeekNumbersVisible) {
|
1316
|
+
return '<td class="fc-week-number ' + theme.getClass('widgetContent') + '" ' + _this.weekNumberStyleAttr() + '></td>';
|
1317
|
+
}
|
1318
|
+
return '';
|
1319
|
+
};
|
1320
|
+
// Generates the HTML that goes before every other type of row generated by DayGrid.
|
1321
|
+
// Affects mirror-skeleton and highlight-skeleton rows.
|
1322
|
+
_this.renderDayGridIntroHtml = function () {
|
1323
|
+
if (_this.colWeekNumbersVisible) {
|
1324
|
+
return '<td class="fc-week-number" ' + _this.weekNumberStyleAttr() + '></td>';
|
1325
|
+
}
|
1326
|
+
return '';
|
1327
|
+
};
|
1328
|
+
_this.el.classList.add('fc-dayGrid-view');
|
1329
|
+
_this.el.innerHTML = _this.renderSkeletonHtml();
|
1330
|
+
_this.scroller = new core.ScrollComponent('hidden', // overflow x
|
1331
|
+
'auto' // overflow y
|
1332
|
+
);
|
1333
|
+
var dayGridContainerEl = _this.scroller.el;
|
1334
|
+
_this.el.querySelector('.fc-body > tr > td').appendChild(dayGridContainerEl);
|
1335
|
+
dayGridContainerEl.classList.add('fc-day-grid-container');
|
1336
|
+
var dayGridEl = core.createElement('div', { className: 'fc-day-grid' });
|
1337
|
+
dayGridContainerEl.appendChild(dayGridEl);
|
1338
|
+
var cellWeekNumbersVisible;
|
1339
|
+
if (_this.opt('weekNumbers')) {
|
1340
|
+
if (_this.opt('weekNumbersWithinDays')) {
|
1341
|
+
cellWeekNumbersVisible = true;
|
1342
|
+
_this.colWeekNumbersVisible = false;
|
1343
|
+
}
|
1344
|
+
else {
|
1345
|
+
cellWeekNumbersVisible = false;
|
1346
|
+
_this.colWeekNumbersVisible = true;
|
1347
|
+
}
|
1348
|
+
}
|
1349
|
+
else {
|
1350
|
+
_this.colWeekNumbersVisible = false;
|
1351
|
+
cellWeekNumbersVisible = false;
|
1352
|
+
}
|
1353
|
+
_this.dayGrid = new DayGrid(_this.context, dayGridEl, {
|
1354
|
+
renderNumberIntroHtml: _this.renderDayGridNumberIntroHtml,
|
1355
|
+
renderBgIntroHtml: _this.renderDayGridBgIntroHtml,
|
1356
|
+
renderIntroHtml: _this.renderDayGridIntroHtml,
|
1357
|
+
colWeekNumbersVisible: _this.colWeekNumbersVisible,
|
1358
|
+
cellWeekNumbersVisible: cellWeekNumbersVisible
|
1359
|
+
});
|
1360
|
+
return _this;
|
1361
|
+
}
|
1362
|
+
DayGridView.prototype.destroy = function () {
|
1363
|
+
_super.prototype.destroy.call(this);
|
1364
|
+
this.dayGrid.destroy();
|
1365
|
+
this.scroller.destroy();
|
1366
|
+
};
|
1367
|
+
// Builds the HTML skeleton for the view.
|
1368
|
+
// The day-grid component will render inside of a container defined by this HTML.
|
1369
|
+
DayGridView.prototype.renderSkeletonHtml = function () {
|
1370
|
+
var theme = this.theme;
|
1371
|
+
return '' +
|
1372
|
+
'<table class="' + theme.getClass('tableGrid') + '">' +
|
1373
|
+
(this.opt('columnHeader') ?
|
1374
|
+
'<thead class="fc-head">' +
|
1375
|
+
'<tr>' +
|
1376
|
+
'<td class="fc-head-container ' + theme.getClass('widgetHeader') + '"> </td>' +
|
1377
|
+
'</tr>' +
|
1378
|
+
'</thead>' :
|
1379
|
+
'') +
|
1380
|
+
'<tbody class="fc-body">' +
|
1381
|
+
'<tr>' +
|
1382
|
+
'<td class="' + theme.getClass('widgetContent') + '"></td>' +
|
1383
|
+
'</tr>' +
|
1384
|
+
'</tbody>' +
|
1385
|
+
'</table>';
|
1386
|
+
};
|
1387
|
+
// Generates an HTML attribute string for setting the width of the week number column, if it is known
|
1388
|
+
DayGridView.prototype.weekNumberStyleAttr = function () {
|
1389
|
+
if (this.weekNumberWidth != null) {
|
1390
|
+
return 'style="width:' + this.weekNumberWidth + 'px"';
|
1391
|
+
}
|
1392
|
+
return '';
|
1393
|
+
};
|
1394
|
+
// Determines whether each row should have a constant height
|
1395
|
+
DayGridView.prototype.hasRigidRows = function () {
|
1396
|
+
var eventLimit = this.opt('eventLimit');
|
1397
|
+
return eventLimit && typeof eventLimit !== 'number';
|
1398
|
+
};
|
1399
|
+
/* Dimensions
|
1400
|
+
------------------------------------------------------------------------------------------------------------------*/
|
1401
|
+
DayGridView.prototype.updateSize = function (isResize, viewHeight, isAuto) {
|
1402
|
+
_super.prototype.updateSize.call(this, isResize, viewHeight, isAuto); // will call updateBaseSize. important that executes first
|
1403
|
+
this.dayGrid.updateSize(isResize);
|
1404
|
+
};
|
1405
|
+
// Refreshes the horizontal dimensions of the view
|
1406
|
+
DayGridView.prototype.updateBaseSize = function (isResize, viewHeight, isAuto) {
|
1407
|
+
var dayGrid = this.dayGrid;
|
1408
|
+
var eventLimit = this.opt('eventLimit');
|
1409
|
+
var headRowEl = this.header ? this.header.el : null; // HACK
|
1410
|
+
var scrollerHeight;
|
1411
|
+
var scrollbarWidths;
|
1412
|
+
// hack to give the view some height prior to dayGrid's columns being rendered
|
1413
|
+
// TODO: separate setting height from scroller VS dayGrid.
|
1414
|
+
if (!dayGrid.rowEls) {
|
1415
|
+
if (!isAuto) {
|
1416
|
+
scrollerHeight = this.computeScrollerHeight(viewHeight);
|
1417
|
+
this.scroller.setHeight(scrollerHeight);
|
1418
|
+
}
|
1419
|
+
return;
|
1420
|
+
}
|
1421
|
+
if (this.colWeekNumbersVisible) {
|
1422
|
+
// Make sure all week number cells running down the side have the same width.
|
1423
|
+
this.weekNumberWidth = core.matchCellWidths(core.findElements(this.el, '.fc-week-number'));
|
1424
|
+
}
|
1425
|
+
// reset all heights to be natural
|
1426
|
+
this.scroller.clear();
|
1427
|
+
if (headRowEl) {
|
1428
|
+
core.uncompensateScroll(headRowEl);
|
1429
|
+
}
|
1430
|
+
dayGrid.removeSegPopover(); // kill the "more" popover if displayed
|
1431
|
+
// is the event limit a constant level number?
|
1432
|
+
if (eventLimit && typeof eventLimit === 'number') {
|
1433
|
+
dayGrid.limitRows(eventLimit); // limit the levels first so the height can redistribute after
|
1434
|
+
}
|
1435
|
+
// distribute the height to the rows
|
1436
|
+
// (viewHeight is a "recommended" value if isAuto)
|
1437
|
+
scrollerHeight = this.computeScrollerHeight(viewHeight);
|
1438
|
+
this.setGridHeight(scrollerHeight, isAuto);
|
1439
|
+
// is the event limit dynamically calculated?
|
1440
|
+
if (eventLimit && typeof eventLimit !== 'number') {
|
1441
|
+
dayGrid.limitRows(eventLimit); // limit the levels after the grid's row heights have been set
|
1442
|
+
}
|
1443
|
+
if (!isAuto) { // should we force dimensions of the scroll container?
|
1444
|
+
this.scroller.setHeight(scrollerHeight);
|
1445
|
+
scrollbarWidths = this.scroller.getScrollbarWidths();
|
1446
|
+
if (scrollbarWidths.left || scrollbarWidths.right) { // using scrollbars?
|
1447
|
+
if (headRowEl) {
|
1448
|
+
core.compensateScroll(headRowEl, scrollbarWidths);
|
1449
|
+
}
|
1450
|
+
// doing the scrollbar compensation might have created text overflow which created more height. redo
|
1451
|
+
scrollerHeight = this.computeScrollerHeight(viewHeight);
|
1452
|
+
this.scroller.setHeight(scrollerHeight);
|
1453
|
+
}
|
1454
|
+
// guarantees the same scrollbar widths
|
1455
|
+
this.scroller.lockOverflow(scrollbarWidths);
|
1456
|
+
}
|
1457
|
+
};
|
1458
|
+
// given a desired total height of the view, returns what the height of the scroller should be
|
1459
|
+
DayGridView.prototype.computeScrollerHeight = function (viewHeight) {
|
1460
|
+
return viewHeight -
|
1461
|
+
core.subtractInnerElHeight(this.el, this.scroller.el); // everything that's NOT the scroller
|
1462
|
+
};
|
1463
|
+
// Sets the height of just the DayGrid component in this view
|
1464
|
+
DayGridView.prototype.setGridHeight = function (height, isAuto) {
|
1465
|
+
if (this.opt('monthMode')) {
|
1466
|
+
// if auto, make the height of each row the height that it would be if there were 6 weeks
|
1467
|
+
if (isAuto) {
|
1468
|
+
height *= this.dayGrid.rowCnt / 6;
|
1469
|
+
}
|
1470
|
+
core.distributeHeight(this.dayGrid.rowEls, height, !isAuto); // if auto, don't compensate for height-hogging rows
|
1471
|
+
}
|
1472
|
+
else {
|
1473
|
+
if (isAuto) {
|
1474
|
+
core.undistributeHeight(this.dayGrid.rowEls); // let the rows be their natural height with no expanding
|
1475
|
+
}
|
1476
|
+
else {
|
1477
|
+
core.distributeHeight(this.dayGrid.rowEls, height, true); // true = compensate for height-hogging rows
|
1478
|
+
}
|
1479
|
+
}
|
1480
|
+
};
|
1481
|
+
/* Scroll
|
1482
|
+
------------------------------------------------------------------------------------------------------------------*/
|
1483
|
+
DayGridView.prototype.computeInitialDateScroll = function () {
|
1484
|
+
return { top: 0 };
|
1485
|
+
};
|
1486
|
+
DayGridView.prototype.queryDateScroll = function () {
|
1487
|
+
return { top: this.scroller.getScrollTop() };
|
1488
|
+
};
|
1489
|
+
DayGridView.prototype.applyDateScroll = function (scroll) {
|
1490
|
+
if (scroll.top !== undefined) {
|
1491
|
+
this.scroller.setScrollTop(scroll.top);
|
1492
|
+
}
|
1493
|
+
};
|
1494
|
+
return DayGridView;
|
1495
|
+
}(core.View));
|
1496
|
+
DayGridView.prototype.dateProfileGeneratorClass = DayGridDateProfileGenerator;
|
1497
|
+
|
1498
|
+
var SimpleDayGrid = /** @class */ (function (_super) {
|
1499
|
+
__extends(SimpleDayGrid, _super);
|
1500
|
+
function SimpleDayGrid(context, dayGrid) {
|
1501
|
+
var _this = _super.call(this, context, dayGrid.el) || this;
|
1502
|
+
_this.slicer = new DayGridSlicer();
|
1503
|
+
_this.dayGrid = dayGrid;
|
1504
|
+
context.calendar.registerInteractiveComponent(_this, { el: _this.dayGrid.el });
|
1505
|
+
return _this;
|
1506
|
+
}
|
1507
|
+
SimpleDayGrid.prototype.destroy = function () {
|
1508
|
+
_super.prototype.destroy.call(this);
|
1509
|
+
this.calendar.unregisterInteractiveComponent(this);
|
1510
|
+
};
|
1511
|
+
SimpleDayGrid.prototype.render = function (props) {
|
1512
|
+
var dayGrid = this.dayGrid;
|
1513
|
+
var dateProfile = props.dateProfile, dayTable = props.dayTable;
|
1514
|
+
dayGrid.receiveProps(__assign({}, this.slicer.sliceProps(props, dateProfile, props.nextDayThreshold, dayGrid, dayTable), { dateProfile: dateProfile, cells: dayTable.cells, isRigid: props.isRigid }));
|
1515
|
+
};
|
1516
|
+
SimpleDayGrid.prototype.queryHit = function (positionLeft, positionTop) {
|
1517
|
+
var rawHit = this.dayGrid.positionToHit(positionLeft, positionTop);
|
1518
|
+
if (rawHit) {
|
1519
|
+
return {
|
1520
|
+
component: this.dayGrid,
|
1521
|
+
dateSpan: rawHit.dateSpan,
|
1522
|
+
dayEl: rawHit.dayEl,
|
1523
|
+
rect: {
|
1524
|
+
left: rawHit.relativeRect.left,
|
1525
|
+
right: rawHit.relativeRect.right,
|
1526
|
+
top: rawHit.relativeRect.top,
|
1527
|
+
bottom: rawHit.relativeRect.bottom
|
1528
|
+
},
|
1529
|
+
layer: 0
|
1530
|
+
};
|
1531
|
+
}
|
1532
|
+
};
|
1533
|
+
return SimpleDayGrid;
|
1534
|
+
}(core.DateComponent));
|
1535
|
+
var DayGridSlicer = /** @class */ (function (_super) {
|
1536
|
+
__extends(DayGridSlicer, _super);
|
1537
|
+
function DayGridSlicer() {
|
1538
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
1539
|
+
}
|
1540
|
+
DayGridSlicer.prototype.sliceRange = function (dateRange, dayTable) {
|
1541
|
+
return dayTable.sliceRange(dateRange);
|
1542
|
+
};
|
1543
|
+
return DayGridSlicer;
|
1544
|
+
}(core.Slicer));
|
1545
|
+
|
1546
|
+
var DayGridView$1 = /** @class */ (function (_super) {
|
1547
|
+
__extends(DayGridView, _super);
|
1548
|
+
function DayGridView(_context, viewSpec, dateProfileGenerator, parentEl) {
|
1549
|
+
var _this = _super.call(this, _context, viewSpec, dateProfileGenerator, parentEl) || this;
|
1550
|
+
_this.buildDayTable = core.memoize(buildDayTable);
|
1551
|
+
if (_this.opt('columnHeader')) {
|
1552
|
+
_this.header = new core.DayHeader(_this.context, _this.el.querySelector('.fc-head-container'));
|
1553
|
+
}
|
1554
|
+
_this.simpleDayGrid = new SimpleDayGrid(_this.context, _this.dayGrid);
|
1555
|
+
return _this;
|
1556
|
+
}
|
1557
|
+
DayGridView.prototype.destroy = function () {
|
1558
|
+
_super.prototype.destroy.call(this);
|
1559
|
+
if (this.header) {
|
1560
|
+
this.header.destroy();
|
1561
|
+
}
|
1562
|
+
this.simpleDayGrid.destroy();
|
1563
|
+
};
|
1564
|
+
DayGridView.prototype.render = function (props) {
|
1565
|
+
_super.prototype.render.call(this, props);
|
1566
|
+
var dateProfile = this.props.dateProfile;
|
1567
|
+
var dayTable = this.dayTable =
|
1568
|
+
this.buildDayTable(dateProfile, this.dateProfileGenerator);
|
1569
|
+
if (this.header) {
|
1570
|
+
this.header.receiveProps({
|
1571
|
+
dateProfile: dateProfile,
|
1572
|
+
dates: dayTable.headerDates,
|
1573
|
+
datesRepDistinctDays: dayTable.rowCnt === 1,
|
1574
|
+
renderIntroHtml: this.renderHeadIntroHtml
|
1575
|
+
});
|
1576
|
+
}
|
1577
|
+
this.simpleDayGrid.receiveProps({
|
1578
|
+
dateProfile: dateProfile,
|
1579
|
+
dayTable: dayTable,
|
1580
|
+
businessHours: props.businessHours,
|
1581
|
+
dateSelection: props.dateSelection,
|
1582
|
+
eventStore: props.eventStore,
|
1583
|
+
eventUiBases: props.eventUiBases,
|
1584
|
+
eventSelection: props.eventSelection,
|
1585
|
+
eventDrag: props.eventDrag,
|
1586
|
+
eventResize: props.eventResize,
|
1587
|
+
isRigid: this.hasRigidRows(),
|
1588
|
+
nextDayThreshold: this.nextDayThreshold
|
1589
|
+
});
|
1590
|
+
};
|
1591
|
+
return DayGridView;
|
1592
|
+
}(DayGridView));
|
1593
|
+
function buildDayTable(dateProfile, dateProfileGenerator) {
|
1594
|
+
var daySeries = new core.DaySeries(dateProfile.renderRange, dateProfileGenerator);
|
1595
|
+
return new core.DayTable(daySeries, /year|month|week/.test(dateProfile.currentRangeUnit));
|
1596
|
+
}
|
1597
|
+
|
1598
|
+
var main = core.createPlugin({
|
1599
|
+
defaultView: 'dayGridMonth',
|
1600
|
+
views: {
|
1601
|
+
dayGrid: DayGridView$1,
|
1602
|
+
dayGridDay: {
|
1603
|
+
type: 'dayGrid',
|
1604
|
+
duration: { days: 1 }
|
1605
|
+
},
|
1606
|
+
dayGridWeek: {
|
1607
|
+
type: 'dayGrid',
|
1608
|
+
duration: { weeks: 1 }
|
1609
|
+
},
|
1610
|
+
dayGridMonth: {
|
1611
|
+
type: 'dayGrid',
|
1612
|
+
duration: { months: 1 },
|
1613
|
+
monthMode: true,
|
1614
|
+
fixedWeekCount: true
|
1615
|
+
}
|
1616
|
+
}
|
1617
|
+
});
|
1618
|
+
|
1619
|
+
exports.AbstractDayGridView = DayGridView;
|
1620
|
+
exports.DayBgRow = DayBgRow;
|
1621
|
+
exports.DayGrid = DayGrid;
|
1622
|
+
exports.DayGridSlicer = DayGridSlicer;
|
1623
|
+
exports.DayGridView = DayGridView$1;
|
1624
|
+
exports.SimpleDayGrid = SimpleDayGrid;
|
1625
|
+
exports.buildBasicDayTable = buildDayTable;
|
1626
|
+
exports.default = main;
|
1627
|
+
|
1628
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
1629
|
+
|
1630
|
+
}));
|