@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
1 lines • 39.1 kB
JavaScript
module.exports=function(r){var n={};function i(t){if(n[t])return n[t].exports;var e=n[t]={exports:{},id:t,loaded:!1};return r[t].call(e.exports,e,e.exports,i),e.loaded=!0,e.exports}return i.m=r,i.c=n,i.p="",i(0)}({0:function(t,e,r){t.exports=r(1431)},3:function(t,e){t.exports=function(){throw Error("define cannot be used indirect")}},1051:function(t,e){t.exports=require("./kendo.core")},1431:function(t,e,r){var n;r(3),r=[r(1051)],void 0===(e="function"==typeof(n=function(){var e={id:"scheduler.view",name:"Scheduler View",category:"web",description:"The Scheduler Common View",depends:["core"],hidden:true},t,v=(kendo.ui.scheduler={},window.kendo.jQuery),g=window.kendo,n=g.ui,r=g.date.getDate,i=n.Widget,c=g._outerHeight,d=g.keys,o=".kendoSchedulerView",s="k-event-inverse",f=1024,u=Math,a=" ";function h(t,i){var o=[];function s(t,e){e=e[i];if(e){var r=o[t]=o[t]||[];for(var n=0;n<e.length;n++){r.push(e[n]);s(t+1,e[n])}}}s(0,t);return o}function p(t,e){if(!t.length)return"";return'<table role="presentation" class="'+g.trim("k-scheduler-table "+(e||""))+'">'+"<tr>"+t.join("</tr><tr>")+"</tr>"+"</table>"}function m(t,e){if(!t.length)return"";return"<div style='position:relative'>"+p(t,e)+"</div>"}function S(t,e,r){var n=[];if(r>0)for(var i=0;i<t;i++)n.push("<th>​</th>");if(e)n.push('<th class="k-scheduler-times-all-day">'+e.text+"</th>");if(r<1)return v();return v('<div class="k-scheduler-times">'+p(n)+"</div>")}function y(){return v('<div class="k-scheduler-content">'+'<table role="presentation" class="k-scheduler-table"></table>'+"</div>")}var C='<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>",D=g.Class.extend({init:function(t,e,r){this._index=t;this._timeSlotCollections=[];this._daySlotCollections=[];this._isRtl=e;this._enforceAllDaySlot=r},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,r){var n=new k(t,e,this._index,r.length);r.push(n);return n},timeSlotCollectionCount:function(){return this._timeSlotCollections.length},daySlotCollectionCount:function(){return this._daySlotCollections.length},daySlotByPosition:function(t,e,r){return this._slotByPosition(t,e,this._daySlotCollections,r)},timeSlotByPosition:function(t,e,r){return this._slotByPosition(t,e,this._timeSlotCollections,r)},_slotByPosition:function(t,e,r,u){for(var n=0;n<r.length;n++){var i=r[n];for(var o=0;o<i.count();o++){var s=i.at(o);var h=s.offsetWidth;var c=s.offsetHeight;var a;var l=s.offsetLeft+h;var f=s.offsetTop+c;if(!u)a=i.at(o+1);if(a)if(a.offsetLeft!=s.offsetLeft)if(this._isRtl)l=s.offsetLeft+(s.offsetLeft-a.offsetLeft);else l=a.offsetLeft;else f=a.offsetTop;if(t>=s.offsetLeft&&t<l&&e>=s.offsetTop&&e<f)return s}}},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,e){var r=this._timeSlotCollections;var n=this._startSlot(t,r);var i,o;if(!n.inRange&&t>=n.slot.end){i=n.slot.collectionIndex+1;n=null}var s=n;if(t<e)s=this._endSlot(e,r);if(s&&!s.inRange&&e<=s.slot.start){o=s.slot.collectionIndex;if(e===s.slot.start&&(n&&o>n.slot.collectionIndex||o>i))o-=1;s=null}if(n===null&&s===null)if(e-t<g.date.MS_PER_DAY)return[];else{n={inRange:true,slot:r[i].first()};s={inRange:true,slot:r[o].last()}}if(n===null){if(s.slot.end<=t)return[];n={inRange:true,slot:(r[i]||r[s.slot.collectionIndex]).first()}}if(s===null){if(n.slot.start>=e)return[];s={inRange:true,slot:(r[o]||r[n.slot.collectionIndex]).last()}}return this._continuousRange(x,r,n,s)},daySlotRanges:function(t,e,r){var n=this._daySlotCollections;var i=this._startSlot(t,n,r);if(!i.inRange&&t>=i.slot.end)i=null;var o=i;if(t<e)o=this._endSlot(e,n,r);if(o&&!o.inRange&&e<=o.slot.start)o=null;if(i===null&&o===null)return[];if(i===null){if(o.slot.end<=t)return[];do{t+=g.date.MS_PER_DAY;i=this._startSlot(t,n,r)}while(!i.inRange&&t>=i.slot.end)}if(o===null){if(i.slot.start>=e)return[];do{e-=g.date.MS_PER_DAY;o=this._endSlot(e,n,r)}while(!o.inRange&&e<=o.slot.start)}return this._continuousRange(w,n,i,o)},_continuousRange:function(u,h,c,d){var t=c.slot;var e=d.slot;var r=t.collectionIndex;var n=e.collectionIndex;var v=[];for(var i=r;i<=n;i++){var o=h[i];var s=o.first();var a=o.last();var l=false;var f=false;if(i==r)f=!c.inRange;if(i==n)l=!d.inRange;if(s.start<t.start)s=t;if(a.start>e.start)a=e;if(r<n)if(i==r)l=true;else if(i==n)f=true;else l=f=true;v.push(new u({start:s,end:a,collection:o,head:l,tail:f}))}return v},slotRanges:function(t,e){var r=t._startTime||g.date.toUtcTime(t.start);var n=t._endTime||g.date.toUtcTime(t.end);if(e===undefined)if(this._enforceAllDaySlot)e=t.isMultiDay();else e=t.isAllDay;if(e)return this.daySlotRanges(r,n,t.isAllDay);return this.timeSlotRanges(r,n)},ranges:function(t,e,r,n){if(typeof t!="number")t=g.date.toUtcTime(t);if(typeof e!="number")e=g.date.toUtcTime(e);if(r)return this.daySlotRanges(t,e,n);return this.timeSlotRanges(t,e)},_startCollection:function(t,e){for(var r=0;r<e.length;r++){var n=e[r];if(n.startInRange(t))return n}return null},_endCollection:function(t,e,r){for(var n=0;n<e.length;n++){var i=e[n];if(i.endInRange(t,r))return i}return null},_getCollections:function(t){return t?this._daySlotCollections:this._timeSlotCollections},continuousSlot:function(t,e){var r=e?-1:1;var n=this._getCollections(t.isDaySlot);var i=n[t.collectionIndex+r];return i?i[e?"last":"first"]():undefined},firstSlot:function(){var t=this._getCollections(this.daySlotCollectionCount());return t[0].first()},lastSlot:function(){var t=this._getCollections(this.daySlotCollectionCount());return t[t.length-1].last()},upSlot:function(t,i,e){var o=this;var r=function(t,e,r){var n=r===0;if(!i&&!t&&n&&o.daySlotCollectionCount())return o._daySlotCollections[0].at(e)};if(!this.timeSlotCollectionCount())i=true;return this._verticalSlot(t,-1,r,e)},downSlot:function(t,n,e){var i=this;var r=function(t,e,r){if(!n&&t&&i.timeSlotCollectionCount())return i._timeSlotCollections[r].at(0)};if(!this.timeSlotCollectionCount())n=true;return this._verticalSlot(t,1,r,e)},leftSlot:function(t,e){return this._horizontalSlot(t,-1,e)},rightSlot:function(t,e){return this._horizontalSlot(t,1,e)},_horizontalSlot:function(t,e,r){var n=t.index;var i=t.isDaySlot;var o=t.collectionIndex;var s=this._getCollections(i);i=r?false:i;if(i)n+=e;else o+=e;var a=s[o];return a?a.at(n):undefined},_verticalSlot:function(t,e,r,n){var i=t.index;var o=t.isDaySlot;var s=t.collectionIndex;var a=this._getCollections(o);t=r(o,s,i);if(t)return t;o=n?false:o;if(o)s+=e;else i+=e;var l=a[s];return l?l.at(i):undefined},_collection:function(t,e){var r=e?this._daySlotCollections:this._timeSlotCollections;return r[t]},_startSlot:function(t,e,r){var n=this._startCollection(t,e);var i=true;var o=0;if(!n){n=e[o];while(o<e.length-1&&n._start<t){o++;n=e[o]}i=false}var s=n.slotByStartDate(t,r);if(!s){s=n.first();i=false}return{slot:s,inRange:i}},_endSlot:function(t,e,r){var n=this._endCollection(t,e,r);var i=true;var o=e.length-1;if(!n){n=e[o];while(o>0&&n._start>t){o--;n=e[o]}i=false}var s=n.slotByEndDate(t,r);if(!s){if(t<=n.first().start)s=n.first();else s=n.last();i=false}return{slot:s,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]}}),b=g.Class.extend({init:function(t){v.extend(this,t)},innerHeight:function(){var t=this.collection;var e=this.start.index;var r=this.end.index;var n=0;for(var i=e;i<=r;i++)n+=t.at(i).offsetHeight;return n},events:function(){return this.collection.events()},addEvent:function(t){this.events().push(t)},startSlot:function(){if(this.start.offsetLeft>this.end.offsetLeft)return this.end;return this.start},endSlot:function(){if(this.start.offsetLeft>this.end.offsetLeft)return this.start;return this.end}}),x=b.extend({innerHeight:function(){var t=this.collection;var e=this.start.index;var r=this.end.index;var n=0;for(var i=e;i<=r;i++)n+=t.at(i).offsetHeight;return n},outerRect:function(t,e,r){return this._rect("offset",t,e,r)},_rect:function(t,e,r,u){var n;var h;var i;var o;var s=this.start;var a=this.end;var c=g.support.isRtl(s.element);if(typeof e!="number")e=g.date.toUtcTime(e);if(typeof r!="number")r=g.date.toUtcTime(r);if(u){n=s.offsetTop;h=a.offsetTop+a[t+"Height"];if(c){i=a.offsetLeft;o=s.offsetLeft+s[t+"Width"]}else{i=s.offsetLeft;o=a.offsetLeft+a[t+"Width"]}}else{var l=e-s.start;if(l<0)l=0;var d=s.end-s.start;n=s.offsetTop+s[t+"Height"]*l/d;var f=a.end-r;if(f<0)f=0;var v=a.end-a.start;h=a.offsetTop+a[t+"Height"]-a[t+"Height"]*f/v;if(c){i=Math.round(a.offsetLeft+a[t+"Width"]*f/v);o=Math.round(s.offsetLeft+s[t+"Width"]-s[t+"Width"]*l/d)}else{i=Math.round(s.offsetLeft+s[t+"Width"]*l/d);o=Math.round(a.offsetLeft+a[t+"Width"]-a[t+"Width"]*f/v)}}return{top:n,bottom:h,left:i===0?i:i+1,right:o}},innerRect:function(t,e,r){return this._rect("client",t,e,r)}}),w=b.extend({innerWidth:function(){var t=this.collection;var e=this.start.index;var r=this.end.index;var n=0;var i=e!==r?"offsetWidth":"clientWidth";for(var o=e;o<=r;o++)n+=t.at(o)[i];return n}}),k=g.Class.extend({init:function(t,e,r,n){this._slots=[];this._events=[];this._start=g.date.toUtcTime(t);this._end=g.date.toUtcTime(e);this._groupIndex=r;this._collectionIndex=n},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 r=e?t<this._end:t<=this._end;return this._start<=t&&r},slotByStartDate:function(t){var e=t;if(typeof e!="number")e=g.date.toUtcTime(t);for(var r=0;r<this._slots.length;r++){var n=this._slots[r];if(n.startInRange(e))return n}return null},slotByEndDate:function(t,e){var r=t;if(typeof r!="number")r=g.date.toUtcTime(t);if(e)return this.slotByStartDate(t,false);for(var n=0;n<this._slots.length;n++){var i=this._slots[n];if(i.endInRange(r))return i}return null},count:function(){return this._slots.length},events:function(){return this._events},addTimeSlot:function(t,e,r,n){var i=new I(t,e,r,this._groupIndex,this._collectionIndex,this._slots.length,n);this._slots.push(i)},addDaySlot:function(t,e,r,n){var i=new H(t,e,r,this._groupIndex,this._collectionIndex,this._slots.length,n);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]}}),R=g.Class.extend({init:function(t,e,r,n,i,o){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=r;this.element=t;this.groupIndex=n;this.collectionIndex=i;this.index=o;this.isDaySlot=false},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 g.timezone.toLocalDate(this.start)},endDate:function(){return g.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}}),I=R.extend({init:function(t,e,r,n,i,o,s){R.fn.init.apply(this,arguments);this.isHorizontal=s?true:false},offsetX:function(t,e){if(t)return this.offsetLeft+e;else 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(t,e,r){if(r)return this.start;var n=v(this.element).offset();var i=this.end-this.start;var o;var s;if(this.isHorizontal){var a=g.support.isRtl(this.element);o=t-n.left;s=Math.floor(i*(o/this.offsetWidth));if(a)return this.start+i-s}else{o=e-n.top;s=Math.floor(i*(o/this.offsetHeight))}return this.start+s},endOffset:function(t,e,r){if(r)return this.end;var n=v(this.element).offset();var i=this.end-this.start;var o;var s;if(this.isHorizontal){var a=g.support.isRtl(this.element);o=t-n.left;s=Math.floor(i*(o/this.offsetWidth));if(a)return this.start+i-s}else{o=e-n.top;s=Math.floor(i*(o/this.offsetHeight))}return this.start+s}}),H=R.extend({init:function(t,e,r,n,i,o,s){R.fn.init.apply(this,arguments);this.eventCount=s;this.isDaySlot=true;if(this.element.children.length){var a=this.element.children[0];this.firstChildHeight=a.offsetHeight;this.firstChildTop=a.offsetTop}else{this.firstChildHeight=3;this.firstChildTop=0}},startDate:function(){var t=new Date(this.start);return g.timezone.apply(t,"Etc/UTC")},endDate:function(){var t=new Date(this.end);return g.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 T(){t=t?t:g.support.scrollbar();return t}function L(t,e,r){var n,i,o,s,a;for(n=t.length-1;n>=0;n--){i=E(t[n]);o=i.start;a=i.end;s=o<=e&&a>=e;if(s||o>=e&&a<=r||e<=o&&r>=o){if(o<e)e=o;if(a>r)r=a}}return z(t,e,r)}function E(t){return{start:t.start,end:t.end}}function z(t,e,r){var n=[];for(var i=0;i<t.length;i++){var o=E(t[i]);if(o.start<e&&o.end>e||o.start>=e&&o.end<=r)n.push(t[i])}return n}function V(t){return G(t)}function A(t){return G(t)}g.ui.SchedulerView=i.extend({init:function(t,e){i.fn.init.call(this,t,v.extend({},this.options,e));this._normalizeOptions();this._scrollbar=T();this._isRtl=g.support.isRtl(t);this._resizeHint=v();this._moveHint=v();this._cellId=g.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()},_normalizeOptions:function(){var t=this.options;if(t.startTime)t.startTime.setMilliseconds(0);if(t.endTime)t.endTime.setMilliseconds(0);if(t.workDayStart)t.workDayStart.setMilliseconds(0);if(t.workDayEnd)t.workDayEnd.setMilliseconds(0)},_isMobile:function(){var t=this.options;return t.mobile===true&&g.support.mobileOS||t.mobile==="phone"||t.mobile==="tablet"},_addResourceView:function(){var t=new D(this.groups.length,this._isRtl,this.options.enforceAllDaySlot);this.groups.push(t);return t},dateForTitle:function(){return g.format(this.options.selectedDateFormat,this.startDate(),this.endDate())},shortDateForTitle:function(){return g.format(this.options.selectedShortDateFormat,this.startDate(),this.endDate())},mobileDateForTitle:function(){return g.format(this.options.selectedMobileDateFormat||this.options.selectedShortDateFormat,this.startDate(),this.endDate())},_changeGroup:function(t,e){var r=e?"prevGroupSlot":"nextGroupSlot";var n=this[r](t.start,t.groupIndex,t.isAllDay);if(n)t.groupIndex+=e?-1:1;if(this._isGroupedByDate()&&!n)t.groupIndex=e?this.groups.length-1:0;return n},_changeDate:function(t,e,r){var n=this.groups[t.groupIndex];var i,o;if(r){i=n._getCollections(false);o=n.daySlotCollectionCount()?e.index-1:e.collectionIndex-1;if(o>=0)return i[o]._slots[i[o]._slots.length-1]}else{i=n._getCollections(n.daySlotCollectionCount());o=n.daySlotCollectionCount()?0:e.collectionIndex+1;var s=n.daySlotCollectionCount()?e.collectionIndex+1:0;if(i[o]&&i[o]._slots[s])return i[o]._slots[s]}},_changeGroupContinuously:function(){return null},_changeViewPeriod:function(){return false},_isInRange:function(t,e){if(!t||!e||!this.options.min||!this.options.max)return false;return r(t)<=r(this.options.min)||r(e)>=r(this.options.max)},_horizontalSlots:function(t,e,r,n){var i=n?"leftSlot":"rightSlot";var o={startSlot:e[0].start,endSlot:e[e.length-1].end};var s=this.groups[t.groupIndex];var u=this._isVerticallyGrouped();if(!r){var a=this._normalizeHorizontalSelection(t,e,n);if(a)o.startSlot=o.endSlot=a}if(this._isGroupedByDate()&&!r){var l=this._changeGroup(t,n);if(!l)o=this._getNextHorizontalRange(s,i,o);else o.startSlot=o.endSlot=l}else{o.startSlot=s[i](o.startSlot);o.endSlot=s[i](o.endSlot);if(!r&&!u&&(!o.startSlot||!o.endSlot))o.startSlot=o.endSlot=this._changeGroup(t,n)}var f;if((!o.startSlot||!o.endSlot)&&!this._isGroupedByDate()){f=this._continuousSlot(t,e,n);f=this._changeGroupContinuously(t,f,r,n);if(f)o.startSlot=o.endSlot=f}return o},_getNextHorizontalRange:function(t,e,r){if(!this._isVerticallyGrouped()){r.startSlot=t[e](r.startSlot);r.endSlot=t[e](r.endSlot)}return r},_verticalSlots:function(t,e,r,n){var i=this.groups[t.groupIndex];var o;var s={startSlot:e[0].start,endSlot:e[e.length-1].end};if(!r){o=this._normalizeVerticalSelection(t,e,n);if(o)s.startSlot=s.endSlot=o}var a=n?"upSlot":"downSlot";s=this._getNextVerticalRange(i,a,s,r);if(!r&&this._isVerticallyGrouped()&&(!s.startSlot||!s.endSlot))if(this._isGroupedByDate())s.startSlot=s.endSlot=this._changeDate(t,o,n);else s.startSlot=s.endSlot=this._changeGroup(t,n);return s},_getNextVerticalRange:function(t,e,r,n){r.startSlot=t[e](r.startSlot,n);r.endSlot=t[e](r.endSlot,n);return r},_normalizeHorizontalSelection:function(){return null},_normalizeVerticalSelection:function(t,e,r){var n;if(r)n=e[0].start;else n=e[e.length-1].end;return n},_continuousSlot:function(){return null},_footer:function(){var s=this;var a=s.options;if(s._isMobile()){var t='<div class="k-scheduler-footer k-toolbar">';t+='<span class="k-scheduler-today"><a href="#" class="k-link">';t+=a.messages.today+"</a></span>";t+="</div>";s.footer=v(t).appendTo(s.element)}if(s.footer)s.footer.on("click"+o,".k-scheduler-today",function(t){t.preventDefault();var e=s.options.timezone;var r="today";var n=new Date;var i;if(e){var o=g.timezone.offset(n,e);i=g.timezone.convert(n,n.getTimezoneOffset(),o)}else i=n;s.trigger("navigate",{view:s.name||a.name,action:r,date:i})})},constrainSelection:function(t){var e=this.groups[0];var r;if(!this.inRange(t)){r=e.firstSlot();t.isAllDay=r.isDaySlot;t.start=r.startDate();t.end=r.endDate()}else if(!e.daySlotCollectionCount())t.isAllDay=false;else if(!e.timeSlotCollectionCount())t.isAllDay=true;if(!this.groups[t.groupIndex])t.groupIndex=0},move:function(t,e,r){var n=false;var i=this.groups[t.groupIndex];var u=this._isGroupedByDate()&&this._isVerticallyGrouped();if(!i.timeSlotCollectionCount())t.isAllDay=true;var o=i.ranges(t.start,t.end,t.isAllDay,false);var s,a,l,f;if(e===d.DOWN||e===d.UP){n=true;l=e===d.UP;this._updateDirection(t,o,r,l,true);f=this._verticalSlots(t,o,r,l);if(!f.startSlot&&!r&&this._changeViewPeriod(t,l,!u))return n}else if(e===d.LEFT||e===d.RIGHT){n=true;l=e===d.LEFT;this._updateDirection(t,o,r,l,false);f=this._horizontalSlots(t,o,r,l);if(!f.startSlot&&!r&&this._changeViewPeriod(t,l,u))return n}if(n){s=f.startSlot;a=f.endSlot;if(r){var h=t.backward;if(h&&s)t.start=s.startDate();else if(!h&&a)t.end=a.endDate()}else if(s&&a){t.isAllDay=s.isDaySlot;t.start=s.startDate();t.end=a.endDate()}t.events=[]}return n},moveToEventInGroup:function(u,t,e,r){var n=u._continuousEvents||[];var h,i;var o=r?-1:1;var s=n.length;var a=r?s-1:0;var l,f;if(e.length){f=e[e.length-1];if(r){for(l=0;l<n.length;l++)if(n[l].uid===f)a=l+o}else for(l=n.length-1;l>-1;l--)if(n[l].uid===f)a=l+o}while(a<s&&a>-1){i=n[a];if(!r&&i.start.startDate()>=t.startDate()||r&&i.start.startDate()<=t.startDate())if(i&&v.inArray(i.uid,e)===-1){h=!!i;break}a+=o}return i},moveToEvent:function(t,e){var r=t.groupIndex;var n=this.groups[r];var i=n.ranges(t.start,t.end,this.name==="month"||t.isAllDay,false)[0].start;var u=this.groups.length;var o=e?-1:1;var s=t.events;var a;if(this._isGroupedByDate()){var h=this._getAllEvents();var c=this._getUniqueEvents(h);var l=this._getSortedEvents(c);if(s.length===0){var d=this._getNextEventIndexBySlot(i,l,r);if(e)d--;a=l[d]}else{var f=this._getStartIdx(s,l);while(f<l.length&&f>-1){if(s.length>0)i=this._getSelectedSlot(i,l,a,f,o,e);if(!i)break;if(!e&&l[f].start.startDate()>=i.startDate()||e&&l[f].start.startDate()<=i.startDate())if(s[0]!=l[f].uid){a=l[f];break}f+=o}}}else while(r<u&&r>-1){a=this.moveToEventInGroup(n,i,s,e);r+=o;n=this.groups[r];if(!n||a)break;s=[];if(e)i=n.lastSlot();else i=n.firstSlot(true)}if(a){t.events=[a.uid];t.start=a.start.startDate();t.end=a.end.endDate();t.isAllDay=a.start.isDaySlot;t.groupIndex=a.start.groupIndex;t.eventElement=a.element[0]}return!!a},current:function(t){if(t!==undefined){this._current=t;if(this.content.has(t))this._scrollTo(t,this.content[0])}else return this._current},select:function(t){this.clearSelection();if(!this._selectEvents(t))this._selectSlots(t)},_getNextEventIndexBySlot:function(t,e,r){var n=0;var i=g.date.getDate(t.startDate());for(var o=0;o<e.length;o++){var s=g.date.getDate(e[o].start.startDate());if(i>s){n++;continue}if(i.getTime()===s.getTime()&&r>e[o].start.groupIndex){n++;continue}if(i.getTime()===s.getTime()&&r>=e[o].start.groupIndex&&t.startDate()>e[o].start.startDate()){n++;continue}break}return n},_getSelectedSlot:function(t,e,r,n,i,o){if(e[n+i]&&e[n].start.groupIndex!==e[n+i].start.groupIndex){var s=e[n+i].start.groupIndex;var a=this.groups[s];if(!a||r)t=null;if(o)t=a.lastSlot();else t=a.firstSlot(true)}return t},_getStartIdx:function(t,e){var r=0;v.each(e,function(){if(this.uid===t[0])return false;r++});return r},_getAllEvents:function(){var t=[];var e=this.groups;for(var r=0;r<e.length;r++)if(e[r]._continuousEvents)t=t.concat(e[r]._continuousEvents);return t},_getUniqueEvents:function(t){var e=[];for(var r=0;r<t.length;r++){var n=false;for(var i=0;i<e.length;i++)if(t[r].uid===e[i].uid){n=true;break}if(!n)e.push(t[r])}return e},_getSortedEvents:function(t){return t.sort(function(t,e){var r=t.start.startDate();var n=e.start.startDate();var i=g.date.getDate(r)-g.date.getDate(n);if(i===0)i=t.start.groupIndex-e.start.groupIndex;if(i===0)i=r.getTime()-n.getTime();if(i===0){if(t.start.isDaySlot&&!e.start.isDaySlot)i=-1;if(!t.start.isDaySlot&&e.start.isDaySlot)i=1}if(i===0)i=v(t.element).index()-v(e.element).index();return i})},_selectSlots:function(t){var e=t.isAllDay;var r=this.groups[t.groupIndex];if(!r.timeSlotCollectionCount())e=true;this._selectedSlots=[];var n=r.ranges(t.start,t.end,e,false);var i;var o;for(var s=0;s<n.length;s++){var a=n[s];var l=a.collection;for(var f=a.start.index;f<=a.end.index;f++){o=l.at(f);i=o.element;F(i);this._selectedSlots.push({start:o.startDate(),end:o.endDate(),element:i})}}if(t.backward)i=n[0].start.element;this.current(i)},_selectEvents:function(t){var e=false;var r=t.events;var n=this._getAllEvents();var i,o,s=n.length;if(!r[0]||!n[0])return e;var a=v();t.events=[];for(i=0;i<s;i++)if(v.inArray(n[i].uid,r)>-1){o=n[i];a=a.add(o.element);if(t.events.indexOf(o.uid)===-1)t.events.push(o.uid)}if(a[0]){a.addClass("k-state-selected");if(t.eventElement)this.current(t.eventElement);else this.current(a.last()[0]);this._selectedSlots=[];e=true}return e},inRange:function(t){var e=this.startDate();var r=g.date.addDays(this.endDate(),1);var n=t.start;var i=t.end;return e<=n&&n<r&&e<i&&i<=r},_resourceValue:function(t,e){if(t.valuePrimitive)e=g.getter(t.dataValueField)(e);return e},_setResourceValue:function(t,e,r){var n=t.value,i;if(e.multiple)n=[n];i=g.setter(e.field);i(r,n)},_resourceBySlot:function(u){var t=this.groupedResources;var e={};if(t.length){var h=u.groupIndex,r=this.options.group,c=r.date||r.orientation==="horizontal"?"columns":"rows",d=c==="rows"?this.rowLevels:this.columnLevels,v=r.date&&r.orientation==="horizontal"?1:0,n=d[t.length-1+v],i=t[t.length-1],o=n[h],s,a,l,f;this._setResourceValue(o,i,e);for(l=t.length-2;l>=0;l--){n=d[l+v];i=t[l];s=0;for(f=0;f<n.length;f++){o=n[f];a=o[c].length;if(a>h-s){this._setResourceValue(o,i,e);f=n.length}else s+=a}}}return e},_createResizeHint:function(t,e,r,n){return v(C).css({left:t,top:e,width:r,height:n})},_removeResizeHint:function(){this._resizeHint.remove();this._resizeHint=v()},_removeMoveHint:function(t){if(t){this._moveHint.filter("[data-uid='"+t+"']").remove();this._moveHint=this._moveHint.filter("[data-uid!='"+t+"']")}else{this._moveHint.remove();this._moveHint=v()}},_scrollTo:function(t,e){var r=t.offsetTop,n=t.offsetHeight,i=e.scrollTop,o=e.clientHeight,s=r+n,a=0;if(i>r)a=r;else if(s>i+o)if(n<=o)a=s-o;else a=r;else a=i;e.scrollTop=a},_inverseEventColor:function(t){var e=t.css("color");var r=new l(e).isDark();var n=t.css("background-color");var i=new l(n).isDark();if(r==i)t.addClass(s)},_eventTmpl:function(t,e){var r=this.options,n=v.extend({},g.Template,r.templateSettings),i=n.paramName,o="",s=typeof t,a={storage:{},count:0};if(s==="function"){a.storage["tmpl"+a.count]=t;o+="#=this.tmpl"+a.count+"("+i+")#";a.count++}else if(s==="string")o+=t;var l=g.template(g.format(e,o),n);if(a.count>0)l=l.bind(a.storage);return l},eventResources:function(u){var t=[],e=this.options;if(!e.resources)return t;for(var r=0;r<e.resources.length;r++){var n=e.resources[r];var h=n.field;var i=g.getter(h)(u);if(i==null)continue;if(!n.multiple)i=[i];var o=n.dataSource.view();for(var s=0;s<i.length;s++){var a=null;var l=i[s];if(!n.valuePrimitive)l=g.getter(n.dataValueField)(l);for(var f=0;f<o.length;f++)if(o[f].get(n.dataValueField)==l){a=o[f];break}if(a!==null){var c=g.getter(n.dataColorField)(a);t.push({field:n.field,title:n.title,name:n.name,text:g.getter(n.dataTextField)(a),value:l,color:c})}}}return t},createLayout:function(t){var e=-1;if(!t.rows)t.rows=[];for(var r=0;r<t.rows.length;r++)if(t.rows[r].allDay){e=r;break}var n=t.rows[e];if(e>=0)t.rows.splice(e,1);var i=this.columnLevels=h(t,"columns");var o=this.rowLevels=h(t,"rows");if(this._isVirtualized())this._trimRowLevels(o);this.table=v('<table role="presentation" class="k-scheduler-layout k-scheduler-'+this.name+'view"><tbody></tbody></table>');var s=o[o.length-1].length;this.table.find("tbody").first().append(this._topSection(i,n,s));this.table.find("tbody").first().append(this._bottomSection(i,o,s));this.element.append(this.table);if(this._isVirtualized())this._updateDomRowLevels();if(this._isMobile()&&i.length>1&&this._groupOrientation()==="horizontal"&&g._outerWidth(v(window))<f){this.table.find(".k-scheduler-content .k-scheduler-table").width(i[i.length-2].length*100+"%");this.table.find(".k-scheduler-header .k-scheduler-table").width(i[i.length-2].length*100+"%")}this._scroller()},_isVirtualized:function(){return this.options.virtual&&this.rowLevels.length>1&&this._isVerticallyGrouped()},_trimRowLevels:function(t){var e=t[t.length-2];var r=this.cachedRowLevels||[];var n;this._hasContentToRender=true;var i=function(t,e){var r=t[e-1].length>0,n,i;if(r){n=t[e-1][0];i=t[e][0].parentValue;return n.value!==i}else return true};for(var o=t.length-2;o>=0;o--){var s=false;if(o>0&&i(t,o)){s=true;n=o}r[o]=t[o].splice(1);if(o<t.length-2&&t[o][0].rows.length!=1)t[o][0].rows=t[o+1];if(s)break}r[t.length-1]=t[t.length-1].splice(e[0].rows.length);this.cachedRowLevels=r;if(!r[r.length-1].length)this._hasContentToRender=false;return{levelMarker:n||0,rowLevels:t}},createNextLayout:function(){var t=[];var e;var r;var n;var i;for(var o=0;o<this.cachedRowLevels.length;o++)t[o]=this.cachedRowLevels[o];e=this._trimRowLevels(t);r=e.rowLevels.splice(e.levelMarker);n=e.levelMarker;i=r[r.length-1].length;delete this._height;for(var s=n;s<this.rowLevels.length;s++)this.rowLevels[s]=this.rowLevels[s].concat(r[s-n]);this.table.find(".k-scheduler-times").last().find("tbody").append(this._times(r,i,this._isMobile()).find("tr"));this._updateDomRowLevels();if(n>0)for(s=0;s<n;s++){var a=this.table.find("[data-row-level="+s+"]").last();var l=parseInt(a.attr("rowspan"),10)+i;a.attr("rowspan",l)}this._virtualContent(r,this.columnLevels);this.render(this._cachedEvents)},_tryRenderContent:function(){var t=this;var e=t.table.innerHeight();var r=t.content.find("table").innerHeight();var n=t.content.scrollTop();while(t._hasContentToRender&&r-e<n){t.createNextLayout();r=t.content.find("table").innerHeight()}},_updateDomRowLevels:function(){var t=this;var e=t.times.find(".k-scheduler-group-cell:not([data-row-level])");if(!this._rowLevelIndices){this._rowLevelIndices=e.map(function(t,e){v(e).attr("data-row-level",t);return t}).toArray().reverse();return}e=e.toArray().reverse();for(var r=0;r<=e.length;r++)v(e[r]).attr("data-row-level",this._rowLevelIndices[r])},refreshLayout:function(){var t=this,e=t.element.find("> .k-scheduler-toolbar"),r=t.element.innerHeight(),n=this._scrollbar,i=0,o=this._isRtl?"left":"right";for(var s=0;s<e.length;s++)r-=c(e.eq(s));if(t.datesHeader)i=c(t.datesHeader);if(t.timesHeader&&c(t.timesHeader)>i)i=c(t.timesHeader);if(t.datesHeader&&t.timesHeader){var a=t.datesHeader.find("table").first().find("tr");t.timesHeader.find("tr").height(function(t){v(this).height(a.eq(t).height())})}if(i)r-=i;if(t.footer)r-=c(t.footer);var u=function(t){var e,r;if(t[0].style.height)return true;else e=t.height();t.height("auto");r=t.height();if(e!=r){t.height("");return true}t.height("");return false};var l=t.content[0],h=!g.support.kineticScrollNeeded?n:0;if(u(t.element)){if(r>n*2)t.content.height(r);else t.content.height(n*2+1);if(t.times){t.times.height(l.clientHeight);var f=t.times.find("table");if(f.length)f.height(t.content.find("table")[0].clientHeight)}}if(t.table){if(l.offsetWidth-l.clientWidth>0){t.table.addClass("k-scrollbar-v");t.datesHeader.css("padding-"+o,h-parseInt(t.datesHeader.children().css("border-"+o+"-width"),10))}else t.datesHeader.css("padding-"+o,"0");if(l.offsetHeight-l.clientHeight>0||l.clientHeight>t.content.children(".k-scheduler-table").height())t.table.addClass("k-scrollbar-h");else t.table.removeClass("k-scrollbar-h")}},_topSection:function(t,e,r){var n=v("<tr>");this.timesHeader=S(t.length,e,r);this.datesHeader=this._datesHeader(t,e);var i=this.datesHeader.find(".k-nav-day");if(i.length)i.closest("tr").addClass("k-scheduler-date-group");if(this._isMobile()){n.addClass("k-mobile-header");n.addClass("k-mobile-"+this._groupOrientation()+"-header")}return v(n).append(this.timesHeader.add(this.datesHeader).wrap("<td>").parent())},_bottomSection:function(t,e,r){this.times=this._times(e,r,this._isMobile());this.content=y(t[t.length-1],e[e.length-1]);return v("<tr>").append(this.times.add(this.content).wrap("<td>").parent())},_scroller:function(){var e=this;this.content.on("scroll"+o,function(){g.scrollLeft(e.datesHeader.find(">.k-scheduler-header-wrap"),this.scrollLeft);e.times.scrollTop(this.scrollTop);if(e._isVirtualized())e._tryRenderContent()});var t=g.touchScroller(this.content,{avoidScrolling:function(t){return v(t.event.target).closest(".k-event.k-event-active").length>0}});if(t&&t.movable){this._touchScroller=t;this.content=t.scrollElement;t.movable.bind("change",function(t){g.scrollLeft(e.datesHeader.find(">.k-scheduler-header-wrap"),-t.sender.x);e.times.scrollTop(-t.sender.y);if(e._isVirtualized())e._tryRenderContent()})}},_resourcesForGroups:function(){var t=[];var e=this.options.group;var r=this.options.resources;e=e&&e.resources?e.resources:[];if(r&&e.length)for(var n=0,i=r.length;n<i;n++)for(var o=0,s=e.length;o<s;o++)if(r[n].name===e[o])t.push(r[n]);this.groupedResources=t},_createDateLayout:function(t,e,r){return B("rows",t,e,r)},_createColumnsLayout:function(t,e,r,n,i,o){return _("columns",t,e,r,n,i,o)},_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&&this._groupOrientation()==="vertical"},_createRowsLayout:function(t,e,r,n){return _("rows",t,e,r,n)},selectionByElement:function(){return null},clearSelection:function(){this.content.find(".k-state-selected").removeAttr("id").removeClass("k-state-selected")},destroy:function(){var t=this;i.fn.destroy.call(this);if(t.table){g.destroy(t.table);t.table.remove()}if(t.footer){g.destroy(t.footer);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 g.getCulture().calendars.standard},prevGroupSlot:function(t,e,r){var n;var i=this.groups[e];var o=i.ranges(t,t,r,false)[0].start;if(e<=0)return;if(this._isGroupedByDate())return o;if(this._isVerticallyGrouped())if(!i.timeSlotCollectionCount()){n=i._collection(i.daySlotCollectionCount()-1,true);return n.at(o.index)}else{n=i._collection(r?o.index:o.collectionIndex,false);return n.last()}else if(!i.timeSlotCollectionCount()){n=i._collection(o.collectionIndex,true);return n.last()}else{n=i._collection(r?0:i.timeSlotCollectionCount()-1,r);return r?n.last():n.at(o.index)}},nextGroupSlot:function(t,e,r){var n;var i=this.groups[e];var o=i.ranges(t,t,r,false)[0].start;var s;if(e>=this.groups.length-1)return;if(this._isGroupedByDate())return o;if(this._isVerticallyGrouped())if(!i.timeSlotCollectionCount()){n=i._collection(0,true);return n.at(o.index)}else{s=i.daySlotCollectionCount();n=i._collection(s?0:o.collectionIndex,s);return r?n.first():n.at(o.collectionIndex)}else if(!i.timeSlotCollectionCount()){n=i._collection(o.collectionIndex,true);return n.first()}else{n=i._collection(0,r);return r?n.first():n.at(o.index)}},_eventOptionsForMove:function(){return{}},_updateEventForResize:function(){return},_updateEventForSelection:function(t){return t},_innerElements:function(t,s,a){var l=0,f=function(t){var e=t[a],r=t[s],n,i,o;if(e){l+=e;return}if(!r||r.length===0){l+=1;return}for(o=0;o<r.length;o++){n=r[o];i=n[s];if(i&&i[0])if(!i[0][s]||i[0][s].length===0)l+=i.length;else f(n);else l+=1}};f(t);return l},_times:function(t,e,u){var h=this;var r=new Array(e).join().split(",");var n=[];var i;for(var o=0;o<t.length;o++){var c=t[o];var d=0;for(i=0;i<c.length;i++){var s=c[i];var a=s.className||"";var l=s.text;var f=h._innerElements(s,"rows");d+=f;if(s.allDay)a="k-scheduler-times-all-day";if(u&&a.indexOf("k-scheduler-group-cell")!==-1)l='<span class="k-scheduler-group-text">'+l+"</span>";r[d-f]+='<th class="'+a+'" rowspan="'+f+'">'+l+"</th>"}}for(i=0;i<e;i++)n.push(r[i]);if(e<1)return v();return v('<div class="k-scheduler-times">'+p(n)+"</div>")},_datesHeader:function(t,e){var u=this;var r=[];var n;for(var i=0;i<t.length;i++){var o=t[i];var s=[];for(n=0;n<o.length;n++){var a=o[n];var h=u._innerElements(a,"columns","colspan");s.push('<th colspan="'+(a.colspan||h)+'" class="'+(a.className||"")+'">'+a.text+"</th>")}r.push(s.join(""))}var l=[];if(e){var f=t[t.length-1];var c=[];var d=e.cellContent;for(n=0;n<f.length;n++)c.push('<td class="'+(f[n].className||"")+'">'+(d?d(n):" ")+"</td>");l.push(c.join(""))}return v('<div class="k-scheduler-header">'+'<div class="k-scheduler-header-wrap">'+p(r)+m(l,"k-scheduler-header-all-day")+"</div>"+"</div>")},_formatEventAriaLabel:function(t,e,r,n){var i=this.options.messages.ariaEventLabel,o=g.date.getDate(e).getTime()===g.date.getDate(r).getTime(),s;if(typeof i==="string")return g.format(i,t,e,e);s=(i.prefix+a+t+a+i.on+a+g.toString(e,"D")).trim();if(n&&o)return s+a+i.allDay;else if(n)return s+a+i.to+a+g.toString(r,"D")+a+i.allDay;else{s=s+a+i.at+a+g.toString(e,"t")+a+i.to+a;if(o)return s+g.toString(r,"t");else return s+g.toString(r,"D")+a+i.at+a+g.toString(r,"t")}}});var l=function(t){var e=this,r=l.formats,n,i,o,s,a;if(arguments.length===1){t=e.resolveColor(t);for(s=0;s<r.length;s++){n=r[s].re;i=r[s].process;o=n.exec(t);if(o){a=i(o);e.r=a[0];e.g=a[1];e.b=a[2]}}}else{e.r=arguments[0];e.g=arguments[1];e.b=arguments[2]}e.r=e.normalizeByte(e.r);e.g=e.normalizeByte(e.g);e.b=e.normalizeByte(e.b)};function G(t){var e=[];for(var r=0;r<t.length;r++){var n=t[r];var i=E(n);var o=null;for(var s=0,a=e.length;s<a;s++){var l=i.start>e[s].end;if(i.start<e[s].start||l){o=e[s];if(o.end<i.end)o.end=i.end;break}}if(!o){o={start:i.start,end:i.end,events:[]};e.push(o)}o.events.push(n)}return e}function B(i,t,o,s){var a=[];v.each(t,function(t,e){var r=e.className?"k-slot-cell "+e.className:"k-slot-cell";var n={text:e.text,className:r};if(s&&!e.minorTicks)n[i]=B(i,e.columns,o,s);else n[i]=o;a.push(n)});return a}function _(r,n,t,i,e,o,s){var a=n[0];var u=[];if(a){if(e&&t){v.each(e,function(t,e){if(o&&!e.minorTicks)e[r]=_(r,n,e.columns,i,e.columns,o,s);else e[r]=_(r,n,null,i,null,null,s)});u=e}else{var l=a.dataSource.view();l=l.filter(function(t){var e=g.getter(a.dataParentValueField)(t);return e===null||e===undefined||e===s});for(var f=0;f<l.length;f++){var h=g.getter(a.dataValueField)(l[f]);var c={text:i({text:g.htmlEncode(g.getter(a.dataTextField)(l[f])),color:g.getter(a.dataColorField)(l[f]),field:a.field,title:a.title,name:a.name,value:h}),className:"k-slot-cell k-scheduler-group-cell",parentValue:s,value:h};c[r]=_(r,n.slice(1),t,i,e,o,h);u.push(c)}}return u}return t}function M(r){return function(t){if(Array.isArray(t)||t instanceof g.data.ObservableArray){for(var e=0;e<t.length;e++)if(t[e]==r)return true;return false}return t==r}}l.prototype={resolveColor:function(t){t=t||"#000";if(t.charAt(0)=="#")t=t.substr(1,6);t=t.replace(/ /g,"");t=t.toLowerCase();t=l.namedColors[t]||t;return t},normalizeByte:function(t){return t<0||isNaN(t)?0:t>255?255:t},percBrightness:function(){var t=this;return u.sqrt(.241*t.r*t.r+.691*t.g*t.g+.068*t.b*t.b)},isDark:function(){var t=this;var e=t.percBrightness();return e<180}},l.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)]}}],l.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-state-selected/;function F(t){t.className=t.className.replace(W,"")+" k-state-selected"}return v.extend(n.SchedulerView,{createColumns:V,createRows:A,rangeIndex:E,collidingEvents:L,groupEqFilter:M}),window.kendo})?n.apply(e,r):n)||(t.exports=e)}});