@super-calendar/solid 2.18.0 → 2.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { backgroundBandsForDay, backgroundBandsForDay as backgroundBandsForDay$1, bandRounding, buildMonthGrid, buildMonthGrid as buildMonthGrid$1, buildMonthWeeks, buildMultiWeekGrid, buildMultiWeekGrid as buildMultiWeekGrid$1, cellRangeFromDrag, closedHourBands, compareDayEvents, darkColors, dayAccessibilityLabel, dayBadgeKind, daySelectionState, daySelectionState as daySelectionState$1, defaultCalendarLabels, eventAccessibilityLabel, eventChipLayout, eventTimeLabel, eventsInTimeZone, expandRecurringEvents, expandRecurringEvents as expandRecurringEvents$1, filterHiddenDays, formatHour, fromZonedRange, fromZonedTime, getIsToday, getViewDays, getViewDays as getViewDays$1, getWeekDays, getYearMonths, groupEventsByDay, isAllDayEvent, isAllDayEvent as isAllDayEvent$1, isBackgroundEvent, isBackgroundEvent as isBackgroundEvent$1, isDateSelectable, isDateSelectable as isDateSelectable$1, isRangeEndpoint, isSameCalendarDay, isWeekend, isWithinDateRange, layoutDayEvents, layoutDayEvents as layoutDayEvents$1, layoutMonthWeek, layoutMonthWeek as layoutMonthWeek$1, lightColors, loadEventSource, loadEventSource as loadEventSource$1, monthCreateRange, monthDropBounds, nextDateRange, nextDateRange as nextDateRange$1, nowInTimeZone, overlapsOtherEvents, pageStepDays, parseICalendar, rangeBandKind, resolveCalendarLabels, resolveDraggedBounds, shiftMinutes, titleNumberOfLines, toICalendar, toZonedTime, weekdayFormatToken, weekdayFormatToken as weekdayFormatToken$1, zonedDragBounds, zonedEventSource } from "@super-calendar/core/vanilla";
1
+ import { backgroundBandsForDay, backgroundBandsForDay as backgroundBandsForDay$1, bandRounding, buildMonthGrid, buildMonthGrid as buildMonthGrid$1, buildMonthWeeks, buildMultiWeekGrid, buildMultiWeekGrid as buildMultiWeekGrid$1, cellRangeFromDrag, closedHourBands, compareDayEvents, darkColors, dayAccessibilityLabel, dayBadgeKind, daySelectionState, daySelectionState as daySelectionState$1, defaultCalendarLabels, eventAccessibilityLabel, eventChipLayout, eventTimeLabel, eventsInTimeZone, expandRecurringEvents, expandRecurringEvents as expandRecurringEvents$1, filterHiddenDays, formatHour, fromZonedRange, fromZonedTime, getIsToday, getViewDays, getViewDays as getViewDays$1, getWeekDays, getYearMonths, groupEventsByDay, isAllDayEvent, isAllDayEvent as isAllDayEvent$1, isBackgroundEvent, isBackgroundEvent as isBackgroundEvent$1, isDateSelectable, isDateSelectable as isDateSelectable$1, isRangeEndpoint, isSameCalendarDay, isWeekend, isWithinDateRange, keepMonthDraftVisible, layoutDayEvents, layoutDayEvents as layoutDayEvents$1, layoutMonthWeek, layoutMonthWeek as layoutMonthWeek$1, lightColors, loadEventSource, loadEventSource as loadEventSource$1, monthCreateRange, monthDropBounds, monthExtraLaneColumns, monthVisibleBars, nextDateRange, nextDateRange as nextDateRange$1, nowInTimeZone, overlapsOtherEvents, pageStepDays, parseICalendar, rangeBandKind, resolveCalendarLabels, resolveDraggedBounds, shiftMinutes, titleNumberOfLines, toICalendar, toZonedTime, weekdayFormatToken, weekdayFormatToken as weekdayFormatToken$1, withDraftEventDays, zonedDragBounds, zonedEventSource } from "@super-calendar/core/vanilla";
2
2
  import { For, Show, createEffect, createMemo, createSignal, createUniqueId, merge, onCleanup, onSettled, untrack } from "solid-js";
3
3
  import { Dynamic, escape, memo, mergeProps, scope, ssr, ssrAttribute, ssrClassName, ssrElement, ssrElementAttribute, ssrGroup, ssrHydrationKey, ssrStyle, ssrStyleProperties, ssrStyleProperty } from "@solidjs/web";
4
4
  import { addDays, addMonths, differenceInCalendarDays, endOfDay, endOfMonth, endOfWeek, endOfYear, format, getISOWeek, isSameDay, isSameMonth, startOfDay, startOfMonth, startOfWeek, startOfYear } from "date-fns";
@@ -192,7 +192,7 @@ var _tmpl$2$7 = [
192
192
  ];
193
193
  var _m$$10 = Symbol();
194
194
  var _m$2$9 = Symbol();
