13 lines
222 KiB
JavaScript
13 lines
222 KiB
JavaScript
|
/*!
|
||
|
* FullCalendar v4.0.0-alpha.2
|
||
|
* Docs & License: https://fullcalendar.io/
|
||
|
* (c) 2018 Adam Shaw
|
||
|
*/
|
||
|
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("superagent")):"function"==typeof define&&define.amd?define(["superagent"],t):"object"==typeof exports?exports.FullCalendar=t(require("superagent")):e.FullCalendar=t(e.superagent)}("undefined"!=typeof self?self:this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=164)}([,function(e,t){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};t.__extends=function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}},function(e,t,n){function r(e,t){t.left&&k.applyStyle(e,{borderLeftWidth:1,marginLeft:t.left-1}),t.right&&k.applyStyle(e,{borderRightWidth:1,marginRight:t.right-1})}function i(e){k.applyStyle(e,{marginLeft:"",marginRight:"",borderLeftWidth:"",borderRightWidth:""})}function o(){document.body.classList.add("fc-not-allowed")}function a(){document.body.classList.remove("fc-not-allowed")}function s(e,t,n){var r=Math.floor(t/e.length),i=Math.floor(t-r*(e.length-1)),o=[],a=[],s=[],u=0;l(e),e.forEach(function(t,n){var l=n===e.length-1?i:r,d=x.computeHeightAndMargins(t);d<l?(o.push(t),a.push(d),s.push(t.offsetHeight)):u+=d}),n&&(t-=u,r=Math.floor(t/o.length),i=Math.floor(t-r*(o.length-1))),o.forEach(function(e,t){var n=t===o.length-1?i:r,l=a[t],u=s[t],d=n-(l-u);l<n&&(e.style.height=d+"px")})}function l(e){e.forEach(function(e){e.style.height=""})}function u(e){var t=0;return e.forEach(function(e){var n=e.firstChild;if(n instanceof HTMLElement){var r=n.offsetWidth;r>t&&(t=r)}}),t++,e.forEach(function(e){e.style.width=t+"px"}),t}function d(e,t){var n={position:"relative",left:-1};k.applyStyle(e,n),k.applyStyle(t,n);var r=e.offsetHeight-t.offsetHeight,i={position:"",left:""};return k.applyStyle(e,i),k.applyStyle(t,i),r}function c(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",N.preventDefault)}function f(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",N.preventDefault)}function p(e){e.addEventListener("contextmenu",N.preventDefault)}function h(e){e.removeEventListener("contextmenu",N.preventDefault)}function g(e){var t,n,r=[],i=[];for("string"==typeof e?i=e.split(/\s*,\s*/):"function"==typeof e?i=[e]:Array.isArray(e)&&(i=e),t=0;t<i.length;t++)n=i[t],"string"==typeof n?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r}function v(e,t,n){var r,i;for(r=0;r<n.length;r++)if(i=y(e,t,n[r]))return i;return 0}function y(e,t,n){return n.func?n.func(e,t):m(e[n.field],t[n.field])*(n.order||1)}function m(e,t){return e||t?null==t?-1:null==e?1:"string"==typeof e||"string"==typeof t?String(e).localeCompare(String(t)):e-t:0}function E(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=window.console;if(n&&n.log)return n.log.apply(n,e)}function S(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=window.console;return n&&n.warn?n.warn.apply(n,e):E.apply(null,e)}function b(e){return e.charAt(0).toUpperCase()+e.slice(1)}function D(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function w(e,t){return e-t}function T(e){return e%1==0}function C(e,t,n){if("function"==typeof e&&(e=[e]),e){var r=void 0,i=void 0;for(r=0;r<e.length;r++)i=e[r].apply(t,n)||i;return i}}function R(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++)if(void 0!==e[n])return e[n]}function M(e,t){var n,r,i,o,a,s=function(){var l=(new Date).valueOf()-o;l<t?n=setTimeout(s,t-l):(n=null,a=e.apply(i,r),i=r=null)};r
|
||
|
t.prototype.triggerWith=function(e,t,n){return this._handlers&&a.applyAll(this._handlers[e],t,n),this._oneHandlers&&(a.applyAll(this._oneHandlers[e],t,n),delete this._oneHandlers[e]),this},t.prototype.hasHandlers=function(e){return this._handlers&&this._handlers[e]&&this._handlers[e].length||this._oneHandlers&&this._oneHandlers[e]&&this._oneHandlers[e].length},t}(s.default);t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(9),o=n(3),a=n(140),s=n(6),l=n(10),u=n(28),d=n(14),c=n(4),f=n(53),p=n(11),h=n(15),g=n(29),v=n(20),y=n(39),m=0,E=function(e){function t(t,n){var r=e.call(this)||this;return r.isInteractable=!1,r.useEventCenter=!0,r.doesDragMirror=!1,r.doesDragHighlight=!1,r.fgSegSelector=".fc-event-container > *",r.bgSegSelector=".fc-bgevent",r.slicingType=null,r.isRtl=!1,r.emitter=new v.default,r.renderedFlags={},r.dirtySizeFlags={},r.needHitsDepth=0,r.dateProfile=null,r.businessHours=null,r.eventStore=null,r.eventUis=null,r.dateSelection=null,r.eventSelection="",r.eventDrag=null,r.eventResize=null,r.view=t||r,n&&(r.options=n),r.uid=String(m++),r.childrenByUid={},r.nextDayThreshold=l.createDuration(r.opt("nextDayThreshold")),r.isRtl="rtl"===r.opt("dir"),r.fillRendererClass&&(r.fillRenderer=new r.fillRendererClass(r)),r.eventRendererClass&&(r.eventRenderer=new r.eventRendererClass(r,r.fillRenderer)),r.mirrorRendererClass&&r.eventRenderer&&(r.mirrorRenderer=new r.mirrorRendererClass(r,r.eventRenderer)),r}return r.__extends(t,e),t.prototype.addChild=function(e){return!this.childrenByUid[e.uid]&&(this.childrenByUid[e.uid]=e,!0)},t.prototype.removeChild=function(e){return!!this.childrenByUid[e.uid]&&(delete this.childrenByUid[e.uid],!0)},t.prototype.updateSize=function(e,t,n){var r=this.dirtySizeFlags;(n||r.skeleton||r.dates||r.events)&&(this.updateBaseSize(e,t),this.buildPositionCaches()),(n||r.businessHours)&&this.computeBusinessHoursSize(),(n||r.dateSelection||r.eventDrag||r.eventResize)&&(this.computeHighlightSize(),this.computeMirrorSize()),(n||r.events)&&this.computeEventsSize(),(n||r.businessHours)&&this.assignBusinessHoursSize(),(n||r.dateSelection||r.eventDrag||r.eventResize)&&(this.assignHighlightSize(),this.assignMirrorSize()),(n||r.events)&&this.assignEventsSize(),this.dirtySizeFlags={},this.callChildren("updateSize",arguments)},t.prototype.updateBaseSize=function(e,t){},t.prototype.buildPositionCaches=function(){},t.prototype.requestPrepareHits=function(){this.needHitsDepth++||this.prepareHits()},t.prototype.requestReleaseHits=function(){--this.needHitsDepth||this.releaseHits()},t.prototype.prepareHits=function(){},t.prototype.releaseHits=function(){},t.prototype.queryHit=function(e,t){return null},t.prototype.bindGlobalHandlers=function(){this.isInteractable&&f.default.registerComponent(this)},t.prototype.unbindGlobalHandlers=function(){this.isInteractable&&f.default.unregisterComponent(this)},t.prototype.opt=function(e){return this.view.options[e]},t.prototype.publiclyTrigger=function(e,t){return this.getCalendar().publiclyTrigger(e,t)},t.prototype.publiclyTriggerAfterSizing=function(e,t){return this.getCalendar().publiclyTriggerAfterSizing(e,t)},t.prototype.hasPublicHandlers=function(e){return this.getCalendar().hasPublicHandlers(e)},t.prototype.triggerRenderedSegs=function(e,t){if(void 0===t&&(t=!1),this.hasPublicHandlers("eventPositioned"))for(var n=this.getCalendar(),r=0,i=e;r<i.length;r++){var o=i[r];this.publiclyTriggerAfterSizing("eventPositioned",[{event:new h.default(n,o.eventRange.def,o.eventRange.instance),isMirror:t,isStart:o.isStart,isEnd:o.isEnd,el:o.el,view:this}])}},t.prototype.triggerWillRemoveSegs=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];this.emitter.trigger("eventElRemove",r.el)}if(this.hasPublicHandlers("eventDestroy"))for(var i=this.getCalendar(),o=0,a=e;o<a.length;o++){var r=a[o];this.publiclyTrigger("eventDestroy",[{event:new h.default(i,r.eventRange.def,r.eventRange.instance),el:r.el,view:this}])}},t.prototype.render=function(e,t){var n=this.renderedFlags,r={skeleton:!1,dates:e.dateProfile!==this.dateProfile,events:e.eventStore!=
|
||
|
columnHeader:!0,defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",timeZoneImpl:null,locale:"en",agendaEventMinHeight:0,theme:!1,dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",eventLimit:!1,eventLimitClick:"popover",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5},t.rtlDefaults={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}};var o=["header","footer","buttonText","buttonIcons","themeButtonIcons"];t.mergeOptions=r},,,,,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(13),o=n(3),a=n(139),s=function(e){function t(t,n){var r=e.call(this,o.createElement("div",{className:"fc-scroller"}))||this;return r.overflowX=t,r.overflowY=n,r}return r.__extends(t,e),t.prototype.clear=function(){this.setHeight("auto"),this.applyOverflow()},t.prototype.removeElement=function(){o.removeElement(this.el)},t.prototype.applyOverflow=function(){o.applyStyle(this.el,{overflowX:this.overflowX,overflowY:this.overflowY})},t.prototype.lockOverflow=function(e){var t=this.overflowX,n=this.overflowY;e=e||this.getScrollbarWidths(),"auto"===t&&(t=e.bottom||this.canScrollHorizontally()?"scroll":"hidden"),"auto"===n&&(n=e.left||e.right||this.canScrollVertically()?"scroll":"hidden"),o.applyStyle(this.el,{overflowX:t,overflowY:n})},t.prototype.setHeight=function(e){o.applyStyleProp(this.el,"height",e)},t.prototype.getScrollbarWidths=function(){var e=i.computeEdges(this.el);return{left:e.scrollbarLeft,right:e.scrollbarRight,bottom:e.scrollbarBottom}},t}(a.ElementScrollController);t.default=s},function(e,t,n){function r(e){s.push(e)}function i(e,t,n){for(var r=0;r<s.length;r++){var i=s[r].parse(e,n,t);if(i)return{allDay:i.allDay,duration:i.duration,typeData:i.typeData,typeId:r}}return null}function o(e,t,n){var r=s[e.recurringDef.typeId],i=r.expand(e.recurringDef.typeData,e,t,n);return e.allDay&&(i=i.map(a.startOfDay)),i}Object.defineProperty(t,"__esModule",{value:!0});var a=n(6),s=[];t.registerRecurringType=r,t.parseRecurring=i,t.expandRecurringRanges=o},function(e,t,n){function r(e,t){return o(s(e,t.state.eventSources),y(t.opt("eventConstraint"),t),t.opt("eventOverlap"),t.opt("eventAllow"),t)}function i(e,t){return o([{dateSpan:e,event:null,constraint:null,overlap:null,allow:null}],y(t.opt("selectConstraint"),t),t.opt("selectOverlap"),t.opt("selectAllow"),t)}function o(e,t,n,r,i){for(var o=i.state,u=0,p=e;u<p.length;u++){var h=p[u];if(!l(h.dateSpan,h.constraint,i)||!l(h.dateSpan,t,i))return!1}for(var g=s(o.eventStore,o.eventSources),v=0,y=e;v<y.length;v++)for(var m=y[v],E=0,S=g;E<S.length;E++){var b=S[E];if((!m.event||!b.event||a(m.event,b.event))&&f(m.dateSpan,b.dateSpan)&&(!1===m.overlap||!1===b.overlap&&m.event||!d(b.event,m.event,n,i)))return!1}for(var D=0,w=e;D<w.length;D++){var h=w[D];if(!c(h.dateSpan,h.event,h.allow,i)||!c(h.dateSpan,h.event,r,i))return!1}return!0}function a(e,t){return e.instance.instanceId!==t.instance.instanceId&&!m.isEventDefsGrouped(e.def,t.def)}function s(e,t){return m.mapEventInstances(e,function(e,n){var r=t[n.sourceId],i=n.constraint,o=n.overlap;return null==i&&r&&(i=r.constraint),null==o&&r&&null==(o=r.overlap)&&(o=!0),{dateSpan:g(n,e),event:{def:n,instance:e},constraint:i,overlap:o,allow:r?r.allow:null}})}function l(e,t,n){if(null===t)return!0;for(var r=u(t,e,n),i=0,o=r;i<o.length;i++){if(p(o[i],e))return!0}return!1}function u(e,t,n){if("businessHours"===e){var r=v(t,n);return r=m.expandRecu
|
||
|
var t=this._view.calendar.dateEnv,n=this._view.getRangeOption("visibleRange",t.toDate(e));return!n||null!=n.start&&null!=n.end?n:null},e.prototype.buildRenderRange=function(e,t,n){return e},e.prototype.buildDateIncrement=function(e){var t,n=this.opt("dateIncrement");return n?o.createDuration(n):(t=this.opt("dateAlignment"))?o.createDuration(1,t):e||o.createDuration({days:1})},e}();t.default=s,t.isDateProfilesEqual=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(9),o=n(3),a=n(47),s=n(6),l=n(8),u=n(11),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.updateDayTable=function(){for(var e,t,n,r=this,i=r.view,o=r.dateProfile,a=o.renderRange.start,l=o.renderRange.end,u=-1,d=[],c=[];a<l;)i.isHiddenDay(a)?d.push(u+.5):(u++,d.push(u),c.push(a)),a=s.addDays(a,1);if(this.breakOnWeeks){for(t=c[0].getUTCDay(),e=1;e<c.length&&c[e].getUTCDay()!==t;e++);n=Math.ceil(c.length/e)}else n=1,e=c.length;this.dayDates=c,this.dayIndices=d,this.daysPerRow=e,this.rowCnt=n,this.updateDayTableCols()},t.prototype.updateDayTableCols=function(){this.colCnt=this.computeColCnt(),this.colHeadFormat=l.createFormatter(this.opt("columnHeaderFormat")||this.computeColHeadFormat())},t.prototype.computeColCnt=function(){return this.daysPerRow},t.prototype.getCellDate=function(e,t){return this.dayDates[this.getCellDayIndex(e,t)]},t.prototype.getCellRange=function(e,t){var n=this.getCellDate(e,t);return{start:n,end:s.addDays(n,1)}},t.prototype.getCellDayIndex=function(e,t){return e*this.daysPerRow+this.getColDayIndex(t)},t.prototype.getColDayIndex=function(e){return this.isRtl?this.colCnt-1-e:e},t.prototype.getDateDayIndex=function(e){var t=this.dayIndices,n=Math.floor(s.diffDays(this.dayDates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},t.prototype.computeColHeadFormat=function(){return this.rowCnt>1||this.colCnt>10?{weekday:"short"}:this.colCnt>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"}},t.prototype.sliceRangeByRow=function(e){var t,n,r,i,o,a=this.daysPerRow,l=this.getDateDayIndex(e.start),u=this.getDateDayIndex(s.addDays(e.end,-1)),d=[];for(t=0;t<this.rowCnt;t++)n=t*a,r=n+a-1,i=Math.max(l,n),o=Math.min(u,r),i=Math.ceil(i),o=Math.floor(o),i<=o&&d.push({row:t,firstRowDayIndex:i-n,lastRowDayIndex:o-n,isStart:i===l,isEnd:o===u});return d},t.prototype.sliceRangeByDay=function(e){var t,n,r,i,o,a,l=this.daysPerRow,u=this.getDateDayIndex(e.start),d=this.getDateDayIndex(s.addDays(e.end,-1)),c=[];for(t=0;t<this.rowCnt;t++)for(n=t*l,r=n+l-1,i=n;i<=r;i++)o=Math.max(u,i),a=Math.min(d,i),o=Math.ceil(o),a=Math.floor(a),o<=a&&c.push({row:t,firstRowDayIndex:o-n,lastRowDayIndex:a-n,isStart:o===u,isEnd:a===d});return c},t.prototype.renderHeadHtml=function(){var e=this.getTheme();return'<div class="fc-row '+e.getClass("headerRow")+'"><table class="'+e.getClass("tableGrid")+'"><thead>'+this.renderHeadTrHtml()+"</thead></table></div>"},t.prototype.renderHeadIntroHtml=function(){return this.renderIntroHtml()},t.prototype.renderHeadTrHtml=function(){return"<tr>"+(this.isRtl?"":this.renderHeadIntroHtml())+this.renderHeadDateCellsHtml()+(this.isRtl?this.renderHeadIntroHtml():"")+"</tr>"},t.prototype.renderHeadDateCellsHtml=function(){var e,t,n=[];for(e=0;e<this.colCnt;e++)t=this.getCellDate(0,e),n.push(this.renderHeadDateCellHtml(t));return n.join("")},t.prototype.renderHeadDateCellHtml=function(e,t,n){var r,o=this,a=o.view,l=o.getDateEnv(),d=o.dateProfile,c=u.rangeContainsMarker(d.activeRange,e),f=["fc-day-header",a.calendar.theme.getClass("widgetHeader")];return r="function"==typeof o.opt("columnHeaderHtml")?o.opt("columnHeaderHtml")(e):"function"==typeof o.opt("columnHeaderText")?i.htmlEscape(o.opt("columnHeaderText")(e)):i.htmlEscape(l.format(e,o.colHeadFormat)),1===o.rowCnt?f=f.concat(o.getDayClasses(e,!0)):f.push("fc-"+s.DAY_IDS[e.getUTCDay()]),'<th class="'+f.join(" ")+'"'+(1===(c&&o.rowCnt)?' data-date="'+l.formatIso(e,{omitTime:!0})+'"':"")+(t>1?' colspan="'+t+'"':"")+(n?" "+n:"")+">"+(c?a.buildGotoAnchorHtml({date:e,forceOff:o.rowC
|
||
|
n.dragging.setMirrorIsVisible(!e||!document.querySelector(".fc-mirror")),n.receivingCalendar=u,n.validMutation=d,n.mutatedRelevantEvents=c)}},this.handlePointerUp=function(){n.isDragging||n.cleanup()},this.handleDragEnd=function(e){if(n.isDragging){var t=n.component.getCalendar(),r=n.component.view,i=n.receivingCalendar,o=n.eventRange.def,a=n.eventRange.instance,s=new h.default(t,o,a),l=n.relevantEvents,u=n.mutatedRelevantEvents;n.clearDrag(),t.publiclyTrigger("eventDragStop",[{el:n.subjectSeg.el,event:s,jsEvent:e.origEvent,view:r}]),n.validMutation?i===t?(t.dispatch({type:"MERGE_EVENTS",eventStore:u}),t.publiclyTrigger("eventDrop",[{el:e.subjectEl,delta:n.validMutation.startDelta,prevEvent:s,event:new h.default(t,u.defs[o.defId],a?u.instances[a.instanceId]:null),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:l})},jsEvent:e.origEvent,view:r}])):i&&(t.publiclyTrigger("eventLeave",[{draggedEl:e.subjectEl,event:s,view:r}]),t.dispatch({type:"REMOVE_EVENT_INSTANCES",instances:n.mutatedRelevantEvents.instances}),i.dispatch({type:"MERGE_EVENTS",eventStore:n.mutatedRelevantEvents}),e.isTouch&&i.dispatch({type:"SELECT_EVENT",eventInstanceId:a.instanceId}),i.publiclyTrigger("eventReceive",[{draggedEl:e.subjectEl,event:new h.default(i,o,a),view:n.hitDragging.finalHit.component}])):t.publiclyTrigger("_noEventDrop")}n.cleanup()},this.component=t;var u=this.dragging=new c.default(t.el);u.pointer.selector=e.SELECTOR,u.touchScrollAllowed=!1,u.autoScroller.isEnabled=t.opt("dragScroll");var g=this.hitDragging=new a.default(this.dragging,l.default.componentHash);g.useSubjectCenter=t.useEventCenter,g.emitter.on("pointerdown",this.handlePointerDown),g.emitter.on("dragstart",this.handleDragStart),g.emitter.on("hitupdate",this.handleHitUpdate),g.emitter.on("pointerup",this.handlePointerUp),g.emitter.on("dragend",this.handleDragEnd)}return e.prototype.destroy=function(){this.dragging.destroy()},e.prototype.displayDrag=function(e,t){var n=this.component.getCalendar(),r=this.receivingCalendar;r&&r!==e&&(r===n?r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:f.createEmptyEventStore(),isEvent:!0,origSeg:t.origSeg}}):r.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},e.prototype.clearDrag=function(){var e=this.component.getCalendar(),t=this.receivingCalendar;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})},e.prototype.cleanup=function(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingCalendar=null,this.validMutation=null,this.mutatedRelevantEvents=null},e.SELECTOR=".fc-draggable, .fc-resizable",e}();t.default=g},function(e,t){function n(e,t){o[e]=t}function r(e,t){var n=o[e];return n?new n(t):null}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.name=e}return e}();t.NamedTimeZoneImpl=i;var o={};t.registerNamedTimeZoneImpl=n,t.createNamedTimeZoneImpl=r},function(e,t){function n(e){var t=null,n=!1,o=r.exec(e);o&&(n=!o[1],n?e+="T00:00:00Z":e=e.replace(i,function(e,n,r,i,o){return t=n?0:(60*parseInt(i,10)+parseInt(o||0,10))*("-"===r?-1:1),""})+"Z");var a=new Date(e);return isNaN(a.valueOf())?null:{marker:a,isTimeUnspecified:n,timeZoneOffset:t}}Object.defineProperty(t,"__esModule",{value:!0});var r=/^\s*\d{4}-\d\d-\d\d([T ]\d)?/,i=/(?:(Z)|([-+])(\d\d)(?::(\d\d))?)$/;t.parse=n},function(e,t,n){function r(e,t){return S.filterEventStoreDefs(e,function(e){return!e.allDay||D.hasBgRendering(t[e.defId])})}function i(e,t){return S.filterEventStoreDefs(e,function(e){return e.allDay})}function o(e){return e?{affectedEvents:e.affectedEvents,mutatedEvents:r(e.mutatedEvents,e.eventUis),eventUis:e.eventUis,isEvent:e.isEvent,origSeg:e.origSeg}:null}function a(e){return e?{affectedEvents:e.affectedEvents,mutatedEvents:i(e.mutatedEvents,e.eventUis),eventUis:e.eventUis,isEvent:e.isEvent,origSeg:e.origSeg}:null}Object.defineProperty(t,"__esModule",{value:!0});var s,l,u=n(1),d=n(9),c=n(4),f=n(3),p=n(2),h=n(37),g=n(42),v=n(147),y=n(62),m=n(10),E=n(8),S=n(14),b=n(5
|
||
|
;var f=this.format(e,n),p=this.format(t,n);if(f===p)return f;var h=d(o,l),g=r(h,a,n),v=g(e),y=g(t),m=c(f,v,p,y),E=a.separator||"";return m?m.before+v+E+y+m.after:f+E+p},e.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";default:return"day"}},e}();t.NativeFormatter=w},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(8),i=function(){function e(e){this.func=e}return e.prototype.format=function(e,t){return this.func(r.createVerboseFormattingArg(e,null,t))},e.prototype.formatRange=function(e,t,n){return this.func(r.createVerboseFormattingArg(e,t,n))},e}();t.FuncFormatter=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(30),i=n(31),o=function(){function e(e){var t=this;this.handlePointerDown=function(e){var n=t.dragging;n.setIgnoreMove(!t.component.isValidDateDownEl(n.pointer.downEl))},this.handleDragEnd=function(e){var n=t.component;if(!t.dragging.pointer.wasTouchScroll){var r=t.hitDragging,o=r.initialHit,a=r.finalHit;o&&a&&i.isHitsEqual(o,a)&&n.getCalendar().triggerDayClick(o.dateSpan,o.dayEl,n.view,e.origEvent)}},this.component=e,this.dragging=new r.default(e.el),this.dragging.autoScroller.isEnabled=!1;var n=this.hitDragging=new i.default(this.dragging,e);n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}return e.prototype.destroy=function(){this.dragging.destroy()},e}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),i=n(19),o=function(){function e(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}return e.prototype.start=function(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.pageXOffset,this.origScreenY=n-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()},e.prototype.handleMove=function(e,t){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=t-window.pageYOffset-this.origScreenY,this.updateElPosition()},e.prototype.setIsVisible=function(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)},e.prototype.stop=function(e,t){var n=this,r=function(){n.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)},e.prototype.doRevertAnimation=function(e,t){var n=this.mirrorEl,o=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",r.applyStyle(n,{left:o.left,top:o.top}),i.whenTransitionDone(n,function(){n.style.transition="",e()})},e.prototype.cleanup=function(){this.mirrorEl&&(r.removeElement(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null},e.prototype.updateElPosition=function(){this.sourceEl&&this.isVisible&&r.applyStyle(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})},e.prototype.getMirrorEl=function(){var e=this.sourceElRect,t=this.mirrorEl;return t||(t=this.mirrorEl=this.sourceEl.cloneNode(!0),t.classList.add("fc-unselectable"),t.classList.add("fc-dragging"),r.applyStyle(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t},e}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(142),i="function"==typeof performance?performance.now:Date.now,o=function(){function e(){var e=this;this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=function(){if(e.isAnimating){var t=e.computeBestEdge(e.poi
|
||
|
this.title=null,this.activeButton=null,this.isTodayEnabled=null,this.isPrevEnabled=null,this.isNextEnabled=null,e.prototype.removeElement.call(this)},t.prototype.renderSection=function(e,t){var n=this,r=this.calendar,a=r.theme,s=r.optionsManager,l=r.viewSpecs,u=o.createElement("div",{className:"fc-"+e}),d=s.computed.customButtons||{},c=s.overrides.buttonText||{},f=s.computed.buttonText||{};return t&&t.split(" ").forEach(function(e,t){var s,p=[],h=!0;if(e.split(",").forEach(function(e,t){var s,u,g,v,y,m,E,S,b;if("title"===e)p.push(o.htmlToElement("<h2> </h2>")),h=!1;else if((s=d[e])?(g=function(e){s.click&&s.click.call(S,e)},(v=a.getCustomButtonIconClass(s))||(v=a.getIconClass(e))||(y=s.text)):(u=l[e])?(n.viewsWithButtons.push(e),g=function(){r.changeView(e)},(y=u.buttonTextOverride)||(v=a.getIconClass(e))||(y=u.buttonTextDefault)):r[e]&&(g=function(){r[e]()},(y=c[e])||(v=a.getIconClass(e))||(y=f[e])),g){E=["fc-"+e+"-button",a.getClass("button"),a.getClass("stateDefault")],y?(m=i.htmlEscape(y),b=""):v&&(m="<span class='"+v+"'></span>",b=' aria-label="'+e+'"'),S=o.htmlToElement('<button type="button" class="'+E.join(" ")+'"'+b+">"+m+"</button>");var D=function(){var e=a.getClass("stateActive"),t=a.getClass("stateDisabled");return!(e&&S.classList.contains(e)||t&&S.classList.contains(t))};S.addEventListener("click",function(e){var t=a.getClass("stateDisabled"),n=a.getClass("stateHover");t&&S.classList.contains(t)||(g(e),!D()&&n&&S.classList.remove(n))}),S.addEventListener("mousedown",function(e){var t=a.getClass("stateDown");D()&&t&&S.classList.add(t)}),S.addEventListener("mouseup",function(e){var t=a.getClass("stateDown");t&&S.classList.remove(t)}),S.addEventListener("mouseenter",function(e){var t=a.getClass("stateHover");D()&&t&&S.classList.add(t)}),S.addEventListener("mouseleave",function(e){var t=a.getClass("stateHover"),n=a.getClass("stateDown");t&&S.classList.remove(t),n&&S.classList.remove(n)}),p.push(S)}}),h&&p.length>0){var g=a.getClass("cornerLeft"),v=a.getClass("cornerRight");g&&p[0].classList.add(g),v&&p[p.length-1].classList.add(v)}if(p.length>1){s=document.createElement("div");var y=a.getClass("buttonGroup");h&&y&&s.classList.add(y),o.appendToElement(s,p),u.appendChild(s)}else o.appendToElement(u,p)}),u},t.prototype.updateTitle=function(e){o.findElements(this.el,"h2").forEach(function(t){t.innerText=e})},t.prototype.activateButton=function(e){var t=this;o.findElements(this.el,".fc-"+e+"-button").forEach(function(e){e.classList.add(t.calendar.theme.getClass("stateActive"))})},t.prototype.deactivateButton=function(e){var t=this;o.findElements(this.el,".fc-"+e+"-button").forEach(function(e){e.classList.remove(t.calendar.theme.getClass("stateActive"))})},t.prototype.disableButton=function(e){var t=this;o.findElements(this.el,".fc-"+e+"-button").forEach(function(e){e.disabled=!0,e.classList.add(t.calendar.theme.getClass("stateDisabled"))})},t.prototype.enableButton=function(e){var t=this;o.findElements(this.el,".fc-"+e+"-button").forEach(function(e){e.disabled=!1,e.classList.remove(t.calendar.theme.getClass("stateDisabled"))})},t.prototype.getViewsWithButtons=function(){return this.viewsWithButtons},t}(a.default);t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),i=n(2),o=n(32),a=n(41),s=function(){function e(e){this.overrides=r.assignTo({},e),this.dynamicOverrides={},this.compute()}return e.prototype.add=function(e,t){this.dynamicOverrides[e]=t,this.compute()},e.prototype.compute=function(){var e,t,n,r;e=i.firstDefined(this.dynamicOverrides.locale,this.overrides.locale,o.globalDefaults.locale),t=a.getLocale(e).options,n=i.firstDefined(this.dynamicOverrides.dir,this.overrides.dir,t.dir),r="rtl"===n?o.rtlDefaults:{},this.dirDefaults=r,this.localeDefaults=t,this.computed=o.mergeOptions([o.globalDefaults,r,t,this.overrides,this.dynamicOverrides])},e}();t.default=s},function(e,t,n){function r(e,t){a[e]=t}function i(e){return new a[e]}Object.defineProperty(t,"__esModule",{value:!0});var o=n(6),a={};t.registerCalendarSystem=r,t.createCalendarSystem=i,r("gregory",function(){funct
|
||
|
duration:{month:1},listDayAltFormat:{weekday:"long"}}),r.defineView("listYear",{type:"list",duration:{year:1},listDayAltFormat:{weekday:"long"}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),n(22).registerEventSourceDef({ignoreRange:!0,parseMeta:function(e){return Array.isArray(e)?e:Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(208);n(22).registerEventSourceDef({parseMeta:function(e){return"function"==typeof e?e:"function"==typeof e.events?e.events:null},fetch:function(e,t,n){var i=e.calendar.dateEnv,o=e.eventSource.meta;r.unpromisify(o.bind(null,{start:i.toDate(e.range.start),end:i.toDate(e.range.end),startStr:i.formatIso(e.range.start),endStr:i.formatIso(e.range.end),timeZone:i.timeZone}),function(e){t({rawEvents:e})},n)}})},function(e,t){function n(e,t,n){var r=!1,i=function(){r||(r=!0,t.apply(this,arguments))},o=function(){r||(r=!0,n&&n.apply(this,arguments))},a=e(i,o);a&&"function"==typeof a.then&&a.then(i,o)}Object.defineProperty(t,"__esModule",{value:!0}),t.unpromisify=n},function(e,t,n){function r(e,t,n){var r,i,a,s,l=n.dateEnv,u={};return r=e.startParam,null==r&&(r=n.opt("startParam")),i=e.endParam,null==i&&(i=n.opt("endParam")),a=e.timeZoneParam,null==a&&(a=n.opt("timeZoneParam")),s="function"==typeof e.extraData?e.extraData():e.extraData||{},o.assignTo(u,s),u[r]=l.formatIso(t.start),u[i]=l.formatIso(t.end),"local"!==l.timeZone&&(u[a]=l.timeZone),u}Object.defineProperty(t,"__esModule",{value:!0});var i=n(64),o=n(4);n(22).registerEventSourceDef({parseMeta:function(e){if("string"==typeof e)e={url:e};else if(!e||"object"!=typeof e||!e.url)return null;return{url:e.url,method:(e.method||"GET").toUpperCase(),extraData:e.data,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,t,n){var o,a=e.eventSource.meta,s=r(a,e.range,e.calendar);o="GET"===a.method?i.get(a.url).query(s):i(a.method,a.url).send(s),o.end(function(e,r){var i;e?n(e):(r.body?i=r.body:r.text&&(i=JSON.parse(r.text)),i?t({rawEvents:i,response:r}):n({message:"Invalid JSON response",response:r}))})}})},function(e,t,n){function r(e,t,n,r,o){r=u.intersectRanges(r,n);for(var s=e?a.arrayToHash(e):null,l=i.startOfDay(r.start),d=r.end,c=[];l<d;){var f=void 0;s&&!s[l.getUTCDay()]||(f=t?o.add(l,t):l,c.push(f)),l=i.addDays(l,1)}return c}Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),o=n(10),a=n(4),s=n(2),l=n(38),u=n(11);l.registerRecurringType({parse:function(e,t,n){var r=n.createMarker.bind(n),i={daysOfWeek:null,startTime:o.createDuration,endTime:o.createDuration,startRecur:r,endRecur:r},a=s.refineProps(e,i,{},t),l=!1;for(var u in a)if(null!=a[u]){l=!0;break}return l?{allDay:!a.startTime&&!a.endTime,duration:a.startTime&&a.endTime?o.subtractDurations(a.endTime,a.startTime):null,typeData:a}:null},expand:function(e,t,n,i){return r(e.daysOfWeek,e.startTime,{start:e.startRecur,end:e.endRecur},n,i)}})}])});
|