7 lines
96 KiB
JavaScript
7 lines
96 KiB
JavaScript
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-614e6050"],{"124e":function(e,t,n){},1599:function(e,t,n){},"675e":function(e,t,n){"use strict";var r=n("7a23"),i=n("573d"),o=(n("a435"),n("d610")),a=n("9ab4"),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.headerElRef=Object(o["rb"])(),t}return Object(a["b"])(t,e),t.prototype.renderSimpleLayout=function(e,t){var n=this,r=n.props,i=n.context,a=[],s=Object(o["Rb"])(i.options);return e&&a.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),a.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),Object(o["mb"])(o["L"],{viewSpec:i.viewSpec},(function(e,t){return Object(o["mb"])("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},Object(o["mb"])(o["G"],{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:a}))}))},t.prototype.renderHScrollLayout=function(e,t,n,r){var i=this.context.pluginHooks.scrollGridImpl;if(!i)throw new Error("No ScrollGrid implementation");var a=this,s=a.props,l=a.context,c=!s.forPrint&&Object(o["Rb"])(l.options),d=!s.forPrint&&Object(o["Qb"])(l.options),u=[];return e&&u.push({type:"header",key:"header",isSticky:c,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),u.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),d&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:o["vc"]}]}),Object(o["mb"])(o["L"],{viewSpec:l.viewSpec},(function(e,t){return Object(o["mb"])("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},Object(o["mb"])(i,{liquid:!s.isHeightAuto&&!s.forPrint,collapsibleWidth:s.forPrint,colGroups:[{cols:[{span:n,minWidth:r}]}],sections:u}))}))},t}(o["i"]);function l(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];for(var i=0,o=e;i<o.length;i++){var a=o[i];n[a.row].push(a)}return n}function c(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];for(var i=0,o=e;i<o.length;i++){var a=o[i];n[a.firstCol].push(a)}return n}function d(e,t){var n=[];if(e){for(a=0;a<t;a+=1)n[a]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var r=0,i=e.segs;r<i.length;r++){var o=i[r];n[o.row].segs.push(o)}}else for(var a=0;a<t;a+=1)n[a]=null;return n}var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a["b"])(t,e),t.prototype.render=function(){var e=this.props,t=Object(o["cb"])(this.context,e.date);return Object(o["mb"])(o["k"],{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraHookProps:e.extraHookProps,defaultContent:p},(function(n,r){return(r||e.forceDayTop)&&Object(o["mb"])("div",{className:"fc-daygrid-day-top",ref:n},Object(o["mb"])("a",Object(a["a"])({id:e.dayNumberId,className:"fc-daygrid-day-number"},t),r||Object(o["mb"])(o["v"],null," ")))}))},t}(o["b"]);function p(e){return e.dayNumberText}var h=Object(o["pb"])({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function g(e){var t=e.eventRange.ui.display;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a["b"])(t,e),t.prototype.render=function(){var e=this.props;return Object(o["mb"])(o["J"],Object(a["a"])({},e,{extraClassNames:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:h,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))},t}(o["b"]),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a["b"])(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=n.options.eventTimeFormat||h,i=Object(o["db"])(t.seg,r,n,!0,t.defaultDisplayEventEnd);return Object(o["mb"])(o["u"],{seg:t.seg,timeText:i,defaultContent:v,isDragging:t.isDragging,isResizing:!1,isDateSelecting:!1,isSelected:t.isSelected,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday},(function(e,r,i,s){return Object(o["mb"])("a",Object(a["a
|
|||
|
|
/*!
|
|||
|
|
FullCalendar v5.11.2
|
|||
|
|
Docs & License: https://fullcalendar.io/
|
|||
|
|
(c) 2022 Adam Shaw
|
|||
|
|
*/
|
|||
|
|
o["ib"].touchMouseIgnoreWait=500;var Je=0,Ke=0,Qe=!1,$e=function(){function e(e){var t=this;this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=function(e){if(!t.shouldIgnoreMouse()&&et(e)&&t.tryStart(e)){var n=t.createEventFromMouse(e,!0);t.emitter.trigger("pointerdown",n),t.initScrollWatch(n),t.shouldIgnoreMove||document.addEventListener("mousemove",t.handleMouseMove),document.addEventListener("mouseup",t.handleMouseUp)}},this.handleMouseMove=function(e){var n=t.createEventFromMouse(e);t.recordCoords(n),t.emitter.trigger("pointermove",n)},this.handleMouseUp=function(e){document.removeEventListener("mousemove",t.handleMouseMove),document.removeEventListener("mouseup",t.handleMouseUp),t.emitter.trigger("pointerup",t.createEventFromMouse(e)),t.cleanup()},this.handleTouchStart=function(e){if(t.tryStart(e)){t.isTouchDragging=!0;var n=t.createEventFromTouch(e,!0);t.emitter.trigger("pointerdown",n),t.initScrollWatch(n);var r=e.target;t.shouldIgnoreMove||r.addEventListener("touchmove",t.handleTouchMove),r.addEventListener("touchend",t.handleTouchEnd),r.addEventListener("touchcancel",t.handleTouchEnd),window.addEventListener("scroll",t.handleTouchScroll,!0)}},this.handleTouchMove=function(e){var n=t.createEventFromTouch(e);t.recordCoords(n),t.emitter.trigger("pointermove",n)},this.handleTouchEnd=function(e){if(t.isDragging){var n=e.target;n.removeEventListener("touchmove",t.handleTouchMove),n.removeEventListener("touchend",t.handleTouchEnd),n.removeEventListener("touchcancel",t.handleTouchEnd),window.removeEventListener("scroll",t.handleTouchScroll,!0),t.emitter.trigger("pointerup",t.createEventFromTouch(e)),t.cleanup(),t.isTouchDragging=!1,tt()}},this.handleTouchScroll=function(){t.wasTouchScroll=!0},this.handleScroll=function(e){if(!t.shouldIgnoreMove){var n=window.pageXOffset-t.prevScrollX+t.prevPageX,r=window.pageYOffset-t.prevScrollY+t.prevPageY;t.emitter.trigger("pointermove",{origEvent:e,isTouch:t.isTouchDragging,subjectEl:t.subjectEl,pageX:n,pageY:r,deltaX:n-t.origPageX,deltaY:r-t.origPageY})}},this.containerEl=e,this.emitter=new o["s"],e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),nt()}return e.prototype.destroy=function(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),rt()},e.prototype.tryStart=function(e){var t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!Object(o["xb"])(n,this.handleSelector))&&(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0)},e.prototype.cleanup=function(){Qe=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()},e.prototype.querySubjectEl=function(e){return this.selector?Object(o["xb"])(e.target,this.selector):this.containerEl},e.prototype.shouldIgnoreMouse=function(){return Je||this.isTouchDragging},e.prototype.cancelTouchScroll=function(){this.isDragging&&(Qe=!0)},e.prototype.initScrollWatch=function(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))},e.prototype.recordCoords=function(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)},e.prototype.destroyScrollWatch=function(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)},e.prototype.createEventFromMouse=function(e,t){var n=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}},e.prototype.createEventFromTouch=function(e,t){var n,r,i=e.touches,o=0,a=0;return i&&i.length?(n=i[0].pageX,r=i[0].pageY):(n=e.pageX,r=e.pageY),t?(this.origPageX=n,this.origPageY=r):(o=n-this.origPageX,a=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:th
|