@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
3 lines (2 loc) • 40 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("kendo.core.js"),require("kendo.toolbar.js")):"function"==typeof define&&define.amd?define(["exports","kendo.core.min","kendo.toolbar"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).kendo=t.kendo||{},t.kendo._globals=t.kendo._globals||{},t.kendo._globals.SchedulerView={}))}(this,(function(t){kendo.ui.scheduler={},function(t){var e=window.kendo,n=e.ui,o=e.date.getDate,i=n.Widget,s=e._outerHeight,r=e.keys,l="k-event-ongoing",a=Math,h=" ";function u(t,e){var n=[];return function t(o,i){if(i=i[e])for(var s=n[o]=n[o]||[],r=0;r<i.length;r++)s.push(i[r]),t(o+1,i[r])}(0,t),n}function d(t,n){return t.length?'<table role="presentation" class="'+e.trim("k-scheduler-table "+(n||""))+'"><tr>'+t.join("</tr><tr>")+"</tr></table>":""}var c,f=e.Class.extend({init:function(t,e,n){this._index=t,this._timeSlotCollections=[],this._daySlotCollections=[],this._isRtl=e,this._enforceAllDaySlot=n},addTimeSlotCollection:function(t,e){return this._addCollection(t,e,this._timeSlotCollections)},addDaySlotCollection:function(t,e){return this._addCollection(t,e,this._daySlotCollections)},_addCollection:function(t,e,n){var o=new _(t,e,this._index,n.length);return n.push(o),o},timeSlotCollectionCount:function(){return this._timeSlotCollections.length},daySlotCollectionCount:function(){return this._daySlotCollections.length},_refreshSlotCollections:function(){for(var t=[this._timeSlotCollections||[],this._daySlotCollections||[]],e=0;e<t.length;e++)for(var n=t[e],o=0;o<n.length;o++){n[o].refresh()}},daySlotByPosition:function(t,e,n){return this._slotByPosition(t,e,this._daySlotCollections,n)},timeSlotByPosition:function(t,e,n){return this._slotByPosition(t,e,this._timeSlotCollections,n)},_slotByPosition:function(t,e,n,o){for(var i=0;i<n.length;i++)for(var s=n[i],r=0;r<s.count();r++){var l,a=s.at(r),h=a.offsetWidth,u=a.offsetHeight,d=a.offsetLeft+h,c=a.offsetTop+u;if(o||(l=s.at(r+1)),l&&(l.offsetLeft!=a.offsetLeft?d=this._isRtl?a.offsetLeft+(a.offsetLeft-l.offsetLeft):l.offsetLeft:c=l.offsetTop),t>=a.offsetLeft&&t<d&&e>=a.offsetTop&&e<c)return a}},refresh:function(){var t;for(t=0;t<this._daySlotCollections.length;t++)this._daySlotCollections[t].refresh();for(t=0;t<this._timeSlotCollections.length;t++)this._timeSlotCollections[t].refresh()},timeSlotRanges:function(t,n){var o,i,s=this._timeSlotCollections,r=this._startSlot(t,s);!r.inRange&&t>=r.slot.end&&(o=r.slot.collectionIndex+1,r=null);var l=r;if(t<n&&(l=this._endSlot(n,s)),l&&!l.inRange&&n<=l.slot.start&&(i=l.slot.collectionIndex,n===l.slot.start&&(r&&i>r.slot.collectionIndex||i>o)&&(i-=1),l=null),null===r&&null===l){if(n-t<e.date.MS_PER_DAY)return[];r={inRange:!0,slot:s[o].first()},l={inRange:!0,slot:s[i].last()}}if(null===r){if(l.slot.end<=t)return[];r={inRange:!0,slot:(s[o]||s[l.slot.collectionIndex]).first()}}if(null===l){if(r.slot.start>=n)return[];l={inRange:!0,slot:(s[i]||s[r.slot.collectionIndex]).last()}}return this._continuousRange(v,s,r,l)},daySlotRanges:function(t,n,o){var i=this._daySlotCollections,s=this._startSlot(t,i,o);!s.inRange&&t>=s.slot.end&&(s=null);var r=s;if(t<n&&(r=this._endSlot(n,i,o)),r&&!r.inRange&&n<=r.slot.start&&(r=null),null===s&&null===r)return[];if(null===s){if(r.slot.end<=t)return[];do{t+=e.date.MS_PER_DAY,s=this._startSlot(t,i,o)}while(!s.inRange&&t>=s.slot.end)}if(null===r){if(s.slot.start>=n)return[];do{n-=e.date.MS_PER_DAY,r=this._endSlot(n,i,o)}while(!r.inRange&&n<=r.slot.start)}return this._continuousRange(p,i,s,r)},_continuousRange:function(t,e,n,o){for(var i=n.slot,s=o.slot,r=i.collectionIndex,l=s.collectionIndex,a=[],h=r;h<=l;h++){var u=e[h],d=u.first(),c=u.last(),f=!1,g=!1;h==r&&(g=!n.inRange),h==l&&(f=!o.inRange),d.start<i.start&&(d=i),c.start>s.start&&(c=s),r<l&&(h==r?f=!0:h==l?g=!0:f=g=!0),a.push(new t({start:d,end:c,collection:u,head:f,tail:g}))}return a},slotRanges:function(t,n){var o=t._startTime||e.date.toUtcTime(t.start),i=t._endTime||e.date.toUtcTime(t.end);return void 0===n&&(n=this._enforceAllDaySlot?t.isMultiDay():t.isAllDay),n?this.daySlotRanges(o,i,t.isAllDay):this.timeSlotRanges(o,i)},ranges:function(t,n,o,i){return"number"!=typeof t&&(t=e.date.toUtcTime(t)),"number"!=typeof n&&(n=e.date.toUtcTime(n)),o?this.daySlotRanges(t,n,i):this.timeSlotRanges(t,n)},_startCollection:function(t,e){for(var n=0;n<e.length;n++){var o=e[n];if(o.startInRange(t))return o}return null},_endCollection:function(t,e,n){for(var o=0;o<e.length;o++){var i=e[o];if(i.endInRange(t,n))return i}return null},_getCollections:function(t){return t?this._daySlotCollections:this._timeSlotCollections},continuousSlot:function(t,e){var n=e?-1:1,o=this._getCollections(t.isDaySlot)[t.collectionIndex+n];return o?o[e?"last":"first"]():void 0},firstSlot:function(){return this._getCollections(this.daySlotCollectionCount())[0].first()},lastSlot:function(){var t=this._getCollections(this.daySlotCollectionCount());return t[t.length-1].last()},upSlot:function(t,e,n){var o=this;return this.timeSlotCollectionCount()||(e=!0),this._verticalSlot(t,-1,(function(t,n,i){if(!e&&!t&&0===i&&o.daySlotCollectionCount())return o._daySlotCollections[0].at(n)}),n)},downSlot:function(t,e,n){var o=this;return this.timeSlotCollectionCount()||(e=!0),this._verticalSlot(t,1,(function(t,n,i){if(!e&&t&&o.timeSlotCollectionCount())return o._timeSlotCollections[i].at(0)}),n)},leftSlot:function(t,e){return this._horizontalSlot(t,-1,e)},rightSlot:function(t,e){return this._horizontalSlot(t,1,e)},_horizontalSlot:function(t,e,n){var o=t.index,i=t.isDaySlot,s=t.collectionIndex,r=this._getCollections(i);(i=!n&&i)?o+=e:s+=e;var l=r[s];return l?l.at(o):void 0},_verticalSlot:function(t,e,n,o){var i=t.index,s=t.isDaySlot,r=t.collectionIndex,l=this._getCollections(s);if(t=n(s,r,i))return t;(s=!o&&s)?r+=e:i+=e;var a=l[r];return a?a.at(i):void 0},_collection:function(t,e){return(e?this._daySlotCollections:this._timeSlotCollections)[t]},_startSlot:function(t,e,n){var o=this._startCollection(t,e),i=!0,s=0;if(!o){for(o=e[s];s<e.length-1&&o._start<t;)o=e[++s];i=!1}var r=o.slotByStartDate(t,n);return r||(r=o.first(),i=!1),{slot:r,inRange:i}},_endSlot:function(t,e,n){var o=this._endCollection(t,e,n),i=!0,s=e.length-1;if(!o){for(o=e[s];s>0&&o._start>t;)o=e[--s];i=!1}var r=o.slotByEndDate(t,n);return r||(r=t<=o.first().start?o.first():o.last(),i=!1),{slot:r,inRange:i}},getSlotCollection:function(t,e){return this[e?"getDaySlotCollection":"getTimeSlotCollection"](t)},getTimeSlotCollection:function(t){return this._timeSlotCollections[t]},getDaySlotCollection:function(t){return this._daySlotCollections[t]}}),g=e.Class.extend({init:function(e){t.extend(this,e)},innerHeight:function(){for(var t=this.collection,e=this.start.index,n=this.end.index,o=0,i=e;i<=n;i++)o+=t.at(i).offsetHeight;return o},events:function(){return this.collection.events()},addEvent:function(t){this.events().push(t)},startSlot:function(){return this.start.offsetLeft>this.end.offsetLeft?this.end:this.start},endSlot:function(){return this.start.offsetLeft>this.end.offsetLeft?this.start:this.end}}),v=g.extend({innerHeight:function(){for(var t=this.collection,e=this.start.index,n=this.end.index,o=0,i=e;i<=n;i++)o+=t.at(i).offsetHeight;return o},outerRect:function(t,e,n){return this._rect("offset",t,e,n)},_rect:function(t,n,o,i){var s,r,l,a,h=this.start,u=this.end,d=e.support.isRtl(h.element);if("number"!=typeof n&&(n=e.date.toUtcTime(n)),"number"!=typeof o&&(o=e.date.toUtcTime(o)),i)s=h.offsetTop,r=u.offsetTop+u[t+"Height"],d?(l=u.offsetLeft,a=h.offsetLeft+h[t+"Width"]):(l=h.offsetLeft,a=u.offsetLeft+u[t+"Width"]);else{var c=n-h.start;c<0&&(c=0);var f=h.end-h.start;s=h.offsetTop+h[t+"Height"]*c/f;var g=u.end-o;g<0&&(g=0);var v=u.end-u.start;r=u.offsetTop+u[t+"Height"]-u[t+"Height"]*g/v,d?(l=Math.round(u.offsetLeft+u[t+"Width"]*g/v),a=Math.round(h.offsetLeft+h[t+"Width"]-h[t+"Width"]*c/f)):(l=Math.round(h.offsetLeft+h[t+"Width"]*c/f),a=Math.round(u.offsetLeft+u[t+"Width"]-u[t+"Width"]*g/v))}return{top:s,bottom:r,left:0===l?l:l+1,right:a}},innerRect:function(t,e,n){return this._rect("client",t,e,n)}}),p=g.extend({innerWidth:function(){for(var t=this.collection,e=this.start.index,n=this.end.index,o=0,i=e!==n?"offsetWidth":"clientWidth",s=e;s<=n;s++)o+=t.at(s)[i];return o}}),_=e.Class.extend({init:function(t,n,o,i){this._slots=[],this._events=[],this._start=e.date.toUtcTime(t),this._end=e.date.toUtcTime(n),this._groupIndex=o,this._collectionIndex=i},refresh:function(){for(var t=0;t<this._slots.length;t++)this._slots[t].refresh()},startInRange:function(t){return this._start<=t&&t<this._end},endInRange:function(t,e){var n=e?t<this._end:t<=this._end;return this._start<=t&&n},slotByStartDate:function(t){var n=t;"number"!=typeof n&&(n=e.date.toUtcTime(t));for(var o=0;o<this._slots.length;o++){var i=this._slots[o];if(i.startInRange(n))return i}return null},slotByEndDate:function(t,n){var o=t;if("number"!=typeof o&&(o=e.date.toUtcTime(t)),n)return this.slotByStartDate(t,!1);for(var i=0;i<this._slots.length;i++){var s=this._slots[i];if(s.endInRange(o))return s}return null},count:function(){return this._slots.length},events:function(){return this._events},addTimeSlot:function(t,e,n,o){var i=new S(t,e,n,this._groupIndex,this._collectionIndex,this._slots.length,o);this._slots.push(i)},addDaySlot:function(t,e,n,o){var i=new y(t,e,n,this._groupIndex,this._collectionIndex,this._slots.length,o);this._slots.push(i)},first:function(){return this._slots[0]},last:function(){return this._slots[this._slots.length-1]},at:function(t){return this._slots[t]}}),m=e.Class.extend({init:function(t,e,n,o,i,s){this.element=t,this.clientWidth=t.clientWidth,this.clientHeight=t.clientHeight,this.offsetWidth=t.offsetWidth,this.offsetHeight=t.offsetHeight,this.offsetTop=t.offsetTop,this.offsetLeft=t.offsetLeft,this.start=e,this.end=n,this.element=t,this.groupIndex=o,this.collectionIndex=i,this.index=s,this.isDaySlot=!1},refresh:function(){var t=this.element;this.clientWidth=t.clientWidth,this.clientHeight=t.clientHeight,this.offsetWidth=t.offsetWidth,this.offsetHeight=t.offsetHeight,this.offsetTop=t.offsetTop,this.offsetLeft=t.offsetLeft},startDate:function(){return e.timezone.toLocalDate(this.start)},endDate:function(){return e.timezone.toLocalDate(this.end)},startInRange:function(t){return this.start<=t&&t<this.end},endInRange:function(t){return this.start<t&&t<=this.end},startOffset:function(){return this.start},endOffset:function(){return this.end}}),S=m.extend({init:function(t,e,n,o,i,s,r){m.fn.init.apply(this,arguments),this.isHorizontal=!!r},offsetX:function(t,e){return this.offsetLeft+e},startInRange:function(t){return this.start<=t&&t<this.end},endInRange:function(t){return this.start<t&&t<=this.end},startOffset:function(n,o,i){if(i)return this.start;var s,r,l=t(this.element).offset(),a=this.end-this.start;if(this.isHorizontal){var h=e.support.isRtl(this.element);if(s=n-l.left,r=Math.floor(a*(s/this.offsetWidth)),h)return this.start+a-r}else s=o-l.top,r=Math.floor(a*(s/this.offsetHeight));return this.start+r},endOffset:function(n,o,i){if(i)return this.end;var s,r,l=t(this.element).offset(),a=this.end-this.start;if(this.isHorizontal){var h=e.support.isRtl(this.element);if(s=n-l.left,r=Math.floor(a*(s/this.offsetWidth)),h)return this.start+a-r}else s=o-l.top,r=Math.floor(a*(s/this.offsetHeight));return this.start+r}}),y=m.extend({init:function(t,e,n,o,i,s,r){if(m.fn.init.apply(this,arguments),this.eventCount=r,this.isDaySlot=!0,this.element.children.length){var l=this.element.children[0];this.firstChildHeight=l.offsetHeight,this.firstChildTop=l.offsetTop}else this.firstChildHeight=3,this.firstChildTop=0},startDate:function(){var t=new Date(this.start);return e.timezone.apply(t,"Etc/UTC")},endDate:function(){var t=new Date(this.end);return e.timezone.apply(t,"Etc/UTC")},startInRange:function(t){return this.start<=t&&t<this.end},endInRange:function(t){return this.start<t&&t<=this.end}});function b(t){return{start:t.start,end:t.end,slotIndex:t.slotIndex,slotIndexEnd:t.slotIndexEnd}}e.ui.SchedulerView=i.extend({init:function(n,o){i.fn.init.call(this,n,t.extend({},this.options,o)),this._normalizeOptions(),this._initDefaultTools(),this._scrollbar=c=c||e.support.scrollbar(),this._isRtl=e.support.isRtl(n),this._resizeHint=t(),this._moveHint=t(),this._cellId=e.guid(),this._resourcesForGroups(),this._selectedSlots=[],this.element.attr("role","application")},options:{messages:{ariaEventLabel:{on:"on",at:"at",to:"to",allDay:"(all day)",prefix:""}}},visibleEndDate:function(){return this.endDate()},_initDefaultTools:function(){this._defaultTools={todayMobile:{type:"button",fillMode:"flat",text:this.options.messages.today,click:this._footerTodayClickHandler.bind(this),attributes:{class:"k-scheduler-today"}},fulldayDesktop:{type:"button",icon:"clock",text:this.options.showWorkHours?this.options.messages.showFullDay:this.options.messages.showWorkDay,click:this.toggleFullDay?this.toggleFullDay.bind(this):t.noop,attributes:{class:"k-scheduler-fullday"}},fulldayMobile:{type:"button",fillMode:"flat",text:this.options.showWorkHours?this.options.messages.showFullDay:this.options.messages.showWorkDay,click:this.toggleFullDay?this.toggleFullDay.bind(this):t.noop,attributes:{class:"k-scheduler-fullday"}}}},_normalizeOptions:function(){var t=this.options;t.startTime&&t.startTime.setMilliseconds(0),t.endTime&&t.endTime.setMilliseconds(0),t.workDayStart&&t.workDayStart.setMilliseconds(0),t.workDayEnd&&t.workDayEnd.setMilliseconds(0)},_isMobile:function(){var t=this.options;return!0===t.mobile&&e.support.mobileOS||"phone"===t.mobile||"tablet"===t.mobile},_addResourceView:function(){var t=new f(this.groups.length,this._isRtl,this.options.enforceAllDaySlot);return this.groups.push(t),t},_refreshResourceViews:function(){var t=this.groups;if(t)for(var e=0;e<t.length;e++)t[e]._refreshSlotCollections()},dateForTitle:function(){return e.format(this.options.selectedDateFormat,this.startDate(),this.endDate())},shortDateForTitle:function(){return e.format(this.options.selectedShortDateFormat,this.startDate(),this.endDate())},mobileDateForTitle:function(){return e.format(this.options.selectedMobileDateFormat||this.options.selectedShortDateFormat,this.startDate(),this.endDate())},_changeGroup:function(t,e){var n=this[e?"prevGroupSlot":"nextGroupSlot"](t.start,t.groupIndex,t.isAllDay);return n&&(t.groupIndex+=e?-1:1),this._isGroupedByDate()&&!n&&(t.groupIndex=e?this.groups.length-1:0),n},_changeDate:function(t,e,n){var o,i,s=this.groups[t.groupIndex];if(n){if(o=s._getCollections(!1),(i=s.daySlotCollectionCount()?e.index-1:e.collectionIndex-1)>=0)return o[i]._slots[o[i]._slots.length-1]}else{o=s._getCollections(s.daySlotCollectionCount()),i=s.daySlotCollectionCount()?0:e.collectionIndex+1;var r=s.daySlotCollectionCount()?e.collectionIndex+1:0;if(o[i]&&o[i]._slots[r])return o[i]._slots[r]}},_changeGroupContinuously:function(){return null},_changeViewPeriod:function(){return!1},_isInRange:function(t,e){return!!(t&&e&&this.options.min&&this.options.max)&&(o(t)<=o(this.options.min)||o(e)>=o(this.options.max))},_horizontalSlots:function(t,e,n,o){var i,s=o?"leftSlot":"rightSlot",r={startSlot:e[0].start,endSlot:e[e.length-1].end},l=this.groups[t.groupIndex],a=this._isVerticallyGrouped();if(!n){var h=this._normalizeHorizontalSelection(t,e,o);h&&(r.startSlot=r.endSlot=h)}if(this._isGroupedByDate()&&!n){var u=this._changeGroup(t,o);u?r.startSlot=r.endSlot=u:r=this._getNextHorizontalRange(l,s,r)}else r.startSlot=l[s](r.startSlot),r.endSlot=l[s](r.endSlot),n||a||r.startSlot&&r.endSlot||(r.startSlot=r.endSlot=this._changeGroup(t,o));return r.startSlot&&r.endSlot||this._isGroupedByDate()||(i=this._continuousSlot(t,e,o),(i=this._changeGroupContinuously(t,i,n,o))&&(r.startSlot=r.endSlot=i)),r},_getNextHorizontalRange:function(t,e,n){return this._isVerticallyGrouped()||(n.startSlot=t[e](n.startSlot),n.endSlot=t[e](n.endSlot)),n},_verticalSlots:function(t,e,n,o){var i,s=this.groups[t.groupIndex],r={startSlot:e[0].start,endSlot:e[e.length-1].end};n||(i=this._normalizeVerticalSelection(t,e,o))&&(r.startSlot=r.endSlot=i);var l=o?"upSlot":"downSlot";return r=this._getNextVerticalRange(s,l,r,n),n||!this._isVerticallyGrouped()||r.startSlot&&r.endSlot||(this._isGroupedByDate()?r.startSlot=r.endSlot=this._changeDate(t,i,o):r.startSlot=r.endSlot=this._changeGroup(t,o)),r},_getNextVerticalRange:function(t,e,n,o){return n.startSlot=t[e](n.startSlot,o),n.endSlot=t[e](n.endSlot,o),n},_normalizeHorizontalSelection:function(){return null},_normalizeVerticalSelection:function(t,e,n){return n?e[0].start:e[e.length-1].end},_continuousSlot:function(){return null},_footerTodayClickHandler:function(t){t.preventDefault();var n,o=this,i=o.options,s=o.options.timezone,r=new Date;if(s){var l=e.timezone.offset(r,s);n=e.timezone.convert(r,r.getTimezoneOffset(),l)}else n=r;o.trigger("navigate",{view:o.name||i.name,action:"today",date:n})},_footerItems:function(){var t=this,e=[],n=this.options;return t._isMobile()&&e.push({type:"button",fillMode:"flat",text:n.messages.today,click:t._footerTodayClickHandler.bind(t),attributes:{class:"k-scheduler-today"}}),e},_footer:function(){if(!1!==this.options.footer){var e=this,n=e._footerItems();if(n.length>0){var o=t('<div class="k-scheduler-footer">');e.footer=o.appendTo(e.element),e.footer.kendoToolBar({resizable:!1,items:n})}}},constrainSelection:function(t){var e,n=this.groups[0];this.inRange(t)?n.daySlotCollectionCount()?n.timeSlotCollectionCount()||(t.isAllDay=!0):t.isAllDay=!1:(e=n.firstSlot(),t.isAllDay=e.isDaySlot,t.start=e.startDate(),t.end=e.endDate()),this.groups[t.groupIndex]||(t.groupIndex=0)},move:function(t,e,n){var o=!1,i=this.groups[t.groupIndex],s=this._isGroupedByDate()&&this._isVerticallyGrouped();i.timeSlotCollectionCount()||(t.isAllDay=!0);var l,a,h,u,d=i.ranges(t.start,t.end,t.isAllDay,!1);if(e===r.DOWN||e===r.UP){if(o=!0,h=e===r.UP,this._updateDirection(t,d,n,h,!0),!(u=this._verticalSlots(t,d,n,h)).startSlot&&!n&&this._changeViewPeriod(t,h,!s))return o}else if((e===r.LEFT||e===r.RIGHT)&&(o=!0,h=e===r.LEFT,this._updateDirection(t,d,n,h,!1),!(u=this._horizontalSlots(t,d,n,h)).startSlot&&!n&&this._changeViewPeriod(t,h,s)))return o;if(o){if(l=u.startSlot,a=u.endSlot,n){var c=t.backward;c&&l?t.start=l.startDate():!c&&a&&(t.end=a.endDate())}else l&&a&&(t.isAllDay=l.isDaySlot,t.start=l.startDate(),t.end=a.endDate());t.events=[]}return o},moveToEventInGroup:function(e,n,o,i){var s,r,l,a=e._continuousEvents||[],h=i?-1:1,u=a.length,d=i?u-1:0;if(o.length)if(l=o[o.length-1],i)for(r=0;r<a.length;r++)a[r].uid===l&&(d=r+h);else for(r=a.length-1;r>-1;r--)a[r].uid===l&&(d=r+h);for(;d<u&&d>-1;){if(s=a[d],(!i&&s.start.startDate()>=n.startDate()||i&&s.start.startDate()<=n.startDate())&&s&&-1===t.inArray(s.uid,o)){0;break}d+=h}return s},moveToEvent:function(t,e){var n,o=t.groupIndex,i=this.groups[o],s=i.ranges(t.start,t.end,"month"===this.name||t.isAllDay,!1)[0].start,r=this.groups.length,l=e?-1:1,a=t.events;if(this._isGroupedByDate()){var h=this._getAllEvents(),u=this._getUniqueEvents(h),d=this._getSortedEvents(u);if(0===a.length){var c=this._getNextEventIndexBySlot(s,d,o);e&&c--,n=d[c]}else for(var f=this._getStartIdx(a,d);f<d.length&&f>-1&&(a.length>0&&(s=this._getSelectedSlot(s,d,n,f,l,e)),s);){if((!e&&d[f].start.startDate()>=s.startDate()||e&&d[f].start.startDate()<=s.startDate())&&a[0]!=d[f].uid){n=d[f];break}f+=l}}else for(;o<r&&o>-1&&(n=this.moveToEventInGroup(i,s,a,e),o+=l,(i=this.groups[o])&&!n);)a=[],s=e?i.lastSlot():i.firstSlot(!0);return n&&(t.events=[n.uid],t.start=n.start.startDate(),t.end=n.end.endDate(),t.isAllDay=n.start.isDaySlot,t.groupIndex=n.start.groupIndex,t.eventElement=n.element[0]),!!n},current:function(t){if(void 0===t)return this._current;this._current=t,this.content.has(t)&&this._scrollTo(t,this.content[0])},select:function(t){this.clearSelection(),this._selectEvents(t)||this._selectSlots(t)},_getNextEventIndexBySlot:function(t,n,o){for(var i=0,s=e.date.getDate(t.startDate()),r=0;r<n.length;r++){var l=e.date.getDate(n[r].start.startDate());if(s>l)i++;else if(s.getTime()===l.getTime()&&o>n[r].start.groupIndex)i++;else{if(!(s.getTime()===l.getTime()&&o>=n[r].start.groupIndex&&t.startDate()>n[r].start.startDate()))break;i++}}return i},_getSelectedSlot:function(t,e,n,o,i,s){if(e[o+i]&&e[o].start.groupIndex!==e[o+i].start.groupIndex){var r=e[o+i].start.groupIndex,l=this.groups[r];l&&!n||(t=null),t=s?l.lastSlot():l.firstSlot(!0)}return t},_getStartIdx:function(e,n){var o=0;return t.each(n,(function(){if(this.uid===e[0])return!1;o++})),o},_getAllEvents:function(){for(var t=[],e=this.groups,n=0;n<e.length;n++)e[n]._continuousEvents&&(t=t.concat(e[n]._continuousEvents));return t},_getUniqueEvents:function(t){for(var e=[],n=0;n<t.length;n++){for(var o=!1,i=0;i<e.length;i++)if(t[n].uid===e[i].uid){o=!0;break}o||e.push(t[n])}return e},_getSortedEvents:function(n){return n.sort((function(n,o){var i=n.start.startDate(),s=o.start.startDate(),r=e.date.getDate(i)-e.date.getDate(s);return 0===r&&(r=n.start.groupIndex-o.start.groupIndex),0===r&&(r=i.getTime()-s.getTime()),0===r&&(n.start.isDaySlot&&!o.start.isDaySlot&&(r=-1),!n.start.isDaySlot&&o.start.isDaySlot&&(r=1)),0===r&&(r=t(n.element).index()-t(o.element).index()),r}))},_selectSlots:function(t){var e=t.isAllDay,n=this.groups[t.groupIndex];n.timeSlotCollectionCount()||(e=!0),this._selectedSlots=[];for(var o,i,s,r=n.ranges(t.start,t.end,e,!1),l=0;l<r.length;l++)for(var a=r[l],h=a.collection,u=a.start.index;u<=a.end.index;u++)o=(i=h.at(u)).element,(s=o).className=s.className.replace(w,"")+" k-selected",this._selectedSlots.push({start:i.startDate(),end:i.endDate(),element:o});t.backward&&(o=r[0].start.element),this.current(o)},_selectEvents:function(e){var n,o,i=!1,s=e.events,r=this._getAllEvents(),l=r.length;if(!s[0]||!r[0])return i;var a=t();for(e.events=[],n=0;n<l;n++)t.inArray(r[n].uid,s)>-1&&(o=r[n],a=a.add(o.element),-1===e.events.indexOf(o.uid)&&e.events.push(o.uid));return a[0]&&(a.addClass("k-selected"),e.eventElement?this.current(e.eventElement):this.current(a.last()[0]),this._selectedSlots=[],i=!0),i},inRange:function(t){var n=this.startDate(),o=e.date.addDays(this.endDate(),1),i=t.start,s=t.end;return n<=i&&i<o&&n<s&&s<=o},_resourceValue:function(t,n){return t.valuePrimitive&&(n=e.getter(t.dataValueField)(n)),n},_setResourceValue:function(t,n,o){var i=t.value;n.multiple&&(i=[i]),e.setter(n.field)(o,i)},_resourceBySlot:function(t){var e=this.groupedResources,n={};if(e.length){var o,i,s,r,l=t.groupIndex,a=this.options.group,h=a.date||"horizontal"===a.orientation?"columns":"rows",u="rows"===h?this.rowLevels:this.columnLevels,d=a.date&&"horizontal"===a.orientation?1:0,c=u[e.length-1+d],f=e[e.length-1],g=c[l];for(this._setResourceValue(g,f,n),s=e.length-2;s>=0;s--)for(c=u[s+d],f=e[s],o=0,r=0;r<c.length;r++){if((i=(g=c[r])[h].length)>l-o){this._setResourceValue(g,f,n);break}o+=i}}return n},_createResizeHint:function(e,n,o,i){return t('<div class="k-marquee k-scheduler-marquee"><div class="k-marquee-color"></div><div class="k-marquee-text"><div class="k-label-top"></div><div class="k-label-bottom"></div></div></div>').css({left:e,top:n,width:o,height:i})},_removeResizeHint:function(){this._resizeHint.remove(),this._resizeHint=t()},_removeMoveHint:function(e){e?(this._moveHint.filter("[data-uid='"+e+"']").remove(),this._moveHint=this._moveHint.filter("[data-uid!='"+e+"']")):(this._moveHint.remove(),this._moveHint=t())},_scrollTo:function(t,e){var n=t.offsetTop,o=t.offsetHeight,i=e.scrollTop,s=e.clientHeight,r=n+o,l=0;l=i>n?n:r>i+s?o<=s?r-s:n:i,e.scrollTop=l},_inverseEventColor:function(t){var e=t.css("color"),n=new D(e).isDark(),o=t.css("background-color");n==new D(o).isDark()&&t.addClass("k-event-inverse")},_eventTmpl:function(n,o){var i=this.options,s=t.extend({},e.Template,i.templateSettings),r=s.paramName,l="",a=typeof n,h={storage:{},count:0};"function"===a?(h.storage["tmpl"+h.count]=n,l+="#=this.tmpl"+h.count+"("+r+")#",h.count++):"string"===a&&(l+=n);var u=e.template(e.format(o,l),s);return h.count>0&&(u=u.bind(h.storage)),u},eventResources:function(t){var n=[],o=this.options;if(!o.resources)return n;for(var i=0;i<o.resources.length;i++){var s=o.resources[i],r=s.field,l=e.getter(r)(t);if(null!=l){s.multiple||(l=[l]);for(var a=s.dataSource.view(),h=0;h<l.length;h++){var u=null,d=l[h];s.valuePrimitive||(d=e.getter(s.dataValueField)(d));for(var c=0;c<a.length;c++)if(a[c].get(s.dataValueField)==d){u=a[c];break}if(null!==u){var f=e.getter(s.dataColorField)(u);n.push({field:s.field,title:s.title,name:s.name,text:e.getter(s.dataTextField)(u),value:d,color:f})}}}}return n},createLayout:function(n){var o=-1;n.rows||(n.rows=[]);for(var i=0;i<n.rows.length;i++)if(n.rows[i].allDay){o=i;break}var s=n.rows[o];o>=0&&n.rows.splice(o,1);var r=this.columnLevels=u(n,"columns"),l=this.rowLevels=u(n,"rows");this._isVirtualized()&&this._trimRowLevels(l),this.table=t('<table role="presentation" class="k-scheduler-layout k-scheduler-'+this.name+'view"><tbody></tbody></table>');var a=l[l.length-1].length;this.table.find("tbody").first().append(this._topSection(r,s,a)),this.table.find("tbody").first().append(this._bottomSection(l,a)),this.element.append(this.table),this._isVirtualized()&&this._updateDomRowLevels(),this._isMobile()&&r.length>1&&"horizontal"===this._groupOrientation()&&e._outerWidth(t(window))<1024&&(this.table.find(".k-scheduler-content .k-scheduler-table").width(100*r[r.length-2].length+"%"),this.table.find(".k-scheduler-header .k-scheduler-table").width(100*r[r.length-2].length+"%")),this._scroller()},_isVirtualized:function(){return this.options.virtual&&this.rowLevels.length>1&&this._isVerticallyGrouped()},_trimRowLevels:function(t){var e,n=t[t.length-2],o=this.cachedRowLevels||[];this._hasContentToRender=!0;for(var i=function(t,e){var n,o;return!(t[e-1].length>0)||(n=t[e-1][0],o=t[e][0].parentValue,n.value!==o)},s=t.length-2;s>=0;s--){var r=!1;if(s>0&&i(t,s)&&(r=!0,e=s),o[s]=t[s].splice(1),s<t.length-2&&1!=t[s][0].rows.length&&(t[s][0].rows=t[s+1]),r)break}return o[t.length-1]=t[t.length-1].splice(n[0].rows.length),this.cachedRowLevels=o,o[o.length-1].length||(this._hasContentToRender=!1),{levelMarker:e||0,rowLevels:t}},createNextLayout:function(){for(var t,e,n,o,i=[],s=0;s<this.cachedRowLevels.length;s++)i[s]=this.cachedRowLevels[s];e=(t=this._trimRowLevels(i)).rowLevels.splice(t.levelMarker),n=t.levelMarker,o=e[e.length-1].length,delete this._height;for(var r=n;r<this.rowLevels.length;r++)this.rowLevels[r]=this.rowLevels[r].concat(e[r-n]);if(this.table.find(".k-scheduler-times").last().find("tbody").append(this._times(e,o,this._isMobile()).find("tr")),this._updateDomRowLevels(),n>0)for(r=0;r<n;r++){var l=this.table.find("[data-row-level="+r+"]").last(),a=parseInt(l.attr("rowspan"),10)+o;l.attr("rowspan",a)}this._virtualContent(e,this.columnLevels),this.render(this._cachedEvents)},_tryRenderContent:function(){for(var t=this,e=t.table.innerHeight(),n=t.content.find("table").innerHeight(),o=t.content.scrollTop();t._hasContentToRender&&n-e<o;)t.createNextLayout(),n=t.content.find("table").innerHeight()},_isSchedulerHeightSet:function(){var t,e=this.element;return!!e[0].style.height||(t=e.height(),e.height("auto"),t!=e.height()?(e.height(""),!0):(e.height(""),!1))},_updateDomRowLevels:function(){var e=this.times.find(".k-group-cell:not([data-row-level])");if(this._rowLevelIndices){e=e.toArray().reverse();for(var n=0;n<=e.length;n++)t(e[n]).attr("data-row-level",this._rowLevelIndices[n])}else this._rowLevelIndices=e.map((function(e,n){return t(n).attr("data-row-level",e),e})).toArray().reverse()},refreshLayout:function(){for(var n=this,o=n.element.find("> .k-scheduler-toolbar"),i=n.element.innerHeight(),r=this._scrollbar,l=0,a=this._isRtl?"left":"right",h=0;h<o.length;h++)i-=s(o.eq(h));if(n.datesHeader&&(l=s(n.datesHeader)),n.timesHeader&&s(n.timesHeader)>l&&(l=s(n.timesHeader)),n.content&&n.content.find(".k-scheduler-table td").addClass("k-scheduler-cell"),n.datesHeader&&n.timesHeader){var u=n.datesHeader.find("table").first().find("tr");n.timesHeader.find("tr").height((function(e){t(this).height(u.eq(e).height())}))}l&&(i-=l),n.footer&&(i-=s(n.footer));var d=n.content[0],c=e.support.kineticScrollNeeded?0:r;if(this._isSchedulerHeightSet()&&(i>2*r?n.content.height(i):n.content.height(2*r+1),n.times)){n.times.height(d.clientHeight);var f=n.times.find("table");f.length&&f.height(n.content.find("table")[0].clientHeight)}n.table&&(d.offsetWidth-d.clientWidth>0?(n.table.addClass("k-scrollbar-v"),n.datesHeader.css("padding-"+a,c-parseInt(n.datesHeader.children().css("border-"+a+"-width"),10))):n.datesHeader.css("padding-"+a,"0"),d.offsetHeight-d.clientHeight>0||d.clientHeight>n.content.children(".k-scheduler-table").height()?n.table.addClass("k-scrollbar-h"):n.table.removeClass("k-scrollbar-h")),n._refreshResourceViews()},_topSection:function(e,n,o){var i=t("<tr class='k-scheduler-head'>");this.timesHeader=function(e,n,o){var i=[];if(o>0)for(var s=0;s<e;s++)i.push("<th class='k-scheduler-cell'>​</th>");return n&&i.push('<th class="k-scheduler-times-all-day k-scheduler-cell">'+n.text+"</th>"),o<1?t():t('<div class="k-scheduler-times">'+d(i)+"</div>")}(e.length,n,o),this.datesHeader=this._datesHeader(e,n);var s=this.datesHeader.find(".k-nav-day");return s.length&&s.closest("tr").addClass("k-scheduler-date-group"),this._isMobile()&&(i.addClass("k-mobile-header"),i.addClass("k-mobile-"+this._groupOrientation()+"-header")),t(i).append(this.timesHeader.add(this.datesHeader).wrap("<td>").parent())},_bottomSection:function(e,n){return this.times=this._times(e,n,this._isMobile()),this.content=t('<div class="k-scheduler-content"><table role="presentation" class="k-scheduler-table"></table></div>'),t("<tr class='k-scheduler-body'>").append(this.times.add(this.content).wrap("<td>").parent())},_scroller:function(){var n=this;this.content.on("scroll.kendoSchedulerView",(function(){e.scrollLeft(n.datesHeader.find(">.k-scheduler-header-wrap"),this.scrollLeft),n.times.scrollTop(this.scrollTop),n._isVirtualized()&&n._tryRenderContent()}));var o=e.touchScroller(this.content,{avoidScrolling:function(e){return t(e.event.target).closest(".k-event.k-event-active").length>0}});o&&o.movable&&(this._touchScroller=o,this.content=o.scrollElement,o.movable.bind("change",(function(t){e.scrollLeft(n.datesHeader.find(">.k-scheduler-header-wrap"),-t.sender.x),n.times.scrollTop(-t.sender.y),n._isVirtualized()&&n._tryRenderContent()})))},_resourcesForGroups:function(){var t=[],e=this.options.group,n=this.options.resources;if(e=e&&e.resources?e.resources:[],n&&e.length)for(var o=0,i=n.length;o<i;o++)for(var s=0,r=e.length;s<r;s++)n[o].name===e[s]&&t.push(n[o]);this.groupedResources=t},_createDateLayout:function(t,e,n){return x("rows",t,e,n)},_createColumnsLayout:function(t,e,n,o,i,s){return k("columns",t,e,n,o,i,s)},_groupOrientation:function(){var t=this.options.group;return t&&t.resources?t.orientation:"horizontal"},_isGroupedByDate:function(){return this.options.group&&this.options.group.date},_isVerticallyGrouped:function(){return this.groupedResources.length&&"vertical"===this._groupOrientation()},_createRowsLayout:function(t,e,n,o){return k("rows",t,e,n,o)},selectionByElement:function(){return null},clearSelection:function(){this.content.find(".k-selected").removeAttr("id").removeClass("k-selected")},destroy:function(){var t=this;i.fn.destroy.call(this),t._ongoingTimer&&(clearInterval(t._ongoingTimer),t._ongoingTimer=null),t.table&&(e.destroy(t.table),t.table.remove()),t.footer&&(t.footer.getKendoToolBar().destroy(),t.footer.remove()),t.groups=null,t.table=null,t.content=null,t.times=null,t.datesHeader=null,t.timesHeader=null,t.footer=null,t._resizeHint=null,t._moveHint=null},calendarInfo:function(){return e.getCulture().calendars.standard},prevGroupSlot:function(t,e,n){var o,i=this.groups[e],s=i.ranges(t,t,n,!1)[0].start;if(!(e<=0))return this._isGroupedByDate()?s:this._isVerticallyGrouped()?i.timeSlotCollectionCount()?(o=i._collection(n?s.index:s.collectionIndex,!1)).last():(o=i._collection(i.daySlotCollectionCount()-1,!0)).at(s.index):i.timeSlotCollectionCount()?(o=i._collection(n?0:i.timeSlotCollectionCount()-1,n),n?o.last():o.at(s.index)):(o=i._collection(s.collectionIndex,!0)).last()},nextGroupSlot:function(t,e,n){var o,i,s=this.groups[e],r=s.ranges(t,t,n,!1)[0].start;if(!(e>=this.groups.length-1))return this._isGroupedByDate()?r:this._isVerticallyGrouped()?s.timeSlotCollectionCount()?(i=s.daySlotCollectionCount(),o=s._collection(i?0:r.collectionIndex,i),n?o.first():o.at(r.collectionIndex)):(o=s._collection(0,!0)).at(r.index):s.timeSlotCollectionCount()?(o=s._collection(0,n),n?o.first():o.at(r.index)):(o=s._collection(r.collectionIndex,!0)).first()},_eventOptionsForMove:function(){return{}},_updateEventForResize:function(){},_updateEventForSelection:function(t){return t},_innerElements:function(t,e,n){var o=0,i=function(t){var s,r,l,a=t[n],h=t[e];if(a)o+=a;else if(h&&0!==h.length)for(l=0;l<h.length;l++)(r=(s=h[l])[e])&&r[0]?r[0][e]&&0!==r[0][e].length?i(s):o+=r.length:o+=1;else o+=1};return i(t),o},_times:function(e,n,o){for(var i,s=new Array(n).join().split(","),r=[],l=0;l<e.length;l++){var a=e[l],h=0;for(i=0;i<a.length;i++){var u=a[i],c=u.className||"",f=u.text,g=this._innerElements(u,"rows");h+=g,u.allDay&&(c="k-scheduler-times-all-day"),o&&-1!==c.indexOf("k-group-cell")&&(f='<span class="k-scheduler-group-text">'+f+"</span>"),s[h-g]+='<th class="k-scheduler-cell '+c+'" rowspan="'+g+'">'+f+"</th>"}}for(i=0;i<n;i++)r.push(s[i]);return n<1?t():t('<div class="k-scheduler-times">'+d(r)+"</div>")},_datesHeader:function(n,o){for(var i,s,r=[],l=0;l<n.length;l++){var a=n[l],h=[];for(i=0;i<a.length;i++){var u=a[i],c=this._innerElements(u,"columns","colspan");h.push('<th colspan="'+(u.colspan||c)+'" class="k-scheduler-cell '+(u.className||"")+'">'+u.text+"</th>")}r.push(h.join(""))}var f,g,v=[];if(o){var p=n[n.length-1],_=[],m=o.cellContent;for(i=0;i<p.length;i++)_.push('<td class="k-scheduler-cell '+(p[i].className||"")+'">'+(m?m(i):" ")+"</td>");v.push(_.join(""))}return s=t('<div class="k-scheduler-header"><div class="k-scheduler-header-wrap">'+d(r)+(g="k-scheduler-header-all-day",((f=v).length?`<div ${e.attr("style-position")}="relative">${d(f,g)}</div>`:"")+"</div></div>")),e.applyStylesFromKendoAttributes(s,["position"]),s},_formatEventAriaLabel:function(t,n,o,i){var s,r=this.options.messages.ariaEventLabel,l=e.date.getDate(n).getTime()===e.date.getDate(o).getTime();return"string"==typeof r?e.format(r,t,n,n):(s=(r.prefix+h+t+h+r.on+h+e.toString(n,"D")).trim(),i&&l?s+h+r.allDay:i?s+h+r.to+h+e.toString(o,"D")+h+r.allDay:(s=s+h+r.at+h+e.toString(n,"t")+h+r.to+h,l?s+e.toString(o,"t"):s+e.toString(o,"D")+h+r.at+h+e.toString(o,"t")))},_ongoingEvents:function(t){var e,n=this,o=n.options.ongoingEvents;!!o&&(!0===o||o.enabled)&&(n._ongoingUpdater(t),e=o.updateInterval||6e4,n._ongoingTimer&&(clearInterval(n._ongoingTimer),n._ongoingTimer=null),isNaN(e)||(n._ongoingTimer=setInterval(this._ongoingUpdater.bind(n,t),e)))},_ongoingUpdater:function(t){var e=new Date,n=this.options.ongoingEvents.cssClass||l;this.content.find("."+n).removeClass(n),this.groups&&this.groups.length>0&&this._updateOngoing(e,t)},_updateOngoing:function(t,n){var o,i=this,s=i.element,r=i.options.ongoingEvents,a=r.cssClass||l,h=r.useLocalTimezone,u=i.options.timezone;n&&(!1===h&&u&&(o=e.timezone.offset(t,u),t=e.timezone.convert(t,t.getTimezoneOffset(),o)),n.forEach((e=>{var n,o=e.start,i=e.end;e.isAllDay&&(i=new Date(i.getTime()+864e5-1)),o<=t&&i>=t&&(n=e.uid,s.find("[data-uid="+n+"]").addClass(a))})))}});var D=function(t){var e,n,o,i,s,r=this,l=D.formats;if(1===arguments.length)for(t=r.resolveColor(t),i=0;i<l.length;i++)e=l[i].re,n=l[i].process,(o=e.exec(t))&&(s=n(o),r.r=s[0],r.g=s[1],r.b=s[2]);else r.r=arguments[0],r.g=arguments[1],r.b=arguments[2];r.r=r.normalizeByte(r.r),r.g=r.normalizeByte(r.g),r.b=r.normalizeByte(r.b)};function C(t){for(var e=[],n=0;n<t.length;n++){var o=t[n],i=b(o),s=null;o.zeroWidthEventOffset&&i.end-i.start<o.zeroWidthEventOffset&&(i.end=i.start+o.zeroWidthEventOffset);for(var r=0,l=e.length;r<l;r++){var a=i.start>e[r].end||i.slotIndex>e[r].slotIndexEnd;if(i.start<e[r].start||i.slotIndex<e[r].slotIndex||a){(s=e[r]).end<i.end&&(s.end=i.end),s.slotIndexEnd<i.slotIndexEnd&&(s.slotIndexEnd=i.slotIndexEnd);break}}s||(s={slotIndex:i.slotIndex,slotIndexEnd:i.slotIndexEnd,start:i.start,end:i.end,events:[]},e.push(s)),s.events.push(o)}return e}function x(e,n,o,i){var s=[];return t.each(n,(function(t,n){var r=n.className?"k-slot-cell "+n.className:"k-slot-cell",l={text:n.text,className:r};i&&!n.minorTicks?l[e]=x(e,n.columns,o,i):l[e]=o,s.push(l)})),s}function k(n,o,i,s,r,l,a){var h=o[0],u=[];if(h){if(r&&i)t.each(r,(function(t,e){l&&!e.minorTicks?e[n]=k(n,o,e.columns,s,e.columns,l,a):e[n]=k(n,o,null,s,null,null,a)})),u=r;else{var d=h.dataSource.view();d=d.filter((function(t){var n=e.getter(h.dataParentValueField)(t);return null==n||n===a}));for(var c=0;c<d.length;c++){var f=e.getter(h.dataValueField)(d[c]),g={text:s({text:e.htmlEncode(e.getter(h.dataTextField)(d[c])),color:e.getter(h.dataColorField)(d[c]),field:h.field,title:h.title,name:h.name,value:f}),className:"k-slot-cell k-group-cell",parentValue:a,value:f};g[n]=k(n,o.slice(1),i,s,r,l,f),u.push(g)}}return u}return i}D.prototype={resolveColor:function(t){return"#"==(t=t||"#000").charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase(),t=D.namedColors[t]||t},normalizeByte:function(t){return t<0||isNaN(t)?0:t>255?255:t},percBrightness:function(){var t=this;return a.sqrt(.241*t.r*t.r+.691*t.g*t.g+.068*t.b*t.b)},isDark:function(){return this.percBrightness()<180}},D.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(t){return[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],D.namedColors={aqua:"00ffff",azure:"f0ffff",beige:"f5f5dc",black:"000000",blue:"0000ff",brown:"a52a2a",coral:"ff7f50",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgray:"a9a9a9",darkgreen:"006400",darkorange:"ff8c00",darkred:"8b0000",dimgray:"696969",fuchsia:"ff00ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lightblue:"add8e6",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumblue:"0000cd",navy:"000080",olive:"808000",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",pink:"ffc0cb",plum:"dda0dd",purple:"800080",red:"ff0000",royalblue:"4169e1",salmon:"fa8072",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",steelblue:"4682b4",tan:"d2b48c",teal:"008080",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};var w=/\s*k-selected/;t.extend(n.SchedulerView,{createColumns:function(t){return C(t)},createRows:function(t){return C(t)},rangeIndex:b,collidingEvents:function(t,e,n){var o,i,s,r;for(o=t.length-1;o>=0;o--)s=(i=b(t[o])).start,r=i.end,(s<=e&&r>=e||s>=e&&r<=n||e<=s&&n>=s)&&(s<e&&(e=s),r>n&&(n=r));return function(t,e,n){for(var o=[],i=0;i<t.length;i++){var s=b(t[i]);(s.start<e&&s.end>e||s.start>=e&&s.end<=n)&&o.push(t[i])}return o}(t,e,n)},groupEqFilter:function(t){return function(n){if(Array.isArray(n)||n instanceof e.data.ObservableArray){for(var o=0;o<n.length;o++)if(n[o]==t)return!0;return!1}return n==t}}})}(window.kendo.jQuery);var e=kendo;t.__meta__={id:"scheduler.view",name:"Scheduler View",category:"web",description:"The Scheduler Common View",depends:["core","toolbar"],hidden:!0},t.default=e,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=kendo.scheduler.view.min.js.map