@cfasim-ui/components 0.6.4 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,33 +1,33 @@
1
- import { i as e, n as t, r as n, t as r } from "./SelectBox-Bg7Qhmy7.js";
2
- import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineAsyncComponent as f, defineComponent as p, getCurrentInstance as m, mergeModels as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onMounted as ee, onUnmounted as y, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as w, toDisplayString as T, unref as E, useModel as D, vModelText as O, watch as k, withCtx as A, withDirectives as te, withKeys as j, withModifiers as M } from "vue";
3
- import { CollapsibleContent as ne, CollapsibleRoot as re, CollapsibleTrigger as ie, ComboboxAnchor as N, ComboboxContent as P, ComboboxEmpty as F, ComboboxInput as ae, ComboboxItem as I, ComboboxItemIndicator as L, ComboboxPortal as R, ComboboxRoot as oe, ComboboxTrigger as se, ComboboxViewport as z, SliderRange as ce, SliderRoot as le, SliderThumb as ue, SliderTrack as de, SwitchRoot as B, SwitchThumb as fe, TabsIndicator as V, TabsList as H, TabsRoot as U, TabsTrigger as W, ToggleGroupItem as G, ToggleGroupRoot as pe, TooltipArrow as me, TooltipContent as he, TooltipPortal as K, TooltipProvider as ge, TooltipRoot as _e, TooltipTrigger as q, useId as J } from "reka-ui";
1
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "./SelectBox-CByXZfaC.js";
2
+ import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, defineAsyncComponent as v, defineComponent as y, getCurrentInstance as ee, mergeModels as b, mergeProps as x, nextTick as te, normalizeClass as S, normalizeStyle as C, onMounted as ne, onUnmounted as w, openBlock as T, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as re, toDisplayString as k, unref as A, useModel as j, vModelText as M, watch as N, withCtx as P, withDirectives as F, withKeys as I } from "vue";
3
+ import { CollapsibleContent as L, CollapsibleRoot as ie, CollapsibleTrigger as R, ComboboxAnchor as z, ComboboxContent as B, ComboboxEmpty as ae, ComboboxInput as oe, ComboboxItem as V, ComboboxItemIndicator as H, ComboboxPortal as se, ComboboxRoot as U, ComboboxTrigger as W, ComboboxViewport as G, SliderRange as ce, SliderRoot as le, SliderThumb as ue, SliderTrack as de, SwitchRoot as K, SwitchThumb as q, TabsIndicator as fe, TabsList as pe, TabsRoot as me, TabsTrigger as J, ToggleGroupItem as he, ToggleGroupRoot as ge, useId as Y } from "reka-ui";
4
4
  //#region \0rolldown/runtime.js
5
- var Y = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), ve = ["data-orientation", "aria-label"], ye = /* @__PURE__ */ e(/* @__PURE__ */ p({
5
+ var X = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), Z = ["data-orientation", "aria-label"], _e = /* @__PURE__ */ l(/* @__PURE__ */ y({
6
6
  __name: "ButtonGroup",
7
7
  props: {
8
8
  ariaLabel: {},
9
9
  orientation: { default: "horizontal" }
10
10
  },
11
11
  setup(e) {
12
- return (t, n) => (b(), c("div", {
12
+ return (t, n) => (T(), m("div", {
13
13
  class: "button-group",
14
14
  role: "group",
15
15
  "data-orientation": e.orientation,
16
16
  "aria-label": e.ariaLabel
17
- }, [C(t.$slots, "default", {}, void 0, !0)], 8, ve));
17
+ }, [O(t.$slots, "default", {}, void 0, !0)], 8, Z));
18
18
  }
19
- }), [["__scopeId", "data-v-f3bd45a3"]]), X = {
19
+ }), [["__scopeId", "data-v-f3bd45a3"]]), Q = {
20
20
  none: "0",
21
21
  small: "var(--space-2)",
22
22
  medium: "var(--space-4)",
23
23
  large: "var(--space-6)"
24
24
  };
