@innosolutions/inno-calendar 1.0.21 → 1.0.23

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.
Files changed (49) hide show
  1. package/dist/{agenda-dropdown-D8rfvI3Q.js → agenda-dropdown-B76IBhmH.js} +777 -769
  2. package/dist/agenda-dropdown-B76IBhmH.js.map +1 -0
  3. package/dist/agenda-dropdown-DMtt0PMz.cjs +2 -0
  4. package/dist/agenda-dropdown-DMtt0PMz.cjs.map +1 -0
  5. package/dist/{agenda-view-CRI1J_KB.js → agenda-view-5sPzr1GA.js} +795 -733
  6. package/dist/{agenda-view-CRI1J_KB.js.map → agenda-view-5sPzr1GA.js.map} +1 -1
  7. package/dist/agenda-view-BhD-XJn-.cjs +11 -0
  8. package/dist/{agenda-view-BotvTTEB.cjs.map → agenda-view-BhD-XJn-.cjs.map} +1 -1
  9. package/dist/components/index.cjs +1 -1
  10. package/dist/components/index.mjs +2 -2
  11. package/dist/components/inno-calendar.d.ts +7 -1
  12. package/dist/components/inno-calendar.d.ts.map +1 -1
  13. package/dist/components/views/month-view.d.ts +7 -1
  14. package/dist/components/views/month-view.d.ts.map +1 -1
  15. package/dist/components/views/timeline-view.d.ts +1 -1
  16. package/dist/components/views/timeline-view.d.ts.map +1 -1
  17. package/dist/core/index.cjs +1 -1
  18. package/dist/core/index.mjs +3 -3
  19. package/dist/core/utils/date-utils.d.ts +2 -0
  20. package/dist/core/utils/date-utils.d.ts.map +1 -1
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.mjs +6 -6
  23. package/dist/{inno-calendar-provider-BAcxjBGI.cjs → inno-calendar-provider-CEO8ZyR2.cjs} +2 -2
  24. package/dist/{inno-calendar-provider-BAcxjBGI.cjs.map → inno-calendar-provider-CEO8ZyR2.cjs.map} +1 -1
  25. package/dist/{inno-calendar-provider-Cy72EfJy.js → inno-calendar-provider-CbnwQSuI.js} +2 -2
  26. package/dist/{inno-calendar-provider-Cy72EfJy.js.map → inno-calendar-provider-CbnwQSuI.js.map} +1 -1
  27. package/dist/presets/index.cjs +1 -1
  28. package/dist/presets/index.mjs +1 -1
  29. package/dist/slot-selection-context-BnE5w6aV.cjs +2 -0
  30. package/dist/slot-selection-context-BnE5w6aV.cjs.map +1 -0
  31. package/dist/{slot-selection-context-CZjfJAcp.js → slot-selection-context-CMaE5Bc5.js} +103 -103
  32. package/dist/slot-selection-context-CMaE5Bc5.js.map +1 -0
  33. package/dist/styles/index.css +1 -1
  34. package/dist/{tailwind-calendar-Y9dn5uKm.js → tailwind-calendar-BEf7QDjd.js} +3 -3
  35. package/dist/{tailwind-calendar-Y9dn5uKm.js.map → tailwind-calendar-BEf7QDjd.js.map} +1 -1
  36. package/dist/{tailwind-calendar-CQBD-ljO.cjs → tailwind-calendar-Cur19bSK.cjs} +2 -2
  37. package/dist/{tailwind-calendar-CQBD-ljO.cjs.map → tailwind-calendar-Cur19bSK.cjs.map} +1 -1
  38. package/dist/{use-calendar-time-config-CLYhL81Z.js → use-calendar-time-config-C_ZU8YAc.js} +3 -3
  39. package/dist/{use-calendar-time-config-CLYhL81Z.js.map → use-calendar-time-config-C_ZU8YAc.js.map} +1 -1
  40. package/dist/{use-calendar-time-config-BQ1Yni0n.cjs → use-calendar-time-config-bm7Fn31s.cjs} +2 -2
  41. package/dist/{use-calendar-time-config-BQ1Yni0n.cjs.map → use-calendar-time-config-bm7Fn31s.cjs.map} +1 -1
  42. package/package.json +1 -1
  43. package/dist/agenda-dropdown-D8rfvI3Q.js.map +0 -1
  44. package/dist/agenda-dropdown-oY4qocpp.cjs +0 -2
  45. package/dist/agenda-dropdown-oY4qocpp.cjs.map +0 -1
  46. package/dist/agenda-view-BotvTTEB.cjs +0 -11
  47. package/dist/slot-selection-context-B_YLI-x7.cjs +0 -2
  48. package/dist/slot-selection-context-B_YLI-x7.cjs.map +0 -1
  49. package/dist/slot-selection-context-CZjfJAcp.js.map +0 -1
