@bobbykim/mcl-forms 0.12.3 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mcl-forms.js CHANGED
@@ -1,9 +1,9 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.switch[data-v-784930f6]{width:var(--switch-width);height:var(--switch-height)}.slider[data-v-784930f6]:before{content:"";height:var(--slider-size);width:var(--slider-size);left:var(--gutter-size);bottom:var(--gutter-size)}input:checked+.slider[data-v-784930f6]:before{transform:translate(var(--slider-size))}.options-enter-active[data-v-2695c901],.options-leave-active[data-v-2695c901]{opacity:1;transition:opacity .3s linear,transform .3s linear}.options-enter-from[data-v-2695c901],.options-leave-to[data-v-2695c901]{opacity:0;transform:translateY(-10px)}.options-leave-active[data-v-2695c901]{pointer-events:none}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- import { defineComponent as N, openBlock as w, createElementBlock as S, renderSlot as q, createElementVNode as F, toDisplayString as Q, createCommentVNode as R, inject as kt, computed as C, toValue as H, provide as Bt, useId as St, useSlots as Vt, unref as s, normalizeClass as M, createTextVNode as Ge, createBlock as te, withCtx as le, useModel as se, ref as I, createVNode as Ce, mergeModels as _, withDirectives as ie, vModelRadio as Rt, normalizeStyle as qe, vModelCheckbox as nt, vModelDynamic as $t, shallowRef as Ot, watch as J, getCurrentScope as At, onScopeDispose as Ft, shallowReadonly as ue, vModelText as lt, Transition as Lt, Fragment as Tt, renderList as Mt } from "vue";
3
- import { generateClass as A } from "@bobbykim/manguito-theme";
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.switch[data-v-784930f6]{width:var(--switch-width);height:var(--switch-height)}.slider[data-v-784930f6]:before{content:"";height:var(--slider-size);width:var(--slider-size);left:var(--gutter-size);bottom:var(--gutter-size)}input:checked+.slider[data-v-784930f6]:before{transform:translate(var(--slider-size))}.options-enter-active[data-v-1c4c7f20],.options-leave-active[data-v-1c4c7f20]{opacity:1;transition:opacity .3s linear,transform .3s linear}.options-enter-from[data-v-1c4c7f20],.options-leave-to[data-v-1c4c7f20]{opacity:0;transform:translateY(-10px)}.options-leave-active[data-v-1c4c7f20]{pointer-events:none}@media(prefers-reduced-motion:reduce){.options-enter-active[data-v-1c4c7f20],.options-leave-active[data-v-1c4c7f20]{transition:opacity .3s linear}.options-enter-from[data-v-1c4c7f20],.options-leave-to[data-v-1c4c7f20]{transform:none}}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
+ import { defineComponent as _, openBlock as w, createElementBlock as S, renderSlot as q, createElementVNode as A, toDisplayString as Q, createCommentVNode as V, inject as kt, computed as C, toValue as N, provide as Bt, useId as St, useSlots as Rt, unref as d, normalizeClass as M, createTextVNode as Ge, createBlock as te, withCtx as le, useModel as se, ref as I, createVNode as Ce, mergeModels as H, withDirectives as ie, vModelRadio as Vt, normalizeStyle as qe, vModelCheckbox as nt, vModelDynamic as $t, shallowRef as Ot, watch as J, getCurrentScope as At, onScopeDispose as Lt, shallowReadonly as ue, vModelText as lt, Transition as Ft, Fragment as Tt, renderList as Mt } from "vue";
3
+ import { generateClass as F } from "@bobbykim/manguito-theme";
4
4
  import { vClickOutside as Et } from "@bobbykim/manguito-theme/directives";
5
5
  import { useResizeObserver as It } from "@vueuse/core";
6
- const Dt = ["id"], qt = { class: "text-xs text-danger" }, ve = /* @__PURE__ */ N({
6
+ const Dt = ["id"], qt = { class: "text-xs text-danger" }, ve = /* @__PURE__ */ _({
7
7
  __name: "FieldFeedback",
8
8
  props: {
9
9
  id: {},
@@ -18,9 +18,9 @@ const Dt = ["id"], qt = { class: "text-xs text-danger" }, ve = /* @__PURE__ */ N
18
18
  class: "ml-3xs"
19
19
  }, [
20
20
  q(t.$slots, "default", {}, () => [
21
- F("span", qt, Q(e.text), 1)
21
+ A("span", qt, Q(e.text), 1)
22
22
  ])
23
- ], 8, Dt)) : R("", !0);
23
+ ], 8, Dt)) : V("", !0);
24
24
  }
25
25
  }), it = /* @__PURE__ */ Symbol("mcl-field");
26
26
  let Pt = 0;
@@ -28,23 +28,23 @@ const Be = (e) => e !== void 0 && e !== "" ? e : void 0, at = (e) => Be(e) ?? Be
28
28
  const n = [];
29
29
  return e && n.push(e), o.value && t !== void 0 && n.push(t), n.length > 0 ? n.join(" ") : void 0;
