katoikia-app/web-ui/web-react/node_modules/@fullcalendar/timegrid/main.global.min.js

6 lines
29 KiB
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
/*!
FullCalendar v5.10.2
Docs & License: https://fullcalendar.io/
(c) 2021 Adam Shaw
*/
var FullCalendarTimeGrid=function(e,t,n){"use strict";var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(n,e),n.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},n.prototype.getKeysForDateSpan=function(e){return e.allDay?["allDay"]:["timed"]},n.prototype.getKeysForEventDef=function(e){return e.allDay?t.hasBgRendering(e)?["timed","allDay"]:["allDay"]:["timed"]},n}(t.Splitter),s=t.createFormatter({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function l(e){var n=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return t.createElement(t.ViewContextType.Consumer,null,(function(r){if(!e.isLabeled)return t.createElement("td",{className:n.join(" "),"data-time":e.isoTimeStr});var o=r.dateEnv,i=r.options,a=r.viewApi,l=null==i.slotLabelFormat?s:Array.isArray(i.slotLabelFormat)?t.createFormatter(i.slotLabelFormat[0]):t.createFormatter(i.slotLabelFormat),d={level:0,time:e.time,date:o.toDate(e.date),view:a,text:o.format(e.date,l)};return t.createElement(t.RenderHook,{hookProps:d,classNames:i.slotLabelClassNames,content:i.slotLabelContent,defaultContent:c,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},(function(r,o,i,a){return t.createElement("td",{ref:r,className:n.concat(o).join(" "),"data-time":e.isoTimeStr},t.createElement("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},t.createElement("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:i},a)))}))}))}function c(e){return e.text}var d=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(n,e),n.prototype.render=function(){return this.props.slatMetas.map((function(e){return t.createElement("tr",{key:e.key},t.createElement(l,i({},e)))}))},n}(t.BaseComponent),u=t.createFormatter({week:"short"}),p=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.allDaySplitter=new a,n.headerElRef=t.createRef(),n.rootElRef=t.createRef(),n.scrollerElRef=t.createRef(),n.state={slatCoords:null},n.handleScrollTopRequest=function(e){var t=n.scrollerElRef.current;t&&(t.scrollTop=e)},n.renderHeadAxis=function(e,r){void 0===r&&(r="");var o=n.context.options,a=n.props.dateProfile.renderRange,s=1===t.diffDays(a.start,a.end)?t.buildNavLinkAttrs(n.context,a.start,"week"):{};return o.weekNumbers&&"day"===e?t.createElement(t.WeekNumberRoot,{date:a.start,defaultFormat:u},(function(e,n,o,a){return t.createElement("th",{ref:e,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(n).join(" ")},t.createElement("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:r}},t.createElement("a",i({ref:o,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},s),a)))})):t.createElement("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},t.createElement("div",{className:"fc-timegrid-axis-frame",style:{height:r}}))},n.renderTableRowAxis=function(e){var r=n.context,o=r.options,i=r.viewApi,a={text:o.allDayText,view:i};return t.createElement(t.RenderHook,{hookProps:a,classNames:o.allDayClassNames,content:o.allDayContent,defaultContent:f,didMount:o.allDayDidMount,willUnmount:o.allDayWillUnmount},(function(n,r,o,i){return t.createElement("td",{ref:n,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"]