@progress/kendo-angular-scheduler 3.0.2 → 3.0.3-dev.202203091424
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-angular-scheduler.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/fesm2015/index.js +1 -1
- package/dist/fesm5/index.js +1 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-angular-scheduler.js +1 -1
- package/package.json +2 -2
package/dist/cdn/main.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-date-math"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-intl"),require("rxjs"),require("@angular/forms"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-angular-dateinputs"),require("@angular/common"),require("@progress/kendo-angular-dropdowns"),require("@progress/kendo-data-query"),require("@progress/kendo-angular-dialog"),require("@progress/kendo-recurrence"),require("@progress/kendo-angular-popup"),require("@progress/kendo-licensing"),require("@telerik/kendo-draggable"),require("@progress/kendo-angular-inputs"),require("@progress/kendo-drawing"),require("@progress/kendo-file-saver")):"function"==typeof define&&define.amd?define([,,,,,,,,,,,,,,,,,,,,],t):"object"==typeof exports?exports.KendoAngularScheduler=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-date-math"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-intl"),require("rxjs"),require("@angular/forms"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-angular-dateinputs"),require("@angular/common"),require("@progress/kendo-angular-dropdowns"),require("@progress/kendo-data-query"),require("@progress/kendo-angular-dialog"),require("@progress/kendo-recurrence"),require("@progress/kendo-angular-popup"),require("@progress/kendo-licensing"),require("@telerik/kendo-draggable"),require("@progress/kendo-angular-inputs"),require("@progress/kendo-drawing"),require("@progress/kendo-file-saver")):e.KendoAngularScheduler=t(e.self,e.ng.core,e.KendoAngularL10N,e.KendoDateMath,e.KendoAngularCommon,e.KendoAngularIntl,e.rxjs,e.ng.forms,e.KendoAngularButtons,e.KendoAngularDateinputs,e.ng.common,e.KendoAngularDropdowns,e.KendoDataQuery,e.KendoAngularDialog,e.KendoRecurrence,e.KendoAngularPopup,e.KendoLicensing,e.KendoDraggable,e.KendoAngularInputs,e.KendoDrawing,e.KendoFileSaver)}(window,(function(e,t,n,r,i,o,s,a,c,u,l,d,p,h,f,m,y,v,g,_,b){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=104)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8),i=n(14),o=n(72),s=n(73),a=n(74);function c(e,n,r){t.setField(e,r,t.getField(n,r))}function u(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];Array.isArray(r)?t[n]=r.slice(0):!r||"object"!=typeof r||r instanceof Date?t[n]=r:(t[n]=t[n]||{},u(r,t[n]))}}function l(e){return r.fromEvent(e,"click")}t.capitalize=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.isPresent=function(e){return null!=e},t.isBlank=function(e){return null==e},t.isArray=function(e){return Array.isArray(e)},t.isTruthy=function(e){return!!e},t.isNullOrEmptyString=function(e){return t.isBlank(e)||e.trim&&0===e.trim().length},t.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},t.isString=function(e){return"string"==typeof e},t.isObject=function(e){return"object"==typeof e},t.isRecurring=function(e,t){var n=o.getter(t.recurrenceId)(e);return!(!o.getter(t.recurrenceRule)(e)&&!n)},t.isException=function(e,n){var r=o.getter(n.id)(e),i=o.getter(n.recurrenceId)(e);return t.isPresent(r)&&r!==a.OCCURRENCE_ID&&t.isPresent(i)},t.copyResources=function(e,t){if(t)for(var n=0;n<t.length;n++)c(e,e.dataItem,t[n].field)},t.readEvent=function(e,n,r){var i={id:o.getter(n.id)(e),start:o.getter(n.start)(e),startTimezone:o.getter(n.startTimezone)(e),end:o.getter(n.end)(e),endTimezone:o.getter(n.endTimezone)(e),isAllDay:o.getter(n.isAllDay)(e),title:o.getter(n.title)(e),description:o.getter(n.description)(e),recurrenceRule:o.getter(n.recurrenceRule)(e),recurrenceExceptions:o.getter(n.recurrenceExceptions)(e),recurrenceId:o.getter(n.recurrenceId)(e),dataItem:e};return t.copyResources(i,r),i},t.isRecurrenceMaster=function(e){return e.recurrenceRule&&!t.isPresent(e.recurrenceId)},t.groupResources=function(e,t){var n=[];if(e&&e.resources&&e.resources.length)for(var r=e.resources,i=function(e){var i=t.find((function(t){return t.name===r[e]}));n.push(i)},o=0;o<r.length;o++)i(o);return n},t.getField=function(e,t){return o.getter(t)(e)},t.setField=function(e,t,n){return s.setter(t)(e,n)},t.assignField=c,t.assignFields=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];for(var i=0;i<n.length;i++)c(e,t,n[i])},t.assignValues=function(e,t){return u(t,e),e},t.cloneTo=u,t.clone=function(e){var t={};return u(e,t),t},t.iterator=function(){if("function"==typeof Symbol&&Symbol.iterator)return Symbol.iterator;for(var e=Object.getOwnPropertyNames(Map.prototype),t=Map.prototype,n=0;n<e.length;++n){var r=e[n];if("entries"!==r&&"size"!==r&&t[r]===t.entries)return r}}(),t.fromClick=l,t.fromDoubleClick=function(e){var t=l(e),n=t.pipe(i.auditTime(250));return t.pipe(i.buffer(n),i.filter((function(e){return 2===e.length})),i.filter((function(e){return e[1].target===e[0].target})),i.map((function(e){return e[1]})))},t.sortTasksByTime=function(e){return e.sort((function(e,t){return e.startTime-t.startTime||t.endTime-e.endTime})),e}},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),i=n(7),o=n(3),s=n(17);function a(e,t){for(var n=t.data,r=0;r<n.length;r++)if(o.getField(n[r],t.valueField)===e)return r;return-1}function c(e,t){var n=a(e,t);return n>=0?t.data[n]:{}}function u(e){for(var t=[],n=0;n<e.length;n++){var r=Object.assign({},e[n]);r.resources=r.resources.slice(0),t.push(r)}return t}function l(e,t){var n=o.getField(e,t.field);return Array.isArray(n)?function(e,t){return e.map((function(e){return c(e,t)}))}(n,t):c(n,t)}function d(e,t){for(var n=t.taskResources,r=t.hasGroups,i=t.spans,s=t.allResources,c=void 0===s?[]:s,d=[],p=0;p<n.length;p++){var h=n[p];if(h.data){var f=c.indexOf(h),m=o.getField(e,h.field);Array.isArray(m)||(m=[m]);for(var y=[],v=0;v<m.length;v++){var g=a(m[v],h);if(g<0)return[{leafIdx:r?-1:0,resources:[]}];var _=h.data[g];if(0!==p||!r&&0!==v){if(r){var b=d;m.length>1&&(b=u(d),y.push.apply(y,b));for(var S=0;S<b.length;S++)b[S].leafIdx+=g*i[p],b[S].resources[f]=_}else if(v>0)for(var w=0;w<d.length;w++)d[w].resources[f].push(_)}else{var k=[];k[f]=h.multiple&&!r?[_]:_,d.push({leafIdx:r?g*i[p]:0,color:o.getField(_,h.colorField),resources:k})}}y.length&&(d=y)}else d=[{leafIdx:0,resources:[]}]}return function(e,t,n){for(var r=0;r<t.length;r++)for(var i=t[r],o=0;o<n.length;o++){var s=n[o];!i.resources[o]&&s.data&&(i.resources[o]=l(e,s))}}(e,d,c),d}function p(e){return Array.isArray(e)&&1===e.length&&void 0===e[0]}function h(e,t){return e.length===t.length&&(!(!p(e)||!p(t))||e.every((function(e){return t.some((function(t){return t.value===e.value}))})))}t.intersects=function(e,t,n,r){return e<n&&t>r||n<=e&&e<r||n<t&&t<=r&&e<t},t.dateInRange=function(e,t,n){return t.getTime()<=e.getTime()&&e.getTime()<=n.getTime()},t.roundAllDayEnd=function(e){var t=e.start,n=e.end,r=t.stripTime(),i=n.stripTime();return i.getTime()!==n.getTime()||r.getTime()===i.getTime()?i.addDays(1):i},t.toInvariantTime=function(e){var t=new Date(1980,0,1,0,0,0);return e&&t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t},t.addUTCDays=function(e,t){var n=new Date(e.getTime());return n.setUTCDate(n.getUTCDate()+t),n},t.timeOnDate=function(e,t,n,r,i){return void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=0),new Date(e.getFullYear(),e.getMonth(),e.getDate(),t,n,r,i)},t.toUTCTime=function(e,t){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},t.toUTCDate=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))},t.getUTCDate=function(e){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))},t.toUTCDateTime=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},t.dateWithTime=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes())},t.normaliseRangeStartAndEnd=function(e,t){var n,r;return t.end<=e.end?(r=e.end,n=t.start):(n=e.start,r=t.end),{start:n,end:r}},t.resourceItemByValue=l,t.eventResources=d,t.assignTasksResources=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];r.resources=d(r.event,t)}},t.isEmptyResource=p,t.resourcesMatch=h,t.isSameRange=function(e,t){return e.start.getTime()===t.start.getTime()&&e.end.getTime()===t.end.getTime()&&e.isAllDay===t.isAllDay&&h(e.resources,t.resources)},t.findRowIndex=function(e,t){if(void 0!==t.rowIndex)return t.rowIndex;for(var n=0;n<e.length;n++)if(!e[n])return n;return e.length},t.isRecurrence=function(e){return Boolean(e.event&&e.event.recurrenceRule)},t.isRecurrenceException=function(e){return e.event&&o.isPresent(e.event.recurrenceId)&&!e.event.recurrenceRule},t.rectContains=function(e,t,n){return e.left<=t&&t<=e.left+e.width&&e.top<=n&&n<=e.top+e.height},t.rectContainsX=function(e,t){return e.left<=t&&t<=e.left+e.width},t.toPx=function(e){return e+"px"},t.elementOffset=function(e){if(!e)return null;var t=e.getBoundingClientRect(),n=document.documentElement;return{top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||0),left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||0),width:t.width,height:t.height}},t.pointDistance=function(e,t,n,r){return Math.sqrt(Math.pow(e-n,2)+Math.pow(t-r,2))},t.ignoreContentChild=function(e){return"KENDO-RESIZE-SENSOR"===e.nodeName||s.hasClasses(e,"k-loading-mask")},t.setCoordinates=function(e,n){for(var r in n)n.hasOwnProperty(r)&&(e.style[r]=t.toPx(n[r]))},t.convertNgClassBindings=function(e){var t=[];if(o.isString(e))t.push(e);else if(o.isArray(e))t.push.apply(t,e);else if(o.isObject(e))for(var n in e)e.hasOwnProperty(n)&&e[n]&&t.push(n);return t},t.formatEventTime=function(e,t,n,o){var s={skeleton:"yMMMMEEEEdhm"},a=r.isEqualDate(e,t)?"t":s;return n?""+i.formatDate(e,{skeleton:"yMMMMEEEEd"},o):i.formatDate(e,s,o)+"–"+i.formatDate(t,a,o)},t.formValueOrDefault=function(e,t,n){var r=e.get(t);return r&&r.value||n},t.isWorkWeekDay=function(e,t,n){return n<t?e<=n||t<=e:t<=e&&e<=n},t.alwaysFalse=function(){return!1}},function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t){e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),s=function(){function e(){this.dateRangeSource=new o.BehaviorSubject({start:new Date(0),end:new Date(0),text:"",shortText:""}),this.nextDateSource=new o.Subject,this.navigateSource=new o.Subject,this.viewEventSource=new o.Subject,this.layoutEndSource=new o.Subject,this.optionsChangeSource=new o.Subject,this.slotSelectionStartSource=new o.Subject,this.slotSelectionStartDragSource=new o.Subject,this.slotSelectionStartEndSource=new o.Subject,this.dateRange=this.dateRangeSource.asObservable(),this.nextDate=this.nextDateSource.asObservable(),this.navigate=this.navigateSource.asObservable(),this.viewEvent=this.viewEventSource.asObservable(),this.layoutEnd=this.layoutEndSource.asObservable(),this.optionsChange=this.optionsChangeSource.asObservable(),this.slotSelectionStart=this.slotSelectionStartSource.asObservable(),this.slotSelectionDrag=this.slotSelectionStartDragSource.asObservable(),this.slotSelectionEnd=this.slotSelectionStartEndSource.asObservable()}return e.prototype.notifyNextDate=function(e){this.nextDateSource.next(e)},e.prototype.notifyDateRange=function(e){this.dateRangeSource.next(e)},e.prototype.notifyLayoutEnd=function(){this.layoutEndSource.next()},e.prototype.navigateTo=function(e){this.navigateSource.next(e)},e.prototype.notifyOptionsChange=function(){this.optionsChangeSource.next(null)},e.prototype.emitEvent=function(e,t){this.viewEventSource.next({name:e,args:t})},e.prototype.notifySlotSelectionStart=function(e){this.slotSelectionStartSource.next(e)},e.prototype.notifySlotSelectionDrag=function(e){this.slotSelectionStartDragSource.next(e)},e.prototype.notifySlotSelectionEnd=function(e){this.slotSelectionStartEndSource.next(e)},e=r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[])],e)}();t.ViewStateService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),s=function(){function e(){this.actionSource=new o.Subject,this.itemsSource=new o.BehaviorSubject([]),this.selectedDateSource=new o.BehaviorSubject(null),this.resizeSource=new o.Subject,this.optionsChangeSource=new o.BehaviorSubject({}),this.executeSource=new o.Subject,this.action=this.actionSource.asObservable(),this.items=this.itemsSource.asObservable(),this.selectedDate=this.selectedDateSource.asObservable(),this.resize=this.resizeSource.asObservable(),this.optionsChange=this.optionsChangeSource.asObservable(),this.execute=this.executeSource.asObservable()}return e.prototype.notifyAction=function(e){this.actionSource.next(e)},e.prototype.notifyItems=function(e){this.itemsSource.next(e)},e.prototype.notifySelectedDate=function(e){this.selectedDateSource.next(e)},e.prototype.notifyResize=function(){this.resizeSource.next()},e.prototype.notifyOptionsChange=function(e){this.optionsChangeSource.next(e)},e.prototype.executeMethod=function(e,t){var n;return this.executeSource.next({name:e,args:t,result:function(e){n=e}}),n},e=r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[])],e)}();t.ViewContextService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(0).__exportStar(n(115),t);var r=n(116);t.EditMode=r.EditMode;var i=n(117);t.CrudOperation=i.CrudOperation;var o=n(70);t.IsSlotSelectedArgs=o.IsSlotSelectedArgs},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(80),s=n(2),a=n(7),c=n(3),u=n(3),l=n(4),d=0,p=["first","second","third","fourth","last"],h=["never","daily","weekly","monthly","yearly"];t.dayRule=[{day:0,offset:0},{day:1,offset:0},{day:2,offset:0},{day:3,offset:0},{day:4,offset:0},{day:5,offset:0},{day:6,offset:0}],t.weekdayRule=[{day:1,offset:0},{day:2,offset:0},{day:3,offset:0},{day:4,offset:0},{day:5,offset:0}],t.weekendRule=[{day:0,offset:0},{day:6,offset:0}];var f=function(){function e(e,t){this.intl=e,this.localization=t,this.change=new i.EventEmitter,this.endRuleChange=new i.EventEmitter,this.frequencyChange=new i.EventEmitter,this.repeatOnRuleChange=new i.EventEmitter}return e.prototype.init=function(e,t,n,r){void 0===e&&(e=""),this.start=t,this.timezone=n,this.weekStart=r,this.rrule=o.parseRule({recurrenceRule:e,weekStart:r})},e.prototype.getUniqueId=function(){return d++},Object.defineProperty(e.prototype,"frequencies",{get:function(){var e=this;return h.map((function(t){return{value:t,text:e.localization.get("frequencies"+c.capitalize(t))}}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"frequency",{get:function(){return u.isPresent(this.rrule)&&!c.isNullOrEmptyString(this.rrule.freq)?this.rrule.freq:"never"},enumerable:!0,configurable:!0}),e.prototype.setFrequency=function(e){this.rrule={},this.rrule.freq=e,this.rrule.interval=1,"weekly"===e&&(this.rrule.byWeekDay=[{day:this.start.getDay(),offset:0}]),"monthly"!==e&&"yearly"!==e||(this.rrule.byMonthDay=[this.start.getDate()]),"yearly"===e&&(this.rrule.byMonth=[this.start.getMonth()+1]),this.frequencyChange.emit(),this.onChange()},Object.defineProperty(e.prototype,"interval",{set:function(e){this.rrule.interval=e,this.onChange()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{set:function(e){this.rrule.count=e,this.onChange()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"until",{get:function(){if(u.isPresent(this.rrule.until))return l.toLocalDate(this.rrule.until)},set:function(e){this.rrule.until=l.ZonedDate.fromLocalDate(e,this.timezone),this.onChange()},enumerable:!0,configurable:!0}),e.prototype.setWeekDays=function(e){this.rrule.byWeekDay=e,this.onChange()},Object.defineProperty(e.prototype,"monthDays",{set:function(e){this.rrule.byMonthDay=e,this.onChange()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"positions",{set:function(e){this.rrule.bySetPosition=e,this.onChange()},enumerable:!0,configurable:!0}),e.prototype.setMonths=function(e){this.rrule.byMonth=e,this.onChange()},Object.defineProperty(e.prototype,"months",{get:function(){return this.intl.dateFormatNames({type:"months",nameType:"wide"}).map((function(e,t){return{text:e,value:t+1}}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekDays",{get:function(){var e=this.weekStart,t=this.intl.dateFormatNames({type:"days",nameType:"abbreviated"}).map((function(e,t){return{text:e,value:t}}));return t.slice(e).concat(t.slice(0,e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extendedWeekDays",{get:function(){var e=this.weekStart,t=this.intl.dateFormatNames({type:"days",nameType:"wide"}).map((function(e,t){return{text:e,value:t}})),n=t.slice(e).concat(t.slice(0,e));return[{text:this.localization.get("weekdaysDay"),value:"day"},{text:this.localization.get("weekdaysWeekday"),value:"weekday"},{text:this.localization.get("weekdaysWeekendday"),value:"weekend"}].concat(n)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetPositions",{get:function(){var e=this,t=[1,2,3,4,-1];return p.map((function(n,r){return{text:e.localization.get("offsetPositions"+c.capitalize(n)),value:t[r]}}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endRule",{get:function(){return u.isPresent(this.rrule.count)?"count":u.isPresent(this.rrule.until)?"until":"never"},set:function(e){"count"===e?this.rrule.until=null:"until"===e?this.rrule.count=null:(this.rrule.count=null,this.rrule.until=null),this.endRuleChange.emit(e),this.onChange()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"repeatOnRule",{get:function(){return u.isPresent(this.rrule.byWeekDay)?"weekday":u.isPresent(this.rrule.byMonthDay)?"monthday":null},set:function(e){"monthday"===e?(this.rrule.byWeekDay=null,this.rrule.bySetPosition=null):this.rrule.byMonthDay=null,this.repeatOnRuleChange.emit(e),this.onChange()},enumerable:!0,configurable:!0}),e.prototype.onChange=function(){"never"===this.frequency?this.change.emit(null):this.change.emit(o.serializeRule(this.rrule,this.timezone))},e=r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[a.IntlService,s.LocalizationService])],e)}();t.RecurrenceService=f},function(e,t,n){"use strict";n.r(t),n.d(t,"audit",(function(){return H})),n.d(t,"auditTime",(function(){return G})),n.d(t,"buffer",(function(){return K})),n.d(t,"bufferCount",(function(){return X})),n.d(t,"bufferTime",(function(){return ee})),n.d(t,"bufferToggle",(function(){return ae})),n.d(t,"bufferWhen",(function(){return le})),n.d(t,"catchError",(function(){return he})),n.d(t,"combineAll",(function(){return be})),n.d(t,"combineLatest",(function(){return we})),n.d(t,"concat",(function(){return Ve})),n.d(t,"concatAll",(function(){return je})),n.d(t,"concatMap",(function(){return Ae})),n.d(t,"concatMapTo",(function(){return ze})),n.d(t,"count",(function(){return We})),n.d(t,"debounce",(function(){return Le})),n.d(t,"debounceTime",(function(){return Ge})),n.d(t,"defaultIfEmpty",(function(){return Xe})),n.d(t,"delay",(function(){return it})),n.d(t,"delayWhen",(function(){return ct})),n.d(t,"dematerialize",(function(){return ht})),n.d(t,"distinct",(function(){return yt})),n.d(t,"distinctUntilChanged",(function(){return _t})),n.d(t,"distinctUntilKeyChanged",(function(){return wt})),n.d(t,"elementAt",(function(){return At})),n.d(t,"endWith",(function(){return zt})),n.d(t,"every",(function(){return Wt})),n.d(t,"exhaust",(function(){return Lt})),n.d(t,"exhaustMap",(function(){return Gt})),n.d(t,"expand",(function(){return Zt})),n.d(t,"filter",(function(){return Tt})),n.d(t,"finalize",(function(){return Qt})),n.d(t,"find",(function(){return tn})),n.d(t,"findIndex",(function(){return on})),n.d(t,"first",(function(){return sn})),n.d(t,"groupBy",(function(){return hn})),n.d(t,"ignoreElements",(function(){return _n})),n.d(t,"isEmpty",(function(){return wn})),n.d(t,"last",(function(){return Cn})),n.d(t,"map",(function(){return Ee})),n.d(t,"mapTo",(function(){return In})),n.d(t,"materialize",(function(){return Pn})),n.d(t,"max",(function(){return zn})),n.d(t,"merge",(function(){return Nn})),n.d(t,"mergeAll",(function(){return Fe})),n.d(t,"mergeMap",(function(){return Re})),n.d(t,"flatMap",(function(){return Re})),n.d(t,"mergeMapTo",(function(){return Bn})),n.d(t,"mergeScan",(function(){return Ln})),n.d(t,"min",(function(){return Gn})),n.d(t,"multicast",(function(){return Jn})),n.d(t,"observeOn",(function(){return tr})),n.d(t,"onErrorResumeNext",(function(){return or})),n.d(t,"pairwise",(function(){return cr})),n.d(t,"partition",(function(){return pr})),n.d(t,"pluck",(function(){return hr})),n.d(t,"publish",(function(){return mr})),n.d(t,"publishBehavior",(function(){return vr})),n.d(t,"publishLast",(function(){return _r})),n.d(t,"publishReplay",(function(){return Dr})),n.d(t,"race",(function(){return Cr})),n.d(t,"reduce",(function(){return An})),n.d(t,"repeat",(function(){return Ir})),n.d(t,"repeatWhen",(function(){return Pr})),n.d(t,"retry",(function(){return jr})),n.d(t,"retryWhen",(function(){return Ar})),n.d(t,"refCount",(function(){return Kn})),n.d(t,"sample",(function(){return Nr})),n.d(t,"sampleTime",(function(){return qr})),n.d(t,"scan",(function(){return jn})),n.d(t,"sequenceEqual",(function(){return Yr})),n.d(t,"share",(function(){return Jr})),n.d(t,"shareReplay",(function(){return ei})),n.d(t,"single",(function(){return ti})),n.d(t,"skip",(function(){return ii})),n.d(t,"skipLast",(function(){return ai})),n.d(t,"skipUntil",(function(){return li})),n.d(t,"skipWhile",(function(){return hi})),n.d(t,"startWith",(function(){return yi})),n.d(t,"subscribeOn",(function(){return Di})),n.d(t,"switchAll",(function(){return Ii})),n.d(t,"switchMap",(function(){return xi})),n.d(t,"switchMapTo",(function(){return Ri})),n.d(t,"take",(function(){return jt})),n.d(t,"takeLast",(function(){return Tn})),n.d(t,"takeUntil",(function(){return Oi})),n.d(t,"takeWhile",(function(){return Fi})),n.d(t,"tap",(function(){return Ct})),n.d(t,"throttle",(function(){return Ai})),n.d(t,"throttleTime",(function(){return Ni})),n.d(t,"throwIfEmpty",(function(){return Mt})),n.d(t,"timeInterval",(function(){return Ui})),n.d(t,"timeout",(function(){return Qi})),n.d(t,"timeoutWith",(function(){return Zi})),n.d(t,"timestamp",(function(){return Ji})),n.d(t,"toArray",(function(){return no})),n.d(t,"window",(function(){return ro})),n.d(t,"windowCount",(function(){return so})),n.d(t,"windowTime",(function(){return uo})),n.d(t,"windowToggle",(function(){return vo})),n.d(t,"windowWhen",(function(){return bo})),n.d(t,"withLatestFrom",(function(){return ko})),n.d(t,"zip",(function(){return Po})),n.d(t,"zipAll",(function(){return Mo}));var r=n(0);function i(e){return"function"==typeof e}var o=!1,s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack;o=e},get useDeprecatedSynchronousErrorHandling(){return o}};function a(e){setTimeout((function(){throw e}))}var c={closed:!0,next:function(e){},error:function(e){if(s.useDeprecatedSynchronousErrorHandling)throw e;a(e)},complete:function(){}},u=Array.isArray||function(e){return e&&"number"==typeof e.length};function l(e){return null!==e&&"object"==typeof e}function d(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}d.prototype=Object.create(Error.prototype);var p=d,h=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,r=this._parents,o=this._unsubscribe,s=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var a=-1,c=r?r.length:0;n;)n.remove(this),n=++a<c&&r[a]||null;if(i(o))try{o.call(this)}catch(n){t=!0,e=n instanceof p?f(n.errors):[n]}if(u(s))for(a=-1,c=s.length;++a<c;){var d=s[a];if(l(d))try{d.unsubscribe()}catch(n){t=!0,e=e||[],n instanceof p?e=e.concat(f(n.errors)):e.push(n)}}if(t)throw new p(e)}},e.prototype.add=function(t){var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:if(!t)return e.EMPTY;throw new Error("unrecognized teardown "+t+" added to Subscription.")}if(n._addParent(this)){var i=this._subscriptions;i?i.push(n):this._subscriptions=[n]}return n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.prototype._addParent=function(e){var t=this._parent,n=this._parents;return t!==e&&(t?n?-1===n.indexOf(e)&&(n.push(e),!0):(this._parents=[e],!0):(this._parent=e,!0))},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function f(e){return e.reduce((function(e,t){return e.concat(t instanceof p?t.errors:t)}),[])}var m="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),y=function(e){function t(n,r,i){var o=e.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=c;break;case 1:if(!n){o.destination=c;break}if("object"==typeof n){n instanceof t?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new v(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new v(o,n,r,i)}return o}return r.__extends(t,e),t.prototype[m]=function(){return this},t.create=function(e,n,r){var i=new t(e,n,r);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},t}(h),v=function(e){function t(t,n,r,o){var s,a=e.call(this)||this;a._parentSubscriber=t;var u=a;return i(n)?s=n:n&&(s=n.next,r=n.error,o=n.complete,n!==c&&(i((u=Object.create(n)).unsubscribe)&&a.add(u.unsubscribe.bind(u)),u.unsubscribe=a.unsubscribe.bind(a))),a._context=u,a._next=s,a._error=r,a._complete=o,a}return r.__extends(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;s.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=s.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):a(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;a(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};s.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),s.useDeprecatedSynchronousErrorHandling)throw e;a(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return s.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(a(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(y),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(y),_=function(e){function t(t,n,r){var i=e.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.__extends(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(y);var b="function"==typeof Symbol&&Symbol.observable||"@@observable";function S(){}function w(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return k(e)}function k(e){return e?1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}:S}var D=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,i=function(e,t,n){if(e){if(e instanceof y)return e;if(e[m])return e[m]()}return e||t||n?new y(e,t,n):new y(c)}(e,t,n);if(r?i.add(r.call(i,this.source)):i.add(this.source||s.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),s.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){s.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),!function(e){for(;e;){var t=e,n=t.closed,r=t.destination,i=t.isStopped;if(n||i)return!1;e=r&&r instanceof y?r:null}return!0}(e)?console.warn(t):e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=T(t))((function(t,r){var i;i=n.subscribe((function(t){try{e(t)}catch(e){r(e),i&&i.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[b]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:k(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=T(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function T(e){if(e||(e=s.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var x=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()}},E=function(e){return function(t){return e.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,a),t}};function C(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var I=C(),R=function(e){return function(t){for(var n=e[I]();;){var r=n.next();if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t}},O=function(e){return function(t){var n=e[b]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}},P=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function M(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var F=function(e){if(e instanceof D)return function(t){return e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t)};if(e&&"function"==typeof e[b])return O(e);if(P(e))return x(e);if(M(e))return E(e);if(e&&"function"==typeof e[I])return R(e);var t=l(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function j(e,t,n,r,i){if(void 0===i&&(i=new _(e,n,r)),!i.closed)return F(t)(i)}function H(e){return function(t){return t.lift(new V(e))}}var V=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new A(e,this.durationSelector))},e}(),A=function(e){function t(t,n){var r=e.call(this,t)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.__extends(t,e),t.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=void 0;try{t=(0,this.durationSelector)(e)}catch(e){return this.destination.error(e)}var n=j(this,t);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},t.prototype.clearThrottle=function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))},t.prototype.notifyNext=function(e,t,n,r){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}(g),z=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return r.__extends(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return r.__extends(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(h)),W=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}(),N=function(e){function t(n,r){void 0===r&&(r=W.now);var i=e.call(this,n,(function(){return t.delegate&&t.delegate!==i?t.delegate.now():r()}))||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return r.__extends(t,e),t.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,i):e.prototype.schedule.call(this,n,r,i)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(W),B=new N(z);function L(e){return!u(e)&&e-parseFloat(e)+1>=0}function q(e){return e&&"function"==typeof e.schedule}function U(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}function G(e,t){return void 0===t&&(t=B),H((function(){return function(e,t,n){void 0===e&&(e=0);var r=-1;return L(t)?r=Number(t)<1?1:Number(t):q(t)&&(n=t),q(n)||(n=B),new D((function(t){var i=L(e)?e:+e-n.now();return n.schedule(U,i,{index:0,period:r,subscriber:t})}))}(e,t)}))}function K(e){return function(t){return t.lift(new Y(e))}}var Y=function(){function e(e){this.closingNotifier=e}return e.prototype.call=function(e,t){return t.subscribe(new Z(e,this.closingNotifier))},e}(),Z=function(e){function t(t,n){var r=e.call(this,t)||this;return r.buffer=[],r.add(j(r,n)),r}return r.__extends(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype.notifyNext=function(e,t,n,r,i){var o=this.buffer;this.buffer=[],this.destination.next(o)},t}(g);function X(e,t){return void 0===t&&(t=null),function(n){return n.lift(new $(e,t))}}var $=function(){function e(e,t){this.bufferSize=e,this.startBufferEvery=t,this.subscriberClass=t&&e!==t?J:Q}return e.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},e}(),Q=function(e){function t(t,n){var r=e.call(this,t)||this;return r.bufferSize=n,r.buffer=[],r}return r.__extends(t,e),t.prototype._next=function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])},t.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),e.prototype._complete.call(this)},t}(y),J=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return r.__extends(t,e),t.prototype._next=function(e){var t=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var s=r[o];s.push(e),s.length===t&&(r.splice(o,1),this.destination.next(s))}},t.prototype._complete=function(){for(var t=this.buffers,n=this.destination;t.length>0;){var r=t.shift();r.length>0&&n.next(r)}e.prototype._complete.call(this)},t}(y);function ee(e){var t=arguments.length,n=B;q(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var r=null;t>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return t>=3&&(i=arguments[2]),function(t){return t.lift(new te(e,r,i,n))}}var te=function(){function e(e,t,n,r){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new re(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e}(),ne=function(){return function(){this.buffer=[]}}(),re=function(e){function t(t,n,r,i,o){var s=e.call(this,t)||this;s.bufferTimeSpan=n,s.bufferCreationInterval=r,s.maxBufferSize=i,s.scheduler=o,s.contexts=[];var a=s.openContext();if(s.timespanOnly=null==r||r<0,s.timespanOnly){var c={subscriber:s,context:a,bufferTimeSpan:n};s.add(a.closeAction=o.schedule(ie,n,c))}else{var u={subscriber:s,context:a},l={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:s,scheduler:o};s.add(a.closeAction=o.schedule(se,n,u)),s.add(o.schedule(oe,r,l))}return s}return r.__extends(t,e),t.prototype._next=function(e){for(var t,n=this.contexts,r=n.length,i=0;i<r;i++){var o=n[i],s=o.buffer;s.push(e),s.length==this.maxBufferSize&&(t=o)}t&&this.onBufferFull(t)},t.prototype._error=function(t){this.contexts.length=0,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts,n=this.destination;t.length>0;){var r=t.shift();n.next(r.buffer)}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.contexts=null},t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:e,bufferTimeSpan:n};this.add(e.closeAction=this.scheduler.schedule(ie,n,r))}},t.prototype.openContext=function(){var e=new ne;return this.contexts.push(e),e},t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)},t}(y);function ie(e){var t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function oe(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,r=e.subscriber,i=e.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(se,n,{subscriber:r,context:o})),this.schedule(e,t))}function se(e){var t=e.subscriber,n=e.context;t.closeContext(n)}function ae(e,t){return function(n){return n.lift(new ce(e,t))}}var ce=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new ue(e,this.openings,this.closingSelector))},e}(),ue=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(j(i,n)),i}return r.__extends(t,e),t.prototype._next=function(e){for(var t=this.contexts,n=t.length,r=0;r<n;r++)t[r].buffer.push(e)},t.prototype._error=function(t){for(var n=this.contexts;n.length>0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,r,i){e?this.closeBuffer(e):this.openBuffer(t)},t.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},t.prototype.openBuffer=function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(e){this._error(e)}},t.prototype.closeBuffer=function(e){var t=this.contexts;if(t&&e){var n=e.buffer,r=e.subscription;this.destination.next(n),t.splice(t.indexOf(e),1),this.remove(r),r.unsubscribe()}},t.prototype.trySubscribe=function(e){var t=this.contexts,n=new h,r={buffer:[],subscription:n};t.push(r);var i=j(this,e,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},t}(g);function le(e){return function(t){return t.lift(new de(e))}}var de=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new pe(e,this.closingSelector))},e}(),pe=function(e){function t(t,n){var r=e.call(this,t)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return r.__extends(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},t.prototype.notifyNext=function(e,t,n,r,i){this.openBuffer()},t.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},t.prototype.openBuffer=function(){var e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe());var t,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{t=(0,this.closingSelector)()}catch(e){return this.error(e)}e=new h,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add(j(this,t)),this.subscribing=!1},t}(g);function he(e){return function(t){var n=new fe(e),r=t.lift(n);return n.caught=r}}var fe=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new me(e,this.selector,this.caught))},e}(),me=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.selector=n,i.caught=r,i}return r.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle();var r=new _(this,void 0,void 0);this.add(r),j(this,n,void 0,void 0,r)}},t}(g);function ye(e,t){return new D(t?function(n){var r=new h,i=0;return r.add(t.schedule((function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r}:x(e))}var ve={};var ge=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new _e(e,this.resultSelector))},e}(),_e=function(e){function t(t,n){var r=e.call(this,t)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r.__extends(t,e),t.prototype._next=function(e){this.values.push(ve),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var r=e[n];this.add(j(this,r,r,n))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,i){var o=this.values,s=o[n],a=this.toRespond?s===ve?--this.toRespond:this.toRespond:0;o[n]=t,0===a&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},t.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(g);function be(e){return function(t){return t.lift(new ge(e))}}function Se(e,t){if(!t)return e instanceof D?e:new D(F(e));if(null!=e){if(function(e){return e&&"function"==typeof e[b]}(e))return function(e,t){return new D(t?function(n){var r=new h;return r.add(t.schedule((function(){var i=e[b]();r.add(i.subscribe({next:function(e){r.add(t.schedule((function(){return n.next(e)})))},error:function(e){r.add(t.schedule((function(){return n.error(e)})))},complete:function(){r.add(t.schedule((function(){return n.complete()})))}}))}))),r}:O(e))}(e,t);if(M(e))return function(e,t){return new D(t?function(n){var r=new h;return r.add(t.schedule((function(){return e.then((function(e){r.add(t.schedule((function(){n.next(e),r.add(t.schedule((function(){return n.complete()})))})))}),(function(e){r.add(t.schedule((function(){return n.error(e)})))}))}))),r}:E(e))}(e,t);if(P(e))return ye(e,t);if(function(e){return e&&"function"==typeof e[I]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new D(t?function(n){var r,i=new h;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(t.schedule((function(){r=e[I](),i.add(t.schedule((function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(e){return void n.error(e)}t?n.complete():(n.next(e),this.schedule())}})))}))),i}:R(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function we(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null;return"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&u(e[0])&&(e=e[0].slice()),function(t){return t.lift.call(Se([t].concat(e)),new ge(n))}}var ke=new D((function(e){return e.complete()}));function De(e){return e?function(e){return new D((function(t){return e.schedule((function(){return t.complete()}))}))}(e):ke}function Te(e){var t=new D((function(t){t.next(e),t.complete()}));return t._isScalar=!0,t.value=e,t}function xe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];switch(q(n)?e.pop():n=void 0,e.length){case 0:return De(n);case 1:return n?ye(e,n):Te(e[0]);default:return ye(e,n)}}function Ee(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new Ce(e,t))}}var Ce=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new Ie(e,this.project,this.thisArg))},e}(),Ie=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(y);function Re(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?function(r){return r.pipe(Re((function(n,r){return Se(e(n,r)).pipe(Ee((function(e,i){return t(n,e,r,i)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new Oe(e,n))})}var Oe=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new Pe(e,this.project,this.concurrent))},e}(),Pe=function(e){function t(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=e.call(this,t)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.__extends(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=new _(this,void 0,void 0);this.destination.add(r),j(this,e,t,n,r)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(g);function Me(e){return e}function Fe(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Re(Me,e)}function je(){return Fe(1)}function He(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return je()(xe.apply(void 0,e))}function Ve(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(He.apply(void 0,[t].concat(e)))}}function Ae(e,t){return Re(e,t,1)}function ze(e,t){return Ae((function(){return e}),t)}function We(e){return function(t){return t.lift(new Ne(e,t))}}var Ne=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Be(e,this.predicate,this.source))},e}(),Be=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.source=r,i.count=0,i.index=0,i}return r.__extends(t,e),t.prototype._next=function(e){this.predicate?this._tryPredicate(e):this.count++},t.prototype._tryPredicate=function(e){var t;try{t=this.predicate(e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t&&this.count++},t.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},t}(y);function Le(e){return function(t){return t.lift(new qe(e))}}var qe=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Ue(e,this.durationSelector))},e}(),Ue=function(e){function t(t,n){var r=e.call(this,t)||this;return r.durationSelector=n,r.hasValue=!1,r.durationSubscription=null,r}return r.__extends(t,e),t.prototype._next=function(e){try{var t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.emitValue(),this.destination.complete()},t.prototype._tryNext=function(e,t){var n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=j(this,t))&&!n.closed&&this.add(this.durationSubscription=n)},t.prototype.notifyNext=function(e,t,n,r,i){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){if(this.hasValue){var t=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,e.prototype._next.call(this,t)}},t}(g);function Ge(e,t){return void 0===t&&(t=B),function(n){return n.lift(new Ke(e,t))}}var Ke=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new Ye(e,this.dueTime,this.scheduler))},e}(),Ye=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return r.__extends(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Ze,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(y);function Ze(e){e.debouncedNext()}function Xe(e){return void 0===e&&(e=null),function(t){return t.lift(new Qe(e))}}var $e,Qe=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new Je(e,this.defaultValue))},e}(),Je=function(e){function t(t,n){var r=e.call(this,t)||this;return r.defaultValue=n,r.isEmpty=!0,r}return r.__extends(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(y);function et(e){return e instanceof Date&&!isNaN(+e)}function tt(e,t){return new D(t?function(n){return t.schedule(nt,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function nt(e){var t=e.error;e.subscriber.error(t)}$e||($e={});var rt=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return xe(this.value);case"E":return tt(this.error);case"C":return De()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}();function it(e,t){void 0===t&&(t=B);var n=et(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new ot(n,t))}}var ot=function(){function e(e,t){this.delay=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new st(e,this.delay,this.scheduler))},e}(),st=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return r.__extends(t,e),t.dispatch=function(e){for(var t=e.source,n=t.queue,r=e.scheduler,i=e.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new at(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(rt.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.scheduleNotification(rt.createComplete()),this.unsubscribe()},t}(y),at=function(){return function(e,t){this.time=e,this.notification=t}}();function ct(e,t){return t?function(n){return new dt(n,t).lift(new ut(e))}:function(t){return t.lift(new ut(e))}}var ut=function(){function e(e){this.delayDurationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new lt(e,this.delayDurationSelector))},e}(),lt=function(e){function t(t,n){var r=e.call(this,t)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return r.__extends(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(e),this.removeSubscription(i),this.tryComplete()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()},t.prototype._next=function(e){var t=this.index++;try{var n=this.delayDurationSelector(e,t);n&&this.tryDelay(n,e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},t.prototype.removeSubscription=function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue},t.prototype.tryDelay=function(e,t){var n=j(this,e,t);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},t.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},t}(g),dt=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subscriptionDelay=n,r}return r.__extends(t,e),t.prototype._subscribe=function(e){this.subscriptionDelay.subscribe(new pt(e,this.source))},t}(D),pt=function(e){function t(t,n){var r=e.call(this)||this;return r.parent=t,r.source=n,r.sourceSubscribed=!1,r}return r.__extends(t,e),t.prototype._next=function(e){this.subscribeToSource()},t.prototype._error=function(e){this.unsubscribe(),this.parent.error(e)},t.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},t.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},t}(y);function ht(){return function(e){return e.lift(new ft)}}var ft=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new mt(e))},e}(),mt=function(e){function t(t){return e.call(this,t)||this}return r.__extends(t,e),t.prototype._next=function(e){e.observe(this.destination)},t}(y);function yt(e,t){return function(n){return n.lift(new vt(e,t))}}var vt=function(){function e(e,t){this.keySelector=e,this.flushes=t}return e.prototype.call=function(e,t){return t.subscribe(new gt(e,this.keySelector,this.flushes))},e}(),gt=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.keySelector=n,i.values=new Set,r&&i.add(j(i,r)),i}return r.__extends(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.values.clear()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype._next=function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)},t.prototype._useKeySelector=function(e){var t,n=this.destination;try{t=this.keySelector(e)}catch(e){return void n.error(e)}this._finalizeNext(t,e)},t.prototype._finalizeNext=function(e,t){var n=this.values;n.has(e)||(n.add(e),this.destination.next(t))},t}(g);function _t(e,t){return function(n){return n.lift(new bt(e,t))}}var bt=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new St(e,this.compare,this.keySelector))},e}(),St=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.__extends(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(e){return this.destination.error(e)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(e){return this.destination.error(e)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))},t}(y);function wt(e,t){return _t((function(n,r){return t?t(n[e],r[e]):n[e]===r[e]}))}function kt(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}kt.prototype=Object.create(Error.prototype);var Dt=kt;function Tt(e,t){return function(n){return n.lift(new xt(e,t))}}var xt=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new Et(e,this.predicate,this.thisArg))},e}(),Et=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(y);function Ct(e,t,n){return function(r){return r.lift(new It(e,t,n))}}var It=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new Rt(e,this.nextOrObserver,this.error,this.complete))},e}(),Rt=function(e){function t(t,n,r,o){var s=e.call(this,t)||this;return s._tapNext=S,s._tapError=S,s._tapComplete=S,s._tapError=r||S,s._tapComplete=o||S,i(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||S,s._tapError=n.error||S,s._tapComplete=n.complete||S),s}return r.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(y);function Ot(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}Ot.prototype=Object.create(Error.prototype);var Pt=Ot,Mt=function(e){return void 0===e&&(e=Ft),Ct({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw e()}})};function Ft(){return new Pt}function jt(e){return function(t){return 0===e?De():t.lift(new Ht(e))}}var Ht=function(){function e(e){if(this.total=e,this.total<0)throw new Dt}return e.prototype.call=function(e,t){return t.subscribe(new Vt(e,this.total))},e}(),Vt=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.__extends(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(y);function At(e,t){if(e<0)throw new Dt;var n=arguments.length>=2;return function(r){return r.pipe(Tt((function(t,n){return n===e})),jt(1),n?Xe(t):Mt((function(){return new Dt})))}}function zt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n=e[e.length-1];q(n)?e.pop():n=null;var r=e.length;return He(t,1!==r||n?r>0?ye(e,n):De(n):Te(e[0]))}}function Wt(e,t){return function(n){return n.lift(new Nt(e,t,n))}}var Nt=function(){function e(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new Bt(e,this.predicate,this.thisArg,this.source))},e}(),Bt=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return r.__extends(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(y);function Lt(){return function(e){return e.lift(new qt)}}var qt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Ut(e))},e}(),Ut=function(e){function t(t){var n=e.call(this,t)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return r.__extends(t,e),t.prototype._next=function(e){this.hasSubscription||(this.hasSubscription=!0,this.add(j(this,e)))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},t.prototype.notifyComplete=function(e){this.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(g);function Gt(e,t){return t?function(n){return n.pipe(Gt((function(n,r){return Se(e(n,r)).pipe(Ee((function(e,i){return t(n,e,r,i)})))})))}:function(t){return t.lift(new Kt(e))}}var Kt=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new Yt(e,this.project))},e}(),Yt=function(e){function t(t,n){var r=e.call(this,t)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return r.__extends(t,e),t.prototype._next=function(e){this.hasSubscription||this.tryNext(e)},t.prototype.tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.hasSubscription=!0,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=new _(this,void 0,void 0);this.destination.add(r),j(this,e,t,n,r)},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(g);function Zt(e,t,n){return void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),t=(t||0)<1?Number.POSITIVE_INFINITY:t,function(r){return r.lift(new Xt(e,t,n))}}var Xt=function(){function e(e,t,n){this.project=e,this.concurrent=t,this.scheduler=n}return e.prototype.call=function(e,t){return t.subscribe(new $t(e,this.project,this.concurrent,this.scheduler))},e}(),$t=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.project=n,o.concurrent=r,o.scheduler=i,o.index=0,o.active=0,o.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}return r.__extends(t,e),t.dispatch=function(e){var t=e.subscriber,n=e.result,r=e.value,i=e.index;t.subscribeToProjection(n,r,i)},t.prototype._next=function(e){var n=this.destination;if(n.closed)this._complete();else{var r=this.index++;if(this.active<this.concurrent){n.next(e);try{var i=(0,this.project)(e,r);if(this.scheduler){var o={subscriber:this,result:i,value:e,index:r};this.destination.add(this.scheduler.schedule(t.dispatch,0,o))}else this.subscribeToProjection(i,e,r)}catch(e){n.error(e)}}else this.buffer.push(e)}},t.prototype.subscribeToProjection=function(e,t,n){this.active++,this.destination.add(j(this,e,t,n))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,r,i){this._next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.destination.remove(e),this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},t}(g);function Qt(e){return function(t){return t.lift(new Jt(e))}}var Jt=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new en(e,this.callback))},e}(),en=function(e){function t(t,n){var r=e.call(this,t)||this;return r.add(new h(n)),r}return r.__extends(t,e),t}(y);function tn(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return function(n){return n.lift(new nn(e,n,!1,t))}}var nn=function(){function e(e,t,n,r){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=r}return e.prototype.call=function(e,t){return t.subscribe(new rn(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},e}(),rn=function(e){function t(t,n,r,i,o){var s=e.call(this,t)||this;return s.predicate=n,s.source=r,s.yieldIndex=i,s.thisArg=o,s.index=0,s}return r.__extends(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()},t.prototype._next=function(e){var t=this.predicate,n=this.thisArg,r=this.index++;try{t.call(n||this,e,r,this.source)&&this.notifyComplete(this.yieldIndex?r:e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},t}(y);function on(e,t){return function(n){return n.lift(new nn(e,n,!0,t))}}function sn(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Tt((function(t,n){return e(t,n,r)})):Me,jt(1),n?Xe(t):Mt((function(){return new Pt})))}}function an(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}an.prototype=Object.create(Error.prototype);var cn=an,un=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return r.__extends(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(h),ln=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return r.__extends(t,e),t}(y),dn=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.__extends(t,e),t.prototype[m]=function(){return new ln(this)},t.prototype.lift=function(e){var t=new pn(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new cn;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].next(e)},t.prototype.error=function(e){if(this.closed)throw new cn;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new cn;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new cn;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new cn;return this.hasError?(e.error(this.thrownError),h.EMPTY):this.isStopped?(e.complete(),h.EMPTY):(this.observers.push(e),new un(this,e))},t.prototype.asObservable=function(){var e=new D;return e.source=this,e},t.create=function(e,t){return new pn(e,t)},t}(D),pn=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return r.__extends(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):h.EMPTY},t}(dn);function hn(e,t,n,r){return function(i){return i.lift(new fn(e,t,n,r))}}var fn=function(){function e(e,t,n,r){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=r}return e.prototype.call=function(e,t){return t.subscribe(new mn(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),mn=function(e){function t(t,n,r,i,o){var s=e.call(this,t)||this;return s.keySelector=n,s.elementSelector=r,s.durationSelector=i,s.subjectSelector=o,s.groups=null,s.attemptedToUnsubscribe=!1,s.count=0,s}return r.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(e){return void this.error(e)}this._group(e,t)},t.prototype._group=function(e,t){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(t);if(this.elementSelector)try{r=this.elementSelector(e)}catch(e){this.error(e)}else r=e;if(!i){i=this.subjectSelector?this.subjectSelector():new dn,n.set(t,i);var o=new vn(t,i,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new vn(t,i))}catch(e){return void this.error(e)}this.add(s.subscribe(new yn(t,i,this)))}}i.closed||i.next(r)},t.prototype._error=function(e){var t=this.groups;t&&(t.forEach((function(t,n){t.error(e)})),t.clear()),this.destination.error(e)},t.prototype._complete=function(){var e=this.groups;e&&(e.forEach((function(e,t){e.complete()})),e.clear()),this.destination.complete()},t.prototype.removeGroup=function(e){this.groups.delete(e)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},t}(y),yn=function(e){function t(t,n,r){var i=e.call(this,n)||this;return i.key=t,i.group=n,i.parent=r,i}return r.__extends(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},t}(y),vn=function(e){function t(t,n,r){var i=e.call(this)||this;return i.key=t,i.groupSubject=n,i.refCountSubscription=r,i}return r.__extends(t,e),t.prototype._subscribe=function(e){var t=new h,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&t.add(new gn(n)),t.add(r.subscribe(e)),t},t}(D),gn=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return r.__extends(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(h);function _n(){return function(e){return e.lift(new bn)}}var bn=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Sn(e))},e}(),Sn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype._next=function(e){},t}(y);function wn(){return function(e){return e.lift(new kn)}}var kn=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Dn(e))},e}(),Dn=function(e){function t(t){return e.call(this,t)||this}return r.__extends(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype._next=function(e){this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(y);function Tn(e){return function(t){return 0===e?De():t.lift(new xn(e))}}var xn=function(){function e(e){if(this.total=e,this.total<0)throw new Dt}return e.prototype.call=function(e,t){return t.subscribe(new En(e,this.total))},e}(),En=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.__extends(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e},t.prototype._complete=function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=t++%n;e.next(r[o])}e.complete()},t}(y);function Cn(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Tt((function(t,n){return e(t,n,r)})):Me,Tn(1),n?Xe(t):Mt((function(){return new Pt})))}}function In(e){return function(t){return t.lift(new Rn(e))}}var Rn=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new On(e,this.value))},e}(),On=function(e){function t(t,n){var r=e.call(this,t)||this;return r.value=n,r}return r.__extends(t,e),t.prototype._next=function(e){this.destination.next(this.value)},t}(y);function Pn(){return function(e){return e.lift(new Mn)}}var Mn=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Fn(e))},e}(),Fn=function(e){function t(t){return e.call(this,t)||this}return r.__extends(t,e),t.prototype._next=function(e){this.destination.next(rt.createNext(e))},t.prototype._error=function(e){var t=this.destination;t.next(rt.createError(e)),t.complete()},t.prototype._complete=function(){var e=this.destination;e.next(rt.createComplete()),e.complete()},t}(y);function jn(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Hn(e,t,n))}}var Hn=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new Vn(e,this.accumulator,this.seed,this.hasSeed))},e}(),Vn=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.__extends(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(y);function An(e,t){return arguments.length>=2?function(n){return w(jn(e,t),Tn(1),Xe(t))(n)}:function(t){return w(jn((function(t,n,r){return e(t,n,r+1)})),Tn(1))(t)}}function zn(e){return An("function"==typeof e?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}function Wn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,r=null,i=e[e.length-1];return q(i)?(r=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof i&&(n=e.pop()),null===r&&1===e.length&&e[0]instanceof D?e[0]:Fe(n)(ye(e,r))}function Nn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(Wn.apply(void 0,[t].concat(e)))}}function Bn(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?Re((function(){return e}),t,n):("number"==typeof t&&(n=t),Re((function(){return e}),n))}function Ln(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return r.lift(new qn(e,t,n))}}var qn=function(){function e(e,t,n){this.accumulator=e,this.seed=t,this.concurrent=n}return e.prototype.call=function(e,t){return t.subscribe(new Un(e,this.accumulator,this.seed,this.concurrent))},e}(),Un=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.accumulator=n,o.acc=r,o.concurrent=i,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return r.__extends(t,e),t.prototype._next=function(e){if(this.active<this.concurrent){var t=this.index++,n=this.destination,r=void 0;try{r=(0,this.accumulator)(this.acc,e,t)}catch(e){return n.error(e)}this.active++,this._innerSub(r,e,t)}else this.buffer.push(e)},t.prototype._innerSub=function(e,t,n){var r=new _(this,void 0,void 0);this.destination.add(r),j(this,e,t,n,r)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,r,i){var o=this.destination;this.acc=t,this.hasValue=!0,o.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.destination.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t}(g);function Gn(e){return An("function"==typeof e?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t})}function Kn(){return function(e){return e.lift(new Yn(e))}}var Yn=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new Zn(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i},e}(),Zn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.__extends(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(y),Xn=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.__extends(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new h).add(this.source.subscribe(new Qn(this.getSubject(),this))),e.closed?(this._connection=null,e=h.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return Kn()(this)},t}(D).prototype,$n={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Xn._subscribe},_isComplete:{value:Xn._isComplete,writable:!0},getSubject:{value:Xn.getSubject},connect:{value:Xn.connect},refCount:{value:Xn.refCount}},Qn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.__extends(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(ln);function Jn(e,t){return function(n){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new er(r,t));var i=Object.create(n,$n);return i.source=n,i.subjectFactory=r,i}}var er=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(e);return i.add(t.subscribe(r)),i},e}();function tr(e,t){return void 0===t&&(t=0),function(n){return n.lift(new nr(e,t))}}var nr=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new rr(e,this.scheduler,this.delay))},e}(),rr=function(e){function t(t,n,r){void 0===r&&(r=0);var i=e.call(this,t)||this;return i.scheduler=n,i.delay=r,i}return r.__extends(t,e),t.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new ir(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(rt.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(rt.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(rt.createComplete()),this.unsubscribe()},t}(y),ir=function(){return function(e,t){this.notification=e,this.destination=t}}();function or(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length&&u(e[0])&&(e=e[0]),function(t){return t.lift(new sr(e))}}var sr=function(){function e(e){this.nextSources=e}return e.prototype.call=function(e,t){return t.subscribe(new ar(e,this.nextSources))},e}(),ar=function(e){function t(t,n){var r=e.call(this,t)||this;return r.destination=t,r.nextSources=n,r}return r.__extends(t,e),t.prototype.notifyError=function(e,t){this.subscribeToNextSource()},t.prototype.notifyComplete=function(e){this.subscribeToNextSource()},t.prototype._error=function(e){this.subscribeToNextSource(),this.unsubscribe()},t.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},t.prototype.subscribeToNextSource=function(){var e=this.nextSources.shift();if(e){var t=new _(this,void 0,void 0);this.destination.add(t),j(this,e,void 0,void 0,t)}else this.destination.complete()},t}(g);function cr(){return function(e){return e.lift(new ur)}}var ur=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new lr(e))},e}(),lr=function(e){function t(t){var n=e.call(this,t)||this;return n.hasPrev=!1,n}return r.__extends(t,e),t.prototype._next=function(e){this.hasPrev?this.destination.next([this.prev,e]):this.hasPrev=!0,this.prev=e},t}(y);function dr(e,t){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=e,n.thisArg=t,n}function pr(e,t){return function(n){return[Tt(e,t)(n),Tt(dr(e,t))(n)]}}function hr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(t){return Ee(fr(e,n))(t)}}function fr(e,t){return function(n){for(var r=n,i=0;i<t;i++){var o=r[e[i]];if(void 0===o)return;r=o}return r}}function mr(e){return e?Jn((function(){return new dn}),e):Jn(new dn)}var yr=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return r.__extends(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new cn;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(dn);function vr(e){return function(t){return Jn(new yr(e))(t)}}var gr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return r.__extends(t,e),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),h.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),h.EMPTY):e.prototype._subscribe.call(this,t)},t.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},t}(dn);function _r(){return function(e){return Jn(new gr)(e)}}var br=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return r.__extends(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(z),Sr=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(N))(br),wr=function(e){function t(t,n,r){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=e.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.__extends(t,e),t.prototype.nextInfiniteTimeWindow=function(t){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift(),e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this._events.push(new kr(this._getNow(),t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new cn;if(this.isStopped||this.hasError?t=h.EMPTY:(this.observers.push(e),t=new un(this,e)),i&&e.add(e=new rr(e,i)),n)for(var s=0;s<o&&!e.closed;s++)e.next(r[s]);else for(s=0;s<o&&!e.closed;s++)e.next(r[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},t.prototype._getNow=function(){return(this.scheduler||Sr).now()},t.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(e-r[o].time<n);)o++;return i>t&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r},t}(dn),kr=function(){return function(e,t){this.time=e,this.value=t}}();function Dr(e,t,n,r){n&&"function"!=typeof n&&(r=n);var i="function"==typeof n?n:void 0,o=new wr(e,t,r);return function(e){return Jn((function(){return o}),i)(e)}}function Tr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){if(!u(e[0]))return e[0];e=e[0]}return ye(e,void 0).lift(new xr)}var xr=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Er(e))},e}(),Er=function(e){function t(t){var n=e.call(this,t)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return r.__extends(t,e),t.prototype._next=function(e){this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var n=0;n<t&&!this.hasFirst;n++){var r=e[n],i=j(this,r,r,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},t.prototype.notifyNext=function(e,t,n,r,i){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var s=this.subscriptions[o];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(t)},t}(g);function Cr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return 1===e.length&&u(e[0])&&(e=e[0]),t.lift.call(Tr.apply(void 0,[t].concat(e)))}}function Ir(e){return void 0===e&&(e=-1),function(t){return 0===e?De():e<0?t.lift(new Rr(-1,t)):t.lift(new Rr(e-1,t))}}var Rr=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Or(e,this.count,this.source))},e}(),Or=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.count=n,i.source=r,i}return r.__extends(t,e),t.prototype.complete=function(){if(!this.isStopped){var t=this.source,n=this.count;if(0===n)return e.prototype.complete.call(this);n>-1&&(this.count=n-1),t.subscribe(this._unsubscribeAndRecycle())}},t}(y);function Pr(e){return function(t){return t.lift(new Mr(e))}}var Mr=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new Fr(e,this.notifier,t))},e}(),Fr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return r.__extends(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},t.prototype.notifyComplete=function(t){if(!1===this.sourceIsBeingSubscribedTo)return e.prototype.complete.call(this)},t.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return e.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},t.prototype._unsubscribe=function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,e.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},t.prototype.subscribeToRetries=function(){var t;this.notifications=new dn;try{t=(0,this.notifier)(this.notifications)}catch(t){return e.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=j(this,t)},t}(g);function jr(e){return void 0===e&&(e=-1),function(t){return t.lift(new Hr(e,t))}}var Hr=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Vr(e,this.count,this.source))},e}(),Vr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.count=n,i.source=r,i}return r.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return e.prototype.error.call(this,t);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},t}(y);function Ar(e){return function(t){return t.lift(new zr(e,t))}}var zr=function(){function e(e,t){this.notifier=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Wr(e,this.notifier,this.source))},e}(),Wr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.notifier=n,i.source=r,i}return r.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.errors,r=this.retries,i=this.retriesSubscription;if(r)this.errors=null,this.retriesSubscription=null;else{n=new dn;try{r=(0,this.notifier)(n)}catch(t){return e.prototype.error.call(this,t)}i=j(this,r)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=i,n.next(t)}},t.prototype._unsubscribe=function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype.notifyNext=function(e,t,n,r,i){var o=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=o,this.source.subscribe(this)},t}(g);function Nr(e){return function(t){return t.lift(new Br(e))}}var Br=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new Lr(e),r=t.subscribe(n);return r.add(j(n,this.notifier)),r},e}(),Lr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasValue=!1,t}return r.__extends(t,e),t.prototype._next=function(e){this.value=e,this.hasValue=!0},t.prototype.notifyNext=function(e,t,n,r,i){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},t}(g);function qr(e,t){return void 0===t&&(t=B),function(n){return n.lift(new Ur(e,t))}}var Ur=function(){function e(e,t){this.period=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new Gr(e,this.period,this.scheduler))},e}(),Gr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(Kr,n,{subscriber:i,period:n})),i}return r.__extends(t,e),t.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},t}(y);function Kr(e){var t=e.subscriber,n=e.period;t.notifyNext(),this.schedule(e,n)}function Yr(e,t){return function(n){return n.lift(new Zr(e,t))}}var Zr=function(){function e(e,t){this.compareTo=e,this.comparator=t}return e.prototype.call=function(e,t){return t.subscribe(new Xr(e,this.compareTo,this.comparator))},e}(),Xr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.compareTo=n,i.comparator=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new $r(t,i))),i}return r.__extends(t,e),t.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},t.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},t.prototype.checkValues=function(){for(var e=this._a,t=this._b,n=this.comparator;e.length>0&&t.length>0;){var r=e.shift(),i=t.shift(),o=!1;try{o=n?n(r,i):r===i}catch(e){this.destination.error(e)}o||this.emit(!1)}},t.prototype.emit=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},t.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},t}(y),$r=function(e){function t(t,n){var r=e.call(this,t)||this;return r.parent=n,r}return r.__extends(t,e),t.prototype._next=function(e){this.parent.nextB(e)},t.prototype._error=function(e){this.parent.error(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},t}(y);function Qr(){return new dn}function Jr(){return function(e){return Kn()(Jn(Qr)(e))}}function ei(e,t,n){var r;return r=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,r=e.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=e.windowTime,s=void 0===o?Number.POSITIVE_INFINITY:o,a=e.refCount,c=e.scheduler,u=0,l=!1,d=!1;return function(e){u++,t&&!l||(l=!1,t=new wr(i,s,c),n=e.subscribe({next:function(e){t.next(e)},error:function(e){l=!0,t.error(e)},complete:function(){d=!0,t.complete()}}));var r=t.subscribe(this);this.add((function(){u--,r.unsubscribe(),n&&!d&&a&&0===u&&(n.unsubscribe(),n=void 0,t=void 0)}))}}(r))}}function ti(e){return function(t){return t.lift(new ni(e,t))}}var ni=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new ri(e,this.predicate,this.source))},e}(),ri=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return r.__extends(t,e),t.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},t.prototype._next=function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)},t.prototype.tryNext=function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new Pt)},t}(y);function ii(e){return function(t){return t.lift(new oi(e))}}var oi=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new si(e,this.total))},e}(),si=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.__extends(t,e),t.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},t}(y);function ai(e){return function(t){return t.lift(new ci(e))}}var ci=function(){function e(e){if(this._skipCount=e,this._skipCount<0)throw new Dt}return e.prototype.call=function(e,t){return 0===this._skipCount?t.subscribe(new y(e)):t.subscribe(new ui(e,this._skipCount))},e}(),ui=function(e){function t(t,n){var r=e.call(this,t)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return r.__extends(t,e),t.prototype._next=function(e){var t=this._skipCount,n=this._count++;if(n<t)this._ring[n]=e;else{var r=n%t,i=this._ring,o=i[r];i[r]=e,this.destination.next(o)}},t}(y);function li(e){return function(t){return t.lift(new di(e))}}var di=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new pi(e,this.notifier))},e}(),pi=function(e){function t(t,n){var r=e.call(this,t)||this;r.hasValue=!1;var i=new _(r,void 0,void 0);return r.add(i),r.innerSubscription=i,j(r,n,void 0,void 0,i),r}return r.__extends(t,e),t.prototype._next=function(t){this.hasValue&&e.prototype._next.call(this,t)},t.prototype.notifyNext=function(e,t,n,r,i){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},t.prototype.notifyComplete=function(){},t}(g);function hi(e){return function(t){return t.lift(new fi(e))}}var fi=function(){function e(e){this.predicate=e}return e.prototype.call=function(e,t){return t.subscribe(new mi(e,this.predicate))},e}(),mi=function(e){function t(t,n){var r=e.call(this,t)||this;return r.predicate=n,r.skipping=!0,r.index=0,r}return r.__extends(t,e),t.prototype._next=function(e){var t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)},t.prototype.tryCallPredicate=function(e){try{var t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(e){this.destination.error(e)}},t}(y);function yi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n=e[e.length-1];q(n)?e.pop():n=null;var r=e.length;return He(1!==r||n?r>0?ye(e,n):De(n):Te(e[0]),t)}}var vi=1,gi={};var _i=function(e){var t=vi++;return gi[t]=e,Promise.resolve().then((function(){return function(e){var t=gi[e];t&&t()}(t)})),t},bi=function(e){delete gi[e]},Si=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return r.__extends(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=_i(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(bi(n),t.scheduled=void 0)},t}(z),wi=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r<i&&(e=n.shift()));if(this.active=!1,t){for(;++r<i&&(e=n.shift());)e.unsubscribe();throw t}},t}(N))(Si),ki=function(e){function t(t,n,r){void 0===n&&(n=0),void 0===r&&(r=wi);var i=e.call(this)||this;return i.source=t,i.delayTime=n,i.scheduler=r,(!L(n)||n<0)&&(i.delayTime=0),r&&"function"==typeof r.schedule||(i.scheduler=wi),i}return r.__extends(t,e),t.create=function(e,n,r){return void 0===n&&(n=0),void 0===r&&(r=wi),new t(e,n,r)},t.dispatch=function(e){var t=e.source,n=e.subscriber;return this.add(t.subscribe(n))},t.prototype._subscribe=function(e){var n=this.delayTime,r=this.source;return this.scheduler.schedule(t.dispatch,n,{source:r,subscriber:e})},t}(D);function Di(e,t){return void 0===t&&(t=0),function(n){return n.lift(new Ti(e,t))}}var Ti=function(){function e(e,t){this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return new ki(t,this.delay,this.scheduler).subscribe(e)},e}();function xi(e,t){return"function"==typeof t?function(n){return n.pipe(xi((function(n,r){return Se(e(n,r)).pipe(Ee((function(e,i){return t(n,e,r,i)})))})))}:function(t){return t.lift(new Ei(e))}}var Ei=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new Ci(e,this.project))},e}(),Ci=function(e){function t(t,n){var r=e.call(this,t)||this;return r.project=n,r.index=0,r}return r.__extends(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new _(this,void 0,void 0);this.destination.add(i),this.innerSubscription=j(this,e,t,n,i)},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t}(g);function Ii(){return xi(Me)}function Ri(e,t){return t?xi((function(){return e}),t):xi((function(){return e}))}function Oi(e){return function(t){return t.lift(new Pi(e))}}var Pi=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new Mi(e),r=j(n,this.notifier);return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n},e}(),Mi=function(e){function t(t){var n=e.call(this,t)||this;return n.seenValue=!1,n}return r.__extends(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.seenValue=!0,this.complete()},t.prototype.notifyComplete=function(){},t}(g);function Fi(e,t){return void 0===t&&(t=!1),function(n){return n.lift(new ji(e,t))}}var ji=function(){function e(e,t){this.predicate=e,this.inclusive=t}return e.prototype.call=function(e,t){return t.subscribe(new Hi(e,this.predicate,this.inclusive))},e}(),Hi=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.inclusive=r,i.index=0,i}return r.__extends(t,e),t.prototype._next=function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(e){return void n.error(e)}this.nextOrComplete(e,t)},t.prototype.nextOrComplete=function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())},t}(y),Vi={leading:!0,trailing:!1};function Ai(e,t){return void 0===t&&(t=Vi),function(n){return n.lift(new zi(e,t.leading,t.trailing))}}var zi=function(){function e(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}return e.prototype.call=function(e,t){return t.subscribe(new Wi(e,this.durationSelector,this.leading,this.trailing))},e}(),Wi=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.destination=t,o.durationSelector=n,o._leading=r,o._trailing=i,o._hasValue=!1,o}return r.__extends(t,e),t.prototype._next=function(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))},t.prototype.send=function(){var e=this._hasValue,t=this._sendValue;e&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=null},t.prototype.throttle=function(e){var t=this.tryDurationSelector(e);t&&this.add(this._throttled=j(this,t))},t.prototype.tryDurationSelector=function(e){try{return this.durationSelector(e)}catch(e){return this.destination.error(e),null}},t.prototype.throttlingDone=function(){var e=this._throttled,t=this._trailing;e&&e.unsubscribe(),this._throttled=null,t&&this.send()},t.prototype.notifyNext=function(e,t,n,r,i){this.throttlingDone()},t.prototype.notifyComplete=function(){this.throttlingDone()},t}(g);function Ni(e,t,n){return void 0===t&&(t=B),void 0===n&&(n=Vi),function(r){return r.lift(new Bi(e,t,n.leading,n.trailing))}}var Bi=function(){function e(e,t,n,r){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=r}return e.prototype.call=function(e,t){return t.subscribe(new Li(e,this.duration,this.scheduler,this.leading,this.trailing))},e}(),Li=function(e){function t(t,n,r,i,o){var s=e.call(this,t)||this;return s.duration=n,s.scheduler=r,s.leading=i,s.trailing=o,s._hasTrailingValue=!1,s._trailingValue=null,s}return r.__extends(t,e),t.prototype._next=function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(qi,this.duration,{subscriber:this})),this.leading&&this.destination.next(e))},t.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},t.prototype.clearThrottle=function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)},t}(y);function qi(e){e.subscriber.clearThrottle()}function Ui(e){return void 0===e&&(e=B),function(t){return n=function(){return t.pipe(jn((function(t,n){var r=t.current;return{value:n,current:e.now(),last:r}}),{current:e.now(),value:void 0,last:void 0}),Ee((function(e){var t=e.current,n=e.last,r=e.value;return new Gi(r,t-n)})))},new D((function(e){var t;try{t=n()}catch(t){return void e.error(t)}return(t?Se(t):De()).subscribe(e)}));var n}}var Gi=function(){return function(e,t){this.value=e,this.interval=t}}();function Ki(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}Ki.prototype=Object.create(Error.prototype);var Yi=Ki;function Zi(e,t,n){return void 0===n&&(n=B),function(r){var i=et(e),o=i?+e-n.now():Math.abs(e);return r.lift(new Xi(o,i,t,n))}}var Xi=function(){function e(e,t,n,r){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new $i(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},e}(),$i=function(e){function t(t,n,r,i,o){var s=e.call(this,t)||this;return s.absoluteTimeout=n,s.waitFor=r,s.withObservable=i,s.scheduler=o,s.action=null,s.scheduleTimeout(),s}return r.__extends(t,e),t.dispatchTimeout=function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add(j(e,t))},t.prototype.scheduleTimeout=function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(t.dispatchTimeout,this.waitFor,this))},t.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),e.prototype._next.call(this,t)},t.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},t}(g);function Qi(e,t){return void 0===t&&(t=B),Zi(e,tt(new Yi),t)}function Ji(e){return void 0===e&&(e=B),Ee((function(t){return new eo(t,e.now())}))}var eo=function(){return function(e,t){this.value=e,this.timestamp=t}}();function to(e,t,n){return 0===n?[t]:(e.push(t),e)}function no(){return An(to,[])}function ro(e){return function(t){return t.lift(new io(e))}}var io=function(){function e(e){this.windowBoundaries=e}return e.prototype.call=function(e,t){var n=new oo(e),r=t.subscribe(n);return r.closed||n.add(j(n,this.windowBoundaries)),r},e}(),oo=function(e){function t(t){var n=e.call(this,t)||this;return n.window=new dn,t.next(n.window),n}return r.__extends(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.openWindow()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){this._complete()},t.prototype._next=function(e){this.window.next(e)},t.prototype._error=function(e){this.window.error(e),this.destination.error(e)},t.prototype._complete=function(){this.window.complete(),this.destination.complete()},t.prototype._unsubscribe=function(){this.window=null},t.prototype.openWindow=function(){var e=this.window;e&&e.complete();var t=this.destination,n=this.window=new dn;t.next(n)},t}(g);function so(e,t){return void 0===t&&(t=0),function(n){return n.lift(new ao(e,t))}}var ao=function(){function e(e,t){this.windowSize=e,this.startWindowEvery=t}return e.prototype.call=function(e,t){return t.subscribe(new co(e,this.windowSize,this.startWindowEvery))},e}(),co=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.destination=t,i.windowSize=n,i.startWindowEvery=r,i.windows=[new dn],i.count=0,t.next(i.windows[0]),i}return r.__extends(t,e),t.prototype._next=function(e){for(var t=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,s=0;s<o&&!this.closed;s++)i[s].next(e);var a=this.count-r+1;if(a>=0&&a%t==0&&!this.closed&&i.shift().complete(),++this.count%t==0&&!this.closed){var c=new dn;i.push(c),n.next(c)}},t.prototype._error=function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()},t.prototype._unsubscribe=function(){this.count=0,this.windows=null},t}(y);function uo(e){var t=B,n=null,r=Number.POSITIVE_INFINITY;return q(arguments[3])&&(t=arguments[3]),q(arguments[2])?t=arguments[2]:L(arguments[2])&&(r=arguments[2]),q(arguments[1])?t=arguments[1]:L(arguments[1])&&(n=arguments[1]),function(i){return i.lift(new lo(e,n,r,t))}}var lo=function(){function e(e,t,n,r){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new ho(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},e}(),po=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return r.__extends(t,e),t.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(t.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),t}(dn),ho=function(e){function t(t,n,r,i,o){var s=e.call(this,t)||this;s.destination=t,s.windowTimeSpan=n,s.windowCreationInterval=r,s.maxWindowSize=i,s.scheduler=o,s.windows=[];var a=s.openWindow();if(null!==r&&r>=0){var c={subscriber:s,window:a,context:null},u={windowTimeSpan:n,windowCreationInterval:r,subscriber:s,scheduler:o};s.add(o.schedule(yo,n,c)),s.add(o.schedule(mo,r,u))}else{var l={subscriber:s,window:a,windowTimeSpan:n};s.add(o.schedule(fo,n,l))}return s}return r.__extends(t,e),t.prototype._next=function(e){for(var t=this.windows,n=t.length,r=0;r<n;r++){var i=t[r];i.closed||(i.next(e),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}},t.prototype._error=function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()},t.prototype.openWindow=function(){var e=new po;return this.windows.push(e),this.destination.next(e),e},t.prototype.closeWindow=function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)},t}(y);function fo(e){var t=e.subscriber,n=e.windowTimeSpan,r=e.window;r&&t.closeWindow(r),e.window=t.openWindow(),this.schedule(e,n)}function mo(e){var t=e.windowTimeSpan,n=e.subscriber,r=e.scheduler,i=e.windowCreationInterval,o=n.openWindow(),s={action:this,subscription:null},a={subscriber:n,window:o,context:s};s.subscription=r.schedule(yo,t,a),this.add(s.subscription),this.schedule(e,i)}function yo(e){var t=e.subscriber,n=e.window,r=e.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),t.closeWindow(n)}function vo(e,t){return function(n){return n.lift(new go(e,t))}}var go=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new _o(e,this.openings,this.closingSelector))},e}(),_o=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=j(i,n,n)),i}return r.__extends(t,e),t.prototype._next=function(e){var t=this.contexts;if(t)for(var n=t.length,r=0;r<n;r++)t[r].window.next(e)},t.prototype._error=function(t){var n=this.contexts;if(this.contexts=null,n)for(var r=n.length,i=-1;++i<r;){var o=n[i];o.window.error(t),o.subscription.unsubscribe()}e.prototype._error.call(this,t)},t.prototype._complete=function(){var t=this.contexts;if(this.contexts=null,t)for(var n=t.length,r=-1;++r<n;){var i=t[r];i.window.complete(),i.subscription.unsubscribe()}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.contexts;if(this.contexts=null,e)for(var t=e.length,n=-1;++n<t;){var r=e[n];r.window.unsubscribe(),r.subscription.unsubscribe()}},t.prototype.notifyNext=function(e,t,n,r,i){if(e===this.openings){var o=void 0;try{o=(0,this.closingSelector)(t)}catch(e){return this.error(e)}var s=new dn,a=new h,c={window:s,subscription:a};this.contexts.push(c);var u=j(this,o,c);u.closed?this.closeWindow(this.contexts.length-1):(u.context=c,a.add(u)),this.destination.next(s)}else this.closeWindow(this.contexts.indexOf(e))},t.prototype.notifyError=function(e){this.error(e)},t.prototype.notifyComplete=function(e){e!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(e.context))},t.prototype.closeWindow=function(e){if(-1!==e){var t=this.contexts,n=t[e],r=n.window,i=n.subscription;t.splice(e,1),r.complete(),i.unsubscribe()}},t}(g);function bo(e){return function(t){return t.lift(new So(e))}}var So=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new wo(e,this.closingSelector))},e}(),wo=function(e){function t(t,n){var r=e.call(this,t)||this;return r.destination=t,r.closingSelector=n,r.openWindow(),r}return r.__extends(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.openWindow(i)},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){this.openWindow(e)},t.prototype._next=function(e){this.window.next(e)},t.prototype._error=function(e){this.window.error(e),this.destination.error(e),this.unsubscribeClosingNotification()},t.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},t.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},t.prototype.openWindow=function(e){void 0===e&&(e=null),e&&(this.remove(e),e.unsubscribe());var t=this.window;t&&t.complete();var n,r=this.window=new dn;this.destination.next(r);try{n=(0,this.closingSelector)()}catch(e){return this.destination.error(e),void this.window.error(e)}this.add(this.closingNotification=j(this,n))},t}(g);function ko(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n;"function"==typeof e[e.length-1]&&(n=e.pop());var r=e;return t.lift(new Do(r,n))}}var Do=function(){function e(e,t){this.observables=e,this.project=t}return e.prototype.call=function(e,t){return t.subscribe(new To(e,this.observables,this.project))},e}(),To=function(e){function t(t,n,r){var i=e.call(this,t)||this;i.observables=n,i.project=r,i.toRespond=[];var o=n.length;i.values=new Array(o);for(var s=0;s<o;s++)i.toRespond.push(s);for(s=0;s<o;s++){var a=n[s];i.add(j(i,a,a,s))}return i}return r.__extends(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.values[n]=t;var o=this.toRespond;if(o.length>0){var s=o.indexOf(n);-1!==s&&o.splice(s,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(g);function xo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return"function"==typeof n&&e.pop(),ye(e,void 0).lift(new Eo(n))}var Eo=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Co(e,this.resultSelector))},e}(),Co=function(e){function t(t,n,r){void 0===r&&(r=Object.create(null));var i=e.call(this,t)||this;return i.iterators=[],i.active=0,i.resultSelector="function"==typeof n?n:null,i.values=r,i}return r.__extends(t,e),t.prototype._next=function(e){var t=this.iterators;u(e)?t.push(new Ro(e)):"function"==typeof e[I]?t.push(new Io(e[I]())):t.push(new Oo(this.destination,this,e))},t.prototype._complete=function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(var n=0;n<t;n++){var r=e[n];if(r.stillUnsubscribed)this.destination.add(r.subscribe(r,n));else this.active--}}else this.destination.complete()},t.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},t.prototype.checkIterators=function(){for(var e=this.iterators,t=e.length,n=this.destination,r=0;r<t;r++){if("function"==typeof(s=e[r]).hasValue&&!s.hasValue())return}var i=!1,o=[];for(r=0;r<t;r++){var s,a=(s=e[r]).next();if(s.hasCompleted()&&(i=!0),a.done)return void n.complete();o.push(a.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),i&&n.complete()},t.prototype._tryresultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(y),Io=function(){function e(e){this.iterator=e,this.nextResult=e.next()}return e.prototype.hasValue=function(){return!0},e.prototype.next=function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e},e.prototype.hasCompleted=function(){var e=this.nextResult;return e&&e.done},e}(),Ro=function(){function e(e){this.array=e,this.index=0,this.length=0,this.length=e.length}return e.prototype[I]=function(){return this},e.prototype.next=function(e){var t=this.index++,n=this.array;return t<this.length?{value:n[t],done:!1}:{value:null,done:!0}},e.prototype.hasValue=function(){return this.array.length>this.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),Oo=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return r.__extends(t,e),t.prototype[I]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,i){this.buffer.push(t),this.parent.checkIterators()},t.prototype.subscribe=function(e,t){return j(this,this.observable,this,t)},t}(g);function Po(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(xo.apply(void 0,[t].concat(e)))}}function Mo(e){return function(t){return t.lift(new Eo(e))}}},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(6),s=function(){function e(){this.createElement=new i.EventEmitter,this.exportClick=new i.EventEmitter,this.done=new i.EventEmitter,this.elementReady=new i.EventEmitter}return e.prototype.save=function(){if(o.hasObservers(this.elementReady)){if(o.hasObservers(this.createElement))this.createElement.emit();else if(i.isDevMode())throw new Error("No active Scheduler view to export.")}else if(i.isDevMode())throw new Error("Creating PDF requires including the PDFModule and adding the <kendo-scheduler-pdf> component.")},e=r.__decorate([i.Injectable()],e)}();t.PDFService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),i=function(e){return String(e).trim().split(" ")};t.hasClasses=function(e,t){var n=i(t);return Boolean(i(e.className).find((function(e){return n.indexOf(e)>=0})))},t.matchesClasses=function(e){return function(n){return t.hasClasses(n,e)}},t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},t.firstElementChild=function(e){for(var t=e.children,n=t.length,r=0;r<n;r++)if(1===t[r].nodeType)return t[r]},t.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},t.wheelDeltaY=function(e){var t=e.wheelDeltaY;return e.wheelDelta&&(void 0===t||t)?e.wheelDelta:e.detail&&e.axis===e.VERTICAL_AXIS?10*-e.detail:0},t.preventLockedScroll=function(e){return function(n){var r=t.wheelDeltaY(n),i=e.scrollTop;0===i&&0<r||e.scrollHeight<=e.offsetHeight+i&&r<0||n.preventDefault()}};var o=0;t.scrollbarWidth=function(){if(!o&&r.isDocumentAvailable()){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),o=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return o},t.hasScrollbar=function(e,t){var n="vertical"===t?"Height":"Width";return e["scroll"+n]>e["client"+n]},t.rtlScrollPosition=function(e,t){var n=e.scrollLeft,r=t;return e.scrollLeft=-1,e.scrollLeft<0?r=-t:n>0&&(r=e.scrollWidth-e.offsetWidth-t),r},t.isVisible=function(e){var t=e.getBoundingClientRect(),n=t.width>0&&t.height>0,r=0!==t.x&&0!==t.y;return(n||r)&&"hidden"!==window.getComputedStyle(e).visibility}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIDNIGHT_INVARIANT=new Date(1980,0,1),t.INVARIANT_END=new Date(1980,0,2),t.MS_PER_SECOND=1e3,t.MS_PER_MINUTE=60*t.MS_PER_SECOND,t.MS_PER_HOUR=60*t.MS_PER_MINUTE;var r=n(4);t.MS_PER_DAY=r.MS_PER_DAY,t.BORDER_WIDTH=1,t.DEFAULT_EVENT_HEIGHT=25},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),s=n(6),a=n(6),c=n(4),u=n(105),l=n(106),d=n(27),p=n(34),h=n(24),f=n(11),m=n(35),y=n(36),v=n(37),g=n(38),_=n(39),b=n(40),S=n(41),w=n(42),k=n(43),D=n(44),T=n(45),x=n(10),E=n(9),C=n(71),I=n(46),R=n(15),O=n(47),P=n(48),M=n(76),F=n(77),j=n(3),H=n(7),V=n(16),A=n(78),z=n(79),W=n(20),N=n(49),B=n(17),L=n(5),q=n(33),U=n(69),G=function(){function e(e,t,n,r,o,s,a,c,d,p,h,f,m){this.wrapper=e,this.viewContext=t,this.viewState=n,this.editService=r,this.dialogsService=o,this.intlService=s,this.changeDetector=a,this.zone=c,this.pdfService=d,this.localization=p,this.domEvents=h,this.renderer=f,this.focusService=m,this.hostClasses=!0,this.rtl=!1,this.editable=!1,this.selectable=!1,this.eventHeight=25,this.columnWidth=100,this.startTime="00:00",this.endTime="00:00",this.workDayStart="08:00",this.workDayEnd="17:00",this.slotDuration=60,this.slotDivisions=2,this.slotFill=.9,this.scrollTime=this.workDayStart,this.currentTimeMarker=!0,this.isSlotSelected=L.alwaysFalse,this.selectedViewIndexChange=new i.EventEmitter,this.navigate=new i.EventEmitter,this.dateChange=new i.EventEmitter,this.slotClick=new i.EventEmitter,this.slotDblClick=new i.EventEmitter,this.create=new i.EventEmitter,this.eventClick=new i.EventEmitter,this.eventDblClick=new i.EventEmitter,this.eventKeydown=new i.EventEmitter,this.cancel=new i.EventEmitter,this.save=new i.EventEmitter,this.remove=new i.EventEmitter,this.resizeStart=new i.EventEmitter,this.resize=new i.EventEmitter,this.resizeEnd=new i.EventEmitter,this.dragStart=new i.EventEmitter,this.drag=new i.EventEmitter,this.dragEnd=new i.EventEmitter,this.slotDragStart=new i.EventEmitter,this.slotDrag=new i.EventEmitter,this.slotDragEnd=new i.EventEmitter,this.pdfExport=new i.EventEmitter,this.dragEndConfirmed=new i.EventEmitter,this.resizeEndConfirmed=new i.EventEmitter,this.removeConfirmed=new i.EventEmitter,this.viewIndex=0,this._timezone="",this._modelFields=F.defaultModelFields,u.validatePackage(l.packageMetadata),this.dateRangeStream=n.dateRange,this.selectedDateStream=t.selectedDate}return Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedViewIndex",{get:function(){return this.viewIndex},set:function(e){this.viewIndex=e,this.onViewIndexChange()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekStart",{get:function(){return j.isPresent(this._weekStart)?this._weekStart:this.intlService.firstDay()},set:function(e){this._weekStart=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timezone",{get:function(){return this._timezone},set:function(e){this._timezone=e,this.events=this.events||[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){return this._events},set:function(e){this._events=e,this.processEvents(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedDate",{get:function(){return this._selectedDate},set:function(e){e&&(this._selectedDate=e,this.viewContext.notifySelectedDate(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"modelFields",{get:function(){return this._modelFields},set:function(e){this._modelFields=r.__assign({},F.defaultModelFields,e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.selectedDate||(this.selectedDate=c.getDate(new Date))},e.prototype.ngAfterContentInit=function(){var e=this;if(i.isDevMode()&&0===this.views.length)throw new Error("No views declared for <kendo-scheduler>. Please, declare at least one view.");this.subs=this.views.changes.subscribe((function(){return e.resetViewIndex()})),this.subs.add(this.intlService.changes.subscribe(this.intlChange.bind(this))),this.subs.add(this.viewState.nextDate.subscribe((function(t){e.selectedDate=t}))),this.subs.add(this.viewState.dateRange.subscribe((function(t){if(!(0===t.start.getTime())){var n=new d.DateChangeEvent(e,e.selectedDate,t);e.dateChange.emit(n)}}))),this.subs.add(this.viewState.navigate.subscribe((function(t){var n=t.viewName,r=t.date,i=e.views.toArray(),o=i.find((function(e){return e.name===n})),s=new d.NavigateEvent(e,{type:"show-date",view:o||{name:n,title:n},date:r});if(e.navigate.next(s),o&&!s.isDefaultPrevented()){var a=i.indexOf(o);e.selectedView=o,e.setViewIndex(a),e.selectedDate=r}}))),this.subs.add(this.viewState.viewEvent.subscribe((function(t){var n=t.name,r=t.args,i=e[n],o=e[n+"Confirmed"];(a.hasObservers(i)||o&&a.hasObservers(o))&&e.zone.run((function(){var t=new d.VIEW_EVENT_MAP[n](e,r);i.emit(t),r.prevented=t.prevented,o&&!r.prevented&&o.emit(t)}))}))),this.subs.add(this.viewState.layoutEnd.subscribe((function(){e.resizeSensor&&e.resizeSensor.acceptSize()}))),this.subs.add(this.viewState.slotSelectionStart.subscribe((function(t){a.hasObservers(e.slotDragStart)&&e.zone.run((function(){e.slotDragStart.emit(Object.assign(t,{sender:e}))}))}))),this.subs.add(this.viewState.slotSelectionDrag.subscribe((function(t){a.hasObservers(e.slotDrag)&&e.zone.run((function(){e.slotDrag.emit(new q.SlotDragEvent(e,t))}))}))),this.subs.add(this.viewState.slotSelectionEnd.subscribe((function(t){a.hasObservers(e.slotDragEnd)&&e.zone.run((function(){e.slotDragEnd.emit(new U.SlotDragEndEvent(e,t))}))}))),this.onViewIndexChange(),this.notifyOptionsChange=this.notifyOptionsChange.bind(this),this.subs.add(this.allDayEventTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.eventTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.timeSlotTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.timeSlotTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.minorTimeHeaderTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.majorTimeHeaderTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.monthDaySlotTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.dateHeaderTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.allDaySlotTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.groupHeaderTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.agendaDateTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.agendaTimeTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.views.changes.subscribe((function(){e.changeDetector.markForCheck()}))),this.attachEditHandlers(),this.dialogsService.container=this.confirmationDialogContainerRef,this.notifyOptionsChange(),this.subs.add(this.pdfService.exportClick.subscribe((function(){var t=new A.PDFExportEvent;e.pdfExport.emit(t),t.isDefaultPrevented()||e.saveAsPDF()}))),this.subs.add(this.pdfService.done.subscribe((function(){e.loadingComponent.toggle(!1)}))),this.subs.add(this.localization.changes.subscribe((function(t){var n=t.rtl;e.rtl=n,e.direction=e.rtl?"rtl":"ltr"}))),this.subs.add(this.viewState.optionsChange.subscribe((function(){e.changeDetector.markForCheck()}))),this.attachElementEventHandlers()},e.prototype.ngOnChanges=function(e){var t=this;a.isChanged("resources",e)&&!a.isChanged("events",e)&&this.viewItems&&this.viewItems.forEach((function(e){j.copyResources(e.event,t.resources)})),a.anyChanged(["group","resources","min","max","showWorkHours","startTime","scrollTime","endTime","eventHeight","workDayStart","workDayEnd","workWeekStart","workWeekEnd","weekStart","slotDuration","slotDivisions","editable","timezone","slotClass","slotFill","columnWidth","eventClass","eventStyles","isSlotSelected","selectable"],e)&&this.notifyOptionsChange(e)},e.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe(),this.detachElementEventHandlers&&this.detachElementEventHandlers()},e.prototype.onResize=function(e){this.viewContext.notifyResize()},e.prototype.onNavigationAction=function(e){var t=new d.NavigateEvent(this,e);if(this.navigate.next(t),t.isDefaultPrevented())return!0;if("view-change"===e.type){var n=this.views.toArray().indexOf(e.view);this.selectedView=e.view,this.setViewIndex(n)}else if("select-date"===e.type)this.isInRange(e.date)&&(this.selectedDate=e.date);else if("today"===e.type){var r=new Date;this.isInRange(r)&&(this.selectedDate=r)}else this.viewContext.notifyAction(e)},e.prototype.addEvent=function(e){var t;if(!(e instanceof R.FormGroup)){var n=Object.keys(e).reduce((t=e,function(e,n){return e[n]=new R.FormControl(t[n]),e}),{});e=new R.FormGroup(n)}this.editService.addEvent(e)},e.prototype.editEvent=function(e,t){void 0===t&&(t={});var n=t.group,r=t.mode;this.editService.editEvent(e,n,r)},e.prototype.closeEvent=function(){this.editService.close()},e.prototype.isEditing=function(){return this.editService.isEditing()},e.prototype.openRecurringConfirmationDialog=function(e){return this.dialogsService.openRecurringConfirmationDialog(e)},e.prototype.openRemoveConfirmationDialog=function(){return this.dialogsService.openRemoveConfirmationDialog()},e.prototype.saveAsPDF=function(){var e=this;this.loadingComponent.toggle(!0),this.zone.runOutsideAngular((function(){setTimeout((function(){e.pdfService.save()}),0)}))},e.prototype.scrollToTime=function(e){this.viewContext.notifyAction({type:"scroll-time",time:e})},e.prototype.slotByPosition=function(e,t){return this.viewContext.executeMethod("slotByPosition",{x:e,y:t})},e.prototype.eventFromElement=function(e){return this.viewContext.executeMethod("eventFromElement",{element:e})},Object.defineProperty(e.prototype,"activeEvent",{get:function(){var e=this.focusService.activeElement;if(e)return this.eventFromElement(e.nativeElement)},enumerable:!0,configurable:!0}),e.prototype.focusNext=function(e){return this.focusService.focusNext(e)},e.prototype.focusPrev=function(e){var t=r.__assign({offset:-1},e);return this.focusService.focusNext(t)},e.prototype.focus=function(){return this.focusService.focus()},e.prototype.isInRange=function(e){return(!this.min||this.min<=e)&&(!this.max||e<=this.max)},e.prototype.notifyOptionsChange=function(e){var t=this.workWeek;this.viewContext.notifyOptionsChange({group:this.group,resources:this.resources,allDayEventTemplate:this.allDayEventTemplate?this.allDayEventTemplate.first:null,eventTemplate:this.eventTemplate?this.eventTemplate.first:null,timeSlotTemplate:this.timeSlotTemplate?this.timeSlotTemplate.first:null,minorTimeHeaderTemplate:this.minorTimeHeaderTemplate?this.minorTimeHeaderTemplate.first:null,majorTimeHeaderTemplate:this.majorTimeHeaderTemplate?this.majorTimeHeaderTemplate.first:null,monthDaySlotTemplate:this.monthDaySlotTemplate?this.monthDaySlotTemplate.first:null,dateHeaderTemplate:this.dateHeaderTemplate?this.dateHeaderTemplate.first:null,allDaySlotTemplate:this.allDaySlotTemplate?this.allDaySlotTemplate.first:null,groupHeaderTemplate:this.groupHeaderTemplate?this.groupHeaderTemplate.first:null,agendaDateTemplate:this.agendaDateTemplate?this.agendaDateTemplate.first:null,agendaTimeTemplate:this.agendaTimeTemplate?this.agendaTimeTemplate.first:null,min:this.min,max:this.max,showWorkHours:this.showWorkHours,startTime:this.startTime,scrollTime:this.scrollTime,endTime:this.endTime,workDayStart:this.workDayStart,workDayEnd:this.workDayEnd,workWeekStart:t.start,workWeekEnd:t.end,weekStart:this.weekStart,slotDuration:this.slotDuration,slotDivisions:this.slotDivisions,eventHeight:this.eventHeight,editable:this.editable,selectable:this.selectable,timezone:this.timezone,currentTimeMarker:this.currentTimeMarker,slotClass:this.slotClass,slotFill:this.slotFill,columnWidth:this.columnWidth,eventClass:this.eventClass,eventStyles:this.eventStyles,isSlotSelected:this.isSlotSelected,changes:e})},Object.defineProperty(e.prototype,"workWeek",{get:function(){var e=this.intlService.weekendRange(),t=e.start,n=e.end,r=j.isPresent(this.workWeekStart)?this.workWeekStart:(n+1)%7,i=t>0?t-1:c.Day.Saturday;return{start:r,end:j.isPresent(this.workWeekEnd)?this.workWeekEnd:i}},enumerable:!0,configurable:!0}),e.prototype.resetViewIndex=function(){var e=this.selectedViewIndex,t=Math.max(0,Math.min(e,this.views.length-1));this.setViewIndex(t),this.onViewIndexChange()},e.prototype.onViewIndexChange=function(){if(this.views){var e=this.views.toArray()[this.viewIndex];e&&(this.selectedView=e)}},e.prototype.setViewIndex=function(e){var t=this.selectedViewIndex!==e;return t&&(this.selectedViewIndex=e,this.selectedViewIndexChange.emit(e)),t},e.prototype.processEvents=function(e){var t=this,n=this.timezone,r=this.modelFields,i=e.map((function(e){return j.readEvent(e,r,t.resources)})).filter((function(e){return!j.isRecurrenceMaster(e)})).map((function(e){return{start:c.ZonedDate.fromLocalDate(e.start,n),end:c.ZonedDate.fromLocalDate(e.end,n),event:e}}));this.viewItems=i,this.viewContext.notifyItems(i)},e.prototype.attachEditHandlers=function(){this.editService&&this.subs.add(this.editService.changes.subscribe(this.emitCRUDEvent.bind(this)))},e.prototype.emitCRUDEvent=function(e){switch(Object.assign(e,{sender:this}),e.action){case"cancel":this.cancel.emit(e);break;case"save":this.save.emit(e)}},e.prototype.intlChange=function(){var e=this.selectedView;this.selectedView=null,j.isPresent(this.workWeekStart)&&j.isPresent(this.workWeekEnd)||this.notifyOptionsChange(),this.changeDetector.detectChanges(),this.selectedView=e,i.NgZone.isInAngularZone()?this.changeDetector.markForCheck():this.changeDetector.detectChanges()},e.prototype.attachElementEventHandlers=function(){var e=this;if(s.isDocumentAvailable()){var t=this.wrapper.nativeElement;this.zone.runOutsideAngular((function(){var n=e.renderer.listen("window","blur",(function(t){e.domEvents.windowBlur.emit(t)})),r=e.renderer.listen(t,"click",(function(t){e.domEvents.click.emit(t)})),i=e.renderer.listen(t,"keydown",(function(t){e.domEvents.keydown.emit(t)})),o=!1,s=e.renderer.listen(t,"focusin",(function(t){e.domEvents.focus.emit(t),o||(e.domEvents.focusIn.emit(t),e.renderer.addClass(e.wrapper.nativeElement,"k-state-focused"),o=!0)})),a=e.renderer.listen(t,"focusout",(function(n){var r=n.relatedTarget||document.activeElement;!B.closest(r,(function(e){return e===t}))&&(e.domEvents.focusOut.emit(n),e.renderer.removeClass(e.wrapper.nativeElement,"k-state-focused"),o=!1)}));e.detachElementEventHandlers=function(){n(),r(),i(),s(),a()}}))}},r.__decorate([i.HostBinding("class.k-widget"),i.HostBinding("class.k-scheduler"),i.HostBinding("class.k-floatwrap"),r.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),r.__decorate([i.HostBinding("class.k-rtl"),r.__metadata("design:type",Boolean)],e.prototype,"rtl",void 0),r.__decorate([i.HostBinding("attr.dir"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"dir",null),r.__decorate([i.Input(),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[Number])],e.prototype,"selectedViewIndex",null),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"editable",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"selectable",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],e.prototype,"min",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],e.prototype,"max",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"eventHeight",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"columnWidth",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"showWorkHours",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"startTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"endTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"workDayStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"workDayEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"workWeekStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"workWeekEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[Number])],e.prototype,"weekStart",null),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"slotDuration",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"slotDivisions",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"slotFill",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"scrollTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"group",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],e.prototype,"resources",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"loading",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],e.prototype,"timezone",null),r.__decorate([i.Input(),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],e.prototype,"events",null),r.__decorate([i.Input(),r.__metadata("design:type",Date),r.__metadata("design:paramtypes",[Date])],e.prototype,"selectedDate",null),r.__decorate([i.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],e.prototype,"modelFields",null),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"currentTimeMarker",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"slotClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"eventClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"eventStyles",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"isSlotSelected",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"selectedViewIndexChange",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"navigate",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"dateChange",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"slotClick",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"slotDblClick",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"create",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"eventClick",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"eventDblClick",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"eventKeydown",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"cancel",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"save",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"remove",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"resizeStart",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"resize",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"resizeEnd",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"dragStart",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"drag",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"dragEnd",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"slotDragStart",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"slotDrag",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"slotDragEnd",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"pdfExport",void 0),r.__decorate([i.ContentChild(I.EditDialogTemplateDirective,{static:!1}),r.__metadata("design:type",I.EditDialogTemplateDirective)],e.prototype,"editDialogTemplate",void 0),r.__decorate([i.ContentChild(p.ToolbarTemplateDirective,{static:!1}),r.__metadata("design:type",p.ToolbarTemplateDirective)],e.prototype,"toolbarTemplate",void 0),r.__decorate([i.ContentChildren(f.SchedulerView),r.__metadata("design:type",i.QueryList)],e.prototype,"views",void 0),r.__decorate([i.ViewChild(s.ResizeSensorComponent,{static:!0}),r.__metadata("design:type",s.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),r.__decorate([i.ViewChild("confirmationDialogContainer",{read:i.ViewContainerRef,static:!0}),r.__metadata("design:type",i.ViewContainerRef)],e.prototype,"confirmationDialogContainerRef",void 0),r.__decorate([i.ViewChild(z.LoadingComponent,{static:!0}),r.__metadata("design:type",z.LoadingComponent)],e.prototype,"loadingComponent",void 0),r.__decorate([i.ContentChildren(v.AllDayEventTemplateDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"allDayEventTemplate",void 0),r.__decorate([i.ContentChildren(b.EventTemplateDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"eventTemplate",void 0),r.__decorate([i.ContentChildren(T.TimeSlotTemplateDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"timeSlotTemplate",void 0),r.__decorate([i.ContentChildren(k.MinorTimeHeaderTemplateDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"minorTimeHeaderTemplate",void 0),r.__decorate([i.ContentChildren(w.MajorTimeHeaderTemplateDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"majorTimeHeaderTemplate",void 0),r.__decorate([i.ContentChildren(D.MonthDaySlotTemplateDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"monthDaySlotTemplate",void 0),r.__decorate([i.ContentChildren(_.DateHeaderTemplateDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"dateHeaderTemplate",void 0),r.__decorate([i.ContentChildren(g.AllDaySlotTemplateDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"allDaySlotTemplate",void 0),r.__decorate([i.ContentChildren(S.GroupHeaderTemplateDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"groupHeaderTemplate",void 0),r.__decorate([i.ContentChildren(m.AgendaDateTemplateDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"agendaDateTemplate",void 0),r.__decorate([i.ContentChildren(y.AgendaTimeTemplateDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"agendaTimeTemplate",void 0),e=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler",providers:[C.EditService,P.DialogsService,N.DomEventsService,O.LocalDataChangesService,W.FocusService,M.SchedulerLocalizationService,{provide:o.LocalizationService,useExisting:M.SchedulerLocalizationService},{provide:o.L10N_PREFIX,useValue:"kendo.scheduler"},h.ToolbarService,x.ViewContextService,E.ViewStateService,V.PDFService],styles:[".k-scheduler.k-state-focused { box-shadow: 0 0.5px 0.5px 0.5px rgba(0, 0, 0, .12); }"],encapsulation:i.ViewEncapsulation.None,template:'\n <ng-container kendoSchedulerLocalizedMessages\n i18n-allEvents="kendo.scheduler.allEvents|The All events text displayed in the timeline views when there is no vertical grouping."\n allEvents="All events"\n\n i18n-allDay="kendo.scheduler.allDay|The all day text displayed in the day and week views."\n allDay="all day"\n\n i18n-dateHeader="kendo.scheduler.dateHeader|The date header text displayed in the agenda view."\n dateHeader="Date"\n\n i18n-timeHeader="kendo.scheduler.timeHeader|The time header text displayed in the agenda view."\n timeHeader="Time"\n\n i18n-deleteTitle="kendo.scheduler.deleteTitle|The delete icon title."\n deleteTitle="Delete"\n\n i18n-eventHeader="kendo.scheduler.eventHeader|The event header text displayed in the agenda view."\n eventHeader="Event"\n\n i18n-nextTitle="kendo.scheduler.nextTitle|The title of the navigation next button."\n nextTitle="Next"\n\n i18n-previousTitle="kendo.scheduler.previousTitle|The title of the navigation previous button."\n previousTitle="Previous"\n\n i18n-showFullDay="kendo.scheduler.showFullDay|The text of the show full day button displayed in the footer of the day, week and timeline views."\n showFullDay="Show full day"\n\n i18n-showWorkDay="kendo.scheduler.showWorkDay|The text of the show work day button displayed in the footer of the day, week and timeline views."\n showWorkDay="Show business hours"\n\n i18n-today="kendo.scheduler.today|The today button text displayed in the navigation."\n today="Today"\n\n i18n-calendarToday="kendo.scheduler.calendarToday|The text of today\'s date in the header of the Calendar."\n calendarToday="TODAY"\n\n i18n-dayViewTitle="kendo.scheduler.dayViewTitle|The day view title."\n dayViewTitle="Day"\n\n i18n-multiDayViewTitle="kendo.scheduler.multiDayViewTitle|The multi day view title."\n multiDayViewTitle="Multi-Day"\n\n i18n-weekViewTitle="kendo.scheduler.weekViewTitle|The week view title."\n weekViewTitle="Week"\n\n i18n-workWeekViewTitle="kendo.scheduler.workWeekViewTitle|The work week view title."\n workWeekViewTitle="Work Week"\n\n i18n-monthViewTitle="kendo.scheduler.monthViewTitle|The month view title."\n monthViewTitle="Month"\n\n i18n-timelineViewTitle="kendo.scheduler.timelineViewTitle|The timeline view title."\n timelineViewTitle="Timeline"\n\n i18n-timelineWeekViewTitle="kendo.scheduler.timelineWeekViewTitle|The timeline week view title."\n timelineWeekViewTitle="Timeline Week"\n\n i18n-timelineMonthViewTitle="kendo.scheduler.timelineMonthViewTitle|The timeline month view title."\n timelineMonthViewTitle="Timeline Month"\n\n i18n-agendaViewTitle="kendo.scheduler.agendaViewTitle|The agenda view title."\n agendaViewTitle="Agenda"\n\n i18n-cancel="kendo.scheduler.cancel|The text similar to \'Cancel\' displayed in scheduler."\n cancel="Cancel"\n\n i18n-save="kendo.scheduler.save|The text similar to \'Save\' displayed in scheduler."\n save="Save"\n\n i18n-editorEventTitle="kendo.scheduler.editorEventTitle|The text similar to \'Title\' displayed in the scheduler event editor."\n editorEventTitle=\'Title\'\n\n i18n-editorEventStart="kendo.scheduler.editorEventStart|The text similar to \'Start\' displayed in the scheduler event editor."\n editorEventStart="Start"\n\n i18n-editorEventStartTimeZone="kendo.scheduler.editorEventStartTimeZone|The text similar to \'Start Time Zone\' displayed in the scheduler event editor."\n editorEventStartTimeZone="Start Time Zone"\n\n i18n-editorEventEnd="kendo.scheduler.editorEventEnd|The text similar to \'End\' displayed in the scheduler event editor."\n editorEventEnd="End"\n\n i18n-editorEventEndTimeZone="kendo.scheduler.editorEventEndTimeZone|The text similar to \'End Time Zone\' displayed in the scheduler event editor."\n editorEventEndTimeZone="End Time Zone"\n\n i18n-editorEventAllDay="kendo.scheduler.editorEventAllDay|The text similar to \'All Day event\' displayed in the scheduler event editor."\n editorEventAllDay="All Day Event"\n\n i18n-editorEventDescription="kendo.scheduler.editorEventDescription|The text similar to \'Description\' displayed in the scheduler event editor."\n editorEventDescription="Description"\n\n i18n-editorEventSeparateTimeZones="kendo.scheduler.editorEventSeparateTimeZones|The text similar to \'Use separate Start and End Time Zones\' displayed in the scheduler event editor."\n editorEventSeparateTimeZones="End in different Time Zone"\n\n i18n-editorEventTimeZone="kendo.scheduler.editorEventTimeZone|The text similar to \'Time Zone\' displayed in the scheduler event editor."\n editorEventTimeZone=\'Specify Time Zone\'\n\n i18n-editorTitle="kendo.scheduler.editorTitle|The text similar to \'Event\' displayed as title of the scheduler event editor."\n editorTitle=\'Event\'\n\n i18n-recurrenceEditorRepeat="kendo.scheduler.recurrenceEditorRepeat|The text similar to \'Repeat\' displayed in the scheduler recurrence editor."\n recurrenceEditorRepeat=\'Repeat\'\n\n i18n-recurrenceEditorDailyInterval="kendo.scheduler.recurrenceEditorDailyInterval|The text similar to \'day(s)\' displayed in the scheduler recurrence editor."\n recurrenceEditorDailyInterval=\'day(s)\'\n\n i18n-recurrenceEditorDailyRepeatEvery="kendo.scheduler.recurrenceEditorDailyRepeatEvery|The text similar to \'Repeat every\' displayed in the scheduler recurrence editor."\n recurrenceEditorDailyRepeatEvery=\'Repeat every\'\n\n i18n-recurrenceEditorWeeklyInterval="kendo.scheduler.recurrenceEditorWeeklyInterval|The text similar to \'week(s)\' displayed in the scheduler recurrence editor."\n recurrenceEditorWeeklyInterval=\'week(s)\'\n\n i18n-recurrenceEditorWeeklyRepeatEvery="kendo.scheduler.recurrenceEditorWeeklyRepeatEvery|The text similar to \'Repeat every\' displayed in the scheduler recurrence editor."\n recurrenceEditorWeeklyRepeatEvery=\'Repeat every\'\n\n i18n-recurrenceEditorWeeklyRepeatOn="kendo.scheduler.recurrenceEditorWeeklyRepeatOn|The text similar to \'Repeat on\' displayed in the scheduler recurrence editor."\n recurrenceEditorWeeklyRepeatOn=\'Repeat on\'\n\n i18n-recurrenceEditorMonthlyDay="kendo.scheduler.recurrenceEditorMonthlyDay|The text similar to \'Day\' displayed in the scheduler recurrence editor."\n recurrenceEditorMonthlyDay=\'Day\'\n\n i18n-recurrenceEditorMonthlyInterval="kendo.scheduler.recurrenceEditorMonthlyInterval|The text similar to \'month(s)\' displayed in the scheduler recurrence editor."\n recurrenceEditorMonthlyInterval=\'month(s)\'\n\n i18n-recurrenceEditorMonthlyRepeatEvery="kendo.scheduler.recurrenceEditorMonthlyRepeatEvery|The text similar to \'Repeat every\' displayed in the scheduler recurrence editor."\n recurrenceEditorMonthlyRepeatEvery=\'Repeat every\'\n\n i18n-recurrenceEditorMonthlyRepeatOn="kendo.scheduler.recurrenceEditorMonthlyRepeatOn|The text similar to \'Repeat on\' displayed in the scheduler recurrence editor."\n recurrenceEditorMonthlyRepeatOn=\'Repeat on\'\n\n i18n-recurrenceEditorYearlyOf="kendo.scheduler.recurrenceEditorYearlyOf|The text similar to \'of\' displayed in the scheduler recurrence editor."\n recurrenceEditorYearlyOf=\'of\'\n\n i18n-recurrenceEditorYearlyRepeatEvery="kendo.scheduler.recurrenceEditorYearlyRepeatEvery|The text similar to \'Repeat every\' displayed in the scheduler recurrence editor."\n recurrenceEditorYearlyRepeatEvery=\'Repeat every\'\n\n i18n-recurrenceEditorYearlyRepeatOn="kendo.scheduler.recurrenceEditorYearlyRepeatOn|The text similar to \'Repeat on\' displayed in the scheduler recurrence editor."\n recurrenceEditorYearlyRepeatOn=\'Repeat on\'\n\n i18n-recurrenceEditorYearlyInterval="kendo.scheduler.recurrenceEditorYearlyInterval|The text similar to \'year(s)\' displayed in the scheduler recurrence editor."\n recurrenceEditorYearlyInterval=\'year(s)\'\n\n i18n-recurrenceEditorFrequenciesDaily="kendo.scheduler.recurrenceEditorFrequenciesDaily|The text similar to \'Daily\' displayed in the scheduler recurrence editor."\n recurrenceEditorFrequenciesDaily=\'Daily\'\n\n i18n-recurrenceEditorFrequenciesMonthly="kendo.scheduler.recurrenceEditorFrequenciesMonthly|The text similar to \'Monthly\' displayed in the scheduler recurrence editor."\n recurrenceEditorFrequenciesMonthly=\'Monthly\'\n\n i18n-recurrenceEditorFrequenciesNever="kendo.scheduler.recurrenceEditorFrequenciesNever|The text similar to \'Never\' displayed in the scheduler recurrence editor."\n recurrenceEditorFrequenciesNever=\'Never\'\n\n i18n-recurrenceEditorFrequenciesWeekly="kendo.scheduler.recurrenceEditorFrequenciesWeekly|The text similar to \'Weekly\' displayed in the scheduler recurrence editor."\n recurrenceEditorFrequenciesWeekly=\'Weekly\'\n\n i18n-recurrenceEditorFrequenciesYearly="kendo.scheduler.recurrenceEditorFrequenciesYearly|The text similar to \'Yearly\' displayed in the scheduler recurrence editor."\n recurrenceEditorFrequenciesYearly=\'Yearly\'\n\n i18n-recurrenceEditorOffsetPositionsFirst="kendo.scheduler.recurrenceEditorOffsetPositionsFirst|The text similar to \'First\' displayed in the scheduler recurrence editor."\n recurrenceEditorOffsetPositionsFirst=\'First\'\n\n i18n-recurrenceEditorOffsetPositionsSecond="kendo.scheduler.recurrenceEditorOffsetPositionsSecond|The text similar to \'Second\' displayed in the scheduler recurrence editor."\n recurrenceEditorOffsetPositionsSecond=\'Second\'\n\n i18n-recurrenceEditorOffsetPositionsThird="kendo.scheduler.recurrenceEditorOffsetPositionsThird|The text similar to \'Third\' displayed in the scheduler recurrence editor."\n recurrenceEditorOffsetPositionsThird=\'Third\'\n\n i18n-recurrenceEditorOffsetPositionsFourth="kendo.scheduler.recurrenceEditorOffsetPositionsFourth|The text similar to \'Fourth\' displayed in the scheduler recurrence editor."\n recurrenceEditorOffsetPositionsFourth=\'Fourth\'\n\n i18n-recurrenceEditorOffsetPositionsLast="kendo.scheduler.recurrenceEditorOffsetPositionsLast|The text similar to \'Last\' displayed in the scheduler recurrence editor."\n recurrenceEditorOffsetPositionsLast=\'Last\'\n\n i18n-recurrenceEditorWeekdaysDay="kendo.scheduler.recurrenceEditorWeekdaysDay|The text similar to \'Day\' displayed in the repeat by section of the monthly recurrence pattern."\n recurrenceEditorWeekdaysDay=\'Day\'\n\n i18n-recurrenceEditorWeekdaysWeekday="kendo.scheduler.recurrenceEditorWeekdaysWeekday|The text similar to \'Weekday\' displayed in the repeat by section of the monthly recurrence pattern."\n recurrenceEditorWeekdaysWeekday=\'Weekday\'\n\n i18n-recurrenceEditorWeekdaysWeekendday="kendo.scheduler.recurrenceEditorWeekdaysWeekendday|The text similar to \'Weekend Day\' displayed in the repeat by section of the monthly recurrence pattern."\n recurrenceEditorWeekdaysWeekendday=\'Weekend Day\'\n\n i18n-recurrenceEditorEndAfter="kendo.scheduler.recurrenceEditorEndAfter|The text similar to \'After\' displayed in the scheduler recurrence editor."\n recurrenceEditorEndAfter=\'After\'\n\n i18n-recurrenceEditorEndOccurrence="kendo.scheduler.recurrenceEditorEndOccurrence|The text similar to \'occurrence(s)\' displayed in the scheduler recurrence editor."\n recurrenceEditorEndOccurrence=\'occurrence(s)\'\n\n i18n-recurrenceEditorEndLabel="kendo.scheduler.recurrenceEditorEndLabel|The text similar to \'End\' displayed in the scheduler recurrence editor."\n recurrenceEditorEndLabel=\'End\'\n\n i18n-recurrenceEditorEndNever="kendo.scheduler.recurrenceEditorEndNever|The text similar to \'Never\' displayed in the scheduler recurrence editor."\n recurrenceEditorEndNever=\'Never\'\n\n i18n-recurrenceEditorEndOn="kendo.scheduler.recurrenceEditorEndOn|The text similar to \'On\' displayed in the scheduler recurrence editor."\n recurrenceEditorEndOn=\'On\'\n\n i18n-destroy="kendo.scheduler.destroy|The text of the \'Delete\' button displayed in the scheduler remove confirmation dialog."\n destroy=\'Delete\'\n\n i18n-deleteConfirmation="kendo.scheduler.deleteConfirmation|The text similar to \'Are you sure you want to delete this event?\' displayed in scheduler remove confirmation dialog."\n deleteConfirmation=\'Are you sure you want to delete this event?\'\n\n i18n-editRecurringConfirmation="kendo.scheduler.editRecurringConfirmation|The text similar to \'Do you want to edit only this event occurrence or the whole series?\' displayed in the scheduler recurring confirmation dialog."\n editRecurringConfirmation=\'Do you want to edit only this event occurrence or the whole series?\'\n\n i18n-editOccurrence="kendo.scheduler.editOccurrence|The text of the \'Edit current occurrence\' button displayed in the scheduler recurring confirmation dialog."\n editOccurrence=\'Edit current occurrence\'\n\n i18n-editSeries="kendo.scheduler.editSeries|The text of the \'Edit the series\' button displayed in the scheduler recurring confirmation dialog."\n editSeries=\'Edit the series\'\n\n i18n-deleteRecurringConfirmation="kendo.scheduler.deleteRecurringConfirmation|The text similar to \'Do you want to delete only this event occurrence or the whole series?\' displayed in the scheduler recurring confirmation dialog."\n deleteRecurringConfirmation=\'Do you want to delete only this event occurrence or the whole series?\'\n\n i18n-deleteOccurrence="kendo.scheduler.deleteOccurrence|The text of the \'Delete current occurrence\' button displayed in the scheduler recurring confirmation dialog."\n deleteOccurrence=\'Delete current occurrence\'\n\n i18n-deleteSeries="kendo.scheduler.deleteSeries|The text similar of the \'Delete the series\' button displayed in the scheduler recurring confirmation dialog."\n deleteSeries=\'Delete the series\'\n\n i18n-deleteDialogTitle="kendo.scheduler.deleteDialogTitle|The title of the remove confirmation dialog, similar to \'Delete Event\'."\n deleteDialogTitle=\'Delete Event\'\n\n i18n-deleteRecurringDialogTitle="kendo.scheduler.deleteRecurringDialogTitle|The title of the recurring remove confirmation dialog, similar to \'Delete Recurring Item\'"\n deleteRecurringDialogTitle=\'Delete Recurring Item\'\n\n i18n-editRecurringDialogTitle="kendo.scheduler.editRecurringDialogTitle|The title of the recurring edit confirmation dialog, similar to \'Edit Recurring Item\'"\n editRecurringDialogTitle=\'Edit Recurring Item\'\n >\n </ng-container>\n\n <kendo-scheduler-toolbar\n [dateRange]="dateRangeStream"\n [selectedDate]="selectedDateStream"\n [views]="views"\n [selectedView]="selectedView"\n [template]="toolbarTemplate"\n (navigate)="onNavigationAction($event)"\n [min]="min"\n [max]="max"\n ></kendo-scheduler-toolbar>\n\n <ng-container *ngTemplateOutlet="selectedView?.template">\n </ng-container>\n\n <ng-container #confirmationDialogContainer>\n </ng-container>\n\n <kendo-scheduler-edit-dialog\n [resources]="resources"\n [editTemplate]="editDialogTemplate"\n [timezone]="timezone"\n [weekStart]="weekStart"\n [fields]="modelFields"\n ></kendo-scheduler-edit-dialog>\n\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n\n <div [loading]="loading" kendoSchedulerLoading>\n </div>\n '}),r.__metadata("design:paramtypes",[i.ElementRef,x.ViewContextService,E.ViewStateService,C.EditService,P.DialogsService,H.IntlService,i.ChangeDetectorRef,i.NgZone,V.PDFService,o.LocalizationService,N.DomEventsService,i.Renderer2,W.FocusService])],e)}();t.SchedulerComponent=G},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28);t.FocusService=r.FocusService;var i=n(118);t.FocusableDirective=i.FocusableDirective},function(e,t){e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(35);t.AgendaDateTemplateDirective=r.AgendaDateTemplateDirective;var i=n(36);t.AgendaTimeTemplateDirective=i.AgendaTimeTemplateDirective;var o=n(37);t.AllDayEventTemplateDirective=o.AllDayEventTemplateDirective;var s=n(38);t.AllDaySlotTemplateDirective=s.AllDaySlotTemplateDirective;var a=n(39);t.DateHeaderTemplateDirective=a.DateHeaderTemplateDirective;var c=n(40);t.EventTemplateDirective=c.EventTemplateDirective;var u=n(41);t.GroupHeaderTemplateDirective=u.GroupHeaderTemplateDirective;var l=n(42);t.MajorTimeHeaderTemplateDirective=l.MajorTimeHeaderTemplateDirective;var d=n(43);t.MinorTimeHeaderTemplateDirective=d.MinorTimeHeaderTemplateDirective;var p=n(44);t.MonthDaySlotTemplateDirective=p.MonthDaySlotTemplateDirective;var h=n(45);t.TimeSlotTemplateDirective=h.TimeSlotTemplateDirective},function(e,t){e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),s=function(){function e(){this.actionSource=new o.Subject,this.action=this.actionSource.asObservable()}return e.prototype.navigate=function(e){this.actionSource.next(e)},e=r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[])],e)}();t.ToolbarService=s},function(e,t){e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(20),s=function(){function e(){}return e.exports=function(){return[o.FocusableDirective]},e=r.__decorate([i.NgModule({declarations:[o.FocusableDirective],exports:[o.FocusableDirective]})],e)}();t.SharedModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(107);t.DateChangeEvent=r.DateChangeEvent;var i=n(108);t.NavigateEvent=i.NavigateEvent;var o=n(58);t.SlotClickEvent=o.SlotClickEvent;var s=n(59);t.EventClickEvent=s.EventClickEvent;var a=n(60);t.EventKeydownEvent=a.EventKeydownEvent;var c=n(109);t.VIEW_EVENT_MAP=c.VIEW_EVENT_MAP;var u=n(111);t.CancelEvent=u.CancelEvent;var l=n(32);t.EditEventBase=l.EditEventBase;var d=n(64);t.RemoveEvent=d.RemoveEvent;var p=n(112);t.SaveEvent=p.SaveEvent;var h=n(67);t.ResizeStartEvent=h.ResizeStartEvent;var f=n(66);t.ResizeEvent=f.ResizeEvent;var m=n(65);t.ResizeEndEvent=m.ResizeEndEvent;var y=n(63);t.DragStartEvent=y.DragStartEvent;var v=n(62);t.DragEvent=v.DragEvent;var g=n(61);t.DragEndEvent=g.DragEndEvent;var _=n(113);t.EditEvent=_.EditEvent;var b=n(114);t.AddEvent=b.AddEvent;var S=n(68);t.SlotDragStartEvent=S.SlotDragStartEvent;var w=n(33);t.SlotDragEvent=w.SlotDragEvent;var k=n(69);t.SlotDragEndEvent=k.SlotDragEndEvent},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),s=n(49),a=function(){function e(e,t,n){var r=this;this.renderer=e,this.wrapper=t,this.domEvents=n,this.items=new Set,this.elementMap=new WeakMap,this.subs=new o.Subscription,this.subs.add(this.domEvents.focus.subscribe((function(e){return r.onFocusIn(e)}))),this.subs.add(this.domEvents.focusOut.subscribe((function(){return r.onFocusOut()})))}return Object.defineProperty(e.prototype,"activeElement",{get:function(){if(this.activeItem)return this.activeItem.element},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.prototype.register=function(e){this.activeItem||(this.activeItem=e,e.toggle(!0)),this.items.add(e),this.elementMap.set(e.element.nativeElement,e),this.toggleWrapper()},e.prototype.unregister=function(e){this.items.delete(e),this.elementMap.delete(e.element.nativeElement),e===this.activeItem&&this.activateNext(),this.toggleWrapper()},e.prototype.focus=function(){this.activeItem?this.activeItem.focus():this.wrapper.nativeElement.focus()},e.prototype.focusNext=function(e){var t=this.activeItem;return this.activateNext(e),this.activeItem&&this.activeItem.focus(),this.activeItem!==t},e.prototype.activate=function(e){this.items.forEach((function(t){return t.toggle(t===e)})),this.activeItem=e},e.prototype.activateNext=function(e){this.activeItem=this.findNext(e)},e.prototype.findNext=function(e){var t=r.__assign({nowrap:!1,offset:1},e),n=t.offset,i=t.nowrap,o=Array.from(this.items.values()).filter((function(e){return e.canFocus()})).sort((function(e,t){return e.focusIndex-t.focusIndex}));if(0===o.length)return null;if(!this.activeItem)return i?null:o[0];var s=o.indexOf(this.activeItem)+n;return i?s=Math.max(0,Math.min(o.length-1,s)):(s%=o.length)<0&&(s=o.length-1),o[s]},e.prototype.toggleWrapper=function(){this.wrapper&&this.renderer.setAttribute(this.wrapper.nativeElement,"tabindex",this.activeItem?"-1":"0")},e.prototype.onFocusIn=function(e){var t=this.elementMap.get(e.target);t&&t!==this.focusedItem&&(this.focusedItem&&this.focusedItem.toggleFocus(!1),this.activate(t),t.toggleFocus(!0),this.focusedItem=t)},e.prototype.onFocusOut=function(){this.focusedItem&&(this.focusedItem.toggleFocus(!1),this.focusedItem=null)},e=r.__decorate([i.Injectable(),r.__param(0,i.Optional()),r.__param(1,i.Optional()),r.__metadata("design:paramtypes",[i.Renderer2,i.ElementRef,s.DomEventsService])],e)}();t.FocusService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(25),s=n(7),a=n(88),c=n(142),u=n(143),l=n(144),d=n(54),p=n(145),h=n(26),f=n(21),m=[a.ViewFooterComponent,c.WorkHoursFooterDirective,u.RepeatPipe,l.ResourceIteratorPipe,d.HintContainerComponent,p.ResizeHintComponent],y=function(){function e(){}return e=r.__decorate([i.NgModule({imports:[o.CommonModule,s.IntlModule,h.SharedModule,f.ButtonsModule],exports:[m,s.IntlModule,o.CommonModule,h.SharedModule],declarations:[m]})],e)}();t.ViewsSharedModule=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(52),o=n(5),s=n(83),a=n(84),c=n(5),u=n(3),l=function(e,t,n){return void 0===n&&(n=!0),e.start.getTime()<=t.getTime()?(n?e.height:e.width)*((t.getTime()-e.start.getTime())/(e.end.getTime()-e.start.getTime())):0},d=function(e,t){var n=u.isNumber(e.columnIndex)?e.columnIndex:Number.MAX_VALUE,r=u.isNumber(t.columnIndex)?t.columnIndex:Number.MAX_VALUE;return n===r?e.item.startTime.getTime()-t.item.startTime.getTime():n-r};function p(e,t){if(void 0!==t.rowIndex)return t.rowIndex;for(var n=0;n<e.length;n++){var r=e[n];if(!r||!o.intersects(t.item.startTime,t.item.endTime,r.item.startTime,r.item.endTime))return n}return e.length}function h(e,t,n,r,s){var a=e[0].padding;if(!t.length)return{height:n-a};t.forEach((function(e){e.rowIndex=void 0,e.rect={height:r,width:0}}));var c=i.orderBy(t,[{field:"item.startTime",dir:"asc"},{field:"item.endTime",dir:"desc"}]),u={};c.forEach((function(t){return e.filter((function(e){return o.intersects(t.item.startTime,t.item.endTime,e.start,e.end)})).forEach((function(e){var n=u[e.key]=u[e.key]||{rows:[],slot:e,events:[]};t.rowIndex=s(n.rows,t),n.rows[t.rowIndex]=t,n.events.push(t)}))}));var l=e[0].top,d=0;return Object.keys(u).forEach((function(e){for(var t=u[e].events,n=0,r=0;r<t.length;r++){var i=t[r];i&&(i.rect.top=l+i.rowIndex*(10+i.rect.height),n=Math.max(n,i.rect.top-l+i.rect.height))}d=Math.max(n,d)})),{height:d+=n-a,slotItems:u}}function f(e,t,n){Object.keys(e).forEach((function(t){for(var r=e[t],i=r.slot,o=r.events,s=i.rect,a=0;a<o.length;a++){var c=o[a];if(c){u.isNumber(c.rect.left)||(c.rect.left=i.rect.left+(n?l(i,c.item.startTime,!1):0));var d=n&&c.item.endTime.getTime()<i.end.getTime()?l(i,c.item.endTime,!1):s.width;c.rect.width=i.rect.left+d-c.rect.left}}})),t.forEach((function(e){e.reflow()}))}var m=function(){function e(e){this.index=e,this.slotMap=new s.ItemMap,this.itemMap=new s.ItemMap}return Object.defineProperty(e.prototype,"slots",{get:function(){return this.slotMap.toArray()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstSlot",{get:function(){return this.slotMap.first},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastSlot",{get:function(){return this.slotMap.last},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this.itemMap.toArray()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rect",{get:function(){var e=this.firstSlot.rect,t=this.lastSlot.rect;return{left:e.left,top:e.top,width:t.left-e.left+t.width,height:t.top-e.top+t.height}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){var e=this.slotMap.first;return e?e.start:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){var e=this.slotMap.last;return e?e.end:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasSlots",{get:function(){return this.slotMap.count>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasItems",{get:function(){return this.itemMap.count>0},enumerable:!0,configurable:!0}),e.prototype.registerItem=function(e){this.itemMap.addItem(e.item.index,e)},e.prototype.unregisterItem=function(e,t){this.itemMap.removeItem(t.index,e)},e.prototype.registerSlot=function(e){this.slotMap.addItem(e.id.index,e)},e.prototype.unregisterSlot=function(e){this.slotMap.removeItem(e.id.index,e)},e.prototype.layout=function(e){var t=this.items;if(t.length){var n=Math.max(Math.min(e.fill||.9,1),.1),r=i.orderBy(t,[{field:"item.startTime",dir:"asc"},{field:"item.endTime",dir:"desc"}]);t.forEach((function(e,t){e.rect=null,e.columnIndex=void 0}));var s={},a=this.slots;r.forEach((function(e){return a.filter((function(t){return o.intersects(e.item.startTime,e.item.endTime,t.start,t.end)})).forEach((function(t){var n=s[t.key]=s[t.key]||{events:[]};n.slot=t,n.events.push(e)}))}));var c=Object.keys(s);!function(e,t){var n=0,r=[];e.forEach((function(e){var i=t[e],s=i.slot,a=i.events,c=a.length,p=!0;a.sort(d),n=Math.max(c,n),r.push(s);for(var h=function(e){var t=a[e];if(p=p&&t.item.endTime.getTime()<=s.end.getTime(),u.isNumber(t.columnIndex))return"continue";t.rect={top:s.rect.top+l(s,t.item.startTime)},t.columnIndex=e,t.lastColumn=!0;for(var n,r=function(r,i){var s,c,u=a[r];return u.columnIndex>i+1?(t.columnIndex=i+1,t.lastColumn=!1,a.splice(e,1),a.splice(t.columnIndex,0,t),n=i,"break"):o.intersects(t.item.startTime,t.item.endTime,u.item.startTime,u.item.endTime)||(s=u.rect.top,c=t.rect.top,s<=c&&c<=s+25)?(i=u.columnIndex,u.lastColumn=!1,void(n=i)):(t.columnIndex=r,t.lastColumn=!a.some((function(e){return e.columnIndex&&r<e.columnIndex&&o.intersects(t.item.startTime,t.item.endTime,e.item.startTime,e.item.endTime)})),a.splice(e,1),a.splice(r,0,t),n=i,"break")},i=0,c=-1;i<e;i++){var d=r(i,c);if(c=n,"break"===d)break}},f=0;f<c;f++)h(f);p&&(r.forEach((function(e){return e.columns=n})),r=[],n=0)})),r.forEach((function(e){return e.columns=n}))}(c,s),c.forEach((function(e){var t=s[e],r=t.slot,i=t.events,o=(i.length,r.rect),a=o.left,c=r.columns,d=o.width*n-2*(c-1)-2,p=a+2,h=d/c,f=p+d+2*(c-1);i.forEach((function(e){u.isNumber(e.rect.left)||(e.rect.left=p+e.columnIndex*(h+2),e.rect.width=e.lastColumn?f-e.rect.left:h,e.origin={left:a,right:a+o.width});var t=r.end.getTime()<=e.item.endTime.getTime()?o.height:l(r,e.item.endTime);e.rect.height=o.top+t-e.rect.top}))})),r.forEach((function(e){return e.reflow()}))}},e.prototype.initDaySlots=function(e,t){var n=this.slots;if(n.length){var r=h(n,this.items,e,t,o.findRowIndex),i=r.height,s=r.slotItems;this.setSlotsHeight(i),this.slotItems=s}},e.prototype.setDayOffsets=function(){this.itemMap.count&&this.slotItems&&(f(this.slotItems,this.items),this.slotItems=null)},e.prototype.setSlotsHeight=function(e){this.firstSlot.height=e},e}();t.SlotRange=m;var y=function(){function e(e){this.index=e,this.dayRanges=[],this.timeRanges=[]}return e.prototype.registerSlot=function(e){this.slotRange(e).registerSlot(e)},e.prototype.unregisterSlot=function(e){var t=this.slotRange(e);(t.unregisterSlot(e),t.hasSlots)||delete this.slotRanges(e)[e.id.rangeIndex]},e.prototype.registerItem=function(e){var t=this.itemRange(e);t?(t.registerItem(e),e.rangeIndex=t.index):(e.rangeIndex=void 0,e.toggle(!1))},e.prototype.unregisterItem=function(e,t){if(void 0!==e.rangeIndex){var n=e.item.isAllDay?this.dayRanges:this.timeRanges;n[t.rangeIndex]&&n[t.rangeIndex].unregisterItem(e,t),e.rangeIndex=void 0}},e.prototype.forEachDateRange=function(e){for(var t=0;t<this.dayRanges.length;t++)e(this.dayRanges[t])},e.prototype.forEachTimeRange=function(e){for(var t=0;t<this.timeRanges.length;t++)e(this.timeRanges[t])},e.prototype.slotRange=function(e){var t=this.slotRanges(e),n=e.id.rangeIndex;return t[n]||(t[n]=new m(n)),t[n]},e.prototype.slotRanges=function(e){return e.isDaySlot?this.dayRanges:this.timeRanges},e.prototype.initTimeSlots=function(e,t,n){var r=this.slots;if(r.length){var i=h(r,this.items,e,t,p),o=i.height,s=i.slotItems;this.setSlotsHeight(Math.max(o,n)),this.slotItems=s}},e.prototype.setTimelineOffsets=function(){var e=this.items;this.slotItems&&e.length&&(f(this.slotItems,e,!0),this.slotItems=null)},e.prototype.setSlotsHeight=function(e){this.timeRanges[0].setSlotsHeight(e)},Object.defineProperty(e.prototype,"items",{get:function(){return this.timeRanges.reduce((function(e,t){return e.concat(t.items)}),[])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"slots",{get:function(){return this.timeRanges.reduce((function(e,t){return e.concat(t.slots)}),[])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasSlots",{get:function(){return Boolean(this.dayRanges.find((function(e){return e&&e.hasSlots}))||this.timeRanges.find((function(e){return e&&e.hasSlots})))},enumerable:!0,configurable:!0}),e.prototype.cleanRanges=function(){this.dayRanges=this.dayRanges.filter((function(e){return Boolean(e)})),this.timeRanges=this.timeRanges.filter((function(e){return Boolean(e)}))},e.prototype.itemRange=function(e){var t=e.item,n=t.isAllDay?this.dayRanges:this.timeRanges;return u.isNumber(t.rangeIndex)?n[t.rangeIndex]:n.find((function(e){return o.intersects(t.startTime,t.endTime,e.start,e.end)}))},e}();t.DayTimeResourceGroup=y;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.layoutDays=function(e){void 0===e&&(e=25),this.groups.forEach((function(e){return e.forEachDateRange((function(e){return e.slots.forEach((function(e){e.element.nativeElement.style.height=""}))}))}));var t=this.groups[0].dayRanges[0].slots[0].height;this.groups.forEach((function(n){n.forEachDateRange((function(n){return n.initDaySlots(t,e)}))})),this.groups.forEach((function(e){e.forEachDateRange((function(e){return e.setDayOffsets()}))}))},t.prototype.layoutTimeline=function(e,t){this.groups.forEach((function(e){return e.forEachTimeRange((function(e){return e.slots.forEach((function(e){e.element.nativeElement.style.height=""}))}))}));var n=this.groups[0].timeRanges[0].slots[0].height;this.groups.forEach((function(r,i){r.initTimeSlots(n,e,t&&t[i]?t[i].nativeElement.children[0].children[0].offsetHeight:0)})),this.groups.forEach((function(e){return e.setTimelineOffsets()}))},t.prototype.layoutTimes=function(e){this.groups.forEach((function(t){return t.forEachTimeRange((function(t){return t.layout(e)}))}))},t.prototype.forEachDateRange=function(e){this.groups.forEach((function(t,n){e(t.dayRanges[0],n)}))},t.prototype.syncDateRanges=function(){var e=0;return this.groups.forEach((function(t){var n=t.dayRanges[0].firstSlot;n&&(e=Math.max(n.rect.height-n.padding,e))})),this.groups.forEach((function(t){t.dayRanges[0].setSlotsHeight(e)})),e},t.prototype.forEachGroup=function(e){this.groups.forEach(e)},t.prototype.forEachSlot=function(e){this.groups.forEach((function(t){t.dayRanges.forEach((function(t){t.slots.forEach((function(t){return e(t)}))})),t.timeRanges.forEach((function(t){t.slots.forEach((function(t){return e(t)}))}))}))},t.prototype.createGroup=function(e){return new y(e)},t.prototype.slotByIndex=function(e,t){void 0===t&&(t=!1);var n=e.split(":").map((function(e){return parseInt(e,10)})),r=n[0],i=n[1],o=n[2];return this.groups[r][t?"dayRanges":"timeRanges"][i].slots[o]},t.prototype.slotByPosition=function(e,t,n,r){var i;if(n){if(this.groups.find((function(t){return i=t.dayRanges.find((function(t){return c.rectContainsX(t.rect,e)}))})),i)return i.slots.find((function(t){return c.rectContainsX(t.rect,e)}))}else if(this.groups.find((function(n){return r&&(i=n.dayRanges.find((function(n){return c.rectContains(n.rect,e,t)}))),i||(i=n.timeRanges.find((function(n){return c.rectContains(n.rect,e,t)}))),i})),i)return i.slots.find((function(n){return c.rectContains(n.rect,e,t)}))},t.prototype.groupSlotByPosition=function(e,t,n){var r,i=this.groups[e.id.resourceIndex];if(r=e.isDaySlot?i.dayRanges.find((function(e){return c.rectContains(e.rect,t,n)})):i.timeRanges.find((function(e){return c.rectContains(e.rect,t,n)})))return r.slots.find((function(e){return c.rectContains(e.rect,t,n)}))},t.prototype.dragRanges=function(e,t,n){var r,i=new Date(e.start.getTime()-t.start),s=new Date(e.start.getTime()+t.end),a=this.groups[e.id.resourceIndex];if(n){var c=[];a.timeRanges.forEach((function(e){var t=e.slots.filter((function(e){return o.intersects(i,s,e.start,e.end)}));t.length&&c.push(t)}));var u=c[c.length-1];r=[c[0][0],u[u.length-1]]}else r=a.slotRange(e).slots.filter((function(e){return o.intersects(i,s,e.start,e.end)}));return{start:i,end:s,ranges:[r]}},t.prototype.resizeRanges=function(e,t,n,r){var i,s,a=this.groups[e.id.resourceIndex],u=t.isAllDay?a.dayRanges:a.timeRanges,l=[],d=t.start.toUTCDate(),p=t.end.toUTCDate();if(n){var h=e.start.getTime()+r.start;s=d.getTime()===p.getTime()?this.findDateSlot(p,u,!0).end:p,i=h>=p.getTime()?t.isAllDay?new Date(Math.min(c.dateWithTime(p,d).getTime(),p.getTime())):this.findDateSlot(s,u).start:r.start&&t.isAllDay?new Date(h):new Date(e.start.getTime())}else i=d,s=e.start.getTime()<=i.getTime()?t.isAllDay?new Date(Math.max(c.dateWithTime(d,p).getTime(),d.getTime())):this.findDateSlot(i,u,!0).end:r.end&&t.isAllDay?new Date(e.start.getTime()+r.end):e.end;return u.forEach((function(e){var t=e.slots.filter((function(e){return o.intersects(i,s,e.start,e.end)}));t.length&&l.push(t)})),{start:i,end:s,ranges:l}},t.prototype.timePosition=function(e,t,n){var r=this.groups[t].timeRanges.find((function(t){return c.dateInRange(e,t.start,t.end)}));if(r){var i=r.slots.find((function(t){return c.dateInRange(e,t.start,t.end)}));if(i){var o=(n?i.height:i.width)*((e.getTime()-i.start.getTime())/(i.end.getTime()-i.start.getTime()));return n?i.rect.top+o:i.rect.left+o}}},t.prototype.findDateSlot=function(e,t,n){var r;return t.forEach((function(t){var i=n?t.slots.filter((function(t){return o.intersects(e,e,t.start,t.end)})):t.slots.filter((function(t){return c.dateInRange(e,t.start,t.end)}));i.length&&(r=i[0])})),r},t}(a.BaseSlotService);t.DayTimeSlotService=v},function(e,t){e.exports=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.sender=e,Object.assign(this,t)};t.EditEventBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.sender=e,Object.assign(this,t)};t.SlotDragEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerToolbarTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.ToolbarTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerAgendaDateTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.AgendaDateTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerAgendaTimeTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.AgendaTimeTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerAllDayEventTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.AllDayEventTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerAllDaySlotTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.AllDaySlotTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerDateHeaderTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.DateHeaderTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerEventTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.EventTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerGroupHeaderTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.GroupHeaderTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerMajorTimeHeaderTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.MajorTimeHeaderTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerMinorTimeHeaderTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.MinorTimeHeaderTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerMonthDaySlotTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.MonthDaySlotTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerTimeSlotTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.TimeSlotTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"autoFocusedElement",void 0),e=r.__decorate([i.Directive({selector:"[kendoSchedulerEditDialogTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.EditDialogTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(){this.changes=new i.EventEmitter}return e=r.__decorate([i.Injectable()],e)}();t.LocalDataChangesService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(75),s=n(2),a=n(14),c=n(28),u=n(9),l=function(){function e(e,t,n,r,i){this.dialogService=e,this.localization=t,this.changeDetector=n,this.focusService=r,this.viewState=i,this.isOpen=!1}return e.prototype.openRemoveConfirmationDialog=function(){var e=this,t=this.dialogService.open({title:this.textFor("deleteDialogTitle"),content:this.textFor("deleteConfirmation"),actions:[{text:this.textFor("cancel"),value:!1},{text:this.textFor("destroy"),value:!0}],appendTo:this.container,autoFocusedElement:"button:nth-child(2)"});return this.isOpen=!0,this.changeDetector.markForCheck(),t.result.pipe(a.map((function(t){return e.isOpen=!1,t instanceof o.DialogCloseResult?(e.focusService.focus(),!1):(e.viewState.layoutEnd.pipe(a.take(1)).subscribe((function(){return e.focusService.focus()})),t.value)})))},e.prototype.openRecurringConfirmationDialog=function(e){var t=this,n=this.dialogService.open({actions:[{text:0===e?this.textFor("editOccurrence"):this.textFor("deleteOccurrence"),value:1},{text:0===e?this.textFor("editSeries"):this.textFor("deleteSeries"),value:2}],appendTo:this.container,autoFocusedElement:"button:nth-child(1)",content:0===e?this.textFor("editRecurringConfirmation"):this.textFor("deleteRecurringConfirmation"),title:0===e?this.textFor("editRecurringDialogTitle"):this.textFor("deleteRecurringDialogTitle")});return this.isOpen=!0,this.changeDetector.markForCheck(),n.result.pipe(a.map((function(e){if(t.isOpen=!1,t.focusService.focus(),!(e instanceof o.DialogCloseResult))return e.value})))},e.prototype.textFor=function(e){return this.localization.get(e)},e=r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[o.DialogService,s.LocalizationService,i.ChangeDetectorRef,c.FocusService,u.ViewStateService])],e)}();t.DialogsService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(){this.focus=new i.EventEmitter,this.focusIn=new i.EventEmitter,this.focusOut=new i.EventEmitter,this.click=new i.EventEmitter,this.keydown=new i.EventEmitter,this.windowBlur=new i.EventEmitter}return e=r.__decorate([i.Injectable()],e)}();t.DomEventsService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),s=n(51),a=n(11),c=n(10),u=n(9),l=n(22),d=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.selectedDateFormat="{0:D} - {1:D}",o.selectedShortDateFormat="{0:d} - {1:d}",o.numberOfDays=7,o.name="agenda",o}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("agendaViewTitle")},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedShortDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"numberOfDays",void 0),r.__decorate([i.ContentChild(l.EventTemplateDirective,{static:!1}),r.__metadata("design:type",l.EventTemplateDirective)],t.prototype,"eventTemplate",void 0),r.__decorate([i.ContentChild(l.AgendaTimeTemplateDirective,{static:!1}),r.__metadata("design:type",l.AgendaTimeTemplateDirective)],t.prototype,"agendaTimeTemplate",void 0),r.__decorate([i.ContentChild(l.AgendaDateTemplateDirective,{static:!1}),r.__metadata("design:type",l.AgendaDateTemplateDirective)],t.prototype,"agendaDateTemplate",void 0),t=n=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-agenda-view",providers:[{provide:a.SchedulerView,useExisting:i.forwardRef((function(){return n}))}],template:'\n <ng-template #content>\n <agenda-view-internal\n [numberOfDays]="numberOfDays"\n [eventTemplate]="eventTemplate?.templateRef"\n [slotClass]="viewSlotClass"\n [eventClass]="viewEventClass"\n [eventStyles]="viewEventStyles"\n [agendaTimeTemplate]="agendaTimeTemplate?.templateRef"\n [agendaDateTemplate]="agendaDateTemplate?.templateRef"\n [selectedDateFormat]="selectedDateFormat"\n [selectedShortDateFormat]="selectedShortDateFormat">\n </agenda-view-internal>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[o.LocalizationService,i.ChangeDetectorRef,c.ViewContextService,u.ViewStateService])],t)}(s.ConfigurationViewBase);t.AgendaViewComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(11),s=n(22),a=n(3),c=function(e){return null},u=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.localization=t,o.changeDetector=n,o.viewContext=r,o.viewState=i,o.schedulerOptions={},o.subs=o.localization.changes.subscribe((function(e){e.rtl;n.markForCheck()})),o.subs.add(o.viewContext.optionsChange.subscribe(o.optionsChange.bind(o))),o}return r.__extends(t,e),Object.defineProperty(t.prototype,"viewSlotClass",{get:function(){return a.isPresent(this.slotClass)?this.slotClass:this.schedulerOptions.slotClass||c},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewEventClass",{get:function(){return a.isPresent(this.eventClass)?this.eventClass:this.schedulerOptions.eventClass},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewEventStyles",{get:function(){return a.isPresent(this.eventStyles)?this.eventStyles:this.schedulerOptions.eventStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewWeekStart",{get:function(){return this.schedulerOptions.weekStart},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this.viewState.notifyOptionsChange()},t.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},t.prototype.optionsChange=function(e){this.schedulerOptions=e},r.__decorate([i.Input(),r.__metadata("design:type",Function)],t.prototype,"slotClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],t.prototype,"eventClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],t.prototype,"eventStyles",void 0),r.__decorate([i.ViewChild("content",{static:!0}),r.__metadata("design:type",i.TemplateRef)],t.prototype,"template",void 0),r.__decorate([i.ContentChild(s.EventTemplateDirective,{static:!1}),r.__metadata("design:type",s.EventTemplateDirective)],t.prototype,"eventTemplate",void 0),r.__decorate([i.ContentChild(s.GroupHeaderTemplateDirective,{static:!1}),r.__metadata("design:type",s.GroupHeaderTemplateDirective)],t.prototype,"groupHeaderTemplate",void 0),t}(o.SchedulerView);t.ConfigurationViewBase=u},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(52),o=n(5),s=n(83),a=n(84),c=n(18),u=function(){function e(e){this.index=e,this.slotMap=new s.ItemMap,this.itemMap=new s.ItemMap}return Object.defineProperty(e.prototype,"slots",{get:function(){return this.slotMap.toArray()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this.itemMap.toArray()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){var e=this.slotMap.first;return e?e.start:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){var e=this.slotMap.last;return e?o.addUTCDays(e.end,1):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasSlots",{get:function(){return this.slotMap.count>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasItems",{get:function(){return this.itemMap.count>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstSlot",{get:function(){return this.slotMap.first},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastSlot",{get:function(){return this.slotMap.last},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rect",{get:function(){var e=this.firstSlot.rect,t=this.lastSlot.rect;return{left:e.left,top:e.top,width:t.left-e.left+t.width,height:t.top-e.top+t.height}},enumerable:!0,configurable:!0}),e.prototype.registerItem=function(e){this.itemMap.addItem(e.item.index,e)},e.prototype.unregisterItem=function(e,t){this.itemMap.removeItem(t,e)},e.prototype.registerSlot=function(e){this.slotMap.addItem(e.id.index,e)},e.prototype.unregisterSlot=function(e){this.slotMap.removeItem(e.id.index,e)},e.prototype.layout=function(e){if(this.hasItems){var t=this.items,n=i.orderBy(t,[{field:"item.startTime",dir:"asc"},{field:"item.endTime",dir:"desc"}]),r={},s=this.slots;n.forEach((function(t){return s.filter((function(e){return o.intersects(t.item.startTime,t.item.endTime,e.start,e.end)})).forEach((function(n){var i=r[n.key]=r[n.key]||{events:[],height:n.linkHeight};i.slot=n;var s=n.rect,a=t.item.data[t.resourceIndex];a.rowIndex=o.findRowIndex(i.events,a),i.height+e+2+13>s.height||a.hidden?(a.hidden=!0,n.showMore({width:s.width,left:s.left,top:s.top+n.linkHeight+a.rowIndex*(e+2)})):(i.events[a.rowIndex]=t,t.rect||(t.rect={top:s.top+n.linkHeight+a.rowIndex*(e+2),left:s.left,height:e,width:0}),t.rect.width+=s.width+c.BORDER_WIDTH,i.height+=e+2)}))})),n.forEach((function(e){e.rect&&(e.rect.width-=c.BORDER_WIDTH),e.reflow()}))}},e}();t.SlotRange=u;var l=function(){function e(e){this.index=e,this.dayRanges=[]}return Object.defineProperty(e.prototype,"hasSlots",{get:function(){return Boolean(this.dayRanges.find((function(e){return e&&e.hasSlots})))},enumerable:!0,configurable:!0}),e.prototype.registerSlot=function(e){this.slotRange(e).registerSlot(e)},e.prototype.unregisterSlot=function(e){var t=this.dayRanges[e.id.rangeIndex];t.unregisterSlot(e),t.hasSlots||delete this.dayRanges[e.id.rangeIndex]},e.prototype.registerItem=function(e){this.dayRanges[e.rangeIndex].registerItem(e)},e.prototype.unregisterItem=function(e,t){var n=this.dayRanges[t.rangeIndex];n&&n.unregisterItem(e,t.index)},e.prototype.slotRange=function(e){var t=this.dayRanges,n=e.id.rangeIndex;return t[n]||(t[n]=new u(n)),t[n]},e.prototype.forEachRange=function(e){for(var t=0;t<this.dayRanges.length;t++)e(this.dayRanges[t])},e.prototype.cleanRanges=function(){this.dayRanges=this.dayRanges.filter((function(e){return Boolean(e)}))},e}();t.MonthResourceGroup=l;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.layout=function(e){this.groups.forEach((function(t){return t.forEachRange((function(t){return t.layout(e)}))}))},t.prototype.slotByIndex=function(e){var t=e.split(":").map((function(e){return parseInt(e,10)})),n=t[0],r=t[1],i=t[2];return this.groups[n].dayRanges[r].slots[i]},t.prototype.forEachSlot=function(e){this.groups.forEach((function(t){t.dayRanges.forEach((function(t){t.slots.forEach((function(t){return e(t)}))}))}))},t.prototype.forEachItem=function(e){this.groups.forEach((function(t){t.dayRanges.forEach((function(t){t.items.forEach((function(t){return e(t)}))}))}))},t.prototype.createGroup=function(e){return new l(e)},t.prototype.invalidate=function(){e.prototype.invalidate.call(this),this.forEachItem((function(e){var t=e.item.data;Object.keys(t).forEach((function(e){t[e].hidden=!1}))}))},t.prototype.slotByPosition=function(e,t){var n;if(this.groups.find((function(r){return n=r.dayRanges.find((function(n){return o.rectContains(n.rect,e,t)}))})),n)return n.slots.find((function(n){return o.rectContains(n.rect,e,t)}))},t.prototype.dragRanges=function(e,t){var n=new Date(e.start.getTime()-t.start),r=new Date(e.start.getTime()+t.end),i=this.groups[e.id.resourceIndex],s=[];return i.dayRanges.forEach((function(e){var t=e.slots.filter((function(e){return o.intersects(n,r,e.start,e.end)}));t.length&&s.push(t)})),{start:n,end:r,ranges:s}},t.prototype.groupSlotByPosition=function(e,t,n){var r=this.groups[e.id.resourceIndex].dayRanges.find((function(e){return o.rectContains(e.rect,t,n)}));if(r)return r.slots.find((function(e){return o.rectContains(e.rect,t,n)}))},t.prototype.resizeRanges=function(e,t,n,r){var i,s,a=this.groups[t.resources[0].leafIdx],c=[],u=t.start.toUTCDate(),l=t.end.toUTCDate();return n?((i=e.start.getTime()+r.start)>l.getTime()&&(i=new Date(Math.min(o.dateWithTime(l,u).getTime(),l.getTime()))),s=l):(i=u,(s=e.start.getTime()+r.end)<i.getTime()&&(s=new Date(Math.max(o.dateWithTime(u,l).getTime(),i.getTime())))),a.dayRanges.forEach((function(e){var t=e.slots.filter((function(e){return o.intersects(i,s,e.start,e.end)}));t.length&&c.push(t)})),{start:new Date(i),end:new Date(s),ranges:c}},t}(a.BaseSlotService);t.MonthSlotService=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.changeDetector=e,this.changeDetector.detach()}return e.prototype.detectChanges=function(){this.changeDetector.detectChanges()},r.__decorate([i.ContentChild(i.TemplateRef,{static:!1}),r.__metadata("design:type",i.TemplateRef)],e.prototype,"hintTemplate",void 0),e=r.__decorate([i.Component({selector:"kendo-hint-container",template:'\n <ng-container [ngTemplateOutlet]="hintTemplate">\n </ng-container>\n '}),r.__metadata("design:paramtypes",[i.ChangeDetectorRef])],e)}();t.HintContainerComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),s=n(11),a=n(89),c=n(10),u=n(9),l=n(22),d=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.selectedDateFormat="{0:D}",o.selectedShortDateFormat="{0:d}",o.name="day",o}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("dayViewTitle")},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedShortDateFormat",void 0),r.__decorate([i.ContentChild(l.AllDaySlotTemplateDirective,{static:!1}),r.__metadata("design:type",l.AllDaySlotTemplateDirective)],t.prototype,"allDaySlotTemplate",void 0),r.__decorate([i.ContentChild(l.AllDayEventTemplateDirective,{static:!1}),r.__metadata("design:type",l.AllDayEventTemplateDirective)],t.prototype,"allDayEventTemplate",void 0),r.__decorate([i.ContentChild(l.MinorTimeHeaderTemplateDirective,{static:!1}),r.__metadata("design:type",l.MinorTimeHeaderTemplateDirective)],t.prototype,"minorTimeHeaderTemplate",void 0),r.__decorate([i.ContentChild(l.MajorTimeHeaderTemplateDirective,{static:!1}),r.__metadata("design:type",l.MajorTimeHeaderTemplateDirective)],t.prototype,"majorTimeHeaderTemplate",void 0),t=n=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-day-view",providers:[{provide:s.SchedulerView,useExisting:i.forwardRef((function(){return n}))}],template:'\n <ng-template #content>\n <multi-day-view\n [name]="name"\n [eventHeight]="viewEventHeight"\n [currentTimeMarker]="viewCurrentTimeMarker"\n [showWorkHours]="shouldShowWorkHours"\n [scrollTime]="viewScrollTime"\n [startTime]="viewStartTime"\n [endTime]="viewEndTime"\n [workDayStart]="viewWorkDayStart"\n [workDayEnd]="viewWorkDayEnd"\n [workWeekStart]="viewWorkWeekStart"\n [workWeekEnd]="viewWorkWeekEnd"\n [slotDuration]="viewSlotDuration"\n [slotDivisions]="viewSlotDivisions"\n [slotFill]="viewSlotFill"\n [slotClass]="viewSlotClass"\n [eventClass]="viewEventClass"\n [eventStyles]="viewEventStyles"\n [allDaySlotTemplate]="allDaySlotTemplate?.templateRef"\n [allDayEventTemplate]="allDayEventTemplate?.templateRef"\n [еventTemplate]="eventTemplate?.templateRef"\n [groupHeaderTemplate]="groupHeaderTemplate?.templateRef"\n [timeSlotTemplate]="timeSlotTemplate?.templateRef"\n [minorTimeHeaderTemplate]="minorTimeHeaderTemplate?.templateRef"\n [majorTimeHeaderTemplate]="majorTimeHeaderTemplate?.templateRef"\n [dateHeaderTemplate]="dateHeaderTemplate?.templateRef"\n [selectedDateFormat]="selectedDateFormat"\n [selectedShortDateFormat]="selectedShortDateFormat">\n </multi-day-view>\n <div viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[o.LocalizationService,i.ChangeDetectorRef,c.ViewContextService,u.ViewStateService])],t)}(a.MultiDayViewBase);t.DayViewComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),s=n(11),a=n(89),c=n(7),u=n(10),l=n(9),d=n(4),p=n(22),h=function(e){function t(t,n,r,i,o){var s=e.call(this,n,r,i,o)||this;return s.intl=t,s.selectedDateFormat="{0:D} - {1:D}",s.selectedShortDateFormat="{0:d} - {1:d}",s.name="week",s.getStartDate=s.getStartDate.bind(s),s}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("weekViewTitle")},enumerable:!0,configurable:!0}),t.prototype.getStartDate=function(e){return d.firstDayInWeek(d.getDate(e),this.viewWeekStart)},r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedShortDateFormat",void 0),r.__decorate([i.ContentChild(p.AllDaySlotTemplateDirective,{static:!1}),r.__metadata("design:type",p.AllDaySlotTemplateDirective)],t.prototype,"allDaySlotTemplate",void 0),r.__decorate([i.ContentChild(p.AllDayEventTemplateDirective,{static:!1}),r.__metadata("design:type",p.AllDayEventTemplateDirective)],t.prototype,"allDayEventTemplate",void 0),r.__decorate([i.ContentChild(p.MinorTimeHeaderTemplateDirective,{static:!1}),r.__metadata("design:type",p.MinorTimeHeaderTemplateDirective)],t.prototype,"minorTimeHeaderTemplate",void 0),r.__decorate([i.ContentChild(p.MajorTimeHeaderTemplateDirective,{static:!1}),r.__metadata("design:type",p.MajorTimeHeaderTemplateDirective)],t.prototype,"majorTimeHeaderTemplate",void 0),t=n=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-week-view",providers:[{provide:s.SchedulerView,useExisting:i.forwardRef((function(){return n}))}],template:'\n <ng-template #content>\n <multi-day-view\n [name]="name"\n [numberOfDays]="7"\n [getStartDate]="getStartDate"\n [eventHeight]="viewEventHeight"\n [currentTimeMarker]="viewCurrentTimeMarker"\n [showWorkHours]="shouldShowWorkHours"\n [scrollTime]="viewScrollTime"\n [startTime]="viewStartTime"\n [endTime]="viewEndTime"\n [workDayStart]="viewWorkDayStart"\n [workDayEnd]="viewWorkDayEnd"\n [workWeekStart]="viewWorkWeekStart"\n [workWeekEnd]="viewWorkWeekEnd"\n [weekStart]="viewWeekStart"\n [slotDuration]="viewSlotDuration"\n [slotDivisions]="viewSlotDivisions"\n [slotFill]="viewSlotFill"\n [slotClass]="viewSlotClass"\n [eventClass]="viewEventClass"\n [eventStyles]="viewEventStyles"\n [allDaySlotTemplate]="allDaySlotTemplate?.templateRef"\n [allDayEventTemplate]="allDayEventTemplate?.templateRef"\n [еventTemplate]="eventTemplate?.templateRef"\n [groupHeaderTemplate]="groupHeaderTemplate?.templateRef"\n [timeSlotTemplate]="timeSlotTemplate?.templateRef"\n [minorTimeHeaderTemplate]="minorTimeHeaderTemplate?.templateRef"\n [majorTimeHeaderTemplate]="majorTimeHeaderTemplate?.templateRef"\n [dateHeaderTemplate]="dateHeaderTemplate?.templateRef"\n [selectedDateFormat]="selectedDateFormat"\n [selectedShortDateFormat]="selectedShortDateFormat">\n </multi-day-view>\n <div viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[c.IntlService,o.LocalizationService,i.ChangeDetectorRef,u.ViewContextService,l.ViewStateService])],t)}(a.MultiDayViewBase);t.WeekViewComponent=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(90),s=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return r.__extends(t,e),Object.defineProperty(t.prototype,"viewColumnWidth",{get:function(){return this.optionValue("columnWidth")},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"columnWidth",void 0),t}(o.DayTimeViewBase);t.TimelineBase=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.sender=e,Object.assign(this,t)};t.SlotClickEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.sender=e,Object.assign(this,t)};t.EventClickEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.sender=e,Object.assign(this,t)};t.EventKeydownEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t,n){var r=e.call(this)||this;return r.sender=t,Object.assign(r,n),r}return r.__extends(t,e),t}(n(12).PreventableEvent);t.DragEndEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t,n){var r=e.call(this)||this;return r.sender=t,Object.assign(r,n),r}return r.__extends(t,e),t}(n(12).PreventableEvent);t.DragEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t,n){var r=e.call(this)||this;return r.sender=t,Object.assign(r,n),r}return r.__extends(t,e),t}(n(12).PreventableEvent);t.DragStartEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t,n){var r=e.call(this)||this;return r.sender=t,Object.assign(r,n),r}return r.__extends(t,e),t}(n(12).PreventableEvent);t.RemoveEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t,n){var r=e.call(this)||this;return r.sender=t,Object.assign(r,n),r}return r.__extends(t,e),t}(n(12).PreventableEvent);t.ResizeEndEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t,n){var r=e.call(this)||this;return r.sender=t,Object.assign(r,n),r}return r.__extends(t,e),t}(n(12).PreventableEvent);t.ResizeEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t,n){var r=e.call(this)||this;return r.sender=t,Object.assign(r,n),r}return r.__extends(t,e),t}(n(12).PreventableEvent);t.ResizeStartEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t,n){var r=e.call(this)||this;return r.sender=t,Object.assign(r,n),r}return r.__extends(t,e),t}(n(12).PreventableEvent);t.SlotDragStartEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(n(33).SlotDragEvent);t.SlotDragEndEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){};t.IsSlotSelectedArgs=r,function(e){e.initDragSelect="initDragSelect",e.dragSelect="dragSelect",e.refreshSlotSelection="refreshSlotSelection",e.dragSelectRelease="dragSelectRelease"}(t.slotDragEventName||(t.slotDragEventName={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),s=n(14),a=n(3),c=function(){function e(e){this.ngZone=e,this.changes=new i.EventEmitter,this.changedSource=new o.Subject,this.changed=this.changedSource.asObservable().pipe(s.debounceTime(0))}return e.prototype.endEdit=function(){var e=this.hasNewEvent?this.newEventGroup.group:this.editedEvent.formGroup;this.changes.emit({action:"cancel",formGroup:e})},e.prototype.removeEvent=function(e){this.changes.emit({action:"remove",dataItem:e})},e.prototype.addEvent=function(e){this.newEventGroup={formGroup:e},this.onChanged()},e.prototype.editEvent=function(e,t,n){void 0===t&&(t=void 0),this.editedEvent={dataItem:e,formGroup:t,mode:n},this.onChanged()},e.prototype.close=function(){this.newEventGroup=this.editedEvent=null,this.onChanged()},e.prototype.save=function(){var e=this.context,t=e.dataItem,n=e.formGroup;this.changes.emit({action:"save",dataItem:t,formGroup:n,isNew:this.hasNewEvent,mode:this.occurrenceEditMode})},e.prototype.isEditing=function(){return a.isPresent(this.context)},Object.defineProperty(e.prototype,"occurrenceEditMode",{get:function(){return this.hasNewEvent?2:this.editedEvent.mode||0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasNewEvent",{get:function(){return a.isPresent(this.newEventGroup)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"newEvent",{get:function(){return this.hasNewEvent?this.newEventGroup.group.value:{}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.hasNewEvent?this.newEventGroup:this.editedEvent},enumerable:!0,configurable:!0}),e.prototype.onChanged=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.changedSource.next()}))},e=r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[i.NgZone])],e)}();t.EditService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,i={};i[void 0]=function(){},t.getter=function(e){if(i[e])return i[e];var t=[];return e.replace(r,(function(e,n,r,i){t.push(void 0!==n?n:r||i)})),i[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},i[e]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,i={};i[void 0]=function(e){return e},t.setter=function(e){if(i[e])return i[e];var t=[];return e.replace(r,(function(e,n,r,i){t.push(void 0!==n?n:r||i)})),i[e]=function(e,n){for(var r=e,i=t.length-1,o=0;o<i&&r;o++)r=r[t[o]]=r[t[o]]||{};r[t[i]]=n},i[e]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OCCURRENCE_ID=0},function(e,t){e.exports=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),s=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}return r.__extends(t,e),t=r.__decorate([r.__param(0,i.Inject(o.L10N_PREFIX)),r.__param(1,i.Optional()),r.__param(2,i.Optional()),r.__param(2,i.Inject(o.RTL)),r.__metadata("design:paramtypes",[String,o.MessageService,Boolean])],t)}(o.LocalizationService);t.SchedulerLocalizationService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultModelFields={id:"id",start:"start",startTimezone:"startTimezone",end:"end",endTimezone:"endTimezone",isAllDay:"isAllDay",title:"title",description:"description",recurrenceRule:"recurrenceRule",recurrenceId:"recurrenceId",recurrenceExceptions:"recurrenceExceptions"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(n(12).PreventableEvent);t.PDFExportEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e,t){this.element=e,this.renderer=t,this.hostClasses=!0}return Object.defineProperty(e.prototype,"display",{get:function(){return this.loading||this.force?"block":"none"},enumerable:!0,configurable:!0}),e.prototype.toggle=function(e){this.force=e,this.renderer.setStyle(this.element.nativeElement,"display",this.display)},r.__decorate([i.HostBinding("class.k-loading-mask"),r.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"loading",void 0),r.__decorate([i.HostBinding("style.display"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"display",null),e=r.__decorate([i.Component({selector:"[kendoSchedulerLoading]",template:'\n <div class="k-loading-image"></div>\n <div class="k-loading-color"></div>\n '}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2])],e)}();t.LoadingComponent=o},function(e,t){e.exports=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"allEvents",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"allDay",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"dateHeader",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"timeHeader",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"eventHeader",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"deleteTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"nextTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"previousTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"today",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"calendarToday",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"showFullDay",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"showWorkDay",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"dayViewTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"multiDayViewTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"weekViewTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"workWeekViewTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"monthViewTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"timelineViewTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"timelineWeekViewTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"timelineMonthViewTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"agendaViewTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"cancel",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"save",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editorEventTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editorEventStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editorEventStartTimeZone",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editorEventEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editorEventEndTimeZone",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editorEventAllDay",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editorEventDescription",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editorEventSeparateTimeZones",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editorEventTimeZone",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorRepeat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorDailyInterval",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorDailyRepeatEvery",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorWeeklyInterval",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorWeeklyRepeatEvery",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorWeeklyRepeatOn",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorMonthlyDay",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorMonthlyInterval",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorMonthlyRepeatEvery",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorMonthlyRepeatOn",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorYearlyOf",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorYearlyRepeatEvery",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorYearlyRepeatOn",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorYearlyInterval",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorFrequenciesDaily",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorFrequenciesMonthly",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorFrequenciesNever",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorFrequenciesWeekly",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorFrequenciesYearly",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorOffsetPositionsFirst",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorOffsetPositionsSecond",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorOffsetPositionsThird",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorOffsetPositionsFourth",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorOffsetPositionsLast",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorWeekdaysDay",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorWeekdaysWeekday",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorWeekdaysWeekendday",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorEndAfter",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorEndOccurrence",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorEndLabel",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorEndNever",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorEndOn",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editorTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"destroy",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"deleteConfirmation",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editRecurringConfirmation",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editOccurrence",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editSeries",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"deleteRecurringConfirmation",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"deleteOccurrence",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"deleteSeries",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"deleteDialogTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"deleteRecurringDialogTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editRecurringDialogTitle",void 0),t}(n(2).ComponentMessages);t.Messages=o},function(e,t){e.exports=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.count=0,this.items={}}return Object.defineProperty(e.prototype,"first",{get:function(){if(this.count>0)return this.items[Object.keys(this.items)[0]]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){if(this.count>0){var e=Object.keys(this.items);return this.items[e[e.length-1]]}},enumerable:!0,configurable:!0}),e.prototype.addItem=function(e,t){this.items[e]||this.count++,this.items[e]=t},e.prototype.removeItem=function(e,t){this.items[e]===t&&(delete this.items[e],this.count--)},e.prototype.toArray=function(){var e=this;return Object.keys(this.items).map((function(t){return e.items[t]}))},e}();t.ItemMap=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(){this.containerSize=0,this.slotsChange=new r.EventEmitter,this.groups=[]}return e.prototype.registerItem=function(e){this.itemGroup(e).registerItem(e)},e.prototype.unregisterItem=function(e,t){t=t||{index:e.index,resourceIndex:e.resourceIndex,rangeIndex:e.rangeIndex};var n=this.groups[t.resourceIndex];n&&n.unregisterItem(e,t)},e.prototype.registerSlot=function(e){this.slotGroup(e).registerSlot(e)},e.prototype.unregisterSlot=function(e){var t=this.groups[e.id.resourceIndex];t&&t.unregisterSlot(e)},e.prototype.invalidate=function(){this.clearEmptyGroups(),this.cleanRanges(),this.slotsChange.emit(),this.forEachSlot((function(e){e.invalidate()}))},e.prototype.cleanRanges=function(){this.groups.forEach((function(e){e.cleanRanges()}))},e.prototype.clearEmptyGroups=function(){for(var e=this.groups,t=this.groups.length-1;t>0&&!e[t].hasSlots;)e.splice(t,1),t--},e.prototype.itemGroup=function(e){var t=e.resourceIndex;return this.groups[t]||(this.groups[t]=this.createGroup(t)),this.groups[t]},e.prototype.slotGroup=function(e){var t=e.id.resourceIndex;return this.groups[t]||(this.groups[t]=this.createGroup(t)),this.groups[t]},e}();t.BaseSlotService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(6),s=n(8),a=n(5),c=n(4),u=function(){function e(e,t,n,r,i,o){this.slotService=e,this.localization=t,this.focusService=n,this.element=r,this.renderer=i,this.localeId=o,this.className=!0,this.subs=new s.Subscription}return Object.defineProperty(e.prototype,"taskIndex",{get:function(){return this.item.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touchAction",{get:function(){return this.editable&&!1!==this.editable.drag?"none":null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"eventTitle",{get:function(){var e=c.toLocalDate(this.item.startTime),t=c.toLocalDate(this.item.endTime);return a.formatEventTime(e,t,this.item.isAllDay,this.localeId)+", "+this.item.event.title},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"deleteMessage",{get:function(){return this.localization.get("deleteTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resizable",{get:function(){return this.editable&&!1!==this.editable.resize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"removable",{get:function(){return this.editable&&!1!==this.editable.remove},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRecurrence",{get:function(){return a.isRecurrence(this.item)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRecurrenceException",{get:function(){return a.isRecurrenceException(this.item)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nativeElement",{get:function(){if(this.element)return this.element.nativeElement},enumerable:!0,configurable:!0}),e.prototype.setStyles=function(e){var t=this.nativeElement;if(t)for(var n in e)e.hasOwnProperty(n)&&this.renderer.setStyle(t,n,e[n])},e.prototype.toggle=function(e){this.setStyles({display:e?"block":"none"})},e.prototype.reflow=function(){var e=this.rect;e&&this.setStyles({left:this.localization.rtl?"":e.left+"px",right:this.localization.rtl?e.left+"px":"",top:e.top+"px",width:e.width+"px",height:e.height+"px",display:"block"})},e.prototype.ngOnInit=function(){var e=this;this.dragHint||this.subs.add(this.slotService.slotsChange.subscribe((function(){e.rect=null,e.setStyles({display:"none",width:0,left:0});var t={index:e.index,resourceIndex:e.resourceIndex,rangeIndex:e.rangeIndex};e.slotService.unregisterItem(e,t),e.resourceIndex>=0&&e.slotService.registerItem(e)})))},e.prototype.ngOnChanges=function(e){if(!this.dragHint&&o.anyChanged(["index","resourceIndex","rangeIndex"],e)){var t=e.resourceIndex,n=e.index,r=e.rangeIndex,i=t?t.previousValue:this.resourceIndex,s={index:n?n.previousValue:this.index,resourceIndex:i,rangeIndex:r?r.previousValue:this.rangeIndex};this.slotService.unregisterItem(this,s),this.resourceIndex>=0?(this.slotService.registerItem(this),this.toggle(!0)):this.toggle(!1)}},e.prototype.ngOnDestroy=function(){this.dragHint||(this.slotService.unregisterItem(this),this.subs.unsubscribe())},r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"item",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"resourceIndex",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"rangeIndex",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"index",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],e.prototype,"eventTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"editable",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"dragHint",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],e.prototype,"resources",void 0),r.__decorate([i.HostBinding("class.k-event"),r.__metadata("design:type",Boolean)],e.prototype,"className",void 0),r.__decorate([i.HostBinding("attr.data-task-index"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"taskIndex",null),r.__decorate([i.HostBinding("style.touch-action"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"touchAction",null),r.__decorate([i.HostBinding("attr.aria-label"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"eventTitle",null),e}();t.BaseViewItem=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(6),s=n(4),a=n(8),c=n(14),u=n(17),l=n(3),d=n(5),p=n(18),h=n(140),f=n(54),m=n(70),y=n(68),v=function(){function e(e,t,n,r,i,o,s,c,u,d){this.viewContext=e,this.viewState=t,this.intl=n,this.slotService=r,this.zone=i,this.renderer=o,this.element=s,this.pdfService=c,this.localization=u,this.cdr=d,this.items=new a.BehaviorSubject(null),this.horizontalResources=[],this.verticalResources=[],this.dragHints=[],this.resizeHints=[],this.getField=l.getField,this.changes=new a.BehaviorSubject(null),this.viewRangeChange=new a.BehaviorSubject(null),this.subs=new a.Subscription,this.groupedResources=[],this.spans=[],this.domEvents=[],this.resourcesCache={},this.dragSelecting=null,this.dragSelectOrigin=null,this.autoHeight=!1,this.rtl=!1,this.isSlotSelected=function(){return!1},this.setSlotClass=this.setSlotClass.bind(this),this.setHintClass=this.setHintClass.bind(this),this.weekStart=n.firstDay()}return Object.defineProperty(e.prototype,"eventTemplateRef",{get:function(){return this.еventTemplate||(this.schedulerEventTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupHeaderTemplateRef",{get:function(){return this.groupHeaderTemplate||(this.schedulerGroupHeaderTemplate||{}).templateRef},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t=this.updateView.bind(this);this.resourcesByIndex=this.resourcesByIndex.bind(this),this.subs.add(this.viewContext.selectedDate.subscribe(this.onSelectDate.bind(this))),this.subs.add(this.viewContext.action.subscribe(this.onAction.bind(this))),this.subs.add(this.viewContext.execute.subscribe(this.execute.bind(this))),this.subs.add(this.viewContext.resize.subscribe((function(){e.toggleElement(!1),e.updateView()}))),this.subs.add(this.viewContext.optionsChange.subscribe(this.optionsChange.bind(this))),this.subs.add(this.changes.subscribe((function(){e.toggleElement(!1)}))),this.subs.add(a.combineLatest(this.viewContext.items,this.viewState.dateRange,this.viewRangeChange).pipe(c.map((function(t){var n=t[0],r=t[1];return e.createTasks(n,r)}))).subscribe((function(t){e.tasks=t,e.assignResources(),e.onTasksChange()}))),this.subs.add(a.combineLatest(this.items,this.changes,this.localization.changes).pipe(c.switchMap((function(){return e.onStable()}))).subscribe(t)),this.subs.add(this.pdfService.createElement.subscribe(this.createPDFElement.bind(this)))},e.prototype.ngOnChanges=function(e){o.anyChanged(["selectedDateFormat","selectedShortDateFormat"],e)&&this.viewState.notifyDateRange(this.dateRange(this.selectedDate)),e.eventHeight&&this.changes.next(null)},e.prototype.ngAfterViewInit=function(){var e=this;this.bindEvents(),this.subs.add(this.localization.changes.subscribe((function(t){var n=t.rtl;e.rtl=n})))},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe(),this.domEvents.forEach((function(e){return e()})),this.domEvents=[],this.draggable&&(this.draggable.destroy(),this.draggable=null)},e.prototype.itemIndex=function(e,t){return e},e.prototype.resourcesByIndex=function(e){if(!this.resourcesCache[e]){for(var t=this.taskResources,n=[],r=e,i=0;i<t.length;i++){var o=t[i].data||[],s=Math.floor(r/this.spans[i]);n.push(o[s]),r-=s*this.spans[i]}this.resourcesCache[e]=n}return this.resourcesCache[e]},e.prototype.dragResourcesByIndex=function(e){var t=this.resources||[],n=[];if(this.groupedResources.length)for(var r=this.resourcesByIndex(e).slice(0),i=this.taskResources,o=0;o<i.length;o++){var s=this.resources.indexOf(i[o]);s>=0&&(n[s]=r[o])}for(o=0;o<t.length;o++)n[o]||(n[o]=d.resourceItemByValue(this.dragging.task.event,t[o]));return n},e.prototype.getEventClasses=function(e,t,n){if(this.eventClass)return this.eventClass({event:e.event,resources:t,isAllDay:n})},e.prototype.getEventStyles=function(e,t,n){var r={backgroundColor:t.color,borderColor:t.color};return this.eventStyles&&Object.assign(r,this.eventStyles({event:e.event,resources:t.resources,isAllDay:n})),r},e.prototype.toPlainDate=function(e){return d.toUTCDateTime(this.convertDate(e))},e.prototype.toPlainDateTime=function(e,t){return e&&t?this.toPlainDate(d.dateWithTime(e,t)):null},e.prototype.optionsChange=function(e){this.schedulerEventTemplate=e.eventTemplate,this.schedulerGroupHeaderTemplate=e.groupHeaderTemplate,this.min=e.min,this.max=e.max,this.editable=e.editable,this.timezone=e.timezone,this.selectable=e.selectable,this.isSlotSelected=e.isSlotSelected,e.changes&&!o.anyChanged(["group","resources"],e.changes,!1)&&e.group===this.group&&e.resources===this.resources||(this.group=e.group,this.resources=e.resources,this.groupResources(),this.resourcesCache={},this.tasks&&this.tasks.length&&(this.assignResources(),this.onTasksChange()),this.changes.next(null))},e.prototype.toggleElement=function(e){this.element&&this.renderer.setStyle(this.element.nativeElement,"display",e?"block":"none")},e.prototype.onStable=function(){return this.zone.onStable.asObservable().pipe(c.take(1))},e.prototype.updateView=function(){this.slotService.invalidate(),this.toggleElement(!0),this.reflow(),this.viewState.notifyLayoutEnd(),this.viewState.emitEvent(m.slotDragEventName.refreshSlotSelection)},e.prototype.assignResources=function(){d.assignTasksResources(this.tasks,{taskResources:this.taskResources,hasGroups:this.groupedResources.length>0,allResources:this.resources,spans:this.spans})},e.prototype.bindEvents=function(){var e=this,t=this.content.nativeElement,n=this.element.nativeElement;this.zone.runOutsideAngular((function(){e.times&&e.subs.add(a.merge(a.fromEvent(e.times.nativeElement,"mousewheel"),a.fromEvent(e.times.nativeElement,"DOMMouseScroll")).pipe(c.filter((function(e){return!e.ctrlKey})),c.tap(u.preventLockedScroll(t)),c.map(u.wheelDeltaY)).subscribe((function(e){return t.scrollTop-=e}))),e.subs.add(a.merge(l.fromClick(t),a.fromEvent(t,"contextmenu")).subscribe((function(t){return e.onClick(t)}))),e.subs.add(l.fromDoubleClick(t).subscribe((function(t){return e.onClick(t,"dblclick")}))),e.subs.add(a.fromEvent(n,"keydown").subscribe((function(t){return e.onKeydown(t)}))),e.domEvents.push(e.renderer.listen(t,"scroll",(function(){e.headerWrap&&(e.headerWrap.nativeElement.scrollLeft=t.scrollLeft),e.times&&(e.times.nativeElement.scrollTop=t.scrollTop)}))),e.draggable=new h.default({press:e.onPress.bind(e),drag:e.onDrag.bind(e),release:e.onRelease.bind(e)}),e.draggable.bindTo(n)}))},e.prototype.onPress=function(e){var t=this.editable&&!1!==this.editable.resize,n=this.editable&&!1!==this.editable.drag,r=e.originalEvent.target;if(u.hasClasses(r,"k-resize-handle")){if(!t)return;this.initResize(e)}else if(n){var i=this.targetTask(r);i&&(e.isTouch||e.originalEvent.preventDefault(),this.pressLocation={x:e.pageX,y:e.pageY},this.pressTarget=i)}!this.pressTarget&&this.selectable&&this.initDragSelect(e),this.dragArgs=e},e.prototype.onDrag=function(e){this.resizing?(this.resize(e),this.scrollContainer(this.resize,e)):(this.initDrag(e),this.dragging&&(this.drag(e),e.originalEvent.preventDefault(),this.scrollContainer(this.drag,e)),this.dragSelecting&&this.dragSelect(e)),this.dragArgs=e},e.prototype.onRelease=function(e){clearInterval(this.scrollInterval);var t=this.resizing,n=this.dragging,r=this.dragSelecting;if(t&&(this.emitEvent("resizeEnd",{event:t.task.event,dataItem:t.task.event.dataItem,start:this.convertDate(t.start),end:this.convertDate(t.end)}),this.resizeHints=[]),n&&(this.emitEvent("dragEnd",{event:n.task.event,dataItem:n.task.event.dataItem,start:n.start?this.convertDate(n.start):n.task.start.toLocalDate(),end:n.end?this.convertDate(n.end):n.task.end.toLocalDate(),resources:n.resources,isAllDay:this.draggedIsAllDay(n.task,n.slot)}),this.dragHints=[]),(t||n)&&(this.removeSlotClass(),this.updateHintContainer(),this.resizing=null,this.dragging=null),r){var i=d.normaliseRangeStartAndEnd(this.dragSelectOrigin,this.dragSelecting),o=i.start,s=i.end,a={start:this.convertDate(o),end:this.convertDate(s),isAllDay:this.dragSelecting.isDaySlot,resources:this.resourcesByIndex(this.dragSelecting.id.resourceIndex),originalEvent:e.originalEvent};this.viewState.notifySlotSelectionEnd(a),this.dragSelectOrigin=null,this.dragSelecting=null,this.cdr.markForCheck()}this.container=null,this.dragArgs=null,this.pressLocation=null,this.pressTarget=null},e.prototype.setHintClass=function(e){(this.dragging||this.resizing).hintClass=e},e.prototype.updateHintClass=function(){var e=this.dragging||this.resizing,t=!1;this.hints.forEach((function(n){n.class!==e.hintClass&&(n.class=e.hintClass,t=!0)})),t&&this.updateHintContainer()},e.prototype.removeHintClass=function(){(this.dragging||this.resizing).hintClass=null},e.prototype.setSlotClass=function(e){var t=this.dragging||this.resizing;t.slotClass=e,this.renderer.addClass(t.slot.nativeElement,t.slotClass)},e.prototype.removeSlotClass=function(){var e=this.dragging||this.resizing;e.slotClass&&(this.renderer.removeClass(e.slot.nativeElement,e.slotClass),e.slotClass=null)},Object.defineProperty(e.prototype,"hints",{get:function(){return this.dragging?this.dragHints:this.resizeHints},enumerable:!0,configurable:!0}),e.prototype.initDrag=function(e){if(!this.dragging&&this.pressLocation&&d.pointDistance(this.pressLocation.x,this.pressLocation.y,e.pageX,e.pageY)>=10){var t=this.pressTarget,n=t.task;if(this.emitEvent("dragStart",{event:n.event,dataItem:n.event.dataItem}))return this.pressLocation=null,void(this.pressTarget=null);if(this.updateDragContainer(e),void 0===this.containerOffset)return;var r=this.coordinatesOffset(this.pressLocation.x,this.pressLocation.y),i=r.x,o=r.y,s=this.slotByPosition(Math.ceil(i),Math.ceil(o),this.container);if(!s)return;this.dragging=t,this.dragging.offset={start:s.start.getTime()-n.start.toUTCDate().getTime(),end:n.end.toUTCDate().getTime()-s.start.getTime()},this.dragging.slot=s,this.dragging.startResources=this.dragging.resourceItems=this.dragResourcesByIndex(s.id.resourceIndex),this.dragging.resources=this.resourceValues(n,this.dragging.startResources)}},e.prototype.updateDragContainer=function(e){this.container||(this.container=this.content.nativeElement,this.containerOffset=d.elementOffset(this.container))},e.prototype.drag=function(e){if(this.updateDragContainer(e),this.container){var t=this.coordinatesOffset(e.pageX,e.pageY),n=t.x,r=t.y,i=this.slotByPosition(n,r,this.container);if(i&&(i!==this.dragging.slot||!this.dragHints.length)){var o=this.dragging,s=o.slot,a=o.task,c=this.dragRanges(i),u=c.ranges,l=c.start,p=c.end,h=c.isAllDay,f=void 0,m=void 0;if(s.id.resourceIndex!==i.id.resourceIndex?(f=this.dragResourcesByIndex(i.id.resourceIndex),m=this.resourceValues(a,f)):(f=o.resourceItems,m=o.resources),this.removeSlotClass(),o.start=l,o.end=p,o.slot=i,o.resources=m,o.resourceItems=f,o.hintClass=null,this.emitEvent("drag",{event:a.event,dataItem:a.event.dataItem,start:this.convertDate(l),end:this.convertDate(p),resources:m,isAllDay:h,setHintClass:this.setHintClass,setSlotClass:this.setSlotClass}))return void this.updateHintClass();var y=this.dragResourceColor(a,f),v=this.dragHintClasses();this.dragHints=[];for(var g=0;g<u.length;g++){var _=u[g],b=_[0],S=_[_.length-1],w=this.dragHintSize(b,S),k=b.rect.left,D={top:d.toPx(b.rect.top),left:this.localization.rtl?"":d.toPx(k),right:this.localization.rtl?d.toPx(k):"",width:w.width,height:w.height,backgroundColor:y,borderColor:y};this.eventStyles&&Object.assign(D,this.eventStyles(this.dragHintEventStyleArgs())),this.dragHints.push({item:Object.assign({},this.dragging.task,{startTime:l,endTime:p}),resources:f,class:v,style:D})}this.updateHintContainer()}}},e.prototype.initDragSelect=function(e){if(this.updateDragContainer(e),this.containerOffset){var t=this.coordinatesOffset(e.pageX,e.pageY),n=t.x,r=t.y,i=this.slotByPosition(n,r,this.container);if(i){var o={start:this.convertDate(i.start),end:this.convertDate(i.end),isAllDay:i.isDaySlot,resources:this.resourcesByIndex(i.id.resourceIndex),originalEvent:e.originalEvent},s=new y.SlotDragStartEvent(null,o);this.viewState.notifySlotSelectionStart(s),s.isDefaultPrevented()||(this.dragSelecting=i,this.dragSelectOrigin=i,this.cdr.markForCheck())}}},e.prototype.dragSelect=function(e){var t=this.coordinatesOffset(e.pageX,e.pageY),n=t.x,r=t.y,i=this.slotByPosition(n,r,this.container);if(i&&this.dragSelecting!==i){this.dragSelecting=i;var o=d.normaliseRangeStartAndEnd(this.dragSelectOrigin,this.dragSelecting),s=o.start,a=o.end,c={start:this.convertDate(s),end:this.convertDate(a),isAllDay:i.isDaySlot,resources:this.resourcesByIndex(i.id.resourceIndex),originalEvent:e.originalEvent};this.viewState.notifySlotSelectionDrag(c),this.cdr.markForCheck()}},e.prototype.dragHintClasses=function(){var e=this.dragging.hintClass,t=[];if(e&&t.push(e),this.eventClass){var n=this.eventClass(this.dragHintEventStyleArgs());t=t.concat(d.convertNgClassBindings(n))}return t},e.prototype.dragHintEventStyleArgs=function(){return{event:this.dragging.task.event,resources:this.dragging.resourceItems}},e.prototype.draggedIsAllDay=function(e,t){return Boolean(e.event.isAllDay)},e.prototype.dragResourceColor=function(e,t){if(this.groupedResources.length){var n=this.resources.indexOf(this.groupedResources[0]);return l.getField(t[n],this.groupedResources[0].colorField)}return this.resources&&this.resources.length?e.resources[0].color:""},e.prototype.resourceValues=function(e,t){for(var n={},r=0;r<t.length;r++){var i=this.resources[r],o=t[r],s=void 0;if(Array.isArray(o))s=l.getField(e.event,i.field);else if(s=l.getField(t[r],i.valueField),i.multiple)s=l.getField(this.dragging.startResources[r],i.valueField)!==s?[s]:l.getField(e.event.dataItem,i.field);l.setField(n,i.field,s)}return n},e.prototype.initResize=function(e){e.originalEvent.preventDefault();var t=e.originalEvent.target,n=this.targetTask(t);if(!this.emitEvent("resizeStart",{event:n.task.event,dataItem:n.task.event.dataItem})){this.resizing=n,n.start=n.task.start.toUTCDate(),n.end=n.task.end.toUTCDate(),u.hasClasses(t,"k-resize-n")?n.direction="n":u.hasClasses(t,"k-resize-s")?n.direction="s":u.hasClasses(t,"k-resize-w")?n.direction="w":n.direction="e",this.updateDragContainer(e);var r=this.coordinatesOffset(e.pageX,e.pageY),i=r.x,o=r.y;n.slot=this.slotByPosition(Math.ceil(i),Math.ceil(o),this.container),n.offset={start:n.task.start.toUTCDate().getTime()-n.slot.start.getTime(),end:n.task.end.toUTCDate().getTime()-n.slot.start.getTime()}}},e.prototype.resize=function(e){var t=this.coordinatesOffset(e.pageX,e.pageY),n=t.x,r=t.y,i=this.resizing,o=i.direction,s=i.task,a=i.offset,c=this.slotService.groupSlotByPosition(i.slot,n,r);if(c&&c!==i.slot){this.removeSlotClass();var u=this.slotService.resizeRanges(c,s,"w"===o||"n"===o,a),l=u.start,d=u.end,p=u.ranges;i.hintClass=null,i.start=l,i.end=d,i.slot=c,this.emitEvent("resize",{event:s.event,dataItem:s.event.dataItem,start:this.convertDate(l),end:this.convertDate(d),setHintClass:this.setHintClass,setSlotClass:this.setSlotClass})?this.updateHintClass():(this.updateResizeHints(p,l,d),this.updateHintContainer())}},e.prototype.updateResizeHints=function(e,t,n){var r=this.resizing,i=r.direction,o="w"===i||"e"===i,s="w"===i||"n"===i;this.resizeHints=[];for(var a=0;a<e.length;a++){var c=e[a],u=c[0],l=c[c.length-1],d=0===a,p=a===e.length-1;this.resizeHints.push({first:d,last:p,rect:{left:u.rect.left,top:u.top,height:o?u.height:Math.abs(l.rect.top-u.rect.top)+l.rect.height,width:o?Math.abs(l.rect.left-u.rect.left)+l.rect.width:u.width},start:d&&!s?r.start:u.start,end:p&&s?r.end:l.end,class:r.hintClass})}},e.prototype.coordinatesOffset=function(e,t,n,r){void 0===n&&(n=this.container),void 0===r&&(r=this.containerOffset);var i=e-r.left+n.scrollLeft;return{x:this.localization.rtl?this.slotService.containerSize-i:i,y:t-r.top+n.scrollTop}},e.prototype.scrollContainer=function(e,t){var n=this;clearInterval(this.scrollInterval);var r=this.container;if(r){var i=t.pageY-this.containerOffset.top,o=Math.abs(r.offsetHeight-i),s=t.pageY-this.dragArgs.pageY,a=t.pageX-this.containerOffset.left,c=Math.abs(r.offsetWidth-a),u=t.pageX-this.dragArgs.pageX,l=!1,d=0,p=0;o<60&&r.scrollTop+r.offsetHeight<r.scrollHeight&&s>0?(l=!0,p=15,this.container.scrollTop+=60-o):i<60&&r.scrollTop>0&&s<0&&(l=!0,p=-15,this.container.scrollTop-=60-i),c<60&&r.scrollLeft+r.offsetWidth<r.scrollWidth&&u>0?(l=!0,d=15,this.container.scrollLeft+=60-c):a<60&&r.scrollLeft>0&&s<0&&(l=!0,d=-15,this.container.scrollLeft-=60-a),l&&(this.scrollInterval=setInterval((function(){n.container?(n.container.scrollLeft+=d,n.container.scrollTop+=p,e.call(n,t)):clearInterval(n.scrollInterval)}),50))}},e.prototype.emitEvent=function(e,t){return this.viewState.emitEvent(e,t),t.prevented},e.prototype.targetTask=function(e){var t=u.closestInScope(e,(function(e){return e.hasAttribute("data-task-index")}),this.element.nativeElement);if(t){var n=parseInt(t.getAttribute("data-task-index"),10);return{target:t,task:this.tasks.find((function(e){return e.index===n}))}}},e.prototype.updateHintContainer=function(){this.hintContainer&&this.hintContainer.detectChanges()},e.prototype.convertDate=function(e){return s.ZonedDate.fromUTCDate(e,this.timezone).toLocalDate()},e.prototype.onClick=function(e,t){void 0===t&&(t=e.type),this.emitSlotEvent(e,t),this.emitTaskEvent(e,t)},e.prototype.emitSlotEvent=function(e,t){var n=u.closestInScope(e.target,(function(e){return e.hasAttribute("data-slot-index")}),this.element.nativeElement);if(n){var r=n.getAttribute("data-slot-index"),i="dblclick"===t?"slotDblClick":"slotClick",o=this.slotByIndex(r,e);this.viewState.emitEvent(i,{type:t,slot:o,start:this.convertDate(o.start),end:this.convertDate(o.end),isAllDay:o.isDaySlot,originalEvent:e,resources:this.resources&&this.resources.length?this.resourcesByIndex(o.id.resourceIndex):[]})}},e.prototype.emitTaskEvent=function(e,t){var n=this.targetTask(e.target);if(n){var r=n.task,i="dblclick"===t;if("click"===t&&u.closestInScope(e.target,(function(e){return u.hasClasses(e,"k-event-delete")}),n.target))this.viewState.emitEvent("remove",{event:r.event,dataItem:r.event.dataItem});else{var o=i?"eventDblClick":"eventClick";this.viewState.emitEvent(o,{type:t,event:r.event,originalEvent:e}),n.target.focus()}}},e.prototype.onKeydown=function(e){var t=this.targetTask(e.target);if(t){var n=t.task;this.viewState.emitEvent("eventKeydown",{event:n.event,dataItem:n.event.dataItem,originalEvent:e})}},e.prototype.syncTables=function(){if(this.timesTable&&this.renderer.setStyle(this.timesTable.nativeElement,"height",this.contentTable.nativeElement.offsetHeight+"px"),this.header&&(this.renderer.setStyle(this.header.nativeElement,this.localization.rtl?"padding-left":"padding-right",(u.hasScrollbar(this.content.nativeElement,"vertical")?u.scrollbarWidth()-p.BORDER_WIDTH:0)+"px"),this.renderer.setStyle(this.header.nativeElement,this.localization.rtl?"padding-right":"padding-left","0px")),this.times){var e=this.times.nativeElement;this.timesHeader.nativeElement.style.width=e.offsetWidth+"px";var t="auto"===this.contentHeight?this.content.nativeElement.offsetHeight:this.contentHeight;this.renderer.setStyle(e,"height",t-(u.hasScrollbar(this.content.nativeElement,"horizontal")?u.scrollbarWidth():0)+"px"),e.scrollTop=this.content.nativeElement.scrollTop}},e.prototype.updateContentHeight=function(){var e=this.element.nativeElement,t=e.parentNode,n=this.content.nativeElement,r=this.autoHeight||!t.style.height,i=n.scrollLeft,o=n.scrollTop;if(this.renderer.setStyle(n,"height",""),this.times&&this.renderer.setStyle(this.times.nativeElement,"height",""),r)this.contentHeight="auto";else{for(var s=t.clientHeight,a=0;a<t.children.length;a++){var c=t.children[a];c===e||d.ignoreContentChild(c)||(s-=c.offsetHeight)}s-=this.headerWrap?this.headerWrap.nativeElement.offsetHeight:0,this.renderer.setStyle(n,"height",s+"px"),this.contentHeight=s,n.scrollLeft=i,n.scrollTop=o}},e.prototype.groupResources=function(){var e=this.resources||[],t=this.group||{};this.groupedResources=l.groupResources(t,e),"vertical"!==t.orientation?(this.horizontalResources=this.groupedResources,this.verticalResources=[]):(this.verticalResources=this.groupedResources,this.horizontalResources=[]),this.spans=this.resourceSpans()},Object.defineProperty(e.prototype,"taskResources",{get:function(){return this.groupedResources.length?this.groupedResources:this.resources&&this.resources.length?[this.resources[0]]:[{}]},enumerable:!0,configurable:!0}),e.prototype.resourceSpans=function(){for(var e=[1],t=this.groupedResources,n=1,r=t.length-1;r>0;r--)n*=(t[r].data||[]).length||1,e.unshift(n);return e},e.prototype.isInRange=function(e){var t=this.dateRange(e);return(!this.min||this.min<t.end)&&(!this.max||t.start<=this.max)},e.prototype.createPDFElement=function(){var e=this.contentHeight,t=this.content.nativeElement.scrollTop;"auto"!==e&&(this.autoHeight=!0,this.updateView());var n=this.element.nativeElement.cloneNode(!0);n.style.width=this.pdfWidth()+"px","auto"!==e&&(this.autoHeight=!1,this.updateView()),this.pdfService.elementReady.emit({element:n}),this.content.nativeElement.scrollTop=t},e.prototype.pdfWidth=function(){return this.element.nativeElement.offsetWidth},e.prototype.containerByPosition=function(e){var t=e.x,n=e.y,r=this.content.nativeElement,i=d.elementOffset(r);if(i.top<=n&&n<=i.top+i.height&&i.left<=t&&t<=i.left+i.width)return{element:r,offset:i}},e.prototype.execute=function(e){if("slotByPosition"===e.name){var t=this.containerByPosition(e.args);if(t){var n=this.coordinatesOffset(e.args.x,e.args.y,t.element,t.offset),r=this.slotByPosition(n.x,n.y,t.element);e.result(this.slotFields(r))}}else if("eventFromElement"===e.name){var i=this.targetTask(e.args.element);i&&e.result(i.task.event)}},e.prototype.slotFields=function(e){return{element:e.element,resources:this.groupedResources.length?this.resourcesByIndex(e.id.resourceIndex):[],start:this.convertDate(e.start),end:this.convertDate(e.end)}},r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],e.prototype,"еventTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],e.prototype,"groupHeaderTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"selectedDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"selectedShortDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"eventHeight",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"slotClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"eventClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"eventStyles",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"weekStart",void 0),r.__decorate([i.ViewChild("content",{static:!1}),r.__metadata("design:type",i.ElementRef)],e.prototype,"content",void 0),r.__decorate([i.ViewChild("header",{static:!1}),r.__metadata("design:type",i.ElementRef)],e.prototype,"header",void 0),r.__decorate([i.ViewChild("contentTable",{static:!1}),r.__metadata("design:type",i.ElementRef)],e.prototype,"contentTable",void 0),r.__decorate([i.ViewChild("times",{static:!1}),r.__metadata("design:type",i.ElementRef)],e.prototype,"times",void 0),r.__decorate([i.ViewChild("timesHeader",{static:!1}),r.__metadata("design:type",i.ElementRef)],e.prototype,"timesHeader",void 0),r.__decorate([i.ViewChild("timesTable",{static:!1}),r.__metadata("design:type",i.ElementRef)],e.prototype,"timesTable",void 0),r.__decorate([i.ViewChild("headerWrap",{static:!1}),r.__metadata("design:type",i.ElementRef)],e.prototype,"headerWrap",void 0),r.__decorate([i.ViewChild("hintContainer",{static:!1}),r.__metadata("design:type",f.HintContainerComponent)],e.prototype,"hintContainer",void 0),e}();t.BaseView=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(6),s=function(){function e(e,t,n){this.element=e,this.slotService=t,this.localization=n,this._rect=null}return Object.defineProperty(e.prototype,"slotIndex",{get:function(){return this.key},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rect",{get:function(){if(this._rect)return this._rect;var e=this.nativeElement;return this._rect={left:this.localization.rtl?this.slotService.containerSize-(e.offsetLeft+e.clientWidth):e.offsetLeft,top:e.offsetTop,width:e.clientWidth,height:e.clientHeight},this._rect},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.element?this.nativeElement.offsetTop:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this.element&&o.isDocumentAvailable()?2*parseInt(window.getComputedStyle(this.nativeElement).paddingTop,10):0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.element?this.nativeElement.offsetHeight:0},set:function(e){this.element&&(this.nativeElement.style.height=e+"px"),this._rect&&(this._rect.height=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.element?this.nativeElement.offsetWidth:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"key",{get:function(){return this.id.resourceIndex+":"+this.id.rangeIndex+":"+this.id.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nativeElement",{get:function(){return this.element.nativeElement},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.slotService.registerSlot(this)},e.prototype.ngOnDestroy=function(){this.slotService.unregisterSlot(this)},e.prototype.invalidate=function(){this._rect=null},r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"id",void 0),r.__decorate([i.HostBinding("attr.data-slot-index"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"slotIndex",null),e}();t.BaseSlotDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(){this.hostClasses=!0,this.inlineJustifyContentStyle="start",this.itemClick=new i.EventEmitter}return e.prototype.onItemClick=function(e,t){e.preventDefault(),this.itemClick.emit(t)},r.__decorate([i.HostBinding("class.k-scheduler-footer"),i.HostBinding("class.k-toolbar"),r.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),r.__decorate([i.HostBinding("style.justify-content"),r.__metadata("design:type",String)],e.prototype,"inlineJustifyContentStyle",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"itemClick",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],e.prototype,"items",void 0),e=r.__decorate([i.Component({selector:"[viewFooter]",template:'\n <button type="button" kendoButton *ngFor="let item of items" [ngClass]="item.cssClass" (click)="onItemClick($event, item)">\n <span class="k-button-icon k-icon" [ngClass]="item.iconClass"></span>\n <span class="k-button-text">{{ item.text }}</span>\n </button>\n '})],e)}();t.ViewFooterComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(90),s=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return r.__extends(t,e),Object.defineProperty(t.prototype,"viewSlotFill",{get:function(){return this.optionValue("slotFill")},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"slotFill",void 0),t}(o.DayTimeViewBase);t.MultiDayViewBase=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(51),s=n(22),a=n(18),c=n(3),u=(n(4),function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return r.__extends(t,e),Object.defineProperty(t.prototype,"viewEventHeight",{get:function(){return this.optionValue("eventHeight")||a.DEFAULT_EVENT_HEIGHT},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldShowWorkHours",{get:function(){return this.optionValue("showWorkHours")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewStartTime",{get:function(){return this.optionValue("startTime")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewEndTime",{get:function(){return this.optionValue("endTime")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewWorkDayStart",{get:function(){return this.optionValue("workDayStart")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewWorkDayEnd",{get:function(){return this.optionValue("workDayEnd")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewWorkWeekStart",{get:function(){return this.optionValue("workWeekStart")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewWorkWeekEnd",{get:function(){return this.optionValue("workWeekEnd")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewSlotDuration",{get:function(){return this.optionValue("slotDuration")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewSlotDivisions",{get:function(){return this.optionValue("slotDivisions")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewCurrentTimeMarker",{get:function(){return this.optionValue("currentTimeMarker")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewScrollTime",{get:function(){return this.optionValue("scrollTime")},enumerable:!0,configurable:!0}),t.prototype.optionValue=function(e){return c.isPresent(this[e])?this[e]:this.schedulerOptions[e]},r.__decorate([i.ContentChild(s.TimeSlotTemplateDirective,{static:!1}),r.__metadata("design:type",s.TimeSlotTemplateDirective)],t.prototype,"timeSlotTemplate",void 0),r.__decorate([i.ContentChild(s.DateHeaderTemplateDirective,{static:!1}),r.__metadata("design:type",s.DateHeaderTemplateDirective)],t.prototype,"dateHeaderTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],t.prototype,"showWorkHours",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"eventHeight",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"startTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"scrollTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"endTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"workDayStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"workDayEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"workWeekStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"workWeekEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"slotDuration",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"slotDivisions",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"currentTimeMarker",void 0),t}(o.ConfigurationViewBase));t.DayTimeViewBase=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(6),s=n(4),a=n(8),c=n(5),u=n(151),l=n(86),d=n(18),p=n(3),h=n(17),f=function(e){return s.getDate(e)},m=function(e,t){return s.getDate(s.addDays(e,t||1))},y=function(e,t,n){return s.getDate(s.addDays(e,n*t))},v=function(e){function t(t,n,r,i,o,s,a,c,u,l){var d=e.call(this,n,r,i,o,s,a,c,u,l,t)||this;return d.changeDetector=t,d.numberOfDays=1,d.startTime="00:00",d.endTime="00:00",d.workDayStart="08:00",d.workDayEnd="17:00",d.workWeekStart=1,d.workWeekEnd=5,d.slotDuration=60,d.slotDivisions=2,d.showWorkHours=!1,d.getStartDate=f,d.getEndDate=m,d.getNextDate=y,d.daySlots=[],d.timeSlots=[],d.resizeHintFormat="t",d.showCurrentTime=!1,d.verticalTime=!0,d.initialUpdate=!0,d.updateCurrentTime=d.updateCurrentTime.bind(d),d}return r.__extends(t,e),Object.defineProperty(t.prototype,"classNames",{get:function(){return"k-scheduler-"+this.name+"view"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timeSlotTemplateRef",{get:function(){return this.timeSlotTemplate||(this.schedulerTimeSlotTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateHeaderTemplateRef",{get:function(){return this.dateHeaderTemplate||(this.schedulerDateHeaderTemplate||{}).templateRef},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){(t.startTime||t.endTime||t.showWorkHours||t.workDayStart||t.workDayEnd||t.workWeekStart||t.workWeekEnd||t.slotDivisions||t.slotDuration)&&(this.timeSlots=this.createTimeSlots(),this.initWorkDay(),this.changes.next(null)),o.isChanged("currentTimeMarker",t)&&(this.showCurrentTime=this.enableCurrentTime()),o.isChanged("weekStart",t)&&this.onSelectDate(this.selectedDate),e.prototype.ngOnChanges.call(this,t)},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),clearTimeout(this.currentTimeTimeout)},t.prototype.verticalItem=function(e,t){for(var n=this.verticalResources[t].data||[],r=this.verticalResources,i=1,o=t+1;o<r.length;o++)i*=(r[o].data||[]).length||1;return n[e/i%n.length]},t.prototype.timeSlotClass=function(e,t,n){if(this.slotClass)return this.slotClass({start:c.dateWithTime(t,e.start),end:c.dateWithTime(t,e.end),resources:this.resourcesByIndex(n),isAllDay:!1})},t.prototype.scrollToTime=function(e){var t;if(void 0===e&&(e=this.scrollTime),"string"==typeof e){var n=this.intl.parseDate(e);if(!n)return;t=c.toUTCTime(this.daySlots[0].start,n)}else t=c.toUTCDateTime(e);var r=this.slotService.timePosition(t,0,this.verticalTime);if(p.isNumber(r)){var i=this.content.nativeElement;i[this.verticalTime?"scrollTop":"scrollLeft"]=this.localization.rtl&&!this.verticalTime?h.rtlScrollPosition(i,r):r}},t.prototype.optionsChange=function(t){this.schedulerTimeSlotTemplate=t.timeSlotTemplate,this.schedulerDateHeaderTemplate=t.dateHeaderTemplate,e.prototype.optionsChange.call(this,t)},t.prototype.updateView=function(){e.prototype.updateView.call(this),this.updateCurrentTime(),this.initialUpdate&&(this.scrollToTime(),this.initialUpdate=!1)},t.prototype.enableCurrentTime=function(){if(!this.currentTimeMarker||!1===this.currentTimeMarker.enabled||!this.selectedDate)return!1;var e=this.dateRange();this.currentDate=s.ZonedDate.fromLocalDate(this.currentTime(),!1!==this.currentTimeMarker.localTimezone?"":this.timezone);var t=this.currentDate.toLocalDate(),n=c.toInvariantTime(t),r=this.timeSlots,i=c.dateInRange(t,e.start,e.end),o=r.length&&c.dateInRange(n,r[0].start,r[r.length-1].end);return i&&o},t.prototype.currentTime=function(){return new Date},t.prototype.updateCurrentTime=function(){var e=this;if(o.isDocumentAvailable()){var t=this.enableCurrentTime();t!==this.showCurrentTime&&(this.showCurrentTime=t,this.changeDetector.detectChanges()),clearTimeout(this.currentTimeTimeout),t&&(this.zone.runOutsideAngular((function(){e.currentTimeTimeout=setTimeout(e.updateCurrentTime,e.currentTimeMarker.updateInterval||d.MS_PER_MINUTE)})),this.positionCurrentTime())}},t.prototype.positionCurrentTime=function(){var e=this;if(this.currentTimeElements&&this.currentTimeElements.length){var t=this.currentDate.toUTCDate(),n=this.currentTimeArrows?this.currentTimeArrows.toArray():[],r=n.length?this.currentTimeArrowOffset():0,i=n.length?n[0].nativeElement.offsetHeight/2:4,o=this.contentTable.nativeElement.clientWidth,s=this.contentTable.nativeElement.clientHeight,a=this.verticalTime;this.currentTimeElements.forEach((function(u,l){var d=e.slotService.timePosition(t,l,a);if(void 0!==d){var p=u.nativeElement;if(n[l]){var h=n[l].nativeElement,f=a?r:d-i;c.setCoordinates(h,{top:a?d-i:r,left:f,right:f})}var m=a?0:d;c.setCoordinates(p,{top:a?d:0,left:m,right:m,width:a?o:1,height:a?1:s})}}))}},t.prototype.bindEvents=function(){var t=this;e.prototype.bindEvents.call(this),this.zone.runOutsideAngular((function(){t.subs.add(p.fromClick(t.headerWrap.nativeElement).subscribe((function(e){return t.onHeaderClick(e)}))),t.subs.add(a.fromEvent(t.headerWrap.nativeElement,"contextmenu").subscribe((function(e){return t.onClick(e)}))),t.subs.add(p.fromDoubleClick(t.headerWrap.nativeElement).subscribe((function(e){return t.onClick(e,"dblclick")})))}))},t.prototype.onHeaderClick=function(e){var t=this;if(this.onClick(e),!(this.daySlots.length<=1)){var n=e.target.getAttribute("data-dayslot-index");if(n){var r=this.daySlots[parseInt(n,10)];this.zone.run((function(){t.viewState.navigateTo({viewName:"day",date:r.start})}))}}},t.prototype.slotByIndex=function(e,t){return this.slotService.slotByIndex(e,t.target.hasAttribute("data-day-slot"))},t.prototype.onSelectDate=function(e){this.selectedDate=e,this.daySlots=this.createDaySlots(),this.showCurrentTime=this.enableCurrentTime(),this.viewState.notifyDateRange(this.dateRange())},t.prototype.onAction=function(e){var t=s.getDate(this.selectedDate);if("next"===e.type){var n=this.getNextDate(t,1,this.numberOfDays);this.isInRange(n)&&this.viewState.notifyNextDate(n)}if("prev"===e.type){n=this.getNextDate(t,-1,this.numberOfDays);this.isInRange(n)&&this.viewState.notifyNextDate(n)}"scroll-time"===e.type&&this.scrollToTime(e.time)},t.prototype.dateRange=function(e){void 0===e&&(e=this.selectedDate);var t=this.getStartDate(e),n=this.getEndDate(t,this.numberOfDays),r=this.getEndDate(t,this.numberOfDays-1);return{start:t,end:n,text:this.intl.format(this.selectedDateFormat,t,r),shortText:this.intl.format(this.selectedShortDateFormat,t,r)}},t.prototype.createDaySlots=function(){for(var e=this.getStartDate(this.selectedDate),t=this.getEndDate(e,this.numberOfDays),n=[];e<t;){var r=s.addDays(e,1);n.push({start:e,end:r}),e=r}return n},t.prototype.createTimeSlots=function(){return u.createTimeSlots(this.intl,{showWorkHours:this.showWorkHours,startTime:this.startTime,endTime:this.endTime,workDayStart:this.workDayStart,workDayEnd:this.workDayEnd,slotDivisions:this.slotDivisions,slotDuration:this.slotDuration})},t.prototype.initWorkDay=function(){var e=this.intl.parseDate(this.workDayStart);this.workDayStartTime=c.toInvariantTime(e);var t=this.intl.parseDate(this.workDayEnd);this.workDayEndTime=t<=e?s.addDays(d.MIDNIGHT_INVARIANT,1):c.toInvariantTime(t)},t.prototype.slotByPosition=function(e,t,n){var r=n?h.hasClasses(n.parentNode,"k-scheduler-header-wrap"):t<0;return this.slotService.slotByPosition(e,t,r,Boolean(this.verticalResources.length))},t.prototype.slotFields=function(t){var n=e.prototype.slotFields.call(this,t);return t.isDaySlot?n.isAllDay=!0:(n.start=this.convertDate(t.start),n.end=this.convertDate(t.end)),n},r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],t.prototype,"timeSlotTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],t.prototype,"dateHeaderTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"numberOfDays",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"scrollTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"startTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"endTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"workDayStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"workDayEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"workWeekStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"workWeekEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"slotDuration",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"slotDivisions",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],t.prototype,"showWorkHours",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"getStartDate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"getEndDate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"getNextDate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"currentTimeMarker",void 0),r.__decorate([i.ViewChildren("currentTimeMarker"),r.__metadata("design:type",i.QueryList)],t.prototype,"currentTimeElements",void 0),r.__decorate([i.ViewChildren("currentTimeArrow"),r.__metadata("design:type",i.QueryList)],t.prototype,"currentTimeArrows",void 0),t}(l.BaseView);t.DayTimeViewComponent=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(25),s=n(26),a=n(152),c=n(153),u=n(29),l=[a.TimeSlotDirective,a.DaySlotDirective,c.DayTimeViewItemComponent],d=function(){function e(){}return e=r.__decorate([i.NgModule({imports:[o.CommonModule,s.SharedModule,u.ViewsSharedModule],exports:[l],declarations:[l]})],e)}();t.DayTimeModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3);function i(e,t){if(e&&e.getTime&&t&&t.getTime)return e.getTime()===t.getTime();if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e==t}t.markAllAsTouched=function(e){if(e.markAsTouched(),e.hasOwnProperty("controls")){var n=e.controls;for(var r in n)n.hasOwnProperty(r)&&t.markAllAsTouched(n[r])}},t.diff=function(e,t,n){for(var o=0;o<n.length;o++){var s=n[o];if(!i(r.getField(e,s),r.getField(t,s)))return!0}return!1},t.areEqual=i;var o=["getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","getMilliseconds"];t.seriesDate=function(e,t,n,i){var s,a=[],c=r.getField(e,i),u=r.getField(t,i),l=r.getField(n,i);return o.forEach((function(e){a.push(u[e]()===l[e]()?c[e]():l[e]())})),new((s=Date).bind.apply(s,[void 0].concat(a)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(15),s=n(95),a=n(31);t.MULTIPLE_RESOURCE_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:i.forwardRef((function(){return c}))};var c=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.getTagStyle=function(e){return{"background-color":e[this.resource.colorField]}},n.prototype.focus=function(){this.resourceMultiSelect.focus()},r.__decorate([i.ViewChild("resourceMultiSelect",{static:!0}),r.__metadata("design:type",a.MultiSelectComponent)],n.prototype,"resourceMultiSelect",void 0),n=r.__decorate([i.Component({providers:[t.MULTIPLE_RESOURCE_VALUE_ACCESSOR],selector:"kendo-multiple-resource-editor",template:"\n <kendo-multiselect\n #resourceMultiSelect\n [data]='resource.data'\n [textField]='resource.textField'\n [valueField]='resource.valueField'\n [valuePrimitive]='true'\n [value]='resourceValue'\n (valueChange)='onResourceValueChange($event)'\n >\n <ng-template kendoDropDownListItemTemplate let-dataItem>\n <span *ngIf=\"resource.colorField\" class=\"k-scheduler-mark\"\n [ngStyle]=\"getResourceStyle(dataItem)\"></span>\n {{ getField(dataItem, resource.textField) }}\n </ng-template>\n <ng-template kendoMultiSelectTagTemplate let-dataItem>\n <span *ngIf=\"resource.colorField\" class=\"k-scheduler-mark\"\n [ngStyle]=\"getTagStyle(dataItem)\"></span>\n {{ getField(dataItem, resource.textField) }}\n </ng-template>\n </kendo-multiselect>\n "})],n)}(s.ResourceEditorBase);t.MultipleResourceEditorComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(3),s=function(){function e(){this.valueChange=new i.EventEmitter,this.getField=o.getField,this.onTouchedCallback=function(e){},this.onChangeCallback=function(e){}}return e.prototype.writeValue=function(e){this.resourceValue=e},e.prototype.getResourceStyle=function(e){return{"background-color":o.getField(e,this.resource.colorField),"margin-right":o.isPresent(o.getField(e,this.resource.valueField))?"8px":"4px"}},e.prototype.onResourceValueChange=function(e){this.resourceValue=e,this.emitChange(this.resourceValue)},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"resource",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"valueChange",void 0),e}();t.ResourceEditorBase=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(15),s=n(95),a=n(31);t.SINGLE_RESOURCE_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:i.forwardRef((function(){return c}))};var c=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.focus=function(){this.resourceDropDown.focus()},r.__decorate([i.ViewChild("resourceDropDown",{static:!0}),r.__metadata("design:type",a.DropDownListComponent)],n.prototype,"resourceDropDown",void 0),n=r.__decorate([i.Component({providers:[t.SINGLE_RESOURCE_VALUE_ACCESSOR],selector:"kendo-single-resource-editor",template:"\n <kendo-dropdownlist\n #resourceDropDown\n [data]='resource.data'\n [textField]='resource.textField'\n [valueField]='resource.valueField'\n [valuePrimitive]='true'\n [value]='resourceValue'\n (valueChange)='onResourceValueChange($event)'\n >\n <ng-template kendoDropDownListItemTemplate let-dataItem>\n <span *ngIf=\"resource.colorField\" class=\"k-scheduler-mark\"\n [ngStyle]=\"getResourceStyle(dataItem)\"></span>\n {{ getField(dataItem, resource.textField) }}\n </ng-template>\n </kendo-dropdownlist>\n "})],n)}(s.ResourceEditorBase);t.SingleResourceEditorComponent=c},function(e,t,n){"use strict";var r;function i(e,t){return e.altKey===((t&r.AltKey)===r.AltKey)&&e.ctrlKey===((t&r.CtrlKey)===r.CtrlKey)&&e.shiftKey===((t&r.ShiftKey)===r.ShiftKey)&&e.metaKey===((t&r.MetaKey)===r.MetaKey)}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.None=0]="None",e[e.AltKey=1]="AltKey",e[e.CtrlKey=2]="CtrlKey",e[e.ShiftKey=4]="ShiftKey",e[e.MetaKey=8]="MetaKey"}(r=t.Modifiers||(t.Modifiers={})),t.withModifiers=i,t.noModifiers=function(e){return i(e,r.None)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(15),s=n(6),a=n(7),c=n(2),u=n(4),l=n(13),d=n(3),p=n(167);t.RECURRENCE_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:i.forwardRef((function(){return h}))};var h=function(){function e(e,t){var n=this;this.recurrenceService=e,this.intl=t,this.cssClass=!0,this.timezone="Etc/UTC",this.valueChange=new i.EventEmitter,this.onTouchedCallback=function(e){},this.onChangeCallback=function(e){},this.weekStart=t.firstDay(),this.subscriptions=this.recurrenceService.change.subscribe((function(e){n.emitChange(e)}))}return Object.defineProperty(e.prototype,"start",{get:function(){return d.isPresent(this._start)?this._start:u.getDate(new Date)},set:function(e){this._start=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentFreq",{get:function(){return this.recurrenceService.frequency},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.recurrenceService.init("",this.start,this.timezone,this.weekStart)},e.prototype.ngOnChanges=function(e){s.isChanged("start",e)&&(this.recurrenceService.start=this.start)},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.writeValue=function(e){this.recurrenceService.init("string"==typeof e?e:"",this.start,this.timezone,this.weekStart)},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},r.__decorate([i.HostBinding("class.k-recurrence-editor"),r.__metadata("design:type",Boolean)],e.prototype,"cssClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date),r.__metadata("design:paramtypes",[Date])],e.prototype,"start",null),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"timezone",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"weekStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"repeatEveryOptions",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"endAfterOptions",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"repeatOnOptions",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"endOnOptions",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"valueChange",void 0),e=r.__decorate([i.Component({exportAs:"kendoRecurrenceEditor",providers:[p.RecurrenceLocalizationService,{provide:c.LocalizationService,useExisting:p.RecurrenceLocalizationService},{provide:c.L10N_PREFIX,useValue:"kendo.recurrenceeditor"},t.RECURRENCE_VALUE_ACCESSOR,l.RecurrenceService],selector:"kendo-recurrence-editor",template:"\n <ng-container kendoRecurrenceEditorLocalizedMessages\n i18n-repeat=\"kendo.recurrenceeditor.repeat|The text similar to 'Repeat' displayed in the recurrence editor.\"\n repeat='Repeat'\n\n i18n-dailyInterval=\"kendo.recurrenceeditor.dailyInterval|The text similar to 'day(s)' displayed in the recurrence editor.\"\n dailyInterval='day(s)'\n\n i18n-dailyRepeatEvery=\"kendo.recurrenceeditor.dailyRepeatEvery|The text similar to 'Repeat every' displayed in the recurrence editor.\"\n dailyRepeatEvery='Repeat every'\n\n i18n-weeklyInterval=\"kendo.recurrenceeditor.weeklyInterval|The text similar to 'week(s)' displayed in the recurrence editor.\"\n weeklyInterval='week(s)'\n\n i18n-weeklyRepeatEvery=\"kendo.recurrenceeditor.weeklyRepeatEvery|The text similar to 'Repeat every' displayed in the recurrence editor.\"\n weeklyRepeatEvery='Repeat every'\n\n i18n-weeklyRepeatOn=\"kendo.recurrenceeditor.weeklyRepeatOn|The text similar to 'Repeat on' displayed in the recurrence editor.\"\n weeklyRepeatOn='Repeat on'\n\n i18n-monthlyDay=\"kendo.recurrenceeditor.monthlyDay|The text similar to 'Day' displayed in the recurrence editor.\"\n monthlyDay='Day'\n\n i18n-monthlyInterval=\"kendo.recurrenceeditor.monthlyInterval|The text similar to 'month(s)' displayed in the recurrence editor.\"\n monthlyInterval='month(s)'\n\n i18n-monthlyRepeatEvery=\"kendo.recurrenceeditor.monthlyRepeatEvery|The text similar to 'Repeat every' displayed in the recurrence editor.\"\n monthlyRepeatEvery='Repeat every'\n\n i18n-monthlyRepeatOn=\"kendo.recurrenceeditor.monthlyRepeatOn|The text similar to 'Repeat on' displayed in the recurrence editor.\"\n monthlyRepeatOn='Repeat on'\n\n i18n-yearlyOf=\"kendo.recurrenceeditor.yearlyOf|The text similar to 'of' displayed in the recurrence editor.\"\n yearlyOf='of'\n\n i18n-yearlyRepeatEvery=\"kendo.recurrenceeditor.yearlyRepeatEvery|The text similar to 'Repeat every' displayed in the recurrence editor.\"\n yearlyRepeatEvery='Repeat every'\n\n i18n-yearlyRepeatOn=\"kendo.recurrenceeditor.yearlyRepeatOn|The text similar to 'Repeat on' displayed in the recurrence editor.\"\n yearlyRepeatOn='Repeat on'\n\n i18n-yearlyInterval=\"kendo.recurrenceeditor.yearlyInterval|The text similar to 'year(s)' displayed in the recurrence editor.\"\n yearlyInterval='year(s)'\n\n i18n-frequenciesDaily=\"kendo.recurrenceeditor.frequenciesDaily|The text similar to 'Daily' displayed in the recurrence editor.\"\n frequenciesDaily='Daily'\n\n i18n-frequenciesMonthly=\"kendo.recurrenceeditor.frequenciesMonthly|The text similar to 'Monthly' displayed in the recurrence editor.\"\n frequenciesMonthly='Monthly'\n\n i18n-frequenciesNever=\"kendo.recurrenceeditor.frequenciesNever|The text similar to 'Never' displayed in the recurrence editor.\"\n frequenciesNever='Never'\n\n i18n-frequenciesWeekly=\"kendo.recurrenceeditor.frequenciesWeekly|The text similar to 'Weekly' displayed in the recurrence editor.\"\n frequenciesWeekly='Weekly'\n\n i18n-frequenciesYearly=\"kendo.recurrenceeditor.frequenciesYearly|The text similar to 'Yearly' displayed in the recurrence editor.\"\n frequenciesYearly='Yearly'\n\n i18n-fffsetPositionsFirst=\"kendo.recurrenceeditor.fffsetPositionsFirst|The text similar to 'First' displayed in the recurrence editor.\"\n offsetPositionsFirst='First'\n\n i18n-offsetPositionsSecond=\"kendo.recurrenceeditor.offsetPositionsSecond|The text similar to 'Second' displayed in the recurrence editor.\"\n offsetPositionsSecond='Second'\n\n i18n-offsetPositionsThird=\"kendo.recurrenceeditor.offsetPositionsThird|The text similar to 'Third' displayed in the recurrence editor.\"\n offsetPositionsThird='Third'\n\n i18n-offsetPositionsFourth=\"kendo.recurrenceeditor.offsetPositionsFourth|The text similar to 'Fourth' displayed in the recurrence editor.\"\n offsetPositionsFourth='Fourth'\n\n i18n-offsetPositionsLast=\"kendo.recurrenceeditor.offsetPositionsLast|The text similar to 'Last' displayed in the recurrence editor.\"\n offsetPositionsLast='Last'\n\n i18n-weekdaysDay=\"kendo.recurrenceeditor.weekdaysDay|The text similar to 'Day' displayed in the repeat by section of the monthly recurrence pattern.\"\n weekdaysDay='Day'\n\n i18n-weekdaysWeekday=\"kendo.recurrenceeditor.weekdaysWeekday|The text similar to 'Weekday' displayed in the repeat by section of the monthly recurrence pattern.\"\n weekdaysWeekday='Weekday'\n\n i18n-weekdaysWeekendday=\"kendo.recurrenceeditor.weekdaysWeekendday|The text similar to 'Weekend Day' displayed in the repeat by section of the monthly recurrence pattern.\"\n weekdaysWeekendday='Weekend Day'\n\n i18n-endAfter=\"kendo.recurrenceeditor.endAfter|The text similar to 'After' displayed in the recurrence editor.\"\n endAfter='After'\n\n i18n-endOccurrence=\"kendo.recurrenceeditor.endOccurrence|The text similar to 'occurrence(s)' displayed in the recurrence editor.\"\n endOccurrence='occurrence(s)'\n\n i18n-endLabel=\"kendo.recurrenceeditor.endLabel|The text similar to 'End' displayed in the recurrence editor.\"\n endLabel='End'\n\n i18n-endNever=\"kendo.recurrenceeditor.endNever|The text similar to 'Never' displayed in the recurrence editor.\"\n endNever='Never'\n\n i18n-endOn=\"kendo.recurrenceeditor.endOn|The text similar to 'On' displayed in the recurrence editor.\"\n endOn='On'\n >\n </ng-container>\n\n <kendo-recurrence-frequency-editor>\n </kendo-recurrence-frequency-editor>\n\n <div class='k-recur-view'>\n <kendo-recurrence-interval-editor\n *ngIf=\"currentFreq !== 'never'\"\n [userNumericOptions]=\"repeatEveryOptions\">\n </kendo-recurrence-interval-editor>\n\n <kendo-recurrence-weekday-rule-editor *ngIf=\"currentFreq === 'weekly'\">\n </kendo-recurrence-weekday-rule-editor>\n\n <kendo-recurrence-monthly-yearly-editor\n *ngIf=\"currentFreq === 'monthly' || currentFreq === 'yearly'\"\n [userNumericOptions]=\"repeatOnOptions\">\n </kendo-recurrence-monthly-yearly-editor>\n\n <kendo-recurrence-end-rule-editor\n *ngIf=\"currentFreq !== 'never'\"\n [userNumericOptions]=\"endAfterOptions\"\n [userDatePickerOptions]=\"endOnOptions\">\n </kendo-recurrence-end-rule-editor>\n </div>\n "}),r.__metadata("design:paramtypes",[l.RecurrenceService,a.IntlService])],e)}();t.RecurrenceEditorComponent=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(13),s=function(){function e(e,t,n,r){this.el=e,this.renderer=t,this.recurrence=n,this.changeDetector=r,this.type="radio",this.radioClass=!0,this.radioSizeClass=!0,this.destroyChange=this.renderer.listen(this.elem,"change",this.onChange.bind(this))}return e.prototype.ngOnInit=function(){this.endRule=this.endRuleId.split("-")[2],this.renderer.setAttribute(this.elem,"id",this.endRuleId),this.renderer.setAttribute(this.elem,"name","end-"+this.endRuleId.split("-").pop())},e.prototype.ngAfterContentChecked=function(){this.setCheckedState()},e.prototype.ngOnDestroy=function(){this.destroyChange&&this.destroyChange()},e.prototype.onChange=function(){this.elem.checked&&(this.recurrence.endRule=this.endRule,this.changeDetector.markForCheck())},e.prototype.setCheckedState=function(){var e=this.endRule===this.recurrence.endRule;this.renderer.setProperty(this.elem,"checked",e)},Object.defineProperty(e.prototype,"elem",{get:function(){return this.el.nativeElement},enumerable:!0,configurable:!0}),r.__decorate([i.HostBinding("attr.type"),r.__metadata("design:type",String)],e.prototype,"type",void 0),r.__decorate([i.HostBinding("class.k-radio"),r.__metadata("design:type",Boolean)],e.prototype,"radioClass",void 0),r.__decorate([i.HostBinding("class.k-radio-md"),r.__metadata("design:type",Boolean)],e.prototype,"radioSizeClass",void 0),r.__decorate([i.Input("kendoRecurrenceEndRuleRadioButton"),r.__metadata("design:type",String)],e.prototype,"endRuleId",void 0),e=r.__decorate([i.Directive({selector:"[kendoRecurrenceEndRuleRadioButton]"}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,o.RecurrenceService,i.ChangeDetectorRef])],e)}();t.EndRuleRadioButtonDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(13),s=function(){function e(e,t,n,r){this.el=e,this.renderer=t,this.recurrence=n,this.changeDetector=r,this.type="radio",this.radioClass=!0,this.radioSizeClass=!0,this.destroyChange=this.renderer.listen(this.elem,"change",this.onChange.bind(this))}return Object.defineProperty(e.prototype,"repeatOnRule",{set:function(e){var t=e.split("-");this._repeatOnRule=t[0],this._uniqueId=t[1]},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.renderer.setAttribute(this.elem,"id","k-repeaton-"+this._repeatOnRule+"-"+this._uniqueId),this.renderer.setAttribute(this.elem,"name","day-"+this._uniqueId)},e.prototype.ngAfterContentChecked=function(){this.setCheckedState()},e.prototype.ngOnDestroy=function(){this.destroyChange&&this.destroyChange()},e.prototype.onChange=function(){this.elem.checked&&(this.recurrence.repeatOnRule=this._repeatOnRule,this.changeDetector.markForCheck())},e.prototype.setCheckedState=function(){var e=this._repeatOnRule===this.recurrence.repeatOnRule;this.renderer.setProperty(this.elem,"checked",e)},Object.defineProperty(e.prototype,"elem",{get:function(){return this.el.nativeElement},enumerable:!0,configurable:!0}),r.__decorate([i.HostBinding("attr.type"),r.__metadata("design:type",String)],e.prototype,"type",void 0),r.__decorate([i.HostBinding("class.k-radio"),r.__metadata("design:type",Boolean)],e.prototype,"radioClass",void 0),r.__decorate([i.HostBinding("class.k-radio-md"),r.__metadata("design:type",Boolean)],e.prototype,"radioSizeClass",void 0),r.__decorate([i.Input("kendoRecurrenceRepeatOnRadioButton"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],e.prototype,"repeatOnRule",null),e=r.__decorate([i.Directive({selector:"[kendoRecurrenceRepeatOnRadioButton]"}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,o.RecurrenceService,i.ChangeDetectorRef])],e)}();t.RepeatOnRadioButtonDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"repeat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"dailyInterval",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"dailyRepeatEvery",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"weeklyInterval",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"weeklyRepeatEvery",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"weeklyRepeatOn",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"monthlyDay",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"monthlyInterval",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"monthlyRepeatEvery",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"monthlyRepeatOn",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"yearlyOf",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"yearlyRepeatEvery",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"yearlyRepeatOn",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"yearlyInterval",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"frequenciesDaily",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"frequenciesMonthly",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"frequenciesNever",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"frequenciesWeekly",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"frequenciesYearly",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"offsetPositionsFirst",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"offsetPositionsSecond",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"offsetPositionsThird",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"offsetPositionsFourth",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"offsetPositionsLast",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"weekdaysDay",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"weekdaysWeekday",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"weekdaysWeekendday",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"endAfter",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"endOccurrence",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"endLabel",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"endNever",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"endOn",void 0),t}(n(2).ComponentMessages);t.Messages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(16),s=n(180),a=n(181),c=function(e){return function(e,t){var n=document.createElement(e);return t&&(n.className=t),n}("div",e)},u=function(){function e(e,t){this.pdfService=e,this.ngZone=t,this.creator="Kendo UI PDF Generator",this.subscriptions=this.pdfService.elementReady.subscribe(this.createElement.bind(this)),this.saveDataUri=this.saveDataUri.bind(this),this.exportGroup=this.exportGroup.bind(this),this.done=this.done.bind(this)}return e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},Object.defineProperty(e.prototype,"drawOptions",{get:function(){return{_destructive:!0,avoidLinks:this.avoidLinks,margin:this.margin,scale:this.scale}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pdfOptions",{get:function(){return{author:this.author,creator:this.creator,date:this.date,imgDPI:this.imageResolution,keywords:this.keywords,margin:this.margin,producer:this.producer,subject:this.subject,title:this.title}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"saveOptions",{get:function(){return{forceProxy:this.forceProxy,proxyData:this.proxyData,proxyTarget:this.proxyTarget,proxyURL:this.proxyURL}},enumerable:!0,configurable:!0}),e.prototype.createElement=function(e){var t=this;this.ngZone.runOutsideAngular((function(){var n=t.container=c();n.style.top=n.style.left="-10000px",n.style.position="absolute";var r=c("k-widget k-scheduler k-floatwrap");r.style.position="relative",r.appendChild(e.element),n.appendChild(r),document.body.appendChild(n),t.save(r)}))},e.prototype.save=function(e){this.drawElement(e,this.drawOptions).then(this.exportGroup).then(this.saveDataUri).then(this.done,this.done)},e.prototype.drawElement=function(e,t){return s.drawDOM(e,t)},e.prototype.exportGroup=function(e){return s.exportPDF(e,this.pdfOptions)},e.prototype.saveDataUri=function(e){a.saveAs(e,this.fileName,this.saveOptions)},e.prototype.done=function(){this.container&&(document.body.removeChild(this.container),this.container=null),this.pdfService.done.emit()},r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"author",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"avoidLinks",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"creator",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],e.prototype,"date",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"imageResolution",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"fileName",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"forceProxy",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"keywords",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"margin",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"scale",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"proxyData",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"proxyURL",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"proxyTarget",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"producer",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"subject",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"title",void 0),e=r.__decorate([i.Component({selector:"kendo-scheduler-pdf",template:""}),r.__metadata("design:paramtypes",[o.PDFService,i.NgZone])],e)}();t.PDFComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(21),s=n(2),a=n(16),c=function(e){function t(t,n,r,i,o){var s=e.call(this,n,r,null,i,o)||this;return s.pdfService=t,s}return r.__extends(t,e),t.prototype.onClick=function(e){e.preventDefault(),this.pdfService.exportClick.emit()},t.prototype.ngOnInit=function(){this.icon="pdf"},r.__decorate([i.HostListener("click",["$event"]),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object]),r.__metadata("design:returntype",void 0)],t.prototype,"onClick",null),t=r.__decorate([i.Directive({selector:"[kendoSchedulerPDFCommand]"}),r.__metadata("design:paramtypes",[a.PDFService,i.ElementRef,i.Renderer2,s.LocalizationService,i.NgZone])],t)}(o.Button);t.PDFCommandDirective=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(19);t.SchedulerComponent=i.SchedulerComponent;var o=n(119);t.SchedulerModule=o.SchedulerModule;var s=n(10);t.ViewContextService=s.ViewContextService;var a=n(9);t.ViewStateService=a.ViewStateService;var c=n(24);t.ToolbarService=c.ToolbarService;var u=n(50);t.AgendaViewComponent=u.AgendaViewComponent;var l=n(55);t.DayViewComponent=l.DayViewComponent;var d=n(56);t.WeekViewComponent=d.WeekViewComponent;var p=n(98);t.RecurrenceEditorComponent=p.RecurrenceEditorComponent;var h=n(178);t.BaseEditService=h.BaseEditService;var f=n(179);t.PDFModule=f.PDFModule;var m=n(102);t.PDFComponent=m.PDFComponent;var y=n(16);t.PDFService=y.PDFService;var v=n(103);t.PDFCommandDirective=v.PDFCommandDirective;var g=n(78);t.PDFExportEvent=g.PDFExportEvent;var _=n(20);t.FocusableDirective=_.FocusableDirective;var b=n(26);t.SharedModule=b.SharedModule,r.__exportStar(n(11),t),r.__exportStar(n(27),t)},function(e,t){e.exports=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-scheduler",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646219330,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t,n){this.sender=e,this.selectedDate=t,this.dateRange=n};t.DateChangeEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t,n){var r=e.call(this)||this;return r.sender=t,r.action=n,r}return r.__extends(t,e),t}(n(23).PreventableEvent);t.NavigateEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(110),i=n(61),o=n(62),s=n(63),a=n(59),c=n(60),u=n(64),l=n(65),d=n(66),p=n(67),h=n(58);t.VIEW_EVENT_MAP={slotClick:h.SlotClickEvent,slotDblClick:h.SlotClickEvent,eventClick:a.EventClickEvent,eventDblClick:a.EventClickEvent,eventKeydown:c.EventKeydownEvent,create:r.CreateEvent,remove:u.RemoveEvent,resizeStart:p.ResizeStartEvent,resize:d.ResizeEvent,resizeEnd:l.ResizeEndEvent,dragStart:s.DragStartEvent,drag:o.DragEvent,dragEnd:i.DragEndEvent}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.sender=e,Object.assign(this,t)};t.CreateEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(n(32).EditEventBase);t.CancelEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(n(32).EditEventBase);t.SaveEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t,n){var r=e.call(this)||this;return r.sender=t,Object.assign(r,n),r}return r.__extends(t,e),t}(n(12).PreventableEvent);t.EditEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t,n){var r=e.call(this)||this;return r.sender=t,Object.assign(r,n),r}return r.__extends(t,e),t}(n(12).PreventableEvent);t.AddEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){};t.SchedulerView=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Event=0]="Event",e[e.Occurrence=1]="Occurrence",e[e.Series=2]="Series"}(t.EditMode||(t.EditMode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Edit=0]="Edit",e[e.Remove=1]="Remove"}(t.CrudOperation||(t.CrudOperation={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(28),s=function(){function e(e,t,n){this.element=e,this.renderer=t,this.focusService=n,this.focusIndex=0,this.toggle(!1),this.focusService.register(this)}return Object.defineProperty(e.prototype,"visible",{get:function(){return"none"!==this.element.nativeElement.style.display},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return!this.element.nativeElement.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.focusService.unregister(this)},e.prototype.toggle=function(e){if(e!==this.active){var t=e?"0":"-1";this.renderer.setAttribute(this.element.nativeElement,"tabIndex",t),this.active=e}},e.prototype.canFocus=function(){return this.visible&&this.enabled},e.prototype.focus=function(){this.element.nativeElement.focus()},e.prototype.toggleFocus=function(e){var t=this.element.nativeElement;e?this.renderer.addClass(t,"k-state-selected"):this.renderer.removeClass(t,"k-state-selected"),this.renderer.setAttribute(t,"aria-selected",e.toString())},r.__decorate([i.Input("kendoSchedulerFocusIndex"),r.__metadata("design:type",Number)],e.prototype,"focusIndex",void 0),e=r.__decorate([i.Directive({selector:"[kendoSchedulerFocusIndex]"}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,o.FocusService])],e)}();t.FocusableDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(25),o=n(1),s=n(7),a=n(6),c=n(120),u=n(121),l=n(122),d=n(19),p=n(123),h=n(50),f=n(127),m=n(135),y=n(146),v=n(154),g=n(35),_=n(36),b=n(37),S=n(38),w=n(39),k=n(40),D=n(41),T=n(42),x=n(43),E=n(44),C=n(45),I=n(155),R=n(161),O=n(75),P=n(164),M=n(15),F=n(21),j=n(23),H=n(165),V=n(31),A=n(166),z=n(98),W=n(168),N=n(169),B=n(170),L=n(171),q=n(172),U=n(173),G=n(174),K=n(99),Y=n(100),Z=n(94),X=n(96),$=n(175),Q=n(46),J=n(79),ee=n(26),te=n(176),ne=n(177),re=[g.AgendaDateTemplateDirective,_.AgendaTimeTemplateDirective,b.AllDayEventTemplateDirective,S.AllDaySlotTemplateDirective,w.DateHeaderTemplateDirective,k.EventTemplateDirective,Q.EditDialogTemplateDirective,D.GroupHeaderTemplateDirective,T.MajorTimeHeaderTemplateDirective,x.MinorTimeHeaderTemplateDirective,E.MonthDaySlotTemplateDirective,C.TimeSlotTemplateDirective],ie=[d.SchedulerComponent,v.SchedulerViewDirective,c.DataBindingDirective,te.ShortcutsDirective,R.ReactiveEditingDirective,ne.SlotSelectableDirective,A.SchedulerDateTimePickerComponent,z.RecurrenceEditorComponent,N.RecurrenceEndRuleEditorComponent,W.RecurrenceFrequencyEditorComponent,B.RecurrenceIntervalEditorComponent,L.RecurrenceMonthlyYearlyEditorComponent,q.RecurrenceWeekdayRuleEditorComponent,K.EndRuleRadioButtonDirective,Y.RepeatOnRadioButtonDirective,Z.MultipleResourceEditorComponent,X.SingleResourceEditorComponent,$.TimeZoneEditorComponent,P.EditDialogComponent,u.SchedulerCustomMessagesComponent,l.LocalizedMessagesDirective,U.RecurrenceEditorCustomMessagesComponent,G.RecurrenceEditorLocalizedMessagesDirective,J.LoadingComponent].concat(re),oe=[h.AgendaViewComponent,m.MonthViewModule,y.MultiDayViewModule,R.ReactiveEditingDirective,I.TimelineViewModule,p.publicDirectives].concat(ie),se=[F.ButtonsModule,H.CheckBoxModule,H.TextAreaModule,j.DateInputsModule,O.DialogModule,H.NumericTextBoxModule,H.TextBoxModule,V.DropDownsModule,M.ReactiveFormsModule,ee.SharedModule],ae=function(){function e(){}return e=r.__decorate([o.NgModule({imports:[i.CommonModule,p.ToolbarModule,f.AgendaViewModule,y.MultiDayViewModule,a.ResizeSensorModule,m.MonthViewModule,I.TimelineViewModule].concat(se),declarations:ie,exports:oe,providers:[{provide:s.IntlService,useClass:s.CldrIntlService}]})],e)}();t.SchedulerModule=ae},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(74),s=n(19),a=n(80),c=n(5),u=n(4),l=n(47),d=n(3),p=n(7),h=function(){function e(e,t,n,r){this.scheduler=e,this.changeDetector=t,this.intl=n,this.localDataChangesService=r,this.originalData=[],r&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(this.rebind.bind(this)))}return Object.defineProperty(e.prototype,"data",{set:function(e){this.originalData=e||[],this.localDataChangesService&&(this.localDataChangesService.data=e),this.scheduler.events=this.process()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscription=this.scheduler.dateChange.subscribe((function(t){return e.onDateChange(t)}))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe(),this.dataChangedSubscription&&this.dataChangedSubscription.unsubscribe()},e.prototype.rebind=function(){this.data=this.originalData,this.changeDetector.markForCheck()},e.prototype.process=function(){var e=this;if(!this.dateRange)return[];var t=[],n=this.scheduler.modelFields;return this.originalData.forEach((function(r){if(d.getField(r,n.recurrenceRule)){var i=function(e,t,n,r,i){var s=a.parseRule({recurrenceRule:d.getField(e,t.recurrenceRule),weekStart:i});if(!s.start){var l=d.getField(e,t.start);s.start=u.ZonedDate.fromLocalDate(l,r)}if(!s.end){var p=d.getField(e,t.end);s.end=u.ZonedDate.fromLocalDate(p,r)}var h=d.getField(e,t.recurrenceExceptions);h&&(s.exceptionDates=h.map((function(e){return u.ZonedDate.fromLocalDate(e,r)})));var f=c.toUTCDateTime(n.start),m=c.toUTCDateTime(n.end),y=a.expand(s,{rangeStart:u.ZonedDate.fromUTCDate(f,r),rangeEnd:u.ZonedDate.fromUTCDate(m,r)});if(!y.events.length)return[];var v=y.events.map((function(n){var r=d.clone(e);return d.setField(r,t.id,o.OCCURRENCE_ID),d.setField(r,t.recurrenceId,d.getField(e,t.id)),d.setField(r,t.start,n.start.toLocalDate()),d.setField(r,t.end,n.end.toLocalDate()),r}));return[e].concat(v)}(r,n,e.dateRange,e.scheduler.timezone,e.scheduler.weekStart);t.push.apply(t,i)}else t.push(r)})),t},e.prototype.onDateChange=function(e){this.dateRange=e.dateRange,this.rebind()},r.__decorate([i.Input("kendoSchedulerBinding"),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),e=r.__decorate([i.Directive({selector:"[kendoSchedulerBinding]"}),r.__metadata("design:paramtypes",[s.SchedulerComponent,i.ChangeDetectorRef,p.IntlService,l.LocalDataChangesService])],e)}();t.DataBindingDirective=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),s=n(81),a=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=r.__decorate([i.Component({providers:[{provide:s.Messages,useExisting:i.forwardRef((function(){return n}))}],selector:"kendo-scheduler-messages",template:""}),r.__metadata("design:paramtypes",[o.LocalizationService])],t)}(s.Messages);t.SchedulerCustomMessagesComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),s=n(81),a=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return r.__extends(t,e),n=t,t=n=r.__decorate([i.Directive({providers:[{provide:s.Messages,useExisting:i.forwardRef((function(){return n}))}],selector:"[kendoSchedulerLocalizedMessages]"}),r.__metadata("design:paramtypes",[o.LocalizationService])],t)}(s.Messages);t.LocalizedMessagesDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(25),o=n(1),s=n(21),a=n(23),c=n(82),u=n(6),l=n(124),d=n(125),p=n(34),h=n(126);t.publicDirectives=[l.ToolbarNavigationComponent,p.ToolbarTemplateDirective,h.ToolbarViewSelectorComponent];var f=function(){function e(){}return e=r.__decorate([o.NgModule({imports:[i.CommonModule,s.ButtonsModule,a.CalendarModule,c.PopupModule,u.EventsModule],exports:[d.ToolbarComponent].concat(t.publicDirectives),declarations:[d.ToolbarComponent].concat(t.publicDirectives)})],e)}();t.ToolbarModule=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(82),s=n(2),a=n(24),c=n(23),u=function(){function e(e,t,n,r){this.popupService=e,this.toolbarService=t,this.localization=n,this.inlineDisplayStyle="flex",this.inlineFlexFlowStyle="inherit",this.inlineGapStyle="inherit",this.subs=this.localization.changes.subscribe((function(e){e.rtl;r.markForCheck()}))}return Object.defineProperty(e.prototype,"calendar",{set:function(e){e&&e.focus()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"todayText",{get:function(){return this.localization.get("today")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendarTodayText",{get:function(){return this.localization.get("calendarToday")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nextText",{get:function(){return this.localization.get("nextTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"previousText",{get:function(){return this.localization.get("previousTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ctx",{get:function(){return this.toolbarService.context},enumerable:!0,configurable:!0}),e.prototype.onBlur=function(){this.closePopup()},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe(),this.closePopup()},e.prototype.toggleSelectedDate=function(e,t){if(this.popupRef)this.closePopup();else{var n={anchor:e,content:t};this.localization.rtl&&(n.popupClass="k-rtl"),this.popupRef=this.popupService.open(n)}return!1},e.prototype.selectDate=function(e){this.closePopup(),this.toolbarService.navigate({type:"select-date",date:e})},e.prototype.prevClick=function(){return this.toolbarService.navigate({type:"prev"}),!1},e.prototype.nextClick=function(){return this.toolbarService.navigate({type:"next"}),!1},e.prototype.todayClick=function(){return this.toolbarService.navigate({type:"today"}),!1},e.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)},r.__decorate([i.ViewChild("calendar",{static:!1}),r.__metadata("design:type",c.CalendarComponent),r.__metadata("design:paramtypes",[c.CalendarComponent])],e.prototype,"calendar",null),r.__decorate([i.HostBinding("style.display"),r.__metadata("design:type",String)],e.prototype,"inlineDisplayStyle",void 0),r.__decorate([i.HostBinding("style.flex-flow"),r.__metadata("design:type",String)],e.prototype,"inlineFlexFlowStyle",void 0),r.__decorate([i.HostBinding("style.gap"),r.__metadata("design:type",String)],e.prototype,"inlineGapStyle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],e.prototype,"min",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],e.prototype,"max",void 0),e=r.__decorate([i.Component({selector:"[kendoSchedulerToolbarNavigation]",changeDetection:i.ChangeDetectionStrategy.OnPush,providers:[o.PopupService],template:'\n <span class="k-scheduler-navigation k-button-group">\n <button kendoButton\n (click)="todayClick()"\n class="k-nav-today"\n [attr.title]="todayText"\n >\n <span class="k-button-text">{{todayText}}</span>\n </button>\n <button kendoButton\n (click)="prevClick()"\n class="k-nav-prev"\n icon="arrow-60-left"\n [attr.title]="previousText"\n [attr.aria-label]="previousText"\n >\n </button>\n <button kendoButton\n (click)="nextClick()"\n type="button"\n class="k-nav-next"\n icon="arrow-60-right"\n [attr.title]="nextText"\n [attr.aria-label]="nextText"\n >\n </button>\n </span>\n\n <a #anchor\n (click)="toggleSelectedDate(anchor, template)"\n role="button"\n href="#"\n class="k-nav-current"\n tabindex="-1"\n >\n <span class="k-icon k-i-calendar"></span>\n <span class="k-sm-date-format">{{ (ctx.dateRange | async)?.shortText }}</span>\n <span class="k-lg-date-format">{{ (ctx.dateRange | async)?.text }}</span>\n </a>\n\n <ng-template #template>\n <kendo-calendar #calendar (blur)="onBlur()" (valueChange)="selectDate($event)" [value]="ctx.selectedDate | async" [min]="min" [max]="max">\n <kendo-calendar-messages [today]="calendarTodayText">\n </kendo-calendar-messages>\n </kendo-calendar>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[o.PopupService,a.ToolbarService,s.LocalizationService,i.ChangeDetectorRef])],e)}();t.ToolbarNavigationComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),s=n(11),a=n(34),c=n(24),u=function(){function e(e){var t=this;this.service=e,this.hostClasses=!0,this.navigate=new i.EventEmitter,this.templateContext={},this.subs=new o.Subscription,this.subs.add(e.action.subscribe((function(e){return t.navigate.next(e)})))}return e.prototype.ngOnInit=function(){var e=this;this.subs.add(this.selectedDate.subscribe((function(t){return e.templateContext.selectedDate=t}))),this.subs.add(this.dateRange.subscribe((function(t){return e.templateContext.dateRange=t})))},e.prototype.ngOnChanges=function(){this.service.context={dateRange:this.dateRange,selectedDate:this.selectedDate,views:this.views,selectedView:this.selectedView},Object.assign(this.templateContext,{views:this.views,selectedView:this.selectedView})},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},r.__decorate([i.HostBinding("class.k-scheduler-toolbar"),i.HostBinding("class.k-toolbar"),r.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),r.__decorate([i.Input(),r.__metadata("design:type",s.SchedulerView)],e.prototype,"selectedView",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],e.prototype,"views",void 0),r.__decorate([i.Input(),r.__metadata("design:type",o.Observable)],e.prototype,"dateRange",void 0),r.__decorate([i.Input(),r.__metadata("design:type",o.Observable)],e.prototype,"selectedDate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",a.ToolbarTemplateDirective)],e.prototype,"template",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"navigate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],e.prototype,"min",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],e.prototype,"max",void 0),e=r.__decorate([i.Component({selector:"kendo-scheduler-toolbar",template:'\n <ng-template\n *ngIf="template; else defaultTemplate"\n [ngTemplateOutlet]="template.templateRef"\n [ngTemplateOutletContext]="templateContext"\n >\n </ng-template>\n\n <ng-template #defaultTemplate>\n <div kendoSchedulerToolbarNavigation [min]="min" [max]="max"></div>\n <span class="k-spacer"></span>\n <div kendoSchedulerToolbarViewSelector></div>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[c.ToolbarService])],e)}();t.ToolbarComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(24),s=function(){function e(e){this.service=e,this.hostClasses=!0}return Object.defineProperty(e.prototype,"ctx",{get:function(){return this.service.context},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.detachDomEvents&&this.detachDomEvents()},e.prototype.select=function(e){this.ctx.selectedView!==e&&this.service.navigate({type:"view-change",view:e})},e.prototype.onChange=function(e){var t=this.ctx.views.find((function(t){return t.name===e.target.value}));t&&this.select(t)},e.prototype.isSelected=function(e){return this.ctx.selectedView===e},r.__decorate([i.HostBinding("class.k-scheduler-views-wrapper"),r.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),e=r.__decorate([i.Component({selector:"[kendoSchedulerToolbarViewSelector]",template:'\n <select *ngIf="ctx.views?.length > 1"\n (change)="onChange($event)"\n class="k-views-dropdown k-picker-md k-rounded-md k-picker-solid k-dropdownlist k-picker">\n <option *ngFor="let view of ctx.views"\n [selected]="isSelected(view) == true"\n [value]="view.name"\n >\n {{ view.title }}\n </option>\n </select>\n <span class="k-scheduler-views k-button-group">\n <button kendoButton\n type="button"\n *ngFor="let view of ctx.views"\n [selected]="isSelected(view)"\n [attr.aria-pressed]="isSelected(view)"\n (click)="select(view)"\n >\n <span class="k-button-text">\n {{ view.title }}\n </span>\n </button>\n </span>\n '}),r.__metadata("design:paramtypes",[o.ToolbarService])],e)}();t.ToolbarViewSelectorComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(25),o=n(1),s=n(7),a=n(128),c=n(129),u=n(130),l=n(131),d=n(50),p=n(132),h=n(26),f=[c.AgendaHeaderComponent,a.AgendaHeaderItemComponent,l.AgendaListComponent,u.AgendaTaskItemComponent,d.AgendaViewComponent,p.AgendaViewInternalComponent],m=function(){function e(){}return e=r.__decorate([o.NgModule({imports:[i.CommonModule,s.IntlModule,h.SharedModule],exports:[d.AgendaViewComponent],declarations:[f]})],e)}();t.AgendaViewModule=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(4),s=function(){function e(){this.classes=!0}return Object.defineProperty(e.prototype,"rowSpan",{get:function(){return this.item.rowSpan},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemDate",{get:function(){return o.toLocalDate(this.item.dataItem.value)},enumerable:!0,configurable:!0}),r.__decorate([i.HostBinding("class.k-scheduler-datecolumn"),r.__metadata("design:type",Boolean)],e.prototype,"classes",void 0),r.__decorate([i.HostBinding("attr.rowspan"),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[])],e.prototype,"rowSpan",null),r.__decorate([i.Input("kendoSchedulerAgendaHeaderItem"),r.__metadata("design:type",Object)],e.prototype,"item",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],e.prototype,"agendaDateTemplate",void 0),e=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"[kendoSchedulerAgendaHeaderItem]",template:'\n <ng-container *ngIf="!agendaDateTemplate">\n <strong class="k-scheduler-agendaday">{{itemDate | kendoDate: \'dd\'}}</strong>\n <em class="k-scheduler-agendaweek">{{itemDate | kendoDate: \'EEEE\'}}</em>\n <span class="k-scheduler-agendadate">{{itemDate | kendoDate: \'y\'}}</span>\n </ng-container>\n <ng-container *ngIf="agendaDateTemplate" [ngTemplateOutlet]="agendaDateTemplate"\n [ngTemplateOutletContext]="{ date: itemDate }">\n </ng-container>\n '})],e)}();t.AgendaHeaderItemComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),s=function(){function e(e){this.localization=e,this.classes=!0}return Object.defineProperty(e.prototype,"dateMessage",{get:function(){return this.localization.get("dateHeader")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timeMessage",{get:function(){return this.localization.get("timeHeader")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"eventMessage",{get:function(){return this.localization.get("eventHeader")},enumerable:!0,configurable:!0}),r.__decorate([i.HostBinding("class.k-scheduler-header"),i.HostBinding("class.k-state-default"),r.__metadata("design:type",Boolean)],e.prototype,"classes",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],e.prototype,"resources",void 0),e=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"[kendoSchedulerAgendaHeader]",template:'\n <div class="k-scheduler-header-wrap">\n <table class="k-scheduler-table" role="presentation">\n <tbody>\n <tr>\n <th *ngFor="let resource of resources" class="k-scheduler-groupcolumn"></th>\n <th class="k-scheduler-datecolumn">{{ dateMessage }}</th>\n <th class="k-scheduler-timecolumn">{{ timeMessage }}</th>\n <th>{{ eventMessage }}</th>\n </tr>\n </tbody>\n </table>\n </div>\n '}),r.__metadata("design:paramtypes",[o.LocalizationService])],e)}();t.AgendaHeaderComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),s=n(4),a=n(5),c=function(){function e(e,t){this.localization=e,this.localeId=t}return Object.defineProperty(e.prototype,"eventTitle",{get:function(){var e=s.toLocalDate(this.item.start),t=s.toLocalDate(this.item.end);return a.formatEventTime(e,t,this.item.isAllDay,this.localeId)+", "+this.item.event.title},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"eventColor",{get:function(){return this.item.color},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"deleteMessage",{get:function(){return this.localization.get("deleteTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRecurrence",{get:function(){return a.isRecurrence(this.item)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRecurrenceException",{get:function(){return a.isRecurrenceException(this.item)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"removable",{get:function(){return this.editable&&!1!==this.editable.remove},enumerable:!0,configurable:!0}),r.__decorate([i.Input("kendoSchedulerAgendaTaskItem"),r.__metadata("design:type",Object)],e.prototype,"item",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"color",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],e.prototype,"eventTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"editable",void 0),r.__decorate([i.HostBinding("attr.aria-label"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"eventTitle",null),e=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"[kendoSchedulerAgendaTaskItem]",template:'\n <div class="k-task" [title]="item.title">\n <span class="k-scheduler-mark" *ngIf="eventColor" [style.background-color]="eventColor"></span>\n <span class="k-icon k-i-reload" *ngIf="isRecurrence"></span>\n <span class="k-icon k-i-non-recurrence" *ngIf="isRecurrenceException"></span>\n <ng-container *ngIf="!eventTemplate">\n {{item?.title }}\n </ng-container>\n <ng-container *ngIf="eventTemplate" [ngTemplateOutlet]="eventTemplate"\n [ngTemplateOutletContext]="{ $implicit: item.event, event: item.event, resources: item.resources }">\n </ng-container>\n\n <span *ngIf="removable" class="k-link k-event-delete" aria-hidden="true" [attr.title]="deleteMessage">\n <span class="k-icon k-i-close"></span>\n </span>\n </div>\n '}),r.__param(1,i.Inject(i.LOCALE_ID)),r.__metadata("design:paramtypes",[o.LocalizationService,String])],e)}();t.AgendaTaskItemComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(7),s=n(2),a=n(4),c=n(5),u=function(){function e(e,t){this.intlService=e,this.localization=t,this.classes=!0}return e.prototype.extractDataItem=function(e){return"group"===e.type?e.dataItem.items[0]:e.dataItem},e.prototype.formatTime=function(e){if(e.isAllDay)return this.localization.get("allDay");var t="{0:t}-{1:t}";return e.head?t="{0:t}":e.tail&&(t="{1:t}"),this.intlService.format(t,a.toLocalDate(e.start),a.toLocalDate(e.end))},e.prototype.trackByFn=function(e,t){return e},e.prototype.cellClasses=function(e){var t=this.extractDataItem(e),n=[];return this.slotClass&&(n=n.concat(c.convertNgClassBindings(this.slotClass({start:t.start,end:t.end,resources:t.resources,event:t.event})))),this.eventClass&&(n=n.concat(c.convertNgClassBindings(this.eventClass({event:t.event,resources:t.resources})))),n},e.prototype.getEventStyles=function(e){if(this.eventStyles){var t=this.extractDataItem(e);return this.eventStyles({event:t.event,resources:t.resources})}},r.__decorate([i.HostBinding("class.k-scheduler-content"),r.__metadata("design:type",Boolean)],e.prototype,"classes",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],e.prototype,"tasks",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],e.prototype,"eventTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"slotClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"eventClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"eventStyles",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],e.prototype,"agendaTimeTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],e.prototype,"agendaDateTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"editable",void 0),e=r.__decorate([i.Component({selector:"[kendoSchedulerAgendaList]",template:'\n <table class="k-scheduler-table" role="presentation">\n <tbody>\n <ng-container *ngFor="let group of tasks; let groupIndex = index;">\n <tr *ngFor="let item of group.tasks;let index = index; trackBy: trackByFn">\n <ng-container *ngFor="let resource of group.resources;let resourceIndex = index">\n <td *ngIf="group.spans[resourceIndex] && index === 0" class="k-scheduler-groupcolumn" [attr.rowspan]="group.spans[resourceIndex]">\n {{ resource }}\n </td>\n </ng-container>\n <td *ngIf="item.type === \'group\'"\n [kendoSchedulerAgendaHeaderItem]="item"\n [agendaDateTemplate]="agendaDateTemplate">\n </td>\n <td class="k-scheduler-timecolumn">\n <div *ngIf="!agendaTimeTemplate">\n <span class="k-icon k-i-arrow-60-left" *ngIf="extractDataItem(item).tail"></span>\n {{formatTime(extractDataItem(item)) }}\n <span class="k-icon k-i-arrow-60-right" *ngIf="extractDataItem(item).head"></span>\n </div>\n <ng-container *ngIf="agendaTimeTemplate" [ngTemplateOutlet]="agendaTimeTemplate"\n [ngTemplateOutletContext]="extractDataItem(item)">\n </ng-container>\n </td>\n <td [attr.data-group-index]="groupIndex" [attr.data-task-index]="index"\n [ngClass]="cellClasses(item)" [ngStyle]="getEventStyles(item)"\n [kendoSchedulerFocusIndex]="groupIndex"\n [kendoSchedulerAgendaTaskItem]="extractDataItem(item)"\n [editable]="editable"\n [eventTemplate]="eventTemplate"\n ></td>\n </tr>\n </ng-container>\n </tbody>\n </table>\n '}),r.__metadata("design:paramtypes",[o.IntlService,s.LocalizationService])],e)}();t.AgendaListComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(6),s=n(7),a=n(4),c=n(8),u=n(14),l=n(10),d=n(9),p=n(17),h=n(133),f=n(5),m=n(16),y=n(2),v=function(){function e(e,t,n,r,i,o,s,a){this.viewContext=e,this.viewState=t,this.intl=n,this.renderer=r,this.element=i,this.zone=o,this.pdfService=s,this.localization=a,this.tasks=new c.BehaviorSubject(null),this.groupedResources=[],this.spans=[],this.subs=new c.Subscription}return Object.defineProperty(e.prototype,"eventTemplateRef",{get:function(){return this.eventTemplate||(this.schedulerEventTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"agendaTimeTemplateRef",{get:function(){return this.agendaTimeTemplate||(this.schedulerAgendaTimeTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"agendaDateTemplateRef",{get:function(){return this.agendaDateTemplate||(this.schedulerAgendaDateTemplate||{}).templateRef},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.updateContentHeight=this.updateContentHeight.bind(this),this.subs.add(this.viewContext.selectedDate.subscribe(this.onSelectDate.bind(this))),this.subs.add(this.viewContext.action.subscribe(this.onAction.bind(this))),this.subs.add(this.viewContext.execute.subscribe(this.execute.bind(this))),this.subs.add(this.viewContext.resize.subscribe(this.updateContentHeight)),this.subs.add(c.combineLatest(this.viewContext.items,this.viewState.dateRange).pipe(u.map((function(t){var n=t[0],r=t[1];return e.items=n,e.range=r,e.createEventGroups()}))).subscribe((function(t){e.tasks.next(t)}))),this.subs.add(this.viewContext.optionsChange.subscribe(this.optionsChange.bind(this)));this.subs.add(c.combineLatest(this.tasks,this.localization.changes).pipe(u.switchMap((function(){return e.zone.onStable.pipe(u.take(1))}))).subscribe(this.updateContentHeight)),this.subs.add(this.pdfService.createElement.subscribe(this.createPDFElement.bind(this)))},e.prototype.ngOnChanges=function(e){o.anyChanged(["selectedDateFormat","selectedShortDateFormat","numberOfDays"],e)&&this.viewState.notifyDateRange(this.dateRange(this.selectedDate))},e.prototype.ngAfterViewInit=function(){var e=this;if(this.element){var t=this.content.nativeElement;this.zone.runOutsideAngular((function(){e.subs.add(c.merge(c.fromEvent(t,"click"),c.fromEvent(t,"contextmenu"),c.fromEvent(t,"dblclick")).subscribe((function(t){return e.onClick(t)}))),e.subs.add(c.fromEvent(t,"keydown").subscribe((function(t){return e.onKeydown(t)})))}))}},e.prototype.onClick=function(e){var t=this.targetTask(e.target);if(t){var n=t.task,r=t.eventTarget,i=e.type,o="dblclick"===i;if("click"===i&&p.closestInScope(e.target,(function(e){return p.hasClasses(e,"k-event-delete")}),r))this.viewState.emitEvent("remove",{event:n.event,dataItem:n.event.dataItem});else{var s=o?"eventDblClick":"eventClick";this.viewState.emitEvent(s,{type:i,event:n.event,originalEvent:e})}}},e.prototype.onKeydown=function(e){var t=this.targetTask(e.target);if(t){var n=t.task;this.viewState.emitEvent("eventKeydown",{event:n.event,dataItem:n.event.dataItem,originalEvent:e})}},e.prototype.targetTask=function(e){var t=p.closestInScope(e,(function(e){return e.hasAttribute("data-task-index")}),this.element.nativeElement);if(t)return{eventTarget:t,task:this.elementTask(t)}},e.prototype.updateContentHeight=function(){var e=this.element.nativeElement,t=e.parentNode,n=this.content.nativeElement;this.renderer.setStyle(n,"height","");for(var r=t.clientHeight,i=0;i<t.children.length;i++){var o=t.children[i];o===e||f.ignoreContentChild(o)||(r-=o.offsetHeight)}var s=this.headerWrap.nativeElement;r-=this.headerWrap?s.offsetHeight:0,this.renderer.setStyle(n,"height",r+"px");var a=this.localization.rtl,c=p.hasScrollbar(n,"vertical")?p.scrollbarWidth():0;this.renderer.setStyle(s,a?"padding-left":"padding-right",c+"px"),this.renderer.setStyle(s,a?"padding-right":"padding-left","0px"),this.viewState.notifyLayoutEnd()},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.prototype.optionsChange=function(e){this.group=e.group,this.resources=e.resources,this.groupResources(),this.min=e.min,this.max=e.max,this.editable=e.editable,this.items&&this.items.length&&this.tasks.next(this.createEventGroups()),this.schedulerEventTemplate=e.eventTemplate,this.schedulerAgendaTimeTemplate=e.agendaTimeTemplate,this.schedulerAgendaDateTemplate=e.agendaDateTemplate},e.prototype.onSelectDate=function(e){this.selectedDate=e,this.viewState.notifyDateRange(this.dateRange())},e.prototype.onAction=function(e){var t=a.getDate(this.selectedDate);if("next"===e.type){var n=a.getDate(a.addDays(t,this.numberOfDays));this.isInRange(n)&&this.viewState.notifyNextDate(n)}if("prev"===e.type){n=a.getDate(a.addDays(t,-this.numberOfDays));this.isInRange(n)&&this.viewState.notifyNextDate(n)}},e.prototype.createEventGroups=function(){var e=this.groupedResources.length?h.createResourceGroups(this.groupedResources):null;return this.groups=h.groupEvents(this.items,{taskResources:this.taskResources,resourceGroups:e,allResources:this.resources,spans:this.spans,dateRange:this.range})},e.prototype.dateRange=function(e){void 0===e&&(e=this.selectedDate);var t=a.getDate(e),n=a.getDate(a.addDays(t,this.numberOfDays)),r=a.getDate(a.addDays(t,this.numberOfDays-1));return{start:t,end:n,text:this.intl.format(this.selectedDateFormat,t,r),shortText:this.intl.format(this.selectedShortDateFormat,t,r)}},e.prototype.groupResources=function(){var e=this.resources||[],t=(this.group||{}).resources,n=this.groupedResources=[];if(t&&t.length)for(var r=function(r){var i=t[r],o=e.find((function(e){return e.name===i}));o&&n.push(o)},i=0;i<t.length;i++)r(i);this.spans=this.resourceSpans()},e.prototype.resourceSpans=function(){for(var e=[1],t=this.groupedResources,n=1,r=t.length-1;r>0;r--)n*=(t[r].data||[]).length||1,e.unshift(n);return e},Object.defineProperty(e.prototype,"taskResources",{get:function(){return this.groupedResources.length?this.groupedResources:this.resources&&this.resources.length?[this.resources[0]]:[{}]},enumerable:!0,configurable:!0}),e.prototype.isInRange=function(e){var t=this.dateRange(e);return(!this.min||this.min<t.end)&&(!this.max||t.start<=this.max)},e.prototype.createPDFElement=function(){var e=this.element.nativeElement.cloneNode(!0);e.style.width=this.element.nativeElement.offsetWidth+"px",e.querySelector(".k-scheduler-content").style.height="auto";var t=e.querySelector(".k-scheduler-header");t.style.paddingRight=0,t.style.paddingLeft=0,this.pdfService.elementReady.emit({element:e})},e.prototype.elementTask=function(e){var t=parseInt(e.getAttribute("data-task-index"),10),n=parseInt(e.getAttribute("data-group-index"),10);return this.groups[n].tasks.itemAt(t)},e.prototype.execute=function(e){if("slotByPosition"===e.name){var t=this.slotByPosition(e.args);e.result(t)}else if("eventFromElement"===e.name){var n=this.elementTask(e.args.element);n&&e.result(n.event)}},e.prototype.slotByPosition=function(e){var t=e.x,n=e.y,r=this.content.nativeElement.querySelector("table"),o=f.elementOffset(r);if(o.top<=n&&n<=o.top+o.height){var s=r.rows;if(!s.length)return;var a=f.elementOffset(s[0].cells[s[0].cells.length-1]);if(a.left<=t&&t<=a.left+a.width)for(var c=0;c<s.length;c++){var u=s[c],l=f.elementOffset(u);if(l.top<=n&&n<=l.top+l.height){var d=u.querySelector("[data-task-index]"),p=this.elementTask(d),h=p.event;return{element:new i.ElementRef(d),start:h.start,end:h.end,event:h,resources:p.resources,isAllDay:p.isAllDay}}}}},r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],e.prototype,"eventTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"slotClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"eventClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"eventStyles",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],e.prototype,"agendaTimeTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],e.prototype,"agendaDateTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"selectedDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"selectedShortDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"numberOfDays",void 0),r.__decorate([i.ViewChild("headerWrap",{read:i.ElementRef,static:!0}),r.__metadata("design:type",i.ElementRef)],e.prototype,"headerWrap",void 0),r.__decorate([i.ViewChild("content",{read:i.ElementRef,static:!0}),r.__metadata("design:type",i.ElementRef)],e.prototype,"content",void 0),e=r.__decorate([i.Component({selector:"agenda-view-internal",template:'\n <table class="k-scheduler-layout k-scheduler-agendaview k-scheduler-agenda">\n <tbody>\n <tr>\n <td>\n <div kendoSchedulerAgendaHeader [resources]="groupedResources" #headerWrap></div>\n </td>\n </tr>\n <tr>\n <td>\n <div kendoSchedulerAgendaList #content\n [editable]="editable"\n [eventTemplate]="eventTemplateRef"\n [slotClass]="slotClass"\n [eventClass]="eventClass"\n [eventStyles]="eventStyles"\n [agendaTimeTemplate]="agendaTimeTemplateRef"\n [agendaDateTemplate]="agendaDateTemplateRef"\n [tasks]="tasks | async">\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n '}),r.__metadata("design:paramtypes",[l.ViewContextService,d.ViewStateService,s.IntlService,i.Renderer2,i.ElementRef,i.NgZone,m.PDFService,y.LocalizationService])],e)}();t.AgendaViewInternalComponent=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(134),o=n(4),s=n(5),a=n(3);function c(e,t,n,r){var i=e.event;return{event:i,start:e.start.toUTCDate(),end:e.end.toUTCDate(),title:i.title,isAllDay:i.isAllDay,color:r,resourceIdx:t,resources:n}}t.createResourceGroups=function(e){for(var t=[],n=e[0],r=n.data,i=0;i<r.length;i++){var o=r[i];t.push({resources:[a.getField(o,n.textField)]})}for(var s=1;s<e.length;s++){for(var c=e[s],u=c.data,l=[],d=0;d<t.length;d++){var p=t[d];for(i=0;i<u.length;i++){o=u[i];l.push({resources:p.resources.concat(a.getField(o,c.textField))})}}t=l}return t};var u=function(e){var t=e.start,n=e.end,r=e.isAllDay,i=void 0!==r&&r,a=i?s.getUTCDate(n):n,c=Math.ceil((a-+s.getUTCDate(t))/o.MS_PER_DAY);return i?c+1:c},l=function(e){var t=e.length;return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t===n.length?e.apply(null,n):l(e.bind.apply(e,[null].concat(n)))}},d=function(e){return e.tail||(e.mid=!0),e},p=function(e,t){return function(n,o,a,c){return n.concat(i.compose(d,(l=function(e,t){return t.length?t[t.length-1].end:e}(t,n),p=e.end,function(e){return r.__assign({},e,{start:s.getUTCDate(l),end:e.tail&&!e.isAllDay?p:s.addUTCDays(l,1),startDate:s.getUTCDate(l)})}),(u=a===c.length-1,function(e){return u&&(e.tail=!0),e}))(e));var u,l,p}},h=function(e,t){return(n=u(e)-1,Array.from(new Array(n).keys())).reduce(p(e,t),[]);var n};t.splitTasks=l((function(e,t,n){for(var i=[],o=0;o<n.length;o++){var a=r.__assign({},n[o]);a.startDate=s.getUTCDate(a.start),a.start>=e&&a.start<=t&&i.push(a),u(a)>1&&(a.end=s.addUTCDays(a.startDate,1),a.head=!0,i.push.apply(i,h(r.__assign({},n[o]),a.end).filter((function(n){return s.getUTCDate(n.end)<=t&&n.start>=e}))))}return i})),t.groupEvents=function(e,n){for(var r=n.taskResources,o=n.resourceGroups,a=n.spans,u=n.allResources,l=n.dateRange,d=o||[{}],p=s.toUTCDate(l.start),h=s.toUTCDate(l.end),f=0;f<e.length;f++){var m=e[f],y=m.event;if(s.intersects(m.start.toUTCDate(),m.end.toUTCDate(),p,h)){var v=s.eventResources(y,{taskResources:r,hasGroups:o&&o.length>0,spans:a,allResources:u});if(v.length&&v[0].leafIdx>=0)for(var g=0;g<v.length;g++){var _=v[g],b=c(m,_.leafIdx,_.resources,_.color);(d[_.leafIdx].tasks=d[_.leafIdx].tasks||[]).push(b)}}}return o?function(e,n,r){var o=n.filter((function(e){return e.tasks&&e.tasks.length}));if(!o.length)return[];for(var a=o[0].resources.map((function(e){return{value:e,span:0,groupIdx:0}})),c=s.toUTCDate(r.start),u=s.toUTCDate(r.end),l=0;l<o.length;l++){var d=o[l];d.tasks=t.splitTasks(c,u,d.tasks);var p=d.tasks.length;d.tasks=new i.TaskCollection(c,u,d.tasks);for(var h=!1,f=0;f<e.length;f++){var m=a[f];if(m.value!==d.resources[f]||h){m.value=d.resources[f];var y=o[m.groupIdx];y.spans=y.spans||[],y.spans[f]=m.span,m.span=p,m.groupIdx=l,h=!0}else m.span+=p}}return a.forEach((function(e,t){var n=o[e.groupIdx];n.spans=n.spans||[],n.spans[t]=e.span})),o}(r,d,l):(d[0].tasks=new i.TaskCollection(p,h,t.splitTasks(p,h,d[0].tasks||[])),d)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(52),o=n(3),s=function(e){return function(t){return function(n){return e(n,t)}}},a=s(i.orderBy),c=s(i.groupBy);function u(e){var t,n,i;return r.__generator(this,(function(r){switch(r.label){case 0:t=0,r.label=1;case 1:return t<e.length?[4,{type:"group",dataItem:n=e[t],rowSpan:n.items.length}]:[3,7];case 2:r.sent(),i=1,r.label=3;case 3:return i<n.items.length?[4,{type:"event",dataItem:n.items[i]}]:[3,6];case 4:r.sent(),r.label=5;case 5:return i++,[3,3];case 6:return t++,[3,1];case 7:return[2]}}))}t.compose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduceRight((function(e,t){return t(e)}),t)}},t.processEvents=function(e,n){return t.compose(c([{field:"startDate"}]),a([{field:"start",dir:"asc"},{field:"end",dir:"asc"}]))};var l=function(){function e(){}return e.prototype[o.iterator]=function(){return{next:function(){return{done:!0,value:null}}}},e.prototype.toString=function(){return"Empty Iterator"},e}();t.EmptyIterator=l;var d=function(){function e(e,n,r){this.start=e,this.end=n,this.events=r,this.createIterator=t.compose(u,t.processEvents(this.start,this.end))}return e.empty=function(){return new l},e.prototype[o.iterator]=function(){return this.createIterator(this.events)},e.prototype.itemAt=function(e){var t,n=this.createIterator(this.events),r=0;do{if((t=n.next())&&r===e){var i=t.value;return"group"===i.type?i.dataItem.items[0]:i.dataItem}r++}while(t)},e.prototype.toString=function(){return this.events.toString()},e}();t.TaskCollection=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(136),s=n(137),a=n(138),c=n(141),u=n(29),l=function(){function e(){}return e=r.__decorate([i.NgModule({imports:[u.ViewsSharedModule],exports:[s.MonthViewComponent],declarations:[s.MonthViewComponent,a.MonthViewRendererComponent,o.MonthViewItemComponent,c.MonthSlotDirective]})],e)}();t.MonthViewModule=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),s=n(53),a=n(85),c=n(20),u=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t,n,r,i,o,s)||this;return a.localeId=s,a}return r.__extends(t,e),t.prototype.reflow=function(){this.item.data[this.resourceIndex].hidden?this.toggle(!1):e.prototype.reflow.call(this)},t=r.__decorate([i.Component({selector:"[monthViewItem]",template:'\n <span class="k-event-actions">\n <span class="k-icon k-i-arrow-60-left" *ngIf="item.tail"></span>\n <span class="k-icon k-i-reload" *ngIf="isRecurrence"></span>\n <span class="k-icon k-i-non-recurrence" *ngIf="isRecurrenceException"></span>\n </span>\n <ng-container *ngIf="eventTemplate" [ngTemplateOutlet]="eventTemplate"\n [ngTemplateOutletContext]="{ $implicit: item.event, event: item.event, resources: resources }">\n </ng-container>\n <div *ngIf="!eventTemplate" [attr.title]="eventTitle">\n <div class="k-event-template">{{ item.event.title }}</div>\n </div>\n\n <span class="k-event-actions">\n <span *ngIf="removable" class="k-link k-event-delete" aria-hidden="true" [attr.title]="deleteMessage">\n <span class="k-icon k-i-close"></span>\n </span>\n <span class="k-icon k-i-arrow-60-right" *ngIf="item.head"></span>\n </span>\n\n <ng-container *ngIf="resizable">\n <span class="k-resize-handle k-resize-w"></span>\n <span class="k-resize-handle k-resize-e"></span>\n </ng-container>\n '}),r.__param(5,i.Inject(i.LOCALE_ID)),r.__metadata("design:paramtypes",[s.MonthSlotService,o.LocalizationService,c.FocusService,i.ElementRef,i.Renderer2,String])],t)}(a.BaseViewItem);t.MonthViewItemComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),s=n(11),a=n(51),c=n(10),u=n(9),l=n(22),d=n(18),p=n(3),h=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.selectedDateFormat="{0:Y}",o.selectedShortDateFormat="{0:y}",o.name="month",o}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("monthViewTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewEventHeight",{get:function(){return p.isPresent(this.eventHeight)?this.eventHeight:this.schedulerOptions.eventHeight||d.DEFAULT_EVENT_HEIGHT},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"eventHeight",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedShortDateFormat",void 0),r.__decorate([i.ContentChild(l.MonthDaySlotTemplateDirective,{static:!1}),r.__metadata("design:type",l.MonthDaySlotTemplateDirective)],t.prototype,"monthDaySlotTemplate",void 0),t=n=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-month-view",providers:[{provide:s.SchedulerView,useExisting:i.forwardRef((function(){return n}))}],template:'\n <ng-template #content>\n <month-view\n [eventHeight]="viewEventHeight"\n [еventTemplate]="eventTemplate?.templateRef"\n [slotClass]="viewSlotClass"\n [eventClass]="viewEventClass"\n [eventStyles]="viewEventStyles"\n [groupHeaderTemplate]="groupHeaderTemplate?.templateRef"\n [monthDaySlotTemplate]="monthDaySlotTemplate?.templateRef"\n [selectedDateFormat]="selectedDateFormat"\n [selectedShortDateFormat]="selectedShortDateFormat"\n [weekStart]="viewWeekStart">\n </month-view>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[o.LocalizationService,i.ChangeDetectorRef,c.ViewContextService,u.ViewStateService])],t)}(a.ConfigurationViewBase);t.MonthViewComponent=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(7),s=n(6),a=n(4),c=n(10),u=n(9),l=n(17),d=n(53),p=n(139),h=n(5),f=n(86),m=n(16),y=n(2),v=function(e){function t(t,n,r,i,o,s,a,c,u,l){var d=e.call(this,t,n,r,i,o,a,s,c,u,l)||this;return d.resizeHintFormat={skeleton:"Md"},d.weeks=[],d}return r.__extends(t,e),Object.defineProperty(t.prototype,"monthDaySlotTemplateRef",{get:function(){return this.monthDaySlotTemplate||(this.schedulerMonthDaySlotTemplate||{}).templateRef},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){s.isChanged("weekStart",t)&&this.onSelectDate(this.selectedDate),e.prototype.ngOnChanges.call(this,t)},t.prototype.horizontalColspan=function(e){for(var t=this.horizontalResources,n=7,r=e+1;r<t.length;r++)n*=(t[r].data||[]).length||1;return n},t.prototype.verticalRowspan=function(e){for(var t=this.verticalResources,n=6,r=e+1;r<t.length;r++)n*=(t[r].data||[]).length||1;return n},t.prototype.verticalItem=function(e,t){for(var n=this.verticalResources[t].data||[],r=this.verticalResources,i=1,o=t+1;o<r.length;o++)i*=(r[o].data||[]).length||1;return n[e/i%n.length]},t.prototype.daySlotClass=function(e,t){if(this.slotClass)return this.slotClass({start:e,end:a.addDays(e,1),resources:this.resourcesByIndex(t),isAllDay:!1})},t.prototype.cellTitle=function(e){return this.intl.formatDate(e,"D")},t.prototype.addDay=function(e){return a.addDays(e,1)},t.prototype.optionsChange=function(t){this.schedulerMonthDaySlotTemplate=t.monthDaySlotTemplate,e.prototype.optionsChange.call(this,t)},t.prototype.createTasks=function(e,t){return this.weeks=this.createDaySlots(t),p.createTasks(t.start,t.end,e,this.weeks)},t.prototype.onTasksChange=function(){p.updateTaskData(this.tasks),this.items.next(this.tasks)},t.prototype.reflow=function(){this.updateContentHeight();var e=this.content.nativeElement;this.slotService.containerSize=e.scrollWidth,"auto"===this.contentHeight&&(e.style.overflow="visible"),this.slotService.layout(this.eventHeight),"auto"===this.contentHeight&&(e.style.overflow=""),this.syncTables()},t.prototype.onClick=function(t,n){var r=this;if(void 0===n&&(n=t.type),"click"===n){var i=l.closestInScope(t.target,(function(e){return e.hasAttribute("data-slot-index")}),this.element.nativeElement),o=l.closestInScope(t.target,(function(e){return l.hasClasses(e,"k-more-events k-nav-day")}),i);if(i&&o){var s=i.getAttribute("data-slot-index"),c=this.slotService.slotByIndex(s);return void this.zone.run((function(){r.viewState.navigateTo({viewName:"day",date:a.toLocalDate(c.start)})}))}}e.prototype.onClick.call(this,t,n)},t.prototype.slotByIndex=function(e,t){return this.slotService.slotByIndex(e)},t.prototype.onSelectDate=function(e){var t=this.dateRange(e);this.selectedDate=e,this.viewState.notifyDateRange(t),this.weeks=this.createDaySlots(t)},t.prototype.onAction=function(e){var t=a.getDate(this.selectedDate);if("next"===e.type){var n=a.firstDayOfMonth(a.addMonths(t,1));this.isInRange(n)&&this.viewState.notifyNextDate(n)}if("prev"===e.type){n=a.firstDayOfMonth(a.addMonths(t,-1));this.isInRange(n)&&this.viewState.notifyNextDate(n)}},t.prototype.dateRange=function(e){void 0===e&&(e=this.selectedDate);var t=a.firstDayOfMonth(a.getDate(e)),n=a.firstDayInWeek(t,this.weekStart);return{start:n,end:a.addDays(n,42),text:this.intl.format(this.selectedDateFormat,t),shortText:this.intl.format(this.selectedShortDateFormat,t)}},t.prototype.dragRanges=function(e){return this.slotService.dragRanges(e,this.dragging.offset)},t.prototype.dragHintSize=function(e,t){return{width:h.toPx(t.rect.left-e.rect.left+t.rect.width),height:h.toPx(e.height)}},t.prototype.slotByPosition=function(e,t){return this.slotService.slotByPosition(e,t)},t.prototype.createDaySlots=function(e){for(var t=[],n=e.start,r=0;r<6;r++){var i=[];t.push(i);for(var o=0;o<7;o++)i.push(n),n=a.addDays(n,1)}return t},r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],t.prototype,"monthDaySlotTemplate",void 0),t=r.__decorate([i.Component({selector:"month-view",providers:[d.MonthSlotService],template:'\n <div class="k-scheduler-layout k-scheduler-monthview k-scheduler-flex-layout">\n <div class="k-scheduler-pane">\n <div class="k-scheduler-times" #timesHeader *ngIf="verticalResources.length">\n <table class="k-scheduler-table" aria-hidden="true">\n <tr>\n <th></th>\n </tr>\n </table>\n </div>\n <div class="k-scheduler-header k-state-default" #header>\n <div class="k-scheduler-header-wrap" #headerWrap>\n <table class="k-scheduler-table" aria-hidden="true">\n <tr *ngFor="let resource of horizontalResources; let resourceIndex = index; trackBy: itemIndex">\n <th *ngFor="let item of horizontalResources | resourceIterator : resourceIndex; trackBy: itemIndex"\n class="k-slot-cell" [attr.colspan]="horizontalColspan(resourceIndex)">\n <ng-container *ngIf="!groupHeaderTemplateRef">{{ getField(item, resource.textField) }}</ng-container>\n <ng-container *ngIf="groupHeaderTemplateRef" [ngTemplateOutlet]="groupHeaderTemplateRef" [ngTemplateOutletContext]="{ resource: item }"></ng-container>\n </th>\n </tr>\n <tr>\n <ng-container *ngFor="let resource of horizontalResources | resourceIterator; trackBy: itemIndex">\n <th *ngFor="let day of weeks[0]; trackBy: itemIndex">\n {{ day | kendoDate: \'EEEE\' }}\n </th>\n </ng-container>\n </tr>\n </table>\n </div>\n </div>\n </div>\n <div class="k-scheduler-pane">\n <div class="k-scheduler-times k-scheduler-resources" #times *ngIf="verticalResources.length">\n <table class="k-scheduler-table" #timesTable aria-hidden="true">\n <ng-container *ngFor="let resourceItem of verticalResources | resourceIterator; let leafIndex = index; trackBy: itemIndex">\n <tr>\n <ng-container *ngFor="let resource of verticalResources; let resourceIndex = index; trackBy: itemIndex">\n <th *ngIf="verticalItem(leafIndex, resourceIndex)" [attr.rowspan]="verticalRowspan(resourceIndex)" class="k-slot-cell" [ngClass]="{ \'k-last-resource\': resourceIndex === verticalResources.length - 1 }">\n <ng-container *ngIf="!groupHeaderTemplateRef">{{ getField(verticalItem(leafIndex, resourceIndex), resource.textField) }}</ng-container>\n <ng-container *ngIf="groupHeaderTemplateRef" [ngTemplateOutlet]="groupHeaderTemplateRef"\n [ngTemplateOutletContext]="{ resource: verticalItem(leafIndex, resourceIndex) }"></ng-container>\n </th>\n </ng-container>\n <th class="k-slot-cell k-empty-slot">\n </th>\n </tr>\n <tr *ngFor="let index of 5 | repeat; trackBy: itemIndex">\n <th class="k-slot-cell k-empty-slot"></th>\n </tr>\n </ng-container>\n </table>\n </div>\n <div class="k-scheduler-content" #content>\n <table class="k-scheduler-table k-user-select-none" #contentTable role="presentation">\n <ng-container *ngFor="let resourceItem of verticalResources | resourceIterator; let verticalIndex = index; trackBy: itemIndex">\n <tr *ngFor="let week of weeks; let rangeIndex = index; trackBy: itemIndex">\n <ng-container *ngFor="let resource of horizontalResources | resourceIterator; let horizontalIndex = index; trackBy: itemIndex">\n <td *ngFor="let day of week; let index = index; trackBy: itemIndex"\n monthSlot\n [ngClass]="daySlotClass(day, verticalResources.length ? verticalIndex : horizontalIndex)"\n [start]="day"\n [id]="{ resourceIndex: verticalResources.length ? verticalIndex : horizontalIndex, rangeIndex: rangeIndex, index: index }"\n [title]="cellTitle(day)"\n [class.k-state-selected]="isSlotSelected({\n start: toPlainDate(day),\n end: addDay(toPlainDate(day)),\n isAllDay: true,\n resources: resourcesByIndex(verticalResources.length ? verticalIndex : horizontalIndex)\n })"\n >\n <span aria-hidden="true" class="k-link k-nav-day" *ngIf="!monthDaySlotTemplateRef">{{ day | kendoDate: \'dd\' }}</span>\n <ng-container *ngIf="monthDaySlotTemplateRef" [ngTemplateOutlet]="monthDaySlotTemplateRef"\n [ngTemplateOutletContext]="{ date: day, resources: resourcesByIndex(verticalResources.length ? verticalIndex : horizontalIndex) }"></ng-container>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </table>\n <ng-container *ngFor="let item of items | async; trackBy: itemIndex">\n <div *ngFor="let itemResource of item.resources; trackBy: itemIndex"\n [ngClass]="getEventClasses(item, itemResource.resources)"\n [ngStyle]="getEventStyles(item, itemResource)"\n [kendoSchedulerFocusIndex]="itemResource.leafIdx"\n monthViewItem\n [editable]="editable"\n [item]="item"\n [index]="item.index"\n [rangeIndex]="item.rangeIndex"\n [eventTemplate]="eventTemplateRef"\n [resources]="itemResource.resources"\n [resourceIndex]="itemResource.leafIdx">\n </div>\n </ng-container>\n <kendo-hint-container #hintContainer>\n <ng-template>\n <div *ngFor="let hint of dragHints; trackBy: itemIndex;"\n class="k-event-drag-hint"\n monthViewItem\n [ngStyle]="hint.style"\n [ngClass]="hint.class"\n [dragHint]="true"\n [eventTemplate]="eventTemplateRef"\n [item]="hint.item"\n [resources]="hint.resources">\n </div>\n\n <div *ngFor="let hint of resizeHints; trackBy: itemIndex;"\n kendoResizeHint\n [hint]="hint"\n [ngClass]="hint.class"\n [format]="resizeHintFormat">\n </div>\n </ng-template>\n </kendo-hint-container>\n </div>\n </div>\n </div>\n '}),r.__metadata("design:paramtypes",[c.ViewContextService,u.ViewStateService,o.IntlService,d.MonthSlotService,i.NgZone,i.ElementRef,i.Renderer2,m.PDFService,y.LocalizationService,i.ChangeDetectorRef])],t)}(f.BaseView);t.MonthViewRendererComponent=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),i=n(3);function o(e){var t=e.data;for(var n in t)t.hasOwnProperty(n)&&delete t[n]}t.createTasks=function(e,t,n,o){for(var s,a=[],c=r.toUTCDate(e),u=r.toUTCDate(t),l=0;l<n.length;l++){var d=n[l],p={},h=d.start.toUTCDate(),f=d.end,m=(d.end.getTime()!==f.getTime()?f.addDays(1):f).toUTCDate();if(r.intersects(h,m,c,u))for(var y=0;y<o.length;y++){var v=o[y],g=r.toUTCDate(v[0]),_=r.addUTCDays(r.toUTCDate((s=v)[s.length-1]),1);if(r.intersects(h,m,g,_)){var b={index:l,startTime:h,endTime:m,start:d.start,end:d.end,event:d.event,isAllDay:d.event.isAllDay,rangeIndex:y,data:p};a.push(b),b.head=b.endTime>_,b.tail=b.startTime<g}}}return i.sortTasksByTime(a)},t.updateTaskData=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.resources;o(n);for(var i=0;i<r.length;i++)n.data[r[i].leafIdx]={}}}},function(e,t){e.exports=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),s=n(87),a=n(53),c=n(17),u=n(5),l=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.isDaySlot=!0,i._linkHeight=null,i}return r.__extends(t,e),Object.defineProperty(t.prototype,"start",{get:function(){return this.startDate},set:function(e){this.startDate=u.toUTCDate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return u.addUTCDays(this.start,1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linkHeight",{get:function(){if(null===this._linkHeight){var e=c.firstElementChild(this.nativeElement);this._linkHeight=e?e.offsetHeight+e.offsetTop:0}return this._linkHeight},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.removeShowMore()},t.prototype.showMore=function(e){if(!this.showMoreElement){var t=this.showMoreElement=document.createElement("div");t.innerHTML='<span class="k-icon k-i-more-horizontal"></span>',t.className="k-more-events k-button",t.style.width=e.width+"px",t.style.left=e.left+"px",t.style.top=e.top+"px",this.nativeElement.appendChild(t)}},t.prototype.hideMore=function(){this.removeShowMore()},t.prototype.invalidate=function(){e.prototype.invalidate.call(this),this._linkHeight=null,this.removeShowMore()},t.prototype.removeShowMore=function(){this.showMoreElement&&(this.showMoreElement.parentNode.removeChild(this.showMoreElement),this.showMoreElement=null)},r.__decorate([i.Input(),r.__metadata("design:type",Date),r.__metadata("design:paramtypes",[Date])],t.prototype,"start",null),t=r.__decorate([i.Directive({selector:"[monthSlot]"}),r.__metadata("design:paramtypes",[i.ElementRef,a.MonthSlotService,o.LocalizationService])],t)}(s.BaseSlotDirective);t.MonthSlotDirective=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(88),s=n(2),a=function(){function e(e,t){this.footer=e,this.localization=t,this.showWorkHours=!1,this.footerItems=[{cssClass:"k-scheduler-fullday",iconClass:"k-i-clock",text:""}]}return e.prototype.ngOnInit=function(){this.toggleWorkHours(),this.footer.items=this.footerItems},e.prototype.ngOnChanges=function(){this.toggleWorkHours()},e.prototype.toggleWorkHours=function(){this.footerItems[0].text=this.showWorkHours?this.localization.get("showFullDay"):this.localization.get("showWorkDay")},r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"showWorkHours",void 0),e=r.__decorate([i.Directive({selector:"[kendoWorkHoursFooter]"}),r.__metadata("design:paramtypes",[o.ViewFooterComponent,s.LocalizationService])],e)}();t.WorkHoursFooterDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(3),s=function(){function e(e){this.count=e}return e.prototype[o.iterator]=function(){var e;return r.__generator(this,(function(t){switch(t.label){case 0:e=0,t.label=1;case 1:return e<this.count?[4,e]:[3,4];case 2:t.sent(),t.label=3;case 3:return e++,[3,1];case 4:return[2]}}))},e}(),a=function(){function e(){}return e.prototype.transform=function(e){return new s(e)},e=r.__decorate([i.Pipe({name:"repeat"})],e)}();t.RepeatPipe=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(3),s=function(){function e(e,t){void 0===t&&(t=e.length-1),this.resources=e,this.lastIndex=t}return e.prototype[o.iterator]=function(){var e,t,n,i,o,s;return r.__generator(this,(function(r){switch(r.label){case 0:for(e=this.resources,t=Math.max(0,this.lastIndex),e&&e.length||(e=[{}]),n=e[t].data||[],i=n.length,o=1,s=0;s<=t;s++)o*=(e[s].data||[]).length||1;s=0,r.label=1;case 1:return s<o?[4,n[s%i]]:[3,4];case 2:r.sent(),r.label=3;case 3:return s++,[3,1];case 4:return[2]}}))},e}(),a=function(){function e(){}return e.prototype.transform=function(e,t){return void 0===e&&(e=[]),new s(e,t)},e=r.__decorate([i.Pipe({name:"resourceIterator"})],e)}();t.ResourceIteratorPipe=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(4),s=function(){function e(){this.marqueeClasses=!0}return Object.defineProperty(e.prototype,"left",{get:function(){return this.hint.rect.left},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.hint.rect.top},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.hint.rect.width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.hint.rect.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return o.toLocalDate(this.hint.start)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return o.toLocalDate(this.hint.end)},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"hint",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"format",void 0),r.__decorate([i.HostBinding("class.k-marquee"),i.HostBinding("class.k-scheduler-marquee"),i.HostBinding("class.k-first"),i.HostBinding("class.k-last"),r.__metadata("design:type",Boolean)],e.prototype,"marqueeClasses",void 0),r.__decorate([i.HostBinding("style.left.px"),i.HostBinding("style.right.px"),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[])],e.prototype,"left",null),r.__decorate([i.HostBinding("style.top.px"),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[])],e.prototype,"top",null),r.__decorate([i.HostBinding("style.width.px"),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[])],e.prototype,"width",null),r.__decorate([i.HostBinding("style.height.px"),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[])],e.prototype,"height",null),e=r.__decorate([i.Component({selector:"[kendoResizeHint]",template:'\n <div class="k-marquee-color"></div>\n <div class="k-marquee-text">\n <div class="k-label-top" *ngIf="hint.first">{{ start | kendoDate : format }}</div>\n <div class="k-label-bottom" *ngIf="hint.last">{{ end | kendoDate : format }}</div>\n </div>\n '})],e)}();t.ResizeHintComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(55),s=n(147),a=n(56),c=n(148),u=n(149),l=n(92),d=n(29),p=[o.DayViewComponent,s.MultiDayViewComponent,a.WeekViewComponent,c.WorkWeekViewComponent],h=function(){function e(){}return e=r.__decorate([i.NgModule({imports:[d.ViewsSharedModule,l.DayTimeModule],exports:[p],declarations:p.concat([u.MultiDayViewRendererComponent])})],e)}();t.MultiDayViewModule=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),s=n(11),a=n(10),c=n(9),u=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.numberOfDays=1,o.name="multiDay",o}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"selectedDateFormat",{get:function(){return this.dateFormat||this.defaultDateFormat},set:function(e){this.dateFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedShortDateFormat",{get:function(){return this.shortDateFormat||this.defaultShortDateFormat},set:function(e){this.shortDateFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("multiDayViewTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultDateFormat",{get:function(){return 1===this.numberOfDays?"{0:D}":"{0:D} - {1:D}"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultShortDateFormat",{get:function(){return 1===this.numberOfDays?"{0:d}":"{0:d} - {1:d}"},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],t.prototype,"selectedDateFormat",null),r.__decorate([i.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],t.prototype,"selectedShortDateFormat",null),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"numberOfDays",void 0),t=n=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-multi-day-view",providers:[{provide:s.SchedulerView,useExisting:i.forwardRef((function(){return n}))}],template:'\n <ng-template #content>\n <multi-day-view\n viewName="day"\n [name]="name"\n [numberOfDays]="numberOfDays"\n [eventHeight]="viewEventHeight"\n [currentTimeMarker]="viewCurrentTimeMarker"\n [showWorkHours]="shouldShowWorkHours"\n [scrollTime]="viewScrollTime"\n [startTime]="viewStartTime"\n [endTime]="viewEndTime"\n [workDayStart]="viewWorkDayStart"\n [workDayEnd]="viewWorkDayEnd"\n [workWeekStart]="viewWorkWeekStart"\n [workWeekEnd]="viewWorkWeekEnd"\n [slotDuration]="viewSlotDuration"\n [slotDivisions]="viewSlotDivisions"\n [slotFill]="viewSlotFill"\n [slotClass]="viewSlotClass"\n [eventClass]="viewEventClass"\n [eventStyles]="viewEventStyles"\n [allDaySlotTemplate]="allDaySlotTemplate?.templateRef"\n [allDayEventTemplate]="allDayEventTemplate?.templateRef"\n [еventTemplate]="eventTemplate?.templateRef"\n [groupHeaderTemplate]="groupHeaderTemplate?.templateRef"\n [timeSlotTemplate]="timeSlotTemplate?.templateRef"\n [minorTimeHeaderTemplate]="minorTimeHeaderTemplate?.templateRef"\n [majorTimeHeaderTemplate]="majorTimeHeaderTemplate?.templateRef"\n [dateHeaderTemplate]="dateHeaderTemplate?.templateRef"\n [selectedDateFormat]="selectedDateFormat"\n [selectedShortDateFormat]="selectedShortDateFormat">\n </multi-day-view>\n <div viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[o.LocalizationService,i.ChangeDetectorRef,a.ViewContextService,c.ViewStateService])],t)}(n(55).DayViewComponent);t.MultiDayViewComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),s=n(11),a=n(56),c=n(7),u=n(10),l=n(9),d=n(4),p=function(e){function t(t,n,r,i,o){var s=e.call(this,t,n,r,i,o)||this;return s.name="workWeek",s.getNextDate=s.getNextDate.bind(s),s}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("workWeekViewTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"numberOfDays",{get:function(){return this.viewWorkWeekStart>this.viewWorkWeekEnd?7-this.viewWorkWeekStart+this.viewWorkWeekEnd+1:this.viewWorkWeekEnd-this.viewWorkWeekStart+1},enumerable:!0,configurable:!0}),t.prototype.getStartDate=function(e){return d.firstDayInWeek(d.getDate(e),this.viewWorkWeekStart)},t.prototype.getNextDate=function(e,t,n){return d.getDate(d.addDays(e,7*t))},t=n=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-work-week-view",providers:[{provide:s.SchedulerView,useExisting:i.forwardRef((function(){return n}))}],template:'\n <ng-template #content>\n <multi-day-view\n viewName="workWeekview"\n [name]="name"\n [numberOfDays]="numberOfDays"\n [getStartDate]="getStartDate"\n [getNextDate]="getNextDate"\n [eventHeight]="viewEventHeight"\n [currentTimeMarker]="viewCurrentTimeMarker"\n [showWorkHours]="shouldShowWorkHours"\n [scrollTime]="viewScrollTime"\n [startTime]="viewStartTime"\n [endTime]="viewEndTime"\n [workDayStart]="viewWorkDayStart"\n [workDayEnd]="viewWorkDayEnd"\n [workWeekStart]="viewWorkWeekStart"\n [workWeekEnd]="viewWorkWeekEnd"\n [slotDuration]="viewSlotDuration"\n [slotDivisions]="viewSlotDivisions"\n [slotFill]="viewSlotFill"\n [slotClass]="viewSlotClass"\n [eventClass]="viewEventClass"\n [eventStyles]="viewEventStyles"\n [allDaySlotTemplate]="allDaySlotTemplate?.templateRef"\n [allDayEventTemplate]="allDayEventTemplate?.templateRef"\n [еventTemplate]="eventTemplate?.templateRef"\n [groupHeaderTemplate]="groupHeaderTemplate?.templateRef"\n [timeSlotTemplate]="timeSlotTemplate?.templateRef"\n [minorTimeHeaderTemplate]="minorTimeHeaderTemplate?.templateRef"\n [majorTimeHeaderTemplate]="majorTimeHeaderTemplate?.templateRef"\n [dateHeaderTemplate]="dateHeaderTemplate?.templateRef"\n [selectedDateFormat]="selectedDateFormat"\n [selectedShortDateFormat]="selectedShortDateFormat">\n </multi-day-view>\n <div viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[c.IntlService,o.LocalizationService,i.ChangeDetectorRef,u.ViewContextService,l.ViewStateService])],t)}(a.WeekViewComponent);t.WorkWeekViewComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(7),s=n(2),a=n(6),c=n(8),u=n(10),l=n(9),d=n(30),p=n(150),h=n(91),f=n(54),m=n(5),y=n(16),v=function(e){function t(t,n,r,i,o,s,a,u,l,d){var p=e.call(this,l,n,r,i,o,s,a,u,d,t)||this;return p.name="day",p.dateFormat={skeleton:"MEd"},p.allDayResizeHintFormat={skeleton:"Md"},p.allDayItems=new c.BehaviorSubject(null),p}return r.__extends(t,e),Object.defineProperty(t.prototype,"allDaySlotTemplateRef",{get:function(){return this.allDaySlotTemplate||(this.schedulerAllDaySlotTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allDayEventTemplateRef",{get:function(){return this.allDayEventTemplate||(this.schedulerAllDayEventTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minorTimeHeaderTemplateRef",{get:function(){return this.minorTimeHeaderTemplate||(this.schedulerMinorTimeHeaderTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"majorTimeHeaderTemplateRef",{get:function(){return this.majorTimeHeaderTemplate||(this.schedulerMajorTimeHeaderTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allDayMessage",{get:function(){return this.localization.get("allDay")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allDayResizeHint",{get:function(){return this.resizing&&this.resizing.task.isAllDay},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allDayDragHint",{get:function(){return this.dragging&&this.dragging.slot.isDaySlot},enumerable:!0,configurable:!0}),t.prototype.optionsChange=function(t){this.schedulerAllDaySlotTemplate=t.allDaySlotTemplate,this.schedulerAllDayEventTemplate=t.allDayEventTemplate,this.schedulerMinorTimeHeaderTemplate=t.minorTimeHeaderTemplate,this.schedulerMajorTimeHeaderTemplate=t.majorTimeHeaderTemplate,e.prototype.optionsChange.call(this,t)},t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),t.slotFill&&this.changes.next(null),a.anyChanged(["startTime","endTime","showWorkHours","workDayStart","workDayEnd","workWeekStart","workWeekEnd"],t)&&this.viewRangeChange.next(null),(a.isChanged("numberOfDays",t,!0)||a.isChanged("weekStart",t))&&(this.daySlots=this.createDaySlots(),this.viewState.notifyDateRange(this.dateRange()))},t.prototype.horizontalColspan=function(e){for(var t=this.horizontalResources,n=this.daySlots.length,r=e+1;r<t.length;r++)n*=(t[r].data||[]).length||1;return n},t.prototype.verticalRowspan=function(e){for(var t=this.verticalResources,n=this.timeSlots.length+1,r=e+1;r<t.length;r++)n*=(t[r].data||[]).length||1;return n},t.prototype.allDaySlotClass=function(e,t){if(this.slotClass)return this.slotClass({start:e.start,end:e.end,resources:this.resourcesByIndex(t),isAllDay:!0})},t.prototype.createTasks=function(e,t){var n=this.timeSlots[0],r=this.timeSlots[this.timeSlots.length-1].end,i=!(r.getHours()||r.getMinutes()),o=this.daySlots.map((function(e){return{start:m.toUTCTime(e.start,n.start),end:i?m.toUTCDate(e.end):m.toUTCTime(e.start,r)}}));return p.createTasks(t.start,t.end,e,o)},t.prototype.onTasksChange=function(){this.items.next(this.tasks.filter((function(e){return!e.isAllDay}))),this.allDayItems.next(this.tasks.filter((function(e){return e.isAllDay})))},t.prototype.reflow=function(){var e=this.slotService;if(this.verticalResources.length||(this.updateContentHeight(),this.syncTables()),this.slotService.containerSize=this.content.nativeElement.clientWidth,e.layoutDays(this.eventHeight),this.updateContentHeight(),this.syncTables(),this.dayCells.length){var t=this.dayCells.toArray();if(this.verticalResources.length)e.forEachDateRange((function(e,n){var r=e.firstSlot;t[n].nativeElement.style.height=r.rect.height-r.padding+"px"}));else{var n=e.syncDateRanges();t[0].nativeElement.style.height=n+"px"}}e.layoutTimes({fill:this.slotFill}),this.syncTables()},t.prototype.dragHorizontal=function(e){return e.isDaySlot},t.prototype.updateHintContainer=function(){this.headerHintContainer&&this.headerHintContainer.detectChanges(),e.prototype.updateHintContainer.call(this)},t.prototype.onRelease=function(t){e.prototype.onRelease.call(this,t),this.dragContainers=null},t.prototype.updateDragContainer=function(e){this.dragContainers||(this.dragContainers=this.containers);var t=this.dragContainers.find((function(t){var n=t.offset;return n.top<=e.pageY&&e.pageY<=n.top+n.height}))||{};this.container=t.element,this.containerOffset=t.offset},t.prototype.containerByPosition=function(e){var t=e.x,n=e.y;return this.containers.find((function(e){var r=e.offset;return r.top<=n&&n<=r.top+r.height&&r.left<=t&&t<=r.left+r.width}))},Object.defineProperty(t.prototype,"containers",{get:function(){var e=this.headerWrap.nativeElement.children[1],t=this.content.nativeElement;return[{element:t,offset:m.elementOffset(t)},{element:e,offset:m.elementOffset(e)}]},enumerable:!0,configurable:!0}),t.prototype.scrollContainer=function(t,n){clearInterval(this.scrollInterval),this.container&&this.container===this.content.nativeElement&&e.prototype.scrollContainer.call(this,t,n)},t.prototype.dragRanges=function(e){var t=this.dragging.task;if(e.isDaySlot&&!t.isAllDay)return{ranges:[[e]],start:m.dateWithTime(e.start,t.start.toUTCDate()),end:m.dateWithTime(e.start,t.end.toUTCDate()),isAllDay:!0};var n=t.isAllDay&&!e.isDaySlot,r=this.slotService.dragRanges(e,n?{start:0,end:0}:this.dragging.offset);return n&&(r.end=e.end),r.isAllDay=this.draggedIsAllDay(t,e),r},t.prototype.dragHintEventStyleArgs=function(){return{event:this.dragging.task.event,resources:this.dragging.resourceItems,isAllDay:Boolean(this.allDayDragHint)}},t.prototype.draggedIsAllDay=function(e,t){return Boolean(t.isDaySlot&&(e.event.isAllDay||!p.isMultiDay(e)))},t.prototype.dragHintSize=function(e,t){var n,r;return e.isDaySlot?(n=m.toPx(t.rect.left-e.rect.left+t.rect.width),r=m.toPx(e.height)):(n=m.toPx(.9*e.rect.width),r=m.toPx(this.dragging.task.isAllDay?e.rect.height:t.rect.top-e.rect.top+t.rect.height)),{width:n,height:r}},t.prototype.currentTimeArrowOffset=function(){if(this.verticalResources.length){var e=this.times.nativeElement.querySelector(".k-scheduler-times-all-day"),t=this.times.nativeElement;return this.localization.rtl?t.offsetWidth-e.offsetWidth:e.offsetLeft}return 0},r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"name",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"slotFill",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],t.prototype,"allDaySlotTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],t.prototype,"allDayEventTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],t.prototype,"minorTimeHeaderTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],t.prototype,"majorTimeHeaderTemplate",void 0),r.__decorate([i.ViewChildren("allDayCell"),r.__metadata("design:type",i.QueryList)],t.prototype,"dayCells",void 0),r.__decorate([i.ViewChild("headerHintContainer",{static:!1}),r.__metadata("design:type",f.HintContainerComponent)],t.prototype,"headerHintContainer",void 0),t=r.__decorate([i.Component({selector:"multi-day-view",providers:[d.DayTimeSlotService],template:'\n <div class="k-scheduler-layout k-scheduler-flex-layout" [ngClass]="classNames">\n <div class="k-scheduler-pane">\n <div class="k-scheduler-times" #timesHeader>\n <table class="k-scheduler-table" aria-hidden="true">\n <tr *ngFor="let resource of horizontalResources; trackBy: itemIndex;">\n <th></th>\n </tr>\n <tr>\n <th></th>\n </tr>\n <tr *ngIf="!verticalResources.length">\n <th class="k-scheduler-times-all-day" #allDayCell>{{ allDayMessage }}</th>\n </tr>\n </table>\n </div>\n <div class="k-scheduler-header k-state-default" #header>\n <div class="k-scheduler-header-wrap" #headerWrap>\n <table class="k-scheduler-table" aria-hidden="true">\n <tr *ngFor="let resource of horizontalResources; let resourceIndex = index; trackBy: itemIndex;">\n <th *ngFor="let item of horizontalResources | resourceIterator : resourceIndex; trackBy: itemIndex;"\n class="k-slot-cell" [attr.colspan]="horizontalColspan(resourceIndex)">\n <ng-container *ngIf="!groupHeaderTemplateRef">{{ getField(item, resource.textField) }}</ng-container>\n <ng-container *ngIf="groupHeaderTemplateRef" [ngTemplateOutlet]="groupHeaderTemplateRef" [ngTemplateOutletContext]="{ resource: item }"></ng-container>\n </th>\n </tr>\n <tr>\n <ng-container *ngFor="let resource of horizontalResources | resourceIterator; trackBy: itemIndex;">\n <th *ngFor="let slot of daySlots; let index = index; trackBy: itemIndex">\n <span *ngIf="!dateHeaderTemplateRef" class="k-link k-nav-day" [attr.data-dayslot-index]="index">{{ slot.start | kendoDate: dateFormat }}</span>\n <ng-container *ngIf="dateHeaderTemplateRef" [ngTemplateOutlet]="dateHeaderTemplateRef" [ngTemplateOutletContext]="{ date: slot.start }"></ng-container>\n </th>\n </ng-container>\n </tr>\n </table>\n <div style="position: relative;" *ngIf="!verticalResources.length">\n <table class="k-scheduler-table k-scheduler-header-all-day k-user-select-none" aria-hidden="true">\n <tr>\n <ng-container *ngFor="let resource of horizontalResources | resourceIterator; let resourceIndex = index; trackBy: itemIndex;">\n <td *ngFor="let slot of daySlots; let index = index; trackBy: itemIndex"\n daySlot\n [start]="slot.start"\n [end]="slot.end"\n [id]="{ resourceIndex: resourceIndex, rangeIndex: 0, index: index }"\n [class.k-state-selected]="isSlotSelected({\n start: toPlainDate(slot.start),\n end: toPlainDate(slot.end),\n isAllDay: true,\n resources: resourcesByIndex(resourceIndex)\n })"\n [ngClass]="allDaySlotClass(slot, resourceIndex)">\n <ng-container *ngIf="allDaySlotTemplateRef" [ngTemplateOutlet]="allDaySlotTemplateRef"\n [ngTemplateOutletContext]="{ date: slot.start, resources: resourcesByIndex(resourceIndex) }"></ng-container>\n </td>\n </ng-container>\n </tr>\n </table>\n <ng-container *ngFor="let item of allDayItems | async; trackBy: itemIndex;">\n <div *ngFor="let itemResource of item.resources; trackBy: itemIndex;"\n [ngClass]="getEventClasses(item, itemResource.resources, true)"\n [ngStyle]="getEventStyles(item, itemResource, true)"\n [kendoSchedulerFocusIndex]="itemResource.leafIdx"\n dayTimeViewItem\n [isAllDay]="true"\n [editable]="editable"\n [eventTemplate]="allDayEventTemplateRef"\n [item]="item"\n [index]="item.index"\n [rangeIndex]="item.rangeIndex"\n [resources]="itemResource.resources"\n [resourceIndex]="itemResource.leafIdx">\n </div>\n </ng-container>\n <kendo-hint-container #headerHintContainer>\n <ng-template>\n <div *ngIf="dragHints.length && allDayDragHint"\n class="k-event-drag-hint"\n dayTimeViewItem\n [isAllDay]="true"\n [ngStyle]="dragHints[0].style"\n [ngClass]="dragHints[0].class"\n [dragHint]="true"\n [eventTemplate]="eventTemplateRef"\n [item]="dragHints[0].item"\n [resources]="dragHints[0].resources">\n </div>\n\n <div *ngIf="resizeHints.length && allDayResizeHint"\n kendoResizeHint\n [hint]="resizeHints[0]"\n [ngClass]="resizeHints[0].class"\n [format]="allDayResizeHintFormat">\n </div>\n </ng-template>\n </kendo-hint-container>\n </div>\n </div>\n </div>\n </div>\n <div class="k-scheduler-pane">\n <div class="k-scheduler-times" #times>\n <ng-container *ngIf="showCurrentTime">\n <div *ngFor="let resource of verticalResources | resourceIterator; trackBy: itemIndex;"\n #currentTimeArrow class="k-current-time k-current-time-arrow-right">\n </div>\n </ng-container>\n <table class="k-scheduler-table" #timesTable aria-hidden="true">\n <ng-container *ngFor="let resourceItem of verticalResources | resourceIterator; let leafIndex = index; trackBy: itemIndex;">\n <tr *ngIf="verticalResources.length">\n <ng-container *ngFor="let resource of verticalResources; let resourceIndex = index; trackBy: itemIndex;">\n <th *ngIf="verticalItem(leafIndex, resourceIndex)" [attr.rowspan]="verticalRowspan(resourceIndex)" class="k-slot-cell">\n <ng-container *ngIf="!groupHeaderTemplateRef">{{ getField(verticalItem(leafIndex, resourceIndex), resource.textField) }}</ng-container>\n <ng-container *ngIf="groupHeaderTemplateRef" [ngTemplateOutlet]="groupHeaderTemplateRef"\n [ngTemplateOutletContext]="{ resource: verticalItem(leafIndex, resourceIndex) }"></ng-container>\n </th>\n </ng-container>\n <th class="k-scheduler-times-all-day" #allDayCell>{{ allDayMessage }}</th>\n </tr>\n <tr *ngFor="let slot of timeSlots; let timeSlotIndex = index;trackBy: itemIndex">\n <th *ngIf="slot.isMajor" [ngClass]="{ \'k-slot-cell\': slotDivisions === 1 }">\n <ng-container *ngIf="!majorTimeHeaderTemplateRef">{{ slot.start | kendoDate: \'t\' }}</ng-container>\n <ng-container *ngIf="majorTimeHeaderTemplateRef" [ngTemplateOutlet]="majorTimeHeaderTemplateRef" [ngTemplateOutletContext]="{ date: slot.start }"></ng-container>\n </th>\n <th *ngIf="!slot.isMajor" [ngClass]="{ \'k-slot-cell\': timeSlotIndex % slotDivisions === slotDivisions - 1 }">\n <ng-container *ngIf="minorTimeHeaderTemplateRef" [ngTemplateOutlet]="minorTimeHeaderTemplateRef" [ngTemplateOutletContext]="{ date: slot.start }">\n </ng-container>\n </th>\n </tr>\n </ng-container>\n </table>\n </div>\n <div class="k-scheduler-content k-user-select-none" #content>\n <ng-container *ngIf="showCurrentTime">\n <div *ngFor="let resource of verticalResources | resourceIterator; trackBy: itemIndex;"\n #currentTimeMarker class="k-current-time">\n </div>\n </ng-container>\n <table class="k-scheduler-table" #contentTable role="presentation">\n <ng-container *ngFor="let resourceItem of verticalResources | resourceIterator; let verticalIndex = index; trackBy: itemIndex;">\n <tr class="k-scheduler-header-all-day" *ngIf="verticalResources.length">\n <td *ngFor="let slot of daySlots; let index = index; trackBy: itemIndex"\n daySlot\n [start]="slot.start"\n [end]="slot.end"\n [class.k-state-selected]="isSlotSelected({\n start: toPlainDate(slot.start),\n end: toPlainDate(slot.end),\n isAllDay: true,\n resources: resourcesByIndex(verticalIndex)\n })"\n [id]="{ resourceIndex: verticalIndex, rangeIndex: 0, index: index }">\n <ng-container *ngIf="allDaySlotTemplateRef" [ngTemplateOutlet]="allDaySlotTemplateRef"\n [ngTemplateOutletContext]="{ date: slot.start, resources: resourcesByIndex(verticalIndex) }"></ng-container>\n </td>\n </tr>\n <tr *ngFor="let slot of timeSlots; index as index; trackBy: itemIndex" [class.k-middle-row]="slot.isMajor">\n <ng-container *ngFor="let resource of horizontalResources | resourceIterator; let horizontalIndex = index; trackBy: itemIndex;">\n <td *ngFor="let daySlot of daySlots; index as rangeIndex; trackBy: itemIndex"\n [ngClass]="timeSlotClass(slot, daySlot.start, verticalResources.length ? verticalIndex : horizontalIndex)"\n timeSlot #timeSlot="timeSlot"\n [date]="daySlot.start"\n [invariantStart]="slot.start"\n [invariantEnd]="slot.end"\n [workDayStart]="workDayStartTime"\n [workDayEnd]="workDayEndTime"\n [workWeekStart]="workWeekStart"\n [workWeekEnd]="workWeekEnd"\n [id]="{ resourceIndex: verticalResources.length ? verticalIndex : horizontalIndex, rangeIndex: rangeIndex, index: index }"\n [class.k-state-selected]="isSlotSelected({\n start: toPlainDateTime(daySlot.start, slot.start),\n end: toPlainDateTime(daySlot.start, slot.end),\n isAllDay: false,\n resources: resourcesByIndex(verticalResources.length ? verticalIndex : horizontalIndex)\n })"\n >\n <ng-container *ngIf="timeSlotTemplateRef" [ngTemplateOutlet]="timeSlotTemplateRef"\n [ngTemplateOutletContext]="{ date: timeSlot.startLocalTime, resources: resourcesByIndex(timeSlot.id.resourceIndex) }">\n </ng-container>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </table>\n <ng-container *ngFor="let item of items | async; trackBy: itemIndex;">\n <div *ngFor="let itemResource of item.resources; trackBy: itemIndex;"\n [ngClass]="getEventClasses(item, itemResource.resources)"\n [ngStyle]="getEventStyles(item, itemResource)"\n [kendoSchedulerFocusIndex]="itemResource.leafIdx"\n dayTimeViewItem\n [editable]="editable"\n [vertical]="true"\n [eventTemplate]="eventTemplateRef"\n [item]="item"\n [index]="item.index"\n [rangeIndex]="item.rangeIndex"\n [resources]="itemResource.resources"\n [resourceIndex]="itemResource.leafIdx">\n </div>\n </ng-container>\n <ng-container *ngIf="verticalResources.length">\n <ng-container *ngFor="let item of allDayItems | async; trackBy: itemIndex;">\n <div *ngFor="let itemResource of item.resources; trackBy: itemIndex;"\n [ngClass]="getEventClasses(item, itemResource.resources, true)"\n [ngStyle]="getEventStyles(item, itemResource, true)"\n [kendoSchedulerFocusIndex]="itemResource.leafIdx"\n dayTimeViewItem\n [isAllDay]="true"\n [editable]="editable"\n [eventTemplate]="allDayEventTemplateRef"\n [item]="item"\n [index]="item.index"\n [rangeIndex]="item.rangeIndex"\n [resources]="itemResource.resources"\n [resourceIndex]="itemResource.leafIdx">\n </div>\n </ng-container>\n </ng-container>\n <kendo-hint-container #hintContainer>\n <ng-template>\n <div *ngIf="dragHints.length && (!allDayDragHint || verticalResources.length)"\n class="k-event-drag-hint"\n dayTimeViewItem\n [isAllDay]="allDayDragHint"\n [ngStyle]="dragHints[0].style"\n [ngClass]="dragHints[0].class"\n [dragHint]="true"\n [eventTemplate]="eventTemplateRef"\n [resources]="dragHints[0].resources"\n [item]="dragHints[0].item">\n </div>\n\n <ng-container *ngIf="resizeHints.length && (!allDayResizeHint || verticalResources.length)">\n <div *ngFor="let hint of resizeHints; trackBy: itemIndex;"\n kendoResizeHint\n [hint]="hint"\n [ngClass]="hint.class"\n [format]="allDayResizeHint ? allDayResizeHintFormat : resizeHintFormat">\n </div>\n </ng-container>\n </ng-template>\n </kendo-hint-container>\n </div>\n </div>\n </div>\n '}),r.__metadata("design:paramtypes",[s.LocalizationService,u.ViewContextService,l.ViewStateService,o.IntlService,d.DayTimeSlotService,i.NgZone,i.Renderer2,i.ElementRef,i.ChangeDetectorRef,y.PDFService])],t)}(h.DayTimeViewComponent);t.MultiDayViewRendererComponent=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),i=n(4),o=n(3);t.isMultiDay=function(e){var t=e.start,n=e.end,r=t.stripTime(),i=n.stripTime();return r.getTime()!==i.getTime()&&(i.getTime()!==n.getTime()||r.addDays(1).getTime()!==i.getTime())},t.createTasks=function(e,n,s,a){for(var c=[],u=r.toUTCDate(e),l=r.toUTCDate(n),d=0;d<s.length;d++)for(var p=s[d],h=t.isMultiDay(p),f=h&&!p.event.isAllDay&&p.end.getTime()-p.start.getTime()<i.MS_PER_DAY,m=p.event.isAllDay||h&&!f,y=(m?r.roundAllDayEnd(p):p.end).toUTCDate(),v=(m?p.start.stripTime():p.start).toUTCDate(),g=0;g<a.length;g++){var _=a[g].start,b=a[g].end;if(r.intersects(v,y,_,b)){var S={index:d,isAllDay:m,startTime:v,endTime:y,rangeIndex:m?0:g,start:p.start,end:p.end,event:p.event};if(c.push(S),!f){S.head=l<y,S.tail=v<u;break}var w=a[g+1],k=a[g-1];S.head=(w?w.start:l)<y,S.tail=v<(k?k.end:u)}}return o.sortTasksByTime(c)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),i=n(18);t.createTimeSlots=function(e,t){var n=t.showWorkHours,o=t.startTime,s=t.endTime,a=t.workDayStart,c=t.workDayEnd,u=t.slotDivisions,l=t.slotDuration,d=e.parseDate(n?a:o),p=r.toInvariantTime(d).getTime(),h=e.parseDate(n?c:s),f=r.toInvariantTime(h).getTime();f<=p&&(f=r.toInvariantTime(i.MIDNIGHT_INVARIANT).getTime()+i.MS_PER_DAY);for(var m=[],y=Math.round(l/u*i.MS_PER_MINUTE),v=p,g=0;v<f;)m.push({start:new Date(v),end:new Date(v+y),isMajor:g%u==0}),g++,v+=y;return m}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(87),s=n(5),a=n(30),c=n(2),u=n(18),l=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.isDaySlot=!1,i}return r.__extends(t,e),Object.defineProperty(t.prototype,"nonWorkHour",{get:function(){var e=this.date.getDay();return this.invariantStart<this.workDayStart||this.workDayEnd<this.invariantEnd||!s.isWorkWeekDay(e,this.workWeekStart,this.workWeekEnd)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startLocalTime",{get:function(){return this.date&&this.invariantStart?s.dateWithTime(this.date,this.invariantStart):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endLocalTime",{get:function(){return this.date&&this.invariantEnd?s.dateWithTime(this.date,this.invariantEnd):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){return this.date&&this.invariantStart?s.toUTCTime(this.date,this.invariantStart):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){if(!this.date||!this.invariantEnd)return null;var e=s.toUTCTime(this.date,this.invariantEnd);return u.INVARIANT_END.getTime()<=this.invariantEnd.getTime()?s.addUTCDays(e,1):e},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",Date)],t.prototype,"invariantStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],t.prototype,"invariantEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],t.prototype,"workDayStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],t.prototype,"workDayEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"workWeekStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"workWeekEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],t.prototype,"date",void 0),r.__decorate([i.HostBinding("class.k-nonwork-hour"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],t.prototype,"nonWorkHour",null),t=r.__decorate([i.Directive({selector:"[timeSlot]",exportAs:"timeSlot"}),r.__metadata("design:paramtypes",[i.ElementRef,a.DayTimeSlotService,c.LocalizationService])],t)}(o.BaseSlotDirective);t.TimeSlotDirective=l;var d=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.isDaySlot=!0,i}return r.__extends(t,e),Object.defineProperty(t.prototype,"start",{get:function(){return this.startDate?s.toUTCDate(this.startDate):null},set:function(e){this.startDate=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this.endDate?s.toUTCDate(this.endDate):null},set:function(e){this.endDate=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"daySlot",{get:function(){return!0},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",Date),r.__metadata("design:paramtypes",[Date])],t.prototype,"start",null),r.__decorate([i.Input(),r.__metadata("design:type",Date),r.__metadata("design:paramtypes",[Date])],t.prototype,"end",null),r.__decorate([i.HostBinding("attr.data-day-slot"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],t.prototype,"daySlot",null),t=r.__decorate([i.Directive({selector:"[daySlot]"}),r.__metadata("design:paramtypes",[i.ElementRef,a.DayTimeSlotService,c.LocalizationService])],t)}(o.BaseSlotDirective);t.DaySlotDirective=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(7),s=n(2),a=n(4),c=n(20),u=n(30),l=function(e){function t(t,n,r,i,o,s,a){var c=e.call(this,n,r,i,o,s,a)||this;return c.intlService=t,c.localeId=a,c}return r.__extends(t,e),Object.defineProperty(t.prototype,"eventTime",{get:function(){return this.intlService.format("{0:t}–{1:t}",a.toLocalDate(this.item.startTime),a.toLocalDate(this.item.endTime))},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],t.prototype,"vertical",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],t.prototype,"isAllDay",void 0),t=r.__decorate([i.Component({selector:"[dayTimeViewItem]",template:'\n <span class="k-event-actions">\n <span class="k-icon k-i-arrow-60-left" *ngIf="item.tail && !vertical"></span>\n <span class="k-icon k-i-reload" *ngIf="isRecurrence"></span>\n <span class="k-icon k-i-non-recurrence" *ngIf="isRecurrenceException"></span>\n </span>\n <ng-container *ngIf="eventTemplate" [ngTemplateOutlet]="eventTemplate"\n [ngTemplateOutletContext]="{ $implicit: item.event, event: item.event, resources: resources }">\n </ng-container>\n <div *ngIf="!eventTemplate" [attr.title]="eventTitle">\n <div class="k-event-template k-event-time" *ngIf="!isAllDay">{{ eventTime }}</div>\n <div class="k-event-template" aria-hidden="true">{{ item.event.title }}</div>\n </div>\n\n <span class="k-event-actions">\n <span *ngIf="removable" class="k-link k-event-delete" aria-hidden="true" [attr.title]="deleteMessage">\n <span class="k-icon k-i-close"></span>\n </span>\n <span class="k-icon k-i-arrow-60-right" *ngIf="item.head && !vertical"></span>\n </span>\n\n <span class="k-event-top-actions" *ngIf="item.tail && vertical">\n <span class="k-icon k-i-arrow-60-up"></span>\n </span>\n\n <span class="k-event-bottom-actions" *ngIf="item.head && vertical">\n <span class="k-icon k-i-arrow-60-down"></span>\n </span>\n\n <ng-container *ngIf="resizable && vertical">\n <span class="k-resize-handle k-resize-n" *ngIf="!item.tail"></span>\n <span class="k-resize-handle k-resize-s" *ngIf="!item.head"></span>\n </ng-container>\n\n <ng-container *ngIf="resizable && !vertical">\n <span class="k-resize-handle k-resize-w"></span>\n <span class="k-resize-handle k-resize-e"></span>\n </ng-container>\n '}),r.__param(6,i.Inject(i.LOCALE_ID)),r.__metadata("design:paramtypes",[o.IntlService,u.DayTimeSlotService,s.LocalizationService,c.FocusService,i.ElementRef,i.Renderer2,String])],t)}(n(85).BaseViewItem);t.DayTimeViewItemComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(11),s=function(e){function t(t){var n=e.call(this)||this;return n.template=t,n}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"name",{get:function(){return this._name||this.title},set:function(e){this._name=e},enumerable:!0,configurable:!0}),r.__decorate([i.Input("kendoSchedulerView"),r.__metadata("design:type",String)],t.prototype,"title",void 0),r.__decorate([i.Input("kendoSchedulerViewName"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],t.prototype,"name",null),t=n=r.__decorate([i.Directive({providers:[{provide:o.SchedulerView,useExisting:i.forwardRef((function(){return n}))}],selector:"[kendoSchedulerView]"}),r.__metadata("design:paramtypes",[i.TemplateRef])],t)}(o.SchedulerView);t.SchedulerViewDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(156),s=n(158),a=n(159),c=n(160),u=n(92),l=n(29),d=[s.TimelineViewComponent,a.TimelineWeekViewComponent,c.TimelineMonthViewComponent],p=function(){function e(){}return e=r.__decorate([i.NgModule({imports:[u.DayTimeModule,l.ViewsSharedModule],exports:[d],declarations:d.concat([o.TimelineMultiDayViewComponent])})],e)}();t.TimelineViewModule=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(7),s=n(2),a=n(10),c=n(9),u=n(30),l=n(157),d=n(5),p=n(91),h=n(16),f=function(e){function t(t,n,r,i,o,s,a,c,u,l){var d=e.call(this,n,r,i,o,s,a,c,u,l,t)||this;return d.name="timeline",d.columnWidth=100,d.viewName="timeline",d.verticalTime=!1,d}return r.__extends(t,e),Object.defineProperty(t.prototype,"classNames",{get:function(){return"k-scheduler-"+this.viewName+"-view"},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){t.columnWidth&&this.changes.next(null),e.prototype.ngOnChanges.call(this,t)},t.prototype.reflow=function(){var e=this.slotService;this.updateContentHeight(),e.containerSize=this.content.nativeElement.scrollWidth;var t=this.verticalResources.length?this.verticalResourceRows.toArray():[];e.layoutTimeline(this.eventHeight,t),t.length&&e.forEachGroup((function(e,n){t[n].nativeElement.style.height=e.timeRanges[0].slots[0].height+"px"})),this.syncTables()},Object.defineProperty(t.prototype,"allEventsMessage",{get:function(){return this.localization.get("allEvents")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"slotsCount",{get:function(){for(var e=this.horizontalResources,t=this.daySlots.length*this.timeSlots.length,n=0;n<e.length;n++)t*=(e[n].data||[]).length||1;return t},enumerable:!0,configurable:!0}),t.prototype.timeColspan=function(e){var t=this.timeSlots.length,n=t%this.slotDivisions;return 0===n||e<t-n?this.slotDivisions:1},t.prototype.horizontalColspan=function(e){for(var t=this.horizontalResources,n=this.daySlots.length*this.timeSlots.length,r=e+1;r<t.length;r++)n*=(t[r].data||[]).length||1;return n},t.prototype.verticalRowspan=function(e){for(var t=this.verticalResources,n=1,r=e+1;r<t.length;r++)n*=(t[r].data||[]).length||1;return n},t.prototype.createTasks=function(e,t){return l.createTasks(t.start,t.end,e)},t.prototype.onTasksChange=function(){this.items.next(this.tasks)},t.prototype.dragRanges=function(e){return this.slotService.dragRanges(e,this.dragging.offset,!0)},t.prototype.dragHintSize=function(e,t){return{width:d.toPx(t.rect.left-e.rect.left+t.rect.width),height:d.toPx(e.height)}},t.prototype.updateResizeHints=function(t,n,r){var i=t[t.length-1];e.prototype.updateResizeHints.call(this,[[t[0][0],i[i.length-1]]],n,r)},t.prototype.pdfWidth=function(){return this.content.nativeElement.scrollWidth+this.times.nativeElement.offsetWidth},t.prototype.currentTimeArrowOffset=function(){return this.headerWrap.nativeElement.querySelector("tr:last-child").offsetTop},r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"name",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"columnWidth",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"viewName",void 0),r.__decorate([i.ViewChildren("verticalResourceRows"),r.__metadata("design:type",i.QueryList)],t.prototype,"verticalResourceRows",void 0),t=r.__decorate([i.Component({selector:"timeline-multi-day-view",providers:[u.DayTimeSlotService],template:'\n <div class="k-scheduler-layout k-scheduler-flex-layout" [ngClass]="classNames">\n <div class="k-scheduler-pane">\n <div class="k-scheduler-times" #timesHeader>\n <table class="k-scheduler-table" aria-hidden="true">\n <tr><th></th></tr>\n <tr><th class="k-slot-cell"></th></tr>\n <tr *ngFor="let resource of horizontalResources; trackBy: itemIndex;">\n <th></th>\n </tr>\n </table>\n </div>\n <div class="k-scheduler-header k-state-default" #header >\n <div class="k-scheduler-header-wrap" #headerWrap>\n <ng-container *ngIf="showCurrentTime">\n <div *ngFor="let resource of horizontalResources | resourceIterator; trackBy: itemIndex;"\n #currentTimeArrow class="k-current-time k-current-time-arrow-down">\n </div>\n </ng-container>\n <table class="k-scheduler-table" aria-hidden="true">\n <colgroup>\n <col *ngFor="let slotIndex of slotsCount | repeat; trackBy: itemIndex;" [ngStyle]="{ \'width.px\': columnWidth }" />\n </colgroup>\n <tr *ngFor="let resource of horizontalResources; let resourceIndex = index; trackBy: itemIndex;">\n <th *ngFor="let item of horizontalResources | resourceIterator : resourceIndex; trackBy: itemIndex;"\n class="k-slot-cell" [attr.colspan]="horizontalColspan(resourceIndex)">\n <ng-container *ngIf="!groupHeaderTemplateRef">{{ getField(item, resource.textField) }}</ng-container>\n <ng-container *ngIf="groupHeaderTemplateRef" [ngTemplateOutlet]="groupHeaderTemplateRef"\n [ngTemplateOutletContext]="{ resource: item }"></ng-container>\n </th>\n </tr>\n <tr>\n <ng-container *ngFor="let resource of horizontalResources | resourceIterator; trackBy: itemIndex;">\n <ng-container *ngFor="let daySlot of daySlots; let index = index; trackBy: itemIndex;">\n <th [attr.colspan]="timeSlots.length" class="k-slot-cell">\n <span *ngIf="!dateHeaderTemplateRef" class="k-link" [ngClass]="{ \'k-nav-day\': numberOfDays > 1 }" [attr.data-dayslot-index]="index">{{ daySlot.start | kendoDate: \'m\'}}</span>\n <ng-container *ngIf="dateHeaderTemplateRef" [ngTemplateOutlet]="dateHeaderTemplateRef" [ngTemplateOutletContext]="{ date: daySlot.start }"></ng-container>\n </th>\n </ng-container>\n </ng-container>\n </tr>\n <tr>\n <ng-container *ngFor="let resource of horizontalResources | resourceIterator; let resourceIndex = index; trackBy: itemIndex;">\n <ng-container *ngFor="let daySlot of daySlots; let rangeIndex = index; trackBy: itemIndex;">\n <ng-container *ngFor="let timeSlot of timeSlots; let index = index; trackBy: itemIndex;">\n <th *ngIf="timeSlot.isMajor" [attr.colspan]="timeColspan(index)" >{{ timeSlot.start | kendoDate: \'t\' }}</th>\n </ng-container>\n </ng-container>\n </ng-container>\n </tr>\n </table>\n </div>\n </div>\n </div>\n <div class="k-scheduler-pane">\n <div class="k-scheduler-times" #times>\n <table class="k-scheduler-table" #timesTable aria-hidden="true">\n <tr *ngIf="!verticalResources.length">\n <th rowspan="1" #titleCell>\n {{ allEventsMessage }}\n </th>\n </tr>\n <ng-container *ngIf="verticalResources.length">\n <ng-container *ngFor="let resourceItem of verticalResources | resourceIterator; let leafIndex = index; trackBy: itemIndex;">\n <tr #verticalResourceRows>\n <ng-container *ngFor="let resource of verticalResources; let resourceIndex = index; trackBy: itemIndex;">\n <th *ngIf="verticalItem(leafIndex, resourceIndex)" [attr.rowspan]="verticalRowspan(resourceIndex)" class="k-slot-cell">\n <div>\n <ng-container *ngIf="!groupHeaderTemplateRef">{{ getField(verticalItem(leafIndex, resourceIndex), resource.textField) }}</ng-container>\n <ng-container *ngIf="groupHeaderTemplateRef" [ngTemplateOutlet]="groupHeaderTemplateRef"\n [ngTemplateOutletContext]="{ resource: verticalItem(leafIndex, resourceIndex) }"></ng-container>\n </div>\n </th>\n </ng-container>\n </tr>\n </ng-container>\n </ng-container>\n </table>\n </div>\n <div class="k-scheduler-content" #content>\n <ng-container *ngIf="showCurrentTime">\n <div *ngFor="let resource of horizontalResources | resourceIterator; trackBy: itemIndex;"\n class="k-current-time" #currentTimeMarker>\n </div>\n </ng-container>\n <table class="k-scheduler-table k-user-select-none" #contentTable role="presentation">\n <colgroup>\n <col *ngFor="let slotIndex of slotsCount | repeat; trackBy: itemIndex;" [ngStyle]="{ \'width.px\': columnWidth }" />\n </colgroup>\n <tr *ngFor="let resourceItem of verticalResources | resourceIterator; let verticalIndex = index; trackBy: itemIndex;">\n <ng-container *ngFor="let resource of horizontalResources | resourceIterator; let horizontalIndex = index; trackBy: itemIndex;">\n <ng-container *ngFor="let daySlot of daySlots; let rangeIndex = index; trackBy: itemIndex;">\n <td *ngFor="let slot of timeSlots; let index = index; trackBy: itemIndex;"\n [ngClass]="timeSlotClass(slot, daySlot.start, verticalResources.length ? verticalIndex : horizontalIndex)"\n timeSlot #timeSlot="timeSlot"\n [date]="daySlot.start"\n [invariantStart]="slot.start"\n [invariantEnd]="slot.end"\n [workDayStart]="workDayStartTime"\n [workDayEnd]="workDayEndTime"\n [workWeekStart]="workWeekStart"\n [workWeekEnd]="workWeekEnd"\n selectableSlot\n [id]="{ resourceIndex: verticalResources.length ? verticalIndex : horizontalIndex, rangeIndex: rangeIndex, index: index }"\n [class.k-state-selected]="isSlotSelected({\n start: toPlainDateTime(daySlot.start, slot.start),\n end: toPlainDateTime(daySlot.start, slot.end),\n isAllDay: false,\n resources: resourcesByIndex(verticalResources.length ? verticalIndex : horizontalIndex)\n })"\n >\n <ng-container *ngIf="timeSlotTemplateRef" [ngTemplateOutlet]="timeSlotTemplateRef"\n [ngTemplateOutletContext]="{ date: timeSlot.start, resources: resourcesByIndex(timeSlot.id.resourceIndex ) }">\n </ng-container>\n </td>\n </ng-container>\n </ng-container>\n </tr>\n </table>\n <ng-container *ngFor="let item of items | async; trackBy: itemIndex;">\n <div *ngFor="let itemResource of item.resources; trackBy: itemIndex;"\n [ngClass]="getEventClasses(item, itemResource.resources)"\n [ngStyle]="getEventStyles(item, itemResource)"\n [kendoSchedulerFocusIndex]="itemResource.leafIdx"\n dayTimeViewItem\n [editable]="editable"\n [item]="item"\n [index]="item.index"\n [rangeIndex]="item.rangeIndex"\n [eventTemplate]="eventTemplateRef"\n [resources]="itemResource.resources"\n [resourceIndex]="itemResource.leafIdx">\n </div>\n </ng-container>\n <kendo-hint-container #hintContainer>\n <ng-template>\n <div *ngFor="let hint of dragHints; trackBy: itemIndex;"\n class="k-event-drag-hint"\n dayTimeViewItem\n [ngStyle]="hint.style"\n [ngClass]="hint.class"\n [dragHint]="true"\n [eventTemplate]="eventTemplateRef"\n [item]="hint.item"\n [resources]="hint.resources">\n </div>\n <div *ngIf="resizeHints && resizeHints.length"\n kendoResizeHint\n [hint]="resizeHints[0]"\n [ngClass]="resizeHints[0].class"\n [format]="resizeHintFormat">\n </div>\n </ng-template>\n </kendo-hint-container>\n </div>\n </div>\n </div>\n '}),r.__metadata("design:paramtypes",[s.LocalizationService,i.ChangeDetectorRef,a.ViewContextService,c.ViewStateService,o.IntlService,u.DayTimeSlotService,i.NgZone,i.Renderer2,i.ElementRef,h.PDFService])],t)}(p.DayTimeViewComponent);t.TimelineMultiDayViewComponent=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5);t.createTasks=function(e,t,n){for(var i=[],o=r.toUTCDate(e),s=r.toUTCDate(t),a=0;a<n.length;a++){var c=n[a],u=c.event,l={index:a,start:c.start,end:c.end,event:u,isAllDay:!1},d=u.isAllDay?r.roundAllDayEnd(c):l.end,p=u.isAllDay?l.start.stripTime():l.start;l.startTime=p.toUTCDate(),l.endTime=d.toUTCDate(),r.intersects(l.startTime,l.endTime,o,s)&&(i.push(l),l.head=l.endTime>t,l.tail=l.startTime<e)}return i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),s=n(11),a=n(57),c=n(10),u=n(9),l=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.selectedDateFormat="{0:D}",o.selectedShortDateFormat="{0:d}",o.name="timeline",o}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("timelineViewTitle")},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedShortDateFormat",void 0),t=n=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-timeline-view",providers:[{provide:s.SchedulerView,useExisting:i.forwardRef((function(){return n}))}],template:'\n <ng-template #content>\n <timeline-multi-day-view\n [name]="name"\n [eventHeight]="viewEventHeight"\n [columnWidth]="viewColumnWidth"\n [currentTimeMarker]="viewCurrentTimeMarker"\n [showWorkHours]="shouldShowWorkHours"\n [scrollTime]="viewScrollTime"\n [startTime]="viewStartTime"\n [endTime]="viewEndTime"\n [workDayStart]="viewWorkDayStart"\n [workDayEnd]="viewWorkDayEnd"\n [workWeekStart]="viewWorkWeekStart"\n [workWeekEnd]="viewWorkWeekEnd"\n [slotDuration]="viewSlotDuration"\n [slotDivisions]="viewSlotDivisions"\n [slotClass]="viewSlotClass"\n [eventClass]="viewEventClass"\n [eventStyles]="viewEventStyles"\n [еventTemplate]="eventTemplate?.templateRef"\n [groupHeaderTemplate]="groupHeaderTemplate?.templateRef"\n [timeSlotTemplate]="timeSlotTemplate?.templateRef"\n [dateHeaderTemplate]="dateHeaderTemplate?.templateRef"\n [selectedDateFormat]="selectedDateFormat"\n [selectedShortDateFormat]="selectedShortDateFormat">\n </timeline-multi-day-view>\n <div viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[o.LocalizationService,i.ChangeDetectorRef,c.ViewContextService,u.ViewStateService])],t)}(a.TimelineBase);t.TimelineViewComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),s=n(11),a=n(57),c=n(7),u=n(4),l=n(10),d=n(9),p=function(e){function t(t,n,r,i,o){var s=e.call(this,n,r,i,o)||this;return s.intl=t,s.selectedDateFormat="{0:D} - {1:D}",s.selectedShortDateFormat="{0:d} - {1:d}",s.name="timelineWeek",s.getStartDate=function(e){return u.firstDayInWeek(u.getDate(e),s.viewWeekStart)},s}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("timelineWeekViewTitle")},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedShortDateFormat",void 0),t=n=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-timeline-week-view",providers:[{provide:s.SchedulerView,useExisting:i.forwardRef((function(){return n}))}],template:'\n <ng-template #content>\n <timeline-multi-day-view\n viewName="timeline-week"\n [name]="name"\n [numberOfDays]="7"\n [getStartDate]="getStartDate"\n [eventHeight]="viewEventHeight"\n [columnWidth]="viewColumnWidth"\n [currentTimeMarker]="viewCurrentTimeMarker"\n [showWorkHours]="shouldShowWorkHours"\n [scrollTime]="viewScrollTime"\n [startTime]="viewStartTime"\n [endTime]="viewEndTime"\n [workDayStart]="viewWorkDayStart"\n [workDayEnd]="viewWorkDayEnd"\n [workWeekStart]="viewWorkWeekStart"\n [workWeekEnd]="viewWorkWeekEnd"\n [weekStart]="viewWeekStart"\n [slotDuration]="viewSlotDuration"\n [slotDivisions]="viewSlotDivisions"\n [slotClass]="viewSlotClass"\n [eventClass]="viewEventClass"\n [eventStyles]="viewEventStyles"\n [еventTemplate]="eventTemplate?.templateRef"\n [groupHeaderTemplate]="groupHeaderTemplate?.templateRef"\n [timeSlotTemplate]="timeSlotTemplate?.templateRef"\n [dateHeaderTemplate]="dateHeaderTemplate?.templateRef"\n [selectedDateFormat]="selectedDateFormat"\n [selectedShortDateFormat]="selectedShortDateFormat">\n </timeline-multi-day-view>\n <div viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[c.IntlService,o.LocalizationService,i.ChangeDetectorRef,l.ViewContextService,d.ViewStateService])],t)}(a.TimelineBase);t.TimelineWeekViewComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),s=n(11),a=n(57),c=n(10),u=n(9),l=n(4),d=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.selectedDateFormat="{0:Y}",o.selectedShortDateFormat="{0:y}",o.name="timelineMonth",o.getStartDate=function(e){return l.firstDayOfMonth(l.getDate(e))},o.getEndDate=function(e){return l.addMonths(o.getStartDate(e),1)},o.getNextDate=function(e,t){return l.addMonths(e,t)},o}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("timelineMonthViewTitle")},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedShortDateFormat",void 0),t=n=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-timeline-month-view",providers:[{provide:s.SchedulerView,useExisting:i.forwardRef((function(){return n}))}],template:'\n <ng-template #content>\n <timeline-multi-day-view\n viewName="timeline-month"\n [name]="name"\n [getNextDate]="getNextDate"\n [getStartDate]="getStartDate"\n [getEndDate]="getEndDate"\n [eventHeight]="viewEventHeight"\n [columnWidth]="viewColumnWidth"\n [currentTimeMarker]="viewCurrentTimeMarker"\n [showWorkHours]="shouldShowWorkHours"\n [scrollTime]="viewScrollTime"\n [startTime]="viewStartTime"\n [endTime]="viewEndTime"\n [workDayStart]="viewWorkDayStart"\n [workDayEnd]="viewWorkDayEnd"\n [workWeekStart]="viewWorkWeekStart"\n [workWeekEnd]="viewWorkWeekEnd"\n [slotDuration]="viewSlotDuration"\n [slotDivisions]="viewSlotDivisions"\n [slotClass]="viewSlotClass"\n [eventClass]="viewEventClass"\n [eventStyles]="viewEventStyles"\n [еventTemplate]="eventTemplate?.templateRef"\n [groupHeaderTemplate]="groupHeaderTemplate?.templateRef"\n [timeSlotTemplate]="timeSlotTemplate?.templateRef"\n [dateHeaderTemplate]="dateHeaderTemplate?.templateRef"\n [selectedDateFormat]="selectedDateFormat"\n [selectedShortDateFormat]="selectedShortDateFormat">\n </timeline-multi-day-view>\n <div viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[o.LocalizationService,i.ChangeDetectorRef,c.ViewContextService,u.ViewStateService])],t)}(a.TimelineBase);t.TimelineMonthViewComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(19),s=n(162),a=n(47),c=n(93),u=n(48),l=n(27),d=n(14),p=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.scheduler=t,i.localDataChangesService=n,i.dialogsService=r,i}return r.__extends(t,e),t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),this.subscriptions.add(this.scheduler.eventDblClick.subscribe(this.editHandler.bind(this))),this.subscriptions.add(this.scheduler.save.subscribe(this.saveHandler.bind(this)))},t.prototype.editHandler=function(e){var t=this;if(this.isEnabled("edit")){var n=new l.EditEvent(this.scheduler,{dataItem:e.event.dataItem,event:e.event});if(this.edit.emit(n),!n.isDefaultPrevented()){var r=e.event.dataItem;if(this.editService.isRecurring(r))this.dialogsService.openRecurringConfirmationDialog(0).pipe(d.filter((function(e){return void 0!==e}))).subscribe((function(e){2===e&&(r=t.editService.findRecurrenceMaster(r));var n=t.createModel({action:"edit",isNew:!1,mode:e,dataItem:r});t.scheduler.editEvent(r,{group:n,mode:e})}));else{var i=this.createModel({action:"edit",isNew:!1,mode:0,dataItem:r});this.scheduler.editEvent(r,{group:i})}}}},t.prototype.saveHandler=function(e){if(this.isFormValid(e)){var t=e.formGroup.value;e.isNew?this.editService.create(t):this.handleUpdate(e.dataItem,t,e.mode)}this.closeEditor()},t.prototype.createModel=function(e){return e.event=e.dataItem,this.createFormGroup(e)},t.prototype.isFormValid=function(e){var t=e.formGroup,n=e.isNew;return!!t.valid||!(!t.dirty&&!n)&&(c.markAllAsTouched(t),!1)},r.__decorate([i.Input("kendoSchedulerReactiveEditing"),r.__metadata("design:type",Function)],t.prototype,"createFormGroup",void 0),t=r.__decorate([i.Directive({selector:"[kendoSchedulerReactiveEditing]"}),r.__metadata("design:paramtypes",[o.SchedulerComponent,a.LocalDataChangesService,u.DialogsService])],t)}(s.EditingDirectiveBase);t.ReactiveEditingDirective=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),s=n(163),a=n(27),c=n(3),u=n(93),l=function(){function e(e,t,n){this.scheduler=e,this.localDataChangesService=t,this.dialogsService=n,this.add=new i.EventEmitter,this.edit=new i.EventEmitter,this.defaultTitle="No title",this.defaultEditService=this.createDefaultService(),this.scheduler.editable=!0}return Object.defineProperty(e.prototype,"editService",{get:function(){return this.userEditService||this.defaultEditService},set:function(e){this.userEditService=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.subscriptions=o.merge(this.scheduler.slotDblClick,this.scheduler.create).subscribe(this.addHandler.bind(this)),this.subscriptions.add(this.scheduler.removeConfirmed.subscribe(this.removeHandler.bind(this))),this.subscriptions.add(this.scheduler.cancel.subscribe(this.cancelHandler.bind(this))),this.subscriptions.add(this.scheduler.resizeEndConfirmed.subscribe(this.resizeEndHandler.bind(this))),this.subscriptions.add(this.scheduler.dragEndConfirmed.subscribe(this.dragEndHandler.bind(this)))},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.createDefaultService=function(){return new s.LocalEditService(this.scheduler,this.localDataChangesService)},e.prototype.addHandler=function(e){if(this.closeEditor(),this.isEnabled("add")){var t=this.scheduler.modelFields,n={};c.setField(n,t.start,e.start),c.setField(n,t.end,e.end),c.setField(n,t.isAllDay,e.isAllDay),c.setField(n,t.title,e.title);for(var r=c.groupResources(this.scheduler.group,this.scheduler.resources),i=e.resources,o=0;o<r.length;o++){var s=r[o],u=c.getField(i[o],s.valueField);c.setField(n,s.field,s.multiple?[u]:u)}var l=new a.AddEvent(this.scheduler,{dataItem:n});this.add.emit(l),l.isDefaultPrevented()||this.scheduler.addEvent(this.createModel({action:"add",isNew:!0,dataItem:n}))}},e.prototype.removeHandler=function(e){var t=this,n=e.dataItem;this.isEnabled("remove")&&(this.editService.isRecurring(n)?this.dialogsService.openRecurringConfirmationDialog(1).subscribe((function(e){void 0!==e&&t.handleRemove(n,e)})):this.dialogsService.openRemoveConfirmationDialog().subscribe((function(e){e&&t.handleRemove(n,0)})))},e.prototype.cancelHandler=function(){this.closeEditor()},e.prototype.closeEditor=function(){this.scheduler.closeEvent()},e.prototype.handleUpdate=function(e,t,n){var r=this.editService;1===n?r.isException(e)?r.update(e,t):r.createException(e,t):r.update(e,t)},e.prototype.handleRemove=function(e,t){var n=this.editService;2===t?n.removeSeries(e):1===t?n.isException(e)?n.remove(e):n.removeOccurrence(e):n.remove(e)},e.prototype.resizeEndHandler=function(e){var t=this,n=e.event,r=e.start,i=e.end;if(!u.areEqual(r,n.start)||!u.areEqual(i,n.end)){var o=n.dataItem,s=this.scheduler.modelFields,a={};c.setField(a,s.start,r),c.setField(a,s.end,i),this.editService.isRecurring(o)?this.dialogsService.openRecurringConfirmationDialog(0).subscribe((function(e){var n=o;2===e?(n=t.editService.findRecurrenceMaster(o),c.setField(a,s.start,u.seriesDate(n,o,a,s.start)),c.setField(a,s.end,u.seriesDate(n,o,a,s.end))):void 0!==e&&(a=c.assignValues(c.clone(o),a)),t.handleUpdate(n,a,e)})):this.editService.update(o,a)}},e.prototype.dragEndHandler=function(e){var t=this,n=e.event.dataItem,r=e.start,i=e.end,o=e.resources,s=e.isAllDay,a=this.scheduler.modelFields,l=c.groupResources(this.scheduler.group,this.scheduler.resources).map((function(e){return e.field})),d=[a.start,a.end,a.isAllDay].concat(l),p=c.clone(o);c.setField(p,a.start,r),c.setField(p,a.end,i),c.setField(p,a.isAllDay,s),u.diff(n,p,d)&&(this.editService.isRecurring(n)?this.dialogsService.openRecurringConfirmationDialog(0).subscribe((function(e){var r=n;2===e?(r=t.editService.findRecurrenceMaster(n),c.setField(p,a.start,u.seriesDate(r,n,p,a.start)),c.setField(p,a.end,u.seriesDate(r,n,p,a.end))):void 0!==e&&(p=c.assignValues(c.clone(n),p)),t.handleUpdate(r,p,e)})):this.editService.update(n,p))},e.prototype.isEnabled=function(e){var t=this.scheduler.editable;return t&&!1!==t[e]},r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"add",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"edit",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],e.prototype,"editService",null),e}();t.EditingDirectiveBase=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),i=n(1),o=n(6),s=function(e){return!(!e.id||!e.recurrenceRule)},a=function(){function e(e,t){this.scheduler=e,this.localDataChangesService=t}return Object.defineProperty(e.prototype,"fields",{get:function(){return this.scheduler.modelFields},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasLocalData",{get:function(){return r.isPresent(this.localDataChangesService.data)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.hasLocalData?this.localDataChangesService.data:this.scheduler.events},enumerable:!0,configurable:!0}),e.prototype.create=function(e){var t=this.fields.id,n=r.getField(e,t);r.isPresent(n)||r.setField(e,t,this.nextId()),this.data.push(e),this.dataChanged()},e.prototype.createException=function(e,t){var n=this.buildException(t);this.removeOccurrenceInternal(e),this.create(n)},e.prototype.update=function(e,t){r.assignValues(e,t),this.dataChanged()},e.prototype.remove=function(e){for(var t=this.fields.id,n=r.getField(e,t),i=this.data,o=0;o<i.length;o++)if(n===r.getField(i[o],t)){i.splice(o,1);break}this.dataChanged()},e.prototype.removeSeries=function(e){var t=r.readEvent(e,this.fields),n=s(t);this.removeItemAndExceptions(n?t.id:t.recurrenceId),this.dataChanged()},e.prototype.removeOccurrence=function(e){this.removeOccurrenceInternal(e),this.dataChanged()},e.prototype.findRecurrenceMaster=function(e){var t=this.scheduler.modelFields,n=r.readEvent(e,t),i=s(n)?n.id:n.recurrenceId;return this.data.find((function(e){return r.getField(e,t.id)===i}))},e.prototype.isRecurring=function(e){return r.isRecurring(e,this.scheduler.modelFields)},e.prototype.isException=function(e){return r.isException(e,this.scheduler.modelFields)},e.prototype.nextId=function(){return o.guid()},e.prototype.buildException=function(e){var t=this.fields,n=this.findRecurrenceMaster(e);if(n){var o=r.clone(e);return r.setField(o,t.id,this.nextId()),r.setField(o,t.recurrenceId,r.getField(n,t.id)),r.setField(o,t.recurrenceRule,null),o}if(i.isDevMode())throw new Error("Unable to find recurrence head for event. Please check that recurrenceId is set and refers to an existing event.")},e.prototype.removeItemAndExceptions=function(e){for(var t=this.data,n=this.scheduler.modelFields,i=t.length-1;i>=0;i--)e!==r.getField(t[i],n.recurrenceId)&&e!==r.getField(t[i],n.id)||t.splice(i,1)},e.prototype.removeOccurrenceInternal=function(e){var t=this.fields,n=this.findRecurrenceMaster(e),i=r.getField(e,t.start),o=r.getField(n,t.recurrenceExceptions)||[];r.setField(n,t.recurrenceExceptions,o.concat([i]))},e.prototype.dataChanged=function(){this.hasLocalData&&this.localDataChangesService.changes.emit()},e}();t.LocalEditService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(15),s=n(2),a=n(71),c=n(8),u=n(3),l=n(46),d=n(94),p=n(96),h=n(6),f=n(14),m=n(97),y=n(20),v=n(4),g=n(5),_=function(){function e(e,t,n,r,i,o){var s=this;this.ngZone=e,this.editService=t,this.localization=n,this.changeDetector=r,this.element=i,this.focusService=o,this.resources=[],this.timezone="Etc/UTC",this.setTimeZone=!1,this.setSeparateStartEndTimeZones=!1,this.subs=this.editService.changed.subscribe((function(){s.ngZone.run((function(){s.onChange()}))})),this.subs.add(c.fromEvent(this.element.nativeElement,"keydown").pipe(f.filter((function(){return s.isActive}))).subscribe((function(e){e.keyCode===h.Keys.Escape&&s.reset(),e.keyCode===h.Keys.Enter&&(m.withModifiers(e,m.Modifiers.CtrlKey)||m.withModifiers(e,m.Modifiers.MetaKey))&&s.onSave(e),e.stopPropagation()})))}return Object.defineProperty(e.prototype,"autoFocusedElement",{get:function(){return this.editTemplate?this.editTemplate.autoFocusedElement:".k-edit-field input"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEditingSeries",{get:function(){return 2===this.editMode&&Boolean(this.formGroup.get(this.fields.recurrenceRule))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"eventTimezone",{get:function(){return g.formValueOrDefault(this.formGroup,this.fields.startTimezone,this.timezone)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endTimezone",{get:function(){return g.formValueOrDefault(this.formGroup,this.fields.endTimezone,this.eventTimezone)},enumerable:!0,configurable:!0}),e.prototype.onChange=function(){if(this.changeDetector.markForCheck(),this.editService.hasNewEvent)this.editMode=2,this.formGroup=this.editService.context.formGroup,this.isNew=!0,this.applyLocalTimezone();else{if(!this.editService.isEditing())return void this.reset();var e=this.editService.context,t=e.dataItem,n=e.mode;this.formGroup=this.editService.context.formGroup,this.isNew=!1,this.editedEvent=t,this.editMode=u.isPresent(n)?n:2,this.applyLocalTimezone()}this.editTemplate||(this.addTimeZoneCheckboxesToFormGroup(),this.subscribeToFormGroupChanges()),u.isPresent(this.formGroup)&&(this.recurrenceStart=this.formGroup.get(this.fields.start).value),this.isActive=!0},e.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},e.prototype.onCancel=function(e){e.preventDefault(),this.onClose(),this.changeDetector.markForCheck()},e.prototype.onSave=function(e){e.preventDefault(),this.applyTimezone(),this.editService.save(),this.changeDetector.markForCheck()},e.prototype.onClose=function(){this.editService.endEdit(),this.changeDetector.markForCheck(),this.focusService.focus()},Object.defineProperty(e.prototype,"hasAllDay",{get:function(){return Boolean(this.formGroup.get(this.fields.isAllDay))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasStartTimeZone",{get:function(){return Boolean(this.formGroup.get(this.fields.startTimezone))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isStartTimeZoneVisible",{get:function(){return this.formGroup&&this.formGroup.get("startTimezoneCheckbox").value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasEndTimeZone",{get:function(){return Boolean(this.formGroup.get(this.fields.endTimezone))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEndTimeZoneVisible",{get:function(){return this.formGroup&&this.formGroup.get("endTimezoneCheckbox").value},enumerable:!0,configurable:!0}),e.prototype.getFormValue=function(e){if(e)return this.formGroup.get(e)},e.prototype.textFor=function(e){return this.localization.get(e)},e.prototype.onResourceClick=function(e){var t=(e.multiple?this.multipleResourceEditors:this.singleResourceEditors).filter((function(t){return t.resource.field===e.field})).pop();t&&t.focus()},e.prototype.reset=function(){this.isActive=!1,this.setTimeZone=!1,this.setSeparateStartEndTimeZones=!1,this.removeTimeZoneCheckboxesFromFormGroup(),this.focusService.focus()},e.prototype.addTimeZoneCheckboxesToFormGroup=function(){if(u.isPresent(this.formGroup)){var e=this.fields.startTimezone;this.formGroup.addControl("startTimezoneCheckbox",new o.FormControl(this.formGroup.contains(e)&&this.formGroup.get(e).value));var t=this.fields.endTimezone;this.formGroup.addControl("endTimezoneCheckbox",new o.FormControl(this.formGroup.contains(t)&&this.formGroup.get(t).value))}},e.prototype.removeTimeZoneCheckboxesFromFormGroup=function(){u.isPresent(this.formGroup)&&(this.formGroup.removeControl("startTimezoneCheckbox"),this.formGroup.removeControl("endTimezoneCheckbox"))},e.prototype.subscribeToFormGroupChanges=function(){var e=this;if(u.isPresent(this.formGroup)){var t=this.fields;this.formGroup.get("startTimezoneCheckbox").valueChanges.subscribe((function(n){n||(e.formGroup.get(t.startTimezone).setValue(null,{emitEvent:!1}),e.formGroup.get(t.endTimezone).setValue(null,{emitEvent:!1}),e.formGroup.get("endTimezoneCheckbox").setValue(!1,{emitEvent:!1}))})),this.formGroup.get("endTimezoneCheckbox").valueChanges.subscribe((function(n){n||e.formGroup.get(t.endTimezone).setValue(null,{emitEvent:!1})})),this.formGroup.get(t.start).valueChanges.subscribe((function(t){e.recurrenceStart=t}))}},e.prototype.applyLocalTimezone=function(){var e=this.fields,t=this.readDateAsLocal(e.start,this.eventTimezone),n=this.readDateAsLocal(e.end,this.endTimezone);this.formGroup.get(e.start).reset(t),this.formGroup.get(e.end).reset(n)},e.prototype.applyTimezone=function(){var e=this.fields,t=this.readDateWithTimezone(e.start,this.eventTimezone),n=this.readDateWithTimezone(e.end,this.endTimezone);this.formGroup.get(e.start).reset(t),this.formGroup.get(e.end).reset(n)},e.prototype.readDateWithTimezone=function(e,t){var n=this.formGroup.get(e).value;return v.ZonedDate.fromUTCDate(g.toUTCDateTime(n),t).toLocalDate()},e.prototype.readDateAsLocal=function(e,t){var n=this.formGroup.get(e).value;return v.toLocalDate(v.ZonedDate.fromLocalDate(n,t).toUTCDate())},r.__decorate([i.ViewChildren(d.MultipleResourceEditorComponent),r.__metadata("design:type",i.QueryList)],e.prototype,"multipleResourceEditors",void 0),r.__decorate([i.ViewChildren(p.SingleResourceEditorComponent),r.__metadata("design:type",i.QueryList)],e.prototype,"singleResourceEditors",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],e.prototype,"resources",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"timezone",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"weekStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"fields",void 0),r.__decorate([i.Input(),r.__metadata("design:type",l.EditDialogTemplateDirective)],e.prototype,"editTemplate",void 0),e=r.__decorate([i.Component({selector:"kendo-scheduler-edit-dialog",template:"\n <kendo-dialog (close)='onClose()' [minWidth]='700' *ngIf='isActive' title='{{ textFor(\"editorTitle\") }}' class='k-scheduler-edit-dialog' [autoFocusedElement]=\"autoFocusedElement\">\n <ng-container *ngIf='!editTemplate'>\n <div class='k-scheduler-edit-form'>\n <div class='k-edit-form-container'>\n <form novalidate [formGroup]='formGroup'>\n <div class='k-edit-label'>\n <label for='k-event-title'>{{ textFor('editorEventTitle') }}</label>\n </div>\n <div class='k-edit-field'>\n <input #title id='k-event-title' kendoTextBox placeholder='Title' [formControl]='formGroup.get(fields.title)' />\n </div>\n\n <div class='k-edit-label'>\n <label (click)=\"startDateTimePicker.focus()\">{{ textFor('editorEventStart') }}</label>\n </div>\n <div class='k-edit-field'>\n <kendo-scheduler-datetime-picker #startDateTimePicker [formControl]='formGroup.get(fields.start)'\n [isAllDay]='getFormValue(fields.isAllDay)?.value'>\n </kendo-scheduler-datetime-picker>\n </div>\n\n <ng-container *ngIf=\"isStartTimeZoneVisible\">\n <div class='k-edit-label'>\n <label (click)=\"startTzPicker.focus()\">{{ textFor('editorEventStartTimeZone') }}</label>\n </div>\n\n <div class='k-edit-field'>\n <kendo-timezone-editor #startTzPicker [formControl]='formGroup.get(fields.startTimezone)'></kendo-timezone-editor>\n </div>\n </ng-container>\n\n <div class='k-edit-label'>\n <label (click)=\"endDateTimePicker.focus()\">{{ textFor('editorEventEnd') }}</label>\n </div>\n <div class='k-edit-field'>\n <kendo-scheduler-datetime-picker #endDateTimePicker [formControl]='formGroup.get(fields.end)'\n [isAllDay]='getFormValue(fields.isAllDay)?.value'>\n </kendo-scheduler-datetime-picker>\n </div>\n\n <ng-container *ngIf=\"isEndTimeZoneVisible\">\n <div class='k-edit-label'>\n <label (click)=\"endTzPicker.focus()\">{{ textFor('editorEventEndTimeZone') }}</label>\n </div>\n\n <div class='k-edit-field'>\n <kendo-timezone-editor #endTzPicker [formControl]='formGroup.get(fields.endTimezone)'></kendo-timezone-editor>\n </div>\n </ng-container>\n\n <div class='k-edit-field' *ngIf=\"hasAllDay\">\n <input type='checkbox' id='k-is-allday-chkbox' kendoCheckBox [formControl]='formGroup.get(fields.isAllDay)' />\n <label class='k-checkbox-label' for='k-is-allday-chkbox'>{{ textFor('editorEventAllDay') }}</label>\n </div>\n\n <div class='k-edit-field' *ngIf=\"hasStartTimeZone\">\n <input type='checkbox' id='k-set-timezone' kendoCheckBox\n formControlName='startTimezoneCheckbox' />\n <label class='k-checkbox-label' for='k-set-timezone'>{{ textFor('editorEventTimeZone') }}</label>\n\n <ng-container *ngIf=\"isStartTimeZoneVisible && hasEndTimeZone\">\n <input type='checkbox' id='k-use-separate' kendoCheckBox formControlName='endTimezoneCheckbox' />\n <label class='k-checkbox-label' for='k-use-separate'>{{ textFor('editorEventSeparateTimeZones') }}</label>\n </ng-container>\n </div>\n\n <ng-container *ngIf=\"isEditingSeries\">\n <kendo-recurrence-editor\n [formControl]='formGroup.get(fields.recurrenceRule)'\n [start]='recurrenceStart'\n [timezone]='eventTimezone'\n [weekStart]='weekStart'\n ></kendo-recurrence-editor>\n </ng-container>\n\n <ng-container *ngIf='getFormValue(fields.description)'>\n <div class='k-edit-label'>\n <label for='k-event-description'>{{ textFor('editorEventDescription') }}</label>\n </div>\n <div class='k-edit-field'>\n <textarea id='k-event-description' kendoTextArea [formControl]='formGroup.get(fields.description)'></textarea>\n </div>\n </ng-container>\n\n <ng-container *ngFor='let resource of resources'>\n <ng-container *ngIf='getFormValue(resource.field)'>\n <div class='k-edit-label'>\n <label (click)=\"onResourceClick(resource)\">\n {{ resource.name ? resource.name : resource.field }}\n </label>\n </div>\n <div class='k-edit-field'>\n <kendo-multiple-resource-editor\n *ngIf='resource.multiple'\n [formControl]='formGroup.get(resource.field)'\n [resource]='resource'>\n </kendo-multiple-resource-editor>\n <kendo-single-resource-editor\n *ngIf='!resource.multiple'\n [formControl]='formGroup.get(resource.field)'\n [resource]='resource'>\n </kendo-single-resource-editor>\n </div>\n </ng-container>\n </ng-container>\n </form>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf='editTemplate'>\n <form novalidate [formGroup]='formGroup'>\n <ng-container [ngTemplateOutlet]='editTemplate.templateRef'\n [ngTemplateOutletContext]=\"{\n $implicit: formGroup,\n formGroup: formGroup,\n dataItem: editedEvent,\n editMode: editMode,\n isNew: isNew\n }\">\n </ng-container>\n </form>\n </ng-container>\n\n <kendo-dialog-actions>\n <button kendoButton (click)=\"onCancel($event)\">{{ textFor('cancel') }}</button>\n <button kendoButton themeColor=\"primary\" (click)=\"onSave($event)\" [disabled]=\"!formGroup.valid\">{{ textFor('save') }}</button>\n </kendo-dialog-actions>\n </kendo-dialog>\n "}),r.__metadata("design:paramtypes",[i.NgZone,a.EditService,s.LocalizationService,i.ChangeDetectorRef,i.ElementRef,y.FocusService])],e)}();t.EditDialogComponent=_},function(e,t){e.exports=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(15),s=n(1),a=n(23);t.SCHEDULER_DATETIMEPICKER_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:s.forwardRef((function(){return c}))};var c=function(){function e(){this.valueChange=new s.EventEmitter,this.onTouchedCallback=function(e){},this.onChangeCallback=function(e){}}return e.prototype.writeValue=function(e){e instanceof Date&&(this.date=e)},e.prototype.onValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.focus=function(){this.datePicker.focus()},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},r.__decorate([i.ViewChild("datepicker",{static:!0}),r.__metadata("design:type",a.DatePickerComponent)],e.prototype,"datePicker",void 0),r.__decorate([s.Input(),r.__metadata("design:type",Boolean)],e.prototype,"isAllDay",void 0),r.__decorate([s.Output(),r.__metadata("design:type",s.EventEmitter)],e.prototype,"valueChange",void 0),e=r.__decorate([s.Component({providers:[t.SCHEDULER_DATETIMEPICKER_VALUE_ACCESSOR],selector:"kendo-scheduler-datetime-picker",template:"\n <kendo-datepicker\n #datepicker\n [(value)]='date'\n (valueChange)='onValueChange($event)'\n ></kendo-datepicker>\n <kendo-timepicker *ngIf='!isAllDay'\n [(value)]='date'\n (valueChange)='onValueChange($event)'\n ></kendo-timepicker>\n ",styles:["\n kendo-datepicker,\n kendo-timepicker {\n width: 170px;\n }\n "]})],e)}();t.SchedulerDateTimePickerComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),s=n(76),a=n(3),c=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r)||this;return o.schedulerLocalization=i,o}return r.__extends(t,e),t.prototype.get=function(t){return this.schedulerLocalization?this.schedulerLocalization.get("recurrenceEditor"+a.capitalize(t)):e.prototype.get.call(this,t)},t=r.__decorate([r.__param(0,i.Inject(o.L10N_PREFIX)),r.__param(1,i.Optional()),r.__param(2,i.Optional()),r.__param(2,i.Inject(o.RTL)),r.__param(3,i.Optional()),r.__param(3,i.Inject(s.SchedulerLocalizationService)),r.__metadata("design:paramtypes",[String,o.MessageService,Boolean,s.SchedulerLocalizationService])],t)}(o.LocalizationService);t.RecurrenceLocalizationService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(13),s=n(2),a=n(21),c=function(){function e(e,t){this.recurrence=e,this.localization=t}return e.prototype.ngOnInit=function(){this.frequencies=this.recurrence.frequencies},Object.defineProperty(e.prototype,"selected",{get:function(){return this.recurrence.frequency},enumerable:!0,configurable:!0}),e.prototype.onClick=function(e){e.value!==this.selected&&this.recurrence.setFrequency(e.value)},e.prototype.textFor=function(e){return this.localization.get(e)},e.prototype.onFrequencyClick=function(){var e=this.weekDayButtons.toArray().find((function(e){return e.selected}));e&&e.focus()},r.__decorate([i.ViewChildren(a.Button),r.__metadata("design:type",i.QueryList)],e.prototype,"weekDayButtons",void 0),e=r.__decorate([i.Component({selector:"kendo-recurrence-frequency-editor",template:'\n <div class=\'k-edit-label\'>\n <label (click)="onFrequencyClick()">{{ textFor(\'repeat\') }}</label>\n </div>\n <div class=\'k-edit-field\'>\n <kendo-buttongroup [selection]="\'single\'">\n <button *ngFor=\'let freq of frequencies\' kendoButton\n [style.width.px]="100"\n [togglable]="true"\n [selected]="freq.value === selected"\n (click)="onClick(freq)"\n >{{ freq.text }}</button>\n </kendo-buttongroup>\n </div>\n '}),r.__metadata("design:paramtypes",[o.RecurrenceService,s.LocalizationService])],e)}();t.RecurrenceFrequencyEditorComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(13),s=n(3),a=n(2),c=n(99),u=n(4),l=n(5),d=function(){function e(e,t){this.recurrence=e,this.localization=t,this.numericOptions={min:1,format:"#",autoCorrect:!0,step:1,spinners:!0},this.datePickerOptions={activeView:"month",bottomView:"month",topView:"century",disabledDatesValidation:!0,navigation:!0,format:"d"},this.uniqueId=this.recurrence.getUniqueId(),this.setInitialValues(),this.subscribeChanges()}return Object.defineProperty(e.prototype,"userNumericOptions",{set:function(e){this.numericOptions=r.__assign({},this.numericOptions,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"userDatePickerOptions",{set:function(e){this.datePickerOptions=r.__assign({},this.datePickerOptions,e)},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.setEndRule=function(e){"count"===e?this.recurrence.rrule.count=this.countValue:"until"===e&&(this.recurrence.until=this.untilValue)},Object.defineProperty(e.prototype,"rrule",{get:function(){return this.recurrence.rrule},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCountDisabled",{get:function(){return"count"!==this.recurrence.endRule},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isUntilDisabled",{get:function(){return"until"!==this.recurrence.endRule},enumerable:!0,configurable:!0}),e.prototype.onCountChange=function(e){s.isPresent(e)&&(this.recurrence.count=e)},e.prototype.onCountBlur=function(){s.isPresent(this.countValue)||(this.recurrence.count=this.countValue=1)},e.prototype.onUntilChange=function(e){s.isPresent(e)&&(this.recurrence.until=this.createUntil(e))},e.prototype.onUntilBlur=function(){s.isPresent(this.untilValue)||(this.recurrence.until=this.untilValue=this.createUntil(this.recurrence.start))},e.prototype.textFor=function(e){return this.localization.get(e)},e.prototype.onEndLabelClick=function(){var e=this.endRuleRadioButtons.toArray().find((function(e){return e.elem.checked}));e&&e.elem.focus()},e.prototype.setInitialValues=function(){this.countValue=this.rrule.count||1;var e=this.recurrence.until,t=this.recurrence.start;this.untilValue=s.isPresent(e)?e:this.createUntil(t)},e.prototype.subscribeChanges=function(){var e=this;this.subscriptions=this.recurrence.endRuleChange.subscribe((function(t){e.setEndRule(t)})),this.subscriptions.add(this.recurrence.frequencyChange.subscribe((function(){e.setInitialValues()})))},e.prototype.createUntil=function(e){var t=l.toUTCDate(e);return t.setUTCDate(t.getUTCDate()+1),u.ZonedDate.fromUTCDate(t,this.recurrence.timezone).toLocalDate()},r.__decorate([i.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],e.prototype,"userNumericOptions",null),r.__decorate([i.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],e.prototype,"userDatePickerOptions",null),r.__decorate([i.ViewChildren(c.EndRuleRadioButtonDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"endRuleRadioButtons",void 0),e=r.__decorate([i.Component({selector:"kendo-recurrence-end-rule-editor",template:"\n <div class='k-edit-label'>\n <label (click)=\"onEndLabelClick()\">{{ textFor('endLabel') }}</label>\n </div>\n <div class='k-edit-field'>\n <ul class='k-reset'>\n <li>\n <input kendoRecurrenceEndRuleRadioButton='k-endrule-never-{{uniqueId}}' />\n <label class='k-radio-label' for='k-endrule-never-{{uniqueId}}'>{{ textFor('endNever') }}</label>\n </li>\n <li>\n <input kendoRecurrenceEndRuleRadioButton='k-endrule-count-{{uniqueId}}' />\n <label class='k-radio-label' for='k-endrule-count-{{uniqueId}}'>{{ textFor('endAfter') }}</label>\n\n <kendo-numerictextbox\n [style.width.px]='70'\n [autoCorrect]='numericOptions.autoCorrect'\n [decimals]='0'\n [disabled]='isCountDisabled'\n [format]=\"numericOptions.format\"\n [min]='numericOptions.min'\n [max]=\"numericOptions.max\"\n [readonly]=\"numericOptions.readonly\"\n [selectOnFocus]=\"numericOptions.selectOnFocus\"\n [spinners]=\"numericOptions.spinners\"\n [step]=\"numericOptions.step\"\n [title]=\"numericOptions.title\"\n [(value)]='countValue'\n (blur)=\"onCountBlur()\"\n (valueChange)='onCountChange($event)'>\n </kendo-numerictextbox>\n <span>{{ textFor('endOccurrence') }}</span>\n </li>\n <li>\n <input kendoRecurrenceEndRuleRadioButton='k-endrule-until-{{uniqueId}}' />\n <label class='k-radio-label' for='k-endrule-until-{{uniqueId}}'>{{ textFor('endOn') }}</label>\n\n <kendo-datepicker\n [style.width.px]='150'\n [disabled]='isUntilDisabled'\n [activeView]=\"datePickerOptions.activeView\"\n [bottomView]=\"datePickerOptions.bottomView\"\n [disabledDatesValidation]=\"datePickerOptions.disabledDatesValidation\"\n [focusedDate]=\"datePickerOptions.focusedDate\"\n [format]=\"datePickerOptions.format\"\n [formatPlaceholder]=\"datePickerOptions.formatPlaceHolder\"\n [max]=\"datePickerOptions.max\"\n [min]=\"datePickerOptions.min\"\n [navigation]=\"datePickerOptions.navigation\"\n [placeholder]=\"datePickerOptions.placeholder\"\n [readOnlyInput]=\"datePickerOptions.readOnlyInput\"\n [readonly]=\"datePickerOptions.readonly\"\n [title]=\"datePickerOptions.title\"\n [topView]=\"datePickerOptions.topView\"\n [weekNumber]=\"datePickerOptions.weekNumber\"\n [disabledDates]=\"datePickerOptions.disabledDates\"\n [popupSettings]=\"datePickerOptions.popupSettings\"\n [(value)]='untilValue'\n (blur)=\"onUntilBlur()\"\n (valueChange)='onUntilChange($event)'>\n </kendo-datepicker>\n </li>\n </ul>\n </div>\n "}),r.__metadata("design:paramtypes",[o.RecurrenceService,a.LocalizationService])],e)}();t.RecurrenceEndRuleEditorComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(13),s=n(2),a=n(3),c=function(){function e(e,t){this.recurrence=e,this.localization=t,this.numericOptions={min:1,format:"#",autoCorrect:!0,step:1,spinners:!0},this.intervalValue=this.recurrence.rrule.interval||1}return Object.defineProperty(e.prototype,"userNumericOptions",{set:function(e){this.numericOptions=r.__assign({},this.numericOptions,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentFreq",{get:function(){return this.recurrence.frequency},enumerable:!0,configurable:!0}),e.prototype.onIntervalChange=function(e){a.isPresent(e)&&(this.recurrence.interval=e)},e.prototype.onIntervalBlur=function(){a.isPresent(this.intervalValue)||(this.recurrence.interval=this.intervalValue=1)},e.prototype.textForRepeatEvery=function(){switch(this.currentFreq){case"daily":return this.textFor("dailyRepeatEvery");case"weekly":return this.textFor("weeklyRepeatEvery");case"monthly":return this.textFor("monthlyRepeatEvery");case"yearly":return this.textFor("yearlyRepeatEvery")}},e.prototype.textForFrequency=function(){switch(this.currentFreq){case"daily":return this.textFor("dailyInterval");case"weekly":return this.textFor("weeklyInterval");case"monthly":return this.textFor("monthlyInterval");case"yearly":return this.textFor("yearlyInterval")}},e.prototype.textFor=function(e){return this.localization.get(e)},r.__decorate([i.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],e.prototype,"userNumericOptions",null),e=r.__decorate([i.Component({selector:"kendo-recurrence-interval-editor",template:'\n <div class="k-edit-label">\n <label (click)="intervalNumeric.focus()">{{ textForRepeatEvery() }}</label>\n </div>\n\n <div class="k-edit-field">\n <kendo-numerictextbox\n #intervalNumeric\n [style.width.px]="70"\n [min]="numericOptions.min"\n [max]="numericOptions.max"\n [decimals]="0"\n [format]="numericOptions.format"\n [autoCorrect]="numericOptions.autoCorrect"\n [readonly]="numericOptions.readonly"\n [selectOnFocus]="numericOptions.selectOnFocus"\n [spinners]="numericOptions.spinners"\n [step]="numericOptions.step"\n [title]="numericOptions.title"\n [(value)]="intervalValue"\n (blur)="onIntervalBlur()"\n (valueChange)="onIntervalChange($event)">\n </kendo-numerictextbox>\n\n <span>{{ textForFrequency() }}</span>\n </div>\n '}),r.__metadata("design:paramtypes",[o.RecurrenceService,s.LocalizationService])],e)}();t.RecurrenceIntervalEditorComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(13),s=n(3),a=n(13),c=n(2),u=n(100),l=function(){function e(e,t){this.recurrence=e,this.localization=t,this.uniqueId=this.recurrence.getUniqueId(),this.numericOptions={min:1,max:31,format:"#",autoCorrect:!0,step:1,spinners:!0},this.setInitialValues(),this.subscribeEventHandlers()}return Object.defineProperty(e.prototype,"userNumericOptions",{set:function(e){this.numericOptions=r.__assign({},this.numericOptions,e)},enumerable:!0,configurable:!0}),e.prototype.setInitialValues=function(){this.extendedWeekDays=this.recurrence.extendedWeekDays,this.offsetPositions=this.recurrence.offsetPositions,this.currentOffset=this.defaultOffset,this.currentWeekDay=this.defaultWeekDay,"yearly"===this.currentFreq&&(this.months=this.recurrence.months,this.currentMonthMonthDay=this.currentMonthWeekDay=this.recurrence.rrule.byMonth[0])},e.prototype.subscribeEventHandlers=function(){this.subs=this.recurrence.repeatOnRuleChange.subscribe(this.onRepeatOnRuleChange.bind(this)),this.subs.add(this.recurrence.frequencyChange.subscribe(this.onFrequencyChange.bind(this)))},e.prototype.onRepeatOnRuleChange=function(e){"monthday"===e?(this.recurrence.rrule.byMonthDay=[this.monthDay],"yearly"===this.currentFreq&&(this.recurrence.rrule.byMonth=[this.currentMonthMonthDay])):"weekday"===e&&("string"==typeof this.weekDay?(this.recurrence.rrule.bySetPosition=[this.offset],this.recurrence.rrule.byWeekDay=this.weekDayRuleFromString(this.weekDay)):this.recurrence.rrule.byWeekDay=[{day:this.weekDay,offset:this.offset}],"yearly"===this.currentFreq&&(this.recurrence.rrule.byMonth=[this.currentMonthWeekDay]))},e.prototype.onFrequencyChange=function(){this.setInitialValues()},e.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(e.prototype,"monthDay",{get:function(){var e=this.recurrence.rrule;return s.isPresent(e.byMonthDay)&&e.byMonthDay.length>0?e.byMonthDay[0]:s.isPresent(this.currentMonthDay)?this.currentMonthDay:this.recurrence.start.getDate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekDay",{get:function(){var e=this.recurrence.rrule;if(s.isPresent(e.byWeekDay))switch(e.byWeekDay.length){case 7:return"day";case 5:return"weekday";case 2:return"weekend";case 1:return e.byWeekDay[0].day}else if(s.isPresent(this.currentWeekDay))return this.currentWeekDay;return this.defaultWeekDay},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offset",{get:function(){var e=this.recurrence.rrule;if(s.isPresent(e.byWeekDay))switch(e.byWeekDay.length){case 7:case 5:case 2:return e.bySetPosition[0];case 1:return e.byWeekDay[0].offset}else if(s.isPresent(this.currentOffset))return this.currentOffset;return this.defaultOffset},enumerable:!0,configurable:!0}),e.prototype.onMonthChange=function(e,t){"monthday"===t?this.currentMonthMonthDay=e:this.currentMonthWeekDay=e,this.recurrence.setMonths([e])},e.prototype.onMonthDayChange=function(e){this.currentMonthDay=e,this.recurrence.monthDays=[e]},e.prototype.onOffsetPositionChange=function(e){var t=this.recurrence.rrule;if(s.isPresent(t.byWeekDay))switch(t.byWeekDay.length){case 7:case 5:case 2:this.recurrence.positions=[e];break;case 1:t.byWeekDay[0].offset=e,this.recurrence.onChange()}this.currentOffset=e},e.prototype.onWeekDayChange=function(e){var t;"string"==typeof e?(t=this.weekDayRuleFromString(e),this.recurrence.positions=[this.offset]):t=[{day:e,offset:this.offset}],this.currentWeekDay=e,this.recurrence.setWeekDays(t)},e.prototype.isDisabled=function(e){return this.recurrence.repeatOnRule!==e},Object.defineProperty(e.prototype,"currentFreq",{get:function(){return this.recurrence.frequency},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultOffset",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultWeekDay",{get:function(){return this.recurrence.start.getDay()},enumerable:!0,configurable:!0}),e.prototype.weekDayRuleFromString=function(e){switch(e){case"day":return a.dayRule;case"weekday":return a.weekdayRule;case"weekend":return a.weekendRule}return null},e.prototype.textForRepeatOn=function(){switch(this.currentFreq){case"monthly":return this.textFor("monthlyRepeatOn");case"yearly":return this.textFor("yearlyRepeatOn")}},e.prototype.textFor=function(e){return this.localization.get(e)},e.prototype.onRepeatOnLabelClick=function(){var e=this.repeatOnRadioButtons.toArray().find((function(e){return e.elem.checked}));e&&e.elem.focus()},r.__decorate([i.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],e.prototype,"userNumericOptions",null),r.__decorate([i.ViewChildren(u.RepeatOnRadioButtonDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"repeatOnRadioButtons",void 0),e=r.__decorate([i.Component({selector:"kendo-recurrence-monthly-yearly-editor",template:"\n <div class='k-edit-label'>\n <label (click)=\"onRepeatOnLabelClick()\">{{ textForRepeatOn() }}</label>\n </div>\n <div class='k-edit-field'>\n <ul class='k-reset' [style.width.px]='650'>\n <li>\n <input kendoRecurrenceRepeatOnRadioButton='monthday-{{uniqueId}}' />\n\n <label class='k-radio-label' for='k-repeaton-monthday-{{uniqueId}}'>\n <ng-template [ngIf]=\"currentFreq === 'monthly'\">\n {{ textFor('monthlyDay') }}\n </ng-template>\n </label>\n\n <ng-template [ngIf]=\"currentFreq === 'yearly'\">\n <kendo-dropdownlist\n [data]='months'\n textField='text'\n valueField='value'\n [value]='currentMonthMonthDay'\n [valuePrimitive]='true'\n (valueChange)=\"onMonthChange($event, 'monthday')\"\n [disabled]=\"isDisabled('monthday')\"\n [style.width.px]=\"170\"\n [style.margin]=\"'0 .4ex 0 1ex'\">\n </kendo-dropdownlist>\n </ng-template>\n\n <kendo-numerictextbox\n [style.width.px]='70'\n [min]=\"numericOptions.min\"\n [max]=\"numericOptions.max\"\n [decimals]=\"0\"\n [format]=\"numericOptions.format\"\n [autoCorrect]=\"numericOptions.autoCorrect\"\n [readonly]=\"numericOptions.readonly\"\n [selectOnFocus]=\"numericOptions.selectOnFocus\"\n [spinners]=\"numericOptions.spinners\"\n [step]=\"numericOptions.step\"\n [title]=\"numericOptions.title\"\n [value]='monthDay'\n (valueChange)='onMonthDayChange($event)'\n [disabled]=\"isDisabled('monthday')\"\n [style.margin]=\"'0 .4ex 0 1ex'\">\n </kendo-numerictextbox>\n </li>\n <li>\n <input kendoRecurrenceRepeatOnRadioButton='weekday-{{uniqueId}}' />\n <label class='k-radio-label' for='k-repeaton-weekday-{{uniqueId}}'></label>\n\n <kendo-dropdownlist\n [data]='offsetPositions'\n textField='text'\n valueField='value'\n [value]='offset'\n [valuePrimitive]='true'\n (valueChange)='onOffsetPositionChange($event)'\n [disabled]=\"isDisabled('weekday')\"\n [style.width.px]=\"170\"\n [style.margin]=\"'0 .4ex 0 1ex'\">\n </kendo-dropdownlist>\n\n <kendo-dropdownlist\n [data]=\"extendedWeekDays\"\n textField='text'\n valueField='value'\n [value]='weekDay'\n [valuePrimitive]='true'\n (valueChange)='onWeekDayChange($event)'\n [disabled]=\"isDisabled('weekday')\"\n [style.width.px]=\"170\"\n [style.margin]=\"'0 .4ex 0 1ex'\">\n </kendo-dropdownlist>\n\n <ng-template [ngIf]=\"currentFreq === 'yearly'\">\n <span>{{ textFor('yearlyOf') }}</span>\n\n <kendo-dropdownlist\n [data]='months'\n textField='text'\n valueField='value'\n [value]='currentMonthWeekDay'\n [valuePrimitive]='true'\n (valueChange)=\"onMonthChange($event, 'weekday')\"\n [disabled]=\"isDisabled('weekday')\"\n [style.width.px]=\"170\"\n [style.margin]=\"'0 .4ex 0 1ex'\">\n </kendo-dropdownlist>\n </ng-template>\n </li>\n </ul>\n </div>\n "}),r.__metadata("design:paramtypes",[o.RecurrenceService,c.LocalizationService])],e)}();t.RecurrenceMonthlyYearlyEditorComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(3),s=n(13),a=n(2),c=n(21),u=function(){function e(e,t){this.recurrence=e,this.localization=t,this.selected=[],this.weekDays=this.recurrence.weekDays,this.setSelectedDays()}return e.prototype.setSelectedDays=function(){for(var e=this,t=0;t<7;t++)this.selected[t]=!1;o.isPresent(this.rrule.byWeekDay)&&this.rrule.byWeekDay.forEach((function(t){e.selected[t.day]=!0}))},e.prototype.onSelectedChange=function(e,t){this.selected[t]=e,this.recurrence.setWeekDays(this.serializeToWeekDayRuleArray(this.selected))},e.prototype.isSelected=function(e){return this.selected[e.value]},e.prototype.serializeToWeekDayRuleArray=function(e){var t=[];return e.forEach((function(e,n){e&&t.push({day:n,offset:0})})),t.length>0?t:null},Object.defineProperty(e.prototype,"rrule",{get:function(){return this.recurrence.rrule},enumerable:!0,configurable:!0}),e.prototype.capitalize=function(e){return o.capitalize(e)},e.prototype.textFor=function(e){return this.localization.get(e)},e.prototype.onWeeklyRepeatOnClick=function(){var e=this.weekDayButtons.toArray().find((function(e){return e.selected}));e&&e.focus()},r.__decorate([i.ViewChildren(c.Button),r.__metadata("design:type",i.QueryList)],e.prototype,"weekDayButtons",void 0),e=r.__decorate([i.Component({selector:"kendo-recurrence-weekday-rule-editor",template:'\n <div class=\'k-edit-label\'>\n <label (click)="onWeeklyRepeatOnClick()">{{ textFor(\'weeklyRepeatOn\') }}</label>\n </div>\n <div class=\'k-edit-field\'>\n <kendo-buttongroup [selection]="\'multiple\'">\n <button *ngFor=\'let day of weekDays\' kendoButton\n [style.width.px]="75"\n [toggleable]="true"\n [selected]="isSelected(day)"\n (selectedChange)="onSelectedChange($event, day.value)"\n >{{ capitalize(day.text) }}</button>\n </kendo-buttongroup>\n </div>\n '}),r.__metadata("design:paramtypes",[s.RecurrenceService,a.LocalizationService])],e)}();t.RecurrenceWeekdayRuleEditorComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),s=n(101),a=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=r.__decorate([i.Component({providers:[{provide:s.Messages,useExisting:i.forwardRef((function(){return n}))}],selector:"kendo-recurrence-editor-messages",template:""}),r.__metadata("design:paramtypes",[o.LocalizationService])],t)}(s.Messages);t.RecurrenceEditorCustomMessagesComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),s=n(101),a=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return r.__extends(t,e),n=t,t=n=r.__decorate([i.Directive({providers:[{provide:s.Messages,useExisting:i.forwardRef((function(){return n}))}],selector:"[kendoRecurrenceEditorLocalizedMessages]"}),r.__metadata("design:paramtypes",[o.LocalizationService])],t)}(s.Messages);t.RecurrenceEditorLocalizedMessagesDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(1),s=n(15),a=n(4),c=n(31);t.TIME_ZONE_VALUE_ACCESSOR={multi:!0,provide:s.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return u}))};var u=function(){function e(){this.width=260,this.valueChange=new o.EventEmitter,this.onTouchedCallback=function(e){},this.onChangeCallback=function(e){},this.tzNames=a.timezoneNames(),this.tzSource=this.tzNames.slice()}return e.prototype.onTimeZoneChange=function(e){this.tz=e,this.onChangeCallback(this.tz),this.valueChange.emit(e)},e.prototype.onTimeZoneFilterChange=function(e){this.tzSource=this.tzNames.filter((function(t){return-1!==t.toLowerCase().indexOf(e.toLowerCase())}))},e.prototype.writeValue=function(e){"string"==typeof e&&this.tzNames.indexOf(e)>=0&&(this.tz=e)},e.prototype.focus=function(){this.tzComboBox.focus()},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},r.__decorate([i.ViewChild("tzcombobox",{static:!0}),r.__metadata("design:type",c.ComboBoxComponent)],e.prototype,"tzComboBox",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Number)],e.prototype,"width",void 0),r.__decorate([o.Output(),r.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),e=r.__decorate([o.Component({providers:[t.TIME_ZONE_VALUE_ACCESSOR],selector:"kendo-timezone-editor",template:'\n <kendo-combobox\n #tzcombobox\n [style.width.px]="width"\n [allowCustom]="false"\n [data]="tzSource"\n [filterable]="true"\n [suggest]="true"\n [value]="tz"\n (filterChange)="onTimeZoneFilterChange($event)"\n (valueChange)="onTimeZoneChange($event)">\n </kendo-combobox>\n '}),r.__metadata("design:paramtypes",[])],e)}();t.TimeZoneEditorComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(6),s=n(4),a=n(8),c=n(28),u=n(97),l=n(3),d=n(19),p=n(49),h=n(14),f=n(9),m=n(17),y=n(48),v=function(e){return m.hasClasses(e,"k-scheduler-content")},g=function(){function e(e,t,n,r,i,c,d){var p=this;this.scheduler=e,this.domEvents=t,this.focusService=n,this.zone=r,this.changeDetector=i,this.viewState=c,this.dialogsService=d,this.shortcuts=[{match:function(e){return e.keyCode===o.Keys.KeyC&&u.noModifiers(e)},action:function(e){var t,n=p.scheduler,r=(new Date).getHours(),i=n.selectedDate,o=new Date(i.getFullYear(),i.getMonth(),i.getDate(),r+1),a=new Date(i.getFullYear(),i.getMonth(),i.getDate(),r+2);if(n.group){var c=n.resources||[],u=n.group||{},d=l.groupResources(u,c);d.length>0&&(t=d[0].data[0])}n.create.emit({start:s.ZonedDate.fromLocalDate(o,n.timezone).toLocalDate(),end:s.ZonedDate.fromLocalDate(a,n.timezone).toLocalDate(),isAllDay:!1,resources:[t],originalEvent:e,sender:n})}},{match:function(e){return e.keyCode>=o.Keys.Digit1&&e.keyCode<=o.Keys.Digit9&&u.withModifiers(e,u.Modifiers.AltKey)},action:function(e){var t=p.scheduler,n=e.keyCode-o.Keys.Digit0-1,r=t.views.toArray()[n];r&&p.zone.run((function(){t.onNavigationAction({type:"view-change",view:r})||(p.changeDetector.markForCheck(),p.focusWait())}))}},{match:function(e){return e.keyCode===o.Keys.KeyT&&u.noModifiers(e)},action:function(){p.zone.run((function(){p.scheduler.onNavigationAction({type:"today"}),p.focusWait()}))}},{match:function(e){return(e.keyCode===o.Keys.ArrowLeft||e.keyCode===o.Keys.ArrowRight)&&u.withModifiers(e,u.Modifiers.ShiftKey)},action:function(e){var t=e.keyCode===o.Keys.ArrowLeft?"prev":"next";p.zone.run((function(){p.scheduler.onNavigationAction({type:t}),p.focusWait()}))}},{match:function(e){return(e.keyCode===o.Keys.ArrowUp||e.keyCode===o.Keys.ArrowLeft)&&u.noModifiers(e)&&!v(e.target)},action:function(e){p.scheduler.onNavigationAction({type:"focus-prev"})||(p.focusService.focusNext({offset:-1}),e.preventDefault())}},{match:function(e){return(e.keyCode===o.Keys.ArrowDown||e.keyCode===o.Keys.ArrowRight)&&u.noModifiers(e)&&!v(e.target)},action:function(e){p.scheduler.onNavigationAction({type:"focus-next"})||(p.focusService.focusNext({offset:1}),e.preventDefault())}}],this.taskShortcuts=[{match:function(e){return(e.keyCode===o.Keys.Delete||e.keyCode===o.Keys.Backspace)&&u.noModifiers(e)},action:function(e,t){p.viewState.emitEvent("remove",{event:t,dataItem:t.dataItem}),e.preventDefault()}},{match:function(e){return e.keyCode===o.Keys.Enter&&u.noModifiers(e)},action:function(e,t){p.viewState.emitEvent("eventDblClick",{type:"dblclick",event:t,originalEvent:e}),e.preventDefault()}}],this.subs=new a.Subscription,this.subs.add(this.domEvents.keydown.subscribe((function(e){return p.onKeydown(e)}))),this.subs.add(this.scheduler.eventKeydown.subscribe((function(e){return p.onEventKeydown(e)})))}return e.prototype.onKeydown=function(e){var t=this.shortcuts.find((function(t){return t.match(e)}));t&&!this.dialogsService.isOpen&&t.action(e)},e.prototype.onEventKeydown=function(e){var t=this.taskShortcuts.find((function(t){return t.match(e.originalEvent)}));t&&!this.dialogsService.isOpen&&t.action(e.originalEvent,e.event)},e.prototype.focusWait=function(){var e=this;this.viewState.layoutEnd.pipe(h.take(1)).subscribe((function(){return e.focusService.focus()}))},e=r.__decorate([i.Directive({selector:"kendo-scheduler"}),r.__metadata("design:paramtypes",[d.SchedulerComponent,p.DomEventsService,c.FocusService,i.NgZone,i.ChangeDetectorRef,f.ViewStateService,y.DialogsService])],e)}();t.ShortcutsDirective=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),s=n(5),a=n(19),c=n(14),u=n(6),l=function(){function e(e,t){var n=this;this.scheduler=e,this.cdr=t,this.slotSelectionChange=new i.EventEmitter,this.selectedRange=null,this.slotSelectionChangeSource=new i.EventEmitter,this.subscriptions=new o.Subscription,this.scheduler.selectable=!0,this.subscriptions.add(this.slotSelectionChangeSource.pipe(c.distinctUntilChanged(s.isSameRange)).subscribe((function(e){n.slotSelectionChange.emit(e)})));var r=this.scheduler.slotDragStart,a=this.scheduler.slotDrag,u=this.scheduler.slotDragEnd,l=r.pipe(c.filter((function(e){return!e.isDefaultPrevented()})));this.subscriptions.add(l.subscribe((function(e){return n.initDragSelect(e)}))),this.subscriptions.add(a.subscribe((function(e){return n.onDrag(e)}))),this.subscriptions.add(u.subscribe((function(){return n.onRelease()})))}return e.prototype.ngOnInit=function(){this.scheduler.isSlotSelected=this.isSlotSelected.bind(this)},e.prototype.ngOnChanges=function(e){if(u.isChanged("slotSelection",e,!1)){var t=this.scheduler.resources?[this.scheduler.resources[0].data[0]]:[void 0];this.selectedRange=Object.assign({},{isAllDay:!1,resources:t},e.slotSelection.currentValue),this.cdr.markForCheck()}},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.isSlotSelected=function(e){var t=e.start,n=e.end,r=e.isAllDay,i=e.resources;return!!(t&&n&&this.selectedRange)&&(!!s.resourcesMatch(this.selectedRange.resources,i)&&(this.selectedRange&&r===this.selectedRange.isAllDay&&this.isInRange(t,n)))},e.prototype.initDragSelect=function(e){var t=e.start,n=e.end,r=e.isAllDay,i=e.resources;this.selectionOriginResources=i.slice(),this.selectedRange={start:t,end:n,isAllDay:r,resources:i.slice()},this.cdr.markForCheck()},e.prototype.onDrag=function(e){var t=e.start,n=e.end,r=e.resources;s.resourcesMatch(this.selectionOriginResources,r)&&(this.selectedRange.start=t,this.selectedRange.end=n,this.cdr.markForCheck())},e.prototype.onRelease=function(){this.selectionOriginResources=null,this.selectedRange&&this.slotSelectionChangeSource.emit(this.selectedRange)},e.prototype.isInRange=function(e,t){if(this.selectedRange)return s.intersects(e,t,this.selectedRange.start,this.selectedRange.end)},r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"slotSelection",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"slotSelectionChange",void 0),e=r.__decorate([i.Directive({selector:"[kendoSchedulerSlotSelectable]"}),r.__metadata("design:paramtypes",[a.SchedulerComponent,i.ChangeDetectorRef])],e)}();t.SlotSelectableDirective=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(7),o=n(4),s=n(8),a=n(73),c=n(72),u=n(77),l=n(3),d=["yyyyMMddTHHmmssSSSXXX","yyyyMMddTHHmmssXXX","yyyyMMddTHHmmss","yyyyMMddTHHmm","yyyyMMddTHH","yyyyMMdd"],p=function(){function e(e){this.data=[],this.source=new s.BehaviorSubject([]),this.createdItems=[],this.updatedItems=[],this.deletedItems=[],this.events=this.source.asObservable(),this.fields=r.__assign({},u.defaultModelFields,e),this.getId=c.getter(this.fields.id),this.getRecurrenceId=c.getter(this.fields.recurrenceId),this.getRecurrenceRule=c.getter(this.fields.recurrenceRule),this.getRecurrenceExceptions=c.getter(this.fields.recurrenceExceptions),this.getStart=c.getter(this.fields.start),this.setId=a.setter(this.fields.id),this.setRecurrenceRule=a.setter(this.fields.recurrenceRule),this.setRecurrenceExceptions=a.setter(this.fields.recurrenceExceptions),this.setRecurrenceId=a.setter(this.fields.recurrenceId)}return e.prototype.create=function(e){this.logCreate(e),this.saveChanges()},e.prototype.createException=function(e,t){var n=this.buildException(t);this.logRemoveOccurrence(e),this.logCreate(n),this.saveChanges()},e.prototype.update=function(e,t){this.assignValues(e,t),this.logUpdate(e),this.saveChanges()},e.prototype.remove=function(e){this.logRemove(e),this.saveChanges()},e.prototype.removeSeries=function(e){var t=this.getId(e),n=this.getRecurrenceId(e),r=this.isRecurrenceHead(e);this.removeItemAndExceptions(r?t:n),this.saveChanges()},e.prototype.removeOccurrence=function(e){this.logRemoveOccurrence(e),this.saveChanges()},e.prototype.findRecurrenceMaster=function(e){var t=this.getId(e),n=this.getRecurrenceId(e),r=this.isRecurrenceHead(e)?t:n,i=this.itemIndex(r,this.data);return this.data[i]},e.prototype.isRecurring=function(e){return l.isRecurring(e,this.fields)},e.prototype.isException=function(e){return l.isException(e,this.fields)},e.prototype.isNew=function(e){var t=this.getId(e);return!l.isPresent(t)},e.prototype.nextId=function(){},e.prototype.assignValues=function(e,t){l.cloneTo(t,e)},e.prototype.cloneEvent=function(e){var t={};return this.assignValues(t,e),t},e.prototype.parseExceptions=function(e){return l.isPresent(e)&&""!==e?e.split(";").map((function(e){return i.parseDate(e,d)||void 0})):[]},e.prototype.serializeExceptions=function(e){return e&&0!==e.length?e.map((function(e){return i.formatDate(o.toLocalDate(e),"yyyyMMddTHHmmss")+"Z"})).join(";"):""},e.prototype.reset=function(){this.data=[],this.deletedItems=[],this.updatedItems=[],this.createdItems=[]},e.prototype.itemIndex=function(e,t){for(var n=0;n<t.length;n++)if(this.getId(t[n])===e)return n;return-1},e.prototype.buildException=function(e){var t=this.fields,n=this.findRecurrenceMaster(e),r=this.cloneEvent(e);return l.assignField(r,n,t.id),this.setId(r,this.nextId()),this.setRecurrenceRule(r,void 0),this.setRecurrenceId(r,this.getId(n)),r},e.prototype.isRecurrenceHead=function(e){var t=this.getId(e),n=this.getRecurrenceRule(e);return!(!t||!n)},e.prototype.logCreate=function(e){this.data=this.data.concat([e]),this.source.next(this.data),this.createdItems.push(e)},e.prototype.logUpdate=function(e){var t=this.getId(e);if(this.isNew(e)){n=this.createdItems.indexOf(e);this.createdItems.splice(n,1,e)}else{var n;-1!==(n=this.itemIndex(t,this.updatedItems))?this.updatedItems.splice(n,1,e):this.updatedItems.push(e)}},e.prototype.logRemove=function(e){var t=this.getId(e),n=this.itemIndex(t,this.data);this.data=this.data.filter((function(e,t){return t!==n})),this.source.next(this.data),(n=this.itemIndex(t,this.createdItems))>=0?this.createdItems.splice(n,1):this.deletedItems.push(e),(n=this.itemIndex(t,this.updatedItems))>=0&&this.updatedItems.splice(n,1)},e.prototype.logRemoveOccurrence=function(e){var t=this.findRecurrenceMaster(e),n=this.getStart(e),r=this.getRecurrenceExceptions(t)||[];this.setRecurrenceExceptions(t,r.concat([n])),this.logUpdate(t)},e.prototype.removeItemAndExceptions=function(e){var t=this;this.deletedItems=this.deletedItems.concat(this.data.filter((function(n){return t.getRecurrenceId(n)===e||t.getId(n)===e})))},e.prototype.hasChanges=function(){return this.deletedItems.length+this.updatedItems.length+this.createdItems.length>0},e.prototype.saveChanges=function(){this.hasChanges()&&(this.save(this.createdItems,this.updatedItems,this.deletedItems),this.reset())},e}();t.BaseEditService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(102),s=n(103),a=[o.PDFComponent,s.PDFCommandDirective],c=function(){function e(){}return e=r.__decorate([i.NgModule({declarations:[a],exports:[a]})],e)}();t.PDFModule=c},function(e,t){e.exports=_},function(e,t){e.exports=b}])}));
|
|
5
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-date-math"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-intl"),require("rxjs"),require("rxjs/operators"),require("@angular/forms"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-angular-dateinputs"),require("@angular/common"),require("@progress/kendo-angular-dropdowns"),require("@progress/kendo-data-query"),require("@progress/kendo-angular-dialog"),require("@progress/kendo-recurrence"),require("@progress/kendo-angular-popup"),require("@progress/kendo-licensing"),require("@telerik/kendo-draggable"),require("@progress/kendo-angular-inputs"),require("@progress/kendo-drawing"),require("@progress/kendo-file-saver")):"function"==typeof define&&define.amd?define([,,,,,,,,,,,,,,,,,,,,,],t):"object"==typeof exports?exports.KendoAngularScheduler=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-date-math"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-intl"),require("rxjs"),require("rxjs/operators"),require("@angular/forms"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-angular-dateinputs"),require("@angular/common"),require("@progress/kendo-angular-dropdowns"),require("@progress/kendo-data-query"),require("@progress/kendo-angular-dialog"),require("@progress/kendo-recurrence"),require("@progress/kendo-angular-popup"),require("@progress/kendo-licensing"),require("@telerik/kendo-draggable"),require("@progress/kendo-angular-inputs"),require("@progress/kendo-drawing"),require("@progress/kendo-file-saver")):e.KendoAngularScheduler=t(e.self,e.ng.core,e.KendoAngularL10N,e.KendoDateMath,e.KendoAngularCommon,e.KendoAngularIntl,e.rxjs,e.rxjs.operators,e.ng.forms,e.KendoAngularButtons,e.KendoAngularDateinputs,e.ng.common,e.KendoAngularDropdowns,e.KendoDataQuery,e.KendoAngularDialog,e.KendoRecurrence,e.KendoAngularPopup,e.KendoLicensing,e.KendoDraggable,e.KendoAngularInputs,e.KendoDrawing,e.KendoFileSaver)}(window,(function(e,t,n,r,i,o,a,s,c,l,d,u,p,h,m,g,f,v,y,_,b,S){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=104)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8),i=n(13),o=n(72),a=n(73),s=n(74);function c(e,n,r){t.setField(e,r,t.getField(n,r))}function l(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];Array.isArray(r)?t[n]=r.slice(0):!r||"object"!=typeof r||r instanceof Date?t[n]=r:(t[n]=t[n]||{},l(r,t[n]))}}function d(e){return r.fromEvent(e,"click")}t.capitalize=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.isPresent=function(e){return null!=e},t.isBlank=function(e){return null==e},t.isArray=function(e){return Array.isArray(e)},t.isTruthy=function(e){return!!e},t.isNullOrEmptyString=function(e){return t.isBlank(e)||e.trim&&0===e.trim().length},t.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},t.isString=function(e){return"string"==typeof e},t.isObject=function(e){return"object"==typeof e},t.isRecurring=function(e,t){var n=o.getter(t.recurrenceId)(e);return!(!o.getter(t.recurrenceRule)(e)&&!n)},t.isException=function(e,n){var r=o.getter(n.id)(e),i=o.getter(n.recurrenceId)(e);return t.isPresent(r)&&r!==s.OCCURRENCE_ID&&t.isPresent(i)},t.copyResources=function(e,t){if(t)for(var n=0;n<t.length;n++)c(e,e.dataItem,t[n].field)},t.readEvent=function(e,n,r){var i={id:o.getter(n.id)(e),start:o.getter(n.start)(e),startTimezone:o.getter(n.startTimezone)(e),end:o.getter(n.end)(e),endTimezone:o.getter(n.endTimezone)(e),isAllDay:o.getter(n.isAllDay)(e),title:o.getter(n.title)(e),description:o.getter(n.description)(e),recurrenceRule:o.getter(n.recurrenceRule)(e),recurrenceExceptions:o.getter(n.recurrenceExceptions)(e),recurrenceId:o.getter(n.recurrenceId)(e),dataItem:e};return t.copyResources(i,r),i},t.isRecurrenceMaster=function(e){return e.recurrenceRule&&!t.isPresent(e.recurrenceId)},t.groupResources=function(e,t){var n=[];if(e&&e.resources&&e.resources.length)for(var r=e.resources,i=function(e){var i=t.find((function(t){return t.name===r[e]}));n.push(i)},o=0;o<r.length;o++)i(o);return n},t.getField=function(e,t){return o.getter(t)(e)},t.setField=function(e,t,n){return a.setter(t)(e,n)},t.assignField=c,t.assignFields=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];for(var i=0;i<n.length;i++)c(e,t,n[i])},t.assignValues=function(e,t){return l(t,e),e},t.cloneTo=l,t.clone=function(e){var t={};return l(e,t),t},t.iterator=function(){if("function"==typeof Symbol&&Symbol.iterator)return Symbol.iterator;for(var e=Object.getOwnPropertyNames(Map.prototype),t=Map.prototype,n=0;n<e.length;++n){var r=e[n];if("entries"!==r&&"size"!==r&&t[r]===t.entries)return r}}(),t.fromClick=d,t.fromDoubleClick=function(e){var t=d(e),n=t.pipe(i.auditTime(250));return t.pipe(i.buffer(n),i.filter((function(e){return 2===e.length})),i.filter((function(e){return e[1].target===e[0].target})),i.map((function(e){return e[1]})))},t.sortTasksByTime=function(e){return e.sort((function(e,t){return e.startTime-t.startTime||t.endTime-e.endTime})),e}},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),i=n(7),o=n(3),a=n(17);function s(e,t){for(var n=t.data,r=0;r<n.length;r++)if(o.getField(n[r],t.valueField)===e)return r;return-1}function c(e,t){var n=s(e,t);return n>=0?t.data[n]:{}}function l(e){for(var t=[],n=0;n<e.length;n++){var r=Object.assign({},e[n]);r.resources=r.resources.slice(0),t.push(r)}return t}function d(e,t){var n=o.getField(e,t.field);return Array.isArray(n)?function(e,t){return e.map((function(e){return c(e,t)}))}(n,t):c(n,t)}function u(e,t){for(var n=t.taskResources,r=t.hasGroups,i=t.spans,a=t.allResources,c=void 0===a?[]:a,u=[],p=0;p<n.length;p++){var h=n[p];if(h.data){var m=c.indexOf(h),g=o.getField(e,h.field);Array.isArray(g)||(g=[g]);for(var f=[],v=0;v<g.length;v++){var y=s(g[v],h);if(y<0)return[{leafIdx:r?-1:0,resources:[]}];var _=h.data[y];if(0!==p||!r&&0!==v){if(r){var b=u;g.length>1&&(b=l(u),f.push.apply(f,b));for(var S=0;S<b.length;S++)b[S].leafIdx+=y*i[p],b[S].resources[m]=_}else if(v>0)for(var D=0;D<u.length;D++)u[D].resources[m].push(_)}else{var k=[];k[m]=h.multiple&&!r?[_]:_,u.push({leafIdx:r?y*i[p]:0,color:o.getField(_,h.colorField),resources:k})}}f.length&&(u=f)}else u=[{leafIdx:0,resources:[]}]}return function(e,t,n){for(var r=0;r<t.length;r++)for(var i=t[r],o=0;o<n.length;o++){var a=n[o];!i.resources[o]&&a.data&&(i.resources[o]=d(e,a))}}(e,u,c),u}function p(e){return Array.isArray(e)&&1===e.length&&void 0===e[0]}function h(e,t){return e.length===t.length&&(!(!p(e)||!p(t))||e.every((function(e){return t.some((function(t){return t.value===e.value}))})))}t.intersects=function(e,t,n,r){return e<n&&t>r||n<=e&&e<r||n<t&&t<=r&&e<t},t.dateInRange=function(e,t,n){return t.getTime()<=e.getTime()&&e.getTime()<=n.getTime()},t.roundAllDayEnd=function(e){var t=e.start,n=e.end,r=t.stripTime(),i=n.stripTime();return i.getTime()!==n.getTime()||r.getTime()===i.getTime()?i.addDays(1):i},t.toInvariantTime=function(e){var t=new Date(1980,0,1,0,0,0);return e&&t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t},t.addUTCDays=function(e,t){var n=new Date(e.getTime());return n.setUTCDate(n.getUTCDate()+t),n},t.timeOnDate=function(e,t,n,r,i){return void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=0),new Date(e.getFullYear(),e.getMonth(),e.getDate(),t,n,r,i)},t.toUTCTime=function(e,t){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},t.toUTCDate=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))},t.getUTCDate=function(e){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))},t.toUTCDateTime=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},t.dateWithTime=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes())},t.normaliseRangeStartAndEnd=function(e,t){var n,r;return t.end<=e.end?(r=e.end,n=t.start):(n=e.start,r=t.end),{start:n,end:r}},t.resourceItemByValue=d,t.eventResources=u,t.assignTasksResources=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];r.resources=u(r.event,t)}},t.isEmptyResource=p,t.resourcesMatch=h,t.isSameRange=function(e,t){return e.start.getTime()===t.start.getTime()&&e.end.getTime()===t.end.getTime()&&e.isAllDay===t.isAllDay&&h(e.resources,t.resources)},t.findRowIndex=function(e,t){if(void 0!==t.rowIndex)return t.rowIndex;for(var n=0;n<e.length;n++)if(!e[n])return n;return e.length},t.isRecurrence=function(e){return Boolean(e.event&&e.event.recurrenceRule)},t.isRecurrenceException=function(e){return e.event&&o.isPresent(e.event.recurrenceId)&&!e.event.recurrenceRule},t.rectContains=function(e,t,n){return e.left<=t&&t<=e.left+e.width&&e.top<=n&&n<=e.top+e.height},t.rectContainsX=function(e,t){return e.left<=t&&t<=e.left+e.width},t.toPx=function(e){return e+"px"},t.elementOffset=function(e){if(!e)return null;var t=e.getBoundingClientRect(),n=document.documentElement;return{top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||0),left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||0),width:t.width,height:t.height}},t.pointDistance=function(e,t,n,r){return Math.sqrt(Math.pow(e-n,2)+Math.pow(t-r,2))},t.ignoreContentChild=function(e){return"KENDO-RESIZE-SENSOR"===e.nodeName||a.hasClasses(e,"k-loading-mask")},t.setCoordinates=function(e,n){for(var r in n)n.hasOwnProperty(r)&&(e.style[r]=t.toPx(n[r]))},t.convertNgClassBindings=function(e){var t=[];if(o.isString(e))t.push(e);else if(o.isArray(e))t.push.apply(t,e);else if(o.isObject(e))for(var n in e)e.hasOwnProperty(n)&&e[n]&&t.push(n);return t},t.formatEventTime=function(e,t,n,o){var a={skeleton:"yMMMMEEEEdhm"},s=r.isEqualDate(e,t)?"t":a;return n?""+i.formatDate(e,{skeleton:"yMMMMEEEEd"},o):i.formatDate(e,a,o)+"–"+i.formatDate(t,s,o)},t.formValueOrDefault=function(e,t,n){var r=e.get(t);return r&&r.value||n},t.isWorkWeekDay=function(e,t,n){return n<t?e<=n||t<=e:t<=e&&e<=n},t.alwaysFalse=function(){return!1}},function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),a=function(){function e(){this.dateRangeSource=new o.BehaviorSubject({start:new Date(0),end:new Date(0),text:"",shortText:""}),this.nextDateSource=new o.Subject,this.navigateSource=new o.Subject,this.viewEventSource=new o.Subject,this.layoutEndSource=new o.Subject,this.optionsChangeSource=new o.Subject,this.slotSelectionStartSource=new o.Subject,this.slotSelectionStartDragSource=new o.Subject,this.slotSelectionStartEndSource=new o.Subject,this.dateRange=this.dateRangeSource.asObservable(),this.nextDate=this.nextDateSource.asObservable(),this.navigate=this.navigateSource.asObservable(),this.viewEvent=this.viewEventSource.asObservable(),this.layoutEnd=this.layoutEndSource.asObservable(),this.optionsChange=this.optionsChangeSource.asObservable(),this.slotSelectionStart=this.slotSelectionStartSource.asObservable(),this.slotSelectionDrag=this.slotSelectionStartDragSource.asObservable(),this.slotSelectionEnd=this.slotSelectionStartEndSource.asObservable()}return e.prototype.notifyNextDate=function(e){this.nextDateSource.next(e)},e.prototype.notifyDateRange=function(e){this.dateRangeSource.next(e)},e.prototype.notifyLayoutEnd=function(){this.layoutEndSource.next()},e.prototype.navigateTo=function(e){this.navigateSource.next(e)},e.prototype.notifyOptionsChange=function(){this.optionsChangeSource.next(null)},e.prototype.emitEvent=function(e,t){this.viewEventSource.next({name:e,args:t})},e.prototype.notifySlotSelectionStart=function(e){this.slotSelectionStartSource.next(e)},e.prototype.notifySlotSelectionDrag=function(e){this.slotSelectionStartDragSource.next(e)},e.prototype.notifySlotSelectionEnd=function(e){this.slotSelectionStartEndSource.next(e)},e=r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[])],e)}();t.ViewStateService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),a=function(){function e(){this.actionSource=new o.Subject,this.itemsSource=new o.BehaviorSubject([]),this.selectedDateSource=new o.BehaviorSubject(null),this.resizeSource=new o.Subject,this.optionsChangeSource=new o.BehaviorSubject({}),this.executeSource=new o.Subject,this.action=this.actionSource.asObservable(),this.items=this.itemsSource.asObservable(),this.selectedDate=this.selectedDateSource.asObservable(),this.resize=this.resizeSource.asObservable(),this.optionsChange=this.optionsChangeSource.asObservable(),this.execute=this.executeSource.asObservable()}return e.prototype.notifyAction=function(e){this.actionSource.next(e)},e.prototype.notifyItems=function(e){this.itemsSource.next(e)},e.prototype.notifySelectedDate=function(e){this.selectedDateSource.next(e)},e.prototype.notifyResize=function(){this.resizeSource.next()},e.prototype.notifyOptionsChange=function(e){this.optionsChangeSource.next(e)},e.prototype.executeMethod=function(e,t){var n;return this.executeSource.next({name:e,args:t,result:function(e){n=e}}),n},e=r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[])],e)}();t.ViewContextService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(0).__exportStar(n(115),t);var r=n(116);t.EditMode=r.EditMode;var i=n(117);t.CrudOperation=i.CrudOperation;var o=n(70);t.IsSlotSelectedArgs=o.IsSlotSelectedArgs},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=r},function(e,t){e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(80),a=n(2),s=n(7),c=n(3),l=n(3),d=n(4),u=0,p=["first","second","third","fourth","last"],h=["never","daily","weekly","monthly","yearly"];t.dayRule=[{day:0,offset:0},{day:1,offset:0},{day:2,offset:0},{day:3,offset:0},{day:4,offset:0},{day:5,offset:0},{day:6,offset:0}],t.weekdayRule=[{day:1,offset:0},{day:2,offset:0},{day:3,offset:0},{day:4,offset:0},{day:5,offset:0}],t.weekendRule=[{day:0,offset:0},{day:6,offset:0}];var m=function(){function e(e,t){this.intl=e,this.localization=t,this.change=new i.EventEmitter,this.endRuleChange=new i.EventEmitter,this.frequencyChange=new i.EventEmitter,this.repeatOnRuleChange=new i.EventEmitter}return e.prototype.init=function(e,t,n,r){void 0===e&&(e=""),this.start=t,this.timezone=n,this.weekStart=r,this.rrule=o.parseRule({recurrenceRule:e,weekStart:r})},e.prototype.getUniqueId=function(){return u++},Object.defineProperty(e.prototype,"frequencies",{get:function(){var e=this;return h.map((function(t){return{value:t,text:e.localization.get("frequencies"+c.capitalize(t))}}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"frequency",{get:function(){return l.isPresent(this.rrule)&&!c.isNullOrEmptyString(this.rrule.freq)?this.rrule.freq:"never"},enumerable:!0,configurable:!0}),e.prototype.setFrequency=function(e){this.rrule={},this.rrule.freq=e,this.rrule.interval=1,"weekly"===e&&(this.rrule.byWeekDay=[{day:this.start.getDay(),offset:0}]),"monthly"!==e&&"yearly"!==e||(this.rrule.byMonthDay=[this.start.getDate()]),"yearly"===e&&(this.rrule.byMonth=[this.start.getMonth()+1]),this.frequencyChange.emit(),this.onChange()},Object.defineProperty(e.prototype,"interval",{set:function(e){this.rrule.interval=e,this.onChange()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{set:function(e){this.rrule.count=e,this.onChange()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"until",{get:function(){if(l.isPresent(this.rrule.until))return d.toLocalDate(this.rrule.until)},set:function(e){this.rrule.until=d.ZonedDate.fromLocalDate(e,this.timezone),this.onChange()},enumerable:!0,configurable:!0}),e.prototype.setWeekDays=function(e){this.rrule.byWeekDay=e,this.onChange()},Object.defineProperty(e.prototype,"monthDays",{set:function(e){this.rrule.byMonthDay=e,this.onChange()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"positions",{set:function(e){this.rrule.bySetPosition=e,this.onChange()},enumerable:!0,configurable:!0}),e.prototype.setMonths=function(e){this.rrule.byMonth=e,this.onChange()},Object.defineProperty(e.prototype,"months",{get:function(){return this.intl.dateFormatNames({type:"months",nameType:"wide"}).map((function(e,t){return{text:e,value:t+1}}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekDays",{get:function(){var e=this.weekStart,t=this.intl.dateFormatNames({type:"days",nameType:"abbreviated"}).map((function(e,t){return{text:e,value:t}}));return t.slice(e).concat(t.slice(0,e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extendedWeekDays",{get:function(){var e=this.weekStart,t=this.intl.dateFormatNames({type:"days",nameType:"wide"}).map((function(e,t){return{text:e,value:t}})),n=t.slice(e).concat(t.slice(0,e));return[{text:this.localization.get("weekdaysDay"),value:"day"},{text:this.localization.get("weekdaysWeekday"),value:"weekday"},{text:this.localization.get("weekdaysWeekendday"),value:"weekend"}].concat(n)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetPositions",{get:function(){var e=this,t=[1,2,3,4,-1];return p.map((function(n,r){return{text:e.localization.get("offsetPositions"+c.capitalize(n)),value:t[r]}}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endRule",{get:function(){return l.isPresent(this.rrule.count)?"count":l.isPresent(this.rrule.until)?"until":"never"},set:function(e){"count"===e?this.rrule.until=null:"until"===e?this.rrule.count=null:(this.rrule.count=null,this.rrule.until=null),this.endRuleChange.emit(e),this.onChange()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"repeatOnRule",{get:function(){return l.isPresent(this.rrule.byWeekDay)?"weekday":l.isPresent(this.rrule.byMonthDay)?"monthday":null},set:function(e){"monthday"===e?(this.rrule.byWeekDay=null,this.rrule.bySetPosition=null):this.rrule.byMonthDay=null,this.repeatOnRuleChange.emit(e),this.onChange()},enumerable:!0,configurable:!0}),e.prototype.onChange=function(){"never"===this.frequency?this.change.emit(null):this.change.emit(o.serializeRule(this.rrule,this.timezone))},e=r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[s.IntlService,a.LocalizationService])],e)}();t.RecurrenceService=m},function(e,t){e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(6),a=function(){function e(){this.createElement=new i.EventEmitter,this.exportClick=new i.EventEmitter,this.done=new i.EventEmitter,this.elementReady=new i.EventEmitter}return e.prototype.save=function(){if(o.hasObservers(this.elementReady)){if(o.hasObservers(this.createElement))this.createElement.emit();else if(i.isDevMode())throw new Error("No active Scheduler view to export.")}else if(i.isDevMode())throw new Error("Creating PDF requires including the PDFModule and adding the <kendo-scheduler-pdf> component.")},e=r.__decorate([i.Injectable()],e)}();t.PDFService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),i=function(e){return String(e).trim().split(" ")};t.hasClasses=function(e,t){var n=i(t);return Boolean(i(e.className).find((function(e){return n.indexOf(e)>=0})))},t.matchesClasses=function(e){return function(n){return t.hasClasses(n,e)}},t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},t.firstElementChild=function(e){for(var t=e.children,n=t.length,r=0;r<n;r++)if(1===t[r].nodeType)return t[r]},t.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},t.wheelDeltaY=function(e){var t=e.wheelDeltaY;return e.wheelDelta&&(void 0===t||t)?e.wheelDelta:e.detail&&e.axis===e.VERTICAL_AXIS?10*-e.detail:0},t.preventLockedScroll=function(e){return function(n){var r=t.wheelDeltaY(n),i=e.scrollTop;0===i&&0<r||e.scrollHeight<=e.offsetHeight+i&&r<0||n.preventDefault()}};var o=0;t.scrollbarWidth=function(){if(!o&&r.isDocumentAvailable()){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML=" ",document.body.appendChild(e),o=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return o},t.hasScrollbar=function(e,t){var n="vertical"===t?"Height":"Width";return e["scroll"+n]>e["client"+n]},t.rtlScrollPosition=function(e,t){var n=e.scrollLeft,r=t;return e.scrollLeft=-1,e.scrollLeft<0?r=-t:n>0&&(r=e.scrollWidth-e.offsetWidth-t),r},t.isVisible=function(e){var t=e.getBoundingClientRect(),n=t.width>0&&t.height>0,r=0!==t.x&&0!==t.y;return(n||r)&&"hidden"!==window.getComputedStyle(e).visibility}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIDNIGHT_INVARIANT=new Date(1980,0,1),t.INVARIANT_END=new Date(1980,0,2),t.MS_PER_SECOND=1e3,t.MS_PER_MINUTE=60*t.MS_PER_SECOND,t.MS_PER_HOUR=60*t.MS_PER_MINUTE;var r=n(4);t.MS_PER_DAY=r.MS_PER_DAY,t.BORDER_WIDTH=1,t.DEFAULT_EVENT_HEIGHT=25},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),a=n(6),s=n(6),c=n(4),l=n(105),d=n(106),u=n(27),p=n(34),h=n(24),m=n(11),g=n(35),f=n(36),v=n(37),y=n(38),_=n(39),b=n(40),S=n(41),D=n(42),k=n(43),T=n(44),E=n(45),w=n(10),C=n(9),I=n(71),x=n(46),R=n(15),O=n(47),M=n(48),P=n(76),F=n(77),H=n(3),j=n(7),z=n(16),A=n(78),W=n(79),V=n(20),B=n(49),N=n(17),L=n(5),q=n(33),U=n(69),G=function(){function e(e,t,n,r,o,a,s,c,u,p,h,m,g){this.wrapper=e,this.viewContext=t,this.viewState=n,this.editService=r,this.dialogsService=o,this.intlService=a,this.changeDetector=s,this.zone=c,this.pdfService=u,this.localization=p,this.domEvents=h,this.renderer=m,this.focusService=g,this.hostClasses=!0,this.rtl=!1,this.editable=!1,this.selectable=!1,this.eventHeight=25,this.columnWidth=100,this.startTime="00:00",this.endTime="00:00",this.workDayStart="08:00",this.workDayEnd="17:00",this.slotDuration=60,this.slotDivisions=2,this.slotFill=.9,this.scrollTime=this.workDayStart,this.currentTimeMarker=!0,this.isSlotSelected=L.alwaysFalse,this.selectedViewIndexChange=new i.EventEmitter,this.navigate=new i.EventEmitter,this.dateChange=new i.EventEmitter,this.slotClick=new i.EventEmitter,this.slotDblClick=new i.EventEmitter,this.create=new i.EventEmitter,this.eventClick=new i.EventEmitter,this.eventDblClick=new i.EventEmitter,this.eventKeydown=new i.EventEmitter,this.cancel=new i.EventEmitter,this.save=new i.EventEmitter,this.remove=new i.EventEmitter,this.resizeStart=new i.EventEmitter,this.resize=new i.EventEmitter,this.resizeEnd=new i.EventEmitter,this.dragStart=new i.EventEmitter,this.drag=new i.EventEmitter,this.dragEnd=new i.EventEmitter,this.slotDragStart=new i.EventEmitter,this.slotDrag=new i.EventEmitter,this.slotDragEnd=new i.EventEmitter,this.pdfExport=new i.EventEmitter,this.dragEndConfirmed=new i.EventEmitter,this.resizeEndConfirmed=new i.EventEmitter,this.removeConfirmed=new i.EventEmitter,this.viewIndex=0,this._timezone="",this._modelFields=F.defaultModelFields,l.validatePackage(d.packageMetadata),this.dateRangeStream=n.dateRange,this.selectedDateStream=t.selectedDate}return Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedViewIndex",{get:function(){return this.viewIndex},set:function(e){this.viewIndex=e,this.onViewIndexChange()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekStart",{get:function(){return H.isPresent(this._weekStart)?this._weekStart:this.intlService.firstDay()},set:function(e){this._weekStart=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timezone",{get:function(){return this._timezone},set:function(e){this._timezone=e,this.events=this.events||[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){return this._events},set:function(e){this._events=e,this.processEvents(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedDate",{get:function(){return this._selectedDate},set:function(e){e&&(this._selectedDate=e,this.viewContext.notifySelectedDate(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"modelFields",{get:function(){return this._modelFields},set:function(e){this._modelFields=r.__assign({},F.defaultModelFields,e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.selectedDate||(this.selectedDate=c.getDate(new Date))},e.prototype.ngAfterContentInit=function(){var e=this;if(i.isDevMode()&&0===this.views.length)throw new Error("No views declared for <kendo-scheduler>. Please, declare at least one view.");this.subs=this.views.changes.subscribe((function(){return e.resetViewIndex()})),this.subs.add(this.intlService.changes.subscribe(this.intlChange.bind(this))),this.subs.add(this.viewState.nextDate.subscribe((function(t){e.selectedDate=t}))),this.subs.add(this.viewState.dateRange.subscribe((function(t){if(!(0===t.start.getTime())){var n=new u.DateChangeEvent(e,e.selectedDate,t);e.dateChange.emit(n)}}))),this.subs.add(this.viewState.navigate.subscribe((function(t){var n=t.viewName,r=t.date,i=e.views.toArray(),o=i.find((function(e){return e.name===n})),a=new u.NavigateEvent(e,{type:"show-date",view:o||{name:n,title:n},date:r});if(e.navigate.next(a),o&&!a.isDefaultPrevented()){var s=i.indexOf(o);e.selectedView=o,e.setViewIndex(s),e.selectedDate=r}}))),this.subs.add(this.viewState.viewEvent.subscribe((function(t){var n=t.name,r=t.args,i=e[n],o=e[n+"Confirmed"];(s.hasObservers(i)||o&&s.hasObservers(o))&&e.zone.run((function(){var t=new u.VIEW_EVENT_MAP[n](e,r);i.emit(t),r.prevented=t.prevented,o&&!r.prevented&&o.emit(t)}))}))),this.subs.add(this.viewState.layoutEnd.subscribe((function(){e.resizeSensor&&e.resizeSensor.acceptSize()}))),this.subs.add(this.viewState.slotSelectionStart.subscribe((function(t){s.hasObservers(e.slotDragStart)&&e.zone.run((function(){e.slotDragStart.emit(Object.assign(t,{sender:e}))}))}))),this.subs.add(this.viewState.slotSelectionDrag.subscribe((function(t){s.hasObservers(e.slotDrag)&&e.zone.run((function(){e.slotDrag.emit(new q.SlotDragEvent(e,t))}))}))),this.subs.add(this.viewState.slotSelectionEnd.subscribe((function(t){s.hasObservers(e.slotDragEnd)&&e.zone.run((function(){e.slotDragEnd.emit(new U.SlotDragEndEvent(e,t))}))}))),this.onViewIndexChange(),this.notifyOptionsChange=this.notifyOptionsChange.bind(this),this.subs.add(this.allDayEventTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.eventTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.timeSlotTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.timeSlotTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.minorTimeHeaderTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.majorTimeHeaderTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.monthDaySlotTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.dateHeaderTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.allDaySlotTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.groupHeaderTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.agendaDateTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.agendaTimeTemplate.changes.subscribe(this.notifyOptionsChange)),this.subs.add(this.views.changes.subscribe((function(){e.changeDetector.markForCheck()}))),this.attachEditHandlers(),this.dialogsService.container=this.confirmationDialogContainerRef,this.notifyOptionsChange(),this.subs.add(this.pdfService.exportClick.subscribe((function(){var t=new A.PDFExportEvent;e.pdfExport.emit(t),t.isDefaultPrevented()||e.saveAsPDF()}))),this.subs.add(this.pdfService.done.subscribe((function(){e.loadingComponent.toggle(!1)}))),this.subs.add(this.localization.changes.subscribe((function(t){var n=t.rtl;e.rtl=n,e.direction=e.rtl?"rtl":"ltr"}))),this.subs.add(this.viewState.optionsChange.subscribe((function(){e.changeDetector.markForCheck()}))),this.attachElementEventHandlers()},e.prototype.ngOnChanges=function(e){var t=this;s.isChanged("resources",e)&&!s.isChanged("events",e)&&this.viewItems&&this.viewItems.forEach((function(e){H.copyResources(e.event,t.resources)})),s.anyChanged(["group","resources","min","max","showWorkHours","startTime","scrollTime","endTime","eventHeight","workDayStart","workDayEnd","workWeekStart","workWeekEnd","weekStart","slotDuration","slotDivisions","editable","timezone","slotClass","slotFill","columnWidth","eventClass","eventStyles","isSlotSelected","selectable"],e)&&this.notifyOptionsChange(e)},e.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe(),this.detachElementEventHandlers&&this.detachElementEventHandlers()},e.prototype.onResize=function(e){this.viewContext.notifyResize()},e.prototype.onNavigationAction=function(e){var t=new u.NavigateEvent(this,e);if(this.navigate.next(t),t.isDefaultPrevented())return!0;if("view-change"===e.type){var n=this.views.toArray().indexOf(e.view);this.selectedView=e.view,this.setViewIndex(n)}else if("select-date"===e.type)this.isInRange(e.date)&&(this.selectedDate=e.date);else if("today"===e.type){var r=new Date;this.isInRange(r)&&(this.selectedDate=r)}else this.viewContext.notifyAction(e)},e.prototype.addEvent=function(e){var t;if(!(e instanceof R.FormGroup)){var n=Object.keys(e).reduce((t=e,function(e,n){return e[n]=new R.FormControl(t[n]),e}),{});e=new R.FormGroup(n)}this.editService.addEvent(e)},e.prototype.editEvent=function(e,t){void 0===t&&(t={});var n=t.group,r=t.mode;this.editService.editEvent(e,n,r)},e.prototype.closeEvent=function(){this.editService.close()},e.prototype.isEditing=function(){return this.editService.isEditing()},e.prototype.openRecurringConfirmationDialog=function(e){return this.dialogsService.openRecurringConfirmationDialog(e)},e.prototype.openRemoveConfirmationDialog=function(){return this.dialogsService.openRemoveConfirmationDialog()},e.prototype.saveAsPDF=function(){var e=this;this.loadingComponent.toggle(!0),this.zone.runOutsideAngular((function(){setTimeout((function(){e.pdfService.save()}),0)}))},e.prototype.scrollToTime=function(e){this.viewContext.notifyAction({type:"scroll-time",time:e})},e.prototype.slotByPosition=function(e,t){return this.viewContext.executeMethod("slotByPosition",{x:e,y:t})},e.prototype.eventFromElement=function(e){return this.viewContext.executeMethod("eventFromElement",{element:e})},Object.defineProperty(e.prototype,"activeEvent",{get:function(){var e=this.focusService.activeElement;if(e)return this.eventFromElement(e.nativeElement)},enumerable:!0,configurable:!0}),e.prototype.focusNext=function(e){return this.focusService.focusNext(e)},e.prototype.focusPrev=function(e){var t=r.__assign({offset:-1},e);return this.focusService.focusNext(t)},e.prototype.focus=function(){return this.focusService.focus()},e.prototype.isInRange=function(e){return(!this.min||this.min<=e)&&(!this.max||e<=this.max)},e.prototype.notifyOptionsChange=function(e){var t=this.workWeek;this.viewContext.notifyOptionsChange({group:this.group,resources:this.resources,allDayEventTemplate:this.allDayEventTemplate?this.allDayEventTemplate.first:null,eventTemplate:this.eventTemplate?this.eventTemplate.first:null,timeSlotTemplate:this.timeSlotTemplate?this.timeSlotTemplate.first:null,minorTimeHeaderTemplate:this.minorTimeHeaderTemplate?this.minorTimeHeaderTemplate.first:null,majorTimeHeaderTemplate:this.majorTimeHeaderTemplate?this.majorTimeHeaderTemplate.first:null,monthDaySlotTemplate:this.monthDaySlotTemplate?this.monthDaySlotTemplate.first:null,dateHeaderTemplate:this.dateHeaderTemplate?this.dateHeaderTemplate.first:null,allDaySlotTemplate:this.allDaySlotTemplate?this.allDaySlotTemplate.first:null,groupHeaderTemplate:this.groupHeaderTemplate?this.groupHeaderTemplate.first:null,agendaDateTemplate:this.agendaDateTemplate?this.agendaDateTemplate.first:null,agendaTimeTemplate:this.agendaTimeTemplate?this.agendaTimeTemplate.first:null,min:this.min,max:this.max,showWorkHours:this.showWorkHours,startTime:this.startTime,scrollTime:this.scrollTime,endTime:this.endTime,workDayStart:this.workDayStart,workDayEnd:this.workDayEnd,workWeekStart:t.start,workWeekEnd:t.end,weekStart:this.weekStart,slotDuration:this.slotDuration,slotDivisions:this.slotDivisions,eventHeight:this.eventHeight,editable:this.editable,selectable:this.selectable,timezone:this.timezone,currentTimeMarker:this.currentTimeMarker,slotClass:this.slotClass,slotFill:this.slotFill,columnWidth:this.columnWidth,eventClass:this.eventClass,eventStyles:this.eventStyles,isSlotSelected:this.isSlotSelected,changes:e})},Object.defineProperty(e.prototype,"workWeek",{get:function(){var e=this.intlService.weekendRange(),t=e.start,n=e.end,r=H.isPresent(this.workWeekStart)?this.workWeekStart:(n+1)%7,i=t>0?t-1:c.Day.Saturday;return{start:r,end:H.isPresent(this.workWeekEnd)?this.workWeekEnd:i}},enumerable:!0,configurable:!0}),e.prototype.resetViewIndex=function(){var e=this.selectedViewIndex,t=Math.max(0,Math.min(e,this.views.length-1));this.setViewIndex(t),this.onViewIndexChange()},e.prototype.onViewIndexChange=function(){if(this.views){var e=this.views.toArray()[this.viewIndex];e&&(this.selectedView=e)}},e.prototype.setViewIndex=function(e){var t=this.selectedViewIndex!==e;return t&&(this.selectedViewIndex=e,this.selectedViewIndexChange.emit(e)),t},e.prototype.processEvents=function(e){var t=this,n=this.timezone,r=this.modelFields,i=e.map((function(e){return H.readEvent(e,r,t.resources)})).filter((function(e){return!H.isRecurrenceMaster(e)})).map((function(e){return{start:c.ZonedDate.fromLocalDate(e.start,n),end:c.ZonedDate.fromLocalDate(e.end,n),event:e}}));this.viewItems=i,this.viewContext.notifyItems(i)},e.prototype.attachEditHandlers=function(){this.editService&&this.subs.add(this.editService.changes.subscribe(this.emitCRUDEvent.bind(this)))},e.prototype.emitCRUDEvent=function(e){switch(Object.assign(e,{sender:this}),e.action){case"cancel":this.cancel.emit(e);break;case"save":this.save.emit(e)}},e.prototype.intlChange=function(){var e=this.selectedView;this.selectedView=null,H.isPresent(this.workWeekStart)&&H.isPresent(this.workWeekEnd)||this.notifyOptionsChange(),this.changeDetector.detectChanges(),this.selectedView=e,i.NgZone.isInAngularZone()?this.changeDetector.markForCheck():this.changeDetector.detectChanges()},e.prototype.attachElementEventHandlers=function(){var e=this;if(a.isDocumentAvailable()){var t=this.wrapper.nativeElement;this.zone.runOutsideAngular((function(){var n=e.renderer.listen("window","blur",(function(t){e.domEvents.windowBlur.emit(t)})),r=e.renderer.listen(t,"click",(function(t){e.domEvents.click.emit(t)})),i=e.renderer.listen(t,"keydown",(function(t){e.domEvents.keydown.emit(t)})),o=!1,a=e.renderer.listen(t,"focusin",(function(t){e.domEvents.focus.emit(t),o||(e.domEvents.focusIn.emit(t),e.renderer.addClass(e.wrapper.nativeElement,"k-state-focused"),o=!0)})),s=e.renderer.listen(t,"focusout",(function(n){var r=n.relatedTarget||document.activeElement;!N.closest(r,(function(e){return e===t}))&&(e.domEvents.focusOut.emit(n),e.renderer.removeClass(e.wrapper.nativeElement,"k-state-focused"),o=!1)}));e.detachElementEventHandlers=function(){n(),r(),i(),a(),s()}}))}},r.__decorate([i.HostBinding("class.k-widget"),i.HostBinding("class.k-scheduler"),i.HostBinding("class.k-floatwrap"),r.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),r.__decorate([i.HostBinding("class.k-rtl"),r.__metadata("design:type",Boolean)],e.prototype,"rtl",void 0),r.__decorate([i.HostBinding("attr.dir"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"dir",null),r.__decorate([i.Input(),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[Number])],e.prototype,"selectedViewIndex",null),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"editable",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"selectable",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],e.prototype,"min",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],e.prototype,"max",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"eventHeight",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"columnWidth",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"showWorkHours",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"startTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"endTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"workDayStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"workDayEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"workWeekStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"workWeekEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[Number])],e.prototype,"weekStart",null),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"slotDuration",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"slotDivisions",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"slotFill",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"scrollTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"group",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],e.prototype,"resources",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"loading",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],e.prototype,"timezone",null),r.__decorate([i.Input(),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],e.prototype,"events",null),r.__decorate([i.Input(),r.__metadata("design:type",Date),r.__metadata("design:paramtypes",[Date])],e.prototype,"selectedDate",null),r.__decorate([i.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],e.prototype,"modelFields",null),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"currentTimeMarker",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"slotClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"eventClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"eventStyles",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"isSlotSelected",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"selectedViewIndexChange",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"navigate",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"dateChange",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"slotClick",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"slotDblClick",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"create",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"eventClick",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"eventDblClick",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"eventKeydown",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"cancel",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"save",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"remove",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"resizeStart",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"resize",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"resizeEnd",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"dragStart",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"drag",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"dragEnd",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"slotDragStart",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"slotDrag",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"slotDragEnd",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"pdfExport",void 0),r.__decorate([i.ContentChild(x.EditDialogTemplateDirective,{static:!1}),r.__metadata("design:type",x.EditDialogTemplateDirective)],e.prototype,"editDialogTemplate",void 0),r.__decorate([i.ContentChild(p.ToolbarTemplateDirective,{static:!1}),r.__metadata("design:type",p.ToolbarTemplateDirective)],e.prototype,"toolbarTemplate",void 0),r.__decorate([i.ContentChildren(m.SchedulerView),r.__metadata("design:type",i.QueryList)],e.prototype,"views",void 0),r.__decorate([i.ViewChild(a.ResizeSensorComponent,{static:!0}),r.__metadata("design:type",a.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),r.__decorate([i.ViewChild("confirmationDialogContainer",{read:i.ViewContainerRef,static:!0}),r.__metadata("design:type",i.ViewContainerRef)],e.prototype,"confirmationDialogContainerRef",void 0),r.__decorate([i.ViewChild(W.LoadingComponent,{static:!0}),r.__metadata("design:type",W.LoadingComponent)],e.prototype,"loadingComponent",void 0),r.__decorate([i.ContentChildren(v.AllDayEventTemplateDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"allDayEventTemplate",void 0),r.__decorate([i.ContentChildren(b.EventTemplateDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"eventTemplate",void 0),r.__decorate([i.ContentChildren(E.TimeSlotTemplateDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"timeSlotTemplate",void 0),r.__decorate([i.ContentChildren(k.MinorTimeHeaderTemplateDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"minorTimeHeaderTemplate",void 0),r.__decorate([i.ContentChildren(D.MajorTimeHeaderTemplateDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"majorTimeHeaderTemplate",void 0),r.__decorate([i.ContentChildren(T.MonthDaySlotTemplateDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"monthDaySlotTemplate",void 0),r.__decorate([i.ContentChildren(_.DateHeaderTemplateDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"dateHeaderTemplate",void 0),r.__decorate([i.ContentChildren(y.AllDaySlotTemplateDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"allDaySlotTemplate",void 0),r.__decorate([i.ContentChildren(S.GroupHeaderTemplateDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"groupHeaderTemplate",void 0),r.__decorate([i.ContentChildren(g.AgendaDateTemplateDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"agendaDateTemplate",void 0),r.__decorate([i.ContentChildren(f.AgendaTimeTemplateDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"agendaTimeTemplate",void 0),e=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler",providers:[I.EditService,M.DialogsService,B.DomEventsService,O.LocalDataChangesService,V.FocusService,P.SchedulerLocalizationService,{provide:o.LocalizationService,useExisting:P.SchedulerLocalizationService},{provide:o.L10N_PREFIX,useValue:"kendo.scheduler"},h.ToolbarService,w.ViewContextService,C.ViewStateService,z.PDFService],styles:[".k-scheduler.k-state-focused { box-shadow: 0 0.5px 0.5px 0.5px rgba(0, 0, 0, .12); }"],encapsulation:i.ViewEncapsulation.None,template:'\n <ng-container kendoSchedulerLocalizedMessages\n i18n-allEvents="kendo.scheduler.allEvents|The All events text displayed in the timeline views when there is no vertical grouping."\n allEvents="All events"\n\n i18n-allDay="kendo.scheduler.allDay|The all day text displayed in the day and week views."\n allDay="all day"\n\n i18n-dateHeader="kendo.scheduler.dateHeader|The date header text displayed in the agenda view."\n dateHeader="Date"\n\n i18n-timeHeader="kendo.scheduler.timeHeader|The time header text displayed in the agenda view."\n timeHeader="Time"\n\n i18n-deleteTitle="kendo.scheduler.deleteTitle|The delete icon title."\n deleteTitle="Delete"\n\n i18n-eventHeader="kendo.scheduler.eventHeader|The event header text displayed in the agenda view."\n eventHeader="Event"\n\n i18n-nextTitle="kendo.scheduler.nextTitle|The title of the navigation next button."\n nextTitle="Next"\n\n i18n-previousTitle="kendo.scheduler.previousTitle|The title of the navigation previous button."\n previousTitle="Previous"\n\n i18n-showFullDay="kendo.scheduler.showFullDay|The text of the show full day button displayed in the footer of the day, week and timeline views."\n showFullDay="Show full day"\n\n i18n-showWorkDay="kendo.scheduler.showWorkDay|The text of the show work day button displayed in the footer of the day, week and timeline views."\n showWorkDay="Show business hours"\n\n i18n-today="kendo.scheduler.today|The today button text displayed in the navigation."\n today="Today"\n\n i18n-calendarToday="kendo.scheduler.calendarToday|The text of today\'s date in the header of the Calendar."\n calendarToday="TODAY"\n\n i18n-dayViewTitle="kendo.scheduler.dayViewTitle|The day view title."\n dayViewTitle="Day"\n\n i18n-multiDayViewTitle="kendo.scheduler.multiDayViewTitle|The multi day view title."\n multiDayViewTitle="Multi-Day"\n\n i18n-weekViewTitle="kendo.scheduler.weekViewTitle|The week view title."\n weekViewTitle="Week"\n\n i18n-workWeekViewTitle="kendo.scheduler.workWeekViewTitle|The work week view title."\n workWeekViewTitle="Work Week"\n\n i18n-monthViewTitle="kendo.scheduler.monthViewTitle|The month view title."\n monthViewTitle="Month"\n\n i18n-timelineViewTitle="kendo.scheduler.timelineViewTitle|The timeline view title."\n timelineViewTitle="Timeline"\n\n i18n-timelineWeekViewTitle="kendo.scheduler.timelineWeekViewTitle|The timeline week view title."\n timelineWeekViewTitle="Timeline Week"\n\n i18n-timelineMonthViewTitle="kendo.scheduler.timelineMonthViewTitle|The timeline month view title."\n timelineMonthViewTitle="Timeline Month"\n\n i18n-agendaViewTitle="kendo.scheduler.agendaViewTitle|The agenda view title."\n agendaViewTitle="Agenda"\n\n i18n-cancel="kendo.scheduler.cancel|The text similar to \'Cancel\' displayed in scheduler."\n cancel="Cancel"\n\n i18n-save="kendo.scheduler.save|The text similar to \'Save\' displayed in scheduler."\n save="Save"\n\n i18n-editorEventTitle="kendo.scheduler.editorEventTitle|The text similar to \'Title\' displayed in the scheduler event editor."\n editorEventTitle=\'Title\'\n\n i18n-editorEventStart="kendo.scheduler.editorEventStart|The text similar to \'Start\' displayed in the scheduler event editor."\n editorEventStart="Start"\n\n i18n-editorEventStartTimeZone="kendo.scheduler.editorEventStartTimeZone|The text similar to \'Start Time Zone\' displayed in the scheduler event editor."\n editorEventStartTimeZone="Start Time Zone"\n\n i18n-editorEventEnd="kendo.scheduler.editorEventEnd|The text similar to \'End\' displayed in the scheduler event editor."\n editorEventEnd="End"\n\n i18n-editorEventEndTimeZone="kendo.scheduler.editorEventEndTimeZone|The text similar to \'End Time Zone\' displayed in the scheduler event editor."\n editorEventEndTimeZone="End Time Zone"\n\n i18n-editorEventAllDay="kendo.scheduler.editorEventAllDay|The text similar to \'All Day event\' displayed in the scheduler event editor."\n editorEventAllDay="All Day Event"\n\n i18n-editorEventDescription="kendo.scheduler.editorEventDescription|The text similar to \'Description\' displayed in the scheduler event editor."\n editorEventDescription="Description"\n\n i18n-editorEventSeparateTimeZones="kendo.scheduler.editorEventSeparateTimeZones|The text similar to \'Use separate Start and End Time Zones\' displayed in the scheduler event editor."\n editorEventSeparateTimeZones="End in different Time Zone"\n\n i18n-editorEventTimeZone="kendo.scheduler.editorEventTimeZone|The text similar to \'Time Zone\' displayed in the scheduler event editor."\n editorEventTimeZone=\'Specify Time Zone\'\n\n i18n-editorTitle="kendo.scheduler.editorTitle|The text similar to \'Event\' displayed as title of the scheduler event editor."\n editorTitle=\'Event\'\n\n i18n-recurrenceEditorRepeat="kendo.scheduler.recurrenceEditorRepeat|The text similar to \'Repeat\' displayed in the scheduler recurrence editor."\n recurrenceEditorRepeat=\'Repeat\'\n\n i18n-recurrenceEditorDailyInterval="kendo.scheduler.recurrenceEditorDailyInterval|The text similar to \'day(s)\' displayed in the scheduler recurrence editor."\n recurrenceEditorDailyInterval=\'day(s)\'\n\n i18n-recurrenceEditorDailyRepeatEvery="kendo.scheduler.recurrenceEditorDailyRepeatEvery|The text similar to \'Repeat every\' displayed in the scheduler recurrence editor."\n recurrenceEditorDailyRepeatEvery=\'Repeat every\'\n\n i18n-recurrenceEditorWeeklyInterval="kendo.scheduler.recurrenceEditorWeeklyInterval|The text similar to \'week(s)\' displayed in the scheduler recurrence editor."\n recurrenceEditorWeeklyInterval=\'week(s)\'\n\n i18n-recurrenceEditorWeeklyRepeatEvery="kendo.scheduler.recurrenceEditorWeeklyRepeatEvery|The text similar to \'Repeat every\' displayed in the scheduler recurrence editor."\n recurrenceEditorWeeklyRepeatEvery=\'Repeat every\'\n\n i18n-recurrenceEditorWeeklyRepeatOn="kendo.scheduler.recurrenceEditorWeeklyRepeatOn|The text similar to \'Repeat on\' displayed in the scheduler recurrence editor."\n recurrenceEditorWeeklyRepeatOn=\'Repeat on\'\n\n i18n-recurrenceEditorMonthlyDay="kendo.scheduler.recurrenceEditorMonthlyDay|The text similar to \'Day\' displayed in the scheduler recurrence editor."\n recurrenceEditorMonthlyDay=\'Day\'\n\n i18n-recurrenceEditorMonthlyInterval="kendo.scheduler.recurrenceEditorMonthlyInterval|The text similar to \'month(s)\' displayed in the scheduler recurrence editor."\n recurrenceEditorMonthlyInterval=\'month(s)\'\n\n i18n-recurrenceEditorMonthlyRepeatEvery="kendo.scheduler.recurrenceEditorMonthlyRepeatEvery|The text similar to \'Repeat every\' displayed in the scheduler recurrence editor."\n recurrenceEditorMonthlyRepeatEvery=\'Repeat every\'\n\n i18n-recurrenceEditorMonthlyRepeatOn="kendo.scheduler.recurrenceEditorMonthlyRepeatOn|The text similar to \'Repeat on\' displayed in the scheduler recurrence editor."\n recurrenceEditorMonthlyRepeatOn=\'Repeat on\'\n\n i18n-recurrenceEditorYearlyOf="kendo.scheduler.recurrenceEditorYearlyOf|The text similar to \'of\' displayed in the scheduler recurrence editor."\n recurrenceEditorYearlyOf=\'of\'\n\n i18n-recurrenceEditorYearlyRepeatEvery="kendo.scheduler.recurrenceEditorYearlyRepeatEvery|The text similar to \'Repeat every\' displayed in the scheduler recurrence editor."\n recurrenceEditorYearlyRepeatEvery=\'Repeat every\'\n\n i18n-recurrenceEditorYearlyRepeatOn="kendo.scheduler.recurrenceEditorYearlyRepeatOn|The text similar to \'Repeat on\' displayed in the scheduler recurrence editor."\n recurrenceEditorYearlyRepeatOn=\'Repeat on\'\n\n i18n-recurrenceEditorYearlyInterval="kendo.scheduler.recurrenceEditorYearlyInterval|The text similar to \'year(s)\' displayed in the scheduler recurrence editor."\n recurrenceEditorYearlyInterval=\'year(s)\'\n\n i18n-recurrenceEditorFrequenciesDaily="kendo.scheduler.recurrenceEditorFrequenciesDaily|The text similar to \'Daily\' displayed in the scheduler recurrence editor."\n recurrenceEditorFrequenciesDaily=\'Daily\'\n\n i18n-recurrenceEditorFrequenciesMonthly="kendo.scheduler.recurrenceEditorFrequenciesMonthly|The text similar to \'Monthly\' displayed in the scheduler recurrence editor."\n recurrenceEditorFrequenciesMonthly=\'Monthly\'\n\n i18n-recurrenceEditorFrequenciesNever="kendo.scheduler.recurrenceEditorFrequenciesNever|The text similar to \'Never\' displayed in the scheduler recurrence editor."\n recurrenceEditorFrequenciesNever=\'Never\'\n\n i18n-recurrenceEditorFrequenciesWeekly="kendo.scheduler.recurrenceEditorFrequenciesWeekly|The text similar to \'Weekly\' displayed in the scheduler recurrence editor."\n recurrenceEditorFrequenciesWeekly=\'Weekly\'\n\n i18n-recurrenceEditorFrequenciesYearly="kendo.scheduler.recurrenceEditorFrequenciesYearly|The text similar to \'Yearly\' displayed in the scheduler recurrence editor."\n recurrenceEditorFrequenciesYearly=\'Yearly\'\n\n i18n-recurrenceEditorOffsetPositionsFirst="kendo.scheduler.recurrenceEditorOffsetPositionsFirst|The text similar to \'First\' displayed in the scheduler recurrence editor."\n recurrenceEditorOffsetPositionsFirst=\'First\'\n\n i18n-recurrenceEditorOffsetPositionsSecond="kendo.scheduler.recurrenceEditorOffsetPositionsSecond|The text similar to \'Second\' displayed in the scheduler recurrence editor."\n recurrenceEditorOffsetPositionsSecond=\'Second\'\n\n i18n-recurrenceEditorOffsetPositionsThird="kendo.scheduler.recurrenceEditorOffsetPositionsThird|The text similar to \'Third\' displayed in the scheduler recurrence editor."\n recurrenceEditorOffsetPositionsThird=\'Third\'\n\n i18n-recurrenceEditorOffsetPositionsFourth="kendo.scheduler.recurrenceEditorOffsetPositionsFourth|The text similar to \'Fourth\' displayed in the scheduler recurrence editor."\n recurrenceEditorOffsetPositionsFourth=\'Fourth\'\n\n i18n-recurrenceEditorOffsetPositionsLast="kendo.scheduler.recurrenceEditorOffsetPositionsLast|The text similar to \'Last\' displayed in the scheduler recurrence editor."\n recurrenceEditorOffsetPositionsLast=\'Last\'\n\n i18n-recurrenceEditorWeekdaysDay="kendo.scheduler.recurrenceEditorWeekdaysDay|The text similar to \'Day\' displayed in the repeat by section of the monthly recurrence pattern."\n recurrenceEditorWeekdaysDay=\'Day\'\n\n i18n-recurrenceEditorWeekdaysWeekday="kendo.scheduler.recurrenceEditorWeekdaysWeekday|The text similar to \'Weekday\' displayed in the repeat by section of the monthly recurrence pattern."\n recurrenceEditorWeekdaysWeekday=\'Weekday\'\n\n i18n-recurrenceEditorWeekdaysWeekendday="kendo.scheduler.recurrenceEditorWeekdaysWeekendday|The text similar to \'Weekend Day\' displayed in the repeat by section of the monthly recurrence pattern."\n recurrenceEditorWeekdaysWeekendday=\'Weekend Day\'\n\n i18n-recurrenceEditorEndAfter="kendo.scheduler.recurrenceEditorEndAfter|The text similar to \'After\' displayed in the scheduler recurrence editor."\n recurrenceEditorEndAfter=\'After\'\n\n i18n-recurrenceEditorEndOccurrence="kendo.scheduler.recurrenceEditorEndOccurrence|The text similar to \'occurrence(s)\' displayed in the scheduler recurrence editor."\n recurrenceEditorEndOccurrence=\'occurrence(s)\'\n\n i18n-recurrenceEditorEndLabel="kendo.scheduler.recurrenceEditorEndLabel|The text similar to \'End\' displayed in the scheduler recurrence editor."\n recurrenceEditorEndLabel=\'End\'\n\n i18n-recurrenceEditorEndNever="kendo.scheduler.recurrenceEditorEndNever|The text similar to \'Never\' displayed in the scheduler recurrence editor."\n recurrenceEditorEndNever=\'Never\'\n\n i18n-recurrenceEditorEndOn="kendo.scheduler.recurrenceEditorEndOn|The text similar to \'On\' displayed in the scheduler recurrence editor."\n recurrenceEditorEndOn=\'On\'\n\n i18n-destroy="kendo.scheduler.destroy|The text of the \'Delete\' button displayed in the scheduler remove confirmation dialog."\n destroy=\'Delete\'\n\n i18n-deleteConfirmation="kendo.scheduler.deleteConfirmation|The text similar to \'Are you sure you want to delete this event?\' displayed in scheduler remove confirmation dialog."\n deleteConfirmation=\'Are you sure you want to delete this event?\'\n\n i18n-editRecurringConfirmation="kendo.scheduler.editRecurringConfirmation|The text similar to \'Do you want to edit only this event occurrence or the whole series?\' displayed in the scheduler recurring confirmation dialog."\n editRecurringConfirmation=\'Do you want to edit only this event occurrence or the whole series?\'\n\n i18n-editOccurrence="kendo.scheduler.editOccurrence|The text of the \'Edit current occurrence\' button displayed in the scheduler recurring confirmation dialog."\n editOccurrence=\'Edit current occurrence\'\n\n i18n-editSeries="kendo.scheduler.editSeries|The text of the \'Edit the series\' button displayed in the scheduler recurring confirmation dialog."\n editSeries=\'Edit the series\'\n\n i18n-deleteRecurringConfirmation="kendo.scheduler.deleteRecurringConfirmation|The text similar to \'Do you want to delete only this event occurrence or the whole series?\' displayed in the scheduler recurring confirmation dialog."\n deleteRecurringConfirmation=\'Do you want to delete only this event occurrence or the whole series?\'\n\n i18n-deleteOccurrence="kendo.scheduler.deleteOccurrence|The text of the \'Delete current occurrence\' button displayed in the scheduler recurring confirmation dialog."\n deleteOccurrence=\'Delete current occurrence\'\n\n i18n-deleteSeries="kendo.scheduler.deleteSeries|The text similar of the \'Delete the series\' button displayed in the scheduler recurring confirmation dialog."\n deleteSeries=\'Delete the series\'\n\n i18n-deleteDialogTitle="kendo.scheduler.deleteDialogTitle|The title of the remove confirmation dialog, similar to \'Delete Event\'."\n deleteDialogTitle=\'Delete Event\'\n\n i18n-deleteRecurringDialogTitle="kendo.scheduler.deleteRecurringDialogTitle|The title of the recurring remove confirmation dialog, similar to \'Delete Recurring Item\'"\n deleteRecurringDialogTitle=\'Delete Recurring Item\'\n\n i18n-editRecurringDialogTitle="kendo.scheduler.editRecurringDialogTitle|The title of the recurring edit confirmation dialog, similar to \'Edit Recurring Item\'"\n editRecurringDialogTitle=\'Edit Recurring Item\'\n >\n </ng-container>\n\n <kendo-scheduler-toolbar\n [dateRange]="dateRangeStream"\n [selectedDate]="selectedDateStream"\n [views]="views"\n [selectedView]="selectedView"\n [template]="toolbarTemplate"\n (navigate)="onNavigationAction($event)"\n [min]="min"\n [max]="max"\n ></kendo-scheduler-toolbar>\n\n <ng-container *ngTemplateOutlet="selectedView?.template">\n </ng-container>\n\n <ng-container #confirmationDialogContainer>\n </ng-container>\n\n <kendo-scheduler-edit-dialog\n [resources]="resources"\n [editTemplate]="editDialogTemplate"\n [timezone]="timezone"\n [weekStart]="weekStart"\n [fields]="modelFields"\n ></kendo-scheduler-edit-dialog>\n\n <kendo-resize-sensor (resize)="onResize()"></kendo-resize-sensor>\n\n <div [loading]="loading" kendoSchedulerLoading>\n </div>\n '}),r.__metadata("design:paramtypes",[i.ElementRef,w.ViewContextService,C.ViewStateService,I.EditService,M.DialogsService,j.IntlService,i.ChangeDetectorRef,i.NgZone,z.PDFService,o.LocalizationService,B.DomEventsService,i.Renderer2,V.FocusService])],e)}();t.SchedulerComponent=G},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28);t.FocusService=r.FocusService;var i=n(118);t.FocusableDirective=i.FocusableDirective},function(e,t){e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(35);t.AgendaDateTemplateDirective=r.AgendaDateTemplateDirective;var i=n(36);t.AgendaTimeTemplateDirective=i.AgendaTimeTemplateDirective;var o=n(37);t.AllDayEventTemplateDirective=o.AllDayEventTemplateDirective;var a=n(38);t.AllDaySlotTemplateDirective=a.AllDaySlotTemplateDirective;var s=n(39);t.DateHeaderTemplateDirective=s.DateHeaderTemplateDirective;var c=n(40);t.EventTemplateDirective=c.EventTemplateDirective;var l=n(41);t.GroupHeaderTemplateDirective=l.GroupHeaderTemplateDirective;var d=n(42);t.MajorTimeHeaderTemplateDirective=d.MajorTimeHeaderTemplateDirective;var u=n(43);t.MinorTimeHeaderTemplateDirective=u.MinorTimeHeaderTemplateDirective;var p=n(44);t.MonthDaySlotTemplateDirective=p.MonthDaySlotTemplateDirective;var h=n(45);t.TimeSlotTemplateDirective=h.TimeSlotTemplateDirective},function(e,t){e.exports=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),a=function(){function e(){this.actionSource=new o.Subject,this.action=this.actionSource.asObservable()}return e.prototype.navigate=function(e){this.actionSource.next(e)},e=r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[])],e)}();t.ToolbarService=a},function(e,t){e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(20),a=function(){function e(){}return e.exports=function(){return[o.FocusableDirective]},e=r.__decorate([i.NgModule({declarations:[o.FocusableDirective],exports:[o.FocusableDirective]})],e)}();t.SharedModule=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(107);t.DateChangeEvent=r.DateChangeEvent;var i=n(108);t.NavigateEvent=i.NavigateEvent;var o=n(58);t.SlotClickEvent=o.SlotClickEvent;var a=n(59);t.EventClickEvent=a.EventClickEvent;var s=n(60);t.EventKeydownEvent=s.EventKeydownEvent;var c=n(109);t.VIEW_EVENT_MAP=c.VIEW_EVENT_MAP;var l=n(111);t.CancelEvent=l.CancelEvent;var d=n(32);t.EditEventBase=d.EditEventBase;var u=n(64);t.RemoveEvent=u.RemoveEvent;var p=n(112);t.SaveEvent=p.SaveEvent;var h=n(67);t.ResizeStartEvent=h.ResizeStartEvent;var m=n(66);t.ResizeEvent=m.ResizeEvent;var g=n(65);t.ResizeEndEvent=g.ResizeEndEvent;var f=n(63);t.DragStartEvent=f.DragStartEvent;var v=n(62);t.DragEvent=v.DragEvent;var y=n(61);t.DragEndEvent=y.DragEndEvent;var _=n(113);t.EditEvent=_.EditEvent;var b=n(114);t.AddEvent=b.AddEvent;var S=n(68);t.SlotDragStartEvent=S.SlotDragStartEvent;var D=n(33);t.SlotDragEvent=D.SlotDragEvent;var k=n(69);t.SlotDragEndEvent=k.SlotDragEndEvent},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),a=n(49),s=function(){function e(e,t,n){var r=this;this.renderer=e,this.wrapper=t,this.domEvents=n,this.items=new Set,this.elementMap=new WeakMap,this.subs=new o.Subscription,this.subs.add(this.domEvents.focus.subscribe((function(e){return r.onFocusIn(e)}))),this.subs.add(this.domEvents.focusOut.subscribe((function(){return r.onFocusOut()})))}return Object.defineProperty(e.prototype,"activeElement",{get:function(){if(this.activeItem)return this.activeItem.element},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.prototype.register=function(e){this.activeItem||(this.activeItem=e,e.toggle(!0)),this.items.add(e),this.elementMap.set(e.element.nativeElement,e),this.toggleWrapper()},e.prototype.unregister=function(e){this.items.delete(e),this.elementMap.delete(e.element.nativeElement),e===this.activeItem&&this.activateNext(),this.toggleWrapper()},e.prototype.focus=function(){this.activeItem?this.activeItem.focus():this.wrapper.nativeElement.focus()},e.prototype.focusNext=function(e){var t=this.activeItem;return this.activateNext(e),this.activeItem&&this.activeItem.focus(),this.activeItem!==t},e.prototype.activate=function(e){this.items.forEach((function(t){return t.toggle(t===e)})),this.activeItem=e},e.prototype.activateNext=function(e){this.activeItem=this.findNext(e)},e.prototype.findNext=function(e){var t=r.__assign({nowrap:!1,offset:1},e),n=t.offset,i=t.nowrap,o=Array.from(this.items.values()).filter((function(e){return e.canFocus()})).sort((function(e,t){return e.focusIndex-t.focusIndex}));if(0===o.length)return null;if(!this.activeItem)return i?null:o[0];var a=o.indexOf(this.activeItem)+n;return i?a=Math.max(0,Math.min(o.length-1,a)):(a%=o.length)<0&&(a=o.length-1),o[a]},e.prototype.toggleWrapper=function(){this.wrapper&&this.renderer.setAttribute(this.wrapper.nativeElement,"tabindex",this.activeItem?"-1":"0")},e.prototype.onFocusIn=function(e){var t=this.elementMap.get(e.target);t&&t!==this.focusedItem&&(this.focusedItem&&this.focusedItem.toggleFocus(!1),this.activate(t),t.toggleFocus(!0),this.focusedItem=t)},e.prototype.onFocusOut=function(){this.focusedItem&&(this.focusedItem.toggleFocus(!1),this.focusedItem=null)},e=r.__decorate([i.Injectable(),r.__param(0,i.Optional()),r.__param(1,i.Optional()),r.__metadata("design:paramtypes",[i.Renderer2,i.ElementRef,a.DomEventsService])],e)}();t.FocusService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(25),a=n(7),s=n(88),c=n(142),l=n(143),d=n(144),u=n(54),p=n(145),h=n(26),m=n(21),g=[s.ViewFooterComponent,c.WorkHoursFooterDirective,l.RepeatPipe,d.ResourceIteratorPipe,u.HintContainerComponent,p.ResizeHintComponent],f=function(){function e(){}return e=r.__decorate([i.NgModule({imports:[o.CommonModule,a.IntlModule,h.SharedModule,m.ButtonsModule],exports:[g,a.IntlModule,o.CommonModule,h.SharedModule],declarations:[g]})],e)}();t.ViewsSharedModule=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(52),o=n(5),a=n(83),s=n(84),c=n(5),l=n(3),d=function(e,t,n){return void 0===n&&(n=!0),e.start.getTime()<=t.getTime()?(n?e.height:e.width)*((t.getTime()-e.start.getTime())/(e.end.getTime()-e.start.getTime())):0},u=function(e,t){var n=l.isNumber(e.columnIndex)?e.columnIndex:Number.MAX_VALUE,r=l.isNumber(t.columnIndex)?t.columnIndex:Number.MAX_VALUE;return n===r?e.item.startTime.getTime()-t.item.startTime.getTime():n-r};function p(e,t){if(void 0!==t.rowIndex)return t.rowIndex;for(var n=0;n<e.length;n++){var r=e[n];if(!r||!o.intersects(t.item.startTime,t.item.endTime,r.item.startTime,r.item.endTime))return n}return e.length}function h(e,t,n,r,a){var s=e[0].padding;if(!t.length)return{height:n-s};t.forEach((function(e){e.rowIndex=void 0,e.rect={height:r,width:0}}));var c=i.orderBy(t,[{field:"item.startTime",dir:"asc"},{field:"item.endTime",dir:"desc"}]),l={};c.forEach((function(t){return e.filter((function(e){return o.intersects(t.item.startTime,t.item.endTime,e.start,e.end)})).forEach((function(e){var n=l[e.key]=l[e.key]||{rows:[],slot:e,events:[]};t.rowIndex=a(n.rows,t),n.rows[t.rowIndex]=t,n.events.push(t)}))}));var d=e[0].top,u=0;return Object.keys(l).forEach((function(e){for(var t=l[e].events,n=0,r=0;r<t.length;r++){var i=t[r];i&&(i.rect.top=d+i.rowIndex*(10+i.rect.height),n=Math.max(n,i.rect.top-d+i.rect.height))}u=Math.max(n,u)})),{height:u+=n-s,slotItems:l}}function m(e,t,n){Object.keys(e).forEach((function(t){for(var r=e[t],i=r.slot,o=r.events,a=i.rect,s=0;s<o.length;s++){var c=o[s];if(c){l.isNumber(c.rect.left)||(c.rect.left=i.rect.left+(n?d(i,c.item.startTime,!1):0));var u=n&&c.item.endTime.getTime()<i.end.getTime()?d(i,c.item.endTime,!1):a.width;c.rect.width=i.rect.left+u-c.rect.left}}})),t.forEach((function(e){e.reflow()}))}var g=function(){function e(e){this.index=e,this.slotMap=new a.ItemMap,this.itemMap=new a.ItemMap}return Object.defineProperty(e.prototype,"slots",{get:function(){return this.slotMap.toArray()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstSlot",{get:function(){return this.slotMap.first},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastSlot",{get:function(){return this.slotMap.last},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this.itemMap.toArray()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rect",{get:function(){var e=this.firstSlot.rect,t=this.lastSlot.rect;return{left:e.left,top:e.top,width:t.left-e.left+t.width,height:t.top-e.top+t.height}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){var e=this.slotMap.first;return e?e.start:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){var e=this.slotMap.last;return e?e.end:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasSlots",{get:function(){return this.slotMap.count>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasItems",{get:function(){return this.itemMap.count>0},enumerable:!0,configurable:!0}),e.prototype.registerItem=function(e){this.itemMap.addItem(e.item.index,e)},e.prototype.unregisterItem=function(e,t){this.itemMap.removeItem(t.index,e)},e.prototype.registerSlot=function(e){this.slotMap.addItem(e.id.index,e)},e.prototype.unregisterSlot=function(e){this.slotMap.removeItem(e.id.index,e)},e.prototype.layout=function(e){var t=this.items;if(t.length){var n=Math.max(Math.min(e.fill||.9,1),.1),r=i.orderBy(t,[{field:"item.startTime",dir:"asc"},{field:"item.endTime",dir:"desc"}]);t.forEach((function(e,t){e.rect=null,e.columnIndex=void 0}));var a={},s=this.slots;r.forEach((function(e){return s.filter((function(t){return o.intersects(e.item.startTime,e.item.endTime,t.start,t.end)})).forEach((function(t){var n=a[t.key]=a[t.key]||{events:[]};n.slot=t,n.events.push(e)}))}));var c=Object.keys(a);!function(e,t){var n=0,r=[];e.forEach((function(e){var i=t[e],a=i.slot,s=i.events,c=s.length,p=!0;s.sort(u),n=Math.max(c,n),r.push(a);for(var h=function(e){var t=s[e];if(p=p&&t.item.endTime.getTime()<=a.end.getTime(),l.isNumber(t.columnIndex))return"continue";t.rect={top:a.rect.top+d(a,t.item.startTime)},t.columnIndex=e,t.lastColumn=!0;for(var n,r=function(r,i){var a,c,l=s[r];return l.columnIndex>i+1?(t.columnIndex=i+1,t.lastColumn=!1,s.splice(e,1),s.splice(t.columnIndex,0,t),n=i,"break"):o.intersects(t.item.startTime,t.item.endTime,l.item.startTime,l.item.endTime)||(a=l.rect.top,c=t.rect.top,a<=c&&c<=a+25)?(i=l.columnIndex,l.lastColumn=!1,void(n=i)):(t.columnIndex=r,t.lastColumn=!s.some((function(e){return e.columnIndex&&r<e.columnIndex&&o.intersects(t.item.startTime,t.item.endTime,e.item.startTime,e.item.endTime)})),s.splice(e,1),s.splice(r,0,t),n=i,"break")},i=0,c=-1;i<e;i++){var u=r(i,c);if(c=n,"break"===u)break}},m=0;m<c;m++)h(m);p&&(r.forEach((function(e){return e.columns=n})),r=[],n=0)})),r.forEach((function(e){return e.columns=n}))}(c,a),c.forEach((function(e){var t=a[e],r=t.slot,i=t.events,o=(i.length,r.rect),s=o.left,c=r.columns,u=o.width*n-2*(c-1)-2,p=s+2,h=u/c,m=p+u+2*(c-1);i.forEach((function(e){l.isNumber(e.rect.left)||(e.rect.left=p+e.columnIndex*(h+2),e.rect.width=e.lastColumn?m-e.rect.left:h,e.origin={left:s,right:s+o.width});var t=r.end.getTime()<=e.item.endTime.getTime()?o.height:d(r,e.item.endTime);e.rect.height=o.top+t-e.rect.top}))})),r.forEach((function(e){return e.reflow()}))}},e.prototype.initDaySlots=function(e,t){var n=this.slots;if(n.length){var r=h(n,this.items,e,t,o.findRowIndex),i=r.height,a=r.slotItems;this.setSlotsHeight(i),this.slotItems=a}},e.prototype.setDayOffsets=function(){this.itemMap.count&&this.slotItems&&(m(this.slotItems,this.items),this.slotItems=null)},e.prototype.setSlotsHeight=function(e){this.firstSlot.height=e},e}();t.SlotRange=g;var f=function(){function e(e){this.index=e,this.dayRanges=[],this.timeRanges=[]}return e.prototype.registerSlot=function(e){this.slotRange(e).registerSlot(e)},e.prototype.unregisterSlot=function(e){var t=this.slotRange(e);(t.unregisterSlot(e),t.hasSlots)||delete this.slotRanges(e)[e.id.rangeIndex]},e.prototype.registerItem=function(e){var t=this.itemRange(e);t?(t.registerItem(e),e.rangeIndex=t.index):(e.rangeIndex=void 0,e.toggle(!1))},e.prototype.unregisterItem=function(e,t){if(void 0!==e.rangeIndex){var n=e.item.isAllDay?this.dayRanges:this.timeRanges;n[t.rangeIndex]&&n[t.rangeIndex].unregisterItem(e,t),e.rangeIndex=void 0}},e.prototype.forEachDateRange=function(e){for(var t=0;t<this.dayRanges.length;t++)e(this.dayRanges[t])},e.prototype.forEachTimeRange=function(e){for(var t=0;t<this.timeRanges.length;t++)e(this.timeRanges[t])},e.prototype.slotRange=function(e){var t=this.slotRanges(e),n=e.id.rangeIndex;return t[n]||(t[n]=new g(n)),t[n]},e.prototype.slotRanges=function(e){return e.isDaySlot?this.dayRanges:this.timeRanges},e.prototype.initTimeSlots=function(e,t,n){var r=this.slots;if(r.length){var i=h(r,this.items,e,t,p),o=i.height,a=i.slotItems;this.setSlotsHeight(Math.max(o,n)),this.slotItems=a}},e.prototype.setTimelineOffsets=function(){var e=this.items;this.slotItems&&e.length&&(m(this.slotItems,e,!0),this.slotItems=null)},e.prototype.setSlotsHeight=function(e){this.timeRanges[0].setSlotsHeight(e)},Object.defineProperty(e.prototype,"items",{get:function(){return this.timeRanges.reduce((function(e,t){return e.concat(t.items)}),[])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"slots",{get:function(){return this.timeRanges.reduce((function(e,t){return e.concat(t.slots)}),[])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasSlots",{get:function(){return Boolean(this.dayRanges.find((function(e){return e&&e.hasSlots}))||this.timeRanges.find((function(e){return e&&e.hasSlots})))},enumerable:!0,configurable:!0}),e.prototype.cleanRanges=function(){this.dayRanges=this.dayRanges.filter((function(e){return Boolean(e)})),this.timeRanges=this.timeRanges.filter((function(e){return Boolean(e)}))},e.prototype.itemRange=function(e){var t=e.item,n=t.isAllDay?this.dayRanges:this.timeRanges;return l.isNumber(t.rangeIndex)?n[t.rangeIndex]:n.find((function(e){return o.intersects(t.startTime,t.endTime,e.start,e.end)}))},e}();t.DayTimeResourceGroup=f;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.layoutDays=function(e){void 0===e&&(e=25),this.groups.forEach((function(e){return e.forEachDateRange((function(e){return e.slots.forEach((function(e){e.element.nativeElement.style.height=""}))}))}));var t=this.groups[0].dayRanges[0].slots[0].height;this.groups.forEach((function(n){n.forEachDateRange((function(n){return n.initDaySlots(t,e)}))})),this.groups.forEach((function(e){e.forEachDateRange((function(e){return e.setDayOffsets()}))}))},t.prototype.layoutTimeline=function(e,t){this.groups.forEach((function(e){return e.forEachTimeRange((function(e){return e.slots.forEach((function(e){e.element.nativeElement.style.height=""}))}))}));var n=this.groups[0].timeRanges[0].slots[0].height;this.groups.forEach((function(r,i){r.initTimeSlots(n,e,t&&t[i]?t[i].nativeElement.children[0].children[0].offsetHeight:0)})),this.groups.forEach((function(e){return e.setTimelineOffsets()}))},t.prototype.layoutTimes=function(e){this.groups.forEach((function(t){return t.forEachTimeRange((function(t){return t.layout(e)}))}))},t.prototype.forEachDateRange=function(e){this.groups.forEach((function(t,n){e(t.dayRanges[0],n)}))},t.prototype.syncDateRanges=function(){var e=0;return this.groups.forEach((function(t){var n=t.dayRanges[0].firstSlot;n&&(e=Math.max(n.rect.height-n.padding,e))})),this.groups.forEach((function(t){t.dayRanges[0].setSlotsHeight(e)})),e},t.prototype.forEachGroup=function(e){this.groups.forEach(e)},t.prototype.forEachSlot=function(e){this.groups.forEach((function(t){t.dayRanges.forEach((function(t){t.slots.forEach((function(t){return e(t)}))})),t.timeRanges.forEach((function(t){t.slots.forEach((function(t){return e(t)}))}))}))},t.prototype.createGroup=function(e){return new f(e)},t.prototype.slotByIndex=function(e,t){void 0===t&&(t=!1);var n=e.split(":").map((function(e){return parseInt(e,10)})),r=n[0],i=n[1],o=n[2];return this.groups[r][t?"dayRanges":"timeRanges"][i].slots[o]},t.prototype.slotByPosition=function(e,t,n,r){var i;if(n){if(this.groups.find((function(t){return i=t.dayRanges.find((function(t){return c.rectContainsX(t.rect,e)}))})),i)return i.slots.find((function(t){return c.rectContainsX(t.rect,e)}))}else if(this.groups.find((function(n){return r&&(i=n.dayRanges.find((function(n){return c.rectContains(n.rect,e,t)}))),i||(i=n.timeRanges.find((function(n){return c.rectContains(n.rect,e,t)}))),i})),i)return i.slots.find((function(n){return c.rectContains(n.rect,e,t)}))},t.prototype.groupSlotByPosition=function(e,t,n){var r,i=this.groups[e.id.resourceIndex];if(r=e.isDaySlot?i.dayRanges.find((function(e){return c.rectContains(e.rect,t,n)})):i.timeRanges.find((function(e){return c.rectContains(e.rect,t,n)})))return r.slots.find((function(e){return c.rectContains(e.rect,t,n)}))},t.prototype.dragRanges=function(e,t,n){var r,i=new Date(e.start.getTime()-t.start),a=new Date(e.start.getTime()+t.end),s=this.groups[e.id.resourceIndex];if(n){var c=[];s.timeRanges.forEach((function(e){var t=e.slots.filter((function(e){return o.intersects(i,a,e.start,e.end)}));t.length&&c.push(t)}));var l=c[c.length-1];r=[c[0][0],l[l.length-1]]}else r=s.slotRange(e).slots.filter((function(e){return o.intersects(i,a,e.start,e.end)}));return{start:i,end:a,ranges:[r]}},t.prototype.resizeRanges=function(e,t,n,r){var i,a,s=this.groups[e.id.resourceIndex],l=t.isAllDay?s.dayRanges:s.timeRanges,d=[],u=t.start.toUTCDate(),p=t.end.toUTCDate();if(n){var h=e.start.getTime()+r.start;a=u.getTime()===p.getTime()?this.findDateSlot(p,l,!0).end:p,i=h>=p.getTime()?t.isAllDay?new Date(Math.min(c.dateWithTime(p,u).getTime(),p.getTime())):this.findDateSlot(a,l).start:r.start&&t.isAllDay?new Date(h):new Date(e.start.getTime())}else i=u,a=e.start.getTime()<=i.getTime()?t.isAllDay?new Date(Math.max(c.dateWithTime(u,p).getTime(),u.getTime())):this.findDateSlot(i,l,!0).end:r.end&&t.isAllDay?new Date(e.start.getTime()+r.end):e.end;return l.forEach((function(e){var t=e.slots.filter((function(e){return o.intersects(i,a,e.start,e.end)}));t.length&&d.push(t)})),{start:i,end:a,ranges:d}},t.prototype.timePosition=function(e,t,n){var r=this.groups[t].timeRanges.find((function(t){return c.dateInRange(e,t.start,t.end)}));if(r){var i=r.slots.find((function(t){return c.dateInRange(e,t.start,t.end)}));if(i){var o=(n?i.height:i.width)*((e.getTime()-i.start.getTime())/(i.end.getTime()-i.start.getTime()));return n?i.rect.top+o:i.rect.left+o}}},t.prototype.findDateSlot=function(e,t,n){var r;return t.forEach((function(t){var i=n?t.slots.filter((function(t){return o.intersects(e,e,t.start,t.end)})):t.slots.filter((function(t){return c.dateInRange(e,t.start,t.end)}));i.length&&(r=i[0])})),r},t}(s.BaseSlotService);t.DayTimeSlotService=v},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.sender=e,Object.assign(this,t)};t.EditEventBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.sender=e,Object.assign(this,t)};t.SlotDragEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerToolbarTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.ToolbarTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerAgendaDateTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.AgendaDateTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerAgendaTimeTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.AgendaTimeTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerAllDayEventTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.AllDayEventTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerAllDaySlotTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.AllDaySlotTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerDateHeaderTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.DateHeaderTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerEventTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.EventTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerGroupHeaderTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.GroupHeaderTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerMajorTimeHeaderTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.MajorTimeHeaderTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerMinorTimeHeaderTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.MinorTimeHeaderTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerMonthDaySlotTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.MonthDaySlotTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSchedulerTimeSlotTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.TimeSlotTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.templateRef=e}return r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"autoFocusedElement",void 0),e=r.__decorate([i.Directive({selector:"[kendoSchedulerEditDialogTemplate]"}),r.__param(0,i.Optional()),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.EditDialogTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(){this.changes=new i.EventEmitter}return e=r.__decorate([i.Injectable()],e)}();t.LocalDataChangesService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(75),a=n(2),s=n(13),c=n(28),l=n(9),d=function(){function e(e,t,n,r,i){this.dialogService=e,this.localization=t,this.changeDetector=n,this.focusService=r,this.viewState=i,this.isOpen=!1}return e.prototype.openRemoveConfirmationDialog=function(){var e=this,t=this.dialogService.open({title:this.textFor("deleteDialogTitle"),content:this.textFor("deleteConfirmation"),actions:[{text:this.textFor("cancel"),value:!1},{text:this.textFor("destroy"),value:!0}],appendTo:this.container,autoFocusedElement:"button:nth-child(2)"});return this.isOpen=!0,this.changeDetector.markForCheck(),t.result.pipe(s.map((function(t){return e.isOpen=!1,t instanceof o.DialogCloseResult?(e.focusService.focus(),!1):(e.viewState.layoutEnd.pipe(s.take(1)).subscribe((function(){return e.focusService.focus()})),t.value)})))},e.prototype.openRecurringConfirmationDialog=function(e){var t=this,n=this.dialogService.open({actions:[{text:0===e?this.textFor("editOccurrence"):this.textFor("deleteOccurrence"),value:1},{text:0===e?this.textFor("editSeries"):this.textFor("deleteSeries"),value:2}],appendTo:this.container,autoFocusedElement:"button:nth-child(1)",content:0===e?this.textFor("editRecurringConfirmation"):this.textFor("deleteRecurringConfirmation"),title:0===e?this.textFor("editRecurringDialogTitle"):this.textFor("deleteRecurringDialogTitle")});return this.isOpen=!0,this.changeDetector.markForCheck(),n.result.pipe(s.map((function(e){if(t.isOpen=!1,t.focusService.focus(),!(e instanceof o.DialogCloseResult))return e.value})))},e.prototype.textFor=function(e){return this.localization.get(e)},e=r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[o.DialogService,a.LocalizationService,i.ChangeDetectorRef,c.FocusService,l.ViewStateService])],e)}();t.DialogsService=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(){this.focus=new i.EventEmitter,this.focusIn=new i.EventEmitter,this.focusOut=new i.EventEmitter,this.click=new i.EventEmitter,this.keydown=new i.EventEmitter,this.windowBlur=new i.EventEmitter}return e=r.__decorate([i.Injectable()],e)}();t.DomEventsService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),a=n(51),s=n(11),c=n(10),l=n(9),d=n(22),u=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.selectedDateFormat="{0:D} - {1:D}",o.selectedShortDateFormat="{0:d} - {1:d}",o.numberOfDays=7,o.name="agenda",o}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("agendaViewTitle")},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedShortDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"numberOfDays",void 0),r.__decorate([i.ContentChild(d.EventTemplateDirective,{static:!1}),r.__metadata("design:type",d.EventTemplateDirective)],t.prototype,"eventTemplate",void 0),r.__decorate([i.ContentChild(d.AgendaTimeTemplateDirective,{static:!1}),r.__metadata("design:type",d.AgendaTimeTemplateDirective)],t.prototype,"agendaTimeTemplate",void 0),r.__decorate([i.ContentChild(d.AgendaDateTemplateDirective,{static:!1}),r.__metadata("design:type",d.AgendaDateTemplateDirective)],t.prototype,"agendaDateTemplate",void 0),t=n=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-agenda-view",providers:[{provide:s.SchedulerView,useExisting:i.forwardRef((function(){return n}))}],template:'\n <ng-template #content>\n <agenda-view-internal\n [numberOfDays]="numberOfDays"\n [eventTemplate]="eventTemplate?.templateRef"\n [slotClass]="viewSlotClass"\n [eventClass]="viewEventClass"\n [eventStyles]="viewEventStyles"\n [agendaTimeTemplate]="agendaTimeTemplate?.templateRef"\n [agendaDateTemplate]="agendaDateTemplate?.templateRef"\n [selectedDateFormat]="selectedDateFormat"\n [selectedShortDateFormat]="selectedShortDateFormat">\n </agenda-view-internal>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[o.LocalizationService,i.ChangeDetectorRef,c.ViewContextService,l.ViewStateService])],t)}(a.ConfigurationViewBase);t.AgendaViewComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(11),a=n(22),s=n(3),c=function(e){return null},l=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.localization=t,o.changeDetector=n,o.viewContext=r,o.viewState=i,o.schedulerOptions={},o.subs=o.localization.changes.subscribe((function(e){e.rtl;n.markForCheck()})),o.subs.add(o.viewContext.optionsChange.subscribe(o.optionsChange.bind(o))),o}return r.__extends(t,e),Object.defineProperty(t.prototype,"viewSlotClass",{get:function(){return s.isPresent(this.slotClass)?this.slotClass:this.schedulerOptions.slotClass||c},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewEventClass",{get:function(){return s.isPresent(this.eventClass)?this.eventClass:this.schedulerOptions.eventClass},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewEventStyles",{get:function(){return s.isPresent(this.eventStyles)?this.eventStyles:this.schedulerOptions.eventStyles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewWeekStart",{get:function(){return this.schedulerOptions.weekStart},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this.viewState.notifyOptionsChange()},t.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},t.prototype.optionsChange=function(e){this.schedulerOptions=e},r.__decorate([i.Input(),r.__metadata("design:type",Function)],t.prototype,"slotClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],t.prototype,"eventClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],t.prototype,"eventStyles",void 0),r.__decorate([i.ViewChild("content",{static:!0}),r.__metadata("design:type",i.TemplateRef)],t.prototype,"template",void 0),r.__decorate([i.ContentChild(a.EventTemplateDirective,{static:!1}),r.__metadata("design:type",a.EventTemplateDirective)],t.prototype,"eventTemplate",void 0),r.__decorate([i.ContentChild(a.GroupHeaderTemplateDirective,{static:!1}),r.__metadata("design:type",a.GroupHeaderTemplateDirective)],t.prototype,"groupHeaderTemplate",void 0),t}(o.SchedulerView);t.ConfigurationViewBase=l},function(e,t){e.exports=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(52),o=n(5),a=n(83),s=n(84),c=n(18),l=function(){function e(e){this.index=e,this.slotMap=new a.ItemMap,this.itemMap=new a.ItemMap}return Object.defineProperty(e.prototype,"slots",{get:function(){return this.slotMap.toArray()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this.itemMap.toArray()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){var e=this.slotMap.first;return e?e.start:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){var e=this.slotMap.last;return e?o.addUTCDays(e.end,1):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasSlots",{get:function(){return this.slotMap.count>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasItems",{get:function(){return this.itemMap.count>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstSlot",{get:function(){return this.slotMap.first},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastSlot",{get:function(){return this.slotMap.last},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rect",{get:function(){var e=this.firstSlot.rect,t=this.lastSlot.rect;return{left:e.left,top:e.top,width:t.left-e.left+t.width,height:t.top-e.top+t.height}},enumerable:!0,configurable:!0}),e.prototype.registerItem=function(e){this.itemMap.addItem(e.item.index,e)},e.prototype.unregisterItem=function(e,t){this.itemMap.removeItem(t,e)},e.prototype.registerSlot=function(e){this.slotMap.addItem(e.id.index,e)},e.prototype.unregisterSlot=function(e){this.slotMap.removeItem(e.id.index,e)},e.prototype.layout=function(e){if(this.hasItems){var t=this.items,n=i.orderBy(t,[{field:"item.startTime",dir:"asc"},{field:"item.endTime",dir:"desc"}]),r={},a=this.slots;n.forEach((function(t){return a.filter((function(e){return o.intersects(t.item.startTime,t.item.endTime,e.start,e.end)})).forEach((function(n){var i=r[n.key]=r[n.key]||{events:[],height:n.linkHeight};i.slot=n;var a=n.rect,s=t.item.data[t.resourceIndex];s.rowIndex=o.findRowIndex(i.events,s),i.height+e+2+13>a.height||s.hidden?(s.hidden=!0,n.showMore({width:a.width,left:a.left,top:a.top+n.linkHeight+s.rowIndex*(e+2)})):(i.events[s.rowIndex]=t,t.rect||(t.rect={top:a.top+n.linkHeight+s.rowIndex*(e+2),left:a.left,height:e,width:0}),t.rect.width+=a.width+c.BORDER_WIDTH,i.height+=e+2)}))})),n.forEach((function(e){e.rect&&(e.rect.width-=c.BORDER_WIDTH),e.reflow()}))}},e}();t.SlotRange=l;var d=function(){function e(e){this.index=e,this.dayRanges=[]}return Object.defineProperty(e.prototype,"hasSlots",{get:function(){return Boolean(this.dayRanges.find((function(e){return e&&e.hasSlots})))},enumerable:!0,configurable:!0}),e.prototype.registerSlot=function(e){this.slotRange(e).registerSlot(e)},e.prototype.unregisterSlot=function(e){var t=this.dayRanges[e.id.rangeIndex];t.unregisterSlot(e),t.hasSlots||delete this.dayRanges[e.id.rangeIndex]},e.prototype.registerItem=function(e){this.dayRanges[e.rangeIndex].registerItem(e)},e.prototype.unregisterItem=function(e,t){var n=this.dayRanges[t.rangeIndex];n&&n.unregisterItem(e,t.index)},e.prototype.slotRange=function(e){var t=this.dayRanges,n=e.id.rangeIndex;return t[n]||(t[n]=new l(n)),t[n]},e.prototype.forEachRange=function(e){for(var t=0;t<this.dayRanges.length;t++)e(this.dayRanges[t])},e.prototype.cleanRanges=function(){this.dayRanges=this.dayRanges.filter((function(e){return Boolean(e)}))},e}();t.MonthResourceGroup=d;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.layout=function(e){this.groups.forEach((function(t){return t.forEachRange((function(t){return t.layout(e)}))}))},t.prototype.slotByIndex=function(e){var t=e.split(":").map((function(e){return parseInt(e,10)})),n=t[0],r=t[1],i=t[2];return this.groups[n].dayRanges[r].slots[i]},t.prototype.forEachSlot=function(e){this.groups.forEach((function(t){t.dayRanges.forEach((function(t){t.slots.forEach((function(t){return e(t)}))}))}))},t.prototype.forEachItem=function(e){this.groups.forEach((function(t){t.dayRanges.forEach((function(t){t.items.forEach((function(t){return e(t)}))}))}))},t.prototype.createGroup=function(e){return new d(e)},t.prototype.invalidate=function(){e.prototype.invalidate.call(this),this.forEachItem((function(e){var t=e.item.data;Object.keys(t).forEach((function(e){t[e].hidden=!1}))}))},t.prototype.slotByPosition=function(e,t){var n;if(this.groups.find((function(r){return n=r.dayRanges.find((function(n){return o.rectContains(n.rect,e,t)}))})),n)return n.slots.find((function(n){return o.rectContains(n.rect,e,t)}))},t.prototype.dragRanges=function(e,t){var n=new Date(e.start.getTime()-t.start),r=new Date(e.start.getTime()+t.end),i=this.groups[e.id.resourceIndex],a=[];return i.dayRanges.forEach((function(e){var t=e.slots.filter((function(e){return o.intersects(n,r,e.start,e.end)}));t.length&&a.push(t)})),{start:n,end:r,ranges:a}},t.prototype.groupSlotByPosition=function(e,t,n){var r=this.groups[e.id.resourceIndex].dayRanges.find((function(e){return o.rectContains(e.rect,t,n)}));if(r)return r.slots.find((function(e){return o.rectContains(e.rect,t,n)}))},t.prototype.resizeRanges=function(e,t,n,r){var i,a,s=this.groups[t.resources[0].leafIdx],c=[],l=t.start.toUTCDate(),d=t.end.toUTCDate();return n?((i=e.start.getTime()+r.start)>d.getTime()&&(i=new Date(Math.min(o.dateWithTime(d,l).getTime(),d.getTime()))),a=d):(i=l,(a=e.start.getTime()+r.end)<i.getTime()&&(a=new Date(Math.max(o.dateWithTime(l,d).getTime(),i.getTime())))),s.dayRanges.forEach((function(e){var t=e.slots.filter((function(e){return o.intersects(i,a,e.start,e.end)}));t.length&&c.push(t)})),{start:new Date(i),end:new Date(a),ranges:c}},t}(s.BaseSlotService);t.MonthSlotService=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e){this.changeDetector=e,this.changeDetector.detach()}return e.prototype.detectChanges=function(){this.changeDetector.detectChanges()},r.__decorate([i.ContentChild(i.TemplateRef,{static:!1}),r.__metadata("design:type",i.TemplateRef)],e.prototype,"hintTemplate",void 0),e=r.__decorate([i.Component({selector:"kendo-hint-container",template:'\n <ng-container [ngTemplateOutlet]="hintTemplate">\n </ng-container>\n '}),r.__metadata("design:paramtypes",[i.ChangeDetectorRef])],e)}();t.HintContainerComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),a=n(11),s=n(89),c=n(10),l=n(9),d=n(22),u=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.selectedDateFormat="{0:D}",o.selectedShortDateFormat="{0:d}",o.name="day",o}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("dayViewTitle")},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedShortDateFormat",void 0),r.__decorate([i.ContentChild(d.AllDaySlotTemplateDirective,{static:!1}),r.__metadata("design:type",d.AllDaySlotTemplateDirective)],t.prototype,"allDaySlotTemplate",void 0),r.__decorate([i.ContentChild(d.AllDayEventTemplateDirective,{static:!1}),r.__metadata("design:type",d.AllDayEventTemplateDirective)],t.prototype,"allDayEventTemplate",void 0),r.__decorate([i.ContentChild(d.MinorTimeHeaderTemplateDirective,{static:!1}),r.__metadata("design:type",d.MinorTimeHeaderTemplateDirective)],t.prototype,"minorTimeHeaderTemplate",void 0),r.__decorate([i.ContentChild(d.MajorTimeHeaderTemplateDirective,{static:!1}),r.__metadata("design:type",d.MajorTimeHeaderTemplateDirective)],t.prototype,"majorTimeHeaderTemplate",void 0),t=n=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-day-view",providers:[{provide:a.SchedulerView,useExisting:i.forwardRef((function(){return n}))}],template:'\n <ng-template #content>\n <multi-day-view\n [name]="name"\n [eventHeight]="viewEventHeight"\n [currentTimeMarker]="viewCurrentTimeMarker"\n [showWorkHours]="shouldShowWorkHours"\n [scrollTime]="viewScrollTime"\n [startTime]="viewStartTime"\n [endTime]="viewEndTime"\n [workDayStart]="viewWorkDayStart"\n [workDayEnd]="viewWorkDayEnd"\n [workWeekStart]="viewWorkWeekStart"\n [workWeekEnd]="viewWorkWeekEnd"\n [slotDuration]="viewSlotDuration"\n [slotDivisions]="viewSlotDivisions"\n [slotFill]="viewSlotFill"\n [slotClass]="viewSlotClass"\n [eventClass]="viewEventClass"\n [eventStyles]="viewEventStyles"\n [allDaySlotTemplate]="allDaySlotTemplate?.templateRef"\n [allDayEventTemplate]="allDayEventTemplate?.templateRef"\n [еventTemplate]="eventTemplate?.templateRef"\n [groupHeaderTemplate]="groupHeaderTemplate?.templateRef"\n [timeSlotTemplate]="timeSlotTemplate?.templateRef"\n [minorTimeHeaderTemplate]="minorTimeHeaderTemplate?.templateRef"\n [majorTimeHeaderTemplate]="majorTimeHeaderTemplate?.templateRef"\n [dateHeaderTemplate]="dateHeaderTemplate?.templateRef"\n [selectedDateFormat]="selectedDateFormat"\n [selectedShortDateFormat]="selectedShortDateFormat">\n </multi-day-view>\n <div viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[o.LocalizationService,i.ChangeDetectorRef,c.ViewContextService,l.ViewStateService])],t)}(s.MultiDayViewBase);t.DayViewComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),a=n(11),s=n(89),c=n(7),l=n(10),d=n(9),u=n(4),p=n(22),h=function(e){function t(t,n,r,i,o){var a=e.call(this,n,r,i,o)||this;return a.intl=t,a.selectedDateFormat="{0:D} - {1:D}",a.selectedShortDateFormat="{0:d} - {1:d}",a.name="week",a.getStartDate=a.getStartDate.bind(a),a}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("weekViewTitle")},enumerable:!0,configurable:!0}),t.prototype.getStartDate=function(e){return u.firstDayInWeek(u.getDate(e),this.viewWeekStart)},r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedShortDateFormat",void 0),r.__decorate([i.ContentChild(p.AllDaySlotTemplateDirective,{static:!1}),r.__metadata("design:type",p.AllDaySlotTemplateDirective)],t.prototype,"allDaySlotTemplate",void 0),r.__decorate([i.ContentChild(p.AllDayEventTemplateDirective,{static:!1}),r.__metadata("design:type",p.AllDayEventTemplateDirective)],t.prototype,"allDayEventTemplate",void 0),r.__decorate([i.ContentChild(p.MinorTimeHeaderTemplateDirective,{static:!1}),r.__metadata("design:type",p.MinorTimeHeaderTemplateDirective)],t.prototype,"minorTimeHeaderTemplate",void 0),r.__decorate([i.ContentChild(p.MajorTimeHeaderTemplateDirective,{static:!1}),r.__metadata("design:type",p.MajorTimeHeaderTemplateDirective)],t.prototype,"majorTimeHeaderTemplate",void 0),t=n=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-week-view",providers:[{provide:a.SchedulerView,useExisting:i.forwardRef((function(){return n}))}],template:'\n <ng-template #content>\n <multi-day-view\n [name]="name"\n [numberOfDays]="7"\n [getStartDate]="getStartDate"\n [eventHeight]="viewEventHeight"\n [currentTimeMarker]="viewCurrentTimeMarker"\n [showWorkHours]="shouldShowWorkHours"\n [scrollTime]="viewScrollTime"\n [startTime]="viewStartTime"\n [endTime]="viewEndTime"\n [workDayStart]="viewWorkDayStart"\n [workDayEnd]="viewWorkDayEnd"\n [workWeekStart]="viewWorkWeekStart"\n [workWeekEnd]="viewWorkWeekEnd"\n [weekStart]="viewWeekStart"\n [slotDuration]="viewSlotDuration"\n [slotDivisions]="viewSlotDivisions"\n [slotFill]="viewSlotFill"\n [slotClass]="viewSlotClass"\n [eventClass]="viewEventClass"\n [eventStyles]="viewEventStyles"\n [allDaySlotTemplate]="allDaySlotTemplate?.templateRef"\n [allDayEventTemplate]="allDayEventTemplate?.templateRef"\n [еventTemplate]="eventTemplate?.templateRef"\n [groupHeaderTemplate]="groupHeaderTemplate?.templateRef"\n [timeSlotTemplate]="timeSlotTemplate?.templateRef"\n [minorTimeHeaderTemplate]="minorTimeHeaderTemplate?.templateRef"\n [majorTimeHeaderTemplate]="majorTimeHeaderTemplate?.templateRef"\n [dateHeaderTemplate]="dateHeaderTemplate?.templateRef"\n [selectedDateFormat]="selectedDateFormat"\n [selectedShortDateFormat]="selectedShortDateFormat">\n </multi-day-view>\n <div viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[c.IntlService,o.LocalizationService,i.ChangeDetectorRef,l.ViewContextService,d.ViewStateService])],t)}(s.MultiDayViewBase);t.WeekViewComponent=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(90),a=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return r.__extends(t,e),Object.defineProperty(t.prototype,"viewColumnWidth",{get:function(){return this.optionValue("columnWidth")},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"columnWidth",void 0),t}(o.DayTimeViewBase);t.TimelineBase=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.sender=e,Object.assign(this,t)};t.SlotClickEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.sender=e,Object.assign(this,t)};t.EventClickEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.sender=e,Object.assign(this,t)};t.EventKeydownEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t,n){var r=e.call(this)||this;return r.sender=t,Object.assign(r,n),r}return r.__extends(t,e),t}(n(12).PreventableEvent);t.DragEndEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t,n){var r=e.call(this)||this;return r.sender=t,Object.assign(r,n),r}return r.__extends(t,e),t}(n(12).PreventableEvent);t.DragEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t,n){var r=e.call(this)||this;return r.sender=t,Object.assign(r,n),r}return r.__extends(t,e),t}(n(12).PreventableEvent);t.DragStartEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t,n){var r=e.call(this)||this;return r.sender=t,Object.assign(r,n),r}return r.__extends(t,e),t}(n(12).PreventableEvent);t.RemoveEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t,n){var r=e.call(this)||this;return r.sender=t,Object.assign(r,n),r}return r.__extends(t,e),t}(n(12).PreventableEvent);t.ResizeEndEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t,n){var r=e.call(this)||this;return r.sender=t,Object.assign(r,n),r}return r.__extends(t,e),t}(n(12).PreventableEvent);t.ResizeEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t,n){var r=e.call(this)||this;return r.sender=t,Object.assign(r,n),r}return r.__extends(t,e),t}(n(12).PreventableEvent);t.ResizeStartEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t,n){var r=e.call(this)||this;return r.sender=t,Object.assign(r,n),r}return r.__extends(t,e),t}(n(12).PreventableEvent);t.SlotDragStartEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(n(33).SlotDragEvent);t.SlotDragEndEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){};t.IsSlotSelectedArgs=r,function(e){e.initDragSelect="initDragSelect",e.dragSelect="dragSelect",e.refreshSlotSelection="refreshSlotSelection",e.dragSelectRelease="dragSelectRelease"}(t.slotDragEventName||(t.slotDragEventName={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),a=n(13),s=n(3),c=function(){function e(e){this.ngZone=e,this.changes=new i.EventEmitter,this.changedSource=new o.Subject,this.changed=this.changedSource.asObservable().pipe(a.debounceTime(0))}return e.prototype.endEdit=function(){var e=this.hasNewEvent?this.newEventGroup.group:this.editedEvent.formGroup;this.changes.emit({action:"cancel",formGroup:e})},e.prototype.removeEvent=function(e){this.changes.emit({action:"remove",dataItem:e})},e.prototype.addEvent=function(e){this.newEventGroup={formGroup:e},this.onChanged()},e.prototype.editEvent=function(e,t,n){void 0===t&&(t=void 0),this.editedEvent={dataItem:e,formGroup:t,mode:n},this.onChanged()},e.prototype.close=function(){this.newEventGroup=this.editedEvent=null,this.onChanged()},e.prototype.save=function(){var e=this.context,t=e.dataItem,n=e.formGroup;this.changes.emit({action:"save",dataItem:t,formGroup:n,isNew:this.hasNewEvent,mode:this.occurrenceEditMode})},e.prototype.isEditing=function(){return s.isPresent(this.context)},Object.defineProperty(e.prototype,"occurrenceEditMode",{get:function(){return this.hasNewEvent?2:this.editedEvent.mode||0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasNewEvent",{get:function(){return s.isPresent(this.newEventGroup)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"newEvent",{get:function(){return this.hasNewEvent?this.newEventGroup.group.value:{}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.hasNewEvent?this.newEventGroup:this.editedEvent},enumerable:!0,configurable:!0}),e.prototype.onChanged=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.changedSource.next()}))},e=r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[i.NgZone])],e)}();t.EditService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,i={};i[void 0]=function(){},t.getter=function(e){if(i[e])return i[e];var t=[];return e.replace(r,(function(e,n,r,i){t.push(void 0!==n?n:r||i)})),i[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},i[e]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,i={};i[void 0]=function(e){return e},t.setter=function(e){if(i[e])return i[e];var t=[];return e.replace(r,(function(e,n,r,i){t.push(void 0!==n?n:r||i)})),i[e]=function(e,n){for(var r=e,i=t.length-1,o=0;o<i&&r;o++)r=r[t[o]]=r[t[o]]||{};r[t[i]]=n},i[e]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OCCURRENCE_ID=0},function(e,t){e.exports=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),a=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}return r.__extends(t,e),t=r.__decorate([r.__param(0,i.Inject(o.L10N_PREFIX)),r.__param(1,i.Optional()),r.__param(2,i.Optional()),r.__param(2,i.Inject(o.RTL)),r.__metadata("design:paramtypes",[String,o.MessageService,Boolean])],t)}(o.LocalizationService);t.SchedulerLocalizationService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultModelFields={id:"id",start:"start",startTimezone:"startTimezone",end:"end",endTimezone:"endTimezone",isAllDay:"isAllDay",title:"title",description:"description",recurrenceRule:"recurrenceRule",recurrenceId:"recurrenceId",recurrenceExceptions:"recurrenceExceptions"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(n(12).PreventableEvent);t.PDFExportEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(e,t){this.element=e,this.renderer=t,this.hostClasses=!0}return Object.defineProperty(e.prototype,"display",{get:function(){return this.loading||this.force?"block":"none"},enumerable:!0,configurable:!0}),e.prototype.toggle=function(e){this.force=e,this.renderer.setStyle(this.element.nativeElement,"display",this.display)},r.__decorate([i.HostBinding("class.k-loading-mask"),r.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"loading",void 0),r.__decorate([i.HostBinding("style.display"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"display",null),e=r.__decorate([i.Component({selector:"[kendoSchedulerLoading]",template:'\n <div class="k-loading-image"></div>\n <div class="k-loading-color"></div>\n '}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2])],e)}();t.LoadingComponent=o},function(e,t){e.exports=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"allEvents",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"allDay",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"dateHeader",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"timeHeader",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"eventHeader",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"deleteTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"nextTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"previousTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"today",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"calendarToday",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"showFullDay",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"showWorkDay",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"dayViewTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"multiDayViewTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"weekViewTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"workWeekViewTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"monthViewTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"timelineViewTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"timelineWeekViewTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"timelineMonthViewTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"agendaViewTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"cancel",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"save",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editorEventTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editorEventStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editorEventStartTimeZone",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editorEventEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editorEventEndTimeZone",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editorEventAllDay",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editorEventDescription",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editorEventSeparateTimeZones",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editorEventTimeZone",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorRepeat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorDailyInterval",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorDailyRepeatEvery",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorWeeklyInterval",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorWeeklyRepeatEvery",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorWeeklyRepeatOn",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorMonthlyDay",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorMonthlyInterval",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorMonthlyRepeatEvery",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorMonthlyRepeatOn",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorYearlyOf",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorYearlyRepeatEvery",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorYearlyRepeatOn",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorYearlyInterval",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorFrequenciesDaily",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorFrequenciesMonthly",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorFrequenciesNever",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorFrequenciesWeekly",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorFrequenciesYearly",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorOffsetPositionsFirst",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorOffsetPositionsSecond",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorOffsetPositionsThird",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorOffsetPositionsFourth",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorOffsetPositionsLast",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorWeekdaysDay",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorWeekdaysWeekday",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorWeekdaysWeekendday",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorEndAfter",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorEndOccurrence",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorEndLabel",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorEndNever",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"recurrenceEditorEndOn",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editorTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"destroy",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"deleteConfirmation",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editRecurringConfirmation",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editOccurrence",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editSeries",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"deleteRecurringConfirmation",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"deleteOccurrence",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"deleteSeries",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"deleteDialogTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"deleteRecurringDialogTitle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"editRecurringDialogTitle",void 0),t}(n(2).ComponentMessages);t.Messages=o},function(e,t){e.exports=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.count=0,this.items={}}return Object.defineProperty(e.prototype,"first",{get:function(){if(this.count>0)return this.items[Object.keys(this.items)[0]]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){if(this.count>0){var e=Object.keys(this.items);return this.items[e[e.length-1]]}},enumerable:!0,configurable:!0}),e.prototype.addItem=function(e,t){this.items[e]||this.count++,this.items[e]=t},e.prototype.removeItem=function(e,t){this.items[e]===t&&(delete this.items[e],this.count--)},e.prototype.toArray=function(){var e=this;return Object.keys(this.items).map((function(t){return e.items[t]}))},e}();t.ItemMap=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(){this.containerSize=0,this.slotsChange=new r.EventEmitter,this.groups=[]}return e.prototype.registerItem=function(e){this.itemGroup(e).registerItem(e)},e.prototype.unregisterItem=function(e,t){t=t||{index:e.index,resourceIndex:e.resourceIndex,rangeIndex:e.rangeIndex};var n=this.groups[t.resourceIndex];n&&n.unregisterItem(e,t)},e.prototype.registerSlot=function(e){this.slotGroup(e).registerSlot(e)},e.prototype.unregisterSlot=function(e){var t=this.groups[e.id.resourceIndex];t&&t.unregisterSlot(e)},e.prototype.invalidate=function(){this.clearEmptyGroups(),this.cleanRanges(),this.slotsChange.emit(),this.forEachSlot((function(e){e.invalidate()}))},e.prototype.cleanRanges=function(){this.groups.forEach((function(e){e.cleanRanges()}))},e.prototype.clearEmptyGroups=function(){for(var e=this.groups,t=this.groups.length-1;t>0&&!e[t].hasSlots;)e.splice(t,1),t--},e.prototype.itemGroup=function(e){var t=e.resourceIndex;return this.groups[t]||(this.groups[t]=this.createGroup(t)),this.groups[t]},e.prototype.slotGroup=function(e){var t=e.id.resourceIndex;return this.groups[t]||(this.groups[t]=this.createGroup(t)),this.groups[t]},e}();t.BaseSlotService=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(6),a=n(8),s=n(5),c=n(4),l=function(){function e(e,t,n,r,i,o){this.slotService=e,this.localization=t,this.focusService=n,this.element=r,this.renderer=i,this.localeId=o,this.className=!0,this.subs=new a.Subscription}return Object.defineProperty(e.prototype,"taskIndex",{get:function(){return this.item.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touchAction",{get:function(){return this.editable&&!1!==this.editable.drag?"none":null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"eventTitle",{get:function(){var e=c.toLocalDate(this.item.startTime),t=c.toLocalDate(this.item.endTime);return s.formatEventTime(e,t,this.item.isAllDay,this.localeId)+", "+this.item.event.title},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"deleteMessage",{get:function(){return this.localization.get("deleteTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resizable",{get:function(){return this.editable&&!1!==this.editable.resize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"removable",{get:function(){return this.editable&&!1!==this.editable.remove},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRecurrence",{get:function(){return s.isRecurrence(this.item)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRecurrenceException",{get:function(){return s.isRecurrenceException(this.item)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nativeElement",{get:function(){if(this.element)return this.element.nativeElement},enumerable:!0,configurable:!0}),e.prototype.setStyles=function(e){var t=this.nativeElement;if(t)for(var n in e)e.hasOwnProperty(n)&&this.renderer.setStyle(t,n,e[n])},e.prototype.toggle=function(e){this.setStyles({display:e?"block":"none"})},e.prototype.reflow=function(){var e=this.rect;e&&this.setStyles({left:this.localization.rtl?"":e.left+"px",right:this.localization.rtl?e.left+"px":"",top:e.top+"px",width:e.width+"px",height:e.height+"px",display:"block"})},e.prototype.ngOnInit=function(){var e=this;this.dragHint||this.subs.add(this.slotService.slotsChange.subscribe((function(){e.rect=null,e.setStyles({display:"none",width:0,left:0});var t={index:e.index,resourceIndex:e.resourceIndex,rangeIndex:e.rangeIndex};e.slotService.unregisterItem(e,t),e.resourceIndex>=0&&e.slotService.registerItem(e)})))},e.prototype.ngOnChanges=function(e){if(!this.dragHint&&o.anyChanged(["index","resourceIndex","rangeIndex"],e)){var t=e.resourceIndex,n=e.index,r=e.rangeIndex,i=t?t.previousValue:this.resourceIndex,a={index:n?n.previousValue:this.index,resourceIndex:i,rangeIndex:r?r.previousValue:this.rangeIndex};this.slotService.unregisterItem(this,a),this.resourceIndex>=0?(this.slotService.registerItem(this),this.toggle(!0)):this.toggle(!1)}},e.prototype.ngOnDestroy=function(){this.dragHint||(this.slotService.unregisterItem(this),this.subs.unsubscribe())},r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"item",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"resourceIndex",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"rangeIndex",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"index",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],e.prototype,"eventTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"editable",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"dragHint",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],e.prototype,"resources",void 0),r.__decorate([i.HostBinding("class.k-event"),r.__metadata("design:type",Boolean)],e.prototype,"className",void 0),r.__decorate([i.HostBinding("attr.data-task-index"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"taskIndex",null),r.__decorate([i.HostBinding("style.touch-action"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"touchAction",null),r.__decorate([i.HostBinding("attr.aria-label"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"eventTitle",null),e}();t.BaseViewItem=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(6),a=n(4),s=n(8),c=n(13),l=n(17),d=n(3),u=n(5),p=n(18),h=n(140),m=n(54),g=n(70),f=n(68),v=function(){function e(e,t,n,r,i,o,a,c,l,u){this.viewContext=e,this.viewState=t,this.intl=n,this.slotService=r,this.zone=i,this.renderer=o,this.element=a,this.pdfService=c,this.localization=l,this.cdr=u,this.items=new s.BehaviorSubject(null),this.horizontalResources=[],this.verticalResources=[],this.dragHints=[],this.resizeHints=[],this.getField=d.getField,this.changes=new s.BehaviorSubject(null),this.viewRangeChange=new s.BehaviorSubject(null),this.subs=new s.Subscription,this.groupedResources=[],this.spans=[],this.domEvents=[],this.resourcesCache={},this.dragSelecting=null,this.dragSelectOrigin=null,this.autoHeight=!1,this.rtl=!1,this.isSlotSelected=function(){return!1},this.setSlotClass=this.setSlotClass.bind(this),this.setHintClass=this.setHintClass.bind(this),this.weekStart=n.firstDay()}return Object.defineProperty(e.prototype,"eventTemplateRef",{get:function(){return this.еventTemplate||(this.schedulerEventTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupHeaderTemplateRef",{get:function(){return this.groupHeaderTemplate||(this.schedulerGroupHeaderTemplate||{}).templateRef},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t=this.updateView.bind(this);this.resourcesByIndex=this.resourcesByIndex.bind(this),this.subs.add(this.viewContext.selectedDate.subscribe(this.onSelectDate.bind(this))),this.subs.add(this.viewContext.action.subscribe(this.onAction.bind(this))),this.subs.add(this.viewContext.execute.subscribe(this.execute.bind(this))),this.subs.add(this.viewContext.resize.subscribe((function(){e.toggleElement(!1),e.updateView()}))),this.subs.add(this.viewContext.optionsChange.subscribe(this.optionsChange.bind(this))),this.subs.add(this.changes.subscribe((function(){e.toggleElement(!1)}))),this.subs.add(s.combineLatest(this.viewContext.items,this.viewState.dateRange,this.viewRangeChange).pipe(c.map((function(t){var n=t[0],r=t[1];return e.createTasks(n,r)}))).subscribe((function(t){e.tasks=t,e.assignResources(),e.onTasksChange()}))),this.subs.add(s.combineLatest(this.items,this.changes,this.localization.changes).pipe(c.switchMap((function(){return e.onStable()}))).subscribe(t)),this.subs.add(this.pdfService.createElement.subscribe(this.createPDFElement.bind(this)))},e.prototype.ngOnChanges=function(e){o.anyChanged(["selectedDateFormat","selectedShortDateFormat"],e)&&this.viewState.notifyDateRange(this.dateRange(this.selectedDate)),e.eventHeight&&this.changes.next(null)},e.prototype.ngAfterViewInit=function(){var e=this;this.bindEvents(),this.subs.add(this.localization.changes.subscribe((function(t){var n=t.rtl;e.rtl=n})))},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe(),this.domEvents.forEach((function(e){return e()})),this.domEvents=[],this.draggable&&(this.draggable.destroy(),this.draggable=null)},e.prototype.itemIndex=function(e,t){return e},e.prototype.resourcesByIndex=function(e){if(!this.resourcesCache[e]){for(var t=this.taskResources,n=[],r=e,i=0;i<t.length;i++){var o=t[i].data||[],a=Math.floor(r/this.spans[i]);n.push(o[a]),r-=a*this.spans[i]}this.resourcesCache[e]=n}return this.resourcesCache[e]},e.prototype.dragResourcesByIndex=function(e){var t=this.resources||[],n=[];if(this.groupedResources.length)for(var r=this.resourcesByIndex(e).slice(0),i=this.taskResources,o=0;o<i.length;o++){var a=this.resources.indexOf(i[o]);a>=0&&(n[a]=r[o])}for(o=0;o<t.length;o++)n[o]||(n[o]=u.resourceItemByValue(this.dragging.task.event,t[o]));return n},e.prototype.getEventClasses=function(e,t,n){if(this.eventClass)return this.eventClass({event:e.event,resources:t,isAllDay:n})},e.prototype.getEventStyles=function(e,t,n){var r={backgroundColor:t.color,borderColor:t.color};return this.eventStyles&&Object.assign(r,this.eventStyles({event:e.event,resources:t.resources,isAllDay:n})),r},e.prototype.toPlainDate=function(e){return u.toUTCDateTime(this.convertDate(e))},e.prototype.toPlainDateTime=function(e,t){return e&&t?this.toPlainDate(u.dateWithTime(e,t)):null},e.prototype.optionsChange=function(e){this.schedulerEventTemplate=e.eventTemplate,this.schedulerGroupHeaderTemplate=e.groupHeaderTemplate,this.min=e.min,this.max=e.max,this.editable=e.editable,this.timezone=e.timezone,this.selectable=e.selectable,this.isSlotSelected=e.isSlotSelected,e.changes&&!o.anyChanged(["group","resources"],e.changes,!1)&&e.group===this.group&&e.resources===this.resources||(this.group=e.group,this.resources=e.resources,this.groupResources(),this.resourcesCache={},this.tasks&&this.tasks.length&&(this.assignResources(),this.onTasksChange()),this.changes.next(null))},e.prototype.toggleElement=function(e){this.element&&this.renderer.setStyle(this.element.nativeElement,"display",e?"block":"none")},e.prototype.onStable=function(){return this.zone.onStable.asObservable().pipe(c.take(1))},e.prototype.updateView=function(){this.slotService.invalidate(),this.toggleElement(!0),this.reflow(),this.viewState.notifyLayoutEnd(),this.viewState.emitEvent(g.slotDragEventName.refreshSlotSelection)},e.prototype.assignResources=function(){u.assignTasksResources(this.tasks,{taskResources:this.taskResources,hasGroups:this.groupedResources.length>0,allResources:this.resources,spans:this.spans})},e.prototype.bindEvents=function(){var e=this,t=this.content.nativeElement,n=this.element.nativeElement;this.zone.runOutsideAngular((function(){e.times&&e.subs.add(s.merge(s.fromEvent(e.times.nativeElement,"mousewheel"),s.fromEvent(e.times.nativeElement,"DOMMouseScroll")).pipe(c.filter((function(e){return!e.ctrlKey})),c.tap(l.preventLockedScroll(t)),c.map(l.wheelDeltaY)).subscribe((function(e){return t.scrollTop-=e}))),e.subs.add(s.merge(d.fromClick(t),s.fromEvent(t,"contextmenu")).subscribe((function(t){return e.onClick(t)}))),e.subs.add(d.fromDoubleClick(t).subscribe((function(t){return e.onClick(t,"dblclick")}))),e.subs.add(s.fromEvent(n,"keydown").subscribe((function(t){return e.onKeydown(t)}))),e.domEvents.push(e.renderer.listen(t,"scroll",(function(){e.headerWrap&&(e.headerWrap.nativeElement.scrollLeft=t.scrollLeft),e.times&&(e.times.nativeElement.scrollTop=t.scrollTop)}))),e.draggable=new h.default({press:e.onPress.bind(e),drag:e.onDrag.bind(e),release:e.onRelease.bind(e)}),e.draggable.bindTo(n)}))},e.prototype.onPress=function(e){var t=this.editable&&!1!==this.editable.resize,n=this.editable&&!1!==this.editable.drag,r=e.originalEvent.target;if(l.hasClasses(r,"k-resize-handle")){if(!t)return;this.initResize(e)}else if(n){var i=this.targetTask(r);i&&(e.isTouch||e.originalEvent.preventDefault(),this.pressLocation={x:e.pageX,y:e.pageY},this.pressTarget=i)}!this.pressTarget&&this.selectable&&this.initDragSelect(e),this.dragArgs=e},e.prototype.onDrag=function(e){this.resizing?(this.resize(e),this.scrollContainer(this.resize,e)):(this.initDrag(e),this.dragging&&(this.drag(e),e.originalEvent.preventDefault(),this.scrollContainer(this.drag,e)),this.dragSelecting&&this.dragSelect(e)),this.dragArgs=e},e.prototype.onRelease=function(e){clearInterval(this.scrollInterval);var t=this.resizing,n=this.dragging,r=this.dragSelecting;if(t&&(this.emitEvent("resizeEnd",{event:t.task.event,dataItem:t.task.event.dataItem,start:this.convertDate(t.start),end:this.convertDate(t.end)}),this.resizeHints=[]),n&&(this.emitEvent("dragEnd",{event:n.task.event,dataItem:n.task.event.dataItem,start:n.start?this.convertDate(n.start):n.task.start.toLocalDate(),end:n.end?this.convertDate(n.end):n.task.end.toLocalDate(),resources:n.resources,isAllDay:this.draggedIsAllDay(n.task,n.slot)}),this.dragHints=[]),(t||n)&&(this.removeSlotClass(),this.updateHintContainer(),this.resizing=null,this.dragging=null),r){var i=u.normaliseRangeStartAndEnd(this.dragSelectOrigin,this.dragSelecting),o=i.start,a=i.end,s={start:this.convertDate(o),end:this.convertDate(a),isAllDay:this.dragSelecting.isDaySlot,resources:this.resourcesByIndex(this.dragSelecting.id.resourceIndex),originalEvent:e.originalEvent};this.viewState.notifySlotSelectionEnd(s),this.dragSelectOrigin=null,this.dragSelecting=null,this.cdr.markForCheck()}this.container=null,this.dragArgs=null,this.pressLocation=null,this.pressTarget=null},e.prototype.setHintClass=function(e){(this.dragging||this.resizing).hintClass=e},e.prototype.updateHintClass=function(){var e=this.dragging||this.resizing,t=!1;this.hints.forEach((function(n){n.class!==e.hintClass&&(n.class=e.hintClass,t=!0)})),t&&this.updateHintContainer()},e.prototype.removeHintClass=function(){(this.dragging||this.resizing).hintClass=null},e.prototype.setSlotClass=function(e){var t=this.dragging||this.resizing;t.slotClass=e,this.renderer.addClass(t.slot.nativeElement,t.slotClass)},e.prototype.removeSlotClass=function(){var e=this.dragging||this.resizing;e.slotClass&&(this.renderer.removeClass(e.slot.nativeElement,e.slotClass),e.slotClass=null)},Object.defineProperty(e.prototype,"hints",{get:function(){return this.dragging?this.dragHints:this.resizeHints},enumerable:!0,configurable:!0}),e.prototype.initDrag=function(e){if(!this.dragging&&this.pressLocation&&u.pointDistance(this.pressLocation.x,this.pressLocation.y,e.pageX,e.pageY)>=10){var t=this.pressTarget,n=t.task;if(this.emitEvent("dragStart",{event:n.event,dataItem:n.event.dataItem}))return this.pressLocation=null,void(this.pressTarget=null);if(this.updateDragContainer(e),void 0===this.containerOffset)return;var r=this.coordinatesOffset(this.pressLocation.x,this.pressLocation.y),i=r.x,o=r.y,a=this.slotByPosition(Math.ceil(i),Math.ceil(o),this.container);if(!a)return;this.dragging=t,this.dragging.offset={start:a.start.getTime()-n.start.toUTCDate().getTime(),end:n.end.toUTCDate().getTime()-a.start.getTime()},this.dragging.slot=a,this.dragging.startResources=this.dragging.resourceItems=this.dragResourcesByIndex(a.id.resourceIndex),this.dragging.resources=this.resourceValues(n,this.dragging.startResources)}},e.prototype.updateDragContainer=function(e){this.container||(this.container=this.content.nativeElement,this.containerOffset=u.elementOffset(this.container))},e.prototype.drag=function(e){if(this.updateDragContainer(e),this.container){var t=this.coordinatesOffset(e.pageX,e.pageY),n=t.x,r=t.y,i=this.slotByPosition(n,r,this.container);if(i&&(i!==this.dragging.slot||!this.dragHints.length)){var o=this.dragging,a=o.slot,s=o.task,c=this.dragRanges(i),l=c.ranges,d=c.start,p=c.end,h=c.isAllDay,m=void 0,g=void 0;if(a.id.resourceIndex!==i.id.resourceIndex?(m=this.dragResourcesByIndex(i.id.resourceIndex),g=this.resourceValues(s,m)):(m=o.resourceItems,g=o.resources),this.removeSlotClass(),o.start=d,o.end=p,o.slot=i,o.resources=g,o.resourceItems=m,o.hintClass=null,this.emitEvent("drag",{event:s.event,dataItem:s.event.dataItem,start:this.convertDate(d),end:this.convertDate(p),resources:g,isAllDay:h,setHintClass:this.setHintClass,setSlotClass:this.setSlotClass}))return void this.updateHintClass();var f=this.dragResourceColor(s,m),v=this.dragHintClasses();this.dragHints=[];for(var y=0;y<l.length;y++){var _=l[y],b=_[0],S=_[_.length-1],D=this.dragHintSize(b,S),k=b.rect.left,T={top:u.toPx(b.rect.top),left:this.localization.rtl?"":u.toPx(k),right:this.localization.rtl?u.toPx(k):"",width:D.width,height:D.height,backgroundColor:f,borderColor:f};this.eventStyles&&Object.assign(T,this.eventStyles(this.dragHintEventStyleArgs())),this.dragHints.push({item:Object.assign({},this.dragging.task,{startTime:d,endTime:p}),resources:m,class:v,style:T})}this.updateHintContainer()}}},e.prototype.initDragSelect=function(e){if(this.updateDragContainer(e),this.containerOffset){var t=this.coordinatesOffset(e.pageX,e.pageY),n=t.x,r=t.y,i=this.slotByPosition(n,r,this.container);if(i){var o={start:this.convertDate(i.start),end:this.convertDate(i.end),isAllDay:i.isDaySlot,resources:this.resourcesByIndex(i.id.resourceIndex),originalEvent:e.originalEvent},a=new f.SlotDragStartEvent(null,o);this.viewState.notifySlotSelectionStart(a),a.isDefaultPrevented()||(this.dragSelecting=i,this.dragSelectOrigin=i,this.cdr.markForCheck())}}},e.prototype.dragSelect=function(e){var t=this.coordinatesOffset(e.pageX,e.pageY),n=t.x,r=t.y,i=this.slotByPosition(n,r,this.container);if(i&&this.dragSelecting!==i){this.dragSelecting=i;var o=u.normaliseRangeStartAndEnd(this.dragSelectOrigin,this.dragSelecting),a=o.start,s=o.end,c={start:this.convertDate(a),end:this.convertDate(s),isAllDay:i.isDaySlot,resources:this.resourcesByIndex(i.id.resourceIndex),originalEvent:e.originalEvent};this.viewState.notifySlotSelectionDrag(c),this.cdr.markForCheck()}},e.prototype.dragHintClasses=function(){var e=this.dragging.hintClass,t=[];if(e&&t.push(e),this.eventClass){var n=this.eventClass(this.dragHintEventStyleArgs());t=t.concat(u.convertNgClassBindings(n))}return t},e.prototype.dragHintEventStyleArgs=function(){return{event:this.dragging.task.event,resources:this.dragging.resourceItems}},e.prototype.draggedIsAllDay=function(e,t){return Boolean(e.event.isAllDay)},e.prototype.dragResourceColor=function(e,t){if(this.groupedResources.length){var n=this.resources.indexOf(this.groupedResources[0]);return d.getField(t[n],this.groupedResources[0].colorField)}return this.resources&&this.resources.length?e.resources[0].color:""},e.prototype.resourceValues=function(e,t){for(var n={},r=0;r<t.length;r++){var i=this.resources[r],o=t[r],a=void 0;if(Array.isArray(o))a=d.getField(e.event,i.field);else if(a=d.getField(t[r],i.valueField),i.multiple)a=d.getField(this.dragging.startResources[r],i.valueField)!==a?[a]:d.getField(e.event.dataItem,i.field);d.setField(n,i.field,a)}return n},e.prototype.initResize=function(e){e.originalEvent.preventDefault();var t=e.originalEvent.target,n=this.targetTask(t);if(!this.emitEvent("resizeStart",{event:n.task.event,dataItem:n.task.event.dataItem})){this.resizing=n,n.start=n.task.start.toUTCDate(),n.end=n.task.end.toUTCDate(),l.hasClasses(t,"k-resize-n")?n.direction="n":l.hasClasses(t,"k-resize-s")?n.direction="s":l.hasClasses(t,"k-resize-w")?n.direction="w":n.direction="e",this.updateDragContainer(e);var r=this.coordinatesOffset(e.pageX,e.pageY),i=r.x,o=r.y;n.slot=this.slotByPosition(Math.ceil(i),Math.ceil(o),this.container),n.offset={start:n.task.start.toUTCDate().getTime()-n.slot.start.getTime(),end:n.task.end.toUTCDate().getTime()-n.slot.start.getTime()}}},e.prototype.resize=function(e){var t=this.coordinatesOffset(e.pageX,e.pageY),n=t.x,r=t.y,i=this.resizing,o=i.direction,a=i.task,s=i.offset,c=this.slotService.groupSlotByPosition(i.slot,n,r);if(c&&c!==i.slot){this.removeSlotClass();var l=this.slotService.resizeRanges(c,a,"w"===o||"n"===o,s),d=l.start,u=l.end,p=l.ranges;i.hintClass=null,i.start=d,i.end=u,i.slot=c,this.emitEvent("resize",{event:a.event,dataItem:a.event.dataItem,start:this.convertDate(d),end:this.convertDate(u),setHintClass:this.setHintClass,setSlotClass:this.setSlotClass})?this.updateHintClass():(this.updateResizeHints(p,d,u),this.updateHintContainer())}},e.prototype.updateResizeHints=function(e,t,n){var r=this.resizing,i=r.direction,o="w"===i||"e"===i,a="w"===i||"n"===i;this.resizeHints=[];for(var s=0;s<e.length;s++){var c=e[s],l=c[0],d=c[c.length-1],u=0===s,p=s===e.length-1;this.resizeHints.push({first:u,last:p,rect:{left:l.rect.left,top:l.top,height:o?l.height:Math.abs(d.rect.top-l.rect.top)+d.rect.height,width:o?Math.abs(d.rect.left-l.rect.left)+d.rect.width:l.width},start:u&&!a?r.start:l.start,end:p&&a?r.end:d.end,class:r.hintClass})}},e.prototype.coordinatesOffset=function(e,t,n,r){void 0===n&&(n=this.container),void 0===r&&(r=this.containerOffset);var i=e-r.left+n.scrollLeft;return{x:this.localization.rtl?this.slotService.containerSize-i:i,y:t-r.top+n.scrollTop}},e.prototype.scrollContainer=function(e,t){var n=this;clearInterval(this.scrollInterval);var r=this.container;if(r){var i=t.pageY-this.containerOffset.top,o=Math.abs(r.offsetHeight-i),a=t.pageY-this.dragArgs.pageY,s=t.pageX-this.containerOffset.left,c=Math.abs(r.offsetWidth-s),l=t.pageX-this.dragArgs.pageX,d=!1,u=0,p=0;o<60&&r.scrollTop+r.offsetHeight<r.scrollHeight&&a>0?(d=!0,p=15,this.container.scrollTop+=60-o):i<60&&r.scrollTop>0&&a<0&&(d=!0,p=-15,this.container.scrollTop-=60-i),c<60&&r.scrollLeft+r.offsetWidth<r.scrollWidth&&l>0?(d=!0,u=15,this.container.scrollLeft+=60-c):s<60&&r.scrollLeft>0&&a<0&&(d=!0,u=-15,this.container.scrollLeft-=60-s),d&&(this.scrollInterval=setInterval((function(){n.container?(n.container.scrollLeft+=u,n.container.scrollTop+=p,e.call(n,t)):clearInterval(n.scrollInterval)}),50))}},e.prototype.emitEvent=function(e,t){return this.viewState.emitEvent(e,t),t.prevented},e.prototype.targetTask=function(e){var t=l.closestInScope(e,(function(e){return e.hasAttribute("data-task-index")}),this.element.nativeElement);if(t){var n=parseInt(t.getAttribute("data-task-index"),10);return{target:t,task:this.tasks.find((function(e){return e.index===n}))}}},e.prototype.updateHintContainer=function(){this.hintContainer&&this.hintContainer.detectChanges()},e.prototype.convertDate=function(e){return a.ZonedDate.fromUTCDate(e,this.timezone).toLocalDate()},e.prototype.onClick=function(e,t){void 0===t&&(t=e.type),this.emitSlotEvent(e,t),this.emitTaskEvent(e,t)},e.prototype.emitSlotEvent=function(e,t){var n=l.closestInScope(e.target,(function(e){return e.hasAttribute("data-slot-index")}),this.element.nativeElement);if(n){var r=n.getAttribute("data-slot-index"),i="dblclick"===t?"slotDblClick":"slotClick",o=this.slotByIndex(r,e);this.viewState.emitEvent(i,{type:t,slot:o,start:this.convertDate(o.start),end:this.convertDate(o.end),isAllDay:o.isDaySlot,originalEvent:e,resources:this.resources&&this.resources.length?this.resourcesByIndex(o.id.resourceIndex):[]})}},e.prototype.emitTaskEvent=function(e,t){var n=this.targetTask(e.target);if(n){var r=n.task,i="dblclick"===t;if("click"===t&&l.closestInScope(e.target,(function(e){return l.hasClasses(e,"k-event-delete")}),n.target))this.viewState.emitEvent("remove",{event:r.event,dataItem:r.event.dataItem});else{var o=i?"eventDblClick":"eventClick";this.viewState.emitEvent(o,{type:t,event:r.event,originalEvent:e}),n.target.focus()}}},e.prototype.onKeydown=function(e){var t=this.targetTask(e.target);if(t){var n=t.task;this.viewState.emitEvent("eventKeydown",{event:n.event,dataItem:n.event.dataItem,originalEvent:e})}},e.prototype.syncTables=function(){if(this.timesTable&&this.renderer.setStyle(this.timesTable.nativeElement,"height",this.contentTable.nativeElement.offsetHeight+"px"),this.header&&(this.renderer.setStyle(this.header.nativeElement,this.localization.rtl?"padding-left":"padding-right",(l.hasScrollbar(this.content.nativeElement,"vertical")?l.scrollbarWidth()-p.BORDER_WIDTH:0)+"px"),this.renderer.setStyle(this.header.nativeElement,this.localization.rtl?"padding-right":"padding-left","0px")),this.times){var e=this.times.nativeElement;this.timesHeader.nativeElement.style.width=e.offsetWidth+"px";var t="auto"===this.contentHeight?this.content.nativeElement.offsetHeight:this.contentHeight;this.renderer.setStyle(e,"height",t-(l.hasScrollbar(this.content.nativeElement,"horizontal")?l.scrollbarWidth():0)+"px"),e.scrollTop=this.content.nativeElement.scrollTop}},e.prototype.updateContentHeight=function(){var e=this.element.nativeElement,t=e.parentNode,n=this.content.nativeElement,r=this.autoHeight||!t.style.height,i=n.scrollLeft,o=n.scrollTop;if(this.renderer.setStyle(n,"height",""),this.times&&this.renderer.setStyle(this.times.nativeElement,"height",""),r)this.contentHeight="auto";else{for(var a=t.clientHeight,s=0;s<t.children.length;s++){var c=t.children[s];c===e||u.ignoreContentChild(c)||(a-=c.offsetHeight)}a-=this.headerWrap?this.headerWrap.nativeElement.offsetHeight:0,this.renderer.setStyle(n,"height",a+"px"),this.contentHeight=a,n.scrollLeft=i,n.scrollTop=o}},e.prototype.groupResources=function(){var e=this.resources||[],t=this.group||{};this.groupedResources=d.groupResources(t,e),"vertical"!==t.orientation?(this.horizontalResources=this.groupedResources,this.verticalResources=[]):(this.verticalResources=this.groupedResources,this.horizontalResources=[]),this.spans=this.resourceSpans()},Object.defineProperty(e.prototype,"taskResources",{get:function(){return this.groupedResources.length?this.groupedResources:this.resources&&this.resources.length?[this.resources[0]]:[{}]},enumerable:!0,configurable:!0}),e.prototype.resourceSpans=function(){for(var e=[1],t=this.groupedResources,n=1,r=t.length-1;r>0;r--)n*=(t[r].data||[]).length||1,e.unshift(n);return e},e.prototype.isInRange=function(e){var t=this.dateRange(e);return(!this.min||this.min<t.end)&&(!this.max||t.start<=this.max)},e.prototype.createPDFElement=function(){var e=this.contentHeight,t=this.content.nativeElement.scrollTop;"auto"!==e&&(this.autoHeight=!0,this.updateView());var n=this.element.nativeElement.cloneNode(!0);n.style.width=this.pdfWidth()+"px","auto"!==e&&(this.autoHeight=!1,this.updateView()),this.pdfService.elementReady.emit({element:n}),this.content.nativeElement.scrollTop=t},e.prototype.pdfWidth=function(){return this.element.nativeElement.offsetWidth},e.prototype.containerByPosition=function(e){var t=e.x,n=e.y,r=this.content.nativeElement,i=u.elementOffset(r);if(i.top<=n&&n<=i.top+i.height&&i.left<=t&&t<=i.left+i.width)return{element:r,offset:i}},e.prototype.execute=function(e){if("slotByPosition"===e.name){var t=this.containerByPosition(e.args);if(t){var n=this.coordinatesOffset(e.args.x,e.args.y,t.element,t.offset),r=this.slotByPosition(n.x,n.y,t.element);e.result(this.slotFields(r))}}else if("eventFromElement"===e.name){var i=this.targetTask(e.args.element);i&&e.result(i.task.event)}},e.prototype.slotFields=function(e){return{element:e.element,resources:this.groupedResources.length?this.resourcesByIndex(e.id.resourceIndex):[],start:this.convertDate(e.start),end:this.convertDate(e.end)}},r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],e.prototype,"еventTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],e.prototype,"groupHeaderTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"selectedDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"selectedShortDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"eventHeight",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"slotClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"eventClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"eventStyles",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"weekStart",void 0),r.__decorate([i.ViewChild("content",{static:!1}),r.__metadata("design:type",i.ElementRef)],e.prototype,"content",void 0),r.__decorate([i.ViewChild("header",{static:!1}),r.__metadata("design:type",i.ElementRef)],e.prototype,"header",void 0),r.__decorate([i.ViewChild("contentTable",{static:!1}),r.__metadata("design:type",i.ElementRef)],e.prototype,"contentTable",void 0),r.__decorate([i.ViewChild("times",{static:!1}),r.__metadata("design:type",i.ElementRef)],e.prototype,"times",void 0),r.__decorate([i.ViewChild("timesHeader",{static:!1}),r.__metadata("design:type",i.ElementRef)],e.prototype,"timesHeader",void 0),r.__decorate([i.ViewChild("timesTable",{static:!1}),r.__metadata("design:type",i.ElementRef)],e.prototype,"timesTable",void 0),r.__decorate([i.ViewChild("headerWrap",{static:!1}),r.__metadata("design:type",i.ElementRef)],e.prototype,"headerWrap",void 0),r.__decorate([i.ViewChild("hintContainer",{static:!1}),r.__metadata("design:type",m.HintContainerComponent)],e.prototype,"hintContainer",void 0),e}();t.BaseView=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(6),a=function(){function e(e,t,n){this.element=e,this.slotService=t,this.localization=n,this._rect=null}return Object.defineProperty(e.prototype,"slotIndex",{get:function(){return this.key},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rect",{get:function(){if(this._rect)return this._rect;var e=this.nativeElement;return this._rect={left:this.localization.rtl?this.slotService.containerSize-(e.offsetLeft+e.clientWidth):e.offsetLeft,top:e.offsetTop,width:e.clientWidth,height:e.clientHeight},this._rect},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.element?this.nativeElement.offsetTop:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this.element&&o.isDocumentAvailable()?2*parseInt(window.getComputedStyle(this.nativeElement).paddingTop,10):0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.element?this.nativeElement.offsetHeight:0},set:function(e){this.element&&(this.nativeElement.style.height=e+"px"),this._rect&&(this._rect.height=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.element?this.nativeElement.offsetWidth:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"key",{get:function(){return this.id.resourceIndex+":"+this.id.rangeIndex+":"+this.id.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nativeElement",{get:function(){return this.element.nativeElement},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.slotService.registerSlot(this)},e.prototype.ngOnDestroy=function(){this.slotService.unregisterSlot(this)},e.prototype.invalidate=function(){this._rect=null},r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"id",void 0),r.__decorate([i.HostBinding("attr.data-slot-index"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"slotIndex",null),e}();t.BaseSlotDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(){function e(){this.hostClasses=!0,this.inlineJustifyContentStyle="start",this.itemClick=new i.EventEmitter}return e.prototype.onItemClick=function(e,t){e.preventDefault(),this.itemClick.emit(t)},r.__decorate([i.HostBinding("class.k-scheduler-footer"),i.HostBinding("class.k-toolbar"),r.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),r.__decorate([i.HostBinding("style.justify-content"),r.__metadata("design:type",String)],e.prototype,"inlineJustifyContentStyle",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"itemClick",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],e.prototype,"items",void 0),e=r.__decorate([i.Component({selector:"[viewFooter]",template:'\n <button type="button" kendoButton *ngFor="let item of items" [ngClass]="item.cssClass" (click)="onItemClick($event, item)">\n <span class="k-button-icon k-icon" [ngClass]="item.iconClass"></span>\n <span class="k-button-text">{{ item.text }}</span>\n </button>\n '})],e)}();t.ViewFooterComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(90),a=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return r.__extends(t,e),Object.defineProperty(t.prototype,"viewSlotFill",{get:function(){return this.optionValue("slotFill")},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"slotFill",void 0),t}(o.DayTimeViewBase);t.MultiDayViewBase=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(51),a=n(22),s=n(18),c=n(3),l=(n(4),function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return r.__extends(t,e),Object.defineProperty(t.prototype,"viewEventHeight",{get:function(){return this.optionValue("eventHeight")||s.DEFAULT_EVENT_HEIGHT},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldShowWorkHours",{get:function(){return this.optionValue("showWorkHours")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewStartTime",{get:function(){return this.optionValue("startTime")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewEndTime",{get:function(){return this.optionValue("endTime")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewWorkDayStart",{get:function(){return this.optionValue("workDayStart")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewWorkDayEnd",{get:function(){return this.optionValue("workDayEnd")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewWorkWeekStart",{get:function(){return this.optionValue("workWeekStart")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewWorkWeekEnd",{get:function(){return this.optionValue("workWeekEnd")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewSlotDuration",{get:function(){return this.optionValue("slotDuration")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewSlotDivisions",{get:function(){return this.optionValue("slotDivisions")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewCurrentTimeMarker",{get:function(){return this.optionValue("currentTimeMarker")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewScrollTime",{get:function(){return this.optionValue("scrollTime")},enumerable:!0,configurable:!0}),t.prototype.optionValue=function(e){return c.isPresent(this[e])?this[e]:this.schedulerOptions[e]},r.__decorate([i.ContentChild(a.TimeSlotTemplateDirective,{static:!1}),r.__metadata("design:type",a.TimeSlotTemplateDirective)],t.prototype,"timeSlotTemplate",void 0),r.__decorate([i.ContentChild(a.DateHeaderTemplateDirective,{static:!1}),r.__metadata("design:type",a.DateHeaderTemplateDirective)],t.prototype,"dateHeaderTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],t.prototype,"showWorkHours",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"eventHeight",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"startTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"scrollTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"endTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"workDayStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"workDayEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"workWeekStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"workWeekEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"slotDuration",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"slotDivisions",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"currentTimeMarker",void 0),t}(o.ConfigurationViewBase));t.DayTimeViewBase=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(6),a=n(4),s=n(8),c=n(5),l=n(151),d=n(86),u=n(18),p=n(3),h=n(17),m=function(e){return a.getDate(e)},g=function(e,t){return a.getDate(a.addDays(e,t||1))},f=function(e,t,n){return a.getDate(a.addDays(e,n*t))},v=function(e){function t(t,n,r,i,o,a,s,c,l,d){var u=e.call(this,n,r,i,o,a,s,c,l,d,t)||this;return u.changeDetector=t,u.numberOfDays=1,u.startTime="00:00",u.endTime="00:00",u.workDayStart="08:00",u.workDayEnd="17:00",u.workWeekStart=1,u.workWeekEnd=5,u.slotDuration=60,u.slotDivisions=2,u.showWorkHours=!1,u.getStartDate=m,u.getEndDate=g,u.getNextDate=f,u.daySlots=[],u.timeSlots=[],u.resizeHintFormat="t",u.showCurrentTime=!1,u.verticalTime=!0,u.initialUpdate=!0,u.updateCurrentTime=u.updateCurrentTime.bind(u),u}return r.__extends(t,e),Object.defineProperty(t.prototype,"classNames",{get:function(){return"k-scheduler-"+this.name+"view"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timeSlotTemplateRef",{get:function(){return this.timeSlotTemplate||(this.schedulerTimeSlotTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateHeaderTemplateRef",{get:function(){return this.dateHeaderTemplate||(this.schedulerDateHeaderTemplate||{}).templateRef},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){(t.startTime||t.endTime||t.showWorkHours||t.workDayStart||t.workDayEnd||t.workWeekStart||t.workWeekEnd||t.slotDivisions||t.slotDuration)&&(this.timeSlots=this.createTimeSlots(),this.initWorkDay(),this.changes.next(null)),o.isChanged("currentTimeMarker",t)&&(this.showCurrentTime=this.enableCurrentTime()),o.isChanged("weekStart",t)&&this.onSelectDate(this.selectedDate),e.prototype.ngOnChanges.call(this,t)},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),clearTimeout(this.currentTimeTimeout)},t.prototype.verticalItem=function(e,t){for(var n=this.verticalResources[t].data||[],r=this.verticalResources,i=1,o=t+1;o<r.length;o++)i*=(r[o].data||[]).length||1;return n[e/i%n.length]},t.prototype.timeSlotClass=function(e,t,n){if(this.slotClass)return this.slotClass({start:c.dateWithTime(t,e.start),end:c.dateWithTime(t,e.end),resources:this.resourcesByIndex(n),isAllDay:!1})},t.prototype.scrollToTime=function(e){var t;if(void 0===e&&(e=this.scrollTime),"string"==typeof e){var n=this.intl.parseDate(e);if(!n)return;t=c.toUTCTime(this.daySlots[0].start,n)}else t=c.toUTCDateTime(e);var r=this.slotService.timePosition(t,0,this.verticalTime);if(p.isNumber(r)){var i=this.content.nativeElement;i[this.verticalTime?"scrollTop":"scrollLeft"]=this.localization.rtl&&!this.verticalTime?h.rtlScrollPosition(i,r):r}},t.prototype.optionsChange=function(t){this.schedulerTimeSlotTemplate=t.timeSlotTemplate,this.schedulerDateHeaderTemplate=t.dateHeaderTemplate,e.prototype.optionsChange.call(this,t)},t.prototype.updateView=function(){e.prototype.updateView.call(this),this.updateCurrentTime(),this.initialUpdate&&(this.scrollToTime(),this.initialUpdate=!1)},t.prototype.enableCurrentTime=function(){if(!this.currentTimeMarker||!1===this.currentTimeMarker.enabled||!this.selectedDate)return!1;var e=this.dateRange();this.currentDate=a.ZonedDate.fromLocalDate(this.currentTime(),!1!==this.currentTimeMarker.localTimezone?"":this.timezone);var t=this.currentDate.toLocalDate(),n=c.toInvariantTime(t),r=this.timeSlots,i=c.dateInRange(t,e.start,e.end),o=r.length&&c.dateInRange(n,r[0].start,r[r.length-1].end);return i&&o},t.prototype.currentTime=function(){return new Date},t.prototype.updateCurrentTime=function(){var e=this;if(o.isDocumentAvailable()){var t=this.enableCurrentTime();t!==this.showCurrentTime&&(this.showCurrentTime=t,this.changeDetector.detectChanges()),clearTimeout(this.currentTimeTimeout),t&&(this.zone.runOutsideAngular((function(){e.currentTimeTimeout=setTimeout(e.updateCurrentTime,e.currentTimeMarker.updateInterval||u.MS_PER_MINUTE)})),this.positionCurrentTime())}},t.prototype.positionCurrentTime=function(){var e=this;if(this.currentTimeElements&&this.currentTimeElements.length){var t=this.currentDate.toUTCDate(),n=this.currentTimeArrows?this.currentTimeArrows.toArray():[],r=n.length?this.currentTimeArrowOffset():0,i=n.length?n[0].nativeElement.offsetHeight/2:4,o=this.contentTable.nativeElement.clientWidth,a=this.contentTable.nativeElement.clientHeight,s=this.verticalTime;this.currentTimeElements.forEach((function(l,d){var u=e.slotService.timePosition(t,d,s);if(void 0!==u){var p=l.nativeElement;if(n[d]){var h=n[d].nativeElement,m=s?r:u-i;c.setCoordinates(h,{top:s?u-i:r,left:m,right:m})}var g=s?0:u;c.setCoordinates(p,{top:s?u:0,left:g,right:g,width:s?o:1,height:s?1:a})}}))}},t.prototype.bindEvents=function(){var t=this;e.prototype.bindEvents.call(this),this.zone.runOutsideAngular((function(){t.subs.add(p.fromClick(t.headerWrap.nativeElement).subscribe((function(e){return t.onHeaderClick(e)}))),t.subs.add(s.fromEvent(t.headerWrap.nativeElement,"contextmenu").subscribe((function(e){return t.onClick(e)}))),t.subs.add(p.fromDoubleClick(t.headerWrap.nativeElement).subscribe((function(e){return t.onClick(e,"dblclick")})))}))},t.prototype.onHeaderClick=function(e){var t=this;if(this.onClick(e),!(this.daySlots.length<=1)){var n=e.target.getAttribute("data-dayslot-index");if(n){var r=this.daySlots[parseInt(n,10)];this.zone.run((function(){t.viewState.navigateTo({viewName:"day",date:r.start})}))}}},t.prototype.slotByIndex=function(e,t){return this.slotService.slotByIndex(e,t.target.hasAttribute("data-day-slot"))},t.prototype.onSelectDate=function(e){this.selectedDate=e,this.daySlots=this.createDaySlots(),this.showCurrentTime=this.enableCurrentTime(),this.viewState.notifyDateRange(this.dateRange())},t.prototype.onAction=function(e){var t=a.getDate(this.selectedDate);if("next"===e.type){var n=this.getNextDate(t,1,this.numberOfDays);this.isInRange(n)&&this.viewState.notifyNextDate(n)}if("prev"===e.type){n=this.getNextDate(t,-1,this.numberOfDays);this.isInRange(n)&&this.viewState.notifyNextDate(n)}"scroll-time"===e.type&&this.scrollToTime(e.time)},t.prototype.dateRange=function(e){void 0===e&&(e=this.selectedDate);var t=this.getStartDate(e),n=this.getEndDate(t,this.numberOfDays),r=this.getEndDate(t,this.numberOfDays-1);return{start:t,end:n,text:this.intl.format(this.selectedDateFormat,t,r),shortText:this.intl.format(this.selectedShortDateFormat,t,r)}},t.prototype.createDaySlots=function(){for(var e=this.getStartDate(this.selectedDate),t=this.getEndDate(e,this.numberOfDays),n=[];e<t;){var r=a.addDays(e,1);n.push({start:e,end:r}),e=r}return n},t.prototype.createTimeSlots=function(){return l.createTimeSlots(this.intl,{showWorkHours:this.showWorkHours,startTime:this.startTime,endTime:this.endTime,workDayStart:this.workDayStart,workDayEnd:this.workDayEnd,slotDivisions:this.slotDivisions,slotDuration:this.slotDuration})},t.prototype.initWorkDay=function(){var e=this.intl.parseDate(this.workDayStart);this.workDayStartTime=c.toInvariantTime(e);var t=this.intl.parseDate(this.workDayEnd);this.workDayEndTime=t<=e?a.addDays(u.MIDNIGHT_INVARIANT,1):c.toInvariantTime(t)},t.prototype.slotByPosition=function(e,t,n){var r=n?h.hasClasses(n.parentNode,"k-scheduler-header-wrap"):t<0;return this.slotService.slotByPosition(e,t,r,Boolean(this.verticalResources.length))},t.prototype.slotFields=function(t){var n=e.prototype.slotFields.call(this,t);return t.isDaySlot?n.isAllDay=!0:(n.start=this.convertDate(t.start),n.end=this.convertDate(t.end)),n},r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],t.prototype,"timeSlotTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],t.prototype,"dateHeaderTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"numberOfDays",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"scrollTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"startTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"endTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"workDayStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"workDayEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"workWeekStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"workWeekEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"slotDuration",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"slotDivisions",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],t.prototype,"showWorkHours",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"getStartDate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"getEndDate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"getNextDate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],t.prototype,"currentTimeMarker",void 0),r.__decorate([i.ViewChildren("currentTimeMarker"),r.__metadata("design:type",i.QueryList)],t.prototype,"currentTimeElements",void 0),r.__decorate([i.ViewChildren("currentTimeArrow"),r.__metadata("design:type",i.QueryList)],t.prototype,"currentTimeArrows",void 0),t}(d.BaseView);t.DayTimeViewComponent=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(25),a=n(26),s=n(152),c=n(153),l=n(29),d=[s.TimeSlotDirective,s.DaySlotDirective,c.DayTimeViewItemComponent],u=function(){function e(){}return e=r.__decorate([i.NgModule({imports:[o.CommonModule,a.SharedModule,l.ViewsSharedModule],exports:[d],declarations:[d]})],e)}();t.DayTimeModule=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3);function i(e,t){if(e&&e.getTime&&t&&t.getTime)return e.getTime()===t.getTime();if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e==t}t.markAllAsTouched=function(e){if(e.markAsTouched(),e.hasOwnProperty("controls")){var n=e.controls;for(var r in n)n.hasOwnProperty(r)&&t.markAllAsTouched(n[r])}},t.diff=function(e,t,n){for(var o=0;o<n.length;o++){var a=n[o];if(!i(r.getField(e,a),r.getField(t,a)))return!0}return!1},t.areEqual=i;var o=["getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","getMilliseconds"];t.seriesDate=function(e,t,n,i){var a,s=[],c=r.getField(e,i),l=r.getField(t,i),d=r.getField(n,i);return o.forEach((function(e){s.push(l[e]()===d[e]()?c[e]():d[e]())})),new((a=Date).bind.apply(a,[void 0].concat(s)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(15),a=n(95),s=n(31);t.MULTIPLE_RESOURCE_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:i.forwardRef((function(){return c}))};var c=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.getTagStyle=function(e){return{"background-color":e[this.resource.colorField]}},n.prototype.focus=function(){this.resourceMultiSelect.focus()},r.__decorate([i.ViewChild("resourceMultiSelect",{static:!0}),r.__metadata("design:type",s.MultiSelectComponent)],n.prototype,"resourceMultiSelect",void 0),n=r.__decorate([i.Component({providers:[t.MULTIPLE_RESOURCE_VALUE_ACCESSOR],selector:"kendo-multiple-resource-editor",template:"\n <kendo-multiselect\n #resourceMultiSelect\n [data]='resource.data'\n [textField]='resource.textField'\n [valueField]='resource.valueField'\n [valuePrimitive]='true'\n [value]='resourceValue'\n (valueChange)='onResourceValueChange($event)'\n >\n <ng-template kendoDropDownListItemTemplate let-dataItem>\n <span *ngIf=\"resource.colorField\" class=\"k-scheduler-mark\"\n [ngStyle]=\"getResourceStyle(dataItem)\"></span>\n {{ getField(dataItem, resource.textField) }}\n </ng-template>\n <ng-template kendoMultiSelectTagTemplate let-dataItem>\n <span *ngIf=\"resource.colorField\" class=\"k-scheduler-mark\"\n [ngStyle]=\"getTagStyle(dataItem)\"></span>\n {{ getField(dataItem, resource.textField) }}\n </ng-template>\n </kendo-multiselect>\n "})],n)}(a.ResourceEditorBase);t.MultipleResourceEditorComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(3),a=function(){function e(){this.valueChange=new i.EventEmitter,this.getField=o.getField,this.onTouchedCallback=function(e){},this.onChangeCallback=function(e){}}return e.prototype.writeValue=function(e){this.resourceValue=e},e.prototype.getResourceStyle=function(e){return{"background-color":o.getField(e,this.resource.colorField),"margin-right":o.isPresent(o.getField(e,this.resource.valueField))?"8px":"4px"}},e.prototype.onResourceValueChange=function(e){this.resourceValue=e,this.emitChange(this.resourceValue)},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"resource",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"valueChange",void 0),e}();t.ResourceEditorBase=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(15),a=n(95),s=n(31);t.SINGLE_RESOURCE_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:i.forwardRef((function(){return c}))};var c=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.focus=function(){this.resourceDropDown.focus()},r.__decorate([i.ViewChild("resourceDropDown",{static:!0}),r.__metadata("design:type",s.DropDownListComponent)],n.prototype,"resourceDropDown",void 0),n=r.__decorate([i.Component({providers:[t.SINGLE_RESOURCE_VALUE_ACCESSOR],selector:"kendo-single-resource-editor",template:"\n <kendo-dropdownlist\n #resourceDropDown\n [data]='resource.data'\n [textField]='resource.textField'\n [valueField]='resource.valueField'\n [valuePrimitive]='true'\n [value]='resourceValue'\n (valueChange)='onResourceValueChange($event)'\n >\n <ng-template kendoDropDownListItemTemplate let-dataItem>\n <span *ngIf=\"resource.colorField\" class=\"k-scheduler-mark\"\n [ngStyle]=\"getResourceStyle(dataItem)\"></span>\n {{ getField(dataItem, resource.textField) }}\n </ng-template>\n </kendo-dropdownlist>\n "})],n)}(a.ResourceEditorBase);t.SingleResourceEditorComponent=c},function(e,t,n){"use strict";var r;function i(e,t){return e.altKey===((t&r.AltKey)===r.AltKey)&&e.ctrlKey===((t&r.CtrlKey)===r.CtrlKey)&&e.shiftKey===((t&r.ShiftKey)===r.ShiftKey)&&e.metaKey===((t&r.MetaKey)===r.MetaKey)}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.None=0]="None",e[e.AltKey=1]="AltKey",e[e.CtrlKey=2]="CtrlKey",e[e.ShiftKey=4]="ShiftKey",e[e.MetaKey=8]="MetaKey"}(r=t.Modifiers||(t.Modifiers={})),t.withModifiers=i,t.noModifiers=function(e){return i(e,r.None)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(15),a=n(6),s=n(7),c=n(2),l=n(4),d=n(14),u=n(3),p=n(167);t.RECURRENCE_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:i.forwardRef((function(){return h}))};var h=function(){function e(e,t){var n=this;this.recurrenceService=e,this.intl=t,this.cssClass=!0,this.timezone="Etc/UTC",this.valueChange=new i.EventEmitter,this.onTouchedCallback=function(e){},this.onChangeCallback=function(e){},this.weekStart=t.firstDay(),this.subscriptions=this.recurrenceService.change.subscribe((function(e){n.emitChange(e)}))}return Object.defineProperty(e.prototype,"start",{get:function(){return u.isPresent(this._start)?this._start:l.getDate(new Date)},set:function(e){this._start=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentFreq",{get:function(){return this.recurrenceService.frequency},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.recurrenceService.init("",this.start,this.timezone,this.weekStart)},e.prototype.ngOnChanges=function(e){a.isChanged("start",e)&&(this.recurrenceService.start=this.start)},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.writeValue=function(e){this.recurrenceService.init("string"==typeof e?e:"",this.start,this.timezone,this.weekStart)},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},r.__decorate([i.HostBinding("class.k-recurrence-editor"),r.__metadata("design:type",Boolean)],e.prototype,"cssClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date),r.__metadata("design:paramtypes",[Date])],e.prototype,"start",null),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"timezone",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"weekStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"repeatEveryOptions",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"endAfterOptions",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"repeatOnOptions",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"endOnOptions",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"valueChange",void 0),e=r.__decorate([i.Component({exportAs:"kendoRecurrenceEditor",providers:[p.RecurrenceLocalizationService,{provide:c.LocalizationService,useExisting:p.RecurrenceLocalizationService},{provide:c.L10N_PREFIX,useValue:"kendo.recurrenceeditor"},t.RECURRENCE_VALUE_ACCESSOR,d.RecurrenceService],selector:"kendo-recurrence-editor",template:"\n <ng-container kendoRecurrenceEditorLocalizedMessages\n i18n-repeat=\"kendo.recurrenceeditor.repeat|The text similar to 'Repeat' displayed in the recurrence editor.\"\n repeat='Repeat'\n\n i18n-dailyInterval=\"kendo.recurrenceeditor.dailyInterval|The text similar to 'day(s)' displayed in the recurrence editor.\"\n dailyInterval='day(s)'\n\n i18n-dailyRepeatEvery=\"kendo.recurrenceeditor.dailyRepeatEvery|The text similar to 'Repeat every' displayed in the recurrence editor.\"\n dailyRepeatEvery='Repeat every'\n\n i18n-weeklyInterval=\"kendo.recurrenceeditor.weeklyInterval|The text similar to 'week(s)' displayed in the recurrence editor.\"\n weeklyInterval='week(s)'\n\n i18n-weeklyRepeatEvery=\"kendo.recurrenceeditor.weeklyRepeatEvery|The text similar to 'Repeat every' displayed in the recurrence editor.\"\n weeklyRepeatEvery='Repeat every'\n\n i18n-weeklyRepeatOn=\"kendo.recurrenceeditor.weeklyRepeatOn|The text similar to 'Repeat on' displayed in the recurrence editor.\"\n weeklyRepeatOn='Repeat on'\n\n i18n-monthlyDay=\"kendo.recurrenceeditor.monthlyDay|The text similar to 'Day' displayed in the recurrence editor.\"\n monthlyDay='Day'\n\n i18n-monthlyInterval=\"kendo.recurrenceeditor.monthlyInterval|The text similar to 'month(s)' displayed in the recurrence editor.\"\n monthlyInterval='month(s)'\n\n i18n-monthlyRepeatEvery=\"kendo.recurrenceeditor.monthlyRepeatEvery|The text similar to 'Repeat every' displayed in the recurrence editor.\"\n monthlyRepeatEvery='Repeat every'\n\n i18n-monthlyRepeatOn=\"kendo.recurrenceeditor.monthlyRepeatOn|The text similar to 'Repeat on' displayed in the recurrence editor.\"\n monthlyRepeatOn='Repeat on'\n\n i18n-yearlyOf=\"kendo.recurrenceeditor.yearlyOf|The text similar to 'of' displayed in the recurrence editor.\"\n yearlyOf='of'\n\n i18n-yearlyRepeatEvery=\"kendo.recurrenceeditor.yearlyRepeatEvery|The text similar to 'Repeat every' displayed in the recurrence editor.\"\n yearlyRepeatEvery='Repeat every'\n\n i18n-yearlyRepeatOn=\"kendo.recurrenceeditor.yearlyRepeatOn|The text similar to 'Repeat on' displayed in the recurrence editor.\"\n yearlyRepeatOn='Repeat on'\n\n i18n-yearlyInterval=\"kendo.recurrenceeditor.yearlyInterval|The text similar to 'year(s)' displayed in the recurrence editor.\"\n yearlyInterval='year(s)'\n\n i18n-frequenciesDaily=\"kendo.recurrenceeditor.frequenciesDaily|The text similar to 'Daily' displayed in the recurrence editor.\"\n frequenciesDaily='Daily'\n\n i18n-frequenciesMonthly=\"kendo.recurrenceeditor.frequenciesMonthly|The text similar to 'Monthly' displayed in the recurrence editor.\"\n frequenciesMonthly='Monthly'\n\n i18n-frequenciesNever=\"kendo.recurrenceeditor.frequenciesNever|The text similar to 'Never' displayed in the recurrence editor.\"\n frequenciesNever='Never'\n\n i18n-frequenciesWeekly=\"kendo.recurrenceeditor.frequenciesWeekly|The text similar to 'Weekly' displayed in the recurrence editor.\"\n frequenciesWeekly='Weekly'\n\n i18n-frequenciesYearly=\"kendo.recurrenceeditor.frequenciesYearly|The text similar to 'Yearly' displayed in the recurrence editor.\"\n frequenciesYearly='Yearly'\n\n i18n-fffsetPositionsFirst=\"kendo.recurrenceeditor.fffsetPositionsFirst|The text similar to 'First' displayed in the recurrence editor.\"\n offsetPositionsFirst='First'\n\n i18n-offsetPositionsSecond=\"kendo.recurrenceeditor.offsetPositionsSecond|The text similar to 'Second' displayed in the recurrence editor.\"\n offsetPositionsSecond='Second'\n\n i18n-offsetPositionsThird=\"kendo.recurrenceeditor.offsetPositionsThird|The text similar to 'Third' displayed in the recurrence editor.\"\n offsetPositionsThird='Third'\n\n i18n-offsetPositionsFourth=\"kendo.recurrenceeditor.offsetPositionsFourth|The text similar to 'Fourth' displayed in the recurrence editor.\"\n offsetPositionsFourth='Fourth'\n\n i18n-offsetPositionsLast=\"kendo.recurrenceeditor.offsetPositionsLast|The text similar to 'Last' displayed in the recurrence editor.\"\n offsetPositionsLast='Last'\n\n i18n-weekdaysDay=\"kendo.recurrenceeditor.weekdaysDay|The text similar to 'Day' displayed in the repeat by section of the monthly recurrence pattern.\"\n weekdaysDay='Day'\n\n i18n-weekdaysWeekday=\"kendo.recurrenceeditor.weekdaysWeekday|The text similar to 'Weekday' displayed in the repeat by section of the monthly recurrence pattern.\"\n weekdaysWeekday='Weekday'\n\n i18n-weekdaysWeekendday=\"kendo.recurrenceeditor.weekdaysWeekendday|The text similar to 'Weekend Day' displayed in the repeat by section of the monthly recurrence pattern.\"\n weekdaysWeekendday='Weekend Day'\n\n i18n-endAfter=\"kendo.recurrenceeditor.endAfter|The text similar to 'After' displayed in the recurrence editor.\"\n endAfter='After'\n\n i18n-endOccurrence=\"kendo.recurrenceeditor.endOccurrence|The text similar to 'occurrence(s)' displayed in the recurrence editor.\"\n endOccurrence='occurrence(s)'\n\n i18n-endLabel=\"kendo.recurrenceeditor.endLabel|The text similar to 'End' displayed in the recurrence editor.\"\n endLabel='End'\n\n i18n-endNever=\"kendo.recurrenceeditor.endNever|The text similar to 'Never' displayed in the recurrence editor.\"\n endNever='Never'\n\n i18n-endOn=\"kendo.recurrenceeditor.endOn|The text similar to 'On' displayed in the recurrence editor.\"\n endOn='On'\n >\n </ng-container>\n\n <kendo-recurrence-frequency-editor>\n </kendo-recurrence-frequency-editor>\n\n <div class='k-recur-view'>\n <kendo-recurrence-interval-editor\n *ngIf=\"currentFreq !== 'never'\"\n [userNumericOptions]=\"repeatEveryOptions\">\n </kendo-recurrence-interval-editor>\n\n <kendo-recurrence-weekday-rule-editor *ngIf=\"currentFreq === 'weekly'\">\n </kendo-recurrence-weekday-rule-editor>\n\n <kendo-recurrence-monthly-yearly-editor\n *ngIf=\"currentFreq === 'monthly' || currentFreq === 'yearly'\"\n [userNumericOptions]=\"repeatOnOptions\">\n </kendo-recurrence-monthly-yearly-editor>\n\n <kendo-recurrence-end-rule-editor\n *ngIf=\"currentFreq !== 'never'\"\n [userNumericOptions]=\"endAfterOptions\"\n [userDatePickerOptions]=\"endOnOptions\">\n </kendo-recurrence-end-rule-editor>\n </div>\n "}),r.__metadata("design:paramtypes",[d.RecurrenceService,s.IntlService])],e)}();t.RecurrenceEditorComponent=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(14),a=function(){function e(e,t,n,r){this.el=e,this.renderer=t,this.recurrence=n,this.changeDetector=r,this.type="radio",this.radioClass=!0,this.radioSizeClass=!0,this.destroyChange=this.renderer.listen(this.elem,"change",this.onChange.bind(this))}return e.prototype.ngOnInit=function(){this.endRule=this.endRuleId.split("-")[2],this.renderer.setAttribute(this.elem,"id",this.endRuleId),this.renderer.setAttribute(this.elem,"name","end-"+this.endRuleId.split("-").pop())},e.prototype.ngAfterContentChecked=function(){this.setCheckedState()},e.prototype.ngOnDestroy=function(){this.destroyChange&&this.destroyChange()},e.prototype.onChange=function(){this.elem.checked&&(this.recurrence.endRule=this.endRule,this.changeDetector.markForCheck())},e.prototype.setCheckedState=function(){var e=this.endRule===this.recurrence.endRule;this.renderer.setProperty(this.elem,"checked",e)},Object.defineProperty(e.prototype,"elem",{get:function(){return this.el.nativeElement},enumerable:!0,configurable:!0}),r.__decorate([i.HostBinding("attr.type"),r.__metadata("design:type",String)],e.prototype,"type",void 0),r.__decorate([i.HostBinding("class.k-radio"),r.__metadata("design:type",Boolean)],e.prototype,"radioClass",void 0),r.__decorate([i.HostBinding("class.k-radio-md"),r.__metadata("design:type",Boolean)],e.prototype,"radioSizeClass",void 0),r.__decorate([i.Input("kendoRecurrenceEndRuleRadioButton"),r.__metadata("design:type",String)],e.prototype,"endRuleId",void 0),e=r.__decorate([i.Directive({selector:"[kendoRecurrenceEndRuleRadioButton]"}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,o.RecurrenceService,i.ChangeDetectorRef])],e)}();t.EndRuleRadioButtonDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(14),a=function(){function e(e,t,n,r){this.el=e,this.renderer=t,this.recurrence=n,this.changeDetector=r,this.type="radio",this.radioClass=!0,this.radioSizeClass=!0,this.destroyChange=this.renderer.listen(this.elem,"change",this.onChange.bind(this))}return Object.defineProperty(e.prototype,"repeatOnRule",{set:function(e){var t=e.split("-");this._repeatOnRule=t[0],this._uniqueId=t[1]},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.renderer.setAttribute(this.elem,"id","k-repeaton-"+this._repeatOnRule+"-"+this._uniqueId),this.renderer.setAttribute(this.elem,"name","day-"+this._uniqueId)},e.prototype.ngAfterContentChecked=function(){this.setCheckedState()},e.prototype.ngOnDestroy=function(){this.destroyChange&&this.destroyChange()},e.prototype.onChange=function(){this.elem.checked&&(this.recurrence.repeatOnRule=this._repeatOnRule,this.changeDetector.markForCheck())},e.prototype.setCheckedState=function(){var e=this._repeatOnRule===this.recurrence.repeatOnRule;this.renderer.setProperty(this.elem,"checked",e)},Object.defineProperty(e.prototype,"elem",{get:function(){return this.el.nativeElement},enumerable:!0,configurable:!0}),r.__decorate([i.HostBinding("attr.type"),r.__metadata("design:type",String)],e.prototype,"type",void 0),r.__decorate([i.HostBinding("class.k-radio"),r.__metadata("design:type",Boolean)],e.prototype,"radioClass",void 0),r.__decorate([i.HostBinding("class.k-radio-md"),r.__metadata("design:type",Boolean)],e.prototype,"radioSizeClass",void 0),r.__decorate([i.Input("kendoRecurrenceRepeatOnRadioButton"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],e.prototype,"repeatOnRule",null),e=r.__decorate([i.Directive({selector:"[kendoRecurrenceRepeatOnRadioButton]"}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,o.RecurrenceService,i.ChangeDetectorRef])],e)}();t.RepeatOnRadioButtonDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"repeat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"dailyInterval",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"dailyRepeatEvery",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"weeklyInterval",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"weeklyRepeatEvery",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"weeklyRepeatOn",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"monthlyDay",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"monthlyInterval",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"monthlyRepeatEvery",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"monthlyRepeatOn",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"yearlyOf",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"yearlyRepeatEvery",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"yearlyRepeatOn",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"yearlyInterval",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"frequenciesDaily",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"frequenciesMonthly",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"frequenciesNever",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"frequenciesWeekly",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"frequenciesYearly",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"offsetPositionsFirst",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"offsetPositionsSecond",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"offsetPositionsThird",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"offsetPositionsFourth",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"offsetPositionsLast",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"weekdaysDay",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"weekdaysWeekday",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"weekdaysWeekendday",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"endAfter",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"endOccurrence",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"endLabel",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"endNever",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"endOn",void 0),t}(n(2).ComponentMessages);t.Messages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(16),a=n(180),s=n(181),c=function(e){return function(e,t){var n=document.createElement(e);return t&&(n.className=t),n}("div",e)},l=function(){function e(e,t){this.pdfService=e,this.ngZone=t,this.creator="Kendo UI PDF Generator",this.subscriptions=this.pdfService.elementReady.subscribe(this.createElement.bind(this)),this.saveDataUri=this.saveDataUri.bind(this),this.exportGroup=this.exportGroup.bind(this),this.done=this.done.bind(this)}return e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},Object.defineProperty(e.prototype,"drawOptions",{get:function(){return{_destructive:!0,avoidLinks:this.avoidLinks,margin:this.margin,scale:this.scale}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pdfOptions",{get:function(){return{author:this.author,creator:this.creator,date:this.date,imgDPI:this.imageResolution,keywords:this.keywords,margin:this.margin,producer:this.producer,subject:this.subject,title:this.title}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"saveOptions",{get:function(){return{forceProxy:this.forceProxy,proxyData:this.proxyData,proxyTarget:this.proxyTarget,proxyURL:this.proxyURL}},enumerable:!0,configurable:!0}),e.prototype.createElement=function(e){var t=this;this.ngZone.runOutsideAngular((function(){var n=t.container=c();n.style.top=n.style.left="-10000px",n.style.position="absolute";var r=c("k-widget k-scheduler k-floatwrap");r.style.position="relative",r.appendChild(e.element),n.appendChild(r),document.body.appendChild(n),t.save(r)}))},e.prototype.save=function(e){this.drawElement(e,this.drawOptions).then(this.exportGroup).then(this.saveDataUri).then(this.done,this.done)},e.prototype.drawElement=function(e,t){return a.drawDOM(e,t)},e.prototype.exportGroup=function(e){return a.exportPDF(e,this.pdfOptions)},e.prototype.saveDataUri=function(e){s.saveAs(e,this.fileName,this.saveOptions)},e.prototype.done=function(){this.container&&(document.body.removeChild(this.container),this.container=null),this.pdfService.done.emit()},r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"author",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"avoidLinks",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"creator",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],e.prototype,"date",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"imageResolution",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"fileName",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"forceProxy",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"keywords",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"margin",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"scale",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"proxyData",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"proxyURL",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"proxyTarget",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"producer",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"subject",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"title",void 0),e=r.__decorate([i.Component({selector:"kendo-scheduler-pdf",template:""}),r.__metadata("design:paramtypes",[o.PDFService,i.NgZone])],e)}();t.PDFComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(21),a=n(2),s=n(16),c=function(e){function t(t,n,r,i,o){var a=e.call(this,n,r,null,i,o)||this;return a.pdfService=t,a}return r.__extends(t,e),t.prototype.onClick=function(e){e.preventDefault(),this.pdfService.exportClick.emit()},t.prototype.ngOnInit=function(){this.icon="pdf"},r.__decorate([i.HostListener("click",["$event"]),r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object]),r.__metadata("design:returntype",void 0)],t.prototype,"onClick",null),t=r.__decorate([i.Directive({selector:"[kendoSchedulerPDFCommand]"}),r.__metadata("design:paramtypes",[s.PDFService,i.ElementRef,i.Renderer2,a.LocalizationService,i.NgZone])],t)}(o.Button);t.PDFCommandDirective=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(19);t.SchedulerComponent=i.SchedulerComponent;var o=n(119);t.SchedulerModule=o.SchedulerModule;var a=n(10);t.ViewContextService=a.ViewContextService;var s=n(9);t.ViewStateService=s.ViewStateService;var c=n(24);t.ToolbarService=c.ToolbarService;var l=n(50);t.AgendaViewComponent=l.AgendaViewComponent;var d=n(55);t.DayViewComponent=d.DayViewComponent;var u=n(56);t.WeekViewComponent=u.WeekViewComponent;var p=n(98);t.RecurrenceEditorComponent=p.RecurrenceEditorComponent;var h=n(178);t.BaseEditService=h.BaseEditService;var m=n(179);t.PDFModule=m.PDFModule;var g=n(102);t.PDFComponent=g.PDFComponent;var f=n(16);t.PDFService=f.PDFService;var v=n(103);t.PDFCommandDirective=v.PDFCommandDirective;var y=n(78);t.PDFExportEvent=y.PDFExportEvent;var _=n(20);t.FocusableDirective=_.FocusableDirective;var b=n(26);t.SharedModule=b.SharedModule,r.__exportStar(n(11),t),r.__exportStar(n(27),t)},function(e,t){e.exports=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-scheduler",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646835692,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t,n){this.sender=e,this.selectedDate=t,this.dateRange=n};t.DateChangeEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t,n){var r=e.call(this)||this;return r.sender=t,r.action=n,r}return r.__extends(t,e),t}(n(23).PreventableEvent);t.NavigateEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(110),i=n(61),o=n(62),a=n(63),s=n(59),c=n(60),l=n(64),d=n(65),u=n(66),p=n(67),h=n(58);t.VIEW_EVENT_MAP={slotClick:h.SlotClickEvent,slotDblClick:h.SlotClickEvent,eventClick:s.EventClickEvent,eventDblClick:s.EventClickEvent,eventKeydown:c.EventKeydownEvent,create:r.CreateEvent,remove:l.RemoveEvent,resizeStart:p.ResizeStartEvent,resize:u.ResizeEvent,resizeEnd:d.ResizeEndEvent,dragStart:a.DragStartEvent,drag:o.DragEvent,dragEnd:i.DragEndEvent}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.sender=e,Object.assign(this,t)};t.CreateEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(n(32).EditEventBase);t.CancelEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(n(32).EditEventBase);t.SaveEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t,n){var r=e.call(this)||this;return r.sender=t,Object.assign(r,n),r}return r.__extends(t,e),t}(n(12).PreventableEvent);t.EditEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t,n){var r=e.call(this)||this;return r.sender=t,Object.assign(r,n),r}return r.__extends(t,e),t}(n(12).PreventableEvent);t.AddEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){};t.SchedulerView=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Event=0]="Event",e[e.Occurrence=1]="Occurrence",e[e.Series=2]="Series"}(t.EditMode||(t.EditMode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Edit=0]="Edit",e[e.Remove=1]="Remove"}(t.CrudOperation||(t.CrudOperation={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(28),a=function(){function e(e,t,n){this.element=e,this.renderer=t,this.focusService=n,this.focusIndex=0,this.toggle(!1),this.focusService.register(this)}return Object.defineProperty(e.prototype,"visible",{get:function(){return"none"!==this.element.nativeElement.style.display},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return!this.element.nativeElement.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.focusService.unregister(this)},e.prototype.toggle=function(e){if(e!==this.active){var t=e?"0":"-1";this.renderer.setAttribute(this.element.nativeElement,"tabIndex",t),this.active=e}},e.prototype.canFocus=function(){return this.visible&&this.enabled},e.prototype.focus=function(){this.element.nativeElement.focus()},e.prototype.toggleFocus=function(e){var t=this.element.nativeElement;e?this.renderer.addClass(t,"k-state-selected"):this.renderer.removeClass(t,"k-state-selected"),this.renderer.setAttribute(t,"aria-selected",e.toString())},r.__decorate([i.Input("kendoSchedulerFocusIndex"),r.__metadata("design:type",Number)],e.prototype,"focusIndex",void 0),e=r.__decorate([i.Directive({selector:"[kendoSchedulerFocusIndex]"}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,o.FocusService])],e)}();t.FocusableDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(25),o=n(1),a=n(7),s=n(6),c=n(120),l=n(121),d=n(122),u=n(19),p=n(123),h=n(50),m=n(127),g=n(135),f=n(146),v=n(154),y=n(35),_=n(36),b=n(37),S=n(38),D=n(39),k=n(40),T=n(41),E=n(42),w=n(43),C=n(44),I=n(45),x=n(155),R=n(161),O=n(75),M=n(164),P=n(15),F=n(21),H=n(23),j=n(165),z=n(31),A=n(166),W=n(98),V=n(168),B=n(169),N=n(170),L=n(171),q=n(172),U=n(173),G=n(174),Z=n(99),K=n(100),Y=n(94),X=n(96),$=n(175),Q=n(46),J=n(79),ee=n(26),te=n(176),ne=n(177),re=[y.AgendaDateTemplateDirective,_.AgendaTimeTemplateDirective,b.AllDayEventTemplateDirective,S.AllDaySlotTemplateDirective,D.DateHeaderTemplateDirective,k.EventTemplateDirective,Q.EditDialogTemplateDirective,T.GroupHeaderTemplateDirective,E.MajorTimeHeaderTemplateDirective,w.MinorTimeHeaderTemplateDirective,C.MonthDaySlotTemplateDirective,I.TimeSlotTemplateDirective],ie=[u.SchedulerComponent,v.SchedulerViewDirective,c.DataBindingDirective,te.ShortcutsDirective,R.ReactiveEditingDirective,ne.SlotSelectableDirective,A.SchedulerDateTimePickerComponent,W.RecurrenceEditorComponent,B.RecurrenceEndRuleEditorComponent,V.RecurrenceFrequencyEditorComponent,N.RecurrenceIntervalEditorComponent,L.RecurrenceMonthlyYearlyEditorComponent,q.RecurrenceWeekdayRuleEditorComponent,Z.EndRuleRadioButtonDirective,K.RepeatOnRadioButtonDirective,Y.MultipleResourceEditorComponent,X.SingleResourceEditorComponent,$.TimeZoneEditorComponent,M.EditDialogComponent,l.SchedulerCustomMessagesComponent,d.LocalizedMessagesDirective,U.RecurrenceEditorCustomMessagesComponent,G.RecurrenceEditorLocalizedMessagesDirective,J.LoadingComponent].concat(re),oe=[h.AgendaViewComponent,g.MonthViewModule,f.MultiDayViewModule,R.ReactiveEditingDirective,x.TimelineViewModule,p.publicDirectives].concat(ie),ae=[F.ButtonsModule,j.CheckBoxModule,j.TextAreaModule,H.DateInputsModule,O.DialogModule,j.NumericTextBoxModule,j.TextBoxModule,z.DropDownsModule,P.ReactiveFormsModule,ee.SharedModule],se=function(){function e(){}return e=r.__decorate([o.NgModule({imports:[i.CommonModule,p.ToolbarModule,m.AgendaViewModule,f.MultiDayViewModule,s.ResizeSensorModule,g.MonthViewModule,x.TimelineViewModule].concat(ae),declarations:ie,exports:oe,providers:[{provide:a.IntlService,useClass:a.CldrIntlService}]})],e)}();t.SchedulerModule=se},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(74),a=n(19),s=n(80),c=n(5),l=n(4),d=n(47),u=n(3),p=n(7),h=function(){function e(e,t,n,r){this.scheduler=e,this.changeDetector=t,this.intl=n,this.localDataChangesService=r,this.originalData=[],r&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(this.rebind.bind(this)))}return Object.defineProperty(e.prototype,"data",{set:function(e){this.originalData=e||[],this.localDataChangesService&&(this.localDataChangesService.data=e),this.scheduler.events=this.process()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscription=this.scheduler.dateChange.subscribe((function(t){return e.onDateChange(t)}))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe(),this.dataChangedSubscription&&this.dataChangedSubscription.unsubscribe()},e.prototype.rebind=function(){this.data=this.originalData,this.changeDetector.markForCheck()},e.prototype.process=function(){var e=this;if(!this.dateRange)return[];var t=[],n=this.scheduler.modelFields;return this.originalData.forEach((function(r){if(u.getField(r,n.recurrenceRule)){var i=function(e,t,n,r,i){var a=s.parseRule({recurrenceRule:u.getField(e,t.recurrenceRule),weekStart:i});if(!a.start){var d=u.getField(e,t.start);a.start=l.ZonedDate.fromLocalDate(d,r)}if(!a.end){var p=u.getField(e,t.end);a.end=l.ZonedDate.fromLocalDate(p,r)}var h=u.getField(e,t.recurrenceExceptions);h&&(a.exceptionDates=h.map((function(e){return l.ZonedDate.fromLocalDate(e,r)})));var m=c.toUTCDateTime(n.start),g=c.toUTCDateTime(n.end),f=s.expand(a,{rangeStart:l.ZonedDate.fromUTCDate(m,r),rangeEnd:l.ZonedDate.fromUTCDate(g,r)});if(!f.events.length)return[];var v=f.events.map((function(n){var r=u.clone(e);return u.setField(r,t.id,o.OCCURRENCE_ID),u.setField(r,t.recurrenceId,u.getField(e,t.id)),u.setField(r,t.start,n.start.toLocalDate()),u.setField(r,t.end,n.end.toLocalDate()),r}));return[e].concat(v)}(r,n,e.dateRange,e.scheduler.timezone,e.scheduler.weekStart);t.push.apply(t,i)}else t.push(r)})),t},e.prototype.onDateChange=function(e){this.dateRange=e.dateRange,this.rebind()},r.__decorate([i.Input("kendoSchedulerBinding"),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),e=r.__decorate([i.Directive({selector:"[kendoSchedulerBinding]"}),r.__metadata("design:paramtypes",[a.SchedulerComponent,i.ChangeDetectorRef,p.IntlService,d.LocalDataChangesService])],e)}();t.DataBindingDirective=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),a=n(81),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=r.__decorate([i.Component({providers:[{provide:a.Messages,useExisting:i.forwardRef((function(){return n}))}],selector:"kendo-scheduler-messages",template:""}),r.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.Messages);t.SchedulerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),a=n(81),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return r.__extends(t,e),n=t,t=n=r.__decorate([i.Directive({providers:[{provide:a.Messages,useExisting:i.forwardRef((function(){return n}))}],selector:"[kendoSchedulerLocalizedMessages]"}),r.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.Messages);t.LocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(25),o=n(1),a=n(21),s=n(23),c=n(82),l=n(6),d=n(124),u=n(125),p=n(34),h=n(126);t.publicDirectives=[d.ToolbarNavigationComponent,p.ToolbarTemplateDirective,h.ToolbarViewSelectorComponent];var m=function(){function e(){}return e=r.__decorate([o.NgModule({imports:[i.CommonModule,a.ButtonsModule,s.CalendarModule,c.PopupModule,l.EventsModule],exports:[u.ToolbarComponent].concat(t.publicDirectives),declarations:[u.ToolbarComponent].concat(t.publicDirectives)})],e)}();t.ToolbarModule=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(82),a=n(2),s=n(24),c=n(23),l=function(){function e(e,t,n,r){this.popupService=e,this.toolbarService=t,this.localization=n,this.inlineDisplayStyle="flex",this.inlineFlexFlowStyle="inherit",this.inlineGapStyle="inherit",this.subs=this.localization.changes.subscribe((function(e){e.rtl;r.markForCheck()}))}return Object.defineProperty(e.prototype,"calendar",{set:function(e){e&&e.focus()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"todayText",{get:function(){return this.localization.get("today")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calendarTodayText",{get:function(){return this.localization.get("calendarToday")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nextText",{get:function(){return this.localization.get("nextTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"previousText",{get:function(){return this.localization.get("previousTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ctx",{get:function(){return this.toolbarService.context},enumerable:!0,configurable:!0}),e.prototype.onBlur=function(){this.closePopup()},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe(),this.closePopup()},e.prototype.toggleSelectedDate=function(e,t){if(this.popupRef)this.closePopup();else{var n={anchor:e,content:t};this.localization.rtl&&(n.popupClass="k-rtl"),this.popupRef=this.popupService.open(n)}return!1},e.prototype.selectDate=function(e){this.closePopup(),this.toolbarService.navigate({type:"select-date",date:e})},e.prototype.prevClick=function(){return this.toolbarService.navigate({type:"prev"}),!1},e.prototype.nextClick=function(){return this.toolbarService.navigate({type:"next"}),!1},e.prototype.todayClick=function(){return this.toolbarService.navigate({type:"today"}),!1},e.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)},r.__decorate([i.ViewChild("calendar",{static:!1}),r.__metadata("design:type",c.CalendarComponent),r.__metadata("design:paramtypes",[c.CalendarComponent])],e.prototype,"calendar",null),r.__decorate([i.HostBinding("style.display"),r.__metadata("design:type",String)],e.prototype,"inlineDisplayStyle",void 0),r.__decorate([i.HostBinding("style.flex-flow"),r.__metadata("design:type",String)],e.prototype,"inlineFlexFlowStyle",void 0),r.__decorate([i.HostBinding("style.gap"),r.__metadata("design:type",String)],e.prototype,"inlineGapStyle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],e.prototype,"min",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],e.prototype,"max",void 0),e=r.__decorate([i.Component({selector:"[kendoSchedulerToolbarNavigation]",changeDetection:i.ChangeDetectionStrategy.OnPush,providers:[o.PopupService],template:'\n <span class="k-scheduler-navigation k-button-group">\n <button kendoButton\n (click)="todayClick()"\n class="k-nav-today"\n [attr.title]="todayText"\n >\n <span class="k-button-text">{{todayText}}</span>\n </button>\n <button kendoButton\n (click)="prevClick()"\n class="k-nav-prev"\n icon="arrow-60-left"\n [attr.title]="previousText"\n [attr.aria-label]="previousText"\n >\n </button>\n <button kendoButton\n (click)="nextClick()"\n type="button"\n class="k-nav-next"\n icon="arrow-60-right"\n [attr.title]="nextText"\n [attr.aria-label]="nextText"\n >\n </button>\n </span>\n\n <a #anchor\n (click)="toggleSelectedDate(anchor, template)"\n role="button"\n href="#"\n class="k-nav-current"\n tabindex="-1"\n >\n <span class="k-icon k-i-calendar"></span>\n <span class="k-sm-date-format">{{ (ctx.dateRange | async)?.shortText }}</span>\n <span class="k-lg-date-format">{{ (ctx.dateRange | async)?.text }}</span>\n </a>\n\n <ng-template #template>\n <kendo-calendar #calendar (blur)="onBlur()" (valueChange)="selectDate($event)" [value]="ctx.selectedDate | async" [min]="min" [max]="max">\n <kendo-calendar-messages [today]="calendarTodayText">\n </kendo-calendar-messages>\n </kendo-calendar>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[o.PopupService,s.ToolbarService,a.LocalizationService,i.ChangeDetectorRef])],e)}();t.ToolbarNavigationComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),a=n(11),s=n(34),c=n(24),l=function(){function e(e){var t=this;this.service=e,this.hostClasses=!0,this.navigate=new i.EventEmitter,this.templateContext={},this.subs=new o.Subscription,this.subs.add(e.action.subscribe((function(e){return t.navigate.next(e)})))}return e.prototype.ngOnInit=function(){var e=this;this.subs.add(this.selectedDate.subscribe((function(t){return e.templateContext.selectedDate=t}))),this.subs.add(this.dateRange.subscribe((function(t){return e.templateContext.dateRange=t})))},e.prototype.ngOnChanges=function(){this.service.context={dateRange:this.dateRange,selectedDate:this.selectedDate,views:this.views,selectedView:this.selectedView},Object.assign(this.templateContext,{views:this.views,selectedView:this.selectedView})},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},r.__decorate([i.HostBinding("class.k-scheduler-toolbar"),i.HostBinding("class.k-toolbar"),r.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),r.__decorate([i.Input(),r.__metadata("design:type",a.SchedulerView)],e.prototype,"selectedView",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],e.prototype,"views",void 0),r.__decorate([i.Input(),r.__metadata("design:type",o.Observable)],e.prototype,"dateRange",void 0),r.__decorate([i.Input(),r.__metadata("design:type",o.Observable)],e.prototype,"selectedDate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",s.ToolbarTemplateDirective)],e.prototype,"template",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"navigate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],e.prototype,"min",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],e.prototype,"max",void 0),e=r.__decorate([i.Component({selector:"kendo-scheduler-toolbar",template:'\n <ng-template\n *ngIf="template; else defaultTemplate"\n [ngTemplateOutlet]="template.templateRef"\n [ngTemplateOutletContext]="templateContext"\n >\n </ng-template>\n\n <ng-template #defaultTemplate>\n <div kendoSchedulerToolbarNavigation [min]="min" [max]="max"></div>\n <span class="k-spacer"></span>\n <div kendoSchedulerToolbarViewSelector></div>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[c.ToolbarService])],e)}();t.ToolbarComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(24),a=function(){function e(e){this.service=e,this.hostClasses=!0}return Object.defineProperty(e.prototype,"ctx",{get:function(){return this.service.context},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.detachDomEvents&&this.detachDomEvents()},e.prototype.select=function(e){this.ctx.selectedView!==e&&this.service.navigate({type:"view-change",view:e})},e.prototype.onChange=function(e){var t=this.ctx.views.find((function(t){return t.name===e.target.value}));t&&this.select(t)},e.prototype.isSelected=function(e){return this.ctx.selectedView===e},r.__decorate([i.HostBinding("class.k-scheduler-views-wrapper"),r.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),e=r.__decorate([i.Component({selector:"[kendoSchedulerToolbarViewSelector]",template:'\n <select *ngIf="ctx.views?.length > 1"\n (change)="onChange($event)"\n class="k-views-dropdown k-picker-md k-rounded-md k-picker-solid k-dropdownlist k-picker">\n <option *ngFor="let view of ctx.views"\n [selected]="isSelected(view) == true"\n [value]="view.name"\n >\n {{ view.title }}\n </option>\n </select>\n <span class="k-scheduler-views k-button-group">\n <button kendoButton\n type="button"\n *ngFor="let view of ctx.views"\n [selected]="isSelected(view)"\n [attr.aria-pressed]="isSelected(view)"\n (click)="select(view)"\n >\n <span class="k-button-text">\n {{ view.title }}\n </span>\n </button>\n </span>\n '}),r.__metadata("design:paramtypes",[o.ToolbarService])],e)}();t.ToolbarViewSelectorComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(25),o=n(1),a=n(7),s=n(128),c=n(129),l=n(130),d=n(131),u=n(50),p=n(132),h=n(26),m=[c.AgendaHeaderComponent,s.AgendaHeaderItemComponent,d.AgendaListComponent,l.AgendaTaskItemComponent,u.AgendaViewComponent,p.AgendaViewInternalComponent],g=function(){function e(){}return e=r.__decorate([o.NgModule({imports:[i.CommonModule,a.IntlModule,h.SharedModule],exports:[u.AgendaViewComponent],declarations:[m]})],e)}();t.AgendaViewModule=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(4),a=function(){function e(){this.classes=!0}return Object.defineProperty(e.prototype,"rowSpan",{get:function(){return this.item.rowSpan},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemDate",{get:function(){return o.toLocalDate(this.item.dataItem.value)},enumerable:!0,configurable:!0}),r.__decorate([i.HostBinding("class.k-scheduler-datecolumn"),r.__metadata("design:type",Boolean)],e.prototype,"classes",void 0),r.__decorate([i.HostBinding("attr.rowspan"),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[])],e.prototype,"rowSpan",null),r.__decorate([i.Input("kendoSchedulerAgendaHeaderItem"),r.__metadata("design:type",Object)],e.prototype,"item",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],e.prototype,"agendaDateTemplate",void 0),e=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"[kendoSchedulerAgendaHeaderItem]",template:'\n <ng-container *ngIf="!agendaDateTemplate">\n <strong class="k-scheduler-agendaday">{{itemDate | kendoDate: \'dd\'}}</strong>\n <em class="k-scheduler-agendaweek">{{itemDate | kendoDate: \'EEEE\'}}</em>\n <span class="k-scheduler-agendadate">{{itemDate | kendoDate: \'y\'}}</span>\n </ng-container>\n <ng-container *ngIf="agendaDateTemplate" [ngTemplateOutlet]="agendaDateTemplate"\n [ngTemplateOutletContext]="{ date: itemDate }">\n </ng-container>\n '})],e)}();t.AgendaHeaderItemComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),a=function(){function e(e){this.localization=e,this.classes=!0}return Object.defineProperty(e.prototype,"dateMessage",{get:function(){return this.localization.get("dateHeader")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timeMessage",{get:function(){return this.localization.get("timeHeader")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"eventMessage",{get:function(){return this.localization.get("eventHeader")},enumerable:!0,configurable:!0}),r.__decorate([i.HostBinding("class.k-scheduler-header"),i.HostBinding("class.k-state-default"),r.__metadata("design:type",Boolean)],e.prototype,"classes",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],e.prototype,"resources",void 0),e=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"[kendoSchedulerAgendaHeader]",template:'\n <div class="k-scheduler-header-wrap">\n <table class="k-scheduler-table" role="presentation">\n <tbody>\n <tr>\n <th *ngFor="let resource of resources" class="k-scheduler-groupcolumn"></th>\n <th class="k-scheduler-datecolumn">{{ dateMessage }}</th>\n <th class="k-scheduler-timecolumn">{{ timeMessage }}</th>\n <th>{{ eventMessage }}</th>\n </tr>\n </tbody>\n </table>\n </div>\n '}),r.__metadata("design:paramtypes",[o.LocalizationService])],e)}();t.AgendaHeaderComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),a=n(4),s=n(5),c=function(){function e(e,t){this.localization=e,this.localeId=t}return Object.defineProperty(e.prototype,"eventTitle",{get:function(){var e=a.toLocalDate(this.item.start),t=a.toLocalDate(this.item.end);return s.formatEventTime(e,t,this.item.isAllDay,this.localeId)+", "+this.item.event.title},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"eventColor",{get:function(){return this.item.color},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"deleteMessage",{get:function(){return this.localization.get("deleteTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRecurrence",{get:function(){return s.isRecurrence(this.item)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRecurrenceException",{get:function(){return s.isRecurrenceException(this.item)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"removable",{get:function(){return this.editable&&!1!==this.editable.remove},enumerable:!0,configurable:!0}),r.__decorate([i.Input("kendoSchedulerAgendaTaskItem"),r.__metadata("design:type",Object)],e.prototype,"item",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"color",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],e.prototype,"eventTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"editable",void 0),r.__decorate([i.HostBinding("attr.aria-label"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"eventTitle",null),e=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"[kendoSchedulerAgendaTaskItem]",template:'\n <div class="k-task" [title]="item.title">\n <span class="k-scheduler-mark" *ngIf="eventColor" [style.background-color]="eventColor"></span>\n <span class="k-icon k-i-reload" *ngIf="isRecurrence"></span>\n <span class="k-icon k-i-non-recurrence" *ngIf="isRecurrenceException"></span>\n <ng-container *ngIf="!eventTemplate">\n {{item?.title }}\n </ng-container>\n <ng-container *ngIf="eventTemplate" [ngTemplateOutlet]="eventTemplate"\n [ngTemplateOutletContext]="{ $implicit: item.event, event: item.event, resources: item.resources }">\n </ng-container>\n\n <span *ngIf="removable" class="k-link k-event-delete" aria-hidden="true" [attr.title]="deleteMessage">\n <span class="k-icon k-i-close"></span>\n </span>\n </div>\n '}),r.__param(1,i.Inject(i.LOCALE_ID)),r.__metadata("design:paramtypes",[o.LocalizationService,String])],e)}();t.AgendaTaskItemComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(7),a=n(2),s=n(4),c=n(5),l=function(){function e(e,t){this.intlService=e,this.localization=t,this.classes=!0}return e.prototype.extractDataItem=function(e){return"group"===e.type?e.dataItem.items[0]:e.dataItem},e.prototype.formatTime=function(e){if(e.isAllDay)return this.localization.get("allDay");var t="{0:t}-{1:t}";return e.head?t="{0:t}":e.tail&&(t="{1:t}"),this.intlService.format(t,s.toLocalDate(e.start),s.toLocalDate(e.end))},e.prototype.trackByFn=function(e,t){return e},e.prototype.cellClasses=function(e){var t=this.extractDataItem(e),n=[];return this.slotClass&&(n=n.concat(c.convertNgClassBindings(this.slotClass({start:t.start,end:t.end,resources:t.resources,event:t.event})))),this.eventClass&&(n=n.concat(c.convertNgClassBindings(this.eventClass({event:t.event,resources:t.resources})))),n},e.prototype.getEventStyles=function(e){if(this.eventStyles){var t=this.extractDataItem(e);return this.eventStyles({event:t.event,resources:t.resources})}},r.__decorate([i.HostBinding("class.k-scheduler-content"),r.__metadata("design:type",Boolean)],e.prototype,"classes",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],e.prototype,"tasks",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],e.prototype,"eventTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"slotClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"eventClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"eventStyles",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],e.prototype,"agendaTimeTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],e.prototype,"agendaDateTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"editable",void 0),e=r.__decorate([i.Component({selector:"[kendoSchedulerAgendaList]",template:'\n <table class="k-scheduler-table" role="presentation">\n <tbody>\n <ng-container *ngFor="let group of tasks; let groupIndex = index;">\n <tr *ngFor="let item of group.tasks;let index = index; trackBy: trackByFn">\n <ng-container *ngFor="let resource of group.resources;let resourceIndex = index">\n <td *ngIf="group.spans[resourceIndex] && index === 0" class="k-scheduler-groupcolumn" [attr.rowspan]="group.spans[resourceIndex]">\n {{ resource }}\n </td>\n </ng-container>\n <td *ngIf="item.type === \'group\'"\n [kendoSchedulerAgendaHeaderItem]="item"\n [agendaDateTemplate]="agendaDateTemplate">\n </td>\n <td class="k-scheduler-timecolumn">\n <div *ngIf="!agendaTimeTemplate">\n <span class="k-icon k-i-arrow-60-left" *ngIf="extractDataItem(item).tail"></span>\n {{formatTime(extractDataItem(item)) }}\n <span class="k-icon k-i-arrow-60-right" *ngIf="extractDataItem(item).head"></span>\n </div>\n <ng-container *ngIf="agendaTimeTemplate" [ngTemplateOutlet]="agendaTimeTemplate"\n [ngTemplateOutletContext]="extractDataItem(item)">\n </ng-container>\n </td>\n <td [attr.data-group-index]="groupIndex" [attr.data-task-index]="index"\n [ngClass]="cellClasses(item)" [ngStyle]="getEventStyles(item)"\n [kendoSchedulerFocusIndex]="groupIndex"\n [kendoSchedulerAgendaTaskItem]="extractDataItem(item)"\n [editable]="editable"\n [eventTemplate]="eventTemplate"\n ></td>\n </tr>\n </ng-container>\n </tbody>\n </table>\n '}),r.__metadata("design:paramtypes",[o.IntlService,a.LocalizationService])],e)}();t.AgendaListComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(6),a=n(7),s=n(4),c=n(8),l=n(13),d=n(10),u=n(9),p=n(17),h=n(133),m=n(5),g=n(16),f=n(2),v=function(){function e(e,t,n,r,i,o,a,s){this.viewContext=e,this.viewState=t,this.intl=n,this.renderer=r,this.element=i,this.zone=o,this.pdfService=a,this.localization=s,this.tasks=new c.BehaviorSubject(null),this.groupedResources=[],this.spans=[],this.subs=new c.Subscription}return Object.defineProperty(e.prototype,"eventTemplateRef",{get:function(){return this.eventTemplate||(this.schedulerEventTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"agendaTimeTemplateRef",{get:function(){return this.agendaTimeTemplate||(this.schedulerAgendaTimeTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"agendaDateTemplateRef",{get:function(){return this.agendaDateTemplate||(this.schedulerAgendaDateTemplate||{}).templateRef},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.updateContentHeight=this.updateContentHeight.bind(this),this.subs.add(this.viewContext.selectedDate.subscribe(this.onSelectDate.bind(this))),this.subs.add(this.viewContext.action.subscribe(this.onAction.bind(this))),this.subs.add(this.viewContext.execute.subscribe(this.execute.bind(this))),this.subs.add(this.viewContext.resize.subscribe(this.updateContentHeight)),this.subs.add(c.combineLatest(this.viewContext.items,this.viewState.dateRange).pipe(l.map((function(t){var n=t[0],r=t[1];return e.items=n,e.range=r,e.createEventGroups()}))).subscribe((function(t){e.tasks.next(t)}))),this.subs.add(this.viewContext.optionsChange.subscribe(this.optionsChange.bind(this)));this.subs.add(c.combineLatest(this.tasks,this.localization.changes).pipe(l.switchMap((function(){return e.zone.onStable.pipe(l.take(1))}))).subscribe(this.updateContentHeight)),this.subs.add(this.pdfService.createElement.subscribe(this.createPDFElement.bind(this)))},e.prototype.ngOnChanges=function(e){o.anyChanged(["selectedDateFormat","selectedShortDateFormat","numberOfDays"],e)&&this.viewState.notifyDateRange(this.dateRange(this.selectedDate))},e.prototype.ngAfterViewInit=function(){var e=this;if(this.element){var t=this.content.nativeElement;this.zone.runOutsideAngular((function(){e.subs.add(c.merge(c.fromEvent(t,"click"),c.fromEvent(t,"contextmenu"),c.fromEvent(t,"dblclick")).subscribe((function(t){return e.onClick(t)}))),e.subs.add(c.fromEvent(t,"keydown").subscribe((function(t){return e.onKeydown(t)})))}))}},e.prototype.onClick=function(e){var t=this.targetTask(e.target);if(t){var n=t.task,r=t.eventTarget,i=e.type,o="dblclick"===i;if("click"===i&&p.closestInScope(e.target,(function(e){return p.hasClasses(e,"k-event-delete")}),r))this.viewState.emitEvent("remove",{event:n.event,dataItem:n.event.dataItem});else{var a=o?"eventDblClick":"eventClick";this.viewState.emitEvent(a,{type:i,event:n.event,originalEvent:e})}}},e.prototype.onKeydown=function(e){var t=this.targetTask(e.target);if(t){var n=t.task;this.viewState.emitEvent("eventKeydown",{event:n.event,dataItem:n.event.dataItem,originalEvent:e})}},e.prototype.targetTask=function(e){var t=p.closestInScope(e,(function(e){return e.hasAttribute("data-task-index")}),this.element.nativeElement);if(t)return{eventTarget:t,task:this.elementTask(t)}},e.prototype.updateContentHeight=function(){var e=this.element.nativeElement,t=e.parentNode,n=this.content.nativeElement;this.renderer.setStyle(n,"height","");for(var r=t.clientHeight,i=0;i<t.children.length;i++){var o=t.children[i];o===e||m.ignoreContentChild(o)||(r-=o.offsetHeight)}var a=this.headerWrap.nativeElement;r-=this.headerWrap?a.offsetHeight:0,this.renderer.setStyle(n,"height",r+"px");var s=this.localization.rtl,c=p.hasScrollbar(n,"vertical")?p.scrollbarWidth():0;this.renderer.setStyle(a,s?"padding-left":"padding-right",c+"px"),this.renderer.setStyle(a,s?"padding-right":"padding-left","0px"),this.viewState.notifyLayoutEnd()},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.prototype.optionsChange=function(e){this.group=e.group,this.resources=e.resources,this.groupResources(),this.min=e.min,this.max=e.max,this.editable=e.editable,this.items&&this.items.length&&this.tasks.next(this.createEventGroups()),this.schedulerEventTemplate=e.eventTemplate,this.schedulerAgendaTimeTemplate=e.agendaTimeTemplate,this.schedulerAgendaDateTemplate=e.agendaDateTemplate},e.prototype.onSelectDate=function(e){this.selectedDate=e,this.viewState.notifyDateRange(this.dateRange())},e.prototype.onAction=function(e){var t=s.getDate(this.selectedDate);if("next"===e.type){var n=s.getDate(s.addDays(t,this.numberOfDays));this.isInRange(n)&&this.viewState.notifyNextDate(n)}if("prev"===e.type){n=s.getDate(s.addDays(t,-this.numberOfDays));this.isInRange(n)&&this.viewState.notifyNextDate(n)}},e.prototype.createEventGroups=function(){var e=this.groupedResources.length?h.createResourceGroups(this.groupedResources):null;return this.groups=h.groupEvents(this.items,{taskResources:this.taskResources,resourceGroups:e,allResources:this.resources,spans:this.spans,dateRange:this.range})},e.prototype.dateRange=function(e){void 0===e&&(e=this.selectedDate);var t=s.getDate(e),n=s.getDate(s.addDays(t,this.numberOfDays)),r=s.getDate(s.addDays(t,this.numberOfDays-1));return{start:t,end:n,text:this.intl.format(this.selectedDateFormat,t,r),shortText:this.intl.format(this.selectedShortDateFormat,t,r)}},e.prototype.groupResources=function(){var e=this.resources||[],t=(this.group||{}).resources,n=this.groupedResources=[];if(t&&t.length)for(var r=function(r){var i=t[r],o=e.find((function(e){return e.name===i}));o&&n.push(o)},i=0;i<t.length;i++)r(i);this.spans=this.resourceSpans()},e.prototype.resourceSpans=function(){for(var e=[1],t=this.groupedResources,n=1,r=t.length-1;r>0;r--)n*=(t[r].data||[]).length||1,e.unshift(n);return e},Object.defineProperty(e.prototype,"taskResources",{get:function(){return this.groupedResources.length?this.groupedResources:this.resources&&this.resources.length?[this.resources[0]]:[{}]},enumerable:!0,configurable:!0}),e.prototype.isInRange=function(e){var t=this.dateRange(e);return(!this.min||this.min<t.end)&&(!this.max||t.start<=this.max)},e.prototype.createPDFElement=function(){var e=this.element.nativeElement.cloneNode(!0);e.style.width=this.element.nativeElement.offsetWidth+"px",e.querySelector(".k-scheduler-content").style.height="auto";var t=e.querySelector(".k-scheduler-header");t.style.paddingRight=0,t.style.paddingLeft=0,this.pdfService.elementReady.emit({element:e})},e.prototype.elementTask=function(e){var t=parseInt(e.getAttribute("data-task-index"),10),n=parseInt(e.getAttribute("data-group-index"),10);return this.groups[n].tasks.itemAt(t)},e.prototype.execute=function(e){if("slotByPosition"===e.name){var t=this.slotByPosition(e.args);e.result(t)}else if("eventFromElement"===e.name){var n=this.elementTask(e.args.element);n&&e.result(n.event)}},e.prototype.slotByPosition=function(e){var t=e.x,n=e.y,r=this.content.nativeElement.querySelector("table"),o=m.elementOffset(r);if(o.top<=n&&n<=o.top+o.height){var a=r.rows;if(!a.length)return;var s=m.elementOffset(a[0].cells[a[0].cells.length-1]);if(s.left<=t&&t<=s.left+s.width)for(var c=0;c<a.length;c++){var l=a[c],d=m.elementOffset(l);if(d.top<=n&&n<=d.top+d.height){var u=l.querySelector("[data-task-index]"),p=this.elementTask(u),h=p.event;return{element:new i.ElementRef(u),start:h.start,end:h.end,event:h,resources:p.resources,isAllDay:p.isAllDay}}}}},r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],e.prototype,"eventTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"slotClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"eventClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],e.prototype,"eventStyles",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],e.prototype,"agendaTimeTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],e.prototype,"agendaDateTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"selectedDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"selectedShortDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"numberOfDays",void 0),r.__decorate([i.ViewChild("headerWrap",{read:i.ElementRef,static:!0}),r.__metadata("design:type",i.ElementRef)],e.prototype,"headerWrap",void 0),r.__decorate([i.ViewChild("content",{read:i.ElementRef,static:!0}),r.__metadata("design:type",i.ElementRef)],e.prototype,"content",void 0),e=r.__decorate([i.Component({selector:"agenda-view-internal",template:'\n <table class="k-scheduler-layout k-scheduler-agendaview k-scheduler-agenda">\n <tbody>\n <tr>\n <td>\n <div kendoSchedulerAgendaHeader [resources]="groupedResources" #headerWrap></div>\n </td>\n </tr>\n <tr>\n <td>\n <div kendoSchedulerAgendaList #content\n [editable]="editable"\n [eventTemplate]="eventTemplateRef"\n [slotClass]="slotClass"\n [eventClass]="eventClass"\n [eventStyles]="eventStyles"\n [agendaTimeTemplate]="agendaTimeTemplateRef"\n [agendaDateTemplate]="agendaDateTemplateRef"\n [tasks]="tasks | async">\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n '}),r.__metadata("design:paramtypes",[d.ViewContextService,u.ViewStateService,a.IntlService,i.Renderer2,i.ElementRef,i.NgZone,g.PDFService,f.LocalizationService])],e)}();t.AgendaViewInternalComponent=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(134),o=n(4),a=n(5),s=n(3);function c(e,t,n,r){var i=e.event;return{event:i,start:e.start.toUTCDate(),end:e.end.toUTCDate(),title:i.title,isAllDay:i.isAllDay,color:r,resourceIdx:t,resources:n}}t.createResourceGroups=function(e){for(var t=[],n=e[0],r=n.data,i=0;i<r.length;i++){var o=r[i];t.push({resources:[s.getField(o,n.textField)]})}for(var a=1;a<e.length;a++){for(var c=e[a],l=c.data,d=[],u=0;u<t.length;u++){var p=t[u];for(i=0;i<l.length;i++){o=l[i];d.push({resources:p.resources.concat(s.getField(o,c.textField))})}}t=d}return t};var l=function(e){var t=e.start,n=e.end,r=e.isAllDay,i=void 0!==r&&r,s=i?a.getUTCDate(n):n,c=Math.ceil((s-+a.getUTCDate(t))/o.MS_PER_DAY);return i?c+1:c},d=function(e){var t=e.length;return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t===n.length?e.apply(null,n):d(e.bind.apply(e,[null].concat(n)))}},u=function(e){return e.tail||(e.mid=!0),e},p=function(e,t){return function(n,o,s,c){return n.concat(i.compose(u,(d=function(e,t){return t.length?t[t.length-1].end:e}(t,n),p=e.end,function(e){return r.__assign({},e,{start:a.getUTCDate(d),end:e.tail&&!e.isAllDay?p:a.addUTCDays(d,1),startDate:a.getUTCDate(d)})}),(l=s===c.length-1,function(e){return l&&(e.tail=!0),e}))(e));var l,d,p}},h=function(e,t){return(n=l(e)-1,Array.from(new Array(n).keys())).reduce(p(e,t),[]);var n};t.splitTasks=d((function(e,t,n){for(var i=[],o=0;o<n.length;o++){var s=r.__assign({},n[o]);s.startDate=a.getUTCDate(s.start),s.start>=e&&s.start<=t&&i.push(s),l(s)>1&&(s.end=a.addUTCDays(s.startDate,1),s.head=!0,i.push.apply(i,h(r.__assign({},n[o]),s.end).filter((function(n){return a.getUTCDate(n.end)<=t&&n.start>=e}))))}return i})),t.groupEvents=function(e,n){for(var r=n.taskResources,o=n.resourceGroups,s=n.spans,l=n.allResources,d=n.dateRange,u=o||[{}],p=a.toUTCDate(d.start),h=a.toUTCDate(d.end),m=0;m<e.length;m++){var g=e[m],f=g.event;if(a.intersects(g.start.toUTCDate(),g.end.toUTCDate(),p,h)){var v=a.eventResources(f,{taskResources:r,hasGroups:o&&o.length>0,spans:s,allResources:l});if(v.length&&v[0].leafIdx>=0)for(var y=0;y<v.length;y++){var _=v[y],b=c(g,_.leafIdx,_.resources,_.color);(u[_.leafIdx].tasks=u[_.leafIdx].tasks||[]).push(b)}}}return o?function(e,n,r){var o=n.filter((function(e){return e.tasks&&e.tasks.length}));if(!o.length)return[];for(var s=o[0].resources.map((function(e){return{value:e,span:0,groupIdx:0}})),c=a.toUTCDate(r.start),l=a.toUTCDate(r.end),d=0;d<o.length;d++){var u=o[d];u.tasks=t.splitTasks(c,l,u.tasks);var p=u.tasks.length;u.tasks=new i.TaskCollection(c,l,u.tasks);for(var h=!1,m=0;m<e.length;m++){var g=s[m];if(g.value!==u.resources[m]||h){g.value=u.resources[m];var f=o[g.groupIdx];f.spans=f.spans||[],f.spans[m]=g.span,g.span=p,g.groupIdx=d,h=!0}else g.span+=p}}return s.forEach((function(e,t){var n=o[e.groupIdx];n.spans=n.spans||[],n.spans[t]=e.span})),o}(r,u,d):(u[0].tasks=new i.TaskCollection(p,h,t.splitTasks(p,h,u[0].tasks||[])),u)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(52),o=n(3),a=function(e){return function(t){return function(n){return e(n,t)}}},s=a(i.orderBy),c=a(i.groupBy);function l(e){var t,n,i;return r.__generator(this,(function(r){switch(r.label){case 0:t=0,r.label=1;case 1:return t<e.length?[4,{type:"group",dataItem:n=e[t],rowSpan:n.items.length}]:[3,7];case 2:r.sent(),i=1,r.label=3;case 3:return i<n.items.length?[4,{type:"event",dataItem:n.items[i]}]:[3,6];case 4:r.sent(),r.label=5;case 5:return i++,[3,3];case 6:return t++,[3,1];case 7:return[2]}}))}t.compose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduceRight((function(e,t){return t(e)}),t)}},t.processEvents=function(e,n){return t.compose(c([{field:"startDate"}]),s([{field:"start",dir:"asc"},{field:"end",dir:"asc"}]))};var d=function(){function e(){}return e.prototype[o.iterator]=function(){return{next:function(){return{done:!0,value:null}}}},e.prototype.toString=function(){return"Empty Iterator"},e}();t.EmptyIterator=d;var u=function(){function e(e,n,r){this.start=e,this.end=n,this.events=r,this.createIterator=t.compose(l,t.processEvents(this.start,this.end))}return e.empty=function(){return new d},e.prototype[o.iterator]=function(){return this.createIterator(this.events)},e.prototype.itemAt=function(e){var t,n=this.createIterator(this.events),r=0;do{if((t=n.next())&&r===e){var i=t.value;return"group"===i.type?i.dataItem.items[0]:i.dataItem}r++}while(t)},e.prototype.toString=function(){return this.events.toString()},e}();t.TaskCollection=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(136),a=n(137),s=n(138),c=n(141),l=n(29),d=function(){function e(){}return e=r.__decorate([i.NgModule({imports:[l.ViewsSharedModule],exports:[a.MonthViewComponent],declarations:[a.MonthViewComponent,s.MonthViewRendererComponent,o.MonthViewItemComponent,c.MonthSlotDirective]})],e)}();t.MonthViewModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),a=n(53),s=n(85),c=n(20),l=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,n,r,i,o,a)||this;return s.localeId=a,s}return r.__extends(t,e),t.prototype.reflow=function(){this.item.data[this.resourceIndex].hidden?this.toggle(!1):e.prototype.reflow.call(this)},t=r.__decorate([i.Component({selector:"[monthViewItem]",template:'\n <span class="k-event-actions">\n <span class="k-icon k-i-arrow-60-left" *ngIf="item.tail"></span>\n <span class="k-icon k-i-reload" *ngIf="isRecurrence"></span>\n <span class="k-icon k-i-non-recurrence" *ngIf="isRecurrenceException"></span>\n </span>\n <ng-container *ngIf="eventTemplate" [ngTemplateOutlet]="eventTemplate"\n [ngTemplateOutletContext]="{ $implicit: item.event, event: item.event, resources: resources }">\n </ng-container>\n <div *ngIf="!eventTemplate" [attr.title]="eventTitle">\n <div class="k-event-template">{{ item.event.title }}</div>\n </div>\n\n <span class="k-event-actions">\n <span *ngIf="removable" class="k-link k-event-delete" aria-hidden="true" [attr.title]="deleteMessage">\n <span class="k-icon k-i-close"></span>\n </span>\n <span class="k-icon k-i-arrow-60-right" *ngIf="item.head"></span>\n </span>\n\n <ng-container *ngIf="resizable">\n <span class="k-resize-handle k-resize-w"></span>\n <span class="k-resize-handle k-resize-e"></span>\n </ng-container>\n '}),r.__param(5,i.Inject(i.LOCALE_ID)),r.__metadata("design:paramtypes",[a.MonthSlotService,o.LocalizationService,c.FocusService,i.ElementRef,i.Renderer2,String])],t)}(s.BaseViewItem);t.MonthViewItemComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),a=n(11),s=n(51),c=n(10),l=n(9),d=n(22),u=n(18),p=n(3),h=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.selectedDateFormat="{0:Y}",o.selectedShortDateFormat="{0:y}",o.name="month",o}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("monthViewTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewEventHeight",{get:function(){return p.isPresent(this.eventHeight)?this.eventHeight:this.schedulerOptions.eventHeight||u.DEFAULT_EVENT_HEIGHT},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"eventHeight",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedShortDateFormat",void 0),r.__decorate([i.ContentChild(d.MonthDaySlotTemplateDirective,{static:!1}),r.__metadata("design:type",d.MonthDaySlotTemplateDirective)],t.prototype,"monthDaySlotTemplate",void 0),t=n=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-month-view",providers:[{provide:a.SchedulerView,useExisting:i.forwardRef((function(){return n}))}],template:'\n <ng-template #content>\n <month-view\n [eventHeight]="viewEventHeight"\n [еventTemplate]="eventTemplate?.templateRef"\n [slotClass]="viewSlotClass"\n [eventClass]="viewEventClass"\n [eventStyles]="viewEventStyles"\n [groupHeaderTemplate]="groupHeaderTemplate?.templateRef"\n [monthDaySlotTemplate]="monthDaySlotTemplate?.templateRef"\n [selectedDateFormat]="selectedDateFormat"\n [selectedShortDateFormat]="selectedShortDateFormat"\n [weekStart]="viewWeekStart">\n </month-view>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[o.LocalizationService,i.ChangeDetectorRef,c.ViewContextService,l.ViewStateService])],t)}(s.ConfigurationViewBase);t.MonthViewComponent=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(7),a=n(6),s=n(4),c=n(10),l=n(9),d=n(17),u=n(53),p=n(139),h=n(5),m=n(86),g=n(16),f=n(2),v=function(e){function t(t,n,r,i,o,a,s,c,l,d){var u=e.call(this,t,n,r,i,o,s,a,c,l,d)||this;return u.resizeHintFormat={skeleton:"Md"},u.weeks=[],u}return r.__extends(t,e),Object.defineProperty(t.prototype,"monthDaySlotTemplateRef",{get:function(){return this.monthDaySlotTemplate||(this.schedulerMonthDaySlotTemplate||{}).templateRef},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){a.isChanged("weekStart",t)&&this.onSelectDate(this.selectedDate),e.prototype.ngOnChanges.call(this,t)},t.prototype.horizontalColspan=function(e){for(var t=this.horizontalResources,n=7,r=e+1;r<t.length;r++)n*=(t[r].data||[]).length||1;return n},t.prototype.verticalRowspan=function(e){for(var t=this.verticalResources,n=6,r=e+1;r<t.length;r++)n*=(t[r].data||[]).length||1;return n},t.prototype.verticalItem=function(e,t){for(var n=this.verticalResources[t].data||[],r=this.verticalResources,i=1,o=t+1;o<r.length;o++)i*=(r[o].data||[]).length||1;return n[e/i%n.length]},t.prototype.daySlotClass=function(e,t){if(this.slotClass)return this.slotClass({start:e,end:s.addDays(e,1),resources:this.resourcesByIndex(t),isAllDay:!1})},t.prototype.cellTitle=function(e){return this.intl.formatDate(e,"D")},t.prototype.addDay=function(e){return s.addDays(e,1)},t.prototype.optionsChange=function(t){this.schedulerMonthDaySlotTemplate=t.monthDaySlotTemplate,e.prototype.optionsChange.call(this,t)},t.prototype.createTasks=function(e,t){return this.weeks=this.createDaySlots(t),p.createTasks(t.start,t.end,e,this.weeks)},t.prototype.onTasksChange=function(){p.updateTaskData(this.tasks),this.items.next(this.tasks)},t.prototype.reflow=function(){this.updateContentHeight();var e=this.content.nativeElement;this.slotService.containerSize=e.scrollWidth,"auto"===this.contentHeight&&(e.style.overflow="visible"),this.slotService.layout(this.eventHeight),"auto"===this.contentHeight&&(e.style.overflow=""),this.syncTables()},t.prototype.onClick=function(t,n){var r=this;if(void 0===n&&(n=t.type),"click"===n){var i=d.closestInScope(t.target,(function(e){return e.hasAttribute("data-slot-index")}),this.element.nativeElement),o=d.closestInScope(t.target,(function(e){return d.hasClasses(e,"k-more-events k-nav-day")}),i);if(i&&o){var a=i.getAttribute("data-slot-index"),c=this.slotService.slotByIndex(a);return void this.zone.run((function(){r.viewState.navigateTo({viewName:"day",date:s.toLocalDate(c.start)})}))}}e.prototype.onClick.call(this,t,n)},t.prototype.slotByIndex=function(e,t){return this.slotService.slotByIndex(e)},t.prototype.onSelectDate=function(e){var t=this.dateRange(e);this.selectedDate=e,this.viewState.notifyDateRange(t),this.weeks=this.createDaySlots(t)},t.prototype.onAction=function(e){var t=s.getDate(this.selectedDate);if("next"===e.type){var n=s.firstDayOfMonth(s.addMonths(t,1));this.isInRange(n)&&this.viewState.notifyNextDate(n)}if("prev"===e.type){n=s.firstDayOfMonth(s.addMonths(t,-1));this.isInRange(n)&&this.viewState.notifyNextDate(n)}},t.prototype.dateRange=function(e){void 0===e&&(e=this.selectedDate);var t=s.firstDayOfMonth(s.getDate(e)),n=s.firstDayInWeek(t,this.weekStart);return{start:n,end:s.addDays(n,42),text:this.intl.format(this.selectedDateFormat,t),shortText:this.intl.format(this.selectedShortDateFormat,t)}},t.prototype.dragRanges=function(e){return this.slotService.dragRanges(e,this.dragging.offset)},t.prototype.dragHintSize=function(e,t){return{width:h.toPx(t.rect.left-e.rect.left+t.rect.width),height:h.toPx(e.height)}},t.prototype.slotByPosition=function(e,t){return this.slotService.slotByPosition(e,t)},t.prototype.createDaySlots=function(e){for(var t=[],n=e.start,r=0;r<6;r++){var i=[];t.push(i);for(var o=0;o<7;o++)i.push(n),n=s.addDays(n,1)}return t},r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],t.prototype,"monthDaySlotTemplate",void 0),t=r.__decorate([i.Component({selector:"month-view",providers:[u.MonthSlotService],template:'\n <div class="k-scheduler-layout k-scheduler-monthview k-scheduler-flex-layout">\n <div class="k-scheduler-pane">\n <div class="k-scheduler-times" #timesHeader *ngIf="verticalResources.length">\n <table class="k-scheduler-table" aria-hidden="true">\n <tr>\n <th></th>\n </tr>\n </table>\n </div>\n <div class="k-scheduler-header k-state-default" #header>\n <div class="k-scheduler-header-wrap" #headerWrap>\n <table class="k-scheduler-table" aria-hidden="true">\n <tr *ngFor="let resource of horizontalResources; let resourceIndex = index; trackBy: itemIndex">\n <th *ngFor="let item of horizontalResources | resourceIterator : resourceIndex; trackBy: itemIndex"\n class="k-slot-cell" [attr.colspan]="horizontalColspan(resourceIndex)">\n <ng-container *ngIf="!groupHeaderTemplateRef">{{ getField(item, resource.textField) }}</ng-container>\n <ng-container *ngIf="groupHeaderTemplateRef" [ngTemplateOutlet]="groupHeaderTemplateRef" [ngTemplateOutletContext]="{ resource: item }"></ng-container>\n </th>\n </tr>\n <tr>\n <ng-container *ngFor="let resource of horizontalResources | resourceIterator; trackBy: itemIndex">\n <th *ngFor="let day of weeks[0]; trackBy: itemIndex">\n {{ day | kendoDate: \'EEEE\' }}\n </th>\n </ng-container>\n </tr>\n </table>\n </div>\n </div>\n </div>\n <div class="k-scheduler-pane">\n <div class="k-scheduler-times k-scheduler-resources" #times *ngIf="verticalResources.length">\n <table class="k-scheduler-table" #timesTable aria-hidden="true">\n <ng-container *ngFor="let resourceItem of verticalResources | resourceIterator; let leafIndex = index; trackBy: itemIndex">\n <tr>\n <ng-container *ngFor="let resource of verticalResources; let resourceIndex = index; trackBy: itemIndex">\n <th *ngIf="verticalItem(leafIndex, resourceIndex)" [attr.rowspan]="verticalRowspan(resourceIndex)" class="k-slot-cell" [ngClass]="{ \'k-last-resource\': resourceIndex === verticalResources.length - 1 }">\n <ng-container *ngIf="!groupHeaderTemplateRef">{{ getField(verticalItem(leafIndex, resourceIndex), resource.textField) }}</ng-container>\n <ng-container *ngIf="groupHeaderTemplateRef" [ngTemplateOutlet]="groupHeaderTemplateRef"\n [ngTemplateOutletContext]="{ resource: verticalItem(leafIndex, resourceIndex) }"></ng-container>\n </th>\n </ng-container>\n <th class="k-slot-cell k-empty-slot">\n </th>\n </tr>\n <tr *ngFor="let index of 5 | repeat; trackBy: itemIndex">\n <th class="k-slot-cell k-empty-slot"></th>\n </tr>\n </ng-container>\n </table>\n </div>\n <div class="k-scheduler-content" #content>\n <table class="k-scheduler-table k-user-select-none" #contentTable role="presentation">\n <ng-container *ngFor="let resourceItem of verticalResources | resourceIterator; let verticalIndex = index; trackBy: itemIndex">\n <tr *ngFor="let week of weeks; let rangeIndex = index; trackBy: itemIndex">\n <ng-container *ngFor="let resource of horizontalResources | resourceIterator; let horizontalIndex = index; trackBy: itemIndex">\n <td *ngFor="let day of week; let index = index; trackBy: itemIndex"\n monthSlot\n [ngClass]="daySlotClass(day, verticalResources.length ? verticalIndex : horizontalIndex)"\n [start]="day"\n [id]="{ resourceIndex: verticalResources.length ? verticalIndex : horizontalIndex, rangeIndex: rangeIndex, index: index }"\n [title]="cellTitle(day)"\n [class.k-state-selected]="isSlotSelected({\n start: toPlainDate(day),\n end: addDay(toPlainDate(day)),\n isAllDay: true,\n resources: resourcesByIndex(verticalResources.length ? verticalIndex : horizontalIndex)\n })"\n >\n <span aria-hidden="true" class="k-link k-nav-day" *ngIf="!monthDaySlotTemplateRef">{{ day | kendoDate: \'dd\' }}</span>\n <ng-container *ngIf="monthDaySlotTemplateRef" [ngTemplateOutlet]="monthDaySlotTemplateRef"\n [ngTemplateOutletContext]="{ date: day, resources: resourcesByIndex(verticalResources.length ? verticalIndex : horizontalIndex) }"></ng-container>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </table>\n <ng-container *ngFor="let item of items | async; trackBy: itemIndex">\n <div *ngFor="let itemResource of item.resources; trackBy: itemIndex"\n [ngClass]="getEventClasses(item, itemResource.resources)"\n [ngStyle]="getEventStyles(item, itemResource)"\n [kendoSchedulerFocusIndex]="itemResource.leafIdx"\n monthViewItem\n [editable]="editable"\n [item]="item"\n [index]="item.index"\n [rangeIndex]="item.rangeIndex"\n [eventTemplate]="eventTemplateRef"\n [resources]="itemResource.resources"\n [resourceIndex]="itemResource.leafIdx">\n </div>\n </ng-container>\n <kendo-hint-container #hintContainer>\n <ng-template>\n <div *ngFor="let hint of dragHints; trackBy: itemIndex;"\n class="k-event-drag-hint"\n monthViewItem\n [ngStyle]="hint.style"\n [ngClass]="hint.class"\n [dragHint]="true"\n [eventTemplate]="eventTemplateRef"\n [item]="hint.item"\n [resources]="hint.resources">\n </div>\n\n <div *ngFor="let hint of resizeHints; trackBy: itemIndex;"\n kendoResizeHint\n [hint]="hint"\n [ngClass]="hint.class"\n [format]="resizeHintFormat">\n </div>\n </ng-template>\n </kendo-hint-container>\n </div>\n </div>\n </div>\n '}),r.__metadata("design:paramtypes",[c.ViewContextService,l.ViewStateService,o.IntlService,u.MonthSlotService,i.NgZone,i.ElementRef,i.Renderer2,g.PDFService,f.LocalizationService,i.ChangeDetectorRef])],t)}(m.BaseView);t.MonthViewRendererComponent=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),i=n(3);function o(e){var t=e.data;for(var n in t)t.hasOwnProperty(n)&&delete t[n]}t.createTasks=function(e,t,n,o){for(var a,s=[],c=r.toUTCDate(e),l=r.toUTCDate(t),d=0;d<n.length;d++){var u=n[d],p={},h=u.start.toUTCDate(),m=u.end,g=(u.end.getTime()!==m.getTime()?m.addDays(1):m).toUTCDate();if(r.intersects(h,g,c,l))for(var f=0;f<o.length;f++){var v=o[f],y=r.toUTCDate(v[0]),_=r.addUTCDays(r.toUTCDate((a=v)[a.length-1]),1);if(r.intersects(h,g,y,_)){var b={index:d,startTime:h,endTime:g,start:u.start,end:u.end,event:u.event,isAllDay:u.event.isAllDay,rangeIndex:f,data:p};s.push(b),b.head=b.endTime>_,b.tail=b.startTime<y}}}return i.sortTasksByTime(s)},t.updateTaskData=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.resources;o(n);for(var i=0;i<r.length;i++)n.data[r[i].leafIdx]={}}}},function(e,t){e.exports=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),a=n(87),s=n(53),c=n(17),l=n(5),d=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.isDaySlot=!0,i._linkHeight=null,i}return r.__extends(t,e),Object.defineProperty(t.prototype,"start",{get:function(){return this.startDate},set:function(e){this.startDate=l.toUTCDate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return l.addUTCDays(this.start,1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"linkHeight",{get:function(){if(null===this._linkHeight){var e=c.firstElementChild(this.nativeElement);this._linkHeight=e?e.offsetHeight+e.offsetTop:0}return this._linkHeight},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.removeShowMore()},t.prototype.showMore=function(e){if(!this.showMoreElement){var t=this.showMoreElement=document.createElement("div");t.innerHTML='<span class="k-icon k-i-more-horizontal"></span>',t.className="k-more-events k-button",t.style.width=e.width+"px",t.style.left=e.left+"px",t.style.top=e.top+"px",this.nativeElement.appendChild(t)}},t.prototype.hideMore=function(){this.removeShowMore()},t.prototype.invalidate=function(){e.prototype.invalidate.call(this),this._linkHeight=null,this.removeShowMore()},t.prototype.removeShowMore=function(){this.showMoreElement&&(this.showMoreElement.parentNode.removeChild(this.showMoreElement),this.showMoreElement=null)},r.__decorate([i.Input(),r.__metadata("design:type",Date),r.__metadata("design:paramtypes",[Date])],t.prototype,"start",null),t=r.__decorate([i.Directive({selector:"[monthSlot]"}),r.__metadata("design:paramtypes",[i.ElementRef,s.MonthSlotService,o.LocalizationService])],t)}(a.BaseSlotDirective);t.MonthSlotDirective=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(88),a=n(2),s=function(){function e(e,t){this.footer=e,this.localization=t,this.showWorkHours=!1,this.footerItems=[{cssClass:"k-scheduler-fullday",iconClass:"k-i-clock",text:""}]}return e.prototype.ngOnInit=function(){this.toggleWorkHours(),this.footer.items=this.footerItems},e.prototype.ngOnChanges=function(){this.toggleWorkHours()},e.prototype.toggleWorkHours=function(){this.footerItems[0].text=this.showWorkHours?this.localization.get("showFullDay"):this.localization.get("showWorkDay")},r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"showWorkHours",void 0),e=r.__decorate([i.Directive({selector:"[kendoWorkHoursFooter]"}),r.__metadata("design:paramtypes",[o.ViewFooterComponent,a.LocalizationService])],e)}();t.WorkHoursFooterDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(3),a=function(){function e(e){this.count=e}return e.prototype[o.iterator]=function(){var e;return r.__generator(this,(function(t){switch(t.label){case 0:e=0,t.label=1;case 1:return e<this.count?[4,e]:[3,4];case 2:t.sent(),t.label=3;case 3:return e++,[3,1];case 4:return[2]}}))},e}(),s=function(){function e(){}return e.prototype.transform=function(e){return new a(e)},e=r.__decorate([i.Pipe({name:"repeat"})],e)}();t.RepeatPipe=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(3),a=function(){function e(e,t){void 0===t&&(t=e.length-1),this.resources=e,this.lastIndex=t}return e.prototype[o.iterator]=function(){var e,t,n,i,o,a;return r.__generator(this,(function(r){switch(r.label){case 0:for(e=this.resources,t=Math.max(0,this.lastIndex),e&&e.length||(e=[{}]),n=e[t].data||[],i=n.length,o=1,a=0;a<=t;a++)o*=(e[a].data||[]).length||1;a=0,r.label=1;case 1:return a<o?[4,n[a%i]]:[3,4];case 2:r.sent(),r.label=3;case 3:return a++,[3,1];case 4:return[2]}}))},e}(),s=function(){function e(){}return e.prototype.transform=function(e,t){return void 0===e&&(e=[]),new a(e,t)},e=r.__decorate([i.Pipe({name:"resourceIterator"})],e)}();t.ResourceIteratorPipe=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(4),a=function(){function e(){this.marqueeClasses=!0}return Object.defineProperty(e.prototype,"left",{get:function(){return this.hint.rect.left},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.hint.rect.top},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.hint.rect.width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.hint.rect.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return o.toLocalDate(this.hint.start)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return o.toLocalDate(this.hint.end)},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"hint",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"format",void 0),r.__decorate([i.HostBinding("class.k-marquee"),i.HostBinding("class.k-scheduler-marquee"),i.HostBinding("class.k-first"),i.HostBinding("class.k-last"),r.__metadata("design:type",Boolean)],e.prototype,"marqueeClasses",void 0),r.__decorate([i.HostBinding("style.left.px"),i.HostBinding("style.right.px"),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[])],e.prototype,"left",null),r.__decorate([i.HostBinding("style.top.px"),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[])],e.prototype,"top",null),r.__decorate([i.HostBinding("style.width.px"),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[])],e.prototype,"width",null),r.__decorate([i.HostBinding("style.height.px"),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[])],e.prototype,"height",null),e=r.__decorate([i.Component({selector:"[kendoResizeHint]",template:'\n <div class="k-marquee-color"></div>\n <div class="k-marquee-text">\n <div class="k-label-top" *ngIf="hint.first">{{ start | kendoDate : format }}</div>\n <div class="k-label-bottom" *ngIf="hint.last">{{ end | kendoDate : format }}</div>\n </div>\n '})],e)}();t.ResizeHintComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(55),a=n(147),s=n(56),c=n(148),l=n(149),d=n(92),u=n(29),p=[o.DayViewComponent,a.MultiDayViewComponent,s.WeekViewComponent,c.WorkWeekViewComponent],h=function(){function e(){}return e=r.__decorate([i.NgModule({imports:[u.ViewsSharedModule,d.DayTimeModule],exports:[p],declarations:p.concat([l.MultiDayViewRendererComponent])})],e)}();t.MultiDayViewModule=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),a=n(11),s=n(10),c=n(9),l=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.numberOfDays=1,o.name="multiDay",o}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"selectedDateFormat",{get:function(){return this.dateFormat||this.defaultDateFormat},set:function(e){this.dateFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedShortDateFormat",{get:function(){return this.shortDateFormat||this.defaultShortDateFormat},set:function(e){this.shortDateFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("multiDayViewTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultDateFormat",{get:function(){return 1===this.numberOfDays?"{0:D}":"{0:D} - {1:D}"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultShortDateFormat",{get:function(){return 1===this.numberOfDays?"{0:d}":"{0:d} - {1:d}"},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],t.prototype,"selectedDateFormat",null),r.__decorate([i.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],t.prototype,"selectedShortDateFormat",null),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"numberOfDays",void 0),t=n=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-multi-day-view",providers:[{provide:a.SchedulerView,useExisting:i.forwardRef((function(){return n}))}],template:'\n <ng-template #content>\n <multi-day-view\n viewName="day"\n [name]="name"\n [numberOfDays]="numberOfDays"\n [eventHeight]="viewEventHeight"\n [currentTimeMarker]="viewCurrentTimeMarker"\n [showWorkHours]="shouldShowWorkHours"\n [scrollTime]="viewScrollTime"\n [startTime]="viewStartTime"\n [endTime]="viewEndTime"\n [workDayStart]="viewWorkDayStart"\n [workDayEnd]="viewWorkDayEnd"\n [workWeekStart]="viewWorkWeekStart"\n [workWeekEnd]="viewWorkWeekEnd"\n [slotDuration]="viewSlotDuration"\n [slotDivisions]="viewSlotDivisions"\n [slotFill]="viewSlotFill"\n [slotClass]="viewSlotClass"\n [eventClass]="viewEventClass"\n [eventStyles]="viewEventStyles"\n [allDaySlotTemplate]="allDaySlotTemplate?.templateRef"\n [allDayEventTemplate]="allDayEventTemplate?.templateRef"\n [еventTemplate]="eventTemplate?.templateRef"\n [groupHeaderTemplate]="groupHeaderTemplate?.templateRef"\n [timeSlotTemplate]="timeSlotTemplate?.templateRef"\n [minorTimeHeaderTemplate]="minorTimeHeaderTemplate?.templateRef"\n [majorTimeHeaderTemplate]="majorTimeHeaderTemplate?.templateRef"\n [dateHeaderTemplate]="dateHeaderTemplate?.templateRef"\n [selectedDateFormat]="selectedDateFormat"\n [selectedShortDateFormat]="selectedShortDateFormat">\n </multi-day-view>\n <div viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[o.LocalizationService,i.ChangeDetectorRef,s.ViewContextService,c.ViewStateService])],t)}(n(55).DayViewComponent);t.MultiDayViewComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),a=n(11),s=n(56),c=n(7),l=n(10),d=n(9),u=n(4),p=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r,i,o)||this;return a.name="workWeek",a.getNextDate=a.getNextDate.bind(a),a}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("workWeekViewTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"numberOfDays",{get:function(){return this.viewWorkWeekStart>this.viewWorkWeekEnd?7-this.viewWorkWeekStart+this.viewWorkWeekEnd+1:this.viewWorkWeekEnd-this.viewWorkWeekStart+1},enumerable:!0,configurable:!0}),t.prototype.getStartDate=function(e){return u.firstDayInWeek(u.getDate(e),this.viewWorkWeekStart)},t.prototype.getNextDate=function(e,t,n){return u.getDate(u.addDays(e,7*t))},t=n=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-work-week-view",providers:[{provide:a.SchedulerView,useExisting:i.forwardRef((function(){return n}))}],template:'\n <ng-template #content>\n <multi-day-view\n viewName="workWeekview"\n [name]="name"\n [numberOfDays]="numberOfDays"\n [getStartDate]="getStartDate"\n [getNextDate]="getNextDate"\n [eventHeight]="viewEventHeight"\n [currentTimeMarker]="viewCurrentTimeMarker"\n [showWorkHours]="shouldShowWorkHours"\n [scrollTime]="viewScrollTime"\n [startTime]="viewStartTime"\n [endTime]="viewEndTime"\n [workDayStart]="viewWorkDayStart"\n [workDayEnd]="viewWorkDayEnd"\n [workWeekStart]="viewWorkWeekStart"\n [workWeekEnd]="viewWorkWeekEnd"\n [slotDuration]="viewSlotDuration"\n [slotDivisions]="viewSlotDivisions"\n [slotFill]="viewSlotFill"\n [slotClass]="viewSlotClass"\n [eventClass]="viewEventClass"\n [eventStyles]="viewEventStyles"\n [allDaySlotTemplate]="allDaySlotTemplate?.templateRef"\n [allDayEventTemplate]="allDayEventTemplate?.templateRef"\n [еventTemplate]="eventTemplate?.templateRef"\n [groupHeaderTemplate]="groupHeaderTemplate?.templateRef"\n [timeSlotTemplate]="timeSlotTemplate?.templateRef"\n [minorTimeHeaderTemplate]="minorTimeHeaderTemplate?.templateRef"\n [majorTimeHeaderTemplate]="majorTimeHeaderTemplate?.templateRef"\n [dateHeaderTemplate]="dateHeaderTemplate?.templateRef"\n [selectedDateFormat]="selectedDateFormat"\n [selectedShortDateFormat]="selectedShortDateFormat">\n </multi-day-view>\n <div viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[c.IntlService,o.LocalizationService,i.ChangeDetectorRef,l.ViewContextService,d.ViewStateService])],t)}(s.WeekViewComponent);t.WorkWeekViewComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(7),a=n(2),s=n(6),c=n(8),l=n(10),d=n(9),u=n(30),p=n(150),h=n(91),m=n(54),g=n(5),f=n(16),v=function(e){function t(t,n,r,i,o,a,s,l,d,u){var p=e.call(this,d,n,r,i,o,a,s,l,u,t)||this;return p.name="day",p.dateFormat={skeleton:"MEd"},p.allDayResizeHintFormat={skeleton:"Md"},p.allDayItems=new c.BehaviorSubject(null),p}return r.__extends(t,e),Object.defineProperty(t.prototype,"allDaySlotTemplateRef",{get:function(){return this.allDaySlotTemplate||(this.schedulerAllDaySlotTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allDayEventTemplateRef",{get:function(){return this.allDayEventTemplate||(this.schedulerAllDayEventTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minorTimeHeaderTemplateRef",{get:function(){return this.minorTimeHeaderTemplate||(this.schedulerMinorTimeHeaderTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"majorTimeHeaderTemplateRef",{get:function(){return this.majorTimeHeaderTemplate||(this.schedulerMajorTimeHeaderTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allDayMessage",{get:function(){return this.localization.get("allDay")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allDayResizeHint",{get:function(){return this.resizing&&this.resizing.task.isAllDay},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allDayDragHint",{get:function(){return this.dragging&&this.dragging.slot.isDaySlot},enumerable:!0,configurable:!0}),t.prototype.optionsChange=function(t){this.schedulerAllDaySlotTemplate=t.allDaySlotTemplate,this.schedulerAllDayEventTemplate=t.allDayEventTemplate,this.schedulerMinorTimeHeaderTemplate=t.minorTimeHeaderTemplate,this.schedulerMajorTimeHeaderTemplate=t.majorTimeHeaderTemplate,e.prototype.optionsChange.call(this,t)},t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),t.slotFill&&this.changes.next(null),s.anyChanged(["startTime","endTime","showWorkHours","workDayStart","workDayEnd","workWeekStart","workWeekEnd"],t)&&this.viewRangeChange.next(null),(s.isChanged("numberOfDays",t,!0)||s.isChanged("weekStart",t))&&(this.daySlots=this.createDaySlots(),this.viewState.notifyDateRange(this.dateRange()))},t.prototype.horizontalColspan=function(e){for(var t=this.horizontalResources,n=this.daySlots.length,r=e+1;r<t.length;r++)n*=(t[r].data||[]).length||1;return n},t.prototype.verticalRowspan=function(e){for(var t=this.verticalResources,n=this.timeSlots.length+1,r=e+1;r<t.length;r++)n*=(t[r].data||[]).length||1;return n},t.prototype.allDaySlotClass=function(e,t){if(this.slotClass)return this.slotClass({start:e.start,end:e.end,resources:this.resourcesByIndex(t),isAllDay:!0})},t.prototype.createTasks=function(e,t){var n=this.timeSlots[0],r=this.timeSlots[this.timeSlots.length-1].end,i=!(r.getHours()||r.getMinutes()),o=this.daySlots.map((function(e){return{start:g.toUTCTime(e.start,n.start),end:i?g.toUTCDate(e.end):g.toUTCTime(e.start,r)}}));return p.createTasks(t.start,t.end,e,o)},t.prototype.onTasksChange=function(){this.items.next(this.tasks.filter((function(e){return!e.isAllDay}))),this.allDayItems.next(this.tasks.filter((function(e){return e.isAllDay})))},t.prototype.reflow=function(){var e=this.slotService;if(this.verticalResources.length||(this.updateContentHeight(),this.syncTables()),this.slotService.containerSize=this.content.nativeElement.clientWidth,e.layoutDays(this.eventHeight),this.updateContentHeight(),this.syncTables(),this.dayCells.length){var t=this.dayCells.toArray();if(this.verticalResources.length)e.forEachDateRange((function(e,n){var r=e.firstSlot;t[n].nativeElement.style.height=r.rect.height-r.padding+"px"}));else{var n=e.syncDateRanges();t[0].nativeElement.style.height=n+"px"}}e.layoutTimes({fill:this.slotFill}),this.syncTables()},t.prototype.dragHorizontal=function(e){return e.isDaySlot},t.prototype.updateHintContainer=function(){this.headerHintContainer&&this.headerHintContainer.detectChanges(),e.prototype.updateHintContainer.call(this)},t.prototype.onRelease=function(t){e.prototype.onRelease.call(this,t),this.dragContainers=null},t.prototype.updateDragContainer=function(e){this.dragContainers||(this.dragContainers=this.containers);var t=this.dragContainers.find((function(t){var n=t.offset;return n.top<=e.pageY&&e.pageY<=n.top+n.height}))||{};this.container=t.element,this.containerOffset=t.offset},t.prototype.containerByPosition=function(e){var t=e.x,n=e.y;return this.containers.find((function(e){var r=e.offset;return r.top<=n&&n<=r.top+r.height&&r.left<=t&&t<=r.left+r.width}))},Object.defineProperty(t.prototype,"containers",{get:function(){var e=this.headerWrap.nativeElement.children[1],t=this.content.nativeElement;return[{element:t,offset:g.elementOffset(t)},{element:e,offset:g.elementOffset(e)}]},enumerable:!0,configurable:!0}),t.prototype.scrollContainer=function(t,n){clearInterval(this.scrollInterval),this.container&&this.container===this.content.nativeElement&&e.prototype.scrollContainer.call(this,t,n)},t.prototype.dragRanges=function(e){var t=this.dragging.task;if(e.isDaySlot&&!t.isAllDay)return{ranges:[[e]],start:g.dateWithTime(e.start,t.start.toUTCDate()),end:g.dateWithTime(e.start,t.end.toUTCDate()),isAllDay:!0};var n=t.isAllDay&&!e.isDaySlot,r=this.slotService.dragRanges(e,n?{start:0,end:0}:this.dragging.offset);return n&&(r.end=e.end),r.isAllDay=this.draggedIsAllDay(t,e),r},t.prototype.dragHintEventStyleArgs=function(){return{event:this.dragging.task.event,resources:this.dragging.resourceItems,isAllDay:Boolean(this.allDayDragHint)}},t.prototype.draggedIsAllDay=function(e,t){return Boolean(t.isDaySlot&&(e.event.isAllDay||!p.isMultiDay(e)))},t.prototype.dragHintSize=function(e,t){var n,r;return e.isDaySlot?(n=g.toPx(t.rect.left-e.rect.left+t.rect.width),r=g.toPx(e.height)):(n=g.toPx(.9*e.rect.width),r=g.toPx(this.dragging.task.isAllDay?e.rect.height:t.rect.top-e.rect.top+t.rect.height)),{width:n,height:r}},t.prototype.currentTimeArrowOffset=function(){if(this.verticalResources.length){var e=this.times.nativeElement.querySelector(".k-scheduler-times-all-day"),t=this.times.nativeElement;return this.localization.rtl?t.offsetWidth-e.offsetWidth:e.offsetLeft}return 0},r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"name",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"slotFill",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],t.prototype,"allDaySlotTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],t.prototype,"allDayEventTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],t.prototype,"minorTimeHeaderTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],t.prototype,"majorTimeHeaderTemplate",void 0),r.__decorate([i.ViewChildren("allDayCell"),r.__metadata("design:type",i.QueryList)],t.prototype,"dayCells",void 0),r.__decorate([i.ViewChild("headerHintContainer",{static:!1}),r.__metadata("design:type",m.HintContainerComponent)],t.prototype,"headerHintContainer",void 0),t=r.__decorate([i.Component({selector:"multi-day-view",providers:[u.DayTimeSlotService],template:'\n <div class="k-scheduler-layout k-scheduler-flex-layout" [ngClass]="classNames">\n <div class="k-scheduler-pane">\n <div class="k-scheduler-times" #timesHeader>\n <table class="k-scheduler-table" aria-hidden="true">\n <tr *ngFor="let resource of horizontalResources; trackBy: itemIndex;">\n <th></th>\n </tr>\n <tr>\n <th></th>\n </tr>\n <tr *ngIf="!verticalResources.length">\n <th class="k-scheduler-times-all-day" #allDayCell>{{ allDayMessage }}</th>\n </tr>\n </table>\n </div>\n <div class="k-scheduler-header k-state-default" #header>\n <div class="k-scheduler-header-wrap" #headerWrap>\n <table class="k-scheduler-table" aria-hidden="true">\n <tr *ngFor="let resource of horizontalResources; let resourceIndex = index; trackBy: itemIndex;">\n <th *ngFor="let item of horizontalResources | resourceIterator : resourceIndex; trackBy: itemIndex;"\n class="k-slot-cell" [attr.colspan]="horizontalColspan(resourceIndex)">\n <ng-container *ngIf="!groupHeaderTemplateRef">{{ getField(item, resource.textField) }}</ng-container>\n <ng-container *ngIf="groupHeaderTemplateRef" [ngTemplateOutlet]="groupHeaderTemplateRef" [ngTemplateOutletContext]="{ resource: item }"></ng-container>\n </th>\n </tr>\n <tr>\n <ng-container *ngFor="let resource of horizontalResources | resourceIterator; trackBy: itemIndex;">\n <th *ngFor="let slot of daySlots; let index = index; trackBy: itemIndex">\n <span *ngIf="!dateHeaderTemplateRef" class="k-link k-nav-day" [attr.data-dayslot-index]="index">{{ slot.start | kendoDate: dateFormat }}</span>\n <ng-container *ngIf="dateHeaderTemplateRef" [ngTemplateOutlet]="dateHeaderTemplateRef" [ngTemplateOutletContext]="{ date: slot.start }"></ng-container>\n </th>\n </ng-container>\n </tr>\n </table>\n <div style="position: relative;" *ngIf="!verticalResources.length">\n <table class="k-scheduler-table k-scheduler-header-all-day k-user-select-none" aria-hidden="true">\n <tr>\n <ng-container *ngFor="let resource of horizontalResources | resourceIterator; let resourceIndex = index; trackBy: itemIndex;">\n <td *ngFor="let slot of daySlots; let index = index; trackBy: itemIndex"\n daySlot\n [start]="slot.start"\n [end]="slot.end"\n [id]="{ resourceIndex: resourceIndex, rangeIndex: 0, index: index }"\n [class.k-state-selected]="isSlotSelected({\n start: toPlainDate(slot.start),\n end: toPlainDate(slot.end),\n isAllDay: true,\n resources: resourcesByIndex(resourceIndex)\n })"\n [ngClass]="allDaySlotClass(slot, resourceIndex)">\n <ng-container *ngIf="allDaySlotTemplateRef" [ngTemplateOutlet]="allDaySlotTemplateRef"\n [ngTemplateOutletContext]="{ date: slot.start, resources: resourcesByIndex(resourceIndex) }"></ng-container>\n </td>\n </ng-container>\n </tr>\n </table>\n <ng-container *ngFor="let item of allDayItems | async; trackBy: itemIndex;">\n <div *ngFor="let itemResource of item.resources; trackBy: itemIndex;"\n [ngClass]="getEventClasses(item, itemResource.resources, true)"\n [ngStyle]="getEventStyles(item, itemResource, true)"\n [kendoSchedulerFocusIndex]="itemResource.leafIdx"\n dayTimeViewItem\n [isAllDay]="true"\n [editable]="editable"\n [eventTemplate]="allDayEventTemplateRef"\n [item]="item"\n [index]="item.index"\n [rangeIndex]="item.rangeIndex"\n [resources]="itemResource.resources"\n [resourceIndex]="itemResource.leafIdx">\n </div>\n </ng-container>\n <kendo-hint-container #headerHintContainer>\n <ng-template>\n <div *ngIf="dragHints.length && allDayDragHint"\n class="k-event-drag-hint"\n dayTimeViewItem\n [isAllDay]="true"\n [ngStyle]="dragHints[0].style"\n [ngClass]="dragHints[0].class"\n [dragHint]="true"\n [eventTemplate]="eventTemplateRef"\n [item]="dragHints[0].item"\n [resources]="dragHints[0].resources">\n </div>\n\n <div *ngIf="resizeHints.length && allDayResizeHint"\n kendoResizeHint\n [hint]="resizeHints[0]"\n [ngClass]="resizeHints[0].class"\n [format]="allDayResizeHintFormat">\n </div>\n </ng-template>\n </kendo-hint-container>\n </div>\n </div>\n </div>\n </div>\n <div class="k-scheduler-pane">\n <div class="k-scheduler-times" #times>\n <ng-container *ngIf="showCurrentTime">\n <div *ngFor="let resource of verticalResources | resourceIterator; trackBy: itemIndex;"\n #currentTimeArrow class="k-current-time k-current-time-arrow-right">\n </div>\n </ng-container>\n <table class="k-scheduler-table" #timesTable aria-hidden="true">\n <ng-container *ngFor="let resourceItem of verticalResources | resourceIterator; let leafIndex = index; trackBy: itemIndex;">\n <tr *ngIf="verticalResources.length">\n <ng-container *ngFor="let resource of verticalResources; let resourceIndex = index; trackBy: itemIndex;">\n <th *ngIf="verticalItem(leafIndex, resourceIndex)" [attr.rowspan]="verticalRowspan(resourceIndex)" class="k-slot-cell">\n <ng-container *ngIf="!groupHeaderTemplateRef">{{ getField(verticalItem(leafIndex, resourceIndex), resource.textField) }}</ng-container>\n <ng-container *ngIf="groupHeaderTemplateRef" [ngTemplateOutlet]="groupHeaderTemplateRef"\n [ngTemplateOutletContext]="{ resource: verticalItem(leafIndex, resourceIndex) }"></ng-container>\n </th>\n </ng-container>\n <th class="k-scheduler-times-all-day" #allDayCell>{{ allDayMessage }}</th>\n </tr>\n <tr *ngFor="let slot of timeSlots; let timeSlotIndex = index;trackBy: itemIndex">\n <th *ngIf="slot.isMajor" [ngClass]="{ \'k-slot-cell\': slotDivisions === 1 }">\n <ng-container *ngIf="!majorTimeHeaderTemplateRef">{{ slot.start | kendoDate: \'t\' }}</ng-container>\n <ng-container *ngIf="majorTimeHeaderTemplateRef" [ngTemplateOutlet]="majorTimeHeaderTemplateRef" [ngTemplateOutletContext]="{ date: slot.start }"></ng-container>\n </th>\n <th *ngIf="!slot.isMajor" [ngClass]="{ \'k-slot-cell\': timeSlotIndex % slotDivisions === slotDivisions - 1 }">\n <ng-container *ngIf="minorTimeHeaderTemplateRef" [ngTemplateOutlet]="minorTimeHeaderTemplateRef" [ngTemplateOutletContext]="{ date: slot.start }">\n </ng-container>\n </th>\n </tr>\n </ng-container>\n </table>\n </div>\n <div class="k-scheduler-content k-user-select-none" #content>\n <ng-container *ngIf="showCurrentTime">\n <div *ngFor="let resource of verticalResources | resourceIterator; trackBy: itemIndex;"\n #currentTimeMarker class="k-current-time">\n </div>\n </ng-container>\n <table class="k-scheduler-table" #contentTable role="presentation">\n <ng-container *ngFor="let resourceItem of verticalResources | resourceIterator; let verticalIndex = index; trackBy: itemIndex;">\n <tr class="k-scheduler-header-all-day" *ngIf="verticalResources.length">\n <td *ngFor="let slot of daySlots; let index = index; trackBy: itemIndex"\n daySlot\n [start]="slot.start"\n [end]="slot.end"\n [class.k-state-selected]="isSlotSelected({\n start: toPlainDate(slot.start),\n end: toPlainDate(slot.end),\n isAllDay: true,\n resources: resourcesByIndex(verticalIndex)\n })"\n [id]="{ resourceIndex: verticalIndex, rangeIndex: 0, index: index }">\n <ng-container *ngIf="allDaySlotTemplateRef" [ngTemplateOutlet]="allDaySlotTemplateRef"\n [ngTemplateOutletContext]="{ date: slot.start, resources: resourcesByIndex(verticalIndex) }"></ng-container>\n </td>\n </tr>\n <tr *ngFor="let slot of timeSlots; index as index; trackBy: itemIndex" [class.k-middle-row]="slot.isMajor">\n <ng-container *ngFor="let resource of horizontalResources | resourceIterator; let horizontalIndex = index; trackBy: itemIndex;">\n <td *ngFor="let daySlot of daySlots; index as rangeIndex; trackBy: itemIndex"\n [ngClass]="timeSlotClass(slot, daySlot.start, verticalResources.length ? verticalIndex : horizontalIndex)"\n timeSlot #timeSlot="timeSlot"\n [date]="daySlot.start"\n [invariantStart]="slot.start"\n [invariantEnd]="slot.end"\n [workDayStart]="workDayStartTime"\n [workDayEnd]="workDayEndTime"\n [workWeekStart]="workWeekStart"\n [workWeekEnd]="workWeekEnd"\n [id]="{ resourceIndex: verticalResources.length ? verticalIndex : horizontalIndex, rangeIndex: rangeIndex, index: index }"\n [class.k-state-selected]="isSlotSelected({\n start: toPlainDateTime(daySlot.start, slot.start),\n end: toPlainDateTime(daySlot.start, slot.end),\n isAllDay: false,\n resources: resourcesByIndex(verticalResources.length ? verticalIndex : horizontalIndex)\n })"\n >\n <ng-container *ngIf="timeSlotTemplateRef" [ngTemplateOutlet]="timeSlotTemplateRef"\n [ngTemplateOutletContext]="{ date: timeSlot.startLocalTime, resources: resourcesByIndex(timeSlot.id.resourceIndex) }">\n </ng-container>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </table>\n <ng-container *ngFor="let item of items | async; trackBy: itemIndex;">\n <div *ngFor="let itemResource of item.resources; trackBy: itemIndex;"\n [ngClass]="getEventClasses(item, itemResource.resources)"\n [ngStyle]="getEventStyles(item, itemResource)"\n [kendoSchedulerFocusIndex]="itemResource.leafIdx"\n dayTimeViewItem\n [editable]="editable"\n [vertical]="true"\n [eventTemplate]="eventTemplateRef"\n [item]="item"\n [index]="item.index"\n [rangeIndex]="item.rangeIndex"\n [resources]="itemResource.resources"\n [resourceIndex]="itemResource.leafIdx">\n </div>\n </ng-container>\n <ng-container *ngIf="verticalResources.length">\n <ng-container *ngFor="let item of allDayItems | async; trackBy: itemIndex;">\n <div *ngFor="let itemResource of item.resources; trackBy: itemIndex;"\n [ngClass]="getEventClasses(item, itemResource.resources, true)"\n [ngStyle]="getEventStyles(item, itemResource, true)"\n [kendoSchedulerFocusIndex]="itemResource.leafIdx"\n dayTimeViewItem\n [isAllDay]="true"\n [editable]="editable"\n [eventTemplate]="allDayEventTemplateRef"\n [item]="item"\n [index]="item.index"\n [rangeIndex]="item.rangeIndex"\n [resources]="itemResource.resources"\n [resourceIndex]="itemResource.leafIdx">\n </div>\n </ng-container>\n </ng-container>\n <kendo-hint-container #hintContainer>\n <ng-template>\n <div *ngIf="dragHints.length && (!allDayDragHint || verticalResources.length)"\n class="k-event-drag-hint"\n dayTimeViewItem\n [isAllDay]="allDayDragHint"\n [ngStyle]="dragHints[0].style"\n [ngClass]="dragHints[0].class"\n [dragHint]="true"\n [eventTemplate]="eventTemplateRef"\n [resources]="dragHints[0].resources"\n [item]="dragHints[0].item">\n </div>\n\n <ng-container *ngIf="resizeHints.length && (!allDayResizeHint || verticalResources.length)">\n <div *ngFor="let hint of resizeHints; trackBy: itemIndex;"\n kendoResizeHint\n [hint]="hint"\n [ngClass]="hint.class"\n [format]="allDayResizeHint ? allDayResizeHintFormat : resizeHintFormat">\n </div>\n </ng-container>\n </ng-template>\n </kendo-hint-container>\n </div>\n </div>\n </div>\n '}),r.__metadata("design:paramtypes",[a.LocalizationService,l.ViewContextService,d.ViewStateService,o.IntlService,u.DayTimeSlotService,i.NgZone,i.Renderer2,i.ElementRef,i.ChangeDetectorRef,f.PDFService])],t)}(h.DayTimeViewComponent);t.MultiDayViewRendererComponent=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),i=n(4),o=n(3);t.isMultiDay=function(e){var t=e.start,n=e.end,r=t.stripTime(),i=n.stripTime();return r.getTime()!==i.getTime()&&(i.getTime()!==n.getTime()||r.addDays(1).getTime()!==i.getTime())},t.createTasks=function(e,n,a,s){for(var c=[],l=r.toUTCDate(e),d=r.toUTCDate(n),u=0;u<a.length;u++)for(var p=a[u],h=t.isMultiDay(p),m=h&&!p.event.isAllDay&&p.end.getTime()-p.start.getTime()<i.MS_PER_DAY,g=p.event.isAllDay||h&&!m,f=(g?r.roundAllDayEnd(p):p.end).toUTCDate(),v=(g?p.start.stripTime():p.start).toUTCDate(),y=0;y<s.length;y++){var _=s[y].start,b=s[y].end;if(r.intersects(v,f,_,b)){var S={index:u,isAllDay:g,startTime:v,endTime:f,rangeIndex:g?0:y,start:p.start,end:p.end,event:p.event};if(c.push(S),!m){S.head=d<f,S.tail=v<l;break}var D=s[y+1],k=s[y-1];S.head=(D?D.start:d)<f,S.tail=v<(k?k.end:l)}}return o.sortTasksByTime(c)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),i=n(18);t.createTimeSlots=function(e,t){var n=t.showWorkHours,o=t.startTime,a=t.endTime,s=t.workDayStart,c=t.workDayEnd,l=t.slotDivisions,d=t.slotDuration,u=e.parseDate(n?s:o),p=r.toInvariantTime(u).getTime(),h=e.parseDate(n?c:a),m=r.toInvariantTime(h).getTime();m<=p&&(m=r.toInvariantTime(i.MIDNIGHT_INVARIANT).getTime()+i.MS_PER_DAY);for(var g=[],f=Math.round(d/l*i.MS_PER_MINUTE),v=p,y=0;v<m;)g.push({start:new Date(v),end:new Date(v+f),isMajor:y%l==0}),y++,v+=f;return g}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(87),a=n(5),s=n(30),c=n(2),l=n(18),d=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.isDaySlot=!1,i}return r.__extends(t,e),Object.defineProperty(t.prototype,"nonWorkHour",{get:function(){var e=this.date.getDay();return this.invariantStart<this.workDayStart||this.workDayEnd<this.invariantEnd||!a.isWorkWeekDay(e,this.workWeekStart,this.workWeekEnd)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startLocalTime",{get:function(){return this.date&&this.invariantStart?a.dateWithTime(this.date,this.invariantStart):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endLocalTime",{get:function(){return this.date&&this.invariantEnd?a.dateWithTime(this.date,this.invariantEnd):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){return this.date&&this.invariantStart?a.toUTCTime(this.date,this.invariantStart):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){if(!this.date||!this.invariantEnd)return null;var e=a.toUTCTime(this.date,this.invariantEnd);return l.INVARIANT_END.getTime()<=this.invariantEnd.getTime()?a.addUTCDays(e,1):e},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",Date)],t.prototype,"invariantStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],t.prototype,"invariantEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],t.prototype,"workDayStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],t.prototype,"workDayEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"workWeekStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"workWeekEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],t.prototype,"date",void 0),r.__decorate([i.HostBinding("class.k-nonwork-hour"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],t.prototype,"nonWorkHour",null),t=r.__decorate([i.Directive({selector:"[timeSlot]",exportAs:"timeSlot"}),r.__metadata("design:paramtypes",[i.ElementRef,s.DayTimeSlotService,c.LocalizationService])],t)}(o.BaseSlotDirective);t.TimeSlotDirective=d;var u=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.isDaySlot=!0,i}return r.__extends(t,e),Object.defineProperty(t.prototype,"start",{get:function(){return this.startDate?a.toUTCDate(this.startDate):null},set:function(e){this.startDate=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this.endDate?a.toUTCDate(this.endDate):null},set:function(e){this.endDate=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"daySlot",{get:function(){return!0},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",Date),r.__metadata("design:paramtypes",[Date])],t.prototype,"start",null),r.__decorate([i.Input(),r.__metadata("design:type",Date),r.__metadata("design:paramtypes",[Date])],t.prototype,"end",null),r.__decorate([i.HostBinding("attr.data-day-slot"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],t.prototype,"daySlot",null),t=r.__decorate([i.Directive({selector:"[daySlot]"}),r.__metadata("design:paramtypes",[i.ElementRef,s.DayTimeSlotService,c.LocalizationService])],t)}(o.BaseSlotDirective);t.DaySlotDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(7),a=n(2),s=n(4),c=n(20),l=n(30),d=function(e){function t(t,n,r,i,o,a,s){var c=e.call(this,n,r,i,o,a,s)||this;return c.intlService=t,c.localeId=s,c}return r.__extends(t,e),Object.defineProperty(t.prototype,"eventTime",{get:function(){return this.intlService.format("{0:t}–{1:t}",s.toLocalDate(this.item.startTime),s.toLocalDate(this.item.endTime))},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],t.prototype,"vertical",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],t.prototype,"isAllDay",void 0),t=r.__decorate([i.Component({selector:"[dayTimeViewItem]",template:'\n <span class="k-event-actions">\n <span class="k-icon k-i-arrow-60-left" *ngIf="item.tail && !vertical"></span>\n <span class="k-icon k-i-reload" *ngIf="isRecurrence"></span>\n <span class="k-icon k-i-non-recurrence" *ngIf="isRecurrenceException"></span>\n </span>\n <ng-container *ngIf="eventTemplate" [ngTemplateOutlet]="eventTemplate"\n [ngTemplateOutletContext]="{ $implicit: item.event, event: item.event, resources: resources }">\n </ng-container>\n <div *ngIf="!eventTemplate" [attr.title]="eventTitle">\n <div class="k-event-template k-event-time" *ngIf="!isAllDay">{{ eventTime }}</div>\n <div class="k-event-template" aria-hidden="true">{{ item.event.title }}</div>\n </div>\n\n <span class="k-event-actions">\n <span *ngIf="removable" class="k-link k-event-delete" aria-hidden="true" [attr.title]="deleteMessage">\n <span class="k-icon k-i-close"></span>\n </span>\n <span class="k-icon k-i-arrow-60-right" *ngIf="item.head && !vertical"></span>\n </span>\n\n <span class="k-event-top-actions" *ngIf="item.tail && vertical">\n <span class="k-icon k-i-arrow-60-up"></span>\n </span>\n\n <span class="k-event-bottom-actions" *ngIf="item.head && vertical">\n <span class="k-icon k-i-arrow-60-down"></span>\n </span>\n\n <ng-container *ngIf="resizable && vertical">\n <span class="k-resize-handle k-resize-n" *ngIf="!item.tail"></span>\n <span class="k-resize-handle k-resize-s" *ngIf="!item.head"></span>\n </ng-container>\n\n <ng-container *ngIf="resizable && !vertical">\n <span class="k-resize-handle k-resize-w"></span>\n <span class="k-resize-handle k-resize-e"></span>\n </ng-container>\n '}),r.__param(6,i.Inject(i.LOCALE_ID)),r.__metadata("design:paramtypes",[o.IntlService,l.DayTimeSlotService,a.LocalizationService,c.FocusService,i.ElementRef,i.Renderer2,String])],t)}(n(85).BaseViewItem);t.DayTimeViewItemComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(11),a=function(e){function t(t){var n=e.call(this)||this;return n.template=t,n}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"name",{get:function(){return this._name||this.title},set:function(e){this._name=e},enumerable:!0,configurable:!0}),r.__decorate([i.Input("kendoSchedulerView"),r.__metadata("design:type",String)],t.prototype,"title",void 0),r.__decorate([i.Input("kendoSchedulerViewName"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],t.prototype,"name",null),t=n=r.__decorate([i.Directive({providers:[{provide:o.SchedulerView,useExisting:i.forwardRef((function(){return n}))}],selector:"[kendoSchedulerView]"}),r.__metadata("design:paramtypes",[i.TemplateRef])],t)}(o.SchedulerView);t.SchedulerViewDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(156),a=n(158),s=n(159),c=n(160),l=n(92),d=n(29),u=[a.TimelineViewComponent,s.TimelineWeekViewComponent,c.TimelineMonthViewComponent],p=function(){function e(){}return e=r.__decorate([i.NgModule({imports:[l.DayTimeModule,d.ViewsSharedModule],exports:[u],declarations:u.concat([o.TimelineMultiDayViewComponent])})],e)}();t.TimelineViewModule=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(7),a=n(2),s=n(10),c=n(9),l=n(30),d=n(157),u=n(5),p=n(91),h=n(16),m=function(e){function t(t,n,r,i,o,a,s,c,l,d){var u=e.call(this,n,r,i,o,a,s,c,l,d,t)||this;return u.name="timeline",u.columnWidth=100,u.viewName="timeline",u.verticalTime=!1,u}return r.__extends(t,e),Object.defineProperty(t.prototype,"classNames",{get:function(){return"k-scheduler-"+this.viewName+"-view"},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){t.columnWidth&&this.changes.next(null),e.prototype.ngOnChanges.call(this,t)},t.prototype.reflow=function(){var e=this.slotService;this.updateContentHeight(),e.containerSize=this.content.nativeElement.scrollWidth;var t=this.verticalResources.length?this.verticalResourceRows.toArray():[];e.layoutTimeline(this.eventHeight,t),t.length&&e.forEachGroup((function(e,n){t[n].nativeElement.style.height=e.timeRanges[0].slots[0].height+"px"})),this.syncTables()},Object.defineProperty(t.prototype,"allEventsMessage",{get:function(){return this.localization.get("allEvents")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"slotsCount",{get:function(){for(var e=this.horizontalResources,t=this.daySlots.length*this.timeSlots.length,n=0;n<e.length;n++)t*=(e[n].data||[]).length||1;return t},enumerable:!0,configurable:!0}),t.prototype.timeColspan=function(e){var t=this.timeSlots.length,n=t%this.slotDivisions;return 0===n||e<t-n?this.slotDivisions:1},t.prototype.horizontalColspan=function(e){for(var t=this.horizontalResources,n=this.daySlots.length*this.timeSlots.length,r=e+1;r<t.length;r++)n*=(t[r].data||[]).length||1;return n},t.prototype.verticalRowspan=function(e){for(var t=this.verticalResources,n=1,r=e+1;r<t.length;r++)n*=(t[r].data||[]).length||1;return n},t.prototype.createTasks=function(e,t){return d.createTasks(t.start,t.end,e)},t.prototype.onTasksChange=function(){this.items.next(this.tasks)},t.prototype.dragRanges=function(e){return this.slotService.dragRanges(e,this.dragging.offset,!0)},t.prototype.dragHintSize=function(e,t){return{width:u.toPx(t.rect.left-e.rect.left+t.rect.width),height:u.toPx(e.height)}},t.prototype.updateResizeHints=function(t,n,r){var i=t[t.length-1];e.prototype.updateResizeHints.call(this,[[t[0][0],i[i.length-1]]],n,r)},t.prototype.pdfWidth=function(){return this.content.nativeElement.scrollWidth+this.times.nativeElement.offsetWidth},t.prototype.currentTimeArrowOffset=function(){return this.headerWrap.nativeElement.querySelector("tr:last-child").offsetTop},r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"name",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],t.prototype,"columnWidth",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"viewName",void 0),r.__decorate([i.ViewChildren("verticalResourceRows"),r.__metadata("design:type",i.QueryList)],t.prototype,"verticalResourceRows",void 0),t=r.__decorate([i.Component({selector:"timeline-multi-day-view",providers:[l.DayTimeSlotService],template:'\n <div class="k-scheduler-layout k-scheduler-flex-layout" [ngClass]="classNames">\n <div class="k-scheduler-pane">\n <div class="k-scheduler-times" #timesHeader>\n <table class="k-scheduler-table" aria-hidden="true">\n <tr><th></th></tr>\n <tr><th class="k-slot-cell"></th></tr>\n <tr *ngFor="let resource of horizontalResources; trackBy: itemIndex;">\n <th></th>\n </tr>\n </table>\n </div>\n <div class="k-scheduler-header k-state-default" #header >\n <div class="k-scheduler-header-wrap" #headerWrap>\n <ng-container *ngIf="showCurrentTime">\n <div *ngFor="let resource of horizontalResources | resourceIterator; trackBy: itemIndex;"\n #currentTimeArrow class="k-current-time k-current-time-arrow-down">\n </div>\n </ng-container>\n <table class="k-scheduler-table" aria-hidden="true">\n <colgroup>\n <col *ngFor="let slotIndex of slotsCount | repeat; trackBy: itemIndex;" [ngStyle]="{ \'width.px\': columnWidth }" />\n </colgroup>\n <tr *ngFor="let resource of horizontalResources; let resourceIndex = index; trackBy: itemIndex;">\n <th *ngFor="let item of horizontalResources | resourceIterator : resourceIndex; trackBy: itemIndex;"\n class="k-slot-cell" [attr.colspan]="horizontalColspan(resourceIndex)">\n <ng-container *ngIf="!groupHeaderTemplateRef">{{ getField(item, resource.textField) }}</ng-container>\n <ng-container *ngIf="groupHeaderTemplateRef" [ngTemplateOutlet]="groupHeaderTemplateRef"\n [ngTemplateOutletContext]="{ resource: item }"></ng-container>\n </th>\n </tr>\n <tr>\n <ng-container *ngFor="let resource of horizontalResources | resourceIterator; trackBy: itemIndex;">\n <ng-container *ngFor="let daySlot of daySlots; let index = index; trackBy: itemIndex;">\n <th [attr.colspan]="timeSlots.length" class="k-slot-cell">\n <span *ngIf="!dateHeaderTemplateRef" class="k-link" [ngClass]="{ \'k-nav-day\': numberOfDays > 1 }" [attr.data-dayslot-index]="index">{{ daySlot.start | kendoDate: \'m\'}}</span>\n <ng-container *ngIf="dateHeaderTemplateRef" [ngTemplateOutlet]="dateHeaderTemplateRef" [ngTemplateOutletContext]="{ date: daySlot.start }"></ng-container>\n </th>\n </ng-container>\n </ng-container>\n </tr>\n <tr>\n <ng-container *ngFor="let resource of horizontalResources | resourceIterator; let resourceIndex = index; trackBy: itemIndex;">\n <ng-container *ngFor="let daySlot of daySlots; let rangeIndex = index; trackBy: itemIndex;">\n <ng-container *ngFor="let timeSlot of timeSlots; let index = index; trackBy: itemIndex;">\n <th *ngIf="timeSlot.isMajor" [attr.colspan]="timeColspan(index)" >{{ timeSlot.start | kendoDate: \'t\' }}</th>\n </ng-container>\n </ng-container>\n </ng-container>\n </tr>\n </table>\n </div>\n </div>\n </div>\n <div class="k-scheduler-pane">\n <div class="k-scheduler-times" #times>\n <table class="k-scheduler-table" #timesTable aria-hidden="true">\n <tr *ngIf="!verticalResources.length">\n <th rowspan="1" #titleCell>\n {{ allEventsMessage }}\n </th>\n </tr>\n <ng-container *ngIf="verticalResources.length">\n <ng-container *ngFor="let resourceItem of verticalResources | resourceIterator; let leafIndex = index; trackBy: itemIndex;">\n <tr #verticalResourceRows>\n <ng-container *ngFor="let resource of verticalResources; let resourceIndex = index; trackBy: itemIndex;">\n <th *ngIf="verticalItem(leafIndex, resourceIndex)" [attr.rowspan]="verticalRowspan(resourceIndex)" class="k-slot-cell">\n <div>\n <ng-container *ngIf="!groupHeaderTemplateRef">{{ getField(verticalItem(leafIndex, resourceIndex), resource.textField) }}</ng-container>\n <ng-container *ngIf="groupHeaderTemplateRef" [ngTemplateOutlet]="groupHeaderTemplateRef"\n [ngTemplateOutletContext]="{ resource: verticalItem(leafIndex, resourceIndex) }"></ng-container>\n </div>\n </th>\n </ng-container>\n </tr>\n </ng-container>\n </ng-container>\n </table>\n </div>\n <div class="k-scheduler-content" #content>\n <ng-container *ngIf="showCurrentTime">\n <div *ngFor="let resource of horizontalResources | resourceIterator; trackBy: itemIndex;"\n class="k-current-time" #currentTimeMarker>\n </div>\n </ng-container>\n <table class="k-scheduler-table k-user-select-none" #contentTable role="presentation">\n <colgroup>\n <col *ngFor="let slotIndex of slotsCount | repeat; trackBy: itemIndex;" [ngStyle]="{ \'width.px\': columnWidth }" />\n </colgroup>\n <tr *ngFor="let resourceItem of verticalResources | resourceIterator; let verticalIndex = index; trackBy: itemIndex;">\n <ng-container *ngFor="let resource of horizontalResources | resourceIterator; let horizontalIndex = index; trackBy: itemIndex;">\n <ng-container *ngFor="let daySlot of daySlots; let rangeIndex = index; trackBy: itemIndex;">\n <td *ngFor="let slot of timeSlots; let index = index; trackBy: itemIndex;"\n [ngClass]="timeSlotClass(slot, daySlot.start, verticalResources.length ? verticalIndex : horizontalIndex)"\n timeSlot #timeSlot="timeSlot"\n [date]="daySlot.start"\n [invariantStart]="slot.start"\n [invariantEnd]="slot.end"\n [workDayStart]="workDayStartTime"\n [workDayEnd]="workDayEndTime"\n [workWeekStart]="workWeekStart"\n [workWeekEnd]="workWeekEnd"\n selectableSlot\n [id]="{ resourceIndex: verticalResources.length ? verticalIndex : horizontalIndex, rangeIndex: rangeIndex, index: index }"\n [class.k-state-selected]="isSlotSelected({\n start: toPlainDateTime(daySlot.start, slot.start),\n end: toPlainDateTime(daySlot.start, slot.end),\n isAllDay: false,\n resources: resourcesByIndex(verticalResources.length ? verticalIndex : horizontalIndex)\n })"\n >\n <ng-container *ngIf="timeSlotTemplateRef" [ngTemplateOutlet]="timeSlotTemplateRef"\n [ngTemplateOutletContext]="{ date: timeSlot.start, resources: resourcesByIndex(timeSlot.id.resourceIndex ) }">\n </ng-container>\n </td>\n </ng-container>\n </ng-container>\n </tr>\n </table>\n <ng-container *ngFor="let item of items | async; trackBy: itemIndex;">\n <div *ngFor="let itemResource of item.resources; trackBy: itemIndex;"\n [ngClass]="getEventClasses(item, itemResource.resources)"\n [ngStyle]="getEventStyles(item, itemResource)"\n [kendoSchedulerFocusIndex]="itemResource.leafIdx"\n dayTimeViewItem\n [editable]="editable"\n [item]="item"\n [index]="item.index"\n [rangeIndex]="item.rangeIndex"\n [eventTemplate]="eventTemplateRef"\n [resources]="itemResource.resources"\n [resourceIndex]="itemResource.leafIdx">\n </div>\n </ng-container>\n <kendo-hint-container #hintContainer>\n <ng-template>\n <div *ngFor="let hint of dragHints; trackBy: itemIndex;"\n class="k-event-drag-hint"\n dayTimeViewItem\n [ngStyle]="hint.style"\n [ngClass]="hint.class"\n [dragHint]="true"\n [eventTemplate]="eventTemplateRef"\n [item]="hint.item"\n [resources]="hint.resources">\n </div>\n <div *ngIf="resizeHints && resizeHints.length"\n kendoResizeHint\n [hint]="resizeHints[0]"\n [ngClass]="resizeHints[0].class"\n [format]="resizeHintFormat">\n </div>\n </ng-template>\n </kendo-hint-container>\n </div>\n </div>\n </div>\n '}),r.__metadata("design:paramtypes",[a.LocalizationService,i.ChangeDetectorRef,s.ViewContextService,c.ViewStateService,o.IntlService,l.DayTimeSlotService,i.NgZone,i.Renderer2,i.ElementRef,h.PDFService])],t)}(p.DayTimeViewComponent);t.TimelineMultiDayViewComponent=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5);t.createTasks=function(e,t,n){for(var i=[],o=r.toUTCDate(e),a=r.toUTCDate(t),s=0;s<n.length;s++){var c=n[s],l=c.event,d={index:s,start:c.start,end:c.end,event:l,isAllDay:!1},u=l.isAllDay?r.roundAllDayEnd(c):d.end,p=l.isAllDay?d.start.stripTime():d.start;d.startTime=p.toUTCDate(),d.endTime=u.toUTCDate(),r.intersects(d.startTime,d.endTime,o,a)&&(i.push(d),d.head=d.endTime>t,d.tail=d.startTime<e)}return i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),a=n(11),s=n(57),c=n(10),l=n(9),d=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.selectedDateFormat="{0:D}",o.selectedShortDateFormat="{0:d}",o.name="timeline",o}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("timelineViewTitle")},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedShortDateFormat",void 0),t=n=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-timeline-view",providers:[{provide:a.SchedulerView,useExisting:i.forwardRef((function(){return n}))}],template:'\n <ng-template #content>\n <timeline-multi-day-view\n [name]="name"\n [eventHeight]="viewEventHeight"\n [columnWidth]="viewColumnWidth"\n [currentTimeMarker]="viewCurrentTimeMarker"\n [showWorkHours]="shouldShowWorkHours"\n [scrollTime]="viewScrollTime"\n [startTime]="viewStartTime"\n [endTime]="viewEndTime"\n [workDayStart]="viewWorkDayStart"\n [workDayEnd]="viewWorkDayEnd"\n [workWeekStart]="viewWorkWeekStart"\n [workWeekEnd]="viewWorkWeekEnd"\n [slotDuration]="viewSlotDuration"\n [slotDivisions]="viewSlotDivisions"\n [slotClass]="viewSlotClass"\n [eventClass]="viewEventClass"\n [eventStyles]="viewEventStyles"\n [еventTemplate]="eventTemplate?.templateRef"\n [groupHeaderTemplate]="groupHeaderTemplate?.templateRef"\n [timeSlotTemplate]="timeSlotTemplate?.templateRef"\n [dateHeaderTemplate]="dateHeaderTemplate?.templateRef"\n [selectedDateFormat]="selectedDateFormat"\n [selectedShortDateFormat]="selectedShortDateFormat">\n </timeline-multi-day-view>\n <div viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[o.LocalizationService,i.ChangeDetectorRef,c.ViewContextService,l.ViewStateService])],t)}(s.TimelineBase);t.TimelineViewComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),a=n(11),s=n(57),c=n(7),l=n(4),d=n(10),u=n(9),p=function(e){function t(t,n,r,i,o){var a=e.call(this,n,r,i,o)||this;return a.intl=t,a.selectedDateFormat="{0:D} - {1:D}",a.selectedShortDateFormat="{0:d} - {1:d}",a.name="timelineWeek",a.getStartDate=function(e){return l.firstDayInWeek(l.getDate(e),a.viewWeekStart)},a}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("timelineWeekViewTitle")},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedShortDateFormat",void 0),t=n=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-timeline-week-view",providers:[{provide:a.SchedulerView,useExisting:i.forwardRef((function(){return n}))}],template:'\n <ng-template #content>\n <timeline-multi-day-view\n viewName="timeline-week"\n [name]="name"\n [numberOfDays]="7"\n [getStartDate]="getStartDate"\n [eventHeight]="viewEventHeight"\n [columnWidth]="viewColumnWidth"\n [currentTimeMarker]="viewCurrentTimeMarker"\n [showWorkHours]="shouldShowWorkHours"\n [scrollTime]="viewScrollTime"\n [startTime]="viewStartTime"\n [endTime]="viewEndTime"\n [workDayStart]="viewWorkDayStart"\n [workDayEnd]="viewWorkDayEnd"\n [workWeekStart]="viewWorkWeekStart"\n [workWeekEnd]="viewWorkWeekEnd"\n [weekStart]="viewWeekStart"\n [slotDuration]="viewSlotDuration"\n [slotDivisions]="viewSlotDivisions"\n [slotClass]="viewSlotClass"\n [eventClass]="viewEventClass"\n [eventStyles]="viewEventStyles"\n [еventTemplate]="eventTemplate?.templateRef"\n [groupHeaderTemplate]="groupHeaderTemplate?.templateRef"\n [timeSlotTemplate]="timeSlotTemplate?.templateRef"\n [dateHeaderTemplate]="dateHeaderTemplate?.templateRef"\n [selectedDateFormat]="selectedDateFormat"\n [selectedShortDateFormat]="selectedShortDateFormat">\n </timeline-multi-day-view>\n <div viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[c.IntlService,o.LocalizationService,i.ChangeDetectorRef,d.ViewContextService,u.ViewStateService])],t)}(s.TimelineBase);t.TimelineWeekViewComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),a=n(11),s=n(57),c=n(10),l=n(9),d=n(4),u=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.selectedDateFormat="{0:Y}",o.selectedShortDateFormat="{0:y}",o.name="timelineMonth",o.getStartDate=function(e){return d.firstDayOfMonth(d.getDate(e))},o.getEndDate=function(e){return d.addMonths(o.getStartDate(e),1)},o.getNextDate=function(e,t){return d.addMonths(e,t)},o}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("timelineMonthViewTitle")},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],t.prototype,"selectedShortDateFormat",void 0),t=n=r.__decorate([i.Component({changeDetection:i.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-timeline-month-view",providers:[{provide:a.SchedulerView,useExisting:i.forwardRef((function(){return n}))}],template:'\n <ng-template #content>\n <timeline-multi-day-view\n viewName="timeline-month"\n [name]="name"\n [getNextDate]="getNextDate"\n [getStartDate]="getStartDate"\n [getEndDate]="getEndDate"\n [eventHeight]="viewEventHeight"\n [columnWidth]="viewColumnWidth"\n [currentTimeMarker]="viewCurrentTimeMarker"\n [showWorkHours]="shouldShowWorkHours"\n [scrollTime]="viewScrollTime"\n [startTime]="viewStartTime"\n [endTime]="viewEndTime"\n [workDayStart]="viewWorkDayStart"\n [workDayEnd]="viewWorkDayEnd"\n [workWeekStart]="viewWorkWeekStart"\n [workWeekEnd]="viewWorkWeekEnd"\n [slotDuration]="viewSlotDuration"\n [slotDivisions]="viewSlotDivisions"\n [slotClass]="viewSlotClass"\n [eventClass]="viewEventClass"\n [eventStyles]="viewEventStyles"\n [еventTemplate]="eventTemplate?.templateRef"\n [groupHeaderTemplate]="groupHeaderTemplate?.templateRef"\n [timeSlotTemplate]="timeSlotTemplate?.templateRef"\n [dateHeaderTemplate]="dateHeaderTemplate?.templateRef"\n [selectedDateFormat]="selectedDateFormat"\n [selectedShortDateFormat]="selectedShortDateFormat">\n </timeline-multi-day-view>\n <div viewFooter kendoWorkHoursFooter [showWorkHours]="shouldShowWorkHours" (itemClick)="showWorkHours = !shouldShowWorkHours"></div>\n </ng-template>\n '}),r.__metadata("design:paramtypes",[o.LocalizationService,i.ChangeDetectorRef,c.ViewContextService,l.ViewStateService])],t)}(s.TimelineBase);t.TimelineMonthViewComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(19),a=n(162),s=n(47),c=n(93),l=n(48),d=n(27),u=n(13),p=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.scheduler=t,i.localDataChangesService=n,i.dialogsService=r,i}return r.__extends(t,e),t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),this.subscriptions.add(this.scheduler.eventDblClick.subscribe(this.editHandler.bind(this))),this.subscriptions.add(this.scheduler.save.subscribe(this.saveHandler.bind(this)))},t.prototype.editHandler=function(e){var t=this;if(this.isEnabled("edit")){var n=new d.EditEvent(this.scheduler,{dataItem:e.event.dataItem,event:e.event});if(this.edit.emit(n),!n.isDefaultPrevented()){var r=e.event.dataItem;if(this.editService.isRecurring(r))this.dialogsService.openRecurringConfirmationDialog(0).pipe(u.filter((function(e){return void 0!==e}))).subscribe((function(e){2===e&&(r=t.editService.findRecurrenceMaster(r));var n=t.createModel({action:"edit",isNew:!1,mode:e,dataItem:r});t.scheduler.editEvent(r,{group:n,mode:e})}));else{var i=this.createModel({action:"edit",isNew:!1,mode:0,dataItem:r});this.scheduler.editEvent(r,{group:i})}}}},t.prototype.saveHandler=function(e){if(this.isFormValid(e)){var t=e.formGroup.value;e.isNew?this.editService.create(t):this.handleUpdate(e.dataItem,t,e.mode)}this.closeEditor()},t.prototype.createModel=function(e){return e.event=e.dataItem,this.createFormGroup(e)},t.prototype.isFormValid=function(e){var t=e.formGroup,n=e.isNew;return!!t.valid||!(!t.dirty&&!n)&&(c.markAllAsTouched(t),!1)},r.__decorate([i.Input("kendoSchedulerReactiveEditing"),r.__metadata("design:type",Function)],t.prototype,"createFormGroup",void 0),t=r.__decorate([i.Directive({selector:"[kendoSchedulerReactiveEditing]"}),r.__metadata("design:paramtypes",[o.SchedulerComponent,s.LocalDataChangesService,l.DialogsService])],t)}(a.EditingDirectiveBase);t.ReactiveEditingDirective=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),a=n(163),s=n(27),c=n(3),l=n(93),d=function(){function e(e,t,n){this.scheduler=e,this.localDataChangesService=t,this.dialogsService=n,this.add=new i.EventEmitter,this.edit=new i.EventEmitter,this.defaultTitle="No title",this.defaultEditService=this.createDefaultService(),this.scheduler.editable=!0}return Object.defineProperty(e.prototype,"editService",{get:function(){return this.userEditService||this.defaultEditService},set:function(e){this.userEditService=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.subscriptions=o.merge(this.scheduler.slotDblClick,this.scheduler.create).subscribe(this.addHandler.bind(this)),this.subscriptions.add(this.scheduler.removeConfirmed.subscribe(this.removeHandler.bind(this))),this.subscriptions.add(this.scheduler.cancel.subscribe(this.cancelHandler.bind(this))),this.subscriptions.add(this.scheduler.resizeEndConfirmed.subscribe(this.resizeEndHandler.bind(this))),this.subscriptions.add(this.scheduler.dragEndConfirmed.subscribe(this.dragEndHandler.bind(this)))},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.createDefaultService=function(){return new a.LocalEditService(this.scheduler,this.localDataChangesService)},e.prototype.addHandler=function(e){if(this.closeEditor(),this.isEnabled("add")){var t=this.scheduler.modelFields,n={};c.setField(n,t.start,e.start),c.setField(n,t.end,e.end),c.setField(n,t.isAllDay,e.isAllDay),c.setField(n,t.title,e.title);for(var r=c.groupResources(this.scheduler.group,this.scheduler.resources),i=e.resources,o=0;o<r.length;o++){var a=r[o],l=c.getField(i[o],a.valueField);c.setField(n,a.field,a.multiple?[l]:l)}var d=new s.AddEvent(this.scheduler,{dataItem:n});this.add.emit(d),d.isDefaultPrevented()||this.scheduler.addEvent(this.createModel({action:"add",isNew:!0,dataItem:n}))}},e.prototype.removeHandler=function(e){var t=this,n=e.dataItem;this.isEnabled("remove")&&(this.editService.isRecurring(n)?this.dialogsService.openRecurringConfirmationDialog(1).subscribe((function(e){void 0!==e&&t.handleRemove(n,e)})):this.dialogsService.openRemoveConfirmationDialog().subscribe((function(e){e&&t.handleRemove(n,0)})))},e.prototype.cancelHandler=function(){this.closeEditor()},e.prototype.closeEditor=function(){this.scheduler.closeEvent()},e.prototype.handleUpdate=function(e,t,n){var r=this.editService;1===n?r.isException(e)?r.update(e,t):r.createException(e,t):r.update(e,t)},e.prototype.handleRemove=function(e,t){var n=this.editService;2===t?n.removeSeries(e):1===t?n.isException(e)?n.remove(e):n.removeOccurrence(e):n.remove(e)},e.prototype.resizeEndHandler=function(e){var t=this,n=e.event,r=e.start,i=e.end;if(!l.areEqual(r,n.start)||!l.areEqual(i,n.end)){var o=n.dataItem,a=this.scheduler.modelFields,s={};c.setField(s,a.start,r),c.setField(s,a.end,i),this.editService.isRecurring(o)?this.dialogsService.openRecurringConfirmationDialog(0).subscribe((function(e){var n=o;2===e?(n=t.editService.findRecurrenceMaster(o),c.setField(s,a.start,l.seriesDate(n,o,s,a.start)),c.setField(s,a.end,l.seriesDate(n,o,s,a.end))):void 0!==e&&(s=c.assignValues(c.clone(o),s)),t.handleUpdate(n,s,e)})):this.editService.update(o,s)}},e.prototype.dragEndHandler=function(e){var t=this,n=e.event.dataItem,r=e.start,i=e.end,o=e.resources,a=e.isAllDay,s=this.scheduler.modelFields,d=c.groupResources(this.scheduler.group,this.scheduler.resources).map((function(e){return e.field})),u=[s.start,s.end,s.isAllDay].concat(d),p=c.clone(o);c.setField(p,s.start,r),c.setField(p,s.end,i),c.setField(p,s.isAllDay,a),l.diff(n,p,u)&&(this.editService.isRecurring(n)?this.dialogsService.openRecurringConfirmationDialog(0).subscribe((function(e){var r=n;2===e?(r=t.editService.findRecurrenceMaster(n),c.setField(p,s.start,l.seriesDate(r,n,p,s.start)),c.setField(p,s.end,l.seriesDate(r,n,p,s.end))):void 0!==e&&(p=c.assignValues(c.clone(n),p)),t.handleUpdate(r,p,e)})):this.editService.update(n,p))},e.prototype.isEnabled=function(e){var t=this.scheduler.editable;return t&&!1!==t[e]},r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"add",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"edit",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],e.prototype,"editService",null),e}();t.EditingDirectiveBase=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),i=n(1),o=n(6),a=function(e){return!(!e.id||!e.recurrenceRule)},s=function(){function e(e,t){this.scheduler=e,this.localDataChangesService=t}return Object.defineProperty(e.prototype,"fields",{get:function(){return this.scheduler.modelFields},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasLocalData",{get:function(){return r.isPresent(this.localDataChangesService.data)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.hasLocalData?this.localDataChangesService.data:this.scheduler.events},enumerable:!0,configurable:!0}),e.prototype.create=function(e){var t=this.fields.id,n=r.getField(e,t);r.isPresent(n)||r.setField(e,t,this.nextId()),this.data.push(e),this.dataChanged()},e.prototype.createException=function(e,t){var n=this.buildException(t);this.removeOccurrenceInternal(e),this.create(n)},e.prototype.update=function(e,t){r.assignValues(e,t),this.dataChanged()},e.prototype.remove=function(e){for(var t=this.fields.id,n=r.getField(e,t),i=this.data,o=0;o<i.length;o++)if(n===r.getField(i[o],t)){i.splice(o,1);break}this.dataChanged()},e.prototype.removeSeries=function(e){var t=r.readEvent(e,this.fields),n=a(t);this.removeItemAndExceptions(n?t.id:t.recurrenceId),this.dataChanged()},e.prototype.removeOccurrence=function(e){this.removeOccurrenceInternal(e),this.dataChanged()},e.prototype.findRecurrenceMaster=function(e){var t=this.scheduler.modelFields,n=r.readEvent(e,t),i=a(n)?n.id:n.recurrenceId;return this.data.find((function(e){return r.getField(e,t.id)===i}))},e.prototype.isRecurring=function(e){return r.isRecurring(e,this.scheduler.modelFields)},e.prototype.isException=function(e){return r.isException(e,this.scheduler.modelFields)},e.prototype.nextId=function(){return o.guid()},e.prototype.buildException=function(e){var t=this.fields,n=this.findRecurrenceMaster(e);if(n){var o=r.clone(e);return r.setField(o,t.id,this.nextId()),r.setField(o,t.recurrenceId,r.getField(n,t.id)),r.setField(o,t.recurrenceRule,null),o}if(i.isDevMode())throw new Error("Unable to find recurrence head for event. Please check that recurrenceId is set and refers to an existing event.")},e.prototype.removeItemAndExceptions=function(e){for(var t=this.data,n=this.scheduler.modelFields,i=t.length-1;i>=0;i--)e!==r.getField(t[i],n.recurrenceId)&&e!==r.getField(t[i],n.id)||t.splice(i,1)},e.prototype.removeOccurrenceInternal=function(e){var t=this.fields,n=this.findRecurrenceMaster(e),i=r.getField(e,t.start),o=r.getField(n,t.recurrenceExceptions)||[];r.setField(n,t.recurrenceExceptions,o.concat([i]))},e.prototype.dataChanged=function(){this.hasLocalData&&this.localDataChangesService.changes.emit()},e}();t.LocalEditService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(15),a=n(2),s=n(71),c=n(8),l=n(3),d=n(46),u=n(94),p=n(96),h=n(6),m=n(13),g=n(97),f=n(20),v=n(4),y=n(5),_=function(){function e(e,t,n,r,i,o){var a=this;this.ngZone=e,this.editService=t,this.localization=n,this.changeDetector=r,this.element=i,this.focusService=o,this.resources=[],this.timezone="Etc/UTC",this.setTimeZone=!1,this.setSeparateStartEndTimeZones=!1,this.subs=this.editService.changed.subscribe((function(){a.ngZone.run((function(){a.onChange()}))})),this.subs.add(c.fromEvent(this.element.nativeElement,"keydown").pipe(m.filter((function(){return a.isActive}))).subscribe((function(e){e.keyCode===h.Keys.Escape&&a.reset(),e.keyCode===h.Keys.Enter&&(g.withModifiers(e,g.Modifiers.CtrlKey)||g.withModifiers(e,g.Modifiers.MetaKey))&&a.onSave(e),e.stopPropagation()})))}return Object.defineProperty(e.prototype,"autoFocusedElement",{get:function(){return this.editTemplate?this.editTemplate.autoFocusedElement:".k-edit-field input"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEditingSeries",{get:function(){return 2===this.editMode&&Boolean(this.formGroup.get(this.fields.recurrenceRule))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"eventTimezone",{get:function(){return y.formValueOrDefault(this.formGroup,this.fields.startTimezone,this.timezone)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endTimezone",{get:function(){return y.formValueOrDefault(this.formGroup,this.fields.endTimezone,this.eventTimezone)},enumerable:!0,configurable:!0}),e.prototype.onChange=function(){if(this.changeDetector.markForCheck(),this.editService.hasNewEvent)this.editMode=2,this.formGroup=this.editService.context.formGroup,this.isNew=!0,this.applyLocalTimezone();else{if(!this.editService.isEditing())return void this.reset();var e=this.editService.context,t=e.dataItem,n=e.mode;this.formGroup=this.editService.context.formGroup,this.isNew=!1,this.editedEvent=t,this.editMode=l.isPresent(n)?n:2,this.applyLocalTimezone()}this.editTemplate||(this.addTimeZoneCheckboxesToFormGroup(),this.subscribeToFormGroupChanges()),l.isPresent(this.formGroup)&&(this.recurrenceStart=this.formGroup.get(this.fields.start).value),this.isActive=!0},e.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},e.prototype.onCancel=function(e){e.preventDefault(),this.onClose(),this.changeDetector.markForCheck()},e.prototype.onSave=function(e){e.preventDefault(),this.applyTimezone(),this.editService.save(),this.changeDetector.markForCheck()},e.prototype.onClose=function(){this.editService.endEdit(),this.changeDetector.markForCheck(),this.focusService.focus()},Object.defineProperty(e.prototype,"hasAllDay",{get:function(){return Boolean(this.formGroup.get(this.fields.isAllDay))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasStartTimeZone",{get:function(){return Boolean(this.formGroup.get(this.fields.startTimezone))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isStartTimeZoneVisible",{get:function(){return this.formGroup&&this.formGroup.get("startTimezoneCheckbox").value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasEndTimeZone",{get:function(){return Boolean(this.formGroup.get(this.fields.endTimezone))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEndTimeZoneVisible",{get:function(){return this.formGroup&&this.formGroup.get("endTimezoneCheckbox").value},enumerable:!0,configurable:!0}),e.prototype.getFormValue=function(e){if(e)return this.formGroup.get(e)},e.prototype.textFor=function(e){return this.localization.get(e)},e.prototype.onResourceClick=function(e){var t=(e.multiple?this.multipleResourceEditors:this.singleResourceEditors).filter((function(t){return t.resource.field===e.field})).pop();t&&t.focus()},e.prototype.reset=function(){this.isActive=!1,this.setTimeZone=!1,this.setSeparateStartEndTimeZones=!1,this.removeTimeZoneCheckboxesFromFormGroup(),this.focusService.focus()},e.prototype.addTimeZoneCheckboxesToFormGroup=function(){if(l.isPresent(this.formGroup)){var e=this.fields.startTimezone;this.formGroup.addControl("startTimezoneCheckbox",new o.FormControl(this.formGroup.contains(e)&&this.formGroup.get(e).value));var t=this.fields.endTimezone;this.formGroup.addControl("endTimezoneCheckbox",new o.FormControl(this.formGroup.contains(t)&&this.formGroup.get(t).value))}},e.prototype.removeTimeZoneCheckboxesFromFormGroup=function(){l.isPresent(this.formGroup)&&(this.formGroup.removeControl("startTimezoneCheckbox"),this.formGroup.removeControl("endTimezoneCheckbox"))},e.prototype.subscribeToFormGroupChanges=function(){var e=this;if(l.isPresent(this.formGroup)){var t=this.fields;this.formGroup.get("startTimezoneCheckbox").valueChanges.subscribe((function(n){n||(e.formGroup.get(t.startTimezone).setValue(null,{emitEvent:!1}),e.formGroup.get(t.endTimezone).setValue(null,{emitEvent:!1}),e.formGroup.get("endTimezoneCheckbox").setValue(!1,{emitEvent:!1}))})),this.formGroup.get("endTimezoneCheckbox").valueChanges.subscribe((function(n){n||e.formGroup.get(t.endTimezone).setValue(null,{emitEvent:!1})})),this.formGroup.get(t.start).valueChanges.subscribe((function(t){e.recurrenceStart=t}))}},e.prototype.applyLocalTimezone=function(){var e=this.fields,t=this.readDateAsLocal(e.start,this.eventTimezone),n=this.readDateAsLocal(e.end,this.endTimezone);this.formGroup.get(e.start).reset(t),this.formGroup.get(e.end).reset(n)},e.prototype.applyTimezone=function(){var e=this.fields,t=this.readDateWithTimezone(e.start,this.eventTimezone),n=this.readDateWithTimezone(e.end,this.endTimezone);this.formGroup.get(e.start).reset(t),this.formGroup.get(e.end).reset(n)},e.prototype.readDateWithTimezone=function(e,t){var n=this.formGroup.get(e).value;return v.ZonedDate.fromUTCDate(y.toUTCDateTime(n),t).toLocalDate()},e.prototype.readDateAsLocal=function(e,t){var n=this.formGroup.get(e).value;return v.toLocalDate(v.ZonedDate.fromLocalDate(n,t).toUTCDate())},r.__decorate([i.ViewChildren(u.MultipleResourceEditorComponent),r.__metadata("design:type",i.QueryList)],e.prototype,"multipleResourceEditors",void 0),r.__decorate([i.ViewChildren(p.SingleResourceEditorComponent),r.__metadata("design:type",i.QueryList)],e.prototype,"singleResourceEditors",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],e.prototype,"resources",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"timezone",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"weekStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"fields",void 0),r.__decorate([i.Input(),r.__metadata("design:type",d.EditDialogTemplateDirective)],e.prototype,"editTemplate",void 0),e=r.__decorate([i.Component({selector:"kendo-scheduler-edit-dialog",template:"\n <kendo-dialog (close)='onClose()' [minWidth]='700' *ngIf='isActive' title='{{ textFor(\"editorTitle\") }}' class='k-scheduler-edit-dialog' [autoFocusedElement]=\"autoFocusedElement\">\n <ng-container *ngIf='!editTemplate'>\n <div class='k-scheduler-edit-form'>\n <div class='k-edit-form-container'>\n <form novalidate [formGroup]='formGroup'>\n <div class='k-edit-label'>\n <label for='k-event-title'>{{ textFor('editorEventTitle') }}</label>\n </div>\n <div class='k-edit-field'>\n <input #title id='k-event-title' kendoTextBox placeholder='Title' [formControl]='formGroup.get(fields.title)' />\n </div>\n\n <div class='k-edit-label'>\n <label (click)=\"startDateTimePicker.focus()\">{{ textFor('editorEventStart') }}</label>\n </div>\n <div class='k-edit-field'>\n <kendo-scheduler-datetime-picker #startDateTimePicker [formControl]='formGroup.get(fields.start)'\n [isAllDay]='getFormValue(fields.isAllDay)?.value'>\n </kendo-scheduler-datetime-picker>\n </div>\n\n <ng-container *ngIf=\"isStartTimeZoneVisible\">\n <div class='k-edit-label'>\n <label (click)=\"startTzPicker.focus()\">{{ textFor('editorEventStartTimeZone') }}</label>\n </div>\n\n <div class='k-edit-field'>\n <kendo-timezone-editor #startTzPicker [formControl]='formGroup.get(fields.startTimezone)'></kendo-timezone-editor>\n </div>\n </ng-container>\n\n <div class='k-edit-label'>\n <label (click)=\"endDateTimePicker.focus()\">{{ textFor('editorEventEnd') }}</label>\n </div>\n <div class='k-edit-field'>\n <kendo-scheduler-datetime-picker #endDateTimePicker [formControl]='formGroup.get(fields.end)'\n [isAllDay]='getFormValue(fields.isAllDay)?.value'>\n </kendo-scheduler-datetime-picker>\n </div>\n\n <ng-container *ngIf=\"isEndTimeZoneVisible\">\n <div class='k-edit-label'>\n <label (click)=\"endTzPicker.focus()\">{{ textFor('editorEventEndTimeZone') }}</label>\n </div>\n\n <div class='k-edit-field'>\n <kendo-timezone-editor #endTzPicker [formControl]='formGroup.get(fields.endTimezone)'></kendo-timezone-editor>\n </div>\n </ng-container>\n\n <div class='k-edit-field' *ngIf=\"hasAllDay\">\n <input type='checkbox' id='k-is-allday-chkbox' kendoCheckBox [formControl]='formGroup.get(fields.isAllDay)' />\n <label class='k-checkbox-label' for='k-is-allday-chkbox'>{{ textFor('editorEventAllDay') }}</label>\n </div>\n\n <div class='k-edit-field' *ngIf=\"hasStartTimeZone\">\n <input type='checkbox' id='k-set-timezone' kendoCheckBox\n formControlName='startTimezoneCheckbox' />\n <label class='k-checkbox-label' for='k-set-timezone'>{{ textFor('editorEventTimeZone') }}</label>\n\n <ng-container *ngIf=\"isStartTimeZoneVisible && hasEndTimeZone\">\n <input type='checkbox' id='k-use-separate' kendoCheckBox formControlName='endTimezoneCheckbox' />\n <label class='k-checkbox-label' for='k-use-separate'>{{ textFor('editorEventSeparateTimeZones') }}</label>\n </ng-container>\n </div>\n\n <ng-container *ngIf=\"isEditingSeries\">\n <kendo-recurrence-editor\n [formControl]='formGroup.get(fields.recurrenceRule)'\n [start]='recurrenceStart'\n [timezone]='eventTimezone'\n [weekStart]='weekStart'\n ></kendo-recurrence-editor>\n </ng-container>\n\n <ng-container *ngIf='getFormValue(fields.description)'>\n <div class='k-edit-label'>\n <label for='k-event-description'>{{ textFor('editorEventDescription') }}</label>\n </div>\n <div class='k-edit-field'>\n <textarea id='k-event-description' kendoTextArea [formControl]='formGroup.get(fields.description)'></textarea>\n </div>\n </ng-container>\n\n <ng-container *ngFor='let resource of resources'>\n <ng-container *ngIf='getFormValue(resource.field)'>\n <div class='k-edit-label'>\n <label (click)=\"onResourceClick(resource)\">\n {{ resource.name ? resource.name : resource.field }}\n </label>\n </div>\n <div class='k-edit-field'>\n <kendo-multiple-resource-editor\n *ngIf='resource.multiple'\n [formControl]='formGroup.get(resource.field)'\n [resource]='resource'>\n </kendo-multiple-resource-editor>\n <kendo-single-resource-editor\n *ngIf='!resource.multiple'\n [formControl]='formGroup.get(resource.field)'\n [resource]='resource'>\n </kendo-single-resource-editor>\n </div>\n </ng-container>\n </ng-container>\n </form>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf='editTemplate'>\n <form novalidate [formGroup]='formGroup'>\n <ng-container [ngTemplateOutlet]='editTemplate.templateRef'\n [ngTemplateOutletContext]=\"{\n $implicit: formGroup,\n formGroup: formGroup,\n dataItem: editedEvent,\n editMode: editMode,\n isNew: isNew\n }\">\n </ng-container>\n </form>\n </ng-container>\n\n <kendo-dialog-actions>\n <button kendoButton (click)=\"onCancel($event)\">{{ textFor('cancel') }}</button>\n <button kendoButton themeColor=\"primary\" (click)=\"onSave($event)\" [disabled]=\"!formGroup.valid\">{{ textFor('save') }}</button>\n </kendo-dialog-actions>\n </kendo-dialog>\n "}),r.__metadata("design:paramtypes",[i.NgZone,s.EditService,a.LocalizationService,i.ChangeDetectorRef,i.ElementRef,f.FocusService])],e)}();t.EditDialogComponent=_},function(e,t){e.exports=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(15),a=n(1),s=n(23);t.SCHEDULER_DATETIMEPICKER_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:a.forwardRef((function(){return c}))};var c=function(){function e(){this.valueChange=new a.EventEmitter,this.onTouchedCallback=function(e){},this.onChangeCallback=function(e){}}return e.prototype.writeValue=function(e){e instanceof Date&&(this.date=e)},e.prototype.onValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},e.prototype.focus=function(){this.datePicker.focus()},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},r.__decorate([i.ViewChild("datepicker",{static:!0}),r.__metadata("design:type",s.DatePickerComponent)],e.prototype,"datePicker",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],e.prototype,"isAllDay",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],e.prototype,"valueChange",void 0),e=r.__decorate([a.Component({providers:[t.SCHEDULER_DATETIMEPICKER_VALUE_ACCESSOR],selector:"kendo-scheduler-datetime-picker",template:"\n <kendo-datepicker\n #datepicker\n [(value)]='date'\n (valueChange)='onValueChange($event)'\n ></kendo-datepicker>\n <kendo-timepicker *ngIf='!isAllDay'\n [(value)]='date'\n (valueChange)='onValueChange($event)'\n ></kendo-timepicker>\n ",styles:["\n kendo-datepicker,\n kendo-timepicker {\n width: 170px;\n }\n "]})],e)}();t.SchedulerDateTimePickerComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),a=n(76),s=n(3),c=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r)||this;return o.schedulerLocalization=i,o}return r.__extends(t,e),t.prototype.get=function(t){return this.schedulerLocalization?this.schedulerLocalization.get("recurrenceEditor"+s.capitalize(t)):e.prototype.get.call(this,t)},t=r.__decorate([r.__param(0,i.Inject(o.L10N_PREFIX)),r.__param(1,i.Optional()),r.__param(2,i.Optional()),r.__param(2,i.Inject(o.RTL)),r.__param(3,i.Optional()),r.__param(3,i.Inject(a.SchedulerLocalizationService)),r.__metadata("design:paramtypes",[String,o.MessageService,Boolean,a.SchedulerLocalizationService])],t)}(o.LocalizationService);t.RecurrenceLocalizationService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(14),a=n(2),s=n(21),c=function(){function e(e,t){this.recurrence=e,this.localization=t}return e.prototype.ngOnInit=function(){this.frequencies=this.recurrence.frequencies},Object.defineProperty(e.prototype,"selected",{get:function(){return this.recurrence.frequency},enumerable:!0,configurable:!0}),e.prototype.onClick=function(e){e.value!==this.selected&&this.recurrence.setFrequency(e.value)},e.prototype.textFor=function(e){return this.localization.get(e)},e.prototype.onFrequencyClick=function(){var e=this.weekDayButtons.toArray().find((function(e){return e.selected}));e&&e.focus()},r.__decorate([i.ViewChildren(s.Button),r.__metadata("design:type",i.QueryList)],e.prototype,"weekDayButtons",void 0),e=r.__decorate([i.Component({selector:"kendo-recurrence-frequency-editor",template:'\n <div class=\'k-edit-label\'>\n <label (click)="onFrequencyClick()">{{ textFor(\'repeat\') }}</label>\n </div>\n <div class=\'k-edit-field\'>\n <kendo-buttongroup [selection]="\'single\'">\n <button *ngFor=\'let freq of frequencies\' kendoButton\n [style.width.px]="100"\n [togglable]="true"\n [selected]="freq.value === selected"\n (click)="onClick(freq)"\n >{{ freq.text }}</button>\n </kendo-buttongroup>\n </div>\n '}),r.__metadata("design:paramtypes",[o.RecurrenceService,a.LocalizationService])],e)}();t.RecurrenceFrequencyEditorComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(14),a=n(3),s=n(2),c=n(99),l=n(4),d=n(5),u=function(){function e(e,t){this.recurrence=e,this.localization=t,this.numericOptions={min:1,format:"#",autoCorrect:!0,step:1,spinners:!0},this.datePickerOptions={activeView:"month",bottomView:"month",topView:"century",disabledDatesValidation:!0,navigation:!0,format:"d"},this.uniqueId=this.recurrence.getUniqueId(),this.setInitialValues(),this.subscribeChanges()}return Object.defineProperty(e.prototype,"userNumericOptions",{set:function(e){this.numericOptions=r.__assign({},this.numericOptions,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"userDatePickerOptions",{set:function(e){this.datePickerOptions=r.__assign({},this.datePickerOptions,e)},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.setEndRule=function(e){"count"===e?this.recurrence.rrule.count=this.countValue:"until"===e&&(this.recurrence.until=this.untilValue)},Object.defineProperty(e.prototype,"rrule",{get:function(){return this.recurrence.rrule},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCountDisabled",{get:function(){return"count"!==this.recurrence.endRule},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isUntilDisabled",{get:function(){return"until"!==this.recurrence.endRule},enumerable:!0,configurable:!0}),e.prototype.onCountChange=function(e){a.isPresent(e)&&(this.recurrence.count=e)},e.prototype.onCountBlur=function(){a.isPresent(this.countValue)||(this.recurrence.count=this.countValue=1)},e.prototype.onUntilChange=function(e){a.isPresent(e)&&(this.recurrence.until=this.createUntil(e))},e.prototype.onUntilBlur=function(){a.isPresent(this.untilValue)||(this.recurrence.until=this.untilValue=this.createUntil(this.recurrence.start))},e.prototype.textFor=function(e){return this.localization.get(e)},e.prototype.onEndLabelClick=function(){var e=this.endRuleRadioButtons.toArray().find((function(e){return e.elem.checked}));e&&e.elem.focus()},e.prototype.setInitialValues=function(){this.countValue=this.rrule.count||1;var e=this.recurrence.until,t=this.recurrence.start;this.untilValue=a.isPresent(e)?e:this.createUntil(t)},e.prototype.subscribeChanges=function(){var e=this;this.subscriptions=this.recurrence.endRuleChange.subscribe((function(t){e.setEndRule(t)})),this.subscriptions.add(this.recurrence.frequencyChange.subscribe((function(){e.setInitialValues()})))},e.prototype.createUntil=function(e){var t=d.toUTCDate(e);return t.setUTCDate(t.getUTCDate()+1),l.ZonedDate.fromUTCDate(t,this.recurrence.timezone).toLocalDate()},r.__decorate([i.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],e.prototype,"userNumericOptions",null),r.__decorate([i.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],e.prototype,"userDatePickerOptions",null),r.__decorate([i.ViewChildren(c.EndRuleRadioButtonDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"endRuleRadioButtons",void 0),e=r.__decorate([i.Component({selector:"kendo-recurrence-end-rule-editor",template:"\n <div class='k-edit-label'>\n <label (click)=\"onEndLabelClick()\">{{ textFor('endLabel') }}</label>\n </div>\n <div class='k-edit-field'>\n <ul class='k-reset'>\n <li>\n <input kendoRecurrenceEndRuleRadioButton='k-endrule-never-{{uniqueId}}' />\n <label class='k-radio-label' for='k-endrule-never-{{uniqueId}}'>{{ textFor('endNever') }}</label>\n </li>\n <li>\n <input kendoRecurrenceEndRuleRadioButton='k-endrule-count-{{uniqueId}}' />\n <label class='k-radio-label' for='k-endrule-count-{{uniqueId}}'>{{ textFor('endAfter') }}</label>\n\n <kendo-numerictextbox\n [style.width.px]='70'\n [autoCorrect]='numericOptions.autoCorrect'\n [decimals]='0'\n [disabled]='isCountDisabled'\n [format]=\"numericOptions.format\"\n [min]='numericOptions.min'\n [max]=\"numericOptions.max\"\n [readonly]=\"numericOptions.readonly\"\n [selectOnFocus]=\"numericOptions.selectOnFocus\"\n [spinners]=\"numericOptions.spinners\"\n [step]=\"numericOptions.step\"\n [title]=\"numericOptions.title\"\n [(value)]='countValue'\n (blur)=\"onCountBlur()\"\n (valueChange)='onCountChange($event)'>\n </kendo-numerictextbox>\n <span>{{ textFor('endOccurrence') }}</span>\n </li>\n <li>\n <input kendoRecurrenceEndRuleRadioButton='k-endrule-until-{{uniqueId}}' />\n <label class='k-radio-label' for='k-endrule-until-{{uniqueId}}'>{{ textFor('endOn') }}</label>\n\n <kendo-datepicker\n [style.width.px]='150'\n [disabled]='isUntilDisabled'\n [activeView]=\"datePickerOptions.activeView\"\n [bottomView]=\"datePickerOptions.bottomView\"\n [disabledDatesValidation]=\"datePickerOptions.disabledDatesValidation\"\n [focusedDate]=\"datePickerOptions.focusedDate\"\n [format]=\"datePickerOptions.format\"\n [formatPlaceholder]=\"datePickerOptions.formatPlaceHolder\"\n [max]=\"datePickerOptions.max\"\n [min]=\"datePickerOptions.min\"\n [navigation]=\"datePickerOptions.navigation\"\n [placeholder]=\"datePickerOptions.placeholder\"\n [readOnlyInput]=\"datePickerOptions.readOnlyInput\"\n [readonly]=\"datePickerOptions.readonly\"\n [title]=\"datePickerOptions.title\"\n [topView]=\"datePickerOptions.topView\"\n [weekNumber]=\"datePickerOptions.weekNumber\"\n [disabledDates]=\"datePickerOptions.disabledDates\"\n [popupSettings]=\"datePickerOptions.popupSettings\"\n [(value)]='untilValue'\n (blur)=\"onUntilBlur()\"\n (valueChange)='onUntilChange($event)'>\n </kendo-datepicker>\n </li>\n </ul>\n </div>\n "}),r.__metadata("design:paramtypes",[o.RecurrenceService,s.LocalizationService])],e)}();t.RecurrenceEndRuleEditorComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(14),a=n(2),s=n(3),c=function(){function e(e,t){this.recurrence=e,this.localization=t,this.numericOptions={min:1,format:"#",autoCorrect:!0,step:1,spinners:!0},this.intervalValue=this.recurrence.rrule.interval||1}return Object.defineProperty(e.prototype,"userNumericOptions",{set:function(e){this.numericOptions=r.__assign({},this.numericOptions,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentFreq",{get:function(){return this.recurrence.frequency},enumerable:!0,configurable:!0}),e.prototype.onIntervalChange=function(e){s.isPresent(e)&&(this.recurrence.interval=e)},e.prototype.onIntervalBlur=function(){s.isPresent(this.intervalValue)||(this.recurrence.interval=this.intervalValue=1)},e.prototype.textForRepeatEvery=function(){switch(this.currentFreq){case"daily":return this.textFor("dailyRepeatEvery");case"weekly":return this.textFor("weeklyRepeatEvery");case"monthly":return this.textFor("monthlyRepeatEvery");case"yearly":return this.textFor("yearlyRepeatEvery")}},e.prototype.textForFrequency=function(){switch(this.currentFreq){case"daily":return this.textFor("dailyInterval");case"weekly":return this.textFor("weeklyInterval");case"monthly":return this.textFor("monthlyInterval");case"yearly":return this.textFor("yearlyInterval")}},e.prototype.textFor=function(e){return this.localization.get(e)},r.__decorate([i.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],e.prototype,"userNumericOptions",null),e=r.__decorate([i.Component({selector:"kendo-recurrence-interval-editor",template:'\n <div class="k-edit-label">\n <label (click)="intervalNumeric.focus()">{{ textForRepeatEvery() }}</label>\n </div>\n\n <div class="k-edit-field">\n <kendo-numerictextbox\n #intervalNumeric\n [style.width.px]="70"\n [min]="numericOptions.min"\n [max]="numericOptions.max"\n [decimals]="0"\n [format]="numericOptions.format"\n [autoCorrect]="numericOptions.autoCorrect"\n [readonly]="numericOptions.readonly"\n [selectOnFocus]="numericOptions.selectOnFocus"\n [spinners]="numericOptions.spinners"\n [step]="numericOptions.step"\n [title]="numericOptions.title"\n [(value)]="intervalValue"\n (blur)="onIntervalBlur()"\n (valueChange)="onIntervalChange($event)">\n </kendo-numerictextbox>\n\n <span>{{ textForFrequency() }}</span>\n </div>\n '}),r.__metadata("design:paramtypes",[o.RecurrenceService,a.LocalizationService])],e)}();t.RecurrenceIntervalEditorComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(14),a=n(3),s=n(14),c=n(2),l=n(100),d=function(){function e(e,t){this.recurrence=e,this.localization=t,this.uniqueId=this.recurrence.getUniqueId(),this.numericOptions={min:1,max:31,format:"#",autoCorrect:!0,step:1,spinners:!0},this.setInitialValues(),this.subscribeEventHandlers()}return Object.defineProperty(e.prototype,"userNumericOptions",{set:function(e){this.numericOptions=r.__assign({},this.numericOptions,e)},enumerable:!0,configurable:!0}),e.prototype.setInitialValues=function(){this.extendedWeekDays=this.recurrence.extendedWeekDays,this.offsetPositions=this.recurrence.offsetPositions,this.currentOffset=this.defaultOffset,this.currentWeekDay=this.defaultWeekDay,"yearly"===this.currentFreq&&(this.months=this.recurrence.months,this.currentMonthMonthDay=this.currentMonthWeekDay=this.recurrence.rrule.byMonth[0])},e.prototype.subscribeEventHandlers=function(){this.subs=this.recurrence.repeatOnRuleChange.subscribe(this.onRepeatOnRuleChange.bind(this)),this.subs.add(this.recurrence.frequencyChange.subscribe(this.onFrequencyChange.bind(this)))},e.prototype.onRepeatOnRuleChange=function(e){"monthday"===e?(this.recurrence.rrule.byMonthDay=[this.monthDay],"yearly"===this.currentFreq&&(this.recurrence.rrule.byMonth=[this.currentMonthMonthDay])):"weekday"===e&&("string"==typeof this.weekDay?(this.recurrence.rrule.bySetPosition=[this.offset],this.recurrence.rrule.byWeekDay=this.weekDayRuleFromString(this.weekDay)):this.recurrence.rrule.byWeekDay=[{day:this.weekDay,offset:this.offset}],"yearly"===this.currentFreq&&(this.recurrence.rrule.byMonth=[this.currentMonthWeekDay]))},e.prototype.onFrequencyChange=function(){this.setInitialValues()},e.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(e.prototype,"monthDay",{get:function(){var e=this.recurrence.rrule;return a.isPresent(e.byMonthDay)&&e.byMonthDay.length>0?e.byMonthDay[0]:a.isPresent(this.currentMonthDay)?this.currentMonthDay:this.recurrence.start.getDate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"weekDay",{get:function(){var e=this.recurrence.rrule;if(a.isPresent(e.byWeekDay))switch(e.byWeekDay.length){case 7:return"day";case 5:return"weekday";case 2:return"weekend";case 1:return e.byWeekDay[0].day}else if(a.isPresent(this.currentWeekDay))return this.currentWeekDay;return this.defaultWeekDay},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offset",{get:function(){var e=this.recurrence.rrule;if(a.isPresent(e.byWeekDay))switch(e.byWeekDay.length){case 7:case 5:case 2:return e.bySetPosition[0];case 1:return e.byWeekDay[0].offset}else if(a.isPresent(this.currentOffset))return this.currentOffset;return this.defaultOffset},enumerable:!0,configurable:!0}),e.prototype.onMonthChange=function(e,t){"monthday"===t?this.currentMonthMonthDay=e:this.currentMonthWeekDay=e,this.recurrence.setMonths([e])},e.prototype.onMonthDayChange=function(e){this.currentMonthDay=e,this.recurrence.monthDays=[e]},e.prototype.onOffsetPositionChange=function(e){var t=this.recurrence.rrule;if(a.isPresent(t.byWeekDay))switch(t.byWeekDay.length){case 7:case 5:case 2:this.recurrence.positions=[e];break;case 1:t.byWeekDay[0].offset=e,this.recurrence.onChange()}this.currentOffset=e},e.prototype.onWeekDayChange=function(e){var t;"string"==typeof e?(t=this.weekDayRuleFromString(e),this.recurrence.positions=[this.offset]):t=[{day:e,offset:this.offset}],this.currentWeekDay=e,this.recurrence.setWeekDays(t)},e.prototype.isDisabled=function(e){return this.recurrence.repeatOnRule!==e},Object.defineProperty(e.prototype,"currentFreq",{get:function(){return this.recurrence.frequency},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultOffset",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultWeekDay",{get:function(){return this.recurrence.start.getDay()},enumerable:!0,configurable:!0}),e.prototype.weekDayRuleFromString=function(e){switch(e){case"day":return s.dayRule;case"weekday":return s.weekdayRule;case"weekend":return s.weekendRule}return null},e.prototype.textForRepeatOn=function(){switch(this.currentFreq){case"monthly":return this.textFor("monthlyRepeatOn");case"yearly":return this.textFor("yearlyRepeatOn")}},e.prototype.textFor=function(e){return this.localization.get(e)},e.prototype.onRepeatOnLabelClick=function(){var e=this.repeatOnRadioButtons.toArray().find((function(e){return e.elem.checked}));e&&e.elem.focus()},r.__decorate([i.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],e.prototype,"userNumericOptions",null),r.__decorate([i.ViewChildren(l.RepeatOnRadioButtonDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"repeatOnRadioButtons",void 0),e=r.__decorate([i.Component({selector:"kendo-recurrence-monthly-yearly-editor",template:"\n <div class='k-edit-label'>\n <label (click)=\"onRepeatOnLabelClick()\">{{ textForRepeatOn() }}</label>\n </div>\n <div class='k-edit-field'>\n <ul class='k-reset' [style.width.px]='650'>\n <li>\n <input kendoRecurrenceRepeatOnRadioButton='monthday-{{uniqueId}}' />\n\n <label class='k-radio-label' for='k-repeaton-monthday-{{uniqueId}}'>\n <ng-template [ngIf]=\"currentFreq === 'monthly'\">\n {{ textFor('monthlyDay') }}\n </ng-template>\n </label>\n\n <ng-template [ngIf]=\"currentFreq === 'yearly'\">\n <kendo-dropdownlist\n [data]='months'\n textField='text'\n valueField='value'\n [value]='currentMonthMonthDay'\n [valuePrimitive]='true'\n (valueChange)=\"onMonthChange($event, 'monthday')\"\n [disabled]=\"isDisabled('monthday')\"\n [style.width.px]=\"170\"\n [style.margin]=\"'0 .4ex 0 1ex'\">\n </kendo-dropdownlist>\n </ng-template>\n\n <kendo-numerictextbox\n [style.width.px]='70'\n [min]=\"numericOptions.min\"\n [max]=\"numericOptions.max\"\n [decimals]=\"0\"\n [format]=\"numericOptions.format\"\n [autoCorrect]=\"numericOptions.autoCorrect\"\n [readonly]=\"numericOptions.readonly\"\n [selectOnFocus]=\"numericOptions.selectOnFocus\"\n [spinners]=\"numericOptions.spinners\"\n [step]=\"numericOptions.step\"\n [title]=\"numericOptions.title\"\n [value]='monthDay'\n (valueChange)='onMonthDayChange($event)'\n [disabled]=\"isDisabled('monthday')\"\n [style.margin]=\"'0 .4ex 0 1ex'\">\n </kendo-numerictextbox>\n </li>\n <li>\n <input kendoRecurrenceRepeatOnRadioButton='weekday-{{uniqueId}}' />\n <label class='k-radio-label' for='k-repeaton-weekday-{{uniqueId}}'></label>\n\n <kendo-dropdownlist\n [data]='offsetPositions'\n textField='text'\n valueField='value'\n [value]='offset'\n [valuePrimitive]='true'\n (valueChange)='onOffsetPositionChange($event)'\n [disabled]=\"isDisabled('weekday')\"\n [style.width.px]=\"170\"\n [style.margin]=\"'0 .4ex 0 1ex'\">\n </kendo-dropdownlist>\n\n <kendo-dropdownlist\n [data]=\"extendedWeekDays\"\n textField='text'\n valueField='value'\n [value]='weekDay'\n [valuePrimitive]='true'\n (valueChange)='onWeekDayChange($event)'\n [disabled]=\"isDisabled('weekday')\"\n [style.width.px]=\"170\"\n [style.margin]=\"'0 .4ex 0 1ex'\">\n </kendo-dropdownlist>\n\n <ng-template [ngIf]=\"currentFreq === 'yearly'\">\n <span>{{ textFor('yearlyOf') }}</span>\n\n <kendo-dropdownlist\n [data]='months'\n textField='text'\n valueField='value'\n [value]='currentMonthWeekDay'\n [valuePrimitive]='true'\n (valueChange)=\"onMonthChange($event, 'weekday')\"\n [disabled]=\"isDisabled('weekday')\"\n [style.width.px]=\"170\"\n [style.margin]=\"'0 .4ex 0 1ex'\">\n </kendo-dropdownlist>\n </ng-template>\n </li>\n </ul>\n </div>\n "}),r.__metadata("design:paramtypes",[o.RecurrenceService,c.LocalizationService])],e)}();t.RecurrenceMonthlyYearlyEditorComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(3),a=n(14),s=n(2),c=n(21),l=function(){function e(e,t){this.recurrence=e,this.localization=t,this.selected=[],this.weekDays=this.recurrence.weekDays,this.setSelectedDays()}return e.prototype.setSelectedDays=function(){for(var e=this,t=0;t<7;t++)this.selected[t]=!1;o.isPresent(this.rrule.byWeekDay)&&this.rrule.byWeekDay.forEach((function(t){e.selected[t.day]=!0}))},e.prototype.onSelectedChange=function(e,t){this.selected[t]=e,this.recurrence.setWeekDays(this.serializeToWeekDayRuleArray(this.selected))},e.prototype.isSelected=function(e){return this.selected[e.value]},e.prototype.serializeToWeekDayRuleArray=function(e){var t=[];return e.forEach((function(e,n){e&&t.push({day:n,offset:0})})),t.length>0?t:null},Object.defineProperty(e.prototype,"rrule",{get:function(){return this.recurrence.rrule},enumerable:!0,configurable:!0}),e.prototype.capitalize=function(e){return o.capitalize(e)},e.prototype.textFor=function(e){return this.localization.get(e)},e.prototype.onWeeklyRepeatOnClick=function(){var e=this.weekDayButtons.toArray().find((function(e){return e.selected}));e&&e.focus()},r.__decorate([i.ViewChildren(c.Button),r.__metadata("design:type",i.QueryList)],e.prototype,"weekDayButtons",void 0),e=r.__decorate([i.Component({selector:"kendo-recurrence-weekday-rule-editor",template:'\n <div class=\'k-edit-label\'>\n <label (click)="onWeeklyRepeatOnClick()">{{ textFor(\'weeklyRepeatOn\') }}</label>\n </div>\n <div class=\'k-edit-field\'>\n <kendo-buttongroup [selection]="\'multiple\'">\n <button *ngFor=\'let day of weekDays\' kendoButton\n [style.width.px]="75"\n [toggleable]="true"\n [selected]="isSelected(day)"\n (selectedChange)="onSelectedChange($event, day.value)"\n >{{ capitalize(day.text) }}</button>\n </kendo-buttongroup>\n </div>\n '}),r.__metadata("design:paramtypes",[a.RecurrenceService,s.LocalizationService])],e)}();t.RecurrenceWeekdayRuleEditorComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),a=n(101),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return r.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=r.__decorate([i.Component({providers:[{provide:a.Messages,useExisting:i.forwardRef((function(){return n}))}],selector:"kendo-recurrence-editor-messages",template:""}),r.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.Messages);t.RecurrenceEditorCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(2),a=n(101),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return r.__extends(t,e),n=t,t=n=r.__decorate([i.Directive({providers:[{provide:a.Messages,useExisting:i.forwardRef((function(){return n}))}],selector:"[kendoRecurrenceEditorLocalizedMessages]"}),r.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.Messages);t.RecurrenceEditorLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(1),a=n(15),s=n(4),c=n(31);t.TIME_ZONE_VALUE_ACCESSOR={multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return l}))};var l=function(){function e(){this.width=260,this.valueChange=new o.EventEmitter,this.onTouchedCallback=function(e){},this.onChangeCallback=function(e){},this.tzNames=s.timezoneNames(),this.tzSource=this.tzNames.slice()}return e.prototype.onTimeZoneChange=function(e){this.tz=e,this.onChangeCallback(this.tz),this.valueChange.emit(e)},e.prototype.onTimeZoneFilterChange=function(e){this.tzSource=this.tzNames.filter((function(t){return-1!==t.toLowerCase().indexOf(e.toLowerCase())}))},e.prototype.writeValue=function(e){"string"==typeof e&&this.tzNames.indexOf(e)>=0&&(this.tz=e)},e.prototype.focus=function(){this.tzComboBox.focus()},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},r.__decorate([i.ViewChild("tzcombobox",{static:!0}),r.__metadata("design:type",c.ComboBoxComponent)],e.prototype,"tzComboBox",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Number)],e.prototype,"width",void 0),r.__decorate([o.Output(),r.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),e=r.__decorate([o.Component({providers:[t.TIME_ZONE_VALUE_ACCESSOR],selector:"kendo-timezone-editor",template:'\n <kendo-combobox\n #tzcombobox\n [style.width.px]="width"\n [allowCustom]="false"\n [data]="tzSource"\n [filterable]="true"\n [suggest]="true"\n [value]="tz"\n (filterChange)="onTimeZoneFilterChange($event)"\n (valueChange)="onTimeZoneChange($event)">\n </kendo-combobox>\n '}),r.__metadata("design:paramtypes",[])],e)}();t.TimeZoneEditorComponent=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(6),a=n(4),s=n(8),c=n(28),l=n(97),d=n(3),u=n(19),p=n(49),h=n(13),m=n(9),g=n(17),f=n(48),v=function(e){return g.hasClasses(e,"k-scheduler-content")},y=function(){function e(e,t,n,r,i,c,u){var p=this;this.scheduler=e,this.domEvents=t,this.focusService=n,this.zone=r,this.changeDetector=i,this.viewState=c,this.dialogsService=u,this.shortcuts=[{match:function(e){return e.keyCode===o.Keys.KeyC&&l.noModifiers(e)},action:function(e){var t,n=p.scheduler,r=(new Date).getHours(),i=n.selectedDate,o=new Date(i.getFullYear(),i.getMonth(),i.getDate(),r+1),s=new Date(i.getFullYear(),i.getMonth(),i.getDate(),r+2);if(n.group){var c=n.resources||[],l=n.group||{},u=d.groupResources(l,c);u.length>0&&(t=u[0].data[0])}n.create.emit({start:a.ZonedDate.fromLocalDate(o,n.timezone).toLocalDate(),end:a.ZonedDate.fromLocalDate(s,n.timezone).toLocalDate(),isAllDay:!1,resources:[t],originalEvent:e,sender:n})}},{match:function(e){return e.keyCode>=o.Keys.Digit1&&e.keyCode<=o.Keys.Digit9&&l.withModifiers(e,l.Modifiers.AltKey)},action:function(e){var t=p.scheduler,n=e.keyCode-o.Keys.Digit0-1,r=t.views.toArray()[n];r&&p.zone.run((function(){t.onNavigationAction({type:"view-change",view:r})||(p.changeDetector.markForCheck(),p.focusWait())}))}},{match:function(e){return e.keyCode===o.Keys.KeyT&&l.noModifiers(e)},action:function(){p.zone.run((function(){p.scheduler.onNavigationAction({type:"today"}),p.focusWait()}))}},{match:function(e){return(e.keyCode===o.Keys.ArrowLeft||e.keyCode===o.Keys.ArrowRight)&&l.withModifiers(e,l.Modifiers.ShiftKey)},action:function(e){var t=e.keyCode===o.Keys.ArrowLeft?"prev":"next";p.zone.run((function(){p.scheduler.onNavigationAction({type:t}),p.focusWait()}))}},{match:function(e){return(e.keyCode===o.Keys.ArrowUp||e.keyCode===o.Keys.ArrowLeft)&&l.noModifiers(e)&&!v(e.target)},action:function(e){p.scheduler.onNavigationAction({type:"focus-prev"})||(p.focusService.focusNext({offset:-1}),e.preventDefault())}},{match:function(e){return(e.keyCode===o.Keys.ArrowDown||e.keyCode===o.Keys.ArrowRight)&&l.noModifiers(e)&&!v(e.target)},action:function(e){p.scheduler.onNavigationAction({type:"focus-next"})||(p.focusService.focusNext({offset:1}),e.preventDefault())}}],this.taskShortcuts=[{match:function(e){return(e.keyCode===o.Keys.Delete||e.keyCode===o.Keys.Backspace)&&l.noModifiers(e)},action:function(e,t){p.viewState.emitEvent("remove",{event:t,dataItem:t.dataItem}),e.preventDefault()}},{match:function(e){return e.keyCode===o.Keys.Enter&&l.noModifiers(e)},action:function(e,t){p.viewState.emitEvent("eventDblClick",{type:"dblclick",event:t,originalEvent:e}),e.preventDefault()}}],this.subs=new s.Subscription,this.subs.add(this.domEvents.keydown.subscribe((function(e){return p.onKeydown(e)}))),this.subs.add(this.scheduler.eventKeydown.subscribe((function(e){return p.onEventKeydown(e)})))}return e.prototype.onKeydown=function(e){var t=this.shortcuts.find((function(t){return t.match(e)}));t&&!this.dialogsService.isOpen&&t.action(e)},e.prototype.onEventKeydown=function(e){var t=this.taskShortcuts.find((function(t){return t.match(e.originalEvent)}));t&&!this.dialogsService.isOpen&&t.action(e.originalEvent,e.event)},e.prototype.focusWait=function(){var e=this;this.viewState.layoutEnd.pipe(h.take(1)).subscribe((function(){return e.focusService.focus()}))},e=r.__decorate([i.Directive({selector:"kendo-scheduler"}),r.__metadata("design:paramtypes",[u.SchedulerComponent,p.DomEventsService,c.FocusService,i.NgZone,i.ChangeDetectorRef,m.ViewStateService,f.DialogsService])],e)}();t.ShortcutsDirective=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),a=n(5),s=n(19),c=n(13),l=n(6),d=function(){function e(e,t){var n=this;this.scheduler=e,this.cdr=t,this.slotSelectionChange=new i.EventEmitter,this.selectedRange=null,this.slotSelectionChangeSource=new i.EventEmitter,this.subscriptions=new o.Subscription,this.scheduler.selectable=!0,this.subscriptions.add(this.slotSelectionChangeSource.pipe(c.distinctUntilChanged(a.isSameRange)).subscribe((function(e){n.slotSelectionChange.emit(e)})));var r=this.scheduler.slotDragStart,s=this.scheduler.slotDrag,l=this.scheduler.slotDragEnd,d=r.pipe(c.filter((function(e){return!e.isDefaultPrevented()})));this.subscriptions.add(d.subscribe((function(e){return n.initDragSelect(e)}))),this.subscriptions.add(s.subscribe((function(e){return n.onDrag(e)}))),this.subscriptions.add(l.subscribe((function(){return n.onRelease()})))}return e.prototype.ngOnInit=function(){this.scheduler.isSlotSelected=this.isSlotSelected.bind(this)},e.prototype.ngOnChanges=function(e){if(l.isChanged("slotSelection",e,!1)){var t=this.scheduler.resources?[this.scheduler.resources[0].data[0]]:[void 0];this.selectedRange=Object.assign({},{isAllDay:!1,resources:t},e.slotSelection.currentValue),this.cdr.markForCheck()}},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.isSlotSelected=function(e){var t=e.start,n=e.end,r=e.isAllDay,i=e.resources;return!!(t&&n&&this.selectedRange)&&(!!a.resourcesMatch(this.selectedRange.resources,i)&&(this.selectedRange&&r===this.selectedRange.isAllDay&&this.isInRange(t,n)))},e.prototype.initDragSelect=function(e){var t=e.start,n=e.end,r=e.isAllDay,i=e.resources;this.selectionOriginResources=i.slice(),this.selectedRange={start:t,end:n,isAllDay:r,resources:i.slice()},this.cdr.markForCheck()},e.prototype.onDrag=function(e){var t=e.start,n=e.end,r=e.resources;a.resourcesMatch(this.selectionOriginResources,r)&&(this.selectedRange.start=t,this.selectedRange.end=n,this.cdr.markForCheck())},e.prototype.onRelease=function(){this.selectionOriginResources=null,this.selectedRange&&this.slotSelectionChangeSource.emit(this.selectedRange)},e.prototype.isInRange=function(e,t){if(this.selectedRange)return a.intersects(e,t,this.selectedRange.start,this.selectedRange.end)},r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"slotSelection",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"slotSelectionChange",void 0),e=r.__decorate([i.Directive({selector:"[kendoSchedulerSlotSelectable]"}),r.__metadata("design:paramtypes",[s.SchedulerComponent,i.ChangeDetectorRef])],e)}();t.SlotSelectableDirective=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(7),o=n(4),a=n(8),s=n(73),c=n(72),l=n(77),d=n(3),u=["yyyyMMddTHHmmssSSSXXX","yyyyMMddTHHmmssXXX","yyyyMMddTHHmmss","yyyyMMddTHHmm","yyyyMMddTHH","yyyyMMdd"],p=function(){function e(e){this.data=[],this.source=new a.BehaviorSubject([]),this.createdItems=[],this.updatedItems=[],this.deletedItems=[],this.events=this.source.asObservable(),this.fields=r.__assign({},l.defaultModelFields,e),this.getId=c.getter(this.fields.id),this.getRecurrenceId=c.getter(this.fields.recurrenceId),this.getRecurrenceRule=c.getter(this.fields.recurrenceRule),this.getRecurrenceExceptions=c.getter(this.fields.recurrenceExceptions),this.getStart=c.getter(this.fields.start),this.setId=s.setter(this.fields.id),this.setRecurrenceRule=s.setter(this.fields.recurrenceRule),this.setRecurrenceExceptions=s.setter(this.fields.recurrenceExceptions),this.setRecurrenceId=s.setter(this.fields.recurrenceId)}return e.prototype.create=function(e){this.logCreate(e),this.saveChanges()},e.prototype.createException=function(e,t){var n=this.buildException(t);this.logRemoveOccurrence(e),this.logCreate(n),this.saveChanges()},e.prototype.update=function(e,t){this.assignValues(e,t),this.logUpdate(e),this.saveChanges()},e.prototype.remove=function(e){this.logRemove(e),this.saveChanges()},e.prototype.removeSeries=function(e){var t=this.getId(e),n=this.getRecurrenceId(e),r=this.isRecurrenceHead(e);this.removeItemAndExceptions(r?t:n),this.saveChanges()},e.prototype.removeOccurrence=function(e){this.logRemoveOccurrence(e),this.saveChanges()},e.prototype.findRecurrenceMaster=function(e){var t=this.getId(e),n=this.getRecurrenceId(e),r=this.isRecurrenceHead(e)?t:n,i=this.itemIndex(r,this.data);return this.data[i]},e.prototype.isRecurring=function(e){return d.isRecurring(e,this.fields)},e.prototype.isException=function(e){return d.isException(e,this.fields)},e.prototype.isNew=function(e){var t=this.getId(e);return!d.isPresent(t)},e.prototype.nextId=function(){},e.prototype.assignValues=function(e,t){d.cloneTo(t,e)},e.prototype.cloneEvent=function(e){var t={};return this.assignValues(t,e),t},e.prototype.parseExceptions=function(e){return d.isPresent(e)&&""!==e?e.split(";").map((function(e){return i.parseDate(e,u)||void 0})):[]},e.prototype.serializeExceptions=function(e){return e&&0!==e.length?e.map((function(e){return i.formatDate(o.toLocalDate(e),"yyyyMMddTHHmmss")+"Z"})).join(";"):""},e.prototype.reset=function(){this.data=[],this.deletedItems=[],this.updatedItems=[],this.createdItems=[]},e.prototype.itemIndex=function(e,t){for(var n=0;n<t.length;n++)if(this.getId(t[n])===e)return n;return-1},e.prototype.buildException=function(e){var t=this.fields,n=this.findRecurrenceMaster(e),r=this.cloneEvent(e);return d.assignField(r,n,t.id),this.setId(r,this.nextId()),this.setRecurrenceRule(r,void 0),this.setRecurrenceId(r,this.getId(n)),r},e.prototype.isRecurrenceHead=function(e){var t=this.getId(e),n=this.getRecurrenceRule(e);return!(!t||!n)},e.prototype.logCreate=function(e){this.data=this.data.concat([e]),this.source.next(this.data),this.createdItems.push(e)},e.prototype.logUpdate=function(e){var t=this.getId(e);if(this.isNew(e)){n=this.createdItems.indexOf(e);this.createdItems.splice(n,1,e)}else{var n;-1!==(n=this.itemIndex(t,this.updatedItems))?this.updatedItems.splice(n,1,e):this.updatedItems.push(e)}},e.prototype.logRemove=function(e){var t=this.getId(e),n=this.itemIndex(t,this.data);this.data=this.data.filter((function(e,t){return t!==n})),this.source.next(this.data),(n=this.itemIndex(t,this.createdItems))>=0?this.createdItems.splice(n,1):this.deletedItems.push(e),(n=this.itemIndex(t,this.updatedItems))>=0&&this.updatedItems.splice(n,1)},e.prototype.logRemoveOccurrence=function(e){var t=this.findRecurrenceMaster(e),n=this.getStart(e),r=this.getRecurrenceExceptions(t)||[];this.setRecurrenceExceptions(t,r.concat([n])),this.logUpdate(t)},e.prototype.removeItemAndExceptions=function(e){var t=this;this.deletedItems=this.deletedItems.concat(this.data.filter((function(n){return t.getRecurrenceId(n)===e||t.getId(n)===e})))},e.prototype.hasChanges=function(){return this.deletedItems.length+this.updatedItems.length+this.createdItems.length>0},e.prototype.saveChanges=function(){this.hasChanges()&&(this.save(this.createdItems,this.updatedItems,this.deletedItems),this.reset())},e}();t.BaseEditService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(102),a=n(103),s=[o.PDFComponent,a.PDFCommandDirective],c=function(){function e(){}return e=r.__decorate([i.NgModule({declarations:[s],exports:[s]})],e)}();t.PDFModule=c},function(e,t){e.exports=b},function(e,t){e.exports=S}])}));
|