@cocoar/vue-ui 2.6.0 → 2.8.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.
package/dist/index.js CHANGED
@@ -10,57 +10,81 @@ function le(e) {
10
10
  }
11
11
  function ue(e) {
12
12
  let t = le(e.count), n = le(e.itemSize), i = le(e.overscan ?? 5), a = A(0), o = A(0), s = r(() => {
13
- let e = t(), r = n(), i = typeof r == "function" ? r : () => r, a = Array(e + 1);
14
- a[0] = 0;
15
- for (let t = 0; t < e; t++) a[t + 1] = a[t] + i(t);
16
- return a;
17
- }), c = r(() => {
18
- let e = s.value;
19
- return e.length > 0 ? e[e.length - 1] : 0;
13
+ let e = n();
14
+ if (typeof e != "function") return null;
15
+ let r = t(), i = Array(r + 1);
16
+ i[0] = 0;
17
+ for (let t = 0; t < r; t++) i[t + 1] = i[t] + e(t);
18
+ return i;
20
19
  });
21
- function l(e) {
22
- let t = s.value;
23
- if (t.length <= 1) return 0;
24
- let n = 0, r = t.length - 1;
25
- for (; n < r;) {
26
- let i = n + r >>> 1;
27
- t[i] <= e ? n = i + 1 : r = i;
28
- }
29
- return Math.max(0, n - 1);
20
+ function c(e) {
21
+ let r = s.value;
22
+ if (r) return r[Math.max(0, Math.min(e, r.length - 1))] ?? 0;
23
+ let i = n();
24
+ return Math.max(0, Math.min(e, t())) * i;
30
25
  }
26
+ let l = r(() => {
27
+ let e = s.value;
28
+ return e ? e.length > 0 ? e[e.length - 1] : 0 : t() * n();
29
+ });
31
30
  function u(e) {
32
- let t = s.value;
33
- if (t.length <= 1) return 0;
34
- let n = 0, r = t.length - 1;
35
- for (; n < r;) {
36
- let i = n + r >>> 1;
37
- t[i] < e ? n = i + 1 : r = i;
38
- }
39
- return Math.max(0, n - 1);
31
+ let r = t();
32
+ if (r === 0) return 0;
33
+ let i = s.value;
34
+ if (!i) {
35
+ let t = n();
36
+ return t > 0 ? Math.max(0, Math.min(r - 1, Math.floor(e / t))) : 0;
37
+ }
38
+ if (i.length <= 1) return 0;
39
+ let a = 0, o = i.length - 1;
40
+ for (; a < o;) {
41
+ let t = a + o >>> 1;
42
+ i[t] <= e ? a = t + 1 : o = t;
43
+ }
44
+ return Math.max(0, a - 1);
45
+ }
46
+ function d(e) {
47
+ let r = t();
48
+ if (r === 0) return 0;
49
+ let i = s.value;
50
+ if (!i) {
51
+ let t = n();
52
+ return t > 0 ? Math.max(0, Math.min(r - 1, Math.ceil(e / t) - 1)) : 0;
53
+ }
54
+ if (i.length <= 1) return 0;
55
+ let a = 0, o = i.length - 1;
56
+ for (; a < o;) {
57
+ let t = a + o >>> 1;
58
+ i[t] < e ? a = t + 1 : o = t;
59
+ }
60
+ return Math.max(0, a - 1);
40
61
  }
41
- let d = r(() => {
62
+ let f = r(() => {
42
63
  let e = t();
43
64
  if (e === 0) return [];
44
- let n = Math.max(0, i() | 0), r = s.value, c = a.value, d = c + o.value, f = l(c), p = u(d), m = Math.max(0, f - n), h = Math.min(e - 1, p + n), g = [];
45
- for (let e = m; e <= h; e++) g.push({
46
- index: e,
47
- start: r[e],
48
- size: r[e + 1] - r[e]
49
- });
50
- return g;
65
+ let n = Math.max(0, i() | 0), r = a.value, s = r + o.value, l = u(r), f = d(s), p = Math.max(0, l - n), m = Math.min(e - 1, f + n), h = [];
66
+ for (let e = p; e <= m; e++) {
67
+ let t = c(e);
68
+ h.push({
69
+ index: e,
70
+ start: t,
71
+ size: c(e + 1) - t
72
+ });
73
+ }
74
+ return h;
51
75
  });
52
- function f(n, r = "auto") {
76
+ function p(n, r = "auto") {
53
77
  let i = e.scrollElement.value;
54
78
  if (!i) return;
55
79
  let a = t();
56
80
  if (a === 0) return;
57
- let o = Math.max(0, Math.min(a - 1, n | 0)), l = s.value, u = l[o], d = l[o + 1], f = i.clientHeight, p = i.scrollTop, m = p + f, h = p;
58
- r === "start" ? h = u : r === "end" ? h = d - f : r === "center" ? h = u - (f - (d - u)) / 2 : u < p ? h = u : d > m && (h = d - f);
59
- let g = Math.max(0, c.value - f);
60
- i.scrollTop = Math.max(0, Math.min(h, g));
81
+ let o = Math.max(0, Math.min(a - 1, n | 0)), s = c(o), u = c(o + 1), d = i.clientHeight, f = i.scrollTop, p = f + d, m = f;
82
+ r === "start" ? m = s : r === "end" ? m = u - d : r === "center" ? m = s - (d - (u - s)) / 2 : s < f ? m = s : u > p && (m = u - d);
83
+ let h = Math.max(0, l.value - d);
84
+ i.scrollTop = Math.max(0, Math.min(m, h));
61
85
  }
62
- let p = null;
63
- function m(e) {
86
+ let m = null;
87
+ function h(e) {
64
88
  o.value = e.clientHeight, a.value = e.scrollTop;
65
89
  let t = () => {
66
90
  a.value = e.scrollTop, o.value = e.clientHeight;
@@ -74,24 +98,24 @@ function ue(e) {
74
98
  let n = () => {
75
99
  o.value = e.clientHeight;
76
100
  };
77
- window.addEventListener("resize", n), p = () => {
101
+ window.addEventListener("resize", n), m = () => {
78
102
  e.removeEventListener("scroll", t), window.removeEventListener("resize", n);
79
103
  };
80
104
  return;
81
105
  }
82
- p = () => {
106
+ m = () => {
83
107
  e.removeEventListener("scroll", t), n?.disconnect();
84
108
  };
85
109
  }
86
110
  return G(e.scrollElement, (e) => {
87
- p?.(), p = null, e && m(e);
111
+ m?.(), m = null, e && h(e);
88
112
  }, { immediate: !0 }), C(() => {
89
- p?.(), p = null;
113
+ m?.(), m = null;
90
114
  }), {
91
- virtualRows: d,
92
- totalSize: c,
93
- scrollToIndex: f,
94
- offsetFor: (e) => s.value[Math.max(0, Math.min(e, s.value.length - 1))] ?? 0
115
+ virtualRows: f,
116
+ totalSize: l,
117
+ scrollToIndex: p,
118
+ offsetFor: (e) => c(e)
95
119
  };
96
120
  }
97
121
  //#endregion
@@ -7151,7 +7175,7 @@ var zc = /* @__PURE__ */ new WeakMap(), Bc = {
7151
7175
  setup(t, { expose: n, emit: c }) {
7152
7176
  let d = t, f = V(t, "modelValue"), p = c, m = U("hostRef"), h = U("listRef"), g = ue({
7153
7177
  count: () => d.virtual ? R.value.length : 0,
7154
- itemSize: (e) => {
7178
+ itemSize: () => (e) => {
7155
7179
  let t = R.value[e];
7156
7180
  return t && t.kind === "heading" ? d.groupHeadingHeight : d.itemHeight;
7157
7181
  },
@@ -9451,46 +9475,56 @@ var xd = /* @__PURE__ */ d({
9451
9475
  hidden: h.value !== e.id
9452
9476
  }, [_(e) ? (E(), i(N(() => e.contentSlot), { key: 0 })) : a("", !0)], 10, Dd))), 128))])], 2));
9453
9477
  }
9454
- }), [["__scopeId", "data-v-1c87f0d3"]]), kd = "application/x-coar-tree-node", Ad = Symbol("coar-tree-node-slot"), jd = Symbol("coar-tree-row-id"), Md = Symbol("coar-tree-rename"), Nd = [
9478
+ }), [["__scopeId", "data-v-1c87f0d3"]]), kd = {
9479
+ expand: "Expand",
9480
+ collapse: "Collapse",
9481
+ loading: "Loading children",
9482
+ retry: "Retry",
9483
+ loadingNode: (e) => `Loading ${e}…`,
9484
+ loadError: (e) => `Failed to load ${e}.`,
9485
+ pickedUp: (e) => `Picked up ${e}. Move to a row, then Ctrl+V to drop or Escape to cancel.`,
9486
+ moved: (e, t, n) => `Moved ${e} ${n === "inside" ? "into" : n} ${t}.`,
9487
+ moveBlocked: (e) => `Can't drop ${e} there.`,
9488
+ moveCancelled: "Move cancelled."
9489
+ }, Ad = "application/x-coar-tree-node", jd = Symbol("coar-tree-node-slot"), Md = Symbol("coar-tree-row-id"), Nd = Symbol("coar-tree-row-state"), Pd = Symbol("coar-tree-rename"), Fd = [
9455
9490
  "aria-expanded",
9456
9491
  "aria-selected",
9492
+ "aria-disabled",
9493
+ "aria-checked",
9457
9494
  "aria-level",
9458
9495
  "aria-posinset",
9459
9496
  "aria-setsize",
9497
+ "aria-busy",
9460
9498
  "tabindex",
9461
9499
  "draggable",
9462
9500
  "data-node-id"
9463
- ], Pd = {
9501
+ ], Id = {
9464
9502
  key: 0,
9465
9503
  class: "coar-tree-node__drop-line coar-tree-node__drop-line--top"
9466
- }, Fd = {
9504
+ }, Ld = {
9467
9505
  key: 1,
9468
9506
  class: "coar-tree-node__drop-line coar-tree-node__drop-line--bottom"
9469
- }, Id = ["aria-label"], Ld = {
9507
+ }, Rd = ["aria-label"], zd = {
9470
9508
  key: 3,
9471
9509
  class: "coar-tree-node__chevron-spacer",
9472
9510
  "aria-hidden": "true"
9473
- }, Rd = /* @__PURE__ */ Z(/* @__PURE__ */ d({
9511
+ }, Bd = "var(--coar-tree-icon-size, 12px)", Vd = /* @__PURE__ */ Z(/* @__PURE__ */ d({
9474
9512
  __name: "CoarTreeNode",
9475
9513
  props: {
9476
9514
  node: {},
9477
9515
  nodeId: {},
9478
9516
  depth: {},
9479
9517
  isExpandable: { type: Boolean },
9480
- isExpanded: { type: Boolean },
9481
- isSelected: { type: Boolean },
9482
- isFocused: { type: Boolean },
9483
- isRenaming: { type: Boolean },
9484
9518
  draggable: { type: Boolean },
9485
9519
  posInSet: {},
9486
- setSize: {},
9487
- dropIndicator: {},
9488
- fileDropActive: { type: Boolean }
9520
+ setSize: {}
9489
9521
  },
9490
9522
  emits: [
9491
9523
  "row-click",
9492
9524
  "row-dblclick",
9493
9525
  "row-context-menu",
9526
+ "row-check-toggle",
9527
+ "row-retry",
9494
9528
  "chevron-click",
9495
9529
  "row-dragstart",
9496
9530
  "row-dragend",
@@ -9500,84 +9534,192 @@ var xd = /* @__PURE__ */ d({
9500
9534
  ],
9501
9535
  setup(e, { emit: t }) {
9502
9536
  let n = e;
9503
- D(jd, n.nodeId);
9504
- let s = t, c = A(null), l = m(Ad);
9505
- if (!l) throw Error("CoarTreeNode must be rendered inside a CoarTree.");
9506
- let d = r(() => ({
9537
+ D(Md, n.nodeId);
9538
+ let c = m(Nd);
9539
+ if (!c) throw Error("CoarTreeNode must be rendered inside a CoarTree.");
9540
+ let l = r(() => c.expandedIds.value.has(n.nodeId)), u = r(() => c.selectedIds.value.has(n.nodeId)), d = r(() => c.checkedIds.value.has(n.nodeId)), f = r(() => c.indeterminateIds.value.has(n.nodeId)), p = r(() => c.checkboxMode.value), h = r(() => c.matchedIds.value.has(n.nodeId)), g = r(() => c.matchAncestorIds.value.has(n.nodeId)), _ = r(() => c.disabledIds.value.has(n.nodeId)), v = r(() => c.focusedId.value === n.nodeId), y = r(() => c.renamingId.value === n.nodeId), x = r(() => c.dropTargetId.value === n.nodeId ? c.dropPosition.value : null), C = r(() => c.fileDropTargetId.value === n.nodeId), w = r(() => c.loadingIds.value.has(n.nodeId)), T = r(() => c.erroredIds.value.has(n.nodeId)), O = r(() => w.value && !c.hideLoadingSpinner.value), k = r(() => T.value && !w.value && !c.hideLoadingSpinner.value), j = t, M = A(null), P = m(jd);
9541
+ if (!P) throw Error("CoarTreeNode must be rendered inside a CoarTree.");
9542
+ let F = r(() => ({
9507
9543
  node: n.node,
9508
9544
  depth: n.depth,
9509
- isExpanded: n.isExpanded,
9510
- isSelected: n.isSelected,
9511
- isFocused: n.isFocused,
9545
+ isExpanded: l.value,
9546
+ isSelected: u.value,
9547
+ isChecked: d.value,
9548
+ isIndeterminate: f.value,
9549
+ isFocused: v.value,
9512
9550
  isExpandable: n.isExpandable,
9513
- isRenaming: n.isRenaming
9551
+ isMatch: h.value,
9552
+ isMatchAncestor: g.value,
9553
+ isDisabled: _.value,
9554
+ isRenaming: y.value,
9555
+ isLoading: w.value,
9556
+ hasError: T.value
9514
9557
  }));
9515
- function f() {
9516
- return l(d.value);
9558
+ function I() {
9559
+ return P(F.value);
9517
9560
  }
9518
- function p(e) {
9519
- e.stopPropagation(), s("chevron-click", n.node);
9561
+ function L(e) {
9562
+ e.stopPropagation(), k.value ? j("row-retry", n.node) : j("chevron-click", n.node);
9520
9563
  }
9521
9564
  return (t, n) => (E(), o("div", {
9522
9565
  ref_key: "rowEl",
9523
- ref: c,
9566
+ ref: M,
9524
9567
  class: b(["coar-tree-node__row", {
9525
- "coar-tree-node__row--selected": e.isSelected,
9526
- "coar-tree-node__row--focused": e.isFocused,
9527
- "coar-tree-node__row--drop-inside": e.dropIndicator === "inside",
9528
- "coar-tree-node__row--file-drop": e.fileDropActive
9568
+ "coar-tree-node__row--selected": u.value,
9569
+ "coar-tree-node__row--focused": v.value,
9570
+ "coar-tree-node__row--disabled": _.value,
9571
+ "coar-tree-node__row--drop-inside": x.value === "inside",
9572
+ "coar-tree-node__row--file-drop": C.value
9529
9573
  }]),
9530
- style: S({ paddingLeft: `${e.depth * 14 + 8}px` }),
9574
+ style: S({ paddingLeft: `calc(var(--coar-tree-indent-base, 8px) + ${e.depth} * var(--coar-tree-indent, 14px))` }),
9531
9575
  role: "treeitem",
9532
- "aria-expanded": e.isExpandable ? e.isExpanded : void 0,
9533
- "aria-selected": e.isSelected,
9576
+ "aria-expanded": e.isExpandable ? l.value : void 0,
9577
+ "aria-selected": u.value,
9578
+ "aria-disabled": _.value ? "true" : void 0,
9579
+ "aria-checked": p.value ? f.value ? "mixed" : d.value : void 0,
9534
9580
  "aria-level": e.depth + 1,
9535
9581
  "aria-posinset": e.posInSet,
9536
9582
  "aria-setsize": e.setSize,
9537
- tabindex: e.isFocused ? 0 : -1,
9583
+ "aria-busy": w.value ? "true" : void 0,
9584
+ tabindex: v.value ? 0 : -1,
9538
9585
  draggable: e.draggable,
9539
9586
  "data-node-id": e.nodeId,
9540
- onClick: n[0] ||= (t) => s("row-click", e.node, t),
9541
- onDblclick: n[1] ||= (t) => s("row-dblclick", e.node, t),
9542
- onContextmenu: n[2] ||= (t) => s("row-context-menu", e.node, t),
9543
- onDragstart: n[3] ||= (t) => s("row-dragstart", e.node, t),
9544
- onDragend: n[4] ||= (t) => s("row-dragend", e.node),
9545
- onDragover: n[5] ||= (t) => c.value && s("row-dragover", e.node, c.value, t),
9546
- onDragleave: n[6] ||= (t) => s("row-dragleave", e.node, t),
9547
- onDrop: n[7] ||= (t) => c.value && s("row-drop", e.node, c.value, t)
9587
+ onClick: n[2] ||= (t) => j("row-click", e.node, t),
9588
+ onDblclick: n[3] ||= (t) => j("row-dblclick", e.node, t),
9589
+ onContextmenu: n[4] ||= (t) => j("row-context-menu", e.node, t),
9590
+ onDragstart: n[5] ||= (t) => j("row-dragstart", e.node, t),
9591
+ onDragend: n[6] ||= (t) => j("row-dragend", e.node),
9592
+ onDragover: n[7] ||= (t) => M.value && j("row-dragover", e.node, M.value, t),
9593
+ onDragleave: n[8] ||= (t) => j("row-dragleave", e.node, t),
9594
+ onDrop: n[9] ||= (t) => M.value && j("row-drop", e.node, M.value, t)
9548
9595
  }, [
9549
- e.dropIndicator === "before" ? (E(), o("span", Pd)) : a("", !0),
9550
- e.dropIndicator === "after" ? (E(), o("span", Fd)) : a("", !0),
9596
+ x.value === "before" ? (E(), o("span", Id)) : a("", !0),
9597
+ x.value === "after" ? (E(), o("span", Ld)) : a("", !0),
9551
9598
  e.isExpandable ? (E(), o("button", {
9552
9599
  key: 2,
9553
9600
  type: "button",
9554
- class: "coar-tree-node__chevron",
9601
+ class: b(["coar-tree-node__chevron", { "coar-tree-node__chevron--error": k.value }]),
9555
9602
  tabindex: "-1",
9556
- "aria-label": e.isExpanded ? "Collapse" : "Expand",
9557
- onClick: p
9558
- }, [u(Q, {
9559
- name: e.isExpanded ? "chevron-down" : "chevron-right",
9560
- size: "xs"
9561
- }, null, 8, ["name"])], 8, Id)) : (E(), o("span", Ld)),
9562
- (E(), i(N(f)))
9563
- ], 46, Nd));
9603
+ "aria-label": k.value ? z(c).labels.value.retry : l.value ? z(c).labels.value.collapse : z(c).labels.value.expand,
9604
+ onClick: L
9605
+ }, [O.value ? (E(), i(zo, {
9606
+ key: 0,
9607
+ size: "xs",
9608
+ label: z(c).labels.value.loading
9609
+ }, null, 8, ["label"])) : k.value ? (E(), i(Q, {
9610
+ key: 1,
9611
+ name: "rotate-ccw",
9612
+ size: Bd
9613
+ })) : (E(), i(Q, {
9614
+ key: 2,
9615
+ name: l.value ? "chevron-down" : "chevron-right",
9616
+ size: Bd
9617
+ }, null, 8, ["name"]))], 10, Rd)) : (E(), o("span", zd)),
9618
+ p.value ? (E(), o("span", {
9619
+ key: 4,
9620
+ class: b(["coar-tree-node__checkbox", {
9621
+ "coar-tree-node__checkbox--checked": d.value,
9622
+ "coar-tree-node__checkbox--indeterminate": f.value
9623
+ }]),
9624
+ "aria-hidden": "true",
9625
+ onClick: n[0] ||= te((t) => j("row-check-toggle", e.node), ["stop"]),
9626
+ onDblclick: n[1] ||= te(() => {}, ["stop"])
9627
+ }, [...n[10] ||= [s("svg", {
9628
+ class: "coar-tree-node__check",
9629
+ viewBox: "0 0 16 16",
9630
+ fill: "none",
9631
+ xmlns: "http://www.w3.org/2000/svg"
9632
+ }, [s("path", {
9633
+ d: "M13.5 4.5L6.5 11.5L3 8",
9634
+ stroke: "currentColor",
9635
+ "stroke-width": "2",
9636
+ "stroke-linecap": "round",
9637
+ "stroke-linejoin": "round"
9638
+ })], -1), s("svg", {
9639
+ class: "coar-tree-node__minus",
9640
+ viewBox: "0 0 16 16",
9641
+ fill: "none",
9642
+ xmlns: "http://www.w3.org/2000/svg"
9643
+ }, [s("path", {
9644
+ d: "M4 8H12",
9645
+ stroke: "currentColor",
9646
+ "stroke-width": "2",
9647
+ "stroke-linecap": "round"
9648
+ })], -1)]], 34)) : a("", !0),
9649
+ (E(), i(N(I)))
9650
+ ], 46, Fd));
9564
9651
  }
9565
- }), [["__scopeId", "data-v-bbca76fd"]]);
9652
+ }), [["__scopeId", "data-v-afb98c82"]]);
9566
9653
  //#endregion
9567
9654
  //#region src/components/tree/tree-dnd.ts