@@ -133,7 +133,7 @@ function m(t, e) {
133
133
  const n = new Date(t);
134
134
  return n.setDate(n.getDate() + e), n;
135
135
  }
136
- function Ht(t, e) {
136
+ function bt(t, e) {
137
137
  return m(t, -e);
138
138
  }
139
139
  function I(t, e) {
@@ -142,7 +142,7 @@ function I(t, e) {
142
142
  function N(t) {
143
143
  return I(t, /* @__PURE__ */ new Date());
144
144
  }
145
- function bt(t) {
145
+ function Ht(t) {
146
146
  return t.getDay();
147
147
  }
148
148
  function P(t) {
@@ -173,7 +173,7 @@ function xt(t, e, n = 1) {
173
173
  const r = w(t, n), a = w(e, n);
174
174
  return I(r, a);
175
175
  }
176
- function b(t) {
176
+ function H(t) {
177
177
  const e = new Date(t);
178
178
  return e.setDate(1), e.setHours(0, 0, 0, 0), e;
179
179
  }
@@ -288,8 +288,8 @@ function jt(t, e) {
288
288
  }
289
289
  function Jt(t = "en-US", e = "short") {
290
290
  const n = new Intl.DateTimeFormat(t, { weekday: e }), r = [], a = new Date(2024, 0, 7);
291
- for (let o = 0; o < 7; o++)
292
- r.push(n.format(m(a, o)));
291
+ for (let s = 0; s < 7; s++)
292
+ r.push(n.format(m(a, s)));
293
293
  return r;
294
294
  }
295
295
  function Kt(t = "en-US", e = "long") {
@@ -318,10 +318,10 @@ function Qt(t, e = 1) {
318
318
  return r;
319
319
  }
320
320
  function Zt(t, e = 1) {
321
- const n = b(t), r = k(t), a = w(n, e), o = M(r, e), s = t.getMonth();
322
- return q(a, o).map((i) => ({
321
+ const n = H(t), r = k(t), a = w(n, e), s = M(r, e), o = t.getMonth();
322
+ return q(a, s).map((i) => ({
323
323
  date: i,
324
- isCurrentMonth: i.getMonth() === s,
324
+ isCurrentMonth: i.getMonth() === o,
325
325
  isWeekend: i.getDay() === 0 || i.getDay() === 6
326
326
  }));
327
327
  }
@@ -337,11 +337,11 @@ function ee(t, e, n) {
337
337
  function ne(t, e, n) {
338
338
  if (!n) return !0;
339
339
  const r = t.getDay(), a = n[r];
340
- return !a || !a.enabled || a.from === a.to ? !1 : e >= a.from && e < a.to;
340
+ return !a || !(a.enabled !== !1) || a.from === a.to ? !1 : e >= a.from && e < a.to;
341
341
  }
342
342
  function re(t, e) {
343
343
  const n = t.getDay(), r = e[n];
344
- return !r || !r.enabled || r.from === r.to ? null : { from: r.from, to: r.to };
344
+ return !r || !(r.enabled !== !1) || r.from === r.to ? null : { from: r.from, to: r.to };
345
345
  }
346
346
  function ae(t) {
347
347
  const e = [];
@@ -366,7 +366,7 @@ function Q(t, e, n = 1) {
366
366
  endDate: M(t, n)
367
367
  };
368
368
  case "month":
369
- const r = b(t), a = k(t);
369
+ const r = H(t), a = k(t);
370
370
  return {
371
371
  startDate: w(r, n),
372
372
  endDate: M(a, n)
@@ -388,7 +388,7 @@ function Q(t, e, n = 1) {
388
388
  };
389
389
  }
390
390
  }
391
- function oe(t, e) {
391
+ function se(t, e) {
392
392
  switch (e) {
393
393
  case "day":
394
394
  case "resource-day":
@@ -408,7 +408,7 @@ function oe(t, e) {
408
408
  return m(t, 1);
409
409
  }
410
410
  }
411
- function se(t, e) {
411
+ function oe(t, e) {
412
412
  switch (e) {
413
413
  case "day":
414
414
  case "resource-day":
@@ -432,28 +432,28 @@ function ue() {
432
432
  return y(/* @__PURE__ */ new Date());
433
433
  }
434
434
  function ie(t, e = 1) {
435
- const n = b(t), r = k(t), a = w(n, e), o = M(r, e), s = [];
435
+ const n = H(t), r = k(t), a = w(n, e), s = M(r, e), o = [];
436
436
  let u = a;
437
- for (; u <= o; )
438
- s.push({
437
+ for (; u <= s; )
438
+ o.push({
439
439
  date: new Date(u),
440
440
  isToday: N(u),
441
441
  isCurrentMonth: O(u, t),
442
442
  isWeekend: P(u),
443
443
  dayOfWeek: u.getDay()
444
444
  }), u = m(u, 1);
445
- return s;
445
+ return o;
446
446
  }
447
447
  function ce(t, e = 1) {
448
448
  const n = w(t, e), r = [];
449
449
  for (let a = 0; a < 7; a++) {
450
- const o = m(n, a);
450
+ const s = m(n, a);
451
451
  r.push({
452
- date: o,
453
- isToday: N(o),
454
- isCurrentMonth: O(o, t),
455
- isWeekend: P(o),
456
- dayOfWeek: o.getDay()
452
+ date: s,
453
+ isToday: N(s),
454
+ isCurrentMonth: O(s, t),
455
+ isWeekend: P(s),
456
+ dayOfWeek: s.getDay()
457
457
  });
458
458
  }
459
459
  return r;
@@ -474,13 +474,13 @@ function le(t) {
474
474
  }
475
475
  function fe(t, e, n = 30) {
476
476
  const r = [], a = 60 / n;
477
- for (let o = t; o < e; o++)
478
- for (let s = 0; s < a; s++) {
479
- const u = s * n;
477
+ for (let s = t; s < e; s++)
478
+ for (let o = 0; o < a; o++) {
479
+ const u = o * n;
480
480
  r.push({
481
- hour: o,
481
+ hour: s,
482
482
  minute: u,
483
- label: `${o.toString().padStart(2, "0")}:${u.toString().padStart(2, "0")}`
483
+ label: `${s.toString().padStart(2, "0")}:${u.toString().padStart(2, "0")}`
484
484
  });
485
485
  }
486
486
  return r;
@@ -488,13 +488,13 @@ function fe(t, e, n = 30) {
488
488
  function ge(t, e, n = "24h") {
489
489
  const r = [];
490
490
  for (let a = t; a <= e; a++) {
491
- let o;
491
+ let s;
492
492
  if (n === "12h") {
493
- const s = a >= 12 ? "PM" : "AM";
494
- o = `${a % 12 || 12} ${s}`;
493
+ const o = a >= 12 ? "PM" : "AM";
494
+ s = `${a % 12 || 12} ${o}`;
495
495
  } else
496
- o = `${a.toString().padStart(2, "0")}:00`;
497
- r.push({ hour: a, label: o });
496
+ s = `${a.toString().padStart(2, "0")}:00`;
497
+ r.push({ hour: a, label: s });
498
498
  }
499
499
  return r;
500
500
  }
@@ -508,18 +508,18 @@ function de(t, e, n = "en-US") {
508
508
  case "week":
509
509
  case "resource-week":
510
510
  case "timeline-week": {
511
- const o = w(t, 1), s = M(t, 1);
512
- return `${a.format(o)} - ${a.format(s)}`;
511
+ const s = w(t, 1), o = M(t, 1);
512
+ return `${a.format(s)} - ${a.format(o)}`;
513
513
  }
514
514
  case "month": {
515
- const o = b(t), s = k(t);
516
- return `${a.format(o)} - ${a.format(s)}`;
515
+ const s = H(t), o = k(t);
516
+ return `${a.format(s)} - ${a.format(o)}`;
517
517
  }
518
518
  case "year":
519
519
  return `Jan 1 - Dec 31, ${t.getFullYear()}`;
520
520
  case "agenda": {
521
- const o = b(t), s = k(t);
522
- return `${a.format(o)} - ${a.format(s)}`;
521
+ const s = H(t), o = k(t);
522
+ return `${a.format(s)} - ${a.format(o)}`;
523
523
  }
524
524
  default:
525
525
  return "";
@@ -527,7 +527,7 @@ function de(t, e, n = "en-US") {
527
527
  }
528
528
  function De(t, e, n, r = 1) {
529
529
  const a = Q(e, n, r);
530
- return t.filter((o) => o.startDate <= a.endDate && o.endDate >= a.startDate).length;
530
+ return t.filter((s) => s.startDate <= a.endDate && s.endDate >= a.startDate).length;
531
531
  }
532
532
  function me(t, e, n = "en-US") {
533
533
  const r = new Intl.DateTimeFormat(n, { month: "long", year: "numeric" }), a = new Intl.DateTimeFormat(n, {
@@ -544,8 +544,8 @@ function me(t, e, n = "en-US") {
544
544
  case "week":
545
545
  case "resource-week":
546
546
  case "timeline-week": {
547
- const o = w(t, 1), s = M(t, 1), u = new Intl.DateTimeFormat(n, { month: "short" }).format(o), i = new Intl.DateTimeFormat(n, { month: "short" }).format(s), c = o.getFullYear();
548
- return u === i ? `${u} ${o.getDate()} - ${s.getDate()}, ${c}` : `${u} ${o.getDate()} - ${i} ${s.getDate()}, ${c}`;
547
+ const s = w(t, 1), o = M(t, 1), u = new Intl.DateTimeFormat(n, { month: "short" }).format(s), i = new Intl.DateTimeFormat(n, { month: "short" }).format(o), c = s.getFullYear();
548
+ return u === i ? `${u} ${s.getDate()} - ${o.getDate()}, ${c}` : `${u} ${s.getDate()} - ${i} ${o.getDate()}, ${c}`;
549
549
  }
550
550
  case "month":
551
551
  return r.format(t);
@@ -558,9 +558,9 @@ function me(t, e, n = "en-US") {
558
558
  }
559
559
  }
560
560
  function he(t = 1, e = "short", n = "en-US") {
561
- const r = new Intl.DateTimeFormat(n, { weekday: e }), a = [], o = new Date(2024, 0, 7);
562
- for (let s = 0; s < 7; s++) {
563
- const u = (t + s) % 7, i = m(o, u);
561
+ const r = new Intl.DateTimeFormat(n, { weekday: e }), a = [], s = new Date(2024, 0, 7);
562
+ for (let o = 0; o < 7; o++) {
563
+ const u = (t + o) % 7, i = m(s, u);
564
564
  a.push({
565
565
  dayOfWeek: u,
566
566
  label: r.format(i)
@@ -570,9 +570,9 @@ function he(t = 1, e = "short", n = "en-US") {
570
570
  }
571
571
  function Z(t, e, n) {
572
572
  const r = y(e), a = E(n);
573
- return t.filter((o) => {
574
- const s = o.startDate, u = o.endDate;
575
- return s <= a && u >= r;
573
+ return t.filter((s) => {
574
+ const o = s.startDate, u = s.endDate;
575
+ return o <= a && u >= r;
576
576
  });
577
577
  }
578
578
  function tt(t, e) {
@@ -589,8 +589,8 @@ function nt(t, e) {
589
589
  if (!e.trim()) return t;
590
590
  const n = e.toLowerCase();
591
591
  return t.filter((r) => {
592
- const a = r.title.toLowerCase().includes(n), o = r.description?.toLowerCase().includes(n);
593
- return a || o;
592
+ const a = r.title.toLowerCase().includes(n), s = r.description?.toLowerCase().includes(n);
593
+ return a || s;
594
594
  });
595
595
  }
596
596
  function rt(t) {
@@ -636,13 +636,13 @@ function Ee(t) {
636
636
  }
637
637
  return e;
638
638
  }
639
- function He(t, e) {
639
+ function be(t, e) {
640
640
  return t.filter((n) => {
641
641
  const r = y(e), a = E(e);
642
642
  return n.startDate <= a && n.endDate >= r;
643
643
  });
644
644
  }
645
- function be(t) {
645
+ function He(t) {
646
646
  return t.filter((e) => e.isAllDay);
647
647
  }
648
648
  function ke(t) {
@@ -669,7 +669,7 @@ function ve(t, e, n = "blue") {
669
669
  return n;
670
670
  }
671
671
  function at(t, e, n, r = C) {
672
- const { startHour: a, endHour: o } = n, s = o - a, u = s * r, i = t.startDate.getHours() + t.startDate.getMinutes() / 60, c = t.endDate.getHours() + t.endDate.getMinutes() / 60, l = Math.max(i, a), f = Math.min(c, o), g = (l - a) / s * u, D = (f - a) / s * u, T = Math.max(D - g, J);
672
+ const { startHour: a, endHour: s } = n, o = s - a, u = o * r, i = t.startDate.getHours() + t.startDate.getMinutes() / 60, c = t.endDate.getHours() + t.endDate.getMinutes() / 60, l = Math.max(i, a), f = Math.min(c, s), g = (l - a) / o * u, D = (f - a) / o * u, T = Math.max(D - g, J);
673
673
  return {
674
674
  top: g,
675
675
  height: T,
@@ -685,12 +685,12 @@ function Oe(t, e, n, r = C) {
685
685
  if (f !== 0) return f;
686
686
  const g = c.endDate.getTime() - c.startDate.getTime();
687
687
  return l.endDate.getTime() - l.startDate.getTime() - g;
688
- }), o = [], s = [];
688
+ }), s = [], o = [];
689
689
  for (const c of a) {
690
690
  const l = c.startDate.getTime(), f = c.endDate.getTime();
691
691
  let g = -1;
692
- for (let h = 0; h < o.length; h++) {
693
- const d = o[h];
692
+ for (let h = 0; h < s.length; h++) {
693
+ const d = s[h];
694
694
  if (!d) continue;
695
695
  const p = d[d.length - 1];
696
696
  if (p && p.endTime <= l) {
@@ -698,39 +698,39 @@ function Oe(t, e, n, r = C) {
698
698
  break;
699
699
  }
700
700
  }
701
- g === -1 && (g = o.length, o.push([]));
702
- const D = o[g];
701
+ g === -1 && (g = s.length, s.push([]));
702
+ const D = s[g];
703
703
  D && D.push({ event: c, endTime: f });
704
704
  const T = at(c, e, n, r);
705
- s.push({
705
+ o.push({
706
706
  event: c,
707
707
  position: T,
708
708
  column: g,
709
709
  columnSpan: 1
710
710
  });
711
711
  }
712
- const i = 100 / o.length;
713
- for (const c of s)
712
+ const i = 100 / s.length;
713
+ for (const c of o)
714
714
  c.position.left = c.column * i, c.position.width = i * c.columnSpan, c.position.zIndex = c.column + 1;
715
- return s;
715
+ return o;
716
716
  }
717
717
  function _e(t, e, n, r = C, a = 30) {
718
- const { startHour: o, endHour: s } = n, u = s - o, i = u * r, c = t / i * u, f = (o + c) * 60, g = Math.round(f / a) * a, D = new Date(e);
718
+ const { startHour: s, endHour: o } = n, u = o - s, i = u * r, c = t / i * u, f = (s + c) * 60, g = Math.round(f / a) * a, D = new Date(e);
719
719
  return D.setHours(0, 0, 0, 0), D.setMinutes(g), D;
720
720
  }
721
721
  function Re(t, e, n = C) {
722
- const { startHour: r, endHour: a } = e, o = a - r, s = o * n, u = t.getHours() + t.getMinutes() / 60;
723
- return (Math.max(r, Math.min(u, a)) - r) / o * s;
722
+ const { startHour: r, endHour: a } = e, s = a - r, o = s * n, u = t.getHours() + t.getMinutes() / 60;
723
+ return (Math.max(r, Math.min(u, a)) - r) / s * o;
724
724
  }
725
725
  function $e(t, e) {
726
726
  return t.startDate < e.endDate && t.endDate > e.startDate;
727
727
  }
728
728
  function We(t) {
729
729
  if (t.length === 0) return [];
730
- const e = [...t].sort((o, s) => o.startDate.getTime() - s.startDate.getTime()), n = [];
730
+ const e = [...t].sort((s, o) => s.startDate.getTime() - o.startDate.getTime()), n = [];
731
731
  let r = [], a = 0;
732
- for (const o of e)
733
- r.length === 0 || o.startDate.getTime() < a ? (r.push(o), a = Math.max(a, o.endDate.getTime())) : (r.length > 0 && n.push(r), r = [o], a = o.endDate.getTime());
732
+ for (const s of e)
733
+ r.length === 0 || s.startDate.getTime() < a ? (r.push(s), a = Math.max(a, s.endDate.getTime())) : (r.length > 0 && n.push(r), r = [s], a = s.endDate.getTime());
734
734
  return r.length > 0 && n.push(r), n;
735
735
  }
736
736
  function Ye(t, e, n) {
@@ -752,7 +752,7 @@ function Ue({
752
752
  originalStartDate: c,
753
753
  originalEndDate: l
754
754
  });
755
- }, []), o = S(
755
+ }, []), s = S(
756
756
  (i, c, l) => {
757
757
  r((f) => f ? {
758
758
  ...f,
@@ -762,7 +762,7 @@ function Ue({
762
762
  } : null);
763
763
  },
764
764
  []
765
- ), s = S(() => {
765
+ ), o = S(() => {
766
766
  if (!n) return null;
767
767
  const { event: i, originalStartDate: c, originalEndDate: l, previewDate: f, previewHour: g, previewMinute: D } = n, T = l.getTime() - c.getTime();
768
768
  let h;
@@ -788,8 +788,8 @@ function Ue({
788
788
  dragState: n,
789
789
  isDragging: n !== null,
790
790
  startDrag: a,
791
- updateDragPreview: o,
792
- endDrag: s,
791
+ updateDragPreview: s,
792
+ endDrag: o,
793
793
  cancelDrag: u
794
794
  },
795
795
  children: t
@@ -808,23 +808,23 @@ function Le() {
808
808
  const W = L(
809
809
  void 0
810
810
  );
811
- function H(t) {
811
+ function b(t) {
812
812
  const e = new Date(t.date);
813
813
  return typeof t.hour == "number" && e.setHours(t.hour, t.minute ?? 0, 0, 0), e;
814
814
  }
815
- function ot(t) {
815
+ function st(t) {
816
816
  const e = new Date(t), n = e.getMinutes(), r = Math.floor(n / 30) * 30;
817
817
  return e.setMinutes(r, 0, 0), e;
818
818
  }
819
- function st(t, e) {
819
+ function ot(t, e) {
820
820
  return t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth() && t.getDate() === e.getDate();
821
821
  }
822
822
  function Y(t, e, n, r, a = 30) {
823
- const o = H(t), s = H(e);
824
- let u = o, i = s;
825
- if (s < o && (u = s, i = o), n === "day")
826
- if (st(u, i)) {
827
- const l = ot(/* @__PURE__ */ new Date());
823
+ const s = b(t), o = b(e);
824
+ let u = s, i = o;
825
+ if (o < s && (u = o, i = s), n === "day")
826
+ if (ot(u, i)) {
827
+ const l = st(/* @__PURE__ */ new Date());
828
828
  u = new Date(u), u.setHours(
829
829
  l.getHours(),
830
830
  l.getMinutes(),
@@ -847,7 +847,7 @@ function Y(t, e, n, r, a = 30) {
847
847
  };
848
848
  }
849
849
  function ut(t, e, n, r) {
850
- const a = H(t), o = H(e), s = H(n), u = o <= s ? o : s, i = o <= s ? s : o;
850
+ const a = b(t), s = b(e), o = b(n), u = s <= o ? s : o, i = s <= o ? o : s;
851
851
  if (r === "day") {
852
852
  const c = new Date(a);
853
853
  c.setHours(0, 0, 0, 0);
@@ -864,25 +864,25 @@ function Ne({
864
864
  onSelect: n,
865
865
  minDurationMinutes: r = 30,
866
866
  slotDurationMinutes: a = 30,
867
- enabled: o = !0
867
+ enabled: s = !0
868
868
  }) {
869
- const [s, u] = A(null), i = V(!1), c = S(
869
+ const [o, u] = A(null), i = V(!1), c = S(
870
870
  (d) => {
871
- o && (i.current = !0, u({
871
+ s && (i.current = !0, u({
872
872
  start: d,
873
873
  end: d,
874
874
  isSelecting: !0
875
875
  }));
876
876
  },
877
- [o]
877
+ [s]
878
878
  ), l = S(
879
879
  (d) => {
880
- o && i.current && u((p) => p ? {
880
+ s && i.current && u((p) => p ? {
881
881
  ...p,
882
882
  end: d
883
883
  } : null);
884
884
  },
885
- [o]
885
+ [s]
886
886
  ), f = S(() => {
887
887
  i.current && (i.current = !1, u((d) => {
888
888
  if (!d) return null;
@@ -903,17 +903,17 @@ function Ne({
903
903
  }, [e, r, a, n]), g = S(() => {
904
904
  i.current = !1, u(null);
905
905
  }, []), D = S(
906
- (d) => s ? ut(d, s.start, s.end, e) : !1,
907
- [s, e]
908
- ), T = S(() => s ? Y(
909
- s.start,
910
- s.end,
906
+ (d) => o ? ut(d, o.start, o.end, e) : !1,
907
+ [o, e]
908
+ ), T = S(() => o ? Y(
909
+ o.start,
910
+ o.end,
911
911
  e,
912
912
  r,
913
913
  a
914
- ) : null, [s, e, r, a]), h = G(
914
+ ) : null, [o, e, r, a]), h = G(
915
915
  () => ({
916
- isSelecting: s?.isSelecting ?? !1,
916
+ isSelecting: o?.isSelecting ?? !1,
917
917
  startSelection: c,
918
918
  updateSelection: l,
919
919
  endSelection: f,
@@ -923,7 +923,7 @@ function Ne({
923
923
  mode: e
924
924
  }),
925
925
  [
926
- s?.isSelecting,
926
+ o?.isSelecting,
927
927
  c,
928
928
  l,
929
929
  f,
@@ -978,21 +978,21 @@ export {
978
978
  Mt as a,
979
979
  _e as a$,
980
980
  le as a0,
981
- be as a1,
982
- bt as a2,
981
+ He as a1,
982
+ Ht as a2,
983
983
  Ct as a3,
984
984
  $t as a4,
985
985
  Ce as a5,
986
986
  Fe as a6,
987
987
  De as a7,
988
- He as a8,
988
+ be as a8,
989
989
  ee as a9,
990
990
  P as aA,
991
991
  ne as aB,
992
992
  Lt as aC,
993
993
  At as aD,
994
- oe as aE,
995
- se as aF,
994
+ se as aE,
995
+ oe as aF,
996
996
  ue as aG,
997
997
  zt as aH,
998
998
  ve as aI,
@@ -1002,10 +1002,10 @@ export {
1002
1002
  pe as aM,
1003
1003
  we as aN,
1004
1004
  y as aO,
1005
- b as aP,
1005
+ H as aP,
1006
1006
  w as aQ,
1007
1007
  B as aR,
1008
- Ht as aS,
1008
+ bt as aS,
1009
1009
  Ft as aT,
1010
1010
  kt as aU,
1011
1011
  vt as aV,
@@ -1066,4 +1066,4 @@ export {
1066
1066
  Bt as y,
1067
1067
  Pt as z
1068
1068
  };
1069
- //# sourceMappingURL=slot-selection-context-CZjfJAcp.js.map
1069
+ //# sourceMappingURL=slot-selection-context-CMaE5Bc5.js.map