PageSourceSearch

https://app.liveconnect.chat/chunk-2UDL2DOZ.js

js liveconnect.chat collected 2026-09-25 20:07:23 UTC 41,933 bytes, 1 lines download raw bytes

1import{a as Rt,b as Ht,c as Ct,d as K,e as ze,f as Dt,g as It,h as xt,i as Nt,j as Mt,k as Et,l as Wt,m as Pt,n as Bt,o as Tt,p as Ue,q as _e,r as Fe,s as kt,t as Lt,u as Ae,v as zt,w as Ut}from"./chunk-HPD5BKW7.js";import"./chunk-COSZTZ25.js";import{D as yt,E as pt,F as me,H as U,I as Le,J as vt,L as wt,M as ie,O as Q,P as bt,h as b,j as fe,m as q,n as C,p as j,q as w,r as gt,s as Te,t as ke,u as ft,v as mt,x as St}from"./chunk-5X7M54FI.js";import"./chunk-4A4DKXUY.js";import{A as ot,Q as Pe,W as dt,a as n,b as J,la as Be,na as ht,r as ue,ra as ct,t as We,ua as ge,va as ut,w as at}from"./chunk-4OU4QC5G.js";import{B as lt,C as rt,D as Me,b as tt,e as st,i as oe,l as nt,p as Ne,r as de,t as he,v as it,x as ne,y as ce}from"./chunk-WCG3ZKCT.js";import{b as Z,c as F,d as z,i as l}from"./chunk-2J42OKYU.js";import{a as m,b as Ee}from"./chunk-PT7SSTZA.js";import{a as v,b as H}from"./chunk-F5S5MOMQ.js";var qe=Pe(),Oe=class{constructor(){this.getKeysForEventDefs=b(this._getKeysForEventDefs),this.splitDateSelection=b(this._splitDateSpan),this.splitEventStore=b(this._splitEventStore),this.splitIndividualUi=b(this._splitIndividualUi),this.splitEventDrag=b(this._splitInteraction),this.splitEventResize=b(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let s=this.getKeyInfo(e),t=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),a=this.splitIndividualUi(e.eventUiBases,t),o=this.splitEventStore(e.eventStore,t),d=this.splitEventDrag(e.eventDrag),h=this.splitEventResize(e.eventResize),u={};this.eventUiBuilders=We(s,(g,f)=>this.eventUiBuilders[f]||b(Jt));for(let g in s){let f=s[g],y=o[g]||qe,c=this.eventUiBuilders[g];u[g]={businessHours:f.businessHours||e.businessHours,dateSelection:i[g]||null,eventStore:y,eventUiBases:c(e.eventUiBases[""],f.ui,a[g]),eventDrag:d[g]||null,eventResize:h[g]||null,eventSelection:y.instances[e.eventSelection]?e.eventSelection:""}}return u}_splitDateSpan(e){let s={};if(e){let t=this.getKeysForDateSpan(e);for(let i of t)s[i]=e}return s}_getKeysForEventDefs(e){return We(e.defs,s=>this.getKeysForEventDef(s))}_splitEventStore(e,s){let{defs:t,instances:i}=e,a={};for(let o in t)for(let d of s[o])a[d]||(a[d]=Pe()),a[d].defs[o]=t[o];for(let o in i){let d=i[o];for(let h of s[d.defId])a[h]&&(a[h].instances[o]=d)}return a}_splitIndividualUi(e,s){let t={};for(let i in e)if(i)for(let a of s[i])t[a]||(t[a]={}),t[a][i]=e[i];return t}_splitInteraction(e){let s={};if(e){let t=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),i=this._getKeysForEventDefs(e.mutatedEvents),a=this._splitEventStore(e.mutatedEvents,i),o=d=>{s[d]||(s[d]={affectedEvents:t[d]||qe,mutatedEvents:a[d]||qe,isEvent:e.isEvent})};for(let d in t)o(d);for(let d in a)o(d)}return s}};function Jt(r,e,s){let t=[];r&&t.push(r),e&&t.push(e);let i={"":dt(t)};return s&&Object.assign(i,s),i}var Se=class extends Oe{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?ht(e)?["timed","allDay"]:["allDay"]:["timed"]}},ye=class extends Rt{sliceRange(e,s){let t=[];for(let i=0;i<s.length;i+=1){let a=nt(e,s[i]);a&&t.push({startDate:a.start,endDate:a.end,isStart:a.start.valueOf()===e.start.valueOf(),isEnd:a.end.valueOf()===e.end.valueOf(),col:i})}return t}};function $(r,e){let s=[],t;for(t=0;t<e;t+=1)s.push([]);if(r)for(t=0;t<r.length;t+=1)s[r[t].col].push(r[t]);return s}function Xe(r,e){let s=[];if(r){for(let t=0;t<e;t+=1)s[t]={affectedInstances:r.affectedInstances,isEvent:r.isEvent,segs:[]};for(let t of r.segs)s[t.col].segs.push(t)}else for(let t=0;t<e;t+=1)s[t]=null;return s}var _t=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Qt(r,e,s,t,i){let a=new Date(0),o=r,d=de(0),h=s||$t(t),u=[],g=0;for(;ne(o)<ne(e);){let f=i.add(a,o),y=ce(d,h)!==null;u.push({date:f,time:o,key:f.toISOString(),isoTimeStr:rt(f),isLabeled:y,isFirst:g===0}),o=he(o,t),d=he(d,t),g+=1}return u}function $t(r){let e,s,t;for(e=_t.length-1;e>=0;e-=1)if(s=de(_t[e]),t=ce(s,r),t!==null&&t>1)return s;return r}var pe=class extends q{constructor(){super(...arguments),this.innerElRef=F()}render(){let{props:e}=this,{options:s,viewApi:t}=this.context,i={text:s.allDayText,view:t,isNarrow:e.isNarrow};return l(j,{tag:"div",attrs:{role:"rowheader"},className:m(n.flexRow,n.noMargin,n.noPadding,n.contentBox),style:{width:e.width},renderProps:i,generatorName:"allDayHeaderContent",customGenerator:s.allDayHeaderContent,defaultGenerator:es,classNameGenerator:s.allDayHeaderClass,didMount:s.allDayHeaderDidMount,willUnmount:s.allDayHeaderWillUnmount,children:a=>l("div",{className:m(n.flexRow,n.noShrink,n.whiteSpacePre),ref:this.innerElRef,children:l(a,{tag:"div",className:w(s.allDayHeaderInnerClass,i)})})})}componentDidMount(){this._isUnmounting=!1;let{props:e}=this,s=this.innerElRef.current;this.disconnectInnerWidth=vt(s,t=>{this._isUnmounting||C(e.innerWidthRef,t)})}componentWillUnmount(){this._isUnmounting=!0,this.disconnectInnerWidth(),C(this.props.innerWidthRef,null)}};function es(r){return r.text}var ve=class extends ie{constructor(){super(...arguments),this.heightRef=F(),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){return l(Lt,H(v({}
1,this.props),{rootElRef:this.handleRootEl,heightRef:this.heightRef}))}queryHit(e,s,t,i){let{props:a,heightRef:o}=this,d=a.cells.length,{col:h,left:u,right:g}=Ue(s,i,a.colWidth,d,e),f=a.cells[h],y=f.date,c=tt(y,1);return{dateProfile:a.dateProfile,dateSpan:v({range:{start:y,end:c},allDay:!0},f.dateSpanProps),getDayEl:()=>_e(this.rootEl,h),rect:{left:u,right:g,top:0,bottom:o.current},layer:0}}};function Gt(r,e,s){let t=new Pt(r.renderRange,e);return new Bt(t,!1,s)}function Kt(r,e,s){let t=[];for(let i of r.headerDates)t.push({start:s.add(i,e.slotMinTime),end:s.add(i,e.slotMaxTime)});return t}function jt(r,e,s=0,t,i){if(!t||!i)return[void 0,!1];let a=Math.max(t+1,s),o=i/e,d,h;return r&&o>=a?(d=!0,h=o):(d=!1,h=a),[h,d]}function we(r,e,s){return s||(s=oe(r)),Xt(de(r.valueOf()-s.valueOf()),e)}function Xt(r,e){let s=ne(e.slotMinTime),t=ne(e.slotMaxTime),i=(r.milliseconds-s)/(t-s);return i=Math.max(0,i),i=Math.min(1,i),i}function Ft(r,e,s,t,i,a,o){let d=[];if(i!=null){let h=i*t;for(let u of r){let g=we(u.startDate,e,s),f=we(u.endDate,e,s),y=g*h,c=f*h,p=c-y;a!=null&&p<a&&(p=a,c=y+p),d.push({start:y,end:c,size:p,isShort:p<=o})}}return d}function ts(r,e,s,t){let i=[];for(let u=0;u<r.length;u++){let g=e[u];g&&i.push(H(v({},r[u]),{start:g.start,end:g.end}))}let a=new Mt(i,void 0,s,void 0,t),o=ss(a);o=rs(o,1);let d=as(o),h=Et(a.hiddenSegs);return[d,h]}function ss(r){let{placementsByLevel:e}=r,s=Ve((i,a)=>i+":"+a,(i,a)=>{let o=ls(r,i,a),[d,h]=At(o,s),u=e[i][a];return[H(v({},u),{nextLevelNodes:d}),u.thickness+h]}),[t]=At(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,s);return t}function At(r,e){if(!r)return[[],0];let{level:s,lateralStart:t,lateralEnd:i}=r,a=t,o=[];for(;a<i;)o.push(e(s,a)),a+=1;return o.sort(ns),[o.map(is),o[0][1]]}function ns(r,e){return e[1]-r[1]}function is(r){return r[0]}function ls(r,e,s){let{levelCoords:t,placementsByLevel:i}=r,a=i[e][s],o=t[e]+a.thickness,d=t.length,h=e;for(;h<d&&t[h]<o;h+=1);for(;h<d;h+=1){let u=i[h],g,f=Wt(u,a.start,xt),y=f[0]+f[1],c=y;for(;(g=u[c])&&g.start<a.end;)c+=1;if(y<c)return{level:h,lateralStart:y,lateralEnd:c}}return null}function rs(r,e){let s=Ve((t,i,a)=>Be(t),(t,i,a)=>{let{nextLevelNodes:o,thickness:d}=t,h=d+a,u=d/h,g,f=[];if(!o.length)g=e;else for(let c of o)if(g===void 0){let p=s(c,i,h);g=p[0],f.push(p[1])}else{let p=s(c,g,0);f.push(p[1])}let y=(g-i)*u;return[g-y,H(v({},t),{thickness:y,nextLevelNodes:f})]});return r.map(t=>s(t,0,0)[1])}function as(r){let e=new Map,s=Ve((i,a,o)=>Be(i),(i,a,o)=>{let d=H(v({},i),{levelCoord:a,stackDepth:o,stackForward:0});return e.set(d.eventRange.instance.instanceId,d),d.stackForward=t(i.nextLevelNodes,a+i.thickness,o+1)});function t(i,a,o){let d=0;for(let h of i)d=Math.max(s(h,a,o)+1,d);return d}return t(r,0,0),e}function Ve(r,e){let s={};return(...t)=>{let i=r(...t);return i in s?s[i]:s[i]=e(...t)}}var os=J({hour:"numeric",minute:"2-digit",meridiem:!1}),be=class extends q{render(){let{props:e}=this;return l(bt,H(v({},e),{display:"column",level:e.level,isNarrow:e.isNarrow,isShort:e.isShort,className:e.isLiquid?n.liquid:"",disableLiquid:!e.isLiquid,defaultTimeFormat:os}))}},Ge=class extends q{render(){let{props:e}=this;return l("div",{className:m(n.abs,n.flexCol),style:{top:e.top,height:e.height,insetInlineEnd:0,zIndex:9999},children:l(Nt,{className:n.liquid,display:"column",allDayDate:null,segs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,dateSpanProps:e.dateSpanProps,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>Vt(e.hiddenSegs,e,!1),forceTimed:!0,isNarrow:e.isNarrow,isMicro:e.isMicro})})}},ds=r=>l(fe.Consumer,{children:e=>{let{options:s}=e;return l("div",{className:m(r.className,s.nowIndicatorDotClass),style:r.style})}}),hs=r=>l(fe.Consumer,{children:e=>{let{options:s}=e,t={date:e.dateEnv.toDate(r.date),view:e.viewApi};return l(j,{elRef:r.elRef,tag:r.tag||"div",attrs:r.attrs,className:r.className,style:r.style,renderProps:t,generatorName:"nowIndicatorLineContent",customGenerator:s.nowIndicatorLineContent,classNameGenerator:s.nowIndicatorLineClass,didMount:s.nowIndicatorLineDidMount,willUnmount:s.nowIndicatorLineWillUnmount,children:r.children})}});function cs(r){let e=r.totalHeight!=null?r.totalHeight*we(r.nowDate,r.dateProfile,r.dayDate):void 0;return l("div",{className:n.fill,style:{zIndex:2,pointerEvents:"none"},children:[l(hs,{className:m(n.fillX,n.noMarginX,n.borderlessX),style:{to
1p:e},date:r.nowDate}),(r.showDot??!0)&&l(ds,{className:m(n.abs,n.start0),style:{top:e}})]})}var Ye=typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes("firefox"),Ke=class extends q{constructor(){super(...arguments),this.sortEventSegs=b(ct),this.getDateMeta=b(me)}render(){let{props:e,context:s}=this,{options:t,dateEnv:i}=s,a=t.selectMirror,o=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||a&&e.dateSelectionSegs||[],d=this.getDateMeta(e.date,i,e.dateProfile,e.todayRange),h=m(e.borderStart?n.borderOnlyS:n.borderNone,e.width==null&&n.liquid,n.rel),u={width:e.width,zIndex:1},g=this.getIsStack(),f=H(v(v({},d),e.renderProps),{isStack:g,isNarrow:e.isNarrow,isMajor:e.isMajor,view:s.viewApi});if(d.isDisabled)return l("div",{role:"gridcell","aria-disabled":!0,className:m(w(t.dayLaneClass,f),h),style:u});let y=m(w(t.dayLaneInnerClass,f),!g&&n.fill),c=this.sortEventSegs(e.fgEventSegs,t.eventOrder);return l(j,{tag:"div",attrs:H(v(H(v({},e.attrs),{role:"gridcell"}),d.isToday?{"aria-current":"date"}:{}),{"data-date":lt(e.date)}),className:h,style:u,renderProps:f,generatorName:void 0,classNameGenerator:t.dayLaneClass,didMount:t.dayLaneDidMount,willUnmount:t.dayLaneWillUnmount,children:()=>l(z,{children:[this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight"),l("div",{className:y,style:{zIndex:1},children:this.renderFgSegs(c,!1)}),!!o.length&&l("div",{className:y,style:{zIndex:1},children:this.renderFgSegs(o,!0)}),this.renderNowIndicator(e.nowIndicatorSegs)]})})}renderFgSegs(e,s){let{props:t}=this;return this.getIsStack()?Vt(e,t,s):this.renderPositionedFgSegs(e,s
1)}renderPositionedFgSegs(e,s){let{props:t,context:i}=this,{date:a,dateProfile:o,eventSelection:d,todayRange:h,nowDate:u}=t,{eventMaxStack:g,eventShortHeight:f,eventOrderStrict:y,eventMinHeight:c}=i.options,p=Ft(e,o,a,t.slatCnt,t.slatHeight,c,f),[D,W]=ts(e,p,y,g);return l(z,{children:[e.map((R,I)=>{let{eventRange:S}=R,{instanceId:x}=S.instance,N=p[I]||{},P=D.get(x),k=!s&&P?this.computeSegHStyle(P):{left:0,right:0,zIndex:0},M=x===d;M&&(k.zIndex+=1e3);let A=!!(t.eventDrag&&t.eventDrag.affectedInstances[x]),G=!!(t.eventResize&&t.eventResize.affectedInstances[x]),X=!s&&(A||G||!P);return l("div",{className:m(n.abs,n.flexCol),style:v({visibility:X?"hidden":void 0,top:N.start,height:N.size},k),children:l(be,v({eventRange:S,slicedStart:R.startDate,slicedEnd:R.endDate,isStart:R.isStart,isEnd:R.isEnd,isDragging:A,isResizing:G,isMirror:s,isSelected:M,level:P?P.stackDepth:0,isNarrow:t.isNarrow,isShort:N.isShort||!1,isLiquid:!0},ge(S,h,u)))},x)}),this.renderHiddenGroups(W)]})}renderHiddenGroups(e){let{dateSpanProps:s,dateProfile:t,todayRange:i,nowDate:a,eventSelection:o,eventDrag:d,eventResize:h,isNarrow:u,isMicro:g}=this.props;return l(z,{children:e.map(f=>l(Ge,{hiddenSegs:f.segs,top:f.start,height:f.end-f.start,isNarrow:u,isMicro:g,dateSpanProps:s,dateProfile:t,todayRange:i,nowDate:a,eventSelection:o,eventDrag:d,eventResize:h},f.key))})}renderFillSegs(e,s){let{props:t,context:i}=this,a=Ft(e,t.dateProfile,t.date,t.slatCnt,t.slatHeight,i.options.eventMinHeight,i.options.eventShortHeight);return l(z,{children:e.map((o,d)=>{let{eventRange:h}=o,u=a[d]||{};return l("div",{className:n.fillX,style:{top:u.start,height:u.size,marginInlineStart:-1},children:s==="bg-event"?l(Dt,v({eventRange:h,isStart:o.isStart,isEnd:o.isEnd,isNarrow:t.isNarrow,isShort:u.isShort||!1,isVertical:!0},ge(h,t.todayRange,t.nowDate))):It(s,i.options)},ut(h))})})}renderNowIndicator(e){let{props:s}=this;if(!(s.forPrint||this.getIsStack()))return e.map((t,i)=>l(cs,{nowDate:t.startDate,dayDate:s.date,dateProfile:s.dateProfile,totalHeight:s.slatHeight!=null?s.slatHeight*s.slatCnt:void 0,showDot:t.showDot??!0},i))}computeSegHStyle(e){let{options:s}=this.context,t=s.slotEventOverlap,i=e.levelCoord,a=e.levelCoord+e.thickness;t&&(a=Math.min(1,i+(a-i)*2));let o={zIndex:e.stackDepth+1,insetInlineStart:Ee(i),insetInlineEnd:Ee(1-a),marginInlineEnd:void 0};return t&&e.stackForward&&(o.marginInlineEnd=20),o}getIsStack(){let{eventPrintLayout:e}=this.context.options;return this.props.forPrint&&(e==="stack"||e!=="grid"&&Ye)}};function Vt(r,{todayRange:e,nowDate:s,eventSelection:t,eventDrag:i,eventResize:a},o){return l(z,{children:r.map(d=>{let{eventRange:h}=d,{instanceId:u}=h.instance,g=!!(i&&i.affectedInstances[u]),f=!!(a&&a.affectedInstances[u]),y=g||f;return l("div",{className:n.breakInsideAvoid,style:{visibility:y?"hidden":void 0},children:l(be,v({eventRange:h,slicedStart:d.startDate,slicedEnd:d.endDate,isStart:d.isStart,isEnd:d.isEnd,isDragging:g,isResizing:f,isMirror:o,isSelected:u===t,level:0,isShort:!1,isNarrow:!1,disableResizing:!0},ge(h,e,s)))},u)})})}var le=class extends ie{constructor(){super(...arguments),this.processSlotOptions=b(us),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e}=this;return l("div",{role:e.role,className:m(e.className,n.flexRow),ref:this.handleRootEl,children:e.cells.map((s,t)=>l(Ke,{dateProfile:e.dateProfile,nowDate:e.nowDate,todayRange:e.todayRange,date:s.date,isMajor:s.isMajor,slatCnt:e.slatCnt,renderProps:s.renderProps,attrs:s.attrs,dateSpanProps:s.dateSpanProps,forPrint:e.forPrint,borderStart:!!t,isNarrow:e.cellIsNarrow,isMicro:e.cellIsMicro,fgEventSegs:e.fgEventSegsByCol[t],bgEventSegs:e.bgEventSegsByCol[t],businessHourSegs:e.businessHourSegsByCol[t],nowIndicatorSegs:e.nowIndicatorSegsByCol[t],dateSelectionSegs:e.dateSelectionSegsByCol[t],eventDrag:e.eventDragByCol[t],eventResize:e.eventResizeByCol[t],eventSelection:e.eventSelection,width:e.colWidth,slatHeight:e.slatHeight},s.key))})}queryHit(e,s,t,i){let{dateProfile:a,cells:o,colWidth:d,slatHeight:h}=this.props,{dateEnv:u,options:g}=this.context,{snapDuration:f,snapsPerSlot:y}=this.processSlotOptions(g.slotDuration,g.snapDuration),c=o.length,{col:p,left:D,right:W}=Ue(s,i,d,c,e),R=o[p],I=Math.floor(t/h),S=I*h,x=(t-S)/h,N=Math.floor(x*y),P=I*y+N,k=he(a.slotMinTime,it(f,P)),M=u.add(R.date,k),A=u.add(M,f);return{dateProfile:a,dateSpan:v({range:{start:M,end:A},allDay:!1},R.dateSpanProps),getDayEl:()=>_e(this.rootEl,p),rect:{left:D,right:W,top:S,bottom:S+h},layer:0}}};le.addPropsEquality({style:at});function us(r,e){let s=e||r,t=ce(r,s);return t===null&&(s=r,t=1),{snapDuration:s,snapsPerSlot:t}}var gs=r=>l(fe.Consumer,{children:e=>{let{options:s}=e,t={date:e.dateEnv.toDate(r.date),view:e.viewApi};return l(j,{elRef:r.elRef,tag:r.tag||"div",attrs:r.attrs,className:r.className,style:r.style,renderProps:t,generatorName:"nowIndicatorHeaderContent",customGenerator:s.nowIndicatorHeaderContent,classNameGenerator:s.nowIndicatorHeaderClass,didMount:s.nowIndicatorHeaderDidMount,willUnmount:s.nowIndicatorHeaderWillUnmount,children:r.children})}});function Yt(r){return l("div",{className:m(n.fill,n.crop),style:{zIndex:2,pointerEvents:"none"}
1,children:l(gs,{className:n.abs,style:{top:r.totalHeight!=null?r.totalHeight*we(r.nowDate,r.dateProfile):void 0},date:r.nowDate})})}var fs=J({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"}),Re=class extends q{constructor(){super(...arguments),this.createRenderProps=b(ms),this.innerElRef=F()}render(){let{props:e,context:s}=this,{options:t}=s,i=t.slotHeaderFormat==null?fs:Array.isArray(t.slotHeaderFormat)?J(t.slotHeaderFormat[0]):J(t.slotHeaderFormat),a=this.createRenderProps(e.date,e.time,!e.isLabeled,e.isNarrow,e.isFirst,i,s),o=m(e.liquidHeight&&n.liquid,n.flexRow,n.alignStart,n.noMargin,n.noPadding,e.borderTop?n.borderOnlyT:n.borderNone);return e.isLabeled?l(j,{tag:"div",attrs:{"data-time":e.isoTimeStr},style:{height:e.height},className:o,renderProps:a,generatorName:"slotHeaderContent",customGenerator:t.slotHeaderContent,defaultGenerator:Ss,classNameGenerator:t.slotHeaderClass,didMount:t.slotHeaderDidMount,willUnmount:t.slotHeaderWillUnmount,children:d=>l("div",{ref:this.innerElRef,className:m(n.noShrink,n.whiteSpaceNoWrap,n.flexRow),children:l(d,{tag:"div",className:w(t.slotHeaderInnerClass,a)})})}):l("div",{className:m(w(t.slotHeaderClass,a),o),style:{height:e.height}})}componentDidMount(){this._isUnmounting=!1;let{props:e}=this,s=this.innerElRef.current;s&&(this.disconnectInnerSize=Le(s,(t,i)=>{this._isUnmounting||(C(e.innerWidthRef,t),C(e.innerHeightRef,i))}))}componentWillUnmount(){let{props:e}=this;this._isUnmounting=!0,this.disconnectInnerSize&&(this.disconnectInnerSize(),C(e.innerWidthRef,null),C(e.innerHeightRef,null))}};function ms(r,e,s,t,i,a,o){return H(v({},me(r,o.dateEnv)),{level:0,text:Me(o.dateEnv.formatToParts(r,a)),time:e,isMajor:!1,isMinor:s,isTime:!0,isNarrow:t,hasNavLink:!1,isFirst:i,view:o.viewApi})}function Ss(r){return r.text}var He=class extends q{constructor(){super(...arguments),this.getDateMeta=b(me)}render(){let{props:e,context:s}=this,{options:t}=s,i=H(v({},this.getDateMeta(e.date,s.dateEnv)),{time:e.time,isMajor:!1,isMinor:!e.isLabeled,view:s.viewApi});return l(j,{tag:"div",attrs:{"data-time":e.isoTimeStr},className:m(n.noMargin,n.noPadding,n.liquid,e.borderTop?n.borderOnlyT:n.borderNone),renderProps:i,generatorName:void 0,classNameGenerator:t.slotLaneClass,didMount:t.slotLaneDidMount,willUnmount:t.slotLaneWillUnmount})}},ys=J({week:"short"}),Ce=class extends q{constructor(){super(...arguments),this.innerElRef=F()}render(){let{props:e,context:s}=this,{options:t,dateEnv:i}=s,a=e.dateProfile.renderRange,d=st(a.start,a.end)===1&&t.navLinks,h=a.start,u=yt(s,h,"week"),g=i.computeWeekNumber(h),f=i.formatToParts(h,t.weekNumberFormat||ys),y=Me(f),c=i.toDate(h),p={num:g,text:y,textParts:f,date:c,isNarrow:e.isNarrow,hasNavLink:d,options:{dayMinWidth:t.dayMinWidth}};return l(j,{tag:"div",attrs:{role:"gridcell","aria-label":u},className:m(n.flexRow,n.noMargin,n.noPadding,e.isLiquid?n.liquid:n.contentBox),style:{width:e.width},renderProps:p,generatorName:"weekNumberHeaderContent",customGenerator:t.weekNumberHeaderContent,defaultGenerator:gt,classNameGenerator:t.weekNumberHeaderClass,didMount:t.weekNumberHeaderDidMount,willUnmount:t.weekNumberHeaderWillUnmount,children:D=>l("div",{ref:this.innerElRef,className:m(n.flexRow,n.noShrink,n.whiteSpaceNoWrap),children:l(D,{tag:"div",attrs:d?pt(s,a.start,"week",u):{"aria-label":u},className:w(t.weekNumberHeaderInnerClass,p)})})})}componentDidMount(){this._isUnmounting=!1;let{props:e}=this,s=this.innerElRef.current;this.disconnectInnerSize=Le(s,(t,i)=>{this._isUnmounting||(C(e.innerWidthRef,t),C(e.innerHeightRef,i))})}componentWillUnmount(){let{props:e}=this;this._isUnmounting=!0,this.disconnectInnerSize(),C(e.innerWidthRef,null),C(e.innerHeightRef,null)}};function Zt(r){return l("div",{role:"gridcell",className:r.isLiquid?n.liquid:n.contentBox,style:{width:r.width}})}var De=class extends q{constructor(){super(...arguments),this.state={headerTierHeights:[]},this.headerLabelInnerWidthRefMap=new K(()=>{U(this.handleAxisWidths)}),this.headerLabelInnerHeightRefMap=new K(()=>{U(this.handleHeaderHeights)}),this.headerMainInnerHeightRefMap=new K(()=>{U(this.handleHeaderHeights)}),this.handleAllDayLabelInnerWidth=e=>{this.allDayLabelInnerWidth=e,U(this.handleAxisWidths)},this.slatLabelInnerWidthRefMap=new K(()=>{U(this.handleAxisWidths)}),this.slatLabelInnerHeightRefMap=new K(()=>{U(this.handleSlatInnerHeights)}),this.headerScrollerRef=F(),this.allDayScrollerRef=F(),this.mainScrollerRef=F(),this.footScrollerRef=F(),this.axisScrollerRef=F(),this.handleTotalWidth=e=>{this._isUnmounting||this.setState({totalWidth:e})},this.handleBodyHeight=e=>{this._isUnmounting||this.setState({bodyHeight:e})},this.handleClientWidth=e=>{this._isUnmounting||this.setState({clientWidth:e})},this.handleClientHeight=e=>{this._isUnmounting||this.setState({clientHeight:e})},this.handleStickyBottomScrollbarWidth=e=>{this._isUnmounting||this.setState({sticykBottomScrollbarWidth:e})},this.handleHeaderHeights=()=>
1{if(this._isUnmounting)return;let e=this.headerLabelInnerHeightRefMap.current,s=this.headerMainInnerHeightRefMap.current,t=[];for(let[i,a]of s.entries())t[i]=Math.max(e.get(i)||0,a);this.setState({headerTierHeights:t})},this.handleSlatInnerHeights=()=>{if(this._isUnmounting)return;let e=this.slatLabelInnerHeightRefMap.current,s=0;for(let t of e.values())s=Math.max(s,t);this.state.slatInnerHeight!==s&&this.setState({slatInnerHeight:s})},this.handleAxisWidths=()=>{if(this._isUnmounting)return;let e=this.headerLabelInnerWidthRefMap.current,s=this.slatLabelInnerWidthRefMap.current,t=this.allDayLabelInnerWidth||0;for(let i of e.values())t=Math.max(t,i);for(let i of s.values())t=Math.max(t,i);this.state.axisWidth!==t&&this.setState({axisWidth:t})}}render(){let{props:e,state:s,context:t,headerLabelInnerWidthRefMap:i,headerLabelInnerHeightRefMap:a,headerMainInnerHeightRefMap:o,slatLabelInnerWidthRefMap:d,slatLabelInnerHeightRefMap:h}=this,{nowDate:u,headerTiers:g,forPrint:f}=e,y=u.valueOf()-oe(u).valueOf(),{axisWidth:c,totalWidth:p,clientWidth:D,clientHeight:W,bodyHeight:R,sticykBottomScrollbarWidth:I}=s,{options:S}=t,{borderlessX:x,borderlessTop:N,borderlessBottom:P}=ue(S),k=p!=null&&D!=null&&c!=null?p-D-(c+1):void 0,M=!f&&!Te(S),A=!f&&ke(S),G=!f&&ft(S),{eventPrintLayout:X}=S,ee=X==="stack"||X!=="grid"&&Ye,te=f&&!ee,se=f&&ee,Y=e.cells.length,[O,L]=Tt(Y,e.dayMinWidth,D),B=L!=null&&L<=Fe,T=B||L!=null&&L<=S.dayNarrowWidth,re=e.slatMetas.length,[V,ae]=jt(M&&S.expandRows,re,S.slotMinHeight,s.slatInnerHeight,W);this.slatHeight=V;let Je=(V||0)*re,Qe=te?Je:void 0,xe=M&&!S.expandRows&&W!=null&&W>Je,$e=S.dayHeaders?g.length+1:1,et=G?I:R!=null&&W!=null?R-W:void 0;return l(z,{children:[S.dayHeaders&&l("div",{className:m(w(S.tableHeaderClass,{isSticky:A,borderlessX:x,borderlessTop:N,borderlessBottom:P,multiMonthColumns:0}),n.flexCol,A&&n.tableHeaderSticky),style:{zIndex:1},children:[l("div",{className:n.flexRow,children:[l("div",{role:"rowgroup",className:n.contentBox,style:{width:c},children:g.map((_,E)=>l("div",{role:"row","aria-rowindex":E+1,className:m(S.dayHeaderRowClass,n.flexRow,n.contentBox,E<e.headerTiers.length-1?n.borderOnlyB:n.borderNone),style:{height:s.headerTierHeights[E]},children:S.weekNumbers&&_.isDateRow?l(Ce,{dateProfile:e.dateProfile,innerWidthRef:i.createRef(E),innerHeightRef:a.createRef(E),width:void 0,isLiquid:!0,isNarrow:T}):l(Zt,{width:void 0,isLiquid:!0})},E))}),l("div",{className:w(S.slotHeaderDividerClass,{inTableHeader:!0,options:{dayMinWidth:S.dayMinWidth}})}),l(Q,{horizontal:!0,hideScrollbars:!0,className:m(n.flexRow,n.liquid),ref:this.headerScrollerRef,children:[l("div",{role:"rowgroup",className:O==null?n.liquid:"",style:{width:O},children:e.headerTiers.map((_,E)=>Z(Ae,H(v({},_),{key:E,role:"row",rowIndex:E,borderBottom:E<e.headerTiers.length-1,height:s.headerTierHeights[E],colWidth:L,viewportWidth:D,innerHeightRef:o.createRef(E),cellIsNarrow:T,cellIsMicro:B,rowLevel:e.headerTiers.length-E-1})))}),!!k&&l("div",{className:m(w(S.fillerClass,{inTableHeader:!0}),n.borderOnlyS),style:{minWidth:k}})]})]}),l("div",{className:w(S.dayHeaderDividerClass,{isSticky:A,multiMonthColumns:0,options:{allDaySlot:!!S.allDaySlot}})})]}),l("div",{role:"rowgroup",className:m(w(S.tableBodyClass,{borderlessX:x,borderlessTop:N,borderlessBottom:P,multiMonthColumns:0}),n.flexCol,M&&n.liquid,n.isolate),style:{zIndex:0},children:[S.allDaySlot&&l(z,{children:[l("div",{role:"row","aria-rowindex":$e,className:n.flexRow,style:{zIndex:1},children:[l(pe,{width:c,innerWidthRef:this.handleAllDayLabelInnerWidth,isNarrow:T}),l("div",{className:w(S.slotHeaderDividerClass,{inTableHeader:!1,options:{dayMinWidth:S.dayMinWidth}})}),l(Q,{horizontal:!0,hideScrollbars:!0,className:m(n.flexRow,n.liquidX),ref:this.allDayScrollerRef,children:[l("div",{className:n.flexRow,style:{width:O},children:l(ve,{dateProfile:e.dateProfile,todayRange:e.todayRange,cells:e.cells,showDayNumbers:!1,forPrint:f,isHitComboAllowed:e.isHitComboAllowed,className:m(n.borderNone,n.liquidX),cellIsNarrow:T,cellIsMicro:B,fgEventSegs:e.fgEventSegs,bgEventSegs:e.bgEventSegs,businessHourSegs:e.businessHourSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,colWidth:L})}),!!k&&l("div",{className:m(w(S.fillerClass,{inTableHeader:!1}),n.borderOnlyS),style:{minWidth:k}})]})]}
1),l("div",{className:m(S.allDayDividerClass),style:{zIndex:2}})]}),l("div",{role:"row","aria-rowindex":$e+(S.allDaySlot?1:0),className:m(n.flexRow,n.rel,M&&n.liquid),style:{zIndex:0},children:[l(Q,{vertical:M,hideScrollbars:!0,className:m(n.flexCol,n.contentBox),style:{width:c},ref:this.axisScrollerRef,clientHeightRef:this.handleBodyHeight,children:!se&&l(z,{children:l("div",{role:"rowheader","aria-label":S.timedText,className:m(n.flexCol,n.grow,n.rel),style:{height:Qe},children:[l("div",{"aria-hidden":!0,className:m(n.flexCol,M&&S.expandRows&&n.grow,te&&n.fillX),children:e.slatMetas.map((_,E)=>Z(Re,H(v({},_),{key:_.key,innerWidthRef:d.createRef(_.key),innerHeightRef:h.createRef(_.key),borderTop:!!E,isNarrow:T,height:ae?void 0:V,liquidHeight:ae})))}),!f&&S.nowIndicator&&Ne(e.dateProfile.currentRange,u)&&y>=e.dateProfile.slotMinTime.milliseconds&&y<e.dateProfile.slotMaxTime.milliseconds&&l(Yt,{nowDate:u,dateProfile:e.dateProfile,totalHeight:V!=null?V*re:void 0}),!!(xe||et)&&l("div",{className:m(w(S.fillerClass,{inTableHeader:!1}),n.borderOnlyT,xe&&n.liquid),style:{minHeight:et}})]})})}),l("div",{className:w(S.slotHeaderDividerClass,{inTableHeader:!1,options:{dayMinWidth:S.dayMinWidth}})}),l("div",{className:m(n.flexCol,n.liquid),children:[l(Q,{vertical:M,horizontal:!0,hideScrollbars:G||f,className:m(n.flexCol,n.rel,M&&n.liquid),ref:this.mainScrollerRef,clientWidthRef:this.handleClientWidth,clientHeightRef:this.handleClientHeight,children:l("div",{className:m(n.flexCol,n.grow,n.rel),style:{width:O,height:Qe},children:[l(le,{dateProfile:e.dateProfile,nowDate:e.nowDate,todayRange:e.todayRange,cells:e.cells,slatCnt:re,forPrint:f,isHitComboAllowed:e.isHitComboAllowed,className:se?"":n.fill,fgEventSegsByCol:e.fgEventSegsByCol,bgEventSegsByCol:e.bgEventSegsByCol,businessHourSegsByCol:e.businessHourSegsByCol,nowIndicatorSegsByCol:e.nowIndicatorSegsByCol,dateSelectionSegsByCol:e.dateSelectionSegsByCol,eventDragByCol:e.eventDragByCol,eventResizeByCol:e.eventResizeByCol,eventSelection:e.eventSelection,colWidth:L,slatHeight:V,cellIsNarrow:T,cellIsMicro:B}),!se&&l(z,{children:[l("div",{"aria-hidden":!0,className:m(n.flexCol,M&&S.expandRows&&n.grow,te?n.fillX:n.rel),children:e.slatMetas.map((_,E)=>l("div",{className:m(n.flexRow,ae&&n.liquid),style:{height:ae?"":V},children:Z(He,H(v({},_),{key:_.key,borderTop:!!E}))},_.key))}),xe&&l("div",{className:m(w(S.fillerClass,{inTableHeader:!1}),n.borderOnlyT,n.liquid)})]})]})}),!!G&&l(zt,{isSticky:!0,canvasWidth:O,scrollerRef:this.footScrollerRef,scrollbarWidthRef:this.handleStickyBottomScrollbarWidth})]})]})]}),l(ze,{widthRef:this.handleTotalWidth})]})}componentDidMount(){this._isUnmounting=!1,this.initScrollers(),this.updateSlatHeight()}componentDidUpdate(){this.updateScrollers(),this.updateSlatHeight()}componentWillUnmount(){this._isUnmounting=!0,this.destroyScrollers(),this.prevSlatHeight=void 0,C(this.props.slatHeightRef,null)}updateSlatHeight(){this.prevSlatHeight!==this.slatHeight&&C(this.props.slatHeightRef,this.prevSlatHeight=this.slatHeight)}initScrollers(){let e=mt(this.context.pluginHooks);this.dayScroller=new e(!0),this.timeScroller=new e,C(this.props.dayScrollerRef,this.dayScroller),C(this.props.timeScrollerRef,this.timeScroller),this.updateScrollers()}updateScrollers(){this.dayScroller.handleChildren([this.headerScrollerRef.current,this.allDayScrollerRef.current,this.mainScrollerRef.current,this.footScrollerRef.current]),this.timeScroller.handleChildren([this.axisScrollerRef.current,this.mainScrollerRef.current])}destroyScrollers(){C(this.props.dayScrollerRef,null),C(this.props.timeScrollerRef,null)}};De.addPropsEquality({headerTierHeights:ot});var je=class extends q{constructor(){super(...arguments),this.state={},this.headerLabelInnerWidthRefMap=new K(()=>{U(this.handleAxisInnerWidths)}),this.handleAllDayLabelInnerWidth=e=>{this.allDayLabelInnerWidth=e,U(this.handleAxisInnerWidths)},this.handleWeekNumberInnerWidth=e=>{this.weekNumberInnerWidth=e,U(this.handleAxisInnerWidths)},this.slatLabelInnerWidthRefMap=new K(()=>{U(this.handleAxisInnerWidths)}),this.slatLabelInnerHeightRefMap=new K(()=>{U(this.handleSlatInnerHeights)}),this.handleTotalWidth=e=>{this._isUnmounting||requestAnimationFrame(()=>{this._isUnmounting||this.setState({totalWidth:e})})},this.handleClientWidth=e=>{this._isUnmounting||this.setState({clientWidth:e})},this.handleClientHeight=e=>{this._isUnmounting||this.setState({clientHeight:e})},this.handleAxisInnerWidths=()=>
1{if(this._isUnmounting)return;let e=this.headerLabelInnerWidthRefMap.current,s=this.slatLabelInnerWidthRefMap.current,t=Math.max(this.weekNumberInnerWidth||0,this.allDayLabelInnerWidth||0);for(let i of e.values())t=Math.max(t,i);for(let i of s.values())t=Math.max(t,i);this.state.axisWidth!==t&&this.setState({axisWidth:t})},this.handleSlatInnerHeights=()=>{if(this._isUnmounting)return;let e=this.slatLabelInnerHeightRefMap.current,s=0;for(let t of e.values())s=Math.max(s,t);this.state.slatInnerHeight!==s&&this.setState({slatInnerHeight:s})}}render(){let{props:e,state:s,context:t,slatLabelInnerWidthRefMap:i,slatLabelInnerHeightRefMap:a,headerLabelInnerWidthRefMap:o}=this,{nowDate:d,forPrint:h}=e,u=d.valueOf()-oe(d).valueOf(),{axisWidth:g,clientWidth:f,totalWidth:y}=s,{options:c}=t,{borderlessX:p,borderlessTop:D,borderlessBottom:W}=ue(c),R=y!=null&&f!=null&&!h?y-f:void 0,I=!h&&!Te(c),S=!h&&ke(c),x=e.slatMetas.length,[N,P]=jt(I&&c.expandRows,x,c.slotMinHeight,s.slatInnerHeight,s.clientHeight);this.slatHeight=N;let k=(N||0)*x,M=I&&!c.expandRows&&s.clientHeight!=null&&s.clientHeight>k,{eventPrintLayout:A}=c,G=A==="stack"||A!=="grid"&&Ye,X=h&&!G,ee=h&&G,te=X?k:void 0,se=e.cells.length,Y=f!=null?f/se:void 0,O=Y!=null&&Y<=Fe,L=O||Y!=null&&Y<=c.dayNarrowWidth;return l(z,{children:[c.dayHeaders&&l("div",{role:"rowgroup",className:m(w(c.tableHeaderClass,{isSticky:S,borderlessX:p,borderlessTop:D,borderlessBottom:W,multiMonthColumns:0}),n.flexCol,S&&n.tableHeaderSticky),style:{zIndex:1},children:[e.headerTiers.map((B,T)=>l("div",{role:"row",className:n.flexRow,children:[l("div",{className:m(c.dayHeaderRowClass,n.flexRow,T<e.headerTiers.length-1?n.borderOnlyB:n.borderNone),children:c.weekNumbers&&B.isDateRow?l(Ce,{dateProfile:e.dateProfile,innerWidthRef:this.handleWeekNumberInnerWidth,innerHeightRef:o.createRef(T),width:g,isLiquid:!1,isNarrow:L}):l(Zt,{width:g,isLiquid:!1})}),l("div",{className:w(c.slotHeaderDividerClass,{inTableHeader:!0,options:{dayMinWidth:c.dayMinWidth}})}),l(Ae,H(v({},B),{className:n.liquid,borderBottom:T<e.headerTiers.length-1,viewportWidth:f,cellIsNarrow:L,cellIsMicro:O,rowLevel:e.headerTiers.length-T-1})),!!R&&l("div",{className:m(w(c.fillerClass,{inTableHeader:!0}),n.borderOnlyS),style:{minWidth:R}})]},T)),l("div",{className:w(c.dayHeaderDividerClass,{isSticky:S,multiMonthColumns:0,options:{allDaySlot:!!c.allDaySlot}})})]}),l("div",{role:"rowgroup",className:m(w(c.tableBodyClass,{borderlessX:p,borderlessTop:D,borderlessBottom:W,multiMonthColumns:0}),n.flexCol,I&&n.liquid,n.isolate),style:{zIndex:0},children:[c.allDaySlot&&l(z,{children:[l("div",{role:"row",className:n.flexRow,style:{zIndex:1},children:[l(pe,{width:g,innerWidthRef:this.handleAllDayLabelInnerWidth,isNarrow:L}),l("div",{className:w(c.slotHeaderDividerClass,{inTableHeader:!1,options:{dayMinWidth:c.dayMinWidth}})}),l(ve,{dateProfile:e.dateProfile,todayRange:e.todayRange,cells:e.cells,showDayNumbers:!1,forPrint:h,isHitComboAllowed:e.isHitComboAllowed,className:m(n.liquidX,n.borderNone),cellIsNarrow:L,cellIsMicro:O,fgEventSegs:e.fgEventSegs,bgEventSegs:e.bgEventSegs,businessHourSegs:e.businessHourSegs,dateSelectionSegs:e.dateSelectionSegs,eventDrag:e.eventDrag,eventResize:e.eventResize,eventSelection:e.eventSelection,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows}),!!R&&l("div",{className:m(w(c.fillerClass,{inTableHeader:!1}),n.borderOnlyS),style:{minWidth:R}})]}),l("div",{className:m(c.allDayDividerClass),style:{zIndex:2}})]}),l(Q,{vertical:I,className:m(n.flexCol,n.rel,I&&n.liquid),style:{zIndex:0},ref:e.timeScrollerRef,clientWidthRef:this.handleClientWidth,clientHeightRef:this.handleClientHeight,children:l("div",{className:m(n.flexCol,n.grow,n.rel),style:{height:te},children:[l("div",{role:"row",className:m(n.flexRow,!ee&&n.fill),children:[l("div",{role:"rowheader","aria-label":c.timedText,className:n.contentBox,style:{width:g}}),l("div",{className:w(c.slotHeaderDividerClass,{inTableHeader:!1,options:{dayMinWidth:c.dayMinWidth}})}),l(le,{dateProfile:e.dateProfile,nowDate:e.nowDate,todayRange:e.todayRange,cells:e.cells,slatCnt:x,forPrint:h,isHitComboAllowed:e.isHitComboAllowed,className:n.liquid,fgEventSegsByCol:e.fgEventSegsByCol,bgEventSegsByCol:e.bgEventSegsByCol,businessHourSegsByCol:e.businessHourSegsByCol,nowIndicatorSegsByCol:e.nowIndicatorSegsByCol,dateSelectionSegsByCol:e.dateSelectionSegsByCol,eventDragByCol:e.eventDragByCol,eventResizeByCol:e.eventResizeByCol,eventSelection:e.eventSelection,slatHeight:N,cellIsNarrow:L,cellIsMicro:O})]}
1),!ee&&l(z,{children:[l("div",{"aria-hidden":!0,className:m(n.flexCol,I&&c.expandRows&&n.grow,X?n.fillX:n.rel),children:e.slatMetas.map((B,T)=>l("div",{className:m(P&&n.liquid,n.flexRow),style:{height:P?void 0:N},children:[l("div",{className:n.flexCol,style:{width:g},children:Z(Re,H(v({},B),{key:B.key,innerWidthRef:i.createRef(B.key),innerHeightRef:a.createRef(B.key),borderTop:!!T,isNarrow:L}))}),l("div",{className:w(c.slotHeaderDividerClass,{inTableHeader:!1,options:{dayMinWidth:c.dayMinWidth}}),style:{visibility:"hidden"}}),Z(He,H(v({},B),{key:B.key,borderTop:!!T}))]},B.key))}),M&&l("div",{className:m(w(c.fillerClass,{inTableHeader:!1}),n.borderOnlyT,n.liquid)}),!h&&c.nowIndicator&&Ne(e.dateProfile.currentRange,d)&&u>=e.dateProfile.slotMinTime.milliseconds&&u<e.dateProfile.slotMaxTime.milliseconds&&l(Yt,{nowDate:d,dateProfile:e.dateProfile,totalHeight:N!=null?N*x:void 0})]})]})})]}),l(ze,{widthRef:this.handleTotalWidth})]})}componentDidMount(){this._isUnmounting=!1,this.updateSlatHeight()}componentDidUpdate(){this.updateSlatHeight()}componentWillUnmount(){this._isUnmounting=!0,this.prevSlatHeight=void 0,C(this.props.slatHeightRef,null)}updateSlatHeight(){this.prevSlatHeight!==this.slatHeight&&C(this.props.slatHeightRef,this.prevSlatHeight=this.slatHeight)}};function qt(r){return r.map(()=>[])}function Ot(r){return r.map(()=>null)}var Ie=class extends q{constructor(){super(...arguments),this.buildSlatMetas=b(Qt),this.dayScrollerRef=F(),this.timeScrollerRef=F(),this.scrollState={},this.handleSlatHeight=e=>{this._isUnmounting||(this.slatHeight=e,e!=null&&U(this.applyTimeScroll))},this.handleTimeScrollRequest=e=>{this.scrollState.time=e,this.scrollState.y=void 0,this.applyTimeScroll()},this.handleTimeScrollEnd=e=>{if(e){let s=this.timeScrollerRef.current.y;this.props.forPrint||(this.scrollState.y=s,this.scrollState.time=void 0)}},this.applyTimeScroll=()=>{let e=this.timeScrollerRef.current,{slatHeight:s,scrollState:t}=this,{y:i,time:a}=t;i==null&&a&&s!=null&&e&&(i=Xt(a,this.props.dateProfile)*(s*this.currentSlatCnt),i&&i++,t.y=i),i!=null&&e.scrollTo({y:i})}}render(){let{props:e,context:s}=this,{dateProfile:t}=e,{options:i,dateEnv:a}=s,{dayMinWidth:o}=i,{borderlessX:d,borderlessTop:h,borderlessBottom:u}=ue(i),g=this.buildSlatMetas(t.slotMinTime,t.slotMaxTime,i.slotHeaderInterval,i.slotDuration,a);this.currentSlatCnt=g.length;let f=e.forPrint?[]:e.businessHourSegs,y=e.forPrint?[]:e.dateSelectionSegs,c=e.forPrint?null:e.eventDrag,p=e.forPrint?null:e.eventResize,D=e.forPrint?qt(e.businessHourSegsByCol):e.businessHourSegsByCol,W=e.forPrint?qt(e.dateSelectionSegsByCol):e.dateSelectionSegsByCol,R=e.forPrint?Ot(e.eventDragByCol):e.eventDragByCol,I=e.forPrint?Ot(e.eventResizeByCol):e.eventResizeByCol,S=H(v({dateProfile:t,nowDate:e.nowDate,todayRange:e.todayRange,cells:e.cells,slatMetas:g,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed,headerTiers:e.headerTiers,fgEventSegs:e.fgEventSegs,bgEventSegs:e.bgEventSegs,businessHourSegs:f,dateSelectionSegs:y,eventDrag:c,eventResize:p},vs(i)),{fgEventSegsByCol:e.fgEventSegsByCol,bgEventSegsByCol:e.bgEventSegsByCol,businessHourSegsByCol:D,nowIndicatorSegsByCol:e.nowIndicatorSegsByCol,dateSelectionSegsByCol:W,eventDragByCol:R,eventResizeByCol:I,eventSelection:e.eventSelection,timeScrollerRef:this.timeScrollerRef,timeScrollState:this.scrollState,slatHeightRef:this.handleSlatHeight,borderlessX:d,borderlessBottom:u});return l(wt,{attrs:{role:"grid","aria-colcount":e.cells.length,"aria-labelledby":e.labelId,"aria-label":e.labelStr},className:m(e.className,w(i.tableClass,{borderlessX:d,borderlessTop:h,borderlessBottom:u,multiMonthColumns:0}),!e.forPrint&&n.flexCol,n.isolate),viewSpec:s.viewSpec,children:o?l(De,H(v({},S),{dayMinWidth:o,dayScrollerRef:this.dayScrollerRef})):l(je,v({},S))})}componentDidMount(){this._isUnmounting=!1,this.resetScroll(),this.context.emitter.on("_timeScrollRequest",this.handleTimeScrollRequest);let e=this.timeScrollerRef.current;e&&e.addScrollEndListener(this.handleTimeScrollEnd)}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile&&this.context.options.scrollTimeReset?this.resetScroll():e.forPrint&&!this.props.forPrint&&this.applyTimeScroll()}componentWillUnmount(){this._isUnmounting=!0,this.context.emitter.off("_timeScrollRequest",this.handleTimeScrollRequest);let e=this.timeScrollerRef.current;e&&e.removeScrollEndListener(this.handleTimeScrollEnd)}resetScroll(){this.handleTimeScrollRequest(this.context.options.scrollTime);let e=this.dayScrollerRef.current;e&&e.scrollTo({x:0})}},ps=5;function vs(r){let{dayMaxEvents:e,dayMaxEventRows:s}=r;return(e===!0||s===!0)&&(e=void 0,s=ps),{dayMaxEvents:e,dayMaxEventRows:s}}var Ze=class extends ie{constructor(){super(...arguments),this.createDayHeaderFormatter=b
1(kt),this.buildTimeColsModel=b(Gt),this.buildDayRanges=b(Kt),this.buildDateRowConfigs=b(Ct),this.splitFgEventSegs=b($),this.splitBgEventSegs=b($),this.splitBusinessHourSegs=b($),this.splitNowIndicatorSegs=b($),this.splitDateSelectionSegs=b($),this.splitEventDrag=b(Xe),this.splitEventResize=b(Xe),this.allDaySplitter=new Se,this.dayTableSlicer=new Ht,this.dayTimeColsSlicer=new ye}render(){let{props:e,context:s}=this,{dateProfile:t}=e,{options:i,dateProfileGenerator:a}=s,o=this.buildTimeColsModel(t,a,s.dateEnv),d=this.buildDayRanges(o,t,s.dateEnv),h=this.allDaySplitter.splitProps(e),u=this.dayTableSlicer.sliceProps(h.allDay,t,i.nextDayThreshold,s,o),g=this.dayTimeColsSlicer.sliceProps(h.timed,t,null,s,d),f=this.createDayHeaderFormatter(s.options.dayHeaderFormat,!0,o.colCount);return l(St,{unit:i.nowIndicator?"minute":"day",children:(y,c)=>{let p=o.cellRows[0].length,D=!e.forPrint&&i.nowIndicator&&this.dayTimeColsSlicer.sliceNowDate(y,t,i.nextDayThreshold,s,d),W=this.splitFgEventSegs(g.fgEventSegs,p),R=this.splitBgEventSegs(g.bgEventSegs,p),I=this.splitBusinessHourSegs(g.businessHourSegs,p),S=this.splitNowIndicatorSegs(D,p),x=this.splitDateSelectionSegs(g.dateSelectionSegs,p),N=this.splitEventDrag(g.eventDrag,p),P=this.splitEventResize(g.eventResize,p),k=this.buildDateRowConfigs(o.headerDates,!0,e.dateProfile,c,f,s);return l(Ie,{labelId:e.labelId,labelStr:e.labelStr,dateProfile:t,nowDate:y,todayRange:c,cells:o.cellRows[0],forPrint:e.forPrint,className:e.className,headerTiers:k,fgEventSegs:u.fgEventSegs,bgEventSegs:u.bgEventSegs,businessHourSegs:u.businessHourSegs,dateSelectionSegs:u.dateSelectionSegs,eventDrag:u.eventDrag,eventResize:u.eventResize,fgEventSegsByCol:W,bgEventSegsByCol:R,businessHourSegsByCol:I,nowIndicatorSegsByCol:S,dateSelectionSegsByCol:x,eventDragByCol:N,eventResizeByCol:P,eventSelection:e.eventSelection})}})}},ws={name:"timegrid",initialView:"timeGridWeek",deps:[Ut],views:{timeGrid:{component:Ze,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}};export{ws as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.