9568
- function zd(e, t, n) {
9655
+ function Hd(e, t, n) {
9569
9656
  let r = e.clientY - t.top, i = t.height > 0 ? r / t.height : 0;
9570
9657
  return n.expandable ? i < .25 ? "before" : i > .75 ? "after" : "inside" : i < .5 ? "before" : "after";
9571
9658
  }
9572
- function Bd(e) {
9659
+ function Ud(e) {
9573
9660
  return !!e && Array.from(e.types).includes("Files");
9574
9661
  }
9575
9662
  //#endregion
9663
+ //#region src/components/tree/internal/selection.ts
9664
+ function Wd(e, t, n) {
9665
+ let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = [], o = (e, s) => {
9666
+ for (let c of e) {
9667
+ let e = t(c);
9668
+ a.push(e), i.set(e, s);
9669
+ let l = n(c);
9670
+ Array.isArray(l) && l.length ? (r.set(e, l.map((e) => t(e))), o(l, e)) : r.set(e, []);
9671
+ }
9672
+ };
9673
+ return o(e, null), {
9674
+ children: r,
9675
+ parent: i,
9676
+ order: a
9677
+ };
9678
+ }
9679
+ function Gd(e, t, n, r) {
9680
+ let i = new Set(e), a = [t];
9681
+ for (; a.length;) {
9682
+ let e = a.pop();
9683
+ n ? i.add(e) : i.delete(e);
9684
+ let t = r.children.get(e);
9685
+ if (t) for (let e of t) a.push(e);
9686
+ }
9687
+ let o = r.parent.get(t) ?? null;
9688
+ for (; o !== null;) {
9689
+ let e = r.children.get(o) ?? [];
9690
+ e.length > 0 && e.every((e) => i.has(e)) ? i.add(o) : i.delete(o), o = r.parent.get(o) ?? null;
9691
+ }
9692
+ return i;
9693
+ }
9694
+ function Kd(e, t) {
9695
+ let n = new Set(e), r = /* @__PURE__ */ new Map(), i = !1;
9696
+ for (let e of t.order) {
9697
+ let a = t.parent.get(e) ?? null, o = a !== null && r.get(a) === !0 || n.has(e);
9698
+ r.set(e, o), o && !n.has(e) && (n.add(e), i = !0);
9699
+ }
9700
+ return i ? n : e;
9701
+ }
9702
+ function qd(e, t) {
9703
+ let n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map();
9704
+ for (let i = t.order.length - 1; i >= 0; i--) {
9705
+ let a = t.order[i], o = t.children.get(a) ?? [], s = !1;
9706
+ for (let e of o) r.get(e) && (s = !0);
9707
+ let c = e.has(a);
9708
+ !c && s && n.add(a), r.set(a, c || s);
9709
+ }
9710
+ return n;
9711
+ }
9712
+ //#endregion
9576
9713
  //#region src/components/tree/CoarTree.vue?vue&type=script&setup=true&lang.ts
9577
- var Vd = {
9578
- key: 1,
9579
- class: "coar-tree__empty"
9580
- }, Hd = /* @__PURE__ */ Z(/* @__PURE__ */ d({
9714
+ var Jd = {
9715
+ class: "coar-tree__sr-live",
9716
+ role: "status",
9717
+ "aria-live": "polite"
9718
+ }, Yd = [
9719
+ "aria-label",
9720
+ "aria-labelledby",
9721
+ "aria-multiselectable"
9722
+ ], Xd = ["aria-label"], Zd = /* @__PURE__ */ Z(/* @__PURE__ */ d({
9581
9723
  __name: "CoarTree",
9582
9724
  props: /* @__PURE__ */ _({
9583
9725
  builder: { default: void 0 },
@@ -9598,6 +9740,15 @@ var Vd = {
9598
9740
  type: Function,
9599
9741
  default: void 0
9600
9742
  },
9743
+ isDisabled: {
9744
+ type: Function,
9745
+ default: void 0
9746
+ },
9747
+ loadChildren: {
9748
+ type: Function,
9749
+ default: void 0
9750
+ },
9751
+ maxConcurrentLoads: { default: 0 },
9601
9752
  draggable: {
9602
9753
  type: [Boolean, Function],
9603
9754
  default: !1
@@ -9606,6 +9757,14 @@ var Vd = {
9606
9757
  type: Function,
9607
9758
  default: void 0
9608
9759
  },
9760
+ getDragImage: {
9761
+ type: Function,
9762
+ default: void 0
9763
+ },
9764
+ activateOnClick: {
9765
+ type: Boolean,
9766
+ default: !1
9767
+ },
9609
9768
  acceptsFiles: {
9610
9769
  type: Boolean,
9611
9770
  default: !1
@@ -9615,70 +9774,105 @@ var Vd = {
9615
9774
  type: [Boolean, Object],
9616
9775
  default: !1
9617
9776
  },
9777
+ selectionMode: { default: "single" },
9778
+ checkStrictly: {
9779
+ type: Boolean,
9780
+ default: !1
9781
+ },
9782
+ density: { default: "m" },
9783
+ ariaLabel: { default: void 0 },
9784
+ ariaLabelledby: { default: void 0 },
9785
+ labels: { default: void 0 },
9786
+ matchedIds: { default: void 0 },
9787
+ filter: {
9788
+ type: Boolean,
9789
+ default: !1
9790
+ },
9791
+ filterMode: { default: "strict" },
9618
9792
  renamable: {
9619
9793
  type: Boolean,
9620
9794
  default: !1
9795
+ },
9796
+ hideLoadingSpinner: {
9797
+ type: Boolean,
9798
+ default: !1
9621
9799
  }
9622
9800
  }, {
9623
9801
  expanded: { default: () => /* @__PURE__ */ new Set() },
9624
9802
  expandedModifiers: {},
9625
9803
  selected: { default: null },
9626
- selectedModifiers: {}
9804
+ selectedModifiers: {},
9805
+ selectedIds: { default: () => /* @__PURE__ */ new Set() },
9806
+ selectedIdsModifiers: {},
9807
+ checkedIds: { default: () => /* @__PURE__ */ new Set() },
9808
+ checkedIdsModifiers: {}
9627
9809
  }),
9628
9810
  emits: /* @__PURE__ */ _([
9629
9811
  "activate",
9812
+ "select",
9630
9813
  "context-menu",
9631
9814
  "files-drop",
9632
9815
  "node-move",
9633
9816
  "rename",
9634
- "rename-cancel"
9635
- ], ["update:expanded", "update:selected"]),
9817
+ "rename-cancel",
9818
+ "load-error"
9819
+ ], [
9820
+ "update:expanded",
9821
+ "update:selected",
9822
+ "update:selectedIds",
9823
+ "update:checkedIds"
9824
+ ]),
9636
9825
  setup(t, { expose: n, emit: c }) {
9637
- let l = t, d = V(t, "expanded"), f = V(t, "selected"), p = c, m = H();
9638
- D(Ad, (e) => m.default?.(e) ?? []);
9639
- let h = A(null), g = A(""), _ = 0;
9640
- function v() {
9641
- return h.value ? B.value.find((e) => O.value.getId(e.node) === h.value)?.node ?? null : null;
9826
+ let l = t, d = V(t, "expanded"), f = V(t, "selected"), p = V(t, "selectedIds"), m = V(t, "checkedIds"), h = c, g = H();
9827
+ D(jd, (e) => g.default?.(e) ?? []);
9828
+ let _ = A(null), v = A(""), x = 0;
9829
+ function T() {
9830
+ if (!_.value) return null;
9831
+ let e = be.value.get(_.value);
9832
+ return e === void 0 ? null : ye.value[e]?.node ?? null;
9642
9833
  }
9643
- function x() {
9644
- let e = v(), t = g.value.trim();
9645
- if (h.value = null, g.value = "", e) {
9834
+ function O() {
9835
+ let e = T(), t = v.value.trim();
9836
+ if (_.value = null, v.value = "", e) {
9646
9837
  if (!t) {
9647
- p("rename-cancel", e);
9838
+ h("rename-cancel", e), l.builder?.state.onRenameCancel?.(e);
9648
9839
  return;
9649
9840
  }
9650
- p("rename", {
9841
+ h("rename", {
9842
+ node: e,
9843
+ newName: t
9844
+ }), l.builder?.state.onRename?.({
9651
9845
  node: e,
9652
9846
  newName: t
9653
9847
  });
9654
9848
  }
9655
9849
  }
9656
- function T() {
9657
- let e = v();
9658
- h.value = null, g.value = "", e && p("rename-cancel", e);
9659
- }
9660
- D(Md, {
9661
- renamingId: h,
9662
- buffer: g,
9663
- commit: x,
9664
- cancel: T,
9850
+ function k() {
9851
+ let e = T();
9852
+ _.value = null, v.value = "", e && (h("rename-cancel", e), l.builder?.state.onRenameCancel?.(e));
9853
+ }
9854
+ D(Pd, {
9855
+ renamingId: _,
9856
+ buffer: v,
9857
+ commit: O,
9858
+ cancel: k,
9665
9859
  onFocus: () => {
9666
- _ = Date.now();
9860
+ x = Date.now();
9667
9861
  },
9668
9862
  onBlur: () => {
9669
- if (Date.now() - _ < 200) {
9670
- let e = h.value;
9863
+ if (Date.now() - x < 200) {
9864
+ let e = _.value;
9671
9865
  if (!e) return;
9672
9866
  y(() => {
9673
- let t = (ee.value ?? te.value)?.querySelector(`[data-rename-id="${CSS.escape(e)}"]`);
9867
+ let t = (Ee.value ?? De.value)?.querySelector(`[data-rename-id="${CSS.escape(e)}"]`);
9674
9868
  t?.focus(), t?.select();
9675
9869
  });
9676
9870
  return;
9677
9871
  }
9678
- x();
9872
+ O();
9679
9873
  }
9680
9874
  });
9681
- let O = r(() => {
9875
+ let N = r(() => {
9682
9876
  if (l.builder) {
9683
9877
  let e = l.builder.state;
9684
9878
  return {
@@ -9687,11 +9881,27 @@ var Vd = {
9687
9881
  getChildren: e.getChildren,
9688
9882
  getLabel: e.getLabel,
9689
9883
  isExpandable: e.isExpandable,
9884
+ isDisabled: e.isDisabled,
9885
+ loadChildren: e.loadChildren,
9886
+ maxConcurrentLoads: R(e.maxConcurrentLoads),
9690
9887
  draggable: R(e.draggable),
9691
9888
  canDrop: e.canDrop,
9889
+ getDragImage: e.getDragImage,
9890
+ activateOnClick: R(e.activateOnClick),
9692
9891
  acceptsFiles: R(e.acceptsFiles),
9693
9892
  autoExpandDelay: R(e.autoExpandDelay),
9694
- virtualize: R(e.virtualize)
9893
+ virtualize: R(e.virtualize),
9894
+ hideLoadingSpinner: R(e.hideLoadingSpinner),
9895
+ renamable: R(e.renamable),
9896
+ selectionMode: R(e.selectionMode),
9897
+ checkStrictly: R(e.checkStrictly),
9898
+ density: R(e.density),
9899
+ ariaLabel: R(e.ariaLabel),
9900
+ ariaLabelledby: R(e.ariaLabelledby),
9901
+ labels: R(e.labels),
9902
+ matchedIds: R(e.matchedIds),
9903
+ filter: R(e.filter),
9904
+ filterMode: R(e.filterMode)
9695
9905
  };
9696
9906
  }
9697
9907
  return {
@@ -9702,96 +9912,194 @@ var Vd = {
9702
9912
  getChildren: l.getChildren,
9703
9913
  getLabel: l.getLabel,
9704
9914
  isExpandable: l.isExpandable,
9915
+ isDisabled: l.isDisabled,
9916
+ loadChildren: l.loadChildren,
9917
+ maxConcurrentLoads: l.maxConcurrentLoads,
9705
9918
  draggable: l.draggable,
9706
9919
  canDrop: l.canDrop,
9920
+ getDragImage: l.getDragImage,
9921
+ activateOnClick: l.activateOnClick,
9707
9922
  acceptsFiles: l.acceptsFiles,
9708
9923
  autoExpandDelay: l.autoExpandDelay,
9709
- virtualize: l.virtualize
9924
+ virtualize: l.virtualize,
9925
+ hideLoadingSpinner: l.hideLoadingSpinner,
9926
+ renamable: l.renamable,
9927
+ selectionMode: l.selectionMode,
9928
+ checkStrictly: l.checkStrictly,
9929
+ density: l.density,
9930
+ ariaLabel: l.ariaLabel,
9931
+ ariaLabelledby: l.ariaLabelledby,
9932
+ labels: l.labels,
9933
+ matchedIds: l.matchedIds,
9934
+ filter: l.filter,
9935
+ filterMode: l.filterMode
9710
9936
  };
9711
- }), k = r({
9937
+ }), P = r(() => !!N.value.renamable), L = r(() => ({
9938
+ ...kd,
9939
+ ...N.value.labels ?? {}
9940
+ })), B = r({
9712
9941
  get: () => l.builder ? l.builder.state.expanded.value : d.value,
9713
9942
  set: (e) => {
9714
9943
  let t = l.builder;
9715
9944
  t ? t.state.expanded.value = e : d.value = e;
9716
9945
  }
9717
- }), N = r({
9946
+ }), W = r({
9718
9947
  get: () => l.builder ? l.builder.state.selected.value : f.value,
9719
9948
  set: (e) => {
9720
9949
  let t = l.builder;
9721
9950
  t ? t.state.selected.value = e : f.value = e;
9722
9951
  }
9952
+ }), K = r({
9953
+ get: () => l.builder ? l.builder.state.selectedIds.value : p.value,
9954
+ set: (e) => {
9955
+ let t = l.builder;
9956
+ t ? t.state.selectedIds.value = e : p.value = e;
9957
+ }
9958
+ }), J = r({
9959
+ get: () => l.builder ? l.builder.state.checkedIds.value : m.value,
9960
+ set: (e) => {
9961
+ let t = l.builder;
9962
+ t ? t.state.checkedIds.value = e : m.value = e;
9963
+ }
9964
+ }), ee = /* @__PURE__ */ new Set(), te = r(() => N.value.selectionMode ?? "single"), Y = r(() => te.value === "checkbox"), ne = r(() => te.value === "multiple" || te.value === "checkbox"), re = r(() => !!N.value.checkStrictly), ie = r(() => te.value === "single" ? W.value ? new Set([W.value]) : ee : K.value), ae = r(() => Y.value ? Wd(N.value.nodes, N.value.getId, _e) : null), oe = r(() => Y.value && !re.value && ae.value ? qd(J.value, ae.value) : ee), se = r(() => {
9965
+ if (!N.value.isDisabled) return ee;
9966
+ let e = /* @__PURE__ */ new Set();
9967
+ for (let t of ye.value) ve(t.node) && e.add(t.id);
9968
+ return e;
9969
+ }), ce = r(() => N.value.matchedIds ?? ee), X = r(() => ce.value.size ? qd(ce.value, Wd(N.value.nodes, N.value.getId, _e)) : ee), le = r(() => !!N.value.filter && ce.value.size > 0), de = r(() => N.value.filterMode === "lenient");
9970
+ function fe(e, t) {
9971
+ let n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = (a, o) => {
9972
+ let s = N.value.getId(a), c = e.has(s), l = !1, u = !1, d = _e(a);
9973
+ if (d && d.length) for (let e of d) {
9974
+ let t = i(e, o || c);
9975
+ t.matchedHere && (l = !0), t.kept && (u = !0);
9976
+ }
9977
+ let f = c || l || t && o;
9978
+ return f && n.add(s), f && u && r.add(s), {
9979
+ matchedHere: c || l,
9980
+ kept: f
9981
+ };
9982
+ };
9983
+ for (let e of N.value.nodes) i(e, !1);
9984
+ return {
9985
+ keep: n,
9986
+ expand: r
9987
+ };
9988
+ }
9989
+ let pe = r(() => le.value ? fe(ce.value, de.value) : null), me = r(() => pe.value?.keep ?? null);
9990
+ G([
9991
+ ce,
9992
+ le,
9993
+ de
9994
+ ], () => {
9995
+ let e = ce.value;
9996
+ if (!e.size) return;
9997
+ let t = new Set(B.value), n = !1, r = (e) => {
9998
+ t.has(e) || (t.add(e), n = !0);
9999
+ };
10000
+ if (le.value && pe.value) for (let e of pe.value.expand) r(e);
10001
+ else for (let t of e) for (let e of tt(t)) r(e);
10002
+ n && (B.value = t);
10003
+ }, { immediate: !0 }), G(ae, (e) => {
10004
+ if (!e || re.value) return;
10005
+ let t = Kd(J.value, e);
10006
+ t !== J.value && (J.value = t);
9723
10007
  });
9724
- function P(e) {
9725
- let t = O.value.isExpandable;
10008
+ function he(e) {
10009
+ let t = N.value.isExpandable;
9726
10010
  if (t) return t(e);
9727
- let n = O.value.getChildren;
10011
+ let n = N.value.getChildren;
9728
10012
  return n ? Array.isArray(n(e)) : !1;
9729
10013
  }
9730
- function I(e) {
9731
- let t = O.value.draggable;
10014
+ function ge(e) {
10015
+ if (ve(e)) return !1;
10016
+ let t = N.value.draggable;
9732
10017
  return typeof t == "function" ? t(e) : !!t;
9733
10018
  }
9734
- function L(e) {
9735
- return O.value.getChildren ? O.value.getChildren(e) : void 0;
10019
+ function _e(e) {
10020
+ return N.value.getChildren ? N.value.getChildren(e) : void 0;
10021
+ }
10022
+ function ve(e) {
10023
+ return N.value.isDisabled ? N.value.isDisabled(e) : !1;
9736
10024
  }
9737
- let B = r(() => {
9738
- let e = [], t = (n, r, i) => {
9739
- for (let a = 0; a < n.length; a++) {
9740
- let o = n[a];
10025
+ let ye = r(() => {
10026
+ let e = [], t = me.value, n = (r, i, a) => {
10027
+ let o = t ? r.filter((e) => t.has(N.value.getId(e))) : r;
10028
+ for (let t = 0; t < o.length; t++) {
10029
+ let r = o[t], s = N.value.getId(r), c = he(r);
9741
10030
  if (e.push({
9742
- node: o,
9743
- depth: r,
9744
- parentId: i,
9745
- posInSet: a + 1,
9746
- setSize: n.length
9747
- }), !P(o) || !k.value.has(O.value.getId(o))) continue;
9748
- let s = L(o);
9749
- s && s.length && t(s, r + 1, O.value.getId(o));
10031
+ node: r,
10032
+ id: s,
10033
+ depth: i,
10034
+ parentId: a,
10035
+ posInSet: t + 1,
10036
+ setSize: o.length,
10037
+ isExpandable: c,
10038
+ draggable: ge(r)
10039
+ }), !c || !B.value.has(s)) continue;
10040
+ let l = _e(r);
10041
+ l && l.length && n(l, i + 1, s);
9750
10042
  }
9751
10043
  };
9752
- return t(O.value.nodes, 0, null), e;
9753
- }), W = A(null);
9754
- G(B, (e) => {
10044
+ return n(N.value.nodes, 0, null), e;
10045
+ }), be = r(() => {
10046
+ let e = /* @__PURE__ */ new Map(), t = ye.value;
10047
+ for (let n = 0; n < t.length; n++) {
10048
+ let r = t[n].id;
10049
+ e.has(r) || e.set(r, n);
10050
+ }
10051
+ return e;
10052
+ }), Ce = A(null);
10053
+ G(ye, (e, t) => {
9755
10054
  if (!e.length) {
9756
- W.value = null;
10055
+ Ce.value = null;
9757
10056
  return;
9758
10057
  }
9759
- let t = new Set(e.map((e) => O.value.getId(e.node)));
9760
- if (!(W.value && t.has(W.value))) {
9761
- if (N.value && t.has(N.value)) {
9762
- W.value = N.value;
10058
+ let n = be.value;
10059
+ if (!(Ce.value && n.has(Ce.value))) {
10060
+ if (Ce.value && t) {
10061
+ let r = t.findIndex((e) => e.id === Ce.value);
10062
+ if (r >= 0) {
10063
+ let i = t[r].parentId, a = e[Math.min(r, e.length - 1)];
10064
+ if (a && !ve(a.node)) {
10065
+ Ce.value = a.id;
10066
+ return;
10067
+ }
10068
+ if (i && n.has(i)) {
10069
+ Ce.value = i;
10070
+ return;
10071
+ }
10072
+ }
10073
+ }
10074
+ if (W.value && n.has(W.value)) {
10075
+ Ce.value = W.value;
9763
10076
  return;
9764
10077
  }
9765
- W.value = O.value.getId(e[0].node);
10078
+ Ce.value = e[0].id;
9766
10079
  }
9767
10080
  }, {
9768
10081
  immediate: !0,
9769
10082
  flush: "post"
9770
10083
  });
9771
- let K = r(() => {
9772
- let e = O.value.virtualize;
10084
+ let we = r(() => {
10085
+ let e = N.value.virtualize;
9773
10086
  if (!e) return null;
9774
10087
  let t = e === !0 ? {} : e;
9775
10088
  return {
9776
10089
  itemSize: t.itemSize ?? 28,
9777
10090
  overscan: t.overscan ?? 5
9778
10091
  };
9779
- }), J = r(() => K.value !== null), ee = U("scrollEl"), te = U("rootEl"), Y = ue({
9780
- count: () => J.value ? B.value.length : 0,
9781
- itemSize: (e) => {
9782
- let t = K.value;
9783
- if (!t) return 0;
9784
- let n = t.itemSize;
9785
- return typeof n == "function" ? n(e) : n;
9786
- },
9787
- overscan: () => K.value?.overscan ?? 5,
9788
- scrollElement: ee
9789
- }), ne = r(() => {
9790
- if (!J.value) return B.value.map((e) => ({
10092
+ }), Te = r(() => we.value !== null), Ee = U("scrollEl"), De = U("rootEl"), Oe = ue({
10093
+ count: () => Te.value ? ye.value.length : 0,
10094
+ itemSize: () => we.value?.itemSize ?? 28,
10095
+ overscan: () => we.value?.overscan ?? 5,
10096
+ scrollElement: Ee
10097
+ }), ke = r(() => {
10098
+ if (!Te.value) return ye.value.map((e) => ({
9791
10099
  row: e,
9792
10100
  virtual: null
9793
10101
  }));
9794
- let e = Y.virtualRows.value, t = B.value, n = [];
10102
+ let e = Oe.virtualRows.value, t = ye.value, n = [];
9795
10103
  for (let r of e) {
9796
10104
  let e = t[r.index];
9797
10105
  e && n.push({
@@ -9804,415 +10112,719 @@ var Vd = {
9804
10112
  }
9805
10113
  return n;
9806
10114
  });
9807
- function re(e) {
9808
- let t = ee.value ?? te.value;
10115
+ function Ae(e) {
10116
+ let t = Ee.value ?? De.value;
9809
10117
  return t ? t.querySelector(`[data-node-id="${CSS.escape(e)}"]`) : null;
9810
10118
  }
9811
- function ie(e) {
9812
- W.value = e, e && y(() => {
9813
- if (J.value) {
9814
- let t = B.value.findIndex((t) => O.value.getId(t.node) === e);
9815
- t >= 0 && Y.scrollToIndex(t, "auto"), y(() => re(e)?.focus());
9816
- } else re(e)?.focus();
10119
+ function je(e) {
10120
+ Ce.value = e, e && y(() => {
10121
+ if (Te.value) {
10122
+ let t = be.value.get(e) ?? -1;
10123
+ t >= 0 && Oe.scrollToIndex(t, "auto"), y(() => Ae(e)?.focus());
10124
+ } else Ae(e)?.focus();
9817
10125
  });
9818
10126
  }
9819
- let ae = (e) => k.value.has(e), oe = (e) => N.value === e, se = (e) => W.value === e;
9820
- w(() => {
9821
- l.builder?._setFocusNodeImpl((e) => {
9822
- let t = Z(e);
9823
- t && ce(t);
10127
+ let Me = A(/* @__PURE__ */ new Set()), Ne = A(/* @__PURE__ */ new Set()), Pe = A(/* @__PURE__ */ new Set());
10128
+ function Fe(e) {
10129
+ return Array.isArray(_e(e));
10130
+ }
10131
+ function Ie(e, t) {
10132
+ if (!e.value.has(t)) return;
10133
+ let n = new Set(e.value);
10134
+ n.delete(t), e.value = n;
10135
+ }
10136
+ function Z(e) {
10137
+ h("load-error", e), l.builder?.state.onLoadError?.(e);
10138
+ }
10139
+ let Q = /* @__PURE__ */ new Map(), Le = [], Re = r(() => {
10140
+ let e = N.value.maxConcurrentLoads;
10141
+ return e && e > 0 ? e : Infinity;
10142
+ });
10143
+ function ze() {
10144
+ for (; Le.length && Q.size < Re.value;) {
10145
+ let e = Le.shift();
10146
+ Ve(e.node, e.force);
10147
+ }
10148
+ }
10149
+ function Be(e, t, n) {
10150
+ if (Q.delete(e), !n.signal.aborted && (Ie(Me, e), t !== void 0)) {
10151
+ Ne.value = new Set(Ne.value).add(e);
10152
+ let n = zt(e);
10153
+ n && (Z({
10154
+ node: n,
10155
+ error: t
10156
+ }), Wt(L.value.loadError(Gt(n))));
10157
+ }
10158
+ ze();
10159
+ }
10160
+ function Ve(e, t = !1) {
10161
+ let n = N.value.loadChildren;
10162
+ if (!n) return;
10163
+ let r = N.value.getId(e);
10164
+ if (Me.value.has(r) || Q.has(r) || !t && Fe(e) || Le.some((e) => N.value.getId(e.node) === r)) return;
10165
+ if (Q.size >= Re.value) {
10166
+ Le.push({
10167
+ node: e,
10168
+ force: t
10169
+ });
10170
+ return;
10171
+ }
10172
+ let i = new AbortController();
10173
+ Q.set(r, i), Me.value = new Set(Me.value).add(r), Pe.value = new Set(Pe.value).add(r), Ie(Ne, r), Promise.resolve().then(() => n(e, { signal: i.signal })).then(() => Be(r, void 0, i), (e) => Be(r, e ?? /* @__PURE__ */ Error("loadChildren rejected"), i));
10174
+ }
10175
+ function He(e) {
10176
+ let t = Q.get(e);
10177
+ t && (t.abort(), Q.delete(e)), Ie(Me, e);
10178
+ let n = Le.findIndex((t) => N.value.getId(t.node) === e);
10179
+ n >= 0 && Le.splice(n, 1), ze();
10180
+ }
10181
+ function Ue(e) {
10182
+ let t = zt(e);
10183
+ t && Ve(t, !0);
10184
+ }
10185
+ function We() {
10186
+ if (Pe.value.size) {
10187
+ let e = !1, t = new Set(Pe.value);
10188
+ for (let n of t) B.value.has(n) || (t.delete(n), e = !0);
10189
+ e && (Pe.value = t);
10190
+ }
10191
+ for (let e of [Me, Ne]) {
10192
+ if (!e.value.size) continue;
10193
+ let t = !1, n = new Set(e.value);
10194
+ for (let e of n) zt(e) || (n.delete(e), t = !0);
10195
+ t && (e.value = n);
10196
+ }
10197
+ }
10198
+ G([B, () => N.value.nodes], () => {
10199
+ if (Q.size) for (let e of [...Q.keys()]) (!B.value.has(e) || !zt(e)) && He(e);
10200
+ if (N.value.loadChildren) {
10201
+ We();
10202
+ for (let e of ye.value) e.isExpandable && B.value.has(e.id) && !Me.value.has(e.id) && !Pe.value.has(e.id) && !Fe(e.node) && Ve(e.node);
10203
+ }
10204
+ }, { immediate: !0 }), C(() => {
10205
+ for (let e of Q.values()) e.abort();
10206
+ Q.clear(), Le.length = 0;
10207
+ }), w(() => {
10208
+ l.builder?._bindImpls({
10209
+ focusNode: (e) => qe(zt(e), "api"),
10210
+ selectNode: (e) => qe(zt(e), "api"),
10211
+ reloadChildren: Ue,
10212
+ startRename: rn,
10213
+ expandAll: $e,
10214
+ collapseAll: et,
10215
+ expandTo: nt,
10216
+ revealNode: rt,
10217
+ getNode: (e) => zt(e),
10218
+ moveNode: Kt
9824
10219
  });
9825
10220
  }), C(() => {
9826
- l.builder?._setFocusNodeImpl(null);
10221
+ l.builder?._bindImpls(null);
9827
10222
  });
9828
- function ce(e) {
9829
- if (!e) return;
9830
- let t = O.value.getId(e);
9831
- N.value = t, ie(t);
10223
+ let Ge = A(null);
10224
+ function Ke(e, t, n) {
10225
+ let r = {
10226
+ node: e ? zt(e) : null,
10227
+ ids: [...t],
10228
+ via: n
10229
+ };
10230
+ h("select", r), l.builder?.state.onSelect?.(r);
10231
+ }
10232
+ function qe(e, t = "user") {
10233
+ if (!e || ve(e)) return;
10234
+ let n = N.value.getId(e);
10235
+ te.value === "single" ? W.value = n : K.value = new Set([n]), Ge.value = n, je(n), Ke(n, [n], t);
10236
+ }
10237
+ function Je(e, t) {
10238
+ if (ve(e)) return;
10239
+ let n = N.value.getId(e);
10240
+ if (!ne.value) {
10241
+ qe(e);
10242
+ return;
10243
+ }
10244
+ let r = t.ctrlKey || t.metaKey, i = be.value, a = ye.value;
10245
+ if (t.shiftKey && Ge.value && i.has(Ge.value)) {
10246
+ let e = i.get(Ge.value), t = i.get(n) ?? e, [o, s] = e <= t ? [e, t] : [t, e], c = new Set(r ? K.value : []);
10247
+ for (let e = o; e <= s; e++) c.add(a[e].id);
10248
+ K.value = c, je(n), Ke(n, c, "user");
10249
+ return;
10250
+ }
10251
+ if (r) {
10252
+ let e = new Set(K.value);
10253
+ e.has(n) ? e.delete(n) : e.add(n), K.value = e, Ge.value = n, je(n), Ke(n, e, "user");
10254
+ return;
10255
+ }
10256
+ let o = new Set([n]);
10257
+ K.value = o, Ge.value = n, je(n), Ke(n, o, "user");
9832
10258
  }
9833
- function X(e) {
9834
- if (!P(e)) return;
9835
- let t = O.value.getId(e), n = new Set(k.value);
9836
- n.has(t) ? n.delete(t) : n.add(t), k.value = n;
10259
+ function Ye(e) {
10260
+ let t = new Set(K.value);
10261
+ Ce.value && t.add(Ce.value), t.add(e), K.value = t, Ke(e, t, "user");
9837
10262
  }
9838
- function le(e) {
9839
- if (!P(e)) return;
9840
- let t = O.value.getId(e);
9841
- if (k.value.has(t)) return;
9842
- let n = new Set(k.value);
9843
- n.add(t), k.value = n;
10263
+ function Xe(e, t) {
10264
+ if (!Y.value || ve(e)) return;
10265
+ let n = N.value.getId(e), r = t ?? !J.value.has(n);
10266
+ if (re.value) {
10267
+ let e = new Set(J.value);
10268
+ r ? e.add(n) : e.delete(n), J.value = e;
10269
+ return;
10270
+ }
10271
+ let i = ae.value;
10272
+ i && (J.value = Gd(J.value, n, r, i));
10273
+ }
10274
+ function Ze(e) {
10275
+ if (!he(e)) return;
10276
+ let t = N.value.getId(e), n = new Set(B.value);
10277
+ n.has(t) ? n.delete(t) : n.add(t), B.value = n;
10278
+ }
10279
+ function Qe(e) {
10280
+ if (!he(e)) return;
10281
+ let t = N.value.getId(e);
10282
+ if (B.value.has(t)) return;
10283
+ let n = new Set(B.value);
10284
+ n.add(t), B.value = n;
10285
+ }
10286
+ function $e() {
10287
+ let e = new Set(B.value), t = (n) => {
10288
+ for (let r of n) {
10289
+ he(r) && e.add(N.value.getId(r));
10290
+ let n = _e(r);
10291
+ n && n.length && t(n);
10292
+ }
10293
+ };
10294
+ t(N.value.nodes), B.value = e;
10295
+ }
10296
+ function et() {
10297
+ B.value = /* @__PURE__ */ new Set();
10298
+ }
10299
+ function tt(e) {
10300
+ let t = [], n = (r, i) => {
10301
+ for (let a of r) {
10302
+ let r = N.value.getId(a);
10303
+ if (r === e) return t.push(...i), !0;
10304
+ let o = _e(a);
10305
+ if (o && o.length && n(o, [...i, r])) return !0;
10306
+ }
10307
+ return !1;
10308
+ };
10309
+ return n(N.value.nodes, []), t;
9844
10310
  }
9845
- function de(e, t) {
9846
- t.button === 0 && ce(e);
10311
+ function nt(e) {
10312
+ let t = tt(e);
10313
+ if (!t.length) return;
10314
+ let n = new Set(B.value);
10315
+ for (let e of t) n.add(e);
10316
+ B.value = n;
10317
+ }
10318
+ function rt(e) {
10319
+ nt(e), y(() => {
10320
+ if (Te.value) {
10321
+ let t = be.value.get(e) ?? -1;
10322
+ t >= 0 && Oe.scrollToIndex(t, "auto");
10323
+ } else Ae(e)?.scrollIntoView({ block: "nearest" });
10324
+ });
9847
10325
  }
9848
- function fe(e) {
9849
- me(e);
10326
+ function it(e, t) {
10327
+ t.button === 0 && (Je(e, t), N.value.activateOnClick && !t.ctrlKey && !t.metaKey && !t.shiftKey && lt(e));
9850
10328
  }
9851
- function pe(e) {
9852
- X(e);
10329
+ function at(e) {
10330
+ Xe(e);
9853
10331
  }
9854
- function me(e) {
9855
- p("activate", e), l.builder?.state.onActivate?.(e);
10332
+ function ot(e) {
10333
+ Ue(N.value.getId(e));
10334
+ }
10335
+ function st(e) {
10336
+ lt(e);
10337
+ }
10338
+ function ct(e) {
10339
+ Ze(e);
9856
10340
  }
9857
- let he = bd(), ge = F(null), _e = r(() => {
10341
+ function lt(e) {
10342
+ ve(e) || (h("activate", e), l.builder?.state.onActivate?.(e));
10343
+ }
10344
+ let ut = bd(), dt = F(null), ft = r(() => {
9858
10345
  let e = l.builder?.state;
9859
- if (!e || !ge.value) return [];
9860
- switch (ge.value.kind) {
9861
- case "folder": return e.folderMenu ? e.folderMenu(ge.value.node) : [];
9862
- case "leaf": return e.leafMenu ? e.leafMenu(ge.value.node) : [];
10346
+ if (!e || !dt.value) return [];
10347
+ switch (dt.value.kind) {
10348
+ case "folder": return e.folderMenu ? e.folderMenu(dt.value.node) : [];
10349
+ case "leaf": return e.leafMenu ? e.leafMenu(dt.value.node) : [];
9863
10350
  case "viewport": return e.viewportMenu ? e.viewportMenu() : [];
9864
10351
  }
9865
10352
  return [];
9866
10353
  });
9867
- function ve(e, t) {
9868
- p("context-menu", e, t);
10354
+ function pt(e, t) {
10355
+ h("context-menu", e, t);
9869
10356
  let n = l.builder?.state;
9870
10357
  if (n) {
9871
10358
  if (e) {
9872
- let r = P(e), i = r ? n.onFolderContextMenu : n.onLeafContextMenu;
10359
+ let r = he(e), i = r ? n.onFolderContextMenu : n.onLeafContextMenu;
9873
10360
  if (i) {
9874
10361
  t.preventDefault(), i(e, t);
9875
10362
  return;
9876
10363
  }
9877
- (r ? n.folderMenu : n.leafMenu) && (ge.value = r ? {
10364
+ (r ? n.folderMenu : n.leafMenu) && (dt.value = r ? {
9878
10365
  kind: "folder",
9879
10366
  node: e
9880
10367
  } : {
9881
10368
  kind: "leaf",
9882
10369
  node: e
9883
- }, he.open(t));
10370
+ }, ut.open(t));
9884
10371
  return;
9885
10372
  }
9886
10373
  if (n.onViewportContextMenu) {
9887
10374
  t.preventDefault(), n.onViewportContextMenu(t);
9888
10375
  return;
9889
10376
  }
9890
- n.viewportMenu && (ge.value = { kind: "viewport" }, he.open(t));
10377
+ n.viewportMenu && (dt.value = { kind: "viewport" }, ut.open(t));
9891
10378
  }
9892
10379
  }
9893
- function ye(e, t) {
9894
- ve(e, t);
10380
+ function mt(e, t) {
10381
+ pt(e, t);
9895
10382
  }
9896
- function be(e) {
9897
- e.target.closest(".coar-tree-node__row") || ve(null, e);
10383
+ function ht(e) {
10384
+ e.target.closest(".coar-tree-node__row") || pt(null, e);
9898
10385
  }
9899
- function xe(e) {
9900
- e !== "divider" && (he.close(), e.onClick());
10386
+ function gt(e) {
10387
+ e !== "divider" && (ut.close(), e.onClick());
9901
10388
  }
9902
- let Se = A(""), Ce = null;
9903
- function we(e) {
9904
- Se.value += e.toLowerCase(), Ce && window.clearTimeout(Ce), Ce = window.setTimeout(() => {
9905
- Se.value = "";
10389
+ let _t = A(""), vt = null;
10390
+ function yt(e) {
10391
+ _t.value += e.toLowerCase(), vt && window.clearTimeout(vt), vt = window.setTimeout(() => {
10392
+ _t.value = "";
9906
10393
  }, 500);
9907
10394
  }
9908
- function Te() {
9909
- let e = O.value.getLabel;
9910
- if (!e || !Se.value) return null;
9911
- let t = B.value, n = W.value ? t.findIndex((e) => O.value.getId(e.node) === W.value) : -1;
10395
+ function bt() {
10396
+ let e = N.value.getLabel;
10397
+ if (!e || !_t.value) return null;
10398
+ let t = ye.value, n = Ce.value ? be.value.get(Ce.value) ?? -1 : -1;
9912
10399
  for (let r = 1; r <= t.length; r++) {
9913
10400
  let i = t[(n + r) % t.length].node;
9914
- if (e(i).toLowerCase().startsWith(Se.value)) return i;
10401
+ if (!ve(i) && e(i).toLowerCase().startsWith(_t.value)) return i;
9915
10402
  }
9916
10403
  return null;
9917
10404
  }
9918
- function Ee(e) {
9919
- let t = B.value;
10405
+ function xt(e, t) {
10406
+ let n = ye.value;
10407
+ for (let r = e + t; r >= 0 && r < n.length; r += t) if (!ve(n[r].node)) return r;
10408
+ return e;
10409
+ }
10410
+ function St(e) {
10411
+ let t = ye.value;
10412
+ for (let n = e === 1 ? 0 : t.length - 1; n >= 0 && n < t.length; n += e) if (!ve(t[n].node)) return n;
10413
+ return -1;
10414
+ }
10415
+ function Ct() {
10416
+ let e = De.value;
10417
+ return !!e && typeof getComputedStyle == "function" && getComputedStyle(e).direction === "rtl";
10418
+ }
10419
+ function wt() {
10420
+ let e = Ee.value, t = (typeof we.value?.itemSize == "number" ? we.value.itemSize : 28) || 28;
10421
+ return e && e.clientHeight ? Math.max(1, Math.floor(e.clientHeight / t)) : 10;
10422
+ }
10423
+ function Tt(e) {
10424
+ if (e.isExpandable && !B.value.has(e.id)) Qe(e.node);
10425
+ else {
10426
+ let t = _e(e.node);
10427
+ t && t.length && je(N.value.getId(t[0]));
10428
+ }
10429
+ }
10430
+ function Et(e) {
10431
+ e.isExpandable && B.value.has(e.id) ? Ze(e.node) : e.parentId && je(e.parentId);
10432
+ }
10433
+ function Dt(e) {
10434
+ let t = ye.value;
9920
10435
  if (!t.length) return;
9921
- let n = W.value ? t.findIndex((e) => O.value.getId(e.node) === W.value) : -1, r = n >= 0 ? t[n] : null;
9922
- if (e.key === "F2" && l.renamable && r && !h.value) {
10436
+ let n = Ce.value ? be.value.get(Ce.value) ?? -1 : -1, r = n >= 0 ? t[n] : null;
10437
+ if (e.key === "F2" && P.value && r && !_.value) {
9923
10438
  let t = e.target;
9924
10439
  if (t && t.tagName !== "INPUT" && t.tagName !== "TEXTAREA") {
9925
- e.preventDefault(), Je(O.value.getId(r.node));
10440
+ e.preventDefault(), rn(r.id);
9926
10441
  return;
9927
10442
  }
9928
10443
  }
10444
+ if ((e.ctrlKey || e.metaKey) && (e.key === "a" || e.key === "A") && ne.value) {
10445
+ e.preventDefault();
10446
+ let n = new Set(t.filter((e) => !ve(e.node)).map((e) => e.id));
10447
+ K.value = n, Ke(Ce.value, n, "user");
10448
+ return;
10449
+ }
10450
+ if ((e.ctrlKey || e.metaKey) && (e.key === "x" || e.key === "X") && r && ge(r.node)) {
10451
+ e.preventDefault(), Ht.value = r.id, Wt(L.value.pickedUp(Gt(r.node)));
10452
+ return;
10453
+ }
10454
+ if ((e.ctrlKey || e.metaKey) && (e.key === "v" || e.key === "V") && Ht.value && r) {
10455
+ e.preventDefault();
10456
+ let t = zt(Ht.value), n = t ? Gt(t) : "item", i = r.isExpandable ? "inside" : "after";
10457
+ Wt(Kt(Ht.value, r.id, i) ? L.value.moved(n, Gt(r.node), i) : L.value.moveBlocked(n)), Ht.value = null;
10458
+ return;
10459
+ }
10460
+ if (e.key === "Escape" && Ht.value) {
10461
+ e.preventDefault(), Ht.value = null, Wt(L.value.moveCancelled);
10462
+ return;
10463
+ }
9929
10464
  switch (e.key) {
9930
10465
  case "ArrowDown": {
9931
10466
  e.preventDefault();
9932
- let r = t[Math.min(t.length - 1, n + 1)] ?? t[0];
9933
- ie(O.value.getId(r.node));
10467
+ let r = t[xt(n, 1)] ?? t[n] ?? t[0];
10468
+ e.shiftKey && ne.value && Ye(r.id), je(r.id);
9934
10469
  return;
9935
10470
  }
9936
10471
  case "ArrowUp": {
9937
10472
  e.preventDefault();
9938
- let r = t[Math.max(0, n - 1)] ?? t[0];
9939
- ie(O.value.getId(r.node));
10473
+ let r = t[xt(n < 0 ? t.length : n, -1)] ?? t[n] ?? t[0];
10474
+ e.shiftKey && ne.value && Ye(r.id), je(r.id);
9940
10475
  return;
9941
10476
  }
9942
10477
  case "ArrowRight":
9943
10478
  if (!r) return;
9944
- if (e.preventDefault(), P(r.node) && !k.value.has(O.value.getId(r.node))) le(r.node);
9945
- else {
9946
- let e = L(r.node);
9947
- e && e.length && ie(O.value.getId(e[0]));
9948
- }
10479
+ e.preventDefault(), (Ct() ? Et : Tt)(r);
9949
10480
  return;
9950
10481
  case "ArrowLeft":
9951
10482
  if (!r) return;
9952
- e.preventDefault(), P(r.node) && k.value.has(O.value.getId(r.node)) ? X(r.node) : r.parentId && ie(r.parentId);
10483
+ e.preventDefault(), (Ct() ? Tt : Et)(r);
9953
10484
  return;
9954
- case "Home":
9955
- e.preventDefault(), ie(O.value.getId(t[0].node));
10485
+ case "PageDown": {
10486
+ e.preventDefault();
10487
+ let r = Math.min(t.length - 1, (n < 0 ? 0 : n) + wt());
10488
+ ve(t[r].node) && (r = xt(r, -1)), r >= 0 && t[r] && je(t[r].id);
9956
10489
  return;
9957
- case "End":
9958
- e.preventDefault(), ie(O.value.getId(t[t.length - 1].node));
10490
+ }
10491
+ case "PageUp": {
10492
+ e.preventDefault();
10493
+ let r = Math.max(0, (n < 0 ? 0 : n) - wt());
10494
+ ve(t[r].node) && (r = xt(r, 1)), r >= 0 && t[r] && je(t[r].id);
10495
+ return;
10496
+ }
10497
+ case "*":
10498
+ if (e.preventDefault(), r) {
10499
+ let e = new Set(B.value);
10500
+ for (let n of t) n.parentId === r.parentId && n.isExpandable && e.add(n.id);
10501
+ B.value = e;
10502
+ }
10503
+ return;
10504
+ case "Home": {
10505
+ e.preventDefault();
10506
+ let n = St(1);
10507
+ n >= 0 && je(t[n].id);
9959
10508
  return;
10509
+ }
10510
+ case "End": {
10511
+ e.preventDefault();
10512
+ let n = St(-1);
10513
+ n >= 0 && je(t[n].id);
10514
+ return;
10515
+ }
9960
10516
  case "Enter":
9961
- r && (e.preventDefault(), ce(r.node), me(r.node));
10517
+ r && (e.preventDefault(), qe(r.node), lt(r.node));
9962
10518
  return;
9963
10519
  case " ":
9964
- r && (e.preventDefault(), P(r.node) ? X(r.node) : ce(r.node));
10520
+ r && (e.preventDefault(), Y.value ? Xe(r.node) : he(r.node) ? Ze(r.node) : qe(r.node));
9965
10521
  return;
9966
10522
  default: if (e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey) {
9967
- we(e.key);
9968
- let t = Te();
9969
- t && ie(O.value.getId(t));
10523
+ yt(e.key);
10524
+ let t = bt();
10525
+ t && je(N.value.getId(t));
9970
10526
  }
9971
10527
  }
9972
10528
  }
9973
- let De = A(null), Oe = A(null), ke = A(null), Ae = A(null), je = A(0), Me = null, Ne = null;
9974
- function Pe() {
9975
- Me && window.clearTimeout(Me), Me = null, Ne = null;
9976
- }
9977
- function Fe(e) {
9978
- let t = O.value.getId(e);
9979
- Ne !== t && (Pe(), Ne = t, Me = window.setTimeout(() => {
9980
- Ne === t && le(e);
9981
- }, O.value.autoExpandDelay));
9982
- }
9983
- function Ie(e, t) {
9984
- if (O.value.getId(e) === t) return !0;
9985
- let n = L(e);
9986
- if (!n) return !1;
9987
- for (let e of n) if (Ie(e, t)) return !0;
10529
+ let Ot = A(null), kt = F(null), At = A(null), jt = A(null), Mt = A(null), Nt = A(0);
10530
+ D(Nd, {
10531
+ selectedIds: ie,
10532
+ checkedIds: J,
10533
+ indeterminateIds: oe,
10534
+ checkboxMode: Y,
10535
+ matchedIds: ce,
10536
+ matchAncestorIds: X,
10537
+ disabledIds: se,
10538
+ focusedId: Ce,
10539
+ expandedIds: B,
10540
+ renamingId: _,
10541
+ dropTargetId: At,
10542
+ dropPosition: jt,
10543
+ fileDropTargetId: Mt,
10544
+ loadingIds: Me,
10545
+ erroredIds: Ne,
10546
+ hideLoadingSpinner: r(() => !!N.value.hideLoadingSpinner),
10547
+ labels: L
10548
+ });
10549
+ let Pt = null, Ft = null;
10550
+ function It() {
10551
+ Pt && window.clearTimeout(Pt), Pt = null, Ft = null;
10552
+ }
10553
+ function Lt(e) {
10554
+ let t = N.value.getId(e);
10555
+ Ft !== t && (It(), Ft = t, Pt = window.setTimeout(() => {
10556
+ Ft === t && Qe(e);
10557
+ }, N.value.autoExpandDelay));
10558
+ }
10559
+ function Rt(e, t) {
10560
+ let n = be.value, r = ye.value, i = e;
10561
+ for (; i !== null;) {
10562
+ if (i === t) return !0;
10563
+ let e = n.get(i);
10564
+ if (e === void 0) return !1;
10565
+ i = r[e].parentId;
10566
+ }
9988
10567
  return !1;
9989
10568
  }
9990
- function Z(e, t = O.value.nodes) {
10569
+ function zt(e, t = N.value.nodes) {
9991
10570
  for (let n of t) {
9992
- if (O.value.getId(n) === e) return n;
9993
- let t = L(n);
10571
+ if (N.value.getId(n) === e) return n;
10572
+ let t = _e(n);
9994
10573
  if (t) {
9995
- let n = Z(e, t);
10574
+ let n = zt(e, t);
9996
10575
  if (n) return n;
9997
10576
  }
9998
10577
  }
9999
10578
  return null;
10000
10579
  }
10001
- function Q() {
10002
- De.value = null, Oe.value = null, ke.value = null, Ae.value = null, je.value = 0, Pe();
10580
+ function Bt() {
10581
+ Ot.value = null, kt.value = null, At.value = null, jt.value = null, Mt.value = null, Nt.value = 0, It();
10003
10582
  }
10004
- function Le(e) {
10005
- p("node-move", e), l.builder?.state.onNodeMove?.(e);
10583
+ function Vt(e) {
10584
+ h("node-move", e), l.builder?.state.onNodeMove?.(e);
10006
10585
  }
10007
- function Re(e) {
10008
- p("files-drop", e), l.builder?.state.onFilesDrop?.(e);
10586
+ let Ht = A(null), Ut = A("");
10587
+ function Wt(e) {
10588
+ Ut.value = "", y(() => {
10589
+ Ut.value = e;
10590
+ });
10591
+ }
10592
+ function Gt(e) {
10593
+ return N.value.getLabel ? N.value.getLabel(e) : N.value.getId(e);
10594
+ }
10595
+ function Kt(e, t, n) {
10596
+ let r = zt(e);
10597
+ if (!r || t !== null && (e === t || Rt(t, e))) return !1;
10598
+ let i = t === null ? null : zt(t);
10599
+ return t !== null && !i || N.value.canDrop && !N.value.canDrop(r, i, n) ? !1 : (Vt({
10600
+ source: r,
10601
+ target: i,
10602
+ position: n
10603
+ }), !0);
10009
10604
  }
10010
- function ze(e, t) {
10011
- if (!I(e)) {
10605
+ function qt(e) {
10606
+ h("files-drop", e), l.builder?.state.onFilesDrop?.(e);
10607
+ }
10608
+ function Jt(e, t) {
10609
+ if (!ge(e)) {
10012
10610
  t.preventDefault();
10013
10611
  return;
10014
10612
  }
10015
- De.value = O.value.getId(e), t.dataTransfer?.setData(kd, O.value.getId(e)), t.dataTransfer?.setData("text/plain", O.value.getLabel?.(e) ?? O.value.getId(e)), t.dataTransfer && (t.dataTransfer.effectAllowed = "move");
10613
+ let n = N.value.getId(e);
10614
+ Ot.value = n, kt.value = e, t.dataTransfer?.setData(Ad, n), t.dataTransfer?.setData("text/plain", N.value.getLabel?.(e) ?? n), t.dataTransfer && (t.dataTransfer.effectAllowed = "move");
10615
+ let r = N.value.getDragImage?.(e);
10616
+ r instanceof HTMLElement ? xe(t, r) : typeof r == "string" && Se(t, r), Wt(L.value.pickedUp(Gt(e)));
10016
10617
  }
10017
- function Be() {
10018
- Q();
10618
+ function Yt() {
10619
+ Bt();
10019
10620
  }
10020
- function Ve(e, t, n) {
10621
+ function Xt(e, t, n) {
10021
10622
  let r = n.dataTransfer;
10022
10623
  if (!r) return;
10023
- if (Bd(r)) {
10024
- O.value.acceptsFiles && P(e) && (n.preventDefault(), r.dropEffect = "copy", Ae.value = O.value.getId(e), Oe.value = null, ke.value = null, Fe(e));
10624
+ if (Ud(r)) {
10625
+ N.value.acceptsFiles && he(e) && (n.preventDefault(), r.dropEffect = "copy", Mt.value = N.value.getId(e), At.value = null, jt.value = null, Lt(e));
10025
10626
  return;
10026
10627
  }
10027
- if (!r.types.includes("application/x-coar-tree-node") || !De.value || De.value === O.value.getId(e)) return;
10028
- let i = Z(De.value);
10029
- if (!i || Ie(i, O.value.getId(e))) return;
10030
- let a = zd(n, t.getBoundingClientRect(), { expandable: P(e) });
10031
- O.value.canDrop && !O.value.canDrop(i, e, a) || (n.preventDefault(), r.dropEffect = "move", Oe.value = O.value.getId(e), ke.value = a, Ae.value = null, a === "inside" ? Fe(e) : Pe());
10628
+ if (!r.types.includes("application/x-coar-tree-node") || !Ot.value || Ot.value === N.value.getId(e) || Rt(N.value.getId(e), Ot.value)) return;
10629
+ let i = Hd(n, t.getBoundingClientRect(), { expandable: he(e) }), a = kt.value;
10630
+ N.value.canDrop && a && !N.value.canDrop(a, e, i) || (n.preventDefault(), r.dropEffect = "move", At.value = N.value.getId(e), jt.value = i, Mt.value = null, i === "inside" ? Lt(e) : It());
10032
10631
  }
10033
- function He(e, t) {
10034
- let n = t.relatedTarget, r = `[data-node-id="${CSS.escape(O.value.getId(e))}"]`;
10035
- n && t.currentTarget.closest(r)?.contains(n) || (Oe.value === O.value.getId(e) && (Oe.value = null, ke.value = null), Ae.value === O.value.getId(e) && (Ae.value = null), Pe());
10632
+ function Zt(e, t) {
10633
+ let n = t.relatedTarget, r = `[data-node-id="${CSS.escape(N.value.getId(e))}"]`;
10634
+ n && t.currentTarget.closest(r)?.contains(n) || (At.value === N.value.getId(e) && (At.value = null, jt.value = null), Mt.value === N.value.getId(e) && (Mt.value = null), It());
10036
10635
  }
10037
- function Ue(e, t, n) {
10636
+ function Qt(e, t, n) {
10038
10637
  let r = n.dataTransfer;
10039
10638
  if (r) {
10040
- if (Bd(r)) {
10041
- if (!O.value.acceptsFiles || !P(e) || !r.files.length) return;
10042
- n.preventDefault(), n.stopPropagation(), Re({
10639
+ if (Ud(r)) {
10640
+ if (!N.value.acceptsFiles || !he(e) || !r.files.length) return;
10641
+ n.preventDefault(), n.stopPropagation(), qt({
10043
10642
  files: r.files,
10044
10643
  target: e
10045
- }), Q();
10644
+ }), Bt();
10046
10645
  return;
10047
10646
  }
10048
- if (De.value && Oe.value === O.value.getId(e) && ke.value) {
10049
- let t = Z(De.value);
10050
- t && (n.preventDefault(), n.stopPropagation(), Le({
10647
+ if (Ot.value && At.value === N.value.getId(e) && jt.value) {
10648
+ let t = zt(Ot.value);
10649
+ t && !Rt(N.value.getId(e), Ot.value) && (n.preventDefault(), n.stopPropagation(), Vt({
10051
10650
  source: t,
10052
10651
  target: e,
10053
- position: ke.value
10054
- }));
10652
+ position: jt.value
10653
+ }), Wt(L.value.moved(Gt(t), Gt(e), jt.value)));
10055
10654
  }
10056
- Q();
10655
+ Bt();
10057
10656
  }
10058
10657
  }
10059
- function We(e) {
10060
- !Bd(e.dataTransfer) || !O.value.acceptsFiles || (e.preventDefault(), je.value++);
10658
+ function $t(e) {
10659
+ !Ud(e.dataTransfer) || !N.value.acceptsFiles || (e.preventDefault(), Nt.value++);
10061
10660
  }
10062
- function Ge(e) {
10661
+ function en(e) {
10063
10662
  let t = e.dataTransfer;
10064
10663
  if (t) {
10065
- if (Bd(t) && O.value.acceptsFiles) {
10664
+ if (Ud(t) && N.value.acceptsFiles) {
10066
10665
  e.preventDefault(), t.dropEffect = "copy";
10067
10666
  return;
10068
10667
  }
10069
- t.types.includes("application/x-coar-tree-node") && De.value && (e.preventDefault(), t.dropEffect = "move");
10668
+ t.types.includes("application/x-coar-tree-node") && Ot.value && (e.preventDefault(), t.dropEffect = "move");
10070
10669
  }
10071
10670
  }
10072
- function Ke(e) {
10073
- Bd(e.dataTransfer) && (je.value = Math.max(0, je.value - 1));
10671
+ function tn(e) {
10672
+ Ud(e.dataTransfer) && (Nt.value = Math.max(0, Nt.value - 1));
10074
10673
  }
10075
- function qe(e) {
10674
+ function nn(e) {
10076
10675
  let t = e.dataTransfer;
10077
10676
  if (t) {
10078
- if (Bd(t) && O.value.acceptsFiles && t.files.length) {
10079
- e.preventDefault(), Re({
10677
+ if (Ud(t) && N.value.acceptsFiles && t.files.length) {
10678
+ e.preventDefault(), qt({
10080
10679
  files: t.files,
10081
10680
  target: null
10082
- }), Q();
10681
+ }), Bt();
10083
10682
  return;
10084
10683
  }
10085
- if (t.types.includes("application/x-coar-tree-node") && De.value) {
10086
- let t = Z(De.value);
10087
- t && (e.preventDefault(), Le({
10684
+ if (t.types.includes("application/x-coar-tree-node") && Ot.value) {
10685
+ let t = zt(Ot.value);
10686
+ t && (e.preventDefault(), Vt({
10088
10687
  source: t,
10089
10688
  target: null,
10090
10689
  position: "inside"
10091
- })), Q();
10690
+ })), Bt();
10092
10691
  }
10093
10692
  }
10094
10693
  }
10095
10694
  C(() => {
10096
- Ce && window.clearTimeout(Ce), Pe();
10695
+ vt && window.clearTimeout(vt), It();
10097
10696
  });
10098
- function Je(e) {
10099
- if (!l.renamable) return;
10100
- let t = B.value.find((t) => O.value.getId(t.node) === e);
10101
- if (!t) return;
10102
- let n = O.value.getLabel ? O.value.getLabel(t.node) : "";
10697
+ function rn(e) {
10698
+ if (!P.value) return;
10699
+ let t = be.value.get(e), n = t === void 0 ? void 0 : ye.value[t];
10700
+ if (!n) return;
10701
+ let r = N.value.getLabel ? N.value.getLabel(n.node) : "";
10103
10702
  requestAnimationFrame(() => {
10104
- h.value = e, g.value = n;
10703
+ _.value = e, v.value = r;
10105
10704
  });
10106
10705
  }
10107
10706
  return n({
10108
10707
  focusNode(e) {
10109
- ie(e);
10708
+ je(e);
10110
10709
  },
10111
- startRename: Je
10710
+ selectNode(e) {
10711
+ qe(zt(e), "api");
10712
+ },
10713
+ reloadChildren: Ue,
10714
+ startRename: rn,
10715
+ expandAll: $e,
10716
+ collapseAll: et,
10717
+ expandTo: nt,
10718
+ revealNode: rt,
10719
+ getNode: (e) => zt(e),
10720
+ moveNode: Kt
10112
10721
  }), (n, r) => (E(), o("div", {
10113
10722
  ref_key: "rootEl",
10114
- ref: te,
10115
- class: b(["coar-tree", {
10116
- "coar-tree--file-drop": je.value > 0 && !Ae.value,
10117
- "coar-tree--virtual": J.value
10118
- }]),
10723
+ ref: De,
10724
+ class: b(["coar-tree", [`coar-tree--density-${N.value.density ?? "m"}`, {
10725
+ "coar-tree--file-drop": Nt.value > 0 && !Mt.value,
10726
+ "coar-tree--virtual": Te.value
10727
+ }]]),
10119
10728
  tabindex: "-1",
10120
- onKeydown: Ee,
10121
- onContextmenu: be,
10122
- onDragenter: We,
10123
- onDragover: Ge,
10124
- onDragleave: Ke,
10125
- onDrop: qe
10126
- }, [O.value.nodes.length ? (E(), o("div", {
10127
- key: 0,
10128
- ref_key: "scrollEl",
10129
- ref: ee,
10130
- class: b(["coar-tree__scroll", { "coar-tree__scroll--virtual": J.value }])
10131
- }, [s("div", {
10132
- class: "coar-tree__inner",
10133
- role: "tree",
10134
- style: S(J.value ? {
10135
- height: `${z(Y).totalSize.value}px`,
10136
- position: "relative"
10137
- } : void 0)
10138
- }, [(E(!0), o(e, null, j(ne.value, (e) => (E(), i(Rd, {
10139
- key: O.value.getId(e.row.node),
10140
- node: e.row.node,
10141
- "node-id": O.value.getId(e.row.node),
10142
- depth: e.row.depth,
10143
- "is-expandable": P(e.row.node),
10144
- "is-expanded": ae(O.value.getId(e.row.node)),
10145
- "is-selected": oe(O.value.getId(e.row.node)),
10146
- "is-focused": se(O.value.getId(e.row.node)),
10147
- "is-renaming": h.value === O.value.getId(e.row.node),
10148
- draggable: I(e.row.node),
10149
- "pos-in-set": e.row.posInSet,
10150
- "set-size": e.row.setSize,
10151
- "drop-indicator": Oe.value === O.value.getId(e.row.node) ? ke.value : null,
10152
- "file-drop-active": Ae.value === O.value.getId(e.row.node),
10153
- style: S(e.virtual ? {
10154
- position: "absolute",
10155
- top: `${e.virtual.start}px`,
10156
- left: 0,
10157
- right: 0,
10158
- height: `${e.virtual.size}px`
10159
- } : void 0),
10160
- onRowClick: de,
10161
- onRowDblclick: fe,
10162
- onRowContextMenu: ye,
10163
- onChevronClick: pe,
10164
- onRowDragstart: ze,
10165
- onRowDragend: Be,
10166
- onRowDragover: Ve,
10167
- onRowDragleave: He,
10168
- onRowDrop: Ue
10169
- }, null, 8, [
10170
- "node",
10171
- "node-id",
10172
- "depth",
10173
- "is-expandable",
10174
- "is-expanded",
10175
- "is-selected",
10176
- "is-focused",
10177
- "is-renaming",
10178
- "draggable",
10179
- "pos-in-set",
10180
- "set-size",
10181
- "drop-indicator",
10182
- "file-drop-active",
10183
- "style"
10184
- ]))), 128))], 4)], 2)) : (E(), o("div", Vd, [M(n.$slots, "empty", {}, void 0, !0)])), t.builder ? (E(), i(yd, {
10185
- key: 2,
10186
- menu: z(he)
10187
- }, {
10188
- default: q(() => [u(Uu, null, {
10189
- default: q(() => [(E(!0), o(e, null, j(_e.value, (t, n) => (E(), o(e, { key: n }, [t === "divider" ? (E(), i(rd, { key: 0 })) : (E(), i($u, {
10190
- key: 1,
10191
- label: t.label,
10192
- icon: t.icon,
10193
- disabled: t.disabled,
10194
- class: b({ "coar-tree__menu-item--danger": t.danger }),
10195
- onClicked: (e) => xe(t)
10196
- }, null, 8, [
10197
- "label",
10198
- "icon",
10199
- "disabled",
10200
- "class",
10201
- "onClicked"
10202
- ]))], 64))), 128))]),
10729
+ onKeydown: Dt,
10730
+ onContextmenu: ht,
10731
+ onDragenter: $t,
10732
+ onDragover: en,
10733
+ onDragleave: tn,
10734
+ onDrop: nn
10735
+ }, [
10736
+ s("div", Jd, I(Ut.value), 1),
10737
+ N.value.nodes.length ? (E(), o("div", {
10738
+ key: 0,
10739
+ ref_key: "scrollEl",
10740
+ ref: Ee,
10741
+ class: b(["coar-tree__scroll", { "coar-tree__scroll--virtual": Te.value }])
10742
+ }, [s("div", {
10743
+ class: "coar-tree__inner",
10744
+ role: "tree",
10745
+ "aria-label": N.value.ariaLabel,
10746
+ "aria-labelledby": N.value.ariaLabelledby,
10747
+ "aria-multiselectable": ne.value ? "true" : void 0,
10748
+ style: S(Te.value ? {
10749
+ height: `${z(Oe).totalSize.value}px`,
10750
+ position: "relative"
10751
+ } : void 0)
10752
+ }, [(E(!0), o(e, null, j(ke.value, (e) => (E(), i(Vd, {
10753
+ key: e.row.id,
10754
+ node: e.row.node,
10755
+ "node-id": e.row.id,
10756
+ depth: e.row.depth,
10757
+ "is-expandable": e.row.isExpandable,
10758
+ draggable: e.row.draggable,
10759
+ "pos-in-set": e.row.posInSet,
10760
+ "set-size": e.row.setSize,
10761
+ style: S(e.virtual ? {
10762
+ position: "absolute",
10763
+ top: `${e.virtual.start}px`,
10764
+ left: 0,
10765
+ right: 0,
10766
+ height: `${e.virtual.size}px`
10767
+ } : void 0),
10768
+ onRowClick: it,
10769
+ onRowDblclick: st,
10770
+ onRowContextMenu: mt,
10771
+ onRowCheckToggle: at,
10772
+ onRowRetry: ot,
10773
+ onChevronClick: ct,
10774
+ onRowDragstart: Jt,
10775
+ onRowDragend: Yt,
10776
+ onRowDragover: Xt,
10777
+ onRowDragleave: Zt,
10778
+ onRowDrop: Qt
10779
+ }, null, 8, [
10780
+ "node",
10781
+ "node-id",
10782
+ "depth",
10783
+ "is-expandable",
10784
+ "draggable",
10785
+ "pos-in-set",
10786
+ "set-size",
10787
+ "style"
10788
+ ]))), 128))], 12, Yd)], 2)) : (E(), o("div", {
10789
+ key: 1,
10790
+ class: "coar-tree__empty",
10791
+ tabindex: "0",
10792
+ role: "status",
10793
+ "aria-label": N.value.ariaLabel
10794
+ }, [M(n.$slots, "empty", {}, void 0, !0)], 8, Xd)),
10795
+ t.builder ? (E(), i(yd, {
10796
+ key: 2,
10797
+ menu: z(ut)
10798
+ }, {
10799
+ default: q(() => [u(Uu, null, {
10800
+ default: q(() => [(E(!0), o(e, null, j(ft.value, (t, n) => (E(), o(e, { key: n }, [t === "divider" ? (E(), i(rd, { key: 0 })) : (E(), i($u, {
10801
+ key: 1,
10802
+ label: t.label,
10803
+ icon: t.icon,
10804
+ disabled: t.disabled,
10805
+ class: b({ "coar-tree__menu-item--danger": t.danger }),
10806
+ onClicked: (e) => gt(t)
10807
+ }, null, 8, [
10808
+ "label",
10809
+ "icon",
10810
+ "disabled",
10811
+ "class",
10812
+ "onClicked"
10813
+ ]))], 64))), 128))]),
10814
+ _: 1
10815
+ })]),
10203
10816
  _: 1
10204
- })]),
10205
- _: 1
10206
- }, 8, ["menu"])) : a("", !0)], 34));
10817
+ }, 8, ["menu"])) : a("", !0)
10818
+ ], 34));
10207
10819
  }
10208
- }), [["__scopeId", "data-v-7e544629"]]), Ud = ["data-rename-id"], Wd = {
10820
+ }), [["__scopeId", "data-v-6b30f72b"]]), Qd = ["data-rename-id"], $d = {
10209
10821
  key: 1,
10210
10822
  class: "coar-tree-node-label__text"
10211
- }, Gd = /* @__PURE__ */ Z(/* @__PURE__ */ d({
10823
+ }, ef = /* @__PURE__ */ Z(/* @__PURE__ */ d({
10212
10824
  __name: "CoarTreeNodeLabel",
10213
10825
  props: { label: {} },
10214
10826
  setup(e) {
10215
- let t = m(jd, null), n = m(Md, null), i = r(() => n != null && t != null && n.renamingId.value === t), a = U("inputEl");
10827
+ let t = m(Md, null), n = m(Pd, null), i = r(() => n != null && t != null && n.renamingId.value === t), a = U("inputEl");
10216
10828
  return n && t && G(i, async (e) => {
10217
10829
  e && (await y(), a.value?.focus(), a.value?.select());
10218
10830
  }), (r, s) => z(n) && i.value ? J((E(), o("input", {
@@ -10231,18 +10843,38 @@ var Vd = {
10231
10843
  ],
10232
10844
  onFocus: s[6] ||= (e) => z(n).onFocus(),
10233
10845
  onBlur: s[7] ||= (e) => z(n).onBlur()
10234
- }, null, 40, Ud)), [[W, z(n).buffer.value]]) : (E(), o("span", Wd, I(e.label), 1));
10846
+ }, null, 40, Qd)), [[W, z(n).buffer.value]]) : (E(), o("span", $d, I(e.label), 1));
10235
10847
  }
10236
- }), [["__scopeId", "data-v-78b33972"]]), Kd = class e {
10848
+ }), [["__scopeId", "data-v-78b33972"]]), tf = class e {
10237
10849
  state;
10238
10850
  api;
10239
- _focusNodeImpl = null;
10851
+ _impls = null;
10852
+ _warnUnmounted(e) {
10853
+ typeof console < "u" && console.warn(`[TreeBuilder.api.${e}] called before <CoarTree> mounted. The call was a no-op; move it into onMounted / a user-triggered handler.`);
10854
+ }
10240
10855
  constructor(e) {
10241
- this.state = e, this.api = {
10242
- focusNode: (e) => {
10243
- this._focusNodeImpl ? this._focusNodeImpl(e) : typeof console < "u" && console.warn("[TreeBuilder.api.focusNode] called before <CoarTree> mounted. The call was a no-op; move it into onMounted / a user-triggered handler.");
10244
- },
10856
+ this.state = e;
10857
+ let t = (e) => (t) => {
10858
+ let n = this._impls;
10859
+ n ? n[e](t) : this._warnUnmounted(e);
10860
+ }, n = (e) => () => {
10861
+ let t = this._impls;
10862
+ t ? t[e]() : this._warnUnmounted(e);
10863
+ };
10864
+ this.api = {
10865
+ focusNode: t("focusNode"),
10866
+ selectNode: t("selectNode"),
10867
+ reloadChildren: t("reloadChildren"),
10868
+ startRename: t("startRename"),
10869
+ expandTo: t("expandTo"),
10870
+ revealNode: t("revealNode"),
10871
+ expandAll: n("expandAll"),
10872
+ collapseAll: n("collapseAll"),
10873
+ getNode: (e) => this._impls?.getNode(e) ?? null,
10874
+ moveNode: (e, t, n) => this._impls ? this._impls.moveNode(e, t, n) : (this._warnUnmounted("moveNode"), !1),
10245
10875
  selectedId: e.selected,
10876
+ selectedIds: e.selectedIds,
10877
+ checkedIds: e.checkedIds,
10246
10878
  expandedIds: e.expanded
10247
10879
  };
10248
10880
  }
@@ -10255,16 +10887,38 @@ var Vd = {
10255
10887
  getChildren: void 0,
10256
10888
  getLabel: void 0,
10257
10889
  isExpandable: void 0,
10890
+ isDisabled: void 0,
10258
10891
  draggable: !1,
10259
10892
  canDrop: void 0,
10893
+ getDragImage: void 0,
10894
+ activateOnClick: !1,
10260
10895
  acceptsFiles: !1,
10261
10896
  autoExpandDelay: 700,
10262
10897
  virtualize: !1,
10898
+ hideLoadingSpinner: !1,
10899
+ renamable: !1,
10900
+ onRename: void 0,
10901
+ onRenameCancel: void 0,
10902
+ selectionMode: "single",
10903
+ checkStrictly: !1,
10904
+ density: "m",
10905
+ ariaLabel: void 0,
10906
+ ariaLabelledby: void 0,
10907
+ labels: void 0,
10908
+ matchedIds: void 0,
10909
+ filter: !1,
10910
+ filterMode: "strict",
10263
10911
  expanded: A(/* @__PURE__ */ new Set()),
10264
10912
  selected: A(null),
10913
+ selectedIds: A(/* @__PURE__ */ new Set()),
10914
+ checkedIds: A(/* @__PURE__ */ new Set()),
10265
10915
  onActivate: void 0,
10916
+ onSelect: void 0,
10266
10917
  onNodeMove: void 0,
10267
10918
  onFilesDrop: void 0,
10919
+ loadChildren: void 0,
10920
+ maxConcurrentLoads: 0,
10921
+ onLoadError: void 0,
10268
10922
  folderMenu: void 0,
10269
10923
  leafMenu: void 0,
10270
10924
  viewportMenu: void 0,
@@ -10288,12 +10942,27 @@ var Vd = {
10288
10942
  isExpandable(e) {
10289
10943
  return this.state.isExpandable = e, this;
10290
10944
  }
10945
+ isDisabled(e) {
10946
+ return this.state.isDisabled = e, this;
10947
+ }
10948
+ loadChildren(e) {
10949
+ return this.state.loadChildren = e, this;
10950
+ }
10951
+ maxConcurrentLoads(e) {
10952
+ return this.state.maxConcurrentLoads = e, this;
10953
+ }
10291
10954
  draggable(e) {
10292
10955
  return this.state.draggable = e, this;
10293
10956
  }
10294
10957
  canDrop(e) {
10295
10958
  return this.state.canDrop = e, this;
10296
10959
  }
10960
+ getDragImage(e) {
10961
+ return this.state.getDragImage = e, this;
10962
+ }
10963
+ activateOnClick(e) {
10964
+ return this.state.activateOnClick = e, this;
10965
+ }
10297
10966
  acceptsFiles(e) {
10298
10967
  return this.state.acceptsFiles = e, this;
10299
10968
  }
@@ -10303,6 +10972,39 @@ var Vd = {
10303
10972
  virtualize(e) {
10304
10973
  return this.state.virtualize = e, this;
10305
10974
  }
10975
+ hideLoadingSpinner(e) {
10976
+ return this.state.hideLoadingSpinner = e, this;
10977
+ }
10978
+ renamable(e) {
10979
+ return this.state.renamable = e, this;
10980
+ }
10981
+ selectionMode(e) {
10982
+ return this.state.selectionMode = e, this;
10983
+ }
10984
+ checkStrictly(e) {
10985
+ return this.state.checkStrictly = e, this;
10986
+ }
10987
+ density(e) {
10988
+ return this.state.density = e, this;
10989
+ }
10990
+ ariaLabel(e) {
10991
+ return this.state.ariaLabel = e, this;
10992
+ }
10993
+ ariaLabelledby(e) {
10994
+ return this.state.ariaLabelledby = e, this;
10995
+ }
10996
+ labels(e) {
10997
+ return this.state.labels = e, this;
10998
+ }
10999
+ matchedIds(e) {
11000
+ return this.state.matchedIds = e, this;
11001
+ }
11002
+ filter(e) {
11003
+ return this.state.filter = e, this;
11004
+ }
11005
+ filterMode(e) {
11006
+ return this.state.filterMode = e, this;
11007
+ }
10306
11008
  expanded(e) {
10307
11009
  if (!h(e)) throw Error("[TreeBuilder.expanded] requires a Ref<Set<string>>. Pass `ref(new Set<string>(...))`, not a plain Set or a getter.");
10308
11010
  return this.state.expanded = e, this.api.expandedIds = e, this;
@@ -10311,15 +11013,35 @@ var Vd = {
10311
11013
  if (!h(e)) throw Error("[TreeBuilder.selected] requires a Ref<string | null>. Pass `ref<string | null>(null)`, not a plain value.");
10312
11014
  return this.state.selected = e, this.api.selectedId = e, this;
10313
11015
  }
11016
+ selectedIds(e) {
11017
+ if (!h(e)) throw Error("[TreeBuilder.selectedIds] requires a Ref<Set<string>>. Pass `ref(new Set<string>())`, not a plain Set or a getter.");
11018
+ return this.state.selectedIds = e, this.api.selectedIds = e, this;
11019
+ }
11020
+ checkedIds(e) {
11021
+ if (!h(e)) throw Error("[TreeBuilder.checkedIds] requires a Ref<Set<string>>. Pass `ref(new Set<string>())`, not a plain Set or a getter.");
11022
+ return this.state.checkedIds = e, this.api.checkedIds = e, this;
11023
+ }
10314
11024
  onActivate(e) {
10315
11025
  return this.state.onActivate = e, this;
10316
11026
  }
11027
+ onSelect(e) {
11028
+ return this.state.onSelect = e, this;
11029
+ }
10317
11030
  onNodeMove(e) {
10318
11031
  return this.state.onNodeMove = e, this;
10319
11032
  }
10320
11033
  onFilesDrop(e) {
10321
11034
  return this.state.onFilesDrop = e, this;
10322
11035
  }
11036
+ onRename(e) {
11037
+ return this.state.onRename = e, this;
11038
+ }
11039
+ onRenameCancel(e) {
11040
+ return this.state.onRenameCancel = e, this;
11041
+ }
11042
+ onLoadError(e) {
11043
+ return this.state.onLoadError = e, this;
11044
+ }
10323
11045
  folderMenu(e) {
10324
11046
  return this.state.folderMenu = e, this;
10325
11047
  }
@@ -10338,14 +11060,14 @@ var Vd = {
10338
11060
  onViewportContextMenu(e) {
10339
11061
  return this.state.onViewportContextMenu = e, this;
10340
11062
  }
10341
- _setFocusNodeImpl(e) {
10342
- this._focusNodeImpl = e;
11063
+ _bindImpls(e) {
11064
+ this._impls = e;
10343
11065
  }
10344
11066
  };
10345
11067
  //#endregion
10346
11068
  //#region src/components/tree/useTree.ts
10347
- function qd() {
10348
- let e = Kd.create();
11069
+ function nf() {
11070
+ let e = tf.create();
10349
11071
  return {
10350
11072
  builder: e,
10351
11073
  api: e.api
@@ -10353,14 +11075,14 @@ function qd() {
10353
11075
  }
10354
11076
  //#endregion
10355
11077
  //#region src/components/panel-layout/internal/CoarPaneDivider.vue?vue&type=script&setup=true&lang.ts
10356
- var Jd = [
11078
+ var rf = [
10357
11079
  "aria-orientation",
10358
11080
  "aria-valuenow",
10359
11081
  "aria-valuemin",
10360
11082
  "aria-valuemax",
10361
11083
  "aria-valuetext",
10362
11084
  "aria-label"
10363
- ], Yd = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11085
+ ], af = /* @__PURE__ */ Z(/* @__PURE__ */ d({
10364
11086
  __name: "CoarPaneDivider",
10365
11087
  props: {
10366
11088
  orientation: {},
@@ -10427,9 +11149,9 @@ var Jd = [
10427
11149
  tabindex: "0",
10428
11150
  onPointerdown: f,
10429
11151
  onKeydown: g
10430
- }, null, 42, Jd));
11152
+ }, null, 42, rf));
10431
11153
  }
10432
- }), [["__scopeId", "data-v-023c8b6d"]]), Xd = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11154
+ }), [["__scopeId", "data-v-023c8b6d"]]), of = /* @__PURE__ */ Z(/* @__PURE__ */ d({
10433
11155
  __name: "CoarSplitPane",
10434
11156
  props: {
10435
11157
  direction: { default: "row" },
@@ -10461,7 +11183,7 @@ var Jd = [
10461
11183
  class: b(["coar-split__pane", { "coar-split__pane--fill": e.side !== "first" }]),
10462
11184
  style: S(e.side === "first" ? p.value : void 0)
10463
11185
  }, [M(t.$slots, "first", {}, void 0, !0)], 6),
10464
- e.resizable ? (E(), i(Yd, {
11186
+ e.resizable ? (E(), i(af, {
10465
11187
  key: 0,
10466
11188
  orientation: d.value,
10467
11189
  value: u.value,
@@ -10484,13 +11206,13 @@ var Jd = [
10484
11206
  }, [M(t.$slots, "second", {}, void 0, !0)], 6)
10485
11207
  ], 2));
10486
11208
  }
10487
- }), [["__scopeId", "data-v-25b6f788"]]), Zd = { class: "coar-panel-layout" }, Qd = {
11209
+ }), [["__scopeId", "data-v-25b6f788"]]), sf = { class: "coar-panel-layout" }, cf = {
10488
11210
  key: 0,
10489
11211
  class: "coar-panel-layout__top"
10490
- }, $d = { class: "coar-panel-layout__body" }, ef = {
11212
+ }, lf = { class: "coar-panel-layout__body" }, uf = {
10491
11213
  key: 1,
10492
11214
  class: "coar-panel-layout__status"
10493
- }, tf = 6, nf = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11215
+ }, df = 6, ff = /* @__PURE__ */ Z(/* @__PURE__ */ d({
10494
11216
  __name: "CoarPanelLayout",
10495
11217
  props: {
10496
11218
  leftWidth: { default: void 0 },
@@ -10547,16 +11269,16 @@ var Jd = [
10547
11269
  }
10548
11270
  });
10549
11271
  }
10550
- let u = l(() => n.leftWidth, (e) => c("update:leftWidth", e), 240), d = l(() => n.rightWidth, (e) => c("update:rightWidth", e), 280), f = l(() => n.bottomHeight, (e) => c("update:bottomHeight", e), 200), p = H(), m = r(() => !!p.left && n.leftOpen), g = r(() => !!p.right && n.rightOpen), _ = r(() => !!p.bottom && n.bottomOpen), v = r(() => n.contentMinWidth + tf + (g.value ? d.value + tf : 0)), y = r(() => n.contentMinWidth + tf + (m.value ? u.value + tf : 0)), b = r(() => n.contentMinHeight + tf);
10551
- return (t, n) => (E(), o("div", Zd, [
10552
- t.$slots.top ? (E(), o("div", Qd, [M(t.$slots, "top", {}, void 0, !0)])) : a("", !0),
10553
- s("div", $d, [
11272
+ let u = l(() => n.leftWidth, (e) => c("update:leftWidth", e), 240), d = l(() => n.rightWidth, (e) => c("update:rightWidth", e), 280), f = l(() => n.bottomHeight, (e) => c("update:bottomHeight", e), 200), p = H(), m = r(() => !!p.left && n.leftOpen), g = r(() => !!p.right && n.rightOpen), _ = r(() => !!p.bottom && n.bottomOpen), v = r(() => n.contentMinWidth + df + (g.value ? d.value + df : 0)), y = r(() => n.contentMinWidth + df + (m.value ? u.value + df : 0)), b = r(() => n.contentMinHeight + df);
11273
+ return (t, n) => (E(), o("div", sf, [
11274
+ t.$slots.top ? (E(), o("div", cf, [M(t.$slots, "top", {}, void 0, !0)])) : a("", !0),
11275
+ s("div", lf, [
10554
11276
  m.value ? (E(), o("div", {
10555
11277
  key: 0,
10556
11278
  class: "coar-panel-layout__left",
10557
11279
  style: S({ flex: `0 0 ${z(u)}px` })
10558
11280
  }, [M(t.$slots, "left", {}, void 0, !0)], 4)) : a("", !0),
10559
- m.value && e.leftResizable ? (E(), i(Yd, {
11281
+ m.value && e.leftResizable ? (E(), i(af, {
10560
11282
  key: 1,
10561
11283
  orientation: "vertical",
10562
11284
  value: z(u),
@@ -10579,7 +11301,7 @@ var Jd = [
10579
11301
  class: "coar-panel-layout__content",
10580
11302
  style: S({ minHeight: `${e.contentMinHeight}px` })
10581
11303
  }, [M(t.$slots, "default", {}, void 0, !0)], 4),
10582
- _.value && e.bottomResizable ? (E(), i(Yd, {
11304
+ _.value && e.bottomResizable ? (E(), i(af, {
10583
11305
  key: 0,
10584
11306
  orientation: "horizontal",
10585
11307
  value: z(f),
@@ -10601,7 +11323,7 @@ var Jd = [
10601
11323
  style: S({ flex: `0 0 ${z(f)}px` })
10602
11324
  }, [M(t.$slots, "bottom", {}, void 0, !0)], 4)) : a("", !0)
10603
11325
  ], 4),
10604
- g.value && e.rightResizable ? (E(), i(Yd, {
11326
+ g.value && e.rightResizable ? (E(), i(af, {
10605
11327
  key: 2,
10606
11328
  orientation: "vertical",
10607
11329
  value: z(d),
@@ -10623,18 +11345,18 @@ var Jd = [
10623
11345
  style: S({ flex: `0 0 ${z(d)}px` })
10624
11346
  }, [M(t.$slots, "right", {}, void 0, !0)], 4)) : a("", !0)
10625
11347
  ]),
10626
- t.$slots.status ? (E(), o("div", ef, [M(t.$slots, "status", {}, void 0, !0)])) : a("", !0)
11348
+ t.$slots.status ? (E(), o("div", uf, [M(t.$slots, "status", {}, void 0, !0)])) : a("", !0)
10627
11349
  ]));
10628
11350
  }
10629
- }), [["__scopeId", "data-v-0656f78d"]]), rf = ["aria-label", "aria-disabled"], af = [
11351
+ }), [["__scopeId", "data-v-0656f78d"]]), pf = ["aria-label", "aria-disabled"], mf = [
10630
11352
  "disabled",
10631
11353
  "aria-pressed",
10632
11354
  "aria-label",
10633
11355
  "onClick"
10634
- ], of = {
11356
+ ], hf = {
10635
11357
  key: 1,
10636
11358
  class: "coar-segmented-control__label"
10637
- }, sf = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11359
+ }, gf = /* @__PURE__ */ Z(/* @__PURE__ */ d({
10638
11360
  __name: "CoarSegmentedControl",
10639
11361
  props: /* @__PURE__ */ _({
10640
11362
  options: {},
@@ -10690,9 +11412,193 @@ var Jd = [
10690
11412
  name: e.icon,
10691
11413
  size: "auto",
10692
11414
  class: "coar-segmented-control__icon"
10693
- }, null, 8, ["name"])) : a("", !0), e.label ? (E(), o("span", of, I(e.label), 1)) : a("", !0)], 10, af))), 128))], 10, rf));
11415
+ }, null, 8, ["name"])) : a("", !0), e.label ? (E(), o("span", hf, I(e.label), 1)) : a("", !0)], 10, mf))), 128))], 10, pf));
10694
11416
  }
10695
- }), [["__scopeId", "data-v-72983826"]]), cf = ["aria-label"], lf = { class: "coar-breadcrumb-list" }, uf = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11417
+ }), [["__scopeId", "data-v-72983826"]]), _f = { class: "coar-wizard__steps" }, vf = ["data-step-index"], yf = [
11418
+ "disabled",
11419
+ "aria-current",
11420
+ "onClick"
11421
+ ], bf = { class: "coar-wizard__marker" }, xf = { class: "coar-wizard__step-text" }, Sf = { class: "coar-wizard__step-label" }, Cf = {
11422
+ key: 0,
11423
+ class: "coar-wizard__step-desc"
11424
+ }, wf = { class: "coar-wizard__main" }, Tf = {
11425
+ key: 0,
11426
+ class: "coar-wizard__footer"
11427
+ }, Ef = /* @__PURE__ */ d({
11428
+ __name: "CoarWizard",
11429
+ props: /* @__PURE__ */ _({
11430
+ steps: {},
11431
+ indicatorPosition: { default: "top" },
11432
+ freeNavigation: {
11433
+ type: Boolean,
11434
+ default: !1
11435
+ },
11436
+ hideFooter: {
11437
+ type: Boolean,
11438
+ default: !1
11439
+ },
11440
+ disableAnimation: {
11441
+ type: Boolean,
11442
+ default: !1
11443
+ },
11444
+ backLabel: { default: "Back" },
11445
+ nextLabel: { default: "Next" },
11446
+ finishLabel: { default: "Finish" }
11447
+ }, {
11448
+ step: { default: void 0 },
11449
+ stepModifiers: {}
11450
+ }),
11451
+ emits: /* @__PURE__ */ _(["finish", "step-change"], ["update:step"]),
11452
+ setup(t, { expose: n, emit: c }) {
11453
+ let d = t, p = V(t, "step"), m = c, h = A(null), g = A(null), _ = A(null), v = A(null), S = r(() => d.indicatorPosition === "left" || d.indicatorPosition === "right"), T = r(() => {
11454
+ let e = d.steps.findIndex((e) => e.id === p.value);
11455
+ return e >= 0 ? e : 0;
11456
+ }), D = r(() => d.steps[T.value]), O = r(() => D.value?.id ?? ""), k = r(() => T.value <= 0), N = r(() => T.value >= d.steps.length - 1), P = r(() => D.value?.canAdvance !== !1);
11457
+ function F(e) {
11458
+ let t = d.steps.findIndex((t) => t.id === e);
11459
+ t < 0 || t === T.value || d.steps[t]?.disabled || (p.value = e, m("step-change", e, t));
11460
+ }
11461
+ function L() {
11462
+ if (P.value) {
11463
+ if (N.value) {
11464
+ m("finish");
11465
+ return;
11466
+ }
11467
+ F(d.steps[T.value + 1].id);
11468
+ }
11469
+ }
11470
+ function R() {
11471
+ k.value || F(d.steps[T.value - 1].id);
11472
+ }
11473
+ function z(e) {
11474
+ return e === T.value || d.steps[e]?.disabled ? !1 : d.freeNavigation ? !0 : e < T.value;
11475
+ }
11476
+ function B(e) {
11477
+ return {
11478
+ "coar-wizard__step--done": e < T.value,
11479
+ "coar-wizard__step--active": e === T.value,
11480
+ "coar-wizard__step--upcoming": e > T.value,
11481
+ "coar-wizard__step--optional": d.steps[e]?.optional === !0,
11482
+ "coar-wizard__step--clickable": z(e)
11483
+ };
11484
+ }
11485
+ let H = r(() => ({
11486
+ next: L,
11487
+ back: R,
11488
+ goTo: F,
11489
+ isFirst: k.value,
11490
+ isLast: N.value,
11491
+ canAdvance: P.value,
11492
+ activeStep: D.value,
11493
+ activeIndex: T.value
11494
+ }));
11495
+ function U() {
11496
+ return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
11497
+ }
11498
+ function W(e) {
11499
+ let t = g.value;
11500
+ if (!t) return;
11501
+ let n = t.querySelector(`[data-step-index="${T.value}"]`);
11502
+ if (!n) return;
11503
+ let r = e && !U() ? "smooth" : "auto";
11504
+ if (S.value) {
11505
+ let e = n.offsetTop - (t.clientHeight - n.offsetHeight) / 2, i = t.scrollHeight - t.clientHeight;
11506
+ t.scrollTo({
11507
+ top: Math.max(0, Math.min(e, i)),
11508
+ behavior: r
11509
+ });
11510
+ } else {
11511
+ let e = n.offsetLeft - (t.clientWidth - n.offsetWidth) / 2, i = t.scrollWidth - t.clientWidth;
11512
+ t.scrollTo({
11513
+ left: Math.max(0, Math.min(e, i)),
11514
+ behavior: r
11515
+ });
11516
+ }
11517
+ }
11518
+ let K = 0, J = 0;
11519
+ function ee() {
11520
+ cancelAnimationFrame(K), cancelAnimationFrame(J);
11521
+ }
11522
+ function te(e) {
11523
+ if (e.propertyName !== "height" || e.target !== _.value) return;
11524
+ let t = _.value;
11525
+ t && (t.style.transition = "", t.style.height = "", t.style.overflow = "");
11526
+ }
11527
+ return G(T, () => {
11528
+ let e = _.value;
11529
+ if (!e || d.disableAnimation || U()) {
11530
+ y(() => W(!0));
11531
+ return;
11532
+ }
11533
+ let t = e.offsetHeight;
11534
+ e.style.transition = "", e.style.overflow = "hidden", e.style.height = `${t}px`, y(() => {
11535
+ let n = v.value?.offsetHeight ?? t;
11536
+ ee(), K = requestAnimationFrame(() => {
11537
+ J = requestAnimationFrame(() => {
11538
+ e.style.transition = "height var(--coar-wizard-anim-duration, 260ms) var(--coar-wizard-anim-ease, ease)", e.style.height = `${n}px`;
11539
+ });
11540
+ }), W(!0);
11541
+ });
11542
+ }), w(() => W(!1)), C(ee), n({
11543
+ next: L,
11544
+ back: R,
11545
+ goTo: F
11546
+ }), (n, r) => (E(), o("div", {
11547
+ ref_key: "rootEl",
11548
+ ref: h,
11549
+ class: b(["coar-wizard", [`coar-wizard--indicator-${t.indicatorPosition}`, { "coar-wizard--vertical": S.value }]])
11550
+ }, [s("div", {
11551
+ ref_key: "indicatorEl",
11552
+ ref: g,
11553
+ class: "coar-wizard__indicator"
11554
+ }, [s("ol", _f, [(E(!0), o(e, null, j(t.steps, (t, n) => (E(), o("li", {
11555
+ key: t.id,
11556
+ class: b(["coar-wizard__step", B(n)]),
11557
+ "data-step-index": n
11558
+ }, [s("button", {
11559
+ type: "button",
11560
+ class: "coar-wizard__step-btn",
11561
+ disabled: !z(n) && n !== T.value,
11562
+ "aria-current": n === T.value ? "step" : void 0,
11563
+ onClick: (e) => F(t.id)
11564
+ }, [s("span", bf, [n < T.value ? (E(), i(Q, {
11565
+ key: 0,
11566
+ name: "check",
11567
+ size: "xs"
11568
+ })) : (E(), o(e, { key: 1 }, [l(I(n + 1), 1)], 64))]), s("span", xf, [s("span", Sf, I(t.label), 1), t.description ? (E(), o("span", Cf, I(t.description), 1)) : a("", !0)])], 8, yf)], 10, vf))), 128))])], 512), s("div", wf, [s("div", {
11569
+ ref_key: "bodyEl",
11570
+ ref: _,
11571
+ class: "coar-wizard__body",
11572
+ onTransitionend: te
11573
+ }, [(E(), o("div", {
11574
+ key: O.value,
11575
+ ref_key: "contentEl",
11576
+ ref: v,
11577
+ class: "coar-wizard__content"
11578
+ }, [M(n.$slots, O.value, {
11579
+ step: D.value,
11580
+ index: T.value
11581
+ })]))], 544), t.hideFooter ? a("", !0) : (E(), o("div", Tf, [M(n.$slots, "footer", x(f(H.value)), () => [
11582
+ u(Oo, {
11583
+ variant: "tertiary",
11584
+ disabled: k.value,
11585
+ onClick: R
11586
+ }, {
11587
+ default: q(() => [l(I(t.backLabel), 1)]),
11588
+ _: 1
11589
+ }, 8, ["disabled"]),
11590
+ r[0] ||= s("span", { class: "coar-wizard__footer-spacer" }, null, -1),
11591
+ u(Oo, {
11592
+ variant: "primary",
11593
+ disabled: !P.value,
11594
+ onClick: L
11595
+ }, {
11596
+ default: q(() => [l(I(N.value ? t.finishLabel : t.nextLabel), 1)]),
11597
+ _: 1
11598
+ }, 8, ["disabled"])
11599
+ ])]))])], 2));
11600
+ }
11601
+ }), Df = ["aria-label"], Of = { class: "coar-breadcrumb-list" }, kf = /* @__PURE__ */ Z(/* @__PURE__ */ d({
10696
11602
  __name: "CoarBreadcrumb",
10697
11603
  props: {
10698
11604
  separator: { default: "/" },
@@ -10705,22 +11611,22 @@ var Jd = [
10705
11611
  class: b(["coar-breadcrumb", `coar-breadcrumb--${e.size}`]),
10706
11612
  "aria-label": e.ariaLabel,
10707
11613
  style: S({ "--coar-breadcrumb-separator": n.value })
10708
- }, [s("ol", lf, [M(t.$slots, "default", {}, void 0, !0)])], 14, cf));
11614
+ }, [s("ol", Of, [M(t.$slots, "default", {}, void 0, !0)])], 14, Df));
10709
11615
  }
10710
- }), [["__scopeId", "data-v-ed10cad5"]]), df = ["aria-current"], ff = {
11616
+ }), [["__scopeId", "data-v-ed10cad5"]]), Af = ["aria-current"], jf = {
10711
11617
  key: 0,
10712
11618
  class: "coar-breadcrumb-link coar-breadcrumb-link--active",
10713
11619
  "aria-current": "page"
10714
- }, pf = [
11620
+ }, Mf = [
10715
11621
  "href",
10716
11622
  "aria-disabled",
10717
11623
  "tabindex",
10718
11624
  "onClick"
10719
- ], mf = [
11625
+ ], Nf = [
10720
11626
  "href",
10721
11627
  "aria-disabled",
10722
11628
  "tabindex"
10723
- ], hf = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11629
+ ], Pf = /* @__PURE__ */ Z(/* @__PURE__ */ d({
10724
11630
  __name: "CoarBreadcrumbItem",
10725
11631
  props: {
10726
11632
  to: { default: void 0 },
@@ -10758,7 +11664,7 @@ var Jd = [
10758
11664
  "coar-breadcrumb-item--slot-only": f.value === "slot-only"
10759
11665
  }]),
10760
11666
  "aria-current": e.active ? "page" : void 0
10761
- }, [f.value === "active" ? (E(), o("span", ff, [M(t.$slots, "icon", {}, () => [e.icon ? (E(), i(Q, {
11667
+ }, [f.value === "active" ? (E(), o("span", jf, [M(t.$slots, "icon", {}, () => [e.icon ? (E(), i(Q, {
10762
11668
  key: 0,
10763
11669
  name: e.icon,
10764
11670
  size: "s",
@@ -10779,7 +11685,7 @@ var Jd = [
10779
11685
  name: e.icon,
10780
11686
  size: "s",
10781
11687
  class: "coar-breadcrumb-link__icon"
10782
- }, null, 8, ["name"])) : a("", !0)], !0), M(t.$slots, "default", {}, void 0, !0)], 10, pf)]),
11688
+ }, null, 8, ["name"])) : a("", !0)], !0), M(t.$slots, "default", {}, void 0, !0)], 10, Mf)]),
10783
11689
  _: 3
10784
11690
  }, 8, ["to"])) : f.value === "plain-link" ? (E(), o("a", {
10785
11691
  key: 2,
@@ -10793,14 +11699,14 @@ var Jd = [
10793
11699
  name: e.icon,
10794
11700
  size: "s",
10795
11701
  class: "coar-breadcrumb-link__icon"
10796
- }, null, 8, ["name"])) : a("", !0)], !0), M(t.$slots, "default", {}, void 0, !0)], 10, mf)) : M(t.$slots, "default", { key: 3 }, void 0, !0)], 10, df));
11702
+ }, null, 8, ["name"])) : a("", !0)], !0), M(t.$slots, "default", {}, void 0, !0)], 10, Nf)) : M(t.$slots, "default", { key: 3 }, void 0, !0)], 10, Af));
10797
11703
  }
10798
- }), [["__scopeId", "data-v-079c47de"]]), gf = ["aria-label"], _f = { class: "coar-pagination-nav" }, vf = ["disabled", "aria-label"], yf = ["disabled", "aria-label"], bf = ["aria-label"], xf = [
11704
+ }), [["__scopeId", "data-v-079c47de"]]), Ff = ["aria-label"], If = { class: "coar-pagination-nav" }, Lf = ["disabled", "aria-label"], Rf = ["disabled", "aria-label"], zf = ["aria-label"], Bf = [
10799
11705
  "disabled",
10800
11706
  "aria-current",
10801
11707
  "aria-label",
10802
11708
  "onClick"
10803
- ], Sf = ["disabled", "aria-label"], Cf = ["disabled", "aria-label"], wf = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11709
+ ], Vf = ["disabled", "aria-label"], Hf = ["disabled", "aria-label"], Uf = /* @__PURE__ */ Z(/* @__PURE__ */ d({
10804
11710
  __name: "CoarPagination",
10805
11711
  props: /* @__PURE__ */ _({
10806
11712
  totalItems: {},
@@ -10849,7 +11755,7 @@ var Jd = [
10849
11755
  return (n, r) => (E(), o("nav", {
10850
11756
  class: b(["coar-pagination", { "coar-pagination--disabled": t.disabled }]),
10851
11757
  "aria-label": z(c)("coar.ui.pagination.nav", void 0, "Pagination")
10852
- }, [s("div", _f, [
11758
+ }, [s("div", If, [
10853
11759
  t.showFirstLast ? (E(), o("button", {
10854
11760
  key: 0,
10855
11761
  type: "button",
@@ -10860,7 +11766,7 @@ var Jd = [
10860
11766
  }, [u(Q, {
10861
11767
  name: "chevrons-left",
10862
11768
  size: "s"
10863
- })], 8, vf)) : a("", !0),
11769
+ })], 8, Lf)) : a("", !0),
10864
11770
  s("button", {
10865
11771
  type: "button",
10866
11772
  class: "coar-pagination-button coar-pagination-button--nav",
@@ -10870,13 +11776,13 @@ var Jd = [
10870
11776
  }, [u(Q, {
10871
11777
  name: "chevron-left",
10872
11778
  size: "s"
10873
- })], 8, yf),
11779
+ })], 8, Rf),
10874
11780
  (E(!0), o(e, null, j(h.value, (n, r) => (E(), o(e, { key: _(r, n) }, [n.type === "ellipsis" ? (E(), o("span", {
10875
11781
  key: 0,
10876
11782
  class: "coar-pagination-ellipsis",
10877
11783
  role: "separator",
10878
11784
  "aria-label": z(c)("coar.ui.pagination.morePage", void 0, "More pages")
10879
- }, "...", 8, bf)) : (E(), o("button", {
11785
+ }, "...", 8, zf)) : (E(), o("button", {
10880
11786
  key: 1,
10881
11787
  type: "button",
10882
11788
  class: b(["coar-pagination-button coar-pagination-button--page", { "coar-pagination-button--active": n.page === l.value }]),
@@ -10884,7 +11790,7 @@ var Jd = [
10884
11790
  "aria-current": n.page === l.value ? "page" : void 0,
10885
11791
  "aria-label": z(c)("coar.ui.pagination.goToPage", { page: n.page }, "Go to page " + n.page),
10886
11792
  onClick: (e) => g(n.page)
10887
- }, I(n.page), 11, xf))], 64))), 128)),
11793
+ }, I(n.page), 11, Bf))], 64))), 128)),
10888
11794
  s("button", {
10889
11795
  type: "button",
10890
11796
  class: "coar-pagination-button coar-pagination-button--nav",
@@ -10894,7 +11800,7 @@ var Jd = [
10894
11800
  }, [u(Q, {
10895
11801
  name: "chevron-right",
10896
11802
  size: "s"
10897
- })], 8, Sf),
11803
+ })], 8, Vf),
10898
11804
  t.showFirstLast ? (E(), o("button", {
10899
11805
  key: 1,
10900
11806
  type: "button",
@@ -10905,22 +11811,22 @@ var Jd = [
10905
11811
  }, [u(Q, {
10906
11812
  name: "chevrons-right",
10907
11813
  size: "s"
10908
- })], 8, Cf)) : a("", !0)
10909
- ])], 10, gf));
11814
+ })], 8, Hf)) : a("", !0)
11815
+ ])], 10, Ff));
10910
11816
  }
10911
11817
  }), [["__scopeId", "data-v-9e40bd44"]]);