30
30
  }), zt = (e) => {
31
- const t = at(e.fieldId), o = C(() => H(e.invalid) ?? !1), n = `${t}-error`, i = e.hasHelpText ? `${t}-description` : void 0, l = {
31
+ const t = at(e.fieldId), o = C(() => N(e.invalid) ?? !1), n = `${t}-error`, i = e.hasHelpText ? `${t}-description` : void 0, l = {
32
32
  id: t,
33
33
  // Defaulting name to the field id is what lets a radio group work without
34
34
  // the consumer having to invent one.
35
- name: C(() => H(e.name) ?? t),
35
+ name: C(() => N(e.name) ?? t),
36
36
  errorId: n,
37
37
  descriptionId: i,
38
38
  invalid: o,
39
- required: C(() => H(e.required) ?? !1),
40
- disabled: C(() => H(e.disabled) ?? !1),
39
+ required: C(() => N(e.required) ?? !1),
40
+ disabled: C(() => N(e.disabled) ?? !1),
41
41
  describedBy: rt(i, n, o),
42
42
  feedbackOwnedByGroup: e.ownsFeedback,
43
43
  isGroupLabel: e.isGroupLabel
44
44
  };
45
45
  return Bt(it, l), l;
46
46
  }, de = (e, t) => {
47
- const o = kt(it, null), n = t?.rendersOwnFeedback ?? !0, i = at(void 0), l = Be(e.id), a = o !== null && !o.isGroupLabel ? Be(o.id) : void 0, r = l ?? a ?? i, c = o?.feedbackOwnedByGroup ?? !1, d = c ? o.errorId : `${r}-error`, u = c || n, v = o?.descriptionId, f = C(
47
+ const o = kt(it, null), n = t?.rendersOwnFeedback ?? !0, i = at(void 0), l = Be(e.id), a = o !== null && !o.isGroupLabel ? Be(o.id) : void 0, r = l ?? a ?? i, c = o?.feedbackOwnedByGroup ?? !1, s = c ? o.errorId : `${r}-error`, u = c || n, v = o?.descriptionId, f = C(
48
48
  () => e.invalid ?? o?.invalid.value ?? !1
49
49
  );
50
50
  return {
@@ -55,8 +55,8 @@ const Be = (e) => e !== void 0 && e !== "" ? e : void 0, at = (e) => Be(e) ?? Be
55
55
  // out. Grouped controls still inherit a usable name because the provider
56
56
  // defaults its own `name` to the field id; a standalone radio supplies its
57
57
  // own fallback in MclInputRadio, where it is actually needed.
58
- name: C(() => e.name ?? H(o?.name)),
59
- errorId: d,
58
+ name: C(() => e.name ?? N(o?.name)),
59
+ errorId: s,
60
60
  descriptionId: v,
61
61
  invalid: f,
62
62
  required: C(
@@ -67,7 +67,7 @@ const Be = (e) => e !== void 0 && e !== "" ? e : void 0, at = (e) => Be(e) ?? Be
67
67
  ),
68
68
  describedBy: rt(
69
69
  v,
70
- u ? d : void 0,
70
+ u ? s : void 0,
71
71
  f
72
72
  ),
73
73
  feedbackOwnedByGroup: c,
@@ -78,13 +78,13 @@ const Be = (e) => e !== void 0 && e !== "" ? e : void 0, at = (e) => Be(e) ?? Be
78
78
  // part of a set than alone. `false` here would be a lie it could act on.
79
79
  isGroupLabel: o?.isGroupLabel ?? !1
80
80
  };
81
- }, Nt = {
81
+ }, _t = {
82
82
  key: 0,
83
83
  class: "m-0 min-w-0 border-0 p-0"
84
- }, Ht = {
84
+ }, Nt = {
85
85
  key: 0,
86
86
  class: "inline-block"
87
- }, _t = ["id"], Wt = { key: 1 }, jt = ["for"], Gt = ["id"], Bn = /* @__PURE__ */ N({
87
+ }, Ht = ["id"], Wt = { key: 1 }, jt = ["for"], Gt = ["id"], Bn = /* @__PURE__ */ _({
88
88
  __name: "MclFormGroup",
89
89
  props: {
90
90
  fieldId: {},
@@ -100,7 +100,7 @@ const Be = (e) => e !== void 0 && e !== "" ? e : void 0, at = (e) => Be(e) ?? Be
100
100
  textBold: { type: Boolean, default: !1 }
101
101
  },
102
102
  setup(e) {
103
- const t = e, o = Vt(), n = o["invalid-feedback"] !== void 0, i = t.helpText !== void 0 || o.help !== void 0, l = t.invalidFeedback !== void 0 || n, a = t.groupLabel, r = zt({
103
+ const t = e, o = Rt(), n = o["invalid-feedback"] !== void 0, i = t.helpText !== void 0 || o.help !== void 0, l = t.invalidFeedback !== void 0 || n, a = t.groupLabel, r = zt({
104
104
  fieldId: t.fieldId,
105
105
  invalid: () => t.invalid,
106
106
  required: () => t.required,
@@ -109,77 +109,77 @@ const Be = (e) => e !== void 0 && e !== "" ? e : void 0, at = (e) => Be(e) ?? Be
109
109
  ownsFeedback: l,
110
110
  isGroupLabel: a
111
111
  }), c = C(() => {
112
- const d = [
113
- A.textColorVariant({ color: t.textColor }),
114
- A.bodyTextVariant({ size: t.textSize })
112
+ const s = [
113
+ F.textColorVariant({ color: t.textColor }),
114
+ F.bodyTextVariant({ size: t.textSize })
115
115
  ];
116
- return t.textBold && d.push("font-bold"), d.join(" ");
116
+ return t.textBold && s.push("font-bold"), s.join(" ");
117
117
  });
118
- return (d, u) => s(a) ? (w(), S("fieldset", Nt, [
119
- e.label || d.$slots.label ? (w(), S("legend", Ht, [
120
- q(d.$slots, "label", {}, () => [
121
- F("span", {
118
+ return (s, u) => d(a) ? (w(), S("fieldset", _t, [
119
+ e.label || s.$slots.label ? (w(), S("legend", Nt, [
120
+ q(s.$slots, "label", {}, () => [
121
+ A("span", {
122
122
  class: M(["mb-2xs block", c.value])
123
123
  }, Q(e.label), 3)
124
124
  ])
125
- ])) : R("", !0),
126
- s(i) ? (w(), S("p", {
125
+ ])) : V("", !0),
126
+ d(i) ? (w(), S("p", {
127
127
  key: 1,
128
- id: s(r).descriptionId,
128
+ id: d(r).descriptionId,
129
129
  class: "mb-2xs text-xs"
130
130
  }, [
131
- q(d.$slots, "help", {}, () => [
131
+ q(s.$slots, "help", {}, () => [
132
132
  Ge(Q(e.helpText), 1)
133
133
  ])
134
- ], 8, _t)) : R("", !0),
135
- q(d.$slots, "default"),
136
- s(l) ? (w(), te(ve, {
134
+ ], 8, Ht)) : V("", !0),
135
+ q(s.$slots, "default"),
136
+ d(l) ? (w(), te(ve, {
137
137
  key: 2,
138
- id: s(r).errorId,
139
- invalid: s(r).invalid.value,
138
+ id: d(r).errorId,
139
+ invalid: d(r).invalid.value,
140
140
  text: e.invalidFeedback
141
141
  }, {
142
142
  default: le(() => [
143
- n ? q(d.$slots, "invalid-feedback", { key: 0 }) : R("", !0)
143
+ n ? q(s.$slots, "invalid-feedback", { key: 0 }) : V("", !0)
144
144
  ]),
145
145
  _: 3
146
- }, 8, ["id", "invalid", "text"])) : R("", !0)
146
+ }, 8, ["id", "invalid", "text"])) : V("", !0)
147
147
  ])) : (w(), S("div", Wt, [
148
- e.label || d.$slots.label ? (w(), S("label", {
148
+ e.label || s.$slots.label ? (w(), S("label", {
149
149
  key: 0,
150
- for: s(r).id,
150
+ for: d(r).id,
151
151
  class: "inline-block"
152
152
  }, [
153
- q(d.$slots, "label", {}, () => [
154
- F("span", {
153
+ q(s.$slots, "label", {}, () => [
154
+ A("span", {
155
155
  class: M(["mb-2xs block", c.value])
156
156
  }, Q(e.label), 3)
157
157
  ])
158
- ], 8, jt)) : R("", !0),
159
- s(i) ? (w(), S("p", {
158
+ ], 8, jt)) : V("", !0),
159
+ d(i) ? (w(), S("p", {
160
160
  key: 1,
161
- id: s(r).descriptionId,
161
+ id: d(r).descriptionId,
162
162
  class: "mb-2xs text-xs"
163
163
  }, [
164
- q(d.$slots, "help", {}, () => [
164
+ q(s.$slots, "help", {}, () => [
165
165
  Ge(Q(e.helpText), 1)
166
166
  ])
167
- ], 8, Gt)) : R("", !0),
168
- q(d.$slots, "default"),
169
- s(l) ? (w(), te(ve, {
167
+ ], 8, Gt)) : V("", !0),
168
+ q(s.$slots, "default"),
169
+ d(l) ? (w(), te(ve, {
170
170
  key: 2,
171
- id: s(r).errorId,
172
- invalid: s(r).invalid.value,
171
+ id: d(r).errorId,
172
+ invalid: d(r).invalid.value,
173
173
  text: e.invalidFeedback
174
174
  }, {
175
175
  default: le(() => [
176
- n ? q(d.$slots, "invalid-feedback", { key: 0 }) : R("", !0)
176
+ n ? q(s.$slots, "invalid-feedback", { key: 0 }) : V("", !0)
177
177
  ]),
178
178
  _: 3
179
- }, 8, ["id", "invalid", "text"])) : R("", !0)
179
+ }, 8, ["id", "invalid", "text"])) : V("", !0)
180
180
  ]));
181
181
  }
182
- }), st = /* @__PURE__ */ N({
182
+ }), st = /* @__PURE__ */ _({
183
183
  __name: "XMark",
184
184
  props: {
185
185
  color: { default: "dark-4" },
@@ -187,7 +187,7 @@ const Be = (e) => e !== void 0 && e !== "" ? e : void 0, at = (e) => Be(e) ?? Be
187
187
  },
188
188
  setup(e) {
189
189
  const t = e, o = C(
190
- () => [A.svgFillColorVariant({ color: t.color }), t.className].filter(Boolean).join(" ")
190
+ () => [F.svgFillColorVariant({ color: t.color }), t.className].filter(Boolean).join(" ")
191
191
  );
192
192
  return (n, i) => (w(), S("svg", {
193
193
  xmlns: "http://www.w3.org/2000/svg",
@@ -196,27 +196,24 @@ const Be = (e) => e !== void 0 && e !== "" ? e : void 0, at = (e) => Be(e) ?? Be
196
196
  focusable: "false",
197
197
  class: M(o.value)
198
198
  }, [...i[0] || (i[0] = [
199
- F("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" }, null, -1)
199
+ A("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" }, null, -1)
200
200
  ])], 2));
201
201
  }
202
202
  }), Oe = (e) => C(() => {
203
- const { bgColor: t, textColor: o, borderColor: n, showBorder: i, showShadow: l, rounded: a } = e, r = e.showHighlight ?? !1, c = [
204
- A.bgColorVariant({ color: t }),
205
- A.textColorVariant({ color: o })
203
+ const { bgColor: t, textColor: o, borderColor: n, showBorder: i, showShadow: l, rounded: a } = e, r = [
204
+ F.bgColorVariant({ color: t }),
205
+ F.textColorVariant({ color: o })
206
206
  ];
207
- return i && c.push(
207
+ return i && r.push(
208
208
  "border-2",
209
- A.borderColorVariant({ color: n })
210
- ), r || c.push(
211
- "focus-visible:ring-4 ring-offset-2 transition-all duration-300 ease-linear",
212
- A.focusVisibleRingColorVariant({ color: n })
213
- ), l && c.push("shadow-md"), a && c.push("rounded-md"), c.join(" ");
209
+ F.borderColorVariant({ color: n })
210
+ ), r.push("focus-visible:mcl-focus-ring"), l && r.push("shadow-md"), a && r.push("rounded-md"), r.join(" ");
214
211
  }), Ut = { class: "my-3xs mr-xs ml-3xs shrink-0" }, Kt = ["aria-controls", "disabled"], Xt = ["id", "name", "accept", "required", "disabled", "aria-invalid", "aria-describedby"], Yt = {
215
212
  key: 0,
216
213
  class: "my-3xs mr-3xs self-stretch"
217
- }, Zt = ["disabled"], Sn = /* @__PURE__ */ N({
214
+ }, Zt = ["disabled"], Sn = /* @__PURE__ */ _({
218
215
  __name: "MclInputFile",
219
- props: /* @__PURE__ */ _({
216
+ props: /* @__PURE__ */ H({
220
217
  id: {},
221
218
  name: {},
222
219
  accept: { default: "image/jpg,image/jpeg,image/png" },
@@ -245,71 +242,71 @@ const Be = (e) => e !== void 0 && e !== "" ? e : void 0, at = (e) => Be(e) ?? Be
245
242
  }, c = (f) => {
246
243
  const p = f.target.files;
247
244
  o.value = p && p.length > 0 ? p[0] : null;
248
- }, d = () => {
245
+ }, s = () => {
249
246
  o.value = null, a.value++;
250
247
  }, u = C(() => {
251
248
  const f = [
252
- A.bgColorVariant({ color: t.buttonColor }),
253
- A.textColorVariant({ color: t.buttonTextColor })
249
+ F.bgColorVariant({ color: t.buttonColor }),
250
+ F.textColorVariant({ color: t.buttonTextColor })
254
251
  ];
255
252
  return t.rounded && f.push("rounded-l-md"), f.join(" ");
256
253
  }), v = C(() => {
257
254
  const f = [
258
- A.bgColorVariant({ color: t.buttonColor })
255
+ F.bgColorVariant({ color: t.buttonColor })
259
256
  ];
260
257
  return t.rounded && f.push("rounded-r-md"), f.join(" ");
261
258
  });
262
259
  return (f, p) => (w(), S("div", null, [
263
- F("div", {
264
- class: M(["flex items-center overflow-hidden", s(i)])
260
+ A("div", {
261
+ class: M(["flex items-center overflow-hidden", d(i)])
265
262
  }, [
266
- F("div", Ut, [
267
- F("button", {
263
+ A("div", Ut, [
264
+ A("button", {
268
265
  type: "button",
269
- "aria-controls": s(n).id,
270
- disabled: s(n).disabled.value,
266
+ "aria-controls": d(n).id,
267
+ disabled: d(n).disabled.value,
271
268
  class: M(["max-w-full px-xs py-2xs transition-all duration-200 ease-linear hover:bg-opacity-70 disabled:cursor-not-allowed disabled:opacity-50", u.value]),
272
269
  onClick: r
273
270
  }, Q(e.buttonText), 11, Kt)
274
271
  ]),
275
272
  (w(), S("input", {
276
- id: s(n).id,
273
+ id: d(n).id,
277
274
  ref_key: "inputRef",
278
275
  ref: l,
279
276
  key: a.value,
280
277
  type: "file",
281
278
  class: "w-full bg-transparent file:hidden",
282
- name: s(n).name.value,
279
+ name: d(n).name.value,
283
280
  accept: e.accept,
284
- required: s(n).required.value,
285
- disabled: s(n).disabled.value,
286
- "aria-invalid": s(n).invalid.value || void 0,
287
- "aria-describedby": s(n).describedBy.value,
281
+ required: d(n).required.value,
282
+ disabled: d(n).disabled.value,
283
+ "aria-invalid": d(n).invalid.value || void 0,
284
+ "aria-describedby": d(n).describedBy.value,
288
285
  onChange: c
289
286
  }, null, 40, Xt)),
290
287
  e.showClear ? (w(), S("div", Yt, [
291
- F("button", {
288
+ A("button", {
292
289
  type: "button",
293
290
  "aria-label": "Clear selected file",
294
- disabled: s(n).disabled.value,
291
+ disabled: d(n).disabled.value,
295
292
  class: M(["flex h-full items-center px-xs py-2xs transition-all duration-200 ease-linear hover:bg-opacity-70 disabled:cursor-not-allowed disabled:opacity-50", v.value]),
296
- onClick: d
293
+ onClick: s
297
294
  }, [
298
295
  Ce(st, {
299
296
  color: e.buttonTextColor,
300
297
  "class-name": "h-xs"
301
298
  }, null, 8, ["color"])
302
299
  ], 10, Zt)
303
- ])) : R("", !0)
300
+ ])) : V("", !0)
304
301
  ], 2),
305
- s(n).feedbackOwnedByGroup ? R("", !0) : (w(), te(ve, {
302
+ d(n).feedbackOwnedByGroup ? V("", !0) : (w(), te(ve, {
306
303
  key: 0,
307
- id: s(n).errorId,
308
- invalid: s(n).invalid.value,
304
+ id: d(n).errorId,
305
+ invalid: d(n).invalid.value,
309
306
  text: e.invalidFeedback
310
307
  }, {
311
308
  default: le(() => [
312
- f.$slots["invalid-feedback"] ? q(f.$slots, "invalid-feedback", { key: 0 }) : R("", !0)
309
+ f.$slots["invalid-feedback"] ? q(f.$slots, "invalid-feedback", { key: 0 }) : V("", !0)
313
310
  ]),
314
311
  _: 3
315
312
  }, 8, ["id", "invalid", "text"]))
@@ -338,26 +335,26 @@ const Be = (e) => e !== void 0 && e !== "" ? e : void 0, at = (e) => Be(e) ?? Be
338
335
  "--slider-size": "26px",
339
336
  "--gutter-size": "4px"
340
337
  }
341
- }, eo = "rounded-md before:rounded-[3px]", Ne = (e) => {
338
+ }, eo = "rounded-md before:rounded-[3px]", _e = (e) => {
342
339
  const t = C(() => {
343
- const { bgColor: i, borderColor: l, indicatorColor: a, checkedBgColor: r, showShadow: c } = e, d = e.rounded ?? !1, u = [
344
- A.bgColorVariant({ color: i }),
345
- A.borderColorVariant({ color: l }),
346
- A.beforeBgColorVariant({ color: a }),
347
- A.peerCheckedBgColorVariant({ color: r }),
340
+ const { bgColor: i, borderColor: l, indicatorColor: a, checkedBgColor: r, showShadow: c } = e, s = e.rounded ?? !1, u = [
341
+ F.bgColorVariant({ color: i }),
342
+ F.borderColorVariant({ color: l }),
343
+ F.beforeBgColorVariant({ color: a }),
344
+ F.peerCheckedBgColorVariant({ color: r }),
348
345
  // The native input is visually transparent, so the focus indicator has to
349
- // be projected onto this span. Without it there is none at all.
350
- "peer-focus-visible:ring-2 ring-offset-2",
351
- A.peerFocusVisibleRingColorVariant({ color: l })
346
+ // be projected onto this span. Without it there is none at all. It is the
347
+ // shared two-tone ring (#122), not the border colour.
348
+ "peer-focus-visible:mcl-focus-ring"
352
349
  ];
353
- return c && u.push("drop-shadow-md"), d && u.push(e.roundedClass ?? eo), u.join(" ");
350
+ return c && u.push("drop-shadow-md"), s && u.push(e.roundedClass ?? eo), u.join(" ");
354
351
  }), o = C(() => Jt[e.size]), n = C(() => ({
355
352
  ...Qt[e.size]
356
353
  }));
357
354
  return { boxClass: t, sizeClass: o, switchVars: n };
358
- }, to = { class: "relative inline-flex" }, oo = ["id", "name", "value", "required", "disabled", "aria-invalid", "aria-describedby"], Vn = /* @__PURE__ */ N({
355
+ }, to = { class: "relative inline-flex" }, oo = ["id", "name", "value", "required", "disabled", "aria-invalid", "aria-describedby"], Rn = /* @__PURE__ */ _({
359
356
  __name: "MclInputRadio",
360
- props: /* @__PURE__ */ _({
357
+ props: /* @__PURE__ */ H({
361
358
  id: {},
362
359
  name: {},
363
360
  size: { default: "md" },
@@ -374,36 +371,36 @@ const Be = (e) => e !== void 0 && e !== "" ? e : void 0, at = (e) => Be(e) ?? Be
374
371
  modelValue: { default: null },
375
372
  modelModifiers: {}
376
373
  }),
377
- emits: /* @__PURE__ */ _(["change"], ["update:modelValue"]),
374
+ emits: /* @__PURE__ */ H(["change"], ["update:modelValue"]),
378
375
  setup(e, { emit: t }) {
379
- const o = e, n = se(e, "modelValue"), i = t, l = de(o, { rendersOwnFeedback: !1 }), { boxClass: a, sizeClass: r } = Ne(o), c = C(() => l.name.value ?? l.id), d = (u) => {
376
+ const o = e, n = se(e, "modelValue"), i = t, l = de(o, { rendersOwnFeedback: !1 }), { boxClass: a, sizeClass: r } = _e(o), c = C(() => l.name.value ?? l.id), s = (u) => {
380
377
  i("change", u);
381
378
  };
382
379
  return (u, v) => (w(), S("div", to, [
383
- ie(F("input", {
384
- id: s(l).id,
380
+ ie(A("input", {
381
+ id: d(l).id,
385
382
  "onUpdate:modelValue": v[0] || (v[0] = (f) => n.value = f),
386
383
  type: "radio",
387
384
  class: "peer absolute inset-0 z-10 h-full w-full cursor-pointer appearance-none opacity-0 disabled:cursor-not-allowed",
388
385
  name: c.value,
389
386
  value: e.value,
390
- required: s(l).required.value,
391
- disabled: s(l).disabled.value,
392
- "aria-invalid": s(l).invalid.value || void 0,
393
- "aria-describedby": s(l).describedBy.value,
394
- onChange: d
387
+ required: d(l).required.value,
388
+ disabled: d(l).disabled.value,
389
+ "aria-invalid": d(l).invalid.value || void 0,
390
+ "aria-describedby": d(l).describedBy.value,
391
+ onChange: s
395
392
  }, null, 40, oo), [
396
- [Rt, n.value]
393
+ [Vt, n.value]
397
394
  ]),
398
- F("span", {
395
+ A("span", {
399
396
  "aria-hidden": "true",
400
- class: M(["relative inline-block rounded-full border transition-colors duration-200 ease-linear peer-disabled:opacity-50 before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full before:opacity-0 before:transition-opacity before:duration-200 peer-checked:before:opacity-100", [s(a), s(r)]])
397
+ class: M(["relative inline-block rounded-full border transition-colors duration-200 ease-linear peer-disabled:opacity-50 before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full before:opacity-0 before:transition-opacity before:duration-200 peer-checked:before:opacity-100", [d(a), d(r)]])
401
398
  }, null, 2)
402
399
  ]));
403
400
  }
404
- }), no = ["id", "name", "required", "disabled", "aria-invalid", "aria-describedby"], lo = "rounded-full before:rounded-full", io = /* @__PURE__ */ N({
401
+ }), no = ["id", "name", "required", "disabled", "aria-invalid", "aria-describedby"], lo = "rounded-full before:rounded-full", io = /* @__PURE__ */ _({
405
402
  __name: "MclInputSwitch",
406
- props: /* @__PURE__ */ _({
403
+ props: /* @__PURE__ */ H({
407
404
  id: {},
408
405
  name: {},
409
406
  size: { default: "md" },
@@ -420,7 +417,7 @@ const Be = (e) => e !== void 0 && e !== "" ? e : void 0, at = (e) => Be(e) ?? Be
420
417
  modelValue: { type: Boolean },
421
418
  modelModifiers: {}
422
419
  }),
423
- emits: /* @__PURE__ */ _(["change"], ["update:modelValue"]),
420
+ emits: /* @__PURE__ */ H(["change"], ["update:modelValue"]),
424
421
  setup(e, { emit: t }) {
425
422
  const o = e, n = se(e, "modelValue"), i = t, l = de(o, { rendersOwnFeedback: !1 }), a = {
426
423
  get size() {
@@ -445,31 +442,31 @@ const Be = (e) => e !== void 0 && e !== "" ? e : void 0, at = (e) => Be(e) ?? Be
445
442
  return o.rounded;
446
443
  },
447
444
  roundedClass: lo
448
- }, { boxClass: r, switchVars: c } = Ne(a), d = (u) => {
445
+ }, { boxClass: r, switchVars: c } = _e(a), s = (u) => {
449
446
  i("change", u);
450
447
  };
451
448
  return (u, v) => (w(), S("div", {
452
449
  class: "switch relative",
453
- style: qe(s(c))
450
+ style: qe(d(c))
454
451
  }, [
455
- ie(F("input", {
456
- id: s(l).id,
452
+ ie(A("input", {
453
+ id: d(l).id,
457
454
  "onUpdate:modelValue": v[0] || (v[0] = (f) => n.value = f),
458
455
  type: "checkbox",
459
456
  role: "switch",
460
457
  class: "peer absolute inset-0 z-10 h-full w-full cursor-pointer appearance-none opacity-0 disabled:cursor-not-allowed",
461
- name: s(l).name.value,
462
- required: s(l).required.value,
463
- disabled: s(l).disabled.value,
464
- "aria-invalid": s(l).invalid.value || void 0,
465
- "aria-describedby": s(l).describedBy.value,
466
- onChange: d
458
+ name: d(l).name.value,
459
+ required: d(l).required.value,
460
+ disabled: d(l).disabled.value,
461
+ "aria-invalid": d(l).invalid.value || void 0,
462
+ "aria-describedby": d(l).describedBy.value,
463
+ onChange: s
467
464
  }, null, 40, no), [
468
465
  [nt, n.value]
469
466
  ]),
470
- F("span", {
467
+ A("span", {
471
468
  "aria-hidden": "true",
472
- class: M(["slider absolute inset-0 transition-all duration-300 peer-disabled:opacity-50 before:absolute before:transition-all before:duration-300", s(r)])
469
+ class: M(["slider absolute inset-0 transition-all duration-300 peer-disabled:opacity-50 before:absolute before:transition-all before:duration-300", d(r)])
473
470
  }, null, 2)
474
471
  ], 4));
475
472
  }
@@ -478,30 +475,26 @@ const Be = (e) => e !== void 0 && e !== "" ? e : void 0, at = (e) => Be(e) ?? Be
478
475
  for (const [n, i] of t)
479
476
  o[n] = i;
480
477
  return o;
481
- }, Rn = /* @__PURE__ */ dt(io, [["__scopeId", "data-v-784930f6"]]), ct = /* @__PURE__ */ N({
478
+ }, Vn = /* @__PURE__ */ dt(io, [["__scopeId", "data-v-784930f6"]]), ct = /* @__PURE__ */ _({
482
479
  __name: "InputHighlight",
483
480
  props: {
484
481
  color: { default: "primary" },
485
- rounded: { type: Boolean, default: !1 },
486
- offset: { default: 1 }
482
+ rounded: { type: Boolean, default: !1 }
487
483
  },
488
484
  setup(e) {
489
- const t = e, o = {
490
- 1: "-top-1",
491
- 2.5: "-top-2.5"
492
- }, n = C(() => {
493
- const i = [
494
- A.beforeBgColorVariant({ color: t.color })
485
+ const t = e, o = C(() => {
486
+ const n = [
487
+ F.beforeBgColorVariant({ color: t.color })
495
488
  ];
496
- return t.rounded && i.push("rounded-b-md"), i.push(o[t.offset]), i.join(" ");
489
+ return t.rounded && n.push("rounded-b-md"), n.push("-top-1"), n.join(" ");
497
490
  });
498
- return (i, l) => (w(), S("div", {
499
- class: M(["relative h-3xs overflow-hidden before:absolute before:bottom-0 before:left-0 before:h-full before:w-0 before:transition-[width] before:duration-300 before:ease-linear peer-focus:before:w-full", n.value])
491
+ return (n, i) => (w(), S("div", {
492
+ class: M(["relative h-3xs overflow-hidden before:absolute before:bottom-0 before:left-0 before:h-full before:w-0 before:transition-[width] before:duration-300 before:ease-linear peer-focus:before:w-full", o.value])
500
493
  }, null, 2));
501
494
  }
502
- }), ao = ["id", "type", "name", "placeholder", "autocomplete", "minlength", "maxlength", "pattern", "required", "disabled", "aria-invalid", "aria-describedby"], $n = /* @__PURE__ */ N({
495
+ }), ao = ["id", "type", "name", "placeholder", "autocomplete", "minlength", "maxlength", "pattern", "required", "disabled", "aria-invalid", "aria-describedby"], $n = /* @__PURE__ */ _({
503
496
  __name: "MclInputText",
504
- props: /* @__PURE__ */ _({
497
+ props: /* @__PURE__ */ H({
505
498
  id: {},
506
499
  name: {},
507
500
  type: { default: "text" },
@@ -530,21 +523,21 @@ const Be = (e) => e !== void 0 && e !== "" ? e : void 0, at = (e) => Be(e) ?? Be
530
523
  setup(e) {
531
524
  const t = e, o = se(e, "modelValue"), n = de(t), i = Oe(t);
532
525
  return (l, a) => (w(), S("div", null, [
533
- ie(F("input", {
534
- id: s(n).id,
526
+ ie(A("input", {
527
+ id: d(n).id,
535
528
  "onUpdate:modelValue": a[0] || (a[0] = (r) => o.value = r),
536
- class: M(["peer w-full p-2xs outline-none disabled:cursor-not-allowed disabled:opacity-50", s(i)]),
529
+ class: M(["peer w-full p-2xs outline-none disabled:cursor-not-allowed disabled:opacity-50", d(i)]),
537
530
  type: e.type,
538
- name: s(n).name.value,
531
+ name: d(n).name.value,
539
532
  placeholder: e.placeholder,
540
533
  autocomplete: e.autocomplete,
541
534
  minlength: e.minLength,
542
535
  maxlength: e.maxLength,
543
536
  pattern: e.pattern,
544
- required: s(n).required.value,
545
- disabled: s(n).disabled.value,
546
- "aria-invalid": s(n).invalid.value || void 0,
547
- "aria-describedby": s(n).describedBy.value
537
+ required: d(n).required.value,
538
+ disabled: d(n).disabled.value,
539
+ "aria-invalid": d(n).invalid.value || void 0,
540
+ "aria-describedby": d(n).describedBy.value
548
541
  }, null, 10, ao), [
549
542
  [$t, o.value]
550
543
  ]),
@@ -552,21 +545,21 @@ const Be = (e) => e !== void 0 && e !== "" ? e : void 0, at = (e) => Be(e) ?? Be
552
545
  key: 0,
553
546
  color: e.highlightColor,
554
547
  rounded: e.rounded
555
- }, null, 8, ["color", "rounded"])) : R("", !0),
556
- s(n).feedbackOwnedByGroup ? R("", !0) : (w(), te(ve, {
548
+ }, null, 8, ["color", "rounded"])) : V("", !0),
549
+ d(n).feedbackOwnedByGroup ? V("", !0) : (w(), te(ve, {
557
550
  key: 1,
558
- id: s(n).errorId,
559
- invalid: s(n).invalid.value,
551
+ id: d(n).errorId,
552
+ invalid: d(n).invalid.value,
560
553
  text: e.invalidFeedback
561
554
  }, {
562
555
  default: le(() => [
563
- l.$slots["invalid-feedback"] ? q(l.$slots, "invalid-feedback", { key: 0 }) : R("", !0)
556
+ l.$slots["invalid-feedback"] ? q(l.$slots, "invalid-feedback", { key: 0 }) : V("", !0)
564
557
  ]),
565
558
  _: 3
566
559
  }, 8, ["id", "invalid", "text"]))
567
560
  ]));
568
561
  }
569
- }), Se = Math.min, ne = Math.max, Ve = Math.round, xe = Math.floor, U = (e) => ({
562
+ }), Se = Math.min, ne = Math.max, Re = Math.round, xe = Math.floor, U = (e) => ({
570
563
  x: e,
571
564
  y: e
572
565
  }), ro = {
@@ -587,7 +580,7 @@ function Ae(e, t) {
587
580
  function ae(e) {
588
581
  return e.split("-")[0];
589
582
  }
590
- function Fe(e) {
583
+ function Le(e) {
591
584
  return e.split("-")[1];
592
585
  }
593
586
  function ut(e) {
@@ -605,19 +598,19 @@ function vt(e) {
605
598
  }
606
599
  function uo(e, t, o) {
607
600
  o === void 0 && (o = !1);
608
- const n = Fe(e), i = vt(e), l = ft(i);
601
+ const n = Le(e), i = vt(e), l = ft(i);
609
602
  let a = i === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
610
- return t.reference[l] > t.floating[l] && (a = Re(a)), [a, Re(a)];
603
+ return t.reference[l] > t.floating[l] && (a = Ve(a)), [a, Ve(a)];
611
604
  }
612
605
  function fo(e) {
613
- const t = Re(e);
606
+ const t = Ve(e);
614
607
  return [Pe(e), t, Pe(t)];
615
608
  }
616
609
  function Pe(e) {
617
610
  return e.replace(/start|end/g, (t) => so[t]);
618
611
  }
619
612
  const Ke = ["left", "right"], Xe = ["right", "left"], vo = ["top", "bottom"], po = ["bottom", "top"];
620
- function ho(e, t, o) {
613
+ function mo(e, t, o) {
621
614
  switch (e) {
622
615
  case "top":
623
616
  case "bottom":
@@ -629,12 +622,12 @@ function ho(e, t, o) {
629
622
  return [];
630
623
  }
631
624
  }
632
- function mo(e, t, o, n) {
633
- const i = Fe(e);
634
- let l = ho(ae(e), o === "start", n);
625
+ function ho(e, t, o, n) {
626
+ const i = Le(e);
627
+ let l = mo(ae(e), o === "start", n);
635
628
  return i && (l = l.map((a) => a + "-" + i), t && (l = l.concat(l.map(Pe)))), l;
636
629
  }
637
- function Re(e) {
630
+ function Ve(e) {
638
631
  return e.replace(/left|right|bottom|top/g, (t) => ro[t]);
639
632
  }
640
633
  function bo(e) {
@@ -677,7 +670,7 @@ function Ye(e, t, o) {
677
670
  reference: n,
678
671
  floating: i
679
672
  } = e;
680
- const l = ee(t), a = vt(t), r = ft(a), c = ae(t), d = l === "y", u = n.x + n.width / 2 - i.width / 2, v = n.y + n.height / 2 - i.height / 2, f = n[r] / 2 - i[r] / 2;
673
+ const l = ee(t), a = vt(t), r = ft(a), c = ae(t), s = l === "y", u = n.x + n.width / 2 - i.width / 2, v = n.y + n.height / 2 - i.height / 2, f = n[r] / 2 - i[r] / 2;
681
674
  let p;
682
675
  switch (c) {
683
676
  case "top":
@@ -710,12 +703,12 @@ function Ye(e, t, o) {
710
703
  y: n.y
711
704
  };
712
705
  }
713
- switch (Fe(t)) {
706
+ switch (Le(t)) {
714
707
  case "start":
715
- p[a] -= f * (o && d ? -1 : 1);
708
+ p[a] -= f * (o && s ? -1 : 1);
716
709
  break;
717
710
  case "end":
718
- p[a] += f * (o && d ? -1 : 1);
711
+ p[a] += f * (o && s ? -1 : 1);
719
712
  break;
720
713
  }
721
714
  return p;
@@ -731,14 +724,14 @@ async function yo(e, t) {
731
724
  elements: r,
732
725
  strategy: c
733
726
  } = e, {
734
- boundary: d = "clippingAncestors",
727
+ boundary: s = "clippingAncestors",
735
728
  rootBoundary: u = "viewport",
736
729
  elementContext: v = "floating",
737
730
  altBoundary: f = !1,
738
731
  padding: p = 0
739
- } = Ae(t, e), h = go(p), g = r[f ? v === "floating" ? "reference" : "floating" : v], m = $e(await l.getClippingRect({
732
+ } = Ae(t, e), m = go(p), g = r[f ? v === "floating" ? "reference" : "floating" : v], h = $e(await l.getClippingRect({
740
733
  element: (o = await (l.isElement == null ? void 0 : l.isElement(g))) == null || o ? g : g.contextElement || await (l.getDocumentElement == null ? void 0 : l.getDocumentElement(r.floating)),
741
- boundary: d,
734
+ boundary: s,
742
735
  rootBoundary: u,
743
736
  strategy: c
744
737
  })), x = v === "floating" ? {
@@ -746,7 +739,7 @@ async function yo(e, t) {
746
739
  y: i,
747
740
  width: a.floating.width,
748
741
  height: a.floating.height
749
- } : a.reference, k = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(r.floating)), V = await (l.isElement == null ? void 0 : l.isElement(k)) ? await (l.getScale == null ? void 0 : l.getScale(k)) || {
742
+ } : a.reference, k = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(r.floating)), R = await (l.isElement == null ? void 0 : l.isElement(k)) ? await (l.getScale == null ? void 0 : l.getScale(k)) || {
750
743
  x: 1,
751
744
  y: 1
752
745
  } : {
@@ -759,10 +752,10 @@ async function yo(e, t) {
759
752
  strategy: c
760
753
  }) : x);
761
754
  return {
762
- top: (m.top - T.top + h.top) / V.y,
763
- bottom: (T.bottom - m.bottom + h.bottom) / V.y,
764
- left: (m.left - T.left + h.left) / V.x,
765
- right: (T.right - m.right + h.right) / V.x
755
+ top: (h.top - T.top + m.top) / R.y,
756
+ bottom: (T.bottom - h.bottom + m.bottom) / R.y,
757
+ left: (h.left - T.left + m.left) / R.x,
758
+ right: (T.right - h.right + m.right) / R.x
766
759
  };
767
760
  }
768
761
  const wo = async (e, t, o) => {
@@ -772,22 +765,22 @@ const wo = async (e, t, o) => {
772
765
  middleware: l = [],
773
766
  platform: a
774
767
  } = o, r = l.filter(Boolean), c = await (a.isRTL == null ? void 0 : a.isRTL(t));
775
- let d = await a.getElementRects({
768
+ let s = await a.getElementRects({
776
769
  reference: e,
777
770
  floating: t,
778
771
  strategy: i
779
772
  }), {
780
773
  x: u,
781
774
  y: v
782
- } = Ye(d, n, c), f = n, p = {}, h = 0;
775
+ } = Ye(s, n, c), f = n, p = {}, m = 0;
783
776
  for (let g = 0; g < r.length; g++) {
784
777
  var b;
785
778
  const {
786
- name: m,
779
+ name: h,
787
780
  fn: x
788
781
  } = r[g], {
789
782
  x: k,
790
- y: V,
783
+ y: R,
791
784
  data: T,
792
785
  reset: L
793
786
  } = await x({
@@ -797,7 +790,7 @@ const wo = async (e, t, o) => {
797
790
  placement: f,
798
791
  strategy: i,
799
792
  middlewareData: p,
800
- rects: d,
793
+ rects: s,
801
794
  platform: {
802
795
  ...a,
803
796
  detectOverflow: (b = a.detectOverflow) != null ? b : yo
@@ -807,20 +800,20 @@ const wo = async (e, t, o) => {
807
800
  floating: t
808
801
  }
809
802
  });
810
- u = k ?? u, v = V ?? v, p = {
803
+ u = k ?? u, v = R ?? v, p = {
811
804
  ...p,
812
- [m]: {
813
- ...p[m],
805
+ [h]: {
806
+ ...p[h],
814
807
  ...T
815
808
  }
816
- }, L && h <= 50 && (h++, typeof L == "object" && (L.placement && (f = L.placement), L.rects && (d = L.rects === !0 ? await a.getElementRects({
809
+ }, L && m <= 50 && (m++, typeof L == "object" && (L.placement && (f = L.placement), L.rects && (s = L.rects === !0 ? await a.getElementRects({
817
810
  reference: e,
818
811
  floating: t,
819
812
  strategy: i
820
813
  }) : L.rects), {
821
814
  x: u,
822
815
  y: v
823
- } = Ye(d, f, c)), g = -1);
816
+ } = Ye(s, f, c)), g = -1);
824
817
  }
825
818
  return {
826
819
  x: u,
@@ -841,31 +834,31 @@ const wo = async (e, t, o) => {
841
834
  rects: a,
842
835
  initialPlacement: r,
843
836
  platform: c,
844
- elements: d
837
+ elements: s
845
838
  } = t, {
846
839
  mainAxis: u = !0,
847
840
  crossAxis: v = !0,
848
841
  fallbackPlacements: f,
849
842
  fallbackStrategy: p = "bestFit",
850
- fallbackAxisSideDirection: h = "none",
843
+ fallbackAxisSideDirection: m = "none",
851
844
  flipAlignment: b = !0,
852
845
  ...g
853
846
  } = Ae(e, t);
854
847
  if ((o = l.arrow) != null && o.alignmentOffset)
855
848
  return {};
856
- const m = ae(i), x = ee(r), k = ae(r) === r, V = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), T = f || (k || !b ? [Re(r)] : fo(r)), L = h !== "none";
857
- !f && L && T.push(...mo(r, b, h, V));
849
+ const h = ae(i), x = ee(r), k = ae(r) === r, R = await (c.isRTL == null ? void 0 : c.isRTL(s.floating)), T = f || (k || !b ? [Ve(r)] : fo(r)), L = m !== "none";
850
+ !f && L && T.push(...ho(r, b, m, R));
858
851
  const B = [r, ...T], D = await c.detectOverflow(t, g), Y = [];
859
852
  let Z = ((n = l.flip) == null ? void 0 : n.overflows) || [];
860
- if (u && Y.push(D[m]), v) {
861
- const G = uo(i, a, V);
853
+ if (u && Y.push(D[h]), v) {
854
+ const G = uo(i, a, R);
862
855
  Y.push(D[G[0]], D[G[1]]);
863
856
  }
864
857
  if (Z = [...Z, {
865
858
  placement: i,
866
859
  overflows: Y
867
860
  }], !Y.every((G) => G <= 0)) {
868
- var ye, he;
861
+ var ye, me;
869
862
  const G = (((ye = l.flip) == null ? void 0 : ye.index) || 0) + 1, y = B[G];
870
863
  if (y && (!(v === "alignment" ? x !== ee(y) : !1) || // We leave the current main axis only if every placement on that axis
871
864
  // overflows the main axis.
@@ -879,7 +872,7 @@ const wo = async (e, t, o) => {
879
872
  placement: y
880
873
  }
881
874
  };
882
- let $ = (he = Z.filter((O) => O.overflows[0] <= 0).sort((O, E) => O.overflows[1] - E.overflows[1])[0]) == null ? void 0 : he.placement;
875
+ let $ = (me = Z.filter((O) => O.overflows[0] <= 0).sort((O, E) => O.overflows[1] - E.overflows[1])[0]) == null ? void 0 : me.placement;
883
876
  if (!$)
884
877
  switch (p) {
885
878
  case "bestFit": {
@@ -916,11 +909,11 @@ async function ko(e, t) {
916
909
  placement: o,
917
910
  platform: n,
918
911
  elements: i
919
- } = e, l = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), a = ae(o), r = Fe(o), c = ee(o) === "y", d = Co.has(a) ? -1 : 1, u = l && c ? -1 : 1, v = Ae(t, e);
912
+ } = e, l = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), a = ae(o), r = Le(o), c = ee(o) === "y", s = Co.has(a) ? -1 : 1, u = l && c ? -1 : 1, v = Ae(t, e);
920
913
  let {
921
914
  mainAxis: f,
922
915
  crossAxis: p,
923
- alignmentAxis: h
916
+ alignmentAxis: m
924
917
  } = typeof v == "number" ? {
925
918
  mainAxis: v,
926
919
  crossAxis: 0,
@@ -930,11 +923,11 @@ async function ko(e, t) {
930
923
  crossAxis: v.crossAxis || 0,
931
924
  alignmentAxis: v.alignmentAxis
932
925
  };
933
- return r && typeof h == "number" && (p = r === "end" ? h * -1 : h), c ? {
926
+ return r && typeof m == "number" && (p = r === "end" ? m * -1 : m), c ? {
934
927
  x: p * u,
935
- y: f * d
928
+ y: f * s
936
929
  } : {
937
- x: f * d,
930
+ x: f * s,
938
931
  y: p * u
939
932
  };
940
933
  }
@@ -974,34 +967,34 @@ const Bo = function(e) {
974
967
  mainAxis: a = !0,
975
968
  crossAxis: r = !1,
976
969
  limiter: c = {
977
- fn: (m) => {
970
+ fn: (h) => {
978
971
  let {
979
972
  x,
980
973
  y: k
981
- } = m;
974
+ } = h;
982
975
  return {
983
976
  x,
984
977
  y: k
985
978
  };
986
979
  }
987
980
  },
988
- ...d
981
+ ...s
989
982
  } = Ae(e, t), u = {
990
983
  x: o,
991
984
  y: n
992
- }, v = await l.detectOverflow(t, d), f = ee(ae(i)), p = ut(f);
993
- let h = u[p], b = u[f];
985
+ }, v = await l.detectOverflow(t, s), f = ee(ae(i)), p = ut(f);
986
+ let m = u[p], b = u[f];
994
987
  if (a) {
995
- const m = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right", k = h + v[m], V = h - v[x];
996
- h = Ue(k, h, V);
988
+ const h = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right", k = m + v[h], R = m - v[x];
989
+ m = Ue(k, m, R);
997
990
  }
998
991
  if (r) {
999
- const m = f === "y" ? "top" : "left", x = f === "y" ? "bottom" : "right", k = b + v[m], V = b - v[x];
1000
- b = Ue(k, b, V);
992
+ const h = f === "y" ? "top" : "left", x = f === "y" ? "bottom" : "right", k = b + v[h], R = b - v[x];
993
+ b = Ue(k, b, R);
1001
994
  }
1002
995
  const g = c.fn({
1003
996
  ...t,
1004
- [p]: h,
997
+ [p]: m,
1005
998
  [f]: b
1006
999
  });
1007
1000
  return {
@@ -1018,11 +1011,11 @@ const Bo = function(e) {
1018
1011
  }
1019
1012
  };
1020
1013
  };
1021
- function Le() {
1014
+ function Fe() {
1022
1015
  return typeof window < "u";
1023
1016
  }
1024
1017
  function ce(e) {
1025
- return He(e) ? (e.nodeName || "").toLowerCase() : "#document";
1018
+ return Ne(e) ? (e.nodeName || "").toLowerCase() : "#document";
1026
1019
  }
1027
1020
  function P(e) {
1028
1021
  var t;
@@ -1030,21 +1023,21 @@ function P(e) {
1030
1023
  }
1031
1024
  function X(e) {
1032
1025
  var t;
1033
- return (t = (He(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1026
+ return (t = (Ne(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1034
1027
  }
1035
- function He(e) {
1036
- return Le() ? e instanceof Node || e instanceof P(e).Node : !1;
1028
+ function Ne(e) {
1029
+ return Fe() ? e instanceof Node || e instanceof P(e).Node : !1;
1037
1030
  }
1038
1031
  function W(e) {
1039
- return Le() ? e instanceof Element || e instanceof P(e).Element : !1;
1032
+ return Fe() ? e instanceof Element || e instanceof P(e).Element : !1;
1040
1033
  }
1041
1034
  function K(e) {
1042
- return Le() ? e instanceof HTMLElement || e instanceof P(e).HTMLElement : !1;
1035
+ return Fe() ? e instanceof HTMLElement || e instanceof P(e).HTMLElement : !1;
1043
1036
  }
1044
1037
  function Ze(e) {
1045
- return !Le() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof P(e).ShadowRoot;
1038
+ return !Fe() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof P(e).ShadowRoot;
1046
1039
  }
1047
- const Vo = /* @__PURE__ */ new Set(["inline", "contents"]);
1040
+ const Ro = /* @__PURE__ */ new Set(["inline", "contents"]);
1048
1041
  function ge(e) {
1049
1042
  const {
1050
1043
  overflow: t,
@@ -1052,11 +1045,11 @@ function ge(e) {
1052
1045
  overflowY: n,
1053
1046
  display: i
1054
1047
  } = j(e);
1055
- return /auto|scroll|overlay|hidden|clip/.test(t + n + o) && !Vo.has(i);
1048
+ return /auto|scroll|overlay|hidden|clip/.test(t + n + o) && !Ro.has(i);
1056
1049
  }
1057
- const Ro = /* @__PURE__ */ new Set(["table", "td", "th"]);
1050
+ const Vo = /* @__PURE__ */ new Set(["table", "td", "th"]);
1058
1051
  function $o(e) {
1059
- return Ro.has(ce(e));
1052
+ return Vo.has(ce(e));
1060
1053
  }
1061
1054
  const Oo = [":popover-open", ":modal"];
1062
1055
  function Te(e) {
@@ -1068,15 +1061,15 @@ function Te(e) {
1068
1061
  }
1069
1062
  });
1070
1063
  }
1071
- const Ao = ["transform", "translate", "scale", "rotate", "perspective"], Fo = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Lo = ["paint", "layout", "strict", "content"];
1072
- function _e(e) {
1064
+ const Ao = ["transform", "translate", "scale", "rotate", "perspective"], Lo = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Fo = ["paint", "layout", "strict", "content"];
1065
+ function He(e) {
1073
1066
  const t = We(), o = W(e) ? j(e) : e;
1074
- return Ao.some((n) => o[n] ? o[n] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !t && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !t && (o.filter ? o.filter !== "none" : !1) || Fo.some((n) => (o.willChange || "").includes(n)) || Lo.some((n) => (o.contain || "").includes(n));
1067
+ return Ao.some((n) => o[n] ? o[n] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !t && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !t && (o.filter ? o.filter !== "none" : !1) || Lo.some((n) => (o.willChange || "").includes(n)) || Fo.some((n) => (o.contain || "").includes(n));
1075
1068
  }
1076
1069
  function To(e) {
1077
1070
  let t = oe(e);
1078
1071
  for (; K(t) && !pe(t); ) {
1079
- if (_e(t))
1072
+ if (He(t))
1080
1073
  return t;
1081
1074
  if (Te(t))
1082
1075
  return null;
@@ -1132,10 +1125,10 @@ function be(e, t, o) {
1132
1125
  function ze(e) {
1133
1126
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1134
1127
  }
1135
- function ht(e) {
1128
+ function mt(e) {
1136
1129
  const t = j(e);
1137
1130
  let o = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
1138
- const i = K(e), l = i ? e.offsetWidth : o, a = i ? e.offsetHeight : n, r = Ve(o) !== l || Ve(n) !== a;
1131
+ const i = K(e), l = i ? e.offsetWidth : o, a = i ? e.offsetHeight : n, r = Re(o) !== l || Re(n) !== a;
1139
1132
  return r && (o = l, n = a), {
1140
1133
  width: o,
1141
1134
  height: n,
@@ -1153,15 +1146,15 @@ function fe(e) {
1153
1146
  width: n,
1154
1147
  height: i,
1155
1148
  $: l
1156
- } = ht(t);
1157
- let a = (l ? Ve(o.width) : o.width) / n, r = (l ? Ve(o.height) : o.height) / i;
1149
+ } = mt(t);
1150
+ let a = (l ? Re(o.width) : o.width) / n, r = (l ? Re(o.height) : o.height) / i;
1158
1151
  return (!a || !Number.isFinite(a)) && (a = 1), (!r || !Number.isFinite(r)) && (r = 1), {
1159
1152
  x: a,
1160
1153
  y: r
1161
1154
  };
1162
1155
  }
1163
1156
  const Eo = /* @__PURE__ */ U(0);
1164
- function mt(e) {
1157
+ function ht(e) {
1165
1158
  const t = P(e);
1166
1159
  return !We() || !t.visualViewport ? Eo : {
1167
1160
  x: t.visualViewport.offsetLeft,
@@ -1176,21 +1169,21 @@ function re(e, t, o, n) {
1176
1169
  const i = e.getBoundingClientRect(), l = je(e);
1177
1170
  let a = U(1);
1178
1171
  t && (n ? W(n) && (a = fe(n)) : a = fe(e));
1179
- const r = Io(l, o, n) ? mt(l) : U(0);
1180
- let c = (i.left + r.x) / a.x, d = (i.top + r.y) / a.y, u = i.width / a.x, v = i.height / a.y;
1172
+ const r = Io(l, o, n) ? ht(l) : U(0);
1173
+ let c = (i.left + r.x) / a.x, s = (i.top + r.y) / a.y, u = i.width / a.x, v = i.height / a.y;
1181
1174
  if (l) {
1182
1175
  const f = P(l), p = n && W(n) ? P(n) : n;
1183
- let h = f, b = ze(h);
1184
- for (; b && n && p !== h; ) {
1185
- const g = fe(b), m = b.getBoundingClientRect(), x = j(b), k = m.left + (b.clientLeft + parseFloat(x.paddingLeft)) * g.x, V = m.top + (b.clientTop + parseFloat(x.paddingTop)) * g.y;
1186
- c *= g.x, d *= g.y, u *= g.x, v *= g.y, c += k, d += V, h = P(b), b = ze(h);
1176
+ let m = f, b = ze(m);
1177
+ for (; b && n && p !== m; ) {
1178
+ const g = fe(b), h = b.getBoundingClientRect(), x = j(b), k = h.left + (b.clientLeft + parseFloat(x.paddingLeft)) * g.x, R = h.top + (b.clientTop + parseFloat(x.paddingTop)) * g.y;
1179
+ c *= g.x, s *= g.y, u *= g.x, v *= g.y, c += k, s += R, m = P(b), b = ze(m);
1187
1180
  }
1188
1181
  }
1189
1182
  return $e({
1190
1183
  width: u,
1191
1184
  height: v,
1192
1185
  x: c,
1193
- y: d
1186
+ y: s
1194
1187
  });
1195
1188
  }
1196
1189
  function Ee(e, t) {
@@ -1217,18 +1210,18 @@ function Do(e) {
1217
1210
  let c = {
1218
1211
  scrollLeft: 0,
1219
1212
  scrollTop: 0
1220
- }, d = U(1);
1213
+ }, s = U(1);
1221
1214
  const u = U(0), v = K(n);
1222
1215
  if ((v || !v && !l) && ((ce(n) !== "body" || ge(a)) && (c = Me(n)), K(n))) {
1223
1216
  const p = re(n);
1224
- d = fe(n), u.x = p.x + n.clientLeft, u.y = p.y + n.clientTop;
1217
+ s = fe(n), u.x = p.x + n.clientLeft, u.y = p.y + n.clientTop;
1225
1218
  }
1226
1219
  const f = a && !v && !l ? bt(a, c) : U(0);
1227
1220
  return {
1228
- width: o.width * d.x,
1229
- height: o.height * d.y,
1230
- x: o.x * d.x - c.scrollLeft * d.x + u.x + f.x,
1231
- y: o.y * d.y - c.scrollTop * d.y + u.y + f.y
1221
+ width: o.width * s.x,
1222
+ height: o.height * s.y,
1223
+ x: o.x * s.x - c.scrollLeft * s.x + u.x + f.x,
1224
+ y: o.y * s.y - c.scrollTop * s.y + u.y + f.y
1232
1225
  };
1233
1226
  }
1234
1227
  function qo(e) {
@@ -1254,11 +1247,11 @@ function zo(e, t) {
1254
1247
  const u = We();
1255
1248
  (!u || u && t === "fixed") && (r = i.offsetLeft, c = i.offsetTop);
1256
1249
  }
1257
- const d = Ee(n);
1258
- if (d <= 0) {
1259
- const u = n.ownerDocument, v = u.body, f = getComputedStyle(v), p = u.compatMode === "CSS1Compat" && parseFloat(f.marginLeft) + parseFloat(f.marginRight) || 0, h = Math.abs(n.clientWidth - v.clientWidth - p);
1260
- h <= Je && (l -= h);
1261
- } else d <= Je && (l += d);
1250
+ const s = Ee(n);
1251
+ if (s <= 0) {
1252
+ const u = n.ownerDocument, v = u.body, f = getComputedStyle(v), p = u.compatMode === "CSS1Compat" && parseFloat(f.marginLeft) + parseFloat(f.marginRight) || 0, m = Math.abs(n.clientWidth - v.clientWidth - p);
1253
+ m <= Je && (l -= m);
1254
+ } else s <= Je && (l += s);
1262
1255
  return {
1263
1256
  width: l,
1264
1257
  height: a,
@@ -1266,14 +1259,14 @@ function zo(e, t) {
1266
1259
  y: c
1267
1260
  };
1268
1261
  }
1269
- const No = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1270
- function Ho(e, t) {
1271
- const o = re(e, !0, t === "fixed"), n = o.top + e.clientTop, i = o.left + e.clientLeft, l = K(e) ? fe(e) : U(1), a = e.clientWidth * l.x, r = e.clientHeight * l.y, c = i * l.x, d = n * l.y;
1262
+ const _o = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1263
+ function No(e, t) {
1264
+ const o = re(e, !0, t === "fixed"), n = o.top + e.clientTop, i = o.left + e.clientLeft, l = K(e) ? fe(e) : U(1), a = e.clientWidth * l.x, r = e.clientHeight * l.y, c = i * l.x, s = n * l.y;
1272
1265
  return {
1273
1266
  width: a,
1274
1267
  height: r,
1275
1268
  x: c,
1276
- y: d
1269
+ y: s
1277
1270
  };
1278
1271
  }
1279
1272
  function Qe(e, t, o) {
@@ -1283,9 +1276,9 @@ function Qe(e, t, o) {
1283
1276
  else if (t === "document")
1284
1277
  n = Po(X(e));
1285
1278
  else if (W(t))
1286
- n = Ho(t, o);
1279
+ n = No(t, o);
1287
1280
  else {
1288
- const i = mt(e);
1281
+ const i = ht(e);
1289
1282
  n = {
1290
1283
  x: t.x - i.x,
1291
1284
  y: t.y - i.y,
@@ -1299,7 +1292,7 @@ function gt(e, t) {
1299
1292
  const o = oe(e);
1300
1293
  return o === t || !W(o) || pe(o) ? !1 : j(o).position === "fixed" || gt(o, t);
1301
1294
  }
1302
- function _o(e, t) {
1295
+ function Ho(e, t) {
1303
1296
  const o = t.get(e);
1304
1297
  if (o)
1305
1298
  return o;
@@ -1307,8 +1300,8 @@ function _o(e, t) {
1307
1300
  const l = j(e).position === "fixed";
1308
1301
  let a = l ? oe(e) : e;
1309
1302
  for (; W(a) && !pe(a); ) {
1310
- const r = j(a), c = _e(a);
1311
- !c && r.position === "fixed" && (i = null), (l ? !c && !i : !c && r.position === "static" && !!i && No.has(i.position) || ge(a) && !c && gt(e, a)) ? n = n.filter((u) => u !== a) : i = r, a = oe(a);
1303
+ const r = j(a), c = He(a);
1304
+ !c && r.position === "fixed" && (i = null), (l ? !c && !i : !c && r.position === "static" && !!i && _o.has(i.position) || ge(a) && !c && gt(e, a)) ? n = n.filter((u) => u !== a) : i = r, a = oe(a);
1312
1305
  }
1313
1306
  return t.set(e, n), n;
1314
1307
  }
@@ -1319,9 +1312,9 @@ function Wo(e) {
1319
1312
  rootBoundary: n,
1320
1313
  strategy: i
1321
1314
  } = e;
1322
- const a = [...o === "clippingAncestors" ? Te(t) ? [] : _o(t, this._c) : [].concat(o), n], r = a[0], c = a.reduce((d, u) => {
1315
+ const a = [...o === "clippingAncestors" ? Te(t) ? [] : Ho(t, this._c) : [].concat(o), n], r = a[0], c = a.reduce((s, u) => {
1323
1316
  const v = Qe(t, u, i);
1324
- return d.top = ne(v.top, d.top), d.right = Se(v.right, d.right), d.bottom = Se(v.bottom, d.bottom), d.left = ne(v.left, d.left), d;
1317
+ return s.top = ne(v.top, s.top), s.right = Se(v.right, s.right), s.bottom = Se(v.bottom, s.bottom), s.left = ne(v.left, s.left), s;
1325
1318
  }, Qe(t, r, i));
1326
1319
  return {
1327
1320
  width: c.right - c.left,
@@ -1334,7 +1327,7 @@ function jo(e) {
1334
1327
  const {
1335
1328
  width: t,
1336
1329
  height: o
1337
- } = ht(e);
1330
+ } = mt(e);
1338
1331
  return {
1339
1332
  width: t,
1340
1333
  height: o
@@ -1347,15 +1340,15 @@ function Go(e, t, o) {
1347
1340
  scrollTop: 0
1348
1341
  };
1349
1342
  const c = U(0);
1350
- function d() {
1343
+ function s() {
1351
1344
  c.x = Ee(i);
1352
1345
  }
1353
1346
  if (n || !n && !l)
1354
1347
  if ((ce(t) !== "body" || ge(i)) && (r = Me(t)), n) {
1355
1348
  const p = re(t, !0, l, t);
1356
1349
  c.x = p.x + t.clientLeft, c.y = p.y + t.clientTop;
1357
- } else i && d();
1358
- l && !n && i && d();
1350
+ } else i && s();
1351
+ l && !n && i && s();
1359
1352
  const u = i && !n && !l ? bt(i, r) : U(0), v = a.left + r.scrollLeft - c.x - u.x, f = a.top + r.scrollTop - c.y - u.y;
1360
1353
  return {
1361
1354
  x: v,
@@ -1391,7 +1384,7 @@ function yt(e, t) {
1391
1384
  let n = et(e, t);
1392
1385
  for (; n && $o(n) && Ie(n); )
1393
1386
  n = et(n, t);
1394
- return n && pe(n) && Ie(n) && !_e(n) ? o : n || To(e) || o;
1387
+ return n && pe(n) && Ie(n) && !He(n) ? o : n || To(e) || o;
1395
1388
  }
1396
1389
  const Uo = async function(e) {
1397
1390
  const t = this.getOffsetParent || yt, o = this.getDimensions, n = await o(e.floating);
@@ -1432,29 +1425,29 @@ function Yo(e, t) {
1432
1425
  }
1433
1426
  function a(r, c) {
1434
1427
  r === void 0 && (r = !1), c === void 0 && (c = 1), l();
1435
- const d = e.getBoundingClientRect(), {
1428
+ const s = e.getBoundingClientRect(), {
1436
1429
  left: u,
1437
1430
  top: v,
1438
1431
  width: f,
1439
1432
  height: p
1440
- } = d;
1433
+ } = s;
1441
1434
  if (r || t(), !f || !p)
1442
1435
  return;
1443
- const h = xe(v), b = xe(i.clientWidth - (u + f)), g = xe(i.clientHeight - (v + p)), m = xe(u), k = {
1444
- rootMargin: -h + "px " + -b + "px " + -g + "px " + -m + "px",
1436
+ const m = xe(v), b = xe(i.clientWidth - (u + f)), g = xe(i.clientHeight - (v + p)), h = xe(u), k = {
1437
+ rootMargin: -m + "px " + -b + "px " + -g + "px " + -h + "px",
1445
1438
  threshold: ne(0, Se(1, c)) || 1
1446
1439
  };
1447
- let V = !0;
1440
+ let R = !0;
1448
1441
  function T(L) {
1449
1442
  const B = L[0].intersectionRatio;
1450
1443
  if (B !== c) {
1451
- if (!V)
1444
+ if (!R)
1452
1445
  return a();
1453
1446
  B ? a(!1, B) : n = setTimeout(() => {
1454
1447
  a(!1, 1e-7);
1455
1448
  }, 1e3);
1456
1449
  }
1457
- B === 1 && !wt(d, e.getBoundingClientRect()) && a(), V = !1;
1450
+ B === 1 && !wt(s, e.getBoundingClientRect()) && a(), R = !1;
1458
1451
  }
1459
1452
  try {
1460
1453
  o = new IntersectionObserver(T, {
@@ -1477,32 +1470,32 @@ function Zo(e, t, o, n) {
1477
1470
  elementResize: a = typeof ResizeObserver == "function",
1478
1471
  layoutShift: r = typeof IntersectionObserver == "function",
1479
1472
  animationFrame: c = !1
1480
- } = n, d = je(e), u = i || l ? [...d ? be(d) : [], ...be(t)] : [];
1481
- u.forEach((m) => {
1482
- i && m.addEventListener("scroll", o, {
1473
+ } = n, s = je(e), u = i || l ? [...s ? be(s) : [], ...be(t)] : [];
1474
+ u.forEach((h) => {
1475
+ i && h.addEventListener("scroll", o, {
1483
1476
  passive: !0
1484
- }), l && m.addEventListener("resize", o);
1477
+ }), l && h.addEventListener("resize", o);
1485
1478
  });
1486
- const v = d && r ? Yo(d, o) : null;
1479
+ const v = s && r ? Yo(s, o) : null;
1487
1480
  let f = -1, p = null;
1488
- a && (p = new ResizeObserver((m) => {
1489
- let [x] = m;
1490
- x && x.target === d && p && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
1481
+ a && (p = new ResizeObserver((h) => {
1482
+ let [x] = h;
1483
+ x && x.target === s && p && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
1491
1484
  var k;
1492
1485
  (k = p) == null || k.observe(t);
1493
1486
  })), o();
1494
- }), d && !c && p.observe(d), p.observe(t));
1495
- let h, b = c ? re(e) : null;
1487
+ }), s && !c && p.observe(s), p.observe(t));
1488
+ let m, b = c ? re(e) : null;
1496
1489
  c && g();
1497
1490
  function g() {
1498
- const m = re(e);
1499
- b && !wt(b, m) && o(), b = m, h = requestAnimationFrame(g);
1491
+ const h = re(e);
1492
+ b && !wt(b, h) && o(), b = h, m = requestAnimationFrame(g);
1500
1493
  }
1501
1494
  return o(), () => {
1502
- var m;
1495
+ var h;
1503
1496
  u.forEach((x) => {
1504
1497
  i && x.removeEventListener("scroll", o), l && x.removeEventListener("resize", o);
1505
- }), v?.(), (m = p) == null || m.disconnect(), p = null, c && cancelAnimationFrame(h);
1498
+ }), v?.(), (h = p) == null || h.disconnect(), p = null, c && cancelAnimationFrame(m);
1506
1499
  };
1507
1500
  }
1508
1501
  const Jo = Bo, Qo = So, en = xo, tn = (e, t, o) => {
@@ -1524,12 +1517,12 @@ function on(e) {
1524
1517
  function tt(e) {
1525
1518
  if (on(e)) {
1526
1519
  const t = e.$el;
1527
- return He(t) && ce(t) === "#comment" ? null : t;
1520
+ return Ne(t) && ce(t) === "#comment" ? null : t;
1528
1521
  }
1529
1522
  return e;
1530
1523
  }
1531
- function me(e) {
1532
- return typeof e == "function" ? e() : s(e);
1524
+ function he(e) {
1525
+ return typeof e == "function" ? e() : d(e);
1533
1526
  }
1534
1527
  function xt(e) {
1535
1528
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
@@ -1542,17 +1535,17 @@ function nn(e, t, o) {
1542
1535
  o === void 0 && (o = {});
1543
1536
  const n = o.whileElementsMounted, i = C(() => {
1544
1537
  var B;
1545
- return (B = me(o.open)) != null ? B : !0;
1546
- }), l = C(() => me(o.middleware)), a = C(() => {
1538
+ return (B = he(o.open)) != null ? B : !0;
1539
+ }), l = C(() => he(o.middleware)), a = C(() => {
1547
1540
  var B;
1548
- return (B = me(o.placement)) != null ? B : "bottom";
1541
+ return (B = he(o.placement)) != null ? B : "bottom";
1549
1542
  }), r = C(() => {
1550
1543
  var B;
1551
- return (B = me(o.strategy)) != null ? B : "absolute";
1544
+ return (B = he(o.strategy)) != null ? B : "absolute";
1552
1545
  }), c = C(() => {
1553
1546
  var B;
1554
- return (B = me(o.transform)) != null ? B : !0;
1555
- }), d = C(() => tt(e.value)), u = C(() => tt(t.value)), v = I(0), f = I(0), p = I(r.value), h = I(a.value), b = Ot({}), g = I(!1), m = C(() => {
1547
+ return (B = he(o.transform)) != null ? B : !0;
1548
+ }), s = C(() => tt(e.value)), u = C(() => tt(t.value)), v = I(0), f = I(0), p = I(r.value), m = I(a.value), b = Ot({}), g = I(!1), h = C(() => {
1556
1549
  const B = {
1557
1550
  position: p.value,
1558
1551
  left: "0",
@@ -1575,27 +1568,27 @@ function nn(e, t, o) {
1575
1568
  });
1576
1569
  let x;
1577
1570
  function k() {
1578
- if (d.value == null || u.value == null)
1571
+ if (s.value == null || u.value == null)
1579
1572
  return;
1580
1573
  const B = i.value;
1581
- tn(d.value, u.value, {
1574
+ tn(s.value, u.value, {
1582
1575
  middleware: l.value,
1583
1576
  placement: a.value,
1584
1577
  strategy: r.value
1585
1578
  }).then((D) => {
1586
- v.value = D.x, f.value = D.y, p.value = D.strategy, h.value = D.placement, b.value = D.middlewareData, g.value = B !== !1;
1579
+ v.value = D.x, f.value = D.y, p.value = D.strategy, m.value = D.placement, b.value = D.middlewareData, g.value = B !== !1;
1587
1580
  });
1588
1581
  }
1589
- function V() {
1582
+ function R() {
1590
1583
  typeof x == "function" && (x(), x = void 0);
1591
1584
  }
1592
1585
  function T() {
1593
- if (V(), n === void 0) {
1586
+ if (R(), n === void 0) {
1594
1587
  k();
1595
1588
  return;
1596
1589
  }
1597
- if (d.value != null && u.value != null) {
1598
- x = n(d.value, u.value, k);
1590
+ if (s.value != null && u.value != null) {
1591
+ x = n(s.value, u.value, k);
1599
1592
  return;
1600
1593
  }
1601
1594
  }
@@ -1604,22 +1597,22 @@ function nn(e, t, o) {
1604
1597
  }
1605
1598
  return J([l, a, r, i], k, {
1606
1599
  flush: "sync"
1607
- }), J([d, u], T, {
1600
+ }), J([s, u], T, {
1608
1601
  flush: "sync"
1609
1602
  }), J(i, L, {
1610
1603
  flush: "sync"
1611
- }), At() && Ft(V), {
1604
+ }), At() && Lt(R), {
1612
1605
  x: ue(v),
1613
1606
  y: ue(f),
1614
1607
  strategy: ue(p),
1615
- placement: ue(h),
1608
+ placement: ue(m),
1616
1609
  middlewareData: ue(b),
1617
1610
  isPositioned: ue(g),
1618
- floatingStyles: m,
1611
+ floatingStyles: h,
1619
1612
  update: k
1620
1613
  };
1621
1614
  }
1622
- const ln = /* @__PURE__ */ N({
1615
+ const ln = /* @__PURE__ */ _({
1623
1616
  __name: "CaretDown",
1624
1617
  props: {
1625
1618
  color: { default: "dark-4" },
@@ -1627,7 +1620,7 @@ const ln = /* @__PURE__ */ N({
1627
1620
  },
1628
1621
  setup(e) {
1629
1622
  const t = e, o = C(
1630
- () => [A.svgFillColorVariant({ color: t.color }), t.className].filter(Boolean).join(" ")
1623
+ () => [F.svgFillColorVariant({ color: t.color }), t.className].filter(Boolean).join(" ")
1631
1624
  );
1632
1625
  return (n, i) => (w(), S("svg", {
1633
1626
  xmlns: "http://www.w3.org/2000/svg",
@@ -1636,18 +1629,18 @@ const ln = /* @__PURE__ */ N({
1636
1629
  focusable: "false",
1637
1630
  class: M(o.value)
1638
1631
  }, [...i[0] || (i[0] = [
1639
- F("path", { d: "M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z" }, null, -1)
1632
+ A("path", { d: "M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z" }, null, -1)
1640
1633
  ])], 2));
1641
1634
  }
1642
1635
  }), an = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ke = (e) => typeof e == "string" ? e : e.text, De = (e) => typeof e == "string" ? e : e.value, rn = (e, t) => C(() => {
1643
- const o = H(e), n = H(t);
1636
+ const o = N(e), n = N(t);
1644
1637
  if (n === "")
1645
1638
  return o;
1646
1639
  const i = new RegExp(an(n), "i");
1647
1640
  return o.filter((l) => i.test(ke(l)));
1648
1641
  }), sn = (e) => {
1649
1642
  const { isOpen: t, activeIndex: o, onSelect: n, onClear: i, onActiveChange: l } = e, a = (u) => {
1650
- const v = H(e.optionCount);
1643
+ const v = N(e.optionCount);
1651
1644
  if (v <= 0) {
1652
1645
  o.value = -1;
1653
1646
  return;
@@ -1672,7 +1665,7 @@ const ln = /* @__PURE__ */ N({
1672
1665
  return;
1673
1666
  }
1674
1667
  a(
1675
- o.value < 0 ? H(e.optionCount) - 1 : o.value - 1
1668
+ o.value < 0 ? N(e.optionCount) - 1 : o.value - 1
1676
1669
  );
1677
1670
  return;
1678
1671
  case "Home":
@@ -1681,7 +1674,7 @@ const ln = /* @__PURE__ */ N({
1681
1674
  return;
1682
1675
  case "End":
1683
1676
  if (!t.value) return;
1684
- u.preventDefault(), a(H(e.optionCount) - 1);
1677
+ u.preventDefault(), a(N(e.optionCount) - 1);
1685
1678
  return;
1686
1679
  case "Enter":
1687
1680
  if (!t.value || o.value < 0) return;
@@ -1700,13 +1693,13 @@ const ln = /* @__PURE__ */ N({
1700
1693
  default:
1701
1694
  return;
1702
1695
  }
1703
- }, d = C(
1704
- () => t.value && o.value >= 0 ? `${H(e.idPrefix)}-option-${o.value}` : void 0
1696
+ }, s = C(
1697
+ () => t.value && o.value >= 0 ? `${N(e.idPrefix)}-option-${o.value}` : void 0
1705
1698
  );
1706
- return { onKeydown: c, activeDescendantId: d };
1707
- }, dn = ["id", "placeholder", "disabled", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-required", "aria-invalid", "aria-describedby"], cn = ["disabled"], un = ["disabled"], fn = ["id"], vn = ["id", "aria-selected", "onClick", "onMouseenter"], pn = ["id"], hn = ["name", "value"], mn = /* @__PURE__ */ N({
1699
+ return { onKeydown: c, activeDescendantId: s };
1700
+ }, dn = ["id", "placeholder", "disabled", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-required", "aria-invalid", "aria-describedby"], cn = ["disabled"], un = ["disabled"], fn = ["id"], vn = ["id", "aria-selected", "onClick", "onMouseenter"], pn = ["id"], mn = ["name", "value"], hn = /* @__PURE__ */ _({
1708
1701
  __name: "MclSelect",
1709
- props: /* @__PURE__ */ _({
1702
+ props: /* @__PURE__ */ H({
1710
1703
  options: {},
1711
1704
  id: {},
1712
1705
  name: {},
@@ -1730,22 +1723,22 @@ const ln = /* @__PURE__ */ N({
1730
1723
  modelValue: { default: null },
1731
1724
  modelModifiers: {}
1732
1725
  }),
1733
- emits: /* @__PURE__ */ _(["open", "close", "clear", "changed", "select"], ["update:modelValue"]),
1726
+ emits: /* @__PURE__ */ H(["open", "close", "clear", "changed", "select"], ["update:modelValue"]),
1734
1727
  setup(e, { emit: t }) {
1735
- const o = e, n = se(e, "modelValue"), i = t, l = de(o), a = Oe(o), r = I(), c = I(), d = I(), u = I([]), v = I(), f = I(!1), p = I(-1), h = (y) => {
1728
+ const o = e, n = se(e, "modelValue"), i = t, l = de(o), a = Oe(o), r = I(), c = I(), s = I(), u = I([]), v = I(), f = I(!1), p = I(-1), m = (y) => {
1736
1729
  if (y === null || y === "") return "";
1737
1730
  const $ = o.options.find(
1738
1731
  (O) => De(O) === y
1739
1732
  );
1740
1733
  return $ ? ke($) : String(y);
1741
- }, b = I(h(n.value)), g = I(!1), m = rn(
1734
+ }, b = I(m(n.value)), g = I(!1), h = rn(
1742
1735
  () => o.options,
1743
1736
  () => g.value ? b.value : ""
1744
1737
  ), x = (y, $) => {
1745
1738
  u.value[$] = y;
1746
1739
  }, k = (y) => {
1747
1740
  u.value[y]?.scrollIntoView?.({ block: "nearest" });
1748
- }, V = () => {
1741
+ }, R = () => {
1749
1742
  f.value || (f.value = !0, g.value = !1, p.value = -1);
1750
1743
  }, T = () => {
1751
1744
  f.value = !1, p.value = -1;
@@ -1758,10 +1751,10 @@ const ln = /* @__PURE__ */ N({
1758
1751
  }, { onKeydown: D, activeDescendantId: Y } = sn({
1759
1752
  isOpen: f,
1760
1753
  activeIndex: p,
1761
- optionCount: () => m.value.length,
1754
+ optionCount: () => h.value.length,
1762
1755
  idPrefix: () => l.id,
1763
1756
  onSelect: (y) => {
1764
- const $ = m.value[y];
1757
+ const $ = h.value[y];
1765
1758
  $ !== void 0 && L($);
1766
1759
  },
1767
1760
  onClear: B,
@@ -1771,19 +1764,19 @@ const ln = /* @__PURE__ */ N({
1771
1764
  T();
1772
1765
  return;
1773
1766
  }
1774
- V(), c.value?.focus();
1767
+ R(), c.value?.focus();
1775
1768
  }, ye = C(() => {
1776
1769
  const y = [
1777
- A.beforeBgColorVariant({ color: o.highlightColor })
1770
+ F.beforeBgColorVariant({ color: o.highlightColor })
1778
1771
  ];
1779
1772
  return o.rounded && y.push("rounded-b-md"), y.join(" ");
1780
- }), he = C(() => {
1773
+ }), me = C(() => {
1781
1774
  const y = [
1782
- A.bgColorVariant({ color: o.bgColor }),
1783
- A.borderColorVariant({ color: o.borderColor })
1775
+ F.bgColorVariant({ color: o.bgColor }),
1776
+ F.borderColorVariant({ color: o.borderColor })
1784
1777
  ];
1785
1778
  return o.showHighlight || y.push("mt-2xs"), o.rounded && y.push("rounded-md"), y.join(" ");
1786
- }), we = (y) => n.value !== null && n.value !== "" && De(y) === n.value, { floatingStyles: G } = nn(r, d, {
1779
+ }), we = (y) => n.value !== null && n.value !== "" && De(y) === n.value, { floatingStyles: G } = nn(r, s, {
1787
1780
  whileElementsMounted: Zo,
1788
1781
  strategy: "absolute",
1789
1782
  open: f,
@@ -1793,14 +1786,14 @@ const ln = /* @__PURE__ */ N({
1793
1786
  });
1794
1787
  return It(r, () => {
1795
1788
  r.value && (v.value = r.value.clientWidth);
1796
- }), J(m, () => {
1789
+ }), J(h, () => {
1797
1790
  p.value = -1;
1798
1791
  }), J(f, (y) => {
1799
1792
  if (y) {
1800
1793
  i("open");
1801
1794
  return;
1802
1795
  }
1803
- g.value && (b.value = h(n.value), g.value = !1), i("close");
1796
+ g.value && (b.value = m(n.value), g.value = !1), i("close");
1804
1797
  }), J(
1805
1798
  () => l.disabled.value,
1806
1799
  (y) => {
@@ -1809,23 +1802,20 @@ const ln = /* @__PURE__ */ N({
1809
1802
  ), J(
1810
1803
  () => o.options,
1811
1804
  () => {
1812
- g.value || (b.value = h(n.value));
1805
+ g.value || (b.value = m(n.value));
1813
1806
  }
1814
1807
  ), J(n, (y) => {
1815
- b.value = h(y), g.value = !1, y !== null && i("changed", y);
1808
+ b.value = m(y), g.value = !1, y !== null && i("changed", y);
1816
1809
  }), (y, $) => ie((w(), S("div", {
1817
1810
  ref_key: "rootRef",
1818
1811
  ref: r,
1819
1812
  class: "relative"
1820
1813
  }, [
1821
- F("div", {
1822
- class: M(["relative flex gap-3xs p-2xs", [
1823
- s(a),
1824
- !e.showHighlight && f.value && s(A).ringColorVariant({ color: e.borderColor }) + " ring-4"
1825
- ]])
1814
+ A("div", {
1815
+ class: M(["relative flex gap-3xs p-2xs has-[input:focus-visible]:mcl-focus-ring", d(a)])
1826
1816
  }, [
1827
- ie(F("input", {
1828
- id: s(l).id,
1817
+ ie(A("input", {
1818
+ id: d(l).id,
1829
1819
  ref_key: "inputRef",
1830
1820
  ref: c,
1831
1821
  "onUpdate:modelValue": $[0] || ($[0] = (O) => b.value = O),
@@ -1834,18 +1824,18 @@ const ln = /* @__PURE__ */ N({
1834
1824
  autocomplete: "off",
1835
1825
  class: "w-full bg-transparent outline-none disabled:cursor-not-allowed",
1836
1826
  placeholder: e.placeholder,
1837
- disabled: s(l).disabled.value,
1827
+ disabled: d(l).disabled.value,
1838
1828
  "aria-autocomplete": "list",
1839
1829
  "aria-expanded": f.value,
1840
- "aria-controls": `${s(l).id}-listbox`,
1841
- "aria-activedescendant": s(Y),
1842
- "aria-required": s(l).required.value || void 0,
1843
- "aria-invalid": s(l).invalid.value || void 0,
1844
- "aria-describedby": s(l).describedBy.value,
1845
- onFocus: V,
1830
+ "aria-controls": `${d(l).id}-listbox`,
1831
+ "aria-activedescendant": d(Y),
1832
+ "aria-required": d(l).required.value || void 0,
1833
+ "aria-invalid": d(l).invalid.value || void 0,
1834
+ "aria-describedby": d(l).describedBy.value,
1835
+ onFocus: R,
1846
1836
  onInput: $[1] || ($[1] = (O) => g.value = !0),
1847
1837
  onKeydown: $[2] || ($[2] = //@ts-ignore
1848
- (...O) => s(D) && s(D)(...O))
1838
+ (...O) => d(D) && d(D)(...O))
1849
1839
  }, null, 40, dn), [
1850
1840
  [lt, b.value]
1851
1841
  ]),
@@ -1854,22 +1844,22 @@ const ln = /* @__PURE__ */ N({
1854
1844
  "data-mcl": "clear",
1855
1845
  type: "button",
1856
1846
  "aria-label": "Clear selection",
1857
- class: "flex items-center px-3xs",
1858
- disabled: s(l).disabled.value,
1847
+ class: "flex items-center px-3xs focus-visible:mcl-focus-ring",
1848
+ disabled: d(l).disabled.value,
1859
1849
  onClick: B
1860
1850
  }, [
1861
1851
  Ce(st, {
1862
1852
  color: e.iconColor,
1863
1853
  "class-name": "h-xs opacity-70"
1864
1854
  }, null, 8, ["color"])
1865
- ], 8, cn)) : R("", !0),
1866
- F("button", {
1855
+ ], 8, cn)) : V("", !0),
1856
+ A("button", {
1867
1857
  "data-mcl": "caret",
1868
1858
  type: "button",
1869
1859
  tabindex: "-1",
1870
1860
  "aria-label": "Toggle options",
1871
1861
  class: "flex items-center px-3xs",
1872
- disabled: s(l).disabled.value,
1862
+ disabled: d(l).disabled.value,
1873
1863
  onClick: Z
1874
1864
  }, [
1875
1865
  Ce(ln, {
@@ -1881,81 +1871,81 @@ const ln = /* @__PURE__ */ N({
1881
1871
  e.showHighlight ? (w(), S("div", {
1882
1872
  key: 0,
1883
1873
  class: M(["relative -top-1 h-3xs overflow-hidden before:absolute before:bottom-0 before:left-0 before:h-full before:transition-[width] before:duration-300 before:ease-linear", [f.value ? "before:w-full" : "before:w-0", ye.value]])
1884
- }, null, 2)) : R("", !0),
1885
- Ce(Lt, { name: "options" }, {
1874
+ }, null, 2)) : V("", !0),
1875
+ Ce(Ft, { name: "options" }, {
1886
1876
  default: le(() => [
1887
- f.value && s(m).length > 0 ? (w(), S("ul", {
1877
+ f.value && d(h).length > 0 ? (w(), S("ul", {
1888
1878
  key: 0,
1889
- id: `${s(l).id}-listbox`,
1879
+ id: `${d(l).id}-listbox`,
1890
1880
  ref_key: "dropdownRef",
1891
- ref: d,
1881
+ ref: s,
1892
1882
  role: "listbox",
1893
- class: M(["max-h-[12.5rem] overflow-y-auto border-2", he.value]),
1894
- style: qe({ width: `${v.value}px`, ...s(G) })
1883
+ class: M(["max-h-[12.5rem] overflow-y-auto border-2", me.value]),
1884
+ style: qe({ width: `${v.value}px`, ...d(G) })
1895
1885
  }, [
1896
1886
  q(y.$slots, "dropdown", {
1897
- options: s(m),
1887
+ options: d(h),
1898
1888
  activeIndex: p.value,
1899
1889
  optionClick: L,
1900
1890
  setRef: x,
1901
1891
  hover: (O) => p.value = O,
1902
- optionId: (O) => `${s(l).id}-option-${O}`
1892
+ optionId: (O) => `${d(l).id}-option-${O}`
1903
1893
  }, () => [
1904
- (w(!0), S(Tt, null, Mt(s(m), (O, E) => (w(), S("li", {
1905
- id: `${s(l).id}-option-${E}`,
1894
+ (w(!0), S(Tt, null, Mt(d(h), (O, E) => (w(), S("li", {
1895
+ id: `${d(l).id}-option-${E}`,
1906
1896
  key: E,
1907
1897
  ref_for: !0,
1908
1898
  ref: (z) => x(z, E),
1909
1899
  role: "option",
1910
1900
  class: M(["cursor-pointer p-2xs", [
1911
- p.value === E && s(A).bgColorVariant({ color: e.optionHoverColor })
1901
+ p.value === E && d(F).bgColorVariant({ color: e.optionHoverColor })
1912
1902
  ]]),
1913
1903
  "aria-selected": we(O),
1914
1904
  onClick: (z) => L(O),
1915
1905
  onMouseenter: (z) => p.value = E
1916
- }, Q(s(ke)(O)), 43, vn))), 128))
1906
+ }, Q(d(ke)(O)), 43, vn))), 128))
1917
1907
  ], !0)
1918
- ], 14, fn)) : R("", !0)
1908
+ ], 14, fn)) : V("", !0)
1919
1909
  ]),
1920
1910
  _: 3
1921
1911
  }),
1922
- f.value && s(m).length === 0 ? (w(), S("div", {
1912
+ f.value && d(h).length === 0 ? (w(), S("div", {
1923
1913
  key: 1,
1924
- id: `${s(l).id}-listbox`,
1914
+ id: `${d(l).id}-listbox`,
1925
1915
  ref_key: "dropdownRef",
1926
- ref: d,
1916
+ ref: s,
1927
1917
  role: "status",
1928
- class: M(["border-2 p-2xs", he.value]),
1929
- style: qe({ width: `${v.value}px`, ...s(G) })
1918
+ class: M(["border-2 p-2xs", me.value]),
1919
+ style: qe({ width: `${v.value}px`, ...d(G) })
1930
1920
  }, [
1931
1921
  q(y.$slots, "no-match", {}, () => [
1932
- F("span", null, Q(e.noMatchText), 1)
1922
+ A("span", null, Q(e.noMatchText), 1)
1933
1923
  ], !0)
1934
- ], 14, pn)) : R("", !0),
1935
- s(l).name.value ? (w(), S("input", {
1924
+ ], 14, pn)) : V("", !0),
1925
+ d(l).name.value ? (w(), S("input", {
1936
1926
  key: 2,
1937
1927
  type: "hidden",
1938
- name: s(l).name.value,
1928
+ name: d(l).name.value,
1939
1929
  value: n.value ?? ""
1940
- }, null, 8, hn)) : R("", !0),
1941
- s(l).feedbackOwnedByGroup ? R("", !0) : (w(), te(ve, {
1930
+ }, null, 8, mn)) : V("", !0),
1931
+ d(l).feedbackOwnedByGroup ? V("", !0) : (w(), te(ve, {
1942
1932
  key: 3,
1943
- id: s(l).errorId,
1944
- invalid: s(l).invalid.value,
1933
+ id: d(l).errorId,
1934
+ invalid: d(l).invalid.value,
1945
1935
  text: e.invalidFeedback
1946
1936
  }, {
1947
1937
  default: le(() => [
1948
- y.$slots["invalid-feedback"] ? q(y.$slots, "invalid-feedback", { key: 0 }, void 0, !0) : R("", !0)
1938
+ y.$slots["invalid-feedback"] ? q(y.$slots, "invalid-feedback", { key: 0 }, void 0, !0) : V("", !0)
1949
1939
  ]),
1950
1940
  _: 3
1951
1941
  }, 8, ["id", "invalid", "text"]))
1952
1942
  ])), [
1953
- [s(Et), T]
1943
+ [d(Et), T]
1954
1944
  ]);
1955
1945
  }
1956
- }), On = /* @__PURE__ */ dt(mn, [["__scopeId", "data-v-2695c901"]]), bn = ["id", "name", "rows", "placeholder", "required", "disabled", "aria-invalid", "aria-describedby"], An = /* @__PURE__ */ N({
1946
+ }), On = /* @__PURE__ */ dt(hn, [["__scopeId", "data-v-1c4c7f20"]]), bn = ["id", "name", "rows", "placeholder", "required", "disabled", "aria-invalid", "aria-describedby"], An = /* @__PURE__ */ _({
1957
1947
  __name: "MclTextArea",
1958
- props: /* @__PURE__ */ _({
1948
+ props: /* @__PURE__ */ H({
1959
1949
  id: {},
1960
1950
  name: {},
1961
1951
  placeholder: { default: "" },
@@ -1980,42 +1970,41 @@ const ln = /* @__PURE__ */ N({
1980
1970
  setup(e) {
1981
1971
  const t = e, o = se(e, "modelValue"), n = de(t), i = Oe(t);
1982
1972
  return (l, a) => (w(), S("div", null, [
1983
- ie(F("textarea", {
1984
- id: s(n).id,
1973
+ ie(A("textarea", {
1974
+ id: d(n).id,
1985
1975
  "onUpdate:modelValue": a[0] || (a[0] = (r) => o.value = r),
1986
- class: M(["peer w-full p-2xs outline-none disabled:cursor-not-allowed disabled:opacity-50", s(i)]),
1987
- name: s(n).name.value,
1976
+ class: M(["peer block w-full p-2xs outline-none disabled:cursor-not-allowed disabled:opacity-50", d(i)]),
1977
+ name: d(n).name.value,
1988
1978
  rows: e.rows,
1989
1979
  placeholder: e.placeholder,
1990
- required: s(n).required.value,
1991
- disabled: s(n).disabled.value,
1992
- "aria-invalid": s(n).invalid.value || void 0,
1993
- "aria-describedby": s(n).describedBy.value
1980
+ required: d(n).required.value,
1981
+ disabled: d(n).disabled.value,
1982
+ "aria-invalid": d(n).invalid.value || void 0,
1983
+ "aria-describedby": d(n).describedBy.value
1994
1984
  }, null, 10, bn), [
1995
1985
  [lt, o.value]
1996
1986
  ]),
1997
1987
  e.showHighlight ? (w(), te(ct, {
1998
1988
  key: 0,
1999
1989
  color: e.highlightColor,
2000
- rounded: e.rounded,
2001
- offset: 2.5
2002
- }, null, 8, ["color", "rounded"])) : R("", !0),
2003
- s(n).feedbackOwnedByGroup ? R("", !0) : (w(), te(ve, {
1990
+ rounded: e.rounded
1991
+ }, null, 8, ["color", "rounded"])) : V("", !0),
1992
+ d(n).feedbackOwnedByGroup ? V("", !0) : (w(), te(ve, {
2004
1993
  key: 1,
2005
- id: s(n).errorId,
2006
- invalid: s(n).invalid.value,
1994
+ id: d(n).errorId,
1995
+ invalid: d(n).invalid.value,
2007
1996
  text: e.invalidFeedback
2008
1997
  }, {
2009
1998
  default: le(() => [
2010
- l.$slots["invalid-feedback"] ? q(l.$slots, "invalid-feedback", { key: 0 }) : R("", !0)
1999
+ l.$slots["invalid-feedback"] ? q(l.$slots, "invalid-feedback", { key: 0 }) : V("", !0)
2011
2000
  ]),
2012
2001
  _: 3
2013
2002
  }, 8, ["id", "invalid", "text"]))
2014
2003
  ]));
2015
2004
  }
2016
- }), gn = { class: "relative inline-flex" }, yn = ["id", "name", "value", "required", "disabled", "aria-invalid", "aria-describedby"], Fn = /* @__PURE__ */ N({
2005
+ }), gn = { class: "relative inline-flex" }, yn = ["id", "name", "value", "required", "disabled", "aria-invalid", "aria-describedby"], Ln = /* @__PURE__ */ _({
2017
2006
  __name: "MclCheckbox",
2018
- props: /* @__PURE__ */ _({
2007
+ props: /* @__PURE__ */ H({
2019
2008
  id: {},
2020
2009
  name: {},
2021
2010
  size: { default: "md" },
@@ -2033,40 +2022,40 @@ const ln = /* @__PURE__ */ N({
2033
2022
  modelValue: { type: Boolean },
2034
2023
  modelModifiers: {}
2035
2024
  }),
2036
- emits: /* @__PURE__ */ _(["change"], ["update:modelValue"]),
2025
+ emits: /* @__PURE__ */ H(["change"], ["update:modelValue"]),
2037
2026
  setup(e, { emit: t }) {
2038
- const o = e, n = se(e, "modelValue"), i = t, l = de(o, { rendersOwnFeedback: !1 }), { boxClass: a, sizeClass: r } = Ne(o), c = (d) => {
2039
- i("change", d);
2027
+ const o = e, n = se(e, "modelValue"), i = t, l = de(o, { rendersOwnFeedback: !1 }), { boxClass: a, sizeClass: r } = _e(o), c = (s) => {
2028
+ i("change", s);
2040
2029
  };
2041
- return (d, u) => (w(), S("div", gn, [
2042
- ie(F("input", {
2043
- id: s(l).id,
2030
+ return (s, u) => (w(), S("div", gn, [
2031
+ ie(A("input", {
2032
+ id: d(l).id,
2044
2033
  "onUpdate:modelValue": u[0] || (u[0] = (v) => n.value = v),
2045
2034
  type: "checkbox",
2046
2035
  class: "peer absolute inset-0 z-10 h-full w-full cursor-pointer appearance-none opacity-0 disabled:cursor-not-allowed",
2047
- name: s(l).name.value,
2036
+ name: d(l).name.value,
2048
2037
  value: e.value,
2049
- required: s(l).required.value,
2050
- disabled: s(l).disabled.value,
2051
- "aria-invalid": s(l).invalid.value || void 0,
2052
- "aria-describedby": s(l).describedBy.value,
2038
+ required: d(l).required.value,
2039
+ disabled: d(l).disabled.value,
2040
+ "aria-invalid": d(l).invalid.value || void 0,
2041
+ "aria-describedby": d(l).describedBy.value,
2053
2042
  onChange: c
2054
2043
  }, null, 40, yn), [
2055
2044
  [nt, n.value]
2056
2045
  ]),
2057
- F("span", {
2046
+ A("span", {
2058
2047
  "aria-hidden": "true",
2059
- class: M(["relative inline-block border p-3xs transition-colors duration-200 ease-linear peer-disabled:opacity-50 before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:opacity-0 before:transition-opacity before:duration-200 peer-checked:before:opacity-100", [s(a), s(r)]])
2048
+ class: M(["relative inline-block border p-3xs transition-colors duration-200 ease-linear peer-disabled:opacity-50 before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:opacity-0 before:transition-opacity before:duration-200 peer-checked:before:opacity-100", [d(a), d(r)]])
2060
2049
  }, null, 2)
2061
2050
  ]));
2062
2051
  }
2063
2052
  });
2064
2053
  export {
2065
- Fn as MclCheckbox,
2054
+ Ln as MclCheckbox,
2066
2055
  Bn as MclFormGroup,
2067
2056
  Sn as MclInputFile,
2068
- Vn as MclInputRadio,
2069
- Rn as MclInputSwitch,
2057
+ Rn as MclInputRadio,
2058
+ Vn as MclInputSwitch,
2070
2059
  $n as MclInputText,
2071
2060
  On as MclSelect,
2072
2061
  An as MclTextArea