25
- function be(e, t = "medium") {
26
- return e == null ? X[t] : e in X ? X[e] : e;
25
+ function ve(e, t = "medium") {
26
+ return e == null ? Q[t] : e in Q ? Q[e] : e;
27
27
  }
28
28
  //#endregion
29
29
  //#region src/Container/Container.vue
30
- var xe = /* @__PURE__ */ e(/* @__PURE__ */ p({
30
+ var ye = /* @__PURE__ */ l(/* @__PURE__ */ y({
31
31
  __name: "Container",
32
32
  props: {
33
33
  border: { type: Boolean },
@@ -36,25 +36,25 @@ var xe = /* @__PURE__ */ e(/* @__PURE__ */ p({
36
36
  gap: {}
37
37
  },
38
38
  setup(e) {
39
- let t = e, n = a(() => be(t.gap)), r = a(() => {
39
+ let t = e, n = d(() => ve(t.gap)), r = d(() => {
40
40
  let e = t.height;
41
41
  if (e != null) return typeof e == "number" ? `${e}px` : e;
42
42
  });
43
- return (t, i) => (b(), c("div", {
44
- class: _(["container", {
43
+ return (t, i) => (T(), m("div", {
44
+ class: S(["container", {
45
45
  "container-border": e.border,
46
46
  "container-horizontal": e.horizontal,
47
47
  "container-scrollable": e.height != null
48
48
  }]),
49
- style: v({
49
+ style: C({
50
50
  gap: n.value,
51
51
  height: r.value
52
52
  })
53
- }, [C(t.$slots, "default", {}, void 0, !0)], 6));
53
+ }, [O(t.$slots, "default", {}, void 0, !0)], 6));
54
54
  }
55
- }), [["__scopeId", "data-v-bff01edb"]]), Se = /* @__PURE__ */ e(/* @__PURE__ */ p({
55
+ }), [["__scopeId", "data-v-bff01edb"]]), be = /* @__PURE__ */ l(/* @__PURE__ */ y({
56
56
  __name: "Expander",
57
- props: /* @__PURE__ */ h({ label: {} }, {
57
+ props: /* @__PURE__ */ b({ label: {} }, {
58
58
  open: {
59
59
  type: Boolean,
60
60
  default: !1
@@ -63,51 +63,51 @@ var xe = /* @__PURE__ */ e(/* @__PURE__ */ p({
63
63
  }),
64
64
  emits: ["update:open"],
65
65
  setup(e) {
66
- let t = D(e, "open");
67
- return (n, r) => (b(), o(E(re), {
66
+ let t = j(e, "open");
67
+ return (n, r) => (T(), f(A(ie), {
68
68
  open: t.value,
69
69
  "onUpdate:open": r[0] ||= (e) => t.value = e,
70
70
  class: "expander"
71
71
  }, {
72
- default: A(() => [d(E(ie), { class: "expander-trigger" }, {
73
- default: A(() => [l("span", { class: _(["expander-caret", { open: t.value }]) }, null, 2), C(n.$slots, "label", {}, () => [u(T(e.label), 1)], !0)]),
72
+ default: P(() => [_(A(R), { class: "expander-trigger" }, {
73
+ default: P(() => [h("span", { class: S(["expander-caret", { open: t.value }]) }, null, 2), O(n.$slots, "label", {}, () => [g(k(e.label), 1)], !0)]),
74
74
  _: 3
75
- }), d(E(ne), { class: "expander-content" }, {
76
- default: A(() => [C(n.$slots, "default", {}, void 0, !0)]),
75
+ }), _(A(L), { class: "expander-content" }, {
76
+ default: P(() => [O(n.$slots, "default", {}, void 0, !0)]),
77
77
  _: 3
78
78
  })]),
79
79
  _: 3
80
80
  }, 8, ["open"]));
81
81
  }
82
- }), [["__scopeId", "data-v-39e4acd0"]]), Ce = ["data-cfasim-grid-bp"], we = "640px";
83
- function Te(e) {
82
+ }), [["__scopeId", "data-v-39e4acd0"]]), xe = ["data-cfasim-grid-bp"], Se = "640px";
83
+ function Ce(e) {
84
84
  return typeof e == "number" ? `repeat(${e}, 1fr)` : e.map((e) => typeof e == "number" ? `${e}fr` : e).join(" ");
85
85
  }
86
- function Ee(e) {
87
- return /^\d+(\.\d+)?[a-zA-Z%]+$/.test(e) ? e : we;
86
+ function we(e) {
87
+ return /^\d+(\.\d+)?[a-zA-Z%]+$/.test(e) ? e : Se;
88
88
  }
89
- var Z = /* @__PURE__ */ new Map();
90
- function De(e) {
89
+ var $ = /* @__PURE__ */ new Map();
90
+ function Te(e) {
91
91
  if (typeof document > "u") return;
92
- let t = Z.get(e);
92
+ let t = $.get(e);
93
93
  if (t) {
94
94
  t.count++;
95
95
  return;
96
96
  }
97
97
  let n = document.createElement("style");
98
- n.setAttribute("data-cfasim-grid-bp", e), n.textContent = `@container (max-width: ${e}) {[data-cfasim-grid-bp="${e}"] > .grid {grid-template-columns: var(--grid-cols-small) !important;}}`, document.head.appendChild(n), Z.set(e, {
98
+ n.setAttribute("data-cfasim-grid-bp", e), n.textContent = `@container (max-width: ${e}) {[data-cfasim-grid-bp="${e}"] > .grid {grid-template-columns: var(--grid-cols-small) !important;}}`, document.head.appendChild(n), $.set(e, {
99
99
  count: 1,
100
100
  el: n
101
101
  });
102
102
  }
103
- function Oe(e) {
103
+ function Ee(e) {
104
104
  if (typeof document > "u") return;
105
- let t = Z.get(e);
106
- t && (t.count--, t.count === 0 && (t.el.remove(), Z.delete(e)));
105
+ let t = $.get(e);
106
+ t && (t.count--, t.count === 0 && (t.el.remove(), $.delete(e)));
107
107
  }
108
108
  //#endregion
109
109
  //#region src/Grid/Grid.vue
110
- var ke = /* @__PURE__ */ e(/* @__PURE__ */ p({
110
+ var De = /* @__PURE__ */ l(/* @__PURE__ */ y({
111
111
  __name: "Grid",
112
112
  props: {
113
113
  cols: {},
@@ -117,491 +117,142 @@ var ke = /* @__PURE__ */ e(/* @__PURE__ */ p({
117
117
  minColWidth: {}
118
118
  },
119
119
  setup(e) {
120
- let t = e, n = a(() => be(t.gap)), r = a(() => t.minColWidth ? `repeat(auto-fit, minmax(${t.minColWidth}, 1fr))` : Te(t.cols ?? 2)), i = a(() => t.minColWidth || t.colsSmall == null ? r.value : Te(t.colsSmall)), o = a(() => Ee(t.breakpoint ?? we)), s = null, u = k(o, (e) => {
121
- s !== e && (De(e), s && Oe(s), s = e);
120
+ let t = e, n = d(() => ve(t.gap)), r = d(() => t.minColWidth ? `repeat(auto-fit, minmax(${t.minColWidth}, 1fr))` : Ce(t.cols ?? 2)), i = d(() => t.minColWidth || t.colsSmall == null ? r.value : Ce(t.colsSmall)), a = d(() => we(t.breakpoint ?? Se)), o = null, s = N(a, (e) => {
121
+ o !== e && (Te(e), o && Ee(o), o = e);
122
122
  }, { immediate: !0 });
123
- return y(() => {
124
- u(), s &&= (Oe(s), null);
125
- }), (e, t) => (b(), c("div", {
126
- "data-cfasim-grid-bp": o.value,
123
+ return w(() => {
124
+ s(), o &&= (Ee(o), null);
125
+ }), (e, t) => (T(), m("div", {
126
+ "data-cfasim-grid-bp": a.value,
127
127
  class: "grid-wrapper"
128
- }, [l("div", {
128
+ }, [h("div", {
129
129
  class: "grid",
130
- style: v({
130
+ style: C({
131
131
  gap: n.value,
132
132
  gridTemplateColumns: r.value,
133
133
  "--grid-cols-small": i.value
134
134
  })
135
- }, [C(e.$slots, "default", {}, void 0, !0)], 4)], 8, Ce));
136
- }
137
- }), [["__scopeId", "data-v-7ae87f0f"]]), Ae = /* @__PURE__ */ new Map();
138
- function je(e) {
139
- return typeof e == "object" && e && "outline" in e ? e : { outline: e };
140
- }
141
- function Me(e) {
142
- for (let [t, n] of Object.entries(e)) Ae.set(t, je(n));
143
- }
144
- function Ne(e, t = !1) {
145
- let n = Ae.get(e);
146
- if (n) return t && n.fill ? n.fill : n.outline;
147
- }
148
- function Pe(e) {
149
- return Ae.has(e);
150
- }
151
- var Fe = /* @__PURE__ */ new Set();
152
- function Ie(e) {
153
- let t = /^[a-zA-Z_$][\w$]*$/.test(e), n = t ? e : `icon_${e.replace(/[^\w$]/g, "_")}`;
154
- return ` import ${n} from "@material-symbols/svg-400/outlined/${e}.svg?component";\n import { registerIcons } from "@cfasim-ui/components";\n registerIcons(${t ? `{ ${e} }` : `{ "${e}": ${n} }`});`;
155
- }
156
- function Le(e) {
157
- Fe.has(e) || (Fe.add(e), console.warn(`[cfasim-ui] Icon "${e}" is not registered — nothing will render.\nRegister it once at startup:\n\n${Ie(e)}\n\nRequires dev deps "@material-symbols/svg-400" + "vite-svg-loader".\nDocs: https://cdcgov.github.io/cfa-simulator/docs/cfasim-ui/components/icon#registering-icons`));
158
- }
159
- //#endregion
160
- //#region ../../node_modules/.pnpm/@material-symbols+svg-400@0.44.10/node_modules/@material-symbols/svg-400/outlined/help.svg?component
161
- var Re = {
162
- xmlns: "http://www.w3.org/2000/svg",
163
- viewBox: "0 -960 960 960"
164
- };
165
- function ze(e, t) {
166
- return b(), c("svg", Re, [...t[0] ||= [l("path", { d: "M511-258q11-11 11-27t-11-27-27-11-27 11-11 27 11 27 27 11 27-11m-62-135h59q0-26 6.5-47.5T555-490q31-26 44-51t13-55q0-53-34.5-85T486-713q-49 0-86.5 24.5T345-621l53 20q11-28 33-43.5t52-15.5q34 0 55 18.5t21 47.5q0 22-13 41.5T508-512q-30 26-44.5 51.5T449-393m31 313q-82 0-155-31.5t-127.5-86-86-127.5T80-480q0-83 31.5-156t86-127T325-848.5 480-880q83 0 156 31.5T763-763t85.5 127T880-480q0 82-31.5 155T763-197.5t-127 86T480-80m0-60q142 0 241-99.5T820-480q0-142-99-241t-241-99q-141 0-240.5 99T140-480q0 141 99.5 240.5T480-140m0-340" }, null, -1)]]);
167
- }
168
- var Be = { render: ze }, Ve = {
169
- xmlns: "http://www.w3.org/2000/svg",
170
- viewBox: "0 -960 960 960"
171
- };
172
- function He(e, t) {
173
- return b(), c("svg", Ve, [...t[0] ||= [l("path", { d: "m480-121-41-37q-105.77-97.12-174.88-167.56Q195-396 154-451.5T96.5-552 80-643q0-90.15 60.5-150.58Q201-854 290-854q57 0 105.5 27t84.5 78q42-54 89-79.5T670-854q89 0 149.5 60.42Q880-733.15 880-643q0 46-16.5 91T806-451.5 695.88-325.56Q626.77-255.12 521-158zm0-79q101.24-93 166.62-159.5T750.5-476t54-89.14q15.5-39.13 15.5-77.72 0-66.14-42-108.64T670.22-794q-51.52 0-95.37 31.5T504-674h-49q-26-56-69.85-88t-95.37-32Q224-794 182-751.5t-42 108.82q0 38.68 15.5 78.18t54 90T314-358t166 158m0-297" }, null, -1)]]);
174
- }
175
- var Ue = { render: He }, We = {
176
- xmlns: "http://www.w3.org/2000/svg",
177
- viewBox: "0 -960 960 960"
178
- };
179
- function Ge(e, t) {
180
- return b(), c("svg", We, [...t[0] ||= [l("path", { d: "m480-121-41-37q-106-97-175-167.5t-110-126T96.5-552 80-643q0-90 60.5-150.5T290-854q57 0 105.5 27t84.5 78q42-54 89-79.5T670-854q89 0 149.5 60.5T880-643q0 46-16.5 91T806-451.5t-110 126T521-158z" }, null, -1)]]);
181
- }
182
- var Ke = { render: Ge }, qe = {
183
- xmlns: "http://www.w3.org/2000/svg",
184
- viewBox: "0 -960 960 960"
185
- };
186
- function Je(e, t) {
187
- return b(), c("svg", qe, [...t[0] ||= [l("path", { d: "M480-120q-150 0-255-105T120-480t105-255 255-105q8 0 17 .5t23 1.5q-36 32-56 79t-20 99q0 90 63 153t153 63q52 0 99-18.5t79-51.5q1 12 1.5 19.5t.5 14.5q0 150-105 255T480-120m0-60q109 0 190-67.5T771-406q-25 11-53.67 16.5Q688.67-384 660-384q-114.69 0-195.34-80.66Q384-545.31 384-660q0-24 5-51.5t18-62.5q-98 27-162.5 109.5T180-480q0 125 87.5 212.5T480-180m-4-297" }, null, -1)]]);
188
- }
189
- var Ye = { render: Je }, Xe = {
190
- xmlns: "http://www.w3.org/2000/svg",
191
- viewBox: "0 -960 960 960"
192
- };
193
- function Ze(e, t) {
194
- return b(), c("svg", Xe, [...t[0] ||= [l("path", { d: "M579-381q41-41 41-99t-41-99-99-41-99 41-41 99 41 99 99 41 99-41m-240.5 42.5Q280-397 280-480t58.5-141.5T480-680t141.5 58.5T680-480t-58.5 141.5T480-280t-141.5-58.5M200-450H40v-60h160zm720 0H760v-60h160zM450-760v-160h60v160zm0 720v-160h60v160zM262-658l-100-97 43-44 96 100zm494 496-98-100 41-41 99 98zm-99-537 98-99 44 42-99 98zM162-205l99-98 42 42-98 99zm318-275" }, null, -1)]]);
195
- }
196
- var Qe = { render: Ze }, $e = {
197
- xmlns: "http://www.w3.org/2000/svg",
198
- viewBox: "0 -960 960 960"
199
- };
200
- function et(e, t) {
201
- return b(), c("svg", $e, [...t[0] ||= [l("path", { d: "M561-240 320-481l241-241 43 43-198 198 198 198z" }, null, -1)]]);
202
- }
203
- var tt = { render: et }, nt = {
204
- xmlns: "http://www.w3.org/2000/svg",
205
- viewBox: "0 -960 960 960"
206
- };
207
- function rt(e, t) {
208
- return b(), c("svg", nt, [...t[0] ||= [l("path", { d: "M530-481 332-679l43-43 241 241-241 241-43-43z" }, null, -1)]]);
209
- }
210
- var it = { render: rt }, at = {
211
- xmlns: "http://www.w3.org/2000/svg",
212
- viewBox: "0 -960 960 960"
213
- };
214
- function ot(e, t) {
215
- return b(), c("svg", at, [...t[0] ||= [l("path", { d: "M480-554 283-357l-43-43 240-240 240 240-43 43z" }, null, -1)]]);
216
- }
217
- var st = { render: ot }, ct = {
218
- xmlns: "http://www.w3.org/2000/svg",
219
- viewBox: "0 -960 960 960"
220
- };
221
- function lt(e, t) {
222
- return b(), c("svg", ct, [...t[0] ||= [l("path", { d: "M480-344 240-584l43-43 197 197 197-197 43 43z" }, null, -1)]]);
223
- }
224
- var ut = { render: lt }, dt = {
225
- xmlns: "http://www.w3.org/2000/svg",
226
- viewBox: "0 -960 960 960"
227
- };
228
- function ft(e, t) {
229
- return b(), c("svg", dt, [...t[0] ||= [l("path", { d: "M453-241 213-481l240-240 42 42-198 198 198 198zm253 0L466-481l240-240 42 42-198 198 198 198z" }, null, -1)]]);
230
- }
231
- var pt = { render: ft }, mt = {
232
- xmlns: "http://www.w3.org/2000/svg",
233
- viewBox: "0 -960 960 960"
234
- };
235
- function ht(e, t) {
236
- return b(), c("svg", mt, [...t[0] ||= [l("path", { d: "M411-481 213-679l42-42 240 240-240 240-42-42zm253 0L466-679l42-42 240 240-240 240-42-42z" }, null, -1)]]);
237
- }
238
- var gt = { render: ht }, _t = {
239
- xmlns: "http://www.w3.org/2000/svg",
240
- viewBox: "0 -960 960 960"
241
- };
242
- function vt(e, t) {
243
- return b(), c("svg", _t, [...t[0] ||= [l("path", { d: "M450-160v-526L202-438l-42-42 320-320 320 320-42 42-248-248v526z" }, null, -1)]]);
244
- }
245
- var yt = { render: vt }, bt = {
246
- xmlns: "http://www.w3.org/2000/svg",
247
- viewBox: "0 -960 960 960"
248
- };
249
- function xt(e, t) {
250
- return b(), c("svg", bt, [...t[0] ||= [l("path", { d: "M450-800v526L202-522l-42 42 320 320 320-320-42-42-248 248v-526z" }, null, -1)]]);
251
- }
252
- var St = { render: xt }, Ct = {
253
- xmlns: "http://www.w3.org/2000/svg",
254
- viewBox: "0 -960 960 960"
255
- };
256
- function wt(e, t) {
257
- return b(), c("svg", Ct, [...t[0] ||= [l("path", { d: "m274-450 248 248-42 42-320-320 320-320 42 42-248 248h526v60z" }, null, -1)]]);
258
- }
259
- var Tt = { render: wt }, Et = {
260
- xmlns: "http://www.w3.org/2000/svg",
261
- viewBox: "0 -960 960 960"
262
- };
263
- function Dt(e, t) {
264
- return b(), c("svg", Et, [...t[0] ||= [l("path", { d: "M686-450H160v-60h526L438-758l42-42 320 320-320 320-42-42z" }, null, -1)]]);
265
- }
266
- var Ot = { render: Dt }, kt = {
267
- xmlns: "http://www.w3.org/2000/svg",
268
- viewBox: "0 -960 960 960"
269
- };
270
- function At(e, t) {
271
- return b(), c("svg", kt, [...t[0] ||= [l("path", { d: "M120-240v-60h720v60zm0-210v-60h720v60zm0-210v-60h720v60z" }, null, -1)]]);
272
- }
273
- var jt = { render: At }, Mt = {
274
- xmlns: "http://www.w3.org/2000/svg",
275
- viewBox: "0 -960 960 960"
276
- };
277
- function Nt(e, t) {
278
- return b(), c("svg", Mt, [...t[0] ||= [l("path", { d: "M479.86-160Q460-160 446-174.14t-14-34T446.14-242t34-14T514-241.86t14 34T513.86-174t-34 14m0-272Q460-432 446-446.14t-14-34T446.14-514t34-14T514-513.86t14 34T513.86-446t-34 14m0-272Q460-704 446-718.14t-14-34T446.14-786t34-14T514-785.86t14 34T513.86-718t-34 14" }, null, -1)]]);
279
- }
280
- var Pt = { render: Nt }, Ft = {
281
- xmlns: "http://www.w3.org/2000/svg",
282
- viewBox: "0 -960 960 960"
283
- };
284
- function It(e, t) {
285
- return b(), c("svg", Ft, [...t[0] ||= [l("path", { d: "M207.86-432Q188-432 174-446.14t-14-34T174.14-514t34-14T242-513.86t14 34T241.86-446t-34 14m272 0Q460-432 446-446.14t-14-34T446.14-514t34-14T514-513.86t14 34T513.86-446t-34 14m272 0Q732-432 718-446.14t-14-34T718.14-514t34-14T786-513.86t14 34T785.86-446t-34 14" }, null, -1)]]);
286
- }
287
- var Lt = { render: It }, Rt = {
288
- xmlns: "http://www.w3.org/2000/svg",
289
- viewBox: "0 -960 960 960"
290
- };
291
- function zt(e, t) {
292
- return b(), c("svg", Rt, [...t[0] ||= [l("path", { d: "M450-450H200v-60h250v-250h60v250h250v60H510v250h-60z" }, null, -1)]]);
293
- }
294
- var Bt = { render: zt }, Vt = {
295
- xmlns: "http://www.w3.org/2000/svg",
296
- viewBox: "0 -960 960 960"
297
- };
298
- function Ht(e, t) {
299
- return b(), c("svg", Vt, [...t[0] ||= [l("path", { d: "M180-180h44l472-471-44-44-472 471zm-60 60v-128l575-574q8-8 19-12.5t23-4.5q11 0 22 4.5t20 12.5l44 44q9 9 13 20t4 22-4.5 22.5T823-694L248-120zm659-617-41-41zm-105 64-22-22 44 44z" }, null, -1)]]);
300
- }
301
- var Ut = { render: Ht }, Wt = {
302
- xmlns: "http://www.w3.org/2000/svg",
303
- viewBox: "0 -960 960 960"
304
- };
305
- function Gt(e, t) {
306
- return b(), c("svg", Wt, [...t[0] ||= [l("path", { d: "M261-120q-24.75 0-42.37-17.63Q201-155.25 201-180v-570h-41v-60h188v-30h264v30h188v60h-41v570q0 24-18 42t-42 18zm438-630H261v570h438zM367-266h60v-399h-60zm166 0h60v-399h-60zM261-750v570z" }, null, -1)]]);
307
- }
308
- var Kt = { render: Gt }, qt = {
309
- xmlns: "http://www.w3.org/2000/svg",
310
- viewBox: "0 -960 960 960"
311
- };
312
- function Jt(e, t) {
313
- return b(), c("svg", qt, [...t[0] ||= [l("path", { d: "m249-207-42-42 231-231-231-231 42-42 231 231 231-231 42 42-231 231 231 231-42 42-231-231z" }, null, -1)]]);
314
- }
315
- var Yt = { render: Jt }, Xt = {
316
- xmlns: "http://www.w3.org/2000/svg",
317
- viewBox: "0 -960 960 960"
318
- };
319
- function Zt(e, t) {
320
- return b(), c("svg", Xt, [...t[0] ||= [l("path", { d: "M378-246 154-470l43-43 181 181 384-384 43 43z" }, null, -1)]]);
321
- }
322
- var Qt = { render: Zt }, $t = {
323
- xmlns: "http://www.w3.org/2000/svg",
324
- viewBox: "0 -960 960 960"
325
- };
326
- function en(e, t) {
327
- return b(), c("svg", $t, [...t[0] ||= [l("path", { d: "M796-121 533-384q-30 26-70 40.5T378-329q-108 0-183-75t-75-181 75-181 182-75q106 0 180.5 75T632-585q0 43-14 83t-42 75l264 262zM377-389q81 0 138-57.5T572-585t-57-138.5T377-781q-82 0-139.5 57.5T180-585t57.5 138.5T377-389" }, null, -1)]]);
328
- }
329
- var tn = { render: en }, nn = {
330
- xmlns: "http://www.w3.org/2000/svg",
331
- viewBox: "0 -960 960 960"
332
- };
333
- function rn(e, t) {
334
- return b(), c("svg", nn, [...t[0] ||= [l("path", { d: "M427-120v-225h60v83h353v60H487v82zm-307-82v-60h247v60zm187-166v-82H120v-60h187v-84h60v226zm120-82v-60h413v60zm166-165v-225h60v82h187v60H653v83zm-473-83v-60h413v60z" }, null, -1)]]);
335
- }
336
- var an = { render: rn }, on = {
337
- xmlns: "http://www.w3.org/2000/svg",
338
- viewBox: "0 -960 960 960"
339
- };
340
- function sn(e, t) {
341
- return b(), c("svg", on, [...t[0] ||= [l("path", { d: "M480-313 287-506l43-43 120 120v-371h60v371l120-120 43 43zM220-160q-24 0-42-18t-18-42v-143h60v143h520v-143h60v143q0 24-18 42t-42 18z" }, null, -1)]]);
342
- }
343
- var cn = { render: sn }, ln = {
344
- xmlns: "http://www.w3.org/2000/svg",
345
- viewBox: "0 0 24 24"
346
- };
347
- function un(e, t) {
348
- return b(), c("svg", ln, [...t[0] ||= [l("path", { d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" }, null, -1)]]);
349
- }
350
- //#endregion
351
- //#region src/Icon/defaultIcons.ts
352
- var dn = {
353
- help: Be,
354
- favorite: {
355
- outline: Ue,
356
- fill: Ke
357
- },
358
- dark_mode: Ye,
359
- light_mode: Qe,
360
- chevron_left: tt,
361
- chevron_right: it,
362
- keyboard_arrow_up: st,
363
- keyboard_arrow_down: ut,
364
- keyboard_double_arrow_left: pt,
365
- keyboard_double_arrow_right: gt,
366
- arrow_upward: yt,
367
- arrow_downward: St,
368
- arrow_back: Tt,
369
- arrow_forward: Ot,
370
- menu: jt,
371
- more_vert: Pt,
372
- more_horiz: Lt,
373
- add: Bt,
374
- edit: Ut,
375
- delete: Kt,
376
- close: Yt,
377
- check: Qt,
378
- search: tn,
379
- tune: an,
380
- download: cn,
381
- github: { render: un }
382
- }, fn = !1;
383
- function pn() {
384
- if (!fn) {
385
- fn = !0;
386
- for (let [e, t] of Object.entries(dn)) Pe(e) || Me({ [e]: t });
387
- }
388
- }
389
- //#endregion
390
- //#region src/Icon/Icon.vue?vue&type=script&setup=true&lang.ts
391
- var mn = [
392
- "data-size",
393
- "data-inline",
394
- "aria-hidden",
395
- "aria-label",
396
- "role"
397
- ], Q = /* @__PURE__ */ p({
398
- __name: "Icon",
399
- props: {
400
- icon: {},
401
- size: { default: "md" },
402
- fill: {
403
- type: Boolean,
404
- default: !1
405
- },
406
- weight: {},
407
- grade: {},
408
- decorative: {
409
- type: Boolean,
410
- default: !0
411
- },
412
- ariaLabel: {},
413
- inline: {
414
- type: Boolean,
415
- default: !1
416
- }
417
- },
418
- setup(e) {
419
- pn();
420
- let t = e, n = a(() => typeof t.size == "string" ? t.size : void 0), r = a(() => typeof t.size == "number" ? {
421
- width: `${t.size}px`,
422
- height: `${t.size}px`
423
- } : {}), i = a(() => {
424
- let e = Ne(t.icon, t.fill);
425
- return e || Le(t.icon), e;
426
- });
427
- return (t, a) => (b(), c("span", {
428
- class: "Icon",
429
- "data-size": n.value,
430
- "data-inline": e.inline ? "true" : void 0,
431
- style: v(r.value),
432
- "aria-hidden": e.decorative ? !0 : void 0,
433
- "aria-label": e.decorative ? void 0 : e.ariaLabel,
434
- role: e.decorative ? void 0 : "img"
435
- }, [i.value ? (b(), o(w(i.value), { key: 0 })) : s("", !0)], 12, mn));
135
+ }, [O(e.$slots, "default", {}, void 0, !0)], 4)], 8, xe));
436
136
  }
437
- }), $ = /* @__PURE__ */ e(/* @__PURE__ */ p({
438
- __name: "Hint",
439
- props: { text: {} },
440
- setup(e) {
441
- return (t, n) => (b(), o(E(ge), null, {
442
- default: A(() => [d(E(_e), {
443
- "delay-duration": 0,
444
- "disable-closing-trigger": ""
445
- }, {
446
- default: A(() => [d(E(q), { "as-child": "" }, {
447
- default: A(() => [l("button", {
448
- type: "button",
449
- class: "HintTrigger",
450
- "aria-label": "More info",
451
- onPointerdown: n[0] ||= M(() => {}, ["prevent"])
452
- }, [d(Q, {
453
- icon: "help",
454
- size: 16
455
- })], 32)]),
456
- _: 1
457
- }), d(E(K), null, {
458
- default: A(() => [d(E(he), {
459
- class: "HintContent",
460
- side: "top",
461
- "side-offset": 4
462
- }, {
463
- default: A(() => [u(T(e.text) + " ", 1), d(E(me), {
464
- class: "HintArrow",
465
- width: 10,
466
- height: 5
467
- })]),
468
- _: 1
469
- })]),
470
- _: 1
471
- })]),
472
- _: 1
473
- })]),
474
- _: 1
475
- }));
476
- }
477
- }), [["__scopeId", "data-v-9dbf1c25"]]), hn = ["aria-label"], gn = /* @__PURE__ */ e(/* @__PURE__ */ p({
137
+ }), [["__scopeId", "data-v-7ae87f0f"]]), Oe = ["aria-label"], ke = /* @__PURE__ */ l(/* @__PURE__ */ y({
478
138
  __name: "LightDarkToggle",
479
- setup(e) {
480
- let t = x(window.matchMedia("(prefers-color-scheme: dark)").matches);
481
- function n(e) {
139
+ setup(t) {
140
+ let n = E(window.matchMedia("(prefers-color-scheme: dark)").matches);
141
+ function r(e) {
482
142
  document.documentElement.classList.toggle("dark", e), document.documentElement.classList.toggle("light", !e);
483
143
  }
484
- return n(t.value), k(t, n), (e, n) => (b(), c("button", {
144
+ return r(n.value), N(n, r), (t, r) => (T(), m("button", {
485
145
  class: "light-dark-toggle",
486
146
  type: "button",
487
- "aria-label": t.value ? "Switch to light mode" : "Switch to dark mode",
488
- onClick: n[0] ||= (e) => t.value = !t.value
489
- }, [d(Q, {
490
- icon: t.value ? "dark_mode" : "light_mode",
147
+ "aria-label": n.value ? "Switch to light mode" : "Switch to dark mode",
148
+ onClick: r[0] ||= (e) => n.value = !n.value
149
+ }, [_(e, {
150
+ icon: n.value ? "dark_mode" : "light_mode",
491
151
  size: "sm"
492
- }, null, 8, ["icon"])], 8, hn));
152
+ }, null, 8, ["icon"])], 8, Oe));
493
153
  }
494
- }), [["__scopeId", "data-v-4c423498"]]), _n = { class: "multi-select" }, vn = ["id"], yn = {
154
+ }), [["__scopeId", "data-v-4c423498"]]), Ae = { class: "multi-select" }, je = {
495
155
  key: 0,
496
156
  class: "multi-select-chips"
497
- }, bn = { class: "multi-select-chip-label" }, xn = ["aria-label", "onClick"], Sn = /* @__PURE__ */ e(/* @__PURE__ */ p({
157
+ }, Me = { class: "multi-select-chip-label" }, Ne = ["aria-label", "onClick"], Pe = {
158
+ class: "multi-select-icon",
159
+ "aria-hidden": "true"
160
+ }, Fe = /* @__PURE__ */ l(/* @__PURE__ */ y({
498
161
  __name: "MultiSelect",
499
- props: /* @__PURE__ */ h({
162
+ props: /* @__PURE__ */ b({
163
+ options: {},
164
+ placeholder: {},
500
165
  label: {},
501
166
  hideLabel: { type: Boolean },
502
167
  ariaLabel: {},
503
- options: {},
504
- placeholder: {},
505
168
  hint: {}
506
169
  }, {
507
170
  modelValue: { default: () => [] },
508
171
  modelModifiers: {}
509
172
  }),
510
173
  emits: ["update:modelValue"],
511
- setup(e) {
512
- let t = D(e, "modelValue"), n = e, r = J(), f = x(null);
513
- k(t, () => {
514
- g(() => {
515
- let e = f.value?.querySelector("input");
174
+ setup(t) {
175
+ let n = j(t, "modelValue"), r = t, { labelId: a, ariaProps: s } = i(r), c = E(null);
176
+ N(n, () => {
177
+ te(() => {
178
+ let e = c.value?.querySelector("input");
516
179
  e?.value && (e.value = "", e.dispatchEvent(new Event("input", { bubbles: !0 })));
517
180
  });
518
181
  });
519
- let p = a(() => t.value.map((e) => n.options.find((t) => t.value === e)).filter((e) => !!e));
520
- function m(e) {
521
- t.value = t.value.filter((t) => t !== e);
182
+ let l = d(() => n.value.map((e) => r.options.find((t) => t.value === e)).filter((e) => !!e));
183
+ function v(e) {
184
+ n.value = n.value.filter((t) => t !== e);
522
185
  }
523
- function h(e) {
524
- let n = e.target;
525
- e.key === "Backspace" && !n.value && t.value.length && m(t.value[t.value.length - 1]);
186
+ function y(e) {
187
+ let t = e.target;
188
+ e.key === "Backspace" && !t.value && n.value.length && v(n.value[n.value.length - 1]);
526
189
  }
527
- return (n, a) => (b(), c("div", _n, [e.label ? (b(), c("label", {
528
- key: 0,
529
- id: `${E(r)}-label`,
530
- class: _(["multi-select-label", { "visually-hidden": e.hideLabel }])
531
- }, [u(T(e.label) + " ", 1), e.hint && !e.hideLabel ? (b(), o($, {
532
- key: 0,
533
- text: e.hint
534
- }, null, 8, ["text"])) : s("", !0)], 10, vn)) : s("", !0), d(E(oe), {
535
- modelValue: t.value,
536
- "onUpdate:modelValue": a[0] ||= (e) => t.value = e,
190
+ return (r, i) => (T(), m("div", Ae, [_(o, {
191
+ class: "multi-select-label",
192
+ label: t.label,
193
+ "label-id": A(a),
194
+ "hide-label": t.hideLabel,
195
+ hint: t.hint
196
+ }, null, 8, [
197
+ "label",
198
+ "label-id",
199
+ "hide-label",
200
+ "hint"
201
+ ]), _(A(U), {
202
+ modelValue: n.value,
203
+ "onUpdate:modelValue": i[0] ||= (e) => n.value = e,
537
204
  multiple: "",
538
205
  "open-on-click": "",
539
206
  class: "multi-select-root"
540
207
  }, {
541
- default: A(() => [d(E(N), { class: "multi-select-anchor" }, {
542
- default: A(() => [l("div", {
208
+ default: P(() => [_(A(z), { class: "multi-select-anchor" }, {
209
+ default: P(() => [h("div", {
543
210
  ref_key: "fieldRef",
544
- ref: f,
211
+ ref: c,
545
212
  class: "multi-select-field"
546
- }, [p.value.length ? (b(), c("ul", yn, [(b(!0), c(i, null, S(p.value, (e) => (b(), c("li", {
547
- key: e.value,
213
+ }, [l.value.length ? (T(), m("ul", je, [(T(!0), m(u, null, D(l.value, (t) => (T(), m("li", {
214
+ key: t.value,
548
215
  class: "multi-select-chip"
549
- }, [l("span", bn, T(e.label), 1), l("button", {
216
+ }, [h("span", Me, k(t.label), 1), h("button", {
550
217
  type: "button",
551
218
  class: "multi-select-chip-remove",
552
- "aria-label": `Remove ${e.label}`,
553
- onClick: (t) => m(e.value)
554
- }, [d(Q, {
219
+ "aria-label": `Remove ${t.label}`,
220
+ onClick: (e) => v(t.value)
221
+ }, [_(e, {
555
222
  icon: "close",
556
223
  size: 14
557
- })], 8, xn)]))), 128))])) : s("", !0), d(E(ae), {
224
+ })], 8, Ne)]))), 128))])) : p("", !0), _(A(oe), x({
558
225
  class: "multi-select-input",
559
- placeholder: p.value.length ? void 0 : e.placeholder,
560
- "aria-labelledby": e.label ? `${E(r)}-label` : void 0,
561
- "aria-label": e.label ? void 0 : e.ariaLabel,
562
- onKeydown: h
563
- }, null, 8, [
564
- "placeholder",
565
- "aria-labelledby",
566
- "aria-label"
567
- ])], 512), d(E(se), {
226
+ placeholder: l.value.length ? void 0 : t.placeholder
227
+ }, A(s), { onKeydown: y }), null, 16, ["placeholder"])], 512), _(A(W), {
568
228
  class: "multi-select-trigger",
569
229
  "aria-label": "Toggle options"
570
230
  }, {
571
- default: A(() => [...a[1] ||= [l("span", {
572
- class: "multi-select-icon",
573
- "aria-hidden": "true"
574
- }, [l("svg", {
575
- width: "12",
576
- height: "12",
577
- viewBox: "0 0 12 12",
578
- fill: "none",
579
- stroke: "currentColor",
580
- "stroke-width": "2",
581
- "stroke-linecap": "round",
582
- "stroke-linejoin": "round"
583
- }, [l("path", { d: "M3 4.5L6 7.5L9 4.5" })])], -1)]]),
231
+ default: P(() => [h("span", Pe, [_(e, {
232
+ icon: "keyboard_arrow_down",
233
+ size: 16
234
+ })])]),
584
235
  _: 1
585
236
  })]),
586
237
  _: 1
587
- }), d(E(R), null, {
588
- default: A(() => [d(E(P), {
589
- class: "multi-select-content",
238
+ }), _(A(se), null, {
239
+ default: P(() => [_(A(B), {
240
+ class: "cfasim-listbox-content multi-select-content",
590
241
  position: "popper",
591
242
  "side-offset": 4,
592
243
  "body-lock": !1
593
244
  }, {
594
- default: A(() => [d(E(z), { class: "multi-select-viewport" }, {
595
- default: A(() => [d(E(F), { class: "multi-select-empty" }, {
596
- default: A(() => [...a[2] ||= [u("No matches", -1)]]),
245
+ default: P(() => [_(A(G), { class: "cfasim-listbox-viewport" }, {
246
+ default: P(() => [_(A(ae), { class: "cfasim-listbox-empty" }, {
247
+ default: P(() => [...i[1] ||= [g(" No matches ", -1)]]),
597
248
  _: 1
598
- }), (b(!0), c(i, null, S(e.options, (e) => (b(), o(E(I), {
599
- key: e.value,
600
- value: e.value,
601
- class: "multi-select-item"
249
+ }), (T(!0), m(u, null, D(t.options, (t) => (T(), f(A(V), {
250
+ key: t.value,
251
+ value: t.value,
252
+ class: "cfasim-listbox-item"
602
253
  }, {
603
- default: A(() => [l("span", null, T(e.label), 1), d(E(L), { class: "multi-select-indicator" }, {
604
- default: A(() => [d(Q, {
254
+ default: P(() => [h("span", null, k(t.label), 1), _(A(H), { class: "cfasim-listbox-indicator" }, {
255
+ default: P(() => [_(e, {
605
256
  icon: "check",
606
257
  size: 14
607
258
  })]),
@@ -618,11 +269,11 @@ var mn = [
618
269
  _: 1
619
270
  }, 8, ["modelValue"])]));
620
271
  }
621
- }), [["__scopeId", "data-v-14e1dc47"]]);
272
+ }), [["__scopeId", "data-v-b968d12b"]]);
622
273
  BigInt64Array, BigUint64Array;
623
274
  //#endregion
624
275
  //#region ../shared/src/formatNumber.ts
625
- var Cn = (/* @__PURE__ */ Y(((e) => {
276
+ var Ie = (/* @__PURE__ */ X(((e) => {
626
277
  (function() {
627
278
  var t = {
628
279
  not_string: /[^s]/,
@@ -749,7 +400,7 @@ var Cn = (/* @__PURE__ */ Y(((e) => {
749
400
  };
750
401
  }));
751
402
  })();
752
- })))(), wn = new Set([
403
+ })))(), Le = new Set([
753
404
  "plain",
754
405
  "localized",
755
406
  "percent",
@@ -757,26 +408,26 @@ var Cn = (/* @__PURE__ */ Y(((e) => {
757
408
  "scientific",
758
409
  "engineering"
759
410
  ]);
760
- function Tn(e) {
761
- return wn.has(e);
411
+ function Re(e) {
412
+ return Le.has(e);
762
413
  }
763
- function En(e) {
414
+ function ze(e) {
764
415
  let t = e.indexOf(":");
765
- if (t === -1) return Tn(e) ? {
416
+ if (t === -1) return Re(e) ? {
766
417
  preset: e,
767
418
  digits: void 0
768
419
  } : null;
769
420
  let n = e.slice(0, t), r = e.slice(t + 1);
770
- if (!Tn(n) || !/^\d+$/.test(r)) return null;
421
+ if (!Re(n) || !/^\d+$/.test(r)) return null;
771
422
  let i = Number(r);
772
423
  return i > 100 ? null : {
773
424
  preset: n,
774
425
  digits: i
775
426
  };
776
427
  }
777
- var Dn = 20;
778
- function On(e, t, n) {
779
- let r = n === void 0 ? { maximumFractionDigits: Dn } : {
428
+ var Be = 20;
429
+ function Ve(e, t, n) {
430
+ let r = n === void 0 ? { maximumFractionDigits: Be } : {
780
431
  minimumFractionDigits: n,
781
432
  maximumFractionDigits: n
782
433
  };
@@ -801,48 +452,46 @@ function On(e, t, n) {
801
452
  }).format(e);
802
453
  }
803
454
  }
804
- function kn(e, t) {
455
+ function He(e, t) {
805
456
  if (!Number.isFinite(e) || t === void 0) return String(e);
806
457
  if (typeof t == "function") return t(e);
807
- if (t.includes("%")) return (0, Cn.sprintf)(t, e);
808
- let n = En(t);
458
+ if (t.includes("%")) return (0, Ie.sprintf)(t, e);
459
+ let n = ze(t);
809
460
  if (!n) {
810
- let e = [...wn].join(", ");
461
+ let e = [...Le].join(", ");
811
462
  throw Error(`formatNumber: invalid format ${JSON.stringify(t)}. Expected one of ${e} (optionally with ":N" digits), a printf format string containing "%", or a function.`);
812
463
  }
813
- return On(e, n.preset, n.digits);
464
+ return Ve(e, n.preset, n.digits);
814
465
  }
815
466
  //#endregion
816
467
  //#region src/NumberInput/NumberInput.vue?vue&type=script&setup=true&lang.ts
817
- var An = {
468
+ var Ue = {
818
469
  key: 1,
819
470
  class: "input-wrapper"
820
- }, jn = [
471
+ }, We = [
821
472
  "inputmode",
822
473
  "placeholder",
474
+ "aria-label",
823
475
  "aria-invalid",
824
476
  "aria-required",
825
477
  "required"
826
- ], Mn = {
478
+ ], Ge = {
827
479
  key: 0,
828
480
  class: "input-suffix"
829
- }, Nn = {
481
+ }, Ke = {
830
482
  key: 2,
831
483
  class: "input-error",
832
484
  role: "alert"
833
- }, Pn = {
485
+ }, qe = {
834
486
  key: 3,
835
487
  class: "slider-container"
836
- }, Fn = { class: "slider-current" }, In = { class: "slider-labels" }, Ln = /* @__PURE__ */ e(/* @__PURE__ */ p({
488
+ }, Je = { class: "slider-current" }, Ye = { class: "slider-labels" }, Xe = /* @__PURE__ */ l(/* @__PURE__ */ y({
837
489
  __name: "NumberInput",
838
- props: /* @__PURE__ */ h({
839
- label: {},
840
- hideLabel: { type: Boolean },
490
+ props: /* @__PURE__ */ b({
841
491
  placeholder: {},
842
492
  step: {},
843
493
  min: {},
844
494
  max: {},
845
- hint: {},
846
495
  percent: { type: Boolean },
847
496
  slider: { type: Boolean },
848
497
  live: { type: Boolean },
@@ -850,7 +499,11 @@ var An = {
850
499
  required: { type: Boolean },
851
500
  decimals: {},
852
501
  format: { type: [String, Function] },
853
- sliderDisplay: { type: Function }
502
+ sliderDisplay: { type: Function },
503
+ label: {},
504
+ hideLabel: { type: Boolean },
505
+ ariaLabel: {},
506
+ hint: {}
854
507
  }, {
855
508
  modelValue: {},
856
509
  modelModifiers: {},
@@ -868,96 +521,96 @@ var An = {
868
521
  "update:upper"
869
522
  ],
870
523
  setup(e) {
871
- let t = D(e, "modelValue"), n = D(e, "range"), r = D(e, "lower"), f = D(e, "upper"), p = e;
872
- function h(e) {
524
+ let t = j(e, "modelValue"), r = j(e, "range"), i = j(e, "lower"), a = j(e, "upper"), o = e;
525
+ function s(e) {
873
526
  return Array.isArray(e) && e.length === 2;
874
527
  }
875
- let g = m()?.vnode.props, v = !!g?.["onUpdate:range"] || !!g?.["onUpdate:lower"] || !!g?.["onUpdate:upper"] || n.value !== void 0 || r.value !== void 0 || f.value !== void 0, y = a(() => !!p.slider || v);
876
- ee(() => {
877
- v && g?.["onUpdate:modelValue"] && console.warn("[NumberInput] In range mode, the default `v-model` is unused. Bind `v-model:range` or `v-model:lower`/`v-model:upper` instead.");
528
+ let c = ee()?.vnode.props, l = !!c?.["onUpdate:range"] || !!c?.["onUpdate:lower"] || !!c?.["onUpdate:upper"] || r.value !== void 0 || i.value !== void 0 || a.value !== void 0, v = d(() => !!o.slider || l);
529
+ ne(() => {
530
+ l && c?.["onUpdate:modelValue"] && console.warn("[NumberInput] In range mode, the default `v-model` is unused. Bind `v-model:range` or `v-model:lower`/`v-model:upper` instead.");
878
531
  });
879
- let C = a(() => p.min ?? (p.percent, 0)), M = a(() => p.max ?? (p.percent ? 1 : 100)), ne = a(() => p.step ?? (p.percent ? .01 : 1));
880
- function re(e) {
532
+ let y = d(() => o.min ?? 0), b = d(() => o.max ?? (o.percent ? 1 : 100)), x = d(() => o.step ?? (o.percent ? .01 : 1));
533
+ function te(e) {
881
534
  if (!Number.isFinite(e) || Number.isInteger(e)) return 0;
882
535
  let t = parseFloat(Math.abs(e).toPrecision(12)).toString(), n = t.indexOf(".");
883
536
  if (n !== -1) return t.length - n - 1;
884
537
  let r = t.indexOf("e-");
885
538
  return r === -1 ? 0 : Number(t.slice(r + 2));
886
539
  }
887
- let ie = a(() => p.step == null ? 1 : p.percent ? p.step * 100 : p.step), N = a(() => p.min == null ? p.percent ? 0 : void 0 : p.percent ? p.min * 100 : p.min), P = a(() => p.max == null ? p.percent ? 100 : void 0 : p.percent ? p.max * 100 : p.max), F = a(() => p.numberType === "integer" ? 0 : p.decimals == null ? re(ie.value) : Math.max(0, p.decimals));
888
- function ae(e, t) {
540
+ let C = d(() => o.step == null ? 1 : o.percent ? o.step * 100 : o.step), w = d(() => o.min == null ? o.percent ? 0 : void 0 : o.percent ? o.min * 100 : o.min), O = d(() => o.max == null ? o.percent ? 100 : void 0 : o.percent ? o.max * 100 : o.max), L = d(() => o.numberType === "integer" ? 0 : o.decimals == null ? te(C.value) : Math.max(0, o.decimals));
541
+ function ie(e, t) {
889
542
  let n = 10 ** t;
890
543
  return Math.round(e * n) / n;
891
544
  }
892
- function I(e) {
545
+ function R(e) {
893
546
  if (e == null) return "";
894
- let t = p.format ?? p.sliderDisplay;
895
- if (t !== void 0) return kn(e, t);
896
- let n = F.value;
897
- return p.percent ? (e * 100).toFixed(n) + "%" : e.toLocaleString("en-US", {
547
+ let t = o.format ?? o.sliderDisplay;
548
+ if (t !== void 0) return He(e, t);
549
+ let n = L.value;
550
+ return o.percent ? (e * 100).toFixed(n) + "%" : e.toLocaleString("en-US", {
898
551
  minimumFractionDigits: n,
899
552
  maximumFractionDigits: n
900
553
  });
901
554
  }
902
- function L(e) {
903
- return e == null || !p.percent ? e : ae(e * 100, F.value);
555
+ function z(e) {
556
+ return e == null || !o.percent ? e : ie(e * 100, L.value);
904
557
  }
905
- function R(e) {
906
- return p.percent ? e / 100 : e;
558
+ function B(e) {
559
+ return o.percent ? e / 100 : e;
907
560
  }
908
- function oe(e) {
909
- if (p.numberType !== "integer") return e;
910
- let t = L(e);
911
- return t == null ? e : R(Math.trunc(t));
561
+ function ae(e) {
562
+ if (o.numberType !== "integer") return e;
563
+ let t = z(e);
564
+ return t == null ? e : B(Math.trunc(t));
912
565
  }
913
- function se(e) {
566
+ function oe(e) {
914
567
  return e == null ? "" : e.toLocaleString("en-US");
915
568
  }
916
- function z(e) {
569
+ function V(e) {
917
570
  if (e == null) return "";
918
- if (p.format !== void 0) return kn(e, p.format);
919
- let t = F.value;
571
+ if (o.format !== void 0) return He(e, o.format);
572
+ let t = L.value;
920
573
  if (t > 0) return e.toLocaleString("en-US", {
921
574
  minimumFractionDigits: t,
922
575
  maximumFractionDigits: t
923
576
  });
924
- let n = se(e);
925
- return p.numberType === "float" && Number.isInteger(e) ? n + ".0" : n;
577
+ let n = oe(e);
578
+ return o.numberType === "float" && Number.isInteger(e) ? n + ".0" : n;
926
579
  }
927
- function B(e) {
580
+ function H(e) {
928
581
  return e.replace(/,/g, "");
929
582
  }
930
- function fe() {
931
- if (v) {
932
- let e = n.value, t = r.value ?? e?.[0], i = f.value ?? e?.[1];
933
- return t !== void 0 || i !== void 0 ? [t ?? C.value, i ?? M.value] : void 0;
583
+ function se() {
584
+ if (l) {
585
+ let e = r.value, t = i.value ?? e?.[0], n = a.value ?? e?.[1];
586
+ return t !== void 0 || n !== void 0 ? [t ?? y.value, n ?? b.value] : void 0;
934
587
  }
935
588
  return t.value;
936
589
  }
937
- let V = fe(), H = x(z(L(typeof V == "number" ? V : void 0)));
938
- function U(e) {
939
- return v ? h(e) ? [e[0], e[1]] : [C.value, M.value] : typeof e == "number" ? [e] : [C.value];
590
+ let U = se(), W = E(V(z(typeof U == "number" ? U : void 0)));
591
+ function G(e) {
592
+ return l ? s(e) ? [e[0], e[1]] : [y.value, b.value] : typeof e == "number" ? [e] : [y.value];
940
593
  }
941
- let W = x(U(V)), G = x();
942
- k([
594
+ let K = E(G(U)), q = E();
595
+ N([
943
596
  t,
944
- n,
945
597
  r,
946
- f
598
+ i,
599
+ a
947
600
  ], () => {
948
- let e = fe();
949
- !v && !h(e) && (H.value = z(L(e))), W.value = U(e), G.value = J(e);
601
+ let e = se();
602
+ !l && !s(e) && (W.value = V(z(e))), K.value = G(e), q.value = X(e);
950
603
  });
951
- let pe = /[^0-9,.\-+eE]/g;
952
- function me(e) {
953
- let t = e.target, n = B(t.value);
604
+ let fe = /[^0-9,.\-+eE]/g;
605
+ function pe(e) {
606
+ let t = e.target, n = H(t.value);
954
607
  if (n === "" || n === "-" || n.endsWith(".") || n.includes(".") && n.endsWith("0")) return;
955
608
  let r = Number(n);
956
609
  if (Number.isNaN(r)) return;
957
- let i = se(r);
610
+ let i = oe(r);
958
611
  if (i === t.value) return;
959
612
  let a = t.selectionStart ?? 0, o = (t.value.slice(0, a).match(/,/g) || []).length;
960
- H.value = i, requestAnimationFrame(() => {
613
+ W.value = i, requestAnimationFrame(() => {
961
614
  let e = a - o, n = 0, r = 0;
962
615
  for (let t = 0; t < i.length; t++) if (i[t] !== "," && r++, r >= e) {
963
616
  n = t + 1;
@@ -966,118 +619,120 @@ var An = {
966
619
  r < e && (n = i.length), t.setSelectionRange(n, n);
967
620
  });
968
621
  }
622
+ function me() {
623
+ if (Z(), W.value.trim() === "") return;
624
+ let e = Number(H(W.value));
625
+ Number.isNaN(e) || (W.value = V(e));
626
+ }
627
+ let J = null;
969
628
  function he() {
970
- if (Y(), H.value.trim() === "") return;
971
- let e = Number(B(H.value));
972
- Number.isNaN(e) || (H.value = z(e));
629
+ !o.live || v.value || (J && clearTimeout(J), J = setTimeout(Z, 300));
973
630
  }
974
- let K = null;
975
631
  function ge() {
976
- !p.live || y.value || (K && clearTimeout(K), K = setTimeout(Y, 300));
632
+ !o.live || v.value || (J && clearTimeout(J), Z());
977
633
  }
978
- function _e() {
979
- !p.live || y.value || (K && clearTimeout(K), Y());
634
+ function Y(e) {
635
+ let t = z(e);
636
+ if (w.value != null && t < w.value) return `Min ${w.value}${o.percent ? "%" : ""}`;
637
+ if (O.value != null && t > O.value) return `Max ${O.value}${o.percent ? "%" : ""}`;
980
638
  }
981
- function q(e) {
982
- let t = L(e);
983
- if (N.value != null && t < N.value) return `Min ${N.value}${p.percent ? "%" : ""}`;
984
- if (P.value != null && t > P.value) return `Max ${P.value}${p.percent ? "%" : ""}`;
985
- }
986
- function J(e) {
987
- if (e == null) return p.required ? "Required" : void 0;
988
- if (h(e)) {
989
- let t = q(e[0]);
639
+ function X(e) {
640
+ if (e == null) return o.required ? "Required" : void 0;
641
+ if (s(e)) {
642
+ let t = Y(e[0]);
990
643
  if (t) return `${t} (lower)`;
991
- let n = q(e[1]);
644
+ let n = Y(e[1]);
992
645
  return n ? `${n} (upper)` : void 0;
993
646
  }
994
- return q(e);
647
+ return Y(e);
995
648
  }
996
- function Y() {
649
+ function Z() {
997
650
  let e = t.value;
998
- if (H.value.trim() === "") {
999
- t.value = void 0, W.value = U(void 0), G.value = J(void 0);
651
+ if (W.value.trim() === "") {
652
+ t.value = void 0, K.value = G(void 0), q.value = X(void 0);
1000
653
  return;
1001
654
  }
1002
- let n = H.value.replace(pe, "");
655
+ let n = W.value.replace(fe, "");
1003
656
  if (!/\d/.test(n)) {
1004
- H.value = z(L(e)), G.value = J(e);
657
+ W.value = V(z(e)), q.value = X(e);
1005
658
  return;
1006
659
  }
1007
- n !== H.value && (H.value = n);
1008
- let r = Number(B(n));
660
+ n !== W.value && (W.value = n);
661
+ let r = Number(H(n));
1009
662
  if (Number.isNaN(r)) return;
1010
- p.numberType === "integer" && (r = Math.trunc(r), H.value = z(r));
1011
- let i = R(r), a = J(i);
1012
- G.value = a, !a && (t.value = i, W.value = [i]);
663
+ o.numberType === "integer" && (r = Math.trunc(r), W.value = V(r));
664
+ let i = B(r), a = X(i);
665
+ q.value = a, !a && (t.value = i, K.value = [i]);
1013
666
  }
1014
- function ve(e, i) {
1015
- let a = e.map(oe);
1016
- W.value = a, v || (H.value = z(L(a[0]))), i && (v ? (n.value = [a[0], a[1]], r.value = a[0], f.value = a[1]) : t.value = a[0]);
667
+ function _e(e, n) {
668
+ let o = e.map(ae);
669
+ K.value = o, l || (W.value = V(z(o[0]))), n && (l ? (r.value = [o[0], o[1]], i.value = o[0], a.value = o[1]) : t.value = o[0]);
1017
670
  }
1018
- function ye(e) {
1019
- if (p.label) return v ? e === 0 ? `${p.label} (lower)` : `${p.label} (upper)` : p.label;
671
+ function Q(e) {
672
+ if (o.label) return l ? e === 0 ? `${o.label} (lower)` : `${o.label} (upper)` : o.label;
1020
673
  }
1021
- function X(e) {
1022
- e && ve(e, !!p.live);
674
+ function ve(e) {
675
+ e && _e(e, !!o.live);
1023
676
  }
1024
- function be(e) {
1025
- e && ve(e, !0);
677
+ function ye(e) {
678
+ e && _e(e, !0);
1026
679
  }
1027
- function xe(e, n) {
680
+ function be(e, n) {
1028
681
  e.preventDefault();
1029
- let r = Number(B(H.value)), i = (Number.isNaN(r) ? 0 : r) + ie.value * (e.shiftKey ? 10 : 1) * n;
1030
- p.numberType === "integer" && (i = Math.trunc(i)), N.value != null && (i = Math.max(i, N.value)), P.value != null && (i = Math.min(i, P.value)), H.value = z(i);
1031
- let a = R(i);
1032
- t.value = a, W.value = [a];
682
+ let r = Number(H(W.value)), i = (Number.isNaN(r) ? 0 : r) + C.value * (e.shiftKey ? 10 : 1) * n;
683
+ o.numberType === "integer" && (i = Math.trunc(i)), w.value != null && (i = Math.max(i, w.value)), O.value != null && (i = Math.min(i, O.value)), W.value = V(i);
684
+ let a = B(i);
685
+ t.value = a, K.value = [a];
1033
686
  }
1034
- return (e, t) => (b(), o(w(p.label ? "label" : "div"), { class: _(p.label ? "input-label" : void 0) }, {
1035
- default: A(() => [
1036
- p.label ? (b(), c("span", {
687
+ return (e, t) => (T(), f(re(o.label ? "label" : "div"), { class: S(o.label ? "cfasim-input-label" : void 0) }, {
688
+ default: P(() => [
689
+ o.label ? (T(), m("span", {
1037
690
  key: 0,
1038
- class: _(["input-label-row", { "visually-hidden": p.hideLabel }])
1039
- }, [u(T(p.label) + " ", 1), p.hint && !p.hideLabel ? (b(), o($, {
691
+ class: S(["cfasim-input-label-row", { "visually-hidden": o.hideLabel }])
692
+ }, [g(k(o.label) + " ", 1), o.hint && !o.hideLabel ? (T(), f(n, {
1040
693
  key: 0,
1041
- text: p.hint
1042
- }, null, 8, ["text"])) : s("", !0)], 2)) : s("", !0),
1043
- y.value ? s("", !0) : (b(), c("span", An, [te(l("input", {
694
+ text: o.hint
695
+ }, null, 8, ["text"])) : p("", !0)], 2)) : p("", !0),
696
+ v.value ? p("", !0) : (T(), m("span", Ue, [F(h("input", {
1044
697
  type: "text",
1045
- inputmode: p.numberType === "integer" ? "numeric" : "decimal",
1046
- "onUpdate:modelValue": t[0] ||= (e) => H.value = e,
1047
- placeholder: p.placeholder,
1048
- "aria-invalid": !!G.value,
1049
- "aria-required": p.required || void 0,
1050
- required: p.required,
1051
- onBlur: he,
698
+ class: "cfasim-input",
699
+ inputmode: o.numberType === "integer" ? "numeric" : "decimal",
700
+ "onUpdate:modelValue": t[0] ||= (e) => W.value = e,
701
+ placeholder: o.placeholder,
702
+ "aria-label": o.label ? void 0 : o.ariaLabel,
703
+ "aria-invalid": !!q.value,
704
+ "aria-required": o.required || void 0,
705
+ required: o.required,
706
+ onBlur: me,
1052
707
  onKeydown: [
1053
- j(Y, ["enter"]),
1054
- t[1] ||= j((e) => xe(e, 1), ["up"]),
1055
- t[2] ||= j((e) => xe(e, -1), ["down"])
708
+ I(Z, ["enter"]),
709
+ t[1] ||= I((e) => be(e, 1), ["up"]),
710
+ t[2] ||= I((e) => be(e, -1), ["down"])
1056
711
  ],
1057
712
  onInput: t[3] ||= (e) => {
1058
- me(e), ge();
713
+ pe(e), he();
1059
714
  },
1060
- onChange: _e
1061
- }, null, 40, jn), [[O, H.value]]), p.percent ? (b(), c("span", Mn, "%")) : s("", !0)])),
1062
- G.value ? (b(), c("span", Nn, T(G.value), 1)) : s("", !0),
1063
- y.value ? (b(), c("div", Pn, [d(E(le), {
715
+ onChange: ge
716
+ }, null, 40, We), [[M, W.value]]), o.percent ? (T(), m("span", Ge, "%")) : p("", !0)])),
717
+ q.value ? (T(), m("span", Ke, k(q.value), 1)) : p("", !0),
718
+ v.value ? (T(), m("div", qe, [_(A(le), {
1064
719
  class: "slider-root",
1065
- "model-value": W.value,
1066
- min: C.value,
1067
- max: M.value,
1068
- step: ne.value,
1069
- "onUpdate:modelValue": X,
1070
- onValueCommit: be
720
+ "model-value": K.value,
721
+ min: y.value,
722
+ max: b.value,
723
+ step: x.value,
724
+ "onUpdate:modelValue": ve,
725
+ onValueCommit: ye
1071
726
  }, {
1072
- default: A(() => [d(E(de), { class: "slider-track" }, {
1073
- default: A(() => [d(E(ce), { class: "slider-range" })]),
727
+ default: P(() => [_(A(de), { class: "slider-track" }, {
728
+ default: P(() => [_(A(ce), { class: "slider-range" })]),
1074
729
  _: 1
1075
- }), (b(!0), c(i, null, S(W.value, (e, t) => (b(), o(E(ue), {
730
+ }), (T(!0), m(u, null, D(K.value, (e, t) => (T(), f(A(ue), {
1076
731
  key: t,
1077
732
  class: "slider-thumb",
1078
- "aria-label": ye(t)
733
+ "aria-label": Q(t)
1079
734
  }, {
1080
- default: A(() => [l("span", Fn, T(I(e)), 1)]),
735
+ default: P(() => [h("span", Je, k(R(e)), 1)]),
1081
736
  _: 2
1082
737
  }, 1032, ["aria-label"]))), 128))]),
1083
738
  _: 1
@@ -1086,26 +741,26 @@ var An = {
1086
741
  "min",
1087
742
  "max",
1088
743
  "step"
1089
- ]), l("div", In, [l("span", null, T(I(C.value)), 1), l("span", null, T(I(M.value)), 1)])])) : s("", !0)
744
+ ]), h("div", Ye, [h("span", null, k(R(y.value)), 1), h("span", null, k(R(b.value)), 1)])])) : p("", !0)
1090
745
  ]),
1091
746
  _: 1
1092
747
  }, 8, ["class"]));
1093
748
  }
1094
- }), [["__scopeId", "data-v-b123853e"]]), Rn = ["data-size", "aria-label"], zn = /* @__PURE__ */ p({
749
+ }), [["__scopeId", "data-v-a72dc3eb"]]), Ze = ["data-size", "aria-label"], Qe = /* @__PURE__ */ y({
1095
750
  __name: "Spinner",
1096
751
  props: {
1097
752
  size: { default: "sm" },
1098
753
  label: {}
1099
754
  },
1100
755
  setup(e) {
1101
- return (t, n) => (b(), c("span", {
756
+ return (t, n) => (T(), m("span", {
1102
757
  class: "Spinner",
1103
758
  "data-size": e.size,
1104
759
  role: "status",
1105
760
  "aria-label": e.label ?? "Loading"
1106
- }, null, 8, Rn));
761
+ }, null, 8, Ze));
1107
762
  }
1108
- }), Bn = /* @__PURE__ */ p({
763
+ }), $e = /* @__PURE__ */ y({
1109
764
  __name: "ParamEditor",
1110
765
  props: {
1111
766
  value: {},
@@ -1116,12 +771,12 @@ var An = {
1116
771
  },
1117
772
  emits: ["apply"],
1118
773
  setup(e) {
1119
- let t = f({
1120
- loader: () => import("./ParamEditorImpl-BD3kPsrQ.js"),
1121
- loadingComponent: zn,
774
+ let t = v({
775
+ loader: () => import("./ParamEditorImpl-D0xZTyAN.js"),
776
+ loadingComponent: Qe,
1122
777
  delay: 100
1123
778
  });
1124
- return (n, r) => (b(), o(E(t), {
779
+ return (n, r) => (T(), f(A(t), {
1125
780
  value: e.value,
1126
781
  format: e.format,
1127
782
  height: e.height,
@@ -1136,9 +791,9 @@ var An = {
1136
791
  "filename"
1137
792
  ]));
1138
793
  }
1139
- }), Vn = ["data-collapsed"], Hn = { class: "SidebarRail" }, Un = ["inert"], Wn = { class: "SidebarScroll" }, Gn = { class: "SidebarHeader" }, Kn = ["inert"], qn = { class: "Main" }, Jn = { class: "TabsBar" }, Yn = { class: "TabsBarEnd" }, Xn = { class: "MainScroll" }, Zn = { class: "MainContent" }, Qn = { class: "Topbar" }, $n = { class: "TopbarEnd" }, er = { class: "MainScroll" }, tr = { class: "MainContent" }, nr = /* @__PURE__ */ e(/* @__PURE__ */ p({
794
+ }), et = ["data-collapsed"], tt = { class: "SidebarRail" }, nt = ["inert"], rt = { class: "SidebarScroll" }, it = { class: "SidebarHeader" }, at = ["inert"], ot = { class: "Main" }, st = { class: "TabsBar" }, ct = { class: "TabsBarEnd" }, lt = { class: "MainScroll" }, ut = { class: "MainContent" }, dt = { class: "Topbar" }, ft = { class: "TopbarEnd" }, pt = { class: "MainScroll" }, mt = { class: "MainContent" }, ht = /* @__PURE__ */ l(/* @__PURE__ */ y({
1140
795
  __name: "SidebarLayout",
1141
- props: /* @__PURE__ */ h({
796
+ props: /* @__PURE__ */ b({
1142
797
  hideTopbar: { type: Boolean },
1143
798
  tabs: {}
1144
799
  }, {
@@ -1146,89 +801,89 @@ var An = {
1146
801
  tabModifiers: {}
1147
802
  }),
1148
803
  emits: ["update:tab"],
1149
- setup(e) {
1150
- let t = m()?.appContext.config.globalProperties, n = t?.$router, r = e, f = D(e, "tab"), p = window.matchMedia("(max-width: 767px)"), h = x(p.matches), g = x(p.matches);
1151
- function _(e) {
1152
- h.value = e.matches, g.value = e.matches;
804
+ setup(t) {
805
+ let n = ee()?.appContext.config.globalProperties, r = n?.$router, i = t, a = j(t, "tab"), o = window.matchMedia("(max-width: 767px)"), s = E(o.matches), c = E(o.matches);
806
+ function l(e) {
807
+ s.value = e.matches, c.value = e.matches;
1153
808
  }
1154
- ee(() => {
1155
- p.addEventListener("change", _);
1156
- }), y(() => {
1157
- p.removeEventListener("change", _);
809
+ ne(() => {
810
+ o.addEventListener("change", l);
811
+ }), w(() => {
812
+ o.removeEventListener("change", l);
1158
813
  });
1159
814
  function v() {
1160
- g.value = !g.value;
815
+ c.value = !c.value;
1161
816
  }
1162
- let w = a(() => !!n && r.tabs?.some((e) => e.to)), O = a({
817
+ let y = d(() => !!r && i.tabs?.some((e) => e.to)), b = d({
1163
818
  get() {
1164
- return f.value ?? r.tabs?.[0]?.value;
819
+ return a.value ?? i.tabs?.[0]?.value;
1165
820
  },
1166
821
  set(e) {
1167
- if (e && (f.value = e, w.value && n)) {
1168
- let t = r.tabs?.find((t) => t.value === e);
1169
- t?.to && n.push(t.to);
822
+ if (e && (a.value = e, y.value && r)) {
823
+ let t = i.tabs?.find((t) => t.value === e);
824
+ t?.to && r.push(t.to);
1170
825
  }
1171
826
  }
1172
827
  });
1173
- return t && k(() => t.$route?.path, (e) => {
1174
- if (!e || !w.value) return;
1175
- let t = r.tabs?.find((t) => t.to === e);
1176
- t && (f.value = t.value);
1177
- }, { immediate: !0 }), (t, n) => (b(), c("div", {
828
+ return n && N(() => n.$route?.path, (e) => {
829
+ if (!e || !y.value) return;
830
+ let t = i.tabs?.find((t) => t.to === e);
831
+ t && (a.value = t.value);
832
+ }, { immediate: !0 }), (n, r) => (T(), m("div", {
1178
833
  class: "SidebarLayout",
1179
- "data-collapsed": g.value
1180
- }, [l("div", Hn, [l("aside", {
834
+ "data-collapsed": c.value
835
+ }, [h("div", tt, [h("aside", {
1181
836
  class: "Sidebar",
1182
- inert: g.value
1183
- }, [l("div", Wn, [l("div", Gn, [l("button", {
837
+ inert: c.value
838
+ }, [h("div", rt, [h("div", it, [h("button", {
1184
839
  type: "button",
1185
840
  class: "Toggle",
1186
841
  "aria-label": "Collapse sidebar",
1187
842
  title: "Collapse sidebar",
1188
843
  onClick: v
1189
- }, [d(Q, {
844
+ }, [_(e, {
1190
845
  icon: "keyboard_double_arrow_left",
1191
846
  size: "sm"
1192
- })])]), C(t.$slots, "sidebar", {}, void 0, !0)])], 8, Un), l("button", {
847
+ })])]), O(n.$slots, "sidebar", {}, void 0, !0)])], 8, nt), h("button", {
1193
848
  type: "button",
1194
849
  class: "Toggle Toggle--expand",
1195
- inert: !g.value,
850
+ inert: !c.value,
1196
851
  "aria-label": "Expand sidebar",
1197
852
  title: "Expand sidebar",
1198
853
  onClick: v
1199
- }, [d(Q, {
854
+ }, [_(e, {
1200
855
  icon: "keyboard_double_arrow_right",
1201
856
  size: "sm"
1202
- })], 8, Kn)]), l("main", qn, [e.tabs?.length ? (b(), o(E(U), {
857
+ })], 8, at)]), h("main", ot, [t.tabs?.length ? (T(), f(A(me), {
1203
858
  key: 0,
1204
- "model-value": O.value,
859
+ "model-value": b.value,
1205
860
  class: "TabsLayout",
1206
- "onUpdate:modelValue": n[0] ||= (e) => O.value = e
861
+ "onUpdate:modelValue": r[0] ||= (e) => b.value = e
1207
862
  }, {
1208
- default: A(() => [l("div", Jn, [
1209
- h.value && g.value ? (b(), c("button", {
863
+ default: P(() => [h("div", st, [
864
+ s.value && c.value ? (T(), m("button", {
1210
865
  key: 0,
1211
866
  type: "button",
1212
867
  class: "Toggle",
1213
868
  "aria-label": "Expand sidebar",
1214
869
  title: "Expand sidebar",
1215
870
  onClick: v
1216
- }, [d(Q, {
871
+ }, [_(e, {
1217
872
  icon: "keyboard_double_arrow_right",
1218
873
  size: "sm"
1219
- })])) : s("", !0),
1220
- d(E(H), {
874
+ })])) : p("", !0),
875
+ _(A(pe), {
1221
876
  class: "TabsList",
1222
877
  "aria-label": "Tabs"
1223
878
  }, {
1224
- default: A(() => [(b(!0), c(i, null, S(e.tabs, (e) => (b(), o(E(W), {
879
+ default: P(() => [(T(!0), m(u, null, D(t.tabs, (e) => (T(), f(A(J), {
1225
880
  key: e.value,
1226
881
  value: e.value,
1227
882
  class: "TabsTrigger"
1228
883
  }, {
1229
- default: A(() => [u(T(e.label), 1)]),
884
+ default: P(() => [g(k(e.label), 1)]),
1230
885
  _: 2
1231
- }, 1032, ["value"]))), 128)), d(E(V), {
886
+ }, 1032, ["value"]))), 128)), _(A(fe), {
1232
887
  class: "TabsIndicator",
1233
888
  style: {
1234
889
  width: "var(--reka-tabs-indicator-size)",
@@ -1237,30 +892,31 @@ var An = {
1237
892
  })]),
1238
893
  _: 1
1239
894
  }),
1240
- l("div", Yn, [C(t.$slots, "topbar", {}, void 0, !0), e.hideTopbar ? s("", !0) : (b(), o(gn, { key: 0 }))])
1241
- ]), l("div", Xn, [l("div", Zn, [C(t.$slots, "default", {}, void 0, !0)])])]),
895
+ h("div", ct, [O(n.$slots, "topbar", {}, void 0, !0), t.hideTopbar ? p("", !0) : (T(), f(ke, { key: 0 }))])
896
+ ]), h("div", lt, [h("div", ut, [O(n.$slots, "default", {}, void 0, !0)])])]),
1242
897
  _: 3
1243
- }, 8, ["model-value"])) : (b(), c(i, { key: 1 }, [l("div", Qn, [h.value && g.value ? (b(), c("button", {
898
+ }, 8, ["model-value"])) : (T(), m(u, { key: 1 }, [h("div", dt, [s.value && c.value ? (T(), m("button", {
1244
899
  key: 0,
1245
900
  type: "button",
1246
901
  class: "Toggle",
1247
902
  "aria-label": "Expand sidebar",
1248
903
  title: "Expand sidebar",
1249
904
  onClick: v
1250
- }, [d(Q, {
905
+ }, [_(e, {
1251
906
  icon: "keyboard_double_arrow_right",
1252
907
  size: "sm"
1253
- })])) : s("", !0), l("div", $n, [C(t.$slots, "topbar", {}, void 0, !0), e.hideTopbar ? s("", !0) : (b(), o(gn, { key: 0 }))])]), l("div", er, [l("div", tr, [C(t.$slots, "default", {}, void 0, !0)])])], 64))])], 8, Vn));
908
+ })])) : p("", !0), h("div", ft, [O(n.$slots, "topbar", {}, void 0, !0), t.hideTopbar ? p("", !0) : (T(), f(ke, { key: 0 }))])]), h("div", pt, [h("div", mt, [O(n.$slots, "default", {}, void 0, !0)])])], 64))])], 8, et));
1254
909
  }
1255
- }), [["__scopeId", "data-v-d8602726"]]), rr = {
910
+ }), [["__scopeId", "data-v-d8602726"]]), gt = {
1256
911
  key: 0,
1257
- class: "input-label"
1258
- }, ir = ["placeholder"], ar = { key: 1 }, or = ["placeholder"], sr = /* @__PURE__ */ e(/* @__PURE__ */ p({
912
+ class: "cfasim-input-label"
913
+ }, _t = ["placeholder"], vt = { key: 1 }, yt = ["placeholder", "aria-label"], bt = /* @__PURE__ */ y({
1259
914
  __name: "TextInput",
1260
- props: /* @__PURE__ */ h({
915
+ props: /* @__PURE__ */ b({
916
+ placeholder: {},
1261
917
  label: {},
1262
918
  hideLabel: { type: Boolean },
1263
- placeholder: {},
919
+ ariaLabel: {},
1264
920
  hint: {}
1265
921
  }, {
1266
922
  modelValue: {},
@@ -1268,34 +924,37 @@ var An = {
1268
924
  }),
1269
925
  emits: ["update:modelValue"],
1270
926
  setup(e) {
1271
- let t = D(e, "modelValue"), n = x(t.value);
1272
- k(t, (e) => {
1273
- n.value = e;
927
+ let t = j(e, "modelValue"), r = E(t.value);
928
+ N(t, (e) => {
929
+ r.value = e;
1274
930
  });
1275
- function r() {
1276
- t.value = n.value;
931
+ function i() {
932
+ t.value = r.value;
1277
933
  }
1278
- let i = e;
1279
- return (e, t) => i.label ? (b(), c("label", rr, [l("span", { class: _(["input-label-row", { "visually-hidden": i.hideLabel }]) }, [u(T(i.label) + " ", 1), i.hint && !i.hideLabel ? (b(), o($, {
934
+ let a = e;
935
+ return (e, t) => a.label ? (T(), m("label", gt, [h("span", { class: S(["cfasim-input-label-row", { "visually-hidden": a.hideLabel }]) }, [g(k(a.label) + " ", 1), a.hint && !a.hideLabel ? (T(), f(n, {
1280
936
  key: 0,
1281
- text: i.hint
1282
- }, null, 8, ["text"])) : s("", !0)], 2), te(l("input", {
937
+ text: a.hint
938
+ }, null, 8, ["text"])) : p("", !0)], 2), F(h("input", {
1283
939
  type: "text",
1284
- "onUpdate:modelValue": t[0] ||= (e) => n.value = e,
1285
- placeholder: i.placeholder,
1286
- onBlur: r,
1287
- onKeydown: j(r, ["enter"])
1288
- }, null, 40, ir), [[O, n.value]])])) : (b(), c("div", ar, [te(l("input", {
940
+ class: "cfasim-input",
941
+ "onUpdate:modelValue": t[0] ||= (e) => r.value = e,
942
+ placeholder: a.placeholder,
943
+ onBlur: i,
944
+ onKeydown: I(i, ["enter"])
945
+ }, null, 40, _t), [[M, r.value]])])) : (T(), m("div", vt, [F(h("input", {
1289
946
  type: "text",
1290
- "onUpdate:modelValue": t[1] ||= (e) => n.value = e,
1291
- placeholder: i.placeholder,
1292
- onBlur: r,
1293
- onKeydown: j(r, ["enter"])
1294
- }, null, 40, or), [[O, n.value]])]));
947
+ class: "cfasim-input",
948
+ "onUpdate:modelValue": t[1] ||= (e) => r.value = e,
949
+ placeholder: a.placeholder,
950
+ "aria-label": a.ariaLabel,
951
+ onBlur: i,
952
+ onKeydown: I(i, ["enter"])
953
+ }, null, 40, yt), [[M, r.value]])]));
1295
954
  }
1296
- }), [["__scopeId", "data-v-3f3d20cc"]]), cr = { class: "toggle" }, lr = ["for"], ur = /* @__PURE__ */ e(/* @__PURE__ */ p({
955
+ }), xt = { class: "toggle" }, St = ["for"], Ct = /* @__PURE__ */ l(/* @__PURE__ */ y({
1297
956
  __name: "Toggle",
1298
- props: /* @__PURE__ */ h({
957
+ props: /* @__PURE__ */ b({
1299
958
  label: {},
1300
959
  hint: {},
1301
960
  disabled: { type: Boolean }
@@ -1305,21 +964,21 @@ var An = {
1305
964
  }),
1306
965
  emits: ["update:modelValue"],
1307
966
  setup(e) {
1308
- let t = D(e, "modelValue"), n = e, r = J();
1309
- return (i, a) => (b(), c("div", cr, [
1310
- l("label", { for: E(r) }, T(e.label), 9, lr),
1311
- n.hint ? (b(), o($, {
967
+ let t = j(e, "modelValue"), r = e, i = Y();
968
+ return (a, o) => (T(), m("div", xt, [
969
+ h("label", { for: A(i) }, k(e.label), 9, St),
970
+ r.hint ? (T(), f(n, {
1312
971
  key: 0,
1313
- text: n.hint
1314
- }, null, 8, ["text"])) : s("", !0),
1315
- d(E(B), {
1316
- id: E(r),
972
+ text: r.hint
973
+ }, null, 8, ["text"])) : p("", !0),
974
+ _(A(K), {
975
+ id: A(i),
1317
976
  modelValue: t.value,
1318
- "onUpdate:modelValue": a[0] ||= (e) => t.value = e,
977
+ "onUpdate:modelValue": o[0] ||= (e) => t.value = e,
1319
978
  disabled: e.disabled,
1320
979
  class: "switch"
1321
980
  }, {
1322
- default: A(() => [d(E(fe), { class: "thumb" })]),
981
+ default: P(() => [_(A(q), { class: "thumb" })]),
1323
982
  _: 1
1324
983
  }, 8, [
1325
984
  "id",
@@ -1328,61 +987,61 @@ var An = {
1328
987
  ])
1329
988
  ]));
1330
989
  }
1331
- }), [["__scopeId", "data-v-9916c71e"]]), dr = { class: "toggle-group-field" }, fr = ["id"], pr = /* @__PURE__ */ e(/* @__PURE__ */ p({
990
+ }), [["__scopeId", "data-v-9916c71e"]]), wt = { class: "toggle-group-field" }, Tt = /* @__PURE__ */ l(/* @__PURE__ */ y({
1332
991
  __name: "ToggleGroup",
1333
- props: /* @__PURE__ */ h({
992
+ props: /* @__PURE__ */ b({
1334
993
  options: {},
1335
994
  multiple: { type: Boolean },
995
+ disabled: { type: Boolean },
996
+ orientation: { default: "horizontal" },
1336
997
  label: {},
1337
998
  hideLabel: { type: Boolean },
1338
999
  ariaLabel: {},
1339
- hint: {},
1340
- disabled: { type: Boolean },
1341
- orientation: { default: "horizontal" }
1000
+ hint: {}
1342
1001
  }, {
1343
1002
  modelValue: {},
1344
1003
  modelModifiers: {}
1345
1004
  }),
1346
1005
  emits: ["update:modelValue"],
1347
1006
  setup(e) {
1348
- let t = D(e, "modelValue"), n = e, r = J(), l = a(() => n.multiple ? "multiple" : "single");
1349
- return (n, a) => (b(), c("div", dr, [e.label ? (b(), c("label", {
1350
- key: 0,
1351
- id: `${E(r)}-label`,
1352
- class: _(["toggle-group-label", { "visually-hidden": e.hideLabel }])
1353
- }, [u(T(e.label) + " ", 1), e.hint && !e.hideLabel ? (b(), o($, {
1354
- key: 0,
1355
- text: e.hint
1356
- }, null, 8, ["text"])) : s("", !0)], 10, fr)) : s("", !0), d(E(pe), {
1007
+ let t = j(e, "modelValue"), n = e, { labelId: r, ariaProps: a } = i(n), s = d(() => n.multiple ? "multiple" : "single");
1008
+ return (n, i) => (T(), m("div", wt, [_(o, {
1009
+ class: "toggle-group-label",
1010
+ label: e.label,
1011
+ "label-id": A(r),
1012
+ "hide-label": e.hideLabel,
1013
+ hint: e.hint
1014
+ }, null, 8, [
1015
+ "label",
1016
+ "label-id",
1017
+ "hide-label",
1018
+ "hint"
1019
+ ]), _(A(ge), x({
1357
1020
  modelValue: t.value,
1358
- "onUpdate:modelValue": a[0] ||= (e) => t.value = e,
1359
- type: l.value,
1021
+ "onUpdate:modelValue": i[0] ||= (e) => t.value = e,
1022
+ type: s.value,
1360
1023
  disabled: e.disabled,
1361
1024
  orientation: e.orientation,
1362
- class: _(["toggle-group", `toggle-group--${e.orientation}`]),
1363
- "aria-labelledby": e.label ? `${E(r)}-label` : void 0,
1364
- "aria-label": e.label ? void 0 : e.ariaLabel
1365
- }, {
1366
- default: A(() => [(b(!0), c(i, null, S(e.options, (e) => (b(), o(E(G), {
1025
+ class: ["toggle-group", `toggle-group--${e.orientation}`]
1026
+ }, A(a)), {
1027
+ default: P(() => [(T(!0), m(u, null, D(e.options, (e) => (T(), f(A(he), {
1367
1028
  key: e.value,
1368
1029
  value: e.value,
1369
1030
  disabled: e.disabled,
1370
1031
  class: "toggle-group-item"
1371
1032
  }, {
1372
- default: A(() => [u(T(e.label), 1)]),
1033
+ default: P(() => [g(k(e.label), 1)]),
1373
1034
  _: 2
1374
1035
  }, 1032, ["value", "disabled"]))), 128))]),
1375
1036
  _: 1
1376
- }, 8, [
1037
+ }, 16, [
1377
1038
  "modelValue",
1378
1039
  "type",
1379
1040
  "disabled",
1380
1041
  "orientation",
1381
- "class",
1382
- "aria-labelledby",
1383
- "aria-label"
1042
+ "class"
1384
1043
  ])]));
1385
1044
  }
1386
- }), [["__scopeId", "data-v-efb7da4d"]]);
1045
+ }), [["__scopeId", "data-v-968e31be"]]);
1387
1046
  //#endregion
1388
- export { n as Box, t as Button, ye as ButtonGroup, xe as Container, Se as Expander, ke as Grid, $ as Hint, Q as Icon, gn as LightDarkToggle, Sn as MultiSelect, Ln as NumberInput, Bn as ParamEditor, r as SelectBox, nr as SidebarLayout, zn as Spinner, sr as TextInput, ur as Toggle, pr as ToggleGroup, Pe as hasIcon, Me as registerIcons };
1047
+ export { r as Box, t as Button, _e as ButtonGroup, ye as Container, be as Expander, De as Grid, n as Hint, e as Icon, ke as LightDarkToggle, Fe as MultiSelect, Xe as NumberInput, $e as ParamEditor, c as SelectBox, ht as SidebarLayout, Qe as Spinner, bt as TextInput, Ct as Toggle, Tt as ToggleGroup, a as hasIcon, s as registerIcons };