10912
11818
  //#endregion
10913
11819
  //#region src/components/sidebar/sidebar-context.ts
10914
- function Tf(e) {
11820
+ function Wf(e) {
10915
11821
  return e === "top" || e === "bottom" ? "horizontal" : "vertical";
10916
11822
  }
10917
- var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Symbol("sidebar-side"), kf = Symbol("sidebar-flyout-icon-only"), Af = Symbol("sidebar-flyout-parent"), jf = ["aria-label"], Mf = {
11823
+ var Gf = Symbol("sidebar-collapsed"), Kf = Symbol("sidebar-icon-size"), qf = Symbol("sidebar-side"), Jf = Symbol("sidebar-flyout-icon-only"), Yf = Symbol("sidebar-flyout-parent"), Xf = ["aria-label"], Zf = {
10918
11824
  key: 0,
10919
11825
  class: "coar-sidebar__header"
10920
- }, Nf = { class: "coar-sidebar__content" }, Pf = {
11826
+ }, Qf = { class: "coar-sidebar__content" }, $f = {
10921
11827
  key: 1,
10922
11828
  class: "coar-sidebar__footer"
10923
- }, Ff = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11829
+ }, ep = /* @__PURE__ */ Z(/* @__PURE__ */ d({
10924
11830
  __name: "CoarSidebar",
10925
11831
  props: {
10926
11832
  side: { default: void 0 },
@@ -10943,8 +11849,8 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
10943
11849
  },
10944
11850
  emits: ["update:collapsed"],
10945
11851
  setup(e) {
10946
- let t = e, n = r(() => t.side ?? t.position ?? "left"), i = r(() => Tf(n.value)), s = L(t, "collapsed"), c = L(t, "size");
10947
- D(Ef, s), D(Df, c), D(Of, n);
11852
+ let t = e, n = r(() => t.side ?? t.position ?? "left"), i = r(() => Wf(n.value)), s = L(t, "collapsed"), c = L(t, "size");
11853
+ D(Gf, s), D(Kf, c), D(qf, n);
10948
11854
  let l = r(() => ({
10949
11855
  "coar-sidebar": !0,
10950
11856
  [`coar-sidebar--${t.variant}`]: !0,
@@ -10968,36 +11874,36 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
10968
11874
  "aria-label": e.ariaLabel || "Sidebar",
10969
11875
  class: b(l.value)
10970
11876
  }, [
10971
- n.$slots.header ? (E(), o("div", Mf, [M(n.$slots, "header", { collapsed: t.collapsed }, void 0, !0)])) : a("", !0),
10972
- J((E(), o("div", Nf, [M(n.$slots, "default", { collapsed: t.collapsed }, void 0, !0)])), [[z(Ua), u.value]]),
10973
- n.$slots.footer ? (E(), o("div", Pf, [M(n.$slots, "footer", { collapsed: t.collapsed }, void 0, !0)])) : a("", !0)
10974
- ], 10, jf));
11877
+ n.$slots.header ? (E(), o("div", Zf, [M(n.$slots, "header", { collapsed: t.collapsed }, void 0, !0)])) : a("", !0),
11878
+ J((E(), o("div", Qf, [M(n.$slots, "default", { collapsed: t.collapsed }, void 0, !0)])), [[z(Ua), u.value]]),
11879
+ n.$slots.footer ? (E(), o("div", $f, [M(n.$slots, "footer", { collapsed: t.collapsed }, void 0, !0)])) : a("", !0)
11880
+ ], 10, Xf));
10975
11881
  }
10976
- }), [["__scopeId", "data-v-656c121e"]]), If = [
11882
+ }), [["__scopeId", "data-v-656c121e"]]), tp = [
10977
11883
  "href",
10978
11884
  "aria-disabled",
10979
11885
  "aria-current",
10980
11886
  "tabindex",
10981
11887
  "onClick"
10982
- ], Lf = {
11888
+ ], np = {
10983
11889
  class: "coar-sidebar-item__icon",
10984
11890
  "aria-hidden": "true"
10985
- }, Rf = { class: "coar-sidebar-item__label" }, zf = [
11891
+ }, rp = { class: "coar-sidebar-item__label" }, ip = [
10986
11892
  "href",
10987
11893
  "aria-disabled",
10988
11894
  "aria-current",
10989
11895
  "tabindex"
10990
- ], Bf = {
11896
+ ], ap = {
10991
11897
  class: "coar-sidebar-item__icon",
10992
11898
  "aria-hidden": "true"
10993
- }, Vf = { class: "coar-sidebar-item__label" }, Hf = [
11899
+ }, op = { class: "coar-sidebar-item__label" }, sp = [
10994
11900
  "aria-disabled",
10995
11901
  "aria-current",
10996
11902
  "tabindex"
10997
- ], Uf = {
11903
+ ], cp = {
10998
11904
  class: "coar-sidebar-item__icon",
10999
11905
  "aria-hidden": "true"
11000
- }, Wf = { class: "coar-sidebar-item__label" }, Gf = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11906
+ }, lp = { class: "coar-sidebar-item__label" }, up = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11001
11907
  __name: "CoarSidebarItem",
