@progress/kendo-angular-scheduler 2.1.6 → 2.2.0-dev.202111081454
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 +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/views/month/month-view-renderer.component.js +4 -1
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/views/month/month-view-renderer.component.d.ts +1 -0
- package/dist/es2015/views/month/month-view-renderer.component.js +6 -2
- package/dist/fesm2015/index.js +7 -3
- package/dist/fesm5/index.js +5 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/views/month/month-view-renderer.component.js +4 -1
- package/dist/systemjs/kendo-angular-scheduler.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
System.register("@progress/kendo-angular-scheduler",["tslib","@angular/common","@progress/kendo-angular-common","@angular/core","@progress/kendo-angular-intl","@progress/kendo-angular-dialog","@angular/forms","@progress/kendo-angular-dateinputs","@progress/kendo-angular-buttons","@progress/kendo-angular-inputs","@progress/kendo-angular-dropdowns","rxjs","@progress/kendo-angular-l10n","@progress/kendo-date-math","@progress/kendo-file-saver","@progress/kendo-drawing","@progress/kendo-licensing","@progress/kendo-recurrence","@progress/kendo-angular-popup","rxjs/operators","@progress/kendo-data-query","@telerik/kendo-draggable"],function(o){var a,s,c,l,d,u,p,h,m,g,y,f,v,_,b,k,D,T,S,E,w,C;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){a=t(e)},function(e){s=t(e)},function(e){c=t(e)},function(e){l=t(e)},function(e){d=t(e)},function(e){u=t(e)},function(e){p=t(e)},function(e){h=t(e)},function(e){m=t(e)},function(e){g=t(e)},function(e){y=t(e)},function(e){f=t(e)},function(e){v=t(e)},function(e){_=t(e)},function(e){b=t(e)},function(e){k=t(e)},function(e){D=t(e)},function(e){T=t(e)},function(e){S=t(e)},function(e){E=t(e)},function(e){w=t(e)},function(e){C=t(e)}],execute:function(){function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var n,i;n=[function(e,t){e.exports=a},function(e,t){e.exports=l},function(e,t){e.exports=v},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t(9),i=t(17),o=t(88),a=t(87),s=t(86);function c(e,t,n){r.setField(e,n,r.getField(t,n))}function l(e,t){for(var n in e){var r;e.hasOwnProperty(n)&&(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 n.fromEvent(e,"click")}r.capitalize=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},r.isPresent=function(e){return null!=e},r.isBlank=function(e){return null==e},r.isArray=function(e){return Array.isArray(e)},r.isTruthy=function(e){return!!e},r.isNullOrEmptyString=function(e){return r.isBlank(e)||e.trim&&0===e.trim().length},r.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},r.isString=function(e){return"string"==typeof e},r.isObject=function(e){return"object"==typeof e},r.isRecurring=function(e,t){var n=o.getter(t.recurrenceId)(e);return!(!o.getter(t.recurrenceRule)(e)&&!n)},r.isException=function(e,t){var n=o.getter(t.id)(e),e=o.getter(t.recurrenceId)(e);return r.isPresent(n)&&n!==s.OCCURRENCE_ID&&r.isPresent(e)},r.copyResources=function(e,t){if(t)for(var n=0;n<t.length;n++)c(e,e.dataItem,t[n].field)},r.readEvent=function(e,t,n){e={id:o.getter(t.id)(e),start:o.getter(t.start)(e),startTimezone:o.getter(t.startTimezone)(e),end:o.getter(t.end)(e),endTimezone:o.getter(t.endTimezone)(e),isAllDay:o.getter(t.isAllDay)(e),title:o.getter(t.title)(e),description:o.getter(t.description)(e),recurrenceRule:o.getter(t.recurrenceRule)(e),recurrenceExceptions:o.getter(t.recurrenceExceptions)(e),recurrenceId:o.getter(t.recurrenceId)(e),dataItem:e};return r.copyResources(e,n),e},r.isRecurrenceMaster=function(e){return e.recurrenceRule&&!r.isPresent(e.recurrenceId)},r.groupResources=function(e,n){var r=[];if(e&&e.resources&&e.resources.length)for(var i=e.resources,t=0;t<i.length;t++)!function(t){var e=n.find(function(e){return e.name===i[t]});r.push(e)}(t);return r},r.getField=function(e,t){return o.getter(t)(e)},r.setField=function(e,t,n){return a.setter(t)(e,n)},r.assignField=c,r.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])},r.assignValues=function(e,t){return l(t,e),e},r.cloneTo=l,r.clone=function(e){var t={};return l(e,t),t},r.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}}(),r.fromClick=d,r.fromDoubleClick=function(e){var t=d(e),e=t.pipe(i.auditTime(250));return t.pipe(i.buffer(e),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]}))},r.sortTasksByTime=function(e){return e.sort(function(e,t){return e.startTime-t.startTime||t.endTime-e.endTime}),e}},function(e,t){e.exports=_},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=t(4),s=t(6),_=t(3),n=t(14);function b(e,t){for(var n=t.data,r=0;r<n.length;r++)if(_.getField(n[r],t.valueField)===e)return r;return-1}function i(e,t){e=b(e,t);return 0<=e?t.data[e]:{}}function k(e,t){var n,e=_.getField(e,t.field);return Array.isArray(e)?(n=t,e.map(function(e){return i(e,n)})):i(e,t)}function o(e,t){for(var n=t.taskResources,r=t.hasGroups,i=t.spans,t=t.allResources,o=void 0===t?[]:t,a=[],s=0;s<n.length;s++){var c=n[s];if(c.data){var l=o.indexOf(c),d=_.getField(e,c.field);Array.isArray(d)||(d=[d]);for(var u=[],p=0;p<d.length;p++){var h=b(d[p],c);if(h<0)return[{leafIdx:r?-1:0,resources:[]}];var m=c.data[h];if(0!==s||!r&&0!==p){if(r){var g=a;1<d.length&&(g=function(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}(a),u.push.apply(u,g));for(var y=0;y<g.length;y++)g[y].leafIdx+=h*i[s],g[y].resources[l]=m}else if(0<p)for(var f=0;f<a.length;f++)a[f].resources[l].push(m)}else{var v=[];v[l]=c.multiple&&!r?[m]:m,a.push({leafIdx:r?h*i[s]:0,color:_.getField(m,c.colorField),resources:v})}}u.length&&(a=u)}else a=[{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]=k(e,a))}}(e,a,o),a}r.intersects=function(e,t,n,r){return e<n&&r<t||n<=e&&e<r||n<t&&t<=r&&e<t},r.dateInRange=function(e,t,n){return t.getTime()<=e.getTime()&&e.getTime()<=n.getTime()},r.roundAllDayEnd=function(e){var t=e.start,n=e.end,e=t.stripTime(),t=n.stripTime();return t.getTime()!==n.getTime()||e.getTime()===t.getTime()?t.addDays(1):t},r.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},r.addUTCDays=function(e,t){e=new Date(e.getTime());return e.setUTCDate(e.getUTCDate()+t),e},r.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)},r.toUTCTime=function(e,t){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},r.toUTCDate=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))},r.getUTCDate=function(e){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))},r.toUTCDateTime=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},r.dateWithTime=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes())},r.resourceItemByValue=k,r.eventResources=o,r.assignTasksResources=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];r.resources=o(r.event,t)}},r.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},r.isRecurrence=function(e){return Boolean(e.event&&e.event.recurrenceRule)},r.isRecurrenceException=function(e){return e.event&&_.isPresent(e.event.recurrenceId)&&!e.event.recurrenceRule},r.rectContains=function(e,t,n){return e.left<=t&&t<=e.left+e.width&&e.top<=n&&n<=e.top+e.height},r.rectContainsX=function(e,t){return e.left<=t&&t<=e.left+e.width},r.toPx=function(e){return e+"px"},r.elementOffset=function(e){if(!e)return null;var t=e.getBoundingClientRect(),e=document.documentElement;return{top:t.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:t.width,height:t.height}},r.pointDistance=function(e,t,n,r){return Math.sqrt(Math.pow(e-n,2)+Math.pow(t-r,2))},r.ignoreContentChild=function(e){return"KENDO-RESIZE-SENSOR"===e.nodeName||n.hasClasses(e,"k-loading-mask")},r.setCoordinates=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=r.toPx(t[n]))},r.convertNgClassBindings=function(e){var t=[];if(_.isString(e))t.push(e);else if(_.isArray(e))t.push.apply(t,e);else if(_.isObject(e))for(var n in e)e.hasOwnProperty(n)&&e[n]&&t.push(n);return t},r.formatEventTime=function(e,t,n,r){var i={skeleton:"yMMMMEEEEdhm"},o=a.isEqualDate(e,t)?"t":i;return n?""+s.formatDate(e,{skeleton:"yMMMMEEEEd"},r):s.formatDate(e,i,r)+"–"+s.formatDate(t,o,r)},r.formValueOrDefault=function(e,t,n){t=e.get(t);return t&&t.value||n},r.isWorkWeekDay=function(e,t,n){return n<t?e<=n||t<=e:t<=e&&e<=n}},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(9),r=(a.prototype.notifyNextDate=function(e){this.nextDateSource.next(e)},a.prototype.notifyDateRange=function(e){this.dateRangeSource.next(e)},a.prototype.notifyLayoutEnd=function(){this.layoutEndSource.next()},a.prototype.navigateTo=function(e){this.navigateSource.next(e)},a.prototype.notifyOptionsChange=function(){this.optionsChangeSource.next(null)},a.prototype.emitEvent=function(e,t){this.viewEventSource.next({name:e,args:t})},r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[])],a));function a(){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.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()}t.ViewStateService=r},function(e,t){e.exports=c},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=n(9),r=(a.prototype.notifyAction=function(e){this.actionSource.next(e)},a.prototype.notifyItems=function(e){this.itemsSource.next(e)},a.prototype.notifySelectedDate=function(e){this.selectedDateSource.next(e)},a.prototype.notifyResize=function(){this.resizeSource.next()},a.prototype.notifyOptionsChange=function(e){this.optionsChangeSource.next(e)},a.prototype.executeMethod=function(e,t){var n;return this.executeSource.next({name:e,args:t,result:function(e){n=e}}),n},r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[])],a));function a(){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()}t.ViewContextService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(0).__exportStar(n(165),t);var r=n(164);t.EditMode=r.EditMode;n=n(163);t.CrudOperation=n.CrudOperation},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(i.prototype.preventDefault=function(){this.prevented=!0},i.prototype.isDefaultPrevented=function(){return this.prevented},i);function i(){this.prevented=!1}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),a=n(2),s=n(6),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}];m.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})},m.prototype.getUniqueId=function(){return u++},Object.defineProperty(m.prototype,"frequencies",{get:function(){var t=this;return h.map(function(e){return{value:e,text:t.localization.get("frequencies"+c.capitalize(e))}})},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"frequency",{get:function(){return l.isPresent(this.rrule)&&!c.isNullOrEmptyString(this.rrule.freq)?this.rrule.freq:"never"},enumerable:!0,configurable:!0}),m.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(m.prototype,"interval",{set:function(e){this.rrule.interval=e,this.onChange()},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"count",{set:function(e){this.rrule.count=e,this.onChange()},enumerable:!0,configurable:!0}),Object.defineProperty(m.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}),m.prototype.setWeekDays=function(e){this.rrule.byWeekDay=e,this.onChange()},Object.defineProperty(m.prototype,"monthDays",{set:function(e){this.rrule.byMonthDay=e,this.onChange()},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"positions",{set:function(e){this.rrule.bySetPosition=e,this.onChange()},enumerable:!0,configurable:!0}),m.prototype.setMonths=function(e){this.rrule.byMonth=e,this.onChange()},Object.defineProperty(m.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(m.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(m.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}}),e=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(e)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"offsetPositions",{get:function(){var n=this,r=[1,2,3,4,-1];return p.map(function(e,t){return{text:n.localization.get("offsetPositions"+c.capitalize(e)),value:r[t]}})},enumerable:!0,configurable:!0}),Object.defineProperty(m.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(m.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}),m.prototype.onChange=function(){"never"===this.frequency?this.change.emit(null):this.change.emit(o.serializeRule(this.rrule,this.timezone))},a=r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[s.IntlService,a.LocalizationService])],m);function m(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}t.RecurrenceService=a},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});function r(e){return String(e).trim().split(" ")}var n=t(8);i.hasClasses=function(e,t){var n=r(t);return Boolean(r(e.className).find(function(e){return 0<=n.indexOf(e)}))},i.matchesClasses=function(t){return function(e){return i.hasClasses(e,t)}},i.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},i.firstElementChild=function(e){for(var t=e.children,n=t.length,r=0;r<n;r++)if(1===t[r].nodeType)return t[r]},i.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},i.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},i.preventLockedScroll=function(r){return function(e){var t=i.wheelDeltaY(e),n=r.scrollTop;0===n&&0<t||r.scrollHeight<=r.offsetHeight+n&&t<0||e.preventDefault()}};var o=0;i.scrollbarWidth=function(){var e;return!o&&n.isDocumentAvailable()&&((e=document.createElement("div")).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)),o},i.hasScrollbar=function(e,t){t="vertical"===t?"Height":"Width";return e["scroll"+t]>e["client"+t]},i.rtlScrollPosition=function(e,t){var n=e.scrollLeft,r=t;return e.scrollLeft=-1,e.scrollLeft<0?r=-t:0<n&&(r=e.scrollWidth-e.offsetWidth-t),r},i.isVisible=function(e){var t=e.getBoundingClientRect(),n=0<t.width&&0<t.height,t=0!==t.x&&0!==t.y;return(n||t)&&"hidden"!==window.getComputedStyle(e).visibility}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),r=(a.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.")},r.__decorate([i.Injectable()],a));function a(){this.createElement=new i.EventEmitter,this.exportClick=new i.EventEmitter,this.done=new i.EventEmitter,this.elementReady=new i.EventEmitter}t.PDFService=r},function(e,t){e.exports=p},function(e,t){e.exports=E},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;n=n(4);t.MS_PER_DAY=n.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(54);t.AgendaDateTemplateDirective=r.AgendaDateTemplateDirective;r=n(53);t.AgendaTimeTemplateDirective=r.AgendaTimeTemplateDirective;r=n(52);t.AllDayEventTemplateDirective=r.AllDayEventTemplateDirective;r=n(51);t.AllDaySlotTemplateDirective=r.AllDaySlotTemplateDirective;r=n(50);t.DateHeaderTemplateDirective=r.DateHeaderTemplateDirective;r=n(49);t.EventTemplateDirective=r.EventTemplateDirective;r=n(48);t.GroupHeaderTemplateDirective=r.GroupHeaderTemplateDirective;r=n(47);t.MajorTimeHeaderTemplateDirective=r.MajorTimeHeaderTemplateDirective;r=n(46);t.MinorTimeHeaderTemplateDirective=r.MinorTimeHeaderTemplateDirective;r=n(45);t.MonthDaySlotTemplateDirective=r.MonthDaySlotTemplateDirective;n=n(44);t.TimeSlotTemplateDirective=n.TimeSlotTemplateDirective},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(29);t.FocusService=r.FocusService;n=n(162);t.FocusableDirective=n.FocusableDirective},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(20),i=(a.exports=function(){return[o.FocusableDirective]},r.__decorate([i.NgModule({declarations:[o.FocusableDirective],exports:[o.FocusableDirective]})],a));function a(){}t.SharedModule=i},function(e,t){e.exports=m},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(9),r=(a.prototype.navigate=function(e){this.actionSource.next(e)},r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[])],a));function a(){this.actionSource=new o.Subject,this.action=this.actionSource.asObservable()}t.ToolbarService=r},function(e,t){e.exports=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),h=n(1),i=n(2),o=n(8),a=n(8),s=n(4),m=n(175),g=n(174),c=n(30),l=n(55),d=n(24),u=n(11),p=n(54),y=n(53),f=n(52),v=n(51),_=n(50),b=n(49),k=n(48),D=n(47),T=n(46),S=n(45),E=n(44),w=n(10),C=n(7),I=n(89),x=n(43),R=n(16),O=n(42),M=n(41),P=n(84),F=n(83),H=n(3),j=n(6),z=n(15),W=n(82),A=n(81),V=n(20),B=n(40),N=n(14),V=(Object.defineProperty(L.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"selectedViewIndex",{get:function(){return this.viewIndex},set:function(e){this.viewIndex=e,this.onViewIndexChange()},enumerable:!0,configurable:!0}),Object.defineProperty(L.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(L.prototype,"timezone",{get:function(){return this._timezone},set:function(e){this._timezone=e,this.events=this.events||[]},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"events",{get:function(){return this._events},set:function(e){this._events=e,this.processEvents(e)},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"selectedDate",{get:function(){return this._selectedDate},set:function(e){e&&(this._selectedDate=e,this.viewContext.notifySelectedDate(e))},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"modelFields",{get:function(){return this._modelFields},set:function(e){this._modelFields=r.__assign({},F.defaultModelFields,e)},enumerable:!0,configurable:!0}),L.prototype.ngOnInit=function(){this.selectedDate||(this.selectedDate=s.getDate(new Date))},L.prototype.ngAfterContentInit=function(){var o=this;if(h.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 o.resetViewIndex()}),this.subs.add(this.intlService.changes.subscribe(this.intlChange.bind(this))),this.subs.add(this.viewState.nextDate.subscribe(function(e){o.selectedDate=e})),this.subs.add(this.viewState.dateRange.subscribe(function(e){0!==e.start.getTime()&&(e=new c.DateChangeEvent(o,o.selectedDate,e),o.dateChange.emit(e))})),this.subs.add(this.viewState.navigate.subscribe(function(e){var t=e.viewName,n=e.date,r=o.views.toArray(),i=r.find(function(e){return e.name===t}),e=new c.NavigateEvent(o,{type:"show-date",view:i||{name:t,title:t},date:n});o.navigate.next(e),i&&!e.isDefaultPrevented()&&(r=r.indexOf(i),o.selectedView=i,o.setViewIndex(r),o.selectedDate=n)})),this.subs.add(this.viewState.viewEvent.subscribe(function(e){var t=e.name,n=e.args,r=o[t],i=o[t+"Confirmed"];(a.hasObservers(r)||i&&a.hasObservers(i))&&o.zone.run(function(){var e=new c.VIEW_EVENT_MAP[t](o,n);r.emit(e),n.prevented=e.prevented,i&&!n.prevented&&i.emit(e)})})),this.subs.add(this.viewState.layoutEnd.subscribe(function(){o.resizeSensor&&o.resizeSensor.acceptSize()})),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(){o.changeDetector.markForCheck()})),this.attachEditHandlers(),this.dialogsService.container=this.confirmationDialogContainerRef,this.notifyOptionsChange(),this.subs.add(this.pdfService.exportClick.subscribe(function(){var e=new W.PDFExportEvent;o.pdfExport.emit(e),e.isDefaultPrevented()||o.saveAsPDF()})),this.subs.add(this.pdfService.done.subscribe(function(){o.loadingComponent.toggle(!1)})),this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;o.rtl=e,o.direction=o.rtl?"rtl":"ltr"})),this.subs.add(this.viewState.optionsChange.subscribe(function(){o.changeDetector.markForCheck()})),this.attachElementEventHandlers()},L.prototype.ngOnChanges=function(e){var t=this;a.isChanged("resources",e)&&!a.isChanged("events",e)&&this.viewItems&&this.viewItems.forEach(function(e){H.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"],e)&&this.notifyOptionsChange(e)},L.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe(),this.detachElementEventHandlers&&this.detachElementEventHandlers()},L.prototype.onResize=function(e){this.viewContext.notifyResize()},L.prototype.onNavigationAction=function(e){var t,n=new c.NavigateEvent(this,e);if(this.navigate.next(n),n.isDefaultPrevented())return!0;"view-change"===e.type?(t=this.views.toArray().indexOf(e.view),this.selectedView=e.view,this.setViewIndex(t)):"select-date"===e.type?this.isInRange(e.date)&&(this.selectedDate=e.date):"today"===e.type?(t=new Date,this.isInRange(t)&&(this.selectedDate=t)):this.viewContext.notifyAction(e)},L.prototype.addEvent=function(e){var t,n;e instanceof R.FormGroup||(t=Object.keys(e).reduce((n=e,function(e,t){return e[t]=new R.FormControl(n[t]),e}),{}),e=new R.FormGroup(t)),this.editService.addEvent(e)},L.prototype.editEvent=function(e,t){var n=(t=void 0===t?{}:t).group,t=t.mode;this.editService.editEvent(e,n,t)},L.prototype.closeEvent=function(){this.editService.close()},L.prototype.isEditing=function(){return this.editService.isEditing()},L.prototype.openRecurringConfirmationDialog=function(e){return this.dialogsService.openRecurringConfirmationDialog(e)},L.prototype.openRemoveConfirmationDialog=function(){return this.dialogsService.openRemoveConfirmationDialog()},L.prototype.saveAsPDF=function(){var e=this;this.loadingComponent.toggle(!0),this.zone.runOutsideAngular(function(){setTimeout(function(){e.pdfService.save()},0)})},L.prototype.scrollToTime=function(e){this.viewContext.notifyAction({type:"scroll-time",time:e})},L.prototype.slotByPosition=function(e,t){return this.viewContext.executeMethod("slotByPosition",{x:e,y:t})},L.prototype.eventFromElement=function(e){return this.viewContext.executeMethod("eventFromElement",{element:e})},Object.defineProperty(L.prototype,"activeEvent",{get:function(){var e=this.focusService.activeElement;if(e)return this.eventFromElement(e.nativeElement)},enumerable:!0,configurable:!0}),L.prototype.focusNext=function(e){return this.focusService.focusNext(e)},L.prototype.focusPrev=function(e){e=r.__assign({offset:-1},e);return this.focusService.focusNext(e)},L.prototype.focus=function(){return this.focusService.focus()},L.prototype.isInRange=function(e){return(!this.min||this.min<=e)&&(!this.max||e<=this.max)},L.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,timezone:this.timezone,currentTimeMarker:this.currentTimeMarker,slotClass:this.slotClass,slotFill:this.slotFill,columnWidth:this.columnWidth,eventClass:this.eventClass,eventStyles:this.eventStyles,changes:e})},Object.defineProperty(L.prototype,"workWeek",{get:function(){var e=this.intlService.weekendRange(),t=e.start,e=e.end,e=H.isPresent(this.workWeekStart)?this.workWeekStart:(e+1)%7,t=0<t?t-1:s.Day.Saturday;return{start:e,end:H.isPresent(this.workWeekEnd)?this.workWeekEnd:t}},enumerable:!0,configurable:!0}),L.prototype.resetViewIndex=function(){var e=this.selectedViewIndex,e=Math.max(0,Math.min(e,this.views.length-1));this.setViewIndex(e),this.onViewIndexChange()},L.prototype.onViewIndexChange=function(){var e;!this.views||(e=this.views.toArray()[this.viewIndex])&&(this.selectedView=e)},L.prototype.setViewIndex=function(e){var t=this.selectedViewIndex!==e;return t&&(this.selectedViewIndex=e,this.selectedViewIndexChange.emit(e)),t},L.prototype.processEvents=function(e){var t=this,n=this.timezone,r=this.modelFields,e=e.map(function(e){return H.readEvent(e,r,t.resources)}).filter(function(e){return!H.isRecurrenceMaster(e)}).map(function(e){return{start:s.ZonedDate.fromLocalDate(e.start,n),end:s.ZonedDate.fromLocalDate(e.end,n),event:e}});this.viewItems=e,this.viewContext.notifyItems(e)},L.prototype.attachEditHandlers=function(){this.editService&&this.subs.add(this.editService.changes.subscribe(this.emitCRUDEvent.bind(this)))},L.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)}},L.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,h.NgZone.isInAngularZone()?this.changeDetector.markForCheck():this.changeDetector.detectChanges()},L.prototype.attachElementEventHandlers=function(){var a,s=this;o.isDocumentAvailable()&&(a=this.wrapper.nativeElement,this.zone.runOutsideAngular(function(){var e=s.renderer.listen("window","blur",function(e){s.domEvents.windowBlur.emit(e)}),t=s.renderer.listen(a,"click",function(e){s.domEvents.click.emit(e)}),n=s.renderer.listen(a,"keydown",function(e){s.domEvents.keydown.emit(e)}),r=!1,i=s.renderer.listen(a,"focusin",function(e){s.domEvents.focus.emit(e),r||(s.domEvents.focusIn.emit(e),s.renderer.addClass(s.wrapper.nativeElement,"k-state-focused"),r=!0)}),o=s.renderer.listen(a,"focusout",function(e){var t=e.relatedTarget||document.activeElement;N.closest(t,function(e){return e===a})||(s.domEvents.focusOut.emit(e),s.renderer.removeClass(s.wrapper.nativeElement,"k-state-focused"),r=!1)});s.detachElementEventHandlers=function(){e(),t(),n(),i(),o()}}))},r.__decorate([h.HostBinding("class.k-widget"),h.HostBinding("class.k-scheduler"),h.HostBinding("class.k-floatwrap"),r.__metadata("design:type",Boolean)],L.prototype,"hostClasses",void 0),r.__decorate([h.HostBinding("class.k-rtl"),r.__metadata("design:type",Boolean)],L.prototype,"rtl",void 0),r.__decorate([h.HostBinding("attr.dir"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],L.prototype,"dir",null),r.__decorate([h.Input(),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[Number])],L.prototype,"selectedViewIndex",null),r.__decorate([h.Input(),r.__metadata("design:type",Object)],L.prototype,"editable",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Date)],L.prototype,"min",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Date)],L.prototype,"max",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Number)],L.prototype,"eventHeight",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Number)],L.prototype,"columnWidth",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Boolean)],L.prototype,"showWorkHours",void 0),r.__decorate([h.Input(),r.__metadata("design:type",String)],L.prototype,"startTime",void 0),r.__decorate([h.Input(),r.__metadata("design:type",String)],L.prototype,"endTime",void 0),r.__decorate([h.Input(),r.__metadata("design:type",String)],L.prototype,"workDayStart",void 0),r.__decorate([h.Input(),r.__metadata("design:type",String)],L.prototype,"workDayEnd",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Number)],L.prototype,"workWeekStart",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Number)],L.prototype,"workWeekEnd",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[Number])],L.prototype,"weekStart",null),r.__decorate([h.Input(),r.__metadata("design:type",Number)],L.prototype,"slotDuration",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Number)],L.prototype,"slotDivisions",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Number)],L.prototype,"slotFill",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Object)],L.prototype,"scrollTime",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Object)],L.prototype,"group",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Array)],L.prototype,"resources",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Boolean)],L.prototype,"loading",void 0),r.__decorate([h.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],L.prototype,"timezone",null),r.__decorate([h.Input(),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],L.prototype,"events",null),r.__decorate([h.Input(),r.__metadata("design:type",Date),r.__metadata("design:paramtypes",[Date])],L.prototype,"selectedDate",null),r.__decorate([h.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],L.prototype,"modelFields",null),r.__decorate([h.Input(),r.__metadata("design:type",Object)],L.prototype,"currentTimeMarker",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Function)],L.prototype,"slotClass",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Function)],L.prototype,"eventClass",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Function)],L.prototype,"eventStyles",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"selectedViewIndexChange",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"navigate",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"dateChange",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"slotClick",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"slotDblClick",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"create",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"eventClick",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"eventDblClick",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"eventKeydown",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"cancel",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"save",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"remove",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"resizeStart",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"resize",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"resizeEnd",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"dragStart",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"drag",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"dragEnd",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"pdfExport",void 0),r.__decorate([h.ContentChild(x.EditDialogTemplateDirective,{static:!1}),r.__metadata("design:type",x.EditDialogTemplateDirective)],L.prototype,"editDialogTemplate",void 0),r.__decorate([h.ContentChild(l.ToolbarTemplateDirective,{static:!1}),r.__metadata("design:type",l.ToolbarTemplateDirective)],L.prototype,"toolbarTemplate",void 0),r.__decorate([h.ContentChildren(u.SchedulerView),r.__metadata("design:type",h.QueryList)],L.prototype,"views",void 0),r.__decorate([h.ViewChild(o.ResizeSensorComponent,{static:!0}),r.__metadata("design:type",o.ResizeSensorComponent)],L.prototype,"resizeSensor",void 0),r.__decorate([h.ViewChild("confirmationDialogContainer",{read:h.ViewContainerRef,static:!0}),r.__metadata("design:type",h.ViewContainerRef)],L.prototype,"confirmationDialogContainerRef",void 0),r.__decorate([h.ViewChild(A.LoadingComponent,{static:!0}),r.__metadata("design:type",A.LoadingComponent)],L.prototype,"loadingComponent",void 0),r.__decorate([h.ContentChildren(f.AllDayEventTemplateDirective),r.__metadata("design:type",h.QueryList)],L.prototype,"allDayEventTemplate",void 0),r.__decorate([h.ContentChildren(b.EventTemplateDirective),r.__metadata("design:type",h.QueryList)],L.prototype,"eventTemplate",void 0),r.__decorate([h.ContentChildren(E.TimeSlotTemplateDirective),r.__metadata("design:type",h.QueryList)],L.prototype,"timeSlotTemplate",void 0),r.__decorate([h.ContentChildren(T.MinorTimeHeaderTemplateDirective),r.__metadata("design:type",h.QueryList)],L.prototype,"minorTimeHeaderTemplate",void 0),r.__decorate([h.ContentChildren(D.MajorTimeHeaderTemplateDirective),r.__metadata("design:type",h.QueryList)],L.prototype,"majorTimeHeaderTemplate",void 0),r.__decorate([h.ContentChildren(S.MonthDaySlotTemplateDirective),r.__metadata("design:type",h.QueryList)],L.prototype,"monthDaySlotTemplate",void 0),r.__decorate([h.ContentChildren(_.DateHeaderTemplateDirective),r.__metadata("design:type",h.QueryList)],L.prototype,"dateHeaderTemplate",void 0),r.__decorate([h.ContentChildren(v.AllDaySlotTemplateDirective),r.__metadata("design:type",h.QueryList)],L.prototype,"allDaySlotTemplate",void 0),r.__decorate([h.ContentChildren(k.GroupHeaderTemplateDirective),r.__metadata("design:type",h.QueryList)],L.prototype,"groupHeaderTemplate",void 0),r.__decorate([h.ContentChildren(p.AgendaDateTemplateDirective),r.__metadata("design:type",h.QueryList)],L.prototype,"agendaDateTemplate",void 0),r.__decorate([h.ContentChildren(y.AgendaTimeTemplateDirective),r.__metadata("design:type",h.QueryList)],L.prototype,"agendaTimeTemplate",void 0),r.__decorate([h.Component({changeDetection:h.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler",providers:[I.EditService,M.DialogsService,B.DomEventsService,O.LocalDataChangesService,V.FocusService,P.SchedulerLocalizationService,{provide:i.LocalizationService,useExisting:P.SchedulerLocalizationService},{provide:i.L10N_PREFIX,useValue:"kendo.scheduler"},d.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:h.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",[h.ElementRef,w.ViewContextService,C.ViewStateService,I.EditService,M.DialogsService,j.IntlService,h.ChangeDetectorRef,h.NgZone,z.PDFService,i.LocalizationService,B.DomEventsService,h.Renderer2,V.FocusService])],L));function L(e,t,n,r,i,o,a,s,c,l,d,u,p){this.wrapper=e,this.viewContext=t,this.viewState=n,this.editService=r,this.dialogsService=i,this.intlService=o,this.changeDetector=a,this.zone=s,this.pdfService=c,this.localization=l,this.domEvents=d,this.renderer=u,this.focusService=p,this.hostClasses=!0,this.rtl=!1,this.editable=!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.selectedViewIndexChange=new h.EventEmitter,this.navigate=new h.EventEmitter,this.dateChange=new h.EventEmitter,this.slotClick=new h.EventEmitter,this.slotDblClick=new h.EventEmitter,this.create=new h.EventEmitter,this.eventClick=new h.EventEmitter,this.eventDblClick=new h.EventEmitter,this.eventKeydown=new h.EventEmitter,this.cancel=new h.EventEmitter,this.save=new h.EventEmitter,this.remove=new h.EventEmitter,this.resizeStart=new h.EventEmitter,this.resize=new h.EventEmitter,this.resizeEnd=new h.EventEmitter,this.dragStart=new h.EventEmitter,this.drag=new h.EventEmitter,this.dragEnd=new h.EventEmitter,this.pdfExport=new h.EventEmitter,this.dragEndConfirmed=new h.EventEmitter,this.resizeEndConfirmed=new h.EventEmitter,this.removeConfirmed=new h.EventEmitter,this.viewIndex=0,this._timezone="",this._modelFields=F.defaultModelFields,m.validatePackage(g.packageMetadata),this.dateRangeStream=n.dateRange,this.selectedDateStream=t.selectedDate}t.SchedulerComponent=V},function(e,t){e.exports=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function p(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}function h(e,t){var n=y.isNumber(e.columnIndex)?e.columnIndex:Number.MAX_VALUE,r=y.isNumber(t.columnIndex)?t.columnIndex:Number.MAX_VALUE;return n===r?e.item.startTime.getTime()-t.item.startTime.getTime():n-r}var r=n(0),m=n(37),g=n(5),i=n(77),o=n(76),d=n(5),y=n(3);function a(e,t){if(void 0!==t.rowIndex)return t.rowIndex;for(var n=0;n<e.length;n++){var r=e[n];if(!r||!g.intersects(t.item.startTime,t.item.endTime,r.item.startTime,r.item.endTime))return n}return e.length}function s(e,t,n,r,i){var o=e[0].padding;if(!t.length)return{height:n-o};t.forEach(function(e){e.rowIndex=void 0,e.rect={height:r,width:0}});var a={};m.orderBy(t,[{field:"item.startTime",dir:"asc"},{field:"item.endTime",dir:"desc"}]).forEach(function(t){return e.filter(function(e){return g.intersects(t.item.startTime,t.item.endTime,e.start,e.end)}).forEach(function(e){e=a[e.key]=a[e.key]||{rows:[],slot:e,events:[]};t.rowIndex=i(e.rows,t),e.rows[t.rowIndex]=t,e.events.push(t)})});var s=e[0].top,c=0;return Object.keys(a).forEach(function(e){for(var t=a[e].events,n=0,r=0;r<t.length;r++){var i=t[r];i&&(i.rect.top=s+i.rowIndex*(10+i.rect.height),n=Math.max(n,i.rect.top-s+i.rect.height))}c=Math.max(n,c)}),{height:c+=n-o,slotItems:a}}function c(s,e,c){Object.keys(s).forEach(function(e){for(var e=s[e],t=e.slot,n=e.events,r=t.rect,i=0;i<n.length;i++){var o,a=n[i];a&&(y.isNumber(a.rect.left)||(a.rect.left=t.rect.left+(c?p(t,a.item.startTime,!1):0)),o=c&&a.item.endTime.getTime()<t.end.getTime()?p(t,a.item.endTime,!1):r.width,a.rect.width=t.rect.left+o-a.rect.left)}}),e.forEach(function(e){e.reflow()})}var l=(Object.defineProperty(u.prototype,"slots",{get:function(){return this.slotMap.toArray()},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"firstSlot",{get:function(){return this.slotMap.first},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"lastSlot",{get:function(){return this.slotMap.last},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"items",{get:function(){return this.itemMap.toArray()},enumerable:!0,configurable:!0}),Object.defineProperty(u.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(u.prototype,"start",{get:function(){var e=this.slotMap.first;return e?e.start:null},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"end",{get:function(){var e=this.slotMap.last;return e?e.end:null},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hasSlots",{get:function(){return 0<this.slotMap.count},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hasItems",{get:function(){return 0<this.itemMap.count},enumerable:!0,configurable:!0}),u.prototype.registerItem=function(e){this.itemMap.addItem(e.item.index,e)},u.prototype.unregisterItem=function(e,t){this.itemMap.removeItem(t.index,e)},u.prototype.registerSlot=function(e){this.slotMap.addItem(e.id.index,e)},u.prototype.unregisterSlot=function(e){this.slotMap.removeItem(e.id.index,e)},u.prototype.layout=function(e){var l,d,t,a,s,u,n=this.items;n.length&&(l=Math.max(Math.min(e.fill||.9,1),.1),e=m.orderBy(n,[{field:"item.startTime",dir:"asc"},{field:"item.endTime",dir:"desc"}]),n.forEach(function(e,t){e.rect=null,e.columnIndex=void 0}),d={},t=this.slots,e.forEach(function(n){return t.filter(function(e){return g.intersects(n.item.startTime,n.item.endTime,e.start,e.end)}).forEach(function(e){var t=d[e.key]=d[e.key]||{events:[]};t.slot=e,t.events.push(n)})}),n=Object.keys(d),a=d,s=0,u=[],n.forEach(function(e){var e=a[e],r=e.slot,c=e.events,t=c.length,i=!0;c.sort(h),s=Math.max(t,s),u.push(r);for(var n=function(o){var a=c[o];if(i=i&&a.item.endTime.getTime()<=r.end.getTime(),y.isNumber(a.columnIndex))return"continue";a.rect={top:r.rect.top+p(r,a.item.startTime)},a.columnIndex=o,a.lastColumn=!0;for(var s,e=0,t=-1;e<o;e++){var n=function(t,e){var n,r,i=c[t];return i.columnIndex>e+1?(a.columnIndex=e+1,a.lastColumn=!1,c.splice(o,1),c.splice(a.columnIndex,0,a),s=e,"break"):g.intersects(a.item.startTime,a.item.endTime,i.item.startTime,i.item.endTime)||(n=i.rect.top,r=a.rect.top,n<=r&&r<=n+25)?(e=i.columnIndex,i.lastColumn=!1,void(s=e)):(a.columnIndex=t,a.lastColumn=!c.some(function(e){return e.columnIndex&&t<e.columnIndex&&g.intersects(a.item.startTime,a.item.endTime,e.item.startTime,e.item.endTime)}),c.splice(o,1),c.splice(t,0,a),s=e,"break")}(e,t),t=s;if("break"===n)break}},o=0;o<t;o++)n(o);i&&(u.forEach(function(e){return e.columns=s}),u=[],s=0)}),u.forEach(function(e){return e.columns=s}),n.forEach(function(e){var t=d[e],n=t.slot,r=t.events,i=(r.length,n.rect),o=i.left,e=n.columns,t=i.width*l-2*(e-1)-2,a=o+2,s=t/e,c=a+t+2*(e-1);r.forEach(function(e){y.isNumber(e.rect.left)||(e.rect.left=a+e.columnIndex*(2+s),e.rect.width=e.lastColumn?c-e.rect.left:s,e.origin={left:o,right:o+i.width});var t=n.end.getTime()<=e.item.endTime.getTime()?i.height:p(n,e.item.endTime);e.rect.height=i.top+t-e.rect.top})}),e.forEach(function(e){return e.reflow()}))},u.prototype.initDaySlots=function(e,t){var n=this.slots;n.length&&(t=(e=s(n,this.items,e,t,g.findRowIndex)).height,e=e.slotItems,this.setSlotsHeight(t),this.slotItems=e)},u.prototype.setDayOffsets=function(){this.itemMap.count&&this.slotItems&&(c(this.slotItems,this.items),this.slotItems=null)},u.prototype.setSlotsHeight=function(e){this.firstSlot.height=e},u);function u(e){this.index=e,this.slotMap=new i.ItemMap,this.itemMap=new i.ItemMap}t.SlotRange=l;var f=(v.prototype.registerSlot=function(e){this.slotRange(e).registerSlot(e)},v.prototype.unregisterSlot=function(e){var t=this.slotRange(e);t.unregisterSlot(e),t.hasSlots||delete this.slotRanges(e)[e.id.rangeIndex]},v.prototype.registerItem=function(e){var t=this.itemRange(e);t?(t.registerItem(e),e.rangeIndex=t.index):(e.rangeIndex=void 0,e.toggle(!1))},v.prototype.unregisterItem=function(e,t){var n;void 0!==e.rangeIndex&&((n=e.item.isAllDay?this.dayRanges:this.timeRanges)[t.rangeIndex]&&n[t.rangeIndex].unregisterItem(e,t),e.rangeIndex=void 0)},v.prototype.forEachDateRange=function(e){for(var t=0;t<this.dayRanges.length;t++)e(this.dayRanges[t])},v.prototype.forEachTimeRange=function(e){for(var t=0;t<this.timeRanges.length;t++)e(this.timeRanges[t])},v.prototype.slotRange=function(e){var t=this.slotRanges(e),e=e.id.rangeIndex;return t[e]||(t[e]=new l(e)),t[e]},v.prototype.slotRanges=function(e){return e.isDaySlot?this.dayRanges:this.timeRanges},v.prototype.initTimeSlots=function(e,t,n){var r=this.slots;r.length&&(t=(e=s(r,this.items,e,t,a)).height,e=e.slotItems,this.setSlotsHeight(Math.max(t,n)),this.slotItems=e)},v.prototype.setTimelineOffsets=function(){var e=this.items;this.slotItems&&e.length&&(c(this.slotItems,e,!0),this.slotItems=null)},v.prototype.setSlotsHeight=function(e){this.timeRanges[0].setSlotsHeight(e)},Object.defineProperty(v.prototype,"items",{get:function(){return this.timeRanges.reduce(function(e,t){return e.concat(t.items)},[])},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"slots",{get:function(){return this.timeRanges.reduce(function(e,t){return e.concat(t.slots)},[])},enumerable:!0,configurable:!0}),Object.defineProperty(v.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}),v.prototype.cleanRanges=function(){this.dayRanges=this.dayRanges.filter(function(e){return Boolean(e)}),this.timeRanges=this.timeRanges.filter(function(e){return Boolean(e)})},v.prototype.itemRange=function(e){var t=e.item,e=t.isAllDay?this.dayRanges:this.timeRanges;return y.isNumber(t.rangeIndex)?e[t.rangeIndex]:e.find(function(e){return g.intersects(t.startTime,t.endTime,e.start,e.end)})},v);function v(e){this.index=e,this.dayRanges=[],this.timeRanges=[]}t.DayTimeResourceGroup=f;var _,r=(_=o.BaseSlotService,r.__extends(b,_),b.prototype.layoutDays=function(t){void 0===t&&(t=25),this.groups.forEach(function(e){return e.forEachDateRange(function(e){return e.slots.forEach(function(e){e.element.nativeElement.style.height=""})})});var n=this.groups[0].dayRanges[0].slots[0].height;this.groups.forEach(function(e){e.forEachDateRange(function(e){return e.initDaySlots(n,t)})}),this.groups.forEach(function(e){e.forEachDateRange(function(e){return e.setDayOffsets()})})},b.prototype.layoutTimeline=function(n,r){this.groups.forEach(function(e){return e.forEachTimeRange(function(e){return e.slots.forEach(function(e){e.element.nativeElement.style.height=""})})});var i=this.groups[0].timeRanges[0].slots[0].height;this.groups.forEach(function(e,t){e.initTimeSlots(i,n,r&&r[t]?r[t].nativeElement.children[0].children[0].offsetHeight:0)}),this.groups.forEach(function(e){return e.setTimelineOffsets()})},b.prototype.layoutTimes=function(t){this.groups.forEach(function(e){return e.forEachTimeRange(function(e){return e.layout(t)})})},b.prototype.forEachDateRange=function(n){this.groups.forEach(function(e,t){n(e.dayRanges[0],t)})},b.prototype.syncDateRanges=function(){var t=0;return this.groups.forEach(function(e){e=e.dayRanges[0].firstSlot;e&&(t=Math.max(e.rect.height-e.padding,t))}),this.groups.forEach(function(e){e.dayRanges[0].setSlotsHeight(t)}),t},b.prototype.forEachGroup=function(e){this.groups.forEach(e)},b.prototype.forEachSlot=function(t){this.groups.forEach(function(e){e.dayRanges.forEach(function(e){e.slots.forEach(function(e){return t(e)})}),e.timeRanges.forEach(function(e){e.slots.forEach(function(e){return t(e)})})})},b.prototype.createGroup=function(e){return new f(e)},b.prototype.slotByIndex=function(e,t){void 0===t&&(t=!1);var n=e.split(":").map(function(e){return parseInt(e,10)}),r=n[0],e=n[1],n=n[2];return this.groups[r][t?"dayRanges":"timeRanges"][e].slots[n]},b.prototype.slotByPosition=function(t,n,e,r){var i;if(e){if(this.groups.find(function(e){return i=e.dayRanges.find(function(e){return d.rectContainsX(e.rect,t)})}),i)return i.slots.find(function(e){return d.rectContainsX(e.rect,t)})}else if(this.groups.find(function(e){return i=(i=r?e.dayRanges.find(function(e){return d.rectContains(e.rect,t,n)}):i)||e.timeRanges.find(function(e){return d.rectContains(e.rect,t,n)})}),i)return i.slots.find(function(e){return d.rectContains(e.rect,t,n)})},b.prototype.groupSlotByPosition=function(e,t,n){var r=this.groups[e.id.resourceIndex];if(r=e.isDaySlot?r.dayRanges.find(function(e){return d.rectContains(e.rect,t,n)}):r.timeRanges.find(function(e){return d.rectContains(e.rect,t,n)}))return r.slots.find(function(e){return d.rectContains(e.rect,t,n)})},b.prototype.dragRanges=function(e,t,n){var r,i=new Date(e.start.getTime()-t.start),o=new Date(e.start.getTime()+t.end),t=this.groups[e.id.resourceIndex];return e=n?(r=[],t.timeRanges.forEach(function(e){e=e.slots.filter(function(e){return g.intersects(i,o,e.start,e.end)});e.length&&r.push(e)}),n=r[r.length-1],[r[0][0],n[n.length-1]]):t.slotRange(e).slots.filter(function(e){return g.intersects(i,o,e.start,e.end)}),{start:i,end:o,ranges:[e]}},b.prototype.resizeRanges=function(e,t,n,r){var i,o,a=this.groups[e.id.resourceIndex],s=t.isAllDay?a.dayRanges:a.timeRanges,c=[],l=t.start.toUTCDate(),a=t.end.toUTCDate();return n?(n=e.start.getTime()+r.start,i=l.getTime()===a.getTime()?this.findDateSlot(a,s,!0).end:a,o=n>=a.getTime()?t.isAllDay?new Date(Math.min(d.dateWithTime(a,l).getTime(),a.getTime())):this.findDateSlot(i,s).start:r.start&&t.isAllDay?new Date(n):new Date(e.start.getTime())):(o=l,i=e.start.getTime()<=o.getTime()?t.isAllDay?new Date(Math.max(d.dateWithTime(l,a).getTime(),l.getTime())):this.findDateSlot(o,s,!0).end:r.end&&t.isAllDay?new Date(e.start.getTime()+r.end):e.end),s.forEach(function(e){e=e.slots.filter(function(e){return g.intersects(o,i,e.start,e.end)});e.length&&c.push(e)}),{start:o,end:i,ranges:c}},b.prototype.timePosition=function(t,e,n){var r=this.groups[e].timeRanges.find(function(e){return d.dateInRange(t,e.start,e.end)});if(r){e=r.slots.find(function(e){return d.dateInRange(t,e.start,e.end)});if(e){r=(n?e.height:e.width)*((t.getTime()-e.start.getTime())/(e.end.getTime()-e.start.getTime()));return n?e.rect.top+r:e.rect.left+r}}},b.prototype.findDateSlot=function(t,e,n){var r;return e.forEach(function(e){e=n?e.slots.filter(function(e){return g.intersects(t,t,e.start,e.end)}):e.slots.filter(function(e){return d.dateInRange(t,e.start,e.end)});e.length&&(r=e[0])}),r},b);function b(){return null!==_&&_.apply(this,arguments)||this}t.DayTimeSlotService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(9),n=n(40),n=(Object.defineProperty(a.prototype,"activeElement",{get:function(){if(this.activeItem)return this.activeItem.element},enumerable:!0,configurable:!0}),a.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},a.prototype.register=function(e){this.activeItem||(this.activeItem=e).toggle(!0),this.items.add(e),this.elementMap.set(e.element.nativeElement,e),this.toggleWrapper()},a.prototype.unregister=function(e){this.items.delete(e),this.elementMap.delete(e.element.nativeElement),e===this.activeItem&&this.activateNext(),this.toggleWrapper()},a.prototype.focus=function(){(this.activeItem||this.wrapper.nativeElement).focus()},a.prototype.focusNext=function(e){var t=this.activeItem;return this.activateNext(e),this.activeItem&&this.activeItem.focus(),this.activeItem!==t},a.prototype.activate=function(t){this.items.forEach(function(e){return e.toggle(e===t)}),this.activeItem=t},a.prototype.activateNext=function(e){this.activeItem=this.findNext(e)},a.prototype.findNext=function(e){var t=r.__assign({nowrap:!1,offset:1},e),n=t.offset,e=t.nowrap,t=Array.from(this.items.values()).filter(function(e){return e.canFocus()}).sort(function(e,t){return e.focusIndex-t.focusIndex});if(0===t.length)return null;if(!this.activeItem)return e?null:t[0];n=t.indexOf(this.activeItem)+n;return e?n=Math.max(0,Math.min(t.length-1,n)):(n%=t.length)<0&&(n=t.length-1),t[n]},a.prototype.toggleWrapper=function(){this.wrapper&&this.renderer.setAttribute(this.wrapper.nativeElement,"tabindex",this.activeItem?"-1":"0")},a.prototype.onFocusIn=function(e){e=this.elementMap.get(e.target);e&&e!==this.focusedItem&&(this.focusedItem&&this.focusedItem.toggleFocus(!1),this.activate(e),e.toggleFocus(!0),this.focusedItem=e)},a.prototype.onFocusOut=function(){this.focusedItem&&(this.focusedItem.toggleFocus(!1),this.focusedItem=null)},r.__decorate([i.Injectable(),r.__param(0,i.Optional()),r.__param(1,i.Optional()),r.__metadata("design:paramtypes",[i.Renderer2,i.ElementRef,n.DomEventsService])],a));function a(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()}))}t.FocusService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(173);t.DateChangeEvent=r.DateChangeEvent;r=n(172);t.NavigateEvent=r.NavigateEvent;r=n(99);t.SlotClickEvent=r.SlotClickEvent;r=n(98);t.EventClickEvent=r.EventClickEvent;r=n(97);t.EventKeydownEvent=r.EventKeydownEvent;r=n(171);t.VIEW_EVENT_MAP=r.VIEW_EVENT_MAP;r=n(169);t.CancelEvent=r.CancelEvent;r=n(56);t.EditEventBase=r.EditEventBase;r=n(93);t.RemoveEvent=r.RemoveEvent;r=n(168);t.SaveEvent=r.SaveEvent;r=n(90);t.ResizeStartEvent=r.ResizeStartEvent;r=n(91);t.ResizeEvent=r.ResizeEvent;r=n(92);t.ResizeEndEvent=r.ResizeEndEvent;r=n(94);t.DragStartEvent=r.DragStartEvent;r=n(95);t.DragEvent=r.DragEvent;r=n(96);t.DragEndEvent=r.DragEndEvent;r=n(167);t.EditEvent=r.EditEvent;n=n(166);t.AddEvent=n.AddEvent},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(1),r=(i=n(70).DayTimeViewBase,r.__extends(a,i),Object.defineProperty(a.prototype,"viewColumnWidth",{get:function(){return this.optionValue("columnWidth")},enumerable:!0,configurable:!0}),r.__decorate([o.Input(),r.__metadata("design:type",Number)],a.prototype,"columnWidth",void 0),a);function a(e,t,n,r){return i.call(this,e,t,n,r)||this}t.TimelineBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r,i=n(0),a=n(1),s=n(2),c=n(11),l=n(71),d=n(6),u=n(10),p=n(7),h=n(4),n=n(19),p=(o=l.MultiDayViewBase,i.__extends(m,o),r=m,Object.defineProperty(m.prototype,"title",{get:function(){return this.localization.get("weekViewTitle")},enumerable:!0,configurable:!0}),m.prototype.getStartDate=function(e){return h.firstDayInWeek(h.getDate(e),this.viewWeekStart)},i.__decorate([a.Input(),i.__metadata("design:type",String)],m.prototype,"selectedDateFormat",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],m.prototype,"selectedShortDateFormat",void 0),i.__decorate([a.ContentChild(n.AllDaySlotTemplateDirective,{static:!1}),i.__metadata("design:type",n.AllDaySlotTemplateDirective)],m.prototype,"allDaySlotTemplate",void 0),i.__decorate([a.ContentChild(n.AllDayEventTemplateDirective,{static:!1}),i.__metadata("design:type",n.AllDayEventTemplateDirective)],m.prototype,"allDayEventTemplate",void 0),i.__decorate([a.ContentChild(n.MinorTimeHeaderTemplateDirective,{static:!1}),i.__metadata("design:type",n.MinorTimeHeaderTemplateDirective)],m.prototype,"minorTimeHeaderTemplate",void 0),i.__decorate([a.ContentChild(n.MajorTimeHeaderTemplateDirective,{static:!1}),i.__metadata("design:type",n.MajorTimeHeaderTemplateDirective)],m.prototype,"majorTimeHeaderTemplate",void 0),r=i.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-week-view",providers:[{provide:c.SchedulerView,useExisting:a.forwardRef(function(){return r})}],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 '}),i.__metadata("design:paramtypes",[d.IntlService,s.LocalizationService,a.ChangeDetectorRef,u.ViewContextService,p.ViewStateService])],m));function m(e,t,n,r,i){i=o.call(this,t,n,r,i)||this;return i.intl=e,i.selectedDateFormat="{0:D} - {1:D}",i.selectedShortDateFormat="{0:d} - {1:d}",i.name="week",i.getStartDate=i.getStartDate.bind(i),i}t.WeekViewComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o=n(0),a=n(1),s=n(2),c=n(11),l=n(71),d=n(10),u=n(7),n=n(19),u=(i=l.MultiDayViewBase,o.__extends(p,i),r=p,Object.defineProperty(p.prototype,"title",{get:function(){return this.localization.get("dayViewTitle")},enumerable:!0,configurable:!0}),o.__decorate([a.Input(),o.__metadata("design:type",String)],p.prototype,"selectedDateFormat",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],p.prototype,"selectedShortDateFormat",void 0),o.__decorate([a.ContentChild(n.AllDaySlotTemplateDirective,{static:!1}),o.__metadata("design:type",n.AllDaySlotTemplateDirective)],p.prototype,"allDaySlotTemplate",void 0),o.__decorate([a.ContentChild(n.AllDayEventTemplateDirective,{static:!1}),o.__metadata("design:type",n.AllDayEventTemplateDirective)],p.prototype,"allDayEventTemplate",void 0),o.__decorate([a.ContentChild(n.MinorTimeHeaderTemplateDirective,{static:!1}),o.__metadata("design:type",n.MinorTimeHeaderTemplateDirective)],p.prototype,"minorTimeHeaderTemplate",void 0),o.__decorate([a.ContentChild(n.MajorTimeHeaderTemplateDirective,{static:!1}),o.__metadata("design:type",n.MajorTimeHeaderTemplateDirective)],p.prototype,"majorTimeHeaderTemplate",void 0),r=o.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-day-view",providers:[{provide:c.SchedulerView,useExisting:a.forwardRef(function(){return r})}],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 '}),o.__metadata("design:paramtypes",[s.LocalizationService,a.ChangeDetectorRef,d.ViewContextService,u.ViewStateService])],p));function p(e,t,n,r){r=i.call(this,e,t,n,r)||this;return r.selectedDateFormat="{0:D}",r.selectedShortDateFormat="{0:d}",r.name="day",r}t.DayViewComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(23),a=n(6),s=n(72),c=n(138),l=n(137),d=n(136),u=n(35),p=n(135),n=n(21),p=[s.ViewFooterComponent,c.WorkHoursFooterDirective,l.RepeatPipe,d.ResourceIteratorPipe,u.HintContainerComponent,p.ResizeHintComponent],p=r.__decorate([i.NgModule({imports:[o.CommonModule,a.IntlModule,n.SharedModule],exports:[p,a.IntlModule,o.CommonModule,n.SharedModule],declarations:[p]})],h);function h(){}t.ViewsSharedModule=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=(i.prototype.detectChanges=function(){this.changeDetector.detectChanges()},r.__decorate([n.ContentChild(n.TemplateRef,{static:!1}),r.__metadata("design:type",n.TemplateRef)],i.prototype,"hintTemplate",void 0),r.__decorate([n.Component({selector:"kendo-hint-container",template:'\n <ng-container [ngTemplateOutlet]="hintTemplate">\n </ng-container>\n '}),r.__metadata("design:paramtypes",[n.ChangeDetectorRef])],i));function i(e){this.changeDetector=e,this.changeDetector.detach()}t.HintContainerComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(37),l=n(5),o=n(77),a=n(76),s=n(18),c=(Object.defineProperty(d.prototype,"slots",{get:function(){return this.slotMap.toArray()},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"items",{get:function(){return this.itemMap.toArray()},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"start",{get:function(){var e=this.slotMap.first;return e?e.start:null},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"end",{get:function(){var e=this.slotMap.last;return e?l.addUTCDays(e.end,1):null},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasSlots",{get:function(){return 0<this.slotMap.count},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasItems",{get:function(){return 0<this.itemMap.count},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"firstSlot",{get:function(){return this.slotMap.first},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"lastSlot",{get:function(){return this.slotMap.last},enumerable:!0,configurable:!0}),Object.defineProperty(d.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}),d.prototype.registerItem=function(e){this.itemMap.addItem(e.item.index,e)},d.prototype.unregisterItem=function(e,t){this.itemMap.removeItem(t,e)},d.prototype.registerSlot=function(e){this.slotMap.addItem(e.id.index,e)},d.prototype.unregisterSlot=function(e){this.slotMap.removeItem(e.id.index,e)},d.prototype.layout=function(o){var e,a,t;this.hasItems&&(e=this.items,e=i.orderBy(e,[{field:"item.startTime",dir:"asc"},{field:"item.endTime",dir:"desc"}]),a={},t=this.slots,e.forEach(function(i){return t.filter(function(e){return l.intersects(i.item.startTime,i.item.endTime,e.start,e.end)}).forEach(function(e){var t=a[e.key]=a[e.key]||{events:[],height:e.linkHeight},n=(t.slot=e).rect,r=i.item.data[i.resourceIndex];r.rowIndex=l.findRowIndex(t.events,r),t.height+o+2+13>n.height||r.hidden?(r.hidden=!0,e.showMore({width:n.width,left:n.left,top:n.top+e.linkHeight+r.rowIndex*(o+2)})):((t.events[r.rowIndex]=i).rect||(i.rect={top:n.top+e.linkHeight+r.rowIndex*(o+2),left:n.left,height:o,width:0}),i.rect.width+=n.width+s.BORDER_WIDTH,t.height+=o+2)})}),e.forEach(function(e){e.rect&&(e.rect.width-=s.BORDER_WIDTH),e.reflow()}))},d);function d(e){this.index=e,this.slotMap=new o.ItemMap,this.itemMap=new o.ItemMap}t.SlotRange=c;var u=(Object.defineProperty(p.prototype,"hasSlots",{get:function(){return Boolean(this.dayRanges.find(function(e){return e&&e.hasSlots}))},enumerable:!0,configurable:!0}),p.prototype.registerSlot=function(e){this.slotRange(e).registerSlot(e)},p.prototype.unregisterSlot=function(e){var t=this.dayRanges[e.id.rangeIndex];t.unregisterSlot(e),t.hasSlots||delete this.dayRanges[e.id.rangeIndex]},p.prototype.registerItem=function(e){this.dayRanges[e.rangeIndex].registerItem(e)},p.prototype.unregisterItem=function(e,t){var n=this.dayRanges[t.rangeIndex];n&&n.unregisterItem(e,t.index)},p.prototype.slotRange=function(e){var t=this.dayRanges,e=e.id.rangeIndex;return t[e]||(t[e]=new c(e)),t[e]},p.prototype.forEachRange=function(e){for(var t=0;t<this.dayRanges.length;t++)e(this.dayRanges[t])},p.prototype.cleanRanges=function(){this.dayRanges=this.dayRanges.filter(function(e){return Boolean(e)})},p);function p(e){this.index=e,this.dayRanges=[]}t.MonthResourceGroup=u;var h,r=(h=a.BaseSlotService,r.__extends(m,h),m.prototype.layout=function(t){this.groups.forEach(function(e){return e.forEachRange(function(e){return e.layout(t)})})},m.prototype.slotByIndex=function(e){var t=e.split(":").map(function(e){return parseInt(e,10)}),n=t[0],e=t[1],t=t[2];return this.groups[n].dayRanges[e].slots[t]},m.prototype.forEachSlot=function(t){this.groups.forEach(function(e){e.dayRanges.forEach(function(e){e.slots.forEach(function(e){return t(e)})})})},m.prototype.forEachItem=function(t){this.groups.forEach(function(e){e.dayRanges.forEach(function(e){e.items.forEach(function(e){return t(e)})})})},m.prototype.createGroup=function(e){return new u(e)},m.prototype.invalidate=function(){h.prototype.invalidate.call(this),this.forEachItem(function(e){var t=e.item.data;Object.keys(t).forEach(function(e){t[e].hidden=!1})})},m.prototype.slotByPosition=function(t,n){var r;if(this.groups.find(function(e){return r=e.dayRanges.find(function(e){return l.rectContains(e.rect,t,n)})}),r)return r.slots.find(function(e){return l.rectContains(e.rect,t,n)})},m.prototype.dragRanges=function(e,t){var n=new Date(e.start.getTime()-t.start),r=new Date(e.start.getTime()+t.end),i=[];return this.groups[e.id.resourceIndex].dayRanges.forEach(function(e){e=e.slots.filter(function(e){return l.intersects(n,r,e.start,e.end)});e.length&&i.push(e)}),{start:n,end:r,ranges:i}},m.prototype.groupSlotByPosition=function(e,t,n){e=this.groups[e.id.resourceIndex].dayRanges.find(function(e){return l.rectContains(e.rect,t,n)});if(e)return e.slots.find(function(e){return l.rectContains(e.rect,t,n)})},m.prototype.resizeRanges=function(e,t,n,r){var i,o,a=this.groups[t.resources[0].leafIdx],s=[],c=t.start.toUTCDate(),t=t.end.toUTCDate();return n?((i=e.start.getTime()+r.start)>t.getTime()&&(i=new Date(Math.min(l.dateWithTime(t,c).getTime(),t.getTime()))),o=t):(i=c,(o=e.start.getTime()+r.end)<i.getTime()&&(o=new Date(Math.max(l.dateWithTime(c,t).getTime(),i.getTime())))),a.dayRanges.forEach(function(e){e=e.slots.filter(function(e){return l.intersects(i,o,e.start,e.end)});e.length&&s.push(e)}),{start:new Date(i),end:new Date(o),ranges:s}},m);function m(){return null!==h&&h.apply(this,arguments)||this}t.MonthSlotService=r},function(e,t){e.exports=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e){return null}var o,i=n(0),a=n(1),s=n(11),c=n(19),l=n(3),c=(o=s.SchedulerView,i.__extends(d,o),Object.defineProperty(d.prototype,"viewSlotClass",{get:function(){return l.isPresent(this.slotClass)?this.slotClass:this.schedulerOptions.slotClass||r},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewEventClass",{get:function(){return(l.isPresent(this.eventClass)?this:this.schedulerOptions).eventClass},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewEventStyles",{get:function(){return(l.isPresent(this.eventStyles)?this:this.schedulerOptions).eventStyles},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewWeekStart",{get:function(){return this.schedulerOptions.weekStart},enumerable:!0,configurable:!0}),d.prototype.ngOnChanges=function(e){this.viewState.notifyOptionsChange()},d.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},d.prototype.optionsChange=function(e){this.schedulerOptions=e},i.__decorate([a.Input(),i.__metadata("design:type",Function)],d.prototype,"slotClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],d.prototype,"eventClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],d.prototype,"eventStyles",void 0),i.__decorate([a.ViewChild("content",{static:!0}),i.__metadata("design:type",a.TemplateRef)],d.prototype,"template",void 0),i.__decorate([a.ContentChild(c.EventTemplateDirective,{static:!1}),i.__metadata("design:type",c.EventTemplateDirective)],d.prototype,"eventTemplate",void 0),i.__decorate([a.ContentChild(c.GroupHeaderTemplateDirective,{static:!1}),i.__metadata("design:type",c.GroupHeaderTemplateDirective)],d.prototype,"groupHeaderTemplate",void 0),d);function d(e,t,n,r){var i=o.call(this)||this;return i.localization=e,i.changeDetector=t,i.viewContext=n,i.viewState=r,i.schedulerOptions={},i.subs=i.localization.changes.subscribe(function(e){e.rtl,t.markForCheck()}),i.subs.add(i.viewContext.optionsChange.subscribe(i.optionsChange.bind(i))),i}t.ConfigurationViewBase=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o=n(0),a=n(1),s=n(2),c=n(38),l=n(11),d=n(10),u=n(7),n=n(19),u=(i=c.ConfigurationViewBase,o.__extends(p,i),r=p,Object.defineProperty(p.prototype,"title",{get:function(){return this.localization.get("agendaViewTitle")},enumerable:!0,configurable:!0}),o.__decorate([a.Input(),o.__metadata("design:type",String)],p.prototype,"selectedDateFormat",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],p.prototype,"selectedShortDateFormat",void 0),o.__decorate([a.Input(),o.__metadata("design:type",Number)],p.prototype,"numberOfDays",void 0),o.__decorate([a.ContentChild(n.EventTemplateDirective,{static:!1}),o.__metadata("design:type",n.EventTemplateDirective)],p.prototype,"eventTemplate",void 0),o.__decorate([a.ContentChild(n.AgendaTimeTemplateDirective,{static:!1}),o.__metadata("design:type",n.AgendaTimeTemplateDirective)],p.prototype,"agendaTimeTemplate",void 0),o.__decorate([a.ContentChild(n.AgendaDateTemplateDirective,{static:!1}),o.__metadata("design:type",n.AgendaDateTemplateDirective)],p.prototype,"agendaDateTemplate",void 0),r=o.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-agenda-view",providers:[{provide:l.SchedulerView,useExisting:a.forwardRef(function(){return r})}],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 '}),o.__metadata("design:paramtypes",[s.LocalizationService,a.ChangeDetectorRef,d.ViewContextService,u.ViewStateService])],p));function p(e,t,n,r){r=i.call(this,e,t,n,r)||this;return r.selectedDateFormat="{0:D} - {1:D}",r.selectedShortDateFormat="{0:d} - {1:d}",r.numberOfDays=7,r.name="agenda",r}t.AgendaViewComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),r=r.__decorate([i.Injectable()],o);function o(){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}t.DomEventsService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(85),a=n(2),s=n(17),c=n(29),n=n(7),n=(l.prototype.openRemoveConfirmationDialog=function(){var t=this,e=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(),e.result.pipe(s.map(function(e){return t.isOpen=!1,e instanceof o.DialogCloseResult?(t.focusService.focus(),!1):(t.viewState.layoutEnd.pipe(s.take(1)).subscribe(function(){return t.focusService.focus()}),e.value)}))},l.prototype.openRecurringConfirmationDialog=function(e){var t=this,e=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(),e.result.pipe(s.map(function(e){if(t.isOpen=!1,t.focusService.focus(),!(e instanceof o.DialogCloseResult))return e.value}))},l.prototype.textFor=function(e){return this.localization.get(e)},r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[o.DialogService,a.LocalizationService,i.ChangeDetectorRef,c.FocusService,n.ViewStateService])],l));function l(e,t,n,r,i){this.dialogService=e,this.localization=t,this.changeDetector=n,this.focusService=r,this.viewState=i,this.isOpen=!1}t.DialogsService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),r=r.__decorate([i.Injectable()],o);function o(){this.changes=new i.EventEmitter}t.LocalDataChangesService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=(r.__decorate([n.Input(),r.__metadata("design:type",String)],i.prototype,"autoFocusedElement",void 0),r.__decorate([n.Directive({selector:"[kendoSchedulerEditDialogTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i));function i(e){this.templateRef=e}t.EditDialogTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerTimeSlotTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.TimeSlotTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerMonthDaySlotTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.MonthDaySlotTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerMinorTimeHeaderTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.MinorTimeHeaderTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerMajorTimeHeaderTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.MajorTimeHeaderTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerGroupHeaderTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.GroupHeaderTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerEventTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.EventTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerDateHeaderTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.DateHeaderTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerAllDaySlotTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.AllDaySlotTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerAllDayEventTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.AllDayEventTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerAgendaTimeTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.AgendaTimeTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerAgendaDateTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.AgendaDateTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerToolbarTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.ToolbarTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditEventBase=function(e,t){this.sender=e,Object.assign(this,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(0),i=n(1),a=n(22),s=n(2),n=n(15),i=(o=a.Button,r.__extends(c,o),c.prototype.onClick=function(e){e.preventDefault(),this.pdfService.exportClick.emit()},c.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)],c.prototype,"onClick",null),r.__decorate([i.Directive({selector:"[kendoSchedulerPDFCommand]"}),r.__metadata("design:paramtypes",[n.PDFService,i.ElementRef,i.Renderer2,s.LocalizationService,i.NgZone])],c));function c(e,t,n,r,i){i=o.call(this,t,n,null,r,i)||this;return i.pdfService=e,i}t.PDFCommandDirective=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e){return t=e,e=document.createElement("div"),t&&(e.className=t),e;var t}var r=n(0),o=n(1),a=n(15),s=n(101),c=n(100),o=(l.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},Object.defineProperty(l.prototype,"drawOptions",{get:function(){return{_destructive:!0,avoidLinks:this.avoidLinks,margin:this.margin,scale:this.scale}},enumerable:!0,configurable:!0}),Object.defineProperty(l.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(l.prototype,"saveOptions",{get:function(){return{forceProxy:this.forceProxy,proxyData:this.proxyData,proxyTarget:this.proxyTarget,proxyURL:this.proxyURL}},enumerable:!0,configurable:!0}),l.prototype.createElement=function(n){var r=this;this.ngZone.runOutsideAngular(function(){var e=r.container=i();e.style.top=e.style.left="-10000px",e.style.position="absolute";var t=i("k-widget k-scheduler k-floatwrap");t.style.position="relative",t.appendChild(n.element),e.appendChild(t),document.body.appendChild(e),r.save(t)})},l.prototype.save=function(e){this.drawElement(e,this.drawOptions).then(this.exportGroup).then(this.saveDataUri).then(this.done,this.done)},l.prototype.drawElement=function(e,t){return s.drawDOM(e,t)},l.prototype.exportGroup=function(e){return s.exportPDF(e,this.pdfOptions)},l.prototype.saveDataUri=function(e){c.saveAs(e,this.fileName,this.saveOptions)},l.prototype.done=function(){this.container&&(document.body.removeChild(this.container),this.container=null),this.pdfService.done.emit()},r.__decorate([o.Input(),r.__metadata("design:type",String)],l.prototype,"author",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],l.prototype,"avoidLinks",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],l.prototype,"creator",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Date)],l.prototype,"date",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Number)],l.prototype,"imageResolution",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],l.prototype,"fileName",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],l.prototype,"forceProxy",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],l.prototype,"keywords",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],l.prototype,"margin",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Number)],l.prototype,"scale",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],l.prototype,"proxyData",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],l.prototype,"proxyURL",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],l.prototype,"proxyTarget",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],l.prototype,"producer",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],l.prototype,"subject",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],l.prototype,"title",void 0),r.__decorate([o.Component({selector:"kendo-scheduler-pdf",template:""}),r.__metadata("design:paramtypes",[a.PDFService,o.NgZone])],l));function l(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)}t.PDFComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),o=n(1),i=(r=n(2).ComponentMessages,i.__extends(a,r),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"repeat",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"dailyInterval",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"dailyRepeatEvery",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"weeklyInterval",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"weeklyRepeatEvery",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"weeklyRepeatOn",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"monthlyDay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"monthlyInterval",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"monthlyRepeatEvery",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"monthlyRepeatOn",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"yearlyOf",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"yearlyRepeatEvery",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"yearlyRepeatOn",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"yearlyInterval",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"frequenciesDaily",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"frequenciesMonthly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"frequenciesNever",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"frequenciesWeekly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"frequenciesYearly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"offsetPositionsFirst",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"offsetPositionsSecond",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"offsetPositionsThird",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"offsetPositionsFourth",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"offsetPositionsLast",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"weekdaysDay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"weekdaysWeekday",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"weekdaysWeekendday",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"endAfter",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"endOccurrence",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"endLabel",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"endNever",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"endOn",void 0),a);function a(){return null!==r&&r.apply(this,arguments)||this}t.Messages=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),n=n(13),i=(Object.defineProperty(o.prototype,"repeatOnRule",{set:function(e){e=e.split("-");this._repeatOnRule=e[0],this._uniqueId=e[1]},enumerable:!0,configurable:!0}),o.prototype.ngOnInit=function(){this.renderer.setAttribute(this.elem,"id","k-repeaton-"+this._repeatOnRule+"-"+this._uniqueId),this.renderer.setAttribute(this.elem,"name","day-"+this._uniqueId)},o.prototype.ngAfterContentChecked=function(){this.setCheckedState()},o.prototype.ngOnDestroy=function(){this.destroyChange&&this.destroyChange()},o.prototype.onChange=function(){this.elem.checked&&(this.recurrence.repeatOnRule=this._repeatOnRule,this.changeDetector.markForCheck())},o.prototype.setCheckedState=function(){var e=this._repeatOnRule===this.recurrence.repeatOnRule;this.renderer.setProperty(this.elem,"checked",e)},Object.defineProperty(o.prototype,"elem",{get:function(){return this.el.nativeElement},enumerable:!0,configurable:!0}),r.__decorate([i.HostBinding("attr.type"),r.__metadata("design:type",String)],o.prototype,"type",void 0),r.__decorate([i.HostBinding("class.k-radio"),r.__metadata("design:type",Boolean)],o.prototype,"radioClass",void 0),r.__decorate([i.Input("kendoRecurrenceRepeatOnRadioButton"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],o.prototype,"repeatOnRule",null),r.__decorate([i.Directive({selector:"[kendoRecurrenceRepeatOnRadioButton]"}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,n.RecurrenceService,i.ChangeDetectorRef])],o));function o(e,t,n,r){this.el=e,this.renderer=t,this.recurrence=n,this.changeDetector=r,this.type="radio",this.radioClass=!0,this.destroyChange=this.renderer.listen(this.elem,"change",this.onChange.bind(this))}t.RepeatOnRadioButtonDirective=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),n=n(13),i=(o.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())},o.prototype.ngAfterContentChecked=function(){this.setCheckedState()},o.prototype.ngOnDestroy=function(){this.destroyChange&&this.destroyChange()},o.prototype.onChange=function(){this.elem.checked&&(this.recurrence.endRule=this.endRule,this.changeDetector.markForCheck())},o.prototype.setCheckedState=function(){var e=this.endRule===this.recurrence.endRule;this.renderer.setProperty(this.elem,"checked",e)},Object.defineProperty(o.prototype,"elem",{get:function(){return this.el.nativeElement},enumerable:!0,configurable:!0}),r.__decorate([i.HostBinding("attr.type"),r.__metadata("design:type",String)],o.prototype,"type",void 0),r.__decorate([i.HostBinding("class.k-radio"),r.__metadata("design:type",Boolean)],o.prototype,"radioClass",void 0),r.__decorate([i.Input("kendoRecurrenceEndRuleRadioButton"),r.__metadata("design:type",String)],o.prototype,"endRuleId",void 0),r.__decorate([i.Directive({selector:"[kendoRecurrenceEndRuleRadioButton]"}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,n.RecurrenceService,i.ChangeDetectorRef])],o));function o(e,t,n,r){this.el=e,this.renderer=t,this.recurrence=n,this.changeDetector=r,this.type="radio",this.radioClass=!0,this.destroyChange=this.renderer.listen(this.elem,"change",this.onChange.bind(this))}t.EndRuleRadioButtonDirective=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(16),a=n(8),s=n(6),c=n(2),l=n(4),d=n(13),u=n(3),n=n(113);t.RECURRENCE_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:i.forwardRef(function(){return p})};var p=(Object.defineProperty(h.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(h.prototype,"currentFreq",{get:function(){return this.recurrenceService.frequency},enumerable:!0,configurable:!0}),h.prototype.ngOnInit=function(){this.recurrenceService.init("",this.start,this.timezone,this.weekStart)},h.prototype.ngOnChanges=function(e){a.isChanged("start",e)&&(this.recurrenceService.start=this.start)},h.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},h.prototype.writeValue=function(e){this.recurrenceService.init("string"==typeof e?e:"",this.start,this.timezone,this.weekStart)},h.prototype.registerOnChange=function(e){this.onChangeCallback=e},h.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},h.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},r.__decorate([i.HostBinding("class.k-recurrence-editor"),r.__metadata("design:type",Boolean)],h.prototype,"cssClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date),r.__metadata("design:paramtypes",[Date])],h.prototype,"start",null),r.__decorate([i.Input(),r.__metadata("design:type",String)],h.prototype,"timezone",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],h.prototype,"weekStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],h.prototype,"repeatEveryOptions",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],h.prototype,"endAfterOptions",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],h.prototype,"repeatOnOptions",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],h.prototype,"endOnOptions",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],h.prototype,"valueChange",void 0),r.__decorate([i.Component({exportAs:"kendoRecurrenceEditor",providers:[n.RecurrenceLocalizationService,{provide:c.LocalizationService,useExisting:n.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])],h));function h(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)})}t.RecurrenceEditorComponent=p},function(e,t,n){"use strict";var r,i;function o(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}),(i=r=t.Modifiers||(t.Modifiers={}))[i.None=0]="None",i[i.AltKey=1]="AltKey",i[i.CtrlKey=2]="CtrlKey",i[i.ShiftKey=4]="ShiftKey",i[i.MetaKey=8]="MetaKey",t.withModifiers=o,t.noModifiers=function(e){return o(e,r.None)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(16),a=n(65),n=n(27);t.SINGLE_RESOURCE_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:i.forwardRef(function(){return c})};var s,c=(s=a.ResourceEditorBase,r.__extends(l,s),l.prototype.focus=function(){this.resourceDropDown.focus()},r.__decorate([i.ViewChild("resourceDropDown",{static:!0}),r.__metadata("design:type",n.DropDownListComponent)],l.prototype,"resourceDropDown",void 0),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 "})],l));function l(){return null!==s&&s.apply(this,arguments)||this}t.SingleResourceEditorComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(3),r=(a.prototype.writeValue=function(e){this.resourceValue=e},a.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"}},a.prototype.onResourceValueChange=function(e){this.resourceValue=e,this.emitChange(this.resourceValue)},a.prototype.registerOnChange=function(e){this.onChangeCallback=e},a.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},a.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},r.__decorate([i.Input(),r.__metadata("design:type",Object)],a.prototype,"resource",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],a.prototype,"valueChange",void 0),a);function a(){this.valueChange=new i.EventEmitter,this.getField=o.getField,this.onTouchedCallback=function(e){},this.onChangeCallback=function(e){}}t.ResourceEditorBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(16),a=n(65),n=n(27);t.MULTIPLE_RESOURCE_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:i.forwardRef(function(){return c})};var s,c=(s=a.ResourceEditorBase,r.__extends(l,s),l.prototype.getTagStyle=function(e){return{"background-color":e[this.resource.colorField]}},l.prototype.focus=function(){this.resourceMultiSelect.focus()},r.__decorate([i.ViewChild("resourceMultiSelect",{static:!0}),r.__metadata("design:type",n.MultiSelectComponent)],l.prototype,"resourceMultiSelect",void 0),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 "})],l));function l(){return null!==s&&s.apply(this,arguments)||this}t.MultipleResourceEditorComponent=c},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var c=t(3);function o(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}r.markAllAsTouched=function(e){if(e.markAsTouched(),e.hasOwnProperty("controls")){var t,n=e.controls;for(t in n)n.hasOwnProperty(t)&&r.markAllAsTouched(n[t])}},r.diff=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];if(!o(c.getField(e,i),c.getField(t,i)))return!0}return!1},r.areEqual=o;var l=["getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","getMilliseconds"];r.seriesDate=function(e,t,n,r){var i=[],o=c.getField(e,r),a=c.getField(t,r),s=c.getField(n,r);return l.forEach(function(e){i.push((a[e]()===s[e]()?o:s)[e]())}),new((r=Date).bind.apply(r,[void 0].concat(i)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(23),a=n(21),s=n(128),n=n(127),n=[s.TimeSlotDirective,s.DaySlotDirective,n.DayTimeViewItemComponent],n=r.__decorate([i.NgModule({imports:[o.CommonModule,a.SharedModule],exports:[n],declarations:[n]})],c);function c(){}t.DayTimeModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function d(e){return a.getDate(e)}function u(e,t){return a.getDate(a.addDays(e,t||1))}function p(e,t,n){return a.getDate(a.addDays(e,n*t))}var h,r=n(0),i=n(1),o=n(8),a=n(4),s=n(9),m=n(5),c=n(129),l=n(74),g=n(18),y=n(3),f=n(14),i=(h=l.BaseView,r.__extends(v,h),Object.defineProperty(v.prototype,"classNames",{get:function(){return"k-scheduler-"+this.name+"view"},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"timeSlotTemplateRef",{get:function(){return this.timeSlotTemplate||(this.schedulerTimeSlotTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"dateHeaderTemplateRef",{get:function(){return this.dateHeaderTemplate||(this.schedulerDateHeaderTemplate||{}).templateRef},enumerable:!0,configurable:!0}),v.prototype.ngOnChanges=function(e){(e.startTime||e.endTime||e.showWorkHours||e.workDayStart||e.workDayEnd||e.workWeekStart||e.workWeekEnd||e.slotDivisions||e.slotDuration)&&(this.timeSlots=this.createTimeSlots(),this.initWorkDay(),this.changes.next(null)),o.isChanged("currentTimeMarker",e)&&(this.showCurrentTime=this.enableCurrentTime()),o.isChanged("weekStart",e)&&this.onSelectDate(this.selectedDate),h.prototype.ngOnChanges.call(this,e)},v.prototype.ngOnDestroy=function(){h.prototype.ngOnDestroy.call(this),clearTimeout(this.currentTimeTimeout)},v.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]},v.prototype.timeSlotClass=function(e,t,n){if(this.slotClass)return this.slotClass({start:m.dateWithTime(t,e.start),end:m.dateWithTime(t,e.end),resources:this.resourcesByIndex(n),isAllDay:!1})},v.prototype.scrollToTime=function(e){if("string"==typeof(e=void 0===e?this.scrollTime:e)){var t=this.intl.parseDate(e);if(!t)return;t=m.toUTCTime(this.daySlots[0].start,t)}else t=m.toUTCDateTime(e);e=this.slotService.timePosition(t,0,this.verticalTime);y.isNumber(e)&&((t=this.content.nativeElement)[this.verticalTime?"scrollTop":"scrollLeft"]=this.localization.rtl&&!this.verticalTime?f.rtlScrollPosition(t,e):e)},v.prototype.optionsChange=function(e){this.schedulerTimeSlotTemplate=e.timeSlotTemplate,this.schedulerDateHeaderTemplate=e.dateHeaderTemplate,h.prototype.optionsChange.call(this,e)},v.prototype.updateView=function(){h.prototype.updateView.call(this),this.updateCurrentTime(),this.initialUpdate&&(this.scrollToTime(),this.initialUpdate=!1)},v.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=m.toInvariantTime(t),r=this.timeSlots,e=m.dateInRange(t,e.start,e.end),r=r.length&&m.dateInRange(n,r[0].start,r[r.length-1].end);return e&&r},v.prototype.currentTime=function(){return new Date},v.prototype.updateCurrentTime=function(){var e,t=this;o.isDocumentAvailable()&&((e=this.enableCurrentTime())!==this.showCurrentTime&&(this.showCurrentTime=e,this.changeDetector.detectChanges()),clearTimeout(this.currentTimeTimeout),e&&(this.zone.runOutsideAngular(function(){t.currentTimeTimeout=setTimeout(t.updateCurrentTime,t.currentTimeMarker.updateInterval||g.MS_PER_MINUTE)}),this.positionCurrentTime()))},v.prototype.positionCurrentTime=function(){var r,i,o,a,s,c,l,d=this;this.currentTimeElements&&this.currentTimeElements.length&&(r=this.currentDate.toUTCDate(),i=this.currentTimeArrows?this.currentTimeArrows.toArray():[],o=i.length?this.currentTimeArrowOffset():0,a=i.length?i[0].nativeElement.offsetHeight/2:4,s=this.contentTable.nativeElement.clientWidth,c=this.contentTable.nativeElement.clientHeight,l=this.verticalTime,this.currentTimeElements.forEach(function(e,t){var n=d.slotService.timePosition(r,t,l);void 0!==n&&(e=e.nativeElement,i[t]&&(t=i[t].nativeElement,m.setCoordinates(t,{top:l?n-a:o,left:t=l?o:n-a,right:t})),m.setCoordinates(e,{top:l?n:0,left:n=l?0:n,right:n,width:l?s:1,height:l?1:c}))}))},v.prototype.bindEvents=function(){var t=this;h.prototype.bindEvents.call(this),this.zone.runOutsideAngular(function(){t.subs.add(y.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(y.fromDoubleClick(t.headerWrap.nativeElement).subscribe(function(e){return t.onClick(e,"dblclick")}))})},v.prototype.onHeaderClick=function(e){var t,n=this;this.onClick(e),this.daySlots.length<=1||(e=e.target.getAttribute("data-dayslot-index"))&&(t=this.daySlots[parseInt(e,10)],this.zone.run(function(){n.viewState.navigateTo({viewName:"day",date:t.start})}))},v.prototype.slotByIndex=function(e,t){return this.slotService.slotByIndex(e,t.target.hasAttribute("data-day-slot"))},v.prototype.onSelectDate=function(e){this.selectedDate=e,this.daySlots=this.createDaySlots(),this.showCurrentTime=this.enableCurrentTime(),this.viewState.notifyDateRange(this.dateRange())},v.prototype.onAction=function(e){var t,n=a.getDate(this.selectedDate);"next"===e.type&&(t=this.getNextDate(n,1,this.numberOfDays),this.isInRange(t)&&this.viewState.notifyNextDate(t)),"prev"===e.type&&(t=this.getNextDate(n,-1,this.numberOfDays),this.isInRange(t)&&this.viewState.notifyNextDate(t)),"scroll-time"===e.type&&this.scrollToTime(e.time)},v.prototype.dateRange=function(e){void 0===e&&(e=this.selectedDate);var t=this.getStartDate(e),n=this.getEndDate(t,this.numberOfDays),e=this.getEndDate(t,this.numberOfDays-1);return{start:t,end:n,text:this.intl.format(this.selectedDateFormat,t,e),shortText:this.intl.format(this.selectedShortDateFormat,t,e)}},v.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},v.prototype.createTimeSlots=function(){return c.createTimeSlots(this.intl,{showWorkHours:this.showWorkHours,startTime:this.startTime,endTime:this.endTime,workDayStart:this.workDayStart,workDayEnd:this.workDayEnd,slotDivisions:this.slotDivisions,slotDuration:this.slotDuration})},v.prototype.initWorkDay=function(){var e=this.intl.parseDate(this.workDayStart);this.workDayStartTime=m.toInvariantTime(e);var t=this.intl.parseDate(this.workDayEnd);this.workDayEndTime=t<=e?a.addDays(g.MIDNIGHT_INVARIANT,1):m.toInvariantTime(t)},v.prototype.slotByPosition=function(e,t,n){n=n?f.hasClasses(n.parentNode,"k-scheduler-header-wrap"):t<0;return this.slotService.slotByPosition(e,t,n,Boolean(this.verticalResources.length))},v.prototype.slotFields=function(e){var t=h.prototype.slotFields.call(this,e);return e.isDaySlot?t.isAllDay=!0:(t.start=this.convertDate(e.start),t.end=this.convertDate(e.end)),t},r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],v.prototype,"timeSlotTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],v.prototype,"dateHeaderTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],v.prototype,"numberOfDays",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],v.prototype,"scrollTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],v.prototype,"startTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],v.prototype,"endTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],v.prototype,"workDayStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],v.prototype,"workDayEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],v.prototype,"workWeekStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],v.prototype,"workWeekEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],v.prototype,"slotDuration",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],v.prototype,"slotDivisions",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],v.prototype,"showWorkHours",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],v.prototype,"getStartDate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],v.prototype,"getEndDate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],v.prototype,"getNextDate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],v.prototype,"currentTimeMarker",void 0),r.__decorate([i.ViewChildren("currentTimeMarker"),r.__metadata("design:type",i.QueryList)],v.prototype,"currentTimeElements",void 0),r.__decorate([i.ViewChildren("currentTimeArrow"),r.__metadata("design:type",i.QueryList)],v.prototype,"currentTimeArrows",void 0),v);function v(e,t,n,r,i,o,a,s,c,l){l=h.call(this,t,n,r,i,o,a,s,c,l)||this;return l.changeDetector=e,l.numberOfDays=1,l.startTime="00:00",l.endTime="00:00",l.workDayStart="08:00",l.workDayEnd="17:00",l.workWeekStart=1,l.workWeekEnd=5,l.slotDuration=60,l.slotDivisions=2,l.showWorkHours=!1,l.getStartDate=d,l.getEndDate=u,l.getNextDate=p,l.daySlots=[],l.timeSlots=[],l.resizeHintFormat="t",l.showCurrentTime=!1,l.verticalTime=!0,l.initialUpdate=!0,l.updateCurrentTime=l.updateCurrentTime.bind(l),l}t.DayTimeViewComponent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(1),a=n(38),s=n(19),c=n(18),l=n(3),r=(n(4),i=a.ConfigurationViewBase,r.__extends(d,i),Object.defineProperty(d.prototype,"viewEventHeight",{get:function(){return this.optionValue("eventHeight")||c.DEFAULT_EVENT_HEIGHT},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"shouldShowWorkHours",{get:function(){return this.optionValue("showWorkHours")},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewStartTime",{get:function(){return this.optionValue("startTime")},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewEndTime",{get:function(){return this.optionValue("endTime")},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewWorkDayStart",{get:function(){return this.optionValue("workDayStart")},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewWorkDayEnd",{get:function(){return this.optionValue("workDayEnd")},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewWorkWeekStart",{get:function(){return this.optionValue("workWeekStart")},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewWorkWeekEnd",{get:function(){return this.optionValue("workWeekEnd")},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewSlotDuration",{get:function(){return this.optionValue("slotDuration")},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewSlotDivisions",{get:function(){return this.optionValue("slotDivisions")},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewCurrentTimeMarker",{get:function(){return this.optionValue("currentTimeMarker")},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewScrollTime",{get:function(){return this.optionValue("scrollTime")},enumerable:!0,configurable:!0}),r.__decorate([o.ContentChild(s.TimeSlotTemplateDirective,{static:!(d.prototype.optionValue=function(e){return(l.isPresent(this[e])?this:this.schedulerOptions)[e]})}),r.__metadata("design:type",s.TimeSlotTemplateDirective)],d.prototype,"timeSlotTemplate",void 0),r.__decorate([o.ContentChild(s.DateHeaderTemplateDirective,{static:!1}),r.__metadata("design:type",s.DateHeaderTemplateDirective)],d.prototype,"dateHeaderTemplate",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],d.prototype,"showWorkHours",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Number)],d.prototype,"eventHeight",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],d.prototype,"startTime",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],d.prototype,"scrollTime",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],d.prototype,"endTime",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],d.prototype,"workDayStart",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],d.prototype,"workDayEnd",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Number)],d.prototype,"workWeekStart",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Number)],d.prototype,"workWeekEnd",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Number)],d.prototype,"slotDuration",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Number)],d.prototype,"slotDivisions",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],d.prototype,"currentTimeMarker",void 0),d);function d(e,t,n,r){return i.call(this,e,t,n,r)||this}t.DayTimeViewBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(1),r=(i=n(70).DayTimeViewBase,r.__extends(a,i),Object.defineProperty(a.prototype,"viewSlotFill",{get:function(){return this.optionValue("slotFill")},enumerable:!0,configurable:!0}),r.__decorate([o.Input(),r.__metadata("design:type",Number)],a.prototype,"slotFill",void 0),a);function a(e,t,n,r){return i.call(this,e,t,n,r)||this}t.MultiDayViewBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),r=(o.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)],o.prototype,"hostClasses",void 0),r.__decorate([i.HostBinding("style.justify-content"),r.__metadata("design:type",String)],o.prototype,"inlineJustifyContentStyle",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],o.prototype,"itemClick",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],o.prototype,"items",void 0),r.__decorate([i.Component({selector:"[viewFooter]",template:'\n <button type="button" class="k-button" *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 '})],o));function o(){this.hostClasses=!0,this.inlineJustifyContentStyle="start",this.itemClick=new i.EventEmitter}t.ViewFooterComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),r=(Object.defineProperty(a.prototype,"slotIndex",{get:function(){return this.key},enumerable:!0,configurable:!0}),Object.defineProperty(a.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(a.prototype,"top",{get:function(){return this.element?this.nativeElement.offsetTop:0},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"padding",{get:function(){return this.element&&o.isDocumentAvailable()?2*parseInt(window.getComputedStyle(this.nativeElement).paddingTop,10):0},enumerable:!0,configurable:!0}),Object.defineProperty(a.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(a.prototype,"width",{get:function(){return this.element?this.nativeElement.offsetWidth:0},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"key",{get:function(){return this.id.resourceIndex+":"+this.id.rangeIndex+":"+this.id.index},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"nativeElement",{get:function(){return this.element.nativeElement},enumerable:!0,configurable:!0}),a.prototype.ngOnInit=function(){this.slotService.registerSlot(this)},a.prototype.ngOnDestroy=function(){this.slotService.unregisterSlot(this)},a.prototype.invalidate=function(){this._rect=null},r.__decorate([i.Input(),r.__metadata("design:type",Object)],a.prototype,"id",void 0),r.__decorate([i.HostBinding("attr.data-slot-index"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],a.prototype,"slotIndex",null),a);function a(e,t,n){this.element=e,this.slotService=t,this.localization=n,this._rect=null}t.BaseSlotDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),a=n(4),l=n(9),s=n(17),c=n(14),d=n(3),y=n(5),u=n(18),p=n(140),n=n(35),n=(Object.defineProperty(h.prototype,"eventTemplateRef",{get:function(){return this.еventTemplate||(this.schedulerEventTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"groupHeaderTemplateRef",{get:function(){return this.groupHeaderTemplate||(this.schedulerGroupHeaderTemplate||{}).templateRef},enumerable:!0,configurable:!0}),h.prototype.ngOnInit=function(){var n=this,e=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(){n.toggleElement(!1),n.updateView()})),this.subs.add(this.viewContext.optionsChange.subscribe(this.optionsChange.bind(this))),this.subs.add(this.changes.subscribe(function(){n.toggleElement(!1)})),this.subs.add(l.combineLatest(this.viewContext.items,this.viewState.dateRange,this.viewRangeChange).pipe(s.map(function(e){var t=e[0],e=e[1];return n.createTasks(t,e)})).subscribe(function(e){n.tasks=e,n.assignResources(),n.onTasksChange()})),this.subs.add(l.combineLatest(this.items,this.changes,this.localization.changes).pipe(s.switchMap(function(){return n.onStable()})).subscribe(e)),this.subs.add(this.pdfService.createElement.subscribe(this.createPDFElement.bind(this)))},h.prototype.ngOnChanges=function(e){o.anyChanged(["selectedDateFormat","selectedShortDateFormat"],e)&&this.viewState.notifyDateRange(this.dateRange(this.selectedDate)),e.eventHeight&&this.changes.next(null)},h.prototype.ngAfterViewInit=function(){var t=this;this.bindEvents(),this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;t.rtl=e}))},h.prototype.ngOnDestroy=function(){this.subs.unsubscribe(),this.domEvents.forEach(function(e){return e()}),this.domEvents=[],this.draggable&&(this.draggable.destroy(),this.draggable=null)},h.prototype.itemIndex=function(e,t){return e},h.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]},h.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]);0<=a&&(n[a]=r[o])}for(o=0;o<t.length;o++)n[o]||(n[o]=y.resourceItemByValue(this.dragging.task.event,t[o]));return n},h.prototype.getEventClasses=function(e,t,n){if(this.eventClass)return this.eventClass({event:e.event,resources:t,isAllDay:n})},h.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},h.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,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))},h.prototype.toggleElement=function(e){this.element&&this.renderer.setStyle(this.element.nativeElement,"display",e?"block":"none")},h.prototype.onStable=function(){return this.zone.onStable.asObservable().pipe(s.take(1))},h.prototype.updateView=function(){this.slotService.invalidate(),this.toggleElement(!0),this.reflow(),this.viewState.notifyLayoutEnd()},h.prototype.assignResources=function(){y.assignTasksResources(this.tasks,{taskResources:this.taskResources,hasGroups:0<this.groupedResources.length,allResources:this.resources,spans:this.spans})},h.prototype.bindEvents=function(){var t=this,n=this.content.nativeElement,e=this.element.nativeElement;this.zone.runOutsideAngular(function(){t.times&&t.subs.add(l.merge(l.fromEvent(t.times.nativeElement,"mousewheel"),l.fromEvent(t.times.nativeElement,"DOMMouseScroll")).pipe(s.filter(function(e){return!e.ctrlKey}),s.tap(c.preventLockedScroll(n)),s.map(c.wheelDeltaY)).subscribe(function(e){return n.scrollTop-=e})),t.subs.add(l.merge(d.fromClick(n),l.fromEvent(n,"contextmenu")).subscribe(function(e){return t.onClick(e)})),t.subs.add(d.fromDoubleClick(n).subscribe(function(e){return t.onClick(e,"dblclick")})),t.subs.add(l.fromEvent(e,"keydown").subscribe(function(e){return t.onKeydown(e)})),t.domEvents.push(t.renderer.listen(n,"scroll",function(){t.headerWrap&&(t.headerWrap.nativeElement.scrollLeft=n.scrollLeft),t.times&&(t.times.nativeElement.scrollTop=n.scrollTop)})),t.draggable=new p.default({press:t.onPress.bind(t),drag:t.onDrag.bind(t),release:t.onRelease.bind(t)}),t.draggable.bindTo(e)})},h.prototype.onPress=function(e){var t=this.editable&&!1!==this.editable.resize,n=this.editable&&!1!==this.editable.drag,r=e.originalEvent.target;if(c.hasClasses(r,"k-resize-handle")){if(!t)return;this.initResize(e)}else!n||(r=this.targetTask(r))&&(e.isTouch||e.originalEvent.preventDefault(),this.pressLocation={x:e.pageX,y:e.pageY},this.pressTarget=r);this.dragArgs=e},h.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.dragArgs=e},h.prototype.onRelease=function(){clearInterval(this.scrollInterval);var e=this.resizing,t=this.dragging;e&&(this.emitEvent("resizeEnd",{event:e.task.event,dataItem:e.task.event.dataItem,start:this.convertDate(e.start),end:this.convertDate(e.end)}),this.resizeHints=[]),t&&(this.emitEvent("dragEnd",{event:t.task.event,dataItem:t.task.event.dataItem,start:t.start?this.convertDate(t.start):t.task.start.toLocalDate(),end:t.end?this.convertDate(t.end):t.task.end.toLocalDate(),resources:t.resources,isAllDay:this.draggedIsAllDay(t.task,t.slot)}),this.dragHints=[]),(e||t)&&(this.removeSlotClass(),this.updateHintContainer(),this.resizing=null,this.dragging=null),this.container=null,this.dragArgs=null,this.pressLocation=null,this.pressTarget=null},h.prototype.setHintClass=function(e){(this.dragging||this.resizing).hintClass=e},h.prototype.updateHintClass=function(){var t=this.dragging||this.resizing,n=!1;this.hints.forEach(function(e){e.class!==t.hintClass&&(e.class=t.hintClass,n=!0)}),n&&this.updateHintContainer()},h.prototype.removeHintClass=function(){(this.dragging||this.resizing).hintClass=null},h.prototype.setSlotClass=function(e){var t=this.dragging||this.resizing;t.slotClass=e,this.renderer.addClass(t.slot.nativeElement,t.slotClass)},h.prototype.removeSlotClass=function(){var e=this.dragging||this.resizing;e.slotClass&&(this.renderer.removeClass(e.slot.nativeElement,e.slotClass),e.slotClass=null)},Object.defineProperty(h.prototype,"hints",{get:function(){return this.dragging?this.dragHints:this.resizeHints},enumerable:!0,configurable:!0}),h.prototype.initDrag=function(e){if(!this.dragging&&this.pressLocation&&10<=y.pointDistance(this.pressLocation.x,this.pressLocation.y,e.pageX,e.pageY)){var t,n=this.pressTarget,r=n.task;if(this.emitEvent("dragStart",{event:r.event,dataItem:r.event.dataItem}))return this.pressLocation=null,void(this.pressTarget=null);this.updateDragContainer(e),void 0!==this.containerOffset&&(e=(t=this.coordinatesOffset(this.pressLocation.x,this.pressLocation.y)).x,t=t.y,(t=this.slotByPosition(Math.ceil(e),Math.ceil(t),this.container))&&(this.dragging=n,this.dragging.offset={start:t.start.getTime()-r.start.toUTCDate().getTime(),end:r.end.toUTCDate().getTime()-t.start.getTime()},this.dragging.slot=t,this.dragging.startResources=this.dragging.resourceItems=this.dragResourcesByIndex(t.id.resourceIndex),this.dragging.resources=this.resourceValues(r,this.dragging.startResources)))}},h.prototype.updateDragContainer=function(e){this.container||(this.container=this.content.nativeElement,this.containerOffset=y.elementOffset(this.container))},h.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,e=o.slot,t=o.task,n=this.dragRanges(i),a=n.ranges,s=n.start,c=n.end,r=n.isAllDay,l=void 0,n=void 0,n=e.id.resourceIndex!==i.id.resourceIndex?(l=this.dragResourcesByIndex(i.id.resourceIndex),this.resourceValues(t,l)):(l=o.resourceItems,o.resources);if(this.removeSlotClass(),o.start=s,o.end=c,o.slot=i,o.resources=n,o.resourceItems=l,o.hintClass=null,this.emitEvent("drag",{event:t.event,dataItem:t.event.dataItem,start:this.convertDate(s),end:this.convertDate(c),resources:n,isAllDay:r,setHintClass:this.setHintClass,setSlotClass:this.setSlotClass}))this.updateHintClass();else{var d=this.dragResourceColor(t,l),u=this.dragHintClasses();this.dragHints=[];for(var p=0;p<a.length;p++){var h=a[p],m=h[0],g=h[h.length-1],h=this.dragHintSize(m,g),g=m.rect.left,h={top:y.toPx(m.rect.top),left:this.localization.rtl?"":y.toPx(g),right:this.localization.rtl?y.toPx(g):"",width:h.width,height:h.height,backgroundColor:d,borderColor:d};this.eventStyles&&Object.assign(h,this.eventStyles(this.dragHintEventStyleArgs())),this.dragHints.push({item:Object.assign({},this.dragging.task,{startTime:s,endTime:c}),resources:l,class:u,style:h})}this.updateHintContainer()}}}},h.prototype.dragHintClasses=function(){var e=this.dragging.hintClass,t=[];return e&&t.push(e),this.eventClass&&(e=this.eventClass(this.dragHintEventStyleArgs()),t=t.concat(y.convertNgClassBindings(e))),t},h.prototype.dragHintEventStyleArgs=function(){return{event:this.dragging.task.event,resources:this.dragging.resourceItems}},h.prototype.draggedIsAllDay=function(e,t){return Boolean(e.event.isAllDay)},h.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:""},h.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;Array.isArray(o)?a=d.getField(e.event,i.field):(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},h.prototype.initResize=function(e){e.originalEvent.preventDefault();var t=e.originalEvent.target,n=this.targetTask(t);this.emitEvent("resizeStart",{event:n.task.event,dataItem:n.task.event.dataItem})||((this.resizing=n).start=n.task.start.toUTCDate(),n.end=n.task.end.toUTCDate(),c.hasClasses(t,"k-resize-n")?n.direction="n":c.hasClasses(t,"k-resize-s")?n.direction="s":c.hasClasses(t,"k-resize-w")?n.direction="w":n.direction="e",this.updateDragContainer(e),e=(t=this.coordinatesOffset(e.pageX,e.pageY)).x,t=t.y,n.slot=this.slotByPosition(Math.ceil(e),Math.ceil(t),this.container),n.offset={start:n.task.start.toUTCDate().getTime()-n.slot.start.getTime(),end:n.task.end.toUTCDate().getTime()-n.slot.start.getTime()})},h.prototype.resize=function(e){var t=this.coordinatesOffset(e.pageX,e.pageY),n=t.x,r=t.y,i=this.resizing,o=i.direction,e=i.task,t=i.offset,n=this.slotService.groupSlotByPosition(i.slot,n,r);n&&n!==i.slot&&(this.removeSlotClass(),o=(r=this.slotService.resizeRanges(n,e,"w"===o||"n"===o,t)).start,t=r.end,r=r.ranges,i.hintClass=null,i.start=o,i.end=t,i.slot=n,this.emitEvent("resize",{event:e.event,dataItem:e.event.dataItem,start:this.convertDate(o),end:this.convertDate(t),setHintClass:this.setHintClass,setSlotClass:this.setSlotClass})?this.updateHintClass():(this.updateResizeHints(r,o,t),this.updateHintContainer()))},h.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,c=s===e.length-1;this.resizeHints.push({first:u,last:c,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:l).start,end:(c&&a?r:d).end,class:r.hintClass})}},h.prototype.coordinatesOffset=function(e,t,n,r){void 0===n&&(n=this.container);e=e-(r=void 0===r?this.containerOffset:r).left+n.scrollLeft;return{x:this.localization.rtl?this.slotService.containerSize-e:e,y:t-r.top+n.scrollTop}},h.prototype.scrollContainer=function(e,t){var n=this;clearInterval(this.scrollInterval);var r,i,o,a,s,c,l,d,u,p=this.container;p&&(r=t.pageY-this.containerOffset.top,i=Math.abs(p.offsetHeight-r),o=t.pageY-this.dragArgs.pageY,a=t.pageX-this.containerOffset.left,s=Math.abs(p.offsetWidth-a),c=t.pageX-this.dragArgs.pageX,l=!1,u=d=0,i<60&&p.scrollTop+p.offsetHeight<p.scrollHeight&&0<o?(l=!0,u=15,this.container.scrollTop+=60-i):r<60&&0<p.scrollTop&&o<0&&(l=!0,u=-15,this.container.scrollTop-=60-r),s<60&&p.scrollLeft+p.offsetWidth<p.scrollWidth&&0<c?(l=!0,d=15,this.container.scrollLeft+=60-s):a<60&&0<p.scrollLeft&&o<0&&(l=!0,d=-15,this.container.scrollLeft-=60-a),l&&(this.scrollInterval=setInterval(function(){n.container?(n.container.scrollLeft+=d,n.container.scrollTop+=u,e.call(n,t)):clearInterval(n.scrollInterval)},50)))},h.prototype.emitEvent=function(e,t){return this.viewState.emitEvent(e,t),t.prevented},h.prototype.targetTask=function(e){e=c.closestInScope(e,function(e){return e.hasAttribute("data-task-index")},this.element.nativeElement);if(e){var t=parseInt(e.getAttribute("data-task-index"),10);return{target:e,task:this.tasks.find(function(e){return e.index===t})}}},h.prototype.updateHintContainer=function(){this.hintContainer&&this.hintContainer.detectChanges()},h.prototype.convertDate=function(e){return a.ZonedDate.fromUTCDate(e,this.timezone).toLocalDate()},h.prototype.onClick=function(e,t){void 0===t&&(t=e.type),this.emitSlotEvent(e,t),this.emitTaskEvent(e,t)},h.prototype.emitSlotEvent=function(e,t){var n,r=c.closestInScope(e.target,function(e){return e.hasAttribute("data-slot-index")},this.element.nativeElement);r&&(n=r.getAttribute("data-slot-index"),r="dblclick"===t?"slotDblClick":"slotClick",n=this.slotByIndex(n,e),this.viewState.emitEvent(r,{type:t,slot:n,start:this.convertDate(n.start),end:this.convertDate(n.end),isAllDay:n.isDaySlot,originalEvent:e,resources:this.resources&&this.resources.length?this.resourcesByIndex(n.id.resourceIndex):[]}))},h.prototype.emitTaskEvent=function(e,t){var n,r,i=this.targetTask(e.target);i&&(n=i.task,r="dblclick"===t,"click"===t&&c.closestInScope(e.target,function(e){return c.hasClasses(e,"k-event-delete")},i.target)?this.viewState.emitEvent("remove",{event:n.event,dataItem:n.event.dataItem}):(this.viewState.emitEvent(r?"eventDblClick":"eventClick",{type:t,event:n.event,originalEvent:e}),i.target.focus()))},h.prototype.onKeydown=function(e){var t=this.targetTask(e.target);t&&(t=t.task,this.viewState.emitEvent("eventKeydown",{event:t.event,dataItem:t.event.dataItem,originalEvent:e}))},h.prototype.syncTables=function(){var e,t;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",(c.hasScrollbar(this.content.nativeElement,"vertical")?c.scrollbarWidth()-u.BORDER_WIDTH:0)+"px"),this.renderer.setStyle(this.header.nativeElement,this.localization.rtl?"padding-right":"padding-left","0px")),this.times&&(e=this.times.nativeElement,this.timesHeader.nativeElement.style.width=e.offsetWidth+"px",t="auto"===this.contentHeight?this.content.nativeElement.offsetHeight:this.contentHeight,this.renderer.setStyle(e,"height",t-(c.hasScrollbar(this.content.nativeElement,"horizontal")?c.scrollbarWidth():0)+"px"),e.scrollTop=this.content.nativeElement.scrollTop)},h.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||y.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}},h.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(h.prototype,"taskResources",{get:function(){return this.groupedResources.length?this.groupedResources:this.resources&&this.resources.length?[this.resources[0]]:[{}]},enumerable:!0,configurable:!0}),h.prototype.resourceSpans=function(){for(var e=[1],t=this.groupedResources,n=1,r=t.length-1;0<r;r--)n*=(t[r].data||[]).length||1,e.unshift(n);return e},h.prototype.isInRange=function(e){e=this.dateRange(e);return(!this.min||this.min<e.end)&&(!this.max||e.start<=this.max)},h.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},h.prototype.pdfWidth=function(){return this.element.nativeElement.offsetWidth},h.prototype.containerByPosition=function(e){var t=e.x,n=e.y,r=this.content.nativeElement,e=y.elementOffset(r);if(e.top<=n&&n<=e.top+e.height&&e.left<=t&&t<=e.left+e.width)return{element:r,offset:e}},h.prototype.execute=function(e){var t,n;"slotByPosition"===e.name?(t=this.containerByPosition(e.args))&&(n=this.coordinatesOffset(e.args.x,e.args.y,t.element,t.offset),n=this.slotByPosition(n.x,n.y,t.element),e.result(this.slotFields(n))):"eventFromElement"!==e.name||(n=this.targetTask(e.args.element))&&e.result(n.task.event)},h.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)],h.prototype,"еventTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],h.prototype,"groupHeaderTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],h.prototype,"selectedDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],h.prototype,"selectedShortDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],h.prototype,"eventHeight",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],h.prototype,"slotClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],h.prototype,"eventClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],h.prototype,"eventStyles",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],h.prototype,"weekStart",void 0),r.__decorate([i.ViewChild("content",{static:!1}),r.__metadata("design:type",i.ElementRef)],h.prototype,"content",void 0),r.__decorate([i.ViewChild("header",{static:!1}),r.__metadata("design:type",i.ElementRef)],h.prototype,"header",void 0),r.__decorate([i.ViewChild("contentTable",{static:!1}),r.__metadata("design:type",i.ElementRef)],h.prototype,"contentTable",void 0),r.__decorate([i.ViewChild("times",{static:!1}),r.__metadata("design:type",i.ElementRef)],h.prototype,"times",void 0),r.__decorate([i.ViewChild("timesHeader",{static:!1}),r.__metadata("design:type",i.ElementRef)],h.prototype,"timesHeader",void 0),r.__decorate([i.ViewChild("timesTable",{static:!1}),r.__metadata("design:type",i.ElementRef)],h.prototype,"timesTable",void 0),r.__decorate([i.ViewChild("headerWrap",{static:!1}),r.__metadata("design:type",i.ElementRef)],h.prototype,"headerWrap",void 0),r.__decorate([i.ViewChild("hintContainer",{static:!1}),r.__metadata("design:type",n.HintContainerComponent)],h.prototype,"hintContainer",void 0),h);function h(e,t,n,r,i,o,a,s,c){this.viewContext=e,this.viewState=t,this.intl=n,this.slotService=r,this.zone=i,this.renderer=o,this.element=a,this.pdfService=s,this.localization=c,this.items=new l.BehaviorSubject(null),this.horizontalResources=[],this.verticalResources=[],this.dragHints=[],this.resizeHints=[],this.getField=d.getField,this.changes=new l.BehaviorSubject(null),this.viewRangeChange=new l.BehaviorSubject(null),this.subs=new l.Subscription,this.groupedResources=[],this.spans=[],this.domEvents=[],this.resourcesCache={},this.autoHeight=!1,this.rtl=!1,this.setSlotClass=this.setSlotClass.bind(this),this.setHintClass=this.setHintClass.bind(this),this.weekStart=n.firstDay()}t.BaseView=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),a=n(9),s=n(5),c=n(4),r=(Object.defineProperty(l.prototype,"taskIndex",{get:function(){return this.item.index},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"touchAction",{get:function(){return this.editable&&!1!==this.editable.drag?"none":null},enumerable:!0,configurable:!0}),Object.defineProperty(l.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(l.prototype,"deleteMessage",{get:function(){return this.localization.get("deleteTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"resizable",{get:function(){return this.editable&&!1!==this.editable.resize},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"removable",{get:function(){return this.editable&&!1!==this.editable.remove},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"isRecurrence",{get:function(){return s.isRecurrence(this.item)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"isRecurrenceException",{get:function(){return s.isRecurrenceException(this.item)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"nativeElement",{get:function(){if(this.element)return this.element.nativeElement},enumerable:!0,configurable:!0}),l.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])},l.prototype.toggle=function(e){this.setStyles({display:e?"block":"none"})},l.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"})},l.prototype.ngOnInit=function(){var t=this;this.dragHint||this.subs.add(this.slotService.slotsChange.subscribe(function(){t.rect=null,t.setStyles({display:"none",width:0,left:0});var e={index:t.index,resourceIndex:t.resourceIndex,rangeIndex:t.rangeIndex};t.slotService.unregisterItem(t,e),0<=t.resourceIndex&&t.slotService.registerItem(t)}))},l.prototype.ngOnChanges=function(e){var t,n;!this.dragHint&&o.anyChanged(["index","resourceIndex","rangeIndex"],e)&&(n=e.resourceIndex,t=e.index,e=e.rangeIndex,n=n?n.previousValue:this.resourceIndex,e={index:t?t.previousValue:this.index,resourceIndex:n,rangeIndex:e?e.previousValue:this.rangeIndex},this.slotService.unregisterItem(this,e),0<=this.resourceIndex?(this.slotService.registerItem(this),this.toggle(!0)):this.toggle(!1))},l.prototype.ngOnDestroy=function(){this.dragHint||(this.slotService.unregisterItem(this),this.subs.unsubscribe())},r.__decorate([i.Input(),r.__metadata("design:type",Object)],l.prototype,"item",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],l.prototype,"resourceIndex",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],l.prototype,"rangeIndex",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],l.prototype,"index",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],l.prototype,"eventTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],l.prototype,"editable",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],l.prototype,"dragHint",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],l.prototype,"resources",void 0),r.__decorate([i.HostBinding("class.k-event"),r.__metadata("design:type",Boolean)],l.prototype,"className",void 0),r.__decorate([i.HostBinding("attr.data-task-index"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],l.prototype,"taskIndex",null),r.__decorate([i.HostBinding("style.touch-action"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],l.prototype,"touchAction",null),r.__decorate([i.HostBinding("attr.aria-label"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],l.prototype,"eventTitle",null),l);function l(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}t.BaseViewItem=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),n=(i.prototype.registerItem=function(e){this.itemGroup(e).registerItem(e)},i.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)},i.prototype.registerSlot=function(e){this.slotGroup(e).registerSlot(e)},i.prototype.unregisterSlot=function(e){var t=this.groups[e.id.resourceIndex];t&&t.unregisterSlot(e)},i.prototype.invalidate=function(){this.clearEmptyGroups(),this.cleanRanges(),this.slotsChange.emit(),this.forEachSlot(function(e){e.invalidate()})},i.prototype.cleanRanges=function(){this.groups.forEach(function(e){e.cleanRanges()})},i.prototype.clearEmptyGroups=function(){for(var e=this.groups,t=this.groups.length-1;0<t&&!e[t].hasSlots;)e.splice(t,1),t--},i.prototype.itemGroup=function(e){e=e.resourceIndex;return this.groups[e]||(this.groups[e]=this.createGroup(e)),this.groups[e]},i.prototype.slotGroup=function(e){e=e.id.resourceIndex;return this.groups[e]||(this.groups[e]=this.createGroup(e)),this.groups[e]},i);function i(){this.containerSize=0,this.slotsChange=new r.EventEmitter,this.groups=[]}t.BaseSlotService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(Object.defineProperty(i.prototype,"first",{get:function(){if(0<this.count)return this.items[Object.keys(this.items)[0]]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"last",{get:function(){if(0<this.count){var e=Object.keys(this.items);return this.items[e[e.length-1]]}},enumerable:!0,configurable:!0}),i.prototype.addItem=function(e,t){this.items[e]||this.count++,this.items[e]=t},i.prototype.removeItem=function(e,t){this.items[e]===t&&(delete this.items[e],this.count--)},i.prototype.toArray=function(){var t=this;return Object.keys(this.items).map(function(e){return t.items[e]})},i);function i(){this.count=0,this.items={}}t.ItemMap=r},function(e,t){e.exports=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),o=n(1),i=(r=n(2).ComponentMessages,i.__extends(a,r),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"allEvents",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"allDay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"dateHeader",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"timeHeader",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"eventHeader",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"deleteTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"nextTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"previousTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"today",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"calendarToday",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"showFullDay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"showWorkDay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"dayViewTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"multiDayViewTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"weekViewTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"workWeekViewTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"monthViewTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"timelineViewTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"timelineWeekViewTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"timelineMonthViewTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"agendaViewTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"cancel",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"save",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editorEventTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editorEventStart",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editorEventStartTimeZone",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editorEventEnd",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editorEventEndTimeZone",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editorEventAllDay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editorEventDescription",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editorEventSeparateTimeZones",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editorEventTimeZone",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorRepeat",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorDailyInterval",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorDailyRepeatEvery",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorWeeklyInterval",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorWeeklyRepeatEvery",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorWeeklyRepeatOn",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorMonthlyDay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorMonthlyInterval",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorMonthlyRepeatEvery",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorMonthlyRepeatOn",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorYearlyOf",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorYearlyRepeatEvery",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorYearlyRepeatOn",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorYearlyInterval",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorFrequenciesDaily",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorFrequenciesMonthly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorFrequenciesNever",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorFrequenciesWeekly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorFrequenciesYearly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorOffsetPositionsFirst",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorOffsetPositionsSecond",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorOffsetPositionsThird",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorOffsetPositionsFourth",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorOffsetPositionsLast",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorWeekdaysDay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorWeekdaysWeekday",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorWeekdaysWeekendday",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorEndAfter",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorEndOccurrence",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorEndLabel",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorEndNever",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorEndOn",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editorTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"destroy",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"deleteConfirmation",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editRecurringConfirmation",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editOccurrence",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editSeries",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"deleteRecurringConfirmation",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"deleteOccurrence",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"deleteSeries",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"deleteDialogTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"deleteRecurringDialogTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editRecurringDialogTitle",void 0),a);function a(){return null!==r&&r.apply(this,arguments)||this}t.Messages=i},function(e,t){e.exports=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=(Object.defineProperty(i.prototype,"display",{get:function(){return this.loading||this.force?"block":"none"},enumerable:!0,configurable:!0}),i.prototype.toggle=function(e){this.force=e,this.renderer.setStyle(this.element.nativeElement,"display",this.display)},r.__decorate([n.HostBinding("class.k-loading-mask"),r.__metadata("design:type",Boolean)],i.prototype,"hostClasses",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Boolean)],i.prototype,"loading",void 0),r.__decorate([n.HostBinding("style.display"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],i.prototype,"display",null),r.__decorate([n.Component({selector:"[kendoSchedulerLoading]",template:'\n <div class="k-loading-image"></div>\n <div class="k-loading-color"></div>\n '}),r.__metadata("design:paramtypes",[n.ElementRef,n.Renderer2])],i));function i(e,t){this.element=e,this.renderer=t,this.hostClasses=!0}t.LoadingComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(12).PreventableEvent,i.__extends(o,r),o);function o(){return null!==r&&r.apply(this,arguments)||this}t.PDFExportEvent=i},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,i=n(0),o=n(1),n=n(2),n=(r=n.LocalizationService,i.__extends(a,r),i.__decorate([i.__param(0,o.Inject(n.L10N_PREFIX)),i.__param(1,o.Optional()),i.__param(2,o.Optional()),i.__param(2,o.Inject(n.RTL)),i.__metadata("design:paramtypes",[String,n.MessageService,Boolean])],a));function a(e,t,n){return r.call(this,e,t,n)||this}t.SchedulerLocalizationService=n},function(e,t){e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OCCURRENCE_ID=0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,i={undefined:function(e){return e}};t.setter=function(e){if(i[e])return i[e];var o=[];return e.replace(r,function(e,t,n,r){o.push(void 0!==t?t:n||r)}),i[e]=function(e,t){for(var n=e,r=o.length-1,i=0;i<r&&n;i++)n=n[o[i]]=n[o[i]]||{};n[o[r]]=t},i[e]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,o={undefined:function(){}};t.getter=function(e){if(o[e])return o[e];var i=[];return e.replace(r,function(e,t,n,r){i.push(void 0!==t?t:n||r)}),o[e]=function(e){for(var t=e,n=0;n<i.length&&t;n++)t=t[i[n]];return t},o[e]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(9),a=n(17),s=n(3),r=(c.prototype.endEdit=function(){var e=this.hasNewEvent?this.newEventGroup.group:this.editedEvent.formGroup;this.changes.emit({action:"cancel",formGroup:e})},c.prototype.removeEvent=function(e){this.changes.emit({action:"remove",dataItem:e})},c.prototype.addEvent=function(e){this.newEventGroup={formGroup:e},this.onChanged()},c.prototype.editEvent=function(e,t,n){this.editedEvent={dataItem:e,formGroup:t=void 0===t?void 0:t,mode:n},this.onChanged()},c.prototype.close=function(){this.newEventGroup=this.editedEvent=null,this.onChanged()},c.prototype.save=function(){var e=this.context,t=e.dataItem,e=e.formGroup;this.changes.emit({action:"save",dataItem:t,formGroup:e,isNew:this.hasNewEvent,mode:this.occurrenceEditMode})},c.prototype.isEditing=function(){return s.isPresent(this.context)},Object.defineProperty(c.prototype,"occurrenceEditMode",{get:function(){return this.hasNewEvent?2:this.editedEvent.mode||0},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"hasNewEvent",{get:function(){return s.isPresent(this.newEventGroup)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"newEvent",{get:function(){return this.hasNewEvent?this.newEventGroup.group.value:{}},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"context",{get:function(){return this.hasNewEvent?this.newEventGroup:this.editedEvent},enumerable:!0,configurable:!0}),c.prototype.onChanged=function(){var e=this;this.ngZone.runOutsideAngular(function(){e.changedSource.next()})},r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[i.NgZone])],c));function c(e){this.ngZone=e,this.changes=new i.EventEmitter,this.changedSource=new o.Subject,this.changed=this.changedSource.asObservable().pipe(a.debounceTime(0))}t.EditService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(12).PreventableEvent,i.__extends(o,r),o);function o(e,t){var n=r.call(this)||this;return n.sender=e,Object.assign(n,t),n}t.ResizeStartEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(12).PreventableEvent,i.__extends(o,r),o);function o(e,t){var n=r.call(this)||this;return n.sender=e,Object.assign(n,t),n}t.ResizeEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(12).PreventableEvent,i.__extends(o,r),o);function o(e,t){var n=r.call(this)||this;return n.sender=e,Object.assign(n,t),n}t.ResizeEndEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(12).PreventableEvent,i.__extends(o,r),o);function o(e,t){var n=r.call(this)||this;return n.sender=e,Object.assign(n,t),n}t.RemoveEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(12).PreventableEvent,i.__extends(o,r),o);function o(e,t){var n=r.call(this)||this;return n.sender=e,Object.assign(n,t),n}t.DragStartEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(12).PreventableEvent,i.__extends(o,r),o);function o(e,t){var n=r.call(this)||this;return n.sender=e,Object.assign(n,t),n}t.DragEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(12).PreventableEvent,i.__extends(o,r),o);function o(e,t){var n=r.call(this)||this;return n.sender=e,Object.assign(n,t),n}t.DragEndEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventKeydownEvent=function(e,t){this.sender=e,Object.assign(this,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventClickEvent=function(e,t){this.sender=e,Object.assign(this,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SlotClickEvent=function(e,t){this.sender=e,Object.assign(this,t)}},function(e,t){e.exports=b},function(e,t){e.exports=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(58),n=n(57),n=[o.PDFComponent,n.PDFCommandDirective],n=r.__decorate([i.NgModule({declarations:[n],exports:[n]})],a);function a(){}t.PDFModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(6),o=n(4),a=n(9),s=n(87),c=n(88),l=n(83),d=n(3),u=["yyyyMMddTHHmmssSSSXXX","yyyyMMddTHHmmssXXX","yyyyMMddTHHmmss","yyyyMMddTHHmm","yyyyMMddTHH","yyyyMMdd"],n=(p.prototype.create=function(e){this.logCreate(e),this.saveChanges()},p.prototype.createException=function(e,t){t=this.buildException(t);this.logRemoveOccurrence(e),this.logCreate(t),this.saveChanges()},p.prototype.update=function(e,t){this.assignValues(e,t),this.logUpdate(e),this.saveChanges()},p.prototype.remove=function(e){this.logRemove(e),this.saveChanges()},p.prototype.removeSeries=function(e){var t=this.getId(e),n=this.getRecurrenceId(e),e=this.isRecurrenceHead(e);this.removeItemAndExceptions(e?t:n),this.saveChanges()},p.prototype.removeOccurrence=function(e){this.logRemoveOccurrence(e),this.saveChanges()},p.prototype.findRecurrenceMaster=function(e){var t=this.getId(e),n=this.getRecurrenceId(e),n=this.isRecurrenceHead(e)?t:n,n=this.itemIndex(n,this.data);return this.data[n]},p.prototype.isRecurring=function(e){return d.isRecurring(e,this.fields)},p.prototype.isException=function(e){return d.isException(e,this.fields)},p.prototype.isNew=function(e){e=this.getId(e);return!d.isPresent(e)},p.prototype.nextId=function(){},p.prototype.assignValues=function(e,t){d.cloneTo(t,e)},p.prototype.cloneEvent=function(e){var t={};return this.assignValues(t,e),t},p.prototype.parseExceptions=function(e){return d.isPresent(e)&&""!==e?e.split(";").map(function(e){return i.parseDate(e,u)||void 0}):[]},p.prototype.serializeExceptions=function(e){return e&&0!==e.length?e.map(function(e){return i.formatDate(o.toLocalDate(e),"yyyyMMddTHHmmss")+"Z"}).join(";"):""},p.prototype.reset=function(){this.data=[],this.deletedItems=[],this.updatedItems=[],this.createdItems=[]},p.prototype.itemIndex=function(e,t){for(var n=0;n<t.length;n++)if(this.getId(t[n])===e)return n;return-1},p.prototype.buildException=function(e){var t=this.fields,n=this.findRecurrenceMaster(e),e=this.cloneEvent(e);return d.assignField(e,n,t.id),this.setId(e,this.nextId()),this.setRecurrenceRule(e,void 0),this.setRecurrenceId(e,this.getId(n)),e},p.prototype.isRecurrenceHead=function(e){var t=this.getId(e),e=this.getRecurrenceRule(e);return!(!t||!e)},p.prototype.logCreate=function(e){this.data=this.data.concat([e]),this.source.next(this.data),this.createdItems.push(e)},p.prototype.logUpdate=function(e){var t,n=this.getId(e);this.isNew(e)?(t=this.createdItems.indexOf(e),this.createdItems.splice(t,1,e)):-1!==(t=this.itemIndex(n,this.updatedItems))?this.updatedItems.splice(t,1,e):this.updatedItems.push(e)},p.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),0<=(n=this.itemIndex(t,this.createdItems))?this.createdItems.splice(n,1):this.deletedItems.push(e),0<=(n=this.itemIndex(t,this.updatedItems))&&this.updatedItems.splice(n,1)},p.prototype.logRemoveOccurrence=function(e){var t=this.findRecurrenceMaster(e),n=this.getStart(e),e=this.getRecurrenceExceptions(t)||[];this.setRecurrenceExceptions(t,e.concat([n])),this.logUpdate(t)},p.prototype.removeItemAndExceptions=function(t){var n=this;this.deletedItems=this.deletedItems.concat(this.data.filter(function(e){return n.getRecurrenceId(e)===t||n.getId(e)===t}))},p.prototype.hasChanges=function(){return 0<this.deletedItems.length+this.updatedItems.length+this.createdItems.length},p.prototype.saveChanges=function(){this.hasChanges()&&(this.save(this.createdItems,this.updatedItems,this.deletedItems),this.reset())},p);function p(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)}t.BaseEditService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function c(e){return y.hasClasses(e,"k-scheduler-content")}var r=n(0),i=n(1),l=n(8),d=n(4),u=n(9),o=n(29),p=n(63),h=n(3),a=n(26),s=n(40),m=n(17),g=n(7),y=n(14),n=n(41),n=(f.prototype.onKeydown=function(t){var e=this.shortcuts.find(function(e){return e.match(t)});e&&!this.dialogsService.isOpen&&e.action(t)},f.prototype.onEventKeydown=function(t){var e=this.taskShortcuts.find(function(e){return e.match(t.originalEvent)});e&&!this.dialogsService.isOpen&&e.action(t.originalEvent,t.event)},f.prototype.focusWait=function(){var e=this;this.viewState.layoutEnd.pipe(m.take(1)).subscribe(function(){return e.focusService.focus()})},r.__decorate([i.Directive({selector:"kendo-scheduler"}),r.__metadata("design:paramtypes",[a.SchedulerComponent,s.DomEventsService,o.FocusService,i.NgZone,i.ChangeDetectorRef,g.ViewStateService,n.DialogsService])],f));function f(e,t,n,r,i,o,a){var s=this;this.scheduler=e,this.domEvents=t,this.focusService=n,this.zone=r,this.changeDetector=i,this.viewState=o,this.dialogsService=a,this.shortcuts=[{match:function(e){return e.keyCode===l.Keys.KeyC&&p.noModifiers(e)},action:function(e){var t,n=s.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);n.group&&(i=n.resources||[],r=n.group||{},0<(i=h.groupResources(r,i)).length&&(t=i[0].data[0])),n.create.emit({start:d.ZonedDate.fromLocalDate(o,n.timezone).toLocalDate(),end:d.ZonedDate.fromLocalDate(a,n.timezone).toLocalDate(),isAllDay:!1,resources:[t],originalEvent:e,sender:n})}},{match:function(e){return e.keyCode>=l.Keys.Digit1&&e.keyCode<=l.Keys.Digit9&&p.withModifiers(e,p.Modifiers.AltKey)},action:function(e){var t=s.scheduler,e=e.keyCode-l.Keys.Digit0-1,n=t.views.toArray()[e];n&&s.zone.run(function(){t.onNavigationAction({type:"view-change",view:n})||(s.changeDetector.markForCheck(),s.focusWait())})}},{match:function(e){return e.keyCode===l.Keys.KeyT&&p.noModifiers(e)},action:function(){s.zone.run(function(){s.scheduler.onNavigationAction({type:"today"}),s.focusWait()})}},{match:function(e){return(e.keyCode===l.Keys.ArrowLeft||e.keyCode===l.Keys.ArrowRight)&&p.withModifiers(e,p.Modifiers.ShiftKey)},action:function(e){var t=e.keyCode===l.Keys.ArrowLeft?"prev":"next";s.zone.run(function(){s.scheduler.onNavigationAction({type:t}),s.focusWait()})}},{match:function(e){return(e.keyCode===l.Keys.ArrowUp||e.keyCode===l.Keys.ArrowLeft)&&p.noModifiers(e)&&!c(e.target)},action:function(e){s.scheduler.onNavigationAction({type:"focus-prev"})||(s.focusService.focusNext({offset:-1}),e.preventDefault())}},{match:function(e){return(e.keyCode===l.Keys.ArrowDown||e.keyCode===l.Keys.ArrowRight)&&p.noModifiers(e)&&!c(e.target)},action:function(e){s.scheduler.onNavigationAction({type:"focus-next"})||(s.focusService.focusNext({offset:1}),e.preventDefault())}}],this.taskShortcuts=[{match:function(e){return(e.keyCode===l.Keys.Delete||e.keyCode===l.Keys.Backspace)&&p.noModifiers(e)},action:function(e,t){s.viewState.emitEvent("remove",{event:t,dataItem:t.dataItem}),e.preventDefault()}},{match:function(e){return e.keyCode===l.Keys.Enter&&p.noModifiers(e)},action:function(e,t){s.viewState.emitEvent("eventDblClick",{type:"dblclick",event:t,originalEvent:e}),e.preventDefault()}}],this.subs=new u.Subscription,this.subs.add(this.domEvents.keydown.subscribe(function(e){return s.onKeydown(e)})),this.subs.add(this.scheduler.eventKeydown.subscribe(function(e){return s.onEventKeydown(e)}))}t.ShortcutsDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(1),a=n(16),s=n(4),n=n(27);t.TIME_ZONE_VALUE_ACCESSOR={multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:o.forwardRef(function(){return c})};var c=(l.prototype.onTimeZoneChange=function(e){this.tz=e,this.onChangeCallback(this.tz),this.valueChange.emit(e)},l.prototype.onTimeZoneFilterChange=function(t){this.tzSource=this.tzNames.filter(function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())})},l.prototype.writeValue=function(e){"string"==typeof e&&0<=this.tzNames.indexOf(e)&&(this.tz=e)},l.prototype.focus=function(){this.tzComboBox.focus()},l.prototype.registerOnChange=function(e){this.onChangeCallback=e},l.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},r.__decorate([i.ViewChild("tzcombobox",{static:!0}),r.__metadata("design:type",n.ComboBoxComponent)],l.prototype,"tzComboBox",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Number)],l.prototype,"width",void 0),r.__decorate([o.Output(),r.__metadata("design:type",o.EventEmitter)],l.prototype,"valueChange",void 0),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",[])],l));function l(){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()}t.TimeZoneEditorComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o=n(0),a=n(1),s=n(2),n=n(59),s=(r=n.Messages,o.__extends(c,r),i=c,i=o.__decorate([a.Directive({providers:[{provide:n.Messages,useExisting:a.forwardRef(function(){return i})}],selector:"[kendoRecurrenceEditorLocalizedMessages]"}),o.__metadata("design:paramtypes",[s.LocalizationService])],c));function c(e){var t=r.call(this)||this;return t.service=e,t}t.RecurrenceEditorLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o=n(0),a=n(1),s=n(2),n=n(59),s=(r=n.Messages,o.__extends(c,r),i=c,Object.defineProperty(c.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=o.__decorate([a.Component({providers:[{provide:n.Messages,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-recurrence-editor-messages",template:""}),o.__metadata("design:paramtypes",[s.LocalizationService])],c));function c(e){var t=r.call(this)||this;return t.service=e,t}t.RecurrenceEditorCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(3),a=n(13),s=n(2),n=n(22),s=(c.prototype.setSelectedDays=function(){for(var t=this,e=0;e<7;e++)this.selected[e]=!1;o.isPresent(this.rrule.byWeekDay)&&this.rrule.byWeekDay.forEach(function(e){t.selected[e.day]=!0})},c.prototype.onSelectedChange=function(e,t){this.selected[t]=e,this.recurrence.setWeekDays(this.serializeToWeekDayRuleArray(this.selected))},c.prototype.isSelected=function(e){return this.selected[e.value]},c.prototype.serializeToWeekDayRuleArray=function(e){var n=[];return e.forEach(function(e,t){e&&n.push({day:t,offset:0})}),0<n.length?n:null},Object.defineProperty(c.prototype,"rrule",{get:function(){return this.recurrence.rrule},enumerable:!0,configurable:!0}),c.prototype.capitalize=function(e){return o.capitalize(e)},c.prototype.textFor=function(e){return this.localization.get(e)},c.prototype.onWeeklyRepeatOnClick=function(){var e=this.weekDayButtons.toArray().find(function(e){return e.selected});e&&e.focus()},r.__decorate([i.ViewChildren(n.Button),r.__metadata("design:type",i.QueryList)],c.prototype,"weekDayButtons",void 0),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])],c));function c(e,t){this.recurrence=e,this.localization=t,this.selected=[],this.weekDays=this.recurrence.weekDays,this.setSelectedDays()}t.RecurrenceWeekdayRuleEditorComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(13),a=n(3),s=n(13),c=n(2),n=n(60),c=(Object.defineProperty(l.prototype,"userNumericOptions",{set:function(e){this.numericOptions=r.__assign({},this.numericOptions,e)},enumerable:!0,configurable:!0}),l.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])},l.prototype.subscribeEventHandlers=function(){this.subs=this.recurrence.repeatOnRuleChange.subscribe(this.onRepeatOnRuleChange.bind(this)),this.subs.add(this.recurrence.frequencyChange.subscribe(this.onFrequencyChange.bind(this)))},l.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]))},l.prototype.onFrequencyChange=function(){this.setInitialValues()},l.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(l.prototype,"monthDay",{get:function(){var e=this.recurrence.rrule;return a.isPresent(e.byMonthDay)&&0<e.byMonthDay.length?e.byMonthDay[0]:a.isPresent(this.currentMonthDay)?this.currentMonthDay:this.recurrence.start.getDate()},enumerable:!0,configurable:!0}),Object.defineProperty(l.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(l.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}),l.prototype.onMonthChange=function(e,t){"monthday"===t?this.currentMonthMonthDay=e:this.currentMonthWeekDay=e,this.recurrence.setMonths([e])},l.prototype.onMonthDayChange=function(e){this.currentMonthDay=e,this.recurrence.monthDays=[e]},l.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},l.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)},l.prototype.isDisabled=function(e){return this.recurrence.repeatOnRule!==e},Object.defineProperty(l.prototype,"currentFreq",{get:function(){return this.recurrence.frequency},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"defaultOffset",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"defaultWeekDay",{get:function(){return this.recurrence.start.getDay()},enumerable:!0,configurable:!0}),l.prototype.weekDayRuleFromString=function(e){switch(e){case"day":return s.dayRule;case"weekday":return s.weekdayRule;case"weekend":return s.weekendRule}return null},l.prototype.textForRepeatOn=function(){switch(this.currentFreq){case"monthly":return this.textFor("monthlyRepeatOn");case"yearly":return this.textFor("yearlyRepeatOn")}},l.prototype.textFor=function(e){return this.localization.get(e)},l.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])],l.prototype,"userNumericOptions",null),r.__decorate([i.ViewChildren(n.RepeatOnRadioButtonDirective),r.__metadata("design:type",i.QueryList)],l.prototype,"repeatOnRadioButtons",void 0),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 </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 </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 </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 </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 </kendo-dropdownlist>\n </ng-template>\n </li>\n </ul>\n </div>\n "}),r.__metadata("design:paramtypes",[o.RecurrenceService,c.LocalizationService])],l));function l(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()}t.RecurrenceMonthlyYearlyEditorComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(13),a=n(2),s=n(3),a=(Object.defineProperty(c.prototype,"userNumericOptions",{set:function(e){this.numericOptions=r.__assign({},this.numericOptions,e)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"currentFreq",{get:function(){return this.recurrence.frequency},enumerable:!0,configurable:!0}),c.prototype.onIntervalChange=function(e){s.isPresent(e)&&(this.recurrence.interval=e)},c.prototype.onIntervalBlur=function(){s.isPresent(this.intervalValue)||(this.recurrence.interval=this.intervalValue=1)},c.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")}},c.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")}},c.prototype.textFor=function(e){return this.localization.get(e)},r.__decorate([i.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],c.prototype,"userNumericOptions",null),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])],c));function c(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}t.RecurrenceIntervalEditorComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(13),a=n(3),s=n(2),c=n(61),l=n(4),d=n(5),s=(Object.defineProperty(u.prototype,"userNumericOptions",{set:function(e){this.numericOptions=r.__assign({},this.numericOptions,e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"userDatePickerOptions",{set:function(e){this.datePickerOptions=r.__assign({},this.datePickerOptions,e)},enumerable:!0,configurable:!0}),u.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},u.prototype.setEndRule=function(e){"count"===e?this.recurrence.rrule.count=this.countValue:"until"===e&&(this.recurrence.until=this.untilValue)},Object.defineProperty(u.prototype,"rrule",{get:function(){return this.recurrence.rrule},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"isCountDisabled",{get:function(){return"count"!==this.recurrence.endRule},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"isUntilDisabled",{get:function(){return"until"!==this.recurrence.endRule},enumerable:!0,configurable:!0}),u.prototype.onCountChange=function(e){a.isPresent(e)&&(this.recurrence.count=e)},u.prototype.onCountBlur=function(){a.isPresent(this.countValue)||(this.recurrence.count=this.countValue=1)},u.prototype.onUntilChange=function(e){a.isPresent(e)&&(this.recurrence.until=this.createUntil(e))},u.prototype.onUntilBlur=function(){a.isPresent(this.untilValue)||(this.recurrence.until=this.untilValue=this.createUntil(this.recurrence.start))},u.prototype.textFor=function(e){return this.localization.get(e)},u.prototype.onEndLabelClick=function(){var e=this.endRuleRadioButtons.toArray().find(function(e){return e.elem.checked});e&&e.elem.focus()},u.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)},u.prototype.subscribeChanges=function(){var t=this;this.subscriptions=this.recurrence.endRuleChange.subscribe(function(e){t.setEndRule(e)}),this.subscriptions.add(this.recurrence.frequencyChange.subscribe(function(){t.setInitialValues()}))},u.prototype.createUntil=function(e){e=d.toUTCDate(e);return e.setUTCDate(e.getUTCDate()+1),l.ZonedDate.fromUTCDate(e,this.recurrence.timezone).toLocalDate()},r.__decorate([i.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],u.prototype,"userNumericOptions",null),r.__decorate([i.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],u.prototype,"userDatePickerOptions",null),r.__decorate([i.ViewChildren(c.EndRuleRadioButtonDirective),r.__metadata("design:type",i.QueryList)],u.prototype,"endRuleRadioButtons",void 0),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])],u));function u(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()}t.RecurrenceEndRuleEditorComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(13),a=n(2),n=n(22),a=(s.prototype.ngOnInit=function(){this.frequencies=this.recurrence.frequencies},Object.defineProperty(s.prototype,"selected",{get:function(){return this.recurrence.frequency},enumerable:!0,configurable:!0}),s.prototype.onClick=function(e){e.value!==this.selected&&this.recurrence.setFrequency(e.value)},s.prototype.textFor=function(e){return this.localization.get(e)},s.prototype.onFrequencyClick=function(){var e=this.weekDayButtons.toArray().find(function(e){return e.selected});e&&e.focus()},r.__decorate([i.ViewChildren(n.Button),r.__metadata("design:type",i.QueryList)],s.prototype,"weekDayButtons",void 0),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])],s));function s(e,t){this.recurrence=e,this.localization=t}t.RecurrenceFrequencyEditorComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(1),a=n(2),s=n(84),c=n(3),s=(i=a.LocalizationService,r.__extends(l,i),l.prototype.get=function(e){return this.schedulerLocalization?this.schedulerLocalization.get("recurrenceEditor"+c.capitalize(e)):i.prototype.get.call(this,e)},r.__decorate([r.__param(0,o.Inject(a.L10N_PREFIX)),r.__param(1,o.Optional()),r.__param(2,o.Optional()),r.__param(2,o.Inject(a.RTL)),r.__param(3,o.Optional()),r.__param(3,o.Inject(s.SchedulerLocalizationService)),r.__metadata("design:paramtypes",[String,a.MessageService,Boolean,s.SchedulerLocalizationService])],l));function l(e,t,n,r){n=i.call(this,e,t,n)||this;return n.schedulerLocalization=r,n}t.RecurrenceLocalizationService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(16),a=n(1),n=n(25);t.SCHEDULER_DATETIMEPICKER_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:a.forwardRef(function(){return s})};var s=(c.prototype.writeValue=function(e){e instanceof Date&&(this.date=e)},c.prototype.onValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},c.prototype.focus=function(){this.datePicker.focus()},c.prototype.registerOnChange=function(e){this.onChangeCallback=e},c.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},r.__decorate([i.ViewChild("datepicker",{static:!0}),r.__metadata("design:type",n.DatePickerComponent)],c.prototype,"datePicker",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],c.prototype,"isAllDay",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],c.prototype,"valueChange",void 0),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 "})],c));function c(){this.valueChange=new a.EventEmitter,this.onTouchedCallback=function(e){},this.onChangeCallback=function(e){}}t.SchedulerDateTimePickerComponent=s},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(16),a=n(2),s=n(89),c=n(9),l=n(3),d=n(43),u=n(66),p=n(64),h=n(8),m=n(17),g=n(63),y=n(20),f=n(4),v=n(5),y=(Object.defineProperty(_.prototype,"autoFocusedElement",{get:function(){return this.editTemplate?this.editTemplate.autoFocusedElement:".k-edit-field input"},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"isEditingSeries",{get:function(){return 2===this.editMode&&Boolean(this.formGroup.get(this.fields.recurrenceRule))},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"eventTimezone",{get:function(){return v.formValueOrDefault(this.formGroup,this.fields.startTimezone,this.timezone)},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"endTimezone",{get:function(){return v.formValueOrDefault(this.formGroup,this.fields.endTimezone,this.eventTimezone)},enumerable:!0,configurable:!0}),_.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,e=e.mode;this.formGroup=this.editService.context.formGroup,this.isNew=!1,this.editedEvent=t,this.editMode=l.isPresent(e)?e: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},_.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},_.prototype.onCancel=function(e){e.preventDefault(),this.onClose(),this.changeDetector.markForCheck()},_.prototype.onSave=function(e){e.preventDefault(),this.applyTimezone(),this.editService.save(),this.changeDetector.markForCheck()},_.prototype.onClose=function(){this.editService.endEdit(),this.changeDetector.markForCheck(),this.focusService.focus()},Object.defineProperty(_.prototype,"hasAllDay",{get:function(){return Boolean(this.formGroup.get(this.fields.isAllDay))},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"hasStartTimeZone",{get:function(){return Boolean(this.formGroup.get(this.fields.startTimezone))},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"isStartTimeZoneVisible",{get:function(){return this.formGroup&&this.formGroup.get("startTimezoneCheckbox").value},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"hasEndTimeZone",{get:function(){return Boolean(this.formGroup.get(this.fields.endTimezone))},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"isEndTimeZoneVisible",{get:function(){return this.formGroup&&this.formGroup.get("endTimezoneCheckbox").value},enumerable:!0,configurable:!0}),_.prototype.getFormValue=function(e){if(e)return this.formGroup.get(e)},_.prototype.textFor=function(e){return this.localization.get(e)},_.prototype.onResourceClick=function(t){var e=(t.multiple?this.multipleResourceEditors:this.singleResourceEditors).filter(function(e){return e.resource.field===t.field}).pop();e&&e.focus()},_.prototype.reset=function(){this.isActive=!1,this.setTimeZone=!1,this.setSeparateStartEndTimeZones=!1,this.removeTimeZoneCheckboxesFromFormGroup(),this.focusService.focus()},_.prototype.addTimeZoneCheckboxesToFormGroup=function(){var e;l.isPresent(this.formGroup)&&(e=this.fields.startTimezone,this.formGroup.addControl("startTimezoneCheckbox",new o.FormControl(this.formGroup.contains(e)&&this.formGroup.get(e).value)),e=this.fields.endTimezone,this.formGroup.addControl("endTimezoneCheckbox",new o.FormControl(this.formGroup.contains(e)&&this.formGroup.get(e).value)))},_.prototype.removeTimeZoneCheckboxesFromFormGroup=function(){l.isPresent(this.formGroup)&&(this.formGroup.removeControl("startTimezoneCheckbox"),this.formGroup.removeControl("endTimezoneCheckbox"))},_.prototype.subscribeToFormGroupChanges=function(){var t,n=this;l.isPresent(this.formGroup)&&(t=this.fields,this.formGroup.get("startTimezoneCheckbox").valueChanges.subscribe(function(e){e||(n.formGroup.get(t.startTimezone).setValue(null,{emitEvent:!1}),n.formGroup.get(t.endTimezone).setValue(null,{emitEvent:!1}),n.formGroup.get("endTimezoneCheckbox").setValue(!1,{emitEvent:!1}))}),this.formGroup.get("endTimezoneCheckbox").valueChanges.subscribe(function(e){e||n.formGroup.get(t.endTimezone).setValue(null,{emitEvent:!1})}),this.formGroup.get(t.start).valueChanges.subscribe(function(e){n.recurrenceStart=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)},_.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)},_.prototype.readDateWithTimezone=function(e,t){e=this.formGroup.get(e).value;return f.ZonedDate.fromUTCDate(v.toUTCDateTime(e),t).toLocalDate()},_.prototype.readDateAsLocal=function(e,t){e=this.formGroup.get(e).value;return f.toLocalDate(f.ZonedDate.fromLocalDate(e,t).toUTCDate())},r.__decorate([i.ViewChildren(u.MultipleResourceEditorComponent),r.__metadata("design:type",i.QueryList)],_.prototype,"multipleResourceEditors",void 0),r.__decorate([i.ViewChildren(p.SingleResourceEditorComponent),r.__metadata("design:type",i.QueryList)],_.prototype,"singleResourceEditors",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],_.prototype,"resources",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],_.prototype,"timezone",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],_.prototype,"weekStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],_.prototype,"fields",void 0),r.__decorate([i.Input(),r.__metadata("design:type",d.EditDialogTemplateDirective)],_.prototype,"editTemplate",void 0),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' class='k-textbox' 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' class='k-checkbox' [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' class='k-checkbox'\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' class='k-checkbox' 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' class='k-textbox' [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 class=\"k-button\" (click)=\"onCancel($event)\">{{ textFor('cancel') }}</button>\n <button class=\"k-button k-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,y.FocusService])],_));function _(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()}))}t.EditDialogComponent=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e){return!(!e.id||!e.recurrenceRule)}var o=n(3),i=n(1),a=n(8),n=(Object.defineProperty(s.prototype,"fields",{get:function(){return this.scheduler.modelFields},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"hasLocalData",{get:function(){return o.isPresent(this.localDataChangesService.data)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"data",{get:function(){return this.hasLocalData?this.localDataChangesService.data:this.scheduler.events},enumerable:!0,configurable:!0}),s.prototype.create=function(e){var t=this.fields.id,n=o.getField(e,t);o.isPresent(n)||o.setField(e,t,this.nextId()),this.data.push(e),this.dataChanged()},s.prototype.createException=function(e,t){t=this.buildException(t);this.removeOccurrenceInternal(e),this.create(t)},s.prototype.update=function(e,t){o.assignValues(e,t),this.dataChanged()},s.prototype.remove=function(e){for(var t=this.fields.id,n=o.getField(e,t),r=this.data,i=0;i<r.length;i++)if(n===o.getField(r[i],t)){r.splice(i,1);break}this.dataChanged()},s.prototype.removeSeries=function(e){var t=o.readEvent(e,this.fields),e=r(t);this.removeItemAndExceptions(e?t.id:t.recurrenceId),this.dataChanged()},s.prototype.removeOccurrence=function(e){this.removeOccurrenceInternal(e),this.dataChanged()},s.prototype.findRecurrenceMaster=function(e){var t=this.scheduler.modelFields,e=o.readEvent(e,t),n=r(e)?e.id:e.recurrenceId;return this.data.find(function(e){return o.getField(e,t.id)===n})},s.prototype.isRecurring=function(e){return o.isRecurring(e,this.scheduler.modelFields)},s.prototype.isException=function(e){return o.isException(e,this.scheduler.modelFields)},s.prototype.nextId=function(){return a.guid()},s.prototype.buildException=function(e){var t=this.fields,n=this.findRecurrenceMaster(e);if(n){e=o.clone(e);return o.setField(e,t.id,this.nextId()),o.setField(e,t.recurrenceId,o.getField(n,t.id)),o.setField(e,t.recurrenceRule,null),e}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.")},s.prototype.removeItemAndExceptions=function(e){for(var t=this.data,n=this.scheduler.modelFields,r=t.length-1;0<=r;r--)e!==o.getField(t[r],n.recurrenceId)&&e!==o.getField(t[r],n.id)||t.splice(r,1)},s.prototype.removeOccurrenceInternal=function(e){var t=this.fields,n=this.findRecurrenceMaster(e),r=o.getField(e,t.start),e=o.getField(n,t.recurrenceExceptions)||[];o.setField(n,t.recurrenceExceptions,e.concat([r]))},s.prototype.dataChanged=function(){this.hasLocalData&&this.localDataChangesService.changes.emit()},s);function s(e,t){this.scheduler=e,this.localDataChangesService=t}t.LocalEditService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(9),a=n(117),c=n(30),l=n(3),d=n(67),r=(Object.defineProperty(s.prototype,"editService",{get:function(){return this.userEditService||this.defaultEditService},set:function(e){this.userEditService=e},enumerable:!0,configurable:!0}),s.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)))},s.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},s.prototype.createDefaultService=function(){return new a.LocalEditService(this.scheduler,this.localDataChangesService)},s.prototype.addHandler=function(e){if(this.closeEditor(),this.isEnabled("add")){var t=this.scheduler.modelFields,n={};l.setField(n,t.start,e.start),l.setField(n,t.end,e.end),l.setField(n,t.isAllDay,e.isAllDay),l.setField(n,t.title,e.title);for(var r=l.groupResources(this.scheduler.group,this.scheduler.resources),i=e.resources,o=0;o<r.length;o++){var a=r[o],s=l.getField(i[o],a.valueField);l.setField(n,a.field,a.multiple?[s]:s)}e=new c.AddEvent(this.scheduler,{dataItem:n});this.add.emit(e),e.isDefaultPrevented()||this.scheduler.addEvent(this.createModel({action:"add",isNew:!0,dataItem:n}))}},s.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)}))},s.prototype.cancelHandler=function(){this.closeEditor()},s.prototype.closeEditor=function(){this.scheduler.closeEvent()},s.prototype.handleUpdate=function(e,t,n){var r=this.editService;1!==n||r.isException(e)?r.update(e,t):r.createException(e,t)},s.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)},s.prototype.resizeEndHandler=function(e){var n,r,i,o=this,t=e.event,a=e.start,e=e.end;d.areEqual(a,t.start)&&d.areEqual(e,t.end)||(n=t.dataItem,r=this.scheduler.modelFields,i={},l.setField(i,r.start,a),l.setField(i,r.end,e),this.editService.isRecurring(n)?this.dialogsService.openRecurringConfirmationDialog(0).subscribe(function(e){var t=n;2===e?(t=o.editService.findRecurrenceMaster(n),l.setField(i,r.start,d.seriesDate(t,n,i,r.start)),l.setField(i,r.end,d.seriesDate(t,n,i,r.end))):void 0!==e&&(i=l.assignValues(l.clone(n),i)),o.handleUpdate(t,i,e)}):this.editService.update(n,i))},s.prototype.dragEndHandler=function(e){var n=this,r=e.event.dataItem,t=e.start,i=e.end,o=e.resources,a=e.isAllDay,s=this.scheduler.modelFields,e=l.groupResources(this.scheduler.group,this.scheduler.resources).map(function(e){return e.field}),e=[s.start,s.end,s.isAllDay].concat(e),c=l.clone(o);l.setField(c,s.start,t),l.setField(c,s.end,i),l.setField(c,s.isAllDay,a),d.diff(r,c,e)&&(this.editService.isRecurring(r)?this.dialogsService.openRecurringConfirmationDialog(0).subscribe(function(e){var t=r;2===e?(t=n.editService.findRecurrenceMaster(r),l.setField(c,s.start,d.seriesDate(t,r,c,s.start)),l.setField(c,s.end,d.seriesDate(t,r,c,s.end))):void 0!==e&&(c=l.assignValues(l.clone(r),c)),n.handleUpdate(t,c,e)}):this.editService.update(r,c))},s.prototype.isEnabled=function(e){var t=this.scheduler.editable;return t&&!1!==t[e]},r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],s.prototype,"add",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],s.prototype,"edit",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],s.prototype,"editService",null),s);function s(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}t.EditingDirectiveBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(1),a=n(26),s=n(118),c=n(42),l=n(67),d=n(41),u=n(30),p=n(17),d=(i=s.EditingDirectiveBase,r.__extends(h,i),h.prototype.ngOnInit=function(){i.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)))},h.prototype.editHandler=function(e){var t,n,r=this;this.isEnabled("edit")&&(t=new u.EditEvent(this.scheduler,{dataItem:e.event.dataItem,event:e.event}),this.edit.emit(t),t.isDefaultPrevented()||(n=e.event.dataItem,this.editService.isRecurring(n)?this.dialogsService.openRecurringConfirmationDialog(0).pipe(p.filter(function(e){return void 0!==e})).subscribe(function(e){2===e&&(n=r.editService.findRecurrenceMaster(n));var t=r.createModel({action:"edit",isNew:!1,mode:e,dataItem:n});r.scheduler.editEvent(n,{group:t,mode:e})}):(e=this.createModel({action:"edit",isNew:!1,mode:0,dataItem:n}),this.scheduler.editEvent(n,{group:e}))))},h.prototype.saveHandler=function(e){var t;this.isFormValid(e)&&(t=e.formGroup.value,e.isNew?this.editService.create(t):this.handleUpdate(e.dataItem,t,e.mode)),this.closeEditor()},h.prototype.createModel=function(e){return e.event=e.dataItem,this.createFormGroup(e)},h.prototype.isFormValid=function(e){var t=e.formGroup,e=e.isNew;return!!t.valid||!(!t.dirty&&!e)&&(l.markAllAsTouched(t),!1)},r.__decorate([o.Input("kendoSchedulerReactiveEditing"),r.__metadata("design:type",Function)],h.prototype,"createFormGroup",void 0),r.__decorate([o.Directive({selector:"[kendoSchedulerReactiveEditing]"}),r.__metadata("design:paramtypes",[a.SchedulerComponent,c.LocalDataChangesService,d.DialogsService])],h));function h(e,t,n){var r=i.call(this,e,t,n)||this;return r.scheduler=e,r.localDataChangesService=t,r.dialogsService=n,r}t.ReactiveEditingDirective=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r,i=n(0),a=n(1),s=n(2),c=n(11),l=n(31),d=n(10),u=n(7),p=n(4),u=(o=l.TimelineBase,i.__extends(h,o),r=h,Object.defineProperty(h.prototype,"title",{get:function(){return this.localization.get("timelineMonthViewTitle")},enumerable:!0,configurable:!0}),i.__decorate([a.Input(),i.__metadata("design:type",String)],h.prototype,"selectedDateFormat",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],h.prototype,"selectedShortDateFormat",void 0),r=i.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-timeline-month-view",providers:[{provide:c.SchedulerView,useExisting:a.forwardRef(function(){return r})}],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 '}),i.__metadata("design:paramtypes",[s.LocalizationService,a.ChangeDetectorRef,d.ViewContextService,u.ViewStateService])],h));function h(e,t,n,r){var i=o.call(this,e,t,n,r)||this;return i.selectedDateFormat="{0:Y}",i.selectedShortDateFormat="{0:y}",i.name="timelineMonth",i.getStartDate=function(e){return p.firstDayOfMonth(p.getDate(e))},i.getEndDate=function(e){return p.addMonths(i.getStartDate(e),1)},i.getNextDate=function(e,t){return p.addMonths(e,t)},i}t.TimelineMonthViewComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,r,i=n(0),o=n(1),s=n(2),c=n(11),l=n(31),d=n(6),u=n(4),p=n(10),n=n(7),n=(a=l.TimelineBase,i.__extends(h,a),r=h,Object.defineProperty(h.prototype,"title",{get:function(){return this.localization.get("timelineWeekViewTitle")},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",String)],h.prototype,"selectedDateFormat",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],h.prototype,"selectedShortDateFormat",void 0),r=i.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-timeline-week-view",providers:[{provide:c.SchedulerView,useExisting:o.forwardRef(function(){return r})}],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 '}),i.__metadata("design:paramtypes",[d.IntlService,s.LocalizationService,o.ChangeDetectorRef,p.ViewContextService,n.ViewStateService])],h));function h(e,t,n,r,i){var o=a.call(this,t,n,r,i)||this;return o.intl=e,o.selectedDateFormat="{0:D} - {1:D}",o.selectedShortDateFormat="{0:d} - {1:d}",o.name="timelineWeek",o.getStartDate=function(e){return u.firstDayInWeek(u.getDate(e),o.viewWeekStart)},o}t.TimelineWeekViewComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o=n(0),a=n(1),s=n(2),c=n(11),l=n(31),d=n(10),n=n(7),n=(i=l.TimelineBase,o.__extends(u,i),r=u,Object.defineProperty(u.prototype,"title",{get:function(){return this.localization.get("timelineViewTitle")},enumerable:!0,configurable:!0}),o.__decorate([a.Input(),o.__metadata("design:type",String)],u.prototype,"selectedDateFormat",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],u.prototype,"selectedShortDateFormat",void 0),r=o.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-timeline-view",providers:[{provide:c.SchedulerView,useExisting:a.forwardRef(function(){return r})}],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 '}),o.__metadata("design:paramtypes",[s.LocalizationService,a.ChangeDetectorRef,d.ViewContextService,n.ViewStateService])],u));function u(e,t,n,r){r=i.call(this,e,t,n,r)||this;return r.selectedDateFormat="{0:D}",r.selectedShortDateFormat="{0:d}",r.name="timeline",r}t.TimelineViewComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d=n(5);t.createTasks=function(e,t,n){for(var r=[],i=d.toUTCDate(e),o=d.toUTCDate(t),a=0;a<n.length;a++){var s=n[a],c=s.event,l={index:a,start:s.start,end:s.end,event:c,isAllDay:!1},s=c.isAllDay?d.roundAllDayEnd(s):l.end,c=c.isAllDay?l.start.stripTime():l.start;l.startTime=c.toUTCDate(),l.endTime=s.toUTCDate(),d.intersects(l.startTime,l.endTime,i,o)&&(r.push(l),l.head=l.endTime>t,l.tail=l.startTime<e)}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d,r=n(0),i=n(1),o=n(6),a=n(2),s=n(10),c=n(7),l=n(28),u=n(123),p=n(5),h=n(69),n=n(15),n=(d=h.DayTimeViewComponent,r.__extends(m,d),Object.defineProperty(m.prototype,"classNames",{get:function(){return"k-scheduler-"+this.viewName+"-view"},enumerable:!0,configurable:!0}),m.prototype.ngOnChanges=function(e){e.columnWidth&&this.changes.next(null),d.prototype.ngOnChanges.call(this,e)},m.prototype.reflow=function(){var e=this.slotService;this.updateContentHeight(),e.containerSize=this.content.nativeElement.scrollWidth;var n=this.verticalResources.length?this.verticalResourceRows.toArray():[];e.layoutTimeline(this.eventHeight,n),n.length&&e.forEachGroup(function(e,t){n[t].nativeElement.style.height=e.timeRanges[0].slots[0].height+"px"}),this.syncTables()},Object.defineProperty(m.prototype,"allEventsMessage",{get:function(){return this.localization.get("allEvents")},enumerable:!0,configurable:!0}),Object.defineProperty(m.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}),m.prototype.timeColspan=function(e){var t=this.timeSlots.length,n=t%this.slotDivisions;return 0==n||e<t-n?this.slotDivisions:1},m.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},m.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},m.prototype.createTasks=function(e,t){return u.createTasks(t.start,t.end,e)},m.prototype.onTasksChange=function(){this.items.next(this.tasks)},m.prototype.dragRanges=function(e){return this.slotService.dragRanges(e,this.dragging.offset,!0)},m.prototype.dragHintSize=function(e,t){return{width:p.toPx(t.rect.left-e.rect.left+t.rect.width),height:p.toPx(e.height)}},m.prototype.updateResizeHints=function(e,t,n){var r=e[e.length-1];d.prototype.updateResizeHints.call(this,[[e[0][0],r[r.length-1]]],t,n)},m.prototype.pdfWidth=function(){return this.content.nativeElement.scrollWidth+this.times.nativeElement.offsetWidth},m.prototype.currentTimeArrowOffset=function(){return this.headerWrap.nativeElement.querySelector("tr:last-child").offsetTop},r.__decorate([i.Input(),r.__metadata("design:type",String)],m.prototype,"name",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],m.prototype,"columnWidth",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],m.prototype,"viewName",void 0),r.__decorate([i.ViewChildren("verticalResourceRows"),r.__metadata("design:type",i.QueryList)],m.prototype,"verticalResourceRows",void 0),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" #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 [id]="{ resourceIndex: verticalResources.length ? verticalIndex : horizontalIndex, rangeIndex: rangeIndex, index: index }"\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,n.PDFService])],m));function m(e,t,n,r,i,o,a,s,c,l){e=d.call(this,t,n,r,i,o,a,s,c,l,e)||this;return e.name="timeline",e.columnWidth=100,e.viewName="timeline",e.verticalTime=!1,e}t.TimelineMultiDayViewComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(124),a=n(122),s=n(121),c=n(120),l=n(68),n=n(34),c=[a.TimelineViewComponent,s.TimelineWeekViewComponent,c.TimelineMonthViewComponent],o=r.__decorate([i.NgModule({imports:[l.DayTimeModule,n.ViewsSharedModule],exports:[c],declarations:c.concat([o.TimelineMultiDayViewComponent])})],d);function d(){}t.TimelineViewModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o=n(0),a=n(1),n=n(11),a=(r=n.SchedulerView,o.__extends(s,r),i=s,Object.defineProperty(s.prototype,"name",{get:function(){return this._name||this.title},set:function(e){this._name=e},enumerable:!0,configurable:!0}),o.__decorate([a.Input("kendoSchedulerView"),o.__metadata("design:type",String)],s.prototype,"title",void 0),o.__decorate([a.Input("kendoSchedulerViewName"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],s.prototype,"name",null),i=o.__decorate([a.Directive({providers:[{provide:n.SchedulerView,useExisting:a.forwardRef(function(){return i})}],selector:"[kendoSchedulerView]"}),o.__metadata("design:paramtypes",[a.TemplateRef])],s));function s(e){var t=r.call(this)||this;return t.template=e,t}t.SchedulerViewDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,r=n(0),i=n(1),o=n(6),a=n(2),c=n(4),l=n(20),d=n(28),i=(s=n(75).BaseViewItem,r.__extends(u,s),Object.defineProperty(u.prototype,"eventTime",{get:function(){return this.intlService.format("{0:t}–{1:t}",c.toLocalDate(this.item.startTime),c.toLocalDate(this.item.endTime))},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],u.prototype,"vertical",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],u.prototype,"isAllDay",void 0),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,d.DayTimeSlotService,a.LocalizationService,l.FocusService,i.ElementRef,i.Renderer2,String])],u));function u(e,t,n,r,i,o,a){o=s.call(this,t,n,r,i,o,a)||this;return o.intlService=e,o.localeId=a,o}t.DayTimeViewItemComponent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),o=n(1),a=n(73),s=n(5),c=n(28),l=n(2),d=n(18),n=(r=a.BaseSlotDirective,i.__extends(u,r),Object.defineProperty(u.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(u.prototype,"startLocalTime",{get:function(){return this.date&&this.invariantStart?s.dateWithTime(this.date,this.invariantStart):null},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"endLocalTime",{get:function(){return this.date&&this.invariantEnd?s.dateWithTime(this.date,this.invariantEnd):null},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"start",{get:function(){return this.date&&this.invariantStart?s.toUTCTime(this.date,this.invariantStart):null},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"end",{get:function(){if(!this.date||!this.invariantEnd)return null;var e=s.toUTCTime(this.date,this.invariantEnd);return d.INVARIANT_END.getTime()<=this.invariantEnd.getTime()?s.addUTCDays(e,1):e},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",Date)],u.prototype,"invariantStart",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],u.prototype,"invariantEnd",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],u.prototype,"workDayStart",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],u.prototype,"workDayEnd",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],u.prototype,"workWeekStart",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],u.prototype,"workWeekEnd",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],u.prototype,"date",void 0),i.__decorate([o.HostBinding("class.k-nonwork-hour"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],u.prototype,"nonWorkHour",null),i.__decorate([o.Directive({selector:"[timeSlot]",exportAs:"timeSlot"}),i.__metadata("design:paramtypes",[o.ElementRef,c.DayTimeSlotService,l.LocalizationService])],u));function u(e,t,n){n=r.call(this,e,t,n)||this;return n.isDaySlot=!1,n}t.TimeSlotDirective=n;var p,l=(p=a.BaseSlotDirective,i.__extends(h,p),Object.defineProperty(h.prototype,"start",{get:function(){return this.startDate?s.toUTCDate(this.startDate):null},set:function(e){this.startDate=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"end",{get:function(){return this.endDate?s.toUTCDate(this.endDate):null},set:function(e){this.endDate=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"daySlot",{get:function(){return!0},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],h.prototype,"start",null),i.__decorate([o.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],h.prototype,"end",null),i.__decorate([o.HostBinding("attr.data-day-slot"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],h.prototype,"daySlot",null),i.__decorate([o.Directive({selector:"[daySlot]"}),i.__metadata("design:paramtypes",[o.ElementRef,c.DayTimeSlotService,l.LocalizationService])],h));function h(e,t,n){n=p.call(this,e,t,n)||this;return n.isDaySlot=!0,n}t.DaySlotDirective=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=n(5),m=n(18);t.createTimeSlots=function(e,t){var n=t.showWorkHours,r=t.startTime,i=t.endTime,o=t.workDayStart,a=t.workDayEnd,s=t.slotDivisions,t=t.slotDuration,r=e.parseDate(n?o:r),r=h.toInvariantTime(r).getTime(),i=e.parseDate(n?a:i),c=h.toInvariantTime(i).getTime();c<=r&&(c=h.toInvariantTime(m.MIDNIGHT_INVARIANT).getTime()+m.MS_PER_DAY);for(var l=[],d=Math.round(t/s*m.MS_PER_MINUTE),u=r,p=0;u<c;)l.push({start:new Date(u),end:new Date(u+d),isMajor:p%s==0}),p++,u+=d;return l}},function(e,v,t){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var _=t(5),b=t(4),k=t(3);v.isMultiDay=function(e){var t=e.start,n=e.end,e=t.stripTime(),t=n.stripTime();return e.getTime()!==t.getTime()&&(t.getTime()!==n.getTime()||e.addDays(1).getTime()!==t.getTime())},v.createTasks=function(e,t,n,r){for(var i=[],o=_.toUTCDate(e),a=_.toUTCDate(t),s=0;s<n.length;s++)for(var c=n[s],l=v.isMultiDay(c),d=l&&!c.event.isAllDay&&c.end.getTime()-c.start.getTime()<b.MS_PER_DAY,u=c.event.isAllDay||l&&!d,p=(u?_.roundAllDayEnd(c):c.end).toUTCDate(),h=(u?c.start.stripTime():c.start).toUTCDate(),m=0;m<r.length;m++){var g=r[m].start,y=r[m].end;if(_.intersects(h,p,g,y)){var f={index:s,isAllDay:u,startTime:h,endTime:p,rangeIndex:u?0:m,start:c.start,end:c.end,event:c.event};if(i.push(f),!d){f.head=a<p,f.tail=h<o;break}g=r[m+1],y=r[m-1];f.head=(g?g.start:a)<p,f.tail=h<(y?y.end:o)}}return k.sortTasksByTime(i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d,r=n(0),i=n(1),o=n(6),a=n(2),s=n(8),u=n(9),c=n(10),l=n(7),p=n(28),h=n(130),m=n(69),g=n(35),y=n(5),n=n(15),n=(d=m.DayTimeViewComponent,r.__extends(f,d),Object.defineProperty(f.prototype,"allDaySlotTemplateRef",{get:function(){return this.allDaySlotTemplate||(this.schedulerAllDaySlotTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"allDayEventTemplateRef",{get:function(){return this.allDayEventTemplate||(this.schedulerAllDayEventTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"minorTimeHeaderTemplateRef",{get:function(){return this.minorTimeHeaderTemplate||(this.schedulerMinorTimeHeaderTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"majorTimeHeaderTemplateRef",{get:function(){return this.majorTimeHeaderTemplate||(this.schedulerMajorTimeHeaderTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"allDayMessage",{get:function(){return this.localization.get("allDay")},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"allDayResizeHint",{get:function(){return this.resizing&&this.resizing.task.isAllDay},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"allDayDragHint",{get:function(){return this.dragging&&this.dragging.slot.isDaySlot},enumerable:!0,configurable:!0}),f.prototype.optionsChange=function(e){this.schedulerAllDaySlotTemplate=e.allDaySlotTemplate,this.schedulerAllDayEventTemplate=e.allDayEventTemplate,this.schedulerMinorTimeHeaderTemplate=e.minorTimeHeaderTemplate,this.schedulerMajorTimeHeaderTemplate=e.majorTimeHeaderTemplate,d.prototype.optionsChange.call(this,e)},f.prototype.ngOnChanges=function(e){d.prototype.ngOnChanges.call(this,e),e.slotFill&&this.changes.next(null),s.anyChanged(["startTime","endTime","showWorkHours","workDayStart","workDayEnd","workWeekStart","workWeekEnd"],e)&&this.viewRangeChange.next(null),(s.isChanged("numberOfDays",e,!0)||s.isChanged("weekStart",e))&&(this.daySlots=this.createDaySlots(),this.viewState.notifyDateRange(this.dateRange()))},f.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},f.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},f.prototype.allDaySlotClass=function(e,t){if(this.slotClass)return this.slotClass({start:e.start,end:e.end,resources:this.resourcesByIndex(t),isAllDay:!0})},f.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:y.toUTCTime(e.start,n.start),end:i?y.toUTCDate(e.end):y.toUTCTime(e.start,r)}});return h.createTasks(t.start,t.end,e,o)},f.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}))},f.prototype.reflow=function(){var n,e,t=this.slotService;this.verticalResources.length||(this.updateContentHeight(),this.syncTables()),this.slotService.containerSize=this.content.nativeElement.clientWidth,t.layoutDays(this.eventHeight),this.updateContentHeight(),this.syncTables(),this.dayCells.length&&(n=this.dayCells.toArray(),this.verticalResources.length?t.forEachDateRange(function(e,t){e=e.firstSlot;n[t].nativeElement.style.height=e.rect.height-e.padding+"px"}):(e=t.syncDateRanges(),n[0].nativeElement.style.height=e+"px")),t.layoutTimes({fill:this.slotFill}),this.syncTables()},f.prototype.dragHorizontal=function(e){return e.isDaySlot},f.prototype.updateHintContainer=function(){this.headerHintContainer&&this.headerHintContainer.detectChanges(),d.prototype.updateHintContainer.call(this)},f.prototype.onRelease=function(){d.prototype.onRelease.call(this),this.dragContainers=null},f.prototype.updateDragContainer=function(t){this.dragContainers||(this.dragContainers=this.containers);var e=this.dragContainers.find(function(e){e=e.offset;return e.top<=t.pageY&&t.pageY<=e.top+e.height})||{};this.container=e.element,this.containerOffset=e.offset},f.prototype.containerByPosition=function(e){var t=e.x,n=e.y;return this.containers.find(function(e){e=e.offset;return e.top<=n&&n<=e.top+e.height&&e.left<=t&&t<=e.left+e.width})},Object.defineProperty(f.prototype,"containers",{get:function(){var e=this.headerWrap.nativeElement.children[1],t=this.content.nativeElement;return[{element:t,offset:y.elementOffset(t)},{element:e,offset:y.elementOffset(e)}]},enumerable:!0,configurable:!0}),f.prototype.scrollContainer=function(e,t){clearInterval(this.scrollInterval),this.container&&this.container===this.content.nativeElement&&d.prototype.scrollContainer.call(this,e,t)},f.prototype.dragRanges=function(e){var t=this.dragging.task;if(e.isDaySlot&&!t.isAllDay)return{ranges:[[e]],start:y.dateWithTime(e.start,t.start.toUTCDate()),end:y.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},f.prototype.dragHintEventStyleArgs=function(){return{event:this.dragging.task.event,resources:this.dragging.resourceItems,isAllDay:Boolean(this.allDayDragHint)}},f.prototype.draggedIsAllDay=function(e,t){return Boolean(t.isDaySlot&&(e.event.isAllDay||!h.isMultiDay(e)))},f.prototype.dragHintSize=function(e,t){var n,t=e.isDaySlot?(n=y.toPx(t.rect.left-e.rect.left+t.rect.width),y.toPx(e.height)):(n=y.toPx(.9*e.rect.width),y.toPx(this.dragging.task.isAllDay?e.rect.height:t.rect.top-e.rect.top+t.rect.height));return{width:n,height:t}},f.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)],f.prototype,"name",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],f.prototype,"slotFill",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],f.prototype,"allDaySlotTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],f.prototype,"allDayEventTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],f.prototype,"minorTimeHeaderTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],f.prototype,"majorTimeHeaderTemplate",void 0),r.__decorate([i.ViewChildren("allDayCell"),r.__metadata("design:type",i.QueryList)],f.prototype,"dayCells",void 0),r.__decorate([i.ViewChild("headerHintContainer",{static:!1}),r.__metadata("design:type",g.HintContainerComponent)],f.prototype,"headerHintContainer",void 0),r.__decorate([i.Component({selector:"multi-day-view",providers:[p.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" 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 [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" #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 [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 >\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,c.ViewContextService,l.ViewStateService,o.IntlService,p.DayTimeSlotService,i.NgZone,i.Renderer2,i.ElementRef,i.ChangeDetectorRef,n.PDFService])],f));function f(e,t,n,r,i,o,a,s,c,l){e=d.call(this,c,t,n,r,i,o,a,s,l,e)||this;return e.name="day",e.dateFormat={skeleton:"MEd"},e.allDayResizeHintFormat={skeleton:"Md"},e.allDayItems=new u.BehaviorSubject(null),e}t.MultiDayViewRendererComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r,i=n(0),a=n(1),s=n(2),c=n(11),l=n(32),d=n(6),u=n(10),p=n(7),h=n(4),p=(o=l.WeekViewComponent,i.__extends(m,o),r=m,Object.defineProperty(m.prototype,"title",{get:function(){return this.localization.get("workWeekViewTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"numberOfDays",{get:function(){return this.viewWorkWeekStart>this.viewWorkWeekEnd?7-this.viewWorkWeekStart+this.viewWorkWeekEnd+1:this.viewWorkWeekEnd-this.viewWorkWeekStart+1},enumerable:!0,configurable:!0}),m.prototype.getStartDate=function(e){return h.firstDayInWeek(h.getDate(e),this.viewWorkWeekStart)},m.prototype.getNextDate=function(e,t,n){return h.getDate(h.addDays(e,7*t))},r=i.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-work-week-view",providers:[{provide:c.SchedulerView,useExisting:a.forwardRef(function(){return r})}],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 '}),i.__metadata("design:paramtypes",[d.IntlService,s.LocalizationService,a.ChangeDetectorRef,u.ViewContextService,p.ViewStateService])],m));function m(e,t,n,r,i){i=o.call(this,e,t,n,r,i)||this;return i.name="workWeek",i.getNextDate=i.getNextDate.bind(i),i}t.WorkWeekViewComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o=n(0),a=n(1),s=n(2),c=n(11),l=n(10),d=n(7),d=(i=n(33).DayViewComponent,o.__extends(u,i),r=u,Object.defineProperty(u.prototype,"selectedDateFormat",{get:function(){return this.dateFormat||this.defaultDateFormat},set:function(e){this.dateFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"selectedShortDateFormat",{get:function(){return this.shortDateFormat||this.defaultShortDateFormat},set:function(e){this.shortDateFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"title",{get:function(){return this.localization.get("multiDayViewTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"defaultDateFormat",{get:function(){return 1===this.numberOfDays?"{0:D}":"{0:D} - {1:D}"},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"defaultShortDateFormat",{get:function(){return 1===this.numberOfDays?"{0:d}":"{0:d} - {1:d}"},enumerable:!0,configurable:!0}),o.__decorate([a.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],u.prototype,"selectedDateFormat",null),o.__decorate([a.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],u.prototype,"selectedShortDateFormat",null),o.__decorate([a.Input(),o.__metadata("design:type",Number)],u.prototype,"numberOfDays",void 0),r=o.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-multi-day-view",providers:[{provide:c.SchedulerView,useExisting:a.forwardRef(function(){return r})}],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 '}),o.__metadata("design:paramtypes",[s.LocalizationService,a.ChangeDetectorRef,l.ViewContextService,d.ViewStateService])],u));function u(e,t,n,r){r=i.call(this,e,t,n,r)||this;return r.numberOfDays=1,r.name="multiDay",r}t.MultiDayViewComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(33),a=n(133),s=n(32),c=n(132),l=n(131),d=n(68),n=n(34),c=[o.DayViewComponent,a.MultiDayViewComponent,s.WeekViewComponent,c.WorkWeekViewComponent],l=r.__decorate([i.NgModule({imports:[n.ViewsSharedModule,d.DayTimeModule],exports:[c],declarations:c.concat([l.MultiDayViewRendererComponent])})],u);function u(){}t.MultiDayViewModule=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(4),i=(Object.defineProperty(a.prototype,"left",{get:function(){return this.hint.rect.left},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"top",{get:function(){return this.hint.rect.top},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"width",{get:function(){return this.hint.rect.width},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"height",{get:function(){return this.hint.rect.height},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"start",{get:function(){return o.toLocalDate(this.hint.start)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"end",{get:function(){return o.toLocalDate(this.hint.end)},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",Object)],a.prototype,"hint",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],a.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)],a.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",[])],a.prototype,"left",null),r.__decorate([i.HostBinding("style.top.px"),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[])],a.prototype,"top",null),r.__decorate([i.HostBinding("style.width.px"),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[])],a.prototype,"width",null),r.__decorate([i.HostBinding("style.height.px"),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[])],a.prototype,"height",null),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 '})],a));function a(){this.marqueeClasses=!0}t.ResizeHintComponent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),r=n(1),n=n(3),i=(a.prototype[n.iterator]=function(){var t,n,r,i,o,a;return s.__generator(this,function(e){switch(e.label){case 0:for(t=this.resources,n=Math.max(0,this.lastIndex),t&&t.length||(t=[{}]),r=t[n].data||[],i=r.length,o=1,a=0;a<=n;a++)o*=(t[a].data||[]).length||1;a=0,e.label=1;case 1:return a<o?[4,r[a%i]]:[3,4];case 2:e.sent(),e.label=3;case 3:return a++,[3,1];case 4:return[2]}})},a),r=(o.prototype.transform=function(e,t){return new i(e=void 0===e?[]:e,t)},s.__decorate([r.Pipe({name:"resourceIterator"})],o));function o(){}function a(e,t){void 0===t&&(t=e.length-1),this.resources=e,this.lastIndex=t}t.ResourceIteratorPipe=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),n=n(3),o=(s.prototype[n.iterator]=function(){var t;return r.__generator(this,function(e){switch(e.label){case 0:t=0,e.label=1;case 1:return t<this.count?[4,t]:[3,4];case 2:e.sent(),e.label=3;case 3:return t++,[3,1];case 4:return[2]}})},s),i=(a.prototype.transform=function(e){return new o(e)},r.__decorate([i.Pipe({name:"repeat"})],a));function a(){}function s(e){this.count=e}t.RepeatPipe=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(72),n=n(2),n=(a.prototype.ngOnInit=function(){this.toggleWorkHours(),this.footer.items=this.footerItems},a.prototype.ngOnChanges=function(){this.toggleWorkHours()},a.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)],a.prototype,"showWorkHours",void 0),r.__decorate([i.Directive({selector:"[kendoWorkHoursFooter]"}),r.__metadata("design:paramtypes",[o.ViewFooterComponent,n.LocalizationService])],a));function a(e,t){this.footer=e,this.localization=t,this.showWorkHours=!1,this.footerItems=[{cssClass:"k-scheduler-fullday",iconClass:"k-i-clock",text:""}]}t.WorkHoursFooterDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),o=n(1),a=n(2),s=n(73),c=n(36),l=n(14),d=n(5),a=(r=s.BaseSlotDirective,i.__extends(u,r),Object.defineProperty(u.prototype,"start",{get:function(){return this.startDate},set:function(e){this.startDate=d.toUTCDate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"end",{get:function(){return d.addUTCDays(this.start,1)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"linkHeight",{get:function(){var e;return null===this._linkHeight&&(e=l.firstElementChild(this.nativeElement),this._linkHeight=e?e.offsetHeight+e.offsetTop:0),this._linkHeight},enumerable:!0,configurable:!0}),u.prototype.ngOnDestroy=function(){r.prototype.ngOnDestroy.call(this),this.removeShowMore()},u.prototype.showMore=function(e){var t;this.showMoreElement||((t=this.showMoreElement=document.createElement("div")).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))},u.prototype.hideMore=function(){this.removeShowMore()},u.prototype.invalidate=function(){r.prototype.invalidate.call(this),this._linkHeight=null,this.removeShowMore()},u.prototype.removeShowMore=function(){this.showMoreElement&&(this.showMoreElement.parentNode.removeChild(this.showMoreElement),this.showMoreElement=null)},i.__decorate([o.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],u.prototype,"start",null),i.__decorate([o.Directive({selector:"[monthSlot]"}),i.__metadata("design:paramtypes",[o.ElementRef,c.MonthSlotService,a.LocalizationService])],u));function u(e,t,n){n=r.call(this,e,t,n)||this;return n.isDaySlot=!0,n._linkHeight=null,n}t.MonthSlotDirective=a},function(e,t){e.exports=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=n(5),v=n(3);t.createTasks=function(e,t,n,r){for(var i=[],o=f.toUTCDate(e),a=f.toUTCDate(t),s=0;s<n.length;s++){var c=n[s],l={},d=c.start.toUTCDate(),u=c.end,p=(c.end.getTime()!==u.getTime()?u.addDays(1):u).toUTCDate();if(f.intersects(d,p,o,a))for(var h=0;h<r.length;h++){var m=r[h],g=f.toUTCDate(m[0]),y=f.addUTCDays(f.toUTCDate(m[m.length-1]),1);f.intersects(d,p,g,y)&&(m={index:s,startTime:d,endTime:p,start:c.start,end:c.end,event:c.event,isAllDay:c.event.isAllDay,rangeIndex:h,data:l},i.push(m),m.head=m.endTime>y,m.tail=m.startTime<g)}}return v.sortTasksByTime(i)},t.updateTaskData=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.resources;!function(e){var t,n=e.data;for(t in n)n.hasOwnProperty(t)&&delete n[t]}(n);for(var i=0;i<r.length;i++)n.data[r[i].leafIdx]={}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,r=n(0),i=n(1),o=n(6),a=n(8),s=n(4),c=n(10),d=n(7),u=n(14),p=n(36),h=n(141),m=n(5),g=n(74),y=n(15),n=n(2),n=(l=g.BaseView,r.__extends(f,l),Object.defineProperty(f.prototype,"monthDaySlotTemplateRef",{get:function(){return this.monthDaySlotTemplate||(this.schedulerMonthDaySlotTemplate||{}).templateRef},enumerable:!0,configurable:!0}),f.prototype.ngOnChanges=function(e){a.isChanged("weekStart",e)&&this.onSelectDate(this.selectedDate),l.prototype.ngOnChanges.call(this,e)},f.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},f.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},f.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]},f.prototype.daySlotClass=function(e,t){if(this.slotClass)return this.slotClass({start:e,end:s.addDays(e,1),resources:this.resourcesByIndex(t),isAllDay:!1})},f.prototype.optionsChange=function(e){this.schedulerMonthDaySlotTemplate=e.monthDaySlotTemplate,l.prototype.optionsChange.call(this,e)},f.prototype.createTasks=function(e,t){return this.weeks=this.createDaySlots(t),h.createTasks(t.start,t.end,e,this.weeks)},f.prototype.onTasksChange=function(){h.updateTaskData(this.tasks),this.items.next(this.tasks)},f.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()},f.prototype.onClick=function(e,t){var n=this;if("click"===(t=void 0===t?e.type:t)){var r=u.closestInScope(e.target,function(e){return e.hasAttribute("data-slot-index")},this.element.nativeElement),i=u.closestInScope(e.target,function(e){return u.hasClasses(e,"k-more-events k-nav-day")},r);if(r&&i){var r=r.getAttribute("data-slot-index"),o=this.slotService.slotByIndex(r);return void this.zone.run(function(){n.viewState.navigateTo({viewName:"day",date:s.toLocalDate(o.start)})})}}l.prototype.onClick.call(this,e,t)},f.prototype.slotByIndex=function(e,t){return this.slotService.slotByIndex(e)},f.prototype.onSelectDate=function(e){var t=this.dateRange(e);this.selectedDate=e,this.viewState.notifyDateRange(t),this.weeks=this.createDaySlots(t)},f.prototype.onAction=function(e){var t,n=s.getDate(this.selectedDate);"next"===e.type&&(t=s.firstDayOfMonth(s.addMonths(n,1)),this.isInRange(t)&&this.viewState.notifyNextDate(t)),"prev"===e.type&&(t=s.firstDayOfMonth(s.addMonths(n,-1)),this.isInRange(t)&&this.viewState.notifyNextDate(t))},f.prototype.dateRange=function(e){void 0===e&&(e=this.selectedDate);var t=s.firstDayOfMonth(s.getDate(e)),e=s.firstDayInWeek(t,this.weekStart);return{start:e,end:s.addDays(e,42),text:this.intl.format(this.selectedDateFormat,t),shortText:this.intl.format(this.selectedShortDateFormat,t)}},f.prototype.dragRanges=function(e){return this.slotService.dragRanges(e,this.dragging.offset)},f.prototype.dragHintSize=function(e,t){return{width:m.toPx(t.rect.left-e.rect.left+t.rect.width),height:m.toPx(e.height)}},f.prototype.slotByPosition=function(e,t){return this.slotService.slotByPosition(e,t)},f.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)],f.prototype,"monthDaySlotTemplate",void 0),r.__decorate([i.Component({selector:"month-view",providers:[p.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" #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 >\n <span 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,d.ViewStateService,o.IntlService,p.MonthSlotService,i.NgZone,i.ElementRef,i.Renderer2,y.PDFService,n.LocalizationService])],f));function f(e,t,n,r,i,o,a,s,c){c=l.call(this,e,t,n,r,i,a,o,s,c)||this;return c.resizeHintFormat={skeleton:"Md"},c.weeks=[],c}t.MonthViewRendererComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o=n(0),a=n(1),s=n(2),c=n(11),l=n(38),d=n(10),u=n(7),p=n(19),h=n(18),m=n(3),u=(i=l.ConfigurationViewBase,o.__extends(g,i),r=g,Object.defineProperty(g.prototype,"title",{get:function(){return this.localization.get("monthViewTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"viewEventHeight",{get:function(){return m.isPresent(this.eventHeight)?this.eventHeight:this.schedulerOptions.eventHeight||h.DEFAULT_EVENT_HEIGHT},enumerable:!0,configurable:!0}),o.__decorate([a.Input(),o.__metadata("design:type",Number)],g.prototype,"eventHeight",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],g.prototype,"selectedDateFormat",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],g.prototype,"selectedShortDateFormat",void 0),o.__decorate([a.ContentChild(p.MonthDaySlotTemplateDirective,{static:!1}),o.__metadata("design:type",p.MonthDaySlotTemplateDirective)],g.prototype,"monthDaySlotTemplate",void 0),r=o.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-month-view",providers:[{provide:c.SchedulerView,useExisting:a.forwardRef(function(){return r})}],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 '}),o.__metadata("design:paramtypes",[s.LocalizationService,a.ChangeDetectorRef,d.ViewContextService,u.ViewStateService])],g));function g(e,t,n,r){r=i.call(this,e,t,n,r)||this;return r.selectedDateFormat="{0:Y}",r.selectedShortDateFormat="{0:y}",r.name="month",r}t.MonthViewComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,r=n(0),i=n(1),o=n(2),s=n(36),c=n(75),n=n(20),i=(a=c.BaseViewItem,r.__extends(l,a),l.prototype.reflow=function(){this.item.data[this.resourceIndex].hidden?this.toggle(!1):a.prototype.reflow.call(this)},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,n.FocusService,i.ElementRef,i.Renderer2,String])],l));function l(e,t,n,r,i,o){i=a.call(this,e,t,n,r,i,o)||this;return i.localeId=o,i}t.MonthViewItemComponent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(144),a=n(143),s=n(142),c=n(139),n=n(34),c=r.__decorate([i.NgModule({imports:[n.ViewsSharedModule],exports:[a.MonthViewComponent],declarations:[a.MonthViewComponent,s.MonthViewRendererComponent,o.MonthViewItemComponent,c.MonthSlotDirective]})],l);function l(){}t.MonthViewModule=c},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=t(0),n=t(37),i=t(3),t=function(n){return function(t){return function(e){return n(e,t)}}},a=t(n.orderBy),s=t(n.groupBy);function c(t){var n,r,i;return o.__generator(this,function(e){switch(e.label){case 0:n=0,e.label=1;case 1:return n<t.length?[4,{type:"group",dataItem:r=t[n],rowSpan:r.items.length}]:[3,7];case 2:e.sent(),i=1,e.label=3;case 3:return i<r.items.length?[4,{type:"event",dataItem:r.items[i]}]:[3,6];case 4:e.sent(),e.label=5;case 5:return i++,[3,3];case 6:return n++,[3,1];case 7:return[2]}})}r.compose=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}},r.processEvents=function(e,t){return r.compose(s([{field:"startDate"}]),a([{field:"start",dir:"asc"},{field:"end",dir:"asc"}]))};var l=(d.prototype[i.iterator]=function(){return{next:function(){return{done:!0,value:null}}}},d.prototype.toString=function(){return"Empty Iterator"},d);function d(){}r.EmptyIterator=l;u.empty=function(){return new l},u.prototype[i.iterator]=function(){return this.createIterator(this.events)},u.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}}while(r++,t)},u.prototype.toString=function(){return this.events.toString()},i=u;function u(e,t,n){this.start=e,this.end=t,this.events=n,this.createIterator=r.compose(c,r.processEvents(this.start,this.end))}r.TaskCollection=i},function(e,b,t){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var l=t(0),k=t(146),r=t(4),D=t(5),p=t(3);b.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:[p.getField(o,n.textField)]})}for(var a=1;a<e.length;a++){for(var s=e[a],c=s.data,l=[],d=0;d<t.length;d++)for(var u=t[d],i=0;i<c.length;i++)o=c[i],l.push({resources:u.resources.concat(p.getField(o,s.textField))});t=l}return t};function c(e){var t=e.start,n=e.end,n=(e=void 0!==(e=e.isAllDay)&&e)?D.getUTCDate(n):n,t=Math.ceil((n-+D.getUTCDate(t))/r.MS_PER_DAY);return e?t+1:t}function i(n){var r=n.length;return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r===e.length?n.apply(null,e):i(n.bind.apply(n,[null].concat(e)))}}function d(s,c){return function(e,t,n,r){return e.concat(k.compose(u,(o=e.length?e[e.length-1].end:c,a=s.end,function(e){return l.__assign({},e,{start:D.getUTCDate(o),end:e.tail&&!e.isAllDay?a:D.addUTCDays(o,1),startDate:D.getUTCDate(o)})}),(i=n===r.length-1,function(e){return i&&(e.tail=!0),e}))(s));var i,o,a}}var u=function(e){return e.tail||(e.mid=!0),e};b.splitTasks=i(function(t,n,e){for(var r,i,o=[],a=0;a<e.length;a++){var s=l.__assign({},e[a]);s.startDate=D.getUTCDate(s.start),s.start>=t&&s.start<=n&&o.push(s),1<c(s)&&(s.end=D.addUTCDays(s.startDate,1),s.head=!0,o.push.apply(o,(r=l.__assign({},e[a]),i=s.end,s=void 0,s=c(r)-1,Array.from(new Array(s).keys()).reduce(d(r,i),[]).filter(function(e){return D.getUTCDate(e.end)<=n&&e.start>=t}))))}return o}),b.groupEvents=function(e,t){for(var n,r,i,o,a=t.taskResources,s=t.resourceGroups,c=t.spans,l=t.allResources,t=t.dateRange,h=s||[{}],d=D.toUTCDate(t.start),u=D.toUTCDate(t.end),p=0;p<e.length;p++){var m=e[p],g=m.event;if(D.intersects(m.start.toUTCDate(),m.end.toUTCDate(),d,u)){var y=D.eventResources(g,{taskResources:a,hasGroups:s&&0<s.length,spans:c,allResources:l});if(y.length&&0<=y[0].leafIdx)for(var f=0;f<y.length;f++){var v=y[f],_=(n=m,r=v.leafIdx,_=v.resources,i=v.color,o=void 0,{event:o=n.event,start:n.start.toUTCDate(),end:n.end.toUTCDate(),title:o.title,isAllDay:o.isAllDay,color:i,resourceIdx:r,resources:_});(h[v.leafIdx].tasks=h[v.leafIdx].tasks||[]).push(_)}}}return s?function(e,t){var r=h.filter(function(e){return e.tasks&&e.tasks.length});if(!r.length)return[];for(var n=r[0].resources.map(function(e){return{value:e,span:0,groupIdx:0}}),i=D.toUTCDate(t.start),o=D.toUTCDate(t.end),a=0;a<r.length;a++){var s=r[a];s.tasks=b.splitTasks(i,o,s.tasks);var c=s.tasks.length;s.tasks=new k.TaskCollection(i,o,s.tasks);for(var l=!1,d=0;d<e.length;d++){var u,p=n[d];p.value!==s.resources[d]||l?(p.value=s.resources[d],(u=r[p.groupIdx]).spans=u.spans||[],u.spans[d]=p.span,p.span=c,p.groupIdx=a,l=!0):p.span+=c}}return n.forEach(function(e,t){var n=r[e.groupIdx];n.spans=n.spans||[],n.spans[t]=e.span}),r}(a,t):(h[0].tasks=new k.TaskCollection(d,u,b.splitTasks(d,u,h[0].tasks||[])),h)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),l=n(1),i=n(8),o=n(6),a=n(4),c=n(9),s=n(17),d=n(10),u=n(7),p=n(14),h=n(147),m=n(5),g=n(15),n=n(2),n=(Object.defineProperty(y.prototype,"eventTemplateRef",{get:function(){return this.eventTemplate||(this.schedulerEventTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"agendaTimeTemplateRef",{get:function(){return this.agendaTimeTemplate||(this.schedulerAgendaTimeTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"agendaDateTemplateRef",{get:function(){return this.agendaDateTemplate||(this.schedulerAgendaDateTemplate||{}).templateRef},enumerable:!0,configurable:!0}),y.prototype.ngOnInit=function(){var n=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(s.map(function(e){var t=e[0],e=e[1];return n.items=t,n.range=e,n.createEventGroups()})).subscribe(function(e){n.tasks.next(e)})),this.subs.add(this.viewContext.optionsChange.subscribe(this.optionsChange.bind(this))),this.subs.add(c.combineLatest(this.tasks,this.localization.changes).pipe(s.switchMap(function(){return n.zone.onStable.pipe(s.take(1))})).subscribe(this.updateContentHeight)),this.subs.add(this.pdfService.createElement.subscribe(this.createPDFElement.bind(this)))},y.prototype.ngOnChanges=function(e){i.anyChanged(["selectedDateFormat","selectedShortDateFormat","numberOfDays"],e)&&this.viewState.notifyDateRange(this.dateRange(this.selectedDate))},y.prototype.ngAfterViewInit=function(){var e,t=this;this.element&&(e=this.content.nativeElement,this.zone.runOutsideAngular(function(){t.subs.add(c.merge(c.fromEvent(e,"click"),c.fromEvent(e,"contextmenu"),c.fromEvent(e,"dblclick")).subscribe(function(e){return t.onClick(e)})),t.subs.add(c.fromEvent(e,"keydown").subscribe(function(e){return t.onKeydown(e)}))}))},y.prototype.onClick=function(e){var t,n,r,i=this.targetTask(e.target);i&&(t=i.task,n=i.eventTarget,i="dblclick"===(r=e.type),"click"===r&&p.closestInScope(e.target,function(e){return p.hasClasses(e,"k-event-delete")},n)?this.viewState.emitEvent("remove",{event:t.event,dataItem:t.event.dataItem}):this.viewState.emitEvent(i?"eventDblClick":"eventClick",{type:r,event:t.event,originalEvent:e}))},y.prototype.onKeydown=function(e){var t=this.targetTask(e.target);t&&(t=t.task,this.viewState.emitEvent("eventKeydown",{event:t.event,dataItem:t.event.dataItem,originalEvent:e}))},y.prototype.targetTask=function(e){e=p.closestInScope(e,function(e){return e.hasAttribute("data-task-index")},this.element.nativeElement);if(e)return{eventTarget:e,task:this.elementTask(e)}},y.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,n=p.hasScrollbar(n,"vertical")?p.scrollbarWidth():0;this.renderer.setStyle(a,s?"padding-left":"padding-right",n+"px"),this.renderer.setStyle(a,s?"padding-right":"padding-left","0px"),this.viewState.notifyLayoutEnd()},y.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},y.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},y.prototype.onSelectDate=function(e){this.selectedDate=e,this.viewState.notifyDateRange(this.dateRange())},y.prototype.onAction=function(e){var t,n=a.getDate(this.selectedDate);"next"===e.type&&(t=a.getDate(a.addDays(n,this.numberOfDays)),this.isInRange(t)&&this.viewState.notifyNextDate(t)),"prev"===e.type&&(t=a.getDate(a.addDays(n,-this.numberOfDays)),this.isInRange(t)&&this.viewState.notifyNextDate(t))},y.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})},y.prototype.dateRange=function(e){void 0===e&&(e=this.selectedDate);var t=a.getDate(e),n=a.getDate(a.addDays(t,this.numberOfDays)),e=a.getDate(a.addDays(t,this.numberOfDays-1));return{start:t,end:n,text:this.intl.format(this.selectedDateFormat,t,e),shortText:this.intl.format(this.selectedShortDateFormat,t,e)}},y.prototype.groupResources=function(){var n=this.resources||[],r=(this.group||{}).resources,i=this.groupedResources=[];if(r&&r.length)for(var e=0;e<r.length;e++)!function(e){var t=r[e],e=n.find(function(e){return e.name===t});e&&i.push(e)}(e);this.spans=this.resourceSpans()},y.prototype.resourceSpans=function(){for(var e=[1],t=this.groupedResources,n=1,r=t.length-1;0<r;r--)n*=(t[r].data||[]).length||1,e.unshift(n);return e},Object.defineProperty(y.prototype,"taskResources",{get:function(){return this.groupedResources.length?this.groupedResources:this.resources&&this.resources.length?[this.resources[0]]:[{}]},enumerable:!0,configurable:!0}),y.prototype.isInRange=function(e){e=this.dateRange(e);return(!this.min||this.min<e.end)&&(!this.max||e.start<=this.max)},y.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})},y.prototype.elementTask=function(e){var t=parseInt(e.getAttribute("data-task-index"),10),e=parseInt(e.getAttribute("data-group-index"),10);return this.groups[e].tasks.itemAt(t)},y.prototype.execute=function(e){var t;"slotByPosition"===e.name?(t=this.slotByPosition(e.args),e.result(t)):"eventFromElement"!==e.name||(t=this.elementTask(e.args.element))&&e.result(t.event)},y.prototype.slotByPosition=function(e){var t=e.x,n=e.y,r=this.content.nativeElement.querySelector("table"),e=m.elementOffset(r);if(e.top<=n&&n<=e.top+e.height){var i=r.rows;if(i.length){r=m.elementOffset(i[0].cells[i[0].cells.length-1]);if(r.left<=t&&t<=r.left+r.width)for(var o=0;o<i.length;o++){var a=i[o],s=m.elementOffset(a);if(s.top<=n&&n<=s.top+s.height){var c=a.querySelector("[data-task-index]"),s=this.elementTask(c),a=s.event;return{element:new l.ElementRef(c),start:a.start,end:a.end,event:a,resources:s.resources,isAllDay:s.isAllDay}}}}}},r.__decorate([l.Input(),r.__metadata("design:type",l.TemplateRef)],y.prototype,"eventTemplate",void 0),r.__decorate([l.Input(),r.__metadata("design:type",Function)],y.prototype,"slotClass",void 0),r.__decorate([l.Input(),r.__metadata("design:type",Function)],y.prototype,"eventClass",void 0),r.__decorate([l.Input(),r.__metadata("design:type",Function)],y.prototype,"eventStyles",void 0),r.__decorate([l.Input(),r.__metadata("design:type",l.TemplateRef)],y.prototype,"agendaTimeTemplate",void 0),r.__decorate([l.Input(),r.__metadata("design:type",l.TemplateRef)],y.prototype,"agendaDateTemplate",void 0),r.__decorate([l.Input(),r.__metadata("design:type",String)],y.prototype,"selectedDateFormat",void 0),r.__decorate([l.Input(),r.__metadata("design:type",String)],y.prototype,"selectedShortDateFormat",void 0),r.__decorate([l.Input(),r.__metadata("design:type",Number)],y.prototype,"numberOfDays",void 0),r.__decorate([l.ViewChild("headerWrap",{read:l.ElementRef,static:!0}),r.__metadata("design:type",l.ElementRef)],y.prototype,"headerWrap",void 0),r.__decorate([l.ViewChild("content",{read:l.ElementRef,static:!0}),r.__metadata("design:type",l.ElementRef)],y.prototype,"content",void 0),r.__decorate([l.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,o.IntlService,l.Renderer2,l.ElementRef,l.NgZone,g.PDFService,n.LocalizationService])],y));function y(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}t.AgendaViewInternalComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(6),a=n(2),s=n(4),c=n(5),a=(l.prototype.extractDataItem=function(e){return"group"===e.type?e.dataItem.items[0]:e.dataItem},l.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))},l.prototype.trackByFn=function(e,t){return e},l.prototype.cellClasses=function(e){var t=this.extractDataItem(e),e=[];return this.slotClass&&(e=e.concat(c.convertNgClassBindings(this.slotClass({start:t.start,end:t.end,resources:t.resources,event:t.event})))),e=this.eventClass?e.concat(c.convertNgClassBindings(this.eventClass({event:t.event,resources:t.resources}))):e},l.prototype.getEventStyles=function(e){if(this.eventStyles){e=this.extractDataItem(e);return this.eventStyles({event:e.event,resources:e.resources})}},r.__decorate([i.HostBinding("class.k-scheduler-content"),r.__metadata("design:type",Boolean)],l.prototype,"classes",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],l.prototype,"tasks",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],l.prototype,"eventTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],l.prototype,"slotClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],l.prototype,"eventClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],l.prototype,"eventStyles",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],l.prototype,"agendaTimeTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],l.prototype,"agendaDateTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],l.prototype,"editable",void 0),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])],l));function l(e,t){this.intlService=e,this.localization=t,this.classes=!0}t.AgendaListComponent=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),o=(Object.defineProperty(c.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(c.prototype,"eventColor",{get:function(){return this.item.color},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"deleteMessage",{get:function(){return this.localization.get("deleteTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isRecurrence",{get:function(){return s.isRecurrence(this.item)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isRecurrenceException",{get:function(){return s.isRecurrenceException(this.item)},enumerable:!0,configurable:!0}),Object.defineProperty(c.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)],c.prototype,"item",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],c.prototype,"color",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],c.prototype,"eventTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],c.prototype,"editable",void 0),r.__decorate([i.HostBinding("attr.aria-label"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],c.prototype,"eventTitle",null),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])],c));function c(e,t){this.localization=e,this.localeId=t}t.AgendaTaskItemComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),n=n(2),n=(Object.defineProperty(o.prototype,"dateMessage",{get:function(){return this.localization.get("dateHeader")},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"timeMessage",{get:function(){return this.localization.get("timeHeader")},enumerable:!0,configurable:!0}),Object.defineProperty(o.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)],o.prototype,"classes",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],o.prototype,"resources",void 0),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",[n.LocalizationService])],o));function o(e){this.localization=e,this.classes=!0}t.AgendaHeaderComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(4),i=(Object.defineProperty(a.prototype,"rowSpan",{get:function(){return this.item.rowSpan},enumerable:!0,configurable:!0}),Object.defineProperty(a.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)],a.prototype,"classes",void 0),r.__decorate([i.HostBinding("attr.rowspan"),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[])],a.prototype,"rowSpan",null),r.__decorate([i.Input("kendoSchedulerAgendaHeaderItem"),r.__metadata("design:type",Object)],a.prototype,"item",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],a.prototype,"agendaDateTemplate",void 0),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 '})],a));function a(){this.classes=!0}t.AgendaHeaderItemComponent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(23),o=n(1),a=n(6),s=n(152),c=n(151),l=n(150),d=n(149),u=n(39),p=n(148),n=n(21),p=[c.AgendaHeaderComponent,s.AgendaHeaderItemComponent,d.AgendaListComponent,l.AgendaTaskItemComponent,u.AgendaViewComponent,p.AgendaViewInternalComponent],p=r.__decorate([o.NgModule({imports:[i.CommonModule,a.IntlModule,n.SharedModule],exports:[u.AgendaViewComponent],declarations:[p]})],h);function h(){}t.AgendaViewModule=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),n=n(24),n=(Object.defineProperty(o.prototype,"ctx",{get:function(){return this.service.context},enumerable:!0,configurable:!0}),o.prototype.ngOnDestroy=function(){this.detachDomEvents&&this.detachDomEvents()},o.prototype.select=function(e){this.ctx.selectedView!==e&&this.service.navigate({type:"view-change",view:e})},o.prototype.onChange=function(t){var e=this.ctx.views.find(function(e){return e.name===t.target.value});e&&this.select(e)},o.prototype.isSelected=function(e){return this.ctx.selectedView===e},r.__decorate([i.HostBinding("class.k-scheduler-views-wrapper"),r.__metadata("design:type",Boolean)],o.prototype,"hostClasses",void 0),r.__decorate([i.Component({selector:"[kendoSchedulerToolbarViewSelector]",template:'\n <select *ngIf="ctx.views?.length > 1"\n (change)="onChange($event)"\n class="k-views-dropdown k-dropdown">\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 *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",[n.ToolbarService])],o));function o(e){this.service=e,this.hostClasses=!0}t.ToolbarViewSelectorComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(9),a=n(11),s=n(55),n=n(24),n=(c.prototype.ngOnInit=function(){var t=this;this.subs.add(this.selectedDate.subscribe(function(e){return t.templateContext.selectedDate=e})),this.subs.add(this.dateRange.subscribe(function(e){return t.templateContext.dateRange=e}))},c.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})},c.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},r.__decorate([i.HostBinding("class.k-scheduler-toolbar"),i.HostBinding("class.k-toolbar"),r.__metadata("design:type",Boolean)],c.prototype,"hostClasses",void 0),r.__decorate([i.Input(),r.__metadata("design:type",a.SchedulerView)],c.prototype,"selectedView",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],c.prototype,"views",void 0),r.__decorate([i.Input(),r.__metadata("design:type",o.Observable)],c.prototype,"dateRange",void 0),r.__decorate([i.Input(),r.__metadata("design:type",o.Observable)],c.prototype,"selectedDate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",s.ToolbarTemplateDirective)],c.prototype,"template",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],c.prototype,"navigate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],c.prototype,"min",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],c.prototype,"max",void 0),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",[n.ToolbarService])],c));function c(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)}))}t.ToolbarComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(78),a=n(2),s=n(24),n=n(25),i=(Object.defineProperty(c.prototype,"calendar",{set:function(e){e&&e.focus()},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"todayText",{get:function(){return this.localization.get("today")},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"calendarTodayText",{get:function(){return this.localization.get("calendarToday")},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"nextText",{get:function(){return this.localization.get("nextTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"previousText",{get:function(){return this.localization.get("previousTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"ctx",{get:function(){return this.toolbarService.context},enumerable:!0,configurable:!0}),c.prototype.onBlur=function(){this.closePopup()},c.prototype.ngOnDestroy=function(){this.subs.unsubscribe(),this.closePopup()},c.prototype.toggleSelectedDate=function(e,t){return this.popupRef?this.closePopup():(t={anchor:e,content:t},this.localization.rtl&&(t.popupClass="k-rtl"),this.popupRef=this.popupService.open(t)),!1},c.prototype.selectDate=function(e){this.closePopup(),this.toolbarService.navigate({type:"select-date",date:e})},c.prototype.prevClick=function(){return this.toolbarService.navigate({type:"prev"}),!1},c.prototype.nextClick=function(){return this.toolbarService.navigate({type:"next"}),!1},c.prototype.todayClick=function(){return this.toolbarService.navigate({type:"today"}),!1},c.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)},r.__decorate([i.ViewChild("calendar",{static:!1}),r.__metadata("design:type",n.CalendarComponent),r.__metadata("design:paramtypes",[n.CalendarComponent])],c.prototype,"calendar",null),r.__decorate([i.HostBinding("style.display"),r.__metadata("design:type",String)],c.prototype,"inlineDisplayStyle",void 0),r.__decorate([i.HostBinding("style.flex-flow"),r.__metadata("design:type",String)],c.prototype,"inlineFlexFlowStyle",void 0),r.__decorate([i.HostBinding("style.gap"),r.__metadata("design:type",String)],c.prototype,"inlineGapStyle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],c.prototype,"min",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],c.prototype,"max",void 0),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])],c));function c(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()})}t.ToolbarNavigationComponent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(23),o=n(1),a=n(22),s=n(25),c=n(78),l=n(8),d=n(156),u=n(155),p=n(55),n=n(154);t.publicDirectives=[d.ToolbarNavigationComponent,p.ToolbarTemplateDirective,n.ToolbarViewSelectorComponent];u=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)})],h);function h(){}t.ToolbarModule=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o=n(0),a=n(1),s=n(2),n=n(79),s=(r=n.Messages,o.__extends(c,r),i=c,i=o.__decorate([a.Directive({providers:[{provide:n.Messages,useExisting:a.forwardRef(function(){return i})}],selector:"[kendoSchedulerLocalizedMessages]"}),o.__metadata("design:paramtypes",[s.LocalizationService])],c));function c(e){var t=r.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o=n(0),a=n(1),s=n(2),n=n(79),s=(r=n.Messages,o.__extends(c,r),i=c,Object.defineProperty(c.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=o.__decorate([a.Component({providers:[{provide:n.Messages,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-scheduler-messages",template:""}),o.__metadata("design:paramtypes",[s.LocalizationService])],c));function c(e){var t=r.call(this)||this;return t.service=e,t}t.SchedulerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),s=n(86),o=n(26),c=n(80),l=n(5),d=n(4),a=n(42),u=n(3),n=n(6),a=(Object.defineProperty(p.prototype,"data",{set:function(e){this.originalData=e||[],this.localDataChangesService&&(this.localDataChangesService.data=e),this.scheduler.events=this.process()},enumerable:!0,configurable:!0}),p.prototype.ngOnInit=function(){var t=this;this.subscription=this.scheduler.dateChange.subscribe(function(e){return t.onDateChange(e)})},p.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe(),this.dataChangedSubscription&&this.dataChangedSubscription.unsubscribe()},p.prototype.rebind=function(){this.data=this.originalData,this.changeDetector.markForCheck()},p.prototype.process=function(){var n=this;if(!this.dateRange)return[];var r=[],i=this.scheduler.modelFields;return this.originalData.forEach(function(e){var t;u.getField(e,i.recurrenceRule)?(t=function(n,r,e,t,i){var o=c.parseRule({recurrenceRule:u.getField(n,r.recurrenceRule),weekStart:i});o.start||(i=u.getField(n,r.start),o.start=d.ZonedDate.fromLocalDate(i,t)),o.end||(a=u.getField(n,r.end),o.end=d.ZonedDate.fromLocalDate(a,t));var a=u.getField(n,r.recurrenceExceptions);a&&(o.exceptionDates=a.map(function(e){return d.ZonedDate.fromLocalDate(e,t)}));a=l.toUTCDateTime(e.start),e=l.toUTCDateTime(e.end),e=c.expand(o,{rangeStart:d.ZonedDate.fromUTCDate(a,t),rangeEnd:d.ZonedDate.fromUTCDate(e,t)});if(!e.events.length)return[];e=e.events.map(function(e){var t=u.clone(n);return u.setField(t,r.id,s.OCCURRENCE_ID),u.setField(t,r.recurrenceId,u.getField(n,r.id)),u.setField(t,r.start,e.start.toLocalDate()),u.setField(t,r.end,e.end.toLocalDate()),t});return[n].concat(e)}(e,i,n.dateRange,n.scheduler.timezone,n.scheduler.weekStart),r.push.apply(r,t)):r.push(e)}),r},p.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])],p.prototype,"data",null),r.__decorate([i.Directive({selector:"[kendoSchedulerBinding]"}),r.__metadata("design:paramtypes",[o.SchedulerComponent,i.ChangeDetectorRef,n.IntlService,a.LocalDataChangesService])],p));function p(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)))}t.DataBindingDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(23),o=n(1),a=n(6),s=n(8),c=n(160),l=n(159),d=n(158),u=n(26),p=n(157),h=n(39),m=n(153),g=n(145),y=n(134),f=n(126),v=n(54),_=n(53),b=n(52),k=n(51),D=n(50),T=n(49),S=n(48),E=n(47),w=n(46),C=n(45),I=n(44),x=n(125),R=n(119),O=n(85),M=n(116),P=n(16),F=n(22),H=n(25),j=n(115),z=n(27),W=n(114),A=n(62),V=n(112),B=n(111),N=n(110),L=n(109),U=n(108),G=n(107),q=n(106),Z=n(61),K=n(60),Y=n(66),$=n(64),X=n(105),Q=n(43),J=n(81),ee=n(21),n=n(104),I=[v.AgendaDateTemplateDirective,_.AgendaTimeTemplateDirective,b.AllDayEventTemplateDirective,k.AllDaySlotTemplateDirective,D.DateHeaderTemplateDirective,T.EventTemplateDirective,Q.EditDialogTemplateDirective,S.GroupHeaderTemplateDirective,E.MajorTimeHeaderTemplateDirective,w.MinorTimeHeaderTemplateDirective,C.MonthDaySlotTemplateDirective,I.TimeSlotTemplateDirective],I=[u.SchedulerComponent,f.SchedulerViewDirective,c.DataBindingDirective,n.ShortcutsDirective,R.ReactiveEditingDirective,W.SchedulerDateTimePickerComponent,A.RecurrenceEditorComponent,B.RecurrenceEndRuleEditorComponent,V.RecurrenceFrequencyEditorComponent,N.RecurrenceIntervalEditorComponent,L.RecurrenceMonthlyYearlyEditorComponent,U.RecurrenceWeekdayRuleEditorComponent,Z.EndRuleRadioButtonDirective,K.RepeatOnRadioButtonDirective,Y.MultipleResourceEditorComponent,$.SingleResourceEditorComponent,X.TimeZoneEditorComponent,M.EditDialogComponent,l.SchedulerCustomMessagesComponent,d.LocalizedMessagesDirective,G.RecurrenceEditorCustomMessagesComponent,q.RecurrenceEditorLocalizedMessagesDirective,J.LoadingComponent].concat(I),R=[h.AgendaViewComponent,g.MonthViewModule,y.MultiDayViewModule,R.ReactiveEditingDirective,x.TimelineViewModule,p.publicDirectives].concat(I),ee=[F.ButtonsModule,H.DateInputsModule,O.DialogModule,j.NumericTextBoxModule,j.TextBoxModule,z.DropDownsModule,P.ReactiveFormsModule,ee.SharedModule],a=r.__decorate([o.NgModule({imports:[i.CommonModule,p.ToolbarModule,m.AgendaViewModule,y.MultiDayViewModule,s.ResizeSensorModule,g.MonthViewModule,x.TimelineViewModule].concat(ee),declarations:I,exports:R,providers:[{provide:a.IntlService,useClass:a.CldrIntlService}]})],te);function te(){}t.SchedulerModule=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),n=n(29),n=(Object.defineProperty(o.prototype,"visible",{get:function(){return"none"!==this.element.nativeElement.style.display},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"enabled",{get:function(){return!this.element.nativeElement.disabled},enumerable:!0,configurable:!0}),o.prototype.ngOnDestroy=function(){this.focusService.unregister(this)},o.prototype.toggle=function(e){e!==this.active&&(this.renderer.setAttribute(this.element.nativeElement,"tabIndex",e?"0":"-1"),this.active=e)},o.prototype.canFocus=function(){return this.visible&&this.enabled},o.prototype.focus=function(){this.element.nativeElement.focus()},o.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)],o.prototype,"focusIndex",void 0),r.__decorate([i.Directive({selector:"[kendoSchedulerFocusIndex]"}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,n.FocusService])],o));function o(e,t,n){this.element=e,this.renderer=t,this.focusService=n,this.focusIndex=0,this.toggle(!1),this.focusService.register(this)}t.FocusableDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.CrudOperation||(t.CrudOperation={}))[t.Edit=0]="Edit",t[t.Remove=1]="Remove"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.EditMode||(t.EditMode={}))[t.Event=0]="Event",t[t.Occurrence=1]="Occurrence",t[t.Series=2]="Series"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerView=function(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(12).PreventableEvent,i.__extends(o,r),o);function o(e,t){var n=r.call(this)||this;return n.sender=e,Object.assign(n,t),n}t.AddEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(12).PreventableEvent,i.__extends(o,r),o);function o(e,t){var n=r.call(this)||this;return n.sender=e,Object.assign(n,t),n}t.EditEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(56).EditEventBase,i.__extends(o,r),o);function o(){return null!==r&&r.apply(this,arguments)||this}t.SaveEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(56).EditEventBase,i.__extends(o,r),o);function o(){return null!==r&&r.apply(this,arguments)||this}t.CancelEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateEvent=function(e,t){this.sender=e,Object.assign(this,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),i=n(96),o=n(95),a=n(94),s=n(98),c=n(97),l=n(93),d=n(92),u=n(91),p=n(90),n=n(99);t.VIEW_EVENT_MAP={slotClick:n.SlotClickEvent,slotDblClick:n.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,i=n(0),i=(r=n(25).PreventableEvent,i.__extends(o,r),o);function o(e,t){var n=r.call(this)||this;return n.sender=e,n.action=t,n}t.NavigateEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateChangeEvent=function(e,t,n){this.sender=e,this.selectedDate=t,this.dateRange=n}},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:1635941604,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){e.exports=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(26);t.SchedulerComponent=i.SchedulerComponent;i=n(161);t.SchedulerModule=i.SchedulerModule;i=n(10);t.ViewContextService=i.ViewContextService;i=n(7);t.ViewStateService=i.ViewStateService;i=n(24);t.ToolbarService=i.ToolbarService;i=n(39);t.AgendaViewComponent=i.AgendaViewComponent;i=n(33);t.DayViewComponent=i.DayViewComponent;i=n(32);t.WeekViewComponent=i.WeekViewComponent;i=n(62);t.RecurrenceEditorComponent=i.RecurrenceEditorComponent;i=n(103);t.BaseEditService=i.BaseEditService;i=n(102);t.PDFModule=i.PDFModule;i=n(58);t.PDFComponent=i.PDFComponent;i=n(15);t.PDFService=i.PDFService;i=n(57);t.PDFCommandDirective=i.PDFCommandDirective;i=n(82);t.PDFExportEvent=i.PDFExportEvent;i=n(20);t.FocusableDirective=i.FocusableDirective;i=n(21);t.SharedModule=i.SharedModule,r.__exportStar(n(11),t),r.__exportStar(n(30),t),function(e){for(var t in e)o(t,e[t])}(t)}],i={},r.m=n,r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=176)}}});
|
|
5
|
+
System.register("@progress/kendo-angular-scheduler",["tslib","@angular/core","@angular/common","@progress/kendo-angular-intl","@progress/kendo-angular-common","@progress/kendo-angular-dialog","@angular/forms","@progress/kendo-angular-buttons","@progress/kendo-angular-dateinputs","@progress/kendo-angular-dropdowns","@progress/kendo-angular-inputs","rxjs","@progress/kendo-angular-l10n","@progress/kendo-date-math","@progress/kendo-drawing","@progress/kendo-file-saver","@progress/kendo-licensing","@progress/kendo-recurrence","@progress/kendo-angular-popup","rxjs/operators","@progress/kendo-data-query","@telerik/kendo-draggable"],function(o){var a,s,c,l,d,u,p,h,m,g,y,f,v,_,b,k,D,T,S,E,w,C;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){a=t(e)},function(e){s=t(e)},function(e){c=t(e)},function(e){l=t(e)},function(e){d=t(e)},function(e){u=t(e)},function(e){p=t(e)},function(e){h=t(e)},function(e){m=t(e)},function(e){g=t(e)},function(e){y=t(e)},function(e){f=t(e)},function(e){v=t(e)},function(e){_=t(e)},function(e){b=t(e)},function(e){k=t(e)},function(e){D=t(e)},function(e){T=t(e)},function(e){S=t(e)},function(e){E=t(e)},function(e){w=t(e)},function(e){C=t(e)}],execute:function(){function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var n,i;n=[function(e,t){e.exports=a},function(e,t){e.exports=s},function(e,t){e.exports=v},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t(9),i=t(17),o=t(88),a=t(87),s=t(86);function c(e,t,n){r.setField(e,n,r.getField(t,n))}function l(e,t){for(var n in e){var r;e.hasOwnProperty(n)&&(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 n.fromEvent(e,"click")}r.capitalize=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},r.isPresent=function(e){return null!=e},r.isBlank=function(e){return null==e},r.isArray=function(e){return Array.isArray(e)},r.isTruthy=function(e){return!!e},r.isNullOrEmptyString=function(e){return r.isBlank(e)||e.trim&&0===e.trim().length},r.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},r.isString=function(e){return"string"==typeof e},r.isObject=function(e){return"object"==typeof e},r.isRecurring=function(e,t){var n=o.getter(t.recurrenceId)(e);return!(!o.getter(t.recurrenceRule)(e)&&!n)},r.isException=function(e,t){var n=o.getter(t.id)(e),e=o.getter(t.recurrenceId)(e);return r.isPresent(n)&&n!==s.OCCURRENCE_ID&&r.isPresent(e)},r.copyResources=function(e,t){if(t)for(var n=0;n<t.length;n++)c(e,e.dataItem,t[n].field)},r.readEvent=function(e,t,n){e={id:o.getter(t.id)(e),start:o.getter(t.start)(e),startTimezone:o.getter(t.startTimezone)(e),end:o.getter(t.end)(e),endTimezone:o.getter(t.endTimezone)(e),isAllDay:o.getter(t.isAllDay)(e),title:o.getter(t.title)(e),description:o.getter(t.description)(e),recurrenceRule:o.getter(t.recurrenceRule)(e),recurrenceExceptions:o.getter(t.recurrenceExceptions)(e),recurrenceId:o.getter(t.recurrenceId)(e),dataItem:e};return r.copyResources(e,n),e},r.isRecurrenceMaster=function(e){return e.recurrenceRule&&!r.isPresent(e.recurrenceId)},r.groupResources=function(e,n){var r=[];if(e&&e.resources&&e.resources.length)for(var i=e.resources,t=0;t<i.length;t++)!function(t){var e=n.find(function(e){return e.name===i[t]});r.push(e)}(t);return r},r.getField=function(e,t){return o.getter(t)(e)},r.setField=function(e,t,n){return a.setter(t)(e,n)},r.assignField=c,r.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])},r.assignValues=function(e,t){return l(t,e),e},r.cloneTo=l,r.clone=function(e){var t={};return l(e,t),t},r.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}}(),r.fromClick=d,r.fromDoubleClick=function(e){var t=d(e),e=t.pipe(i.auditTime(250));return t.pipe(i.buffer(e),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]}))},r.sortTasksByTime=function(e){return e.sort(function(e,t){return e.startTime-t.startTime||t.endTime-e.endTime}),e}},function(e,t){e.exports=_},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=t(4),s=t(6),_=t(3),n=t(14);function b(e,t){for(var n=t.data,r=0;r<n.length;r++)if(_.getField(n[r],t.valueField)===e)return r;return-1}function i(e,t){e=b(e,t);return 0<=e?t.data[e]:{}}function k(e,t){var n,e=_.getField(e,t.field);return Array.isArray(e)?(n=t,e.map(function(e){return i(e,n)})):i(e,t)}function o(e,t){for(var n=t.taskResources,r=t.hasGroups,i=t.spans,t=t.allResources,o=void 0===t?[]:t,a=[],s=0;s<n.length;s++){var c=n[s];if(c.data){var l=o.indexOf(c),d=_.getField(e,c.field);Array.isArray(d)||(d=[d]);for(var u=[],p=0;p<d.length;p++){var h=b(d[p],c);if(h<0)return[{leafIdx:r?-1:0,resources:[]}];var m=c.data[h];if(0!==s||!r&&0!==p){if(r){var g=a;1<d.length&&(g=function(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}(a),u.push.apply(u,g));for(var y=0;y<g.length;y++)g[y].leafIdx+=h*i[s],g[y].resources[l]=m}else if(0<p)for(var f=0;f<a.length;f++)a[f].resources[l].push(m)}else{var v=[];v[l]=c.multiple&&!r?[m]:m,a.push({leafIdx:r?h*i[s]:0,color:_.getField(m,c.colorField),resources:v})}}u.length&&(a=u)}else a=[{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]=k(e,a))}}(e,a,o),a}r.intersects=function(e,t,n,r){return e<n&&r<t||n<=e&&e<r||n<t&&t<=r&&e<t},r.dateInRange=function(e,t,n){return t.getTime()<=e.getTime()&&e.getTime()<=n.getTime()},r.roundAllDayEnd=function(e){var t=e.start,n=e.end,e=t.stripTime(),t=n.stripTime();return t.getTime()!==n.getTime()||e.getTime()===t.getTime()?t.addDays(1):t},r.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},r.addUTCDays=function(e,t){e=new Date(e.getTime());return e.setUTCDate(e.getUTCDate()+t),e},r.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)},r.toUTCTime=function(e,t){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},r.toUTCDate=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))},r.getUTCDate=function(e){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))},r.toUTCDateTime=function(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},r.dateWithTime=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes())},r.resourceItemByValue=k,r.eventResources=o,r.assignTasksResources=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];r.resources=o(r.event,t)}},r.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},r.isRecurrence=function(e){return Boolean(e.event&&e.event.recurrenceRule)},r.isRecurrenceException=function(e){return e.event&&_.isPresent(e.event.recurrenceId)&&!e.event.recurrenceRule},r.rectContains=function(e,t,n){return e.left<=t&&t<=e.left+e.width&&e.top<=n&&n<=e.top+e.height},r.rectContainsX=function(e,t){return e.left<=t&&t<=e.left+e.width},r.toPx=function(e){return e+"px"},r.elementOffset=function(e){if(!e)return null;var t=e.getBoundingClientRect(),e=document.documentElement;return{top:t.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:t.width,height:t.height}},r.pointDistance=function(e,t,n,r){return Math.sqrt(Math.pow(e-n,2)+Math.pow(t-r,2))},r.ignoreContentChild=function(e){return"KENDO-RESIZE-SENSOR"===e.nodeName||n.hasClasses(e,"k-loading-mask")},r.setCoordinates=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=r.toPx(t[n]))},r.convertNgClassBindings=function(e){var t=[];if(_.isString(e))t.push(e);else if(_.isArray(e))t.push.apply(t,e);else if(_.isObject(e))for(var n in e)e.hasOwnProperty(n)&&e[n]&&t.push(n);return t},r.formatEventTime=function(e,t,n,r){var i={skeleton:"yMMMMEEEEdhm"},o=a.isEqualDate(e,t)?"t":i;return n?""+s.formatDate(e,{skeleton:"yMMMMEEEEd"},r):s.formatDate(e,i,r)+"–"+s.formatDate(t,o,r)},r.formValueOrDefault=function(e,t,n){t=e.get(t);return t&&t.value||n},r.isWorkWeekDay=function(e,t,n){return n<t?e<=n||t<=e:t<=e&&e<=n}},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(9),r=(a.prototype.notifyNextDate=function(e){this.nextDateSource.next(e)},a.prototype.notifyDateRange=function(e){this.dateRangeSource.next(e)},a.prototype.notifyLayoutEnd=function(){this.layoutEndSource.next()},a.prototype.navigateTo=function(e){this.navigateSource.next(e)},a.prototype.notifyOptionsChange=function(){this.optionsChangeSource.next(null)},a.prototype.emitEvent=function(e,t){this.viewEventSource.next({name:e,args:t})},r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[])],a));function a(){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.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()}t.ViewStateService=r},function(e,t){e.exports=d},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=n(9),r=(a.prototype.notifyAction=function(e){this.actionSource.next(e)},a.prototype.notifyItems=function(e){this.itemsSource.next(e)},a.prototype.notifySelectedDate=function(e){this.selectedDateSource.next(e)},a.prototype.notifyResize=function(){this.resizeSource.next()},a.prototype.notifyOptionsChange=function(e){this.optionsChangeSource.next(e)},a.prototype.executeMethod=function(e,t){var n;return this.executeSource.next({name:e,args:t,result:function(e){n=e}}),n},r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[])],a));function a(){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()}t.ViewContextService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(0).__exportStar(n(165),t);var r=n(164);t.EditMode=r.EditMode;n=n(163);t.CrudOperation=n.CrudOperation},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(i.prototype.preventDefault=function(){this.prevented=!0},i.prototype.isDefaultPrevented=function(){return this.prevented},i);function i(){this.prevented=!1}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),a=n(2),s=n(6),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}];m.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})},m.prototype.getUniqueId=function(){return u++},Object.defineProperty(m.prototype,"frequencies",{get:function(){var t=this;return h.map(function(e){return{value:e,text:t.localization.get("frequencies"+c.capitalize(e))}})},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"frequency",{get:function(){return l.isPresent(this.rrule)&&!c.isNullOrEmptyString(this.rrule.freq)?this.rrule.freq:"never"},enumerable:!0,configurable:!0}),m.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(m.prototype,"interval",{set:function(e){this.rrule.interval=e,this.onChange()},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"count",{set:function(e){this.rrule.count=e,this.onChange()},enumerable:!0,configurable:!0}),Object.defineProperty(m.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}),m.prototype.setWeekDays=function(e){this.rrule.byWeekDay=e,this.onChange()},Object.defineProperty(m.prototype,"monthDays",{set:function(e){this.rrule.byMonthDay=e,this.onChange()},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"positions",{set:function(e){this.rrule.bySetPosition=e,this.onChange()},enumerable:!0,configurable:!0}),m.prototype.setMonths=function(e){this.rrule.byMonth=e,this.onChange()},Object.defineProperty(m.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(m.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(m.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}}),e=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(e)},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"offsetPositions",{get:function(){var n=this,r=[1,2,3,4,-1];return p.map(function(e,t){return{text:n.localization.get("offsetPositions"+c.capitalize(e)),value:r[t]}})},enumerable:!0,configurable:!0}),Object.defineProperty(m.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(m.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}),m.prototype.onChange=function(){"never"===this.frequency?this.change.emit(null):this.change.emit(o.serializeRule(this.rrule,this.timezone))},a=r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[s.IntlService,a.LocalizationService])],m);function m(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}t.RecurrenceService=a},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});function r(e){return String(e).trim().split(" ")}var n=t(8);i.hasClasses=function(e,t){var n=r(t);return Boolean(r(e.className).find(function(e){return 0<=n.indexOf(e)}))},i.matchesClasses=function(t){return function(e){return i.hasClasses(e,t)}},i.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},i.firstElementChild=function(e){for(var t=e.children,n=t.length,r=0;r<n;r++)if(1===t[r].nodeType)return t[r]},i.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},i.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},i.preventLockedScroll=function(r){return function(e){var t=i.wheelDeltaY(e),n=r.scrollTop;0===n&&0<t||r.scrollHeight<=r.offsetHeight+n&&t<0||e.preventDefault()}};var o=0;i.scrollbarWidth=function(){var e;return!o&&n.isDocumentAvailable()&&((e=document.createElement("div")).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)),o},i.hasScrollbar=function(e,t){t="vertical"===t?"Height":"Width";return e["scroll"+t]>e["client"+t]},i.rtlScrollPosition=function(e,t){var n=e.scrollLeft,r=t;return e.scrollLeft=-1,e.scrollLeft<0?r=-t:0<n&&(r=e.scrollWidth-e.offsetWidth-t),r},i.isVisible=function(e){var t=e.getBoundingClientRect(),n=0<t.width&&0<t.height,t=0!==t.x&&0!==t.y;return(n||t)&&"hidden"!==window.getComputedStyle(e).visibility}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),r=(a.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.")},r.__decorate([i.Injectable()],a));function a(){this.createElement=new i.EventEmitter,this.exportClick=new i.EventEmitter,this.done=new i.EventEmitter,this.elementReady=new i.EventEmitter}t.PDFService=r},function(e,t){e.exports=p},function(e,t){e.exports=E},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;n=n(4);t.MS_PER_DAY=n.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(54);t.AgendaDateTemplateDirective=r.AgendaDateTemplateDirective;r=n(53);t.AgendaTimeTemplateDirective=r.AgendaTimeTemplateDirective;r=n(52);t.AllDayEventTemplateDirective=r.AllDayEventTemplateDirective;r=n(51);t.AllDaySlotTemplateDirective=r.AllDaySlotTemplateDirective;r=n(50);t.DateHeaderTemplateDirective=r.DateHeaderTemplateDirective;r=n(49);t.EventTemplateDirective=r.EventTemplateDirective;r=n(48);t.GroupHeaderTemplateDirective=r.GroupHeaderTemplateDirective;r=n(47);t.MajorTimeHeaderTemplateDirective=r.MajorTimeHeaderTemplateDirective;r=n(46);t.MinorTimeHeaderTemplateDirective=r.MinorTimeHeaderTemplateDirective;r=n(45);t.MonthDaySlotTemplateDirective=r.MonthDaySlotTemplateDirective;n=n(44);t.TimeSlotTemplateDirective=n.TimeSlotTemplateDirective},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(29);t.FocusService=r.FocusService;n=n(162);t.FocusableDirective=n.FocusableDirective},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(20),i=(a.exports=function(){return[o.FocusableDirective]},r.__decorate([i.NgModule({declarations:[o.FocusableDirective],exports:[o.FocusableDirective]})],a));function a(){}t.SharedModule=i},function(e,t){e.exports=h},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(9),r=(a.prototype.navigate=function(e){this.actionSource.next(e)},r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[])],a));function a(){this.actionSource=new o.Subject,this.action=this.actionSource.asObservable()}t.ToolbarService=r},function(e,t){e.exports=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),h=n(1),i=n(2),o=n(8),a=n(8),s=n(4),m=n(175),g=n(174),c=n(30),l=n(55),d=n(24),u=n(11),p=n(54),y=n(53),f=n(52),v=n(51),_=n(50),b=n(49),k=n(48),D=n(47),T=n(46),S=n(45),E=n(44),w=n(10),C=n(7),I=n(89),x=n(43),R=n(16),O=n(42),M=n(41),P=n(84),F=n(83),H=n(3),j=n(6),z=n(15),W=n(82),A=n(81),V=n(20),B=n(40),N=n(14),V=(Object.defineProperty(L.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"selectedViewIndex",{get:function(){return this.viewIndex},set:function(e){this.viewIndex=e,this.onViewIndexChange()},enumerable:!0,configurable:!0}),Object.defineProperty(L.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(L.prototype,"timezone",{get:function(){return this._timezone},set:function(e){this._timezone=e,this.events=this.events||[]},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"events",{get:function(){return this._events},set:function(e){this._events=e,this.processEvents(e)},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"selectedDate",{get:function(){return this._selectedDate},set:function(e){e&&(this._selectedDate=e,this.viewContext.notifySelectedDate(e))},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"modelFields",{get:function(){return this._modelFields},set:function(e){this._modelFields=r.__assign({},F.defaultModelFields,e)},enumerable:!0,configurable:!0}),L.prototype.ngOnInit=function(){this.selectedDate||(this.selectedDate=s.getDate(new Date))},L.prototype.ngAfterContentInit=function(){var o=this;if(h.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 o.resetViewIndex()}),this.subs.add(this.intlService.changes.subscribe(this.intlChange.bind(this))),this.subs.add(this.viewState.nextDate.subscribe(function(e){o.selectedDate=e})),this.subs.add(this.viewState.dateRange.subscribe(function(e){0!==e.start.getTime()&&(e=new c.DateChangeEvent(o,o.selectedDate,e),o.dateChange.emit(e))})),this.subs.add(this.viewState.navigate.subscribe(function(e){var t=e.viewName,n=e.date,r=o.views.toArray(),i=r.find(function(e){return e.name===t}),e=new c.NavigateEvent(o,{type:"show-date",view:i||{name:t,title:t},date:n});o.navigate.next(e),i&&!e.isDefaultPrevented()&&(r=r.indexOf(i),o.selectedView=i,o.setViewIndex(r),o.selectedDate=n)})),this.subs.add(this.viewState.viewEvent.subscribe(function(e){var t=e.name,n=e.args,r=o[t],i=o[t+"Confirmed"];(a.hasObservers(r)||i&&a.hasObservers(i))&&o.zone.run(function(){var e=new c.VIEW_EVENT_MAP[t](o,n);r.emit(e),n.prevented=e.prevented,i&&!n.prevented&&i.emit(e)})})),this.subs.add(this.viewState.layoutEnd.subscribe(function(){o.resizeSensor&&o.resizeSensor.acceptSize()})),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(){o.changeDetector.markForCheck()})),this.attachEditHandlers(),this.dialogsService.container=this.confirmationDialogContainerRef,this.notifyOptionsChange(),this.subs.add(this.pdfService.exportClick.subscribe(function(){var e=new W.PDFExportEvent;o.pdfExport.emit(e),e.isDefaultPrevented()||o.saveAsPDF()})),this.subs.add(this.pdfService.done.subscribe(function(){o.loadingComponent.toggle(!1)})),this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;o.rtl=e,o.direction=o.rtl?"rtl":"ltr"})),this.subs.add(this.viewState.optionsChange.subscribe(function(){o.changeDetector.markForCheck()})),this.attachElementEventHandlers()},L.prototype.ngOnChanges=function(e){var t=this;a.isChanged("resources",e)&&!a.isChanged("events",e)&&this.viewItems&&this.viewItems.forEach(function(e){H.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"],e)&&this.notifyOptionsChange(e)},L.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe(),this.detachElementEventHandlers&&this.detachElementEventHandlers()},L.prototype.onResize=function(e){this.viewContext.notifyResize()},L.prototype.onNavigationAction=function(e){var t,n=new c.NavigateEvent(this,e);if(this.navigate.next(n),n.isDefaultPrevented())return!0;"view-change"===e.type?(t=this.views.toArray().indexOf(e.view),this.selectedView=e.view,this.setViewIndex(t)):"select-date"===e.type?this.isInRange(e.date)&&(this.selectedDate=e.date):"today"===e.type?(t=new Date,this.isInRange(t)&&(this.selectedDate=t)):this.viewContext.notifyAction(e)},L.prototype.addEvent=function(e){var t,n;e instanceof R.FormGroup||(t=Object.keys(e).reduce((n=e,function(e,t){return e[t]=new R.FormControl(n[t]),e}),{}),e=new R.FormGroup(t)),this.editService.addEvent(e)},L.prototype.editEvent=function(e,t){var n=(t=void 0===t?{}:t).group,t=t.mode;this.editService.editEvent(e,n,t)},L.prototype.closeEvent=function(){this.editService.close()},L.prototype.isEditing=function(){return this.editService.isEditing()},L.prototype.openRecurringConfirmationDialog=function(e){return this.dialogsService.openRecurringConfirmationDialog(e)},L.prototype.openRemoveConfirmationDialog=function(){return this.dialogsService.openRemoveConfirmationDialog()},L.prototype.saveAsPDF=function(){var e=this;this.loadingComponent.toggle(!0),this.zone.runOutsideAngular(function(){setTimeout(function(){e.pdfService.save()},0)})},L.prototype.scrollToTime=function(e){this.viewContext.notifyAction({type:"scroll-time",time:e})},L.prototype.slotByPosition=function(e,t){return this.viewContext.executeMethod("slotByPosition",{x:e,y:t})},L.prototype.eventFromElement=function(e){return this.viewContext.executeMethod("eventFromElement",{element:e})},Object.defineProperty(L.prototype,"activeEvent",{get:function(){var e=this.focusService.activeElement;if(e)return this.eventFromElement(e.nativeElement)},enumerable:!0,configurable:!0}),L.prototype.focusNext=function(e){return this.focusService.focusNext(e)},L.prototype.focusPrev=function(e){e=r.__assign({offset:-1},e);return this.focusService.focusNext(e)},L.prototype.focus=function(){return this.focusService.focus()},L.prototype.isInRange=function(e){return(!this.min||this.min<=e)&&(!this.max||e<=this.max)},L.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,timezone:this.timezone,currentTimeMarker:this.currentTimeMarker,slotClass:this.slotClass,slotFill:this.slotFill,columnWidth:this.columnWidth,eventClass:this.eventClass,eventStyles:this.eventStyles,changes:e})},Object.defineProperty(L.prototype,"workWeek",{get:function(){var e=this.intlService.weekendRange(),t=e.start,e=e.end,e=H.isPresent(this.workWeekStart)?this.workWeekStart:(e+1)%7,t=0<t?t-1:s.Day.Saturday;return{start:e,end:H.isPresent(this.workWeekEnd)?this.workWeekEnd:t}},enumerable:!0,configurable:!0}),L.prototype.resetViewIndex=function(){var e=this.selectedViewIndex,e=Math.max(0,Math.min(e,this.views.length-1));this.setViewIndex(e),this.onViewIndexChange()},L.prototype.onViewIndexChange=function(){var e;!this.views||(e=this.views.toArray()[this.viewIndex])&&(this.selectedView=e)},L.prototype.setViewIndex=function(e){var t=this.selectedViewIndex!==e;return t&&(this.selectedViewIndex=e,this.selectedViewIndexChange.emit(e)),t},L.prototype.processEvents=function(e){var t=this,n=this.timezone,r=this.modelFields,e=e.map(function(e){return H.readEvent(e,r,t.resources)}).filter(function(e){return!H.isRecurrenceMaster(e)}).map(function(e){return{start:s.ZonedDate.fromLocalDate(e.start,n),end:s.ZonedDate.fromLocalDate(e.end,n),event:e}});this.viewItems=e,this.viewContext.notifyItems(e)},L.prototype.attachEditHandlers=function(){this.editService&&this.subs.add(this.editService.changes.subscribe(this.emitCRUDEvent.bind(this)))},L.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)}},L.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,h.NgZone.isInAngularZone()?this.changeDetector.markForCheck():this.changeDetector.detectChanges()},L.prototype.attachElementEventHandlers=function(){var a,s=this;o.isDocumentAvailable()&&(a=this.wrapper.nativeElement,this.zone.runOutsideAngular(function(){var e=s.renderer.listen("window","blur",function(e){s.domEvents.windowBlur.emit(e)}),t=s.renderer.listen(a,"click",function(e){s.domEvents.click.emit(e)}),n=s.renderer.listen(a,"keydown",function(e){s.domEvents.keydown.emit(e)}),r=!1,i=s.renderer.listen(a,"focusin",function(e){s.domEvents.focus.emit(e),r||(s.domEvents.focusIn.emit(e),s.renderer.addClass(s.wrapper.nativeElement,"k-state-focused"),r=!0)}),o=s.renderer.listen(a,"focusout",function(e){var t=e.relatedTarget||document.activeElement;N.closest(t,function(e){return e===a})||(s.domEvents.focusOut.emit(e),s.renderer.removeClass(s.wrapper.nativeElement,"k-state-focused"),r=!1)});s.detachElementEventHandlers=function(){e(),t(),n(),i(),o()}}))},r.__decorate([h.HostBinding("class.k-widget"),h.HostBinding("class.k-scheduler"),h.HostBinding("class.k-floatwrap"),r.__metadata("design:type",Boolean)],L.prototype,"hostClasses",void 0),r.__decorate([h.HostBinding("class.k-rtl"),r.__metadata("design:type",Boolean)],L.prototype,"rtl",void 0),r.__decorate([h.HostBinding("attr.dir"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],L.prototype,"dir",null),r.__decorate([h.Input(),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[Number])],L.prototype,"selectedViewIndex",null),r.__decorate([h.Input(),r.__metadata("design:type",Object)],L.prototype,"editable",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Date)],L.prototype,"min",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Date)],L.prototype,"max",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Number)],L.prototype,"eventHeight",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Number)],L.prototype,"columnWidth",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Boolean)],L.prototype,"showWorkHours",void 0),r.__decorate([h.Input(),r.__metadata("design:type",String)],L.prototype,"startTime",void 0),r.__decorate([h.Input(),r.__metadata("design:type",String)],L.prototype,"endTime",void 0),r.__decorate([h.Input(),r.__metadata("design:type",String)],L.prototype,"workDayStart",void 0),r.__decorate([h.Input(),r.__metadata("design:type",String)],L.prototype,"workDayEnd",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Number)],L.prototype,"workWeekStart",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Number)],L.prototype,"workWeekEnd",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[Number])],L.prototype,"weekStart",null),r.__decorate([h.Input(),r.__metadata("design:type",Number)],L.prototype,"slotDuration",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Number)],L.prototype,"slotDivisions",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Number)],L.prototype,"slotFill",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Object)],L.prototype,"scrollTime",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Object)],L.prototype,"group",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Array)],L.prototype,"resources",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Boolean)],L.prototype,"loading",void 0),r.__decorate([h.Input(),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],L.prototype,"timezone",null),r.__decorate([h.Input(),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],L.prototype,"events",null),r.__decorate([h.Input(),r.__metadata("design:type",Date),r.__metadata("design:paramtypes",[Date])],L.prototype,"selectedDate",null),r.__decorate([h.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],L.prototype,"modelFields",null),r.__decorate([h.Input(),r.__metadata("design:type",Object)],L.prototype,"currentTimeMarker",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Function)],L.prototype,"slotClass",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Function)],L.prototype,"eventClass",void 0),r.__decorate([h.Input(),r.__metadata("design:type",Function)],L.prototype,"eventStyles",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"selectedViewIndexChange",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"navigate",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"dateChange",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"slotClick",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"slotDblClick",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"create",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"eventClick",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"eventDblClick",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"eventKeydown",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"cancel",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"save",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"remove",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"resizeStart",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"resize",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"resizeEnd",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"dragStart",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"drag",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"dragEnd",void 0),r.__decorate([h.Output(),r.__metadata("design:type",h.EventEmitter)],L.prototype,"pdfExport",void 0),r.__decorate([h.ContentChild(x.EditDialogTemplateDirective,{static:!1}),r.__metadata("design:type",x.EditDialogTemplateDirective)],L.prototype,"editDialogTemplate",void 0),r.__decorate([h.ContentChild(l.ToolbarTemplateDirective,{static:!1}),r.__metadata("design:type",l.ToolbarTemplateDirective)],L.prototype,"toolbarTemplate",void 0),r.__decorate([h.ContentChildren(u.SchedulerView),r.__metadata("design:type",h.QueryList)],L.prototype,"views",void 0),r.__decorate([h.ViewChild(o.ResizeSensorComponent,{static:!0}),r.__metadata("design:type",o.ResizeSensorComponent)],L.prototype,"resizeSensor",void 0),r.__decorate([h.ViewChild("confirmationDialogContainer",{read:h.ViewContainerRef,static:!0}),r.__metadata("design:type",h.ViewContainerRef)],L.prototype,"confirmationDialogContainerRef",void 0),r.__decorate([h.ViewChild(A.LoadingComponent,{static:!0}),r.__metadata("design:type",A.LoadingComponent)],L.prototype,"loadingComponent",void 0),r.__decorate([h.ContentChildren(f.AllDayEventTemplateDirective),r.__metadata("design:type",h.QueryList)],L.prototype,"allDayEventTemplate",void 0),r.__decorate([h.ContentChildren(b.EventTemplateDirective),r.__metadata("design:type",h.QueryList)],L.prototype,"eventTemplate",void 0),r.__decorate([h.ContentChildren(E.TimeSlotTemplateDirective),r.__metadata("design:type",h.QueryList)],L.prototype,"timeSlotTemplate",void 0),r.__decorate([h.ContentChildren(T.MinorTimeHeaderTemplateDirective),r.__metadata("design:type",h.QueryList)],L.prototype,"minorTimeHeaderTemplate",void 0),r.__decorate([h.ContentChildren(D.MajorTimeHeaderTemplateDirective),r.__metadata("design:type",h.QueryList)],L.prototype,"majorTimeHeaderTemplate",void 0),r.__decorate([h.ContentChildren(S.MonthDaySlotTemplateDirective),r.__metadata("design:type",h.QueryList)],L.prototype,"monthDaySlotTemplate",void 0),r.__decorate([h.ContentChildren(_.DateHeaderTemplateDirective),r.__metadata("design:type",h.QueryList)],L.prototype,"dateHeaderTemplate",void 0),r.__decorate([h.ContentChildren(v.AllDaySlotTemplateDirective),r.__metadata("design:type",h.QueryList)],L.prototype,"allDaySlotTemplate",void 0),r.__decorate([h.ContentChildren(k.GroupHeaderTemplateDirective),r.__metadata("design:type",h.QueryList)],L.prototype,"groupHeaderTemplate",void 0),r.__decorate([h.ContentChildren(p.AgendaDateTemplateDirective),r.__metadata("design:type",h.QueryList)],L.prototype,"agendaDateTemplate",void 0),r.__decorate([h.ContentChildren(y.AgendaTimeTemplateDirective),r.__metadata("design:type",h.QueryList)],L.prototype,"agendaTimeTemplate",void 0),r.__decorate([h.Component({changeDetection:h.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler",providers:[I.EditService,M.DialogsService,B.DomEventsService,O.LocalDataChangesService,V.FocusService,P.SchedulerLocalizationService,{provide:i.LocalizationService,useExisting:P.SchedulerLocalizationService},{provide:i.L10N_PREFIX,useValue:"kendo.scheduler"},d.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:h.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",[h.ElementRef,w.ViewContextService,C.ViewStateService,I.EditService,M.DialogsService,j.IntlService,h.ChangeDetectorRef,h.NgZone,z.PDFService,i.LocalizationService,B.DomEventsService,h.Renderer2,V.FocusService])],L));function L(e,t,n,r,i,o,a,s,c,l,d,u,p){this.wrapper=e,this.viewContext=t,this.viewState=n,this.editService=r,this.dialogsService=i,this.intlService=o,this.changeDetector=a,this.zone=s,this.pdfService=c,this.localization=l,this.domEvents=d,this.renderer=u,this.focusService=p,this.hostClasses=!0,this.rtl=!1,this.editable=!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.selectedViewIndexChange=new h.EventEmitter,this.navigate=new h.EventEmitter,this.dateChange=new h.EventEmitter,this.slotClick=new h.EventEmitter,this.slotDblClick=new h.EventEmitter,this.create=new h.EventEmitter,this.eventClick=new h.EventEmitter,this.eventDblClick=new h.EventEmitter,this.eventKeydown=new h.EventEmitter,this.cancel=new h.EventEmitter,this.save=new h.EventEmitter,this.remove=new h.EventEmitter,this.resizeStart=new h.EventEmitter,this.resize=new h.EventEmitter,this.resizeEnd=new h.EventEmitter,this.dragStart=new h.EventEmitter,this.drag=new h.EventEmitter,this.dragEnd=new h.EventEmitter,this.pdfExport=new h.EventEmitter,this.dragEndConfirmed=new h.EventEmitter,this.resizeEndConfirmed=new h.EventEmitter,this.removeConfirmed=new h.EventEmitter,this.viewIndex=0,this._timezone="",this._modelFields=F.defaultModelFields,m.validatePackage(g.packageMetadata),this.dateRangeStream=n.dateRange,this.selectedDateStream=t.selectedDate}t.SchedulerComponent=V},function(e,t){e.exports=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function p(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}function h(e,t){var n=y.isNumber(e.columnIndex)?e.columnIndex:Number.MAX_VALUE,r=y.isNumber(t.columnIndex)?t.columnIndex:Number.MAX_VALUE;return n===r?e.item.startTime.getTime()-t.item.startTime.getTime():n-r}var r=n(0),m=n(37),g=n(5),i=n(77),o=n(76),d=n(5),y=n(3);function a(e,t){if(void 0!==t.rowIndex)return t.rowIndex;for(var n=0;n<e.length;n++){var r=e[n];if(!r||!g.intersects(t.item.startTime,t.item.endTime,r.item.startTime,r.item.endTime))return n}return e.length}function s(e,t,n,r,i){var o=e[0].padding;if(!t.length)return{height:n-o};t.forEach(function(e){e.rowIndex=void 0,e.rect={height:r,width:0}});var a={};m.orderBy(t,[{field:"item.startTime",dir:"asc"},{field:"item.endTime",dir:"desc"}]).forEach(function(t){return e.filter(function(e){return g.intersects(t.item.startTime,t.item.endTime,e.start,e.end)}).forEach(function(e){e=a[e.key]=a[e.key]||{rows:[],slot:e,events:[]};t.rowIndex=i(e.rows,t),e.rows[t.rowIndex]=t,e.events.push(t)})});var s=e[0].top,c=0;return Object.keys(a).forEach(function(e){for(var t=a[e].events,n=0,r=0;r<t.length;r++){var i=t[r];i&&(i.rect.top=s+i.rowIndex*(10+i.rect.height),n=Math.max(n,i.rect.top-s+i.rect.height))}c=Math.max(n,c)}),{height:c+=n-o,slotItems:a}}function c(s,e,c){Object.keys(s).forEach(function(e){for(var e=s[e],t=e.slot,n=e.events,r=t.rect,i=0;i<n.length;i++){var o,a=n[i];a&&(y.isNumber(a.rect.left)||(a.rect.left=t.rect.left+(c?p(t,a.item.startTime,!1):0)),o=c&&a.item.endTime.getTime()<t.end.getTime()?p(t,a.item.endTime,!1):r.width,a.rect.width=t.rect.left+o-a.rect.left)}}),e.forEach(function(e){e.reflow()})}var l=(Object.defineProperty(u.prototype,"slots",{get:function(){return this.slotMap.toArray()},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"firstSlot",{get:function(){return this.slotMap.first},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"lastSlot",{get:function(){return this.slotMap.last},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"items",{get:function(){return this.itemMap.toArray()},enumerable:!0,configurable:!0}),Object.defineProperty(u.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(u.prototype,"start",{get:function(){var e=this.slotMap.first;return e?e.start:null},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"end",{get:function(){var e=this.slotMap.last;return e?e.end:null},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hasSlots",{get:function(){return 0<this.slotMap.count},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hasItems",{get:function(){return 0<this.itemMap.count},enumerable:!0,configurable:!0}),u.prototype.registerItem=function(e){this.itemMap.addItem(e.item.index,e)},u.prototype.unregisterItem=function(e,t){this.itemMap.removeItem(t.index,e)},u.prototype.registerSlot=function(e){this.slotMap.addItem(e.id.index,e)},u.prototype.unregisterSlot=function(e){this.slotMap.removeItem(e.id.index,e)},u.prototype.layout=function(e){var l,d,t,a,s,u,n=this.items;n.length&&(l=Math.max(Math.min(e.fill||.9,1),.1),e=m.orderBy(n,[{field:"item.startTime",dir:"asc"},{field:"item.endTime",dir:"desc"}]),n.forEach(function(e,t){e.rect=null,e.columnIndex=void 0}),d={},t=this.slots,e.forEach(function(n){return t.filter(function(e){return g.intersects(n.item.startTime,n.item.endTime,e.start,e.end)}).forEach(function(e){var t=d[e.key]=d[e.key]||{events:[]};t.slot=e,t.events.push(n)})}),n=Object.keys(d),a=d,s=0,u=[],n.forEach(function(e){var e=a[e],r=e.slot,c=e.events,t=c.length,i=!0;c.sort(h),s=Math.max(t,s),u.push(r);for(var n=function(o){var a=c[o];if(i=i&&a.item.endTime.getTime()<=r.end.getTime(),y.isNumber(a.columnIndex))return"continue";a.rect={top:r.rect.top+p(r,a.item.startTime)},a.columnIndex=o,a.lastColumn=!0;for(var s,e=0,t=-1;e<o;e++){var n=function(t,e){var n,r,i=c[t];return i.columnIndex>e+1?(a.columnIndex=e+1,a.lastColumn=!1,c.splice(o,1),c.splice(a.columnIndex,0,a),s=e,"break"):g.intersects(a.item.startTime,a.item.endTime,i.item.startTime,i.item.endTime)||(n=i.rect.top,r=a.rect.top,n<=r&&r<=n+25)?(e=i.columnIndex,i.lastColumn=!1,void(s=e)):(a.columnIndex=t,a.lastColumn=!c.some(function(e){return e.columnIndex&&t<e.columnIndex&&g.intersects(a.item.startTime,a.item.endTime,e.item.startTime,e.item.endTime)}),c.splice(o,1),c.splice(t,0,a),s=e,"break")}(e,t),t=s;if("break"===n)break}},o=0;o<t;o++)n(o);i&&(u.forEach(function(e){return e.columns=s}),u=[],s=0)}),u.forEach(function(e){return e.columns=s}),n.forEach(function(e){var t=d[e],n=t.slot,r=t.events,i=(r.length,n.rect),o=i.left,e=n.columns,t=i.width*l-2*(e-1)-2,a=o+2,s=t/e,c=a+t+2*(e-1);r.forEach(function(e){y.isNumber(e.rect.left)||(e.rect.left=a+e.columnIndex*(2+s),e.rect.width=e.lastColumn?c-e.rect.left:s,e.origin={left:o,right:o+i.width});var t=n.end.getTime()<=e.item.endTime.getTime()?i.height:p(n,e.item.endTime);e.rect.height=i.top+t-e.rect.top})}),e.forEach(function(e){return e.reflow()}))},u.prototype.initDaySlots=function(e,t){var n=this.slots;n.length&&(t=(e=s(n,this.items,e,t,g.findRowIndex)).height,e=e.slotItems,this.setSlotsHeight(t),this.slotItems=e)},u.prototype.setDayOffsets=function(){this.itemMap.count&&this.slotItems&&(c(this.slotItems,this.items),this.slotItems=null)},u.prototype.setSlotsHeight=function(e){this.firstSlot.height=e},u);function u(e){this.index=e,this.slotMap=new i.ItemMap,this.itemMap=new i.ItemMap}t.SlotRange=l;var f=(v.prototype.registerSlot=function(e){this.slotRange(e).registerSlot(e)},v.prototype.unregisterSlot=function(e){var t=this.slotRange(e);t.unregisterSlot(e),t.hasSlots||delete this.slotRanges(e)[e.id.rangeIndex]},v.prototype.registerItem=function(e){var t=this.itemRange(e);t?(t.registerItem(e),e.rangeIndex=t.index):(e.rangeIndex=void 0,e.toggle(!1))},v.prototype.unregisterItem=function(e,t){var n;void 0!==e.rangeIndex&&((n=e.item.isAllDay?this.dayRanges:this.timeRanges)[t.rangeIndex]&&n[t.rangeIndex].unregisterItem(e,t),e.rangeIndex=void 0)},v.prototype.forEachDateRange=function(e){for(var t=0;t<this.dayRanges.length;t++)e(this.dayRanges[t])},v.prototype.forEachTimeRange=function(e){for(var t=0;t<this.timeRanges.length;t++)e(this.timeRanges[t])},v.prototype.slotRange=function(e){var t=this.slotRanges(e),e=e.id.rangeIndex;return t[e]||(t[e]=new l(e)),t[e]},v.prototype.slotRanges=function(e){return e.isDaySlot?this.dayRanges:this.timeRanges},v.prototype.initTimeSlots=function(e,t,n){var r=this.slots;r.length&&(t=(e=s(r,this.items,e,t,a)).height,e=e.slotItems,this.setSlotsHeight(Math.max(t,n)),this.slotItems=e)},v.prototype.setTimelineOffsets=function(){var e=this.items;this.slotItems&&e.length&&(c(this.slotItems,e,!0),this.slotItems=null)},v.prototype.setSlotsHeight=function(e){this.timeRanges[0].setSlotsHeight(e)},Object.defineProperty(v.prototype,"items",{get:function(){return this.timeRanges.reduce(function(e,t){return e.concat(t.items)},[])},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"slots",{get:function(){return this.timeRanges.reduce(function(e,t){return e.concat(t.slots)},[])},enumerable:!0,configurable:!0}),Object.defineProperty(v.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}),v.prototype.cleanRanges=function(){this.dayRanges=this.dayRanges.filter(function(e){return Boolean(e)}),this.timeRanges=this.timeRanges.filter(function(e){return Boolean(e)})},v.prototype.itemRange=function(e){var t=e.item,e=t.isAllDay?this.dayRanges:this.timeRanges;return y.isNumber(t.rangeIndex)?e[t.rangeIndex]:e.find(function(e){return g.intersects(t.startTime,t.endTime,e.start,e.end)})},v);function v(e){this.index=e,this.dayRanges=[],this.timeRanges=[]}t.DayTimeResourceGroup=f;var _,r=(_=o.BaseSlotService,r.__extends(b,_),b.prototype.layoutDays=function(t){void 0===t&&(t=25),this.groups.forEach(function(e){return e.forEachDateRange(function(e){return e.slots.forEach(function(e){e.element.nativeElement.style.height=""})})});var n=this.groups[0].dayRanges[0].slots[0].height;this.groups.forEach(function(e){e.forEachDateRange(function(e){return e.initDaySlots(n,t)})}),this.groups.forEach(function(e){e.forEachDateRange(function(e){return e.setDayOffsets()})})},b.prototype.layoutTimeline=function(n,r){this.groups.forEach(function(e){return e.forEachTimeRange(function(e){return e.slots.forEach(function(e){e.element.nativeElement.style.height=""})})});var i=this.groups[0].timeRanges[0].slots[0].height;this.groups.forEach(function(e,t){e.initTimeSlots(i,n,r&&r[t]?r[t].nativeElement.children[0].children[0].offsetHeight:0)}),this.groups.forEach(function(e){return e.setTimelineOffsets()})},b.prototype.layoutTimes=function(t){this.groups.forEach(function(e){return e.forEachTimeRange(function(e){return e.layout(t)})})},b.prototype.forEachDateRange=function(n){this.groups.forEach(function(e,t){n(e.dayRanges[0],t)})},b.prototype.syncDateRanges=function(){var t=0;return this.groups.forEach(function(e){e=e.dayRanges[0].firstSlot;e&&(t=Math.max(e.rect.height-e.padding,t))}),this.groups.forEach(function(e){e.dayRanges[0].setSlotsHeight(t)}),t},b.prototype.forEachGroup=function(e){this.groups.forEach(e)},b.prototype.forEachSlot=function(t){this.groups.forEach(function(e){e.dayRanges.forEach(function(e){e.slots.forEach(function(e){return t(e)})}),e.timeRanges.forEach(function(e){e.slots.forEach(function(e){return t(e)})})})},b.prototype.createGroup=function(e){return new f(e)},b.prototype.slotByIndex=function(e,t){void 0===t&&(t=!1);var n=e.split(":").map(function(e){return parseInt(e,10)}),r=n[0],e=n[1],n=n[2];return this.groups[r][t?"dayRanges":"timeRanges"][e].slots[n]},b.prototype.slotByPosition=function(t,n,e,r){var i;if(e){if(this.groups.find(function(e){return i=e.dayRanges.find(function(e){return d.rectContainsX(e.rect,t)})}),i)return i.slots.find(function(e){return d.rectContainsX(e.rect,t)})}else if(this.groups.find(function(e){return i=(i=r?e.dayRanges.find(function(e){return d.rectContains(e.rect,t,n)}):i)||e.timeRanges.find(function(e){return d.rectContains(e.rect,t,n)})}),i)return i.slots.find(function(e){return d.rectContains(e.rect,t,n)})},b.prototype.groupSlotByPosition=function(e,t,n){var r=this.groups[e.id.resourceIndex];if(r=e.isDaySlot?r.dayRanges.find(function(e){return d.rectContains(e.rect,t,n)}):r.timeRanges.find(function(e){return d.rectContains(e.rect,t,n)}))return r.slots.find(function(e){return d.rectContains(e.rect,t,n)})},b.prototype.dragRanges=function(e,t,n){var r,i=new Date(e.start.getTime()-t.start),o=new Date(e.start.getTime()+t.end),t=this.groups[e.id.resourceIndex];return e=n?(r=[],t.timeRanges.forEach(function(e){e=e.slots.filter(function(e){return g.intersects(i,o,e.start,e.end)});e.length&&r.push(e)}),n=r[r.length-1],[r[0][0],n[n.length-1]]):t.slotRange(e).slots.filter(function(e){return g.intersects(i,o,e.start,e.end)}),{start:i,end:o,ranges:[e]}},b.prototype.resizeRanges=function(e,t,n,r){var i,o,a=this.groups[e.id.resourceIndex],s=t.isAllDay?a.dayRanges:a.timeRanges,c=[],l=t.start.toUTCDate(),a=t.end.toUTCDate();return n?(n=e.start.getTime()+r.start,i=l.getTime()===a.getTime()?this.findDateSlot(a,s,!0).end:a,o=n>=a.getTime()?t.isAllDay?new Date(Math.min(d.dateWithTime(a,l).getTime(),a.getTime())):this.findDateSlot(i,s).start:r.start&&t.isAllDay?new Date(n):new Date(e.start.getTime())):(o=l,i=e.start.getTime()<=o.getTime()?t.isAllDay?new Date(Math.max(d.dateWithTime(l,a).getTime(),l.getTime())):this.findDateSlot(o,s,!0).end:r.end&&t.isAllDay?new Date(e.start.getTime()+r.end):e.end),s.forEach(function(e){e=e.slots.filter(function(e){return g.intersects(o,i,e.start,e.end)});e.length&&c.push(e)}),{start:o,end:i,ranges:c}},b.prototype.timePosition=function(t,e,n){var r=this.groups[e].timeRanges.find(function(e){return d.dateInRange(t,e.start,e.end)});if(r){e=r.slots.find(function(e){return d.dateInRange(t,e.start,e.end)});if(e){r=(n?e.height:e.width)*((t.getTime()-e.start.getTime())/(e.end.getTime()-e.start.getTime()));return n?e.rect.top+r:e.rect.left+r}}},b.prototype.findDateSlot=function(t,e,n){var r;return e.forEach(function(e){e=n?e.slots.filter(function(e){return g.intersects(t,t,e.start,e.end)}):e.slots.filter(function(e){return d.dateInRange(t,e.start,e.end)});e.length&&(r=e[0])}),r},b);function b(){return null!==_&&_.apply(this,arguments)||this}t.DayTimeSlotService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(9),n=n(40),n=(Object.defineProperty(a.prototype,"activeElement",{get:function(){if(this.activeItem)return this.activeItem.element},enumerable:!0,configurable:!0}),a.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},a.prototype.register=function(e){this.activeItem||(this.activeItem=e).toggle(!0),this.items.add(e),this.elementMap.set(e.element.nativeElement,e),this.toggleWrapper()},a.prototype.unregister=function(e){this.items.delete(e),this.elementMap.delete(e.element.nativeElement),e===this.activeItem&&this.activateNext(),this.toggleWrapper()},a.prototype.focus=function(){(this.activeItem||this.wrapper.nativeElement).focus()},a.prototype.focusNext=function(e){var t=this.activeItem;return this.activateNext(e),this.activeItem&&this.activeItem.focus(),this.activeItem!==t},a.prototype.activate=function(t){this.items.forEach(function(e){return e.toggle(e===t)}),this.activeItem=t},a.prototype.activateNext=function(e){this.activeItem=this.findNext(e)},a.prototype.findNext=function(e){var t=r.__assign({nowrap:!1,offset:1},e),n=t.offset,e=t.nowrap,t=Array.from(this.items.values()).filter(function(e){return e.canFocus()}).sort(function(e,t){return e.focusIndex-t.focusIndex});if(0===t.length)return null;if(!this.activeItem)return e?null:t[0];n=t.indexOf(this.activeItem)+n;return e?n=Math.max(0,Math.min(t.length-1,n)):(n%=t.length)<0&&(n=t.length-1),t[n]},a.prototype.toggleWrapper=function(){this.wrapper&&this.renderer.setAttribute(this.wrapper.nativeElement,"tabindex",this.activeItem?"-1":"0")},a.prototype.onFocusIn=function(e){e=this.elementMap.get(e.target);e&&e!==this.focusedItem&&(this.focusedItem&&this.focusedItem.toggleFocus(!1),this.activate(e),e.toggleFocus(!0),this.focusedItem=e)},a.prototype.onFocusOut=function(){this.focusedItem&&(this.focusedItem.toggleFocus(!1),this.focusedItem=null)},r.__decorate([i.Injectable(),r.__param(0,i.Optional()),r.__param(1,i.Optional()),r.__metadata("design:paramtypes",[i.Renderer2,i.ElementRef,n.DomEventsService])],a));function a(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()}))}t.FocusService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(173);t.DateChangeEvent=r.DateChangeEvent;r=n(172);t.NavigateEvent=r.NavigateEvent;r=n(99);t.SlotClickEvent=r.SlotClickEvent;r=n(98);t.EventClickEvent=r.EventClickEvent;r=n(97);t.EventKeydownEvent=r.EventKeydownEvent;r=n(171);t.VIEW_EVENT_MAP=r.VIEW_EVENT_MAP;r=n(169);t.CancelEvent=r.CancelEvent;r=n(56);t.EditEventBase=r.EditEventBase;r=n(93);t.RemoveEvent=r.RemoveEvent;r=n(168);t.SaveEvent=r.SaveEvent;r=n(90);t.ResizeStartEvent=r.ResizeStartEvent;r=n(91);t.ResizeEvent=r.ResizeEvent;r=n(92);t.ResizeEndEvent=r.ResizeEndEvent;r=n(94);t.DragStartEvent=r.DragStartEvent;r=n(95);t.DragEvent=r.DragEvent;r=n(96);t.DragEndEvent=r.DragEndEvent;r=n(167);t.EditEvent=r.EditEvent;n=n(166);t.AddEvent=n.AddEvent},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(1),r=(i=n(70).DayTimeViewBase,r.__extends(a,i),Object.defineProperty(a.prototype,"viewColumnWidth",{get:function(){return this.optionValue("columnWidth")},enumerable:!0,configurable:!0}),r.__decorate([o.Input(),r.__metadata("design:type",Number)],a.prototype,"columnWidth",void 0),a);function a(e,t,n,r){return i.call(this,e,t,n,r)||this}t.TimelineBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r,i=n(0),a=n(1),s=n(2),c=n(11),l=n(71),d=n(6),u=n(10),p=n(7),h=n(4),n=n(19),p=(o=l.MultiDayViewBase,i.__extends(m,o),r=m,Object.defineProperty(m.prototype,"title",{get:function(){return this.localization.get("weekViewTitle")},enumerable:!0,configurable:!0}),m.prototype.getStartDate=function(e){return h.firstDayInWeek(h.getDate(e),this.viewWeekStart)},i.__decorate([a.Input(),i.__metadata("design:type",String)],m.prototype,"selectedDateFormat",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],m.prototype,"selectedShortDateFormat",void 0),i.__decorate([a.ContentChild(n.AllDaySlotTemplateDirective,{static:!1}),i.__metadata("design:type",n.AllDaySlotTemplateDirective)],m.prototype,"allDaySlotTemplate",void 0),i.__decorate([a.ContentChild(n.AllDayEventTemplateDirective,{static:!1}),i.__metadata("design:type",n.AllDayEventTemplateDirective)],m.prototype,"allDayEventTemplate",void 0),i.__decorate([a.ContentChild(n.MinorTimeHeaderTemplateDirective,{static:!1}),i.__metadata("design:type",n.MinorTimeHeaderTemplateDirective)],m.prototype,"minorTimeHeaderTemplate",void 0),i.__decorate([a.ContentChild(n.MajorTimeHeaderTemplateDirective,{static:!1}),i.__metadata("design:type",n.MajorTimeHeaderTemplateDirective)],m.prototype,"majorTimeHeaderTemplate",void 0),r=i.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-week-view",providers:[{provide:c.SchedulerView,useExisting:a.forwardRef(function(){return r})}],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 '}),i.__metadata("design:paramtypes",[d.IntlService,s.LocalizationService,a.ChangeDetectorRef,u.ViewContextService,p.ViewStateService])],m));function m(e,t,n,r,i){i=o.call(this,t,n,r,i)||this;return i.intl=e,i.selectedDateFormat="{0:D} - {1:D}",i.selectedShortDateFormat="{0:d} - {1:d}",i.name="week",i.getStartDate=i.getStartDate.bind(i),i}t.WeekViewComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o=n(0),a=n(1),s=n(2),c=n(11),l=n(71),d=n(10),u=n(7),n=n(19),u=(i=l.MultiDayViewBase,o.__extends(p,i),r=p,Object.defineProperty(p.prototype,"title",{get:function(){return this.localization.get("dayViewTitle")},enumerable:!0,configurable:!0}),o.__decorate([a.Input(),o.__metadata("design:type",String)],p.prototype,"selectedDateFormat",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],p.prototype,"selectedShortDateFormat",void 0),o.__decorate([a.ContentChild(n.AllDaySlotTemplateDirective,{static:!1}),o.__metadata("design:type",n.AllDaySlotTemplateDirective)],p.prototype,"allDaySlotTemplate",void 0),o.__decorate([a.ContentChild(n.AllDayEventTemplateDirective,{static:!1}),o.__metadata("design:type",n.AllDayEventTemplateDirective)],p.prototype,"allDayEventTemplate",void 0),o.__decorate([a.ContentChild(n.MinorTimeHeaderTemplateDirective,{static:!1}),o.__metadata("design:type",n.MinorTimeHeaderTemplateDirective)],p.prototype,"minorTimeHeaderTemplate",void 0),o.__decorate([a.ContentChild(n.MajorTimeHeaderTemplateDirective,{static:!1}),o.__metadata("design:type",n.MajorTimeHeaderTemplateDirective)],p.prototype,"majorTimeHeaderTemplate",void 0),r=o.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-day-view",providers:[{provide:c.SchedulerView,useExisting:a.forwardRef(function(){return r})}],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 '}),o.__metadata("design:paramtypes",[s.LocalizationService,a.ChangeDetectorRef,d.ViewContextService,u.ViewStateService])],p));function p(e,t,n,r){r=i.call(this,e,t,n,r)||this;return r.selectedDateFormat="{0:D}",r.selectedShortDateFormat="{0:d}",r.name="day",r}t.DayViewComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(23),a=n(6),s=n(72),c=n(138),l=n(137),d=n(136),u=n(35),p=n(135),n=n(21),p=[s.ViewFooterComponent,c.WorkHoursFooterDirective,l.RepeatPipe,d.ResourceIteratorPipe,u.HintContainerComponent,p.ResizeHintComponent],p=r.__decorate([i.NgModule({imports:[o.CommonModule,a.IntlModule,n.SharedModule],exports:[p,a.IntlModule,o.CommonModule,n.SharedModule],declarations:[p]})],h);function h(){}t.ViewsSharedModule=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=(i.prototype.detectChanges=function(){this.changeDetector.detectChanges()},r.__decorate([n.ContentChild(n.TemplateRef,{static:!1}),r.__metadata("design:type",n.TemplateRef)],i.prototype,"hintTemplate",void 0),r.__decorate([n.Component({selector:"kendo-hint-container",template:'\n <ng-container [ngTemplateOutlet]="hintTemplate">\n </ng-container>\n '}),r.__metadata("design:paramtypes",[n.ChangeDetectorRef])],i));function i(e){this.changeDetector=e,this.changeDetector.detach()}t.HintContainerComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(37),l=n(5),o=n(77),a=n(76),s=n(18),c=(Object.defineProperty(d.prototype,"slots",{get:function(){return this.slotMap.toArray()},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"items",{get:function(){return this.itemMap.toArray()},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"start",{get:function(){var e=this.slotMap.first;return e?e.start:null},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"end",{get:function(){var e=this.slotMap.last;return e?l.addUTCDays(e.end,1):null},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasSlots",{get:function(){return 0<this.slotMap.count},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"hasItems",{get:function(){return 0<this.itemMap.count},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"firstSlot",{get:function(){return this.slotMap.first},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"lastSlot",{get:function(){return this.slotMap.last},enumerable:!0,configurable:!0}),Object.defineProperty(d.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}),d.prototype.registerItem=function(e){this.itemMap.addItem(e.item.index,e)},d.prototype.unregisterItem=function(e,t){this.itemMap.removeItem(t,e)},d.prototype.registerSlot=function(e){this.slotMap.addItem(e.id.index,e)},d.prototype.unregisterSlot=function(e){this.slotMap.removeItem(e.id.index,e)},d.prototype.layout=function(o){var e,a,t;this.hasItems&&(e=this.items,e=i.orderBy(e,[{field:"item.startTime",dir:"asc"},{field:"item.endTime",dir:"desc"}]),a={},t=this.slots,e.forEach(function(i){return t.filter(function(e){return l.intersects(i.item.startTime,i.item.endTime,e.start,e.end)}).forEach(function(e){var t=a[e.key]=a[e.key]||{events:[],height:e.linkHeight},n=(t.slot=e).rect,r=i.item.data[i.resourceIndex];r.rowIndex=l.findRowIndex(t.events,r),t.height+o+2+13>n.height||r.hidden?(r.hidden=!0,e.showMore({width:n.width,left:n.left,top:n.top+e.linkHeight+r.rowIndex*(o+2)})):((t.events[r.rowIndex]=i).rect||(i.rect={top:n.top+e.linkHeight+r.rowIndex*(o+2),left:n.left,height:o,width:0}),i.rect.width+=n.width+s.BORDER_WIDTH,t.height+=o+2)})}),e.forEach(function(e){e.rect&&(e.rect.width-=s.BORDER_WIDTH),e.reflow()}))},d);function d(e){this.index=e,this.slotMap=new o.ItemMap,this.itemMap=new o.ItemMap}t.SlotRange=c;var u=(Object.defineProperty(p.prototype,"hasSlots",{get:function(){return Boolean(this.dayRanges.find(function(e){return e&&e.hasSlots}))},enumerable:!0,configurable:!0}),p.prototype.registerSlot=function(e){this.slotRange(e).registerSlot(e)},p.prototype.unregisterSlot=function(e){var t=this.dayRanges[e.id.rangeIndex];t.unregisterSlot(e),t.hasSlots||delete this.dayRanges[e.id.rangeIndex]},p.prototype.registerItem=function(e){this.dayRanges[e.rangeIndex].registerItem(e)},p.prototype.unregisterItem=function(e,t){var n=this.dayRanges[t.rangeIndex];n&&n.unregisterItem(e,t.index)},p.prototype.slotRange=function(e){var t=this.dayRanges,e=e.id.rangeIndex;return t[e]||(t[e]=new c(e)),t[e]},p.prototype.forEachRange=function(e){for(var t=0;t<this.dayRanges.length;t++)e(this.dayRanges[t])},p.prototype.cleanRanges=function(){this.dayRanges=this.dayRanges.filter(function(e){return Boolean(e)})},p);function p(e){this.index=e,this.dayRanges=[]}t.MonthResourceGroup=u;var h,r=(h=a.BaseSlotService,r.__extends(m,h),m.prototype.layout=function(t){this.groups.forEach(function(e){return e.forEachRange(function(e){return e.layout(t)})})},m.prototype.slotByIndex=function(e){var t=e.split(":").map(function(e){return parseInt(e,10)}),n=t[0],e=t[1],t=t[2];return this.groups[n].dayRanges[e].slots[t]},m.prototype.forEachSlot=function(t){this.groups.forEach(function(e){e.dayRanges.forEach(function(e){e.slots.forEach(function(e){return t(e)})})})},m.prototype.forEachItem=function(t){this.groups.forEach(function(e){e.dayRanges.forEach(function(e){e.items.forEach(function(e){return t(e)})})})},m.prototype.createGroup=function(e){return new u(e)},m.prototype.invalidate=function(){h.prototype.invalidate.call(this),this.forEachItem(function(e){var t=e.item.data;Object.keys(t).forEach(function(e){t[e].hidden=!1})})},m.prototype.slotByPosition=function(t,n){var r;if(this.groups.find(function(e){return r=e.dayRanges.find(function(e){return l.rectContains(e.rect,t,n)})}),r)return r.slots.find(function(e){return l.rectContains(e.rect,t,n)})},m.prototype.dragRanges=function(e,t){var n=new Date(e.start.getTime()-t.start),r=new Date(e.start.getTime()+t.end),i=[];return this.groups[e.id.resourceIndex].dayRanges.forEach(function(e){e=e.slots.filter(function(e){return l.intersects(n,r,e.start,e.end)});e.length&&i.push(e)}),{start:n,end:r,ranges:i}},m.prototype.groupSlotByPosition=function(e,t,n){e=this.groups[e.id.resourceIndex].dayRanges.find(function(e){return l.rectContains(e.rect,t,n)});if(e)return e.slots.find(function(e){return l.rectContains(e.rect,t,n)})},m.prototype.resizeRanges=function(e,t,n,r){var i,o,a=this.groups[t.resources[0].leafIdx],s=[],c=t.start.toUTCDate(),t=t.end.toUTCDate();return n?((i=e.start.getTime()+r.start)>t.getTime()&&(i=new Date(Math.min(l.dateWithTime(t,c).getTime(),t.getTime()))),o=t):(i=c,(o=e.start.getTime()+r.end)<i.getTime()&&(o=new Date(Math.max(l.dateWithTime(c,t).getTime(),i.getTime())))),a.dayRanges.forEach(function(e){e=e.slots.filter(function(e){return l.intersects(i,o,e.start,e.end)});e.length&&s.push(e)}),{start:new Date(i),end:new Date(o),ranges:s}},m);function m(){return null!==h&&h.apply(this,arguments)||this}t.MonthSlotService=r},function(e,t){e.exports=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e){return null}var o,i=n(0),a=n(1),s=n(11),c=n(19),l=n(3),c=(o=s.SchedulerView,i.__extends(d,o),Object.defineProperty(d.prototype,"viewSlotClass",{get:function(){return l.isPresent(this.slotClass)?this.slotClass:this.schedulerOptions.slotClass||r},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewEventClass",{get:function(){return(l.isPresent(this.eventClass)?this:this.schedulerOptions).eventClass},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewEventStyles",{get:function(){return(l.isPresent(this.eventStyles)?this:this.schedulerOptions).eventStyles},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewWeekStart",{get:function(){return this.schedulerOptions.weekStart},enumerable:!0,configurable:!0}),d.prototype.ngOnChanges=function(e){this.viewState.notifyOptionsChange()},d.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},d.prototype.optionsChange=function(e){this.schedulerOptions=e},i.__decorate([a.Input(),i.__metadata("design:type",Function)],d.prototype,"slotClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],d.prototype,"eventClass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Function)],d.prototype,"eventStyles",void 0),i.__decorate([a.ViewChild("content",{static:!0}),i.__metadata("design:type",a.TemplateRef)],d.prototype,"template",void 0),i.__decorate([a.ContentChild(c.EventTemplateDirective,{static:!1}),i.__metadata("design:type",c.EventTemplateDirective)],d.prototype,"eventTemplate",void 0),i.__decorate([a.ContentChild(c.GroupHeaderTemplateDirective,{static:!1}),i.__metadata("design:type",c.GroupHeaderTemplateDirective)],d.prototype,"groupHeaderTemplate",void 0),d);function d(e,t,n,r){var i=o.call(this)||this;return i.localization=e,i.changeDetector=t,i.viewContext=n,i.viewState=r,i.schedulerOptions={},i.subs=i.localization.changes.subscribe(function(e){e.rtl,t.markForCheck()}),i.subs.add(i.viewContext.optionsChange.subscribe(i.optionsChange.bind(i))),i}t.ConfigurationViewBase=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o=n(0),a=n(1),s=n(2),c=n(38),l=n(11),d=n(10),u=n(7),n=n(19),u=(i=c.ConfigurationViewBase,o.__extends(p,i),r=p,Object.defineProperty(p.prototype,"title",{get:function(){return this.localization.get("agendaViewTitle")},enumerable:!0,configurable:!0}),o.__decorate([a.Input(),o.__metadata("design:type",String)],p.prototype,"selectedDateFormat",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],p.prototype,"selectedShortDateFormat",void 0),o.__decorate([a.Input(),o.__metadata("design:type",Number)],p.prototype,"numberOfDays",void 0),o.__decorate([a.ContentChild(n.EventTemplateDirective,{static:!1}),o.__metadata("design:type",n.EventTemplateDirective)],p.prototype,"eventTemplate",void 0),o.__decorate([a.ContentChild(n.AgendaTimeTemplateDirective,{static:!1}),o.__metadata("design:type",n.AgendaTimeTemplateDirective)],p.prototype,"agendaTimeTemplate",void 0),o.__decorate([a.ContentChild(n.AgendaDateTemplateDirective,{static:!1}),o.__metadata("design:type",n.AgendaDateTemplateDirective)],p.prototype,"agendaDateTemplate",void 0),r=o.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-agenda-view",providers:[{provide:l.SchedulerView,useExisting:a.forwardRef(function(){return r})}],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 '}),o.__metadata("design:paramtypes",[s.LocalizationService,a.ChangeDetectorRef,d.ViewContextService,u.ViewStateService])],p));function p(e,t,n,r){r=i.call(this,e,t,n,r)||this;return r.selectedDateFormat="{0:D} - {1:D}",r.selectedShortDateFormat="{0:d} - {1:d}",r.numberOfDays=7,r.name="agenda",r}t.AgendaViewComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),r=r.__decorate([i.Injectable()],o);function o(){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}t.DomEventsService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(85),a=n(2),s=n(17),c=n(29),n=n(7),n=(l.prototype.openRemoveConfirmationDialog=function(){var t=this,e=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(),e.result.pipe(s.map(function(e){return t.isOpen=!1,e instanceof o.DialogCloseResult?(t.focusService.focus(),!1):(t.viewState.layoutEnd.pipe(s.take(1)).subscribe(function(){return t.focusService.focus()}),e.value)}))},l.prototype.openRecurringConfirmationDialog=function(e){var t=this,e=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(),e.result.pipe(s.map(function(e){if(t.isOpen=!1,t.focusService.focus(),!(e instanceof o.DialogCloseResult))return e.value}))},l.prototype.textFor=function(e){return this.localization.get(e)},r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[o.DialogService,a.LocalizationService,i.ChangeDetectorRef,c.FocusService,n.ViewStateService])],l));function l(e,t,n,r,i){this.dialogService=e,this.localization=t,this.changeDetector=n,this.focusService=r,this.viewState=i,this.isOpen=!1}t.DialogsService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),r=r.__decorate([i.Injectable()],o);function o(){this.changes=new i.EventEmitter}t.LocalDataChangesService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=(r.__decorate([n.Input(),r.__metadata("design:type",String)],i.prototype,"autoFocusedElement",void 0),r.__decorate([n.Directive({selector:"[kendoSchedulerEditDialogTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i));function i(e){this.templateRef=e}t.EditDialogTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerTimeSlotTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.TimeSlotTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerMonthDaySlotTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.MonthDaySlotTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerMinorTimeHeaderTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.MinorTimeHeaderTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerMajorTimeHeaderTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.MajorTimeHeaderTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerGroupHeaderTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.GroupHeaderTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerEventTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.EventTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerDateHeaderTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.DateHeaderTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerAllDaySlotTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.AllDaySlotTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerAllDayEventTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.AllDayEventTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerAgendaTimeTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.AgendaTimeTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerAgendaDateTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.AgendaDateTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=r.__decorate([n.Directive({selector:"[kendoSchedulerToolbarTemplate]"}),r.__param(0,n.Optional()),r.__metadata("design:paramtypes",[n.TemplateRef])],i);function i(e){this.templateRef=e}t.ToolbarTemplateDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditEventBase=function(e,t){this.sender=e,Object.assign(this,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(0),i=n(1),a=n(22),s=n(2),n=n(15),i=(o=a.Button,r.__extends(c,o),c.prototype.onClick=function(e){e.preventDefault(),this.pdfService.exportClick.emit()},c.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)],c.prototype,"onClick",null),r.__decorate([i.Directive({selector:"[kendoSchedulerPDFCommand]"}),r.__metadata("design:paramtypes",[n.PDFService,i.ElementRef,i.Renderer2,s.LocalizationService,i.NgZone])],c));function c(e,t,n,r,i){i=o.call(this,t,n,null,r,i)||this;return i.pdfService=e,i}t.PDFCommandDirective=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function i(e){return t=e,e=document.createElement("div"),t&&(e.className=t),e;var t}var r=n(0),o=n(1),a=n(15),s=n(101),c=n(100),o=(l.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},Object.defineProperty(l.prototype,"drawOptions",{get:function(){return{_destructive:!0,avoidLinks:this.avoidLinks,margin:this.margin,scale:this.scale}},enumerable:!0,configurable:!0}),Object.defineProperty(l.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(l.prototype,"saveOptions",{get:function(){return{forceProxy:this.forceProxy,proxyData:this.proxyData,proxyTarget:this.proxyTarget,proxyURL:this.proxyURL}},enumerable:!0,configurable:!0}),l.prototype.createElement=function(n){var r=this;this.ngZone.runOutsideAngular(function(){var e=r.container=i();e.style.top=e.style.left="-10000px",e.style.position="absolute";var t=i("k-widget k-scheduler k-floatwrap");t.style.position="relative",t.appendChild(n.element),e.appendChild(t),document.body.appendChild(e),r.save(t)})},l.prototype.save=function(e){this.drawElement(e,this.drawOptions).then(this.exportGroup).then(this.saveDataUri).then(this.done,this.done)},l.prototype.drawElement=function(e,t){return s.drawDOM(e,t)},l.prototype.exportGroup=function(e){return s.exportPDF(e,this.pdfOptions)},l.prototype.saveDataUri=function(e){c.saveAs(e,this.fileName,this.saveOptions)},l.prototype.done=function(){this.container&&(document.body.removeChild(this.container),this.container=null),this.pdfService.done.emit()},r.__decorate([o.Input(),r.__metadata("design:type",String)],l.prototype,"author",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],l.prototype,"avoidLinks",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],l.prototype,"creator",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Date)],l.prototype,"date",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Number)],l.prototype,"imageResolution",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],l.prototype,"fileName",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],l.prototype,"forceProxy",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],l.prototype,"keywords",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],l.prototype,"margin",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Number)],l.prototype,"scale",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],l.prototype,"proxyData",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],l.prototype,"proxyURL",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],l.prototype,"proxyTarget",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],l.prototype,"producer",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],l.prototype,"subject",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],l.prototype,"title",void 0),r.__decorate([o.Component({selector:"kendo-scheduler-pdf",template:""}),r.__metadata("design:paramtypes",[a.PDFService,o.NgZone])],l));function l(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)}t.PDFComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),o=n(1),i=(r=n(2).ComponentMessages,i.__extends(a,r),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"repeat",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"dailyInterval",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"dailyRepeatEvery",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"weeklyInterval",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"weeklyRepeatEvery",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"weeklyRepeatOn",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"monthlyDay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"monthlyInterval",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"monthlyRepeatEvery",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"monthlyRepeatOn",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"yearlyOf",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"yearlyRepeatEvery",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"yearlyRepeatOn",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"yearlyInterval",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"frequenciesDaily",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"frequenciesMonthly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"frequenciesNever",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"frequenciesWeekly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"frequenciesYearly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"offsetPositionsFirst",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"offsetPositionsSecond",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"offsetPositionsThird",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"offsetPositionsFourth",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"offsetPositionsLast",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"weekdaysDay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"weekdaysWeekday",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"weekdaysWeekendday",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"endAfter",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"endOccurrence",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"endLabel",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"endNever",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"endOn",void 0),a);function a(){return null!==r&&r.apply(this,arguments)||this}t.Messages=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),n=n(13),i=(Object.defineProperty(o.prototype,"repeatOnRule",{set:function(e){e=e.split("-");this._repeatOnRule=e[0],this._uniqueId=e[1]},enumerable:!0,configurable:!0}),o.prototype.ngOnInit=function(){this.renderer.setAttribute(this.elem,"id","k-repeaton-"+this._repeatOnRule+"-"+this._uniqueId),this.renderer.setAttribute(this.elem,"name","day-"+this._uniqueId)},o.prototype.ngAfterContentChecked=function(){this.setCheckedState()},o.prototype.ngOnDestroy=function(){this.destroyChange&&this.destroyChange()},o.prototype.onChange=function(){this.elem.checked&&(this.recurrence.repeatOnRule=this._repeatOnRule,this.changeDetector.markForCheck())},o.prototype.setCheckedState=function(){var e=this._repeatOnRule===this.recurrence.repeatOnRule;this.renderer.setProperty(this.elem,"checked",e)},Object.defineProperty(o.prototype,"elem",{get:function(){return this.el.nativeElement},enumerable:!0,configurable:!0}),r.__decorate([i.HostBinding("attr.type"),r.__metadata("design:type",String)],o.prototype,"type",void 0),r.__decorate([i.HostBinding("class.k-radio"),r.__metadata("design:type",Boolean)],o.prototype,"radioClass",void 0),r.__decorate([i.Input("kendoRecurrenceRepeatOnRadioButton"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],o.prototype,"repeatOnRule",null),r.__decorate([i.Directive({selector:"[kendoRecurrenceRepeatOnRadioButton]"}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,n.RecurrenceService,i.ChangeDetectorRef])],o));function o(e,t,n,r){this.el=e,this.renderer=t,this.recurrence=n,this.changeDetector=r,this.type="radio",this.radioClass=!0,this.destroyChange=this.renderer.listen(this.elem,"change",this.onChange.bind(this))}t.RepeatOnRadioButtonDirective=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),n=n(13),i=(o.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())},o.prototype.ngAfterContentChecked=function(){this.setCheckedState()},o.prototype.ngOnDestroy=function(){this.destroyChange&&this.destroyChange()},o.prototype.onChange=function(){this.elem.checked&&(this.recurrence.endRule=this.endRule,this.changeDetector.markForCheck())},o.prototype.setCheckedState=function(){var e=this.endRule===this.recurrence.endRule;this.renderer.setProperty(this.elem,"checked",e)},Object.defineProperty(o.prototype,"elem",{get:function(){return this.el.nativeElement},enumerable:!0,configurable:!0}),r.__decorate([i.HostBinding("attr.type"),r.__metadata("design:type",String)],o.prototype,"type",void 0),r.__decorate([i.HostBinding("class.k-radio"),r.__metadata("design:type",Boolean)],o.prototype,"radioClass",void 0),r.__decorate([i.Input("kendoRecurrenceEndRuleRadioButton"),r.__metadata("design:type",String)],o.prototype,"endRuleId",void 0),r.__decorate([i.Directive({selector:"[kendoRecurrenceEndRuleRadioButton]"}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,n.RecurrenceService,i.ChangeDetectorRef])],o));function o(e,t,n,r){this.el=e,this.renderer=t,this.recurrence=n,this.changeDetector=r,this.type="radio",this.radioClass=!0,this.destroyChange=this.renderer.listen(this.elem,"change",this.onChange.bind(this))}t.EndRuleRadioButtonDirective=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(16),a=n(8),s=n(6),c=n(2),l=n(4),d=n(13),u=n(3),n=n(113);t.RECURRENCE_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:i.forwardRef(function(){return p})};var p=(Object.defineProperty(h.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(h.prototype,"currentFreq",{get:function(){return this.recurrenceService.frequency},enumerable:!0,configurable:!0}),h.prototype.ngOnInit=function(){this.recurrenceService.init("",this.start,this.timezone,this.weekStart)},h.prototype.ngOnChanges=function(e){a.isChanged("start",e)&&(this.recurrenceService.start=this.start)},h.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},h.prototype.writeValue=function(e){this.recurrenceService.init("string"==typeof e?e:"",this.start,this.timezone,this.weekStart)},h.prototype.registerOnChange=function(e){this.onChangeCallback=e},h.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},h.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},r.__decorate([i.HostBinding("class.k-recurrence-editor"),r.__metadata("design:type",Boolean)],h.prototype,"cssClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date),r.__metadata("design:paramtypes",[Date])],h.prototype,"start",null),r.__decorate([i.Input(),r.__metadata("design:type",String)],h.prototype,"timezone",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],h.prototype,"weekStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],h.prototype,"repeatEveryOptions",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],h.prototype,"endAfterOptions",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],h.prototype,"repeatOnOptions",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],h.prototype,"endOnOptions",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],h.prototype,"valueChange",void 0),r.__decorate([i.Component({exportAs:"kendoRecurrenceEditor",providers:[n.RecurrenceLocalizationService,{provide:c.LocalizationService,useExisting:n.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])],h));function h(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)})}t.RecurrenceEditorComponent=p},function(e,t,n){"use strict";var r,i;function o(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}),(i=r=t.Modifiers||(t.Modifiers={}))[i.None=0]="None",i[i.AltKey=1]="AltKey",i[i.CtrlKey=2]="CtrlKey",i[i.ShiftKey=4]="ShiftKey",i[i.MetaKey=8]="MetaKey",t.withModifiers=o,t.noModifiers=function(e){return o(e,r.None)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(16),a=n(65),n=n(27);t.SINGLE_RESOURCE_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:i.forwardRef(function(){return c})};var s,c=(s=a.ResourceEditorBase,r.__extends(l,s),l.prototype.focus=function(){this.resourceDropDown.focus()},r.__decorate([i.ViewChild("resourceDropDown",{static:!0}),r.__metadata("design:type",n.DropDownListComponent)],l.prototype,"resourceDropDown",void 0),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 "})],l));function l(){return null!==s&&s.apply(this,arguments)||this}t.SingleResourceEditorComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(3),r=(a.prototype.writeValue=function(e){this.resourceValue=e},a.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"}},a.prototype.onResourceValueChange=function(e){this.resourceValue=e,this.emitChange(this.resourceValue)},a.prototype.registerOnChange=function(e){this.onChangeCallback=e},a.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},a.prototype.emitChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},r.__decorate([i.Input(),r.__metadata("design:type",Object)],a.prototype,"resource",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],a.prototype,"valueChange",void 0),a);function a(){this.valueChange=new i.EventEmitter,this.getField=o.getField,this.onTouchedCallback=function(e){},this.onChangeCallback=function(e){}}t.ResourceEditorBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(16),a=n(65),n=n(27);t.MULTIPLE_RESOURCE_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:i.forwardRef(function(){return c})};var s,c=(s=a.ResourceEditorBase,r.__extends(l,s),l.prototype.getTagStyle=function(e){return{"background-color":e[this.resource.colorField]}},l.prototype.focus=function(){this.resourceMultiSelect.focus()},r.__decorate([i.ViewChild("resourceMultiSelect",{static:!0}),r.__metadata("design:type",n.MultiSelectComponent)],l.prototype,"resourceMultiSelect",void 0),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 "})],l));function l(){return null!==s&&s.apply(this,arguments)||this}t.MultipleResourceEditorComponent=c},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var c=t(3);function o(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}r.markAllAsTouched=function(e){if(e.markAsTouched(),e.hasOwnProperty("controls")){var t,n=e.controls;for(t in n)n.hasOwnProperty(t)&&r.markAllAsTouched(n[t])}},r.diff=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];if(!o(c.getField(e,i),c.getField(t,i)))return!0}return!1},r.areEqual=o;var l=["getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","getMilliseconds"];r.seriesDate=function(e,t,n,r){var i=[],o=c.getField(e,r),a=c.getField(t,r),s=c.getField(n,r);return l.forEach(function(e){i.push((a[e]()===s[e]()?o:s)[e]())}),new((r=Date).bind.apply(r,[void 0].concat(i)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(23),a=n(21),s=n(128),n=n(127),n=[s.TimeSlotDirective,s.DaySlotDirective,n.DayTimeViewItemComponent],n=r.__decorate([i.NgModule({imports:[o.CommonModule,a.SharedModule],exports:[n],declarations:[n]})],c);function c(){}t.DayTimeModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function d(e){return a.getDate(e)}function u(e,t){return a.getDate(a.addDays(e,t||1))}function p(e,t,n){return a.getDate(a.addDays(e,n*t))}var h,r=n(0),i=n(1),o=n(8),a=n(4),s=n(9),m=n(5),c=n(129),l=n(74),g=n(18),y=n(3),f=n(14),i=(h=l.BaseView,r.__extends(v,h),Object.defineProperty(v.prototype,"classNames",{get:function(){return"k-scheduler-"+this.name+"view"},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"timeSlotTemplateRef",{get:function(){return this.timeSlotTemplate||(this.schedulerTimeSlotTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"dateHeaderTemplateRef",{get:function(){return this.dateHeaderTemplate||(this.schedulerDateHeaderTemplate||{}).templateRef},enumerable:!0,configurable:!0}),v.prototype.ngOnChanges=function(e){(e.startTime||e.endTime||e.showWorkHours||e.workDayStart||e.workDayEnd||e.workWeekStart||e.workWeekEnd||e.slotDivisions||e.slotDuration)&&(this.timeSlots=this.createTimeSlots(),this.initWorkDay(),this.changes.next(null)),o.isChanged("currentTimeMarker",e)&&(this.showCurrentTime=this.enableCurrentTime()),o.isChanged("weekStart",e)&&this.onSelectDate(this.selectedDate),h.prototype.ngOnChanges.call(this,e)},v.prototype.ngOnDestroy=function(){h.prototype.ngOnDestroy.call(this),clearTimeout(this.currentTimeTimeout)},v.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]},v.prototype.timeSlotClass=function(e,t,n){if(this.slotClass)return this.slotClass({start:m.dateWithTime(t,e.start),end:m.dateWithTime(t,e.end),resources:this.resourcesByIndex(n),isAllDay:!1})},v.prototype.scrollToTime=function(e){if("string"==typeof(e=void 0===e?this.scrollTime:e)){var t=this.intl.parseDate(e);if(!t)return;t=m.toUTCTime(this.daySlots[0].start,t)}else t=m.toUTCDateTime(e);e=this.slotService.timePosition(t,0,this.verticalTime);y.isNumber(e)&&((t=this.content.nativeElement)[this.verticalTime?"scrollTop":"scrollLeft"]=this.localization.rtl&&!this.verticalTime?f.rtlScrollPosition(t,e):e)},v.prototype.optionsChange=function(e){this.schedulerTimeSlotTemplate=e.timeSlotTemplate,this.schedulerDateHeaderTemplate=e.dateHeaderTemplate,h.prototype.optionsChange.call(this,e)},v.prototype.updateView=function(){h.prototype.updateView.call(this),this.updateCurrentTime(),this.initialUpdate&&(this.scrollToTime(),this.initialUpdate=!1)},v.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=m.toInvariantTime(t),r=this.timeSlots,e=m.dateInRange(t,e.start,e.end),r=r.length&&m.dateInRange(n,r[0].start,r[r.length-1].end);return e&&r},v.prototype.currentTime=function(){return new Date},v.prototype.updateCurrentTime=function(){var e,t=this;o.isDocumentAvailable()&&((e=this.enableCurrentTime())!==this.showCurrentTime&&(this.showCurrentTime=e,this.changeDetector.detectChanges()),clearTimeout(this.currentTimeTimeout),e&&(this.zone.runOutsideAngular(function(){t.currentTimeTimeout=setTimeout(t.updateCurrentTime,t.currentTimeMarker.updateInterval||g.MS_PER_MINUTE)}),this.positionCurrentTime()))},v.prototype.positionCurrentTime=function(){var r,i,o,a,s,c,l,d=this;this.currentTimeElements&&this.currentTimeElements.length&&(r=this.currentDate.toUTCDate(),i=this.currentTimeArrows?this.currentTimeArrows.toArray():[],o=i.length?this.currentTimeArrowOffset():0,a=i.length?i[0].nativeElement.offsetHeight/2:4,s=this.contentTable.nativeElement.clientWidth,c=this.contentTable.nativeElement.clientHeight,l=this.verticalTime,this.currentTimeElements.forEach(function(e,t){var n=d.slotService.timePosition(r,t,l);void 0!==n&&(e=e.nativeElement,i[t]&&(t=i[t].nativeElement,m.setCoordinates(t,{top:l?n-a:o,left:t=l?o:n-a,right:t})),m.setCoordinates(e,{top:l?n:0,left:n=l?0:n,right:n,width:l?s:1,height:l?1:c}))}))},v.prototype.bindEvents=function(){var t=this;h.prototype.bindEvents.call(this),this.zone.runOutsideAngular(function(){t.subs.add(y.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(y.fromDoubleClick(t.headerWrap.nativeElement).subscribe(function(e){return t.onClick(e,"dblclick")}))})},v.prototype.onHeaderClick=function(e){var t,n=this;this.onClick(e),this.daySlots.length<=1||(e=e.target.getAttribute("data-dayslot-index"))&&(t=this.daySlots[parseInt(e,10)],this.zone.run(function(){n.viewState.navigateTo({viewName:"day",date:t.start})}))},v.prototype.slotByIndex=function(e,t){return this.slotService.slotByIndex(e,t.target.hasAttribute("data-day-slot"))},v.prototype.onSelectDate=function(e){this.selectedDate=e,this.daySlots=this.createDaySlots(),this.showCurrentTime=this.enableCurrentTime(),this.viewState.notifyDateRange(this.dateRange())},v.prototype.onAction=function(e){var t,n=a.getDate(this.selectedDate);"next"===e.type&&(t=this.getNextDate(n,1,this.numberOfDays),this.isInRange(t)&&this.viewState.notifyNextDate(t)),"prev"===e.type&&(t=this.getNextDate(n,-1,this.numberOfDays),this.isInRange(t)&&this.viewState.notifyNextDate(t)),"scroll-time"===e.type&&this.scrollToTime(e.time)},v.prototype.dateRange=function(e){void 0===e&&(e=this.selectedDate);var t=this.getStartDate(e),n=this.getEndDate(t,this.numberOfDays),e=this.getEndDate(t,this.numberOfDays-1);return{start:t,end:n,text:this.intl.format(this.selectedDateFormat,t,e),shortText:this.intl.format(this.selectedShortDateFormat,t,e)}},v.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},v.prototype.createTimeSlots=function(){return c.createTimeSlots(this.intl,{showWorkHours:this.showWorkHours,startTime:this.startTime,endTime:this.endTime,workDayStart:this.workDayStart,workDayEnd:this.workDayEnd,slotDivisions:this.slotDivisions,slotDuration:this.slotDuration})},v.prototype.initWorkDay=function(){var e=this.intl.parseDate(this.workDayStart);this.workDayStartTime=m.toInvariantTime(e);var t=this.intl.parseDate(this.workDayEnd);this.workDayEndTime=t<=e?a.addDays(g.MIDNIGHT_INVARIANT,1):m.toInvariantTime(t)},v.prototype.slotByPosition=function(e,t,n){n=n?f.hasClasses(n.parentNode,"k-scheduler-header-wrap"):t<0;return this.slotService.slotByPosition(e,t,n,Boolean(this.verticalResources.length))},v.prototype.slotFields=function(e){var t=h.prototype.slotFields.call(this,e);return e.isDaySlot?t.isAllDay=!0:(t.start=this.convertDate(e.start),t.end=this.convertDate(e.end)),t},r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],v.prototype,"timeSlotTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],v.prototype,"dateHeaderTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],v.prototype,"numberOfDays",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],v.prototype,"scrollTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],v.prototype,"startTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],v.prototype,"endTime",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],v.prototype,"workDayStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],v.prototype,"workDayEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],v.prototype,"workWeekStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],v.prototype,"workWeekEnd",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],v.prototype,"slotDuration",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],v.prototype,"slotDivisions",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],v.prototype,"showWorkHours",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],v.prototype,"getStartDate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],v.prototype,"getEndDate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],v.prototype,"getNextDate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],v.prototype,"currentTimeMarker",void 0),r.__decorate([i.ViewChildren("currentTimeMarker"),r.__metadata("design:type",i.QueryList)],v.prototype,"currentTimeElements",void 0),r.__decorate([i.ViewChildren("currentTimeArrow"),r.__metadata("design:type",i.QueryList)],v.prototype,"currentTimeArrows",void 0),v);function v(e,t,n,r,i,o,a,s,c,l){l=h.call(this,t,n,r,i,o,a,s,c,l)||this;return l.changeDetector=e,l.numberOfDays=1,l.startTime="00:00",l.endTime="00:00",l.workDayStart="08:00",l.workDayEnd="17:00",l.workWeekStart=1,l.workWeekEnd=5,l.slotDuration=60,l.slotDivisions=2,l.showWorkHours=!1,l.getStartDate=d,l.getEndDate=u,l.getNextDate=p,l.daySlots=[],l.timeSlots=[],l.resizeHintFormat="t",l.showCurrentTime=!1,l.verticalTime=!0,l.initialUpdate=!0,l.updateCurrentTime=l.updateCurrentTime.bind(l),l}t.DayTimeViewComponent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(1),a=n(38),s=n(19),c=n(18),l=n(3),r=(n(4),i=a.ConfigurationViewBase,r.__extends(d,i),Object.defineProperty(d.prototype,"viewEventHeight",{get:function(){return this.optionValue("eventHeight")||c.DEFAULT_EVENT_HEIGHT},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"shouldShowWorkHours",{get:function(){return this.optionValue("showWorkHours")},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewStartTime",{get:function(){return this.optionValue("startTime")},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewEndTime",{get:function(){return this.optionValue("endTime")},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewWorkDayStart",{get:function(){return this.optionValue("workDayStart")},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewWorkDayEnd",{get:function(){return this.optionValue("workDayEnd")},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewWorkWeekStart",{get:function(){return this.optionValue("workWeekStart")},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewWorkWeekEnd",{get:function(){return this.optionValue("workWeekEnd")},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewSlotDuration",{get:function(){return this.optionValue("slotDuration")},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewSlotDivisions",{get:function(){return this.optionValue("slotDivisions")},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewCurrentTimeMarker",{get:function(){return this.optionValue("currentTimeMarker")},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"viewScrollTime",{get:function(){return this.optionValue("scrollTime")},enumerable:!0,configurable:!0}),r.__decorate([o.ContentChild(s.TimeSlotTemplateDirective,{static:!(d.prototype.optionValue=function(e){return(l.isPresent(this[e])?this:this.schedulerOptions)[e]})}),r.__metadata("design:type",s.TimeSlotTemplateDirective)],d.prototype,"timeSlotTemplate",void 0),r.__decorate([o.ContentChild(s.DateHeaderTemplateDirective,{static:!1}),r.__metadata("design:type",s.DateHeaderTemplateDirective)],d.prototype,"dateHeaderTemplate",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Boolean)],d.prototype,"showWorkHours",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Number)],d.prototype,"eventHeight",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],d.prototype,"startTime",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],d.prototype,"scrollTime",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],d.prototype,"endTime",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],d.prototype,"workDayStart",void 0),r.__decorate([o.Input(),r.__metadata("design:type",String)],d.prototype,"workDayEnd",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Number)],d.prototype,"workWeekStart",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Number)],d.prototype,"workWeekEnd",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Number)],d.prototype,"slotDuration",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Number)],d.prototype,"slotDivisions",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Object)],d.prototype,"currentTimeMarker",void 0),d);function d(e,t,n,r){return i.call(this,e,t,n,r)||this}t.DayTimeViewBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(1),r=(i=n(70).DayTimeViewBase,r.__extends(a,i),Object.defineProperty(a.prototype,"viewSlotFill",{get:function(){return this.optionValue("slotFill")},enumerable:!0,configurable:!0}),r.__decorate([o.Input(),r.__metadata("design:type",Number)],a.prototype,"slotFill",void 0),a);function a(e,t,n,r){return i.call(this,e,t,n,r)||this}t.MultiDayViewBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),r=(o.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)],o.prototype,"hostClasses",void 0),r.__decorate([i.HostBinding("style.justify-content"),r.__metadata("design:type",String)],o.prototype,"inlineJustifyContentStyle",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],o.prototype,"itemClick",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],o.prototype,"items",void 0),r.__decorate([i.Component({selector:"[viewFooter]",template:'\n <button type="button" class="k-button" *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 '})],o));function o(){this.hostClasses=!0,this.inlineJustifyContentStyle="start",this.itemClick=new i.EventEmitter}t.ViewFooterComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),r=(Object.defineProperty(a.prototype,"slotIndex",{get:function(){return this.key},enumerable:!0,configurable:!0}),Object.defineProperty(a.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(a.prototype,"top",{get:function(){return this.element?this.nativeElement.offsetTop:0},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"padding",{get:function(){return this.element&&o.isDocumentAvailable()?2*parseInt(window.getComputedStyle(this.nativeElement).paddingTop,10):0},enumerable:!0,configurable:!0}),Object.defineProperty(a.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(a.prototype,"width",{get:function(){return this.element?this.nativeElement.offsetWidth:0},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"key",{get:function(){return this.id.resourceIndex+":"+this.id.rangeIndex+":"+this.id.index},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"nativeElement",{get:function(){return this.element.nativeElement},enumerable:!0,configurable:!0}),a.prototype.ngOnInit=function(){this.slotService.registerSlot(this)},a.prototype.ngOnDestroy=function(){this.slotService.unregisterSlot(this)},a.prototype.invalidate=function(){this._rect=null},r.__decorate([i.Input(),r.__metadata("design:type",Object)],a.prototype,"id",void 0),r.__decorate([i.HostBinding("attr.data-slot-index"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],a.prototype,"slotIndex",null),a);function a(e,t,n){this.element=e,this.slotService=t,this.localization=n,this._rect=null}t.BaseSlotDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),a=n(4),l=n(9),s=n(17),c=n(14),d=n(3),y=n(5),u=n(18),p=n(140),n=n(35),n=(Object.defineProperty(h.prototype,"eventTemplateRef",{get:function(){return this.еventTemplate||(this.schedulerEventTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"groupHeaderTemplateRef",{get:function(){return this.groupHeaderTemplate||(this.schedulerGroupHeaderTemplate||{}).templateRef},enumerable:!0,configurable:!0}),h.prototype.ngOnInit=function(){var n=this,e=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(){n.toggleElement(!1),n.updateView()})),this.subs.add(this.viewContext.optionsChange.subscribe(this.optionsChange.bind(this))),this.subs.add(this.changes.subscribe(function(){n.toggleElement(!1)})),this.subs.add(l.combineLatest(this.viewContext.items,this.viewState.dateRange,this.viewRangeChange).pipe(s.map(function(e){var t=e[0],e=e[1];return n.createTasks(t,e)})).subscribe(function(e){n.tasks=e,n.assignResources(),n.onTasksChange()})),this.subs.add(l.combineLatest(this.items,this.changes,this.localization.changes).pipe(s.switchMap(function(){return n.onStable()})).subscribe(e)),this.subs.add(this.pdfService.createElement.subscribe(this.createPDFElement.bind(this)))},h.prototype.ngOnChanges=function(e){o.anyChanged(["selectedDateFormat","selectedShortDateFormat"],e)&&this.viewState.notifyDateRange(this.dateRange(this.selectedDate)),e.eventHeight&&this.changes.next(null)},h.prototype.ngAfterViewInit=function(){var t=this;this.bindEvents(),this.subs.add(this.localization.changes.subscribe(function(e){e=e.rtl;t.rtl=e}))},h.prototype.ngOnDestroy=function(){this.subs.unsubscribe(),this.domEvents.forEach(function(e){return e()}),this.domEvents=[],this.draggable&&(this.draggable.destroy(),this.draggable=null)},h.prototype.itemIndex=function(e,t){return e},h.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]},h.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]);0<=a&&(n[a]=r[o])}for(o=0;o<t.length;o++)n[o]||(n[o]=y.resourceItemByValue(this.dragging.task.event,t[o]));return n},h.prototype.getEventClasses=function(e,t,n){if(this.eventClass)return this.eventClass({event:e.event,resources:t,isAllDay:n})},h.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},h.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,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))},h.prototype.toggleElement=function(e){this.element&&this.renderer.setStyle(this.element.nativeElement,"display",e?"block":"none")},h.prototype.onStable=function(){return this.zone.onStable.asObservable().pipe(s.take(1))},h.prototype.updateView=function(){this.slotService.invalidate(),this.toggleElement(!0),this.reflow(),this.viewState.notifyLayoutEnd()},h.prototype.assignResources=function(){y.assignTasksResources(this.tasks,{taskResources:this.taskResources,hasGroups:0<this.groupedResources.length,allResources:this.resources,spans:this.spans})},h.prototype.bindEvents=function(){var t=this,n=this.content.nativeElement,e=this.element.nativeElement;this.zone.runOutsideAngular(function(){t.times&&t.subs.add(l.merge(l.fromEvent(t.times.nativeElement,"mousewheel"),l.fromEvent(t.times.nativeElement,"DOMMouseScroll")).pipe(s.filter(function(e){return!e.ctrlKey}),s.tap(c.preventLockedScroll(n)),s.map(c.wheelDeltaY)).subscribe(function(e){return n.scrollTop-=e})),t.subs.add(l.merge(d.fromClick(n),l.fromEvent(n,"contextmenu")).subscribe(function(e){return t.onClick(e)})),t.subs.add(d.fromDoubleClick(n).subscribe(function(e){return t.onClick(e,"dblclick")})),t.subs.add(l.fromEvent(e,"keydown").subscribe(function(e){return t.onKeydown(e)})),t.domEvents.push(t.renderer.listen(n,"scroll",function(){t.headerWrap&&(t.headerWrap.nativeElement.scrollLeft=n.scrollLeft),t.times&&(t.times.nativeElement.scrollTop=n.scrollTop)})),t.draggable=new p.default({press:t.onPress.bind(t),drag:t.onDrag.bind(t),release:t.onRelease.bind(t)}),t.draggable.bindTo(e)})},h.prototype.onPress=function(e){var t=this.editable&&!1!==this.editable.resize,n=this.editable&&!1!==this.editable.drag,r=e.originalEvent.target;if(c.hasClasses(r,"k-resize-handle")){if(!t)return;this.initResize(e)}else!n||(r=this.targetTask(r))&&(e.isTouch||e.originalEvent.preventDefault(),this.pressLocation={x:e.pageX,y:e.pageY},this.pressTarget=r);this.dragArgs=e},h.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.dragArgs=e},h.prototype.onRelease=function(){clearInterval(this.scrollInterval);var e=this.resizing,t=this.dragging;e&&(this.emitEvent("resizeEnd",{event:e.task.event,dataItem:e.task.event.dataItem,start:this.convertDate(e.start),end:this.convertDate(e.end)}),this.resizeHints=[]),t&&(this.emitEvent("dragEnd",{event:t.task.event,dataItem:t.task.event.dataItem,start:t.start?this.convertDate(t.start):t.task.start.toLocalDate(),end:t.end?this.convertDate(t.end):t.task.end.toLocalDate(),resources:t.resources,isAllDay:this.draggedIsAllDay(t.task,t.slot)}),this.dragHints=[]),(e||t)&&(this.removeSlotClass(),this.updateHintContainer(),this.resizing=null,this.dragging=null),this.container=null,this.dragArgs=null,this.pressLocation=null,this.pressTarget=null},h.prototype.setHintClass=function(e){(this.dragging||this.resizing).hintClass=e},h.prototype.updateHintClass=function(){var t=this.dragging||this.resizing,n=!1;this.hints.forEach(function(e){e.class!==t.hintClass&&(e.class=t.hintClass,n=!0)}),n&&this.updateHintContainer()},h.prototype.removeHintClass=function(){(this.dragging||this.resizing).hintClass=null},h.prototype.setSlotClass=function(e){var t=this.dragging||this.resizing;t.slotClass=e,this.renderer.addClass(t.slot.nativeElement,t.slotClass)},h.prototype.removeSlotClass=function(){var e=this.dragging||this.resizing;e.slotClass&&(this.renderer.removeClass(e.slot.nativeElement,e.slotClass),e.slotClass=null)},Object.defineProperty(h.prototype,"hints",{get:function(){return this.dragging?this.dragHints:this.resizeHints},enumerable:!0,configurable:!0}),h.prototype.initDrag=function(e){if(!this.dragging&&this.pressLocation&&10<=y.pointDistance(this.pressLocation.x,this.pressLocation.y,e.pageX,e.pageY)){var t,n=this.pressTarget,r=n.task;if(this.emitEvent("dragStart",{event:r.event,dataItem:r.event.dataItem}))return this.pressLocation=null,void(this.pressTarget=null);this.updateDragContainer(e),void 0!==this.containerOffset&&(e=(t=this.coordinatesOffset(this.pressLocation.x,this.pressLocation.y)).x,t=t.y,(t=this.slotByPosition(Math.ceil(e),Math.ceil(t),this.container))&&(this.dragging=n,this.dragging.offset={start:t.start.getTime()-r.start.toUTCDate().getTime(),end:r.end.toUTCDate().getTime()-t.start.getTime()},this.dragging.slot=t,this.dragging.startResources=this.dragging.resourceItems=this.dragResourcesByIndex(t.id.resourceIndex),this.dragging.resources=this.resourceValues(r,this.dragging.startResources)))}},h.prototype.updateDragContainer=function(e){this.container||(this.container=this.content.nativeElement,this.containerOffset=y.elementOffset(this.container))},h.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,e=o.slot,t=o.task,n=this.dragRanges(i),a=n.ranges,s=n.start,c=n.end,r=n.isAllDay,l=void 0,n=void 0,n=e.id.resourceIndex!==i.id.resourceIndex?(l=this.dragResourcesByIndex(i.id.resourceIndex),this.resourceValues(t,l)):(l=o.resourceItems,o.resources);if(this.removeSlotClass(),o.start=s,o.end=c,o.slot=i,o.resources=n,o.resourceItems=l,o.hintClass=null,this.emitEvent("drag",{event:t.event,dataItem:t.event.dataItem,start:this.convertDate(s),end:this.convertDate(c),resources:n,isAllDay:r,setHintClass:this.setHintClass,setSlotClass:this.setSlotClass}))this.updateHintClass();else{var d=this.dragResourceColor(t,l),u=this.dragHintClasses();this.dragHints=[];for(var p=0;p<a.length;p++){var h=a[p],m=h[0],g=h[h.length-1],h=this.dragHintSize(m,g),g=m.rect.left,h={top:y.toPx(m.rect.top),left:this.localization.rtl?"":y.toPx(g),right:this.localization.rtl?y.toPx(g):"",width:h.width,height:h.height,backgroundColor:d,borderColor:d};this.eventStyles&&Object.assign(h,this.eventStyles(this.dragHintEventStyleArgs())),this.dragHints.push({item:Object.assign({},this.dragging.task,{startTime:s,endTime:c}),resources:l,class:u,style:h})}this.updateHintContainer()}}}},h.prototype.dragHintClasses=function(){var e=this.dragging.hintClass,t=[];return e&&t.push(e),this.eventClass&&(e=this.eventClass(this.dragHintEventStyleArgs()),t=t.concat(y.convertNgClassBindings(e))),t},h.prototype.dragHintEventStyleArgs=function(){return{event:this.dragging.task.event,resources:this.dragging.resourceItems}},h.prototype.draggedIsAllDay=function(e,t){return Boolean(e.event.isAllDay)},h.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:""},h.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;Array.isArray(o)?a=d.getField(e.event,i.field):(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},h.prototype.initResize=function(e){e.originalEvent.preventDefault();var t=e.originalEvent.target,n=this.targetTask(t);this.emitEvent("resizeStart",{event:n.task.event,dataItem:n.task.event.dataItem})||((this.resizing=n).start=n.task.start.toUTCDate(),n.end=n.task.end.toUTCDate(),c.hasClasses(t,"k-resize-n")?n.direction="n":c.hasClasses(t,"k-resize-s")?n.direction="s":c.hasClasses(t,"k-resize-w")?n.direction="w":n.direction="e",this.updateDragContainer(e),e=(t=this.coordinatesOffset(e.pageX,e.pageY)).x,t=t.y,n.slot=this.slotByPosition(Math.ceil(e),Math.ceil(t),this.container),n.offset={start:n.task.start.toUTCDate().getTime()-n.slot.start.getTime(),end:n.task.end.toUTCDate().getTime()-n.slot.start.getTime()})},h.prototype.resize=function(e){var t=this.coordinatesOffset(e.pageX,e.pageY),n=t.x,r=t.y,i=this.resizing,o=i.direction,e=i.task,t=i.offset,n=this.slotService.groupSlotByPosition(i.slot,n,r);n&&n!==i.slot&&(this.removeSlotClass(),o=(r=this.slotService.resizeRanges(n,e,"w"===o||"n"===o,t)).start,t=r.end,r=r.ranges,i.hintClass=null,i.start=o,i.end=t,i.slot=n,this.emitEvent("resize",{event:e.event,dataItem:e.event.dataItem,start:this.convertDate(o),end:this.convertDate(t),setHintClass:this.setHintClass,setSlotClass:this.setSlotClass})?this.updateHintClass():(this.updateResizeHints(r,o,t),this.updateHintContainer()))},h.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,c=s===e.length-1;this.resizeHints.push({first:u,last:c,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:l).start,end:(c&&a?r:d).end,class:r.hintClass})}},h.prototype.coordinatesOffset=function(e,t,n,r){void 0===n&&(n=this.container);e=e-(r=void 0===r?this.containerOffset:r).left+n.scrollLeft;return{x:this.localization.rtl?this.slotService.containerSize-e:e,y:t-r.top+n.scrollTop}},h.prototype.scrollContainer=function(e,t){var n=this;clearInterval(this.scrollInterval);var r,i,o,a,s,c,l,d,u,p=this.container;p&&(r=t.pageY-this.containerOffset.top,i=Math.abs(p.offsetHeight-r),o=t.pageY-this.dragArgs.pageY,a=t.pageX-this.containerOffset.left,s=Math.abs(p.offsetWidth-a),c=t.pageX-this.dragArgs.pageX,l=!1,u=d=0,i<60&&p.scrollTop+p.offsetHeight<p.scrollHeight&&0<o?(l=!0,u=15,this.container.scrollTop+=60-i):r<60&&0<p.scrollTop&&o<0&&(l=!0,u=-15,this.container.scrollTop-=60-r),s<60&&p.scrollLeft+p.offsetWidth<p.scrollWidth&&0<c?(l=!0,d=15,this.container.scrollLeft+=60-s):a<60&&0<p.scrollLeft&&o<0&&(l=!0,d=-15,this.container.scrollLeft-=60-a),l&&(this.scrollInterval=setInterval(function(){n.container?(n.container.scrollLeft+=d,n.container.scrollTop+=u,e.call(n,t)):clearInterval(n.scrollInterval)},50)))},h.prototype.emitEvent=function(e,t){return this.viewState.emitEvent(e,t),t.prevented},h.prototype.targetTask=function(e){e=c.closestInScope(e,function(e){return e.hasAttribute("data-task-index")},this.element.nativeElement);if(e){var t=parseInt(e.getAttribute("data-task-index"),10);return{target:e,task:this.tasks.find(function(e){return e.index===t})}}},h.prototype.updateHintContainer=function(){this.hintContainer&&this.hintContainer.detectChanges()},h.prototype.convertDate=function(e){return a.ZonedDate.fromUTCDate(e,this.timezone).toLocalDate()},h.prototype.onClick=function(e,t){void 0===t&&(t=e.type),this.emitSlotEvent(e,t),this.emitTaskEvent(e,t)},h.prototype.emitSlotEvent=function(e,t){var n,r=c.closestInScope(e.target,function(e){return e.hasAttribute("data-slot-index")},this.element.nativeElement);r&&(n=r.getAttribute("data-slot-index"),r="dblclick"===t?"slotDblClick":"slotClick",n=this.slotByIndex(n,e),this.viewState.emitEvent(r,{type:t,slot:n,start:this.convertDate(n.start),end:this.convertDate(n.end),isAllDay:n.isDaySlot,originalEvent:e,resources:this.resources&&this.resources.length?this.resourcesByIndex(n.id.resourceIndex):[]}))},h.prototype.emitTaskEvent=function(e,t){var n,r,i=this.targetTask(e.target);i&&(n=i.task,r="dblclick"===t,"click"===t&&c.closestInScope(e.target,function(e){return c.hasClasses(e,"k-event-delete")},i.target)?this.viewState.emitEvent("remove",{event:n.event,dataItem:n.event.dataItem}):(this.viewState.emitEvent(r?"eventDblClick":"eventClick",{type:t,event:n.event,originalEvent:e}),i.target.focus()))},h.prototype.onKeydown=function(e){var t=this.targetTask(e.target);t&&(t=t.task,this.viewState.emitEvent("eventKeydown",{event:t.event,dataItem:t.event.dataItem,originalEvent:e}))},h.prototype.syncTables=function(){var e,t;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",(c.hasScrollbar(this.content.nativeElement,"vertical")?c.scrollbarWidth()-u.BORDER_WIDTH:0)+"px"),this.renderer.setStyle(this.header.nativeElement,this.localization.rtl?"padding-right":"padding-left","0px")),this.times&&(e=this.times.nativeElement,this.timesHeader.nativeElement.style.width=e.offsetWidth+"px",t="auto"===this.contentHeight?this.content.nativeElement.offsetHeight:this.contentHeight,this.renderer.setStyle(e,"height",t-(c.hasScrollbar(this.content.nativeElement,"horizontal")?c.scrollbarWidth():0)+"px"),e.scrollTop=this.content.nativeElement.scrollTop)},h.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||y.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}},h.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(h.prototype,"taskResources",{get:function(){return this.groupedResources.length?this.groupedResources:this.resources&&this.resources.length?[this.resources[0]]:[{}]},enumerable:!0,configurable:!0}),h.prototype.resourceSpans=function(){for(var e=[1],t=this.groupedResources,n=1,r=t.length-1;0<r;r--)n*=(t[r].data||[]).length||1,e.unshift(n);return e},h.prototype.isInRange=function(e){e=this.dateRange(e);return(!this.min||this.min<e.end)&&(!this.max||e.start<=this.max)},h.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},h.prototype.pdfWidth=function(){return this.element.nativeElement.offsetWidth},h.prototype.containerByPosition=function(e){var t=e.x,n=e.y,r=this.content.nativeElement,e=y.elementOffset(r);if(e.top<=n&&n<=e.top+e.height&&e.left<=t&&t<=e.left+e.width)return{element:r,offset:e}},h.prototype.execute=function(e){var t,n;"slotByPosition"===e.name?(t=this.containerByPosition(e.args))&&(n=this.coordinatesOffset(e.args.x,e.args.y,t.element,t.offset),n=this.slotByPosition(n.x,n.y,t.element),e.result(this.slotFields(n))):"eventFromElement"!==e.name||(n=this.targetTask(e.args.element))&&e.result(n.task.event)},h.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)],h.prototype,"еventTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],h.prototype,"groupHeaderTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],h.prototype,"selectedDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],h.prototype,"selectedShortDateFormat",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],h.prototype,"eventHeight",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],h.prototype,"slotClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],h.prototype,"eventClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],h.prototype,"eventStyles",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],h.prototype,"weekStart",void 0),r.__decorate([i.ViewChild("content",{static:!1}),r.__metadata("design:type",i.ElementRef)],h.prototype,"content",void 0),r.__decorate([i.ViewChild("header",{static:!1}),r.__metadata("design:type",i.ElementRef)],h.prototype,"header",void 0),r.__decorate([i.ViewChild("contentTable",{static:!1}),r.__metadata("design:type",i.ElementRef)],h.prototype,"contentTable",void 0),r.__decorate([i.ViewChild("times",{static:!1}),r.__metadata("design:type",i.ElementRef)],h.prototype,"times",void 0),r.__decorate([i.ViewChild("timesHeader",{static:!1}),r.__metadata("design:type",i.ElementRef)],h.prototype,"timesHeader",void 0),r.__decorate([i.ViewChild("timesTable",{static:!1}),r.__metadata("design:type",i.ElementRef)],h.prototype,"timesTable",void 0),r.__decorate([i.ViewChild("headerWrap",{static:!1}),r.__metadata("design:type",i.ElementRef)],h.prototype,"headerWrap",void 0),r.__decorate([i.ViewChild("hintContainer",{static:!1}),r.__metadata("design:type",n.HintContainerComponent)],h.prototype,"hintContainer",void 0),h);function h(e,t,n,r,i,o,a,s,c){this.viewContext=e,this.viewState=t,this.intl=n,this.slotService=r,this.zone=i,this.renderer=o,this.element=a,this.pdfService=s,this.localization=c,this.items=new l.BehaviorSubject(null),this.horizontalResources=[],this.verticalResources=[],this.dragHints=[],this.resizeHints=[],this.getField=d.getField,this.changes=new l.BehaviorSubject(null),this.viewRangeChange=new l.BehaviorSubject(null),this.subs=new l.Subscription,this.groupedResources=[],this.spans=[],this.domEvents=[],this.resourcesCache={},this.autoHeight=!1,this.rtl=!1,this.setSlotClass=this.setSlotClass.bind(this),this.setHintClass=this.setHintClass.bind(this),this.weekStart=n.firstDay()}t.BaseView=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(8),a=n(9),s=n(5),c=n(4),r=(Object.defineProperty(l.prototype,"taskIndex",{get:function(){return this.item.index},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"touchAction",{get:function(){return this.editable&&!1!==this.editable.drag?"none":null},enumerable:!0,configurable:!0}),Object.defineProperty(l.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(l.prototype,"deleteMessage",{get:function(){return this.localization.get("deleteTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"resizable",{get:function(){return this.editable&&!1!==this.editable.resize},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"removable",{get:function(){return this.editable&&!1!==this.editable.remove},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"isRecurrence",{get:function(){return s.isRecurrence(this.item)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"isRecurrenceException",{get:function(){return s.isRecurrenceException(this.item)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"nativeElement",{get:function(){if(this.element)return this.element.nativeElement},enumerable:!0,configurable:!0}),l.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])},l.prototype.toggle=function(e){this.setStyles({display:e?"block":"none"})},l.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"})},l.prototype.ngOnInit=function(){var t=this;this.dragHint||this.subs.add(this.slotService.slotsChange.subscribe(function(){t.rect=null,t.setStyles({display:"none",width:0,left:0});var e={index:t.index,resourceIndex:t.resourceIndex,rangeIndex:t.rangeIndex};t.slotService.unregisterItem(t,e),0<=t.resourceIndex&&t.slotService.registerItem(t)}))},l.prototype.ngOnChanges=function(e){var t,n;!this.dragHint&&o.anyChanged(["index","resourceIndex","rangeIndex"],e)&&(n=e.resourceIndex,t=e.index,e=e.rangeIndex,n=n?n.previousValue:this.resourceIndex,e={index:t?t.previousValue:this.index,resourceIndex:n,rangeIndex:e?e.previousValue:this.rangeIndex},this.slotService.unregisterItem(this,e),0<=this.resourceIndex?(this.slotService.registerItem(this),this.toggle(!0)):this.toggle(!1))},l.prototype.ngOnDestroy=function(){this.dragHint||(this.slotService.unregisterItem(this),this.subs.unsubscribe())},r.__decorate([i.Input(),r.__metadata("design:type",Object)],l.prototype,"item",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],l.prototype,"resourceIndex",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],l.prototype,"rangeIndex",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],l.prototype,"index",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],l.prototype,"eventTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],l.prototype,"editable",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],l.prototype,"dragHint",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],l.prototype,"resources",void 0),r.__decorate([i.HostBinding("class.k-event"),r.__metadata("design:type",Boolean)],l.prototype,"className",void 0),r.__decorate([i.HostBinding("attr.data-task-index"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],l.prototype,"taskIndex",null),r.__decorate([i.HostBinding("style.touch-action"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],l.prototype,"touchAction",null),r.__decorate([i.HostBinding("attr.aria-label"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],l.prototype,"eventTitle",null),l);function l(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}t.BaseViewItem=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),n=(i.prototype.registerItem=function(e){this.itemGroup(e).registerItem(e)},i.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)},i.prototype.registerSlot=function(e){this.slotGroup(e).registerSlot(e)},i.prototype.unregisterSlot=function(e){var t=this.groups[e.id.resourceIndex];t&&t.unregisterSlot(e)},i.prototype.invalidate=function(){this.clearEmptyGroups(),this.cleanRanges(),this.slotsChange.emit(),this.forEachSlot(function(e){e.invalidate()})},i.prototype.cleanRanges=function(){this.groups.forEach(function(e){e.cleanRanges()})},i.prototype.clearEmptyGroups=function(){for(var e=this.groups,t=this.groups.length-1;0<t&&!e[t].hasSlots;)e.splice(t,1),t--},i.prototype.itemGroup=function(e){e=e.resourceIndex;return this.groups[e]||(this.groups[e]=this.createGroup(e)),this.groups[e]},i.prototype.slotGroup=function(e){e=e.id.resourceIndex;return this.groups[e]||(this.groups[e]=this.createGroup(e)),this.groups[e]},i);function i(){this.containerSize=0,this.slotsChange=new r.EventEmitter,this.groups=[]}t.BaseSlotService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(Object.defineProperty(i.prototype,"first",{get:function(){if(0<this.count)return this.items[Object.keys(this.items)[0]]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"last",{get:function(){if(0<this.count){var e=Object.keys(this.items);return this.items[e[e.length-1]]}},enumerable:!0,configurable:!0}),i.prototype.addItem=function(e,t){this.items[e]||this.count++,this.items[e]=t},i.prototype.removeItem=function(e,t){this.items[e]===t&&(delete this.items[e],this.count--)},i.prototype.toArray=function(){var t=this;return Object.keys(this.items).map(function(e){return t.items[e]})},i);function i(){this.count=0,this.items={}}t.ItemMap=r},function(e,t){e.exports=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),o=n(1),i=(r=n(2).ComponentMessages,i.__extends(a,r),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"allEvents",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"allDay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"dateHeader",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"timeHeader",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"eventHeader",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"deleteTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"nextTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"previousTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"today",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"calendarToday",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"showFullDay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"showWorkDay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"dayViewTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"multiDayViewTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"weekViewTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"workWeekViewTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"monthViewTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"timelineViewTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"timelineWeekViewTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"timelineMonthViewTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"agendaViewTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"cancel",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"save",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editorEventTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editorEventStart",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editorEventStartTimeZone",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editorEventEnd",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editorEventEndTimeZone",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editorEventAllDay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editorEventDescription",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editorEventSeparateTimeZones",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editorEventTimeZone",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorRepeat",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorDailyInterval",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorDailyRepeatEvery",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorWeeklyInterval",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorWeeklyRepeatEvery",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorWeeklyRepeatOn",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorMonthlyDay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorMonthlyInterval",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorMonthlyRepeatEvery",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorMonthlyRepeatOn",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorYearlyOf",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorYearlyRepeatEvery",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorYearlyRepeatOn",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorYearlyInterval",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorFrequenciesDaily",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorFrequenciesMonthly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorFrequenciesNever",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorFrequenciesWeekly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorFrequenciesYearly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorOffsetPositionsFirst",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorOffsetPositionsSecond",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorOffsetPositionsThird",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorOffsetPositionsFourth",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorOffsetPositionsLast",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorWeekdaysDay",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorWeekdaysWeekday",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorWeekdaysWeekendday",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorEndAfter",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorEndOccurrence",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorEndLabel",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorEndNever",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"recurrenceEditorEndOn",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editorTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"destroy",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"deleteConfirmation",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editRecurringConfirmation",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editOccurrence",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editSeries",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"deleteRecurringConfirmation",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"deleteOccurrence",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"deleteSeries",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"deleteDialogTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"deleteRecurringDialogTitle",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],a.prototype,"editRecurringDialogTitle",void 0),a);function a(){return null!==r&&r.apply(this,arguments)||this}t.Messages=i},function(e,t){e.exports=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),n=n(1),n=(Object.defineProperty(i.prototype,"display",{get:function(){return this.loading||this.force?"block":"none"},enumerable:!0,configurable:!0}),i.prototype.toggle=function(e){this.force=e,this.renderer.setStyle(this.element.nativeElement,"display",this.display)},r.__decorate([n.HostBinding("class.k-loading-mask"),r.__metadata("design:type",Boolean)],i.prototype,"hostClasses",void 0),r.__decorate([n.Input(),r.__metadata("design:type",Boolean)],i.prototype,"loading",void 0),r.__decorate([n.HostBinding("style.display"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],i.prototype,"display",null),r.__decorate([n.Component({selector:"[kendoSchedulerLoading]",template:'\n <div class="k-loading-image"></div>\n <div class="k-loading-color"></div>\n '}),r.__metadata("design:paramtypes",[n.ElementRef,n.Renderer2])],i));function i(e,t){this.element=e,this.renderer=t,this.hostClasses=!0}t.LoadingComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(12).PreventableEvent,i.__extends(o,r),o);function o(){return null!==r&&r.apply(this,arguments)||this}t.PDFExportEvent=i},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,i=n(0),o=n(1),n=n(2),n=(r=n.LocalizationService,i.__extends(a,r),i.__decorate([i.__param(0,o.Inject(n.L10N_PREFIX)),i.__param(1,o.Optional()),i.__param(2,o.Optional()),i.__param(2,o.Inject(n.RTL)),i.__metadata("design:paramtypes",[String,n.MessageService,Boolean])],a));function a(e,t,n){return r.call(this,e,t,n)||this}t.SchedulerLocalizationService=n},function(e,t){e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OCCURRENCE_ID=0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,i={undefined:function(e){return e}};t.setter=function(e){if(i[e])return i[e];var o=[];return e.replace(r,function(e,t,n,r){o.push(void 0!==t?t:n||r)}),i[e]=function(e,t){for(var n=e,r=o.length-1,i=0;i<r&&n;i++)n=n[o[i]]=n[o[i]]||{};n[o[r]]=t},i[e]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,o={undefined:function(){}};t.getter=function(e){if(o[e])return o[e];var i=[];return e.replace(r,function(e,t,n,r){i.push(void 0!==t?t:n||r)}),o[e]=function(e){for(var t=e,n=0;n<i.length&&t;n++)t=t[i[n]];return t},o[e]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(9),a=n(17),s=n(3),r=(c.prototype.endEdit=function(){var e=this.hasNewEvent?this.newEventGroup.group:this.editedEvent.formGroup;this.changes.emit({action:"cancel",formGroup:e})},c.prototype.removeEvent=function(e){this.changes.emit({action:"remove",dataItem:e})},c.prototype.addEvent=function(e){this.newEventGroup={formGroup:e},this.onChanged()},c.prototype.editEvent=function(e,t,n){this.editedEvent={dataItem:e,formGroup:t=void 0===t?void 0:t,mode:n},this.onChanged()},c.prototype.close=function(){this.newEventGroup=this.editedEvent=null,this.onChanged()},c.prototype.save=function(){var e=this.context,t=e.dataItem,e=e.formGroup;this.changes.emit({action:"save",dataItem:t,formGroup:e,isNew:this.hasNewEvent,mode:this.occurrenceEditMode})},c.prototype.isEditing=function(){return s.isPresent(this.context)},Object.defineProperty(c.prototype,"occurrenceEditMode",{get:function(){return this.hasNewEvent?2:this.editedEvent.mode||0},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"hasNewEvent",{get:function(){return s.isPresent(this.newEventGroup)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"newEvent",{get:function(){return this.hasNewEvent?this.newEventGroup.group.value:{}},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"context",{get:function(){return this.hasNewEvent?this.newEventGroup:this.editedEvent},enumerable:!0,configurable:!0}),c.prototype.onChanged=function(){var e=this;this.ngZone.runOutsideAngular(function(){e.changedSource.next()})},r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[i.NgZone])],c));function c(e){this.ngZone=e,this.changes=new i.EventEmitter,this.changedSource=new o.Subject,this.changed=this.changedSource.asObservable().pipe(a.debounceTime(0))}t.EditService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(12).PreventableEvent,i.__extends(o,r),o);function o(e,t){var n=r.call(this)||this;return n.sender=e,Object.assign(n,t),n}t.ResizeStartEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(12).PreventableEvent,i.__extends(o,r),o);function o(e,t){var n=r.call(this)||this;return n.sender=e,Object.assign(n,t),n}t.ResizeEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(12).PreventableEvent,i.__extends(o,r),o);function o(e,t){var n=r.call(this)||this;return n.sender=e,Object.assign(n,t),n}t.ResizeEndEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(12).PreventableEvent,i.__extends(o,r),o);function o(e,t){var n=r.call(this)||this;return n.sender=e,Object.assign(n,t),n}t.RemoveEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(12).PreventableEvent,i.__extends(o,r),o);function o(e,t){var n=r.call(this)||this;return n.sender=e,Object.assign(n,t),n}t.DragStartEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(12).PreventableEvent,i.__extends(o,r),o);function o(e,t){var n=r.call(this)||this;return n.sender=e,Object.assign(n,t),n}t.DragEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(12).PreventableEvent,i.__extends(o,r),o);function o(e,t){var n=r.call(this)||this;return n.sender=e,Object.assign(n,t),n}t.DragEndEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventKeydownEvent=function(e,t){this.sender=e,Object.assign(this,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventClickEvent=function(e,t){this.sender=e,Object.assign(this,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SlotClickEvent=function(e,t){this.sender=e,Object.assign(this,t)}},function(e,t){e.exports=k},function(e,t){e.exports=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(58),n=n(57),n=[o.PDFComponent,n.PDFCommandDirective],n=r.__decorate([i.NgModule({declarations:[n],exports:[n]})],a);function a(){}t.PDFModule=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(6),o=n(4),a=n(9),s=n(87),c=n(88),l=n(83),d=n(3),u=["yyyyMMddTHHmmssSSSXXX","yyyyMMddTHHmmssXXX","yyyyMMddTHHmmss","yyyyMMddTHHmm","yyyyMMddTHH","yyyyMMdd"],n=(p.prototype.create=function(e){this.logCreate(e),this.saveChanges()},p.prototype.createException=function(e,t){t=this.buildException(t);this.logRemoveOccurrence(e),this.logCreate(t),this.saveChanges()},p.prototype.update=function(e,t){this.assignValues(e,t),this.logUpdate(e),this.saveChanges()},p.prototype.remove=function(e){this.logRemove(e),this.saveChanges()},p.prototype.removeSeries=function(e){var t=this.getId(e),n=this.getRecurrenceId(e),e=this.isRecurrenceHead(e);this.removeItemAndExceptions(e?t:n),this.saveChanges()},p.prototype.removeOccurrence=function(e){this.logRemoveOccurrence(e),this.saveChanges()},p.prototype.findRecurrenceMaster=function(e){var t=this.getId(e),n=this.getRecurrenceId(e),n=this.isRecurrenceHead(e)?t:n,n=this.itemIndex(n,this.data);return this.data[n]},p.prototype.isRecurring=function(e){return d.isRecurring(e,this.fields)},p.prototype.isException=function(e){return d.isException(e,this.fields)},p.prototype.isNew=function(e){e=this.getId(e);return!d.isPresent(e)},p.prototype.nextId=function(){},p.prototype.assignValues=function(e,t){d.cloneTo(t,e)},p.prototype.cloneEvent=function(e){var t={};return this.assignValues(t,e),t},p.prototype.parseExceptions=function(e){return d.isPresent(e)&&""!==e?e.split(";").map(function(e){return i.parseDate(e,u)||void 0}):[]},p.prototype.serializeExceptions=function(e){return e&&0!==e.length?e.map(function(e){return i.formatDate(o.toLocalDate(e),"yyyyMMddTHHmmss")+"Z"}).join(";"):""},p.prototype.reset=function(){this.data=[],this.deletedItems=[],this.updatedItems=[],this.createdItems=[]},p.prototype.itemIndex=function(e,t){for(var n=0;n<t.length;n++)if(this.getId(t[n])===e)return n;return-1},p.prototype.buildException=function(e){var t=this.fields,n=this.findRecurrenceMaster(e),e=this.cloneEvent(e);return d.assignField(e,n,t.id),this.setId(e,this.nextId()),this.setRecurrenceRule(e,void 0),this.setRecurrenceId(e,this.getId(n)),e},p.prototype.isRecurrenceHead=function(e){var t=this.getId(e),e=this.getRecurrenceRule(e);return!(!t||!e)},p.prototype.logCreate=function(e){this.data=this.data.concat([e]),this.source.next(this.data),this.createdItems.push(e)},p.prototype.logUpdate=function(e){var t,n=this.getId(e);this.isNew(e)?(t=this.createdItems.indexOf(e),this.createdItems.splice(t,1,e)):-1!==(t=this.itemIndex(n,this.updatedItems))?this.updatedItems.splice(t,1,e):this.updatedItems.push(e)},p.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),0<=(n=this.itemIndex(t,this.createdItems))?this.createdItems.splice(n,1):this.deletedItems.push(e),0<=(n=this.itemIndex(t,this.updatedItems))&&this.updatedItems.splice(n,1)},p.prototype.logRemoveOccurrence=function(e){var t=this.findRecurrenceMaster(e),n=this.getStart(e),e=this.getRecurrenceExceptions(t)||[];this.setRecurrenceExceptions(t,e.concat([n])),this.logUpdate(t)},p.prototype.removeItemAndExceptions=function(t){var n=this;this.deletedItems=this.deletedItems.concat(this.data.filter(function(e){return n.getRecurrenceId(e)===t||n.getId(e)===t}))},p.prototype.hasChanges=function(){return 0<this.deletedItems.length+this.updatedItems.length+this.createdItems.length},p.prototype.saveChanges=function(){this.hasChanges()&&(this.save(this.createdItems,this.updatedItems,this.deletedItems),this.reset())},p);function p(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)}t.BaseEditService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function c(e){return y.hasClasses(e,"k-scheduler-content")}var r=n(0),i=n(1),l=n(8),d=n(4),u=n(9),o=n(29),p=n(63),h=n(3),a=n(26),s=n(40),m=n(17),g=n(7),y=n(14),n=n(41),n=(f.prototype.onKeydown=function(t){var e=this.shortcuts.find(function(e){return e.match(t)});e&&!this.dialogsService.isOpen&&e.action(t)},f.prototype.onEventKeydown=function(t){var e=this.taskShortcuts.find(function(e){return e.match(t.originalEvent)});e&&!this.dialogsService.isOpen&&e.action(t.originalEvent,t.event)},f.prototype.focusWait=function(){var e=this;this.viewState.layoutEnd.pipe(m.take(1)).subscribe(function(){return e.focusService.focus()})},r.__decorate([i.Directive({selector:"kendo-scheduler"}),r.__metadata("design:paramtypes",[a.SchedulerComponent,s.DomEventsService,o.FocusService,i.NgZone,i.ChangeDetectorRef,g.ViewStateService,n.DialogsService])],f));function f(e,t,n,r,i,o,a){var s=this;this.scheduler=e,this.domEvents=t,this.focusService=n,this.zone=r,this.changeDetector=i,this.viewState=o,this.dialogsService=a,this.shortcuts=[{match:function(e){return e.keyCode===l.Keys.KeyC&&p.noModifiers(e)},action:function(e){var t,n=s.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);n.group&&(i=n.resources||[],r=n.group||{},0<(i=h.groupResources(r,i)).length&&(t=i[0].data[0])),n.create.emit({start:d.ZonedDate.fromLocalDate(o,n.timezone).toLocalDate(),end:d.ZonedDate.fromLocalDate(a,n.timezone).toLocalDate(),isAllDay:!1,resources:[t],originalEvent:e,sender:n})}},{match:function(e){return e.keyCode>=l.Keys.Digit1&&e.keyCode<=l.Keys.Digit9&&p.withModifiers(e,p.Modifiers.AltKey)},action:function(e){var t=s.scheduler,e=e.keyCode-l.Keys.Digit0-1,n=t.views.toArray()[e];n&&s.zone.run(function(){t.onNavigationAction({type:"view-change",view:n})||(s.changeDetector.markForCheck(),s.focusWait())})}},{match:function(e){return e.keyCode===l.Keys.KeyT&&p.noModifiers(e)},action:function(){s.zone.run(function(){s.scheduler.onNavigationAction({type:"today"}),s.focusWait()})}},{match:function(e){return(e.keyCode===l.Keys.ArrowLeft||e.keyCode===l.Keys.ArrowRight)&&p.withModifiers(e,p.Modifiers.ShiftKey)},action:function(e){var t=e.keyCode===l.Keys.ArrowLeft?"prev":"next";s.zone.run(function(){s.scheduler.onNavigationAction({type:t}),s.focusWait()})}},{match:function(e){return(e.keyCode===l.Keys.ArrowUp||e.keyCode===l.Keys.ArrowLeft)&&p.noModifiers(e)&&!c(e.target)},action:function(e){s.scheduler.onNavigationAction({type:"focus-prev"})||(s.focusService.focusNext({offset:-1}),e.preventDefault())}},{match:function(e){return(e.keyCode===l.Keys.ArrowDown||e.keyCode===l.Keys.ArrowRight)&&p.noModifiers(e)&&!c(e.target)},action:function(e){s.scheduler.onNavigationAction({type:"focus-next"})||(s.focusService.focusNext({offset:1}),e.preventDefault())}}],this.taskShortcuts=[{match:function(e){return(e.keyCode===l.Keys.Delete||e.keyCode===l.Keys.Backspace)&&p.noModifiers(e)},action:function(e,t){s.viewState.emitEvent("remove",{event:t,dataItem:t.dataItem}),e.preventDefault()}},{match:function(e){return e.keyCode===l.Keys.Enter&&p.noModifiers(e)},action:function(e,t){s.viewState.emitEvent("eventDblClick",{type:"dblclick",event:t,originalEvent:e}),e.preventDefault()}}],this.subs=new u.Subscription,this.subs.add(this.domEvents.keydown.subscribe(function(e){return s.onKeydown(e)})),this.subs.add(this.scheduler.eventKeydown.subscribe(function(e){return s.onEventKeydown(e)}))}t.ShortcutsDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(1),a=n(16),s=n(4),n=n(27);t.TIME_ZONE_VALUE_ACCESSOR={multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:o.forwardRef(function(){return c})};var c=(l.prototype.onTimeZoneChange=function(e){this.tz=e,this.onChangeCallback(this.tz),this.valueChange.emit(e)},l.prototype.onTimeZoneFilterChange=function(t){this.tzSource=this.tzNames.filter(function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())})},l.prototype.writeValue=function(e){"string"==typeof e&&0<=this.tzNames.indexOf(e)&&(this.tz=e)},l.prototype.focus=function(){this.tzComboBox.focus()},l.prototype.registerOnChange=function(e){this.onChangeCallback=e},l.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},r.__decorate([i.ViewChild("tzcombobox",{static:!0}),r.__metadata("design:type",n.ComboBoxComponent)],l.prototype,"tzComboBox",void 0),r.__decorate([o.Input(),r.__metadata("design:type",Number)],l.prototype,"width",void 0),r.__decorate([o.Output(),r.__metadata("design:type",o.EventEmitter)],l.prototype,"valueChange",void 0),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",[])],l));function l(){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()}t.TimeZoneEditorComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o=n(0),a=n(1),s=n(2),n=n(59),s=(r=n.Messages,o.__extends(c,r),i=c,i=o.__decorate([a.Directive({providers:[{provide:n.Messages,useExisting:a.forwardRef(function(){return i})}],selector:"[kendoRecurrenceEditorLocalizedMessages]"}),o.__metadata("design:paramtypes",[s.LocalizationService])],c));function c(e){var t=r.call(this)||this;return t.service=e,t}t.RecurrenceEditorLocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o=n(0),a=n(1),s=n(2),n=n(59),s=(r=n.Messages,o.__extends(c,r),i=c,Object.defineProperty(c.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=o.__decorate([a.Component({providers:[{provide:n.Messages,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-recurrence-editor-messages",template:""}),o.__metadata("design:paramtypes",[s.LocalizationService])],c));function c(e){var t=r.call(this)||this;return t.service=e,t}t.RecurrenceEditorCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(3),a=n(13),s=n(2),n=n(22),s=(c.prototype.setSelectedDays=function(){for(var t=this,e=0;e<7;e++)this.selected[e]=!1;o.isPresent(this.rrule.byWeekDay)&&this.rrule.byWeekDay.forEach(function(e){t.selected[e.day]=!0})},c.prototype.onSelectedChange=function(e,t){this.selected[t]=e,this.recurrence.setWeekDays(this.serializeToWeekDayRuleArray(this.selected))},c.prototype.isSelected=function(e){return this.selected[e.value]},c.prototype.serializeToWeekDayRuleArray=function(e){var n=[];return e.forEach(function(e,t){e&&n.push({day:t,offset:0})}),0<n.length?n:null},Object.defineProperty(c.prototype,"rrule",{get:function(){return this.recurrence.rrule},enumerable:!0,configurable:!0}),c.prototype.capitalize=function(e){return o.capitalize(e)},c.prototype.textFor=function(e){return this.localization.get(e)},c.prototype.onWeeklyRepeatOnClick=function(){var e=this.weekDayButtons.toArray().find(function(e){return e.selected});e&&e.focus()},r.__decorate([i.ViewChildren(n.Button),r.__metadata("design:type",i.QueryList)],c.prototype,"weekDayButtons",void 0),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])],c));function c(e,t){this.recurrence=e,this.localization=t,this.selected=[],this.weekDays=this.recurrence.weekDays,this.setSelectedDays()}t.RecurrenceWeekdayRuleEditorComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(13),a=n(3),s=n(13),c=n(2),n=n(60),c=(Object.defineProperty(l.prototype,"userNumericOptions",{set:function(e){this.numericOptions=r.__assign({},this.numericOptions,e)},enumerable:!0,configurable:!0}),l.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])},l.prototype.subscribeEventHandlers=function(){this.subs=this.recurrence.repeatOnRuleChange.subscribe(this.onRepeatOnRuleChange.bind(this)),this.subs.add(this.recurrence.frequencyChange.subscribe(this.onFrequencyChange.bind(this)))},l.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]))},l.prototype.onFrequencyChange=function(){this.setInitialValues()},l.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(l.prototype,"monthDay",{get:function(){var e=this.recurrence.rrule;return a.isPresent(e.byMonthDay)&&0<e.byMonthDay.length?e.byMonthDay[0]:a.isPresent(this.currentMonthDay)?this.currentMonthDay:this.recurrence.start.getDate()},enumerable:!0,configurable:!0}),Object.defineProperty(l.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(l.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}),l.prototype.onMonthChange=function(e,t){"monthday"===t?this.currentMonthMonthDay=e:this.currentMonthWeekDay=e,this.recurrence.setMonths([e])},l.prototype.onMonthDayChange=function(e){this.currentMonthDay=e,this.recurrence.monthDays=[e]},l.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},l.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)},l.prototype.isDisabled=function(e){return this.recurrence.repeatOnRule!==e},Object.defineProperty(l.prototype,"currentFreq",{get:function(){return this.recurrence.frequency},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"defaultOffset",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"defaultWeekDay",{get:function(){return this.recurrence.start.getDay()},enumerable:!0,configurable:!0}),l.prototype.weekDayRuleFromString=function(e){switch(e){case"day":return s.dayRule;case"weekday":return s.weekdayRule;case"weekend":return s.weekendRule}return null},l.prototype.textForRepeatOn=function(){switch(this.currentFreq){case"monthly":return this.textFor("monthlyRepeatOn");case"yearly":return this.textFor("yearlyRepeatOn")}},l.prototype.textFor=function(e){return this.localization.get(e)},l.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])],l.prototype,"userNumericOptions",null),r.__decorate([i.ViewChildren(n.RepeatOnRadioButtonDirective),r.__metadata("design:type",i.QueryList)],l.prototype,"repeatOnRadioButtons",void 0),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 </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 </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 </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 </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 </kendo-dropdownlist>\n </ng-template>\n </li>\n </ul>\n </div>\n "}),r.__metadata("design:paramtypes",[o.RecurrenceService,c.LocalizationService])],l));function l(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()}t.RecurrenceMonthlyYearlyEditorComponent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(13),a=n(2),s=n(3),a=(Object.defineProperty(c.prototype,"userNumericOptions",{set:function(e){this.numericOptions=r.__assign({},this.numericOptions,e)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"currentFreq",{get:function(){return this.recurrence.frequency},enumerable:!0,configurable:!0}),c.prototype.onIntervalChange=function(e){s.isPresent(e)&&(this.recurrence.interval=e)},c.prototype.onIntervalBlur=function(){s.isPresent(this.intervalValue)||(this.recurrence.interval=this.intervalValue=1)},c.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")}},c.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")}},c.prototype.textFor=function(e){return this.localization.get(e)},r.__decorate([i.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],c.prototype,"userNumericOptions",null),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])],c));function c(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}t.RecurrenceIntervalEditorComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(13),a=n(3),s=n(2),c=n(61),l=n(4),d=n(5),s=(Object.defineProperty(u.prototype,"userNumericOptions",{set:function(e){this.numericOptions=r.__assign({},this.numericOptions,e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"userDatePickerOptions",{set:function(e){this.datePickerOptions=r.__assign({},this.datePickerOptions,e)},enumerable:!0,configurable:!0}),u.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},u.prototype.setEndRule=function(e){"count"===e?this.recurrence.rrule.count=this.countValue:"until"===e&&(this.recurrence.until=this.untilValue)},Object.defineProperty(u.prototype,"rrule",{get:function(){return this.recurrence.rrule},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"isCountDisabled",{get:function(){return"count"!==this.recurrence.endRule},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"isUntilDisabled",{get:function(){return"until"!==this.recurrence.endRule},enumerable:!0,configurable:!0}),u.prototype.onCountChange=function(e){a.isPresent(e)&&(this.recurrence.count=e)},u.prototype.onCountBlur=function(){a.isPresent(this.countValue)||(this.recurrence.count=this.countValue=1)},u.prototype.onUntilChange=function(e){a.isPresent(e)&&(this.recurrence.until=this.createUntil(e))},u.prototype.onUntilBlur=function(){a.isPresent(this.untilValue)||(this.recurrence.until=this.untilValue=this.createUntil(this.recurrence.start))},u.prototype.textFor=function(e){return this.localization.get(e)},u.prototype.onEndLabelClick=function(){var e=this.endRuleRadioButtons.toArray().find(function(e){return e.elem.checked});e&&e.elem.focus()},u.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)},u.prototype.subscribeChanges=function(){var t=this;this.subscriptions=this.recurrence.endRuleChange.subscribe(function(e){t.setEndRule(e)}),this.subscriptions.add(this.recurrence.frequencyChange.subscribe(function(){t.setInitialValues()}))},u.prototype.createUntil=function(e){e=d.toUTCDate(e);return e.setUTCDate(e.getUTCDate()+1),l.ZonedDate.fromUTCDate(e,this.recurrence.timezone).toLocalDate()},r.__decorate([i.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],u.prototype,"userNumericOptions",null),r.__decorate([i.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],u.prototype,"userDatePickerOptions",null),r.__decorate([i.ViewChildren(c.EndRuleRadioButtonDirective),r.__metadata("design:type",i.QueryList)],u.prototype,"endRuleRadioButtons",void 0),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])],u));function u(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()}t.RecurrenceEndRuleEditorComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(13),a=n(2),n=n(22),a=(s.prototype.ngOnInit=function(){this.frequencies=this.recurrence.frequencies},Object.defineProperty(s.prototype,"selected",{get:function(){return this.recurrence.frequency},enumerable:!0,configurable:!0}),s.prototype.onClick=function(e){e.value!==this.selected&&this.recurrence.setFrequency(e.value)},s.prototype.textFor=function(e){return this.localization.get(e)},s.prototype.onFrequencyClick=function(){var e=this.weekDayButtons.toArray().find(function(e){return e.selected});e&&e.focus()},r.__decorate([i.ViewChildren(n.Button),r.__metadata("design:type",i.QueryList)],s.prototype,"weekDayButtons",void 0),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])],s));function s(e,t){this.recurrence=e,this.localization=t}t.RecurrenceFrequencyEditorComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(1),a=n(2),s=n(84),c=n(3),s=(i=a.LocalizationService,r.__extends(l,i),l.prototype.get=function(e){return this.schedulerLocalization?this.schedulerLocalization.get("recurrenceEditor"+c.capitalize(e)):i.prototype.get.call(this,e)},r.__decorate([r.__param(0,o.Inject(a.L10N_PREFIX)),r.__param(1,o.Optional()),r.__param(2,o.Optional()),r.__param(2,o.Inject(a.RTL)),r.__param(3,o.Optional()),r.__param(3,o.Inject(s.SchedulerLocalizationService)),r.__metadata("design:paramtypes",[String,a.MessageService,Boolean,s.SchedulerLocalizationService])],l));function l(e,t,n,r){n=i.call(this,e,t,n)||this;return n.schedulerLocalization=r,n}t.RecurrenceLocalizationService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(16),a=n(1),n=n(25);t.SCHEDULER_DATETIMEPICKER_VALUE_ACCESSOR={multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:a.forwardRef(function(){return s})};var s=(c.prototype.writeValue=function(e){e instanceof Date&&(this.date=e)},c.prototype.onValueChange=function(e){this.onChangeCallback(e),this.valueChange.emit(e)},c.prototype.focus=function(){this.datePicker.focus()},c.prototype.registerOnChange=function(e){this.onChangeCallback=e},c.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},r.__decorate([i.ViewChild("datepicker",{static:!0}),r.__metadata("design:type",n.DatePickerComponent)],c.prototype,"datePicker",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],c.prototype,"isAllDay",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],c.prototype,"valueChange",void 0),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 "})],c));function c(){this.valueChange=new a.EventEmitter,this.onTouchedCallback=function(e){},this.onChangeCallback=function(e){}}t.SchedulerDateTimePickerComponent=s},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(16),a=n(2),s=n(89),c=n(9),l=n(3),d=n(43),u=n(66),p=n(64),h=n(8),m=n(17),g=n(63),y=n(20),f=n(4),v=n(5),y=(Object.defineProperty(_.prototype,"autoFocusedElement",{get:function(){return this.editTemplate?this.editTemplate.autoFocusedElement:".k-edit-field input"},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"isEditingSeries",{get:function(){return 2===this.editMode&&Boolean(this.formGroup.get(this.fields.recurrenceRule))},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"eventTimezone",{get:function(){return v.formValueOrDefault(this.formGroup,this.fields.startTimezone,this.timezone)},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"endTimezone",{get:function(){return v.formValueOrDefault(this.formGroup,this.fields.endTimezone,this.eventTimezone)},enumerable:!0,configurable:!0}),_.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,e=e.mode;this.formGroup=this.editService.context.formGroup,this.isNew=!1,this.editedEvent=t,this.editMode=l.isPresent(e)?e: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},_.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},_.prototype.onCancel=function(e){e.preventDefault(),this.onClose(),this.changeDetector.markForCheck()},_.prototype.onSave=function(e){e.preventDefault(),this.applyTimezone(),this.editService.save(),this.changeDetector.markForCheck()},_.prototype.onClose=function(){this.editService.endEdit(),this.changeDetector.markForCheck(),this.focusService.focus()},Object.defineProperty(_.prototype,"hasAllDay",{get:function(){return Boolean(this.formGroup.get(this.fields.isAllDay))},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"hasStartTimeZone",{get:function(){return Boolean(this.formGroup.get(this.fields.startTimezone))},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"isStartTimeZoneVisible",{get:function(){return this.formGroup&&this.formGroup.get("startTimezoneCheckbox").value},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"hasEndTimeZone",{get:function(){return Boolean(this.formGroup.get(this.fields.endTimezone))},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"isEndTimeZoneVisible",{get:function(){return this.formGroup&&this.formGroup.get("endTimezoneCheckbox").value},enumerable:!0,configurable:!0}),_.prototype.getFormValue=function(e){if(e)return this.formGroup.get(e)},_.prototype.textFor=function(e){return this.localization.get(e)},_.prototype.onResourceClick=function(t){var e=(t.multiple?this.multipleResourceEditors:this.singleResourceEditors).filter(function(e){return e.resource.field===t.field}).pop();e&&e.focus()},_.prototype.reset=function(){this.isActive=!1,this.setTimeZone=!1,this.setSeparateStartEndTimeZones=!1,this.removeTimeZoneCheckboxesFromFormGroup(),this.focusService.focus()},_.prototype.addTimeZoneCheckboxesToFormGroup=function(){var e;l.isPresent(this.formGroup)&&(e=this.fields.startTimezone,this.formGroup.addControl("startTimezoneCheckbox",new o.FormControl(this.formGroup.contains(e)&&this.formGroup.get(e).value)),e=this.fields.endTimezone,this.formGroup.addControl("endTimezoneCheckbox",new o.FormControl(this.formGroup.contains(e)&&this.formGroup.get(e).value)))},_.prototype.removeTimeZoneCheckboxesFromFormGroup=function(){l.isPresent(this.formGroup)&&(this.formGroup.removeControl("startTimezoneCheckbox"),this.formGroup.removeControl("endTimezoneCheckbox"))},_.prototype.subscribeToFormGroupChanges=function(){var t,n=this;l.isPresent(this.formGroup)&&(t=this.fields,this.formGroup.get("startTimezoneCheckbox").valueChanges.subscribe(function(e){e||(n.formGroup.get(t.startTimezone).setValue(null,{emitEvent:!1}),n.formGroup.get(t.endTimezone).setValue(null,{emitEvent:!1}),n.formGroup.get("endTimezoneCheckbox").setValue(!1,{emitEvent:!1}))}),this.formGroup.get("endTimezoneCheckbox").valueChanges.subscribe(function(e){e||n.formGroup.get(t.endTimezone).setValue(null,{emitEvent:!1})}),this.formGroup.get(t.start).valueChanges.subscribe(function(e){n.recurrenceStart=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)},_.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)},_.prototype.readDateWithTimezone=function(e,t){e=this.formGroup.get(e).value;return f.ZonedDate.fromUTCDate(v.toUTCDateTime(e),t).toLocalDate()},_.prototype.readDateAsLocal=function(e,t){e=this.formGroup.get(e).value;return f.toLocalDate(f.ZonedDate.fromLocalDate(e,t).toUTCDate())},r.__decorate([i.ViewChildren(u.MultipleResourceEditorComponent),r.__metadata("design:type",i.QueryList)],_.prototype,"multipleResourceEditors",void 0),r.__decorate([i.ViewChildren(p.SingleResourceEditorComponent),r.__metadata("design:type",i.QueryList)],_.prototype,"singleResourceEditors",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],_.prototype,"resources",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],_.prototype,"timezone",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],_.prototype,"weekStart",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],_.prototype,"fields",void 0),r.__decorate([i.Input(),r.__metadata("design:type",d.EditDialogTemplateDirective)],_.prototype,"editTemplate",void 0),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' class='k-textbox' 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' class='k-checkbox' [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' class='k-checkbox'\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' class='k-checkbox' 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' class='k-textbox' [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 class=\"k-button\" (click)=\"onCancel($event)\">{{ textFor('cancel') }}</button>\n <button class=\"k-button k-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,y.FocusService])],_));function _(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()}))}t.EditDialogComponent=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e){return!(!e.id||!e.recurrenceRule)}var o=n(3),i=n(1),a=n(8),n=(Object.defineProperty(s.prototype,"fields",{get:function(){return this.scheduler.modelFields},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"hasLocalData",{get:function(){return o.isPresent(this.localDataChangesService.data)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"data",{get:function(){return this.hasLocalData?this.localDataChangesService.data:this.scheduler.events},enumerable:!0,configurable:!0}),s.prototype.create=function(e){var t=this.fields.id,n=o.getField(e,t);o.isPresent(n)||o.setField(e,t,this.nextId()),this.data.push(e),this.dataChanged()},s.prototype.createException=function(e,t){t=this.buildException(t);this.removeOccurrenceInternal(e),this.create(t)},s.prototype.update=function(e,t){o.assignValues(e,t),this.dataChanged()},s.prototype.remove=function(e){for(var t=this.fields.id,n=o.getField(e,t),r=this.data,i=0;i<r.length;i++)if(n===o.getField(r[i],t)){r.splice(i,1);break}this.dataChanged()},s.prototype.removeSeries=function(e){var t=o.readEvent(e,this.fields),e=r(t);this.removeItemAndExceptions(e?t.id:t.recurrenceId),this.dataChanged()},s.prototype.removeOccurrence=function(e){this.removeOccurrenceInternal(e),this.dataChanged()},s.prototype.findRecurrenceMaster=function(e){var t=this.scheduler.modelFields,e=o.readEvent(e,t),n=r(e)?e.id:e.recurrenceId;return this.data.find(function(e){return o.getField(e,t.id)===n})},s.prototype.isRecurring=function(e){return o.isRecurring(e,this.scheduler.modelFields)},s.prototype.isException=function(e){return o.isException(e,this.scheduler.modelFields)},s.prototype.nextId=function(){return a.guid()},s.prototype.buildException=function(e){var t=this.fields,n=this.findRecurrenceMaster(e);if(n){e=o.clone(e);return o.setField(e,t.id,this.nextId()),o.setField(e,t.recurrenceId,o.getField(n,t.id)),o.setField(e,t.recurrenceRule,null),e}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.")},s.prototype.removeItemAndExceptions=function(e){for(var t=this.data,n=this.scheduler.modelFields,r=t.length-1;0<=r;r--)e!==o.getField(t[r],n.recurrenceId)&&e!==o.getField(t[r],n.id)||t.splice(r,1)},s.prototype.removeOccurrenceInternal=function(e){var t=this.fields,n=this.findRecurrenceMaster(e),r=o.getField(e,t.start),e=o.getField(n,t.recurrenceExceptions)||[];o.setField(n,t.recurrenceExceptions,e.concat([r]))},s.prototype.dataChanged=function(){this.hasLocalData&&this.localDataChangesService.changes.emit()},s);function s(e,t){this.scheduler=e,this.localDataChangesService=t}t.LocalEditService=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(9),a=n(117),c=n(30),l=n(3),d=n(67),r=(Object.defineProperty(s.prototype,"editService",{get:function(){return this.userEditService||this.defaultEditService},set:function(e){this.userEditService=e},enumerable:!0,configurable:!0}),s.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)))},s.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},s.prototype.createDefaultService=function(){return new a.LocalEditService(this.scheduler,this.localDataChangesService)},s.prototype.addHandler=function(e){if(this.closeEditor(),this.isEnabled("add")){var t=this.scheduler.modelFields,n={};l.setField(n,t.start,e.start),l.setField(n,t.end,e.end),l.setField(n,t.isAllDay,e.isAllDay),l.setField(n,t.title,e.title);for(var r=l.groupResources(this.scheduler.group,this.scheduler.resources),i=e.resources,o=0;o<r.length;o++){var a=r[o],s=l.getField(i[o],a.valueField);l.setField(n,a.field,a.multiple?[s]:s)}e=new c.AddEvent(this.scheduler,{dataItem:n});this.add.emit(e),e.isDefaultPrevented()||this.scheduler.addEvent(this.createModel({action:"add",isNew:!0,dataItem:n}))}},s.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)}))},s.prototype.cancelHandler=function(){this.closeEditor()},s.prototype.closeEditor=function(){this.scheduler.closeEvent()},s.prototype.handleUpdate=function(e,t,n){var r=this.editService;1!==n||r.isException(e)?r.update(e,t):r.createException(e,t)},s.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)},s.prototype.resizeEndHandler=function(e){var n,r,i,o=this,t=e.event,a=e.start,e=e.end;d.areEqual(a,t.start)&&d.areEqual(e,t.end)||(n=t.dataItem,r=this.scheduler.modelFields,i={},l.setField(i,r.start,a),l.setField(i,r.end,e),this.editService.isRecurring(n)?this.dialogsService.openRecurringConfirmationDialog(0).subscribe(function(e){var t=n;2===e?(t=o.editService.findRecurrenceMaster(n),l.setField(i,r.start,d.seriesDate(t,n,i,r.start)),l.setField(i,r.end,d.seriesDate(t,n,i,r.end))):void 0!==e&&(i=l.assignValues(l.clone(n),i)),o.handleUpdate(t,i,e)}):this.editService.update(n,i))},s.prototype.dragEndHandler=function(e){var n=this,r=e.event.dataItem,t=e.start,i=e.end,o=e.resources,a=e.isAllDay,s=this.scheduler.modelFields,e=l.groupResources(this.scheduler.group,this.scheduler.resources).map(function(e){return e.field}),e=[s.start,s.end,s.isAllDay].concat(e),c=l.clone(o);l.setField(c,s.start,t),l.setField(c,s.end,i),l.setField(c,s.isAllDay,a),d.diff(r,c,e)&&(this.editService.isRecurring(r)?this.dialogsService.openRecurringConfirmationDialog(0).subscribe(function(e){var t=r;2===e?(t=n.editService.findRecurrenceMaster(r),l.setField(c,s.start,d.seriesDate(t,r,c,s.start)),l.setField(c,s.end,d.seriesDate(t,r,c,s.end))):void 0!==e&&(c=l.assignValues(l.clone(r),c)),n.handleUpdate(t,c,e)}):this.editService.update(r,c))},s.prototype.isEnabled=function(e){var t=this.scheduler.editable;return t&&!1!==t[e]},r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],s.prototype,"add",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],s.prototype,"edit",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object),r.__metadata("design:paramtypes",[Object])],s.prototype,"editService",null),s);function s(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}t.EditingDirectiveBase=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),o=n(1),a=n(26),s=n(118),c=n(42),l=n(67),d=n(41),u=n(30),p=n(17),d=(i=s.EditingDirectiveBase,r.__extends(h,i),h.prototype.ngOnInit=function(){i.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)))},h.prototype.editHandler=function(e){var t,n,r=this;this.isEnabled("edit")&&(t=new u.EditEvent(this.scheduler,{dataItem:e.event.dataItem,event:e.event}),this.edit.emit(t),t.isDefaultPrevented()||(n=e.event.dataItem,this.editService.isRecurring(n)?this.dialogsService.openRecurringConfirmationDialog(0).pipe(p.filter(function(e){return void 0!==e})).subscribe(function(e){2===e&&(n=r.editService.findRecurrenceMaster(n));var t=r.createModel({action:"edit",isNew:!1,mode:e,dataItem:n});r.scheduler.editEvent(n,{group:t,mode:e})}):(e=this.createModel({action:"edit",isNew:!1,mode:0,dataItem:n}),this.scheduler.editEvent(n,{group:e}))))},h.prototype.saveHandler=function(e){var t;this.isFormValid(e)&&(t=e.formGroup.value,e.isNew?this.editService.create(t):this.handleUpdate(e.dataItem,t,e.mode)),this.closeEditor()},h.prototype.createModel=function(e){return e.event=e.dataItem,this.createFormGroup(e)},h.prototype.isFormValid=function(e){var t=e.formGroup,e=e.isNew;return!!t.valid||!(!t.dirty&&!e)&&(l.markAllAsTouched(t),!1)},r.__decorate([o.Input("kendoSchedulerReactiveEditing"),r.__metadata("design:type",Function)],h.prototype,"createFormGroup",void 0),r.__decorate([o.Directive({selector:"[kendoSchedulerReactiveEditing]"}),r.__metadata("design:paramtypes",[a.SchedulerComponent,c.LocalDataChangesService,d.DialogsService])],h));function h(e,t,n){var r=i.call(this,e,t,n)||this;return r.scheduler=e,r.localDataChangesService=t,r.dialogsService=n,r}t.ReactiveEditingDirective=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r,i=n(0),a=n(1),s=n(2),c=n(11),l=n(31),d=n(10),u=n(7),p=n(4),u=(o=l.TimelineBase,i.__extends(h,o),r=h,Object.defineProperty(h.prototype,"title",{get:function(){return this.localization.get("timelineMonthViewTitle")},enumerable:!0,configurable:!0}),i.__decorate([a.Input(),i.__metadata("design:type",String)],h.prototype,"selectedDateFormat",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],h.prototype,"selectedShortDateFormat",void 0),r=i.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-timeline-month-view",providers:[{provide:c.SchedulerView,useExisting:a.forwardRef(function(){return r})}],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 '}),i.__metadata("design:paramtypes",[s.LocalizationService,a.ChangeDetectorRef,d.ViewContextService,u.ViewStateService])],h));function h(e,t,n,r){var i=o.call(this,e,t,n,r)||this;return i.selectedDateFormat="{0:Y}",i.selectedShortDateFormat="{0:y}",i.name="timelineMonth",i.getStartDate=function(e){return p.firstDayOfMonth(p.getDate(e))},i.getEndDate=function(e){return p.addMonths(i.getStartDate(e),1)},i.getNextDate=function(e,t){return p.addMonths(e,t)},i}t.TimelineMonthViewComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,r,i=n(0),o=n(1),s=n(2),c=n(11),l=n(31),d=n(6),u=n(4),p=n(10),n=n(7),n=(a=l.TimelineBase,i.__extends(h,a),r=h,Object.defineProperty(h.prototype,"title",{get:function(){return this.localization.get("timelineWeekViewTitle")},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",String)],h.prototype,"selectedDateFormat",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],h.prototype,"selectedShortDateFormat",void 0),r=i.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-timeline-week-view",providers:[{provide:c.SchedulerView,useExisting:o.forwardRef(function(){return r})}],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 '}),i.__metadata("design:paramtypes",[d.IntlService,s.LocalizationService,o.ChangeDetectorRef,p.ViewContextService,n.ViewStateService])],h));function h(e,t,n,r,i){var o=a.call(this,t,n,r,i)||this;return o.intl=e,o.selectedDateFormat="{0:D} - {1:D}",o.selectedShortDateFormat="{0:d} - {1:d}",o.name="timelineWeek",o.getStartDate=function(e){return u.firstDayInWeek(u.getDate(e),o.viewWeekStart)},o}t.TimelineWeekViewComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o=n(0),a=n(1),s=n(2),c=n(11),l=n(31),d=n(10),n=n(7),n=(i=l.TimelineBase,o.__extends(u,i),r=u,Object.defineProperty(u.prototype,"title",{get:function(){return this.localization.get("timelineViewTitle")},enumerable:!0,configurable:!0}),o.__decorate([a.Input(),o.__metadata("design:type",String)],u.prototype,"selectedDateFormat",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],u.prototype,"selectedShortDateFormat",void 0),r=o.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-timeline-view",providers:[{provide:c.SchedulerView,useExisting:a.forwardRef(function(){return r})}],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 '}),o.__metadata("design:paramtypes",[s.LocalizationService,a.ChangeDetectorRef,d.ViewContextService,n.ViewStateService])],u));function u(e,t,n,r){r=i.call(this,e,t,n,r)||this;return r.selectedDateFormat="{0:D}",r.selectedShortDateFormat="{0:d}",r.name="timeline",r}t.TimelineViewComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d=n(5);t.createTasks=function(e,t,n){for(var r=[],i=d.toUTCDate(e),o=d.toUTCDate(t),a=0;a<n.length;a++){var s=n[a],c=s.event,l={index:a,start:s.start,end:s.end,event:c,isAllDay:!1},s=c.isAllDay?d.roundAllDayEnd(s):l.end,c=c.isAllDay?l.start.stripTime():l.start;l.startTime=c.toUTCDate(),l.endTime=s.toUTCDate(),d.intersects(l.startTime,l.endTime,i,o)&&(r.push(l),l.head=l.endTime>t,l.tail=l.startTime<e)}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d,r=n(0),i=n(1),o=n(6),a=n(2),s=n(10),c=n(7),l=n(28),u=n(123),p=n(5),h=n(69),n=n(15),n=(d=h.DayTimeViewComponent,r.__extends(m,d),Object.defineProperty(m.prototype,"classNames",{get:function(){return"k-scheduler-"+this.viewName+"-view"},enumerable:!0,configurable:!0}),m.prototype.ngOnChanges=function(e){e.columnWidth&&this.changes.next(null),d.prototype.ngOnChanges.call(this,e)},m.prototype.reflow=function(){var e=this.slotService;this.updateContentHeight(),e.containerSize=this.content.nativeElement.scrollWidth;var n=this.verticalResources.length?this.verticalResourceRows.toArray():[];e.layoutTimeline(this.eventHeight,n),n.length&&e.forEachGroup(function(e,t){n[t].nativeElement.style.height=e.timeRanges[0].slots[0].height+"px"}),this.syncTables()},Object.defineProperty(m.prototype,"allEventsMessage",{get:function(){return this.localization.get("allEvents")},enumerable:!0,configurable:!0}),Object.defineProperty(m.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}),m.prototype.timeColspan=function(e){var t=this.timeSlots.length,n=t%this.slotDivisions;return 0==n||e<t-n?this.slotDivisions:1},m.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},m.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},m.prototype.createTasks=function(e,t){return u.createTasks(t.start,t.end,e)},m.prototype.onTasksChange=function(){this.items.next(this.tasks)},m.prototype.dragRanges=function(e){return this.slotService.dragRanges(e,this.dragging.offset,!0)},m.prototype.dragHintSize=function(e,t){return{width:p.toPx(t.rect.left-e.rect.left+t.rect.width),height:p.toPx(e.height)}},m.prototype.updateResizeHints=function(e,t,n){var r=e[e.length-1];d.prototype.updateResizeHints.call(this,[[e[0][0],r[r.length-1]]],t,n)},m.prototype.pdfWidth=function(){return this.content.nativeElement.scrollWidth+this.times.nativeElement.offsetWidth},m.prototype.currentTimeArrowOffset=function(){return this.headerWrap.nativeElement.querySelector("tr:last-child").offsetTop},r.__decorate([i.Input(),r.__metadata("design:type",String)],m.prototype,"name",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],m.prototype,"columnWidth",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],m.prototype,"viewName",void 0),r.__decorate([i.ViewChildren("verticalResourceRows"),r.__metadata("design:type",i.QueryList)],m.prototype,"verticalResourceRows",void 0),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" #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 [id]="{ resourceIndex: verticalResources.length ? verticalIndex : horizontalIndex, rangeIndex: rangeIndex, index: index }"\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,n.PDFService])],m));function m(e,t,n,r,i,o,a,s,c,l){e=d.call(this,t,n,r,i,o,a,s,c,l,e)||this;return e.name="timeline",e.columnWidth=100,e.viewName="timeline",e.verticalTime=!1,e}t.TimelineMultiDayViewComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(124),a=n(122),s=n(121),c=n(120),l=n(68),n=n(34),c=[a.TimelineViewComponent,s.TimelineWeekViewComponent,c.TimelineMonthViewComponent],o=r.__decorate([i.NgModule({imports:[l.DayTimeModule,n.ViewsSharedModule],exports:[c],declarations:c.concat([o.TimelineMultiDayViewComponent])})],d);function d(){}t.TimelineViewModule=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o=n(0),a=n(1),n=n(11),a=(r=n.SchedulerView,o.__extends(s,r),i=s,Object.defineProperty(s.prototype,"name",{get:function(){return this._name||this.title},set:function(e){this._name=e},enumerable:!0,configurable:!0}),o.__decorate([a.Input("kendoSchedulerView"),o.__metadata("design:type",String)],s.prototype,"title",void 0),o.__decorate([a.Input("kendoSchedulerViewName"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],s.prototype,"name",null),i=o.__decorate([a.Directive({providers:[{provide:n.SchedulerView,useExisting:a.forwardRef(function(){return i})}],selector:"[kendoSchedulerView]"}),o.__metadata("design:paramtypes",[a.TemplateRef])],s));function s(e){var t=r.call(this)||this;return t.template=e,t}t.SchedulerViewDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,r=n(0),i=n(1),o=n(6),a=n(2),c=n(4),l=n(20),d=n(28),i=(s=n(75).BaseViewItem,r.__extends(u,s),Object.defineProperty(u.prototype,"eventTime",{get:function(){return this.intlService.format("{0:t}–{1:t}",c.toLocalDate(this.item.startTime),c.toLocalDate(this.item.endTime))},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],u.prototype,"vertical",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],u.prototype,"isAllDay",void 0),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,d.DayTimeSlotService,a.LocalizationService,l.FocusService,i.ElementRef,i.Renderer2,String])],u));function u(e,t,n,r,i,o,a){o=s.call(this,t,n,r,i,o,a)||this;return o.intlService=e,o.localeId=a,o}t.DayTimeViewItemComponent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),o=n(1),a=n(73),s=n(5),c=n(28),l=n(2),d=n(18),n=(r=a.BaseSlotDirective,i.__extends(u,r),Object.defineProperty(u.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(u.prototype,"startLocalTime",{get:function(){return this.date&&this.invariantStart?s.dateWithTime(this.date,this.invariantStart):null},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"endLocalTime",{get:function(){return this.date&&this.invariantEnd?s.dateWithTime(this.date,this.invariantEnd):null},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"start",{get:function(){return this.date&&this.invariantStart?s.toUTCTime(this.date,this.invariantStart):null},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"end",{get:function(){if(!this.date||!this.invariantEnd)return null;var e=s.toUTCTime(this.date,this.invariantEnd);return d.INVARIANT_END.getTime()<=this.invariantEnd.getTime()?s.addUTCDays(e,1):e},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",Date)],u.prototype,"invariantStart",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],u.prototype,"invariantEnd",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],u.prototype,"workDayStart",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],u.prototype,"workDayEnd",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],u.prototype,"workWeekStart",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],u.prototype,"workWeekEnd",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Date)],u.prototype,"date",void 0),i.__decorate([o.HostBinding("class.k-nonwork-hour"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],u.prototype,"nonWorkHour",null),i.__decorate([o.Directive({selector:"[timeSlot]",exportAs:"timeSlot"}),i.__metadata("design:paramtypes",[o.ElementRef,c.DayTimeSlotService,l.LocalizationService])],u));function u(e,t,n){n=r.call(this,e,t,n)||this;return n.isDaySlot=!1,n}t.TimeSlotDirective=n;var p,l=(p=a.BaseSlotDirective,i.__extends(h,p),Object.defineProperty(h.prototype,"start",{get:function(){return this.startDate?s.toUTCDate(this.startDate):null},set:function(e){this.startDate=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"end",{get:function(){return this.endDate?s.toUTCDate(this.endDate):null},set:function(e){this.endDate=e},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"daySlot",{get:function(){return!0},enumerable:!0,configurable:!0}),i.__decorate([o.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],h.prototype,"start",null),i.__decorate([o.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],h.prototype,"end",null),i.__decorate([o.HostBinding("attr.data-day-slot"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],h.prototype,"daySlot",null),i.__decorate([o.Directive({selector:"[daySlot]"}),i.__metadata("design:paramtypes",[o.ElementRef,c.DayTimeSlotService,l.LocalizationService])],h));function h(e,t,n){n=p.call(this,e,t,n)||this;return n.isDaySlot=!0,n}t.DaySlotDirective=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=n(5),m=n(18);t.createTimeSlots=function(e,t){var n=t.showWorkHours,r=t.startTime,i=t.endTime,o=t.workDayStart,a=t.workDayEnd,s=t.slotDivisions,t=t.slotDuration,r=e.parseDate(n?o:r),r=h.toInvariantTime(r).getTime(),i=e.parseDate(n?a:i),c=h.toInvariantTime(i).getTime();c<=r&&(c=h.toInvariantTime(m.MIDNIGHT_INVARIANT).getTime()+m.MS_PER_DAY);for(var l=[],d=Math.round(t/s*m.MS_PER_MINUTE),u=r,p=0;u<c;)l.push({start:new Date(u),end:new Date(u+d),isMajor:p%s==0}),p++,u+=d;return l}},function(e,v,t){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var _=t(5),b=t(4),k=t(3);v.isMultiDay=function(e){var t=e.start,n=e.end,e=t.stripTime(),t=n.stripTime();return e.getTime()!==t.getTime()&&(t.getTime()!==n.getTime()||e.addDays(1).getTime()!==t.getTime())},v.createTasks=function(e,t,n,r){for(var i=[],o=_.toUTCDate(e),a=_.toUTCDate(t),s=0;s<n.length;s++)for(var c=n[s],l=v.isMultiDay(c),d=l&&!c.event.isAllDay&&c.end.getTime()-c.start.getTime()<b.MS_PER_DAY,u=c.event.isAllDay||l&&!d,p=(u?_.roundAllDayEnd(c):c.end).toUTCDate(),h=(u?c.start.stripTime():c.start).toUTCDate(),m=0;m<r.length;m++){var g=r[m].start,y=r[m].end;if(_.intersects(h,p,g,y)){var f={index:s,isAllDay:u,startTime:h,endTime:p,rangeIndex:u?0:m,start:c.start,end:c.end,event:c.event};if(i.push(f),!d){f.head=a<p,f.tail=h<o;break}g=r[m+1],y=r[m-1];f.head=(g?g.start:a)<p,f.tail=h<(y?y.end:o)}}return k.sortTasksByTime(i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d,r=n(0),i=n(1),o=n(6),a=n(2),s=n(8),u=n(9),c=n(10),l=n(7),p=n(28),h=n(130),m=n(69),g=n(35),y=n(5),n=n(15),n=(d=m.DayTimeViewComponent,r.__extends(f,d),Object.defineProperty(f.prototype,"allDaySlotTemplateRef",{get:function(){return this.allDaySlotTemplate||(this.schedulerAllDaySlotTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"allDayEventTemplateRef",{get:function(){return this.allDayEventTemplate||(this.schedulerAllDayEventTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"minorTimeHeaderTemplateRef",{get:function(){return this.minorTimeHeaderTemplate||(this.schedulerMinorTimeHeaderTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"majorTimeHeaderTemplateRef",{get:function(){return this.majorTimeHeaderTemplate||(this.schedulerMajorTimeHeaderTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"allDayMessage",{get:function(){return this.localization.get("allDay")},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"allDayResizeHint",{get:function(){return this.resizing&&this.resizing.task.isAllDay},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"allDayDragHint",{get:function(){return this.dragging&&this.dragging.slot.isDaySlot},enumerable:!0,configurable:!0}),f.prototype.optionsChange=function(e){this.schedulerAllDaySlotTemplate=e.allDaySlotTemplate,this.schedulerAllDayEventTemplate=e.allDayEventTemplate,this.schedulerMinorTimeHeaderTemplate=e.minorTimeHeaderTemplate,this.schedulerMajorTimeHeaderTemplate=e.majorTimeHeaderTemplate,d.prototype.optionsChange.call(this,e)},f.prototype.ngOnChanges=function(e){d.prototype.ngOnChanges.call(this,e),e.slotFill&&this.changes.next(null),s.anyChanged(["startTime","endTime","showWorkHours","workDayStart","workDayEnd","workWeekStart","workWeekEnd"],e)&&this.viewRangeChange.next(null),(s.isChanged("numberOfDays",e,!0)||s.isChanged("weekStart",e))&&(this.daySlots=this.createDaySlots(),this.viewState.notifyDateRange(this.dateRange()))},f.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},f.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},f.prototype.allDaySlotClass=function(e,t){if(this.slotClass)return this.slotClass({start:e.start,end:e.end,resources:this.resourcesByIndex(t),isAllDay:!0})},f.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:y.toUTCTime(e.start,n.start),end:i?y.toUTCDate(e.end):y.toUTCTime(e.start,r)}});return h.createTasks(t.start,t.end,e,o)},f.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}))},f.prototype.reflow=function(){var n,e,t=this.slotService;this.verticalResources.length||(this.updateContentHeight(),this.syncTables()),this.slotService.containerSize=this.content.nativeElement.clientWidth,t.layoutDays(this.eventHeight),this.updateContentHeight(),this.syncTables(),this.dayCells.length&&(n=this.dayCells.toArray(),this.verticalResources.length?t.forEachDateRange(function(e,t){e=e.firstSlot;n[t].nativeElement.style.height=e.rect.height-e.padding+"px"}):(e=t.syncDateRanges(),n[0].nativeElement.style.height=e+"px")),t.layoutTimes({fill:this.slotFill}),this.syncTables()},f.prototype.dragHorizontal=function(e){return e.isDaySlot},f.prototype.updateHintContainer=function(){this.headerHintContainer&&this.headerHintContainer.detectChanges(),d.prototype.updateHintContainer.call(this)},f.prototype.onRelease=function(){d.prototype.onRelease.call(this),this.dragContainers=null},f.prototype.updateDragContainer=function(t){this.dragContainers||(this.dragContainers=this.containers);var e=this.dragContainers.find(function(e){e=e.offset;return e.top<=t.pageY&&t.pageY<=e.top+e.height})||{};this.container=e.element,this.containerOffset=e.offset},f.prototype.containerByPosition=function(e){var t=e.x,n=e.y;return this.containers.find(function(e){e=e.offset;return e.top<=n&&n<=e.top+e.height&&e.left<=t&&t<=e.left+e.width})},Object.defineProperty(f.prototype,"containers",{get:function(){var e=this.headerWrap.nativeElement.children[1],t=this.content.nativeElement;return[{element:t,offset:y.elementOffset(t)},{element:e,offset:y.elementOffset(e)}]},enumerable:!0,configurable:!0}),f.prototype.scrollContainer=function(e,t){clearInterval(this.scrollInterval),this.container&&this.container===this.content.nativeElement&&d.prototype.scrollContainer.call(this,e,t)},f.prototype.dragRanges=function(e){var t=this.dragging.task;if(e.isDaySlot&&!t.isAllDay)return{ranges:[[e]],start:y.dateWithTime(e.start,t.start.toUTCDate()),end:y.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},f.prototype.dragHintEventStyleArgs=function(){return{event:this.dragging.task.event,resources:this.dragging.resourceItems,isAllDay:Boolean(this.allDayDragHint)}},f.prototype.draggedIsAllDay=function(e,t){return Boolean(t.isDaySlot&&(e.event.isAllDay||!h.isMultiDay(e)))},f.prototype.dragHintSize=function(e,t){var n,t=e.isDaySlot?(n=y.toPx(t.rect.left-e.rect.left+t.rect.width),y.toPx(e.height)):(n=y.toPx(.9*e.rect.width),y.toPx(this.dragging.task.isAllDay?e.rect.height:t.rect.top-e.rect.top+t.rect.height));return{width:n,height:t}},f.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)],f.prototype,"name",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],f.prototype,"slotFill",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],f.prototype,"allDaySlotTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],f.prototype,"allDayEventTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],f.prototype,"minorTimeHeaderTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],f.prototype,"majorTimeHeaderTemplate",void 0),r.__decorate([i.ViewChildren("allDayCell"),r.__metadata("design:type",i.QueryList)],f.prototype,"dayCells",void 0),r.__decorate([i.ViewChild("headerHintContainer",{static:!1}),r.__metadata("design:type",g.HintContainerComponent)],f.prototype,"headerHintContainer",void 0),r.__decorate([i.Component({selector:"multi-day-view",providers:[p.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" 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 [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" #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 [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 >\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,c.ViewContextService,l.ViewStateService,o.IntlService,p.DayTimeSlotService,i.NgZone,i.Renderer2,i.ElementRef,i.ChangeDetectorRef,n.PDFService])],f));function f(e,t,n,r,i,o,a,s,c,l){e=d.call(this,c,t,n,r,i,o,a,s,l,e)||this;return e.name="day",e.dateFormat={skeleton:"MEd"},e.allDayResizeHintFormat={skeleton:"Md"},e.allDayItems=new u.BehaviorSubject(null),e}t.MultiDayViewRendererComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r,i=n(0),a=n(1),s=n(2),c=n(11),l=n(32),d=n(6),u=n(10),p=n(7),h=n(4),p=(o=l.WeekViewComponent,i.__extends(m,o),r=m,Object.defineProperty(m.prototype,"title",{get:function(){return this.localization.get("workWeekViewTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(m.prototype,"numberOfDays",{get:function(){return this.viewWorkWeekStart>this.viewWorkWeekEnd?7-this.viewWorkWeekStart+this.viewWorkWeekEnd+1:this.viewWorkWeekEnd-this.viewWorkWeekStart+1},enumerable:!0,configurable:!0}),m.prototype.getStartDate=function(e){return h.firstDayInWeek(h.getDate(e),this.viewWorkWeekStart)},m.prototype.getNextDate=function(e,t,n){return h.getDate(h.addDays(e,7*t))},r=i.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-work-week-view",providers:[{provide:c.SchedulerView,useExisting:a.forwardRef(function(){return r})}],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 '}),i.__metadata("design:paramtypes",[d.IntlService,s.LocalizationService,a.ChangeDetectorRef,u.ViewContextService,p.ViewStateService])],m));function m(e,t,n,r,i){i=o.call(this,e,t,n,r,i)||this;return i.name="workWeek",i.getNextDate=i.getNextDate.bind(i),i}t.WorkWeekViewComponent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o=n(0),a=n(1),s=n(2),c=n(11),l=n(10),d=n(7),d=(i=n(33).DayViewComponent,o.__extends(u,i),r=u,Object.defineProperty(u.prototype,"selectedDateFormat",{get:function(){return this.dateFormat||this.defaultDateFormat},set:function(e){this.dateFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"selectedShortDateFormat",{get:function(){return this.shortDateFormat||this.defaultShortDateFormat},set:function(e){this.shortDateFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"title",{get:function(){return this.localization.get("multiDayViewTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"defaultDateFormat",{get:function(){return 1===this.numberOfDays?"{0:D}":"{0:D} - {1:D}"},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"defaultShortDateFormat",{get:function(){return 1===this.numberOfDays?"{0:d}":"{0:d} - {1:d}"},enumerable:!0,configurable:!0}),o.__decorate([a.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],u.prototype,"selectedDateFormat",null),o.__decorate([a.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],u.prototype,"selectedShortDateFormat",null),o.__decorate([a.Input(),o.__metadata("design:type",Number)],u.prototype,"numberOfDays",void 0),r=o.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-multi-day-view",providers:[{provide:c.SchedulerView,useExisting:a.forwardRef(function(){return r})}],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 '}),o.__metadata("design:paramtypes",[s.LocalizationService,a.ChangeDetectorRef,l.ViewContextService,d.ViewStateService])],u));function u(e,t,n,r){r=i.call(this,e,t,n,r)||this;return r.numberOfDays=1,r.name="multiDay",r}t.MultiDayViewComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(33),a=n(133),s=n(32),c=n(132),l=n(131),d=n(68),n=n(34),c=[o.DayViewComponent,a.MultiDayViewComponent,s.WeekViewComponent,c.WorkWeekViewComponent],l=r.__decorate([i.NgModule({imports:[n.ViewsSharedModule,d.DayTimeModule],exports:[c],declarations:c.concat([l.MultiDayViewRendererComponent])})],u);function u(){}t.MultiDayViewModule=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(4),i=(Object.defineProperty(a.prototype,"left",{get:function(){return this.hint.rect.left},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"top",{get:function(){return this.hint.rect.top},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"width",{get:function(){return this.hint.rect.width},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"height",{get:function(){return this.hint.rect.height},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"start",{get:function(){return o.toLocalDate(this.hint.start)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"end",{get:function(){return o.toLocalDate(this.hint.end)},enumerable:!0,configurable:!0}),r.__decorate([i.Input(),r.__metadata("design:type",Object)],a.prototype,"hint",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],a.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)],a.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",[])],a.prototype,"left",null),r.__decorate([i.HostBinding("style.top.px"),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[])],a.prototype,"top",null),r.__decorate([i.HostBinding("style.width.px"),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[])],a.prototype,"width",null),r.__decorate([i.HostBinding("style.height.px"),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[])],a.prototype,"height",null),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 '})],a));function a(){this.marqueeClasses=!0}t.ResizeHintComponent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),r=n(1),n=n(3),i=(a.prototype[n.iterator]=function(){var t,n,r,i,o,a;return s.__generator(this,function(e){switch(e.label){case 0:for(t=this.resources,n=Math.max(0,this.lastIndex),t&&t.length||(t=[{}]),r=t[n].data||[],i=r.length,o=1,a=0;a<=n;a++)o*=(t[a].data||[]).length||1;a=0,e.label=1;case 1:return a<o?[4,r[a%i]]:[3,4];case 2:e.sent(),e.label=3;case 3:return a++,[3,1];case 4:return[2]}})},a),r=(o.prototype.transform=function(e,t){return new i(e=void 0===e?[]:e,t)},s.__decorate([r.Pipe({name:"resourceIterator"})],o));function o(){}function a(e,t){void 0===t&&(t=e.length-1),this.resources=e,this.lastIndex=t}t.ResourceIteratorPipe=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),n=n(3),o=(s.prototype[n.iterator]=function(){var t;return r.__generator(this,function(e){switch(e.label){case 0:t=0,e.label=1;case 1:return t<this.count?[4,t]:[3,4];case 2:e.sent(),e.label=3;case 3:return t++,[3,1];case 4:return[2]}})},s),i=(a.prototype.transform=function(e){return new o(e)},r.__decorate([i.Pipe({name:"repeat"})],a));function a(){}function s(e){this.count=e}t.RepeatPipe=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(72),n=n(2),n=(a.prototype.ngOnInit=function(){this.toggleWorkHours(),this.footer.items=this.footerItems},a.prototype.ngOnChanges=function(){this.toggleWorkHours()},a.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)],a.prototype,"showWorkHours",void 0),r.__decorate([i.Directive({selector:"[kendoWorkHoursFooter]"}),r.__metadata("design:paramtypes",[o.ViewFooterComponent,n.LocalizationService])],a));function a(e,t){this.footer=e,this.localization=t,this.showWorkHours=!1,this.footerItems=[{cssClass:"k-scheduler-fullday",iconClass:"k-i-clock",text:""}]}t.WorkHoursFooterDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),o=n(1),a=n(2),s=n(73),c=n(36),l=n(14),d=n(5),a=(r=s.BaseSlotDirective,i.__extends(u,r),Object.defineProperty(u.prototype,"start",{get:function(){return this.startDate},set:function(e){this.startDate=d.toUTCDate(e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"end",{get:function(){return d.addUTCDays(this.start,1)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"linkHeight",{get:function(){var e;return null===this._linkHeight&&(e=l.firstElementChild(this.nativeElement),this._linkHeight=e?e.offsetHeight+e.offsetTop:0),this._linkHeight},enumerable:!0,configurable:!0}),u.prototype.ngOnDestroy=function(){r.prototype.ngOnDestroy.call(this),this.removeShowMore()},u.prototype.showMore=function(e){var t;this.showMoreElement||((t=this.showMoreElement=document.createElement("div")).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))},u.prototype.hideMore=function(){this.removeShowMore()},u.prototype.invalidate=function(){r.prototype.invalidate.call(this),this._linkHeight=null,this.removeShowMore()},u.prototype.removeShowMore=function(){this.showMoreElement&&(this.showMoreElement.parentNode.removeChild(this.showMoreElement),this.showMoreElement=null)},i.__decorate([o.Input(),i.__metadata("design:type",Date),i.__metadata("design:paramtypes",[Date])],u.prototype,"start",null),i.__decorate([o.Directive({selector:"[monthSlot]"}),i.__metadata("design:paramtypes",[o.ElementRef,c.MonthSlotService,a.LocalizationService])],u));function u(e,t,n){n=r.call(this,e,t,n)||this;return n.isDaySlot=!0,n._linkHeight=null,n}t.MonthSlotDirective=a},function(e,t){e.exports=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=n(5),v=n(3);t.createTasks=function(e,t,n,r){for(var i=[],o=f.toUTCDate(e),a=f.toUTCDate(t),s=0;s<n.length;s++){var c=n[s],l={},d=c.start.toUTCDate(),u=c.end,p=(c.end.getTime()!==u.getTime()?u.addDays(1):u).toUTCDate();if(f.intersects(d,p,o,a))for(var h=0;h<r.length;h++){var m=r[h],g=f.toUTCDate(m[0]),y=f.addUTCDays(f.toUTCDate(m[m.length-1]),1);f.intersects(d,p,g,y)&&(m={index:s,startTime:d,endTime:p,start:c.start,end:c.end,event:c.event,isAllDay:c.event.isAllDay,rangeIndex:h,data:l},i.push(m),m.head=m.endTime>y,m.tail=m.startTime<g)}}return v.sortTasksByTime(i)},t.updateTaskData=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.resources;!function(e){var t,n=e.data;for(t in n)n.hasOwnProperty(t)&&delete n[t]}(n);for(var i=0;i<r.length;i++)n.data[r[i].leafIdx]={}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,r=n(0),i=n(1),o=n(6),a=n(8),s=n(4),c=n(10),d=n(7),u=n(14),p=n(36),h=n(141),m=n(5),g=n(74),y=n(15),n=n(2),n=(l=g.BaseView,r.__extends(f,l),Object.defineProperty(f.prototype,"monthDaySlotTemplateRef",{get:function(){return this.monthDaySlotTemplate||(this.schedulerMonthDaySlotTemplate||{}).templateRef},enumerable:!0,configurable:!0}),f.prototype.ngOnChanges=function(e){a.isChanged("weekStart",e)&&this.onSelectDate(this.selectedDate),l.prototype.ngOnChanges.call(this,e)},f.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},f.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},f.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]},f.prototype.daySlotClass=function(e,t){if(this.slotClass)return this.slotClass({start:e,end:s.addDays(e,1),resources:this.resourcesByIndex(t),isAllDay:!1})},f.prototype.cellTitle=function(e){return this.intl.formatDate(e,"D")},f.prototype.optionsChange=function(e){this.schedulerMonthDaySlotTemplate=e.monthDaySlotTemplate,l.prototype.optionsChange.call(this,e)},f.prototype.createTasks=function(e,t){return this.weeks=this.createDaySlots(t),h.createTasks(t.start,t.end,e,this.weeks)},f.prototype.onTasksChange=function(){h.updateTaskData(this.tasks),this.items.next(this.tasks)},f.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()},f.prototype.onClick=function(e,t){var n=this;if("click"===(t=void 0===t?e.type:t)){var r=u.closestInScope(e.target,function(e){return e.hasAttribute("data-slot-index")},this.element.nativeElement),i=u.closestInScope(e.target,function(e){return u.hasClasses(e,"k-more-events k-nav-day")},r);if(r&&i){var r=r.getAttribute("data-slot-index"),o=this.slotService.slotByIndex(r);return void this.zone.run(function(){n.viewState.navigateTo({viewName:"day",date:s.toLocalDate(o.start)})})}}l.prototype.onClick.call(this,e,t)},f.prototype.slotByIndex=function(e,t){return this.slotService.slotByIndex(e)},f.prototype.onSelectDate=function(e){var t=this.dateRange(e);this.selectedDate=e,this.viewState.notifyDateRange(t),this.weeks=this.createDaySlots(t)},f.prototype.onAction=function(e){var t,n=s.getDate(this.selectedDate);"next"===e.type&&(t=s.firstDayOfMonth(s.addMonths(n,1)),this.isInRange(t)&&this.viewState.notifyNextDate(t)),"prev"===e.type&&(t=s.firstDayOfMonth(s.addMonths(n,-1)),this.isInRange(t)&&this.viewState.notifyNextDate(t))},f.prototype.dateRange=function(e){void 0===e&&(e=this.selectedDate);var t=s.firstDayOfMonth(s.getDate(e)),e=s.firstDayInWeek(t,this.weekStart);return{start:e,end:s.addDays(e,42),text:this.intl.format(this.selectedDateFormat,t),shortText:this.intl.format(this.selectedShortDateFormat,t)}},f.prototype.dragRanges=function(e){return this.slotService.dragRanges(e,this.dragging.offset)},f.prototype.dragHintSize=function(e,t){return{width:m.toPx(t.rect.left-e.rect.left+t.rect.width),height:m.toPx(e.height)}},f.prototype.slotByPosition=function(e,t){return this.slotService.slotByPosition(e,t)},f.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)],f.prototype,"monthDaySlotTemplate",void 0),r.__decorate([i.Component({selector:"month-view",providers:[p.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" #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 >\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,d.ViewStateService,o.IntlService,p.MonthSlotService,i.NgZone,i.ElementRef,i.Renderer2,y.PDFService,n.LocalizationService])],f));function f(e,t,n,r,i,o,a,s,c){c=l.call(this,e,t,n,r,i,a,o,s,c)||this;return c.resizeHintFormat={skeleton:"Md"},c.weeks=[],c}t.MonthViewRendererComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o=n(0),a=n(1),s=n(2),c=n(11),l=n(38),d=n(10),u=n(7),p=n(19),h=n(18),m=n(3),u=(i=l.ConfigurationViewBase,o.__extends(g,i),r=g,Object.defineProperty(g.prototype,"title",{get:function(){return this.localization.get("monthViewTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"viewEventHeight",{get:function(){return m.isPresent(this.eventHeight)?this.eventHeight:this.schedulerOptions.eventHeight||h.DEFAULT_EVENT_HEIGHT},enumerable:!0,configurable:!0}),o.__decorate([a.Input(),o.__metadata("design:type",Number)],g.prototype,"eventHeight",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],g.prototype,"selectedDateFormat",void 0),o.__decorate([a.Input(),o.__metadata("design:type",String)],g.prototype,"selectedShortDateFormat",void 0),o.__decorate([a.ContentChild(p.MonthDaySlotTemplateDirective,{static:!1}),o.__metadata("design:type",p.MonthDaySlotTemplateDirective)],g.prototype,"monthDaySlotTemplate",void 0),r=o.__decorate([a.Component({changeDetection:a.ChangeDetectionStrategy.OnPush,selector:"kendo-scheduler-month-view",providers:[{provide:c.SchedulerView,useExisting:a.forwardRef(function(){return r})}],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 '}),o.__metadata("design:paramtypes",[s.LocalizationService,a.ChangeDetectorRef,d.ViewContextService,u.ViewStateService])],g));function g(e,t,n,r){r=i.call(this,e,t,n,r)||this;return r.selectedDateFormat="{0:Y}",r.selectedShortDateFormat="{0:y}",r.name="month",r}t.MonthViewComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,r=n(0),i=n(1),o=n(2),s=n(36),c=n(75),n=n(20),i=(a=c.BaseViewItem,r.__extends(l,a),l.prototype.reflow=function(){this.item.data[this.resourceIndex].hidden?this.toggle(!1):a.prototype.reflow.call(this)},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,n.FocusService,i.ElementRef,i.Renderer2,String])],l));function l(e,t,n,r,i,o){i=a.call(this,e,t,n,r,i,o)||this;return i.localeId=o,i}t.MonthViewItemComponent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(144),a=n(143),s=n(142),c=n(139),n=n(34),c=r.__decorate([i.NgModule({imports:[n.ViewsSharedModule],exports:[a.MonthViewComponent],declarations:[a.MonthViewComponent,s.MonthViewRendererComponent,o.MonthViewItemComponent,c.MonthSlotDirective]})],l);function l(){}t.MonthViewModule=c},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=t(0),n=t(37),i=t(3),t=function(n){return function(t){return function(e){return n(e,t)}}},a=t(n.orderBy),s=t(n.groupBy);function c(t){var n,r,i;return o.__generator(this,function(e){switch(e.label){case 0:n=0,e.label=1;case 1:return n<t.length?[4,{type:"group",dataItem:r=t[n],rowSpan:r.items.length}]:[3,7];case 2:e.sent(),i=1,e.label=3;case 3:return i<r.items.length?[4,{type:"event",dataItem:r.items[i]}]:[3,6];case 4:e.sent(),e.label=5;case 5:return i++,[3,3];case 6:return n++,[3,1];case 7:return[2]}})}r.compose=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}},r.processEvents=function(e,t){return r.compose(s([{field:"startDate"}]),a([{field:"start",dir:"asc"},{field:"end",dir:"asc"}]))};var l=(d.prototype[i.iterator]=function(){return{next:function(){return{done:!0,value:null}}}},d.prototype.toString=function(){return"Empty Iterator"},d);function d(){}r.EmptyIterator=l;u.empty=function(){return new l},u.prototype[i.iterator]=function(){return this.createIterator(this.events)},u.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}}while(r++,t)},u.prototype.toString=function(){return this.events.toString()},i=u;function u(e,t,n){this.start=e,this.end=t,this.events=n,this.createIterator=r.compose(c,r.processEvents(this.start,this.end))}r.TaskCollection=i},function(e,b,t){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var l=t(0),k=t(146),r=t(4),D=t(5),p=t(3);b.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:[p.getField(o,n.textField)]})}for(var a=1;a<e.length;a++){for(var s=e[a],c=s.data,l=[],d=0;d<t.length;d++)for(var u=t[d],i=0;i<c.length;i++)o=c[i],l.push({resources:u.resources.concat(p.getField(o,s.textField))});t=l}return t};function c(e){var t=e.start,n=e.end,n=(e=void 0!==(e=e.isAllDay)&&e)?D.getUTCDate(n):n,t=Math.ceil((n-+D.getUTCDate(t))/r.MS_PER_DAY);return e?t+1:t}function i(n){var r=n.length;return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r===e.length?n.apply(null,e):i(n.bind.apply(n,[null].concat(e)))}}function d(s,c){return function(e,t,n,r){return e.concat(k.compose(u,(o=e.length?e[e.length-1].end:c,a=s.end,function(e){return l.__assign({},e,{start:D.getUTCDate(o),end:e.tail&&!e.isAllDay?a:D.addUTCDays(o,1),startDate:D.getUTCDate(o)})}),(i=n===r.length-1,function(e){return i&&(e.tail=!0),e}))(s));var i,o,a}}var u=function(e){return e.tail||(e.mid=!0),e};b.splitTasks=i(function(t,n,e){for(var r,i,o=[],a=0;a<e.length;a++){var s=l.__assign({},e[a]);s.startDate=D.getUTCDate(s.start),s.start>=t&&s.start<=n&&o.push(s),1<c(s)&&(s.end=D.addUTCDays(s.startDate,1),s.head=!0,o.push.apply(o,(r=l.__assign({},e[a]),i=s.end,s=void 0,s=c(r)-1,Array.from(new Array(s).keys()).reduce(d(r,i),[]).filter(function(e){return D.getUTCDate(e.end)<=n&&e.start>=t}))))}return o}),b.groupEvents=function(e,t){for(var n,r,i,o,a=t.taskResources,s=t.resourceGroups,c=t.spans,l=t.allResources,t=t.dateRange,h=s||[{}],d=D.toUTCDate(t.start),u=D.toUTCDate(t.end),p=0;p<e.length;p++){var m=e[p],g=m.event;if(D.intersects(m.start.toUTCDate(),m.end.toUTCDate(),d,u)){var y=D.eventResources(g,{taskResources:a,hasGroups:s&&0<s.length,spans:c,allResources:l});if(y.length&&0<=y[0].leafIdx)for(var f=0;f<y.length;f++){var v=y[f],_=(n=m,r=v.leafIdx,_=v.resources,i=v.color,o=void 0,{event:o=n.event,start:n.start.toUTCDate(),end:n.end.toUTCDate(),title:o.title,isAllDay:o.isAllDay,color:i,resourceIdx:r,resources:_});(h[v.leafIdx].tasks=h[v.leafIdx].tasks||[]).push(_)}}}return s?function(e,t){var r=h.filter(function(e){return e.tasks&&e.tasks.length});if(!r.length)return[];for(var n=r[0].resources.map(function(e){return{value:e,span:0,groupIdx:0}}),i=D.toUTCDate(t.start),o=D.toUTCDate(t.end),a=0;a<r.length;a++){var s=r[a];s.tasks=b.splitTasks(i,o,s.tasks);var c=s.tasks.length;s.tasks=new k.TaskCollection(i,o,s.tasks);for(var l=!1,d=0;d<e.length;d++){var u,p=n[d];p.value!==s.resources[d]||l?(p.value=s.resources[d],(u=r[p.groupIdx]).spans=u.spans||[],u.spans[d]=p.span,p.span=c,p.groupIdx=a,l=!0):p.span+=c}}return n.forEach(function(e,t){var n=r[e.groupIdx];n.spans=n.spans||[],n.spans[t]=e.span}),r}(a,t):(h[0].tasks=new k.TaskCollection(d,u,b.splitTasks(d,u,h[0].tasks||[])),h)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),l=n(1),i=n(8),o=n(6),a=n(4),c=n(9),s=n(17),d=n(10),u=n(7),p=n(14),h=n(147),m=n(5),g=n(15),n=n(2),n=(Object.defineProperty(y.prototype,"eventTemplateRef",{get:function(){return this.eventTemplate||(this.schedulerEventTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"agendaTimeTemplateRef",{get:function(){return this.agendaTimeTemplate||(this.schedulerAgendaTimeTemplate||{}).templateRef},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"agendaDateTemplateRef",{get:function(){return this.agendaDateTemplate||(this.schedulerAgendaDateTemplate||{}).templateRef},enumerable:!0,configurable:!0}),y.prototype.ngOnInit=function(){var n=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(s.map(function(e){var t=e[0],e=e[1];return n.items=t,n.range=e,n.createEventGroups()})).subscribe(function(e){n.tasks.next(e)})),this.subs.add(this.viewContext.optionsChange.subscribe(this.optionsChange.bind(this))),this.subs.add(c.combineLatest(this.tasks,this.localization.changes).pipe(s.switchMap(function(){return n.zone.onStable.pipe(s.take(1))})).subscribe(this.updateContentHeight)),this.subs.add(this.pdfService.createElement.subscribe(this.createPDFElement.bind(this)))},y.prototype.ngOnChanges=function(e){i.anyChanged(["selectedDateFormat","selectedShortDateFormat","numberOfDays"],e)&&this.viewState.notifyDateRange(this.dateRange(this.selectedDate))},y.prototype.ngAfterViewInit=function(){var e,t=this;this.element&&(e=this.content.nativeElement,this.zone.runOutsideAngular(function(){t.subs.add(c.merge(c.fromEvent(e,"click"),c.fromEvent(e,"contextmenu"),c.fromEvent(e,"dblclick")).subscribe(function(e){return t.onClick(e)})),t.subs.add(c.fromEvent(e,"keydown").subscribe(function(e){return t.onKeydown(e)}))}))},y.prototype.onClick=function(e){var t,n,r,i=this.targetTask(e.target);i&&(t=i.task,n=i.eventTarget,i="dblclick"===(r=e.type),"click"===r&&p.closestInScope(e.target,function(e){return p.hasClasses(e,"k-event-delete")},n)?this.viewState.emitEvent("remove",{event:t.event,dataItem:t.event.dataItem}):this.viewState.emitEvent(i?"eventDblClick":"eventClick",{type:r,event:t.event,originalEvent:e}))},y.prototype.onKeydown=function(e){var t=this.targetTask(e.target);t&&(t=t.task,this.viewState.emitEvent("eventKeydown",{event:t.event,dataItem:t.event.dataItem,originalEvent:e}))},y.prototype.targetTask=function(e){e=p.closestInScope(e,function(e){return e.hasAttribute("data-task-index")},this.element.nativeElement);if(e)return{eventTarget:e,task:this.elementTask(e)}},y.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,n=p.hasScrollbar(n,"vertical")?p.scrollbarWidth():0;this.renderer.setStyle(a,s?"padding-left":"padding-right",n+"px"),this.renderer.setStyle(a,s?"padding-right":"padding-left","0px"),this.viewState.notifyLayoutEnd()},y.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},y.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},y.prototype.onSelectDate=function(e){this.selectedDate=e,this.viewState.notifyDateRange(this.dateRange())},y.prototype.onAction=function(e){var t,n=a.getDate(this.selectedDate);"next"===e.type&&(t=a.getDate(a.addDays(n,this.numberOfDays)),this.isInRange(t)&&this.viewState.notifyNextDate(t)),"prev"===e.type&&(t=a.getDate(a.addDays(n,-this.numberOfDays)),this.isInRange(t)&&this.viewState.notifyNextDate(t))},y.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})},y.prototype.dateRange=function(e){void 0===e&&(e=this.selectedDate);var t=a.getDate(e),n=a.getDate(a.addDays(t,this.numberOfDays)),e=a.getDate(a.addDays(t,this.numberOfDays-1));return{start:t,end:n,text:this.intl.format(this.selectedDateFormat,t,e),shortText:this.intl.format(this.selectedShortDateFormat,t,e)}},y.prototype.groupResources=function(){var n=this.resources||[],r=(this.group||{}).resources,i=this.groupedResources=[];if(r&&r.length)for(var e=0;e<r.length;e++)!function(e){var t=r[e],e=n.find(function(e){return e.name===t});e&&i.push(e)}(e);this.spans=this.resourceSpans()},y.prototype.resourceSpans=function(){for(var e=[1],t=this.groupedResources,n=1,r=t.length-1;0<r;r--)n*=(t[r].data||[]).length||1,e.unshift(n);return e},Object.defineProperty(y.prototype,"taskResources",{get:function(){return this.groupedResources.length?this.groupedResources:this.resources&&this.resources.length?[this.resources[0]]:[{}]},enumerable:!0,configurable:!0}),y.prototype.isInRange=function(e){e=this.dateRange(e);return(!this.min||this.min<e.end)&&(!this.max||e.start<=this.max)},y.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})},y.prototype.elementTask=function(e){var t=parseInt(e.getAttribute("data-task-index"),10),e=parseInt(e.getAttribute("data-group-index"),10);return this.groups[e].tasks.itemAt(t)},y.prototype.execute=function(e){var t;"slotByPosition"===e.name?(t=this.slotByPosition(e.args),e.result(t)):"eventFromElement"!==e.name||(t=this.elementTask(e.args.element))&&e.result(t.event)},y.prototype.slotByPosition=function(e){var t=e.x,n=e.y,r=this.content.nativeElement.querySelector("table"),e=m.elementOffset(r);if(e.top<=n&&n<=e.top+e.height){var i=r.rows;if(i.length){r=m.elementOffset(i[0].cells[i[0].cells.length-1]);if(r.left<=t&&t<=r.left+r.width)for(var o=0;o<i.length;o++){var a=i[o],s=m.elementOffset(a);if(s.top<=n&&n<=s.top+s.height){var c=a.querySelector("[data-task-index]"),s=this.elementTask(c),a=s.event;return{element:new l.ElementRef(c),start:a.start,end:a.end,event:a,resources:s.resources,isAllDay:s.isAllDay}}}}}},r.__decorate([l.Input(),r.__metadata("design:type",l.TemplateRef)],y.prototype,"eventTemplate",void 0),r.__decorate([l.Input(),r.__metadata("design:type",Function)],y.prototype,"slotClass",void 0),r.__decorate([l.Input(),r.__metadata("design:type",Function)],y.prototype,"eventClass",void 0),r.__decorate([l.Input(),r.__metadata("design:type",Function)],y.prototype,"eventStyles",void 0),r.__decorate([l.Input(),r.__metadata("design:type",l.TemplateRef)],y.prototype,"agendaTimeTemplate",void 0),r.__decorate([l.Input(),r.__metadata("design:type",l.TemplateRef)],y.prototype,"agendaDateTemplate",void 0),r.__decorate([l.Input(),r.__metadata("design:type",String)],y.prototype,"selectedDateFormat",void 0),r.__decorate([l.Input(),r.__metadata("design:type",String)],y.prototype,"selectedShortDateFormat",void 0),r.__decorate([l.Input(),r.__metadata("design:type",Number)],y.prototype,"numberOfDays",void 0),r.__decorate([l.ViewChild("headerWrap",{read:l.ElementRef,static:!0}),r.__metadata("design:type",l.ElementRef)],y.prototype,"headerWrap",void 0),r.__decorate([l.ViewChild("content",{read:l.ElementRef,static:!0}),r.__metadata("design:type",l.ElementRef)],y.prototype,"content",void 0),r.__decorate([l.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,o.IntlService,l.Renderer2,l.ElementRef,l.NgZone,g.PDFService,n.LocalizationService])],y));function y(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}t.AgendaViewInternalComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(6),a=n(2),s=n(4),c=n(5),a=(l.prototype.extractDataItem=function(e){return"group"===e.type?e.dataItem.items[0]:e.dataItem},l.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))},l.prototype.trackByFn=function(e,t){return e},l.prototype.cellClasses=function(e){var t=this.extractDataItem(e),e=[];return this.slotClass&&(e=e.concat(c.convertNgClassBindings(this.slotClass({start:t.start,end:t.end,resources:t.resources,event:t.event})))),e=this.eventClass?e.concat(c.convertNgClassBindings(this.eventClass({event:t.event,resources:t.resources}))):e},l.prototype.getEventStyles=function(e){if(this.eventStyles){e=this.extractDataItem(e);return this.eventStyles({event:e.event,resources:e.resources})}},r.__decorate([i.HostBinding("class.k-scheduler-content"),r.__metadata("design:type",Boolean)],l.prototype,"classes",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],l.prototype,"tasks",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],l.prototype,"eventTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],l.prototype,"slotClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],l.prototype,"eventClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Function)],l.prototype,"eventStyles",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],l.prototype,"agendaTimeTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],l.prototype,"agendaDateTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],l.prototype,"editable",void 0),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])],l));function l(e,t){this.intlService=e,this.localization=t,this.classes=!0}t.AgendaListComponent=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),o=(Object.defineProperty(c.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(c.prototype,"eventColor",{get:function(){return this.item.color},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"deleteMessage",{get:function(){return this.localization.get("deleteTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isRecurrence",{get:function(){return s.isRecurrence(this.item)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"isRecurrenceException",{get:function(){return s.isRecurrenceException(this.item)},enumerable:!0,configurable:!0}),Object.defineProperty(c.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)],c.prototype,"item",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],c.prototype,"color",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],c.prototype,"eventTemplate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],c.prototype,"editable",void 0),r.__decorate([i.HostBinding("attr.aria-label"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],c.prototype,"eventTitle",null),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])],c));function c(e,t){this.localization=e,this.localeId=t}t.AgendaTaskItemComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),n=n(2),n=(Object.defineProperty(o.prototype,"dateMessage",{get:function(){return this.localization.get("dateHeader")},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"timeMessage",{get:function(){return this.localization.get("timeHeader")},enumerable:!0,configurable:!0}),Object.defineProperty(o.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)],o.prototype,"classes",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],o.prototype,"resources",void 0),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",[n.LocalizationService])],o));function o(e){this.localization=e,this.classes=!0}t.AgendaHeaderComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(4),i=(Object.defineProperty(a.prototype,"rowSpan",{get:function(){return this.item.rowSpan},enumerable:!0,configurable:!0}),Object.defineProperty(a.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)],a.prototype,"classes",void 0),r.__decorate([i.HostBinding("attr.rowspan"),r.__metadata("design:type",Number),r.__metadata("design:paramtypes",[])],a.prototype,"rowSpan",null),r.__decorate([i.Input("kendoSchedulerAgendaHeaderItem"),r.__metadata("design:type",Object)],a.prototype,"item",void 0),r.__decorate([i.Input(),r.__metadata("design:type",i.TemplateRef)],a.prototype,"agendaDateTemplate",void 0),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 '})],a));function a(){this.classes=!0}t.AgendaHeaderItemComponent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(23),o=n(1),a=n(6),s=n(152),c=n(151),l=n(150),d=n(149),u=n(39),p=n(148),n=n(21),p=[c.AgendaHeaderComponent,s.AgendaHeaderItemComponent,d.AgendaListComponent,l.AgendaTaskItemComponent,u.AgendaViewComponent,p.AgendaViewInternalComponent],p=r.__decorate([o.NgModule({imports:[i.CommonModule,a.IntlModule,n.SharedModule],exports:[u.AgendaViewComponent],declarations:[p]})],h);function h(){}t.AgendaViewModule=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),n=n(24),n=(Object.defineProperty(o.prototype,"ctx",{get:function(){return this.service.context},enumerable:!0,configurable:!0}),o.prototype.ngOnDestroy=function(){this.detachDomEvents&&this.detachDomEvents()},o.prototype.select=function(e){this.ctx.selectedView!==e&&this.service.navigate({type:"view-change",view:e})},o.prototype.onChange=function(t){var e=this.ctx.views.find(function(e){return e.name===t.target.value});e&&this.select(e)},o.prototype.isSelected=function(e){return this.ctx.selectedView===e},r.__decorate([i.HostBinding("class.k-scheduler-views-wrapper"),r.__metadata("design:type",Boolean)],o.prototype,"hostClasses",void 0),r.__decorate([i.Component({selector:"[kendoSchedulerToolbarViewSelector]",template:'\n <select *ngIf="ctx.views?.length > 1"\n (change)="onChange($event)"\n class="k-views-dropdown k-dropdown">\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 *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",[n.ToolbarService])],o));function o(e){this.service=e,this.hostClasses=!0}t.ToolbarViewSelectorComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(9),a=n(11),s=n(55),n=n(24),n=(c.prototype.ngOnInit=function(){var t=this;this.subs.add(this.selectedDate.subscribe(function(e){return t.templateContext.selectedDate=e})),this.subs.add(this.dateRange.subscribe(function(e){return t.templateContext.dateRange=e}))},c.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})},c.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},r.__decorate([i.HostBinding("class.k-scheduler-toolbar"),i.HostBinding("class.k-toolbar"),r.__metadata("design:type",Boolean)],c.prototype,"hostClasses",void 0),r.__decorate([i.Input(),r.__metadata("design:type",a.SchedulerView)],c.prototype,"selectedView",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],c.prototype,"views",void 0),r.__decorate([i.Input(),r.__metadata("design:type",o.Observable)],c.prototype,"dateRange",void 0),r.__decorate([i.Input(),r.__metadata("design:type",o.Observable)],c.prototype,"selectedDate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",s.ToolbarTemplateDirective)],c.prototype,"template",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],c.prototype,"navigate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],c.prototype,"min",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],c.prototype,"max",void 0),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",[n.ToolbarService])],c));function c(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)}))}t.ToolbarComponent=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),o=n(78),a=n(2),s=n(24),n=n(25),i=(Object.defineProperty(c.prototype,"calendar",{set:function(e){e&&e.focus()},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"todayText",{get:function(){return this.localization.get("today")},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"calendarTodayText",{get:function(){return this.localization.get("calendarToday")},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"nextText",{get:function(){return this.localization.get("nextTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"previousText",{get:function(){return this.localization.get("previousTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"ctx",{get:function(){return this.toolbarService.context},enumerable:!0,configurable:!0}),c.prototype.onBlur=function(){this.closePopup()},c.prototype.ngOnDestroy=function(){this.subs.unsubscribe(),this.closePopup()},c.prototype.toggleSelectedDate=function(e,t){return this.popupRef?this.closePopup():(t={anchor:e,content:t},this.localization.rtl&&(t.popupClass="k-rtl"),this.popupRef=this.popupService.open(t)),!1},c.prototype.selectDate=function(e){this.closePopup(),this.toolbarService.navigate({type:"select-date",date:e})},c.prototype.prevClick=function(){return this.toolbarService.navigate({type:"prev"}),!1},c.prototype.nextClick=function(){return this.toolbarService.navigate({type:"next"}),!1},c.prototype.todayClick=function(){return this.toolbarService.navigate({type:"today"}),!1},c.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)},r.__decorate([i.ViewChild("calendar",{static:!1}),r.__metadata("design:type",n.CalendarComponent),r.__metadata("design:paramtypes",[n.CalendarComponent])],c.prototype,"calendar",null),r.__decorate([i.HostBinding("style.display"),r.__metadata("design:type",String)],c.prototype,"inlineDisplayStyle",void 0),r.__decorate([i.HostBinding("style.flex-flow"),r.__metadata("design:type",String)],c.prototype,"inlineFlexFlowStyle",void 0),r.__decorate([i.HostBinding("style.gap"),r.__metadata("design:type",String)],c.prototype,"inlineGapStyle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],c.prototype,"min",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Date)],c.prototype,"max",void 0),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])],c));function c(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()})}t.ToolbarNavigationComponent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(23),o=n(1),a=n(22),s=n(25),c=n(78),l=n(8),d=n(156),u=n(155),p=n(55),n=n(154);t.publicDirectives=[d.ToolbarNavigationComponent,p.ToolbarTemplateDirective,n.ToolbarViewSelectorComponent];u=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)})],h);function h(){}t.ToolbarModule=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o=n(0),a=n(1),s=n(2),n=n(79),s=(r=n.Messages,o.__extends(c,r),i=c,i=o.__decorate([a.Directive({providers:[{provide:n.Messages,useExisting:a.forwardRef(function(){return i})}],selector:"[kendoSchedulerLocalizedMessages]"}),o.__metadata("design:paramtypes",[s.LocalizationService])],c));function c(e){var t=r.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o=n(0),a=n(1),s=n(2),n=n(79),s=(r=n.Messages,o.__extends(c,r),i=c,Object.defineProperty(c.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=o.__decorate([a.Component({providers:[{provide:n.Messages,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-scheduler-messages",template:""}),o.__metadata("design:paramtypes",[s.LocalizationService])],c));function c(e){var t=r.call(this)||this;return t.service=e,t}t.SchedulerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),s=n(86),o=n(26),c=n(80),l=n(5),d=n(4),a=n(42),u=n(3),n=n(6),a=(Object.defineProperty(p.prototype,"data",{set:function(e){this.originalData=e||[],this.localDataChangesService&&(this.localDataChangesService.data=e),this.scheduler.events=this.process()},enumerable:!0,configurable:!0}),p.prototype.ngOnInit=function(){var t=this;this.subscription=this.scheduler.dateChange.subscribe(function(e){return t.onDateChange(e)})},p.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe(),this.dataChangedSubscription&&this.dataChangedSubscription.unsubscribe()},p.prototype.rebind=function(){this.data=this.originalData,this.changeDetector.markForCheck()},p.prototype.process=function(){var n=this;if(!this.dateRange)return[];var r=[],i=this.scheduler.modelFields;return this.originalData.forEach(function(e){var t;u.getField(e,i.recurrenceRule)?(t=function(n,r,e,t,i){var o=c.parseRule({recurrenceRule:u.getField(n,r.recurrenceRule),weekStart:i});o.start||(i=u.getField(n,r.start),o.start=d.ZonedDate.fromLocalDate(i,t)),o.end||(a=u.getField(n,r.end),o.end=d.ZonedDate.fromLocalDate(a,t));var a=u.getField(n,r.recurrenceExceptions);a&&(o.exceptionDates=a.map(function(e){return d.ZonedDate.fromLocalDate(e,t)}));a=l.toUTCDateTime(e.start),e=l.toUTCDateTime(e.end),e=c.expand(o,{rangeStart:d.ZonedDate.fromUTCDate(a,t),rangeEnd:d.ZonedDate.fromUTCDate(e,t)});if(!e.events.length)return[];e=e.events.map(function(e){var t=u.clone(n);return u.setField(t,r.id,s.OCCURRENCE_ID),u.setField(t,r.recurrenceId,u.getField(n,r.id)),u.setField(t,r.start,e.start.toLocalDate()),u.setField(t,r.end,e.end.toLocalDate()),t});return[n].concat(e)}(e,i,n.dateRange,n.scheduler.timezone,n.scheduler.weekStart),r.push.apply(r,t)):r.push(e)}),r},p.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])],p.prototype,"data",null),r.__decorate([i.Directive({selector:"[kendoSchedulerBinding]"}),r.__metadata("design:paramtypes",[o.SchedulerComponent,i.ChangeDetectorRef,n.IntlService,a.LocalDataChangesService])],p));function p(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)))}t.DataBindingDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(23),o=n(1),a=n(6),s=n(8),c=n(160),l=n(159),d=n(158),u=n(26),p=n(157),h=n(39),m=n(153),g=n(145),y=n(134),f=n(126),v=n(54),_=n(53),b=n(52),k=n(51),D=n(50),T=n(49),S=n(48),E=n(47),w=n(46),C=n(45),I=n(44),x=n(125),R=n(119),O=n(85),M=n(116),P=n(16),F=n(22),H=n(25),j=n(115),z=n(27),W=n(114),A=n(62),V=n(112),B=n(111),N=n(110),L=n(109),U=n(108),G=n(107),q=n(106),Z=n(61),K=n(60),Y=n(66),$=n(64),X=n(105),Q=n(43),J=n(81),ee=n(21),n=n(104),I=[v.AgendaDateTemplateDirective,_.AgendaTimeTemplateDirective,b.AllDayEventTemplateDirective,k.AllDaySlotTemplateDirective,D.DateHeaderTemplateDirective,T.EventTemplateDirective,Q.EditDialogTemplateDirective,S.GroupHeaderTemplateDirective,E.MajorTimeHeaderTemplateDirective,w.MinorTimeHeaderTemplateDirective,C.MonthDaySlotTemplateDirective,I.TimeSlotTemplateDirective],I=[u.SchedulerComponent,f.SchedulerViewDirective,c.DataBindingDirective,n.ShortcutsDirective,R.ReactiveEditingDirective,W.SchedulerDateTimePickerComponent,A.RecurrenceEditorComponent,B.RecurrenceEndRuleEditorComponent,V.RecurrenceFrequencyEditorComponent,N.RecurrenceIntervalEditorComponent,L.RecurrenceMonthlyYearlyEditorComponent,U.RecurrenceWeekdayRuleEditorComponent,Z.EndRuleRadioButtonDirective,K.RepeatOnRadioButtonDirective,Y.MultipleResourceEditorComponent,$.SingleResourceEditorComponent,X.TimeZoneEditorComponent,M.EditDialogComponent,l.SchedulerCustomMessagesComponent,d.LocalizedMessagesDirective,G.RecurrenceEditorCustomMessagesComponent,q.RecurrenceEditorLocalizedMessagesDirective,J.LoadingComponent].concat(I),R=[h.AgendaViewComponent,g.MonthViewModule,y.MultiDayViewModule,R.ReactiveEditingDirective,x.TimelineViewModule,p.publicDirectives].concat(I),ee=[F.ButtonsModule,H.DateInputsModule,O.DialogModule,j.NumericTextBoxModule,j.TextBoxModule,z.DropDownsModule,P.ReactiveFormsModule,ee.SharedModule],a=r.__decorate([o.NgModule({imports:[i.CommonModule,p.ToolbarModule,m.AgendaViewModule,y.MultiDayViewModule,s.ResizeSensorModule,g.MonthViewModule,x.TimelineViewModule].concat(ee),declarations:I,exports:R,providers:[{provide:a.IntlService,useClass:a.CldrIntlService}]})],te);function te(){}t.SchedulerModule=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),n=n(29),n=(Object.defineProperty(o.prototype,"visible",{get:function(){return"none"!==this.element.nativeElement.style.display},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"enabled",{get:function(){return!this.element.nativeElement.disabled},enumerable:!0,configurable:!0}),o.prototype.ngOnDestroy=function(){this.focusService.unregister(this)},o.prototype.toggle=function(e){e!==this.active&&(this.renderer.setAttribute(this.element.nativeElement,"tabIndex",e?"0":"-1"),this.active=e)},o.prototype.canFocus=function(){return this.visible&&this.enabled},o.prototype.focus=function(){this.element.nativeElement.focus()},o.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)],o.prototype,"focusIndex",void 0),r.__decorate([i.Directive({selector:"[kendoSchedulerFocusIndex]"}),r.__metadata("design:paramtypes",[i.ElementRef,i.Renderer2,n.FocusService])],o));function o(e,t,n){this.element=e,this.renderer=t,this.focusService=n,this.focusIndex=0,this.toggle(!1),this.focusService.register(this)}t.FocusableDirective=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.CrudOperation||(t.CrudOperation={}))[t.Edit=0]="Edit",t[t.Remove=1]="Remove"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.EditMode||(t.EditMode={}))[t.Event=0]="Event",t[t.Occurrence=1]="Occurrence",t[t.Series=2]="Series"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SchedulerView=function(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(12).PreventableEvent,i.__extends(o,r),o);function o(e,t){var n=r.call(this)||this;return n.sender=e,Object.assign(n,t),n}t.AddEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(12).PreventableEvent,i.__extends(o,r),o);function o(e,t){var n=r.call(this)||this;return n.sender=e,Object.assign(n,t),n}t.EditEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(56).EditEventBase,i.__extends(o,r),o);function o(){return null!==r&&r.apply(this,arguments)||this}t.SaveEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),i=(r=n(56).EditEventBase,i.__extends(o,r),o);function o(){return null!==r&&r.apply(this,arguments)||this}t.CancelEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateEvent=function(e,t){this.sender=e,Object.assign(this,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),i=n(96),o=n(95),a=n(94),s=n(98),c=n(97),l=n(93),d=n(92),u=n(91),p=n(90),n=n(99);t.VIEW_EVENT_MAP={slotClick:n.SlotClickEvent,slotDblClick:n.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,i=n(0),i=(r=n(25).PreventableEvent,i.__extends(o,r),o);function o(e,t){var n=r.call(this)||this;return n.sender=e,n.action=t,n}t.NavigateEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateChangeEvent=function(e,t,n){this.sender=e,this.selectedDate=t,this.dateRange=n}},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:1636383004,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){e.exports=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(26);t.SchedulerComponent=i.SchedulerComponent;i=n(161);t.SchedulerModule=i.SchedulerModule;i=n(10);t.ViewContextService=i.ViewContextService;i=n(7);t.ViewStateService=i.ViewStateService;i=n(24);t.ToolbarService=i.ToolbarService;i=n(39);t.AgendaViewComponent=i.AgendaViewComponent;i=n(33);t.DayViewComponent=i.DayViewComponent;i=n(32);t.WeekViewComponent=i.WeekViewComponent;i=n(62);t.RecurrenceEditorComponent=i.RecurrenceEditorComponent;i=n(103);t.BaseEditService=i.BaseEditService;i=n(102);t.PDFModule=i.PDFModule;i=n(58);t.PDFComponent=i.PDFComponent;i=n(15);t.PDFService=i.PDFService;i=n(57);t.PDFCommandDirective=i.PDFCommandDirective;i=n(82);t.PDFExportEvent=i.PDFExportEvent;i=n(20);t.FocusableDirective=i.FocusableDirective;i=n(21);t.SharedModule=i.SharedModule,r.__exportStar(n(11),t),r.__exportStar(n(30),t),function(e){for(var t in e)o(t,e[t])}(t)}],i={},r.m=n,r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=176)}}});
|