__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
/**
 * @package   DPCalendar
 * @copyright Digital Peak GmbH. <https://www.digital-peak.com>
 * @license   https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 */
import{B as e,m as t,R as i,g as s,a as r,y as n,_ as o,b as l,c as a,d,e as c,r as h,f as u,h as f,i as p,j as m,k as g,l as S,n as C,s as R,o as w,p as y,S as v,q as b,E as x,D,t as E,u as W,v as k,w as M,x as H,z as P,A as T,C as N,F as z,G as L,H as I,N as G,I as U,J as B,K as A,L as O,M as q,V as j,O as _,P as V,Q as F,T as X,U as Y,W as Z,X as J,Y as K,Z as Q,$,a0 as ee,a1 as te,a2 as ie,a3 as se,a4 as re,a5 as ne,a6 as oe,a7 as le,a8 as ae,a9 as de,aa as ce,ab as he,ac as ue,ad as fe,ae as pe,af as me,ag as ge,ah as Se,ai as Ce,aj as Re,ak as we,al as ye,am as ve,an as be,ao as xe,ap as De,aq as Ee,ar as We,as as ke,at as Me,au as He}from"../../../modules/calendar/factory.min.js?43859213";import{i as Pe,b as Te,R as Ne,a as ze,g as Le,D as Ie,c as Ge,r as Ue,d as Be,e as Ae}from"../resource/index.min.js?43859213";import"../../../modules/block/filter.min.js?43859213";import"../../../modules/libraries/datejs.min.js?43859213";import"../../../modules/map/circle.min.js?43859213";function Oe(e){let t=e.scrollLeft;if("rtl"===window.getComputedStyle(e).direction)switch(_e()){case"negative":t*=-1;case"reverse":t=e.scrollWidth-t-e.clientWidth}return t}function qe(e,t){if("rtl"===window.getComputedStyle(e).direction)switch(_e()){case"reverse":t=e.scrollWidth-t;break;case"negative":t=-(e.scrollWidth-t)}e.scrollLeft=t}let je;function _e(){return je||(je=function(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-1000px",e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.direction="rtl";let t,i=document.createElement("div");i.style.width="200px",i.style.height="200px",e.appendChild(i),document.body.appendChild(e),e.scrollLeft>0?t="positive":(e.scrollLeft=1,t=e.scrollLeft>0?"reverse":"negative");return E(e),t}())}class Ve{constructor(e,t){this.scrollEl=e,this.isRtl=t,this.updateSize=()=>{let{scrollEl:e}=this,t=m(e,".fc-sticky");!function(e,t,i){e.forEach(((e,s)=>{let r,{textAlign:n,elWidth:o,parentBound:l}=t[s],a=l.right-l.left;r="center"===n&&a>i?(i-o)/2:"",z(e,{left:r,right:r,top:0})}))}(t,this.queryElGeoms(t),e.clientWidth)}}queryElGeoms(e){let{scrollEl:t,isRtl:i}=this,s=function(e){let t=e.getBoundingClientRect(),i=L(e);return{left:t.left+i.borderLeft+i.scrollbarLeft-Oe(e),top:t.top+i.borderTop-e.scrollTop}}(t),r=[];for(let t of e){let e=T(N(t.parentNode,!0,!0),-s.left,-s.top),n=t.getBoundingClientRect(),o=window.getComputedStyle(t),l=window.getComputedStyle(t.parentNode).textAlign,a=null;"start"===l?l=i?"right":"left":"end"===l&&(l=i?"left":"right"),"sticky"!==o.position&&(a=T(n,-s.left-(parseFloat(o.left)||0),-s.top-(parseFloat(o.top)||0))),r.push({parentBound:e,naturalBound:a,elWidth:n.width,elHeight:n.height,textAlign:l})}return r}}class Fe extends e{constructor(){super(...arguments),this.elRef=y(),this.state={xScrollbarWidth:0,yScrollbarWidth:0},this.handleScroller=e=>{this.scroller=e,R(this.props.scrollerRef,e)},this.handleSizing=()=>{let{props:e}=this;"scroll-hidden"===e.overflowY&&this.setState({yScrollbarWidth:this.scroller.getYScrollbarWidth()}),"scroll-hidden"===e.overflowX&&this.setState({xScrollbarWidth:this.scroller.getXScrollbarWidth()})}}render(){let{props:e,state:t,context:i}=this,s=i.isRtl&&a(),r=0,o=0,l=0,{overflowX:d,overflowY:c}=e;return e.forPrint&&(d="visible",c="visible"),"scroll-hidden"===d&&(l=t.xScrollbarWidth),"scroll-hidden"===c&&null!=t.yScrollbarWidth&&(s?r=t.yScrollbarWidth:o=t.yScrollbarWidth),n("div",{ref:this.elRef,className:"fc-scroller-harness"+(e.liquid?" fc-scroller-harness-liquid":"")},n(v,{ref:this.handleScroller,elRef:this.props.scrollerElRef,overflowX:"scroll-hidden"===d?"scroll":d,overflowY:"scroll-hidden"===c?"scroll":c,overcomeLeft:r,overcomeRight:o,overcomeBottom:l,maxHeight:"number"==typeof e.maxHeight?e.maxHeight+("scroll-hidden"===d?t.xScrollbarWidth:0):"",liquid:e.liquid,liquidIsAbsolute:!0},e.children))}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}getSnapshotBeforeUpdate(e){return this.props.forPrint&&!e.forPrint?{simulateScrollLeft:this.scroller.el.scrollLeft}:{}}componentDidUpdate(e,t,i){const{props:s,scroller:{el:r}}=this;if(b(e,s)||this.handleSizing(),void 0!==i.simulateScrollLeft)r.style.left=-i.simulateScrollLeft+"px";else if(!s.forPrint&&e.forPrint){const e=-parseInt(r.style.left);r.style.left="",r.scrollLeft=e}}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}needsXScrolling(){return this.scroller.needsXScrolling()}needsYScrolling(){return this.scroller.needsYScrolling()}}const Xe="wheel mousewheel DomMouseScroll MozMousePixelScroll".split(" ");class Ye{constructor(e){this.el=e,this.emitter=new x,this.isScrolling=!1,this.isTouching=!1,this.isRecentlyWheeled=!1,this.isRecentlyScrolled=!1,this.wheelWaiter=new D(this._handleWheelWaited.bind(this)),this.scrollWaiter=new D(this._handleScrollWaited.bind(this)),this.handleScroll=()=>{this.startScroll(),this.emitter.trigger("scroll",this.isRecentlyWheeled,this.isTouching),this.isRecentlyScrolled=!0,this.scrollWaiter.request(500)},this.handleWheel=()=>{this.isRecentlyWheeled=!0,this.wheelWaiter.request(500)},this.handleTouchStart=()=>{this.isTouching=!0},this.handleTouchEnd=()=>{this.isTouching=!1,this.isRecentlyScrolled||this.endScroll()},e.addEventListener("scroll",this.handleScroll),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.addEventListener("touchend",this.handleTouchEnd);for(let t of Xe)e.addEventListener(t,this.handleWheel)}destroy(){let{el:e}=this;e.removeEventListener("scroll",this.handleScroll),e.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.removeEventListener("touchend",this.handleTouchEnd);for(let t of Xe)e.removeEventListener(t,this.handleWheel)}startScroll(){this.isScrolling||(this.isScrolling=!0,this.emitter.trigger("scrollStart",this.isRecentlyWheeled,this.isTouching))}endScroll(){this.isScrolling&&(this.emitter.trigger("scrollEnd"),this.isScrolling=!1,this.isRecentlyScrolled=!0,this.isRecentlyWheeled=!1,this.scrollWaiter.clear(),this.wheelWaiter.clear())}_handleScrollWaited(){this.isRecentlyScrolled=!1,this.isTouching||this.endScroll()}_handleWheelWaited(){this.isRecentlyWheeled=!1}}class Ze{constructor(e,t){this.isVertical=e,this.scrollEls=t,this.isPaused=!1,this.scrollListeners=t.map((e=>this.bindScroller(e)))}destroy(){for(let e of this.scrollListeners)e.destroy()}bindScroller(e){let{scrollEls:t,isVertical:i}=this,s=new Ye(e);return s.emitter.on("scroll",((s,r)=>{if(!this.isPaused&&((!this.masterEl||this.masterEl!==e&&(s||r))&&this.assignMaster(e),this.masterEl===e))for(let s of t)s!==e&&(i?s.scrollTop=e.scrollTop:s.scrollLeft=e.scrollLeft)})),s.emitter.on("scrollEnd",(()=>{this.masterEl===e&&(this.masterEl=null)})),s}assignMaster(e){this.masterEl=e;for(let t of this.scrollListeners)t.el!==e&&t.endScroll()}forceScrollLeft(e){this.isPaused=!0;for(let t of this.scrollListeners)qe(t.el,e);this.isPaused=!1}forceScrollTop(e){this.isPaused=!0;for(let t of this.scrollListeners)t.el.scrollTop=e;this.isPaused=!1}}f.SCROLLGRID_RESIZE_INTERVAL=500;class Je extends e{constructor(){super(...arguments),this.compileColGroupStats=t(et,st),this.renderMicroColGroups=t(W),this.clippedScrollerRefs=new i,this.scrollerElRefs=new i(this._handleScrollerEl.bind(this)),this.chunkElRefs=new i(this._handleChunkEl.bind(this)),this.scrollSyncersBySection={},this.scrollSyncersByColumn={},this.rowUnstableMap=new Map,this.rowInnerMaxHeightMap=new Map,this.anyRowHeightsChanged=!1,this.recentSizingCnt=0,this.state={shrinkWidths:[],forceYScrollbars:!1,forceXScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{},sectionRowMaxHeights:[]},this.handleSizing=(e,t)=>{if(!this.allowSizing())return;t||(this.anyRowHeightsChanged=!0);let i={};(e||!t&&!this.rowUnstableMap.size)&&(i.sectionRowMaxHeights=this.computeSectionRowMaxHeights()),this.setState(Object.assign(Object.assign({shrinkWidths:this.computeShrinkWidths()},this.computeScrollerDims()),i),(()=>{this.rowUnstableMap.size||this.updateStickyScrolling()}))},this.handleRowHeightChange=(e,t)=>{let{rowUnstableMap:i,rowInnerMaxHeightMap:s}=this;if(t){i.delete(e);let t=Qe(e);s.has(e)&&s.get(e)===t||(s.set(e,t),this.anyRowHeightsChanged=!0),!i.size&&this.anyRowHeightsChanged&&(this.anyRowHeightsChanged=!1,this.setState({sectionRowMaxHeights:this.computeSectionRowMaxHeights()}))}else i.set(e,!0)}}render(){let{props:e,state:t,context:i}=this,{shrinkWidths:o}=t,l=this.compileColGroupStats(e.colGroups.map((e=>[e]))),a=this.renderMicroColGroups(l.map(((e,t)=>[e.cols,o[t]]))),d=s(e.liquid,i);this.getDims();let c,h=e.sections,u=h.length,f=0,p=[],m=[],g=[];for(;f<u&&"header"===(c=h[f]).type;)p.push(this.renderSection(c,f,l,a,t.sectionRowMaxHeights,!0)),f+=1;for(;f<u&&"body"===(c=h[f]).type;)m.push(this.renderSection(c,f,l,a,t.sectionRowMaxHeights,!1)),f+=1;for(;f<u&&"footer"===(c=h[f]).type;)g.push(this.renderSection(c,f,l,a,t.sectionRowMaxHeights,!0)),f+=1;const S=!r(),C={role:"rowgroup"};return n("table",{ref:e.elRef,role:"grid",className:d.join(" ")},function(e,t){let i=e.map(((e,i)=>{let s=e.width;return"shrink"===s&&(s=e.totalColWidth+w(t[i])+1),n("col",{style:{width:s}})}));return n("colgroup",{},...i)}(l,o),Boolean(!S&&p.length)&&n("thead",C,...p),Boolean(!S&&m.length)&&n("tbody",C,...m),Boolean(!S&&g.length)&&n("tfoot",C,...g),S&&n("tbody",C,...p,...m,...g))}renderSection(e,t,i,s,r,a){return"outerContent"in e?n(o,{key:e.key},e.outerContent):n("tr",{key:e.key,role:"presentation",className:l(e,this.props.liquid).join(" ")},e.chunks.map(((n,o)=>this.renderChunk(e,t,i[o],s[o],n,o,(r[t]||[])[o]||[],a))))}renderChunk(e,t,i,s,r,l,u,f){if("outerContent"in r)return n(o,{key:r.key},r.outerContent);let{state:p}=this,{scrollerClientWidths:m,scrollerClientHeights:g}=p,[S,C]=this.getDims(),R=t*C+l,w=l===(!this.context.isRtl||a()?C-1:0),y=t===S-1,v=y&&p.forceXScrollbars,b=w&&p.forceYScrollbars,x=i&&i.allowXScrolling,D=d(this.props,e),E=c(this.props,e),W=e.expandRows&&E,k=i&&i.totalColMinWidth||"",M=h(e,r,{tableColGroupNode:s,tableMinWidth:k,clientWidth:void 0!==m[R]?m[R]:null,clientHeight:void 0!==g[R]?g[R]:null,expandRows:W,syncRowHeights:Boolean(e.syncRowHeights),rowSyncHeights:u,reportRowHeightChange:this.handleRowHeightChange},f),H=v?y?"scroll":"scroll-hidden":x?y?"auto":"scroll-hidden":"hidden",P=b?w?"scroll":"scroll-hidden":D?w?"auto":"scroll-hidden":"hidden";return M=n(Fe,{ref:this.clippedScrollerRefs.createRef(R),scrollerElRef:this.scrollerElRefs.createRef(R),overflowX:H,overflowY:P,forPrint:this.props.forPrint,liquid:E,maxHeight:e.maxHeight},M),n(f?"th":"td",{key:r.key,ref:this.chunkElRefs.createRef(R),role:"presentation"},M)}componentDidMount(){this.getStickyScrolling=t(ot),this.getScrollSyncersBySection=u(rt.bind(this,!0),null,nt),this.getScrollSyncersByColumn=u(rt.bind(this,!1),null,nt),this.updateScrollSyncers(),this.handleSizing(!1),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(e,t){this.updateScrollSyncers(),this.handleSizing(!1,t.sectionRowMaxHeights!==this.state.sectionRowMaxHeights)}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing),this.destroyScrollSyncers()}allowSizing(){let e=new Date;return!this.lastSizingDate||e.valueOf()>this.lastSizingDate.valueOf()+f.SCROLLGRID_RESIZE_INTERVAL?(this.lastSizingDate=e,this.recentSizingCnt=0,!0):(this.recentSizingCnt+=1)<=10}computeShrinkWidths(){let e=this.compileColGroupStats(this.props.colGroups.map((e=>[e]))),[t,i]=this.getDims(),s=t*i,r=[];return e.forEach(((e,t)=>{if(e.hasShrinkCol){let e=this.chunkElRefs.collect(t,s,i);r[t]=p(e)}})),r}computeSectionRowMaxHeights(){let e=new Map,[t,i]=this.getDims(),s=[];for(let r=0;r<t;r+=1){let t=this.props.sections[r],n=[];if(t&&t.syncRowHeights){let s=[];for(let t=0;t<i;t+=1){let n=r*i+t,o=[],l=this.chunkElRefs.currentMap[n];o=l?m(l,".fc-scrollgrid-sync-table tr").map((t=>{let i=Qe(t);return e.set(t,i),i})):[],s.push(o)}let o=s[0].length,l=!0;for(let e=1;e<i;e+=1){if(!(t.chunks[e]&&void 0!==t.chunks[e].outerContent)&&s[e].length!==o){l=!1;break}}if(l){for(let e=0;e<i;e+=1)n.push([]);for(let e=0;e<o;e+=1){let t=[];for(let r=0;r<i;r+=1){let i=s[r][e];null!=i&&t.push(i)}let r=Math.max(...t);for(let e=0;e<i;e+=1)n[e].push(r)}}else{let e=[];for(let t=0;t<i;t+=1)e.push(Ke(s[t])+s[t].length);let t=Math.max(...e);for(let e=0;e<i;e+=1){let i=s[e].length,r=t-i,o=Math.floor(r/i),l=r-o*(i-1),a=[],d=0;for(d<i&&(a.push(l),d+=1);d<i;)a.push(o),d+=1;n.push(a)}}}s.push(n)}return this.rowInnerMaxHeightMap=e,s}computeScrollerDims(){let e=g(),[t,i]=this.getDims(),s=!this.context.isRtl||a()?i-1:0,r=t-1,n=this.clippedScrollerRefs.currentMap,o=this.scrollerElRefs.currentMap,l=!1,d=!1,c={},h={};for(let e=0;e<t;e+=1){let t=n[e*i+s];if(t&&t.needsYScrolling()){l=!0;break}}for(let e=0;e<i;e+=1){let t=n[r*i+e];if(t&&t.needsXScrolling()){d=!0;break}}for(let n=0;n<t;n+=1)for(let t=0;t<i;t+=1){let a=n*i+t,u=o[a];if(u){let i=u.parentNode;c[a]=Math.floor(i.getBoundingClientRect().width-(t===s&&l?e.y:0)),h[a]=Math.floor(i.getBoundingClientRect().height-(n===r&&d?e.x:0))}}return{forceYScrollbars:l,forceXScrollbars:d,scrollerClientWidths:c,scrollerClientHeights:h}}updateStickyScrolling(){let{isRtl:e}=this.context,t=this.scrollerElRefs.getAll().map((t=>[t,e]));this.getStickyScrolling(t).forEach((e=>e.updateSize()))}updateScrollSyncers(){let[e,t]=this.getDims(),i=e*t,s={},r={},n=this.scrollerElRefs.currentMap;for(let i=0;i<e;i+=1){let e=i*t,r=e+t;s[i]=S(n,e,r,1)}for(let e=0;e<t;e+=1)r[e]=this.scrollerElRefs.collect(e,i,t);this.scrollSyncersBySection=this.getScrollSyncersBySection(s),this.scrollSyncersByColumn=this.getScrollSyncersByColumn(r)}destroyScrollSyncers(){C(this.scrollSyncersBySection,nt),C(this.scrollSyncersByColumn,nt)}getChunkConfigByIndex(e){let t=this.getDims()[1],i=Math.floor(e/t),s=e%t,r=this.props.sections[i];return r&&r.chunks[s]}forceScrollLeft(e,t){let i=this.scrollSyncersByColumn[e];i&&i.forceScrollLeft(t)}forceScrollTop(e,t){let i=this.scrollSyncersBySection[e];i&&i.forceScrollTop(t)}_handleChunkEl(e,t){let i=this.getChunkConfigByIndex(parseInt(t,10));i&&R(i.elRef,e)}_handleScrollerEl(e,t){let i=this.getChunkConfigByIndex(parseInt(t,10));i&&R(i.scrollerElRef,e)}getDims(){let e=this.props.sections.length;return[e,e?this.props.sections[0].chunks.length:0]}}function Ke(e){let t=0;for(let i of e)t+=i;return t}function Qe(e){let t=m(e,".fc-scrollgrid-sync-inner").map($e);return t.length?Math.max(...t):0}function $e(e){return e.offsetHeight}function et(e){let t=tt(e.cols,"width"),i=tt(e.cols,"minWidth"),s=M(e.cols);return{hasShrinkCol:s,totalColWidth:t,totalColMinWidth:i,allowXScrolling:"shrink"!==e.width&&Boolean(t||i||s),cols:e.cols,width:e.width}}function tt(e,t){let i=0;for(let s of e){let e=s[t];"number"==typeof e&&(i+=e*(s.span||1))}return i}Je.addStateEquality({shrinkWidths:k,scrollerClientWidths:b,scrollerClientHeights:b});const it={cols:P};function st(e,t){return H(e,t,it)}function rt(e,...t){return new Ze(e,t)}function nt(e){e.destroy()}function ot(e,t){return new Ve(e,t)}f.MAX_TIMELINE_SLOTS=1e3;const lt=[{years:1},{months:1},{days:1},{hours:1},{minutes:30},{minutes:15},{minutes:10},{minutes:5},{minutes:1},{seconds:30},{seconds:15},{seconds:10},{seconds:5},{seconds:1},{milliseconds:500},{milliseconds:100},{milliseconds:10},{milliseconds:1}];function at(e,t,i,s){let r={labelInterval:i.slotLabelInterval,slotDuration:i.slotDuration};!function(e,t,i){const{currentRange:s}=t;if(e.labelInterval){i.countDurationsBetween(s.start,s.end,e.labelInterval)>f.MAX_TIMELINE_SLOTS&&(e.labelInterval=null)}if(e.slotDuration){i.countDurationsBetween(s.start,s.end,e.slotDuration)>f.MAX_TIMELINE_SLOTS&&(e.slotDuration=null)}if(e.labelInterval&&e.slotDuration){const t=X(e.labelInterval,e.slotDuration);(null===t||t<1)&&(e.slotDuration=null)}}(r,e,t),ht(r,e,t),function(e,t,i){const{currentRange:s}=t;let{slotDuration:r}=e;if(!r){const n=ht(e,t,i);for(let e of lt){const t=F(e),i=X(n,t);if(null!==i&&i>1&&i<=6){r=t;break}}if(r){i.countDurationsBetween(s.start,s.end,r)>200&&(r=null)}r||(r=n),e.slotDuration=r}}(r,e,t);let n=i.slotLabelFormat,o=Array.isArray(n)?n:null!=n?[n]:function(e,t,i,s){let r,n;const{labelInterval:o}=e;let l=I(o).unit;const a=s.weekNumbers;let d=r=n=null;"week"!==l||a||(l="day");switch(l){case"year":d={year:"numeric"};break;case"month":ut("years",t,i)>1&&(d={year:"numeric"}),r={month:"short"};break;case"week":ut("years",t,i)>1&&(d={year:"numeric"}),r={week:"narrow"};break;case"day":ut("years",t,i)>1?d={year:"numeric",month:"long"}:ut("months",t,i)>1&&(d={month:"long"}),a&&(r={week:"short"}),n={weekday:"narrow",day:"numeric"};break;case"hour":a&&(d={week:"short"}),ut("days",t,i)>1&&(r={weekday:"short",day:"numeric",month:"numeric",omitCommas:!0}),n={hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"};break;case"minute":oe(o)/60>=6?(d={hour:"numeric",meridiem:"short"},r=e=>":"+We(e.date.minute,2)):d={hour:"numeric",minute:"numeric",meridiem:"short"};break;case"second":ne(o)/60>=6?(d={hour:"numeric",minute:"2-digit",meridiem:"lowercase"},r=e=>":"+We(e.date.second,2)):d={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"};break;case"millisecond":d={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"},r=e=>"."+We(e.millisecond,3)}return[].concat(d||[],r||[],n||[])}(r,e,t,i);r.headerFormats=o.map((e=>_(e))),r.isTimeScale=Boolean(r.slotDuration.milliseconds);let l=null;if(!r.isTimeScale){const e=I(r.slotDuration).unit;/year|month|week/.test(e)&&(l=e)}r.largeUnit=l,r.emphasizeWeeks=1===V(r.slotDuration)&&ut("weeks",e,t)>=2&&!i.businessHours;let a,d,c=i.snapDuration;c&&(a=F(c),d=X(r.slotDuration,a)),null==d&&(a=r.slotDuration,d=1),r.snapDuration=a,r.snapsPerSlot=d;let h=Y(e.slotMaxTime)-Y(e.slotMinTime),u=dt(e.renderRange.start,r,t),p=dt(e.renderRange.end,r,t);r.isTimeScale&&(u=t.add(u,e.slotMinTime),p=t.add(Z(p,-1),e.slotMaxTime)),r.timeWindowMs=h,r.normalizedRange={start:u,end:p};let m=[],g=u;for(;g<p;)ct(g,r,e,s)&&m.push(g),g=t.add(g,r.slotDuration);r.slotDates=m;let S=-1,C=0;const R=[],w=[];for(g=u;g<p;)ct(g,r,e,s)?(S+=1,R.push(S),w.push(C)):R.push(S+.5),g=t.add(g,r.snapDuration),C+=1;return r.snapDiffToIndex=R,r.snapIndexToDiff=w,r.snapCnt=S+1,r.slotCnt=r.snapCnt/r.snapsPerSlot,r.isWeekStarts=function(e,t){let{slotDates:i,emphasizeWeeks:s}=e,r=null,n=[];for(let e of i){let i=t.computeWeekNumber(e),o=s&&null!==r&&r!==i;r=i,n.push(o)}return n}(r,t),r.cellRows=function(e,t){let i=e.slotDates,s=e.headerFormats,r=s.map((()=>[])),n=V(e.slotDuration),o=7===n?"week":1===n?"day":null,l=s.map((e=>e.getLargestUnit?e.getLargestUnit():null));for(let n=0;n<i.length;n+=1){let a=i[n],d=e.isWeekStarts[n];for(let i=0;i<s.length;i+=1){let n=s[i],c=r[i],h=c[c.length-1],u=i===s.length-1,f=s.length>1&&!u,p=null,m=l[i]||(u?o:null);if(f){let e=t.format(a,n);h&&h.text===e?h.colspan+=1:p=ft(a,e,m)}else if(!h||de(t.countDurationsBetween(e.normalizedRange.start,a,e.labelInterval))){p=ft(a,t.format(a,n),m)}else h.colspan+=1;p&&(p.weekStart=d,c.push(p))}}return r}(r,t),r.slotsPerLabel=X(r.labelInterval,r.slotDuration),r}function dt(e,t,i){let s=e;return t.isTimeScale||(s=ae(s),t.largeUnit&&(s=i.startOf(s,t.largeUnit))),s}function ct(e,t,i,s){if(s.isHiddenDay(e))return!1;if(t.isTimeScale){let s=ae(e),r=e.valueOf()-s.valueOf()-Y(i.slotMinTime);return r=(r%864e5+864e5)%864e5,r<t.timeWindowMs}return!0}function ht(e,t,i){const{currentRange:s}=t;let{labelInterval:r}=e;if(!r){let t;if(e.slotDuration){for(t of lt){const i=F(t),s=X(i,e.slotDuration);if(null!==s&&s<=6){r=i;break}}r||(r=e.slotDuration)}else for(t of lt){r=F(t);if(i.countDurationsBetween(s.start,s.end,r)>=18)break}e.labelInterval=r}return r}function ut(e,t,i){let s=t.currentRange,r=null;return"years"===e?r=i.diffWholeYears(s.start,s.end):"months"===e||"weeks"===e?r=i.diffWholeMonths(s.start,s.end):"days"===e&&(r=le(s.start,s.end)),r||0}function ft(e,t,i){return{date:e,text:t,rowUnit:i,colspan:1,isWeekStart:!1}}class pt extends e{constructor(){super(...arguments),this.refineRenderProps=pe(St),this.buildCellNavLinkAttrs=A(mt)}render(){let{props:e,context:t}=this,{dateEnv:i,options:s}=t,{cell:r,dateProfile:o,tDateProfile:l}=e,a=me(r.date,e.todayRange,e.nowDate,o),d=this.refineRenderProps({level:e.rowLevel,dateMarker:r.date,text:r.text,dateEnv:t.dateEnv,viewApi:t.viewApi});return n(Ce,{elTag:"th",elClasses:["fc-timeline-slot","fc-timeline-slot-label",r.isWeekStart&&"fc-timeline-slot-em",..."time"===r.rowUnit?ge(a,t.theme):Se(a,t.theme)],elAttrs:{colSpan:r.colspan,"data-date":i.formatIso(r.date,{omitTime:!l.isTimeScale,omitTimeZoneOffset:!0})},renderProps:d,generatorName:"slotLabelContent",customGenerator:s.slotLabelContent,defaultGenerator:gt,classNameGenerator:s.slotLabelClassNames,didMount:s.slotLabelDidMount,willUnmount:s.slotLabelWillUnmount},(i=>n("div",{className:"fc-timeline-slot-frame",style:{height:e.rowInnerHeight}},n(i,{elTag:"a",elClasses:["fc-timeline-slot-cushion","fc-scrollgrid-sync-inner",e.isSticky&&"fc-sticky"],elAttrs:this.buildCellNavLinkAttrs(t,r.date,r.rowUnit)}))))}}function mt(e,t,i){return i&&"time"!==i?Re(e,t,i):{}}function gt(e){return e.text}function St(e){return{level:e.level,date:e.dateEnv.toDate(e.dateMarker),view:e.viewApi,text:e.text}}class Ct extends e{render(){let{dateProfile:e,tDateProfile:t,rowInnerHeights:i,todayRange:s,nowDate:r}=this.props,{cellRows:l}=t;return n(o,null,l.map(((o,a)=>{let d=a===l.length-1,c=t.isTimeScale&&d;return n("tr",{key:a,className:["fc-timeline-header-row",c?"fc-timeline-header-row-chrono":""].join(" ")},o.map((o=>n(pt,{key:o.date.toISOString(),cell:o,rowLevel:a,dateProfile:e,tDateProfile:t,todayRange:s,nowDate:r,rowInnerHeight:i&&i[a],isSticky:!d}))))})))}}class Rt{constructor(e,t,i,s,r,n){this.slatRootEl=e,this.dateProfile=i,this.tDateProfile=s,this.dateEnv=r,this.isRtl=n,this.outerCoordCache=new he(e,t,!0,!1),this.innerCoordCache=new he(e,ue(t,"div"),!0,!1)}isDateInRange(e){return fe(this.dateProfile.currentRange,e)}dateToCoord(e){let{tDateProfile:t}=this,i=this.computeDateSnapCoverage(e)/t.snapsPerSlot,s=Math.floor(i);s=Math.min(s,t.slotCnt-1);let r=i-s,{innerCoordCache:n,outerCoordCache:o}=this;return this.isRtl?o.originClientRect.width-(o.rights[s]-n.getWidth(s)*r):o.lefts[s]+n.getWidth(s)*r}rangeToCoords(e){return{start:this.dateToCoord(e.start),end:this.dateToCoord(e.end)}}durationToCoord(e){let{dateProfile:t,tDateProfile:i,dateEnv:s,isRtl:r}=this,n=0;if(t){let o=s.add(t.activeRange.start,e);i.isTimeScale||(o=ae(o)),n=this.dateToCoord(o),!r&&n&&(n+=1)}return n}coordFromLeft(e){return this.isRtl?this.outerCoordCache.originClientRect.width-e:e}computeDateSnapCoverage(e){return wt(e,this.tDateProfile,this.dateEnv)}}function wt(e,t,i){let s=i.countDurationsBetween(t.normalizedRange.start,e,t.snapDuration);if(s<0)return 0;if(s>=t.snapDiffToIndex.length)return t.snapCnt;let r=Math.floor(s),n=t.snapDiffToIndex[r];return de(n)?n+=s-r:n=Math.ceil(n),n}function yt(e,t){return null===e?{left:"",right:""}:t?{right:e,left:""}:{left:e,right:""}}function vt(e,t){return e?t?{right:e.start,left:-e.end}:{left:e.start,right:-e.end}:{left:"",right:""}}class bt extends e{constructor(){super(...arguments),this.rootElRef=y()}render(){let{props:e,context:t}=this,i=I(e.tDateProfile.slotDuration).unit,s=e.slatCoords&&e.slatCoords.dateProfile===e.dateProfile?e.slatCoords:null;return n(U,{unit:i},((i,r)=>n("div",{className:"fc-timeline-header",ref:this.rootElRef},n("table",{"aria-hidden":!0,className:"fc-scrollgrid-sync-table",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,n("tbody",null,n(Ct,{dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:i,todayRange:r,rowInnerHeights:e.rowInnerHeights}))),t.options.nowIndicator&&n("div",{className:"fc-timeline-now-indicator-container"},s&&s.isDateInRange(i)&&n(G,{elClasses:["fc-timeline-now-indicator-arrow"],elStyle:yt(s.dateToCoord(i),t.isRtl),isAxis:!0,date:i})))))}componentDidMount(){this.updateSize()}componentDidUpdate(){this.updateSize()}updateSize(){this.props.onMaxCushionWidth&&this.props.onMaxCushionWidth(this.computeMaxCushionWidth())}computeMaxCushionWidth(){return Math.max(...m(this.rootElRef.current,".fc-timeline-header-row:last-child .fc-timeline-slot-cushion").map((e=>e.getBoundingClientRect().width)))}}class xt extends e{render(){let{props:e,context:t}=this,{dateEnv:i,options:s,theme:r}=t,{date:o,tDateProfile:l,isEm:a}=e,d=me(e.date,e.todayRange,e.nowDate,e.dateProfile),c=Object.assign(Object.assign({date:i.toDate(e.date)},d),{view:t.viewApi});return n(Ce,{elTag:"td",elRef:e.elRef,elClasses:["fc-timeline-slot","fc-timeline-slot-lane",a&&"fc-timeline-slot-em",l.isTimeScale?de(i.countDurationsBetween(l.normalizedRange.start,e.date,l.labelInterval))?"fc-timeline-slot-major":"fc-timeline-slot-minor":"",...e.isDay?Se(d,r):ge(d,r)],elAttrs:{"data-date":i.formatIso(o,{omitTimeZoneOffset:!0,omitTime:!l.isTimeScale})},renderProps:c,generatorName:"slotLaneContent",customGenerator:s.slotLaneContent,classNameGenerator:s.slotLaneClassNames,didMount:s.slotLaneDidMount,willUnmount:s.slotLaneWillUnmount},(e=>n(e,{elTag:"div"})))}}class Dt extends e{render(){let{props:e}=this,{tDateProfile:t,cellElRefs:i}=e,{slotDates:s,isWeekStarts:r}=t,o=!t.isTimeScale&&!t.largeUnit;return n("tbody",null,n("tr",null,s.map(((s,l)=>{let a=s.toISOString();return n(xt,{key:a,elRef:i.createRef(a),date:s,dateProfile:e.dateProfile,tDateProfile:t,nowDate:e.nowDate,todayRange:e.todayRange,isEm:r[l],isDay:o})}))))}}class Et extends e{constructor(){super(...arguments),this.rootElRef=y(),this.cellElRefs=new i,this.handleScrollRequest=e=>{let{onScrollLeftRequest:t}=this.props,{coords:i}=this;if(t&&i){if(e.time){t(i.coordFromLeft(i.durationToCoord(e.time)))}return!0}return null}}render(){let{props:e,context:t}=this;return n("div",{className:"fc-timeline-slots",ref:this.rootElRef},n("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,n(Dt,{cellElRefs:this.cellElRefs,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange})))}componentDidMount(){this.updateSizing(),this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.updateSizing(),this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach(),this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{props:e,context:t}=this;if(null!==e.clientWidth&&this.scrollResponder){this.rootElRef.current.offsetWidth&&(this.coords=new Rt(this.rootElRef.current,(i=this.cellElRefs.currentMap,e.tDateProfile.slotDates.map((e=>{let t=e.toISOString();return i[t]}))),e.dateProfile,e.tDateProfile,t.dateEnv,t.isRtl),e.onCoords&&e.onCoords(this.coords),this.scrollResponder.update(!1))}var i}positionToHit(e){let{outerCoordCache:t}=this.coords,{dateEnv:i,isRtl:s}=this.context,{tDateProfile:r}=this.props,n=t.leftToIndex(e);if(null!=n){let o=t.getWidth(n),l=s?(t.rights[n]-e)/o:(e-t.lefts[n])/o,a=Math.floor(l*r.snapsPerSlot),d=i.add(r.slotDates[n],$(r.snapDuration,a));return{dateSpan:{range:{start:d,end:i.add(d,r.snapDuration)},allDay:!this.props.tDateProfile.isTimeScale},dayEl:this.cellElRefs.currentMap[n],left:t.lefts[n],right:t.rights[n]}}return null}}function Wt(e,t,i){let s=[];if(i)for(let r of e){let e=i.rangeToCoords(r),n=Math.round(e.start),o=Math.round(e.end);o-n<t&&(o=n+t),s.push({start:n,end:o})}return s}class kt extends e{render(){let{props:e}=this,t=[].concat(e.eventResizeSegs,e.dateSelectionSegs);return e.timelineCoords&&n("div",{className:"fc-timeline-bg"},this.renderSegs(e.businessHourSegs||[],e.timelineCoords,"non-business"),this.renderSegs(e.bgEventSegs||[],e.timelineCoords,"bg-event"),this.renderSegs(t,e.timelineCoords,"highlight"))}renderSegs(e,t,i){let{todayRange:s,nowDate:r}=this.props,{isRtl:l}=this.context,a=Wt(e,0,t),d=e.map(((e,t)=>{let o=vt(a[t],l);return n("div",{key:se(e.eventRange),className:"fc-timeline-bg-harness",style:o},"bg-event"===i?n(te,Object.assign({seg:e},ie(e,s,r))):ee(i))}));return n(o,null,d)}}class Mt extends J{sliceRange(e,t,i,s,r){let n=function(e,t,i){if(!t.isTimeScale&&(e=ce(e),t.largeUnit)){let s=e;((e={start:i.startOf(e.start,t.largeUnit),end:i.startOf(e.end,t.largeUnit)}).end.valueOf()!==s.end.valueOf()||e.end<=e.start)&&(e={start:e.start,end:i.add(e.end,t.slotDuration)})}return e}(e,s,r),o=[];if(wt(n.start,s,r)<wt(n.end,s,r)){let e=K(n,s.normalizedRange);e&&o.push({start:e.start,end:e.end,isStart:e.start.valueOf()===n.start.valueOf()&&ct(e.start,s,t,i),isEnd:e.end.valueOf()===n.end.valueOf()&&ct(Q(e.end,-1),s,t,i)})}return o}}const Ht=_({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});class Pt extends e{render(){let{props:e}=this;return n(Ee,Object.assign({},e,{elClasses:["fc-timeline-event","fc-h-event"],defaultTimeFormat:Ht,defaultDisplayEventTime:!e.isTimeScale}))}}class Tt extends e{render(){let{props:e,context:t}=this,{hiddenSegs:i,placement:s,resourceId:r}=e,{top:l,hcoords:a}=s,d=a&&null!==l,c=vt(a,t.isRtl),h=r?{resourceId:r}:{};return n(De,{elRef:e.elRef,elClasses:["fc-timeline-more-link"],elStyle:Object.assign({visibility:d?"":"hidden",top:l||0},c),allDayDate:null,moreCnt:i.length,allSegs:i,hiddenSegs:i,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:h,popoverContent:()=>n(o,null,i.map((t=>{let i=t.eventRange.instance.instanceId;return n("div",{key:i,style:{visibility:e.isForcedInvisible[i]?"hidden":""}},n(Pt,Object.assign({isTimeScale:e.isTimeScale,seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:i===e.eventSelection},ie(t,e.todayRange,e.nowDate))))})))},(e=>n(e,{elTag:"div",elClasses:["fc-timeline-more-link-inner","fc-sticky"]})))}}class Nt extends e{constructor(){super(...arguments),this.slicer=new Mt,this.sortEventSegs=A(we),this.harnessElRefs=new i,this.moreElRefs=new i,this.innerElRef=y(),this.state={eventInstanceHeights:{},moreLinkHeights:{}},this.handleResize=e=>{e&&this.updateSize()}}render(){let{props:e,state:t,context:i}=this,{options:s}=i,{dateProfile:r,tDateProfile:l}=e,a=this.slicer.sliceProps(e,r,l.isTimeScale?null:e.nextDayThreshold,i,r,i.dateProfileGenerator,l,i.dateEnv),d=(a.eventDrag?a.eventDrag.segs:null)||(a.eventResize?a.eventResize.segs:null)||[],c=this.sortEventSegs(a.fgEventSegs,s.eventOrder),h=Wt(c,s.eventMinWidth,e.timelineCoords),[u,f]=function(e,t,i,s,r,n){let o=[],l=[];for(let s=0;s<e.length;s+=1){let r=e[s],n=i[r.eventRange.instance.instanceId],a=t[s];n&&a?o.push({index:s,span:a,thickness:n}):l.push({seg:r,hcoords:a,top:null})}let a=new be;null!=r&&(a.strictOrder=r),null!=n&&(a.maxStackCnt=n);let d=a.addSegs(o),c=d.map((t=>({seg:e[t.index],hcoords:t.span,top:null}))),h=xe(d),u=[],f=[];const p=t=>e[t.index];for(let t=0;t<h.length;t+=1){let i=h[t],r=i.entries.map(p),n=s[ye(ve(r))];null!=n?u.push({index:e.length+t,thickness:n,span:i.span}):f.push({seg:r,hcoords:i.span,top:null})}a.maxStackCnt=-1,a.addSegs(u);let m=a.toRects(),g=[],S=0;for(let t of m){let i=t.index;g.push({seg:i<e.length?e[i]:h[i-e.length].entries.map(p),hcoords:t.span,top:t.levelCoord}),S=Math.max(S,t.levelCoord+t.thickness)}return[g.concat(l,c,f),S]}(c,h,t.eventInstanceHeights,t.moreLinkHeights,s.eventOrderStrict,s.eventMaxStack),p=(a.eventDrag?a.eventDrag.affectedInstances:null)||(a.eventResize?a.eventResize.affectedInstances:null)||{};return n(o,null,n(kt,{businessHourSegs:a.businessHourSegs,bgEventSegs:a.bgEventSegs,timelineCoords:e.timelineCoords,eventResizeSegs:a.eventResize?a.eventResize.segs:[],dateSelectionSegs:a.dateSelectionSegs,nowDate:e.nowDate,todayRange:e.todayRange}),n("div",{className:"fc-timeline-events fc-scrollgrid-sync-inner",ref:this.innerElRef,style:{height:f}},this.renderFgSegs(u,p,!1,!1,!1),this.renderFgSegs(function(e,t,i){if(!e.length||!t)return[];let s=function(e){let t={};for(let i of e){let{seg:e}=i;Array.isArray(e)||(t[e.eventRange.instance.instanceId]=i.top)}return t}(i);return e.map((e=>({seg:e,hcoords:t.rangeToCoords(e),top:s[e.eventRange.instance.instanceId]})))}(d,e.timelineCoords,u),{},Boolean(a.eventDrag),Boolean(a.eventResize),!1)))}componentDidMount(){this.updateSize(),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){e.eventStore===this.props.eventStore&&e.timelineCoords===this.props.timelineCoords&&t.moreLinkHeights===this.state.moreLinkHeights||this.updateSize()}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateSize(){let{props:e}=this,{timelineCoords:t}=e;const i=this.innerElRef.current;e.onHeightChange&&e.onHeightChange(i,!1),t&&this.setState({eventInstanceHeights:C(this.harnessElRefs.currentMap,(e=>Math.round(e.getBoundingClientRect().height))),moreLinkHeights:C(this.moreElRefs.currentMap,(e=>Math.round(e.getBoundingClientRect().height)))},(()=>{e.onHeightChange&&e.onHeightChange(i,!0)})),e.syncParentMinHeight&&(i.parentElement.style.minHeight=i.style.height)}renderFgSegs(e,t,i,s,r){let{harnessElRefs:l,moreElRefs:a,props:d,context:c}=this,h=i||s||r;return n(o,null,e.map((e=>{let{seg:o,hcoords:u,top:f}=e;if(Array.isArray(o)){let i=ye(ve(o));return n(Tt,{key:"m:"+i,elRef:a.createRef(i),hiddenSegs:o,placement:e,dateProfile:d.dateProfile,nowDate:d.nowDate,todayRange:d.todayRange,isTimeScale:d.tDateProfile.isTimeScale,eventSelection:d.eventSelection,resourceId:d.resourceId,isForcedInvisible:t})}let p=o.eventRange.instance.instanceId,m=h||Boolean(!t[p]&&u&&null!==f),g=vt(u,c.isRtl);return n("div",{key:"e:"+p,ref:h?null:l.createRef(p),className:"fc-timeline-event-harness",style:Object.assign({visibility:m?"":"hidden",top:f||0},g)},n(Pt,Object.assign({isTimeScale:d.tDateProfile.isTimeScale,seg:o,isDragging:i,isResizing:s,isDateSelecting:r,isSelected:p===d.eventSelection},ie(o,d.todayRange,d.nowDate))))})))}}Nt.addStateEquality({eventInstanceHeights:b,moreLinkHeights:b});class zt extends B{constructor(){super(...arguments),this.slatsRef=y(),this.state={coords:null},this.handeEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)},this.handleCoords=e=>{this.setState({coords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:t,context:i}=this,{options:s}=i,{dateProfile:r,tDateProfile:l}=e,a=I(l.slotDuration).unit;return n("div",{className:"fc-timeline-body",ref:this.handeEl,style:{minWidth:e.tableMinWidth,height:e.clientHeight,width:e.clientWidth}},n(U,{unit:a},((a,d)=>n(o,null,n(Et,{ref:this.slatsRef,dateProfile:r,tDateProfile:l,nowDate:a,todayRange:d,clientWidth:e.clientWidth,tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,onCoords:this.handleCoords,onScrollLeftRequest:e.onScrollLeftRequest}),n(Nt,{dateProfile:r,tDateProfile:e.tDateProfile,nowDate:a,todayRange:d,nextDayThreshold:s.nextDayThreshold,businessHours:e.businessHours,eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,timelineCoords:t.coords,syncParentMinHeight:!0}),s.nowIndicator&&t.coords&&t.coords.isDateInRange(a)&&n("div",{className:"fc-timeline-now-indicator-container"},n(G,{elClasses:["fc-timeline-now-indicator-line"],elStyle:yt(t.coords.dateToCoord(a),i.isRtl),isAxis:!1,date:a}))))))}queryHit(e,t,i,s){let r=this.slatsRef.current.positionToHit(e);return r?{dateProfile:this.props.dateProfile,dateSpan:r.dateSpan,rect:{left:r.left,right:r.right,top:0,bottom:s},dayEl:r.dayEl,layer:0}:null}}function Lt(e,t){return[{span:e.slotCnt,minWidth:t||1}]}ke('.fc .fc-timeline-body{min-height:100%;position:relative;z-index:1}.fc .fc-timeline-slots{bottom:0;position:absolute;top:0;z-index:1}.fc .fc-timeline-slots>table{height:100%}.fc .fc-timeline-slot-minor{border-style:dotted}.fc .fc-timeline-slot-frame{align-items:center;display:flex;justify-content:center}.fc .fc-timeline-header-row-chrono .fc-timeline-slot-frame{justify-content:flex-start}.fc .fc-timeline-header-row:last-child .fc-timeline-slot-frame{overflow:hidden}.fc .fc-timeline-slot-cushion{padding:4px 5px;white-space:nowrap}.fc-direction-ltr .fc-timeline-slot{border-right:0!important}.fc-direction-rtl .fc-timeline-slot{border-left:0!important}.fc .fc-timeline-now-indicator-container{bottom:0;left:0;position:absolute;right:0;top:0;width:0;z-index:4}.fc .fc-timeline-now-indicator-arrow,.fc .fc-timeline-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;pointer-events:none;position:absolute;top:0}.fc .fc-timeline-now-indicator-arrow{border-left-color:transparent;border-right-color:transparent;border-width:6px 5px 0;margin:0 -6px}.fc .fc-timeline-now-indicator-line{border-width:0 0 0 1px;bottom:0;margin:0 -1px}.fc .fc-timeline-events{position:relative;width:0;z-index:3}.fc .fc-timeline-event-harness,.fc .fc-timeline-more-link{position:absolute;top:0}.fc-timeline-event{z-index:1}.fc-timeline-event.fc-event-mirror{z-index:2}.fc-timeline-event{align-items:center;border-radius:0;display:flex;font-size:var(--fc-small-font-size);margin-bottom:1px;padding:2px 1px;position:relative}.fc-timeline-event .fc-event-main{flex-grow:1;flex-shrink:1;min-width:0}.fc-timeline-event .fc-event-time{font-weight:700}.fc-timeline-event .fc-event-time,.fc-timeline-event .fc-event-title{padding:0 2px;white-space:nowrap}.fc-direction-ltr .fc-timeline-event.fc-event-end,.fc-direction-ltr .fc-timeline-more-link{margin-right:1px}.fc-direction-rtl .fc-timeline-event.fc-event-end,.fc-direction-rtl .fc-timeline-more-link{margin-left:1px}.fc-timeline-overlap-disabled .fc-timeline-event{margin-bottom:0;padding-bottom:5px;padding-top:5px}.fc-timeline-event:not(.fc-event-end):after,.fc-timeline-event:not(.fc-event-start):before{border-color:transparent #000;border-style:solid;border-width:5px;content:"";flex-grow:0;flex-shrink:0;height:0;margin:0 1px;opacity:.5;width:0}.fc-direction-ltr .fc-timeline-event:not(.fc-event-start):before,.fc-direction-rtl .fc-timeline-event:not(.fc-event-end):after{border-left:0}.fc-direction-ltr .fc-timeline-event:not(.fc-event-end):after,.fc-direction-rtl .fc-timeline-event:not(.fc-event-start):before{border-right:0}.fc-timeline-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;font-size:var(--fc-small-font-size);padding:1px}.fc-timeline-more-link-inner{display:inline-block;left:0;padding:2px;right:0}.fc .fc-timeline-bg{bottom:0;left:0;position:absolute;right:0;top:0;width:0;z-index:2}.fc .fc-timeline-bg .fc-non-business{z-index:1}.fc .fc-timeline-bg .fc-bg-event{z-index:2}.fc .fc-timeline-bg .fc-highlight{z-index:3}.fc .fc-timeline-bg-harness{bottom:0;position:absolute;top:0}');var It=Me({name:"@fullcalendar/timeline",premiumReleaseDate:"2024-07-12",deps:[Pe],initialView:"timelineDay",views:{timeline:{component:class extends B{constructor(){super(...arguments),this.buildTimelineDateProfile=A(at),this.scrollGridRef=y(),this.state={slatCoords:null,slotCushionMaxWidth:null},this.handleSlatCoords=e=>{this.setState({slatCoords:e})},this.handleScrollLeftRequest=e=>{this.scrollGridRef.current.forceScrollLeft(0,e)},this.handleMaxCushionWidth=e=>{this.setState({slotCushionMaxWidth:Math.ceil(e)})}}render(){let{props:e,state:t,context:i}=this,{options:s}=i,r=!e.forPrint&&O(s),o=!e.forPrint&&q(s),l=this.buildTimelineDateProfile(e.dateProfile,i.dateEnv,s,i.dateProfileGenerator),{slotMinWidth:a}=s,d=Lt(l,a||this.computeFallbackSlotMinWidth(l)),c=[{type:"header",key:"header",isSticky:r,chunks:[{key:"timeline",content:i=>n(bt,{dateProfile:e.dateProfile,clientWidth:i.clientWidth,clientHeight:i.clientHeight,tableMinWidth:i.tableMinWidth,tableColGroupNode:i.tableColGroupNode,tDateProfile:l,slatCoords:t.slatCoords,onMaxCushionWidth:a?null:this.handleMaxCushionWidth})}]},{type:"body",key:"body",liquid:!0,chunks:[{key:"timeline",content:t=>n(zt,Object.assign({},e,{clientWidth:t.clientWidth,clientHeight:t.clientHeight,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,tDateProfile:l,onSlatCoords:this.handleSlatCoords,onScrollLeftRequest:this.handleScrollLeftRequest}))}]}];return o&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"timeline",content:re}]}),n(j,{elClasses:["fc-timeline",!1===s.eventOverlap?"fc-timeline-overlap-disabled":""],viewSpec:i.viewSpec},n(Je,{ref:this.scrollGridRef,liquid:!e.isHeightAuto&&!e.forPrint,forPrint:e.forPrint,collapsibleWidth:!1,colGroups:[{cols:d}],sections:c}))}computeFallbackSlotMinWidth(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)}},usesMinMaxTime:!0,eventResizableFromStart:!0},timelineDay:{type:"timeline",duration:{days:1}},timelineWeek:{type:"timeline",duration:{weeks:1}},timelineMonth:{type:"timeline",duration:{months:1}},timelineYear:{type:"timeline",duration:{years:1}}}});function Gt({depth:e,hasChildren:t,isExpanded:i,onExpanderClick:s}){let r=[];for(let t=0;t<e;t+=1)r.push(n("span",{className:"fc-icon"}));let l=["fc-icon"];return t&&(i?l.push("fc-icon-minus-square"):l.push("fc-icon-plus-square")),r.push(n("span",{className:"fc-datagrid-expander"+(t?"":" fc-datagrid-expander-placeholder"),onClick:s},n("span",{className:l.join(" ")}))),n(o,{},...r)}class Ut extends e{constructor(){super(...arguments),this.refineRenderProps=pe(At),this.onExpanderClick=e=>{let{props:t}=this;t.hasChildren&&this.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:t.resource.id,isExpanded:!t.isExpanded})}}render(){let{props:e,context:t}=this,{colSpec:i}=e,s=this.refineRenderProps({resource:e.resource,fieldValue:e.fieldValue,context:t});return n(Ce,{elTag:"td",elClasses:["fc-datagrid-cell","fc-resource"],elAttrs:{role:"gridcell","data-resource-id":e.resource.id},renderProps:s,generatorName:i.isMain?"resourceLabelContent":void 0,customGenerator:i.cellContent,defaultGenerator:Bt,classNameGenerator:i.cellClassNames,didMount:i.cellDidMount,willUnmount:i.cellWillUnmount},(t=>n("div",{className:"fc-datagrid-cell-frame",style:{height:e.innerHeight}},n("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},i.isMain&&n(Gt,{depth:e.depth,hasChildren:e.hasChildren,isExpanded:e.isExpanded,onExpanderClick:this.onExpanderClick}),n(t,{elTag:"span",elClasses:["fc-datagrid-cell-main"]})))))}}function Bt(e){return e.fieldValue||n(o,null," ")}function At(e){return{resource:new Ge(e.context,e.resource),fieldValue:e.fieldValue,view:e.context.viewApi}}class Ot extends e{render(){let{props:e,context:t}=this,{colSpec:i}=e,s={groupValue:e.fieldValue,view:t.viewApi};return n(Ce,{elTag:"td",elClasses:["fc-datagrid-cell","fc-resource-group"],elAttrs:{role:"gridcell",rowSpan:e.rowSpan},renderProps:s,generatorName:"resourceGroupLabelContent",customGenerator:i.cellContent,defaultGenerator:qt,classNameGenerator:i.cellClassNames,didMount:i.cellDidMount,willUnmount:i.cellWillUnmount},(e=>n("div",{className:"fc-datagrid-cell-frame fc-datagrid-cell-frame-liquid"},n(e,{elTag:"div",elClasses:["fc-datagrid-cell-cushion","fc-sticky"]}))))}}function qt(e){return e.groupValue||n(o,null," ")}class jt extends e{render(){let{props:e}=this,{resource:t,rowSpans:i,depth:s}=e,r=ze(t);return n("tr",{role:"row"},e.colSpecs.map(((o,l)=>{let a=i[l];if(0===a)return null;null==a&&(a=1);let d=o.field?r[o.field]:t.title||Le(t.id);return a>1?n(Ot,{key:l,colSpec:o,fieldValue:d,rowSpan:a}):n(Ut,{key:l,colSpec:o,resource:t,fieldValue:d,depth:s,hasChildren:e.hasChildren,isExpanded:e.isExpanded,innerHeight:e.innerHeight})})))}}jt.addPropsEquality({rowSpans:k});class _t extends e{constructor(){super(...arguments),this.innerInnerRef=y(),this.onExpanderClick=()=>{let{props:e}=this;this.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:e.id,isExpanded:!e.isExpanded})}}render(){let{props:e,context:t}=this,i={groupValue:e.group.value,view:t.viewApi},s=e.group.spec;return n("tr",{role:"row"},n(Ce,{elTag:"th",elClasses:["fc-datagrid-cell","fc-resource-group",t.theme.getClass("tableCellShaded")],elAttrs:{role:"columnheader",scope:"colgroup",colSpan:e.spreadsheetColCnt},renderProps:i,generatorName:"resourceGroupLabelContent",customGenerator:s.labelContent,defaultGenerator:Vt,classNameGenerator:s.labelClassNames,didMount:s.labelDidMount,willUnmount:s.labelWillUnmount},(t=>n("div",{className:"fc-datagrid-cell-frame",style:{height:e.innerHeight}},n("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner",ref:this.innerInnerRef},n(Gt,{depth:0,hasChildren:!0,isExpanded:e.isExpanded,onExpanderClick:this.onExpanderClick}),n(t,{elTag:"span",elClasses:["fc-datagrid-cell-main"]}))))))}}function Vt(e){return e.groupValue||n(o,null," ")}_t.addPropsEquality({group:Be});class Ft extends e{constructor(){super(...arguments),this.resizerElRefs=new i(this._handleColResizerEl.bind(this)),this.colDraggings={}}render(){let{colSpecs:e,superHeaderRendering:t,rowInnerHeights:i}=this.props,s={view:this.context.viewApi},r=[];if(i=i.slice(),t){let o=i.shift();r.push(n("tr",{key:"row-super",role:"row"},n(Ce,{elTag:"th",elClasses:["fc-datagrid-cell","fc-datagrid-cell-super"],elAttrs:{role:"columnheader",scope:"colgroup",colSpan:e.length},renderProps:s,generatorName:"resourceAreaHeaderContent",customGenerator:t.headerContent,defaultGenerator:t.headerDefault,classNameGenerator:t.headerClassNames,didMount:t.headerDidMount,willUnmount:t.headerWillUnmount},(e=>n("div",{className:"fc-datagrid-cell-frame",style:{height:o}},n(e,{elTag:"div",elClasses:["fc-datagrid-cell-cushion","fc-scrollgrid-sync-inner"]}))))))}let l=i.shift();return r.push(n("tr",{key:"row",role:"row"},e.map(((t,i)=>{let r=i===e.length-1;return n(Ce,{key:i,elTag:"th",elClasses:["fc-datagrid-cell"],elAttrs:{role:"columnheader"},renderProps:s,generatorName:"resourceAreaHeaderContent",customGenerator:t.headerContent,defaultGenerator:t.headerDefault,classNameGenerator:t.headerClassNames,didMount:t.headerDidMount,willUnmount:t.headerWillUnmount},(e=>n("div",{className:"fc-datagrid-cell-frame",style:{height:l}},n("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},t.isMain&&n("span",{className:"fc-datagrid-expander fc-datagrid-expander-placeholder"},n("span",{className:"fc-icon"})),n(e,{elTag:"span",elClasses:["fc-datagrid-cell-main"]})),!r&&n("div",{className:"fc-datagrid-cell-resizer",ref:this.resizerElRefs.createRef(i)}))))})))),n(o,null,r)}_handleColResizerEl(e,t){let{colDraggings:i}=this;if(e){let s=this.initColResizing(e,parseInt(t,10));s&&(i[t]=s)}else{let e=i[t];e&&(e.destroy(),delete i[t])}}initColResizing(e,t){let{pluginHooks:i,isRtl:s}=this.context,{onColWidthChange:r}=this.props,n=i.elementDraggingImpl;if(n){let i,o,l=new n(e);return l.emitter.on("dragstart",(()=>{let s=m(He(e,"tr"),"th");o=s.map((e=>e.getBoundingClientRect().width)),i=o[t]})),l.emitter.on("dragmove",(e=>{o[t]=Math.max(i+e.deltaX*(s?-1:1),20),r&&r(o.slice())})),l.setAutoScrollEnabled(!1),l}return null}}class Xt extends e{constructor(){super(...arguments),this.refineRenderProps=pe(Ue),this.handleHeightChange=(e,t)=>{this.props.onHeightChange&&this.props.onHeightChange(He(e,"tr"),t)}}render(){let{props:e,context:t}=this,{options:i}=t,s=this.refineRenderProps({resource:e.resource,context:t});return n("tr",{ref:e.elRef},n(Ce,{elTag:"td",elClasses:["fc-timeline-lane","fc-resource"],elAttrs:{"data-resource-id":e.resource.id},renderProps:s,generatorName:"resourceLaneContent",customGenerator:i.resourceLaneContent,classNameGenerator:i.resourceLaneClassNames,didMount:i.resourceLaneDidMount,willUnmount:i.resourceLaneWillUnmount},(t=>n("div",{className:"fc-timeline-lane-frame",style:{height:e.innerHeight}},n(t,{elTag:"div",elClasses:["fc-timeline-lane-misc"]}),n(Nt,{dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,nextDayThreshold:e.nextDayThreshold,businessHours:e.businessHours,eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,timelineCoords:e.timelineCoords,onHeightChange:this.handleHeightChange,resourceId:e.resource.id})))))}}class Yt extends e{render(){let{props:e,context:t}=this,{renderHooks:i}=e,s={groupValue:e.groupValue,view:t.viewApi};return n("tr",{ref:e.elRef},n(Ce,{elTag:"td",elRef:e.elRef,elClasses:["fc-timeline-lane","fc-resource-group",t.theme.getClass("tableCellShaded")],renderProps:s,generatorName:"resourceGroupLaneContent",customGenerator:i.laneContent,classNameGenerator:i.laneClassNames,didMount:i.laneDidMount,willUnmount:i.laneWillUnmount},(t=>n(t,{elTag:"div",elStyle:{height:e.innerHeight}}))))}}class Zt extends e{render(){let{props:e,context:t}=this,{rowElRefs:i,innerHeights:s}=e;return n("tbody",null,e.rowNodes.map(((r,o)=>{if(r.group)return n(Yt,{key:r.id,elRef:i.createRef(r.id),groupValue:r.group.value,renderHooks:r.group.spec,innerHeight:s[o]||""});if(r.resource){let l=r.resource;return n(Xt,Object.assign({key:r.id,elRef:i.createRef(r.id)},e.splitProps[l.id],{resource:l,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,nextDayThreshold:t.options.nextDayThreshold,businessHours:l.businessHours||e.fallbackBusinessHours,innerHeight:s[o]||"",timelineCoords:e.slatCoords,onHeightChange:e.onRowHeightChange}))}return null})))}}class Jt extends e{constructor(){super(...arguments),this.rootElRef=y(),this.rowElRefs=new i}render(){let{props:e,context:t}=this;return n("table",{ref:this.rootElRef,"aria-hidden":!0,className:"fc-scrollgrid-sync-table "+t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},n(Zt,{rowElRefs:this.rowElRefs,rowNodes:e.rowNodes,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,splitProps:e.splitProps,fallbackBusinessHours:e.fallbackBusinessHours,slatCoords:e.slatCoords,innerHeights:e.innerHeights,onRowHeightChange:e.onRowHeightChange}))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}componentWillUnmount(){this.props.onRowCoords&&this.props.onRowCoords(null)}updateCoords(){let{props:e}=this;var t;e.onRowCoords&&null!==e.clientWidth&&this.props.onRowCoords(new he(this.rootElRef.current,(t=this.rowElRefs.currentMap,e.rowNodes.map((e=>t[e.id]))),!1,!0))}}class Kt extends B{constructor(){super(...arguments),this.computeHasResourceBusinessHours=A(Qt),this.resourceSplitter=new Ne,this.bgSlicer=new Mt,this.slatsRef=y(),this.state={slatCoords:null},this.handleEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)},this.handleRowCoords=e=>{this.rowCoords=e,this.props.onRowCoords&&this.props.onRowCoords(e)}}render(){let{props:e,state:t,context:i}=this,{dateProfile:s,tDateProfile:r}=e,l=I(r.slotDuration).unit,a=this.computeHasResourceBusinessHours(e.rowNodes),d=this.resourceSplitter.splitProps(e),c=d[""],h=this.bgSlicer.sliceProps(c,s,r.isTimeScale?null:e.nextDayThreshold,i,s,i.dateProfileGenerator,r,i.dateEnv),u=t.slatCoords&&t.slatCoords.dateProfile===e.dateProfile?t.slatCoords:null;return n("div",{ref:this.handleEl,className:["fc-timeline-body",e.expandRows?"fc-timeline-body-expandrows":""].join(" "),style:{minWidth:e.tableMinWidth}},n(U,{unit:l},((t,l)=>n(o,null,n(Et,{ref:this.slatsRef,dateProfile:s,tDateProfile:r,nowDate:t,todayRange:l,clientWidth:e.clientWidth,tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,onCoords:this.handleSlatCoords,onScrollLeftRequest:e.onScrollLeftRequest}),n(kt,{businessHourSegs:a?null:h.businessHourSegs,bgEventSegs:h.bgEventSegs,timelineCoords:u,eventResizeSegs:h.eventResize?h.eventResize.segs:[],dateSelectionSegs:h.dateSelectionSegs,nowDate:t,todayRange:l}),n(Jt,{rowNodes:e.rowNodes,dateProfile:s,tDateProfile:e.tDateProfile,nowDate:t,todayRange:l,splitProps:d,fallbackBusinessHours:a?e.businessHours:null,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,innerHeights:e.rowInnerHeights,slatCoords:u,onRowCoords:this.handleRowCoords,onRowHeightChange:e.onRowHeightChange}),i.options.nowIndicator&&u&&u.isDateInRange(t)&&n("div",{className:"fc-timeline-now-indicator-container"},n(G,{elClasses:["fc-timeline-now-indicator-line"],elStyle:yt(u.dateToCoord(t),i.isRtl),isAxis:!1,date:t}))))))}queryHit(e,t){let i=this.rowCoords,s=i.topToIndex(t);if(null!=s){let t=this.props.rowNodes[s].resource;if(t){let r=this.slatsRef.current.positionToHit(e);if(r)return{dateProfile:this.props.dateProfile,dateSpan:{range:r.dateSpan.range,allDay:r.dateSpan.allDay,resourceId:t.id},rect:{left:r.left,right:r.right,top:i.tops[s],bottom:i.bottoms[s]},dayEl:r.dayEl,layer:0}}}return null}}function Qt(e){for(let t of e){let e=t.resource;if(e&&e.businessHours)return!0}return!1}class $t extends e{constructor(){super(...arguments),this.scrollGridRef=y(),this.timeBodyScrollerElRef=y(),this.spreadsheetHeaderChunkElRef=y(),this.rootElRef=y(),this.ensureScrollGridResizeId=0,this.state={resourceAreaWidthOverride:null},this.ensureScrollGridResize=()=>{this.ensureScrollGridResizeId&&clearTimeout(this.ensureScrollGridResizeId),this.ensureScrollGridResizeId=setTimeout((()=>{this.scrollGridRef.current.handleSizing(!1)}),f.SCROLLGRID_RESIZE_INTERVAL+1)}}render(){let{props:e,state:t,context:i}=this,{options:s}=i,r=!e.forPrint&&O(s),o=!e.forPrint&&q(s),l=[{type:"header",key:"header",syncRowHeights:!0,isSticky:r,chunks:[{key:"datagrid",elRef:this.spreadsheetHeaderChunkElRef,tableClassName:"fc-datagrid-header",rowContent:e.spreadsheetHeaderRows},{key:"divider",outerContent:n("td",{role:"presentation",className:"fc-resource-timeline-divider "+i.theme.getClass("tableCellShaded")})},{key:"timeline",content:e.timeHeaderContent}]},{type:"body",key:"body",syncRowHeights:!0,liquid:!0,expandRows:Boolean(s.expandRows),chunks:[{key:"datagrid",tableClassName:"fc-datagrid-body",rowContent:e.spreadsheetBodyRows},{key:"divider",outerContent:n("td",{role:"presentation",className:"fc-resource-timeline-divider "+i.theme.getClass("tableCellShaded")})},{key:"timeline",scrollerElRef:this.timeBodyScrollerElRef,content:e.timeBodyContent}]}];o&&l.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"datagrid",content:re},{key:"divider",outerContent:n("td",{role:"presentation",className:"fc-resource-timeline-divider "+i.theme.getClass("tableCellShaded")})},{key:"timeline",content:re}]});let a=null!=t.resourceAreaWidthOverride?t.resourceAreaWidthOverride:s.resourceAreaWidth;return n(Je,{ref:this.scrollGridRef,elRef:this.rootElRef,liquid:!e.isHeightAuto&&!e.forPrint,forPrint:e.forPrint,collapsibleWidth:!1,colGroups:[{cols:e.spreadsheetCols,width:a},{cols:[]},{cols:e.timeCols}],sections:l})}forceTimeScroll(e){this.scrollGridRef.current.forceScrollLeft(2,e)}forceResourceScroll(e){this.scrollGridRef.current.forceScrollTop(1,e)}getResourceScroll(){return this.timeBodyScrollerElRef.current.scrollTop}componentDidMount(){this.initSpreadsheetResizing()}componentWillUnmount(){this.destroySpreadsheetResizing()}initSpreadsheetResizing(){let{isRtl:e,pluginHooks:t}=this.context,i=t.elementDraggingImpl,s=this.spreadsheetHeaderChunkElRef.current;if(i){let t,r,n=this.rootElRef.current,o=this.spreadsheetResizerDragging=new i(n,".fc-resource-timeline-divider");o.emitter.on("dragstart",(()=>{t=s.getBoundingClientRect().width,r=n.getBoundingClientRect().width})),o.emitter.on("dragmove",(i=>{let s=t+i.deltaX*(e?-1:1);s=Math.max(s,30),s=Math.min(s,r-30),this.setState({resourceAreaWidthOverride:s},this.ensureScrollGridResize)})),o.setAutoScrollEnabled(!1)}}destroySpreadsheetResizing(){this.spreadsheetResizerDragging&&this.spreadsheetResizerDragging.destroy()}}class ei extends e{constructor(e,t){super(e,t),this.processColOptions=A(ri),this.buildTimelineDateProfile=A(at),this.hasNesting=A(si),this.buildRowNodes=A(Te),this.layoutRef=y(),this.rowNodes=[],this.renderedRowNodes=[],this.buildRowIndex=A(ti),this.handleSlatCoords=e=>{this.setState({slatCoords:e})},this.handleRowCoords=e=>{this.rowCoords=e,this.scrollResponder.update(!1)},this.handleMaxCushionWidth=e=>{this.setState({slotCushionMaxWidth:Math.ceil(e)})},this.handleScrollLeftRequest=e=>{this.layoutRef.current.forceTimeScroll(e)},this.handleScrollRequest=e=>{let{rowCoords:t}=this,i=this.layoutRef.current,s=e.rowId||e.resourceId;if(t){if(s){let r=this.buildRowIndex(this.renderedRowNodes)[s];if(null!=r){let s=null!=e.fromBottom?t.bottoms[r]-e.fromBottom:t.tops[r];i.forceResourceScroll(s)}}return!0}return null},this.handleColWidthChange=e=>{this.setState({spreadsheetColWidths:e})},this.state={resourceAreaWidth:t.options.resourceAreaWidth,spreadsheetColWidths:[]}}render(){let{props:e,state:t,context:i}=this,{options:s,viewSpec:r}=i,{superHeaderRendering:l,groupSpecs:a,orderSpecs:d,isVGrouping:c,colSpecs:h}=this.processColOptions(i.options),u=this.buildTimelineDateProfile(e.dateProfile,i.dateEnv,s,i.dateProfileGenerator),f=this.rowNodes=this.buildRowNodes(e.resourceStore,a,d,c,e.resourceEntityExpansions,s.resourcesInitiallyExpanded),{slotMinWidth:p}=s,m=Lt(u,p||this.computeFallbackSlotMinWidth(u));return n(j,{elClasses:["fc-resource-timeline",!this.hasNesting(f)&&"fc-resource-timeline-flat","fc-timeline",!1===s.eventOverlap?"fc-timeline-overlap-disabled":"fc-timeline-overlap-enabled"],viewSpec:r},n($t,{ref:this.layoutRef,forPrint:e.forPrint,isHeightAuto:e.isHeightAuto,spreadsheetCols:ii(h,t.spreadsheetColWidths,""),spreadsheetHeaderRows:e=>n(Ft,{superHeaderRendering:l,colSpecs:h,onColWidthChange:this.handleColWidthChange,rowInnerHeights:e.rowSyncHeights}),spreadsheetBodyRows:e=>n(o,null,this.renderSpreadsheetRows(f,h,e.rowSyncHeights)),timeCols:m,timeHeaderContent:i=>n(bt,{clientWidth:i.clientWidth,clientHeight:i.clientHeight,tableMinWidth:i.tableMinWidth,tableColGroupNode:i.tableColGroupNode,dateProfile:e.dateProfile,tDateProfile:u,slatCoords:t.slatCoords,rowInnerHeights:i.rowSyncHeights,onMaxCushionWidth:p?null:this.handleMaxCushionWidth}),timeBodyContent:t=>n(Kt,{dateProfile:e.dateProfile,clientWidth:t.clientWidth,clientHeight:t.clientHeight,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,expandRows:t.expandRows,tDateProfile:u,rowNodes:f,businessHours:e.businessHours,dateSelection:e.dateSelection,eventStore:e.eventStore,eventUiBases:e.eventUiBases,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,resourceStore:e.resourceStore,nextDayThreshold:i.options.nextDayThreshold,rowInnerHeights:t.rowSyncHeights,onSlatCoords:this.handleSlatCoords,onRowCoords:this.handleRowCoords,onScrollLeftRequest:this.handleScrollLeftRequest,onRowHeightChange:t.reportRowHeightChange})}))}renderSpreadsheetRows(e,t,i){return e.map(((e,s)=>e.group?n(_t,{key:e.id,id:e.id,spreadsheetColCnt:t.length,isExpanded:e.isExpanded,group:e.group,innerHeight:i[s]||""}):e.resource?n(jt,{key:e.id,colSpecs:t,rowSpans:e.rowSpans,depth:e.depth,isExpanded:e.isExpanded,hasChildren:e.hasChildren,resource:e.resource,innerHeight:i[s]||""}):null))}componentDidMount(){this.renderedRowNodes=this.rowNodes,this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}getSnapshotBeforeUpdate(){return this.props.forPrint?{}:{resourceScroll:this.queryResourceScroll()}}componentDidUpdate(e,t,i){this.renderedRowNodes=this.rowNodes,this.scrollResponder.update(e.dateProfile!==this.props.dateProfile),i.resourceScroll&&this.handleScrollRequest(i.resourceScroll)}componentWillUnmount(){this.scrollResponder.detach()}computeFallbackSlotMinWidth(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)}queryResourceScroll(){let{rowCoords:e,renderedRowNodes:t}=this;if(e){let i=this.layoutRef.current,s=e.bottoms,r=i.getResourceScroll(),n={};for(let e=0;e<s.length;e+=1){let i=t[e],o=s[e]-r;if(o>0){n.rowId=i.id,n.fromBottom=o;break}}return n}return null}}function ti(e){let t={};for(let i=0;i<e.length;i+=1)t[e[i].id]=i;return t}function ii(e,t,i=""){return e.map(((e,s)=>({className:e.isMain?"fc-main-col":"",width:t[s]||e.width||i})))}function si(e){for(let t of e){if(t.group)return!0;if(t.resource&&t.hasChildren)return!0}return!1}function ri(e){let t=e.resourceAreaColumns||[],i=null;t.length?e.resourceAreaHeaderContent&&(i={headerClassNames:e.resourceAreaHeaderClassNames,headerContent:e.resourceAreaHeaderContent,headerDidMount:e.resourceAreaHeaderDidMount,headerWillUnmount:e.resourceAreaHeaderWillUnmount}):t.push({headerClassNames:e.resourceAreaHeaderClassNames,headerContent:e.resourceAreaHeaderContent,headerDefault:()=>"Resources",headerDidMount:e.resourceAreaHeaderDidMount,headerWillUnmount:e.resourceAreaHeaderWillUnmount});let s=[],r=[],n=[],o=!1;for(let i of t)i.group?r.push(Object.assign(Object.assign({},i),{cellClassNames:i.cellClassNames||e.resourceGroupLabelClassNames,cellContent:i.cellContent||e.resourceGroupLabelContent,cellDidMount:i.cellDidMount||e.resourceGroupLabelDidMount,cellWillUnmount:i.cellWillUnmount||e.resourceGroupLaneWillUnmount})):s.push(i);let l=s[0];if(l.isMain=!0,l.cellClassNames=l.cellClassNames||e.resourceLabelClassNames,l.cellContent=l.cellContent||e.resourceLabelContent,l.cellDidMount=l.cellDidMount||e.resourceLabelDidMount,l.cellWillUnmount=l.cellWillUnmount||e.resourceLabelWillUnmount,r.length)n=r,o=!0;else{let t=e.resourceGroupField;t&&n.push({field:t,labelClassNames:e.resourceGroupLabelClassNames,labelContent:e.resourceGroupLabelContent,labelDidMount:e.resourceGroupLabelDidMount,labelWillUnmount:e.resourceGroupLabelWillUnmount,laneClassNames:e.resourceGroupLaneClassNames,laneContent:e.resourceGroupLaneContent,laneDidMount:e.resourceGroupLaneDidMount,laneWillUnmount:e.resourceGroupLaneWillUnmount})}let a=e.resourceOrder||Ie,d=[];for(let e of a){let t=!1;for(let i of n)if(i.field===e.field){i.order=e.order,t=!0;break}t||d.push(e)}return{superHeaderRendering:i,isVGrouping:o,groupSpecs:n,colSpecs:r.concat(s),orderSpecs:d}}ei.addStateEquality({spreadsheetColWidths:k});ke(".fc .fc-resource-timeline-divider{cursor:col-resize;width:3px}.fc .fc-resource-group{font-weight:inherit;text-align:inherit}.fc .fc-resource-timeline .fc-resource-group:not([rowspan]){background:var(--fc-neutral-bg-color)}.fc .fc-timeline-lane-frame{position:relative}.fc .fc-timeline-overlap-enabled .fc-timeline-lane-frame .fc-timeline-events{box-sizing:content-box;padding-bottom:10px}.fc-timeline-body-expandrows td.fc-timeline-lane{position:relative}.fc-timeline-body-expandrows .fc-timeline-lane-frame{position:static}.fc-datagrid-cell-frame-liquid{height:100%}.fc-liquid-hack .fc-datagrid-cell-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-datagrid-header .fc-datagrid-cell-frame{align-items:center;display:flex;justify-content:flex-start;position:relative}.fc .fc-datagrid-cell-resizer{bottom:0;cursor:col-resize;position:absolute;top:0;width:5px;z-index:1}.fc .fc-datagrid-cell-cushion{overflow:hidden;padding:8px;white-space:nowrap}.fc .fc-datagrid-expander{cursor:pointer;opacity:.65}.fc .fc-datagrid-expander .fc-icon{display:inline-block;width:1em}.fc .fc-datagrid-expander-placeholder{cursor:auto}.fc .fc-resource-timeline-flat .fc-datagrid-expander-placeholder{display:none}.fc-direction-ltr .fc-datagrid-cell-resizer{right:-3px}.fc-direction-rtl .fc-datagrid-cell-resizer{left:-3px}.fc-direction-ltr .fc-datagrid-expander{margin-right:3px}.fc-direction-rtl .fc-datagrid-expander{margin-left:3px}");var ni=Me({name:"@fullcalendar/resource-timeline",premiumReleaseDate:"2024-07-12",deps:[Pe,Ae,It],initialView:"resourceTimelineDay",views:{resourceTimeline:{type:"timeline",component:ei,needsResourceData:!0,resourceAreaWidth:"30%",resourcesInitiallyExpanded:!0,eventResizableFromStart:!0},resourceTimelineDay:{type:"resourceTimeline",duration:{days:1}},resourceTimelineWeek:{type:"resourceTimeline",duration:{weeks:1}},resourceTimelineMonth:{type:"resourceTimeline",duration:{months:1}},resourceTimelineYear:{type:"resourceTimeline",duration:{years:1}}}});export{ni as default};

Filemanager

Name Type Size Permission Actions
index.min.js File 62.44 KB 0664
Filemanager