11002
11908
  props: {
11003
11909
  label: {},
@@ -11014,7 +11920,7 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11014
11920
  },
11015
11921
  emits: ["click"],
11016
11922
  setup(e, { emit: t }) {
11017
- let n = e, a = t, c = m(Ef, A(!1)), l = m(Df, A("m")), d = m(Of, A("left")), f = m(kf, A(!1)), { RouterLink: p, hasRouterLink: h, warnIfMisconfigured: g } = bo();
11923
+ let n = e, a = t, c = m(Gf, A(!1)), l = m(Kf, A("m")), d = m(qf, A("left")), f = m(Jf, A(!1)), { RouterLink: p, hasRouterLink: h, warnIfMisconfigured: g } = bo();
11018
11924
  G(() => n.to, (e) => g(e, "CoarSidebarItem"), { immediate: !0 });
11019
11925
  let _ = r(() => {
11020
11926
  switch (d.value) {
@@ -11031,7 +11937,7 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11031
11937
  content: n.label,
11032
11938
  placement: _.value,
11033
11939
  openDelay: 200
11034
- } : !1), y = r(() => Tf(d.value)), x = r(() => n.to !== void 0 && n.to !== null);
11940
+ } : !1), y = r(() => Wf(d.value)), x = r(() => n.to !== void 0 && n.to !== null);
11035
11941
  function S(e) {
11036
11942
  let t = n.active ?? e;
11037
11943
  return [
@@ -11076,10 +11982,10 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11076
11982
  "aria-current": C(t),
11077
11983
  tabindex: n.disabled ? -1 : void 0,
11078
11984
  onClick: (e) => T(e, r)
11079
- }, [s("span", Lf, [u(Q, {
11985
+ }, [s("span", np, [u(Q, {
11080
11986
  name: n.icon || "square-dashed",
11081
11987
  size: z(l)
11082
- }, null, 8, ["name", "size"])]), s("span", Rf, I(n.label), 1)], 10, If)), [[z(Bc), v.value]])]),
11988
+ }, null, 8, ["name", "size"])]), s("span", rp, I(n.label), 1)], 10, tp)), [[z(Bc), v.value]])]),
11083
11989
  _: 1
