@cocoar/vue-ui 4.0.0-beta.46 → 4.0.0-beta.51

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
@@ -1,4 +1,4 @@
1
- import { Fragment as e, Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, guardReactiveProps as p, h as m, inject as h, isRef as g, markRaw as _, mergeModels as v, mergeProps as y, nextTick as b, normalizeClass as x, normalizeProps as S, normalizeStyle as C, onBeforeUnmount as w, onBeforeUpdate as T, onMounted as E, onScopeDispose as D, openBlock as O, provide as k, reactive as A, readonly as j, ref as M, renderList as N, renderSlot as P, resolveDynamicComponent as F, shallowReactive as I, shallowRef as L, toDisplayString as R, toHandlers as z, toRef as B, toValue as V, unref as H, useAttrs as ee, useId as te, useModel as U, useSlots as W, useTemplateRef as G, vModelText as ne, watch as K, watchEffect as re, withCtx as q, withDirectives as ie, withKeys as ae, withModifiers as oe } from "vue";
1
+ import { Fragment as e, Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, guardReactiveProps as p, h as m, inject as h, isRef as g, markRaw as _, mergeModels as v, mergeProps as y, nextTick as b, normalizeClass as x, normalizeProps as S, normalizeStyle as C, onBeforeUnmount as w, onBeforeUpdate as T, onMounted as E, onScopeDispose as D, openBlock as O, provide as k, reactive as A, readonly as j, ref as M, renderList as N, renderSlot as P, resolveDynamicComponent as F, shallowReactive as I, shallowRef as L, toDisplayString as R, toHandlers as z, toRef as B, toValue as V, unref as H, useAttrs as ee, useId as te, useModel as U, useSlots as W, useTemplateRef as ne, vModelText as re, watch as G, watchEffect as ie, withCtx as K, withDirectives as q, withKeys as ae, withModifiers as oe } from "vue";
2
2
  import { useI18n as J, useL10n as se, useTimezone as ce } from "@cocoar/vue-localization";
3
3
  import Y from "prismjs";
4
4
  import { Maskito as le } from "@maskito/core";
@@ -129,7 +129,7 @@ function me(e) {
129
129
  e.removeEventListener("scroll", t), n?.disconnect();
130
130
  };
131
131
  }