195
- var _m$3$8 = Symbol();
195
+ var _m$3$7 = Symbol();
196
196
  var _d$$10 = {
197
197
  get() {
198
198
  return this[_m$$10].renderItem;
@@ -203,7 +203,7 @@ var _d$$10 = {
203
203
  var _d$2$10 = {
204
204
  get() {
205
205
  const items = this[_m$2$9];
206
- const row = this[_m$3$8];
206
+ const row = this[_m$3$7];
207
207
  return items().get(row.id);
208
208
  },
209
209
  enumerable: true,
@@ -212,7 +212,7 @@ var _d$2$10 = {
212
212
  function _P$$10(_p, _p2, _p3) {
213
213
  this[_m$$10] = _p;
214
214
  this[_m$2$9] = _p2;
215
- this[_m$3$8] = _p3;
215
+ this[_m$3$7] = _p3;
216
216
  Object.defineProperty(this, "component", _d$$10);
217
217
  Object.defineProperty(this, "item", _d$2$10);
218
218
  }
@@ -302,29 +302,15 @@ var _tmpl$3$6 = [
302
302
  ];
303
303
  var _m$$9 = Symbol();
304
304
  var _m$2$8 = Symbol();
305
- var _m$3$7 = Symbol();
306
- var _m$4$5 = Symbol();
307
305
  var _d$$9 = {
308
306
  get() {
309
- return !!this[_m$$9].onPressDay;
310
- },
311
- enumerable: true,
312
- configurable: true
313
- };
314
- var _d$2$9 = {
315
- get() {
316
- const headerProps = this[_m$2$8];
317
- const label = this[_m$3$7];
318
- return ssrElement("div", headerProps, () => scope(() => escape(label())), true);
319
- },
320
- enumerable: true,
321
- configurable: true
322
- };
323
- var _d$3$8 = {
324
- get() {
325
- const headerProps = this[_m$2$8];
326
- const label = this[_m$3$7];
327
- return ssrElement("button", [{ type: "button" }, headerProps], () => scope(() => escape(label())), true);
307
+ const props = this[_m$$9];
308
+ const row = this[_m$2$8];
309
+ return props.eventAccessibilityLabel?.(row.event, {
310
+ mode: "schedule",
311
+ isAllDay: isAllDayEvent$1(row.event),
312
+ ampm: props.ampm
313
+ });
328
314
  },
329
315
  enumerable: true,
330
316
  configurable: true
@@ -332,33 +318,24 @@ var _d$3$8 = {
332
318
  function _P$$9(_p, _p2, _p3) {
333
319
  this[_m$$9] = _p;
334
320
  this[_m$2$8] = _p2;
335
- this[_m$3$7] = _p3;
336
- Object.defineProperty(this, "when", _d$$9);
337
- Object.defineProperty(this, "fallback", _d$2$9);
338
- Object.defineProperty(this, "children", _d$3$8);
321
+ this.type = _p3;
322
+ Object.defineProperty(this, "aria-label", _d$$9);
339
323
  }
340
324
  _P$$9.prototype = Object.prototype;
341
- var _d$4$8 = {
325
+ var _d$2$9 = {
342
326
  get() {
343
- const props = this[_m$$9];
344
- const row = this[_m$2$8];
345
- return props.eventAccessibilityLabel?.(row.event, {
346
- mode: "schedule",
347
- isAllDay: isAllDayEvent$1(row.event),
348
- ampm: props.ampm
349
- });
327
+ const Renderer = this[_m$$9];
328
+ return Renderer();
350
329
  },
351
330
  enumerable: true,
352
331
  configurable: true
353
332
  };
354
- function _P$2$8(_p4, _p5, _p6) {
333
+ function _P$2$8(_p4) {
355
334
  this[_m$$9] = _p4;
356
- this[_m$2$8] = _p5;
357
- this.type = _p6;
358
- Object.defineProperty(this, "aria-label", _d$4$8);
335
+ Object.defineProperty(this, "component", _d$2$9);
359
336
  }
360
337
  _P$2$8.prototype = Object.prototype;
361
- var _d$5$8 = {
338
+ var _d$3$8 = {
362
339
  get() {
363
340
  const slot = this[_m$$9];
364
341
  const theme = this[_m$2$8];
@@ -372,103 +349,26 @@ var _d$5$8 = {
372
349
  enumerable: true,
373
350
  configurable: true
374
351
  };
375
- function _P$3$8(_p7, _p8) {
376
- this[_m$$9] = _p7;
377
- this[_m$2$8] = _p8;
378
- Object.defineProperty(this, "cardProps", _d$5$8);
352
+ function _P$3$8(_p5, _p6) {
353
+ this[_m$$9] = _p5;
354
+ this[_m$2$8] = _p6;
355
+ Object.defineProperty(this, "cardProps", _d$3$8);
379
356
  }
380
357
  _P$3$8.prototype = Object.prototype;
381
- var _d$6$8 = {
382
- get() {
383
- const Renderer = this[_m$$9];
384
- return Renderer();
385
- },
386
- enumerable: true,
387
- configurable: true
388
- };
389
- function _P$4$7(_p9) {
390
- this[_m$$9] = _p9;
391
- Object.defineProperty(this, "component", _d$6$8);
392
- }
393
- _P$4$7.prototype = Object.prototype;
394
- var _d$7$8 = {
395
- get() {
396
- const Renderer = this[_m$$9];
397
- return Renderer();
398
- },
399
- enumerable: true,
400
- configurable: true
401
- };
402
- var _d$8$8 = {
403
- get() {
404
- const args = this[_m$2$8];
405
- const slot = this[_m$3$7];
406
- const theme = this[_m$4$5];
407
- return DefaultAgendaRow(mergeProps(args, new _P$3$8(slot, theme)));
408
- },
409
- enumerable: true,
410
- configurable: true
411
- };
412
- var _d$9$8 = {
413
- get() {
414
- const Renderer = this[_m$$9];
415
- const args = this[_m$2$8];
416
- return Dynamic(mergeProps(new _P$4$7(Renderer), args));
417
- },
418
- enumerable: true,
419
- configurable: true
420
- };
421
- function _P$5$7(_p0, _p1, _p10, _p11) {
422
- this[_m$$9] = _p0;
423
- this[_m$2$8] = _p1;
424
- this[_m$3$7] = _p10;
425
- this[_m$4$5] = _p11;
426
- Object.defineProperty(this, "when", _d$7$8);
427
- Object.defineProperty(this, "fallback", _d$8$8);
428
- Object.defineProperty(this, "children", _d$9$8);
429
- }
430
- _P$5$7.prototype = Object.prototype;
431
- var _d$0$7 = {
432
- get() {
433
- const value = this[_m$$9];
434
- return value().date;
435
- },
436
- enumerable: true,
437
- configurable: true
438
- };
439
- function _P$6$6(_p12) {
440
- this[_m$$9] = _p12;
441
- Object.defineProperty(this, "date", _d$0$7);
442
- }
443
- _P$6$6.prototype = Object.prototype;
444
- var _d$1$7 = {
358
+ var _d$4$8 = {
445
359
  get() {
446
360
  const header = this[_m$$9];
447
- return header();
361
+ return header().date;
448
362
  },
449
363
  enumerable: true,
450
364
  configurable: true
451
365
  };
452
- function _P$7$4(_p13, _p14) {
453
- this[_m$$9] = _p13;
454
- Object.defineProperty(this, "when", _d$1$7);
455
- this.children = _p14;
456
- }
457
- _P$7$4.prototype = Object.prototype;
458
- var _d$10$6 = {
459
- get() {
460
- const value = this[_m$$9];
461
- return value();
462
- },
463
- enumerable: true,
464
- configurable: true
465
- };
466
- function _P$8$4(_p15) {
467
- this[_m$$9] = _p15;
468
- Object.defineProperty(this, "event", _d$10$6);
366
+ function _P$4$7(_p7) {
367
+ this[_m$$9] = _p7;
368
+ Object.defineProperty(this, "date", _d$4$8);
469
369
  }
470
- _P$8$4.prototype = Object.prototype;
471
- var _d$11$6 = {
370
+ _P$4$7.prototype = Object.prototype;
371
+ var _d$5$8 = {
472
372
  get() {
473
373
  const event = this[_m$$9];
474
374
  return event();
@@ -476,13 +376,12 @@ var _d$11$6 = {
476
376
  enumerable: true,
477
377
  configurable: true
478
378
  };
479
- function _P$9$4(_p16, _p17) {
480
- this[_m$$9] = _p16;
481
- Object.defineProperty(this, "when", _d$11$6);
482
- this.children = _p17;
379
+ function _P$5$7(_p8) {
380
+ this[_m$$9] = _p8;
381
+ Object.defineProperty(this, "event", _d$5$8);
483
382
  }
484
- _P$9$4.prototype = Object.prototype;
485
- var _d$12$6 = {
383
+ _P$5$7.prototype = Object.prototype;
384
+ var _d$6$8 = {
486
385
  get() {
487
386
  const rows = this[_m$$9];
488
387
  return rows();
@@ -490,7 +389,7 @@ var _d$12$6 = {
490
389
  enumerable: true,
491
390
  configurable: true
492
391
  };
493
- var _d$13$6 = {
392
+ var _d$7$8 = {
494
393
  get() {
495
394
  const props = this[_m$2$8];
496
395
  return css({
@@ -501,45 +400,16 @@ var _d$13$6 = {
501
400
  enumerable: true,
502
401
  configurable: true
503
402
  };
504
- function _P$0$3(_p18, _p19, _p20, _p21, _p22) {
505
- this[_m$$9] = _p18;
506
- this[_m$2$8] = _p19;
507
- Object.defineProperty(this, "data", _d$12$6);
508
- this.keyExtractor = _p20;
509
- this.estimatedItemSize = _p21;
510
- Object.defineProperty(this, "style", _d$13$6);
511
- this.renderItem = _p22;
512
- }
513
- _P$0$3.prototype = Object.prototype;
514
- var _d$14$6 = {
515
- get() {
516
- const rows = this[_m$$9];
517
- return rows().length === 0;
518
- },
519
- enumerable: true,
520
- configurable: true
521
- };
522
- var _d$15$6 = {
523
- get() {
524
- const slot = this[_m$2$8];
525
- const theme = this[_m$3$7];
526
- return ssrElement("div", () => slot("empty", { themed: {
527
- padding: "16px 12px",
528
- color: theme().textMuted,
529
- fontSize: 14
530
- } }), () => "No events", true);
531
- },
532
- enumerable: true,
533
- configurable: true
534
- };
535
- function _P$1$3(_p23, _p24, _p25) {
536
- this[_m$$9] = _p23;
537
- this[_m$2$8] = _p24;
538
- this[_m$3$7] = _p25;
539
- Object.defineProperty(this, "when", _d$14$6);
540
- Object.defineProperty(this, "children", _d$15$6);
403
+ function _P$6$6(_p9, _p0, _p1, _p10, _p11) {
404
+ this[_m$$9] = _p9;
405
+ this[_m$2$8] = _p0;
406
+ Object.defineProperty(this, "data", _d$6$8);
407
+ this.keyExtractor = _p1;
408
+ this.estimatedItemSize = _p10;
409
+ Object.defineProperty(this, "style", _d$7$8);
410
+ this.renderItem = _p11;
541
411
  }
542
- _P$1$3.prototype = Object.prototype;
412
+ _P$6$6.prototype = Object.prototype;
543
413
  /**
544
414
  * Styleable parts of {@link Agenda}. Pass a class or inline style per slot via the
545
415
  * `classNames` / `styles` props.
@@ -644,7 +514,7 @@ function Agenda(incoming) {
644
514
  color: highlighted() ? theme().todayBackground : theme().textMuted
645
515
  }
646
516
  }));
647
- return Show(new _P$$9(props, headerProps, label));
517
+ return memo(() => memo(() => !!props.onPressDay)() ? ssrElement("button", [{ type: "button" }, headerProps], () => scope(() => escape(label())), true) : ssrElement("div", headerProps, () => scope(() => escape(label())), true));
648
518
  };
649
519
  const EventRow = (row) => {
650
520
  const args = createMemo(() => ({
@@ -654,7 +524,7 @@ function Agenda(incoming) {
654
524
  ampm: props.ampm,
655
525
  onPress: () => props.onPressEvent?.(row.event)
656
526
  }));
657
- return ssrElement("button", [new _P$2$8(props, row, "button"), () => slot("eventRow", {
527
+ return ssrElement("button", [new _P$$9(props, row, "button"), () => slot("eventRow", {
658
528
  base: {
659
529
  display: "block",
660
530
  width: "100%",
@@ -665,17 +535,27 @@ function Agenda(incoming) {
665
535
  font: "inherit"
666
536
  },
667
537
  themed: { padding: "2px 12px" }
668
- })], () => escape(Show(new _P$5$7(Renderer, args, slot, theme))), true);
538
+ })], () => scope((() => {
539
+ var _c$2 = memo(() => !!Renderer());
540
+ return () => _c$2() ? escape(Dynamic(mergeProps(new _P$2$8(Renderer), args))) : escape(DefaultAgendaRow(mergeProps(args, new _P$3$8(slot, theme))));
541
+ })()), true);
669
542
  };
670
543
  var _v$8 = ssrHydrationKey(), _g$ = ssrGroup(() => [((_v$9) => _v$9 == null ? "" : ssrAttribute("class", ssrClassName(_v$9)))(props.className), ((_v$1) => _v$1 == null ? "" : ssrAttribute("style", ssrStyle(_v$1)))(css({
671
544
  fontFamily: theme().fontFamily,
672
545
  color: theme().text,
673
546
  ...props.style
674
- }))], 2), _v$11 = escape(VirtualList(new _P$0$3(rows, props, (row) => row.key, 44, (row) => {
547
+ }))], 2), _v$11 = escape(VirtualList(new _P$6$6(rows, props, (row) => row.key, 44, (row) => {
675
548
  const header = createMemo(() => row.item.kind === "header" ? row.item : void 0);
676
549
  const event = createMemo(() => row.item.kind === "event" ? row.item.event : void 0);
677
- return [Show(new _P$7$4(header, (value) => Header(new _P$6$6(value)))), Show(new _P$9$4(event, (value) => EventRow(new _P$8$4(value))))];
678
- }))), _v$12 = escape(Show(new _P$1$3(rows, slot, theme)));
550
+ return [memo(() => memo(() => !!header())() ? Header(new _P$4$7(header)) : void 0), memo(() => memo(() => !!event())() ? EventRow(new _P$5$7(event)) : void 0)];
551
+ }))), _v$12 = scope((() => {
552
+ var _c$3 = memo(() => rows().length === 0);
553
+ return () => _c$3() ? ssrElement("div", () => slot("empty", { themed: {
554
+ padding: "16px 12px",
555
+ color: theme().textMuted,
556
+ fontSize: 14
557
+ } }), () => "No events", true) : void 0;
558
+ })());
679
559
  return ssr(_tmpl$3$6, _v$8, _g$, _g$, _v$11, _v$12);
680
560
  }
681
561
  // src/MonthView.tsx
@@ -709,8 +589,8 @@ var _tmpl$5$3 = [
709
589
  ">",
710
590
  "</button>"
711
591
  ];
712
- var _sk$ = (k) => k === "inert" || k === "aria-hidden";
713
- var _sk$2 = (k) => k === "style";
592
+ var _sk$ = (k) => k === "style";
593
+ var _sk$2 = (k) => k === "inert" || k === "aria-hidden";
714
594
  var _sk$3 = (k) => k === "title" || k === "aria-label" || k === "style";
715
595
  var _sk$4 = (k) => k === "aria-label" || k === "aria-expanded";
716
596
  var _m$$8 = Symbol();
@@ -719,8 +599,6 @@ var _m$3$6 = Symbol();
719
599
  var _m$4$4 = Symbol();
720
600
  var _m$5$3 = Symbol();
721
601
  var _m$6$3 = Symbol();
722
- var _m$7$2 = Symbol();
723
- var _m$8 = Symbol();
724
602
  var _d$$8 = {
725
603
  get() {
726
604
  const _grid = this[_m$$8];
@@ -867,65 +745,6 @@ function _P$6$5(_p15, _p16) {
867
745
  }
868
746
  _P$6$5.prototype = Object.prototype;
869
747
  var _d$10$5 = {
870
- get() {
871
- const props = this[_m$$8];
872
- const createRange = this[_m$2$7];
873
- const draftColumns = this[_m$3$6];
874
- const dayCol = this[_m$4$4];
875
- const draftHeight = this[_m$5$3];
876
- return memo(() => !!(props.renderCreateGhost && createRange() && draftColumns()[0] === dayCol))() ? draftHeight() > 0 : props.renderCreateGhost && createRange() && draftColumns()[0] === dayCol;
877
- },
878
- enumerable: true,
879
- configurable: true
880
- };
881
- var _d$11$5 = {
882
- get() {
883
- const slot = this[_m$6$3];
884
- const draftColumns = this[_m$3$6];
885
- const dayCol = this[_m$4$4];
886
- const draftTop = this[_m$7$2];
887
- const draftHeight = this[_m$5$3];
888
- const theme = this[_m$8];
889
- const props = this[_m$$8];
890
- const createRange = this[_m$2$7];
891
- return ssrElement("div", () => slot("createGhost", {
892
- base: {
893
- position: "absolute",
894
- left: 2,
895
- width: `calc(${(draftColumns().at(-1) - dayCol + 1) * 100}% - 4px)`,
896
- top: draftTop(),
897
- height: draftHeight(),
898
- boxSizing: "border-box",
899
- pointerEvents: "none",
900
- overflow: "hidden",
901
- zIndex: 3
902
- },
903
- themed: {
904
- background: theme().rangeBackground,
905
- border: `1px solid ${theme().selectedBackground}`,
906
- borderRadius: 4,
907
- fontSize: 12,
908
- color: theme().text
909
- }
910
- }), () => escape(Dynamic(new _P$6$5(props, createRange))), true, _sk$, " inert aria-hidden=\"true\"");
911
- },
912
- enumerable: true,
913
- configurable: true
914
- };
915
- function _P$7$3(_p17, _p18, _p19, _p20, _p21, _p22, _p23, _p24) {
916
- this[_m$$8] = _p17;
917
- this[_m$2$7] = _p18;
918
- this[_m$3$6] = _p19;
919
- this[_m$4$4] = _p20;
920
- this[_m$5$3] = _p21;
921
- this[_m$6$3] = _p22;
922
- this[_m$7$2] = _p23;
923
- this[_m$8] = _p24;
924
- Object.defineProperty(this, "when", _d$10$5);
925
- Object.defineProperty(this, "children", _d$11$5);
926
- }
927
- _P$7$3.prototype = Object.prototype;
928
- var _d$12$5 = {
929
748
  get() {
930
749
  const Chip = this[_m$$8];
931
750
  return Chip();
@@ -933,7 +752,7 @@ var _d$12$5 = {
933
752
  enumerable: true,
934
753
  configurable: true
935
754
  };
936
- var _d$13$5 = {
755
+ var _d$11$5 = {
937
756
  get() {
938
757
  const viewMode = this[_m$2$7];
939
758
  return viewMode();
@@ -941,7 +760,7 @@ var _d$13$5 = {
941
760
  enumerable: true,
942
761
  configurable: true
943
762
  };
944
- var _d$14$5 = {
763
+ var _d$12$5 = {
945
764
  get() {
946
765
  const b = this[_m$3$6];
947
766
  return b().seg.event;
@@ -949,17 +768,17 @@ var _d$14$5 = {
949
768
  enumerable: true,
950
769
  configurable: true
951
770
  };
952
- function _P$8$3(_p25, _p26, _p27, _p28) {
953
- this[_m$$8] = _p25;
954
- this[_m$2$7] = _p26;
955
- this[_m$3$6] = _p27;
956
- Object.defineProperty(this, "component", _d$12$5);
957
- Object.defineProperty(this, "mode", _d$13$5);
958
- Object.defineProperty(this, "event", _d$14$5);
959
- this.onPress = _p28;
771
+ function _P$7$3(_p17, _p18, _p19, _p20) {
772
+ this[_m$$8] = _p17;
773
+ this[_m$2$7] = _p18;
774
+ this[_m$3$6] = _p19;
775
+ Object.defineProperty(this, "component", _d$10$5);
776
+ Object.defineProperty(this, "mode", _d$11$5);
777
+ Object.defineProperty(this, "event", _d$12$5);
778
+ this.onPress = _p20;
960
779
  }
961
- _P$8$3.prototype = Object.prototype;
962
- var _d$15$5 = {
780
+ _P$7$3.prototype = Object.prototype;
781
+ var _d$13$5 = {
963
782
  get() {
964
783
  const barSegs = this[_m$$8];
965
784
  const dayCol = this[_m$2$7];
@@ -968,15 +787,15 @@ var _d$15$5 = {
968
787
  enumerable: true,
969
788
  configurable: true
970
789
  };
971
- function _P$9$3(_p29, _p30, _p31, _p32) {
972
- this[_m$$8] = _p29;
973
- this[_m$2$7] = _p30;
974
- Object.defineProperty(this, "each", _d$15$5);
975
- this.keyed = _p31;
976
- this.children = _p32;
790
+ function _P$8$3(_p21, _p22, _p23, _p24) {
791
+ this[_m$$8] = _p21;
792
+ this[_m$2$7] = _p22;
793
+ Object.defineProperty(this, "each", _d$13$5);
794
+ this.keyed = _p23;
795
+ this.children = _p24;
977
796
  }
978
- _P$9$3.prototype = Object.prototype;
979
- var _d$16$5 = {
797
+ _P$8$3.prototype = Object.prototype;
798
+ var _d$14$5 = {
980
799
  get() {
981
800
  const dayLabel = this[_m$$8];
982
801
  return dayLabel();
@@ -984,13 +803,13 @@ var _d$16$5 = {
984
803
  enumerable: true,
985
804
  configurable: true
986
805
  };
987
- function _P$0$2(_p33, _p34) {
988
- this[_m$$8] = _p33;
989
- this.role = _p34;
990
- Object.defineProperty(this, "aria-label", _d$16$5);
806
+ function _P$9$3(_p25, _p26) {
807
+ this[_m$$8] = _p25;
808
+ this.role = _p26;
809
+ Object.defineProperty(this, "aria-label", _d$14$5);
991
810
  }
992
- _P$0$2.prototype = Object.prototype;
993
- var _d$17$5 = {
811
+ _P$9$3.prototype = Object.prototype;
812
+ var _d$15$5 = {
994
813
  get() {
995
814
  const Chip = this[_m$$8];
996
815
  return Chip();
@@ -998,7 +817,7 @@ var _d$17$5 = {
998
817
  enumerable: true,
999
818
  configurable: true
1000
819
  };
1001
- var _d$18$5 = {
820
+ var _d$16$5 = {
1002
821
  get() {
1003
822
  const viewMode = this[_m$2$7];
1004
823
  return viewMode();
@@ -1006,7 +825,7 @@ var _d$18$5 = {
1006
825
  enumerable: true,
1007
826
  configurable: true
1008
827
  };
1009
- var _d$19$5 = {
828
+ var _d$17$5 = {
1010
829
  get() {
1011
830
  const event = this[_m$3$6];
1012
831
  return event();
@@ -1014,17 +833,17 @@ var _d$19$5 = {
1014
833
  enumerable: true,
1015
834
  configurable: true
1016
835
  };
1017
- function _P$1$2(_p35, _p36, _p37, _p38) {
1018
- this[_m$$8] = _p35;
1019
- this[_m$2$7] = _p36;
1020
- this[_m$3$6] = _p37;
1021
- Object.defineProperty(this, "component", _d$17$5);
1022
- Object.defineProperty(this, "mode", _d$18$5);
1023
- Object.defineProperty(this, "event", _d$19$5);
1024
- this.onPress = _p38;
836
+ function _P$0$2(_p27, _p28, _p29, _p30) {
837
+ this[_m$$8] = _p27;
838
+ this[_m$2$7] = _p28;
839
+ this[_m$3$6] = _p29;
840
+ Object.defineProperty(this, "component", _d$15$5);
841
+ Object.defineProperty(this, "mode", _d$16$5);
842
+ Object.defineProperty(this, "event", _d$17$5);
843
+ this.onPress = _p30;
1025
844
  }
1026
- _P$1$2.prototype = Object.prototype;
1027
- var _d$20$5 = {
845
+ _P$0$2.prototype = Object.prototype;
846
+ var _d$18$5 = {
1028
847
  get() {
1029
848
  const dayEvents = this[_m$$8];
1030
849
  return dayEvents();
@@ -1032,14 +851,14 @@ var _d$20$5 = {
1032
851
  enumerable: true,
1033
852
  configurable: true
1034
853
  };
1035
- function _P$10$2(_p39, _p40, _p41) {
1036
- this[_m$$8] = _p39;
1037
- Object.defineProperty(this, "each", _d$20$5);
1038
- this.keyed = _p40;
1039
- this.children = _p41;
854
+ function _P$1$2(_p31, _p32, _p33) {
855
+ this[_m$$8] = _p31;
856
+ Object.defineProperty(this, "each", _d$18$5);
857
+ this.keyed = _p32;
858
+ this.children = _p33;
1040
859
  }
1041
- _P$10$2.prototype = Object.prototype;
1042
- var _d$21$5 = {
860
+ _P$1$2.prototype = Object.prototype;
861
+ var _d$19$5 = {
1043
862
  get() {
1044
863
  const day = this[_m$$8];
1045
864
  return day().id;
@@ -1047,14 +866,14 @@ var _d$21$5 = {
1047
866
  enumerable: true,
1048
867
  configurable: true
1049
868
  };
1050
- function _P$11$2(_p42, _p43, _p44) {
1051
- this[_m$$8] = _p42;
1052
- this.type = _p43;
1053
- this.role = _p44;
1054
- Object.defineProperty(this, "data-day", _d$21$5);
869
+ function _P$10$2(_p34, _p35, _p36) {
870
+ this[_m$$8] = _p34;
871
+ this.type = _p35;
872
+ this.role = _p36;
873
+ Object.defineProperty(this, "data-day", _d$19$5);
1055
874
  }
1056
- _P$11$2.prototype = Object.prototype;
1057
- var _d$22$5 = {
875
+ _P$10$2.prototype = Object.prototype;
876
+ var _d$20$5 = {
1058
877
  get() {
1059
878
  const day = this[_m$$8];
1060
879
  const focusKey = this[_m$2$7];
@@ -1063,7 +882,7 @@ var _d$22$5 = {
1063
882
  enumerable: true,
1064
883
  configurable: true
1065
884
  };
1066
- var _d$23$5 = {
885
+ var _d$21$5 = {
1067
886
  get() {
1068
887
  const day = this[_m$$8];
1069
888
  return (day().isDisabled || void 0) == null ? void 0 : day().isDisabled || void 0 ? "true" : "false";
@@ -1071,7 +890,7 @@ var _d$23$5 = {
1071
890
  enumerable: true,
1072
891
  configurable: true
1073
892
  };
1074
- var _d$24$5 = {
893
+ var _d$22$5 = {
1075
894
  get() {
1076
895
  const label = this[_m$3$6];
1077
896
  return label();
@@ -1079,7 +898,7 @@ var _d$24$5 = {
1079
898
  enumerable: true,
1080
899
  configurable: true
1081
900
  };
1082
- var _d$25$5 = {
901
+ var _d$23$5 = {
1083
902
  get() {
1084
903
  const day = this[_m$$8];
1085
904
  return day().isSelected || day().isInRange ? "true" : "false";
@@ -1087,17 +906,17 @@ var _d$25$5 = {
1087
906
  enumerable: true,
1088
907
  configurable: true
1089
908
  };
1090
- function _P$12$2(_p45, _p46, _p47) {
1091
- this[_m$$8] = _p45;
1092
- this[_m$2$7] = _p46;
1093
- this[_m$3$6] = _p47;
1094
- Object.defineProperty(this, "tabindex", _d$22$5);
1095
- Object.defineProperty(this, "aria-disabled", _d$23$5);
1096
- Object.defineProperty(this, "aria-label", _d$24$5);
1097
- Object.defineProperty(this, "aria-selected", _d$25$5);
909
+ function _P$11$2(_p37, _p38, _p39) {
910
+ this[_m$$8] = _p37;
911
+ this[_m$2$7] = _p38;
912
+ this[_m$3$6] = _p39;
913
+ Object.defineProperty(this, "tabindex", _d$20$5);
914
+ Object.defineProperty(this, "aria-disabled", _d$21$5);
915
+ Object.defineProperty(this, "aria-label", _d$22$5);
916
+ Object.defineProperty(this, "aria-selected", _d$23$5);
1098
917
  }
1099
- _P$12$2.prototype = Object.prototype;
1100
- var _d$26$5 = {
918
+ _P$11$2.prototype = Object.prototype;
919
+ var _d$24$5 = {
1101
920
  get() {
1102
921
  const band = this[_m$$8];
1103
922
  return band();
@@ -1105,13 +924,13 @@ var _d$26$5 = {
1105
924
  enumerable: true,
1106
925
  configurable: true
1107
926
  };
1108
- function _P$13$2(_p48, _p49) {
1109
- this[_m$$8] = _p48;
1110
- Object.defineProperty(this, "when", _d$26$5);
1111
- this.children = _p49;
927
+ function _P$12$2(_p40, _p41) {
928
+ this[_m$$8] = _p40;
929
+ Object.defineProperty(this, "when", _d$24$5);
930
+ this.children = _p41;
1112
931
  }
1113
- _P$13$2.prototype = Object.prototype;
1114
- var _d$27$5 = {
932
+ _P$12$2.prototype = Object.prototype;
933
+ var _d$25$5 = {
1115
934
  get() {
1116
935
  const week = this[_m$$8];
1117
936
  return week().days;
@@ -1119,14 +938,14 @@ var _d$27$5 = {
1119
938
  enumerable: true,
1120
939
  configurable: true
1121
940
  };
1122
- function _P$14$2(_p50, _p51, _p52) {
1123
- this[_m$$8] = _p50;
1124
- Object.defineProperty(this, "each", _d$27$5);
1125
- this.keyed = _p51;
1126
- this.children = _p52;
941
+ function _P$13$2(_p42, _p43, _p44) {
942
+ this[_m$$8] = _p42;
943
+ Object.defineProperty(this, "each", _d$25$5);
944
+ this.keyed = _p43;
945
+ this.children = _p44;
1127
946
  }
1128
- _P$14$2.prototype = Object.prototype;
1129
- var _d$28$5 = {
947
+ _P$13$2.prototype = Object.prototype;
948
+ var _d$26$5 = {
1130
949
  get() {
1131
950
  const _grid = this[_m$$8];
1132
951
  return _grid().weeks;
@@ -1134,17 +953,13 @@ var _d$28$5 = {
1134
953
  enumerable: true,
1135
954
  configurable: true
1136
955
  };
1137
- function _P$15$2(_p53, _p54, _p55) {
1138
- this[_m$$8] = _p53;
1139
- Object.defineProperty(this, "each", _d$28$5);
1140
- this.keyed = _p54;
1141
- this.children = _p55;
956
+ function _P$14$2(_p45, _p46, _p47) {
957
+ this[_m$$8] = _p45;
958
+ Object.defineProperty(this, "each", _d$26$5);
959
+ this.keyed = _p46;
960
+ this.children = _p47;
1142
961
  }
1143
- _P$15$2.prototype = Object.prototype;
1144
- /**
1145
- * Styleable parts of {@link MonthView}. Pass a class or inline style per slot via
1146
- * the `classNames` / `styles` props to restyle just that part.
1147
- */
962
+ _P$14$2.prototype = Object.prototype;
1148
963
  const EMPTY_LAYOUT = {
1149
964
  segments: [],
1150
965
  laneCount: 0
@@ -1548,6 +1363,31 @@ function DateRows(incoming) {
1548
1363
  const current = drag();
1549
1364
  return createContentEnabled() && current?.kind === "create" ? monthCreateRange(new Date(current.anchor), new Date(current.hover)) : null;
1550
1365
  }, { equals: (a, b) => a === b || !!a && !!b && +a.start === +b.start && +a.end === +b.end });
1366
+ const visibleLanesFor = (laneCount) => laneCount > props.maxVisibleEventCount ? Math.max(props.maxVisibleEventCount - 1, 1) : laneCount;
1367
+ const draftEvent = createMemo(() => {
1368
+ const range = createRange();
1369
+ return range ? {
1370
+ title: "",
1371
+ start: range.start,
1372
+ end: range.end,
1373
+ allDay: true
1374
+ } : null;
1375
+ });
1376
+ const rowLayouts = createMemo(() => {
1377
+ const draft = draftEvent();
1378
+ const base = weekLayouts();
1379
+ if (!draft) return base;
1380
+ const days = withDraftEventDays(eventsByDay(), draft);
1381
+ return _grid().weeks.map((week, index) => {
1382
+ const row = base[index] ?? EMPTY_LAYOUT;
1383
+ if (!week.days.some((d) => d.date >= draft.start && d.date < draft.end)) return row;
1384
+ const placed = layoutMonthWeek$1(week.days.map((d) => d.date), collectRowEvents(week, days));
1385
+ return keepMonthDraftVisible(placed, row, draft, {
1386
+ visibleLanes: visibleLanesFor,
1387
+ extraLaneFits: (visibleLanes) => visibleLanes < props.maxVisibleEventCount
1388
+ });
1389
+ });
1390
+ });
1551
1391
  const dragRef = { current: null };
1552
1392
  const applyDrag = (value) => {
1553
1393
  dragRef.current = value;
@@ -1679,11 +1519,11 @@ function DateRows(incoming) {
1679
1519
  flex: "1 1 auto",
1680
1520
  minHeight: 0,
1681
1521
  overflowY: "auto"
1682
- } } : void 0)], () => scope(() => escape(For(new _P$15$2(_grid, false, (week, weekIndex) => {
1683
- const rowLayout = createMemo(() => weekLayouts()[weekIndex] ?? EMPTY_LAYOUT);
1684
- const overflowing = createMemo(() => rowLayout().laneCount > props.maxVisibleEventCount);
1685
- const visibleLanes = createMemo(() => overflowing() ? Math.max(props.maxVisibleEventCount - 1, 1) : rowLayout().laneCount);
1522
+ } } : void 0)], () => scope(() => escape(For(new _P$14$2(_grid, false, (week, weekIndex) => {
1523
+ const rowLayout = createMemo(() => rowLayouts()[weekIndex] ?? EMPTY_LAYOUT);
1524
+ const visibleLanes = createMemo(() => visibleLanesFor(rowLayout().laneCount));
1686
1525
  const cols = createMemo(() => week().days.length);
1526
+ const extraLane = createMemo(() => visibleLanes() < props.maxVisibleEventCount ? monthExtraLaneColumns(rowLayout(), visibleLanes(), cols()) : week().days.map(() => false));
1687
1527
  const columns = createMemo(() => {
1688
1528
  let first = 0;
1689
1529
  let last = cols() - 1;
@@ -1700,14 +1540,22 @@ function DateRows(incoming) {
1700
1540
  last
1701
1541
  };
1702
1542
  });
1703
- const draftColumns = createMemo(() => {
1704
- const range = createRange();
1705
- return range ? week().days.flatMap((day, index) => !showAdjacentMonths() && isOutsidePeriod(day) || day.date < range.start || day.date >= range.end ? [] : [index]) : [];
1543
+ const draftSpan = createMemo(() => {
1544
+ const draft = draftEvent();
1545
+ const segment = draft ? rowLayout().segments.find((s) => s.event === draft) : void 0;
1546
+ if (!segment) return null;
1547
+ const start = Math.max(segment.startCol, columns().first);
1548
+ const end = Math.min(segment.endCol, columns().last);
1549
+ return start <= end ? {
1550
+ start,
1551
+ end,
1552
+ lane: segment.lane
1553
+ } : null;
1706
1554
  });
1707
- const draftTop = createMemo(() => 28 + props.chipGap + Math.min(visibleLanes(), Math.max(0, props.maxVisibleEventCount - 1)) * (props.chipHeight + props.chipGap));
1555
+ const draftTop = createMemo(() => 28 + props.chipGap + (draftSpan()?.lane ?? 0) * (props.chipHeight + props.chipGap));
1708
1556
  const draftHeight = createMemo(() => Math.min(props.chipHeight, Math.max(0, eventRowHeight() - draftTop())));
1709
1557
  return memo(() => {
1710
- const barSegs = createMemo(() => rowLayout().segments.filter((s) => s.lane < visibleLanes()).map((s) => {
1558
+ const barSegs = createMemo(() => monthVisibleBars(rowLayout(), visibleLanes(), extraLane()).filter((s) => s.event !== draftEvent()).map((s) => {
1711
1559
  const startCol = Math.max(s.startCol, columns().first);
1712
1560
  const endCol = Math.min(s.endCol, columns().last);
1713
1561
  return {
@@ -1723,7 +1571,8 @@ function DateRows(incoming) {
1723
1571
  return ssrElement("div", [{ role: "row" }, () => slot("week", { base: {
1724
1572
  display: "grid",
1725
1573
  gridTemplateColumns: `repeat(${cols()}, minmax(0, 1fr))`
1726
- } })], () => scope(() => escape(For(new _P$14$2(week, false, (day, dayCol) => {
1574
+ } })], () => scope(() => escape(For(new _P$13$2(week, false, (day, dayCol) => {
1575
+ const dayLanes = createMemo(() => visibleLanes() + (extraLane()[dayCol] ? 1 : 0));
1727
1576
  const hidden = createMemo(() => !showAdjacentMonths() && isOutsidePeriod(day()));
1728
1577
  const cellHeight = createMemo(() => eventsMode() ? eventRowHeight() : theme().cellHeight);
1729
1578
  return memo(() => {
@@ -1759,7 +1608,7 @@ function DateRows(incoming) {
1759
1608
  }));
1760
1609
  if (eventsMode()) {
1761
1610
  const dayEvents = createMemo(() => eventsByDay().get(startOfDay(day().date).toISOString()) ?? []);
1762
- const hiddenEvents = createMemo(() => rowLayout().segments.filter((s) => s.startCol <= dayCol && s.endCol >= dayCol && s.lane >= visibleLanes()).map((s) => s.event));
1611
+ const hiddenEvents = createMemo(() => rowLayout().segments.filter((s) => s.startCol <= dayCol && s.endCol >= dayCol && s.lane >= dayLanes() && s.event !== draftEvent()).map((s) => s.event));
1763
1612
  const dayLabel = createMemo(() => format(day().date, "d MMMM", props.locale ? { locale: props.locale } : void 0));
1764
1613
  const dayCellProps = createMemo(() => slot("day", eventCellDefault(day(), theme(), cellHeight(), props.highlightWeekends, inCreate() || isDropTarget(), props.chipGap)));
1765
1614
  return ssrElement("div", [
@@ -1776,18 +1625,40 @@ function DateRows(incoming) {
1776
1625
  "<!--/-->",
1777
1626
  ssrElement("span", [dayData, () => slot("dayBadge", compactBadgeDefault(day(), theme()))], () => scope(() => escape(day().label)), false),
1778
1627
  "<!--$-->",
1779
- escape(Show(new _P$7$3(props, createRange, draftColumns, dayCol, draftHeight, slot, draftTop, theme))),
1628
+ scope((() => {
1629
+ var _c$3 = memo(() => !!(props.renderCreateGhost && createRange() && draftSpan()?.start === dayCol && draftHeight() > 0));
1630
+ return () => _c$3() ? ssrElement("div", () => slot("createGhost", {
1631
+ base: {
1632
+ position: "absolute",
1633
+ left: 2,
1634
+ width: `calc(${(draftSpan().end - dayCol + 1) * 100}% - 4px)`,
1635
+ top: draftTop(),
1636
+ height: draftHeight(),
1637
+ boxSizing: "border-box",
1638
+ pointerEvents: "none",
1639
+ overflow: "hidden",
1640
+ zIndex: 3
1641
+ },
1642
+ themed: {
1643
+ background: theme().rangeBackground,
1644
+ border: `1px solid ${theme().selectedBackground}`,
1645
+ borderRadius: 4,
1646
+ fontSize: 12,
1647
+ color: theme().text
1648
+ }
1649
+ }), () => escape(Dynamic(new _P$6$5(props, createRange))), true, _sk$2, " inert aria-hidden=\"true\"") : void 0;
1650
+ })()),
1780
1651
  "<!--/-->",
1781
1652
  "<!--$-->",
1782
- scope(() => escape(For(new _P$9$3(barSegs, dayCol, false, (b) => {
1653
+ scope(() => escape(For(new _P$8$3(barSegs, dayCol, false, (b) => {
1783
1654
  const span = createMemo(() => b().endCol - b().startCol + 1);
1784
1655
  const isDragged = createMemo(() => {
1785
1656
  const currentDrag = drag();
1786
1657
  return currentDrag?.armed === true && currentDrag.kind === "move" && currentDrag.event === b().seg.event;
1787
1658
  });
1788
1659
  return ssrElement("button", [{ type: "button" }, barChipButton], () => scope((() => {
1789
- var _c$5 = memo(() => !!Chip());
1790
- return () => _c$5() ? escape(Dynamic(new _P$8$3(Chip, viewMode, b, () => props.onPressEvent?.(b().seg.event)))) : ssrElement("span", barChip, () => scope(() => escape(b().seg.event.title)), true, _sk$2, () => ssrElementAttribute("style", css({
1660
+ var _c$6 = memo(() => !!Chip());
1661
+ return () => _c$6() ? escape(Dynamic(new _P$7$3(Chip, viewMode, b, () => props.onPressEvent?.(b().seg.event)))) : ssrElement("span", barChip, () => scope(() => escape(b().seg.event.title)), true, _sk$, () => ssrElementAttribute("style", css({
1791
1662
  ...barChip().style,
1792
1663
  ...b().continuesBefore ? {
1793
1664
  borderTopLeftRadius: 0,
@@ -1823,23 +1694,23 @@ function DateRows(incoming) {
1823
1694
  gap: props.chipGap
1824
1695
  } }), () => [
1825
1696
  "<!--$-->",
1826
- scope(() => escape(Array.from({ length: visibleLanes() }, () => {
1697
+ scope(() => escape(Array.from({ length: dayLanes() }, () => {
1827
1698
  var _v$10 = ssrHydrationKey(), _v$12 = () => ((_v$11) => _v$11 == null ? "" : ssrAttribute("style", ssrStyle(_v$11)))(css({ height: props.chipHeight }));
1828
1699
  return ssr(_tmpl$3$5, _v$10, _v$12);
1829
1700
  }))),
1830
1701
  "<!--/-->",
1831
1702
  "<!--$-->",
1832
1703
  scope((() => {
1833
- var _c$3 = memo(() => hiddenEvents().length > 0);
1834
- return () => _c$3() ? ssrElement("button", [{ type: "button" }, () => slot("more", moreButtonDefault(theme(), props.chipHeight, multiWeek()))], () => scope(() => escape(props.moreLabel.replace("{moreCount}", String(hiddenEvents().length)))), true, _sk$4, () => ssrElementAttribute("aria-label", `${labels().moreEvents(hiddenEvents().length)}, ${dayLabel()}`) + ssrElementAttribute("aria-expanded", (props.onPressMore ? void 0 : moreOpenFor() === day().id) == null ? void 0 : (props.onPressMore ? void 0 : moreOpenFor() === day().id) ? "true" : "false")) : escape(null);
1704
+ var _c$4 = memo(() => hiddenEvents().length > 0);
1705
+ return () => _c$4() ? ssrElement("button", [{ type: "button" }, () => slot("more", moreButtonDefault(theme(), props.chipHeight, multiWeek()))], () => scope(() => escape(props.moreLabel.replace("{moreCount}", String(hiddenEvents().length)))), true, _sk$4, () => ssrElementAttribute("aria-label", `${labels().moreEvents(hiddenEvents().length)}, ${dayLabel()}`) + ssrElementAttribute("aria-expanded", (props.onPressMore ? void 0 : moreOpenFor() === day().id) == null ? void 0 : (props.onPressMore ? void 0 : moreOpenFor() === day().id) ? "true" : "false")) : escape(null);
1835
1706
  })()),
1836
1707
  "<!--/-->",
1837
1708
  "<!--$-->",
1838
1709
  scope((() => {
1839
- var _c$4 = memo(() => moreOpenFor() === day().id);
1710
+ var _c$5 = memo(() => moreOpenFor() === day().id);
1840
1711
  return () => {
1841
1712
  var _v$14, _v$15;
1842
- return _c$4() ? ssrElement("div", [new _P$0$2(dayLabel, "dialog"), () => slot("morePopover", {
1713
+ return _c$5() ? ssrElement("div", [new _P$9$3(dayLabel, "dialog"), () => slot("morePopover", {
1843
1714
  base: {
1844
1715
  position: "absolute",
1845
1716
  top: 2,
@@ -1866,7 +1737,7 @@ function DateRows(incoming) {
1866
1737
  color: theme().textMuted
1867
1738
  })), _v$15 = scope(() => escape(dayLabel())), ssr(_tmpl$4$3, _v$14, _v$15)),
1868
1739
  "<!--$-->",
1869
- scope(() => escape(For(new _P$10$2(dayEvents, false, (event) => {
1740
+ scope(() => escape(For(new _P$1$2(dayEvents, false, (event) => {
1870
1741
  var _v$16 = ssrHydrationKey(), _v$18 = () => ((_v$17) => _v$17 == null ? "" : ssrAttribute("style", ssrStyle(_v$17)))(css({
1871
1742
  display: "block",
1872
1743
  width: "100%",
@@ -1877,8 +1748,8 @@ function DateRows(incoming) {
1877
1748
  textAlign: "left",
1878
1749
  cursor: "pointer"
1879
1750
  })), _v$19 = scope((() => {
1880
- var _c$6 = memo(() => !!Chip());
1881
- return () => _c$6() ? escape(Dynamic(new _P$1$2(Chip, viewMode, event, () => props.onPressEvent?.(event())))) : ssrElement("span", () => slot("chip", chipDefault(theme(), props.chipHeight)), () => scope(() => escape(event().title)), true);
1751
+ var _c$7 = memo(() => !!Chip());
1752
+ return () => _c$7() ? escape(Dynamic(new _P$0$2(Chip, viewMode, event, () => props.onPressEvent?.(event())))) : ssrElement("span", () => slot("chip", chipDefault(theme(), props.chipHeight)), () => scope(() => escape(event().title)), true);
1882
1753
  })());
1883
1754
  return ssr(_tmpl$5$3, _v$16, _v$18, _v$19);
1884
1755
  })))),
@@ -1888,20 +1759,20 @@ function DateRows(incoming) {
1888
1759
  })()),
1889
1760
  "<!--/-->"
1890
1761
  ], false)
1891
- ], true, _sk$2, () => ssrElementAttribute("style", css(dragWired() ? {
1762
+ ], true, _sk$, () => ssrElementAttribute("style", css(dragWired() ? {
1892
1763
  ...dayCellProps().style,
1893
1764
  touchAction: multiWeek() ? "pan-y" : "none",
1894
1765
  userSelect: "none"
1895
1766
  } : dayCellProps().style)));
1896
1767
  }
1897
1768
  return ssrElement("button", [
1898
- new _P$11$2(day, "button", "gridcell"),
1769
+ new _P$10$2(day, "button", "gridcell"),
1899
1770
  dayData,
1900
- new _P$12$2(day, focusKey, label),
1771
+ new _P$11$2(day, focusKey, label),
1901
1772
  () => slot("day", dayCellDefault(day(), theme(), props.highlightWeekends))
1902
1773
  ], () => [
1903
1774
  "<!--$-->",
1904
- scope(() => escape(Show(new _P$13$2(band, (band) => ssrElement("span", [{
1775
+ scope(() => escape(Show(new _P$12$2(band, (band) => ssrElement("span", [{
1905
1776
  "data-band": true,
1906
1777
  "aria-hidden": "true"
1907
1778
  }, () => slot("rangeBand", band())], void 0, true))))),
@@ -2973,16 +2844,16 @@ var _d$37$3 = {
2973
2844
  };
2974
2845
  var _d$38$3 = {
2975
2846
  get() {
2976
- const range = this[_m$2$5];
2977
- return range().start;
2847
+ const ghostRange = this[_m$2$5];
2848
+ return ghostRange().start;
2978
2849
  },
2979
2850
  enumerable: true,
2980
2851
  configurable: true
2981
2852
  };
2982
2853
  var _d$39$3 = {
2983
2854
  get() {
2984
- const range = this[_m$2$5];
2985
- return range().end;
2855
+ const ghostRange = this[_m$2$5];
2856
+ return ghostRange().end;
2986
2857
  },
2987
2858
  enumerable: true,
2988
2859
  configurable: true
@@ -2997,8 +2868,8 @@ function _P$22$1(_p66, _p67) {
2997
2868
  _P$22$1.prototype = Object.prototype;
2998
2869
  var _d$40$3 = {
2999
2870
  get() {
3000
- const ghostRange = this[_m$$5];
3001
- return ghostRange();
2871
+ const ghost = this[_m$$5];
2872
+ return ghost();
3002
2873
  },
3003
2874
  enumerable: true,
3004
2875
  configurable: true
@@ -3011,34 +2882,20 @@ function _P$23$1(_p68, _p69) {
3011
2882
  _P$23$1.prototype = Object.prototype;
3012
2883
  var _d$41$3 = {
3013
2884
  get() {
3014
- const ghost = this[_m$$5];
3015
- return ghost();
2885
+ const days = this[_m$$5];
2886
+ return days();
3016
2887
  },
3017
2888
  enumerable: true,
3018
2889
  configurable: true
3019
2890
  };
3020
- function _P$24$1(_p70, _p71) {
2891
+ function _P$24$1(_p70, _p71, _p72) {
3021
2892
  this[_m$$5] = _p70;
3022
- Object.defineProperty(this, "when", _d$41$3);
3023
- this.children = _p71;
2893
+ Object.defineProperty(this, "each", _d$41$3);
2894
+ this.keyed = _p71;
2895
+ this.children = _p72;
3024
2896
  }
3025
2897
  _P$24$1.prototype = Object.prototype;
3026
2898
  var _d$42$3 = {
3027
- get() {
3028
- const days = this[_m$$5];
3029
- return days();
3030
- },
3031
- enumerable: true,
3032
- configurable: true
3033
- };
3034
- function _P$25$1(_p72, _p73, _p74) {
3035
- this[_m$$5] = _p72;
3036
- Object.defineProperty(this, "each", _d$42$3);
3037
- this.keyed = _p73;
3038
- this.children = _p74;
3039
- }
3040
- _P$25$1.prototype = Object.prototype;
3041
- var _d$43$2 = {
3042
2899
  get() {
3043
2900
  const Renderer = this[_m$$5];
3044
2901
  return Renderer();
@@ -3046,76 +2903,76 @@ var _d$43$2 = {
3046
2903
  enumerable: true,
3047
2904
  configurable: true
3048
2905
  };
3049
- var _d$44$2 = {
2906
+ var _d$43$2 = {
3050
2907
  get() {
3051
2908
  return this[_m$2$5].current.event;
3052
2909
  },
3053
2910
  enumerable: true,
3054
2911
  configurable: true
3055
2912
  };
3056
- var _d$45$2 = {
2913
+ var _d$44$2 = {
3057
2914
  get() {
3058
2915
  return this[_m$3$4].mode;
3059
2916
  },
3060
2917
  enumerable: true,
3061
2918
  configurable: true
3062
2919
  };
3063
- var _d$46$2 = {
2920
+ var _d$45$2 = {
3064
2921
  get() {
3065
2922
  return this[_m$2$5].current.h;
3066
2923
  },
3067
2924
  enumerable: true,
3068
2925
  configurable: true
3069
2926
  };
3070
- var _d$47$2 = {
2927
+ var _d$46$2 = {
3071
2928
  get() {
3072
2929
  return this[_m$3$4].ampm;
3073
2930
  },
3074
2931
  enumerable: true,
3075
2932
  configurable: true
3076
2933
  };
3077
- function _P$26$1(_p75, _p76, _p77, _p78, _p79) {
3078
- this[_m$$5] = _p75;
3079
- this[_m$2$5] = _p76;
3080
- this[_m$3$4] = _p77;
3081
- Object.defineProperty(this, "component", _d$43$2);
3082
- Object.defineProperty(this, "event", _d$44$2);
3083
- Object.defineProperty(this, "mode", _d$45$2);
3084
- this.isAllDay = _p78;
3085
- Object.defineProperty(this, "boxHeight", _d$46$2);
3086
- Object.defineProperty(this, "ampm", _d$47$2);
3087
- this.onPress = _p79;
2934
+ function _P$25$1(_p73, _p74, _p75, _p76, _p77) {
2935
+ this[_m$$5] = _p73;
2936
+ this[_m$2$5] = _p74;
2937
+ this[_m$3$4] = _p75;
2938
+ Object.defineProperty(this, "component", _d$42$3);
2939
+ Object.defineProperty(this, "event", _d$43$2);
2940
+ Object.defineProperty(this, "mode", _d$44$2);
2941
+ this.isAllDay = _p76;
2942
+ Object.defineProperty(this, "boxHeight", _d$45$2);
2943
+ Object.defineProperty(this, "ampm", _d$46$2);
2944
+ this.onPress = _p77;
3088
2945
  }
3089
- _P$26$1.prototype = Object.prototype;
3090
- var _d$48$2 = {
2946
+ _P$25$1.prototype = Object.prototype;
2947
+ var _d$47$2 = {
3091
2948
  get() {
3092
2949
  return this[_m$$5].current.event;
3093
2950
  },
3094
2951
  enumerable: true,
3095
2952
  configurable: true
3096
2953
  };
3097
- var _d$49$2 = {
2954
+ var _d$48$2 = {
3098
2955
  get() {
3099
2956
  return this[_m$2$5].mode;
3100
2957
  },
3101
2958
  enumerable: true,
3102
2959
  configurable: true
3103
2960
  };
3104
- var _d$50$2 = {
2961
+ var _d$49$2 = {
3105
2962
  get() {
3106
2963
  return this[_m$$5].current.h;
3107
2964
  },
3108
2965
  enumerable: true,
3109
2966
  configurable: true
3110
2967
  };
3111
- var _d$51$2 = {
2968
+ var _d$50$2 = {
3112
2969
  get() {
3113
2970
  return this[_m$2$5].ampm;
3114
2971
  },
3115
2972
  enumerable: true,
3116
2973
  configurable: true
3117
2974
  };
3118
- var _d$52$2 = {
2975
+ var _d$51$2 = {
3119
2976
  get() {
3120
2977
  const theme = this[_m$3$4];
3121
2978
  return theme();
@@ -3123,7 +2980,7 @@ var _d$52$2 = {
3123
2980
  enumerable: true,
3124
2981
  configurable: true
3125
2982
  };
3126
- var _d$53$2 = {
2983
+ var _d$52$2 = {
3127
2984
  get() {
3128
2985
  const slot = this[_m$4$2];
3129
2986
  return slot("eventBox");
@@ -3131,29 +2988,29 @@ var _d$53$2 = {
3131
2988
  enumerable: true,
3132
2989
  configurable: true
3133
2990
  };
3134
- function _P$27$1(_p80, _p81, _p82, _p83, _p84, _p85) {
3135
- this[_m$$5] = _p80;
3136
- this[_m$2$5] = _p81;
3137
- this[_m$3$4] = _p82;
3138
- this[_m$4$2] = _p83;
3139
- Object.defineProperty(this, "event", _d$48$2);
3140
- Object.defineProperty(this, "mode", _d$49$2);
3141
- this.isAllDay = _p84;
3142
- Object.defineProperty(this, "boxHeight", _d$50$2);
3143
- Object.defineProperty(this, "ampm", _d$51$2);
3144
- this.onPress = _p85;
3145
- Object.defineProperty(this, "theme", _d$52$2);
3146
- Object.defineProperty(this, "boxProps", _d$53$2);
2991
+ function _P$26$1(_p78, _p79, _p80, _p81, _p82, _p83) {
2992
+ this[_m$$5] = _p78;
2993
+ this[_m$2$5] = _p79;
2994
+ this[_m$3$4] = _p80;
2995
+ this[_m$4$2] = _p81;
2996
+ Object.defineProperty(this, "event", _d$47$2);
2997
+ Object.defineProperty(this, "mode", _d$48$2);
2998
+ this.isAllDay = _p82;
2999
+ Object.defineProperty(this, "boxHeight", _d$49$2);
3000
+ Object.defineProperty(this, "ampm", _d$50$2);
3001
+ this.onPress = _p83;
3002
+ Object.defineProperty(this, "theme", _d$51$2);
3003
+ Object.defineProperty(this, "boxProps", _d$52$2);
3147
3004
  }
3148
- _P$27$1.prototype = Object.prototype;
3149
- var _d$54$2 = {
3005
+ _P$26$1.prototype = Object.prototype;
3006
+ var _d$53$2 = {
3150
3007
  get() {
3151
3008
  return this[_m$$5].dialogRef;
3152
3009
  },
3153
3010
  enumerable: true,
3154
3011
  configurable: true
3155
3012
  };
3156
- var _d$55$2 = {
3013
+ var _d$54$1 = {
3157
3014
  get() {
3158
3015
  const labels = this[_m$2$5];
3159
3016
  const event = this[_m$3$4];
@@ -3162,7 +3019,7 @@ var _d$55$2 = {
3162
3019
  enumerable: true,
3163
3020
  configurable: true
3164
3021
  };
3165
- var _d$56$1 = {
3022
+ var _d$55$1 = {
3166
3023
  get() {
3167
3024
  const eventDescription = this[_m$4$2];
3168
3025
  const event = this[_m$3$4];
@@ -3171,7 +3028,7 @@ var _d$56$1 = {
3171
3028
  enumerable: true,
3172
3029
  configurable: true
3173
3030
  };
3174
- var _d$57$1 = {
3031
+ var _d$56$1 = {
3175
3032
  get() {
3176
3033
  const editActions = this[_m$5$2];
3177
3034
  const event = this[_m$3$4];
@@ -3180,7 +3037,7 @@ var _d$57$1 = {
3180
3037
  enumerable: true,
3181
3038
  configurable: true
3182
3039
  };
3183
- var _d$58$1 = {
3040
+ var _d$57$1 = {
3184
3041
  get() {
3185
3042
  const labels = this[_m$2$5];
3186
3043
  return labels().close;
@@ -3188,7 +3045,7 @@ var _d$58$1 = {
3188
3045
  enumerable: true,
3189
3046
  configurable: true
3190
3047
  };
3191
- var _d$59$1 = {
3048
+ var _d$58$1 = {
3192
3049
  get() {
3193
3050
  const labels = this[_m$2$5];
3194
3051
  return labels().eventChangeRejected;
@@ -3196,21 +3053,21 @@ var _d$59$1 = {
3196
3053
  enumerable: true,
3197
3054
  configurable: true
3198
3055
  };
3199
- var _d$60$1 = {
3056
+ var _d$59$1 = {
3200
3057
  get() {
3201
3058
  return this[_m$$5].rejections();
3202
3059
  },
3203
3060
  enumerable: true,
3204
3061
  configurable: true
3205
3062
  };
3206
- var _d$61$1 = {
3063
+ var _d$60$1 = {
3207
3064
  get() {
3208
3065
  return this[_m$$5].run;
3209
3066
  },
3210
3067
  enumerable: true,
3211
3068
  configurable: true
3212
3069
  };
3213
- var _d$62$1 = {
3070
+ var _d$61$1 = {
3214
3071
  get() {
3215
3072
  const theme = this[_m$6$2];
3216
3073
  return theme();
@@ -3218,39 +3075,39 @@ var _d$62$1 = {
3218
3075
  enumerable: true,
3219
3076
  configurable: true
3220
3077
  };
3221
- function _P$28$1(_p86, _p87, _p88, _p89, _p90, _p91, _p92, _p93) {
3222
- this[_m$$5] = _p86;
3223
- this[_m$2$5] = _p87;
3224
- this[_m$3$4] = _p88;
3225
- this[_m$4$2] = _p89;
3226
- this[_m$5$2] = _p90;
3227
- this[_m$6$2] = _p91;
3228
- Object.defineProperty(this, "dialogRef", _d$54$2);
3229
- Object.defineProperty(this, "title", _d$55$2);
3230
- Object.defineProperty(this, "description", _d$56$1);
3231
- Object.defineProperty(this, "actions", _d$57$1);
3232
- Object.defineProperty(this, "closeLabel", _d$58$1);
3233
- Object.defineProperty(this, "rejectedLabel", _d$59$1);
3234
- Object.defineProperty(this, "rejections", _d$60$1);
3235
- Object.defineProperty(this, "onAction", _d$61$1);
3236
- this.onClose = _p92;
3237
- this.slot = _p93;
3238
- Object.defineProperty(this, "theme", _d$62$1);
3078
+ function _P$27$1(_p84, _p85, _p86, _p87, _p88, _p89, _p90, _p91) {
3079
+ this[_m$$5] = _p84;
3080
+ this[_m$2$5] = _p85;
3081
+ this[_m$3$4] = _p86;
3082
+ this[_m$4$2] = _p87;
3083
+ this[_m$5$2] = _p88;
3084
+ this[_m$6$2] = _p89;
3085
+ Object.defineProperty(this, "dialogRef", _d$53$2);
3086
+ Object.defineProperty(this, "title", _d$54$1);
3087
+ Object.defineProperty(this, "description", _d$55$1);
3088
+ Object.defineProperty(this, "actions", _d$56$1);
3089
+ Object.defineProperty(this, "closeLabel", _d$57$1);
3090
+ Object.defineProperty(this, "rejectedLabel", _d$58$1);
3091
+ Object.defineProperty(this, "rejections", _d$59$1);
3092
+ Object.defineProperty(this, "onAction", _d$60$1);
3093
+ this.onClose = _p90;
3094
+ this.slot = _p91;
3095
+ Object.defineProperty(this, "theme", _d$61$1);
3239
3096
  }
3240
- _P$28$1.prototype = Object.prototype;
3241
- var _d$63$1 = {
3097
+ _P$27$1.prototype = Object.prototype;
3098
+ var _d$62$1 = {
3242
3099
  get() {
3243
3100
  return this[_m$$5].openEvent();
3244
3101
  },
3245
3102
  enumerable: true,
3246
3103
  configurable: true
3247
3104
  };
3248
- function _P$29$1(_p94, _p95) {
3249
- this[_m$$5] = _p94;
3250
- Object.defineProperty(this, "when", _d$63$1);
3251
- this.children = _p95;
3105
+ function _P$28$1(_p92, _p93) {
3106
+ this[_m$$5] = _p92;
3107
+ Object.defineProperty(this, "when", _d$62$1);
3108
+ this.children = _p93;
3252
3109
  }
3253
- _P$29$1.prototype = Object.prototype;
3110
+ _P$28$1.prototype = Object.prototype;
3254
3111
  /**
3255
3112
  * Styleable parts of {@link TimeGrid}. Pass a class or inline style per slot via
3256
3113
  * the `classNames` / `styles` props.
@@ -3989,7 +3846,7 @@ function TimeGrid(incoming) {
3989
3846
  var _c$9 = memo(() => !!props.hourComponent);
3990
3847
  return () => _c$9() ? escape(props.hourComponent(h(), props.ampm)) : memo(() => h() === 0)() ? "" : escape(formatHour(h(), { ampm: props.ampm }));
3991
3848
  })()), true))))), true);
3992
- })()), _v$26 = scope(() => escape(For(new _P$25$1(days, false, (day, dayIndex) => {
3849
+ })()), _v$26 = scope(() => escape(For(new _P$24$1(days, false, (day, dayIndex) => {
3993
3850
  const positioned = createMemo(() => positionedByDay()[dayIndex]);
3994
3851
  const nowHours = createMemo(() => (now().getHours() * 60 + now().getMinutes()) / 60);
3995
3852
  const showNow = createMemo(() => props.showNowIndicator && isSameCalendarDay(day(), now()) && nowHours() >= windowStart() && nowHours() <= windowEnd());
@@ -4265,7 +4122,7 @@ function TimeGrid(incoming) {
4265
4122
  })()),
4266
4123
  "<!--/-->",
4267
4124
  "<!--$-->",
4268
- scope(() => escape(Show(new _P$24$1(ghost, (_ghost) => ssrElement("div", [new _P$21$1(ghostRange, "true"), () => slot("createGhost", {
4125
+ scope(() => escape(Show(new _P$23$1(ghost, (_ghost) => ssrElement("div", [new _P$21$1(ghostRange, "true"), () => slot("createGhost", {
4269
4126
  base: {
4270
4127
  position: "absolute",
4271
4128
  left: props.eventGap,
@@ -4282,7 +4139,10 @@ function TimeGrid(incoming) {
4282
4139
  border: `1px solid ${theme().selectedBackground}`,
4283
4140
  borderRadius: 6
4284
4141
  }
4285
- })], () => escape(Show(new _P$23$1(ghostRange, (range) => Dynamic(new _P$22$1(props, range))))), true))))),
4142
+ })], () => scope((() => {
4143
+ var _c$13 = memo(() => !!ghostRange());
4144
+ return () => _c$13() ? escape(Dynamic(new _P$22$1(props, ghostRange))) : void 0;
4145
+ })()), true))))),
4286
4146
  "<!--/-->"
4287
4147
  ], true);
4288
4148
  })))), _v$27 = scope((() => {
@@ -4300,11 +4160,11 @@ function TimeGrid(incoming) {
4300
4160
  zIndex: 1e3,
4301
4161
  opacity: .85
4302
4162
  })), _v$49 = scope((() => {
4303
- var _c$13 = memo(() => !!Renderer());
4304
- return () => _c$13() ? escape(Dynamic(new _P$26$1(Renderer, draggedRef, props, false, () => {}))) : escape(DefaultDomEvent(new _P$27$1(draggedRef, props, theme, slot, false, () => {})));
4163
+ var _c$14 = memo(() => !!Renderer());
4164
+ return () => _c$14() ? escape(Dynamic(new _P$25$1(Renderer, draggedRef, props, false, () => {}))) : escape(DefaultDomEvent(new _P$26$1(draggedRef, props, theme, slot, false, () => {})));
4305
4165
  })()), ssr(_tmpl$8, _v$46, _v$48, _v$49)) : escape(null);
4306
4166
  };
4307
- })()), _v$28 = escape(Show(new _P$29$1(eventActions, (event) => EventActionsDialog(new _P$28$1(eventActions, labels, event, eventDescription, editActions, theme, () => eventActions.close(true), slot)))));
4167
+ })()), _v$28 = escape(Show(new _P$28$1(eventActions, (event) => EventActionsDialog(new _P$27$1(eventActions, labels, event, eventDescription, editActions, theme, () => eventActions.close(true), slot)))));
4308
4168
  return ssr(_tmpl$3$3, _v$13, _g$3, _g$3, _v$18, _v$19, _v$20, _g$2, _g$2, _v$25, _v$26, _v$27, _v$28);
4309
4169
  }
4310
4170
  // src/YearView.tsx
@@ -5213,14 +5073,14 @@ var _d$53$1 = {
5213
5073
  enumerable: true,
5214
5074
  configurable: true
5215
5075
  };
5216
- var _d$54$1 = {
5076
+ var _d$54 = {
5217
5077
  get() {
5218
5078
  return this[_m$$3].chipGap;
5219
5079
  },
5220
5080
  enumerable: true,
5221
5081
  configurable: true
5222
5082
  };
5223
- var _d$55$1 = {
5083
+ var _d$55 = {
5224
5084
  get() {
5225
5085
  return this[_m$$3].moreLabel;
5226
5086
  },
@@ -5402,8 +5262,8 @@ function _P$3$3(_p6, _p7, _p8) {
5402
5262
  Object.defineProperty(this, "styles", _d$51$1);
5403
5263
  Object.defineProperty(this, "maxVisibleEventCount", _d$52$1);
5404
5264
  Object.defineProperty(this, "chipHeight", _d$53$1);
5405
- Object.defineProperty(this, "chipGap", _d$54$1);
5406
- Object.defineProperty(this, "moreLabel", _d$55$1);
5265
+ Object.defineProperty(this, "chipGap", _d$54);
5266
+ Object.defineProperty(this, "moreLabel", _d$55);
5407
5267
  Object.defineProperty(this, "showAdjacentMonths", _d$56);
5408
5268
  Object.defineProperty(this, "showTitle", _d$57);
5409
5269
  Object.defineProperty(this, "fillCellOnSelection", _d$58);
@@ -7576,16 +7436,16 @@ var _d$16 = {
7576
7436
  };
7577
7437
  var _d$17 = {
7578
7438
  get() {
7579
- const range = this[_m$2];
7580
- return range().start;
7439
+ const createRange = this[_m$2];
7440
+ return createRange().start;
7581
7441
  },
7582
7442
  enumerable: true,
7583
7443
  configurable: true
7584
7444
  };
7585
7445
  var _d$18 = {
7586
7446
  get() {
7587
- const range = this[_m$2];
7588
- return range().end;
7447
+ const createRange = this[_m$2];
7448
+ return createRange().end;
7589
7449
  },
7590
7450
  enumerable: true,
7591
7451
  configurable: true
@@ -7610,8 +7470,8 @@ function _P$11(_p34, _p35, _p36) {
7610
7470
  _P$11.prototype = Object.prototype;
7611
7471
  var _d$20 = {
7612
7472
  get() {
7613
- const createRange = this[_m$];
7614
- return createRange();
7473
+ const ghost = this[_m$];
7474
+ return ghost();
7615
7475
  },
7616
7476
  enumerable: true,
7617
7477
  configurable: true
@@ -7624,34 +7484,20 @@ function _P$12(_p37, _p38) {
7624
7484
  _P$12.prototype = Object.prototype;
7625
7485
  var _d$21 = {
7626
7486
  get() {
7627
- const ghost = this[_m$];
7628
- return ghost();
7487
+ const resources = this[_m$];
7488
+ return resources();
7629
7489
  },
7630
7490
  enumerable: true,
7631
7491
  configurable: true
7632
7492
  };
7633
- function _P$13(_p39, _p40) {
7493
+ function _P$13(_p39, _p40, _p41) {
7634
7494
  this[_m$] = _p39;
7635
- Object.defineProperty(this, "when", _d$21);
7636
- this.children = _p40;
7495
+ Object.defineProperty(this, "each", _d$21);
7496
+ this.keyed = _p40;
7497
+ this.children = _p41;
7637
7498
  }
7638
7499
  _P$13.prototype = Object.prototype;
7639
7500
  var _d$22 = {
7640
- get() {
7641
- const resources = this[_m$];
7642
- return resources();
7643
- },
7644
- enumerable: true,
7645
- configurable: true
7646
- };
7647
- function _P$14(_p41, _p42, _p43) {
7648
- this[_m$] = _p41;
7649
- Object.defineProperty(this, "each", _d$22);
7650
- this.keyed = _p42;
7651
- this.children = _p43;
7652
- }
7653
- _P$14.prototype = Object.prototype;
7654
- var _d$23 = {
7655
7501
  get() {
7656
7502
  const byResource = this[_m$];
7657
7503
  const editActions = this[_m$2];
@@ -7660,7 +7506,7 @@ var _d$23 = {
7660
7506
  enumerable: true,
7661
7507
  configurable: true
7662
7508
  };
7663
- var _d$24 = {
7509
+ var _d$23 = {
7664
7510
  get() {
7665
7511
  const labels = this[_m$3];
7666
7512
  return labels().editEvents;
@@ -7668,21 +7514,21 @@ var _d$24 = {
7668
7514
  enumerable: true,
7669
7515
  configurable: true
7670
7516
  };
7671
- var _d$25 = {
7517
+ var _d$24 = {
7672
7518
  get() {
7673
7519
  return this[_m$4].select;
7674
7520
  },
7675
7521
  enumerable: true,
7676
7522
  configurable: true
7677
7523
  };
7678
- var _d$26 = {
7524
+ var _d$25 = {
7679
7525
  get() {
7680
7526
  return this[_m$4].rootRef;
7681
7527
  },
7682
7528
  enumerable: true,
7683
7529
  configurable: true
7684
7530
  };
7685
- var _d$27 = {
7531
+ var _d$26 = {
7686
7532
  get() {
7687
7533
  const theme = this[_m$5];
7688
7534
  return theme();
@@ -7690,23 +7536,23 @@ var _d$27 = {
7690
7536
  enumerable: true,
7691
7537
  configurable: true
7692
7538
  };
7693
- function _P$15(_p44, _p45, _p46, _p47, _p48, _p49, _p50, _p51) {
7694
- this[_m$] = _p44;
7695
- this[_m$2] = _p45;
7696
- this[_m$3] = _p46;
7697
- this[_m$4] = _p47;
7698
- this[_m$5] = _p48;
7699
- Object.defineProperty(this, "events", _d$23);
7700
- Object.defineProperty(this, "label", _d$24);
7701
- this.labelFor = _p49;
7702
- this.descriptionFor = _p50;
7703
- Object.defineProperty(this, "onSelect", _d$25);
7704
- Object.defineProperty(this, "rootRef", _d$26);
7705
- this.slot = _p51;
7706
- Object.defineProperty(this, "theme", _d$27);
7539
+ function _P$14(_p42, _p43, _p44, _p45, _p46, _p47, _p48, _p49) {
7540
+ this[_m$] = _p42;
7541
+ this[_m$2] = _p43;
7542
+ this[_m$3] = _p44;
7543
+ this[_m$4] = _p45;
7544
+ this[_m$5] = _p46;
7545
+ Object.defineProperty(this, "events", _d$22);
7546
+ Object.defineProperty(this, "label", _d$23);
7547
+ this.labelFor = _p47;
7548
+ this.descriptionFor = _p48;
7549
+ Object.defineProperty(this, "onSelect", _d$24);
7550
+ Object.defineProperty(this, "rootRef", _d$25);
7551
+ this.slot = _p49;
7552
+ Object.defineProperty(this, "theme", _d$26);
7707
7553
  }
7708
- _P$15.prototype = Object.prototype;
7709
- var _d$28 = {
7554
+ _P$14.prototype = Object.prototype;
7555
+ var _d$27 = {
7710
7556
  get() {
7711
7557
  const hours = this[_m$];
7712
7558
  return hours();
@@ -7714,14 +7560,14 @@ var _d$28 = {
7714
7560
  enumerable: true,
7715
7561
  configurable: true
7716
7562
  };
7717
- function _P$16(_p52, _p53, _p54) {
7718
- this[_m$] = _p52;
7719
- Object.defineProperty(this, "each", _d$28);
7720
- this.keyed = _p53;
7721
- this.children = _p54;
7563
+ function _P$15(_p50, _p51, _p52) {
7564
+ this[_m$] = _p50;
7565
+ Object.defineProperty(this, "each", _d$27);
7566
+ this.keyed = _p51;
7567
+ this.children = _p52;
7722
7568
  }
7723
- _P$16.prototype = Object.prototype;
7724
- var _d$29 = {
7569
+ _P$15.prototype = Object.prototype;
7570
+ var _d$28 = {
7725
7571
  get() {
7726
7572
  const resource = this[_m$];
7727
7573
  return resource().id;
@@ -7729,12 +7575,12 @@ var _d$29 = {
7729
7575
  enumerable: true,
7730
7576
  configurable: true
7731
7577
  };
7732
- function _P$17(_p55) {
7733
- this[_m$] = _p55;
7734
- Object.defineProperty(this, "data-resource-id", _d$29);
7578
+ function _P$16(_p53) {
7579
+ this[_m$] = _p53;
7580
+ Object.defineProperty(this, "data-resource-id", _d$28);
7735
7581
  }
7736
- _P$17.prototype = Object.prototype;
7737
- var _d$30 = {
7582
+ _P$16.prototype = Object.prototype;
7583
+ var _d$29 = {
7738
7584
  get() {
7739
7585
  const bandsFor = this[_m$];
7740
7586
  const resource = this[_m$2];
@@ -7743,15 +7589,15 @@ var _d$30 = {
7743
7589
  enumerable: true,
7744
7590
  configurable: true
7745
7591
  };
7746
- function _P$18(_p56, _p57, _p58, _p59) {
7747
- this[_m$] = _p56;
7748
- this[_m$2] = _p57;
7749
- Object.defineProperty(this, "each", _d$30);
7750
- this.keyed = _p58;
7751
- this.children = _p59;
7592
+ function _P$17(_p54, _p55, _p56, _p57) {
7593
+ this[_m$] = _p54;
7594
+ this[_m$2] = _p55;
7595
+ Object.defineProperty(this, "each", _d$29);
7596
+ this.keyed = _p56;
7597
+ this.children = _p57;
7752
7598
  }
7753
- _P$18.prototype = Object.prototype;
7754
- var _d$31 = {
7599
+ _P$17.prototype = Object.prototype;
7600
+ var _d$30 = {
7755
7601
  get() {
7756
7602
  const b = this[_m$];
7757
7603
  return b().event.title;
@@ -7759,13 +7605,13 @@ var _d$31 = {
7759
7605
  enumerable: true,
7760
7606
  configurable: true
7761
7607
  };
7762
- function _P$19(_p60, _p61) {
7763
- this[_m$] = _p60;
7764
- this["aria-hidden"] = _p61;
7765
- Object.defineProperty(this, "title", _d$31);
7608
+ function _P$18(_p58, _p59) {
7609
+ this[_m$] = _p58;
7610
+ this["aria-hidden"] = _p59;
7611
+ Object.defineProperty(this, "title", _d$30);
7766
7612
  }
7767
- _P$19.prototype = Object.prototype;
7768
- var _d$32 = {
7613
+ _P$18.prototype = Object.prototype;
7614
+ var _d$31 = {
7769
7615
  get() {
7770
7616
  const backgroundBandsFor = this[_m$];
7771
7617
  const resource = this[_m$2];
@@ -7774,15 +7620,15 @@ var _d$32 = {
7774
7620
  enumerable: true,
7775
7621
  configurable: true
7776
7622
  };
7777
- function _P$20(_p62, _p63, _p64, _p65) {
7778
- this[_m$] = _p62;
7779
- this[_m$2] = _p63;
7780
- Object.defineProperty(this, "each", _d$32);
7781
- this.keyed = _p64;
7782
- this.children = _p65;
7623
+ function _P$19(_p60, _p61, _p62, _p63) {
7624
+ this[_m$] = _p60;
7625
+ this[_m$2] = _p61;
7626
+ Object.defineProperty(this, "each", _d$31);
7627
+ this.keyed = _p62;
7628
+ this.children = _p63;
7783
7629
  }
7784
- _P$20.prototype = Object.prototype;
7785
- var _d$33 = {
7630
+ _P$19.prototype = Object.prototype;
7631
+ var _d$32 = {
7786
7632
  get() {
7787
7633
  const pe = this[_m$];
7788
7634
  return pe().event.title;
@@ -7790,13 +7636,13 @@ var _d$33 = {
7790
7636
  enumerable: true,
7791
7637
  configurable: true
7792
7638
  };
7793
- function _P$21(_p66, _p67) {
7794
- this[_m$] = _p66;
7795
- this.type = _p67;
7796
- Object.defineProperty(this, "aria-label", _d$33);
7639
+ function _P$20(_p64, _p65) {
7640
+ this[_m$] = _p64;
7641
+ this.type = _p65;
7642
+ Object.defineProperty(this, "aria-label", _d$32);
7797
7643
  }
7798
- _P$21.prototype = Object.prototype;
7799
- var _d$34 = {
7644
+ _P$20.prototype = Object.prototype;
7645
+ var _d$33 = {
7800
7646
  get() {
7801
7647
  const Renderer = this[_m$];
7802
7648
  return Renderer();
@@ -7804,12 +7650,12 @@ var _d$34 = {
7804
7650
  enumerable: true,
7805
7651
  configurable: true
7806
7652
  };
7807
- function _P$22(_p68) {
7808
- this[_m$] = _p68;
7809
- Object.defineProperty(this, "component", _d$34);
7653
+ function _P$21(_p66) {
7654
+ this[_m$] = _p66;
7655
+ Object.defineProperty(this, "component", _d$33);
7810
7656
  }
7811
- _P$22.prototype = Object.prototype;
7812
- var _d$35 = {
7657
+ _P$21.prototype = Object.prototype;
7658
+ var _d$34 = {
7813
7659
  get() {
7814
7660
  const theme = this[_m$];
7815
7661
  return theme();
@@ -7817,7 +7663,7 @@ var _d$35 = {
7817
7663
  enumerable: true,
7818
7664
  configurable: true
7819
7665
  };
7820
- var _d$36 = {
7666
+ var _d$35 = {
7821
7667
  get() {
7822
7668
  const slot = this[_m$2];
7823
7669
  return slot("eventBox");
@@ -7825,14 +7671,14 @@ var _d$36 = {
7825
7671
  enumerable: true,
7826
7672
  configurable: true
7827
7673
  };
7828
- function _P$23(_p69, _p70) {
7829
- this[_m$] = _p69;
7830
- this[_m$2] = _p70;
7831
- Object.defineProperty(this, "theme", _d$35);
7832
- Object.defineProperty(this, "boxProps", _d$36);
7674
+ function _P$22(_p67, _p68) {
7675
+ this[_m$] = _p67;
7676
+ this[_m$2] = _p68;
7677
+ Object.defineProperty(this, "theme", _d$34);
7678
+ Object.defineProperty(this, "boxProps", _d$35);
7833
7679
  }
7834
- _P$23.prototype = Object.prototype;
7835
- var _d$37 = {
7680
+ _P$22.prototype = Object.prototype;
7681
+ var _d$36 = {
7836
7682
  get() {
7837
7683
  const positioned = this[_m$];
7838
7684
  return positioned();
@@ -7840,14 +7686,14 @@ var _d$37 = {
7840
7686
  enumerable: true,
7841
7687
  configurable: true
7842
7688
  };
7843
- function _P$24(_p71, _p72, _p73) {
7844
- this[_m$] = _p71;
7845
- Object.defineProperty(this, "each", _d$37);
7846
- this.keyed = _p72;
7847
- this.children = _p73;
7689
+ function _P$23(_p69, _p70, _p71) {
7690
+ this[_m$] = _p69;
7691
+ Object.defineProperty(this, "each", _d$36);
7692
+ this.keyed = _p70;
7693
+ this.children = _p71;
7848
7694
  }
7849
- _P$24.prototype = Object.prototype;
7850
- var _d$38 = {
7695
+ _P$23.prototype = Object.prototype;
7696
+ var _d$37 = {
7851
7697
  get() {
7852
7698
  const createRange = this[_m$];
7853
7699
  return createRange() ? true : void 0;
@@ -7855,36 +7701,36 @@ var _d$38 = {
7855
7701
  enumerable: true,
7856
7702
  configurable: true
7857
7703
  };
7858
- function _P$25(_p74, _p75) {
7859
- this[_m$] = _p74;
7860
- this["aria-hidden"] = _p75;
7861
- Object.defineProperty(this, "inert", _d$38);
7704
+ function _P$24(_p72, _p73) {
7705
+ this[_m$] = _p72;
7706
+ this["aria-hidden"] = _p73;
7707
+ Object.defineProperty(this, "inert", _d$37);
7862
7708
  }
7863
- _P$25.prototype = Object.prototype;
7864
- var _d$39 = {
7709
+ _P$24.prototype = Object.prototype;
7710
+ var _d$38 = {
7865
7711
  get() {
7866
7712
  return this[_m$].renderCreateGhost;
7867
7713
  },
7868
7714
  enumerable: true,
7869
7715
  configurable: true
7870
7716
  };
7871
- var _d$40 = {
7717
+ var _d$39 = {
7872
7718
  get() {
7873
- const range = this[_m$2];
7874
- return range().start;
7719
+ const createRange = this[_m$2];
7720
+ return createRange().start;
7875
7721
  },
7876
7722
  enumerable: true,
7877
7723
  configurable: true
7878
7724
  };
7879
- var _d$41 = {
7725
+ var _d$40 = {
7880
7726
  get() {
7881
- const range = this[_m$2];
7882
- return range().end;
7727
+ const createRange = this[_m$2];
7728
+ return createRange().end;
7883
7729
  },
7884
7730
  enumerable: true,
7885
7731
  configurable: true
7886
7732
  };
7887
- var _d$42 = {
7733
+ var _d$41 = {
7888
7734
  get() {
7889
7735
  const resource = this[_m$3];
7890
7736
  return resource();
@@ -7892,31 +7738,17 @@ var _d$42 = {
7892
7738
  enumerable: true,
7893
7739
  configurable: true
7894
7740
  };
7895
- function _P$26(_p76, _p77, _p78) {
7896
- this[_m$] = _p76;
7897
- this[_m$2] = _p77;
7898
- this[_m$3] = _p78;
7899
- Object.defineProperty(this, "component", _d$39);
7900
- Object.defineProperty(this, "start", _d$40);
7901
- Object.defineProperty(this, "end", _d$41);
7902
- Object.defineProperty(this, "resource", _d$42);
7903
- }
7904
- _P$26.prototype = Object.prototype;
7905
- var _d$43 = {
7906
- get() {
7907
- const createRange = this[_m$];
7908
- return createRange();
7909
- },
7910
- enumerable: true,
7911
- configurable: true
7912
- };
7913
- function _P$27(_p79, _p80) {
7914
- this[_m$] = _p79;
7915
- Object.defineProperty(this, "when", _d$43);
7916
- this.children = _p80;
7741
+ function _P$25(_p74, _p75, _p76) {
7742
+ this[_m$] = _p74;
7743
+ this[_m$2] = _p75;
7744
+ this[_m$3] = _p76;
7745
+ Object.defineProperty(this, "component", _d$38);
7746
+ Object.defineProperty(this, "start", _d$39);
7747
+ Object.defineProperty(this, "end", _d$40);
7748
+ Object.defineProperty(this, "resource", _d$41);
7917
7749
  }
7918
- _P$27.prototype = Object.prototype;
7919
- var _d$44 = {
7750
+ _P$25.prototype = Object.prototype;
7751
+ var _d$42 = {
7920
7752
  get() {
7921
7753
  const ghost = this[_m$];
7922
7754
  return ghost();
@@ -7924,13 +7756,13 @@ var _d$44 = {
7924
7756
  enumerable: true,
7925
7757
  configurable: true
7926
7758
  };
7927
- function _P$28(_p81, _p82) {
7928
- this[_m$] = _p81;
7929
- Object.defineProperty(this, "when", _d$44);
7930
- this.children = _p82;
7759
+ function _P$26(_p77, _p78) {
7760
+ this[_m$] = _p77;
7761
+ Object.defineProperty(this, "when", _d$42);
7762
+ this.children = _p78;
7931
7763
  }
7932
- _P$28.prototype = Object.prototype;
7933
- var _d$45 = {
7764
+ _P$26.prototype = Object.prototype;
7765
+ var _d$43 = {
7934
7766
  get() {
7935
7767
  const resources = this[_m$];
7936
7768
  return resources();
@@ -7938,21 +7770,21 @@ var _d$45 = {
7938
7770
  enumerable: true,
7939
7771
  configurable: true
7940
7772
  };
7941
- function _P$29(_p83, _p84, _p85) {
7942
- this[_m$] = _p83;
7943
- Object.defineProperty(this, "each", _d$45);
7944
- this.keyed = _p84;
7945
- this.children = _p85;
7773
+ function _P$27(_p79, _p80, _p81) {
7774
+ this[_m$] = _p79;
7775
+ Object.defineProperty(this, "each", _d$43);
7776
+ this.keyed = _p80;
7777
+ this.children = _p81;
7946
7778
  }
7947
- _P$29.prototype = Object.prototype;
7948
- var _d$46 = {
7779
+ _P$27.prototype = Object.prototype;
7780
+ var _d$44 = {
7949
7781
  get() {
7950
7782
  return this[_m$].dialogRef;
7951
7783
  },
7952
7784
  enumerable: true,
7953
7785
  configurable: true
7954
7786
  };
7955
- var _d$47 = {
7787
+ var _d$45 = {
7956
7788
  get() {
7957
7789
  const labels = this[_m$2];
7958
7790
  const event = this[_m$3];
@@ -7961,7 +7793,7 @@ var _d$47 = {
7961
7793
  enumerable: true,
7962
7794
  configurable: true
7963
7795
  };
7964
- var _d$48 = {
7796
+ var _d$46 = {
7965
7797
  get() {
7966
7798
  const eventDescription = this[_m$4];
7967
7799
  const event = this[_m$3];
@@ -7970,7 +7802,7 @@ var _d$48 = {
7970
7802
  enumerable: true,
7971
7803
  configurable: true
7972
7804
  };
7973
- var _d$49 = {
7805
+ var _d$47 = {
7974
7806
  get() {
7975
7807
  const editActions = this[_m$5];
7976
7808
  const event = this[_m$3];
@@ -7979,7 +7811,7 @@ var _d$49 = {
7979
7811
  enumerable: true,
7980
7812
  configurable: true
7981
7813
  };
7982
- var _d$50 = {
7814
+ var _d$48 = {
7983
7815
  get() {
7984
7816
  const labels = this[_m$2];
7985
7817
  return labels().close;
@@ -7987,7 +7819,7 @@ var _d$50 = {
7987
7819
  enumerable: true,
7988
7820
  configurable: true
7989
7821
  };
7990
- var _d$51 = {
7822
+ var _d$49 = {
7991
7823
  get() {
7992
7824
  const labels = this[_m$2];
7993
7825
  return labels().eventChangeRejected;
@@ -7995,21 +7827,21 @@ var _d$51 = {
7995
7827
  enumerable: true,
7996
7828
  configurable: true
7997
7829
  };
7998
- var _d$52 = {
7830
+ var _d$50 = {
7999
7831
  get() {
8000
7832
  return this[_m$].rejections();
8001
7833
  },
8002
7834
  enumerable: true,
8003
7835
  configurable: true
8004
7836
  };
8005
- var _d$53 = {
7837
+ var _d$51 = {
8006
7838
  get() {
8007
7839
  return this[_m$].run;
8008
7840
  },
8009
7841
  enumerable: true,
8010
7842
  configurable: true
8011
7843
  };
8012
- var _d$54 = {
7844
+ var _d$52 = {
8013
7845
  get() {
8014
7846
  const theme = this[_m$6];
8015
7847
  return theme();
@@ -8017,39 +7849,39 @@ var _d$54 = {
8017
7849
  enumerable: true,
8018
7850
  configurable: true
8019
7851
  };
8020
- function _P$30(_p86, _p87, _p88, _p89, _p90, _p91, _p92, _p93) {
8021
- this[_m$] = _p86;
8022
- this[_m$2] = _p87;
8023
- this[_m$3] = _p88;
8024
- this[_m$4] = _p89;
8025
- this[_m$5] = _p90;
8026
- this[_m$6] = _p91;
8027
- Object.defineProperty(this, "dialogRef", _d$46);
8028
- Object.defineProperty(this, "title", _d$47);
8029
- Object.defineProperty(this, "description", _d$48);
8030
- Object.defineProperty(this, "actions", _d$49);
8031
- Object.defineProperty(this, "closeLabel", _d$50);
8032
- Object.defineProperty(this, "rejectedLabel", _d$51);
8033
- Object.defineProperty(this, "rejections", _d$52);
8034
- Object.defineProperty(this, "onAction", _d$53);
8035
- this.onClose = _p92;
8036
- this.slot = _p93;
8037
- Object.defineProperty(this, "theme", _d$54);
8038
- }
8039
- _P$30.prototype = Object.prototype;
8040
- var _d$55 = {
7852
+ function _P$28(_p82, _p83, _p84, _p85, _p86, _p87, _p88, _p89) {
7853
+ this[_m$] = _p82;
7854
+ this[_m$2] = _p83;
7855
+ this[_m$3] = _p84;
7856
+ this[_m$4] = _p85;
7857
+ this[_m$5] = _p86;
7858
+ this[_m$6] = _p87;
7859
+ Object.defineProperty(this, "dialogRef", _d$44);
7860
+ Object.defineProperty(this, "title", _d$45);
7861
+ Object.defineProperty(this, "description", _d$46);
7862
+ Object.defineProperty(this, "actions", _d$47);
7863
+ Object.defineProperty(this, "closeLabel", _d$48);
7864
+ Object.defineProperty(this, "rejectedLabel", _d$49);
7865
+ Object.defineProperty(this, "rejections", _d$50);
7866
+ Object.defineProperty(this, "onAction", _d$51);
7867
+ this.onClose = _p88;
7868
+ this.slot = _p89;
7869
+ Object.defineProperty(this, "theme", _d$52);
7870
+ }
7871
+ _P$28.prototype = Object.prototype;
7872
+ var _d$53 = {
8041
7873
  get() {
8042
7874
  return this[_m$].openEvent();
8043
7875
  },
8044
7876
  enumerable: true,
8045
7877
  configurable: true
8046
7878
  };
8047
- function _P$31(_p94, _p95) {
8048
- this[_m$] = _p94;
8049
- Object.defineProperty(this, "when", _d$55);
8050
- this.children = _p95;
7879
+ function _P$29(_p90, _p91) {
7880
+ this[_m$] = _p90;
7881
+ Object.defineProperty(this, "when", _d$53);
7882
+ this.children = _p91;
8051
7883
  }
8052
- _P$31.prototype = Object.prototype;
7884
+ _P$29.prototype = Object.prototype;
8053
7885
  /**
8054
7886
  * Styleable parts of {@link ResourceTimeline}. Pass a class or inline style per
8055
7887
  * slot via the `classNames` / `styles` props.
@@ -8475,7 +8307,7 @@ function ResourceTimeline(incoming) {
8475
8307
  fontSize: 10,
8476
8308
  color: theme().textMuted
8477
8309
  }
8478
- }), () => scope(() => escape(formatHour(h(), { ampm: props.ampm }))), true))))), false), _v$23 = scope(() => escape(For(new _P$14(resources, (resource) => resource.id, (resource) => {
8310
+ }), () => scope(() => escape(formatHour(h(), { ampm: props.ampm }))), true))))), false), _v$23 = scope(() => escape(For(new _P$13(resources, (resource) => resource.id, (resource) => {
8479
8311
  const resourceKey = untrack(() => resource().id);
8480
8312
  onCleanup(() => {
8481
8313
  if (createOrigin.current?.resource.id === resourceKey) clearCreate();
@@ -8626,7 +8458,7 @@ function ResourceTimeline(incoming) {
8626
8458
  scope(() => escape(nowLine(resource().id))),
8627
8459
  "<!--/-->",
8628
8460
  "<!--$-->",
8629
- scope(() => escape(Show(new _P$13(ghost, (ghost) => ssrElement("div", [new _P$10(createRange, "true"), () => slot("createGhost", {
8461
+ scope(() => escape(Show(new _P$12(ghost, (ghost) => ssrElement("div", [new _P$10(createRange, "true"), () => slot("createGhost", {
8630
8462
  base: {
8631
8463
  position: "absolute",
8632
8464
  left: 1,
@@ -8643,7 +8475,10 @@ function ResourceTimeline(incoming) {
8643
8475
  border: `1px solid ${theme().selectedBackground}`,
8644
8476
  borderRadius: 6
8645
8477
  }
8646
- })], () => escape(Show(new _P$12(createRange, (range) => Dynamic(new _P$11(props, range, resource))))), true))))),
8478
+ })], () => scope((() => {
8479
+ var _c$5 = memo(() => !!createRange());
8480
+ return () => _c$5() ? escape(Dynamic(new _P$11(props, createRange, resource))) : void 0;
8481
+ })()), true))))),
8647
8482
  "<!--/-->"
8648
8483
  ], false), true);
8649
8484
  }))));
@@ -8655,7 +8490,7 @@ function ResourceTimeline(incoming) {
8655
8490
  color: theme().text,
8656
8491
  overflowX: "auto",
8657
8492
  ...props.style
8658
- }))], 2), _v$32 = escape(EventActionsMenu(new _P$15(byResource, editActions, labels, eventActions, theme, (event) => labels().eventActions(event.title ?? ""), eventDescription, slot))), _v$34 = () => ((_v$33) => _v$33 == null ? "" : ssrAttribute("style", ssrStyle(_v$33)))(css({ minWidth: props.labelWidth + trackWidth() })), _v$35 = ssrElement("div", () => slot("header", {
8493
+ }))], 2), _v$32 = escape(EventActionsMenu(new _P$14(byResource, editActions, labels, eventActions, theme, (event) => labels().eventActions(event.title ?? ""), eventDescription, slot))), _v$34 = () => ((_v$33) => _v$33 == null ? "" : ssrAttribute("style", ssrStyle(_v$33)))(css({ minWidth: props.labelWidth + trackWidth() })), _v$35 = ssrElement("div", () => slot("header", {
8659
8494
  base: { display: "flex" },
8660
8495
  themed: { borderBottom: `1px solid ${theme().gridLine}` }
8661
8496
  }), () => [ssrElement("div", () => slot("corner", { base: {
@@ -8665,7 +8500,7 @@ function ResourceTimeline(incoming) {
8665
8500
  position: "relative",
8666
8501
  height: 24,
8667
8502
  width: trackWidth()
8668
- } }), () => scope(() => escape(For(new _P$16(hours, false, (h) => ssrElement("div", () => slot("hourTick", {
8503
+ } }), () => scope(() => escape(For(new _P$15(hours, false, (h) => ssrElement("div", () => slot("hourTick", {
8669
8504
  base: {
8670
8505
  position: "absolute",
8671
8506
  left: (h() - props.startHour) * props.hourWidth,
@@ -8675,7 +8510,7 @@ function ResourceTimeline(incoming) {
8675
8510
  fontSize: 10,
8676
8511
  color: theme().textMuted
8677
8512
  }
8678
- }), () => scope(() => escape(formatHour(h(), { ampm: props.ampm }))), true))))), false)], false), _v$36 = scope(() => escape(For(new _P$29(resources, (resource) => resource.id, (resource, index) => {
8513
+ }), () => scope(() => escape(formatHour(h(), { ampm: props.ampm }))), true))))), false)], false), _v$36 = scope(() => escape(For(new _P$27(resources, (resource) => resource.id, (resource, index) => {
8679
8514
  const resourceKey = untrack(() => resource().id);
8680
8515
  onCleanup(() => {
8681
8516
  if (createOrigin.current?.resource.id === resourceKey) clearCreate();
@@ -8710,10 +8545,10 @@ function ResourceTimeline(incoming) {
8710
8545
  borderRight: `1px solid ${theme().gridLine}`
8711
8546
  }
8712
8547
  }), () => scope((() => {
8713
- var _c$5 = memo(() => !!props.renderResourceHeader);
8714
- return () => _c$5() ? escape(props.renderResourceHeader(resource(), index())) : escape(resource().title ?? resource().id);
8548
+ var _c$6 = memo(() => !!props.renderResourceHeader);
8549
+ return () => _c$6() ? escape(props.renderResourceHeader(resource(), index())) : escape(resource().title ?? resource().id);
8715
8550
  })()), false), ssrElement("div", [
8716
- new _P$17(resource),
8551
+ new _P$16(resource),
8717
8552
  () => trackInteractionProps(resource()),
8718
8553
  () => slot("track", { base: {
8719
8554
  position: "relative",
@@ -8721,7 +8556,7 @@ function ResourceTimeline(incoming) {
8721
8556
  } })
8722
8557
  ], () => [
8723
8558
  "<!--$-->",
8724
- scope(() => escape(For(new _P$18(bandsFor, resource, false, (b) => ssrElement("div", [{ "aria-hidden": "true" }, () => slot("businessHours", {
8559
+ scope(() => escape(For(new _P$17(bandsFor, resource, false, (b) => ssrElement("div", [{ "aria-hidden": "true" }, () => slot("businessHours", {
8725
8560
  base: {
8726
8561
  position: "absolute",
8727
8562
  top: 0,
@@ -8740,7 +8575,7 @@ function ResourceTimeline(incoming) {
8740
8575
  }))), true))))),
8741
8576
  "<!--/-->",
8742
8577
  "<!--$-->",
8743
- scope(() => escape(For(new _P$20(backgroundBandsFor, resource, false, (b) => ssrElement("div", [new _P$19(b, "true"), () => slot("backgroundEvent", {
8578
+ scope(() => escape(For(new _P$19(backgroundBandsFor, resource, false, (b) => ssrElement("div", [new _P$18(b, "true"), () => slot("backgroundEvent", {
8744
8579
  base: {
8745
8580
  position: "absolute",
8746
8581
  top: 0,
@@ -8762,7 +8597,7 @@ function ResourceTimeline(incoming) {
8762
8597
  themed: { backgroundImage: gridLines() }
8763
8598
  })], void 0, false),
8764
8599
  "<!--$-->",
8765
- scope(() => escape(For(new _P$24(positioned, (pe) => pe.event, (pe) => {
8600
+ scope(() => escape(For(new _P$23(positioned, (pe) => pe.event, (pe) => {
8766
8601
  const event = untrack(() => pe().event);
8767
8602
  onCleanup(() => {
8768
8603
  if (dragRef.current?.event === event) clearDrag();
@@ -8791,7 +8626,7 @@ function ResourceTimeline(incoming) {
8791
8626
  }));
8792
8627
  const draggable = createMemo(() => !!props.onDragEvent && pe().event.draggable !== false);
8793
8628
  return ssrElement("button", [
8794
- new _P$21(pe, "button"),
8629
+ new _P$20(pe, "button"),
8795
8630
  () => dataState({ "data-dragging": !!active() }),
8796
8631
  () => slot("event", { base: {
8797
8632
  position: "absolute",
@@ -8814,16 +8649,16 @@ function ResourceTimeline(incoming) {
8814
8649
  ], () => [
8815
8650
  "<!--$-->",
8816
8651
  scope((() => {
8817
- var _c$6 = memo(() => !!Renderer());
8818
- return () => _c$6() ? escape(Dynamic(mergeProps(new _P$22(Renderer), args))) : escape(DefaultBar(mergeProps(args, new _P$23(theme, slot))));
8652
+ var _c$7 = memo(() => !!Renderer());
8653
+ return () => _c$7() ? escape(Dynamic(mergeProps(new _P$21(Renderer), args))) : escape(DefaultBar(mergeProps(args, new _P$22(theme, slot))));
8819
8654
  })()),
8820
8655
  "<!--/-->",
8821
8656
  "<!--$-->",
8822
8657
  scope((() => {
8823
- var _c$7 = memo(() => !!draggable());
8658
+ var _c$8 = memo(() => !!draggable());
8824
8659
  return () => {
8825
8660
  var _v$37, _v$39;
8826
- return _c$7() ? (_v$37 = ssrHydrationKey(), _v$39 = () => ((_v$38) => _v$38 == null ? "" : ssrAttribute("style", ssrStyle(_v$38)))(css({
8661
+ return _c$8() ? (_v$37 = ssrHydrationKey(), _v$39 = () => ((_v$38) => _v$38 == null ? "" : ssrAttribute("style", ssrStyle(_v$38)))(css({
8827
8662
  position: "absolute",
8828
8663
  top: 0,
8829
8664
  bottom: 0,
@@ -8842,7 +8677,7 @@ function ResourceTimeline(incoming) {
8842
8677
  scope(() => escape(nowLine(resource().id))),
8843
8678
  "<!--/-->",
8844
8679
  "<!--$-->",
8845
- scope(() => escape(Show(new _P$28(ghost, (ghost) => ssrElement("div", [new _P$25(createRange, "true"), () => slot("createGhost", {
8680
+ scope(() => escape(Show(new _P$26(ghost, (ghost) => ssrElement("div", [new _P$24(createRange, "true"), () => slot("createGhost", {
8846
8681
  base: {
8847
8682
  position: "absolute",
8848
8683
  top: 1,
@@ -8859,11 +8694,14 @@ function ResourceTimeline(incoming) {
8859
8694
  border: `1px solid ${theme().selectedBackground}`,
8860
8695
  borderRadius: 6
8861
8696
  }
8862
- })], () => escape(Show(new _P$27(createRange, (range) => Dynamic(new _P$26(props, range, resource))))), true))))),
8697
+ })], () => scope((() => {
8698
+ var _c$9 = memo(() => !!createRange());
8699
+ return () => _c$9() ? escape(Dynamic(new _P$25(props, createRange, resource))) : void 0;
8700
+ })()), true))))),
8863
8701
  "<!--/-->"
8864
8702
  ], false)], true);
8865
8703
  }))));
8866
8704
  return ssr(_tmpl$5, _v$27, _g$3, _g$3, _v$32, _v$34, _v$35, _v$36);
8867
- }), Show(new _P$31(eventActions, (event) => EventActionsDialog(new _P$30(eventActions, labels, event, eventDescription, editActions, theme, () => eventActions.close(true), slot))))];
8705
+ }), Show(new _P$29(eventActions, (event) => EventActionsDialog(new _P$28(eventActions, labels, event, eventDescription, editActions, theme, () => eventActions.close(true), slot))))];
8868
8706
  }
8869
8707
  export { Agenda, Calendar, DatePicker, DateRangePicker, MonthList, MonthView, MultiWeekView, ResourceTimeline, TimeGrid, YearView, backgroundBandsForDay, buildMonthGrid, buildMultiWeekGrid, createDateRange, createEventSource, createMonthGrid, createNow, darkSolidTheme, daySelectionState, defaultCalendarLabels, defaultSolidTheme, expandRecurringEvents, getViewDays, isAllDayEvent, isBackgroundEvent, isDateSelectable, isRangeEndpoint, isWithinDateRange, layoutDayEvents, layoutMonthWeek, loadEventSource, mergeSolidTheme, nextDateRange, parseICalendar, toICalendar, weekdayFormatToken };