11084
11990
  }, 8, ["to"])) : x.value ? J((E(), o("a", {
11085
11991
  key: 1,
@@ -11089,10 +11995,10 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11089
11995
  "aria-current": C(!1),
11090
11996
  tabindex: n.disabled ? -1 : void 0,
11091
11997
  onClick: T
11092
- }, [s("span", Bf, [u(Q, {
11998
+ }, [s("span", ap, [u(Q, {
11093
11999
  name: n.icon || "square-dashed",
11094
12000
  size: z(l)
11095
- }, null, 8, ["name", "size"])]), s("span", Vf, I(n.label), 1)], 10, zf)), [[z(Bc), v.value]]) : J((E(), o("div", {
12001
+ }, null, 8, ["name", "size"])]), s("span", op, I(n.label), 1)], 10, ip)), [[z(Bc), v.value]]) : J((E(), o("div", {
11096
12002
  key: 2,
11097
12003
  role: "menuitem",
11098
12004
  class: b(["coar-sidebar-item", S(!1)]),
@@ -11101,12 +12007,12 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11101
12007
  tabindex: n.disabled ? -1 : 0,
11102
12008
  onClick: w,
11103
12009
  onKeydown: D
11104
- }, [s("span", Uf, [u(Q, {
12010
+ }, [s("span", cp, [u(Q, {
11105
12011
  name: n.icon || "square-dashed",
11106
12012
  size: z(l)
11107
- }, null, 8, ["name", "size"])]), s("span", Wf, I(n.label), 1)], 42, Hf)), [[z(Bc), v.value]]);
12013
+ }, null, 8, ["name", "size"])]), s("span", lp, I(n.label), 1)], 42, sp)), [[z(Bc), v.value]]);
11108
12014
  }
11109
- }), [["__scopeId", "data-v-bf1b0b6e"]]), Kf = /* @__PURE__ */ d({
12015
+ }), [["__scopeId", "data-v-bf1b0b6e"]]), dp = /* @__PURE__ */ d({
11110
12016
  __name: "SidebarFlyoutProvider",
11111
12017
  props: {
11112
12018
  iconOnly: { type: Boolean },
@@ -11114,12 +12020,12 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11114
12020
  },
11115
12021
  setup(e) {
11116
12022
  let t = e;
11117
- return D(kf, L(t, "iconOnly")), D(Af, t.parentControl), (e, t) => M(e.$slots, "default");
12023
+ return D(Jf, L(t, "iconOnly")), D(Yf, t.parentControl), (e, t) => M(e.$slots, "default");
11118
12024
  }
11119
- }), qf = ["id"], Jf = {
12025
+ }), fp = ["id"], pp = {
11120
12026
  key: 0,
11121
12027
  class: "coar-sidebar-flyout__header"
11122
- }, Yf = { class: "coar-sidebar-flyout__items" }, Xf = /* @__PURE__ */ d({
12028
+ }, mp = { class: "coar-sidebar-flyout__items" }, hp = /* @__PURE__ */ d({
11123
12029
  __name: "CoarSidebarFlyoutPanel",
11124
12030
  props: {
11125
12031
  id: {
@@ -11145,7 +12051,7 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11145
12051
  },
11146
12052
  emits: ["flyoutEnter", "flyoutLeave"],
11147
12053
  setup(e) {
11148
- return (t, n) => (E(), i(Kf, {
12054
+ return (t, n) => (E(), i(dp, {
11149
12055
  "icon-only": e.iconOnly,
11150
12056
  "parent-control": e.parentControl
11151
12057
  }, {
@@ -11155,19 +12061,19 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11155
12061
  role: "menu",
11156
12062
  onMouseenter: n[0] ||= (e) => t.$emit("flyoutEnter"),
11157
12063
  onMouseleave: n[1] ||= (e) => t.$emit("flyoutLeave")
11158
- }, [e.iconOnly ? a("", !0) : (E(), o("div", Jf, I(e.label), 1)), s("div", Yf, [(E(), i(N({ render: e.renderContent })))])], 42, qf)]),
12064
+ }, [e.iconOnly ? a("", !0) : (E(), o("div", pp, I(e.label), 1)), s("div", mp, [(E(), i(N({ render: e.renderContent })))])], 42, fp)]),
11159
12065
  _: 1
11160
12066
  }, 8, ["icon-only", "parent-control"]));
11161
12067
  }
11162
- }), Zf = [
12068
+ }), gp = [
11163
12069
  "aria-expanded",
11164
12070
  "aria-disabled",
11165
12071
  "tabindex",
11166
12072
  "onKeydown"
11167
- ], Qf = {
12073
+ ], _p = {
11168
12074
  class: "coar-sidebar-group__icon",
11169
12075
  "aria-hidden": "true"
11170
- }, $f = { class: "coar-sidebar-group__caret" }, ep = { class: "coar-sidebar-group__label" }, tp = ["aria-hidden"], np = { class: "coar-sidebar-group__panel-inner" }, rp = /* @__PURE__ */ Z(/* @__PURE__ */ d({
12076
+ }, vp = { class: "coar-sidebar-group__caret" }, yp = { class: "coar-sidebar-group__label" }, bp = ["aria-hidden"], xp = { class: "coar-sidebar-group__panel-inner" }, Sp = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11171
12077
  __name: "CoarSidebarGroup",
11172
12078
  props: /* @__PURE__ */ _({
11173
12079
  label: {},
@@ -11202,7 +12108,7 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11202
12108
  }),
11203
12109
  emits: /* @__PURE__ */ _(["triggerClick"], ["update:open"]),
11204
12110
  setup(e, { emit: t }) {
11205
- let n = `coar-sidebar-group-${B()}`, i = e, c = t, l = V(e, "open"), d = m(Ef, A(!1)), f = m(Df, A("m")), p = m(Of, A("left")), h = r(() => Tf(p.value)), _ = m(kf, A(!1)), v = r(() => i.iconOnly ?? _.value), y = r(() => l.value), x = r(() => i.mode === "flyout"), S = H(), w = A(!1), T = A(null), D = null, O = null, k = null, j = m(Af, null), N = {
12111
+ let n = `coar-sidebar-group-${B()}`, i = e, c = t, l = V(e, "open"), d = m(Gf, A(!1)), f = m(Kf, A("m")), p = m(qf, A("left")), h = r(() => Wf(p.value)), _ = m(Jf, A(!1)), v = r(() => i.iconOnly ?? _.value), y = r(() => l.value), x = r(() => i.mode === "flyout"), S = H(), w = A(!1), T = A(null), D = null, O = null, k = null, j = m(Yf, null), N = {
11206
12112
  cancelClose: () => {
11207
12113
  oe(), j?.cancelClose();
11208
12114
  },
@@ -11289,7 +12195,7 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11289
12195
  },
11290
12196
  content: {
11291
12197
  kind: "component",
11292
- component: g(Xf)
12198
+ component: g(hp)
11293
12199
  },
11294
12200
  inputs: {
11295
12201
  id: n,
@@ -11362,53 +12268,53 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11362
12268
  onMouseenter: X,
11363
12269
  onMouseleave: le
11364
12270
  }, [
11365
- s("span", Qf, [u(Q, {
12271
+ s("span", _p, [u(Q, {
11366
12272
  name: i.icon || "square-dashed",
11367
12273
  size: z(f)
11368
- }, null, 8, ["name", "size"]), s("span", $f, [u(Q, {
12274
+ }, null, 8, ["name", "size"]), s("span", vp, [u(Q, {
11369
12275
  name: x.value ? w.value ? U.value : R.value : y.value ? "minus" : "plus",
11370
12276
  size: "xs"
11371
12277
  }, null, 8, ["name"])])]),
11372
- s("span", ep, I(i.label), 1),
12278
+ s("span", yp, I(i.label), 1),
11373
12279
  u(Q, {
11374
12280
  name: x.value ? w.value ? U.value : R.value : y.value ? "minus" : "plus",
11375
12281
  size: "xs",
11376
12282
  class: "coar-sidebar-group__chevron",
11377
12283
  "aria-hidden": "true"
11378
12284
  }, null, 8, ["name"])
11379
- ], 42, Zf)), [[z(Bc), L.value]]), x.value ? a("", !0) : (E(), o("div", {
12285
+ ], 42, gp)), [[z(Bc), L.value]]), x.value ? a("", !0) : (E(), o("div", {
11380
12286
  key: 0,
11381
12287
  id: n,
11382
12288
  class: b(["coar-sidebar-group__panel", { "coar-sidebar-group__panel--open": y.value }]),
11383
12289
  "aria-hidden": !y.value || void 0,
11384
12290
  role: "group"
11385
- }, [s("div", np, [M(e.$slots, "default", {}, void 0, !0)])], 10, tp))], 2));
12291
+ }, [s("div", xp, [M(e.$slots, "default", {}, void 0, !0)])], 10, bp))], 2));
11386
12292
  }
11387
- }), [["__scopeId", "data-v-898af6bb"]]), ip = {
12293
+ }), [["__scopeId", "data-v-898af6bb"]]), Cp = {
11388
12294
  key: 0,
11389
12295
  class: "coar-sidebar-heading__text"
11390
- }, ap = /* @__PURE__ */ Z(/* @__PURE__ */ d({
12296
+ }, wp = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11391
12297
  __name: "CoarSidebarHeading",
11392
12298
  props: { label: {} },
11393
12299
  setup(e) {
11394
- let t = e, n = m(Ef, A(!1));
12300
+ let t = e, n = m(Gf, A(!1));
11395
12301
  return (e, r) => (E(), o("div", {
11396
12302
  class: b(["coar-sidebar-heading", { "coar-sidebar-heading--collapsed": z(n) }]),
11397
12303
  role: "heading",
11398
12304
  "aria-level": "3"
11399
- }, [z(n) ? a("", !0) : (E(), o("span", ip, I(t.label), 1))], 2));
12305
+ }, [z(n) ? a("", !0) : (E(), o("span", Cp, I(t.label), 1))], 2));
11400
12306
  }
11401
- }), [["__scopeId", "data-v-99fb2c2f"]]), op = ["aria-orientation"], sp = /* @__PURE__ */ Z(/* @__PURE__ */ d({
12307
+ }), [["__scopeId", "data-v-99fb2c2f"]]), Tp = ["aria-orientation"], Ep = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11402
12308
  __name: "CoarSidebarDivider",
11403
12309
  setup(e) {
11404
- let t = m(Ef, A(!1)), n = m(Of, A("left")), i = r(() => Tf(n.value));
12310
+ let t = m(Gf, A(!1)), n = m(qf, A("left")), i = r(() => Wf(n.value));
11405
12311
  return (e, n) => (E(), o("div", {
11406
12312
  class: b(["coar-sidebar-divider", [`coar-sidebar-divider--${i.value}`, { "coar-sidebar-divider--collapsed": z(t) }]]),
11407
12313
  role: "separator",
11408
12314
  "aria-orientation": i.value === "horizontal" ? "vertical" : "horizontal"
11409
- }, null, 10, op));
12315
+ }, null, 10, Tp));
11410
12316
  }
11411
- }), [["__scopeId", "data-v-9bdfe627"]]), cp = /* @__PURE__ */ Z(/* @__PURE__ */ d({
12317
+ }), [["__scopeId", "data-v-9bdfe627"]]), Dp = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11412
12318
  __name: "CoarSidebarSpacer",
11413
12319
  props: {
11414
12320
  height: { default: void 0 },
@@ -11425,16 +12331,16 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11425
12331
  "aria-hidden": "true"
11426
12332
  }, null, 6));
11427
12333
  }
11428
- }), [["__scopeId", "data-v-502139f5"]]), lp = {
12334
+ }), [["__scopeId", "data-v-502139f5"]]), Op = {
11429
12335
  key: 0,
11430
12336
  class: "coar-navbar__start"
11431
- }, up = {
12337
+ }, kp = {
11432
12338
  key: 1,
11433
12339
  class: "coar-navbar__center"
11434
- }, dp = {
12340
+ }, Ap = {
11435
12341
  key: 2,
11436
12342
  class: "coar-navbar__end"
11437
- }, fp = /* @__PURE__ */ Z(/* @__PURE__ */ d({
12343
+ }, jp = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11438
12344
  __name: "CoarNavbar",
11439
12345
  props: {
11440
12346
  elevated: {
@@ -11454,17 +12360,17 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11454
12360
  }]),
11455
12361
  role: "banner"
11456
12362
  }, [
11457
- t.$slots.start ? (E(), o("div", lp, [M(t.$slots, "start", {}, void 0, !0)])) : a("", !0),
12363
+ t.$slots.start ? (E(), o("div", Op, [M(t.$slots, "start", {}, void 0, !0)])) : a("", !0),
11458
12364
  n[0] ||= s("div", { class: "coar-navbar__spacer" }, null, -1),
11459
- t.$slots.center ? (E(), o("div", up, [M(t.$slots, "center", {}, void 0, !0)])) : a("", !0),
12365
+ t.$slots.center ? (E(), o("div", kp, [M(t.$slots, "center", {}, void 0, !0)])) : a("", !0),
11460
12366
  n[1] ||= s("div", { class: "coar-navbar__spacer" }, null, -1),
11461
- t.$slots.end ? (E(), o("div", dp, [M(t.$slots, "end", {}, void 0, !0)])) : a("", !0)
12367
+ t.$slots.end ? (E(), o("div", Ap, [M(t.$slots, "end", {}, void 0, !0)])) : a("", !0)
11462
12368
  ], 2));
11463
12369
  }
11464
12370
  }), [["__scopeId", "data-v-c7eb4106"]]);
11465
12371
  //#endregion
11466
12372
  //#region src/components/date-time/_shared/time-helpers.ts
11467
- function pp(e) {
12373
+ function Mp(e) {
11468
12374
  try {
11469
12375
  return new Intl.DateTimeFormat(e, {
11470
12376
  hour: "numeric",
@@ -11474,13 +12380,13 @@ function pp(e) {
11474
12380
  return !1;
11475
12381
  }
11476
12382
  }
11477
- function mp(e, t, n) {
12383
+ function Np(e, t, n) {
11478
12384
  let r = String(t).padStart(2, "0");
11479
12385
  if (n) return `${String(e).padStart(2, "0")}:${r}`;
11480
12386
  let i = e >= 12 ? "PM" : "AM", a = e % 12;
11481
12387
  return a === 0 && (a = 12), `${a}:${r} ${i}`;
11482
12388
  }
11483
- function hp(e) {
12389
+ function Pp(e) {
11484
12390
  if (!e || typeof e != "string") return null;
11485
12391
  let t = e.trim().toUpperCase(), n = t.match(/^(\d{1,2}):(\d{2})\s*(AM|PM)$/);
11486
12392
  if (n) {
@@ -11500,41 +12406,41 @@ function hp(e) {
11500
12406
  }
11501
12407
  return null;
11502
12408
  }
11503
- function gp(e) {
12409
+ function Fp(e) {
11504
12410
  let t = e >= 12 ? "PM" : "AM", n = e % 12;
11505
12411
  return n === 0 && (n = 12), {
11506
12412
  hours: n,
11507
12413
  period: t
11508
12414
  };
11509
12415
  }
11510
- function _p(e, t) {
12416
+ function Ip(e, t) {
11511
12417
  return t === "AM" ? e === 12 ? 0 : e : e === 12 ? 12 : e + 12;
11512
12418
  }
11513
- function vp(e, t) {
12419
+ function Lp(e, t) {
11514
12420
  let n = (e + t) % 24;
11515
12421
  return n < 0 ? n + 24 : n;
11516
12422
  }
11517
- function yp(e, t, n = 1) {
12423
+ function Rp(e, t, n = 1) {
11518
12424
  let r = e + t * n, i = 0, a = r;
11519
12425
  return r >= 60 ? (i = Math.floor(r / 60), a = r % 60) : r < 0 && (i = Math.floor(r / 60), a = (r % 60 + 60) % 60), {
11520
12426
  minutes: a,
11521
12427
  hourDelta: i
11522
12428
  };
11523
12429
  }
11524
- function bp(e, t) {
12430
+ function zp(e, t) {
11525
12431
  return Math.round(e / t) * t;
11526
12432
  }
11527
12433
  //#endregion
11528
12434
  //#region src/components/date-time/time-picker/CoarTimePicker.vue?vue&type=script&setup=true&lang.ts
11529
- var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-picker__hours" }, Cp = ["disabled", "aria-label"], wp = [
12435
+ var Bp = ["aria-label"], Vp = { class: "coar-time-picker__spinner coar-time-picker__hours" }, Hp = ["disabled", "aria-label"], Up = [
11530
12436
  "aria-valuenow",
11531
12437
  "aria-valuemin",
11532
12438
  "aria-valuemax",
11533
12439
  "aria-label"
11534
- ], Tp = ["disabled", "aria-label"], Ep = { class: "coar-time-picker__spinner coar-time-picker__minutes" }, Dp = ["disabled", "aria-label"], Op = ["aria-valuenow", "aria-label"], kp = ["disabled", "aria-label"], Ap = {
12440
+ ], Wp = ["disabled", "aria-label"], Gp = { class: "coar-time-picker__spinner coar-time-picker__minutes" }, Kp = ["disabled", "aria-label"], qp = ["aria-valuenow", "aria-label"], Jp = ["disabled", "aria-label"], Yp = {
11535
12441
  key: 0,
11536
12442
  class: "coar-time-picker__spinner coar-time-picker__period"
11537
- }, jp = ["disabled"], Mp = ["aria-valuenow", "aria-valuetext"], Np = ["disabled"], Pp = /* @__PURE__ */ Z(/* @__PURE__ */ d({
12443
+ }, Xp = ["disabled"], Zp = ["aria-valuenow", "aria-valuetext"], Qp = ["disabled"], $p = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11538
12444
  __name: "CoarTimePicker",
11539
12445
  props: /* @__PURE__ */ _({
11540
12446
  size: { default: "m" },
@@ -11563,9 +12469,9 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11563
12469
  setup(e) {
11564
12470
  let t = e, n = V(e, "modelValue"), { t: i } = Y(), c = ne(), l = r(() => t.locale ?? c?.language.value ?? navigator.language), d = A(9), f = A(0), p = A("AM");
11565
12471
  G(n, (e) => {
11566
- e && (d.value = e.hours, f.value = bp(e.minutes, t.minuteStep), p.value = e.hours >= 12 ? "PM" : "AM");
12472
+ e && (d.value = e.hours, f.value = zp(e.minutes, t.minuteStep), p.value = e.hours >= 12 ? "PM" : "AM");
11567
12473
  }, { immediate: !0 });
11568
- let m = r(() => t.use24Hour === !0 ? !1 : t.use24Hour === !1 ? !0 : pp(l.value)), h = r(() => m.value ? gp(d.value).hours : d.value), g = r(() => f.value), _ = r(() => +!!m.value), v = r(() => m.value ? 12 : 23), y = r(() => t.size === "xs" ? "xs" : "s");
12474
+ let m = r(() => t.use24Hour === !0 ? !1 : t.use24Hour === !1 ? !0 : Mp(l.value)), h = r(() => m.value ? Fp(d.value).hours : d.value), g = r(() => f.value), _ = r(() => +!!m.value), v = r(() => m.value ? 12 : 23), y = r(() => t.size === "xs" ? "xs" : "s");
11569
12475
  function x(e) {
11570
12476
  return e.hours * 60 + e.minutes;
11571
12477
  }
@@ -11600,11 +12506,11 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11600
12506
  if (!(t.disabled || t.readonly || S.value)) {
11601
12507
  if (m.value) {
11602
12508
  let e = h.value, t = e + 1;
11603
- if (t > 12 && (t = 1), d.value = _p(t, p.value), e === 11) {
12509
+ if (t > 12 && (t = 1), d.value = Ip(t, p.value), e === 11) {
11604
12510
  F();
11605
12511
  return;
11606
12512
  }
11607
- } else d.value = vp(d.value, 1);
12513
+ } else d.value = Lp(d.value, 1);
11608
12514
  k();
11609
12515
  }
11610
12516
  }
@@ -11612,28 +12518,28 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11612
12518
  if (!(t.disabled || t.readonly || C.value)) {
11613
12519
  if (m.value) {
11614
12520
  let e = h.value, t = e - 1;
11615
- if (t < 1 && (t = 12), d.value = _p(t, p.value), e === 12) {
12521
+ if (t < 1 && (t = 12), d.value = Ip(t, p.value), e === 12) {
11616
12522
  F();
11617
12523
  return;
11618
12524
  }
11619
- } else d.value = vp(d.value, -1);
12525
+ } else d.value = Lp(d.value, -1);
11620
12526
  k();
11621
12527
  }
11622
12528
  }
11623
12529
  function N() {
11624
12530
  if (t.disabled || t.readonly || w.value) return;
11625
- let { minutes: e, hourDelta: n } = yp(f.value, 1, t.minuteStep);
11626
- f.value = e, n !== 0 && (d.value = vp(d.value, n), p.value = d.value >= 12 ? "PM" : "AM"), k();
12531
+ let { minutes: e, hourDelta: n } = Rp(f.value, 1, t.minuteStep);
12532
+ f.value = e, n !== 0 && (d.value = Lp(d.value, n), p.value = d.value >= 12 ? "PM" : "AM"), k();
11627
12533
  }
11628
12534
  function P() {
11629
12535
  if (t.disabled || t.readonly || T.value) return;
11630
- let { minutes: e, hourDelta: n } = yp(f.value, -1, t.minuteStep);
11631
- f.value = e, n !== 0 && (d.value = vp(d.value, n), p.value = d.value >= 12 ? "PM" : "AM"), k();
12536
+ let { minutes: e, hourDelta: n } = Rp(f.value, -1, t.minuteStep);
12537
+ f.value = e, n !== 0 && (d.value = Lp(d.value, n), p.value = d.value >= 12 ? "PM" : "AM"), k();
11632
12538
  }
11633
12539
  function F() {
11634
12540
  if (t.disabled || t.readonly || !m.value) return;
11635
12541
  let e = p.value === "AM" ? "PM" : "AM";
11636
- e === "AM" && D.value || e === "PM" && O.value || (p.value = e, d.value = _p(h.value, e), k());
12542
+ e === "AM" && D.value || e === "PM" && O.value || (p.value = e, d.value = Ip(h.value, e), k());
11637
12543
  }
11638
12544
  function L(e) {
11639
12545
  t.disabled || t.readonly || (e.key === "ArrowUp" ? (e.preventDefault(), j()) : e.key === "ArrowDown" && (e.preventDefault(), M()));
@@ -11657,7 +12563,7 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11657
12563
  role: "group",
11658
12564
  "aria-label": e.ariaLabel
11659
12565
  }, [
11660
- s("div", Sp, [
12566
+ s("div", Vp, [
11661
12567
  s("button", {
11662
12568
  type: "button",
11663
12569
  class: "coar-time-picker__btn coar-time-picker__btn--up",
@@ -11668,7 +12574,7 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11668
12574
  }, [u(Q, {
11669
12575
  name: "chevron-up",
11670
12576
  size: y.value
11671
- }, null, 8, ["size"])], 8, Cp),
12577
+ }, null, 8, ["size"])], 8, Hp),
11672
12578
  s("div", {
11673
12579
  class: "coar-time-picker__value",
11674
12580
  role: "spinbutton",
@@ -11678,7 +12584,7 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11678
12584
  "aria-valuemax": v.value,
11679
12585
  "aria-label": z(i)("coar.ui.timePicker.hours", void 0, "Hours"),
11680
12586
  onKeydown: L
11681
- }, I(h.value.toString().padStart(2, "0")), 41, wp),
12587
+ }, I(h.value.toString().padStart(2, "0")), 41, Up),
11682
12588
  s("button", {
11683
12589
  type: "button",
11684
12590
  class: "coar-time-picker__btn coar-time-picker__btn--down",
@@ -11689,13 +12595,13 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11689
12595
  }, [u(Q, {
11690
12596
  name: "chevron-down",
11691
12597
  size: y.value
11692
- }, null, 8, ["size"])], 8, Tp)
12598
+ }, null, 8, ["size"])], 8, Wp)
11693
12599
  ]),
11694
12600
  n[0] ||= s("span", {
11695
12601
  class: "coar-time-picker__separator",
11696
12602
  "aria-hidden": "true"
11697
12603
  }, ":", -1),
11698
- s("div", Ep, [
12604
+ s("div", Gp, [
11699
12605
  s("button", {
11700
12606
  type: "button",
11701
12607
  class: "coar-time-picker__btn coar-time-picker__btn--up",
@@ -11706,7 +12612,7 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11706
12612
  }, [u(Q, {
11707
12613
  name: "chevron-up",
11708
12614
  size: y.value
11709
- }, null, 8, ["size"])], 8, Dp),
12615
+ }, null, 8, ["size"])], 8, Kp),
11710
12616
  s("div", {
11711
12617
  class: "coar-time-picker__value",
11712
12618
  role: "spinbutton",
@@ -11716,7 +12622,7 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11716
12622
  "aria-valuemax": "59",
11717
12623
  "aria-label": z(i)("coar.ui.timePicker.minutes", void 0, "Minutes"),
11718
12624
  onKeydown: R
11719
- }, I(g.value.toString().padStart(2, "0")), 41, Op),
12625
+ }, I(g.value.toString().padStart(2, "0")), 41, qp),
11720
12626
  s("button", {
11721
12627
  type: "button",
11722
12628
  class: "coar-time-picker__btn coar-time-picker__btn--down",
@@ -11727,9 +12633,9 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11727
12633
  }, [u(Q, {
11728
12634
  name: "chevron-down",
11729
12635
  size: y.value
11730
- }, null, 8, ["size"])], 8, kp)
12636
+ }, null, 8, ["size"])], 8, Jp)
11731
12637
  ]),