132
- K(e.scrollElement, (e) => {
132
+ G(e.scrollElement, (e) => {
133
133
  C?.(), C = null, e && T(e);
134
134
  }, { immediate: !0 }), w(() => {
135
135
  C?.(), C = null;
@@ -1496,7 +1496,7 @@ function ot(e) {
1496
1496
  let t = L({
1497
1497
  classes: [],
1498
1498
  style: {}
1499
- }), n, r = K(e, (e) => {
1499
+ }), n, r = G(e, (e) => {
1500
1500
  n?.disconnect();
1501
1501
  let r = () => {
1502
1502
  t.value = at(e);
@@ -1824,7 +1824,7 @@ function Dt(e = {}) {
1824
1824
  return d(a, typeof s == "number" ? s : null), !0;
1825
1825
  }
1826
1826
  }, L = e.pointer?.target;
1827
- return L && K(L, (e, t) => {
1827
+ return L && G(L, (e, t) => {
1828
1828
  t && xt(t), e && bt(e, I);
1829
1829
  }, {
1830
1830
  immediate: !0,
@@ -2108,7 +2108,7 @@ var Bt = /* @__PURE__ */ d({
2108
2108
  },
2109
2109
  setup(e) {
2110
2110
  let t = e, n = h(kt, null) ?? zt, i = M(null), s = M(!1), c = 0;
2111
- re((e) => {
2111
+ ie((e) => {
2112
2112
  let r = t.name, a = t.source;
2113
2113
  if (!r) {
2114
2114
  c++, i.value = null, s.value = !1;
@@ -3936,14 +3936,14 @@ var Ma = "os-trinsic-observer", Na = "os-theme-none", Pa = "os-scrollbar", Fa =
3936
3936
  return [
3937
3937
  () => $(vr, pr(B, E())),
3938
3938
  ({ Dt: e, It: t, Zt: n, tn: a }) => {
3939
- let { nn: o, sn: s, en: m, cn: g } = a || {}, { Ct: _, ft: v } = n || {}, { B: y } = r, { M: b, P: S } = vo(), { rn: C, j: w } = i, [T, E] = e("showNativeOverlaidScrollbars"), [D, I] = e("scrollbars.theme"), [L, R] = e("scrollbars.visibility"), [B, H] = e("scrollbars.autoHide"), [ee, te] = e("scrollbars.autoHideSuspend"), [U] = e("scrollbars.autoHideDelay"), [W, G] = e("scrollbars.dragScroll"), [ne, K] = e("scrollbars.clickScroll"), [re, q] = e("overflow"), ie = v && !t, ae = o || s || g || _ || t, oe = m || R || q, J = T && b.x && b.y, se = !S && !V, ce = J || se, Y = (e, t, n) => {
3939
+ let { nn: o, sn: s, en: m, cn: g } = a || {}, { Ct: _, ft: v } = n || {}, { B: y } = r, { M: b, P: S } = vo(), { rn: C, j: w } = i, [T, E] = e("showNativeOverlaidScrollbars"), [D, I] = e("scrollbars.theme"), [L, R] = e("scrollbars.visibility"), [B, H] = e("scrollbars.autoHide"), [ee, te] = e("scrollbars.autoHideSuspend"), [U] = e("scrollbars.autoHideDelay"), [W, ne] = e("scrollbars.dragScroll"), [re, G] = e("scrollbars.clickScroll"), [ie, K] = e("overflow"), q = v && !t, ae = o || s || g || _ || t, oe = m || R || K, J = T && b.x && b.y, se = !S && !V, ce = J || se, Y = (e, t, n) => {
3940
3940
  let r = e.includes(Mr) && (L === Ar || L === "auto" && t === Mr);
3941
3941
  return A(Ba, r, n), r;
3942
3942
  };
3943
- if (p = U, (E || se) && A(Na, ce), I && (A(d), A(D, !0), d = D), (te || ie) && (z(!ee), ie && ee && (w.x || w.y ? (f(), x((() => {
3943
+ if (p = U, (E || se) && A(Na, ce), I && (A(d), A(D, !0), d = D), (te || q) && (z(!ee), q && ee && (w.x || w.y ? (f(), x((() => {
3944
3944
  f = Gi(O, Mr, h($(z, !0)), { A: !0 });
3945
- }))) : z(!0))), H && (c = B === "move", l = B === "leave", u = B === "never", F(u, !0)), G && A(Ja, W), K && A(qa, !!ne), oe) {
3946
- let e = Y(re.x, C.x, !0), t = Y(re.y, C.y, !1);
3945
+ }))) : z(!0))), H && (c = B === "move", l = B === "leave", u = B === "never", F(u, !0)), ne && A(Ja, W), G && A(qa, !!re), oe) {
3946
+ let e = Y(ie.x, C.x, !0), t = Y(ie.y, C.y, !1);
3947
3947
  A(Va, !(e && t));
3948
3948
  }
3949
3949
  ae && (M(), j(), P(), g && N(), A(Ua, !w.x, !0), A(Ua, !w.y, !1), A(Fa, y && !k));
@@ -4138,10 +4138,10 @@ var Ma = "os-trinsic-observer", Na = "os-theme-none", Pa = "os-scrollbar", Fa =
4138
4138
  o: Zi()
4139
4139
  }), R = la(to), z = (e, t) => `${t ? ba : xa}${Nr(e)}`;
4140
4140
  return ({ Dt: o, Zt: s, fn: c, It: l }, { dn: h }) => {
4141
- let { _t: g, Ht: _, xt: v, Ct: z, ft: B, Et: V } = s || {}, { X: H, Y: ee, W: te } = R && R.R(e, t, c, n, o) || {}, [U, W] = Xa(o, n), [G, ne] = o("overflow"), K = Za(G.x), re = Za(G.y), q = g || h || v || z || V || W, ie = E(l), ae = O(l), oe = A(l), J = N(l);
4142
- if (W && f && u(Ta, !U), q) {
4141
+ let { _t: g, Ht: _, xt: v, Ct: z, ft: B, Et: V } = s || {}, { X: H, Y: ee, W: te } = R && R.R(e, t, c, n, o) || {}, [U, W] = Xa(o, n), [ne, re] = o("overflow"), G = Za(ne.x), ie = Za(ne.y), K = g || h || v || z || V || W, q = E(l), ae = O(l), oe = A(l), J = N(l);
4142
+ if (W && f && u(Ta, !U), K) {
4143
4143
  ri(r, _a, ha) && y(!0);
4144
- let e = ee && ee(), [t] = ie = T(l), [n] = ae = D(l), i = Li(a), o = p && Fi(d()), s = {
4144
+ let e = ee && ee(), [t] = q = T(l), [n] = ae = D(l), i = Li(a), o = p && Fi(d()), s = {
4145
4145
  w: m(n.w + t.w),
4146
4146
  h: m(n.h + t.h)
4147
4147
  }, c = {
@@ -4150,10 +4150,10 @@ var Ma = "os-trinsic-observer", Na = "os-theme-none", Pa = "os-scrollbar", Fa =
4150
4150
  };
4151
4151
  e && e(), J = M(c), oe = k(S(s, c), l);
4152
4152
  }
4153
- let [se, ce] = J, [Y, le] = oe, [ue, de] = ae, [fe, X] = ie, [pe, me] = j({
4153
+ let [se, ce] = J, [Y, le] = oe, [ue, de] = ae, [fe, X] = q, [pe, me] = j({
4154
4154
  x: Y.w > 0,
4155
4155
  y: Y.h > 0
4156
- }), he = K && re && (pe.x || pe.y) || K && pe.x && !pe.y || re && pe.y && !pe.x, ge = h || z || V || X || de || ce || le || ne || W || q || _ && p, [_e] = o("update.flowDirectionStyles"), [ve, ye] = F(_e ? _e(a) : b(), l), [be, xe] = z || B || ye || me || l ? I(x(ve, !!_e), l) : L(), Se = C(pe, G);
4156
+ }), he = G && ie && (pe.x || pe.y) || G && pe.x && !pe.y || ie && pe.y && !pe.x, ge = h || z || V || X || de || ce || le || re || W || K || _ && p, [_e] = o("update.flowDirectionStyles"), [ve, ye] = F(_e ? _e(a) : b(), l), [be, xe] = z || B || ye || me || l ? I(x(ve, !!_e), l) : L(), Se = C(pe, ne);
4157
4157
  y(!1), ge && (w(Se), Se = eo(a, pe), te && H && (H(Se, ue, fe), Oi(a, te(Se))));
4158
4158
  let [Ce, we] = P(Se);
4159
4159
  return ni(r, _a, ha, he), ni(i, Da, ha, he), Ur(t, {
@@ -4549,7 +4549,7 @@ var ts = ["role"], ns = { class: "coar-popover-content" }, rs = /* @__PURE__ */
4549
4549
  onMouseleave: r[1] ||= (e) => n("panelLeave"),
4550
4550
  onFocusin: r[2] ||= (e) => n("panelEnter"),
4551
4551
  onFocusout: r[3] ||= (e) => n("panelFocusOut", e)
4552
- }, [ie((O(), o("div", ns, [(O(), i(F({ render: e.renderContent })))])), [[H(Xo), {
4552
+ }, [q((O(), o("div", ns, [(O(), i(F({ render: e.renderContent })))])), [[H(Xo), {
4553
4553
  overflowX: "hidden",
4554
4554
  defer: !1
4555
4555
  }]])], 42, ts));
@@ -4677,7 +4677,7 @@ var ts = ["role"], ns = { class: "coar-popover-content" }, rs = /* @__PURE__ */
4677
4677
  S();
4678
4678
  }
4679
4679
  }
4680
- return K(() => n.disabled, (e) => {
4680
+ return G(() => n.disabled, (e) => {
4681
4681
  e && S();
4682
4682
  }), w(() => {
4683
4683
  S();
@@ -4814,7 +4814,7 @@ var ys = { class: "coar-form-field__body" }, bs = {
4814
4814
  offset: 6,
4815
4815
  class: "coar-form-field__status-popover"
4816
4816
  }, {
4817
- content: q(() => [u(gs, {
4817
+ content: K(() => [u(gs, {
4818
4818
  hint: t.hint,
4819
4819
  rules: v.value,
4820
4820
  errors: y.value,
@@ -4825,7 +4825,7 @@ var ys = { class: "coar-form-field__body" }, bs = {
4825
4825
  "errors",
4826
4826
  "warnings"
4827
4827
  ])]),
4828
- default: q(() => [u(Q, {
4828
+ default: K(() => [u(Q, {
4829
4829
  name: j.value,
4830
4830
  size: "s",
4831
4831
  class: x(["coar-form-field__status-icon", `coar-form-field__status-icon--${A.value}`]),
@@ -4845,7 +4845,7 @@ var ys = { class: "coar-form-field__body" }, bs = {
4845
4845
  offset: 6,
4846
4846
  class: "coar-form-field__status-popover"
4847
4847
  }, {
4848
- content: q(() => [u(gs, {
4848
+ content: K(() => [u(gs, {
4849
4849
  hint: t.hint,
4850
4850
  rules: v.value,
4851
4851
  errors: y.value,
@@ -4856,7 +4856,7 @@ var ys = { class: "coar-form-field__body" }, bs = {
4856
4856
  "errors",
4857
4857
  "warnings"
4858
4858
  ])]),
4859
- default: q(() => [u(Q, {
4859
+ default: K(() => [u(Q, {
4860
4860
  name: j.value,
4861
4861
  size: "s",
4862
4862
  class: x(["coar-form-field__status-icon", `coar-form-field__status-icon--${A.value}`]),
@@ -4921,7 +4921,7 @@ var ys = { class: "coar-form-field__body" }, bs = {
4921
4921
  onLeave: s,
4922
4922
  onAfterLeave: c
4923
4923
  }, {
4924
- default: q(() => [P(t.$slots, "default")]),
4924
+ default: K(() => [P(t.$slots, "default")]),
4925
4925
  _: 3
4926
4926
  }, 8, ["appear"]));
4927
4927
  }
@@ -4970,7 +4970,7 @@ var ys = { class: "coar-form-field__body" }, bs = {
4970
4970
  onLeave: c,
4971
4971
  onAfterLeave: l
4972
4972
  }, {
4973
- default: q(() => [P(t.$slots, "default")]),
4973
+ default: K(() => [P(t.$slots, "default")]),
4974
4974
  _: 3
4975
4975
  }, 8, ["appear"]));
4976
4976
  }
@@ -5013,7 +5013,7 @@ var ys = { class: "coar-form-field__body" }, bs = {
5013
5013
  onLeave: s,
5014
5014
  onAfterLeave: c
5015
5015
  }, {
5016
- default: q(() => [P(t.$slots, "default")]),
5016
+ default: K(() => [P(t.$slots, "default")]),
5017
5017
  _: 3
5018
5018
  }, 8, ["appear"]));
5019
5019
  }
@@ -5044,7 +5044,7 @@ var ys = { class: "coar-form-field__body" }, bs = {
5044
5044
  onLeave: a,
5045
5045
  onAfterLeave: o
5046
5046
  }, {
5047
- default: q(() => [P(e.$slots, "default")]),
5047
+ default: K(() => [P(e.$slots, "default")]),
5048
5048
  _: 3
5049
5049
  }));
5050
5050
  }
@@ -5055,7 +5055,7 @@ var ys = { class: "coar-form-field__body" }, bs = {
5055
5055
  mode: { default: "auto" }
5056
5056
  },
5057
5057
  setup(e) {
5058
- let t = e, n = G("scopeRef"), i = M("light"), a, s;
5058
+ let t = e, n = ne("scopeRef"), i = M("light"), a, s;
5059
5059
  function c(e) {
5060
5060
  if (e) {
5061
5061
  if (e.classList.contains("dark-mode") || e.getAttribute("data-theme") === "dark") return "dark";
@@ -5177,7 +5177,7 @@ var Ls = {
5177
5177
  emits: ["click"],
5178
5178
  setup(e, { emit: t }) {
5179
5179
  let n = e, c = t, { t: l } = J(), { RouterLink: d, hasRouterLink: f, warnIfMisconfigured: p } = Is();
5180
- K(() => n.to, (e) => p(e, "CoarButton"), { immediate: !0 });
5180
+ G(() => n.to, (e) => p(e, "CoarButton"), { immediate: !0 });
5181
5181
  let m = r(() => n.to !== void 0 && n.to !== null), h = r(() => m.value ? f ? d : "a" : "button"), g = r(() => m.value ? f ? { to: n.to } : { href: String(n.to) } : {
5182
5182
  type: n.type,
5183
5183
  disabled: n.disabled || n.loading
@@ -5206,7 +5206,7 @@ var Ls = {
5206
5206
  tabindex: _.value && (e.disabled || e.loading) ? -1 : void 0,
5207
5207
  onClickCapture: b
5208
5208
  }), {
5209
- default: q(() => [
5209
+ default: K(() => [
5210
5210
  e.loading ? (O(), o("span", Ls, R(H(l)("coar.ui.button.loading", void 0, "Loading")), 1)) : a("", !0),
5211
5211
  e.loading && !e.iconStart && !e.iconEnd ? (O(), o("span", Rs, [u(Q, {
5212
5212
  name: "loader-circle",
@@ -5273,7 +5273,7 @@ var Ls = {
5273
5273
  emits: ["click"],
5274
5274
  setup(e, { emit: t }) {
5275
5275
  let n = e, a = t, { RouterLink: c, hasRouterLink: l, warnIfMisconfigured: u } = Is();
5276
- K(() => n.to, (e) => u(e, "CoarLink"), { immediate: !0 });
5276
+ G(() => n.to, (e) => u(e, "CoarLink"), { immediate: !0 });
5277
5277
  let d = r(() => n.to !== void 0 && n.to !== null), f = r(() => n.href !== void 0 && n.href !== null), p = r(() => [
5278
5278
  "coar-link",
5279
5279
  `coar-link--${n.size}`,
@@ -5304,7 +5304,7 @@ var Ls = {
5304
5304
  to: e.to,
5305
5305
  custom: ""
5306
5306
  }, {
5307
- default: q(({ href: n, isActive: r, navigate: i }) => [s("a", {
5307
+ default: K(({ href: n, isActive: r, navigate: i }) => [s("a", {
5308
5308
  href: n,
5309
5309
  class: x(p.value),
5310
5310
  "aria-disabled": e.disabled || void 0,
@@ -5530,8 +5530,8 @@ var Zs = { install(e, t) {
5530
5530
  key: 0,
5531
5531
  mode: "both"
5532
5532
  }, {
5533
- content: q(() => [P(t.$slots, "details", {}, void 0, !0)]),
5534
- default: q(() => [s("button", lc, R(H(c)("coar.ui.notice.details", void 0, "Details")), 1)]),
5533
+ content: K(() => [P(t.$slots, "details", {}, void 0, !0)]),
5534
+ default: K(() => [s("button", lc, R(H(c)("coar.ui.notice.details", void 0, "Details")), 1)]),
5535
5535
  _: 3
5536
5536
  })) : a("", !0),
5537
5537
  H(n).cta ? (O(), o("div", uc, [P(t.$slots, "cta", {}, void 0, !0)])) : a("", !0)
@@ -6613,7 +6613,7 @@ var bc = { class: "coar-code-header" }, xc = { class: "coar-code-header-left" },
6613
6613
  setup(t, { emit: n }) {
6614
6614
  let d = t, { t: f } = J(), p = W(), m = U(t, "modelValue"), g = n, _ = h(_s, void 0);
6615
6615
  vs();
6616
- let v = G("inputElement"), y = `coar-text-input-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, b = r(() => d.id || _?.inputId.value || y), S = r(() => d.rows > 1), C = r(() => d.error || (_?.hasError.value ?? !1)), w = r(() => _?.messageId.value || void 0), T = r(() => d.clearable && m.value.length > 0 && !d.disabled && !d.readonly), E = r(() => d.clearable && !d.disabled && !d.readonly), D = r(() => !!d.prefix || !!p.prefix || !!p.prefixAction), k = r(() => !!d.suffix || !!p.suffix || E.value || !!p.suffixAction), A = r(() => Math.max(1, (m.value || d.placeholder).length)), j = r(() => [
6616
+ let v = ne("inputElement"), y = `coar-text-input-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, b = r(() => d.id || _?.inputId.value || y), S = r(() => d.rows > 1), C = r(() => d.error || (_?.hasError.value ?? !1)), w = r(() => _?.messageId.value || void 0), T = r(() => d.clearable && m.value.length > 0 && !d.disabled && !d.readonly), E = r(() => d.clearable && !d.disabled && !d.readonly), D = r(() => !!d.prefix || !!p.prefix || !!p.prefixAction), k = r(() => !!d.suffix || !!p.suffix || E.value || !!p.suffixAction), A = r(() => Math.max(1, (m.value || d.placeholder).length)), j = r(() => [
6617
6617
  "coar-text-input-host",
6618
6618
  `coar-text-input--${d.size}`,
6619
6619
  {
@@ -6644,7 +6644,7 @@ var bc = { class: "coar-code-header" }, xc = { class: "coar-code-header-left" },
6644
6644
  disabled: t.disabled,
6645
6645
  readonly: t.readonly
6646
6646
  }, c({
6647
- default: q(() => [s("textarea", {
6647
+ default: K(() => [s("textarea", {
6648
6648
  id: b.value,
6649
6649
  ref_key: "inputElement",
6650
6650
  ref: v,
@@ -6666,7 +6666,7 @@ var bc = { class: "coar-code-header" }, xc = { class: "coar-code-header-left" },
6666
6666
  _: 2
6667
6667
  }, [E.value ? {
6668
6668
  name: "trailing",
6669
- fn: q(() => [s("button", {
6669
+ fn: K(() => [s("button", {
6670
6670
  type: "button",
6671
6671
  class: x(["coar-text-input-clear", { "coar-text-input-clear--hidden": !T.value }]),
6672
6672
  tabindex: "-1",
@@ -6697,7 +6697,7 @@ var bc = { class: "coar-code-header" }, xc = { class: "coar-code-header-left" },
6697
6697
  disabled: t.disabled,
6698
6698
  readonly: t.readonly
6699
6699
  }, c({
6700
- default: q(() => [s("input", {
6700
+ default: K(() => [s("input", {
6701
6701
  id: b.value,
6702
6702
  ref_key: "inputElement",
6703
6703
  ref: v,
@@ -6721,14 +6721,14 @@ var bc = { class: "coar-code-header" }, xc = { class: "coar-code-header-left" },
6721
6721
  _: 2
6722
6722
  }, [D.value ? {
6723
6723
  name: "leading",
6724
- fn: q(() => [n.$slots.prefixAction ? (O(), o("span", Xc, [P(n.$slots, "prefixAction", {
6724
+ fn: K(() => [n.$slots.prefixAction ? (O(), o("span", Xc, [P(n.$slots, "prefixAction", {
6725
6725
  disabled: t.disabled,
6726
6726
  readonly: t.readonly
6727
6727
  }, void 0, !0)])) : a("", !0), t.prefix || n.$slots.prefix ? (O(), o("span", Zc, [t.prefix ? (O(), o(e, { key: 0 }, [l(R(t.prefix), 1)], 64)) : a("", !0), P(n.$slots, "prefix", {}, void 0, !0)])) : a("", !0)]),
6728
6728
  key: "0"
6729
6729
  } : void 0, k.value ? {
6730
6730
  name: "trailing",
6731
- fn: q(() => [
6731
+ fn: K(() => [
6732
6732
  t.suffix || n.$slots.suffix ? (O(), o("span", $c, [t.suffix ? (O(), o(e, { key: 0 }, [l(R(t.suffix), 1)], 64)) : a("", !0), P(n.$slots, "suffix", {}, void 0, !0)])) : a("", !0),
6733
6733
  E.value ? (O(), o("button", {
6734
6734
  key: 1,
@@ -6830,20 +6830,20 @@ var bc = { class: "coar-code-header" }, xc = { class: "coar-code-header-left" },
6830
6830
  "blurred"
6831
6831
  ], ["update:modelValue"]),
6832
6832
  setup(t, { emit: n }) {
6833
- let i = t, a = U(t, "modelValue"), s = n, c = h(_s, void 0), { t: l } = J(), u = M(Array.from({ length: i.length }, () => "")), d = G("cellRefs"), f = M(null), p = `coar-otp-input-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, m = r(() => i.id || c?.inputId.value || p), g = r(() => i.error || (c?.hasError.value ?? !1)), _ = r(() => c?.messageId.value || void 0), v = M(!1);
6833
+ let i = t, a = U(t, "modelValue"), s = n, c = h(_s, void 0), { t: l } = J(), u = M(Array.from({ length: i.length }, () => "")), d = ne("cellRefs"), f = M(null), p = `coar-otp-input-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, m = r(() => i.id || c?.inputId.value || p), g = r(() => i.error || (c?.hasError.value ?? !1)), _ = r(() => c?.messageId.value || void 0), v = M(!1);
6834
6834
  function y() {
6835
6835
  v.value = !0, a.value = u.value.join(""), b(() => {
6836
6836
  v.value = !1;
6837
6837
  });
6838
6838
  }
6839
- K(() => a.value, (e) => {
6839
+ G(() => a.value, (e) => {
6840
6840
  v.value || S(e ?? "");
6841
6841
  }), a.value && S(a.value);
6842
6842
  function S(e) {
6843
6843
  let t = T(e, i.length);
6844
6844
  for (let e = 0; e < i.length; e++) u.value[e] = t[e] ?? "";
6845
6845
  }
6846
- K(() => i.length, (e) => {
6846
+ G(() => i.length, (e) => {
6847
6847
  let t = u.value;
6848
6848
  u.value = Array.from({ length: e }, (e, n) => t[n] ?? ""), y();
6849
6849
  });
@@ -7038,7 +7038,7 @@ var bc = { class: "coar-code-header" }, xc = { class: "coar-code-header-left" },
7038
7038
  "clear"
7039
7039
  ], ["update:modelValue"]),
7040
7040
  setup(e, { emit: t }) {
7041
- let n = e, i = U(e, "modelValue"), c = t, l = h(_s, void 0), { t: d } = J(), f = M(!1), p = G("inputElement"), m = `coar-password-input-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, g = r(() => n.id || l?.inputId.value || m), _ = r(() => f.value ? "text" : "password"), v = r(() => f.value ? "eye" : "eye-off"), y = r(() => f.value ? d("coar.ui.passwordInput.hidePassword", void 0, "Hide password") : d("coar.ui.passwordInput.showPassword", void 0, "Show password")), b = r(() => n.error || (l?.hasError.value ?? !1)), S = r(() => l?.messageId.value || void 0), C = r(() => n.clearable && i.value.length > 0 && !n.disabled && !n.readonly), w = r(() => n.clearable && !n.disabled && !n.readonly), T = r(() => ["coar-password-input-host", `coar-password-input--${n.size}`]);
7041
+ let n = e, i = U(e, "modelValue"), c = t, l = h(_s, void 0), { t: d } = J(), f = M(!1), p = ne("inputElement"), m = `coar-password-input-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, g = r(() => n.id || l?.inputId.value || m), _ = r(() => f.value ? "text" : "password"), v = r(() => f.value ? "eye" : "eye-off"), y = r(() => f.value ? d("coar.ui.passwordInput.hidePassword", void 0, "Hide password") : d("coar.ui.passwordInput.showPassword", void 0, "Show password")), b = r(() => n.error || (l?.hasError.value ?? !1)), S = r(() => l?.messageId.value || void 0), C = r(() => n.clearable && i.value.length > 0 && !n.disabled && !n.readonly), w = r(() => n.clearable && !n.disabled && !n.readonly), T = r(() => ["coar-password-input-host", `coar-password-input--${n.size}`]);
7042
7042
  function E(e) {
7043
7043
  i.value = e.target.value;
7044
7044
  }
@@ -7063,7 +7063,7 @@ var bc = { class: "coar-code-header" }, xc = { class: "coar-code-header-left" },
7063
7063
  disabled: e.disabled,
7064
7064
  readonly: e.readonly
7065
7065
  }, {
7066
- trailing: q(() => [w.value ? (O(), o("button", {
7066
+ trailing: K(() => [w.value ? (O(), o("button", {
7067
7067
  key: 0,
7068
7068
  type: "button",
7069
7069
  class: x(["coar-password-input-clear", { "coar-password-input-clear--hidden": !C.value }]),
@@ -7087,7 +7087,7 @@ var bc = { class: "coar-code-header" }, xc = { class: "coar-code-header-left" },
7087
7087
  source: "coar-builtin",
7088
7088
  size: "auto"
7089
7089
  }, null, 8, ["name"])], 8, dl)]),
7090
- default: q(() => [s("input", {
7090
+ default: K(() => [s("input", {
7091
7091
  id: g.value,
7092
7092
  ref_key: "inputElement",
7093
7093
  ref: p,
@@ -7153,6 +7153,14 @@ var bc = { class: "coar-code-header" }, xc = { class: "coar-code-header-left" },
7153
7153
  max: { default: void 0 },
7154
7154
  step: { default: 1 },
7155
7155
  decimals: { default: 0 },
7156
+ exact: {
7157
+ type: Boolean,
7158
+ default: !1
7159
+ },
7160
+ clampOnBlur: {
7161
+ type: Boolean,
7162
+ default: !1
7163
+ },
7156
7164
  disabled: {
7157
7165
  type: Boolean,
7158
7166
  default: !1
@@ -7187,21 +7195,22 @@ var bc = { class: "coar-code-header" }, xc = { class: "coar-code-header-left" },
7187
7195
  emits: /* @__PURE__ */ v([
7188
7196
  "focused",
7189
7197
  "blurred",
7190
- "clear"
7198
+ "clear",
7199
+ "entry-refused"
7191
7200
  ], ["update:modelValue"]),
7192
7201
  setup(t, { emit: n }) {
7193
7202
  let i = t, d = U(t, "modelValue"), f = n, { t: p } = J(), m = h(_s, void 0);
7194
7203
  vs();
7195
- let g = M(""), _ = G("inputElement"), v = null, y = `coar-number-input-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, b = r(() => i.id || m?.inputId.value || y), S = r(() => i.error || (m?.hasError.value ?? !1)), C = r(() => m?.messageId.value || void 0), T = r(() => i.clearable && d.value !== null && !i.disabled && !i.readonly), D = r(() => i.clearable && !i.disabled && !i.readonly), k = r(() => i.stepperButtons === "increment" || i.stepperButtons === "both"), A = r(() => i.stepperButtons === "decrement" || i.stepperButtons === "both"), j = r(() => (k.value || A.value) && !i.disabled && !i.readonly), N = r(() => d.value === null || i.min === void 0 ? !0 : d.value > i.min), F = r(() => d.value === null || i.max === void 0 ? !0 : d.value < i.max), I = r(() => ({
7204
+ let g = M(""), _ = ne("inputElement"), v = null, y = `coar-number-input-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, b = r(() => i.id || m?.inputId.value || y), S = M(!1), C = r(() => i.error || S.value || (m?.hasError.value ?? !1)), T = r(() => m?.messageId.value || void 0), D = r(() => i.clearable && d.value !== null && !i.disabled && !i.readonly), k = r(() => i.clearable && !i.disabled && !i.readonly), A = r(() => i.stepperButtons === "increment" || i.stepperButtons === "both"), j = r(() => i.stepperButtons === "decrement" || i.stepperButtons === "both"), N = r(() => (A.value || j.value) && !i.disabled && !i.readonly), F = r(() => d.value === null || i.min === void 0 ? !0 : d.value > i.min), I = r(() => d.value === null || i.max === void 0 ? !0 : d.value < i.max), L = r(() => ({
7196
7205
  xs: "xs",
7197
7206
  s: "xs",
7198
7207
  m: "s",
7199
7208
  l: "m"
7200
- })[i.size]), L = r(() => [
7209
+ })[i.size]), z = r(() => [
7201
7210
  "coar-number-input-host",
7202
7211
  `coar-number-input--${i.size}`,
7203
7212
  { "coar-number-input--content": i.width === "content" }
7204
- ]), z = r(() => Math.max(1, (g.value || i.placeholder).length)), B = r(() => {
7213
+ ]), B = r(() => Math.max(1, (g.value || i.placeholder).length)), V = r(() => {
7205
7214
  if (i.numberFormat) return i.numberFormat;
7206
7215
  let e = i.locale ?? navigator.language;
7207
7216
  if (e) try {
@@ -7216,94 +7225,134 @@ var bc = { class: "coar-code-header" }, xc = { class: "coar-code-header-left" },
7216
7225
  thousand: ""
7217
7226
  };
7218
7227
  });
7219
- function V(e) {
7228
+ function ee(e) {
7229
+ let t = e < 0 ? "-" : "", [n, r = "0"] = String(Math.abs(e)).split("e"), [i, a = ""] = n.split("."), o = i + a, s = i.length + Number(r);
7230
+ return s <= 0 ? `${t}0.${"0".repeat(-s)}${o}` : s >= o.length ? t + o + "0".repeat(s - o.length) : `${t}${o.slice(0, s)}.${o.slice(s)}`;
7231
+ }
7232
+ function te(e) {
7233
+ return ee(e).split(".")[1]?.length ?? 0;
7234
+ }
7235
+ function W(e) {
7220
7236
  if (e === null) return "";
7221
- let t = B.value;
7222
- return e.toFixed(i.decimals).replace(".", t.decimal);
7237
+ let t = V.value;
7238
+ return (i.decimals === null || Math.abs(e) >= 1e21 ? ee(e) : e.toFixed(i.decimals)).replace(".", t.decimal);
7223
7239
  }
7224
- function ee(e) {
7240
+ function re(e) {
7225
7241
  if (e.trim() === "") return null;
7226
- let t = B.value, n = (t.thousand ? e.replace(RegExp(`\\${t.thousand}`, "g"), "") : e).replace(t.decimal, "."), r = parseFloat(n);
7242
+ let t = V.value, n = (t.thousand ? e.replace(RegExp(`\\${t.thousand}`, "g"), "") : e).replace(t.decimal, "."), r = parseFloat(n);
7227
7243
  return isNaN(r) ? null : r;
7228
7244
  }
7229
- function te(e) {
7245
+ function ie(e) {
7246
+ let t = V.value.decimal.replace(/[\\\]^-]/g, "\\$&"), n = RegExp(`^(-?)(\\d*)(?:[.${t}](\\d*))?$`).exec(e.trim().replace(/^\u2212/, "-"));
7247
+ if (!n || !n[2] && !n[3]) return null;
7248
+ let r = n[3] ?? "";
7249
+ if (i.decimals !== null && r.replace(/0+$/, "").length > i.decimals) return null;
7250
+ let a = Number(`${n[1]}${n[2] || "0"}.${r || "0"}`);
7251
+ return Number.isFinite(a) ? a === 0 ? 0 : a : null;
7252
+ }
7253
+ function q(e) {
7254
+ S.value !== e && (S.value = e, f("entry-refused", e));
7255
+ }
7256
+ function ae(e) {
7257
+ return i.decimals === null ? e : parseFloat(e.toFixed(i.decimals));
7258
+ }
7259
+ function oe(e) {
7230
7260
  let t = e;
7231
7261
  return i.min !== void 0 && t < i.min && (t = i.min), i.max !== void 0 && t > i.max && (t = i.max), t;
7232
7262
  }
7233
- function W() {
7234
- let e = ee(g.value);
7263
+ function se() {
7264
+ if (g.value === W(d.value)) {
7265
+ q(!1);
7266
+ return;
7267
+ }
7268
+ if (i.exact && g.value.trim() !== "") {
7269
+ let e = ie(g.value);
7270
+ if (q(e === null), e === null) return;
7271
+ d.value = e, g.value = W(e);
7272
+ return;
7273
+ }
7274
+ q(!1);
7275
+ let e = re(g.value);
7235
7276
  if (e !== null) {
7236
- let t = te(e);
7237
- d.value = parseFloat(t.toFixed(i.decimals));
7277
+ let t = ae(oe(e));
7278
+ d.value = t, g.value = W(t);
7238
7279
  } else d.value = null, g.value = "";
7239
7280
  }
7240
- function ne() {
7241
- re();
7281
+ function ce() {
7282
+ Y();
7242
7283
  let e = _.value;
7243
- if (!e) return;
7244
- let t = B.value;
7245
- v = new le(e, fe({
7284
+ if (!e || i.exact) return;
7285
+ let t = V.value, n = {
7246
7286
  decimalSeparator: t.decimal,
7247
7287
  thousandSeparator: t.thousand,
7248
- maximumFractionDigits: i.decimals,
7249
- min: i.min,
7250
- max: i.max
7251
- }));
7288
+ maximumFractionDigits: i.decimals ?? Infinity,
7289
+ minusSign: "-"
7290
+ }, r = fe(n);
7291
+ v = new le(e, i.clampOnBlur ? r : {
7292
+ ...fe({
7293
+ ...n,
7294
+ min: i.min,
7295
+ max: i.max
7296
+ }),
7297
+ plugins: r.plugins
7298
+ });
7252
7299
  }
7253
- function re() {
7300
+ function Y() {
7254
7301
  v?.destroy(), v = null;
7255
7302
  }
7256
- K(() => d.value, (e) => {
7257
- g.value = V(e);
7258
- }, { immediate: !0 }), K([
7303
+ G(() => d.value, (e) => {
7304
+ g.value = W(e), q(!1);
7305
+ }, { immediate: !0 }), G([
7259
7306
  () => i.decimals,
7307
+ () => i.exact,
7308
+ () => i.clampOnBlur,
7260
7309
  () => i.min,
7261
7310
  () => i.max,
7262
- B
7311
+ V
7263
7312
  ], () => {
7264
- ne();
7313
+ ce();
7265
7314
  }), E(() => {
7266
- ne();
7315
+ ce();
7267
7316
  }), w(() => {
7268
- re();
7317
+ Y();
7269
7318
  });
7270
- function ie(e) {
7271
- g.value = e.target.value;
7319
+ function ue(e) {
7320
+ g.value = e.target.value, q(!1);
7272
7321
  }
7273
- function ae(e) {
7322
+ function de(e) {
7274
7323
  f("focused", e);
7275
7324
  }
7276
- function oe(e) {
7277
- W(), f("blurred", e);
7325
+ function X(e) {
7326
+ se(), f("blurred", e);
7278
7327
  }
7279
- function se(e) {
7280
- e.key === "ArrowUp" ? (e.preventDefault(), Y()) : e.key === "ArrowDown" && (e.preventDefault(), ue());
7328
+ function pe(e) {
7329
+ e.key === "ArrowUp" ? (e.preventDefault(), ge()) : e.key === "ArrowDown" && (e.preventDefault(), _e());
7281
7330
  }
7282
- function ce() {
7283
- d.value = null, g.value = "", f("clear"), _.value?.focus();
7331
+ function me() {
7332
+ d.value = null, g.value = "", q(!1), f("clear"), _.value?.focus();
7284
7333
  }
7285
- function Y() {
7286
- if (i.disabled || i.readonly || !F.value) return;
7287
- let e = te((d.value ?? 0) + i.step), t = parseFloat(e.toFixed(i.decimals));
7288
- d.value = t, g.value = V(t);
7334
+ function he(e) {
7335
+ let t = d.value ?? 0, n = i.decimals === null ? oe(parseFloat((t + e).toFixed(Math.max(te(t), te(e))))) : ae(oe(t + e));
7336
+ d.value = n, g.value = W(n), q(!1);
7289
7337
  }
7290
- function ue() {
7291
- if (i.disabled || i.readonly || !N.value) return;
7292
- let e = te((d.value ?? 0) - i.step), t = parseFloat(e.toFixed(i.decimals));
7293
- d.value = t, g.value = V(t);
7338
+ function ge() {
7339
+ i.disabled || i.readonly || !I.value || he(i.step);
7294
7340
  }
7295
- return (n, r) => (O(), o("div", { class: x(L.value) }, [s("div", pl, [u(Jc, {
7341
+ function _e() {
7342
+ i.disabled || i.readonly || !F.value || he(-i.step);
7343
+ }
7344
+ return (n, r) => (O(), o("div", { class: x(z.value) }, [s("div", pl, [u(Jc, {
7296
7345
  "mobile-sizing": "",
7297
7346
  class: "coar-number-input-frame",
7298
7347
  size: t.size,
7299
- error: S.value,
7348
+ error: C.value,
7300
7349
  appearance: t.appearance,
7301
7350
  "segment-start": !!n.$slots.prefixAction,
7302
7351
  "segment-end": !!n.$slots.suffixAction,
7303
7352
  disabled: t.disabled,
7304
7353
  readonly: t.readonly
7305
7354
  }, c({
7306
- default: q(() => [s("input", {
7355
+ default: K(() => [s("input", {
7307
7356
  id: b.value,
7308
7357
  ref_key: "inputElement",
7309
7358
  ref: _,
@@ -7312,37 +7361,37 @@ var bc = { class: "coar-code-header" }, xc = { class: "coar-code-header-left" },
7312
7361
  inputmode: "decimal",
7313
7362
  value: g.value,
7314
7363
  placeholder: t.placeholder,
7315
- size: t.width === "content" ? z.value : void 0,
7364
+ size: t.width === "content" ? B.value : void 0,
7316
7365
  disabled: t.disabled,
7317
7366
  readonly: t.readonly,
7318
7367
  required: t.required,
7319
- "aria-describedby": C.value,
7320
- "aria-invalid": S.value ? "true" : void 0,
7368
+ "aria-describedby": T.value,
7369
+ "aria-invalid": C.value ? "true" : void 0,
7321
7370
  "aria-valuemin": t.min,
7322
7371
  "aria-valuemax": t.max,
7323
7372
  "aria-valuenow": d.value ?? void 0,
7324
7373
  class: "coar-number-input-field",
7325
- onInput: ie,
7326
- onFocus: ae,
7327
- onBlur: oe,
7328
- onKeydown: se
7374
+ onInput: ue,
7375
+ onFocus: de,
7376
+ onBlur: X,
7377
+ onKeydown: pe
7329
7378
  }, null, 40, _l)]),
7330
7379
  _: 2
7331
7380
  }, [
7332
- D.value || t.prefix || n.$slots.prefix || n.$slots.prefixAction ? {
7381
+ k.value || t.prefix || n.$slots.prefix || n.$slots.prefixAction ? {
7333
7382
  name: "leading",
7334
- fn: q(() => [
7383
+ fn: K(() => [
7335
7384
  n.$slots.prefixAction ? (O(), o("span", ml, [P(n.$slots, "prefixAction", {
7336
7385
  disabled: t.disabled,
7337
7386
  readonly: t.readonly
7338
7387
  }, void 0, !0)])) : a("", !0),
7339
- D.value ? (O(), o("button", {
7388
+ k.value ? (O(), o("button", {
7340
7389
  key: 1,
7341
7390
  type: "button",
7342
- class: x(["coar-number-input-clear", { "coar-number-input-clear--hidden": !T.value }]),
7391
+ class: x(["coar-number-input-clear", { "coar-number-input-clear--hidden": !D.value }]),
7343
7392
  tabindex: "-1",
7344
7393
  "aria-label": H(p)("coar.ui.numberInput.clear", void 0, "Clear"),
7345
- onClick: ce
7394
+ onClick: me
7346
7395
  }, [u(H(Q), {
7347
7396
  name: "x",
7348
7397
  source: "coar-builtin",
@@ -7354,38 +7403,38 @@ var bc = { class: "coar-code-header" }, xc = { class: "coar-code-header-left" },
7354
7403
  } : void 0,
7355
7404
  t.suffix || n.$slots.suffix || n.$slots.suffixAction ? {
7356
7405
  name: "trailing",
7357
- fn: q(() => [t.suffix || n.$slots.suffix ? (O(), o("span", vl, [t.suffix ? (O(), o(e, { key: 0 }, [l(R(t.suffix), 1)], 64)) : a("", !0), P(n.$slots, "suffix", {}, void 0, !0)])) : a("", !0), n.$slots.suffixAction ? (O(), o("span", yl, [P(n.$slots, "suffixAction", {
7406
+ fn: K(() => [t.suffix || n.$slots.suffix ? (O(), o("span", vl, [t.suffix ? (O(), o(e, { key: 0 }, [l(R(t.suffix), 1)], 64)) : a("", !0), P(n.$slots, "suffix", {}, void 0, !0)])) : a("", !0), n.$slots.suffixAction ? (O(), o("span", yl, [P(n.$slots, "suffixAction", {
7358
7407
  disabled: t.disabled,
7359
7408
  readonly: t.readonly
7360
7409
  }, void 0, !0)])) : a("", !0)]),
7361
7410
  key: "1"
7362
7411
  } : void 0,
7363
- j.value ? {
7412
+ N.value ? {
7364
7413
  name: "actions",
7365
- fn: q(() => [s("div", bl, [A.value ? (O(), o("button", {
7414
+ fn: K(() => [s("div", bl, [j.value ? (O(), o("button", {
7366
7415
  key: 0,
7367
7416
  type: "button",
7368
7417
  class: "coar-number-input-button coar-number-input-button--decrement",
7369
- disabled: !N.value,
7418
+ disabled: !F.value,
7370
7419
  "aria-label": H(p)("coar.ui.numberInput.decrease", void 0, "Decrease value"),
7371
7420
  tabindex: "-1",
7372
- onClick: ue
7421
+ onClick: _e
7373
7422
  }, [u(H(Q), {
7374
7423
  name: "minus",
7375
7424
  source: "coar-builtin",
7376
- size: I.value
7377
- }, null, 8, ["size"])], 8, xl)) : a("", !0), k.value ? (O(), o("button", {
7425
+ size: L.value
7426
+ }, null, 8, ["size"])], 8, xl)) : a("", !0), A.value ? (O(), o("button", {
7378
7427
  key: 1,
7379
7428
  type: "button",
7380
7429
  class: "coar-number-input-button coar-number-input-button--increment",
7381
- disabled: !F.value,
7430
+ disabled: !I.value,
7382
7431
  "aria-label": H(p)("coar.ui.numberInput.increase", void 0, "Increase value"),
7383
7432
  tabindex: "-1",
7384
- onClick: Y
7433
+ onClick: ge
7385
7434
  }, [u(H(Q), {
7386
7435
  name: "plus",
7387
7436
  source: "coar-builtin",
7388
- size: I.value
7437
+ size: L.value
7389
7438
  }, null, 8, ["size"])], 8, Sl)) : a("", !0)])]),
7390
7439
  key: "2"
7391
7440
  } : void 0
@@ -7399,7 +7448,7 @@ var bc = { class: "coar-code-header" }, xc = { class: "coar-code-header-left" },
7399
7448
  "readonly"
7400
7449
  ])])], 2));
7401
7450
  }
7402
- }), [["__scopeId", "data-v-9df60711"]]), wl = Symbol("CoarCheckboxGroup"), Tl = {
7451
+ }), [["__scopeId", "data-v-3d01aa06"]]), wl = Symbol("CoarCheckboxGroup"), Tl = {
7403
7452
  key: 0,
7404
7453
  class: "coar-checkbox-label"
7405
7454
  }, El = {
@@ -7460,7 +7509,7 @@ var bc = { class: "coar-code-header" }, xc = { class: "coar-code-header-left" },
7460
7509
  }),
7461
7510
  emits: ["update:modelValue"],
7462
7511
  setup(e) {
7463
- let t = e, n = U(e, "modelValue"), i = M(!1), c = G("checkboxElement"), u = h(_s, void 0), d = h(wl, void 0), f = r(() => d?.size.value ?? t.size), p = `coar-checkbox-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, m = r(() => t.id || (!t.label && !d ? u?.inputId.value : void 0) || p), g = r(() => t.error || (d?.hasError.value ?? !1) || (u?.hasError.value ?? !1)), _ = r(() => t.disabled || (d?.disabled.value ?? !1) || (u?.disabled.value ?? !1)), v = r(() => !!(d && t.value)), y = r(() => v.value ? d.isChecked(t.value) : n.value === !0), b = r(() => [
7512
+ let t = e, n = U(e, "modelValue"), i = M(!1), c = ne("checkboxElement"), u = h(_s, void 0), d = h(wl, void 0), f = r(() => d?.size.value ?? t.size), p = `coar-checkbox-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, m = r(() => t.id || (!t.label && !d ? u?.inputId.value : void 0) || p), g = r(() => t.error || (d?.hasError.value ?? !1) || (u?.hasError.value ?? !1)), _ = r(() => t.disabled || (d?.disabled.value ?? !1) || (u?.disabled.value ?? !1)), v = r(() => !!(d && t.value)), y = r(() => v.value ? d.isChecked(t.value) : n.value === !0), b = r(() => [
7464
7513
  "coar-checkbox-host",
7465
7514
  `coar-checkbox--${f.value}`,
7466
7515
  {
@@ -7472,7 +7521,7 @@ var bc = { class: "coar-code-header" }, xc = { class: "coar-code-header-left" },
7472
7521
  "coar-checkbox-checked": y.value,
7473
7522
  "coar-checkbox-indeterminate": t.indeterminate
7474
7523
  }]);
7475
- K([() => t.indeterminate, c], ([e, t]) => {
7524
+ G([() => t.indeterminate, c], ([e, t]) => {
7476
7525
  t && (t.indeterminate = e);
7477
7526
  }, { immediate: !0 });
7478
7527
  function C(e) {
@@ -7497,7 +7546,7 @@ var bc = { class: "coar-code-header" }, xc = { class: "coar-code-header-left" },
7497
7546
  }
7498
7547
  return E(() => {
7499
7548
  d && t.value && d.register(t.value);
7500
- }), K(() => t.value, (e, t) => {
7549
+ }), G(() => t.value, (e, t) => {
7501
7550
  !d || e === t || (t && d.unregister(t), e && d.register(e));
7502
7551
  }), w(() => {
7503
7552
  d && t.value && d.unregister(t.value);
@@ -7611,7 +7660,7 @@ var bc = { class: "coar-code-header" }, xc = { class: "coar-code-header-left" },
7611
7660
  let t = p();
7612
7661
  t.delete(e), g(t);
7613
7662
  }
7614
- K([n, c], () => v(), { deep: !0 }), k(wl, {
7663
+ G([n, c], () => v(), { deep: !0 }), k(wl, {
7615
7664
  disabled: l,
7616
7665
  hasError: u,
7617
7666
  name: d,
@@ -7883,7 +7932,7 @@ function Kl(e) {
7883
7932
  for (let e of l) f.push(...u.get(e));
7884
7933
  return f;
7885
7934
  });
7886
- K(d, () => {
7935
+ G(d, () => {
7887
7936
  a.value = -1;
7888
7937
  });
7889
7938
  let f = r(() => {
@@ -8259,12 +8308,12 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
8259
8308
  return (n, r) => (O(), o("div", {
8260
8309
  class: x(["coar-select-dropdown", `coar-select-dropdown--${t.size}`]),
8261
8310
  role: "presentation"
8262
- }, [ie((O(), o("div", {
8311
+ }, [q((O(), o("div", {
8263
8312
  id: t.listboxId,
8264
8313
  class: "coar-select-options",
8265
8314
  role: "listbox",
8266
8315
  "aria-label": H(c)("coar.ui.select.options", void 0, "Options")
8267
- }, [(O(!0), o(e, null, N(H(l), (n, r) => (O(), o(e, { key: String(n.value) }, [n.group && (r === 0 || H(l)[r - 1]?.group !== n.group) ? (O(), o("div", du, R(n.group), 1)) : a("", !0), ie((O(), o("div", {
8316
+ }, [(O(!0), o(e, null, N(H(l), (n, r) => (O(), o(e, { key: String(n.value) }, [n.group && (r === 0 || H(l)[r - 1]?.group !== n.group) ? (O(), o("div", du, R(n.group), 1)) : a("", !0), q((O(), o("div", {
8268
8317
  id: `${t.optionIdPrefix}-option-${r}`,
8269
8318
  class: x(["coar-select-option", {
8270
8319
  "coar-select-option--selected": t.isSelected(n),
@@ -8371,7 +8420,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
8371
8420
  T(() => {
8372
8421
  f.value = d.option;
8373
8422
  });
8374
- let { t: p } = J(), m = h(_s, void 0), g = G("hostRef"), v = G("triggerRef"), S = () => v.value?.$el ?? void 0, C = G("searchInputRef"), E = r(() => n.error || (m?.hasError.value ?? !1)), { isOpen: D, searchQuery: k, highlightedIndex: A, inputId: j, listboxId: M, filteredOptions: N, activeDescendantId: F, closeDropdown: I, toggleDropdown: z, onSearchInput: V, onFocus: te, onBlur: ne, onKeyDown: re } = Kl({
8423
+ let { t: p } = J(), m = h(_s, void 0), g = ne("hostRef"), v = ne("triggerRef"), S = () => v.value?.$el ?? void 0, C = ne("searchInputRef"), E = r(() => n.error || (m?.hasError.value ?? !1)), { isOpen: D, searchQuery: k, highlightedIndex: A, inputId: j, listboxId: M, filteredOptions: N, activeDescendantId: F, closeDropdown: I, toggleDropdown: z, onSearchInput: V, onFocus: te, onBlur: re, onKeyDown: ie } = Kl({
8375
8424
  options: B(n, "options"),
8376
8425
  searchable: B(n, "searchable"),
8377
8426
  disabled: B(n, "disabled"),
@@ -8380,7 +8429,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
8380
8429
  dropdownPositionPreference: B(n, "dropdownPosition"),
8381
8430
  sortGroups: B(n, "sortGroups"),
8382
8431
  sortOptions: B(n, "sortOptions")
8383
- }), ie = r(() => n.id || m?.inputId.value || j.value), ae = r(() => m?.messageId.value || void 0), se = r(() => m?.labelId.value || void 0), ce = ee(), Y = () => se.value ? void 0 : ce["aria-label"], le = () => Object.fromEntries(Object.entries(ce).filter(([e]) => e !== "aria-label")), ue = r(() => n.compareWith ?? ((e, t) => e === t)), de = r(() => c.value === null || c.value === void 0 ? null : n.options.find((e) => ue.value(e.value, c.value)) ?? null), fe = r(() => n.clearable && c.value !== null && !n.disabled && !n.readonly), X = r(() => [
8432
+ }), q = r(() => n.id || m?.inputId.value || j.value), ae = r(() => m?.messageId.value || void 0), se = r(() => m?.labelId.value || void 0), ce = ee(), Y = () => se.value ? void 0 : ce["aria-label"], le = () => Object.fromEntries(Object.entries(ce).filter(([e]) => e !== "aria-label")), ue = r(() => n.compareWith ?? ((e, t) => e === t)), de = r(() => c.value === null || c.value === void 0 ? null : n.options.find((e) => ue.value(e.value, c.value)) ?? null), fe = r(() => n.clearable && c.value !== null && !n.disabled && !n.readonly), X = r(() => [
8384
8433
  "coar-select-host",
8385
8434
  `coar-select--${n.size}`,
8386
8435
  {
@@ -8410,11 +8459,11 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
8410
8459
  }
8411
8460
  function ve(e) {
8412
8461
  let t = D.value, r = C.value != null && e.target === C.value;
8413
- re(e, he, S(), r), D.value && n.searchable && e.key !== "Escape" && e.key !== "Tab" && b(() => C.value?.focus()), t && !D.value && e.key === "Escape" && b(() => S()?.focus());
8462
+ ie(e, he, S(), r), D.value && n.searchable && e.key !== "Escape" && e.key !== "Tab" && b(() => C.value?.focus()), t && !D.value && e.key === "Escape" && b(() => S()?.focus());
8414
8463
  }
8415
8464
  function ye(e) {
8416
8465
  let t = e.relatedTarget;
8417
- t && g.value?.contains(t) || ne();
8466
+ t && g.value?.contains(t) || re();
8418
8467
  }
8419
8468
  let be = gn(), xe = null;
8420
8469
  function Se() {
@@ -8438,7 +8487,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
8438
8487
  highlightedIndex: A,
8439
8488
  searchQuery: k,
8440
8489
  listboxId: M.value,
8441
- optionIdPrefix: ie.value,
8490
+ optionIdPrefix: q.value,
8442
8491
  size: n.size,
8443
8492
  isSelected: pe,
8444
8493
  onOptionClick: (e) => me(e),
@@ -8457,7 +8506,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
8457
8506
  let e = xe;
8458
8507
  xe = null, e && !e.isClosed && e.close();
8459
8508
  }
8460
- return K(D, (e) => {
8509
+ return G(D, (e) => {
8461
8510
  e ? Se() : Ce();
8462
8511
  }), w(() => {
8463
8512
  Ce();
@@ -8465,7 +8514,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
8465
8514
  ref_key: "hostRef",
8466
8515
  ref: g
8467
8516
  }, le(), { class: X.value }), [s("div", _u, [u(Jc, {
8468
- id: ie.value,
8517
+ id: q.value,
8469
8518
  ref_key: "triggerRef",
8470
8519
  ref: v,
8471
8520
  class: "coar-select-trigger coar-select-frame",
@@ -8492,7 +8541,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
8492
8541
  onFocus: H(te),
8493
8542
  onBlur: ye
8494
8543
  }, {
8495
- trailing: q(() => [fe.value ? (O(), o("button", {
8544
+ trailing: K(() => [fe.value ? (O(), o("button", {
8496
8545
  key: 0,
8497
8546
  type: "button",
8498
8547
  class: "coar-select-clear",
@@ -8509,7 +8558,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
8509
8558
  size: "auto",
8510
8559
  class: x(["coar-select-arrow", { "coar-select-arrow--open": H(D) }])
8511
8560
  }, null, 8, ["class"])]),
8512
- default: q(() => [H(D) && t.searchable && t.width === "content" ? (O(), o("span", vu, [s("span", yu, [P(n.$slots, "value", {
8561
+ default: K(() => [H(D) && t.searchable && t.width === "content" ? (O(), o("span", vu, [s("span", yu, [P(n.$slots, "value", {
8513
8562
  option: de.value,
8514
8563
  value: c.value,
8515
8564
  placeholder: t.placeholder
@@ -8686,13 +8735,13 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
8686
8735
  stroke: "currentColor",
8687
8736
  "stroke-width": "2",
8688
8737
  "stroke-linecap": "round"
8689
- }, null, -1)]])) : a("", !0)], 2), s("span", Du, R(t.selectAllLabel), 1)], 8, wu)) : a("", !0), ie((O(), o("div", {
8738
+ }, null, -1)]])) : a("", !0)], 2), s("span", Du, R(t.selectAllLabel), 1)], 8, wu)) : a("", !0), q((O(), o("div", {
8690
8739
  id: t.listboxId,
8691
8740
  class: "coar-select-options",
8692
8741
  role: "listbox",
8693
8742
  "aria-multiselectable": "true",
8694
8743
  "aria-label": H(r)("coar.ui.select.options", void 0, "Options")
8695
- }, [(O(!0), o(e, null, N(H(c), (n, r) => (O(), o(e, { key: String(n.value) }, [n.group && (r === 0 || H(c)[r - 1]?.group !== n.group) ? (O(), o("div", ku, R(n.group), 1)) : a("", !0), ie((O(), o("div", {
8744
+ }, [(O(!0), o(e, null, N(H(c), (n, r) => (O(), o(e, { key: String(n.value) }, [n.group && (r === 0 || H(c)[r - 1]?.group !== n.group) ? (O(), o("div", ku, R(n.group), 1)) : a("", !0), q((O(), o("div", {
8696
8745
  id: `${t.optionIdPrefix}-option-${r}`,
8697
8746
  class: x(["coar-select-option", {
8698
8747
  "coar-select-option--selected": t.isSelected(n),
@@ -8788,7 +8837,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
8788
8837
  }),
8789
8838
  emits: ["update:modelValue"],
8790
8839
  setup(e) {
8791
- let t = e, n = U(e, "modelValue"), { t: c } = J(), l = h(_s, void 0), d = G("hostRef"), f = G("triggerRef"), p = () => f.value?.$el ?? void 0, m = G("searchInputRef"), g = r(() => t.error || (l?.hasError.value ?? !1)), { isOpen: v, searchQuery: y, highlightedIndex: S, inputId: C, listboxId: T, filteredOptions: E, activeDescendantId: D, toggleDropdown: k, closeDropdown: A, onSearchInput: j, onFocus: M, onBlur: N, onKeyDown: P } = Kl({
8840
+ let t = e, n = U(e, "modelValue"), { t: c } = J(), l = h(_s, void 0), d = ne("hostRef"), f = ne("triggerRef"), p = () => f.value?.$el ?? void 0, m = ne("searchInputRef"), g = r(() => t.error || (l?.hasError.value ?? !1)), { isOpen: v, searchQuery: y, highlightedIndex: S, inputId: C, listboxId: T, filteredOptions: E, activeDescendantId: D, toggleDropdown: k, closeDropdown: A, onSearchInput: j, onFocus: M, onBlur: N, onKeyDown: P } = Kl({
8792
8841
  options: B(t, "options"),
8793
8842
  searchable: B(t, "searchable"),
8794
8843
  disabled: B(t, "disabled"),
@@ -8805,7 +8854,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
8805
8854
  content: ee.value,
8806
8855
  placement: "top",
8807
8856
  openDelay: 400
8808
- }), W = r(() => E.value.filter((e) => !e.disabled)), ne = r(() => W.value.length === 0 ? !1 : W.value.every((e) => n.value.some((t) => L.value(t, e.value)))), re = r(() => ne.value ? !1 : W.value.some((e) => n.value.some((t) => L.value(t, e.value)))), ae = r(() => t.clearable && z.value > 0 && !t.disabled && !t.readonly), se = r(() => [
8857
+ }), W = r(() => E.value.filter((e) => !e.disabled)), re = r(() => W.value.length === 0 ? !1 : W.value.every((e) => n.value.some((t) => L.value(t, e.value)))), ie = r(() => re.value ? !1 : W.value.some((e) => n.value.some((t) => L.value(t, e.value)))), ae = r(() => t.clearable && z.value > 0 && !t.disabled && !t.readonly), se = r(() => [
8809
8858
  "coar-select-host",
8810
8859
  `coar-select--${t.size}`,
8811
8860
  {
@@ -8825,7 +8874,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
8825
8874
  r >= 0 ? n.value = [...n.value.slice(0, r), ...n.value.slice(r + 1)] : n.value = [...n.value, e.value];
8826
8875
  }
8827
8876
  function le() {
8828
- if (!(t.disabled || t.readonly)) if (ne.value) n.value = n.value.filter((e) => !W.value.some((t) => L.value(t.value, e)));
8877
+ if (!(t.disabled || t.readonly)) if (re.value) n.value = n.value.filter((e) => !W.value.some((t) => L.value(t.value, e)));
8829
8878
  else {
8830
8879
  let e = [...n.value];
8831
8880
  for (let t of W.value) n.value.some((e) => L.value(e, t.value)) || e.push(t.value);
@@ -8876,8 +8925,8 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
8876
8925
  size: t.size,
8877
8926
  showSelectAll: t.showSelectAll,
8878
8927
  selectAllLabel: t.selectAllLabel,
8879
- allSelected: ne,
8880
- someSelected: re,
8928
+ allSelected: re,
8929
+ someSelected: ie,
8881
8930
  onToggleAll: le,
8882
8931
  isSelected: ce,
8883
8932
  onOptionClick: (e) => Y(e),
@@ -8895,7 +8944,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
8895
8944
  let e = he;
8896
8945
  he = null, e && !e.isClosed && e.close();
8897
8946
  }
8898
- return K(v, (e) => {
8947
+ return G(v, (e) => {
8899
8948
  e ? ge() : _e();
8900
8949
  }), w(() => {
8901
8950
  _e();
@@ -8903,7 +8952,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
8903
8952
  ref_key: "hostRef",
8904
8953
  ref: d,
8905
8954
  class: x(se.value)
8906
- }, [s("div", Fu, [ie((O(), i(Jc, {
8955
+ }, [s("div", Fu, [q((O(), i(Jc, {
8907
8956
  id: F.value,
8908
8957
  ref_key: "triggerRef",
8909
8958
  ref: f,
@@ -8929,7 +8978,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
8929
8978
  onFocus: H(M),
8930
8979
  onBlur: pe
8931
8980
  }, {
8932
- trailing: q(() => [
8981
+ trailing: K(() => [
8933
8982
  z.value > 0 ? (O(), o("span", Lu, R(z.value), 1)) : a("", !0),
8934
8983
  ae.value ? (O(), o("button", {
8935
8984
  key: 1,
@@ -8950,7 +8999,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
8950
8999
  class: x(["coar-select-arrow", { "coar-select-arrow--open": H(v) }])
8951
9000
  }, null, 8, ["class"])
8952
9001
  ]),
8953
- default: q(() => [H(v) && e.searchable ? (O(), o("input", {
9002
+ default: K(() => [H(v) && e.searchable ? (O(), o("input", {
8954
9003
  key: 0,
8955
9004
  ref_key: "searchInputRef",
8956
9005
  ref: m,
@@ -9031,12 +9080,12 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
9031
9080
  return (n, u) => (O(), o("div", {
9032
9081
  class: x(["coar-select-dropdown", `coar-select-dropdown--${t.size}`]),
9033
9082
  role: "presentation"
9034
- }, [ie((O(), o("div", {
9083
+ }, [q((O(), o("div", {
9035
9084
  id: t.listboxId,
9036
9085
  class: "coar-select-options",
9037
9086
  role: "listbox",
9038
9087
  "aria-label": H(r)("coar.ui.tagSelect.options", void 0, "Options")
9039
- }, [(O(!0), o(e, null, N(H(c), (n, r) => (O(), o(e, { key: String(n.value) }, [n.group && (r === 0 || H(c)[r - 1]?.group !== n.group) ? (O(), o("div", Vu, R(n.group), 1)) : a("", !0), ie((O(), o("div", {
9088
+ }, [(O(!0), o(e, null, N(H(c), (n, r) => (O(), o(e, { key: String(n.value) }, [n.group && (r === 0 || H(c)[r - 1]?.group !== n.group) ? (O(), o("div", Vu, R(n.group), 1)) : a("", !0), q((O(), o("div", {
9040
9089
  id: `${t.optionIdPrefix}-option-${r}`,
9041
9090
  class: x(["coar-select-option", {
9042
9091
  "coar-select-option--highlighted": H(l) === r,
@@ -9119,7 +9168,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
9119
9168
  }),
9120
9169
  emits: ["update:modelValue"],
9121
9170
  setup(t) {
9122
- let n = t, { t: i } = J(), c = U(t, "modelValue"), l = h(_s, void 0), d = G("hostRef"), f = G("triggerRef"), p = () => f.value?.$el ?? void 0, m = G("tagInputRef"), g = r(() => n.error || (l?.hasError.value ?? !1)), v = M(""), y = r(() => n.compareWith ?? ((e, t) => e === t)), S = r(() => n.options.filter((e) => !c.value.some((t) => y.value(t, e.value)))), { isOpen: C, isFocused: T, searchQuery: E, highlightedIndex: D, inputId: k, listboxId: A, filteredOptions: j, activeDescendantId: P, openDropdown: F, closeDropdown: I, onKeyDown: L } = Kl({
9171
+ let n = t, { t: i } = J(), c = U(t, "modelValue"), l = h(_s, void 0), d = ne("hostRef"), f = ne("triggerRef"), p = () => f.value?.$el ?? void 0, m = ne("tagInputRef"), g = r(() => n.error || (l?.hasError.value ?? !1)), v = M(""), y = r(() => n.compareWith ?? ((e, t) => e === t)), S = r(() => n.options.filter((e) => !c.value.some((t) => y.value(t, e.value)))), { isOpen: C, isFocused: T, searchQuery: E, highlightedIndex: D, inputId: k, listboxId: A, filteredOptions: j, activeDescendantId: P, openDropdown: F, closeDropdown: I, onKeyDown: L } = Kl({
9123
9172
  options: S,
9124
9173
  searchable: r(() => !0),
9125
9174
  disabled: B(n, "disabled"),
@@ -9145,14 +9194,14 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
9145
9194
  function W(e, t) {
9146
9195
  t?.stopPropagation(), !(n.disabled || n.readonly) && (c.value = c.value.filter((t) => !y.value(t, e)));
9147
9196
  }
9148
- function ne(e) {
9197
+ function re(e) {
9149
9198
  e.disabled || n.disabled || n.readonly || (c.value = [...c.value, e.value], v.value = "", E.value = "", b(() => m.value?.focus()));
9150
9199
  }
9151
- function re() {
9200
+ function ie() {
9152
9201
  let e = j.value, t = D.value;
9153
- t >= 0 && t < e.length && !e[t].disabled && ne(e[t]);
9202
+ t >= 0 && t < e.length && !e[t].disabled && re(e[t]);
9154
9203
  }
9155
- function ie(e) {
9204
+ function q(e) {
9156
9205
  let t = e.target.value;
9157
9206
  v.value = t, E.value = t, t && !C.value && F(p());
9158
9207
  }
@@ -9163,10 +9212,10 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
9163
9212
  }
9164
9213
  if (e.key === "Enter" && n.allowCreate && v.value.trim()) {
9165
9214
  let t = v.value.trim(), n = j.value.find((e) => e.label.toLowerCase() === t.toLowerCase());
9166
- D.value >= 0 ? re() : n ? ne(n) : (c.value = [...c.value, t], v.value = "", E.value = ""), e.preventDefault();
9215
+ D.value >= 0 ? ie() : n ? re(n) : (c.value = [...c.value, t], v.value = "", E.value = ""), e.preventDefault();
9167
9216
  return;
9168
9217
  }
9169
- L(e, re, p(), !0);
9218
+ L(e, ie, p(), !0);
9170
9219
  }
9171
9220
  function oe() {
9172
9221
  n.disabled || n.readonly || (m.value?.focus(), !C.value && S.value.length > 0 && F(p()));
@@ -9200,7 +9249,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
9200
9249
  listboxId: A.value,
9201
9250
  optionIdPrefix: z.value,
9202
9251
  size: n.size,
9203
- onOptionClick: (e) => ne(e),
9252
+ onOptionClick: (e) => re(e),
9204
9253
  onHighlight: (e) => {
9205
9254
  D.value = e;
9206
9255
  }
@@ -9215,7 +9264,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
9215
9264
  let e = le;
9216
9265
  le = null, e && !e.isClosed && e.close();
9217
9266
  }
9218
- return K(ue, (e) => {
9267
+ return G(ue, (e) => {
9219
9268
  e ? de() : fe();
9220
9269
  }), w(() => {
9221
9270
  fe();
@@ -9237,7 +9286,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
9237
9286
  appearance: t.appearance,
9238
9287
  onClick: oe
9239
9288
  }, {
9240
- default: q(() => [s("div", Ku, [(O(!0), o(e, null, N(ee.value, (e) => (O(), o("span", {
9289
+ default: K(() => [s("div", Ku, [(O(!0), o(e, null, N(ee.value, (e) => (O(), o("span", {
9241
9290
  key: String(e.value),
9242
9291
  class: "coar-tag-select-tag"
9243
9292
  }, [s("span", qu, R(e.label), 1), !t.disabled && !t.readonly ? (O(), o("button", {
@@ -9269,7 +9318,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
9269
9318
  "aria-invalid": g.value ? "true" : void 0,
9270
9319
  role: "combobox",
9271
9320
  autocomplete: "off",
9272
- onInput: ie,
9321
+ onInput: q,
9273
9322
  onKeydown: ae,
9274
9323
  onFocus: se,
9275
9324
  onBlur: ce
@@ -9446,7 +9495,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
9446
9495
  "items-remove"
9447
9496
  ], ["update:modelValue"]),
9448
9497
  setup(t, { expose: n, emit: c }) {
9449
- let d = t, f = U(t, "modelValue"), p = c, m = G("hostRef"), h = G("listRef"), g = me({
9498
+ let d = t, f = U(t, "modelValue"), p = c, m = ne("hostRef"), h = ne("listRef"), g = me({
9450
9499
  count: () => d.virtual ? L.value.length : 0,
9451
9500
  itemSize: () => (e) => {
9452
9501
  let t = L.value[e];
@@ -9559,19 +9608,19 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
9559
9608
  if (e.key === "ArrowDown") {
9560
9609
  e.preventDefault();
9561
9610
  let r = t[Math.min(t.length - 1, n + 1)];
9562
- S.value = r.value, e.shiftKey && y.value !== null ? ne(r) : !e.ctrlKey && !e.metaKey && (B([r.value]), y.value = r.value), re();
9611
+ S.value = r.value, e.shiftKey && y.value !== null ? re(r) : !e.ctrlKey && !e.metaKey && (B([r.value]), y.value = r.value), ie();
9563
9612
  } else if (e.key === "ArrowUp") {
9564
9613
  e.preventDefault();
9565
9614
  let r = t[n <= 0 ? 0 : n - 1];
9566
- S.value = r.value, e.shiftKey && y.value !== null ? ne(r) : !e.ctrlKey && !e.metaKey && (B([r.value]), y.value = r.value), re();
9615
+ S.value = r.value, e.shiftKey && y.value !== null ? re(r) : !e.ctrlKey && !e.metaKey && (B([r.value]), y.value = r.value), ie();
9567
9616
  } else if (e.key === "Home") {
9568
9617
  e.preventDefault();
9569
9618
  let n = t[0];
9570
- S.value = n.value, B([n.value]), y.value = n.value, re();
9619
+ S.value = n.value, B([n.value]), y.value = n.value, ie();
9571
9620
  } else if (e.key === "End") {
9572
9621
  e.preventDefault();
9573
9622
  let n = t[t.length - 1];
9574
- S.value = n.value, B([n.value]), y.value = n.value, re();
9623
+ S.value = n.value, B([n.value]), y.value = n.value, ie();
9575
9624
  } else if (e.key === " ") {
9576
9625
  if (e.preventDefault(), n >= 0) {
9577
9626
  let e = t[n];
@@ -9584,13 +9633,13 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
9584
9633
  }
9585
9634
  } else (e.ctrlKey || e.metaKey) && e.key.toLowerCase() === "a" && (e.preventDefault(), B(t.filter((e) => !e.disabled).map((e) => e.value)));
9586
9635
  }
9587
- function ne(e) {
9636
+ function re(e) {
9588
9637
  let t = j.value, n = t.findIndex((e) => w.value(e.value, y.value)), r = t.findIndex((t) => w.value(t.value, e.value));
9589
9638
  if (n < 0 || r < 0) return;
9590
9639
  let [i, a] = n < r ? [n, r] : [r, n];
9591
9640
  B(t.slice(i, a + 1).map((e) => e.value));
9592
9641
  }
9593
- function re() {
9642
+ function ie() {
9594
9643
  if (d.virtual) {
9595
9644
  let e = S.value;
9596
9645
  if (e === null) return;
@@ -9602,10 +9651,10 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
9602
9651
  (h.value?.querySelector(".coar-listbox-item--focused"))?.scrollIntoView({ block: "nearest" });
9603
9652
  });
9604
9653
  }
9605
- K(() => d.options, (e) => {
9654
+ G(() => d.options, (e) => {
9606
9655
  y.value !== null && !e.some((e) => w.value(e.value, y.value)) && (y.value = null), S.value !== null && !e.some((e) => w.value(e.value, S.value)) && (S.value = null);
9607
9656
  });
9608
- function q(e) {
9657
+ function K(e) {
9609
9658
  return {
9610
9659
  item: e,
9611
9660
  highlighted: z(e),
@@ -9625,7 +9674,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
9625
9674
  })
9626
9675
  };
9627
9676
  }
9628
- function ie(e) {
9677
+ function q(e) {
9629
9678
  return !d.draggable || !V(e) ? !1 : d.canDrag ? d.canDrag(e) : !0;
9630
9679
  }
9631
9680
  let ae = null;
@@ -9669,15 +9718,15 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
9669
9718
  })
9670
9719
  }), ce = se.isDragOver;
9671
9720
  function Y(e, t) {
9672
- if (!ie(t)) return;
9673
- let n = z(t) ? j.value.filter((e) => z(e) && ie(e)) : [t];
9721
+ if (!q(t)) return;
9722
+ let n = z(t) ? j.value.filter((e) => z(e) && q(e)) : [t];
9674
9723
  n.length !== 0 && se.startDrag(e, n) && e.dataTransfer?.setData("text/plain", n.map((e) => e.label).join(", "));
9675
9724
  }
9676
9725
  function le() {
9677
9726
  se.endDrag();
9678
9727
  }
9679
9728
  function ue(e, t) {
9680
- ie(t) && se.onPointerDown(e, () => z(t) ? j.value.filter((e) => z(e) && ie(e)) : [t], e.currentTarget);
9729
+ q(t) && se.onPointerDown(e, () => z(t) ? j.value.filter((e) => z(e) && q(e)) : [t], e.currentTarget);
9681
9730
  }
9682
9731
  function de(e) {
9683
9732
  d.droppable && se.onDragOver(e);
@@ -9797,7 +9846,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
9797
9846
  role: t.displayOnly ? "listitem" : "option",
9798
9847
  "aria-selected": t.displayOnly ? void 0 : z(u.item) ? "true" : "false",
9799
9848
  "aria-disabled": u.item.disabled ? "true" : void 0,
9800
- draggable: ie(u.item) && H(se).engine.value === "native" ? !0 : void 0,
9849
+ draggable: q(u.item) && H(se).engine.value === "native" ? !0 : void 0,
9801
9850
  "data-value": String(u.item.value),
9802
9851
  onClick: (e) => ee(u.item, e),
9803
9852
  onDblclick: (e) => te(u.item, e),
@@ -9811,7 +9860,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
9811
9860
  highlighted: z(u.item),
9812
9861
  selectable: V(u.item),
9813
9862
  side: t.side,
9814
- api: q(u.item)
9863
+ api: K(u.item)
9815
9864
  }, null, 8, [
9816
9865
  "item",
9817
9866
  "highlighted",
@@ -9824,14 +9873,14 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
9824
9873
  highlighted: z(u.item),
9825
9874
  selectable: V(u.item),
9826
9875
  side: t.side,
9827
- api: q(u.item)
9876
+ api: K(u.item)
9828
9877
  }) : n.$slots.item ? P(n.$slots, "item", {
9829
9878
  key: 2,
9830
9879
  item: u.item,
9831
9880
  highlighted: z(u.item),
9832
9881
  selectable: V(u.item),
9833
9882
  side: t.side,
9834
- api: q(u.item)
9883
+ api: K(u.item)
9835
9884
  }) : (O(), o(e, { key: 3 }, [u.item.icon ? (O(), i(H(Q), {
9836
9885
  key: 0,
9837
9886
  name: u.item.icon,
@@ -9855,7 +9904,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
9855
9904
  role: t.displayOnly ? "listitem" : "option",
9856
9905
  "aria-selected": t.displayOnly ? void 0 : z(c) ? "true" : "false",
9857
9906
  "aria-disabled": c.disabled ? "true" : void 0,
9858
- draggable: ie(c) && H(se).engine.value === "native" ? !0 : void 0,
9907
+ draggable: q(c) && H(se).engine.value === "native" ? !0 : void 0,
9859
9908
  "data-value": String(c.value),
9860
9909
  onClick: (e) => ee(c, e),
9861
9910
  onDblclick: (e) => te(c, e),
@@ -9869,7 +9918,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
9869
9918
  highlighted: z(c),
9870
9919
  selectable: V(c),
9871
9920
  side: t.side,
9872
- api: q(c)
9921
+ api: K(c)
9873
9922
  }, null, 8, [
9874
9923
  "item",
9875
9924
  "highlighted",
@@ -9882,14 +9931,14 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
9882
9931
  highlighted: z(c),
9883
9932
  selectable: V(c),
9884
9933
  side: t.side,
9885
- api: q(c)
9934
+ api: K(c)
9886
9935
  }) : n.$slots.item ? P(n.$slots, "item", {
9887
9936
  key: 2,
9888
9937
  item: c,
9889
9938
  highlighted: z(c),
9890
9939
  selectable: V(c),
9891
9940
  side: t.side,
9892
- api: q(c)
9941
+ api: K(c)
9893
9942
  }) : (O(), o(e, { key: 3 }, [c.icon ? (O(), i(H(Q), {
9894
9943
  key: 0,
9895
9944
  name: c.icon,
@@ -9993,7 +10042,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
9993
10042
  "item-action"
9994
10043
  ], ["update:modelValue"]),
9995
10044
  setup(e, { expose: t, emit: n }) {
9996
- let l = e, d = `coar-dual-${crypto.randomUUID?.() ?? Math.random().toString(16).slice(2)}`, f = U(e, "modelValue"), m = n, h = G("leftRef"), g = G("rightRef"), _ = r(() => l.compareWith ?? ((e, t) => e === t)), v = L([]), y = L([]), b = r(() => {
10045
+ let l = e, d = `coar-dual-${crypto.randomUUID?.() ?? Math.random().toString(16).slice(2)}`, f = U(e, "modelValue"), m = n, h = ne("leftRef"), g = ne("rightRef"), _ = r(() => l.compareWith ?? ((e, t) => e === t)), v = L([]), y = L([]), b = r(() => {
9997
10046
  let e = _.value;
9998
10047
  return (t) => f.value.some((n) => e(n, t));
9999
10048
  }), C = r(() => l.options.filter((e) => !b.value(e.value))), w = r(() => {
@@ -10142,16 +10191,16 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
10142
10191
  }, c({ _: 2 }, [
10143
10192
  N(te.value, (e) => ({
10144
10193
  name: e,
10145
- fn: q((n) => [P(t.$slots, e, S(p(n)))])
10194
+ fn: K((n) => [P(t.$slots, e, S(p(n)))])
10146
10195
  })),
10147
10196
  t.$slots["header-available"] ? {
10148
10197
  name: "header",
10149
- fn: q((e) => [P(t.$slots, "header-available", S(p(e)))]),
10198
+ fn: K((e) => [P(t.$slots, "header-available", S(p(e)))]),
10150
10199
  key: "0"
10151
10200
  } : void 0,
10152
10201
  t.$slots["empty-available"] ? {
10153
10202
  name: "empty",
10154
- fn: q(() => [P(t.$slots, "empty-available")]),
10203
+ fn: K(() => [P(t.$slots, "empty-available")]),
10155
10204
  key: "1"
10156
10205
  } : void 0
10157
10206
  ]), 1032, /* @__PURE__ */ "modelValue.options.label.show-count.height.disabled.readonly.searchable.search-placeholder.search-fields.search-by.filter-with.sort-groups.sort-options.hide-group-headings.item-components.kind-by.compare-with.empty-text.draggable.droppable.drag-engine.drag-group.can-drag.can-drop.virtual.item-height.group-heading-height.overscan".split(".")),
@@ -10249,16 +10298,16 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
10249
10298
  }, c({ _: 2 }, [
10250
10299
  N(te.value, (e) => ({
10251
10300
  name: e,
10252
- fn: q((n) => [P(t.$slots, e, S(p(n)))])
10301
+ fn: K((n) => [P(t.$slots, e, S(p(n)))])
10253
10302
  })),
10254
10303
  t.$slots["header-selected"] ? {
10255
10304
  name: "header",
10256
- fn: q((e) => [P(t.$slots, "header-selected", S(p(e)))]),
10305
+ fn: K((e) => [P(t.$slots, "header-selected", S(p(e)))]),
10257
10306
  key: "0"
10258
10307
  } : void 0,
10259
10308
  t.$slots["empty-selected"] ? {
10260
10309
  name: "empty",
10261
- fn: q(() => [P(t.$slots, "empty-selected")]),
10310
+ fn: K(() => [P(t.$slots, "empty-selected")]),
10262
10311
  key: "1"
10263
10312
  } : void 0
10264
10313
  ]), 1032, /* @__PURE__ */ "modelValue.options.label.show-count.height.disabled.readonly.searchable.search-placeholder.search-fields.search-by.filter-with.sort-groups.sort-options.hide-group-headings.item-components.kind-by.compare-with.empty-text.draggable.droppable.drag-engine.drag-group.can-drag.can-drop.virtual.item-height.group-heading-height.overscan".split("."))
@@ -10268,7 +10317,7 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
10268
10317
  __name: "CoarOverlayOutlet",
10269
10318
  props: { instance: {} },
10270
10319
  setup(e) {
10271
- let n = e, r = G("hostRef"), c = G("panelRef"), l = h(mn), u, d = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Set(), p = /* @__PURE__ */ new Set(), m = !1;
10320
+ let n = e, r = ne("hostRef"), c = ne("panelRef"), l = h(mn), u, d = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Set(), p = /* @__PURE__ */ new Set(), m = !1;
10272
10321
  function g() {
10273
10322
  let e = n.instance.spec.anchor, t = n.instance.contextEl ?? n.instance.parent?.panelEl, r = (e.kind === "element" ? e.element : rt(t) ? t : null)?.closest(".coar-theme-scope, [data-coar-theme-proxy]");
10274
10323
  return r instanceof HTMLElement ? r : null;
@@ -10553,14 +10602,14 @@ var cu = /* @__PURE__ */ new WeakMap(), lu = {
10553
10602
  variant: "secondary",
10554
10603
  onClick: e.onCancel
10555
10604
  }, {
10556
- default: q(() => [l(R(e.cancelText), 1)]),
10605
+ default: K(() => [l(R(e.cancelText), 1)]),
10557
10606
  _: 1
10558
10607
  }, 8, ["onClick"]), u(Ws, {
10559
10608
  size: "s",
10560
10609
  variant: e.confirmVariant === "danger" ? "danger" : "primary",
10561
10610
  onClick: e.onConfirm
10562
10611
  }, {
10563
- default: q(() => [l(R(e.confirmText), 1)]),
10612
+ default: K(() => [l(R(e.confirmText), 1)]),
10564
10613
  _: 1
10565
10614
  }, 8, ["variant", "onClick"])])
10566
10615
  ])]));
@@ -10845,7 +10894,7 @@ var Zd = ["aria-label", "aria-labelledby"], Qd = {
10845
10894
  name: "x",
10846
10895
  size: "s"
10847
10896
  })], 8, $d)) : a("", !0)])) : a("", !0),
10848
- ie((O(), o("div", ef, [e.confirmMode ? (O(), o("p", tf, R(e.confirmMessage), 1)) : v.value ? (O(), i(F(v.value), { key: 1 })) : P(t.$slots, "default", { key: 2 }, void 0, !0)])), [[H(Xo), {
10897
+ q((O(), o("div", ef, [e.confirmMode ? (O(), o("p", tf, R(e.confirmMessage), 1)) : v.value ? (O(), i(F(v.value), { key: 1 })) : P(t.$slots, "default", { key: 2 }, void 0, !0)])), [[H(Xo), {
10849
10898
  overflowX: "hidden",
10850
10899
  defer: !1
10851
10900
  }]]),
@@ -10853,13 +10902,13 @@ var Zd = ["aria-label", "aria-labelledby"], Qd = {
10853
10902
  variant: "secondary",
10854
10903
  onClick: n[1] ||= (e) => g(!1)
10855
10904
  }, {
10856
- default: q(() => [l(R(e.cancelText), 1)]),
10905
+ default: K(() => [l(R(e.cancelText), 1)]),
10857
10906
  _: 1
10858
10907
  }), u(Ws, {
10859
10908
  variant: e.confirmVariant,
10860
10909
  onClick: n[2] ||= (e) => g(!0)
10861
10910
  }, {
10862
- default: q(() => [l(R(e.confirmText), 1)]),
10911
+ default: K(() => [l(R(e.confirmText), 1)]),
10863
10912
  _: 1
10864
10913
  }, 8, ["variant"])])) : a("", !0),
10865
10914
  !e.confirmMode && (t.$slots.footer || H(h)) ? (O(), o("div", {
@@ -10898,7 +10947,7 @@ function lf() {
10898
10947
  }
10899
10948
  return E(() => {
10900
10949
  n = document.createElement("div"), n.setAttribute("data-coar-viewport-frame", ""), n.setAttribute("aria-hidden", "true"), n.style.cssText = "all: initial; position: fixed; inset: 0; visibility: hidden; pointer-events: none; contain: strict;", document.body.append(n), t = typeof window < "u" ? window.visualViewport ?? null : null, t?.addEventListener("resize", r), t?.addEventListener("scroll", r), window.addEventListener("resize", r), r();
10901
- }), K(of, r, { flush: "sync" }), w(() => {
10950
+ }), G(of, r, { flush: "sync" }), w(() => {
10902
10951
  n?.remove(), n = null, t?.removeEventListener("resize", r), t?.removeEventListener("scroll", r), window.removeEventListener("resize", r), t = null;
10903
10952
  }), { metrics: e };
10904
10953
  }
@@ -11089,7 +11138,7 @@ var Tf = ["aria-label", "aria-labelledby"], Ef = {
11089
11138
  }
11090
11139
  E(() => {
11091
11140
  typeof ResizeObserver < "u" && (j = new ResizeObserver(N)), b(I);
11092
- }), K(D, () => b(I)), w(() => j?.disconnect());
11141
+ }), G(D, () => b(I)), w(() => j?.disconnect());
11093
11142
  function L() {
11094
11143
  let e = f.value, t = typeof document < "u" ? document.activeElement : null;
11095
11144
  if (!(!e || !(t instanceof HTMLElement) || !e.contains(t)) && t.matches(jf)) for (let n = t.parentElement; n; n = n.parentElement) {
@@ -11101,7 +11150,7 @@ var Tf = ["aria-label", "aria-labelledby"], Ef = {
11101
11150
  if (n === e) return;
11102
11151
  }
11103
11152
  }
11104
- K(S, () => b(N));
11153
+ G(S, () => b(N));
11105
11154
  let B = r(() => `coar-sheet--${n.size}`), V = r(() => {
11106
11155
  if (!n.bodyComponent) return null;
11107
11156
  let e = n.bodyComponent, t = n.bodyComponentProps;
@@ -11140,7 +11189,7 @@ var Tf = ["aria-label", "aria-labelledby"], Ef = {
11140
11189
  name: "x",
11141
11190
  size: "s"
11142
11191
  })], 8, Df)) : a("", !0)], 16)) : a("", !0),
11143
- ie((O(), o("div", Of, [e.confirmMode ? (O(), o("p", kf, R(e.confirmMessage), 1)) : V.value ? (O(), i(F(V.value), { key: 1 })) : P(t.$slots, "default", { key: 2 }, void 0, !0)])), [[H(Xo), {
11192
+ q((O(), o("div", Of, [e.confirmMode ? (O(), o("p", kf, R(e.confirmMessage), 1)) : V.value ? (O(), i(F(V.value), { key: 1 })) : P(t.$slots, "default", { key: 2 }, void 0, !0)])), [[H(Xo), {
11144
11193
  overflowX: "hidden",
11145
11194
  defer: !1,
11146
11195
  overscrollBehavior: A.value ? "auto" : "contain"
@@ -11151,14 +11200,14 @@ var Tf = ["aria-label", "aria-labelledby"], Ef = {
11151
11200
  "full-width": "",
11152
11201
  onClick: n[1] ||= (e) => g(!1)
11153
11202
  }, {
11154
- default: q(() => [l(R(e.cancelText), 1)]),
11203
+ default: K(() => [l(R(e.cancelText), 1)]),
11155
11204
  _: 1
11156
11205
  })) : a("", !0), u(Ws, {
11157
11206
  variant: e.confirmVariant,
11158
11207
  "full-width": "",
11159
11208
  onClick: n[2] ||= (e) => g(!0)
11160
11209
  }, {
11161
- default: q(() => [l(R(e.confirmText), 1)]),
11210
+ default: K(() => [l(R(e.confirmText), 1)]),
11162
11211
  _: 1
11163
11212
  }, 8, ["variant"])])) : a("", !0),
11164
11213
  !e.confirmMode && (t.$slots.footer || H(D)) ? (O(), o("div", {
@@ -11542,7 +11591,7 @@ var $f = {
11542
11591
  onKeydown: d
11543
11592
  }, [
11544
11593
  e.$slots.header ? (O(), o("div", $f, [P(e.$slots, "header", {}, void 0, !0)])) : a("", !0),
11545
- ie((O(), o("div", ep, [P(e.$slots, "default", {}, void 0, !0)])), [[H(Xo), {
11594
+ q((O(), o("div", ep, [P(e.$slots, "default", {}, void 0, !0)])), [[H(Xo), {
11546
11595
  overflowX: "hidden",
11547
11596
  overflowY: "scroll",
11548
11597
  autoHide: "leave"
@@ -11592,7 +11641,7 @@ var $f = {
11592
11641
  emits: ["clicked"],
11593
11642
  setup(t, { emit: n }) {
11594
11643
  let a = t, c = n, d = Qf(), f = h(Jf, void 0), p = M(null), { RouterLink: m, hasRouterLink: g, warnIfMisconfigured: _ } = Is();
11595
- K(() => a.to, (e) => _(e, "CoarMenuItem"), { immediate: !0 });
11644
+ G(() => a.to, (e) => _(e, "CoarMenuItem"), { immediate: !0 });
11596
11645
  let v = r(() => a.to !== void 0 && a.to !== null);
11597
11646
  function y(e) {
11598
11647
  return {
@@ -11610,7 +11659,7 @@ var $f = {
11610
11659
  el: p.value,
11611
11660
  disabled: a.disabled
11612
11661
  };
11613
- S = f.register(e), K(() => a.disabled, (t) => {
11662
+ S = f.register(e), G(() => a.disabled, (t) => {
11614
11663
  e.disabled = t;
11615
11664
  });
11616
11665
  }
@@ -11661,7 +11710,7 @@ var $f = {
11661
11710
  to: t.to,
11662
11711
  custom: ""
11663
11712
  }, {
11664
- default: q(({ href: t, isActive: r, navigate: i }) => [s("a", {
11713
+ default: K(({ href: t, isActive: r, navigate: i }) => [s("a", {
11665
11714
  ref_key: "itemRef",
11666
11715
  ref: p,
11667
11716
  role: "menuitem",
@@ -11824,7 +11873,7 @@ var gp = /* @__PURE__ */ Z(pp, [["render", hp], ["__scopeId", "data-v-a0d5d1e3"]
11824
11873
  onMouseenter: n[0] ||= (e) => t.$emit("panelEnter"),
11825
11874
  onMouseleave: n[1] ||= (e) => t.$emit("panelLeave")
11826
11875
  }, {
11827
- default: q(() => [(O(), i(F({ render: e.renderContent })))]),
11876
+ default: K(() => [(O(), i(F({ render: e.renderContent })))]),
11828
11877
  _: 1
11829
11878
  }, 8, ["id"]));
11830
11879
  }
@@ -11855,7 +11904,7 @@ var gp = /* @__PURE__ */ Z(pp, [["render", hp], ["__scopeId", "data-v-a0d5d1e3"]
11855
11904
  el: p.value,
11856
11905
  disabled: t.disabled
11857
11906
  };
11858
- g = l.register(e), K(() => t.disabled, (t) => {
11907
+ g = l.register(e), G(() => t.disabled, (t) => {
11859
11908
  e.disabled = t;
11860
11909
  });
11861
11910
  }
@@ -11964,7 +12013,7 @@ var gp = /* @__PURE__ */ Z(pp, [["render", hp], ["__scopeId", "data-v-a0d5d1e3"]
11964
12013
  }
11965
12014
  }
11966
12015
  }
11967
- return K(() => t.disabled, (e) => {
12016
+ return G(() => t.disabled, (e) => {
11968
12017
  e && k();
11969
12018
  }), w(() => {
11970
12019
  g?.(), L(), m && !m.isClosed && m.close(), m = null, c.destroy();
@@ -12016,7 +12065,7 @@ var gp = /* @__PURE__ */ Z(pp, [["render", hp], ["__scopeId", "data-v-a0d5d1e3"]
12016
12065
  setup(e) {
12017
12066
  let t = e;
12018
12067
  return Zf(() => t.closeMenu()), (t, n) => (O(), i(np, null, {
12019
- default: q(() => [(O(), i(F({ render: e.renderContent })))]),
12068
+ default: K(() => [(O(), i(F({ render: e.renderContent })))]),
12020
12069
  _: 1
12021
12070
  }));
12022
12071
  }
@@ -12059,7 +12108,7 @@ var gp = /* @__PURE__ */ Z(pp, [["render", hp], ["__scopeId", "data-v-a0d5d1e3"]
12059
12108
  let e = i;
12060
12109
  i = null, e && !e.isClosed && e.close();
12061
12110
  }
12062
- return K(() => t.menu.isOpen.value, (e) => {
12111
+ return G(() => t.menu.isOpen.value, (e) => {
12063
12112
  e ? o() : s();
12064
12113
  }, { immediate: !0 }), w(() => {
12065
12114
  s();
@@ -12180,9 +12229,9 @@ var Fp = /* @__PURE__ */ d({
12180
12229
  return t;
12181
12230
  }
12182
12231
  let g = M(/* @__PURE__ */ new Set()), _ = M(""), v = r(() => l.modelValue ?? _.value);
12183
- K(m, (e) => {
12232
+ G(m, (e) => {
12184
12233
  !v.value && e.length > 0 && y((e.find((e) => !e.disabled) ?? e[0]).id);
12185
- }, { immediate: !0 }), K(v, (e) => {
12234
+ }, { immediate: !0 }), G(v, (e) => {
12186
12235
  e && g.value.add(e);
12187
12236
  }, { immediate: !0 });
12188
12237
  function y(e) {
@@ -12670,7 +12719,7 @@ var cm = {
12670
12719
  I.value = !0, Promise.resolve(r).then(() => {
12671
12720
  I.value = !1, A.value = null, j.value = "";
12672
12721
  }, () => {
12673
- I.value = !1, b(() => re());
12722
+ I.value = !1, b(() => ie());
12674
12723
  });
12675
12724
  return;
12676
12725
  }
@@ -12686,13 +12735,13 @@ var cm = {
12686
12735
  function te() {
12687
12736
  if (!I.value) {
12688
12737
  if (Date.now() - F < 200) {
12689
- b(() => re());
12738
+ b(() => ie());
12690
12739
  return;
12691
12740
  }
12692
12741
  z();
12693
12742
  }
12694
12743
  }
12695
- function re() {
12744
+ function ie() {
12696
12745
  let e = (ze.value ?? Be.value)?.querySelector("[data-draft-input]");
12697
12746
  e?.focus(), e?.select();
12698
12747
  }
@@ -12815,7 +12864,7 @@ var cm = {
12815
12864
  };
12816
12865
  }
12817
12866
  let De = r(() => we.value ? Ee(Se.value, Te.value) : null), Oe = r(() => De.value?.keep ?? null);
12818
- K([
12867
+ G([
12819
12868
  Se,
12820
12869
  we,
12821
12870
  Te
@@ -12828,7 +12877,7 @@ var cm = {
12828
12877
  if (we.value && De.value) for (let e of De.value.expand) r(e);
12829
12878
  else for (let t of e) for (let e of vt(t)) r(e);
12830
12879
  n && (le.value = t);
12831
- }, { immediate: !0 }), K(ye, (e) => {
12880
+ }, { immediate: !0 }), G(ye, (e) => {
12832
12881
  if (!e || _e.value) return;
12833
12882
  let t = om(fe.value, e);
12834
12883
  t !== fe.value && (fe.value = t);
@@ -12906,11 +12955,11 @@ var cm = {
12906
12955
  kind: e.kind
12907
12956
  };
12908
12957
  });
12909
- K(A, (e) => {
12910
- e && b(() => re());
12958
+ G(A, (e) => {
12959
+ e && b(() => ie());
12911
12960
  }, { flush: "post" });
12912
12961
  let Ie = M(null);
12913
- K(Ne, (e, t) => {
12962
+ G(Ne, (e, t) => {
12914
12963
  if (!e.length) {
12915
12964
  Ie.value = null;
12916
12965
  return;
@@ -12949,7 +12998,7 @@ var cm = {
12949
12998
  itemSize: t.itemSize ?? 28,
12950
12999
  overscan: t.overscan ?? 5
12951
13000
  };
12952
- }), Re = r(() => Le.value !== null), ze = G("scrollEl"), Be = G("rootEl"), Ve = me({
13001
+ }), Re = r(() => Le.value !== null), ze = ne("scrollEl"), Be = ne("rootEl"), Ve = me({
12953
13002
  count: () => Re.value ? Ne.value.length + +!!A.value : 0,
12954
13003
  itemSize: () => Le.value?.itemSize ?? 28,
12955
13004
  overscan: () => Le.value?.overscan ?? 5,
@@ -13082,7 +13131,7 @@ var cm = {
13082
13131
  t && (e.value = n);
13083
13132
  }
13084
13133
  }
13085
- K([le, () => J.value.nodes], () => {
13134
+ G([le, () => J.value.nodes], () => {
13086
13135
  if (Ze.size) for (let e of [...Ze.keys()]) (!le.value.has(e) || !tn(e)) && rt(e);
13087
13136
  if (J.value.loadChildren) {
13088
13137
  at();
@@ -13711,7 +13760,7 @@ var cm = {
13711
13760
  name: t.draft.kind === "folder" ? "folder" : "file",
13712
13761
  size: "var(--coar-tree-icon-size, 12px)"
13713
13762
  }, null, 8, ["name"])], !0)]),
13714
- ie(s("input", {
13763
+ q(s("input", {
13715
13764
  "onUpdate:modelValue": r[0] ||= (e) => j.value = e,
13716
13765
  class: "coar-tree__draft-input",
13717
13766
  "data-draft-input": "",
@@ -13725,7 +13774,7 @@ var cm = {
13725
13774
  ],
13726
13775
  onFocus: r[6] ||= (e) => ee(),
13727
13776
  onBlur: r[7] ||= (e) => te()
13728
- }, null, 40, dm), [[ne, j.value]])
13777
+ }, null, 40, dm), [[re, j.value]])
13729
13778
  ], 4)) : (O(), i(tm, {
13730
13779
  key: 1,
13731
13780
  node: t.row.node,
@@ -13773,8 +13822,8 @@ var cm = {
13773
13822
  key: 2,
13774
13823
  menu: H(Dt)
13775
13824
  }, {
13776
- default: q(() => [u(np, null, {
13777
- default: q(() => [(O(!0), o(e, null, N(kt.value, (t, n) => (O(), o(e, { key: n }, [t === "divider" ? (O(), i(gp, { key: 0 })) : (O(), i(fp, {
13825
+ default: K(() => [u(np, null, {
13826
+ default: K(() => [(O(!0), o(e, null, N(kt.value, (t, n) => (O(), o(e, { key: n }, [t === "divider" ? (O(), i(gp, { key: 0 })) : (O(), i(fp, {
13778
13827
  key: 1,
13779
13828
  label: t.label,
13780
13829
  icon: t.icon,
@@ -13801,10 +13850,10 @@ var cm = {
13801
13850
  __name: "CoarTreeNodeLabel",
13802
13851
  props: { label: {} },
13803
13852
  setup(e) {
13804
- let t = h(Kp, null), n = h(Jp, null), i = r(() => n != null && t != null && n.renamingId.value === t), a = G("inputEl");
13805
- return n && t && K(i, async (e) => {
13853
+ let t = h(Kp, null), n = h(Jp, null), i = r(() => n != null && t != null && n.renamingId.value === t), a = ne("inputEl");
13854
+ return n && t && G(i, async (e) => {
13806
13855
  e && (await b(), a.value?.focus(), a.value?.select());
13807
- }), (r, s) => H(n) && i.value ? ie((O(), o("input", {
13856
+ }), (r, s) => H(n) && i.value ? q((O(), o("input", {
13808
13857
  key: 0,
13809
13858
  ref_key: "inputEl",
13810
13859
  ref: a,
@@ -13820,7 +13869,7 @@ var cm = {
13820
13869
  ],
13821
13870
  onFocus: s[6] ||= (e) => H(n).onFocus(),
13822
13871
  onBlur: s[7] ||= (e) => H(n).onBlur()
13823
- }, null, 40, mm)), [[ne, H(n).buffer.value]]) : (O(), o("span", hm, R(e.label), 1));
13872
+ }, null, 40, mm)), [[re, H(n).buffer.value]]) : (O(), o("span", hm, R(e.label), 1));
13824
13873
  }
13825
13874
  }), [["__scopeId", "data-v-19145d28"]]), _m = class e {
13826
13875
  state;
@@ -14337,10 +14386,10 @@ function Am(e) {
14337
14386
  U([r]), a.value = r;
14338
14387
  }
14339
14388
  }
14340
- function G() {
14389
+ function ne() {
14341
14390
  (V(e.selectionMode) ?? "multiple") === "multiple" && U(w.value.map(t));
14342
14391
  }
14343
- function ne() {
14392
+ function re() {
14344
14393
  U([]), a.value = null;
14345
14394
  }
14346
14395
  return {
@@ -14359,8 +14408,8 @@ function Am(e) {
14359
14408
  anchor: a,
14360
14409
  isSelected: te,
14361
14410
  select: W,
14362
- selectAll: G,
14363
- clear: ne,
14411
+ selectAll: ne,
14412
+ clear: re,
14364
14413
  selectedItems: r(() => {
14365
14414
  let e = [];
14366
14415
  for (let t of n.value) {
@@ -14422,7 +14471,7 @@ function Lm(e) {
14422
14471
  function a() {
14423
14472
  n || (n = !0, b(i));
14424
14473
  }
14425
- K([
14474
+ G([
14426
14475
  e.root,
14427
14476
  () => V(e.query),
14428
14477
  () => V(e.enabled),
@@ -14601,7 +14650,7 @@ function zm(e) {
14601
14650
  return h.value.get(e) ?? null;
14602
14651
  }
14603
14652
  let v = null, y = null;
14604
- return K(e.viewport, (e) => {
14653
+ return G(e.viewport, (e) => {
14605
14654
  if (v?.disconnect(), v = null, y?.(), y = null, e) {
14606
14655
  if (s(), typeof ResizeObserver < "u") v = new ResizeObserver(() => s()), v.observe(e);
14607
14656
  else if (typeof window < "u") {
@@ -14609,7 +14658,7 @@ function zm(e) {
14609
14658
  window.addEventListener("resize", e), y = () => window.removeEventListener("resize", e);
14610
14659
  }
14611
14660
  }
14612
- }, { immediate: !0 }), K([
14661
+ }, { immediate: !0 }), G([
14613
14662
  e.layout,
14614
14663
  e.tileMinWidth,
14615
14664
  e.childLayout,
@@ -14992,7 +15041,7 @@ var Km = { class: "coar-data-list-toolbar" }, qm = {
14992
15041
  size: "s",
14993
15042
  clearable: ""
14994
15043
  }, {
14995
- prefix: q(() => [u(H(Q), {
15044
+ prefix: K(() => [u(H(Q), {
14996
15045
  name: "search",
14997
15046
  source: "coar-builtin",
14998
15047
  size: "s"
@@ -15347,7 +15396,7 @@ var Km = { class: "coar-data-list-toolbar" }, qm = {
15347
15396
  expanded: j,
15348
15397
  childLevel: () => S.value.childLevel,
15349
15398
  maxDepth: () => S.value.maxDepth
15350
- }), z = G("scrollRef"), B = G("probeRef"), ee = G("childProbeRef"), te = I.entries, W = r(() => {
15399
+ }), z = ne("scrollRef"), B = ne("probeRef"), ee = ne("childProbeRef"), te = I.entries, W = r(() => {
15351
15400
  let e = S.value.nestingIndent;
15352
15401
  if (typeof e == "number") return e;
15353
15402
  let t = /^\s*(-?[\d.]+)\s*(px|rem|em)?\s*$/.exec(e);
@@ -15358,7 +15407,7 @@ var Km = { class: "coar-data-list-toolbar" }, qm = {
15358
15407
  return n * (Number.isFinite(e) && e > 0 ? e : 16);
15359
15408
  }
15360
15409
  return n;
15361
- }), { lines: ne, bands: re, columns: ie, lineIndexOfKey: ae, positionOfKey: se } = zm({
15410
+ }), { lines: re, bands: ie, columns: q, lineIndexOfKey: ae, positionOfKey: se } = zm({
15362
15411
  entries: te,
15363
15412
  layout: () => S.value.layout,
15364
15413
  tileMinWidth: () => S.value.tileMinWidth,
@@ -15370,7 +15419,7 @@ var Km = { class: "coar-data-list-toolbar" }, qm = {
15370
15419
  probe: B,
15371
15420
  childProbe: ee
15372
15421
  }), ce = null;
15373
- K([ne, j], ([e, t], [, n]) => {
15422
+ G([re, j], ([e, t], [, n]) => {
15374
15423
  let r = new Set(n ?? []), i = t.find((e) => !r.has(e));
15375
15424
  i !== void 0 && (ce = i);
15376
15425
  let a = [];
@@ -15384,16 +15433,16 @@ var Km = { class: "coar-data-list-toolbar" }, qm = {
15384
15433
  a.length > 0 && (j.value = j.value.filter((e) => !a.includes(e)));
15385
15434
  });
15386
15435
  let Y = me({
15387
- count: () => ne.value.length,
15436
+ count: () => re.value.length,
15388
15437
  itemSize: () => S.value.itemSize,
15389
15438
  overscan: () => S.value.overscan,
15390
15439
  scrollElement: z,
15391
15440
  measure: !0,
15392
- itemKey: (e) => ne.value[e]?.key ?? e
15441
+ itemKey: (e) => re.value[e]?.key ?? e
15393
15442
  });
15394
- K([ie, () => S.value.layout], () => Y.invalidateMeasurements());
15443
+ G([q, () => S.value.layout], () => Y.invalidateMeasurements());
15395
15444
  let le = r(() => Y.virtualRows.value.flatMap((e) => {
15396
- let t = ne.value[e.index];
15445
+ let t = re.value[e.index];
15397
15446
  return t ? [{
15398
15447
  row: e,
15399
15448
  line: t
@@ -15401,8 +15450,8 @@ var Km = { class: "coar-data-list-toolbar" }, qm = {
15401
15450
  })), ue = r(() => {
15402
15451
  let e = S.value.gap;
15403
15452
  return e === void 0 || e === "" ? 0 : typeof e == "number" ? e : Number.parseFloat(e) || 0;
15404
- }), de = r(() => re.value.map((e) => {
15405
- let t = Y.offsetFor(e.firstLine), n = e.lastLine === ne.value.length - 1, r = Y.offsetFor(e.lastLine + 1) - (n ? 0 : ue.value);
15453
+ }), de = r(() => ie.value.map((e) => {
15454
+ let t = Y.offsetFor(e.firstLine), n = e.lastLine === re.value.length - 1, r = Y.offsetFor(e.lastLine + 1) - (n ? 0 : ue.value);
15406
15455
  return {
15407
15456
  key: `band:${String(e.parentKey)}`,
15408
15457
  level: e.level,
@@ -15605,8 +15654,8 @@ var Km = { class: "coar-data-list-toolbar" }, qm = {
15605
15654
  }
15606
15655
  function Ve(e, t, n = 1) {
15607
15656
  let r = e, i = n, a = null;
15608
- for (; i > 0 && (r += t, !(r < 0 || r >= ne.value.length));) {
15609
- let e = ne.value[r];
15657
+ for (; i > 0 && (r += t, !(r < 0 || r >= re.value.length));) {
15658
+ let e = re.value[r];
15610
15659
  e.kind === "items" && (a = e, i--);
15611
15660
  }
15612
15661
  return a;
@@ -15628,7 +15677,7 @@ var Km = { class: "coar-data-list-toolbar" }, qm = {
15628
15677
  Be(e > 0 ? 0 : I.items.value.length - 1, t);
15629
15678
  return;
15630
15679
  }
15631
- let r = ne.value[n.line], i = n.column + e;
15680
+ let r = re.value[n.line], i = n.column + e;
15632
15681
  if (i >= 0 && i < r.entries.length) {
15633
15682
  ze(r.entries[i].itemKey, t);
15634
15683
  return;
@@ -15654,7 +15703,7 @@ var Km = { class: "coar-data-list-toolbar" }, qm = {
15654
15703
  if (!ye.value || Pe.onKeyDown(e)) return;
15655
15704
  let t = I.items.value;
15656
15705
  if (t.length === 0) return;
15657
- let n = ve.value === null ? -1 : I.indexOfKey(ve.value), r = n < 0 ? void 0 : I.entryOfKey(I.keyOf(t[n])), i = ve.value === null ? null : se(ve.value), a = i !== null && ne.value[i.line]?.layout === "grid";
15706
+ let n = ve.value === null ? -1 : I.indexOfKey(ve.value), r = n < 0 ? void 0 : I.entryOfKey(I.keyOf(t[n])), i = ve.value === null ? null : se(ve.value), a = i !== null && re.value[i.line]?.layout === "grid";
15658
15707
  switch (e.key) {
15659
15708
  case "ArrowDown":
15660
15709
  e.preventDefault(), He(1, e);
@@ -15714,7 +15763,7 @@ var Km = { class: "coar-data-list-toolbar" }, qm = {
15714
15763
  let e = I.items.value[0];
15715
15764
  ve.value = e === void 0 ? null : I.keyOf(e);
15716
15765
  }
15717
- K(I.items, () => {
15766
+ G(I.items, () => {
15718
15767
  ve.value !== null && I.indexOfKey(ve.value) < 0 && (ve.value = null);
15719
15768
  });
15720
15769
  let Ye = r(() => S.value.showSearch || S.value.showSort && S.value.sortOptions.length > 0), Xe = r(() => S.value.emptyText ?? _("coar.ui.dataList.empty", void 0, "No items")), Ze = r(() => S.value.height ? {
@@ -15738,7 +15787,7 @@ var Km = { class: "coar-data-list-toolbar" }, qm = {
15738
15787
  Y.invalidateMeasurements();
15739
15788
  return;
15740
15789
  }
15741
- let t = ne.value[ae(e)];
15790
+ let t = re.value[ae(e)];
15742
15791
  t && Y.invalidateMeasurements(t.key);
15743
15792
  }
15744
15793
  return E(() => {
@@ -15790,8 +15839,8 @@ var Km = { class: "coar-data-list-toolbar" }, qm = {
15790
15839
  "sort-options": S.value.sortOptions,
15791
15840
  disabled: S.value.disabled
15792
15841
  }, {
15793
- left: q(() => [P(t.$slots, "toolbar-left", {}, void 0, !0)]),
15794
- right: q(() => [P(t.$slots, "toolbar-right", {}, void 0, !0)]),
15842
+ left: K(() => [P(t.$slots, "toolbar-left", {}, void 0, !0)]),
15843
+ right: K(() => [P(t.$slots, "toolbar-right", {}, void 0, !0)]),
15795
15844
  _: 3
15796
15845
  }, 8, [
15797
15846
  "search",
@@ -15833,7 +15882,7 @@ var Km = { class: "coar-data-list-toolbar" }, qm = {
15833
15882
  style: C(_e(S.value.childLevel?.tileMinWidth ?? S.value.tileMinWidth)),
15834
15883
  "aria-hidden": "true"
15835
15884
  }, null, 4),
15836
- H(ne).length > 0 ? (O(), o("div", {
15885
+ H(re).length > 0 ? (O(), o("div", {
15837
15886
  key: 0,
15838
15887
  class: "coar-data-list__spacer",
15839
15888
  style: C({ height: `${H(Y).totalSize.value}px` })
@@ -15846,7 +15895,7 @@ var Km = { class: "coar-data-list-toolbar" }, qm = {
15846
15895
  key: i.key,
15847
15896
  ref_for: !0,
15848
15897
  ref: (e) => H(Y).measureElement(r.index, e),
15849
- class: x(["coar-data-list__row", [pe(i), { "coar-data-list__row--last": r.index === H(ne).length - 1 }]]),
15898
+ class: x(["coar-data-list__row", [pe(i), { "coar-data-list__row--last": r.index === H(re).length - 1 }]]),
15850
15899
  style: C(he(i, r.start))
15851
15900
  }, [i.kind === "group" ? (O(), o("div", Zm, [P(t.$slots, "group-header", {
15852
15901
  group: i.entry.group,
@@ -15910,8 +15959,8 @@ var Km = { class: "coar-data-list-toolbar" }, qm = {
15910
15959
  key: 1,
15911
15960
  menu: H(De)
15912
15961
  }, {
15913
- default: q(() => [u(np, null, {
15914
- default: q(() => [(O(!0), o(e, null, N(ke.value, (t, n) => (O(), o(e, { key: n }, [t === "divider" ? (O(), i(gp, { key: 0 })) : (O(), i(fp, {
15962
+ default: K(() => [u(np, null, {
15963
+ default: K(() => [(O(!0), o(e, null, N(ke.value, (t, n) => (O(), o(e, { key: n }, [t === "divider" ? (O(), i(gp, { key: 0 })) : (O(), i(fp, {
15915
15964
  key: 1,
15916
15965
  label: t.label,
15917
15966
  icon: t.icon,
@@ -16355,7 +16404,7 @@ var lh = [
16355
16404
  emits: ["update:size"],
16356
16405
  setup(e, { emit: t }) {
16357
16406
  let n = e, c = t, l = M(n.size ?? n.defaultSize);
16358
- K(() => n.size, (e) => {
16407
+ G(() => n.size, (e) => {
16359
16408
  e !== void 0 && (l.value = e);
16360
16409
  });
16361
16410
  let u = r({
@@ -16446,7 +16495,7 @@ var lh = [
16446
16495
  let n = e, c = t;
16447
16496
  function l(e, t, n) {
16448
16497
  let i = M(e() ?? n);
16449
- return K(e, (e) => {
16498
+ return G(e, (e) => {
16450
16499
  e !== void 0 && (i.value = e);
16451
16500
  }), r({
16452
16501
  get: () => e() ?? i.value,
@@ -16702,15 +16751,15 @@ var lh = [
16702
16751
  }
16703
16752
  }
16704
16753
  let te = 0, W = 0;
16705
- function G() {
16754
+ function ne() {
16706
16755
  cancelAnimationFrame(te), cancelAnimationFrame(W);
16707
16756
  }
16708
- function ne(e) {
16757
+ function re(e) {
16709
16758
  if (e.propertyName !== "height" || e.target !== _.value) return;
16710
16759
  let t = _.value;
16711
16760
  t && (t.style.transition = "", t.style.height = "", t.style.overflow = "");
16712
16761
  }
16713
- return K(C, () => {
16762
+ return G(C, () => {
16714
16763
  let e = _.value;
16715
16764
  if (!e || d.disableAnimation || H()) {
16716
16765
  b(() => ee(!0));
@@ -16719,13 +16768,13 @@ var lh = [
16719
16768
  let t = e.offsetHeight;
16720
16769
  e.style.transition = "", e.style.overflow = "hidden", e.style.height = `${t}px`, b(() => {
16721
16770
  let n = v.value?.offsetHeight ?? t;
16722
- G(), te = requestAnimationFrame(() => {
16771
+ ne(), te = requestAnimationFrame(() => {
16723
16772
  W = requestAnimationFrame(() => {
16724
16773
  e.style.transition = "height var(--coar-wizard-anim-duration, 260ms) var(--coar-wizard-anim-ease, ease)", e.style.height = `${n}px`;
16725
16774
  });
16726
16775
  }), ee(!0);
16727
16776
  });
16728
- }), E(() => ee(!1)), w(G), n({
16777
+ }), E(() => ee(!1)), w(ne), n({
16729
16778
  next: I,
16730
16779
  back: L,
16731
16780
  goTo: F
@@ -16755,7 +16804,7 @@ var lh = [
16755
16804
  ref_key: "bodyEl",
16756
16805
  ref: _,
16757
16806
  class: "coar-wizard__body",
16758
- onTransitionend: ne
16807
+ onTransitionend: re
16759
16808
  }, [(O(), o("div", {
16760
16809
  key: D.value,
16761
16810
  ref_key: "contentEl",
@@ -16770,7 +16819,7 @@ var lh = [
16770
16819
  disabled: k.value,
16771
16820
  onClick: L
16772
16821
  }, {
16773
- default: q(() => [l(R(t.backLabel), 1)]),
16822
+ default: K(() => [l(R(t.backLabel), 1)]),
16774
16823
  _: 1
16775
16824
  }, 8, ["disabled"]),
16776
16825
  r[0] ||= s("span", { class: "coar-wizard__footer-spacer" }, null, -1),
@@ -16779,7 +16828,7 @@ var lh = [
16779
16828
  disabled: !j.value,
16780
16829
  onClick: I
16781
16830
  }, {
16782
- default: q(() => [l(R(A.value ? t.finishLabel : t.nextLabel), 1)]),
16831
+ default: K(() => [l(R(A.value ? t.finishLabel : t.nextLabel), 1)]),
16783
16832
  _: 1
16784
16833
  }, 8, ["disabled"])
16785
16834
  ])]))])], 2));
@@ -16829,7 +16878,7 @@ var lh = [
16829
16878
  },
16830
16879
  setup(e) {
16831
16880
  let t = e, { RouterLink: n, hasRouterLink: c, warnIfMisconfigured: l } = Is();
16832
- K(() => t.to, (e) => l(e, "CoarBreadcrumbItem"), { immediate: !0 });
16881
+ G(() => t.to, (e) => l(e, "CoarBreadcrumbItem"), { immediate: !0 });
16833
16882
  let u = r(() => t.to !== void 0 && t.to !== null), d = r(() => t.href !== void 0 && t.href !== null), f = r(() => t.active ? "active" : u.value && c ? "router-link" : u.value || d.value ? "plain-link" : "slot-only"), p = r(() => {
16834
16883
  if (u.value) return String(t.to);
16835
16884
  if (d.value) return t.href;
@@ -16860,7 +16909,7 @@ var lh = [
16860
16909
  to: e.to,
16861
16910
  custom: ""
16862
16911
  }, {
16863
- default: q(({ href: n, navigate: r }) => [s("a", {
16912
+ default: K(({ href: n, navigate: r }) => [s("a", {
16864
16913
  href: n,
16865
16914
  class: x(["coar-breadcrumb-link", { "coar-breadcrumb-link--disabled": e.disabled }]),
16866
16915
  "aria-disabled": e.disabled || void 0,
@@ -17061,7 +17110,7 @@ var Xh = Symbol("sidebar-collapsed"), Zh = Symbol("sidebar-icon-size"), Qh = Sym
17061
17110
  class: x(l.value)
17062
17111
  }, [
17063
17112
  n.$slots.header ? (O(), o("div", ng, [P(n.$slots, "header", { collapsed: t.collapsed }, void 0, !0)])) : a("", !0),
17064
- ie((O(), o("div", rg, [P(n.$slots, "default", { collapsed: t.collapsed }, void 0, !0)])), [[H(Xo), u.value]]),
17113
+ q((O(), o("div", rg, [P(n.$slots, "default", { collapsed: t.collapsed }, void 0, !0)])), [[H(Xo), u.value]]),
17065
17114
  n.$slots.footer ? (O(), o("div", ig, [P(n.$slots, "footer", { collapsed: t.collapsed }, void 0, !0)])) : a("", !0)
17066
17115
  ], 10, tg));
17067
17116
  }
@@ -17107,7 +17156,7 @@ var Xh = Symbol("sidebar-collapsed"), Zh = Symbol("sidebar-icon-size"), Qh = Sym
17107
17156
  emits: ["click"],
17108
17157
  setup(e, { emit: t }) {
17109
17158
  let n = e, a = t, c = h(Xh, M(!1)), l = h(Zh, M("m")), d = h(Qh, M("left")), f = h($h, M(!1)), { RouterLink: p, hasRouterLink: m, warnIfMisconfigured: g } = Is();
17110
- K(() => n.to, (e) => g(e, "CoarSidebarItem"), { immediate: !0 });
17159
+ G(() => n.to, (e) => g(e, "CoarSidebarItem"), { immediate: !0 });
17111
17160
  let _ = r(() => {
17112
17161
  switch (d.value) {
17113
17162
  case "right": return "left";
@@ -17161,7 +17210,7 @@ var Xh = Symbol("sidebar-collapsed"), Zh = Symbol("sidebar-icon-size"), Qh = Sym
17161
17210
  to: e.to,
17162
17211
  custom: ""
17163
17212
  }, {
17164
- default: q(({ href: e, isActive: t, navigate: r }) => [ie((O(), o("a", {
17213
+ default: K(({ href: e, isActive: t, navigate: r }) => [q((O(), o("a", {
17165
17214
  href: e,
17166
17215
  class: x(["coar-sidebar-item", S(t)]),
17167
17216
  "aria-disabled": n.disabled || void 0,
@@ -17173,7 +17222,7 @@ var Xh = Symbol("sidebar-collapsed"), Zh = Symbol("sidebar-icon-size"), Qh = Sym
17173
17222
  size: H(l)
17174
17223
  }, null, 8, ["name", "size"])]), s("span", cg, R(n.label), 1)], 10, og)), [[H(lu), v.value]])]),
17175
17224
  _: 1
17176
- }, 8, ["to"])) : b.value ? ie((O(), o("a", {
17225
+ }, 8, ["to"])) : b.value ? q((O(), o("a", {
17177
17226
  key: 1,
17178
17227
  href: String(e.to),
17179
17228
  class: x(["coar-sidebar-item", S(!1)]),
@@ -17184,7 +17233,7 @@ var Xh = Symbol("sidebar-collapsed"), Zh = Symbol("sidebar-icon-size"), Qh = Sym
17184
17233
  }, [s("span", ug, [u(Q, {
17185
17234
  name: n.icon || "square-dashed",
17186
17235
  size: H(l)
17187
- }, null, 8, ["name", "size"])]), s("span", dg, R(n.label), 1)], 10, lg)), [[H(lu), v.value]]) : ie((O(), o("div", {
17236
+ }, null, 8, ["name", "size"])]), s("span", dg, R(n.label), 1)], 10, lg)), [[H(lu), v.value]]) : q((O(), o("div", {
17188
17237
  key: 2,
17189
17238
  role: "menuitem",
17190
17239
  class: x(["coar-sidebar-item", S(!1)]),
@@ -17241,7 +17290,7 @@ var Xh = Symbol("sidebar-collapsed"), Zh = Symbol("sidebar-icon-size"), Qh = Sym
17241
17290
  "icon-only": e.iconOnly,
17242
17291
  "parent-control": e.parentControl
17243
17292
  }, {
17244
- default: q(() => [s("div", {
17293
+ default: K(() => [s("div", {
17245
17294
  id: e.id,
17246
17295
  class: x(["coar-sidebar-flyout", { "coar-sidebar-flyout--icons": e.iconOnly }]),
17247
17296
  role: "menu",
@@ -17334,7 +17383,7 @@ var Xh = Symbol("sidebar-collapsed"), Zh = Symbol("sidebar-icon-size"), Qh = Sym
17334
17383
  return;
17335
17384
  }
17336
17385
  if (b.value) {
17337
- C.value ? q() : re();
17386
+ C.value ? K() : ie();
17338
17387
  return;
17339
17388
  }
17340
17389
  l.value = !l.value;
@@ -17343,7 +17392,7 @@ var Xh = Symbol("sidebar-collapsed"), Zh = Symbol("sidebar-icon-size"), Qh = Sym
17343
17392
  function ee() {
17344
17393
  return S.default?.();
17345
17394
  }
17346
- let G = r(() => {
17395
+ let ne = r(() => {
17347
17396
  switch (p.value) {
17348
17397
  case "right": return ["left-start", "right-start"];
17349
17398
  case "top": return ["bottom-start", "top-start"];
@@ -17351,7 +17400,7 @@ var Xh = Symbol("sidebar-collapsed"), Zh = Symbol("sidebar-icon-size"), Qh = Sym
17351
17400
  default: return ["right-start", "left-start"];
17352
17401
  }
17353
17402
  });
17354
- function ne(e) {
17403
+ function re(e) {
17355
17404
  let t = e.getBoundingClientRect(), n = e.closest(".coar-sidebar") ?? e.closest(".coar-sidebar-flyout");
17356
17405
  if (!n) return 0;
17357
17406
  let r = n.getBoundingClientRect();
@@ -17362,10 +17411,10 @@ var Xh = Symbol("sidebar-collapsed"), Zh = Symbol("sidebar-icon-size"), Qh = Sym
17362
17411
  default: return r.right - t.right;
17363
17412
  }
17364
17413
  }
17365
- function re() {
17414
+ function ie() {
17366
17415
  if (!T.value || k) return;
17367
17416
  se(), A?.cancelClose(), C.value = !0;
17368
- let e = T.value, t = ne(e), r = vn().open({
17417
+ let e = T.value, t = re(e), r = vn().open({
17369
17418
  spec: {
17370
17419
  ...An,
17371
17420
  anchor: {
@@ -17373,7 +17422,7 @@ var Xh = Symbol("sidebar-collapsed"), Zh = Symbol("sidebar-icon-size"), Qh = Sym
17373
17422
  element: e
17374
17423
  },
17375
17424
  position: {
17376
- placement: G.value,
17425
+ placement: ne.value,
17377
17426
  offset: -4 + t,
17378
17427
  flip: !0,
17379
17428
  shift: !0
@@ -17400,19 +17449,19 @@ var Xh = Symbol("sidebar-collapsed"), Zh = Symbol("sidebar-icon-size"), Qh = Sym
17400
17449
  k === r && (k = null, C.value = !1, se(), Y());
17401
17450
  });
17402
17451
  }
17403
- function q() {
17452
+ function K() {
17404
17453
  se(), C.value = !1;
17405
17454
  let e = k;
17406
17455
  k = null, e && !e.isClosed && e.close();
17407
17456
  }
17408
17457
  function J() {
17409
- se(), E = setTimeout(() => q(), 300);
17458
+ se(), E = setTimeout(() => K(), 300);
17410
17459
  }
17411
17460
  function se() {
17412
17461
  E &&= (clearTimeout(E), null);
17413
17462
  }
17414
17463
  function ce() {
17415
- Y(), D = setTimeout(() => re(), 200);
17464
+ Y(), D = setTimeout(() => ie(), 200);
17416
17465
  }
17417
17466
  function Y() {
17418
17467
  D &&= (clearTimeout(D), null);
@@ -17423,8 +17472,8 @@ var Xh = Symbol("sidebar-collapsed"), Zh = Symbol("sidebar-icon-size"), Qh = Sym
17423
17472
  function ue() {
17424
17473
  Y(), C.value && J();
17425
17474
  }
17426
- return K(d, () => {
17427
- C.value && q();
17475
+ return G(d, () => {
17476
+ C.value && K();
17428
17477
  }), w(() => {
17429
17478
  se(), Y(), k && !k.isClosed && k.close(), k = null;
17430
17479
  }), (e, t) => (O(), o("div", { class: x(["coar-sidebar-group", [
@@ -17435,7 +17484,7 @@ var Xh = Symbol("sidebar-collapsed"), Zh = Symbol("sidebar-icon-size"), Qh = Sym
17435
17484
  "coar-sidebar-group--icon-only": N.value,
17436
17485
  "coar-sidebar-group--active": i.active
17437
17486
  }
17438
- ]]) }, [ie((O(), o("div", {
17487
+ ]]) }, [q((O(), o("div", {
17439
17488
  ref_key: "triggerRef",
17440
17489
  ref: T,
17441
17490
  class: x(["coar-sidebar-group__trigger", {
@@ -17654,7 +17703,7 @@ var Gg = ["aria-label"], Kg = { class: "coar-time-picker__spinner coar-time-pick
17654
17703
  emits: ["update:modelValue"],
17655
17704
  setup(e) {
17656
17705
  let t = e, n = U(e, "modelValue"), { t: i } = J(), c = se(), l = r(() => t.locale ?? c?.language.value ?? navigator.language), d = M(9), f = M(0), p = M("AM");
17657
- K(n, (e) => {
17706
+ G(n, (e) => {
17658
17707
  e && (d.value = e.hours, f.value = Wg(e.minutes, t.minuteStep), p.value = e.hours >= 12 ? "PM" : "AM");
17659
17708
  }, { immediate: !0 });
17660
17709
  let m = r(() => t.use24Hour === !0 ? !1 : t.use24Hour === !1 ? !0 : Lg(l.value)), h = r(() => m.value ? Bg(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");
@@ -18067,7 +18116,7 @@ var h_ = {
18067
18116
  function z() {
18068
18117
  L.value = I();
18069
18118
  }
18070
- K([
18119
+ G([
18071
18120
  c,
18072
18121
  y,
18073
18122
  () => i.markers,
@@ -18106,21 +18155,21 @@ var h_ = {
18106
18155
  offset: n.getBoundingClientRect().top - t
18107
18156
  };
18108
18157
  }
18109
- let W, G = 0;
18110
- function ne(e, t) {
18158
+ let W, ne = 0;
18159
+ function re(e, t) {
18111
18160
  let n = t.offsetHeight;
18112
18161
  if (n === 0) return !1;
18113
18162
  let r = Math.max(0, w_ - L.value.length), i = e.clientHeight + T_ - (e.scrollHeight - t.offsetTop), a = T_ - t.offsetTop, o = Math.min(Math.max(0, Math.ceil(i / n)), r), s = Math.min(Math.max(0, Math.ceil(a / n)), r - o);
18114
18163
  return o === 0 && s === 0 ? !1 : (v.value = v.value.add({ months: o }), _.value = _.value.subtract({ months: s }), z(), !0);
18115
18164
  }
18116
- function re(e, t = !1) {
18165
+ function ie(e, t = !1) {
18117
18166
  if (ee(e)) {
18118
- b(() => re(e, t));
18167
+ b(() => ie(e, t));
18119
18168
  return;
18120
18169
  }
18121
18170
  let n = A(), r = n?.querySelector(`#${B(e)}`);
18122
- if (n && r && ne(n, r)) {
18123
- b(() => re(e, t));
18171
+ if (n && r && re(n, r)) {
18172
+ b(() => ie(e, t));
18124
18173
  return;
18125
18174
  }
18126
18175
  if (!t) {
@@ -18130,7 +18179,7 @@ var h_ = {
18130
18179
  let i = ae();
18131
18180
  V(e, !1), i();
18132
18181
  }
18133
- function q(e) {
18182
+ function K(e) {
18134
18183
  let t = typeof document > "u" ? void 0 : document.fonts;
18135
18184
  !t || t.status === "loaded" ? e() : t.ready.then(e, e);
18136
18185
  }
@@ -18138,15 +18187,15 @@ var h_ = {
18138
18187
  let e = S.value;
18139
18188
  return $o(e ? Zo(e) : null);
18140
18189
  }
18141
- K(l, (e) => {
18142
- D || b(() => re(e));
18190
+ G(l, (e) => {
18191
+ D || b(() => ie(e));
18143
18192
  });
18144
18193
  function oe() {
18145
18194
  if (T) return;
18146
18195
  let e = S.value;
18147
18196
  if (!e) return;
18148
18197
  let t = A();
18149
- if (t && t.clientHeight !== G) return;
18198
+ if (t && t.clientHeight !== ne) return;
18150
18199
  t && !k && !_e && (W = te(t));
18151
18200
  let n = e.querySelectorAll("[data-year-month]"), r = e.getBoundingClientRect(), i = null, a = 0;
18152
18201
  for (let e of n) {
@@ -18263,7 +18312,7 @@ var h_ = {
18263
18312
  let t = B(a), n = e.querySelector(`#${t}`);
18264
18313
  if (n) {
18265
18314
  let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
18266
- (r.bottom < t.top || r.top > t.bottom) && re(a);
18315
+ (r.bottom < t.top || r.top > t.bottom) && ie(a);
18267
18316
  }
18268
18317
  });
18269
18318
  }
@@ -18292,33 +18341,33 @@ var h_ = {
18292
18341
  e.preventDefault(), pe((e.shiftKey, 1), e.shiftKey ? "year" : "month");
18293
18342
  break;
18294
18343
  case "Home":
18295
- e.preventDefault(), y.value = h.value, re(h.value.toPlainYearMonth());
18344
+ e.preventDefault(), y.value = h.value, ie(h.value.toPlainYearMonth());
18296
18345
  break;
18297
18346
  }
18298
18347
  }
18299
- K(c, (e) => {
18348
+ G(c, (e) => {
18300
18349
  e && !y.value && (y.value = e);
18301
18350
  }, { immediate: !0 }), y.value ||= h.value;
18302
18351
  let he = null, ge = null, _e = !1;
18303
18352
  function ve(e) {
18304
18353
  if (_e = !C.value || T || k, _e) return;
18305
18354
  let t = W?.element.isConnected ? W : te(e);
18306
- t && (k = !0, ce(() => ne(e, t.element), t, !0));
18355
+ t && (k = !0, ce(() => re(e, t.element), t, !0));
18307
18356
  }
18308
18357
  return E(() => {
18309
18358
  let e = A();
18310
18359
  if (!e) return;
18311
18360
  e.addEventListener("scroll", oe, { passive: !0 }), he = e;
18312
18361
  let t = !1;
18313
- G = e.clientHeight;
18362
+ ne = e.clientHeight;
18314
18363
  let n = () => {
18315
- t = !0, q(() => {
18316
- he && re(l.value, !0);
18364
+ t = !0, K(() => {
18365
+ he && ie(l.value, !0);
18317
18366
  });
18318
18367
  };
18319
- G > 0 && n(), ge = new ResizeObserver(() => {
18320
- let r = e.clientHeight > G;
18321
- G = e.clientHeight, G !== 0 && (t ? r && ve(e) : n());
18368
+ ne > 0 && n(), ge = new ResizeObserver(() => {
18369
+ let r = e.clientHeight > ne;
18370
+ ne = e.clientHeight, ne !== 0 && (t ? r && ve(e) : n());
18322
18371
  }), ge.observe(e);
18323
18372
  }), w(() => {
18324
18373
  ge?.disconnect(), ge = null, he &&= (he.removeEventListener("scroll", oe), null);
@@ -18328,7 +18377,7 @@ var h_ = {
18328
18377
  }, [s("div", { class: x(["coar-scrollable-calendar__weekdays", { "coar-scrollable-calendar__weekdays--with-weeks": t.showWeekNumbers }]) }, [t.showWeekNumbers ? (O(), o("span", h_)) : a("", !0), (O(!0), o(e, null, N(g.value, (e) => (O(), o("span", {
18329
18378
  key: e.name,
18330
18379
  class: x(["coar-scrollable-calendar__weekday", { "coar-scrollable-calendar__weekday--weekend": t.highlightWeekends && e.isWeekend }])
18331
- }, R(e.name), 3))), 128))], 2), s("div", { class: x(["coar-scrollable-calendar__months-wrapper", { "coar-scrollable-calendar__months-wrapper--ready": C.value }]) }, [ie((O(), o("div", {
18380
+ }, R(e.name), 3))), 128))], 2), s("div", { class: x(["coar-scrollable-calendar__months-wrapper", { "coar-scrollable-calendar__months-wrapper--ready": C.value }]) }, [q((O(), o("div", {
18332
18381
  ref_key: "scrollContainerRef",
18333
18382
  ref: S,
18334
18383
  class: "coar-scrollable-calendar__months"
@@ -18419,7 +18468,7 @@ var h_ = {
18419
18468
  let n = t.offsetTop, r = t.offsetHeight, i = e.clientHeight, a = e.scrollTop;
18420
18469
  n < a ? e.scrollTop = n : n + r > a + i && (e.scrollTop = n + r - i);
18421
18470
  }
18422
- return K(a, () => {
18471
+ return G(a, () => {
18423
18472
  b(() => w());
18424
18473
  }), E(() => {
18425
18474
  setTimeout(() => w(), 50);
@@ -18445,7 +18494,7 @@ var h_ = {
18445
18494
  name: "chevron-right",
18446
18495
  size: "s"
18447
18496
  })], 8, M_)
18448
- ]), ie((O(), o("div", {
18497
+ ]), q((O(), o("div", {
18449
18498
  ref_key: "monthsContainerRef",
18450
18499
  ref: C,
18451
18500
  class: "coar-month-list__months",
@@ -18550,7 +18599,7 @@ function B_(e, t) {
18550
18599
  max: t.max
18551
18600
  });
18552
18601
  }
18553
- K(e, (e) => {
18602
+ G(e, (e) => {
18554
18603
  a.value = e ? u(e) : "";
18555
18604
  }, { immediate: !0 });
18556
18605
  function f(t) {
@@ -18824,7 +18873,7 @@ var G_ = { class: "coar-plain-date-picker-calendar-column" }, K_ = ["aria-label"
18824
18873
  let e = U_(f.effectiveDateFormat.value.pattern);
18825
18874
  N = new le(k.value, e);
18826
18875
  }
18827
- K([k, () => f.effectiveDateFormat.value], () => {
18876
+ G([k, () => f.effectiveDateFormat.value], () => {
18828
18877
  b(() => P());
18829
18878
  }), w(() => {
18830
18879
  N?.destroy(), j && !j.isClosed && (j.close(), j = null);
@@ -18855,25 +18904,25 @@ var G_ = { class: "coar-plain-date-picker-calendar-column" }, K_ = ["aria-label"
18855
18904
  onNextYear: d.nextYear,
18856
18905
  onScrollToTodayMonth: d.scrollToTodayMonth
18857
18906
  }), r = [];
18858
- r.push(K(i, (e) => {
18907
+ r.push(G(i, (e) => {
18859
18908
  t.modelValue = e;
18860
- })), r.push(K(p, (e) => {
18909
+ })), r.push(G(p, (e) => {
18861
18910
  t.activeMonth = e;
18862
- })), r.push(K(() => n.min, (e) => {
18911
+ })), r.push(G(() => n.min, (e) => {
18863
18912
  t.min = e;
18864
- })), r.push(K(() => n.max, (e) => {
18913
+ })), r.push(G(() => n.max, (e) => {
18865
18914
  t.max = e;
18866
- })), r.push(K(() => f.effectiveLocale.value, (e) => {
18915
+ })), r.push(G(() => f.effectiveLocale.value, (e) => {
18867
18916
  t.locale = e;
18868
- })), r.push(K(() => f.effectiveDateFormat.value, (e) => {
18917
+ })), r.push(G(() => f.effectiveDateFormat.value, (e) => {
18869
18918
  t.dateFormatConfig = e;
18870
- })), r.push(K(() => n.showWeekNumbers, (e) => {
18919
+ })), r.push(G(() => n.showWeekNumbers, (e) => {
18871
18920
  t.showWeekNumbers = e;
18872
- })), r.push(K(() => n.highlightWeekends, (e) => {
18921
+ })), r.push(G(() => n.highlightWeekends, (e) => {
18873
18922
  t.highlightWeekends = e;
18874
- })), r.push(K(() => n.markers, (e) => {
18923
+ })), r.push(G(() => n.markers, (e) => {
18875
18924
  t.markers = e;
18876
- })), r.push(K(() => n.showTodayMonthButton, (e) => {
18925
+ })), r.push(G(() => n.showTodayMonthButton, (e) => {
18877
18926
  t.showTodayMonthButton = e;
18878
18927
  })), j = vn().open({
18879
18928
  spec: {
@@ -18911,10 +18960,10 @@ var G_ = { class: "coar-plain-date-picker-calendar-column" }, K_ = ["aria-label"
18911
18960
  function W(e) {
18912
18961
  e.stopPropagation(), d.clearValue();
18913
18962
  }
18914
- function G(e) {
18963
+ function ne(e) {
18915
18964
  d.changeInput(e.target.value);
18916
18965
  }
18917
- function ne() {
18966
+ function re() {
18918
18967
  d.blurInput();
18919
18968
  }
18920
18969
  return (t, n) => (O(), o("div", { class: x(["coar-plain-date-picker-wrapper", [`coar-plain-date-picker--${e.size}`, {
@@ -18939,14 +18988,14 @@ var G_ = { class: "coar-plain-date-picker-calendar-column" }, K_ = ["aria-label"
18939
18988
  "aria-controls": H(f).isOpen.value ? C : void 0,
18940
18989
  role: "combobox"
18941
18990
  }, c({
18942
- actions: q(() => [u(L_, {
18991
+ actions: K(() => [u(L_, {
18943
18992
  class: "coar-plain-date-picker-btn",
18944
18993
  plain: e.appearance === "inline",
18945
18994
  "aria-label": H(l)("coar.ui.datePicker.openPicker", void 0, "Open picker"),
18946
18995
  disabled: L.value || e.readonly,
18947
18996
  onClick: ee
18948
18997
  }, {
18949
- default: q(() => [u(Q, {
18998
+ default: K(() => [u(Q, {
18950
18999
  name: "calendar",
18951
19000
  size: "s"
18952
19001
  })]),
@@ -18956,7 +19005,7 @@ var G_ = { class: "coar-plain-date-picker-calendar-column" }, K_ = ["aria-label"
18956
19005
  "aria-label",
18957
19006
  "disabled"
18958
19007
  ])]),
18959
- default: q(() => [s("input", {
19008
+ default: K(() => [s("input", {
18960
19009
  id: S.value,
18961
19010
  ref_key: "dateInputRef",
18962
19011
  ref: k,
@@ -18971,14 +19020,14 @@ var G_ = { class: "coar-plain-date-picker-calendar-column" }, K_ = ["aria-label"
18971
19020
  "aria-invalid": F.value,
18972
19021
  "aria-describedby": I.value,
18973
19022
  autocomplete: "off",
18974
- onInput: G,
18975
- onBlur: ne,
19023
+ onInput: ne,
19024
+ onBlur: re,
18976
19025
  onKeydown: te
18977
19026
  }, null, 40, uv)]),
18978
19027
  _: 2
18979
19028
  }, [z.value ? {
18980
19029
  name: "leading",
18981
- fn: q(() => [s("button", {
19030
+ fn: K(() => [s("button", {
18982
19031
  type: "button",
18983
19032
  class: x(["coar-plain-date-picker-clear", { "coar-plain-date-picker-clear--hidden": !R.value }]),
18984
19033
  tabindex: "-1",
@@ -19039,7 +19088,7 @@ function fv(e, t) {
19039
19088
  minute: i.minutes
19040
19089
  }) : null;
19041
19090
  }
19042
- K(e, (e) => {
19091
+ G(e, (e) => {
19043
19092
  o.value = e ? v(e) : "";
19044
19093
  }, { immediate: !0 });
19045
19094
  function b(e) {
@@ -19346,13 +19395,13 @@ var pv = { class: "coar-pdtp-calendar-column" }, mv = ["aria-label"], hv = { cla
19346
19395
  let e = W_(f.effectiveDateFormat.value.pattern, !g.value);
19347
19396
  B = new le(R.value, e);
19348
19397
  }
19349
- K([R, () => f.effectiveDateFormat.value], () => {
19398
+ G([R, () => f.effectiveDateFormat.value], () => {
19350
19399
  b(() => V());
19351
19400
  }), w(() => {
19352
19401
  B?.destroy(), z && !z.isClosed && (z.close(), z = null);
19353
19402
  });
19354
- let ee = r(() => n.error || (j?.hasError.value ?? !1)), te = r(() => j?.messageId.value || void 0), W = r(() => n.disabled), G = r(() => n.clearable && i.value !== null && !W.value && !n.readonly), ne = r(() => n.clearable && !W.value && !n.readonly);
19355
- function re() {
19403
+ let ee = r(() => n.error || (j?.hasError.value ?? !1)), te = r(() => j?.messageId.value || void 0), W = r(() => n.disabled), ne = r(() => n.clearable && i.value !== null && !W.value && !n.readonly), re = r(() => n.clearable && !W.value && !n.readonly);
19404
+ function ie() {
19356
19405
  if (W.value || n.readonly || f.isOpen.value) return;
19357
19406
  i.value && (p.value = i.value.toPlainDate().toPlainYearMonth());
19358
19407
  let e = L();
@@ -19383,39 +19432,39 @@ var pv = { class: "coar-pdtp-calendar-column" }, mv = ["aria-label"], hv = { cla
19383
19432
  onScrollToTodayMonth: d.scrollToTodayMonth,
19384
19433
  onTimeChanged: d.changeTime
19385
19434
  }), r = [];
19386
- r.push(K(y, (e) => {
19435
+ r.push(G(y, (e) => {
19387
19436
  t.modelValue = e;
19388
- })), r.push(K(p, (e) => {
19437
+ })), r.push(G(p, (e) => {
19389
19438
  t.activeMonth = e;
19390
- })), r.push(K(C, (e) => {
19439
+ })), r.push(G(C, (e) => {
19391
19440
  t.min = e;
19392
- })), r.push(K(T, (e) => {
19441
+ })), r.push(G(T, (e) => {
19393
19442
  t.max = e;
19394
- })), r.push(K(() => f.effectiveLocale.value, (e) => {
19443
+ })), r.push(G(() => f.effectiveLocale.value, (e) => {
19395
19444
  t.locale = e;
19396
- })), r.push(K(() => f.effectiveDateFormat.value, (e) => {
19445
+ })), r.push(G(() => f.effectiveDateFormat.value, (e) => {
19397
19446
  t.dateFormatConfig = e;
19398
- })), r.push(K(() => n.showWeekNumbers, (e) => {
19447
+ })), r.push(G(() => n.showWeekNumbers, (e) => {
19399
19448
  t.showWeekNumbers = e;
19400
- })), r.push(K(() => n.highlightWeekends, (e) => {
19449
+ })), r.push(G(() => n.highlightWeekends, (e) => {
19401
19450
  t.highlightWeekends = e;
19402
- })), r.push(K(() => n.markers, (e) => {
19451
+ })), r.push(G(() => n.markers, (e) => {
19403
19452
  t.markers = e;
19404
- })), r.push(K(() => n.showTodayMonthButton, (e) => {
19453
+ })), r.push(G(() => n.showTodayMonthButton, (e) => {
19405
19454
  t.showTodayMonthButton = e;
19406
- })), r.push(K(S, (e) => {
19455
+ })), r.push(G(S, (e) => {
19407
19456
  t.selectedTime = e;
19408
- })), r.push(K(() => n.use24Hour, (e) => {
19457
+ })), r.push(G(() => n.use24Hour, (e) => {
19409
19458
  t.use24Hour = e;
19410
- })), r.push(K(() => n.minuteStep, (e) => {
19459
+ })), r.push(G(() => n.minuteStep, (e) => {
19411
19460
  t.minuteStep = e;
19412
- })), r.push(K(() => n.disabled, (e) => {
19461
+ })), r.push(G(() => n.disabled, (e) => {
19413
19462
  t.disabled = e;
19414
- })), r.push(K(() => n.readonly, (e) => {
19463
+ })), r.push(G(() => n.readonly, (e) => {
19415
19464
  t.readonly = e;
19416
- })), r.push(K(D, (e) => {
19465
+ })), r.push(G(D, (e) => {
19417
19466
  t.effectiveMinTime = e;
19418
- })), r.push(K(k, (e) => {
19467
+ })), r.push(G(k, (e) => {
19419
19468
  t.effectiveMaxTime = e;
19420
19469
  })), z = vn().open({
19421
19470
  spec: {
@@ -19438,17 +19487,17 @@ var pv = { class: "coar-pdtp-calendar-column" }, mv = ["aria-label"], hv = { cla
19438
19487
  r.forEach((e) => e()), z = null, f.isOpen.value && (f.close(), a("closed"));
19439
19488
  });
19440
19489
  }
19441
- function ie() {
19490
+ function q() {
19442
19491
  f.isOpen.value && z?.close();
19443
19492
  }
19444
19493
  function ae() {
19445
- f.isOpen.value ? ie() : re();
19494
+ f.isOpen.value ? q() : ie();
19446
19495
  }
19447
19496
  E(() => {
19448
19497
  b(() => V());
19449
19498
  });
19450
19499
  function oe(e) {
19451
- (e.key === "Enter" || e.key === "ArrowDown") && !f.isOpen.value && (e.preventDefault(), re());
19500
+ (e.key === "Enter" || e.key === "ArrowDown") && !f.isOpen.value && (e.preventDefault(), ie());
19452
19501
  }
19453
19502
  function se(e) {
19454
19503
  e.stopPropagation(), d.clearValue();
@@ -19481,14 +19530,14 @@ var pv = { class: "coar-pdtp-calendar-column" }, mv = ["aria-label"], hv = { cla
19481
19530
  "aria-controls": H(f).isOpen.value ? F : void 0,
19482
19531
  role: "combobox"
19483
19532
  }, c({
19484
- actions: q(() => [u(L_, {
19533
+ actions: K(() => [u(L_, {
19485
19534
  class: "coar-pdtp-btn",
19486
19535
  plain: e.appearance === "inline",
19487
19536
  "aria-label": H(l)("coar.ui.dateTimePicker.openPicker", void 0, "Open picker"),
19488
19537
  disabled: W.value || e.readonly,
19489
19538
  onClick: ae
19490
19539
  }, {
19491
- default: q(() => [u(Q, {
19540
+ default: K(() => [u(Q, {
19492
19541
  name: "calendar",
19493
19542
  size: "s"
19494
19543
  })]),
@@ -19498,7 +19547,7 @@ var pv = { class: "coar-pdtp-calendar-column" }, mv = ["aria-label"], hv = { cla
19498
19547
  "aria-label",
19499
19548
  "disabled"
19500
19549
  ])]),
19501
- default: q(() => [s("input", {
19550
+ default: K(() => [s("input", {
19502
19551
  id: P.value,
19503
19552
  ref_key: "dateInputRef",
19504
19553
  ref: R,
@@ -19518,11 +19567,11 @@ var pv = { class: "coar-pdtp-calendar-column" }, mv = ["aria-label"], hv = { cla
19518
19567
  onKeydown: oe
19519
19568
  }, null, 40, Nv)]),
19520
19569
  _: 2
19521
- }, [ne.value ? {
19570
+ }, [re.value ? {
19522
19571
  name: "leading",
19523
- fn: q(() => [s("button", {
19572
+ fn: K(() => [s("button", {
19524
19573
  type: "button",
19525
- class: x(["coar-pdtp-clear", { "coar-pdtp-clear--hidden": !G.value }]),
19574
+ class: x(["coar-pdtp-clear", { "coar-pdtp-clear--hidden": !ne.value }]),
19526
19575
  tabindex: "-1",
19527
19576
  "aria-label": H(l)("coar.ui.dateTimePicker.clearDate", void 0, "Clear date"),
19528
19577
  onClick: n[0] ||= (e) => se(e)
@@ -19677,7 +19726,7 @@ function Uv(e, t) {
19677
19726
  return null;
19678
19727
  }
19679
19728
  }
19680
- K([e, u], () => {
19729
+ G([e, u], () => {
19681
19730
  s.value = e.value ? N(e.value) : "";
19682
19731
  }, { immediate: !0 });
19683
19732
  function I(e) {
@@ -19721,15 +19770,15 @@ function Uv(e, t) {
19721
19770
  function W() {
19722
19771
  h.value && (m.value === "home" && l.value && l.value !== c.value ? o.value = l.value : o.value = c.value);
19723
19772
  }
19724
- function G() {
19773
+ function ne() {
19725
19774
  e.value = null, a.value = null, s.value = "";
19726
19775
  }
19727
- function ne(t) {
19776
+ function re(t) {
19728
19777
  s.value = t;
19729
19778
  let n = F(t);
19730
19779
  n && (e.value = n, i.value = n.withTimeZone(x.value).toPlainDate().toPlainYearMonth());
19731
19780
  }
19732
- function re() {
19781
+ function ie() {
19733
19782
  let t = s.value;
19734
19783
  !F(t) && t.length > 0 && (s.value = e.value ? N(e.value) : "");
19735
19784
  }
@@ -19775,9 +19824,9 @@ function Uv(e, t) {
19775
19824
  selectDisplayTimezone: te,
19776
19825
  changeValueTimezone: U,
19777
19826
  toggleDisplayTimezone: W,
19778
- clearValue: G,
19779
- changeInput: ne,
19780
- blurInput: re
19827
+ clearValue: ne,
19828
+ changeInput: re,
19829
+ blurInput: ie
19781
19830
  };
19782
19831
  }
19783
19832
  //#endregion
@@ -19925,7 +19974,7 @@ var Wv = { class: "coar-zdtp-body" }, Gv = { class: "coar-zdtp-calendar-column"
19925
19974
  name: S.value === "up" ? "chevron-up" : "chevron-down",
19926
19975
  size: "xs"
19927
19976
  }, null, 8, ["name"])], 8, Kv)) : a("", !0)]), s("div", qv, [
19928
- c.value ? (O(), o("div", Qv, [ie(s("input", {
19977
+ c.value ? (O(), o("div", Qv, [q(s("input", {
19929
19978
  ref_key: "tzSearchInputRef",
19930
19979
  ref: f,
19931
19980
  "onUpdate:modelValue": r[3] ||= (e) => d.value = e,
@@ -19933,7 +19982,7 @@ var Wv = { class: "coar-zdtp-body" }, Gv = { class: "coar-zdtp-calendar-column"
19933
19982
  class: "coar-zdtp-tz-search-input",
19934
19983
  placeholder: H(i)("coar.ui.zonedDateTimePicker.searchTimezone", void 0, "Search timezone..."),
19935
19984
  onKeydown: ae(oe(A, ["stop"]), ["escape"])
19936
- }, null, 40, $v), [[ne, d.value]]), s("button", {
19985
+ }, null, 40, $v), [[re, d.value]]), s("button", {
19937
19986
  type: "button",
19938
19987
  class: "coar-zdtp-tz-search-close",
19939
19988
  "aria-label": H(i)("coar.ui.zonedDateTimePicker.closeTimezoneSearch", void 0, "Close timezone search"),
@@ -19964,7 +20013,7 @@ var Wv = { class: "coar-zdtp-body" }, Gv = { class: "coar-zdtp-calendar-column"
19964
20013
  size: "s"
19965
20014
  })], 8, Zv)
19966
20015
  ])),
19967
- c.value ? ie((O(), o("div", {
20016
+ c.value ? q((O(), o("div", {
19968
20017
  key: 2,
19969
20018
  ref_key: "tzPickerListRef",
19970
20019
  ref: p,
@@ -20020,7 +20069,7 @@ var Wv = { class: "coar-zdtp-body" }, Gv = { class: "coar-zdtp-calendar-column"
20020
20069
  name: "chevron-down",
20021
20070
  size: "xs"
20022
20071
  })]),
20023
- w.value.length > 0 ? ie((O(), o("div", uy, [(O(!0), o(e, null, N(w.value, (e, t) => (O(), o("div", {
20072
+ w.value.length > 0 ? q((O(), o("div", uy, [(O(!0), o(e, null, N(w.value, (e, t) => (O(), o("div", {
20024
20073
  key: t,
20025
20074
  class: x(["coar-zdtp-event-item", e.cssClass])
20026
20075
  }, R(e.description), 3))), 128))])), [[H(Xo), {
@@ -20148,18 +20197,18 @@ var Wv = { class: "coar-zdtp-body" }, Gv = { class: "coar-zdtp-calendar-column"
20148
20197
  }),
20149
20198
  emits: /* @__PURE__ */ v(["opened", "closed"], ["update:modelValue"]),
20150
20199
  setup(e, { emit: t }) {
20151
- let n = e, i = U(e, "modelValue"), l = t, { t: d } = J(), f = Uv(i, n), { pickerBase: p, activeMonth: m, displayValue: g, valueTimeZone: v, effectiveDisplayTimeZone: y, timeZonesDiffer: S, timezoneIndicatorState: C, timezoneIndicatorClickable: T, currentTimeZoneDisplayName: D, valueTimeZoneLabel: k, allTimezones: j, effectiveUse24Hour: N, inputPlaceholder: P, valueInWorkingTz: F, selectedDate: I, selectedTime: L, minDate: z, maxDate: B, effectiveMinTime: V, effectiveMaxTime: ee, formatValueInValueTz: te, toggleDisplayTimezone: W } = f, G = h(_s, void 0), ne = `coar-zdtp-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, re = r(() => n.id || G?.inputId.value || `${ne}-input`), ie = `${ne}-panel`, ae = M(null), se = () => ae.value?.$el ?? void 0, ce = M(null), Y = null, ue;
20200
+ let n = e, i = U(e, "modelValue"), l = t, { t: d } = J(), f = Uv(i, n), { pickerBase: p, activeMonth: m, displayValue: g, valueTimeZone: v, effectiveDisplayTimeZone: y, timeZonesDiffer: S, timezoneIndicatorState: C, timezoneIndicatorClickable: T, currentTimeZoneDisplayName: D, valueTimeZoneLabel: k, allTimezones: j, effectiveUse24Hour: N, inputPlaceholder: P, valueInWorkingTz: F, selectedDate: I, selectedTime: L, minDate: z, maxDate: B, effectiveMinTime: V, effectiveMaxTime: ee, formatValueInValueTz: te, toggleDisplayTimezone: W } = f, ne = h(_s, void 0), re = `coar-zdtp-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, ie = r(() => n.id || ne?.inputId.value || `${re}-input`), q = `${re}-panel`, ae = M(null), se = () => ae.value?.$el ?? void 0, ce = M(null), Y = null, ue;
20152
20201
  function de() {
20153
20202
  if (ue?.destroy(), !ce.value) return;
20154
20203
  let e = W_(p.effectiveDateFormat.value.pattern, !N.value);
20155
20204
  ue = new le(ce.value, e);
20156
20205
  }
20157
- K([ce, () => p.effectiveDateFormat.value], () => {
20206
+ G([ce, () => p.effectiveDateFormat.value], () => {
20158
20207
  b(() => de());
20159
20208
  }), w(() => {
20160
20209
  ue?.destroy(), Y && !Y.isClosed && (Y.close(), Y = null);
20161
20210
  });
20162
- let fe = r(() => n.error || (G?.hasError.value ?? !1)), X = r(() => G?.messageId.value || void 0), pe = r(() => n.disabled), me = r(() => n.clearable && i.value !== null && !pe.value && !n.readonly), he = r(() => n.clearable && !pe.value && !n.readonly);
20211
+ let fe = r(() => n.error || (ne?.hasError.value ?? !1)), X = r(() => ne?.messageId.value || void 0), pe = r(() => n.disabled), me = r(() => n.clearable && i.value !== null && !pe.value && !n.readonly), he = r(() => n.clearable && !pe.value && !n.readonly);
20163
20212
  function ge() {
20164
20213
  if (pe.value || n.readonly || p.isOpen.value) return;
20165
20214
  F.value && (m.value = F.value.toPlainDate().toPlainYearMonth());
@@ -20199,47 +20248,47 @@ var Wv = { class: "coar-zdtp-body" }, Gv = { class: "coar-zdtp-calendar-column"
20199
20248
  onSelectDisplayTimezone: f.selectDisplayTimezone,
20200
20249
  onChangeValueTimezone: f.changeValueTimezone
20201
20250
  }), r = [];
20202
- r.push(K(I, (e) => {
20251
+ r.push(G(I, (e) => {
20203
20252
  t.modelValue = e;
20204
- })), r.push(K(m, (e) => {
20253
+ })), r.push(G(m, (e) => {
20205
20254
  t.activeMonth = e;
20206
- })), r.push(K(z, (e) => {
20255
+ })), r.push(G(z, (e) => {
20207
20256
  t.min = e;
20208
- })), r.push(K(B, (e) => {
20257
+ })), r.push(G(B, (e) => {
20209
20258
  t.max = e;
20210
- })), r.push(K(() => p.effectiveLocale.value, (e) => {
20259
+ })), r.push(G(() => p.effectiveLocale.value, (e) => {
20211
20260
  t.locale = e;
20212
- })), r.push(K(() => p.effectiveDateFormat.value, (e) => {
20261
+ })), r.push(G(() => p.effectiveDateFormat.value, (e) => {
20213
20262
  t.dateFormatConfig = e;
20214
- })), r.push(K(() => n.showWeekNumbers, (e) => {
20263
+ })), r.push(G(() => n.showWeekNumbers, (e) => {
20215
20264
  t.showWeekNumbers = e;
20216
- })), r.push(K(() => n.highlightWeekends, (e) => {
20265
+ })), r.push(G(() => n.highlightWeekends, (e) => {
20217
20266
  t.highlightWeekends = e;
20218
- })), r.push(K(() => n.markers, (e) => {
20267
+ })), r.push(G(() => n.markers, (e) => {
20219
20268
  t.markers = e;
20220
- })), r.push(K(() => n.showTodayMonthButton, (e) => {
20269
+ })), r.push(G(() => n.showTodayMonthButton, (e) => {
20221
20270
  t.showTodayMonthButton = e;
20222
- })), r.push(K(L, (e) => {
20271
+ })), r.push(G(L, (e) => {
20223
20272
  t.selectedTime = e;
20224
- })), r.push(K(N, (e) => {
20273
+ })), r.push(G(N, (e) => {
20225
20274
  t.use24Hour = e;
20226
- })), r.push(K(() => n.minuteStep, (e) => {
20275
+ })), r.push(G(() => n.minuteStep, (e) => {
20227
20276
  t.minuteStep = e;
20228
- })), r.push(K(V, (e) => {
20277
+ })), r.push(G(V, (e) => {
20229
20278
  t.effectiveMinTime = e;
20230
- })), r.push(K(ee, (e) => {
20279
+ })), r.push(G(ee, (e) => {
20231
20280
  t.effectiveMaxTime = e;
20232
- })), r.push(K(y, (e) => {
20281
+ })), r.push(G(y, (e) => {
20233
20282
  t.effectiveDisplayTimeZone = e;
20234
- })), r.push(K(v, (e) => {
20283
+ })), r.push(G(v, (e) => {
20235
20284
  t.valueTimeZone = e;
20236
- })), r.push(K(() => n.timezoneFilter, (e) => {
20285
+ })), r.push(G(() => n.timezoneFilter, (e) => {
20237
20286
  t.timezoneFilter = e;
20238
- })), r.push(K(k, (e) => {
20287
+ })), r.push(G(k, (e) => {
20239
20288
  t.valueTimeZoneLabel = e;
20240
- })), r.push(K(S, (e) => {
20289
+ })), r.push(G(S, (e) => {
20241
20290
  t.timeZonesDiffer = e;
20242
- })), r.push(K(i, (e) => {
20291
+ })), r.push(G(i, (e) => {
20243
20292
  t.hasValue = e != null, t.formatValueInValueTz = te();
20244
20293
  })), Y = vn().open({
20245
20294
  spec: {
@@ -20301,7 +20350,7 @@ var Wv = { class: "coar-zdtp-body" }, Gv = { class: "coar-zdtp-calendar-column"
20301
20350
  role: "combobox",
20302
20351
  "aria-expanded": H(p).isOpen.value,
20303
20352
  "aria-haspopup": "dialog",
20304
- "aria-controls": H(p).isOpen.value ? ie : void 0,
20353
+ "aria-controls": H(p).isOpen.value ? q : void 0,
20305
20354
  "aria-invalid": fe.value || void 0,
20306
20355
  class: "coar-zdtp-trigger",
20307
20356
  "mobile-sizing": "",
@@ -20313,7 +20362,7 @@ var Wv = { class: "coar-zdtp-body" }, Gv = { class: "coar-zdtp-calendar-column"
20313
20362
  active: H(p).isOpen.value,
20314
20363
  onKeydown: ye
20315
20364
  }, c({
20316
- trailing: q(() => [s("button", {
20365
+ trailing: K(() => [s("button", {
20317
20366
  type: "button",
20318
20367
  class: x(["coar-zdtp-tz-indicator", {
20319
20368
  "coar-zdtp-tz-indicator--clickable": H(T),
@@ -20327,14 +20376,14 @@ var Wv = { class: "coar-zdtp-body" }, Gv = { class: "coar-zdtp-calendar-column"
20327
20376
  name: Ce.value,
20328
20377
  size: "xs"
20329
20378
  }, null, 8, ["name"])], 10, xy)]),
20330
- actions: q(() => [u(L_, {
20379
+ actions: K(() => [u(L_, {
20331
20380
  class: "coar-zdtp-btn",
20332
20381
  plain: e.appearance === "inline",
20333
20382
  disabled: pe.value,
20334
20383
  "aria-label": H(d)("coar.ui.zonedDateTimePicker.openPicker", void 0, "Open date and time picker"),
20335
20384
  onClick: oe(ve, ["stop"])
20336
20385
  }, {
20337
- default: q(() => [u(Q, {
20386
+ default: K(() => [u(Q, {
20338
20387
  name: "calendar",
20339
20388
  size: "s"
20340
20389
  })]),
@@ -20344,8 +20393,8 @@ var Wv = { class: "coar-zdtp-body" }, Gv = { class: "coar-zdtp-calendar-column"
20344
20393
  "disabled",
20345
20394
  "aria-label"
20346
20395
  ])]),
20347
- default: q(() => [s("input", {
20348
- id: re.value,
20396
+ default: K(() => [s("input", {
20397
+ id: ie.value,
20349
20398
  ref_key: "dateInputRef",
20350
20399
  ref: ce,
20351
20400
  class: "coar-zdtp-input",
@@ -20364,7 +20413,7 @@ var Wv = { class: "coar-zdtp-body" }, Gv = { class: "coar-zdtp-calendar-column"
20364
20413
  _: 2
20365
20414
  }, [he.value ? {
20366
20415
  name: "leading",
20367
- fn: q(() => [s("button", {
20416
+ fn: K(() => [s("button", {
20368
20417
  type: "button",
20369
20418
  class: x(["coar-zdtp-clear", { "coar-zdtp-clear--hidden": !me.value }]),
20370
20419
  "aria-label": H(d)("coar.ui.zonedDateTimePicker.clearValue", void 0, "Clear value"),
@@ -20399,7 +20448,7 @@ var Wv = { class: "coar-zdtp-body" }, Gv = { class: "coar-zdtp-calendar-column"
20399
20448
  //#endregion
20400
20449
  //#region src/components/date-time/_shared/use-date-or-time.ts
20401
20450
  function Ty(e, t, n) {
20402
- return K(e, (e) => {
20451
+ return G(e, (e) => {
20403
20452
  e != null && (t.value = n.isDateTime(e));
20404
20453
  }, { immediate: !0 }), {
20405
20454
  dateValue: r(() => {
@@ -20490,7 +20539,7 @@ var Ey = /* @__PURE__ */ d({
20490
20539
  }),
20491
20540
  toDate: (e) => e.toPlainDate()
20492
20541
  }), g = r(() => n.min?.toPlainDate() ?? null), _ = r(() => n.max?.toPlainDate() ?? null), v = r(() => c.value ? n.removeTimeLabel : n.addTimeLabel);
20493
- return (t, n) => (O(), o("div", { class: x(["coar-date-or-time", [`coar-date-or-time--${e.size}`, { "coar-date-or-time--toggle-end": e.togglePosition === "end" }]]) }, [ie(u(Ws, {
20542
+ return (t, n) => (O(), o("div", { class: x(["coar-date-or-time", [`coar-date-or-time--${e.size}`, { "coar-date-or-time--toggle-end": e.togglePosition === "end" }]]) }, [q(u(Ws, {
20494
20543
  class: x(["coar-date-or-time__toggle", { "coar-date-or-time__toggle--active": c.value }]),
20495
20544
  variant: "ghost",
20496
20545
  size: e.size,
@@ -20636,7 +20685,7 @@ var Ey = /* @__PURE__ */ d({
20636
20685
  toDateTime: (e) => e.toPlainDateTime(l()),
20637
20686
  toDate: (e) => e.toPlainDate()
20638
20687
  }), g = r(() => n.min?.toPlainDate() ?? null), _ = r(() => n.max?.toPlainDate() ?? null), v = r(() => c.value ? n.removeTimeLabel : n.addTimeLabel);
20639
- return (t, n) => (O(), o("div", { class: x(["coar-date-or-time", [`coar-date-or-time--${e.size}`, { "coar-date-or-time--toggle-end": e.togglePosition === "end" }]]) }, [ie(u(Ws, {
20688
+ return (t, n) => (O(), o("div", { class: x(["coar-date-or-time", [`coar-date-or-time--${e.size}`, { "coar-date-or-time--toggle-end": e.togglePosition === "end" }]]) }, [q(u(Ws, {
20640
20689
  class: x(["coar-date-or-time__toggle", { "coar-date-or-time__toggle--active": c.value }]),
20641
20690
  variant: "ghost",
20642
20691
  size: e.size,