11732
- m.value ? (E(), o("div", Ap, [
12638
+ m.value ? (E(), o("div", Yp, [
11733
12639
  s("button", {
11734
12640
  type: "button",
11735
12641
  class: "coar-time-picker__btn coar-time-picker__btn--up",
@@ -11740,7 +12646,7 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11740
12646
  }, [u(Q, {
11741
12647
  name: "chevron-up",
11742
12648
  size: y.value
11743
- }, null, 8, ["size"])], 8, jp),
12649
+ }, null, 8, ["size"])], 8, Xp),
11744
12650
  s("div", {
11745
12651
  class: "coar-time-picker__value coar-time-picker__period-value",
11746
12652
  role: "spinbutton",
@@ -11751,7 +12657,7 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11751
12657
  "aria-valuetext": p.value,
11752
12658
  "aria-label": "AM/PM",
11753
12659
  onKeydown: B
11754
- }, I(p.value), 41, Mp),
12660
+ }, I(p.value), 41, Zp),
11755
12661
  s("button", {
11756
12662
  type: "button",
11757
12663
  class: "coar-time-picker__btn coar-time-picker__btn--down",
@@ -11762,14 +12668,14 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11762
12668
  }, [u(Q, {
11763
12669
  name: "chevron-down",
11764
12670
  size: y.value
11765
- }, null, 8, ["size"])], 8, Np)
12671
+ }, null, 8, ["size"])], 8, Qp)
11766
12672
  ])) : a("", !0)
11767
- ], 8, xp)], 2));
12673
+ ], 8, Bp)], 2));
11768
12674
  }
11769
12675
  }), [["__scopeId", "data-v-a5cd4780"]]);
11770
12676
  //#endregion
11771
12677
  //#region src/components/date-time/_shared/date-helpers.ts
11772
- function Fp(e) {
12678
+ function em(e) {
11773
12679
  try {
11774
12680
  let t = new Intl.DateTimeFormat(e).formatToParts(new Date(2024, 0, 15)), n = t.findIndex((e) => e.type === "day"), r = t.findIndex((e) => e.type === "month"), i = t.findIndex((e) => e.type === "year");
11775
12681
  return n === -1 || r === -1 || i === -1 ? null : n < r && r < i ? "dd.mm.yyyy" : r < n && n < i ? "mm/dd/yyyy" : i < r && r < n ? "yyyy-mm-dd" : null;
@@ -11777,7 +12683,7 @@ function Fp(e) {
11777
12683
  return null;
11778
12684
  }
11779
12685
  }
11780
- function Ip(e) {
12686
+ function tm(e) {
11781
12687
  try {
11782
12688
  let t = new Intl.Locale(e);
11783
12689
  return (t.getWeekInfo?.() ?? t.weekInfo)?.firstDay === 7 ? 7 : 1;
@@ -11785,10 +12691,10 @@ function Ip(e) {
11785
12691
  return 1;
11786
12692
  }
11787
12693
  }
11788
- function Lp(e) {
12694
+ function nm(e) {
11789
12695
  return e.includes(".") ? "." : e.includes("/") ? "/" : "-";
11790
12696
  }
11791
- function Rp(e, t) {
12697
+ function rm(e, t) {
11792
12698
  let n = new Intl.DateTimeFormat(e, { weekday: "short" }), r = [];
11793
12699
  for (let e = 0; e < 7; e++) {
11794
12700
  let t = new Date(2024, 0, 1 + e);
@@ -11800,8 +12706,8 @@ function Rp(e, t) {
11800
12706
  }
11801
12707
  return r;
11802
12708
  }
11803
- function zp(e, t) {
11804
- let n = Lp(t), r = String(e.day).padStart(2, "0"), i = String(e.month).padStart(2, "0"), a = String(e.year);
12709
+ function im(e, t) {
12710
+ let n = nm(t), r = String(e.day).padStart(2, "0"), i = String(e.month).padStart(2, "0"), a = String(e.year);
11805
12711
  switch (t) {
11806
12712
  case "dd.mm.yyyy":
11807
12713
  case "dd/mm/yyyy": return `${r}${n}${i}${n}${a}`;
@@ -11810,9 +12716,9 @@ function zp(e, t) {
11810
12716
  default: return `${r}${n}${i}${n}${a}`;
11811
12717
  }
11812
12718
  }
11813
- function Bp(e, t, n) {
12719
+ function am(e, t, n) {
11814
12720
  if (!e) return null;
11815
- let r = Lp(t), i = e.split(r);
12721
+ let r = nm(t), i = e.split(r);
11816
12722
  if (i.length !== 3 || i.some((e) => e.length === 0 || !/^\d+$/.test(e))) return null;
11817
12723
  let a, o, s;
11818
12724
  try {
@@ -11840,19 +12746,19 @@ function Bp(e, t, n) {
11840
12746
  return null;
11841
12747
  }
11842
12748
  }
11843
- function Vp(e) {
12749
+ function om(e) {
11844
12750
  return new Date(e.year, e.month - 1, e.day);
11845
12751
  }
11846
- function Hp(e) {
11847
- let t = Vp(e), n = t.getDay() || 7;
12752
+ function sm(e) {
12753
+ let t = om(e), n = t.getDay() || 7;
11848
12754
  t.setDate(t.getDate() + 4 - n);
11849
12755
  let r = new Date(t.getFullYear(), 0, 1);
11850
12756
  return Math.ceil(((t.getTime() - r.getTime()) / 864e5 + 1) / 7);
11851
12757
  }
11852
- function Up(e, t) {
12758
+ function cm(e, t) {
11853
12759
  return t?.min && X.PlainDate.compare(e, t.min) < 0 ? t.min : t?.max && X.PlainDate.compare(e, t.max) > 0 ? t.max : e;
11854
12760
  }
11855
- function Wp(e, t) {
12761
+ function lm(e, t) {
11856
12762
  let n = e.toPlainDate({ day: 1 }), r = e.daysInMonth, i = n.dayOfWeek, a;
11857
12763
  a = t === 1 ? (i - 1 + 7) % 7 : i % 7;
11858
12764
  let o = [];
@@ -11876,20 +12782,20 @@ function Wp(e, t) {
11876
12782
  }
11877
12783
  //#endregion
11878
12784
  //#region src/components/date-time/scrollable-calendar/CoarScrollableCalendar.vue?vue&type=script&setup=true&lang.ts
11879
- var Gp = {
12785
+ var um = {
11880
12786
  key: 0,
11881
12787
  class: "coar-scrollable-calendar__week-spacer"
11882
- }, Kp = ["id", "data-year-month"], qp = { class: "coar-scrollable-calendar__month-name" }, Jp = { class: "coar-scrollable-calendar__month-year" }, Yp = {
12788
+ }, dm = ["id", "data-year-month"], fm = { class: "coar-scrollable-calendar__month-name" }, pm = { class: "coar-scrollable-calendar__month-year" }, mm = {
11883
12789
  key: 0,
11884
12790
  class: "coar-scrollable-calendar__week-number"
11885
- }, Xp = [
12791
+ }, hm = [
11886
12792
  "disabled",
11887
12793
  "tabindex",
11888
12794
  "data-date",
11889
12795
  "aria-selected",
11890
12796
  "aria-current",
11891
12797
  "onClick"
11892
- ], Zp = 12, Qp = 12, $p = 6, em = 25, tm = /* @__PURE__ */ Z(/* @__PURE__ */ d({
12798
+ ], gm = 12, _m = 12, vm = 6, ym = 25, bm = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11893
12799
  __name: "CoarScrollableCalendar",
11894
12800
  props: /* @__PURE__ */ _({
11895
12801
  min: { default: null },
@@ -11915,13 +12821,13 @@ var Gp = {
11915
12821
  setup(t, { emit: n }) {
11916
12822
  let i = t, c = V(t, "modelValue"), l = V(t, "activeMonth"), u = n, d = ne(), f = r(() => i.locale ?? d?.language.value ?? navigator.language), p = r(() => {
11917
12823
  if (i.dateFormatConfig) return i.dateFormatConfig;
11918
- let e = Fp(f.value), t = Ip(f.value);
12824
+ let e = em(f.value), t = tm(f.value);
11919
12825
  return {
11920
12826
  pattern: e ?? "dd.mm.yyyy",
11921
12827
  firstDayOfWeek: t
11922
12828
  };
11923
12829
  }), m = r(() => p.value.firstDayOfWeek), h = r(() => X.Now.plainDateISO()), g = r(() => {
11924
- let e = Rp(f.value, m.value), t = m.value;
12830
+ let e = rm(f.value, m.value), t = m.value;
11925
12831
  return e.map((e, n) => {
11926
12832
  let r;
11927
12833
  return r = t === 1 ? n + 1 : n === 0 ? 7 : n, {
@@ -11929,7 +12835,7 @@ var Gp = {
11929
12835
  isWeekend: r === 6 || r === 7
11930
12836
  };
11931
12837
  });
11932
- }), _ = A(X.Now.plainDateISO().toPlainYearMonth().subtract({ months: Zp })), v = A(X.Now.plainDateISO().toPlainYearMonth().add({ months: Qp })), x = A(null), S = A(null), T = A(!1), D = !1, O = !1, k = !1;
12838
+ }), _ = A(X.Now.plainDateISO().toPlainYearMonth().subtract({ months: gm })), v = A(X.Now.plainDateISO().toPlainYearMonth().add({ months: _m })), x = A(null), S = A(null), T = A(!1), D = !1, O = !1, k = !1;
11933
12839
  function M() {
11934
12840
  let e = S.value;
11935
12841
  return e ? e.querySelector("[data-overlayscrollbars-viewport]") ?? e : null;
@@ -11956,8 +12862,8 @@ var Gp = {
11956
12862
  };
11957
12863
  }
11958
12864
  function F(e) {
11959
- let t = f.value, n = new Intl.DateTimeFormat(t, { month: "long" }).format(new Date(e.year, e.month - 1, 1)), r = Wp(e, m.value), i = r.map((e) => P(e.date, e.isOutsideMonth)), a = [];
11960
- for (let e = 0; e < 6; e++) a.push(Hp(r[e * 7].date));
12865
+ let t = f.value, n = new Intl.DateTimeFormat(t, { month: "long" }).format(new Date(e.year, e.month - 1, 1)), r = lm(e, m.value), i = r.map((e) => P(e.date, e.isOutsideMonth)), a = [];
12866
+ for (let e = 0; e < 6; e++) a.push(sm(r[e * 7].date));
11961
12867
  return {
11962
12868
  yearMonth: e,
11963
12869
  monthName: n,
@@ -12048,7 +12954,7 @@ var Gp = {
12048
12954
  if (k) return;
12049
12955
  k = !0;
12050
12956
  let e = M(), t = e?.scrollHeight ?? 0, n = i.min?.toPlainYearMonth() ?? null, r = _.value, a = [];
12051
- for (let e = 0; e < $p; e++) {
12957
+ for (let e = 0; e < vm; e++) {
12052
12958
  let e = r.subtract({ months: 1 });
12053
12959
  if (n && X.PlainYearMonth.compare(e, n) < 0) break;
12054
12960
  r = e, a.unshift(F(r));
@@ -12069,7 +12975,7 @@ var Gp = {
12069
12975
  if (k) return;
12070
12976
  k = !0;
12071
12977
  let e = i.max?.toPlainYearMonth() ?? null, t = v.value, n = [];
12072
- for (let r = 0; r < $p; r++) {
12978
+ for (let r = 0; r < vm; r++) {
12073
12979
  let r = t.add({ months: 1 });
12074
12980
  if (e && X.PlainYearMonth.compare(r, e) > 0) break;
12075
12981
  t = r, n.push(F(t));
@@ -12084,14 +12990,14 @@ var Gp = {
12084
12990
  }
12085
12991
  function Y() {
12086
12992
  let e = R.value;
12087
- if (e.length <= em) return;
12088
- let t = e.slice(0, em);
12993
+ if (e.length <= ym) return;
12994
+ let t = e.slice(0, ym);
12089
12995
  R.value = t, v.value = t[t.length - 1].yearMonth;
12090
12996
  }
12091
12997
  function re() {
12092
12998
  let e = R.value;
12093
- if (e.length <= em) return;
12094
- let t = e.length - em, n = e.slice(t);
12999
+ if (e.length <= ym) return;
13000
+ let t = e.length - ym, n = e.slice(t);
12095
13001
  R.value = n, _.value = n[0].yearMonth;
12096
13002
  }
12097
13003
  function ie(e) {
@@ -12110,7 +13016,7 @@ var Gp = {
12110
13016
  r = n.add({ years: e });
12111
13017
  break;
12112
13018
  }
12113
- r = Up(r, {
13019
+ r = cm(r, {
12114
13020
  min: i.min,
12115
13021
  max: i.max
12116
13022
  }), x.value = r;
@@ -12174,7 +13080,7 @@ var Gp = {
12174
13080
  }), (n, r) => (E(), o("div", {
12175
13081
  class: "coar-scrollable-calendar",
12176
13082
  onKeydown: oe
12177
- }, [s("div", { class: b(["coar-scrollable-calendar__weekdays", { "coar-scrollable-calendar__weekdays--with-weeks": t.showWeekNumbers }]) }, [t.showWeekNumbers ? (E(), o("span", Gp)) : a("", !0), (E(!0), o(e, null, j(g.value, (e) => (E(), o("span", {
13083
+ }, [s("div", { class: b(["coar-scrollable-calendar__weekdays", { "coar-scrollable-calendar__weekdays--with-weeks": t.showWeekNumbers }]) }, [t.showWeekNumbers ? (E(), o("span", um)) : a("", !0), (E(!0), o(e, null, j(g.value, (e) => (E(), o("span", {
12178
13084
  key: e.name,
12179
13085
  class: b(["coar-scrollable-calendar__weekday", { "coar-scrollable-calendar__weekday--weekend": t.highlightWeekends && e.isWeekend }])
12180
13086
  }, I(e.name), 3))), 128))], 2), s("div", { class: b(["coar-scrollable-calendar__months-wrapper", { "coar-scrollable-calendar__months-wrapper--ready": T.value }]) }, [J((E(), o("div", {
@@ -12186,10 +13092,10 @@ var Gp = {
12186
13092
  key: n.yearMonth.toString(),
12187
13093
  "data-year-month": n.yearMonth.toString(),
12188
13094
  class: "coar-scrollable-calendar__month"
12189
- }, [s("div", { class: b(["coar-scrollable-calendar__month-header", { "coar-scrollable-calendar__month-header--with-weeks": t.showWeekNumbers }]) }, [s("span", qp, I(n.monthName), 1), s("span", Jp, I(n.year), 1)], 2), s("div", {
13095
+ }, [s("div", { class: b(["coar-scrollable-calendar__month-header", { "coar-scrollable-calendar__month-header--with-weeks": t.showWeekNumbers }]) }, [s("span", fm, I(n.monthName), 1), s("span", pm, I(n.year), 1)], 2), s("div", {
12190
13096
  class: b(["coar-scrollable-calendar__grid", { "coar-scrollable-calendar__grid--with-weeks": t.showWeekNumbers }]),
12191
13097
  role: "grid"
12192
- }, [(E(!0), o(e, null, j(n.days, (r, i) => (E(), o(e, { key: r.date.toString() }, [t.showWeekNumbers && i % 7 == 0 ? (E(), o("span", Yp, I(n.weekNumbers[i / 7]), 1)) : a("", !0), s("button", {
13098
+ }, [(E(!0), o(e, null, j(n.days, (r, i) => (E(), o(e, { key: r.date.toString() }, [t.showWeekNumbers && i % 7 == 0 ? (E(), o("span", mm, I(n.weekNumbers[i / 7]), 1)) : a("", !0), s("button", {
12193
13099
  type: "button",
12194
13100
  class: b(["coar-scrollable-calendar__day", [r.markerCssClass, {
12195
13101
  "coar-scrollable-calendar__day--outside": r.isOutsideMonth,
@@ -12206,12 +13112,12 @@ var Gp = {
12206
13112
  "aria-selected": r.isSelected,
12207
13113
  "aria-current": r.isToday ? "date" : void 0,
12208
13114
  onClick: (e) => ie(r.date)
12209
- }, I(r.day), 11, Xp)], 64))), 128))], 2)], 8, Kp))), 128))])), [[z(Ua), {
13115
+ }, I(r.day), 11, hm)], 64))), 128))], 2)], 8, dm))), 128))])), [[z(Ua), {
12210
13116
  overflowX: "hidden",
12211
13117
  autoHide: "leave"
12212
13118
  }]])], 2)], 32));
12213
13119
  }
12214
- }), [["__scopeId", "data-v-e9dd37f6"]]), nm = { class: "coar-month-list-host" }, rm = { class: "coar-month-list" }, im = { class: "coar-month-list__year-stepper" }, am = ["disabled", "aria-label"], om = { class: "coar-month-list__year" }, sm = ["disabled", "aria-label"], cm = ["aria-label"], lm = ["aria-selected", "onClick"], um = /* @__PURE__ */ Z(/* @__PURE__ */ d({
13120
+ }), [["__scopeId", "data-v-e9dd37f6"]]), xm = { class: "coar-month-list-host" }, Sm = { class: "coar-month-list" }, Cm = { class: "coar-month-list__year-stepper" }, wm = ["disabled", "aria-label"], Tm = { class: "coar-month-list__year" }, Em = ["disabled", "aria-label"], Dm = ["aria-label"], Om = ["aria-selected", "onClick"], km = /* @__PURE__ */ Z(/* @__PURE__ */ d({
12215
13121
  __name: "CoarMonthList",
12216
13122
  props: /* @__PURE__ */ _({
12217
13123
  locale: { default: void 0 },
@@ -12268,7 +13174,7 @@ var Gp = {
12268
13174
  y(() => T());
12269
13175
  }), w(() => {
12270
13176
  setTimeout(() => T(), 50);
12271
- }), (t, n) => (E(), o("div", nm, [s("div", rm, [s("div", im, [
13177
+ }), (t, n) => (E(), o("div", xm, [s("div", Sm, [s("div", Cm, [
12272
13178
  s("button", {
12273
13179
  type: "button",
12274
13180
  class: "coar-month-list__year-btn",
@@ -12278,8 +13184,8 @@ var Gp = {
12278
13184
  }, [u(Q, {
12279
13185
  name: "chevron-left",
12280
13186
  size: "s"
12281
- })], 8, am),
12282
- s("span", om, I(p.value), 1),
13187
+ })], 8, wm),
13188
+ s("span", Tm, I(p.value), 1),
12283
13189
  s("button", {
12284
13190
  type: "button",
12285
13191
  class: "coar-month-list__year-btn",
@@ -12289,7 +13195,7 @@ var Gp = {
12289
13195
  }, [u(Q, {
12290
13196
  name: "chevron-right",
12291
13197
  size: "s"
12292
- })], 8, sm)
13198
+ })], 8, Em)
12293
13199
  ]), J((E(), o("div", {
12294
13200
  ref_key: "monthsContainerRef",
12295
13201
  ref: C,
@@ -12303,16 +13209,16 @@ var Gp = {
12303
13209
  role: "option",
12304
13210
  "aria-selected": e.isActive,
12305
13211
  onClick: (t) => S(e.yearMonth)
12306
- }, I(e.name), 11, lm))), 128))], 8, cm)), [[z(Ua), {
13212
+ }, I(e.name), 11, Om))), 128))], 8, Dm)), [[z(Ua), {
12307
13213
  overflowX: "hidden",
12308
13214
  autoHide: "leave"
12309
13215
  }]])])]));
12310
13216
  }
12311
- }), [["__scopeId", "data-v-11c8cf34"]]), dm = {
13217
+ }), [["__scopeId", "data-v-11c8cf34"]]), Am = {
12312
13218
  pattern: "dd.mm.yyyy",
12313
13219
  firstDayOfWeek: 1
12314
13220
  };
12315
- function fm(e) {
13221
+ function jm(e) {
12316
13222
  let t = ne(), n = re(), i = r(() => e.locale?.value ? e.locale.value : t.language.value || navigator.language || "en"), a = r(() => {
12317
13223
  if (e.dateFormat?.value) return e.dateFormat.value;
12318
13224
  let n = t.localeData.value;
@@ -12320,12 +13226,12 @@ function fm(e) {
12320
13226
  pattern: n.date.pattern,
12321
13227
  firstDayOfWeek: n.date.firstDayOfWeek === 0 ? 7 : n.date.firstDayOfWeek
12322
13228
  };
12323
- let r = Fp(i.value), a = Ip(i.value);
13229
+ let r = em(i.value), a = tm(i.value);
12324
13230
  return r ? {
12325
13231
  pattern: r,
12326
13232
  firstDayOfWeek: a
12327
13233
  } : {
12328
- ...dm,
13234
+ ...Am,
12329
13235
  firstDayOfWeek: a
12330
13236
  };
12331
13237
  }), o = r(() => {
@@ -12354,10 +13260,10 @@ function fm(e) {
12354
13260
  }
12355
13261
  //#endregion
12356
13262
  //#region src/components/date-time/_shared/types.ts
12357
- var pm = {
13263
+ var Mm = {
12358
13264
  use24Hour: "auto",
12359
13265
  minuteStep: 5
12360
- }, mm = {
13266
+ }, Nm = {
12361
13267
  "dd.mm.yyyy": "dd/mm/yyyy",
12362
13268
  "dd/mm/yyyy": "dd/mm/yyyy",
12363
13269
  "mm/dd/yyyy": "mm/dd/yyyy",
@@ -12365,28 +13271,28 @@ var pm = {
12365
13271
  };
12366
13272
  //#endregion
12367
13273
  //#region src/components/date-time/_shared/maskito-config.ts
12368
- function hm(e) {
13274
+ function Pm(e) {
12369
13275
  return oe({
12370
- mode: mm[e],
12371
- separator: Lp(e)
13276
+ mode: Nm[e],
13277
+ separator: nm(e)
12372
13278
  });
12373
13279
  }
12374
- function gm(e, t) {
13280
+ function Fm(e, t) {
12375
13281
  return se({
12376
- dateMode: mm[e],
12377
- dateSeparator: Lp(e),
13282
+ dateMode: Nm[e],
13283
+ dateSeparator: nm(e),
12378
13284
  timeMode: t ? "HH:MM AA" : "HH:MM"
12379
13285
  });
12380
13286
  }
12381
13287
  //#endregion
12382
13288
  //#region src/components/date-time/plain-date-picker/CoarPlainDatePickerPanel.vue?vue&type=script&setup=true&lang.ts
12383
- var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"], ym = { class: "coar-plain-date-picker-side-column" }, bm = { class: "coar-plain-date-picker-year-stepper" }, xm = ["disabled", "aria-label"], Sm = { class: "coar-plain-date-picker-year" }, Cm = ["disabled", "aria-label"], wm = { class: "coar-plain-date-picker-month-list-wrapper" }, Tm = ["aria-label"], Em = { class: "coar-plain-date-picker-month-list-content" }, Dm = ["aria-selected", "onClick"], Om = {
13289
+ var Im = { class: "coar-plain-date-picker-calendar-column" }, Lm = ["aria-label"], Rm = { class: "coar-plain-date-picker-side-column" }, zm = { class: "coar-plain-date-picker-year-stepper" }, Bm = ["disabled", "aria-label"], Vm = { class: "coar-plain-date-picker-year" }, Hm = ["disabled", "aria-label"], Um = { class: "coar-plain-date-picker-month-list-wrapper" }, Wm = ["aria-label"], Gm = { class: "coar-plain-date-picker-month-list-content" }, Km = ["aria-selected", "onClick"], qm = {
12384
13290
  key: 0,
12385
13291
  class: "coar-plain-date-picker-events"
12386
- }, km = { class: "coar-plain-date-picker-events-list" }, Am = { class: "coar-plain-date-picker-events-content" }, jm = { class: "coar-plain-date-picker-event-details" }, Mm = { class: "coar-plain-date-picker-event-text" }, Nm = {
13292
+ }, Jm = { class: "coar-plain-date-picker-events-list" }, Ym = { class: "coar-plain-date-picker-events-content" }, Xm = { class: "coar-plain-date-picker-event-details" }, Zm = { class: "coar-plain-date-picker-event-text" }, Qm = {
12387
13293
  key: 0,
12388
13294
  class: "coar-plain-date-picker-event-dates"
12389
- }, Pm = /* @__PURE__ */ d({
13295
+ }, $m = /* @__PURE__ */ d({
12390
13296
  __name: "CoarPlainDatePickerPanel",
12391
13297
  props: {
12392
13298
  modelValue: {},
@@ -12429,7 +13335,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12429
13335
  return n && r;
12430
13336
  }) : [];
12431
13337
  });
12432
- return (n, r) => (E(), o("div", { class: b(["coar-plain-date-picker-panel", { "coar-plain-date-picker-panel--with-weeks": t.showWeekNumbers }]) }, [s("div", _m, [u(tm, {
13338
+ return (n, r) => (E(), o("div", { class: b(["coar-plain-date-picker-panel", { "coar-plain-date-picker-panel--with-weeks": t.showWeekNumbers }]) }, [s("div", Im, [u(bm, {
12433
13339
  "model-value": t.modelValue,
12434
13340
  "active-month": t.activeMonth,
12435
13341
  min: t.min ?? void 0,
@@ -12462,8 +13368,8 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12462
13368
  }, [u(Q, {
12463
13369
  name: h.value === "up" ? "chevron-up" : "chevron-down",
12464
13370
  size: "xs"
12465
- }, null, 8, ["name"])], 8, vm)) : a("", !0)]), s("div", ym, [
12466
- s("div", bm, [
13371
+ }, null, 8, ["name"])], 8, Lm)) : a("", !0)]), s("div", Rm, [
13372
+ s("div", zm, [
12467
13373
  s("button", {
12468
13374
  type: "button",
12469
13375
  class: "coar-plain-date-picker-year-btn",
@@ -12473,8 +13379,8 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12473
13379
  }, [u(Q, {
12474
13380
  name: "chevron-left",
12475
13381
  size: "s"
12476
- })], 8, xm),
12477
- s("span", Sm, I(c.value), 1),
13382
+ })], 8, Bm),
13383
+ s("span", Vm, I(c.value), 1),
12478
13384
  s("button", {
12479
13385
  type: "button",
12480
13386
  class: "coar-plain-date-picker-year-btn",
@@ -12484,31 +13390,31 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12484
13390
  }, [u(Q, {
12485
13391
  name: "chevron-right",
12486
13392
  size: "s"
12487
- })], 8, Cm)
13393
+ })], 8, Hm)
12488
13394
  ]),
12489
- s("div", wm, [s("div", {
13395
+ s("div", Um, [s("div", {
12490
13396
  class: "coar-plain-date-picker-month-list",
12491
13397
  role: "listbox",
12492
13398
  "aria-label": z(i)("coar.ui.datePicker.months", void 0, "Months")
12493
- }, [s("div", Em, [(E(!0), o(e, null, j(p.value, (e) => (E(), o("button", {
13399
+ }, [s("div", Gm, [(E(!0), o(e, null, j(p.value, (e) => (E(), o("button", {
12494
13400
  key: e.month,
12495
13401
  type: "button",
12496
13402
  class: b(["coar-plain-date-picker-month-item", { "coar-plain-date-picker-month-item--active": e.isActive }]),
12497
13403
  role: "option",
12498
13404
  "aria-selected": e.isActive,
12499
13405
  onClick: (n) => t.onSelectMonth(e.yearMonth)
12500
- }, I(e.name), 11, Dm))), 128))])], 8, Tm)]),
12501
- _.value.length > 0 ? (E(), o("div", Om, [s("div", km, [s("div", Am, [(E(!0), o(e, null, j(_.value, (e) => (E(), o("div", {
13406
+ }, I(e.name), 11, Km))), 128))])], 8, Wm)]),
13407
+ _.value.length > 0 ? (E(), o("div", qm, [s("div", Jm, [s("div", Ym, [(E(!0), o(e, null, j(_.value, (e) => (E(), o("div", {
12502
13408
  key: e.description,
12503
13409
  class: "coar-plain-date-picker-event-item"
12504
- }, [r[3] ||= s("span", { class: "coar-plain-date-picker-event-dot" }, null, -1), s("div", jm, [s("span", Mm, I(e.description), 1), e.endDate && !e.startDate.equals(e.endDate) ? (E(), o("span", Nm, I(e.startDate.day) + "/" + I(e.startDate.month) + " – " + I(e.endDate.day) + "/" + I(e.endDate.month), 1)) : a("", !0)])]))), 128))])])])) : a("", !0)
13410
+ }, [r[3] ||= s("span", { class: "coar-plain-date-picker-event-dot" }, null, -1), s("div", Xm, [s("span", Zm, I(e.description), 1), e.endDate && !e.startDate.equals(e.endDate) ? (E(), o("span", Qm, I(e.startDate.day) + "/" + I(e.startDate.month) + " – " + I(e.endDate.day) + "/" + I(e.endDate.month), 1)) : a("", !0)])]))), 128))])])])) : a("", !0)
12505
13411
  ])], 2));
12506
13412
  }
12507
- }), Fm = {
13413
+ }), eh = {
12508
13414
  key: 0,
12509
13415
  class: "coar-plain-date-picker-required",
12510
13416
  "aria-hidden": "true"
12511
- }, Im = ["aria-expanded", "aria-controls"], Lm = ["aria-label"], Rm = [
13417
+ }, th = ["aria-expanded", "aria-controls"], nh = ["aria-label"], rh = [
12512
13418
  "value",
12513
13419
  "placeholder",
12514
13420
  "disabled",
@@ -12516,7 +13422,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12516
13422
  "aria-labelledby",
12517
13423
  "aria-invalid",
12518
13424
  "aria-describedby"
12519
- ], zm = ["aria-label", "disabled"], Bm = ["title"], Vm = /* @__PURE__ */ Z(/* @__PURE__ */ d({
13425
+ ], ih = ["aria-label", "disabled"], ah = ["title"], oh = /* @__PURE__ */ Z(/* @__PURE__ */ d({
12520
13426
  __name: "CoarPlainDatePicker",
12521
13427
  props: /* @__PURE__ */ _({
12522
13428
  label: { default: "" },
@@ -12567,17 +13473,17 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12567
13473
  }),
12568
13474
  emits: /* @__PURE__ */ _(["opened", "closed"], ["update:modelValue"]),
12569
13475
  setup(e, { emit: t }) {
12570
- let n = e, i = V(e, "modelValue"), c = t, { t: d } = Y(), f = fm({
13476
+ let n = e, i = V(e, "modelValue"), c = t, { t: d } = Y(), f = jm({
12571
13477
  locale: r(() => n.locale),
12572
13478
  dateFormat: r(() => n.dateFormat)
12573
13479
  }), p = A(i.value?.toPlainYearMonth() ?? X.Now.plainDateISO().toPlainYearMonth()), m = `coar-plain-date-picker-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, h = `${m}-label`, _ = `${m}-input`, v = `${m}-panel`, x = `${m}-message`, S = A(null), T = A(null), D = null, k = A(""), j;
12574
13480
  function M() {
12575
13481
  if (j?.destroy(), !T.value) return;
12576
- let e = hm(f.effectiveDateFormat.value.pattern);
13482
+ let e = Pm(f.effectiveDateFormat.value.pattern);
12577
13483
  j = new ae(T.value, e);
12578
13484
  }
12579
13485
  G(i, (e) => {
12580
- e ? k.value = zp(e, f.effectiveDateFormat.value.pattern) : k.value = "";
13486
+ e ? k.value = im(e, f.effectiveDateFormat.value.pattern) : k.value = "";
12581
13487
  }, { immediate: !0 }), G([T, () => f.effectiveDateFormat.value], () => {
12582
13488
  y(() => M());
12583
13489
  }), C(() => {
@@ -12653,7 +13559,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12653
13559
  },
12654
13560
  content: {
12655
13561
  kind: "component",
12656
- component: g(Pm)
13562
+ component: g($m)
12657
13563
  },
12658
13564
  inputs: t
12659
13565
  }), f.open(), c("opened"), D.afterClosed.then(() => {
@@ -12678,7 +13584,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12678
13584
  function te(e) {
12679
13585
  let t = e.target;
12680
13586
  k.value = t.value;
12681
- let r = Bp(t.value, f.effectiveDateFormat.value.pattern, {
13587
+ let r = am(t.value, f.effectiveDateFormat.value.pattern, {
12682
13588
  min: n.min,
12683
13589
  max: n.max
12684
13590
  });
@@ -12686,10 +13592,10 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12686
13592
  }
12687
13593
  function ne() {
12688
13594
  let e = k.value;
12689
- !Bp(e, f.effectiveDateFormat.value.pattern, {
13595
+ !am(e, f.effectiveDateFormat.value.pattern, {
12690
13596
  min: n.min,
12691
13597
  max: n.max
12692
- }) && e.length > 0 && (i.value ? k.value = zp(i.value, f.effectiveDateFormat.value.pattern) : k.value = "");
13598
+ }) && e.length > 0 && (i.value ? k.value = im(i.value, f.effectiveDateFormat.value.pattern) : k.value = "");
12693
13599
  }
12694
13600
  return (t, n) => (E(), o("div", { class: b(["coar-plain-date-picker-wrapper", [`coar-plain-date-picker--${e.size}`, {
12695
13601
  "coar-plain-date-picker--disabled": F.value,
@@ -12701,7 +13607,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12701
13607
  key: 0,
12702
13608
  id: h,
12703
13609
  class: "coar-plain-date-picker-label"
12704
- }, [l(I(e.label) + " ", 1), e.required ? (E(), o("span", Fm, "*")) : a("", !0)])) : a("", !0),
13610
+ }, [l(I(e.label) + " ", 1), e.required ? (E(), o("span", eh, "*")) : a("", !0)])) : a("", !0),
12705
13611
  s("div", {
12706
13612
  ref_key: "triggerRef",
12707
13613
  ref: S,
@@ -12725,7 +13631,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12725
13631
  }, [u(Q, {
12726
13632
  name: "x",
12727
13633
  size: "auto"
12728
- })], 10, Lm),
13634
+ })], 10, nh),
12729
13635
  s("input", {
12730
13636
  id: _,
12731
13637
  ref_key: "dateInputRef",
@@ -12743,7 +13649,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12743
13649
  onInput: te,
12744
13650
  onBlur: ne,
12745
13651
  onKeydown: J
12746
- }, null, 40, Rm),
13652
+ }, null, 40, rh),
12747
13653
  s("button", {
12748
13654
  type: "button",
12749
13655
  class: "coar-plain-date-picker-btn",
@@ -12754,23 +13660,23 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12754
13660
  }, [u(Q, {
12755
13661
  name: "calendar",
12756
13662
  size: "s"
12757
- })], 8, zm)
12758
- ], 10, Im),
13663
+ })], 8, ih)
13664
+ ], 10, th),
12759
13665
  P.value ? (E(), o("div", {
12760
13666
  key: 1,
12761
13667
  id: x,
12762
13668
  class: b(["coar-form-field-message", { "coar-form-field-message--error": N.value }]),
12763
13669
  title: P.value
12764
- }, I(P.value), 11, Bm)) : a("", !0)
13670
+ }, I(P.value), 11, ah)) : a("", !0)
12765
13671
  ], 2));
12766
13672
  }
12767
- }), [["__scopeId", "data-v-2c8a34e4"]]), Hm = { class: "coar-pdtp-calendar-column" }, Um = ["aria-label"], Wm = { class: "coar-pdtp-side-column" }, Gm = { class: "coar-pdtp-year-stepper" }, Km = ["disabled", "aria-label"], qm = { class: "coar-pdtp-year" }, Jm = ["disabled", "aria-label"], Ym = { class: "coar-pdtp-month-list-wrapper" }, Xm = ["aria-label"], Zm = { class: "coar-pdtp-month-list-content" }, Qm = ["aria-selected", "onClick"], $m = { class: "coar-pdtp-time-section" }, eh = {
13673
+ }), [["__scopeId", "data-v-2c8a34e4"]]), sh = { class: "coar-pdtp-calendar-column" }, ch = ["aria-label"], lh = { class: "coar-pdtp-side-column" }, uh = { class: "coar-pdtp-year-stepper" }, dh = ["disabled", "aria-label"], fh = { class: "coar-pdtp-year" }, ph = ["disabled", "aria-label"], mh = { class: "coar-pdtp-month-list-wrapper" }, hh = ["aria-label"], gh = { class: "coar-pdtp-month-list-content" }, _h = ["aria-selected", "onClick"], vh = { class: "coar-pdtp-time-section" }, yh = {
12768
13674
  key: 0,
12769
13675
  class: "coar-pdtp-events"
12770
- }, th = { class: "coar-pdtp-events-list" }, nh = { class: "coar-pdtp-events-content" }, rh = { class: "coar-pdtp-event-details" }, ih = { class: "coar-pdtp-event-text" }, ah = {
13676
+ }, bh = { class: "coar-pdtp-events-list" }, xh = { class: "coar-pdtp-events-content" }, Sh = { class: "coar-pdtp-event-details" }, Ch = { class: "coar-pdtp-event-text" }, wh = {
12771
13677
  key: 0,
12772
13678
  class: "coar-pdtp-event-dates"
12773
- }, oh = /* @__PURE__ */ d({
13679
+ }, Th = /* @__PURE__ */ d({
12774
13680
  __name: "CoarPlainDateTimePickerPanel",
12775
13681
  props: {
12776
13682
  modelValue: {},
@@ -12821,7 +13727,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12821
13727
  return n && r;
12822
13728
  }) : [];
12823
13729
  });
12824
- return (n, r) => (E(), o("div", { class: b(["coar-pdtp-panel", { "coar-pdtp-panel--with-weeks": t.showWeekNumbers }]) }, [s("div", Hm, [u(tm, {
13730
+ return (n, r) => (E(), o("div", { class: b(["coar-pdtp-panel", { "coar-pdtp-panel--with-weeks": t.showWeekNumbers }]) }, [s("div", sh, [u(bm, {
12825
13731
  "model-value": t.modelValue,
12826
13732
  "active-month": t.activeMonth,
12827
13733
  min: t.min ?? void 0,
@@ -12854,8 +13760,8 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12854
13760
  }, [u(Q, {
12855
13761
  name: h.value === "up" ? "chevron-up" : "chevron-down",
12856
13762
  size: "xs"
12857
- }, null, 8, ["name"])], 8, Um)) : a("", !0)]), s("div", Wm, [
12858
- s("div", Gm, [
13763
+ }, null, 8, ["name"])], 8, ch)) : a("", !0)]), s("div", lh, [
13764
+ s("div", uh, [
12859
13765
  s("button", {
12860
13766
  type: "button",
12861
13767
  class: "coar-pdtp-year-btn",
@@ -12865,8 +13771,8 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12865
13771
  }, [u(Q, {
12866
13772
  name: "chevron-left",
12867
13773
  size: "s"
12868
- })], 8, Km),
12869
- s("span", qm, I(c.value), 1),
13774
+ })], 8, dh),
13775
+ s("span", fh, I(c.value), 1),
12870
13776
  s("button", {
12871
13777
  type: "button",
12872
13778
  class: "coar-pdtp-year-btn",
@@ -12876,21 +13782,21 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12876
13782
  }, [u(Q, {
12877
13783
  name: "chevron-right",
12878
13784
  size: "s"
12879
- })], 8, Jm)
13785
+ })], 8, ph)
12880
13786
  ]),
12881
- s("div", Ym, [s("div", {
13787
+ s("div", mh, [s("div", {
12882
13788
  class: "coar-pdtp-month-list",
12883
13789
  role: "listbox",
12884
13790
  "aria-label": z(i)("coar.ui.datePicker.months", void 0, "Months")
12885
- }, [s("div", Zm, [(E(!0), o(e, null, j(p.value, (e) => (E(), o("button", {
13791
+ }, [s("div", gh, [(E(!0), o(e, null, j(p.value, (e) => (E(), o("button", {
12886
13792
  key: e.month,
12887
13793
  type: "button",
12888
13794
  class: b(["coar-pdtp-month-item", { "coar-pdtp-month-item--active": e.isActive }]),
12889
13795
  role: "option",
12890
13796
  "aria-selected": e.isActive,
12891
13797
  onClick: (n) => t.onSelectMonth(e.yearMonth)
12892
- }, I(e.name), 11, Qm))), 128))])], 8, Xm)]),
12893
- s("div", $m, [u(Pp, {
13798
+ }, I(e.name), 11, _h))), 128))])], 8, hh)]),
13799
+ s("div", vh, [u($p, {
12894
13800
  "model-value": t.selectedTime,
12895
13801
  "use24-hour": t.use24Hour,
12896
13802
  "minute-step": t.minuteStep,
@@ -12912,17 +13818,17 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12912
13818
  "max-time",
12913
13819
  "onUpdate:modelValue"
12914
13820
  ])]),
12915
- _.value.length > 0 ? (E(), o("div", eh, [s("div", th, [s("div", nh, [(E(!0), o(e, null, j(_.value, (e) => (E(), o("div", {
13821
+ _.value.length > 0 ? (E(), o("div", yh, [s("div", bh, [s("div", xh, [(E(!0), o(e, null, j(_.value, (e) => (E(), o("div", {
12916
13822
  key: e.description,
12917
13823
  class: "coar-pdtp-event-item"
12918
- }, [r[3] ||= s("span", { class: "coar-pdtp-event-dot" }, null, -1), s("div", rh, [s("span", ih, I(e.description), 1), e.endDate && !e.startDate.equals(e.endDate) ? (E(), o("span", ah, I(e.startDate.day) + "/" + I(e.startDate.month) + " – " + I(e.endDate.day) + "/" + I(e.endDate.month), 1)) : a("", !0)])]))), 128))])])])) : a("", !0)
13824
+ }, [r[3] ||= s("span", { class: "coar-pdtp-event-dot" }, null, -1), s("div", Sh, [s("span", Ch, I(e.description), 1), e.endDate && !e.startDate.equals(e.endDate) ? (E(), o("span", wh, I(e.startDate.day) + "/" + I(e.startDate.month) + " – " + I(e.endDate.day) + "/" + I(e.endDate.month), 1)) : a("", !0)])]))), 128))])])])) : a("", !0)
12919
13825
  ])], 2));
12920
13826
  }
12921
- }), sh = {
13827
+ }), Eh = {
12922
13828
  key: 0,
12923
13829
  class: "coar-pdtp-required",
12924
13830
  "aria-hidden": "true"
12925
- }, ch = ["aria-expanded", "aria-controls"], lh = ["aria-label"], uh = [
13831
+ }, Dh = ["aria-expanded", "aria-controls"], Oh = ["aria-label"], kh = [
12926
13832
  "value",
12927
13833
  "placeholder",
12928
13834
  "disabled",
@@ -12930,7 +13836,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12930
13836
  "aria-labelledby",
12931
13837
  "aria-invalid",
12932
13838
  "aria-describedby"
12933
- ], dh = ["aria-label", "disabled"], fh = ["title"], ph = /* @__PURE__ */ Z(/* @__PURE__ */ d({
13839
+ ], Ah = ["aria-label", "disabled"], jh = ["title"], Mh = /* @__PURE__ */ Z(/* @__PURE__ */ d({
12934
13840
  __name: "CoarPlainDateTimePicker",
12935
13841
  props: /* @__PURE__ */ _({
12936
13842
  label: { default: "" },
@@ -12986,17 +13892,17 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12986
13892
  }),
12987
13893
  emits: /* @__PURE__ */ _(["opened", "closed"], ["update:modelValue"]),
12988
13894
  setup(e, { emit: t }) {
12989
- let n = e, i = V(e, "modelValue"), c = t, { t: d } = Y(), f = fm({
13895
+ let n = e, i = V(e, "modelValue"), c = t, { t: d } = Y(), f = jm({
12990
13896
  locale: r(() => n.locale),
12991
13897
  dateFormat: r(() => n.dateFormat)
12992
- }), p = A(i.value?.toPlainDate().toPlainYearMonth() ?? X.Now.plainDateISO().toPlainYearMonth()), m = A(null), h = `coar-plain-dt-picker-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, _ = `${h}-label`, v = `${h}-input`, x = `${h}-panel`, S = `${h}-message`, T = A(null), D = A(null), k = null, j = A(""), M = r(() => n.use24Hour === !0 ? !0 : n.use24Hour === !1 ? !1 : !pp(f.effectiveLocale.value)), N;
13898
+ }), p = A(i.value?.toPlainDate().toPlainYearMonth() ?? X.Now.plainDateISO().toPlainYearMonth()), m = A(null), h = `coar-plain-dt-picker-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, _ = `${h}-label`, v = `${h}-input`, x = `${h}-panel`, S = `${h}-message`, T = A(null), D = A(null), k = null, j = A(""), M = r(() => n.use24Hour === !0 ? !0 : n.use24Hour === !1 ? !1 : !Mp(f.effectiveLocale.value)), N;
12993
13899
  function P() {
12994
13900
  if (N?.destroy(), !D.value) return;
12995
- let e = gm(f.effectiveDateFormat.value.pattern, !M.value);
13901
+ let e = Fm(f.effectiveDateFormat.value.pattern, !M.value);
12996
13902
  N = new ae(D.value, e);
12997
13903
  }
12998
13904
  function F(e) {
12999
- return `${zp(e.toPlainDate(), f.effectiveDateFormat.value.pattern)} ${mp(e.hour, e.minute, M.value)}`;
13905
+ return `${im(e.toPlainDate(), f.effectiveDateFormat.value.pattern)} ${Np(e.hour, e.minute, M.value)}`;
13000
13906
  }
13001
13907
  G(i, (e) => {
13002
13908
  j.value = e ? F(e) : "";
@@ -13048,7 +13954,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
13048
13954
  onDateSelected: (e) => {
13049
13955
  let t = K.value ?? n.defaultTime, r = e.toPlainDateTime({
13050
13956
  hour: t.hours,
13051
- minute: bp(t.minutes, n.minuteStep)
13957
+ minute: zp(t.minutes, n.minuteStep)
13052
13958
  });
13053
13959
  r = oe(r), i.value = r;
13054
13960
  },
@@ -13125,7 +14031,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
13125
14031
  },
13126
14032
  content: {
13127
14033
  kind: "component",
13128
- component: g(oh)
14034
+ component: g(Th)
13129
14035
  },
13130
14036
  inputs: t
13131
14037
  }), f.open(), c("opened"), k.afterClosed.then(() => {
@@ -13161,12 +14067,12 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
13161
14067
  if (!e) return null;
13162
14068
  let t = e.split(" ");
13163
14069
  if (t.length < 2) return null;
13164
- let n = Bp(t[0], f.effectiveDateFormat.value.pattern, {
14070
+ let n = am(t[0], f.effectiveDateFormat.value.pattern, {
13165
14071
  min: q.value,
13166
14072
  max: J.value
13167
14073
  });
13168
14074
  if (!n) return null;
13169
- let r = hp(t.slice(1).join(" "));
14075
+ let r = Pp(t.slice(1).join(" "));
13170
14076
  return r ? n.toPlainDateTime({
13171
14077
  hour: r.hours,
13172
14078
  minute: r.minutes
@@ -13182,7 +14088,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
13182
14088
  key: 0,
13183
14089
  id: _,
13184
14090
  class: "coar-pdtp-label"
13185
- }, [l(I(e.label) + " ", 1), e.required ? (E(), o("span", sh, "*")) : a("", !0)])) : a("", !0),
14091
+ }, [l(I(e.label) + " ", 1), e.required ? (E(), o("span", Eh, "*")) : a("", !0)])) : a("", !0),
13186
14092
  s("div", {
13187
14093
  ref_key: "triggerRef",
13188
14094
  ref: T,
@@ -13206,7 +14112,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
13206
14112
  }, [u(Q, {
13207
14113
  name: "x",
13208
14114
  size: "auto"
13209
- })], 10, lh),
14115
+ })], 10, Oh),
13210
14116
  s("input", {
13211
14117
  id: v,
13212
14118
  ref_key: "dateInputRef",
@@ -13224,7 +14130,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
13224
14130
  onInput: fe,
13225
14131
  onBlur: pe,
13226
14132
  onKeydown: ue
13227
- }, null, 40, uh),
14133
+ }, null, 40, kh),
13228
14134
  s("button", {
13229
14135
  type: "button",
13230
14136
  class: "coar-pdtp-btn",
@@ -13235,32 +14141,32 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
13235
14141
  }, [u(Q, {
13236
14142
  name: "calendar",
13237
14143
  size: "s"
13238
- })], 8, dh)
13239
- ], 10, ch),
14144
+ })], 8, Ah)
14145
+ ], 10, Dh),
13240
14146
  R.value ? (E(), o("div", {
13241
14147
  key: 1,
13242
14148
  id: S,
13243
14149
  class: b(["coar-form-field-message", { "coar-form-field-message--error": L.value }]),
13244
14150
  title: R.value
13245
- }, I(R.value), 11, fh)) : a("", !0)
14151
+ }, I(R.value), 11, jh)) : a("", !0)
13246
14152
  ], 2));
13247
14153
  }
13248
14154
  }), [["__scopeId", "data-v-55dfa9b2"]]);
13249
14155
  //#endregion
13250
14156
  //#region src/components/date-time/_shared/timezone-helpers.ts
13251
- function mh() {
14157
+ function Nh() {
13252
14158
  try {
13253
14159
  return ["UTC", ...Intl.supportedValuesOf("timeZone")];
13254
14160
  } catch {
13255
14161
  return ["UTC"];
13256
14162
  }
13257
14163
  }
13258
- function hh(e, t) {
14164
+ function Ph(e, t) {
13259
14165
  let n = t ?? X.Now.instant();
13260
14166
  try {
13261
14167
  let t = n.toZonedDateTimeISO(e).offsetNanoseconds, r = Math.round(t / 6e10);
13262
14168
  return {
13263
- offset: gh(r),
14169
+ offset: Fh(r),
13264
14170
  offsetMinutes: r
13265
14171
  };
13266
14172
  } catch {
@@ -13270,21 +14176,21 @@ function hh(e, t) {
13270
14176
  };
13271
14177
  }
13272
14178
  }
13273
- function gh(e) {
14179
+ function Fh(e) {
13274
14180
  if (e === 0) return "UTC";
13275
14181
  let t = e >= 0 ? "+" : "-", n = Math.abs(e), r = Math.floor(n / 60), i = n % 60;
13276
14182
  return i === 0 ? `UTC${t}${r}` : `UTC${t}${r}:${String(i).padStart(2, "0")}`;
13277
14183
  }
13278
- function _h(e) {
14184
+ function Ih(e) {
13279
14185
  if (e === "UTC") return "UTC";
13280
14186
  let t = e.split("/");
13281
14187
  return t[t.length - 1].replace(/_/g, " ");
13282
14188
  }
13283
- function vh(e, t) {
13284
- let n = _h(e), { offset: r } = hh(e, t);
14189
+ function Lh(e, t) {
14190
+ let n = Ih(e), { offset: r } = Ph(e, t);
13285
14191
  return `${n} (${r})`;
13286
14192
  }
13287
- function yh(e, t) {
14193
+ function Rh(e, t) {
13288
14194
  if (!t || t.length === 0) return e;
13289
14195
  let n = t.map((e) => {
13290
14196
  let t = e.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*");
@@ -13292,19 +14198,19 @@ function yh(e, t) {
13292
14198
  });
13293
14199
  return e.filter((e) => n.some((t) => t.test(e)));
13294
14200
  }
13295
- function bh(e, t) {
13296
- let { offset: n, offsetMinutes: r } = hh(e, t);
14201
+ function zh(e, t) {
14202
+ let { offset: n, offsetMinutes: r } = Ph(e, t);
13297
14203
  return {
13298
14204
  id: e,
13299
- city: _h(e),
14205
+ city: Ih(e),
13300
14206
  offset: n,
13301
14207
  offsetMinutes: r
13302
14208
  };
13303
14209
  }
13304
- function xh(e, t, n) {
14210
+ function Bh(e, t, n) {
13305
14211
  let r = t?.trim().toLowerCase(), i = /* @__PURE__ */ new Map();
13306
14212
  for (let t of e) {
13307
- let e = bh(t, n);
14213
+ let e = zh(t, n);
13308
14214
  if (r && r.length > 0) {
13309
14215
  let n = e.city.toLowerCase().includes(r), i = t.toLowerCase().includes(r);
13310
14216
  if (!n && !i) continue;
@@ -13324,25 +14230,25 @@ function xh(e, t, n) {
13324
14230
  }
13325
14231
  //#endregion
13326
14232
  //#region src/components/date-time/zoned-date-time-picker/CoarZonedDateTimePickerPanel.vue?vue&type=script&setup=true&lang.ts
13327
- var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column" }, wh = ["aria-label"], Th = { class: "coar-zdtp-side-column" }, Eh = {
14233
+ var Vh = { class: "coar-zdtp-body" }, Hh = { class: "coar-zdtp-calendar-column" }, Uh = ["aria-label"], Wh = { class: "coar-zdtp-side-column" }, Gh = {
13328
14234
  key: 0,
13329
14235
  class: "coar-zdtp-side-header"
13330
- }, Dh = ["disabled", "aria-label"], Oh = { class: "coar-zdtp-year" }, kh = ["disabled", "aria-label"], Ah = {
14236
+ }, Kh = ["disabled", "aria-label"], qh = { class: "coar-zdtp-year" }, Jh = ["disabled", "aria-label"], Yh = {
13331
14237
  key: 1,
13332
14238
  class: "coar-zdtp-side-header coar-zdtp-side-header--search"
13333
- }, jh = ["placeholder", "onKeydown"], Mh = ["aria-label"], Nh = { class: "coar-zdtp-tz-group-header" }, Ph = ["onClick"], Fh = { class: "coar-zdtp-tz-picker-item-city" }, Ih = { class: "coar-zdtp-tz-picker-item-offset" }, Lh = ["aria-label"], Rh = ["aria-selected", "onClick"], zh = { class: "coar-zdtp-time-section" }, Bh = { class: "coar-zdtp-display-tz-label" }, Vh = { class: "coar-zdtp-display-tz-btn-label" }, Hh = {
14239
+ }, Xh = ["placeholder", "onKeydown"], Zh = ["aria-label"], Qh = { class: "coar-zdtp-tz-group-header" }, $h = ["onClick"], eg = { class: "coar-zdtp-tz-picker-item-city" }, tg = { class: "coar-zdtp-tz-picker-item-offset" }, ng = ["aria-label"], rg = ["aria-selected", "onClick"], ig = { class: "coar-zdtp-time-section" }, ag = { class: "coar-zdtp-display-tz-label" }, og = { class: "coar-zdtp-display-tz-btn-label" }, sg = {
13334
14240
  key: 0,
13335
14241
  class: "coar-zdtp-events"
13336
- }, Uh = {
14242
+ }, cg = {
13337
14243
  key: 0,
13338
14244
  class: "coar-zdtp-footer-placeholder"
13339
- }, Wh = {
14245
+ }, lg = {
13340
14246
  key: 1,
13341
14247
  class: "coar-zdtp-footer-edit"
13342
- }, Gh = ["aria-label"], Kh = {
14248
+ }, ug = ["aria-label"], dg = {
13343
14249
  key: 2,
13344
14250
  class: "coar-zdtp-footer-display"
13345
- }, qh = { class: "coar-zdtp-footer-tz-name" }, Jh = { class: "coar-zdtp-footer-tz-value" }, Yh = ["aria-label"], Xh = /* @__PURE__ */ d({
14251
+ }, fg = { class: "coar-zdtp-footer-tz-name" }, pg = { class: "coar-zdtp-footer-tz-value" }, mg = ["aria-label"], hg = /* @__PURE__ */ d({
13346
14252
  __name: "CoarZonedDateTimePickerPanel",
13347
14253
  props: {
13348
14254
  modelValue: {},
@@ -13400,9 +14306,9 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13400
14306
  let n = X.PlainDate.compare(e, t.startDate) >= 0, r = t.endDate ? X.PlainDate.compare(e, t.endDate) <= 0 : X.PlainDate.compare(e, t.startDate) === 0;
13401
14307
  return n && r;
13402
14308
  }) : [];
13403
- }), T = r(() => yh(n.allTimezones, n.timezoneFilter)), D = r(() => xh(T.value, d.value)), O = r(() => T.value.map((e) => ({
14309
+ }), T = r(() => Rh(n.allTimezones, n.timezoneFilter)), D = r(() => Bh(T.value, d.value)), O = r(() => T.value.map((e) => ({
13404
14310
  value: e,
13405
- label: vh(e)
14311
+ label: Lh(e)
13406
14312
  })));
13407
14313
  function k() {
13408
14314
  c.value = !0, d.value = "", y(() => {
@@ -13429,7 +14335,7 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13429
14335
  function L() {
13430
14336
  l.value = !1;
13431
14337
  }
13432
- return (n, r) => (E(), o("div", { class: b(["coar-zdtp-panel", { "coar-zdtp-panel--with-weeks": t.showWeekNumbers }]) }, [s("div", Sh, [s("div", Ch, [u(tm, {
14338
+ return (n, r) => (E(), o("div", { class: b(["coar-zdtp-panel", { "coar-zdtp-panel--with-weeks": t.showWeekNumbers }]) }, [s("div", Vh, [s("div", Hh, [u(bm, {
13433
14339
  "model-value": t.modelValue,
13434
14340
  "active-month": t.activeMonth,
13435
14341
  min: t.min ?? void 0,
@@ -13462,8 +14368,8 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13462
14368
  }, [u(Q, {
13463
14369
  name: S.value === "up" ? "chevron-up" : "chevron-down",
13464
14370
  size: "xs"
13465
- }, null, 8, ["name"])], 8, wh)) : a("", !0)]), s("div", Th, [
13466
- c.value ? (E(), o("div", Ah, [J(s("input", {
14371
+ }, null, 8, ["name"])], 8, Uh)) : a("", !0)]), s("div", Wh, [
14372
+ c.value ? (E(), o("div", Yh, [J(s("input", {
13467
14373
  ref_key: "tzSearchInputRef",
13468
14374
  ref: f,
13469
14375
  "onUpdate:modelValue": r[3] ||= (e) => d.value = e,
@@ -13471,7 +14377,7 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13471
14377
  class: "coar-zdtp-tz-search-input",
13472
14378
  placeholder: z(i)("coar.ui.zonedDateTimePicker.searchTimezone", void 0, "Search timezone..."),
13473
14379
  onKeydown: ee(te(M, ["stop"]), ["escape"])
13474
- }, null, 40, jh), [[W, d.value]]), s("button", {
14380
+ }, null, 40, Xh), [[W, d.value]]), s("button", {
13475
14381
  type: "button",
13476
14382
  class: "coar-zdtp-tz-search-close",
13477
14383
  "aria-label": z(i)("coar.ui.zonedDateTimePicker.closeTimezoneSearch", void 0, "Close timezone search"),
@@ -13479,7 +14385,7 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13479
14385
  }, [u(Q, {
13480
14386
  name: "x",
13481
14387
  size: "xs"
13482
- })], 8, Mh)])) : (E(), o("div", Eh, [
14388
+ })], 8, Zh)])) : (E(), o("div", Gh, [
13483
14389
  s("button", {
13484
14390
  type: "button",
13485
14391
  class: "coar-zdtp-year-btn",
@@ -13489,8 +14395,8 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13489
14395
  }, [u(Q, {
13490
14396
  name: "chevron-left",
13491
14397
  size: "s"
13492
- })], 8, Dh),
13493
- s("span", Oh, I(m.value), 1),
14398
+ })], 8, Kh),
14399
+ s("span", qh, I(m.value), 1),
13494
14400
  s("button", {
13495
14401
  type: "button",
13496
14402
  class: "coar-zdtp-year-btn",
@@ -13500,7 +14406,7 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13500
14406
  }, [u(Q, {
13501
14407
  name: "chevron-right",
13502
14408
  size: "s"
13503
- })], 8, kh)
14409
+ })], 8, Jh)
13504
14410
  ])),
13505
14411
  c.value ? J((E(), o("div", {
13506
14412
  key: 2,
@@ -13510,12 +14416,12 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13510
14416
  }, [(E(!0), o(e, null, j(D.value, (n) => (E(), o("div", {
13511
14417
  key: n.name,
13512
14418
  class: "coar-zdtp-tz-group"
13513
- }, [s("div", Nh, I(n.name), 1), (E(!0), o(e, null, j(n.items, (e) => (E(), o("button", {
14419
+ }, [s("div", Qh, I(n.name), 1), (E(!0), o(e, null, j(n.items, (e) => (E(), o("button", {
13514
14420
  key: e.id,
13515
14421
  type: "button",
13516
14422
  class: b(["coar-zdtp-tz-picker-item", { "coar-zdtp-tz-picker-item--active": e.id === t.effectiveDisplayTimeZone }]),
13517
14423
  onClick: (t) => N(e.id)
13518
- }, [s("span", Fh, I(e.city), 1), s("span", Ih, I(e.offset), 1)], 10, Ph))), 128))]))), 128))])), [[z(Ua), {
14424
+ }, [s("span", eg, I(e.city), 1), s("span", tg, I(e.offset), 1)], 10, $h))), 128))]))), 128))])), [[z(Ua), {
13519
14425
  overflowX: "hidden",
13520
14426
  autoHide: "leave"
13521
14427
  }]]) : a("", !0),
@@ -13531,8 +14437,8 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13531
14437
  role: "option",
13532
14438
  "aria-selected": e.isActive,
13533
14439
  onClick: (n) => t.onSelectMonth(e.yearMonth)
13534
- }, I(e.name), 11, Rh))), 128))], 8, Lh),
13535
- s("div", zh, [u(Pp, {
14440
+ }, I(e.name), 11, rg))), 128))], 8, ng),
14441
+ s("div", ig, [u($p, {
13536
14442
  "model-value": t.selectedTime ?? void 0,
13537
14443
  "use24-hour": t.use24Hour,
13538
14444
  "minute-step": t.minuteStep,
@@ -13548,16 +14454,16 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13548
14454
  "max",
13549
14455
  "onUpdate:modelValue"
13550
14456
  ])]),
13551
- s("div", Bh, I(z(i)("coar.ui.zonedDateTimePicker.displayTimezone", void 0, "Display Timezone")), 1),
14457
+ s("div", ag, I(z(i)("coar.ui.zonedDateTimePicker.displayTimezone", void 0, "Display Timezone")), 1),
13552
14458
  s("button", {
13553
14459
  type: "button",
13554
14460
  class: "coar-zdtp-display-tz-btn",
13555
14461
  onClick: k
13556
- }, [s("span", Vh, I(z(vh)(t.effectiveDisplayTimeZone)), 1), u(Q, {
14462
+ }, [s("span", og, I(z(Lh)(t.effectiveDisplayTimeZone)), 1), u(Q, {
13557
14463
  name: "chevron-down",
13558
14464
  size: "xs"
13559
14465
  })]),
13560
- w.value.length > 0 ? J((E(), o("div", Hh, [(E(!0), o(e, null, j(w.value, (e, t) => (E(), o("div", {
14466
+ w.value.length > 0 ? J((E(), o("div", sg, [(E(!0), o(e, null, j(w.value, (e, t) => (E(), o("div", {
13561
14467
  key: t,
13562
14468
  class: b(["coar-zdtp-event-item", e.cssClass])
13563
14469
  }, I(e.description), 3))), 128))])), [[z(Ua), {
@@ -13565,7 +14471,7 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13565
14471
  autoHide: "leave"
13566
14472
  }]]) : a("", !0)
13567
14473
  ], 64))
13568
- ])]), s("div", { class: b(["coar-zdtp-footer", { "coar-zdtp-footer--differs": t.timeZonesDiffer }]) }, [t.hasValue ? l.value ? (E(), o("div", Wh, [u(Cc, {
14474
+ ])]), s("div", { class: b(["coar-zdtp-footer", { "coar-zdtp-footer--differs": t.timeZonesDiffer }]) }, [t.hasValue ? l.value ? (E(), o("div", lg, [u(Cc, {
13569
14475
  "model-value": t.valueTimeZone,
13570
14476
  options: O.value,
13571
14477
  appearance: "inline",
@@ -13588,14 +14494,14 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13588
14494
  }, [u(Q, {
13589
14495
  name: "x",
13590
14496
  size: "xs"
13591
- })], 8, Gh)])) : (E(), o("div", Kh, [
14497
+ })], 8, ug)])) : (E(), o("div", dg, [
13592
14498
  u(Q, {
13593
14499
  name: "map-pin",
13594
14500
  size: "xs",
13595
14501
  class: "coar-zdtp-footer-icon"
13596
14502
  }),
13597
- s("span", qh, I(t.valueTimeZoneLabel), 1),
13598
- s("span", Jh, I(t.formatValueInValueTz), 1),
14503
+ s("span", fg, I(t.valueTimeZoneLabel), 1),
14504
+ s("span", pg, I(t.formatValueInValueTz), 1),
13599
14505
  s("button", {
13600
14506
  type: "button",
13601
14507
  class: "coar-zdtp-footer-lock",
@@ -13604,28 +14510,28 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13604
14510
  }, [u(Q, {
13605
14511
  name: "settings",
13606
14512
  size: "xs"
13607
- })], 8, Yh)
13608
- ])) : (E(), o("span", Uh, [u(Q, {
14513
+ })], 8, mg)
14514
+ ])) : (E(), o("span", cg, [u(Q, {
13609
14515
  name: "map-pin",
13610
14516
  size: "xs"
13611
14517
  }), s("span", null, I(z(i)("coar.ui.zonedDateTimePicker.eventTimezone", void 0, "Event timezone")), 1)]))], 2)], 2));
13612
14518
  }
13613
- }), Zh = {
14519
+ }), gg = {
13614
14520
  key: 0,
13615
14521
  class: "coar-zdtp-required",
13616
14522
  "aria-hidden": "true"
13617
- }, Qh = [
14523
+ }, _g = [
13618
14524
  "aria-expanded",
13619
14525
  "aria-controls",
13620
14526
  "aria-labelledby",
13621
14527
  "aria-invalid"
13622
- ], $h = ["aria-label", "disabled"], eg = [
14528
+ ], vg = ["aria-label", "disabled"], yg = [
13623
14529
  "placeholder",
13624
14530
  "value",
13625
14531
  "disabled",
13626
14532
  "readonly",
13627
14533
  "aria-describedby"
13628
- ], tg = ["title"], ng = ["aria-label", "disabled"], rg = ["disabled", "aria-label"], ig = /* @__PURE__ */ Z(/* @__PURE__ */ d({
14534
+ ], bg = ["title"], xg = ["aria-label", "disabled"], Sg = ["disabled", "aria-label"], Cg = /* @__PURE__ */ Z(/* @__PURE__ */ d({
13629
14535
  __name: "CoarZonedDateTimePicker",
13630
14536
  props: /* @__PURE__ */ _({
13631
14537
  label: { default: "" },
@@ -13683,34 +14589,34 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13683
14589
  }),
13684
14590
  emits: /* @__PURE__ */ _(["opened", "closed"], ["update:modelValue"]),
13685
14591
  setup(e, { emit: t }) {
13686
- let n = e, i = V(e, "modelValue"), c = t, { t: d } = Y(), f = fm({
14592
+ let n = e, i = V(e, "modelValue"), c = t, { t: d } = Y(), f = jm({
13687
14593
  locale: r(() => n.locale),
13688
14594
  dateFormat: r(() => n.dateFormat)
13689
14595
  }), p = A(i.value?.toPlainDateTime().toPlainDate().toPlainYearMonth() ?? X.Now.plainDateISO().toPlainYearMonth()), m = A(null), h = A(null), _ = `coar-zdtp-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, v = `${_}-label`, x = `${_}-input`, S = `${_}-panel`, T = `${_}-message`, D = A(null), k = A(null), j = null, M = A(""), N = r(() => f.timezone.value || Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC"), P = r(() => i.value?.timeZoneId ?? null), F = r(() => h.value ?? N.value), L = r(() => n.timeZone ?? N.value), R = r(() => P.value != null && P.value !== N.value), B = r(() => P.value != null && F.value !== P.value), H = r(() => {
13690
14596
  let e = F.value, t = N.value, n = P.value;
13691
14597
  return e === t ? "home" : n && e === n ? "location" : "world";
13692
- }), U = r(() => R.value || H.value !== "home"), W = r(() => vh(F.value)), K = r(() => {
14598
+ }), U = r(() => R.value || H.value !== "home"), W = r(() => Lh(F.value)), K = r(() => {
13693
14599
  let e = P.value;
13694
- return e ? vh(e) : "";
13695
- }), q = mh(), J = r(() => n.use24Hour === !0 ? !0 : n.use24Hour === !1 ? !1 : !pp(f.effectiveLocale.value)), ee;
14600
+ return e ? Lh(e) : "";
14601
+ }), q = Nh(), J = r(() => n.use24Hour === !0 ? !0 : n.use24Hour === !1 ? !1 : !Mp(f.effectiveLocale.value)), ee;
13696
14602
  function ne() {
13697
14603
  if (ee?.destroy(), !k.value) return;
13698
- let e = gm(f.effectiveDateFormat.value.pattern, !J.value);
14604
+ let e = Fm(f.effectiveDateFormat.value.pattern, !J.value);
13699
14605
  ee = new ae(k.value, e);
13700
14606
  }
13701
14607
  function re(e) {
13702
14608
  let t = F.value, n = e.withTimeZone(t);
13703
- return `${zp(n.toPlainDate(), f.effectiveDateFormat.value.pattern)} ${mp(n.hour, n.minute, J.value)}`;
14609
+ return `${im(n.toPlainDate(), f.effectiveDateFormat.value.pattern)} ${Np(n.hour, n.minute, J.value)}`;
13704
14610
  }
13705
14611
  function ie() {
13706
- return i.value ? `${zp(i.value.toPlainDate(), f.effectiveDateFormat.value.pattern)} ${mp(i.value.hour, i.value.minute, J.value)}` : "";
14612
+ return i.value ? `${im(i.value.toPlainDate(), f.effectiveDateFormat.value.pattern)} ${Np(i.value.hour, i.value.minute, J.value)}` : "";
13707
14613
  }
13708
14614
  function oe(e) {
13709
14615
  let t = e.trim().split(/\s+/);
13710
14616
  if (t.length < 2) return null;
13711
- let n = t[0], r = t.slice(1).join(" "), i = Bp(n, f.effectiveDateFormat.value.pattern);
14617
+ let n = t[0], r = t.slice(1).join(" "), i = am(n, f.effectiveDateFormat.value.pattern);
13712
14618
  if (!i) return null;
13713
- let a = hp(r);
14619
+ let a = Pp(r);
13714
14620
  if (!a) return null;
13715
14621
  let o = i.toPlainDateTime({
13716
14622
  hour: a.hours,
@@ -13786,7 +14692,7 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13786
14692
  onDateSelected: (e) => {
13787
14693
  let t = he.value ?? n.defaultTime, r = e.toPlainDateTime({
13788
14694
  hour: t.hours,
13789
- minute: bp(t.minutes, n.minuteStep)
14695
+ minute: zp(t.minutes, n.minuteStep)
13790
14696
  }), a = P.value ?? L.value, o;
13791
14697
  o = fe.value === a ? r.toZonedDateTime(a) : r.toZonedDateTime(fe.value).withTimeZone(a), o = Ce(o), i.value = o;
13792
14698
  },
@@ -13877,7 +14783,7 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13877
14783
  },
13878
14784
  content: {
13879
14785
  kind: "component",
13880
- component: g(Xh)
14786
+ component: g(hg)
13881
14787
  },
13882
14788
  inputs: t
13883
14789
  }), f.open(), c("opened"), j.afterClosed.then(() => {
@@ -13926,7 +14832,7 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13926
14832
  id: v,
13927
14833
  class: "coar-zdtp-label",
13928
14834
  for: x
13929
- }, [l(I(e.label) + " ", 1), e.required ? (E(), o("span", Zh, "*")) : a("", !0)])) : a("", !0),
14835
+ }, [l(I(e.label) + " ", 1), e.required ? (E(), o("span", gg, "*")) : a("", !0)])) : a("", !0),
13930
14836
  s("div", {
13931
14837
  ref_key: "triggerRef",
13932
14838
  ref: D,
@@ -13954,7 +14860,7 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13954
14860
  }, [u(Q, {
13955
14861
  name: "x",
13956
14862
  size: "auto"
13957
- })], 10, $h),
14863
+ })], 10, vg),
13958
14864
  s("input", {
13959
14865
  id: x,
13960
14866
  ref_key: "dateInputRef",
@@ -13969,12 +14875,12 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13969
14875
  autocomplete: "off",
13970
14876
  onInput: ke,
13971
14877
  onBlur: Ae
13972
- }, null, 40, eg),
14878
+ }, null, 40, yg),
13973
14879
  i.value ? (E(), o("span", {
13974
14880
  key: 0,
13975
14881
  class: "coar-zdtp-tz-inline",
13976
14882
  title: W.value
13977
- }, I(W.value), 9, tg)) : a("", !0),
14883
+ }, I(W.value), 9, bg)) : a("", !0),
13978
14884
  s("button", {
13979
14885
  type: "button",
13980
14886
  class: b(["coar-zdtp-tz-indicator", {
@@ -13988,7 +14894,7 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13988
14894
  }, [u(Q, {
13989
14895
  name: Me.value,
13990
14896
  size: "xs"
13991
- }, null, 8, ["name"])], 10, ng),
14897
+ }, null, 8, ["name"])], 10, xg),
13992
14898
  s("button", {
13993
14899
  type: "button",
13994
14900
  class: "coar-zdtp-btn",
@@ -13999,8 +14905,8 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13999
14905
  }, [u(Q, {
14000
14906
  name: "calendar",
14001
14907
  size: "s"
14002
- })], 8, rg)
14003
- ], 42, Qh),
14908
+ })], 8, Sg)
14909
+ ], 42, _g),
14004
14910
  ce.value ? (E(), o("div", {
14005
14911
  key: 1,
14006
14912
  id: T,
@@ -14009,7 +14915,7 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
14009
14915
  }, I(ce.value), 3)) : a("", !0)
14010
14916
  ], 2));
14011
14917
  }
14012
- }), [["__scopeId", "data-v-c6c2a031"]]), ag = /* @__PURE__ */ Z(/* @__PURE__ */ d({
14918
+ }), [["__scopeId", "data-v-c6c2a031"]]), wg = /* @__PURE__ */ Z(/* @__PURE__ */ d({
14013
14919
  __name: "CoarPlainDateView",
14014
14920
  props: {
14015
14921
  value: { default: null },
@@ -14019,17 +14925,17 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
14019
14925
  size: { default: "m" }
14020
14926
  },
14021
14927
  setup(e) {
14022
- let t = e, n = fm({
14928
+ let t = e, n = jm({
14023
14929
  locale: L(t, "locale"),
14024
14930
  dateFormat: L(t, "dateFormat")
14025
14931
  });
14026
14932
  function i(e) {
14027
14933
  return typeof e == "object" && !!e && Object.prototype.toString.call(e) === "[object Temporal.PlainDate]";
14028
14934
  }
14029
- let a = r(() => i(t.value) ? zp(t.value, n.effectiveDateFormat.value.pattern) : ""), s = r(() => a.value || t.placeholder), c = r(() => !a.value);
14935
+ let a = r(() => i(t.value) ? im(t.value, n.effectiveDateFormat.value.pattern) : ""), s = r(() => a.value || t.placeholder), c = r(() => !a.value);
14030
14936
  return (t, n) => (E(), o("span", { class: b(["coar-plain-date-view", [`coar-plain-date-view--${e.size}`, { "coar-plain-date-view--empty": c.value }]]) }, I(s.value), 3));
14031
14937
  }
14032
- }), [["__scopeId", "data-v-c8cf9804"]]), og = /* @__PURE__ */ Z(/* @__PURE__ */ d({
14938
+ }), [["__scopeId", "data-v-c8cf9804"]]), Tg = /* @__PURE__ */ Z(/* @__PURE__ */ d({
14033
14939
  __name: "CoarPlainDateTimeView",
14034
14940
  props: {
14035
14941
  value: { default: null },
@@ -14043,17 +14949,17 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
14043
14949
  size: { default: "m" }
14044
14950
  },
14045
14951
  setup(e) {
14046
- let t = e, n = fm({
14952
+ let t = e, n = jm({
14047
14953
  locale: L(t, "locale"),
14048
14954
  dateFormat: L(t, "dateFormat")
14049
- }), i = r(() => t.use24Hour === !0 ? !0 : t.use24Hour === !1 ? !1 : !pp(n.effectiveLocale.value));
14955
+ }), i = r(() => t.use24Hour === !0 ? !0 : t.use24Hour === !1 ? !1 : !Mp(n.effectiveLocale.value));
14050
14956
  function a(e) {
14051
14957
  return typeof e == "object" && !!e && Object.prototype.toString.call(e) === "[object Temporal.PlainDateTime]";
14052
14958
  }
14053
- let s = r(() => a(t.value) ? `${zp(t.value.toPlainDate(), n.effectiveDateFormat.value.pattern)} ${mp(t.value.hour, t.value.minute, i.value)}` : ""), c = r(() => s.value || t.placeholder), l = r(() => !s.value);
14959
+ let s = r(() => a(t.value) ? `${im(t.value.toPlainDate(), n.effectiveDateFormat.value.pattern)} ${Np(t.value.hour, t.value.minute, i.value)}` : ""), c = r(() => s.value || t.placeholder), l = r(() => !s.value);
14054
14960
  return (t, n) => (E(), o("span", { class: b(["coar-plain-date-time-view", [`coar-plain-date-time-view--${e.size}`, { "coar-plain-date-time-view--empty": l.value }]]) }, I(c.value), 3));
14055
14961
  }
14056
- }), [["__scopeId", "data-v-f32044ac"]]), sg = /* @__PURE__ */ Z(/* @__PURE__ */ d({
14962
+ }), [["__scopeId", "data-v-f32044ac"]]), Eg = /* @__PURE__ */ Z(/* @__PURE__ */ d({
14057
14963
  __name: "CoarZonedDateTimeView",
14058
14964
  props: {
14059
14965
  value: { default: null },
@@ -14072,20 +14978,20 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
14072
14978
  size: { default: "m" }
14073
14979
  },
14074
14980
  setup(e) {
14075
- let t = e, n = fm({
14981
+ let t = e, n = jm({
14076
14982
  locale: L(t, "locale"),
14077
14983
  dateFormat: L(t, "dateFormat")
14078
- }), i = r(() => t.use24Hour === !0 ? !0 : t.use24Hour === !1 ? !1 : !pp(n.effectiveLocale.value));
14984
+ }), i = r(() => t.use24Hour === !0 ? !0 : t.use24Hour === !1 ? !1 : !Mp(n.effectiveLocale.value));
14079
14985
  function a(e) {
14080
14986
  return typeof e == "object" && !!e && Object.prototype.toString.call(e) === "[object Temporal.ZonedDateTime]";
14081
14987
  }
14082
14988
  let s = r(() => t.displayTimeZone ? t.displayTimeZone : a(t.value) ? t.value.timeZoneId : null), c = r(() => {
14083
14989
  if (!a(t.value)) return "";
14084
- let e = s.value, r = e ? t.value.withTimeZone(e) : t.value, o = zp(r.toPlainDate(), n.effectiveDateFormat.value.pattern), c = mp(r.hour, r.minute, i.value);
14085
- return !t.showTimeZone || !e ? `${o} ${c}` : `${o} ${c} ${vh(e, r.toInstant())}`;
14990
+ let e = s.value, r = e ? t.value.withTimeZone(e) : t.value, o = im(r.toPlainDate(), n.effectiveDateFormat.value.pattern), c = Np(r.hour, r.minute, i.value);
14991
+ return !t.showTimeZone || !e ? `${o} ${c}` : `${o} ${c} ${Lh(e, r.toInstant())}`;
14086
14992
  }), l = r(() => c.value || t.placeholder), u = r(() => !c.value);
14087
14993
  return (t, n) => (E(), o("span", { class: b(["coar-zoned-date-time-view", [`coar-zoned-date-time-view--${e.size}`, { "coar-zoned-date-time-view--empty": u.value }]]) }, I(l.value), 3));
14088
14994
  }
14089
14995
  }), [["__scopeId", "data-v-00d86dd7"]]);
14090
14996
  //#endregion
14091
- export { Ee as COAR_BUILTIN_ICON_SOURCE_KEY, mm as COAR_DATE_FORMAT_TO_MASKITO_MODE, pm as COAR_DEFAULT_TIME_FORMAT, Te as COAR_ICON_SERVICE_KEY, kd as COAR_TREE_DRAG_MIME, Md as COAR_TREE_RENAME_KEY, jd as COAR_TREE_ROW_ID_KEY, Ae as CORE_ICONS, bs as CoarAvatar, Ho as CoarBadge, uf as CoarBreadcrumb, hf as CoarBreadcrumbItem, Oo as CoarButton, Zo as CoarCard, Qs as CoarCheckbox, ds as CoarCodeBlock, yo as CoarCollapse, yd as CoarContextMenu, Su as CoarDialogShell, Lo as CoarDivider, Rl as CoarDualListbox, go as CoarFade, ho as CoarFormField, Oe as CoarHttpIconSource, Q as CoarIcon, De as CoarIconMapSource, Fo as CoarIconPlugin, ke as CoarIconService, No as CoarLink, Ml as CoarListbox, Uu as CoarMenu, rd as CoarMenuDivider, id as CoarMenuHeading, $u as CoarMenuItem, um as CoarMonthList, il as CoarMultiSelect, fp as CoarNavbar, Uo as CoarNote, Ks as CoarNumberInput, Ms as CoarOtpInput, eu as CoarOverlayHost, Vl as CoarOverlayOutlet, pt as CoarOverlayPlugin, wf as CoarPagination, nf as CoarPanelLayout, Ls as CoarPasswordInput, Vm as CoarPlainDatePicker, ph as CoarPlainDateTimePicker, og as CoarPlainDateTimeView, ag as CoarPlainDateView, su as CoarPopconfirm, ou as CoarPopconfirmPanel, Xa as CoarPopover, qo as CoarProgressBar, oc as CoarRadioButton, nc as CoarRadioGroup, vo as CoarScale, tm as CoarScrollableCalendar, sf as CoarSegmentedControl, Cc as CoarSelect, Ff as CoarSidebar, sp as CoarSidebarDivider, rp as CoarSidebarGroup, ap as CoarSidebarHeading, Gf as CoarSidebarItem, cp as CoarSidebarSpacer, _o as CoarSlide, zo as CoarSpinner, Xd as CoarSplitPane, dd as CoarSubExpand, _d as CoarSubFlyout, _d as CoarSubmenuItem, uc as CoarSwitch, xd as CoarTab, Od as CoarTabGroup, xs as CoarTable, ms as CoarTag, hl as CoarTagSelect, ks as CoarTextInput, Pp as CoarTimePicker, $l as CoarToastContainer, Zl as CoarToastItem, Hd as CoarTree, Gd as CoarTreeNodeLabel, ig as CoarZonedDateTimePicker, sg as CoarZonedDateTimeView, so as FORM_FIELD_INJECTION_KEY, Mu as MenuCascade, Le as OVERLAY_DEFAULTS, lt as OVERLAY_PARENT_KEY, ct as OVERLAY_SERVICE_KEY, we as PRESET_SIZES, $s as RADIO_GROUP_INJECTION_KEY, Ef as SIDEBAR_COLLAPSED_KEY, Df as SIDEBAR_ICON_SIZE_KEY, nt as TOAST_SERVICE_KEY, Kd as TreeBuilder, Ke as computeOverlayCoordinates, wt as contextMenuPreset, Po as createCoarIconService, $e as createOverlayService, at as createToastService, xt as datepickerPreset, bt as dialogPreset, He as getAnchorRect, Be as getContainerRect, ft as getOverlayService, Ge as getScrollParents, Wa as getScrollbarInstance, st as getToastService, ze as getViewportRect, yt as hoverMenuPreset, _t as menuPreset, gt as modalPreset, Et as popconfirmPreset, St as popoverPreset, Iu as provideMenuCascade, Ru as provideMenuClose, Re as resolveOverlaySpec, vt as selectPreset, xe as setCoarDragImageFromElement, Se as setCoarDragImageFromHtml, Ct as sidebarFlyoutPreset, Tt as subFlyoutPreset, ht as tooltipPreset, bd as useContextMenu, Du as useDialog, ye as useDragDrop, Lu as useMenuCascade, zu as useMenuClose, mt as useOverlay, ut as useOverlayParent, mu as useToast, qd as useTree, ue as useVirtualList, Ua as vScrollbar, Bc as vTooltip };
14997
+ export { Ee as COAR_BUILTIN_ICON_SOURCE_KEY, Nm as COAR_DATE_FORMAT_TO_MASKITO_MODE, Mm as COAR_DEFAULT_TIME_FORMAT, Te as COAR_ICON_SERVICE_KEY, Ad as COAR_TREE_DRAG_MIME, Pd as COAR_TREE_RENAME_KEY, Md as COAR_TREE_ROW_ID_KEY, Ae as CORE_ICONS, bs as CoarAvatar, Ho as CoarBadge, kf as CoarBreadcrumb, Pf as CoarBreadcrumbItem, Oo as CoarButton, Zo as CoarCard, Qs as CoarCheckbox, ds as CoarCodeBlock, yo as CoarCollapse, yd as CoarContextMenu, Su as CoarDialogShell, Lo as CoarDivider, Rl as CoarDualListbox, go as CoarFade, ho as CoarFormField, Oe as CoarHttpIconSource, Q as CoarIcon, De as CoarIconMapSource, Fo as CoarIconPlugin, ke as CoarIconService, No as CoarLink, Ml as CoarListbox, Uu as CoarMenu, rd as CoarMenuDivider, id as CoarMenuHeading, $u as CoarMenuItem, km as CoarMonthList, il as CoarMultiSelect, jp as CoarNavbar, Uo as CoarNote, Ks as CoarNumberInput, Ms as CoarOtpInput, eu as CoarOverlayHost, Vl as CoarOverlayOutlet, pt as CoarOverlayPlugin, Uf as CoarPagination, ff as CoarPanelLayout, Ls as CoarPasswordInput, oh as CoarPlainDatePicker, Mh as CoarPlainDateTimePicker, Tg as CoarPlainDateTimeView, wg as CoarPlainDateView, su as CoarPopconfirm, ou as CoarPopconfirmPanel, Xa as CoarPopover, qo as CoarProgressBar, oc as CoarRadioButton, nc as CoarRadioGroup, vo as CoarScale, bm as CoarScrollableCalendar, gf as CoarSegmentedControl, Cc as CoarSelect, ep as CoarSidebar, Ep as CoarSidebarDivider, Sp as CoarSidebarGroup, wp as CoarSidebarHeading, up as CoarSidebarItem, Dp as CoarSidebarSpacer, _o as CoarSlide, zo as CoarSpinner, of as CoarSplitPane, dd as CoarSubExpand, _d as CoarSubFlyout, _d as CoarSubmenuItem, uc as CoarSwitch, xd as CoarTab, Od as CoarTabGroup, xs as CoarTable, ms as CoarTag, hl as CoarTagSelect, ks as CoarTextInput, $p as CoarTimePicker, $l as CoarToastContainer, Zl as CoarToastItem, Zd as CoarTree, ef as CoarTreeNodeLabel, Ef as CoarWizard, Cg as CoarZonedDateTimePicker, Eg as CoarZonedDateTimeView, kd as DEFAULT_TREE_LABELS, so as FORM_FIELD_INJECTION_KEY, Mu as MenuCascade, Le as OVERLAY_DEFAULTS, lt as OVERLAY_PARENT_KEY, ct as OVERLAY_SERVICE_KEY, we as PRESET_SIZES, $s as RADIO_GROUP_INJECTION_KEY, Gf as SIDEBAR_COLLAPSED_KEY, Kf as SIDEBAR_ICON_SIZE_KEY, nt as TOAST_SERVICE_KEY, tf as TreeBuilder, Ke as computeOverlayCoordinates, wt as contextMenuPreset, Po as createCoarIconService, $e as createOverlayService, at as createToastService, xt as datepickerPreset, bt as dialogPreset, He as getAnchorRect, Be as getContainerRect, ft as getOverlayService, Ge as getScrollParents, Wa as getScrollbarInstance, st as getToastService, ze as getViewportRect, yt as hoverMenuPreset, _t as menuPreset, gt as modalPreset, Et as popconfirmPreset, St as popoverPreset, Iu as provideMenuCascade, Ru as provideMenuClose, Re as resolveOverlaySpec, vt as selectPreset, xe as setCoarDragImageFromElement, Se as setCoarDragImageFromHtml, Ct as sidebarFlyoutPreset, Tt as subFlyoutPreset, ht as tooltipPreset, bd as useContextMenu, Du as useDialog, ye as useDragDrop, Lu as useMenuCascade, zu as useMenuClose, mt as useOverlay, ut as useOverlayParent, mu as useToast, nf as useTree, ue as useVirtualList, Ua as vScrollbar, Bc as vTooltip };