@rotki/ui-library 0.1.2 → 0.2.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.
@@ -0,0 +1,2308 @@
1
+ import { defineComponent as $, useCssVars as ze, unref as t, useCssModule as Z, toRefs as se, computed as N, openBlock as c, createElementBlock as _, normalizeClass as v, createElementVNode as z, Fragment as X, createCommentVNode as E, toDisplayString as B, useAttrs as de, mergeProps as le, renderSlot as te, createBlock as Y, createVNode as Q, withCtx as K, createTextVNode as $e, cloneVNode as st, h as Te, inject as Ye, provide as Qe, ref as O, onMounted as _e, watchEffect as ue, toRaw as P, watch as pe, onUnmounted as at, nextTick as oe, useSlots as ye, resolveDynamicComponent as he, withModifiers as Ue, renderList as ce, isRef as lt, Transition as it, normalizeProps as De, guardReactiveProps as Re, createSlots as Ie } from "vue";
2
+ import { Me as f, u as rt, Mf as ve, Mg as be, Mh as ae, Mi as ut, Mj as ct, Mk as dt } from "./index-eb935704.mjs";
3
+ const W = {
4
+ inactive: "inactive",
5
+ active: "active",
6
+ done: "done",
7
+ error: "error",
8
+ warning: "warning",
9
+ info: "info",
10
+ success: "success"
11
+ }, Mt = {
12
+ vertical: "vertical",
13
+ horizontal: "horizontal"
14
+ }, pt = ["aria-valuenow"], _t = ["viewBox"], yt = ["stroke-width"], ft = /* @__PURE__ */ $({
15
+ name: "RuiProgress",
16
+ __name: "Progress",
17
+ props: {
18
+ value: { default: 0 },
19
+ bufferValue: { default: 0 },
20
+ variant: { default: "determinate" },
21
+ color: { default: "inherit" },
22
+ circular: { type: Boolean, default: !1 },
23
+ showLabel: { type: Boolean, default: !1 },
24
+ thickness: { default: 4 },
25
+ size: { default: 32 }
26
+ },
27
+ setup(e) {
28
+ const s = e;
29
+ ze((L) => ({
30
+ "54a5d9d4": t(M),
31
+ "284f2d02": t(i),
32
+ "399567a9": t(y),
33
+ fa8ad720: t(b),
34
+ "53bb3a7c": t(u)
35
+ }));
36
+ const n = Z(), { variant: a, value: o, bufferValue: l, thickness: i, size: M } = se(s), r = N(
37
+ () => Math.max(0, Math.min(f(o) ?? 100, 100))
38
+ ), d = N(() => `${Math.floor(f(r))}%`), u = N(() => -100 + f(r)), y = N(() => `${f(u)}%`), b = N(
39
+ () => `${-100 + Math.max(0, Math.min(f(l) ?? 100, 100))}%`
40
+ ), h = N(
41
+ () => +f(i) * 32 / +f(M)
42
+ ), A = N(() => 40 + f(h));
43
+ return (L, p) => (c(), _("div", {
44
+ class: v([
45
+ t(n).wrapper,
46
+ L.circular ? "inline-flex" : "w-full",
47
+ { [t(n)["has-label"]]: L.showLabel && t(a) !== "indeterminate" }
48
+ ])
49
+ }, [
50
+ z("div", {
51
+ "aria-valuenow": t(o),
52
+ class: v([
53
+ L.circular && t(a) !== "buffer" ? t(n).circular : t(n).progress,
54
+ t(n)[t(a) ?? ""],
55
+ t(n)[L.color ?? ""]
56
+ ]),
57
+ "aria-valuemax": "100",
58
+ "aria-valuemin": "0",
59
+ role: "progressbar"
60
+ }, [
61
+ L.circular && t(a) !== "buffer" ? (c(), _("svg", {
62
+ key: 0,
63
+ viewBox: `0 0 ${t(A)} ${t(A)}`
64
+ }, [
65
+ z("circle", {
66
+ cx: "50%",
67
+ cy: "50%",
68
+ fill: "none",
69
+ r: "20",
70
+ "stroke-width": t(h)
71
+ }, null, 8, yt)
72
+ ], 8, _t)) : (c(), _(X, { key: 1 }, [
73
+ t(a) === "buffer" ? (c(), _("div", {
74
+ key: 0,
75
+ class: v(t(n)["buffer-dots"])
76
+ }, null, 2)) : E("", !0),
77
+ z("div", {
78
+ class: v([t(n).rail, { [t(n)["buffer-rail"]]: t(a) === "buffer" }])
79
+ }, null, 2),
80
+ z("div", {
81
+ class: v(t(n)[t(a) ?? ""])
82
+ }, null, 2)
83
+ ], 64))
84
+ ], 10, pt),
85
+ L.showLabel && t(a) !== "indeterminate" ? (c(), _("div", {
86
+ key: 0,
87
+ class: v(t(n).label)
88
+ }, B(t(d)), 3)) : E("", !0)
89
+ ], 2));
90
+ }
91
+ }), vt = "_wrapper_g0b28_1", gt = "_label_g0b28_4", jt = "_circular_g0b28_7", Lt = "_progress_g0b28_12", Nt = "_rail_g0b28_16", bt = "_determinate_g0b28_19", mt = "_buffer_g0b28_20", Tt = "_indeterminate_g0b28_24", Dt = "_primary_g0b28_36", It = "_secondary_g0b28_47", zt = "_inherit_g0b28_58", ht = "_spin_g0b28_1", xt = {
92
+ wrapper: vt,
93
+ "has-label": "_has-label_g0b28_1",
94
+ label: gt,
95
+ circular: jt,
96
+ progress: Lt,
97
+ rail: Nt,
98
+ determinate: bt,
99
+ buffer: mt,
100
+ indeterminate: Tt,
101
+ "slide-rail": "_slide-rail_g0b28_1",
102
+ "buffer-dots": "_buffer-dots_g0b28_28",
103
+ "buffer-pulse": "_buffer-pulse_g0b28_1",
104
+ "buffer-rail": "_buffer-rail_g0b28_32",
105
+ primary: Dt,
106
+ secondary: It,
107
+ inherit: zt,
108
+ spin: ht,
109
+ "collapse-stroke": "_collapse-stroke_g0b28_1"
110
+ }, H = (e, s) => {
111
+ const n = e.__vccOpts || e;
112
+ for (const [a, o] of s)
113
+ n[a] = o;
114
+ return n;
115
+ }, St = {
116
+ $style: xt
117
+ }, Pe = /* @__PURE__ */ H(ft, [["__cssModules", St]]), At = ["disabled"], wt = /* @__PURE__ */ $({
118
+ name: "RuiButton",
119
+ __name: "Button",
120
+ props: {
121
+ disabled: { type: Boolean, default: !1 },
122
+ loading: { type: Boolean, default: !1 },
123
+ color: { default: void 0 },
124
+ rounded: { type: Boolean, default: !1 },
125
+ elevation: { default: null },
126
+ variant: { default: "default" },
127
+ icon: { type: Boolean, default: !1 },
128
+ size: { default: void 0 }
129
+ },
130
+ setup(e) {
131
+ const s = e, { disabled: n, elevation: a, variant: o, size: l } = se(s), i = de(), M = Z(), r = N(() => {
132
+ if (f(n))
133
+ return 0;
134
+ const u = f(a);
135
+ return u !== null ? u : f(o) === "fab" ? 6 : 0;
136
+ }), d = N(() => {
137
+ const u = f(l);
138
+ return u === "lg" ? 26 : u === "sm" ? 18 : 22;
139
+ });
140
+ return (u, y) => (c(), _("button", le({
141
+ class: [
142
+ t(M).btn,
143
+ t(M)[u.color ?? "grey"],
144
+ t(M)[t(l) ?? ""],
145
+ t(M)[t(o)],
146
+ `shadow-${t(r)}`,
147
+ {
148
+ [t(M).loading]: u.loading,
149
+ [t(M)._rounded]: u.rounded,
150
+ [t(M).icon]: u.icon
151
+ }
152
+ ],
153
+ disabled: t(n) || u.loading
154
+ }, t(i)), [
155
+ te(u.$slots, "prepend"),
156
+ z("span", {
157
+ class: v(t(M).label)
158
+ }, [
159
+ te(u.$slots, "default")
160
+ ], 2),
161
+ te(u.$slots, "append"),
162
+ u.loading ? (c(), Y(Pe, {
163
+ key: 0,
164
+ circular: "",
165
+ class: v(t(M).spinner),
166
+ variant: "indeterminate",
167
+ size: t(d)
168
+ }, null, 8, ["class", "size"])) : E("", !0)
169
+ ], 16, At));
170
+ }
171
+ }), kt = "_btn_153yk_315", Ot = "_primary_153yk_318", Et = "_secondary_153yk_321", Ct = "_error_153yk_324", $t = "_warning_153yk_327", Yt = "_info_153yk_330", Qt = "_success_153yk_334", Ut = "_grey_153yk_338", Rt = "_outlined_153yk_341", Pt = "_text_153yk_341", Bt = "_label_153yk_350", Vt = "__rounded_153yk_353", Ft = "_sm_153yk_356", Gt = "_lg_153yk_359", Wt = "_fab_153yk_443", Zt = "_icon_153yk_452", Ht = "_loading_153yk_464", qt = "_spinner_153yk_467", Jt = {
172
+ btn: kt,
173
+ primary: Ot,
174
+ secondary: Et,
175
+ error: Ct,
176
+ warning: $t,
177
+ info: Yt,
178
+ success: Qt,
179
+ grey: Ut,
180
+ outlined: Rt,
181
+ text: Pt,
182
+ label: Bt,
183
+ _rounded: Vt,
184
+ sm: Ft,
185
+ lg: Gt,
186
+ fab: Wt,
187
+ icon: Zt,
188
+ loading: Ht,
189
+ spinner: qt,
190
+ "bg-tint": "_bg-tint_153yk_1",
191
+ "bg-shade": "_bg-shade_153yk_1",
192
+ "text-tint": "_text-tint_153yk_1",
193
+ "text-shade": "_text-shade_153yk_1"
194
+ }, Kt = {
195
+ $style: Jt
196
+ }, ge = /* @__PURE__ */ H(wt, [["__cssModules", Kt]]), Xt = ["height", "width"], en = ["d"], tn = /* @__PURE__ */ $({
197
+ name: "RuiIcon",
198
+ __name: "Icon",
199
+ props: {
200
+ name: {},
201
+ size: { default: 24 },
202
+ color: { default: void 0 }
203
+ },
204
+ setup(e) {
205
+ const s = e, n = Z(), { registeredIcons: a } = rt(), { name: o } = se(s), l = N(() => {
206
+ const i = f(o), M = `ri-${i}`, r = f(a)[M];
207
+ return r || console.error(
208
+ `Icons "${i}" not found. Make sure that you have register the icon when installing the RuiPlugin`
209
+ ), r;
210
+ });
211
+ return (i, M) => (c(), _("svg", {
212
+ class: v([t(n).remixicon, t(n)[i.color ?? ""]]),
213
+ height: i.size,
214
+ width: i.size,
215
+ viewBox: "0 0 24 24",
216
+ xmlns: "http://www.w3.org/2000/svg"
217
+ }, [
218
+ z("path", {
219
+ d: t(l),
220
+ fill: "currentColor"
221
+ }, null, 8, en)
222
+ ], 10, Xt));
223
+ }
224
+ }), nn = "_remixicon_2d6in_315", on = "_primary_2d6in_315", sn = "_secondary_2d6in_318", an = "_error_2d6in_321", ln = "_warning_2d6in_324", rn = "_info_2d6in_327", un = "_success_2d6in_330", cn = {
225
+ remixicon: nn,
226
+ primary: on,
227
+ secondary: sn,
228
+ error: an,
229
+ warning: ln,
230
+ info: rn,
231
+ success: un,
232
+ "bg-tint": "_bg-tint_2d6in_1",
233
+ "bg-shade": "_bg-shade_2d6in_1",
234
+ "text-tint": "_text-tint_2d6in_1",
235
+ "text-shade": "_text-shade_2d6in_1"
236
+ }, dn = {
237
+ $style: cn
238
+ }, C = /* @__PURE__ */ H(tn, [["__cssModules", dn]]), Mn = { class: "flex space-x-3 py-1 flex-grow" }, pn = {
239
+ key: 0,
240
+ class: "font-medium"
241
+ }, _n = { class: "text-body-2" }, yn = { key: 0 }, fn = { key: 1 }, vn = /* @__PURE__ */ $({
242
+ name: "RuiAlert",
243
+ __name: "Alert",
244
+ props: {
245
+ title: { default: "" },
246
+ description: { default: "" },
247
+ type: { default: "primary" },
248
+ icon: { default: "" },
249
+ variant: { default: "default" },
250
+ actionText: { default: "" },
251
+ closeable: { type: Boolean, default: !1 }
252
+ },
253
+ emits: ["action", "close"],
254
+ setup(e, { emit: s }) {
255
+ const n = e, { icon: a, type: o } = se(n), l = N(() => {
256
+ const r = f(a);
257
+ return r || ({
258
+ primary: "",
259
+ secondary: "",
260
+ warning: "alert-line",
261
+ info: "information-line",
262
+ error: "error-warning-line",
263
+ success: "checkbox-circle-line"
264
+ }[f(o)] ?? "");
265
+ }), i = Z(), M = de();
266
+ return (r, d) => (c(), _("div", le({
267
+ class: [t(i).alert, t(i)[t(o)], t(i)[r.variant]]
268
+ }, t(M)), [
269
+ z("div", Mn, [
270
+ t(l) ? (c(), _("div", {
271
+ key: 0,
272
+ class: v(t(i).icon)
273
+ }, [
274
+ Q(C, {
275
+ name: t(l),
276
+ size: "22"
277
+ }, null, 8, ["name"])
278
+ ], 2)) : E("", !0),
279
+ z("div", {
280
+ class: v(["space-y-1 flex-grow", t(i).texts])
281
+ }, [
282
+ r.title ? (c(), _("div", pn, B(r.title), 1)) : E("", !0),
283
+ z("div", _n, B(r.description), 1)
284
+ ], 2)
285
+ ]),
286
+ r.actionText ? (c(), _("div", yn, [
287
+ Q(ge, {
288
+ variant: "text",
289
+ size: "sm",
290
+ color: r.variant === "filled" ? void 0 : t(o),
291
+ class: v(t(i).action),
292
+ onClick: d[0] || (d[0] = (u) => s("action"))
293
+ }, {
294
+ default: K(() => [
295
+ $e(B(r.actionText), 1)
296
+ ]),
297
+ _: 1
298
+ }, 8, ["color", "class"])
299
+ ])) : E("", !0),
300
+ r.closeable ? (c(), _("div", fn, [
301
+ Q(ge, {
302
+ color: r.variant === "filled" ? void 0 : t(o),
303
+ size: "sm",
304
+ icon: "",
305
+ variant: "text",
306
+ class: v(t(i).close),
307
+ onClick: d[1] || (d[1] = (u) => s("close"))
308
+ }, {
309
+ default: K(() => [
310
+ Q(C, {
311
+ name: "close-fill",
312
+ size: "20"
313
+ })
314
+ ]),
315
+ _: 1
316
+ }, 8, ["color", "class"])
317
+ ])) : E("", !0)
318
+ ], 16));
319
+ }
320
+ }), gn = "_alert_1r1r6_315", jn = "_primary_1r1r6_315", Ln = "_icon_1r1r6_318", Nn = "_texts_1r1r6_319", bn = "_action_1r1r6_320", mn = "_close_1r1r6_321", Tn = "_outlined_1r1r6_321", Dn = "_secondary_1r1r6_330", In = "_error_1r1r6_345", zn = "_warning_1r1r6_360", hn = "_info_1r1r6_375", xn = "_success_1r1r6_390", Sn = "_filled_1r1r6_416", An = {
321
+ alert: gn,
322
+ primary: jn,
323
+ default: "_default_1r1r6_315",
324
+ "bg-shade": "_bg-shade_1r1r6_1",
325
+ icon: Ln,
326
+ texts: Nn,
327
+ action: bn,
328
+ close: mn,
329
+ outlined: Tn,
330
+ "text-tint": "_text-tint_1r1r6_1",
331
+ secondary: Dn,
332
+ error: In,
333
+ warning: zn,
334
+ info: hn,
335
+ success: xn,
336
+ "bg-tint": "_bg-tint_1r1r6_1",
337
+ filled: Sn,
338
+ "text-shade": "_text-shade_1r1r6_1"
339
+ }, wn = {
340
+ $style: An
341
+ }, di = /* @__PURE__ */ H(vn, [["__cssModules", wn]]);
342
+ function ne(e, s, ...n) {
343
+ if (e in s) {
344
+ let o = s[e];
345
+ return typeof o == "function" ? o(...n) : o;
346
+ }
347
+ let a = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(s).map((o) => `"${o}"`).join(", ")}.`);
348
+ throw Error.captureStackTrace && Error.captureStackTrace(a, ne), a;
349
+ }
350
+ var je = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(je || {}), kn = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(kn || {});
351
+ function Me({ visible: e = !0, features: s = 0, ourProps: n, theirProps: a, ...o }) {
352
+ var l;
353
+ let i = Ve(a, n), M = Object.assign(o, { props: i });
354
+ if (e || s & 2 && i.static)
355
+ return me(M);
356
+ if (s & 1) {
357
+ let r = (l = i.unmount) == null || l ? 0 : 1;
358
+ return ne(r, { 0() {
359
+ return null;
360
+ }, 1() {
361
+ return me({ ...o, props: { ...i, hidden: !0, style: { display: "none" } } });
362
+ } });
363
+ }
364
+ return me(M);
365
+ }
366
+ function me({ props: e, attrs: s, slots: n, slot: a, name: o }) {
367
+ var l, i;
368
+ let { as: M, ...r } = xe(e, ["unmount", "static"]), d = (l = n.default) == null ? void 0 : l.call(n, a), u = {};
369
+ if (a) {
370
+ let y = !1, b = [];
371
+ for (let [h, A] of Object.entries(a))
372
+ typeof A == "boolean" && (y = !0), A === !0 && b.push(h);
373
+ y && (u["data-headlessui-state"] = b.join(" "));
374
+ }
375
+ if (M === "template") {
376
+ if (d = Be(d ?? []), Object.keys(r).length > 0 || Object.keys(s).length > 0) {
377
+ let [y, ...b] = d ?? [];
378
+ if (!En(y) || b.length > 0)
379
+ throw new Error(['Passing props on "template"!', "", `The current component <${o} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(r).concat(Object.keys(s)).map((L) => L.trim()).filter((L, p, m) => m.indexOf(L) === p).sort((L, p) => L.localeCompare(p)).map((L) => ` - ${L}`).join(`
380
+ `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((L) => ` - ${L}`).join(`
381
+ `)].join(`
382
+ `));
383
+ let h = Ve((i = y.props) != null ? i : {}, r), A = st(y, h);
384
+ for (let L in h)
385
+ L.startsWith("on") && (A.props || (A.props = {}), A.props[L] = h[L]);
386
+ return A;
387
+ }
388
+ return Array.isArray(d) && d.length === 1 ? d[0] : d;
389
+ }
390
+ return Te(M, Object.assign({}, r, u), { default: () => d });
391
+ }
392
+ function Be(e) {
393
+ return e.flatMap((s) => s.type === X ? Be(s.children) : [s]);
394
+ }
395
+ function Ve(...e) {
396
+ if (e.length === 0)
397
+ return {};
398
+ if (e.length === 1)
399
+ return e[0];
400
+ let s = {}, n = {};
401
+ for (let a of e)
402
+ for (let o in a)
403
+ o.startsWith("on") && typeof a[o] == "function" ? (n[o] != null || (n[o] = []), n[o].push(a[o])) : s[o] = a[o];
404
+ if (s.disabled || s["aria-disabled"])
405
+ return Object.assign(s, Object.fromEntries(Object.keys(n).map((a) => [a, void 0])));
406
+ for (let a in n)
407
+ Object.assign(s, { [a](o, ...l) {
408
+ let i = n[a];
409
+ for (let M of i) {
410
+ if (o instanceof Event && o.defaultPrevented)
411
+ return;
412
+ M(o, ...l);
413
+ }
414
+ } });
415
+ return s;
416
+ }
417
+ function On(e) {
418
+ let s = Object.assign({}, e);
419
+ for (let n in s)
420
+ s[n] === void 0 && delete s[n];
421
+ return s;
422
+ }
423
+ function xe(e, s = []) {
424
+ let n = Object.assign({}, e);
425
+ for (let a of s)
426
+ a in n && delete n[a];
427
+ return n;
428
+ }
429
+ function En(e) {
430
+ return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
431
+ }
432
+ let Cn = 0;
433
+ function $n() {
434
+ return ++Cn;
435
+ }
436
+ function Ne() {
437
+ return $n();
438
+ }
439
+ var J = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(J || {});
440
+ function Yn(e) {
441
+ throw new Error("Unexpected object: " + e);
442
+ }
443
+ var G = ((e) => (e[e.First = 0] = "First", e[e.Previous = 1] = "Previous", e[e.Next = 2] = "Next", e[e.Last = 3] = "Last", e[e.Specific = 4] = "Specific", e[e.Nothing = 5] = "Nothing", e))(G || {});
444
+ function Qn(e, s) {
445
+ let n = s.resolveItems();
446
+ if (n.length <= 0)
447
+ return null;
448
+ let a = s.resolveActiveIndex(), o = a ?? -1, l = (() => {
449
+ switch (e.focus) {
450
+ case 0:
451
+ return n.findIndex((i) => !s.resolveDisabled(i));
452
+ case 1: {
453
+ let i = n.slice().reverse().findIndex((M, r, d) => o !== -1 && d.length - r - 1 >= o ? !1 : !s.resolveDisabled(M));
454
+ return i === -1 ? i : n.length - 1 - i;
455
+ }
456
+ case 2:
457
+ return n.findIndex((i, M) => M <= o ? !1 : !s.resolveDisabled(i));
458
+ case 3: {
459
+ let i = n.slice().reverse().findIndex((M) => !s.resolveDisabled(M));
460
+ return i === -1 ? i : n.length - 1 - i;
461
+ }
462
+ case 4:
463
+ return n.findIndex((i) => s.resolveId(i) === e.id);
464
+ case 5:
465
+ return null;
466
+ default:
467
+ Yn(e);
468
+ }
469
+ })();
470
+ return l === -1 ? a : l;
471
+ }
472
+ function U(e) {
473
+ var s;
474
+ return e == null || e.value == null ? null : (s = e.value.$el) != null ? s : e.value;
475
+ }
476
+ let Fe = Symbol("Context");
477
+ var Le = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(Le || {});
478
+ function Un() {
479
+ return Ye(Fe, null);
480
+ }
481
+ function Rn(e) {
482
+ Qe(Fe, e);
483
+ }
484
+ function Ae(e, s) {
485
+ if (e)
486
+ return e;
487
+ let n = s ?? "button";
488
+ if (typeof n == "string" && n.toLowerCase() === "button")
489
+ return "button";
490
+ }
491
+ function Pn(e, s) {
492
+ let n = O(Ae(e.value.type, e.value.as));
493
+ return _e(() => {
494
+ n.value = Ae(e.value.type, e.value.as);
495
+ }), ue(() => {
496
+ var a;
497
+ n.value || U(s) && U(s) instanceof HTMLButtonElement && !((a = U(s)) != null && a.hasAttribute("type")) && (n.value = "button");
498
+ }), n;
499
+ }
500
+ var Bn = Object.defineProperty, Vn = (e, s, n) => s in e ? Bn(e, s, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[s] = n, we = (e, s, n) => (Vn(e, typeof s != "symbol" ? s + "" : s, n), n);
501
+ let Fn = class {
502
+ constructor() {
503
+ we(this, "current", this.detect()), we(this, "currentId", 0);
504
+ }
505
+ set(s) {
506
+ this.current !== s && (this.currentId = 0, this.current = s);
507
+ }
508
+ reset() {
509
+ this.set(this.detect());
510
+ }
511
+ nextId() {
512
+ return ++this.currentId;
513
+ }
514
+ get isServer() {
515
+ return this.current === "server";
516
+ }
517
+ get isClient() {
518
+ return this.current === "client";
519
+ }
520
+ detect() {
521
+ return typeof window > "u" || typeof document > "u" ? "server" : "client";
522
+ }
523
+ }, Se = new Fn();
524
+ function Ge(e) {
525
+ if (Se.isServer)
526
+ return null;
527
+ if (e instanceof Node)
528
+ return e.ownerDocument;
529
+ if (e != null && e.hasOwnProperty("value")) {
530
+ let s = U(e);
531
+ if (s)
532
+ return s.ownerDocument;
533
+ }
534
+ return document;
535
+ }
536
+ function Gn({ container: e, accept: s, walk: n, enabled: a }) {
537
+ ue(() => {
538
+ let o = e.value;
539
+ if (!o || a !== void 0 && !a.value)
540
+ return;
541
+ let l = Ge(e);
542
+ if (!l)
543
+ return;
544
+ let i = Object.assign((r) => s(r), { acceptNode: s }), M = l.createTreeWalker(o, NodeFilter.SHOW_ELEMENT, i, !1);
545
+ for (; M.nextNode(); )
546
+ n(M.currentNode);
547
+ });
548
+ }
549
+ let ke = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
550
+ var Wn = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e))(Wn || {}), Zn = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(Zn || {}), Hn = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(Hn || {}), We = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(We || {});
551
+ function qn(e, s = 0) {
552
+ var n;
553
+ return e === ((n = Ge(e)) == null ? void 0 : n.body) ? !1 : ne(s, { 0() {
554
+ return e.matches(ke);
555
+ }, 1() {
556
+ let a = e;
557
+ for (; a !== null; ) {
558
+ if (a.matches(ke))
559
+ return !0;
560
+ a = a.parentElement;
561
+ }
562
+ return !1;
563
+ } });
564
+ }
565
+ var Jn = ((e) => (e[e.Keyboard = 0] = "Keyboard", e[e.Mouse = 1] = "Mouse", e))(Jn || {});
566
+ typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (e) => {
567
+ e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
568
+ }, !0), document.addEventListener("click", (e) => {
569
+ e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
570
+ }, !0));
571
+ function Kn(e, s = (n) => n) {
572
+ return e.slice().sort((n, a) => {
573
+ let o = s(n), l = s(a);
574
+ if (o === null || l === null)
575
+ return 0;
576
+ let i = o.compareDocumentPosition(l);
577
+ return i & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : i & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
578
+ });
579
+ }
580
+ function Oe(e, s, n) {
581
+ Se.isServer || ue((a) => {
582
+ document.addEventListener(e, s, n), a(() => document.removeEventListener(e, s, n));
583
+ });
584
+ }
585
+ function Xn(e, s, n) {
586
+ Se.isServer || ue((a) => {
587
+ window.addEventListener(e, s, n), a(() => window.removeEventListener(e, s, n));
588
+ });
589
+ }
590
+ function eo(e, s, n = N(() => !0)) {
591
+ function a(l, i) {
592
+ if (!n.value || l.defaultPrevented)
593
+ return;
594
+ let M = i(l);
595
+ if (M === null || !M.getRootNode().contains(M))
596
+ return;
597
+ let r = function d(u) {
598
+ return typeof u == "function" ? d(u()) : Array.isArray(u) || u instanceof Set ? u : [u];
599
+ }(e);
600
+ for (let d of r) {
601
+ if (d === null)
602
+ continue;
603
+ let u = d instanceof HTMLElement ? d : U(d);
604
+ if (u != null && u.contains(M) || l.composed && l.composedPath().includes(u))
605
+ return;
606
+ }
607
+ return !qn(M, We.Loose) && M.tabIndex !== -1 && l.preventDefault(), s(l, M);
608
+ }
609
+ let o = O(null);
610
+ Oe("mousedown", (l) => {
611
+ var i, M;
612
+ n.value && (o.value = ((M = (i = l.composedPath) == null ? void 0 : i.call(l)) == null ? void 0 : M[0]) || l.target);
613
+ }, !0), Oe("click", (l) => {
614
+ o.value && (a(l, () => o.value), o.value = null);
615
+ }, !0), Xn("blur", (l) => a(l, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
616
+ }
617
+ var Ze = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(Ze || {});
618
+ let to = $({ name: "Hidden", props: { as: { type: [Object, String], default: "div" }, features: { type: Number, default: 1 } }, setup(e, { slots: s, attrs: n }) {
619
+ return () => {
620
+ let { features: a, ...o } = e, l = { "aria-hidden": (a & 2) === 2 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(a & 4) === 4 && (a & 2) !== 2 && { display: "none" } } };
621
+ return Me({ ourProps: l, theirProps: o, slot: {}, attrs: n, slots: s, name: "Hidden" });
622
+ };
623
+ } });
624
+ function He(e = {}, s = null, n = []) {
625
+ for (let [a, o] of Object.entries(e))
626
+ Je(n, qe(s, a), o);
627
+ return n;
628
+ }
629
+ function qe(e, s) {
630
+ return e ? e + "[" + s + "]" : s;
631
+ }
632
+ function Je(e, s, n) {
633
+ if (Array.isArray(n))
634
+ for (let [a, o] of n.entries())
635
+ Je(e, qe(s, a.toString()), o);
636
+ else
637
+ n instanceof Date ? e.push([s, n.toISOString()]) : typeof n == "boolean" ? e.push([s, n ? "1" : "0"]) : typeof n == "string" ? e.push([s, n]) : typeof n == "number" ? e.push([s, `${n}`]) : n == null ? e.push([s, ""]) : He(n, s, e);
638
+ }
639
+ function no(e, s, n) {
640
+ let a = O(n == null ? void 0 : n.value), o = N(() => e.value !== void 0);
641
+ return [N(() => o.value ? e.value : a.value), function(l) {
642
+ return o.value || (a.value = l), s == null ? void 0 : s(l);
643
+ }];
644
+ }
645
+ function Ee(e) {
646
+ return [e.screenX, e.screenY];
647
+ }
648
+ function oo() {
649
+ let e = O([-1, -1]);
650
+ return { wasMoved(s) {
651
+ let n = Ee(s);
652
+ return e.value[0] === n[0] && e.value[1] === n[1] ? !1 : (e.value = n, !0);
653
+ }, update(s) {
654
+ e.value = Ee(s);
655
+ } };
656
+ }
657
+ function so() {
658
+ return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
659
+ }
660
+ function ao() {
661
+ return /Android/gi.test(window.navigator.userAgent);
662
+ }
663
+ function lo() {
664
+ return so() || ao();
665
+ }
666
+ function Ke() {
667
+ let e = [], s = { addEventListener(n, a, o, l) {
668
+ return n.addEventListener(a, o, l), s.add(() => n.removeEventListener(a, o, l));
669
+ }, requestAnimationFrame(...n) {
670
+ let a = requestAnimationFrame(...n);
671
+ s.add(() => cancelAnimationFrame(a));
672
+ }, nextFrame(...n) {
673
+ s.requestAnimationFrame(() => {
674
+ s.requestAnimationFrame(...n);
675
+ });
676
+ }, setTimeout(...n) {
677
+ let a = setTimeout(...n);
678
+ s.add(() => clearTimeout(a));
679
+ }, style(n, a, o) {
680
+ let l = n.style.getPropertyValue(a);
681
+ return Object.assign(n.style, { [a]: o }), this.add(() => {
682
+ Object.assign(n.style, { [a]: l });
683
+ });
684
+ }, group(n) {
685
+ let a = Ke();
686
+ return n(a), this.add(() => a.dispose());
687
+ }, add(n) {
688
+ return e.push(n), () => {
689
+ let a = e.indexOf(n);
690
+ if (a >= 0)
691
+ for (let o of e.splice(a, 1))
692
+ o();
693
+ };
694
+ }, dispose() {
695
+ for (let n of e.splice(0))
696
+ n();
697
+ } };
698
+ return s;
699
+ }
700
+ function io(e, s) {
701
+ return e === s;
702
+ }
703
+ var ro = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(ro || {}), uo = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(uo || {}), co = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(co || {});
704
+ let Xe = Symbol("ComboboxContext");
705
+ function fe(e) {
706
+ let s = Ye(Xe, null);
707
+ if (s === null) {
708
+ let n = new Error(`<${e} /> is missing a parent <Combobox /> component.`);
709
+ throw Error.captureStackTrace && Error.captureStackTrace(n, fe), n;
710
+ }
711
+ return s;
712
+ }
713
+ let Mo = $({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], default: () => io }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, nullable: { type: Boolean, default: !1 }, multiple: { type: [Boolean], default: !1 } }, inheritAttrs: !1, setup(e, { slots: s, attrs: n, emit: a }) {
714
+ let o = O(1), l = O(null), i = O(null), M = O(null), r = O(null), d = O({ static: !1, hold: !1 }), u = O([]), y = O(null), b = O(1), h = O(!1);
715
+ function A(D = (x) => x) {
716
+ let x = y.value !== null ? u.value[y.value] : null, w = Kn(D(u.value.slice()), (k) => U(k.dataRef.domRef)), I = x ? w.indexOf(x) : null;
717
+ return I === -1 && (I = null), { options: w, activeOptionIndex: I };
718
+ }
719
+ let L = N(() => e.multiple ? 1 : 0), p = N(() => e.nullable), [m, g] = no(N(() => e.modelValue === void 0 ? ne(L.value, { 1: [], 0: void 0 }) : e.modelValue), (D) => a("update:modelValue", D), N(() => e.defaultValue)), j = { comboboxState: o, value: m, mode: L, compare(D, x) {
720
+ if (typeof e.by == "string") {
721
+ let w = e.by;
722
+ return (D == null ? void 0 : D[w]) === (x == null ? void 0 : x[w]);
723
+ }
724
+ return e.by(D, x);
725
+ }, defaultValue: N(() => e.defaultValue), nullable: p, inputRef: i, labelRef: l, buttonRef: M, optionsRef: r, disabled: N(() => e.disabled), options: u, change(D) {
726
+ g(D);
727
+ }, activeOptionIndex: N(() => {
728
+ if (h.value && y.value === null && u.value.length > 0) {
729
+ let D = u.value.findIndex((x) => !x.dataRef.disabled);
730
+ D !== -1 && (y.value = D);
731
+ }
732
+ return y.value;
733
+ }), activationTrigger: b, optionsPropsRef: d, closeCombobox() {
734
+ h.value = !1, !e.disabled && o.value !== 1 && (o.value = 1, y.value = null);
735
+ }, openCombobox() {
736
+ if (h.value = !0, e.disabled || o.value === 0)
737
+ return;
738
+ let D = u.value.findIndex((x) => {
739
+ let w = P(x.dataRef.value);
740
+ return ne(L.value, { 0: () => j.compare(P(j.value.value), P(w)), 1: () => P(j.value.value).some((I) => j.compare(P(I), P(w))) });
741
+ });
742
+ D !== -1 && (y.value = D), o.value = 0;
743
+ }, goToOption(D, x, w) {
744
+ if (h.value = !1, e.disabled || r.value && !d.value.static && o.value === 1)
745
+ return;
746
+ let I = A();
747
+ if (I.activeOptionIndex === null) {
748
+ let R = I.options.findIndex((ie) => !ie.dataRef.disabled);
749
+ R !== -1 && (I.activeOptionIndex = R);
750
+ }
751
+ let k = Qn(D === G.Specific ? { focus: G.Specific, id: x } : { focus: D }, { resolveItems: () => I.options, resolveActiveIndex: () => I.activeOptionIndex, resolveId: (R) => R.id, resolveDisabled: (R) => R.dataRef.disabled });
752
+ y.value = k, b.value = w ?? 1, u.value = I.options;
753
+ }, selectOption(D) {
754
+ let x = u.value.find((I) => I.id === D);
755
+ if (!x)
756
+ return;
757
+ let { dataRef: w } = x;
758
+ g(ne(L.value, { 0: () => w.value, 1: () => {
759
+ let I = P(j.value.value).slice(), k = P(w.value), R = I.findIndex((ie) => j.compare(k, P(ie)));
760
+ return R === -1 ? I.push(k) : I.splice(R, 1), I;
761
+ } }));
762
+ }, selectActiveOption() {
763
+ if (j.activeOptionIndex.value === null)
764
+ return;
765
+ let { dataRef: D, id: x } = u.value[j.activeOptionIndex.value];
766
+ g(ne(L.value, { 0: () => D.value, 1: () => {
767
+ let w = P(j.value.value).slice(), I = P(D.value), k = w.findIndex((R) => j.compare(I, P(R)));
768
+ return k === -1 ? w.push(I) : w.splice(k, 1), w;
769
+ } })), j.goToOption(G.Specific, x);
770
+ }, registerOption(D, x) {
771
+ let w = { id: D, dataRef: x }, I = A((k) => [...k, w]);
772
+ if (y.value === null) {
773
+ let k = x.value.value;
774
+ ne(L.value, { 0: () => j.compare(P(j.value.value), P(k)), 1: () => P(j.value.value).some((R) => j.compare(P(R), P(k))) }) && (I.activeOptionIndex = I.options.indexOf(w));
775
+ }
776
+ u.value = I.options, y.value = I.activeOptionIndex, b.value = 1, I.options.some((k) => !U(k.dataRef.domRef)) && requestAnimationFrame(() => {
777
+ let k = A();
778
+ u.value = k.options, y.value = k.activeOptionIndex;
779
+ });
780
+ }, unregisterOption(D) {
781
+ var x;
782
+ j.activeOptionIndex.value !== null && ((x = j.options.value[j.activeOptionIndex.value]) == null ? void 0 : x.id) === D && (h.value = !0);
783
+ let w = A((I) => {
784
+ let k = I.findIndex((R) => R.id === D);
785
+ return k !== -1 && I.splice(k, 1), I;
786
+ });
787
+ u.value = w.options, y.value = w.activeOptionIndex, b.value = 1;
788
+ } };
789
+ eo([i, M, r], () => j.closeCombobox(), N(() => o.value === 0)), Qe(Xe, j), Rn(N(() => ne(o.value, { 0: Le.Open, 1: Le.Closed })));
790
+ let V = N(() => j.activeOptionIndex.value === null ? null : u.value[j.activeOptionIndex.value].dataRef.value), ee = N(() => {
791
+ var D;
792
+ return (D = U(i)) == null ? void 0 : D.closest("form");
793
+ });
794
+ return _e(() => {
795
+ pe([ee], () => {
796
+ if (!ee.value || e.defaultValue === void 0)
797
+ return;
798
+ function D() {
799
+ j.change(e.defaultValue);
800
+ }
801
+ return ee.value.addEventListener("reset", D), () => {
802
+ var x;
803
+ (x = ee.value) == null || x.removeEventListener("reset", D);
804
+ };
805
+ }, { immediate: !0 });
806
+ }), () => {
807
+ let { name: D, disabled: x, form: w, ...I } = e, k = { open: o.value === 0, disabled: x, activeIndex: j.activeOptionIndex.value, activeOption: V.value, value: m.value };
808
+ return Te(X, [...D != null && m.value != null ? He({ [D]: m.value }).map(([R, ie]) => Te(to, On({ features: Ze.Hidden, key: R, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: w, name: R, value: ie }))) : [], Me({ theirProps: { ...n, ...xe(I, ["modelValue", "defaultValue", "nullable", "multiple", "onUpdate:modelValue", "by"]) }, ourProps: {}, slot: k, slots: s, attrs: n, name: "Combobox" })]);
809
+ };
810
+ } });
811
+ $({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: () => `headlessui-combobox-label-${Ne()}` } }, setup(e, { attrs: s, slots: n }) {
812
+ let a = fe("ComboboxLabel");
813
+ function o() {
814
+ var l;
815
+ (l = U(a.inputRef)) == null || l.focus({ preventScroll: !0 });
816
+ }
817
+ return () => {
818
+ let l = { open: a.comboboxState.value === 0, disabled: a.disabled.value }, { id: i, ...M } = e, r = { id: i, ref: a.labelRef, onClick: o };
819
+ return Me({ ourProps: r, theirProps: M, slot: l, attrs: s, slots: n, name: "ComboboxLabel" });
820
+ };
821
+ } });
822
+ let po = $({ name: "ComboboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: () => `headlessui-combobox-button-${Ne()}` } }, setup(e, { attrs: s, slots: n, expose: a }) {
823
+ let o = fe("ComboboxButton");
824
+ a({ el: o.buttonRef, $el: o.buttonRef });
825
+ function l(r) {
826
+ o.disabled.value || (o.comboboxState.value === 0 ? o.closeCombobox() : (r.preventDefault(), o.openCombobox()), oe(() => {
827
+ var d;
828
+ return (d = U(o.inputRef)) == null ? void 0 : d.focus({ preventScroll: !0 });
829
+ }));
830
+ }
831
+ function i(r) {
832
+ switch (r.key) {
833
+ case J.ArrowDown:
834
+ r.preventDefault(), r.stopPropagation(), o.comboboxState.value === 1 && o.openCombobox(), oe(() => {
835
+ var d;
836
+ return (d = o.inputRef.value) == null ? void 0 : d.focus({ preventScroll: !0 });
837
+ });
838
+ return;
839
+ case J.ArrowUp:
840
+ r.preventDefault(), r.stopPropagation(), o.comboboxState.value === 1 && (o.openCombobox(), oe(() => {
841
+ o.value.value || o.goToOption(G.Last);
842
+ })), oe(() => {
843
+ var d;
844
+ return (d = o.inputRef.value) == null ? void 0 : d.focus({ preventScroll: !0 });
845
+ });
846
+ return;
847
+ case J.Escape:
848
+ if (o.comboboxState.value !== 0)
849
+ return;
850
+ r.preventDefault(), o.optionsRef.value && !o.optionsPropsRef.value.static && r.stopPropagation(), o.closeCombobox(), oe(() => {
851
+ var d;
852
+ return (d = o.inputRef.value) == null ? void 0 : d.focus({ preventScroll: !0 });
853
+ });
854
+ return;
855
+ }
856
+ }
857
+ let M = Pn(N(() => ({ as: e.as, type: s.type })), o.buttonRef);
858
+ return () => {
859
+ var r, d;
860
+ let u = { open: o.comboboxState.value === 0, disabled: o.disabled.value, value: o.value.value }, { id: y, ...b } = e, h = { ref: o.buttonRef, id: y, type: M.value, tabindex: "-1", "aria-haspopup": "listbox", "aria-controls": (r = U(o.optionsRef)) == null ? void 0 : r.id, "aria-expanded": o.disabled.value ? void 0 : o.comboboxState.value === 0, "aria-labelledby": o.labelRef.value ? [(d = U(o.labelRef)) == null ? void 0 : d.id, y].join(" ") : void 0, disabled: o.disabled.value === !0 ? !0 : void 0, onKeydown: i, onClick: l };
861
+ return Me({ ourProps: h, theirProps: b, slot: u, attrs: s, slots: n, name: "ComboboxButton" });
862
+ };
863
+ } }), _o = $({ name: "ComboboxInput", props: { as: { type: [Object, String], default: "input" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, displayValue: { type: Function }, defaultValue: { type: String, default: void 0 }, id: { type: String, default: () => `headlessui-combobox-input-${Ne()}` } }, emits: { change: (e) => !0 }, setup(e, { emit: s, attrs: n, slots: a, expose: o }) {
864
+ let l = fe("ComboboxInput"), i = { value: !1 };
865
+ o({ el: l.inputRef, $el: l.inputRef });
866
+ let M = N(() => {
867
+ var p;
868
+ let m = l.value.value;
869
+ return U(l.inputRef) ? typeof e.displayValue < "u" && m !== void 0 ? (p = e.displayValue(m)) != null ? p : "" : typeof m == "string" ? m : "" : "";
870
+ });
871
+ _e(() => {
872
+ pe([M, l.comboboxState], ([p, m], [g, j]) => {
873
+ if (i.value)
874
+ return;
875
+ let V = U(l.inputRef);
876
+ V && (j === 0 && m === 1 || p !== g) && (V.value = p);
877
+ }, { immediate: !0 }), pe([l.comboboxState], ([p], [m]) => {
878
+ if (p === 0 && m === 1) {
879
+ let g = U(l.inputRef);
880
+ if (!g)
881
+ return;
882
+ let j = g.value, { selectionStart: V, selectionEnd: ee, selectionDirection: D } = g;
883
+ g.value = "", g.value = j, D !== null ? g.setSelectionRange(V, ee, D) : g.setSelectionRange(V, ee);
884
+ }
885
+ });
886
+ });
887
+ let r = O(!1), d = O(null);
888
+ function u() {
889
+ r.value = !0;
890
+ }
891
+ function y() {
892
+ Ke().nextFrame(() => {
893
+ r.value = !1, d.value && (l.openCombobox(), s("change", d.value), d.value = null);
894
+ });
895
+ }
896
+ function b(p) {
897
+ switch (i.value = !0, p.key) {
898
+ case J.Backspace:
899
+ case J.Delete:
900
+ if (l.mode.value !== 0 || !l.nullable.value)
901
+ return;
902
+ let m = p.currentTarget;
903
+ requestAnimationFrame(() => {
904
+ if (m.value === "") {
905
+ l.change(null);
906
+ let g = U(l.optionsRef);
907
+ g && (g.scrollTop = 0), l.goToOption(G.Nothing);
908
+ }
909
+ });
910
+ break;
911
+ case J.Enter:
912
+ if (i.value = !1, l.comboboxState.value !== 0 || r.value)
913
+ return;
914
+ if (p.preventDefault(), p.stopPropagation(), l.activeOptionIndex.value === null) {
915
+ l.closeCombobox();
916
+ return;
917
+ }
918
+ l.selectActiveOption(), l.mode.value === 0 && l.closeCombobox();
919
+ break;
920
+ case J.ArrowDown:
921
+ return i.value = !1, p.preventDefault(), p.stopPropagation(), ne(l.comboboxState.value, { 0: () => l.goToOption(G.Next), 1: () => l.openCombobox() });
922
+ case J.ArrowUp:
923
+ return i.value = !1, p.preventDefault(), p.stopPropagation(), ne(l.comboboxState.value, { 0: () => l.goToOption(G.Previous), 1: () => {
924
+ l.openCombobox(), oe(() => {
925
+ l.value.value || l.goToOption(G.Last);
926
+ });
927
+ } });
928
+ case J.Home:
929
+ if (p.shiftKey)
930
+ break;
931
+ return i.value = !1, p.preventDefault(), p.stopPropagation(), l.goToOption(G.First);
932
+ case J.PageUp:
933
+ return i.value = !1, p.preventDefault(), p.stopPropagation(), l.goToOption(G.First);
934
+ case J.End:
935
+ if (p.shiftKey)
936
+ break;
937
+ return i.value = !1, p.preventDefault(), p.stopPropagation(), l.goToOption(G.Last);
938
+ case J.PageDown:
939
+ return i.value = !1, p.preventDefault(), p.stopPropagation(), l.goToOption(G.Last);
940
+ case J.Escape:
941
+ if (i.value = !1, l.comboboxState.value !== 0)
942
+ return;
943
+ p.preventDefault(), l.optionsRef.value && !l.optionsPropsRef.value.static && p.stopPropagation(), l.closeCombobox();
944
+ break;
945
+ case J.Tab:
946
+ if (i.value = !1, l.comboboxState.value !== 0)
947
+ return;
948
+ l.mode.value === 0 && l.selectActiveOption(), l.closeCombobox();
949
+ break;
950
+ }
951
+ }
952
+ function h(p) {
953
+ if (r.value) {
954
+ d.value = p;
955
+ return;
956
+ }
957
+ l.openCombobox(), s("change", p);
958
+ }
959
+ function A() {
960
+ i.value = !1;
961
+ }
962
+ let L = N(() => {
963
+ var p, m, g, j;
964
+ return (j = (g = (m = e.defaultValue) != null ? m : l.defaultValue.value !== void 0 ? (p = e.displayValue) == null ? void 0 : p.call(e, l.defaultValue.value) : null) != null ? g : l.defaultValue.value) != null ? j : "";
965
+ });
966
+ return () => {
967
+ var p, m, g, j, V, ee;
968
+ let D = { open: l.comboboxState.value === 0 }, { id: x, displayValue: w, onChange: I, ...k } = e, R = { "aria-controls": (p = l.optionsRef.value) == null ? void 0 : p.id, "aria-expanded": l.disabled.value ? void 0 : l.comboboxState.value === 0, "aria-activedescendant": l.activeOptionIndex.value === null || (m = l.options.value[l.activeOptionIndex.value]) == null ? void 0 : m.id, "aria-labelledby": (V = (g = U(l.labelRef)) == null ? void 0 : g.id) != null ? V : (j = U(l.buttonRef)) == null ? void 0 : j.id, "aria-autocomplete": "list", id: x, onCompositionstart: u, onCompositionend: y, onKeydown: b, onInput: h, onBlur: A, role: "combobox", type: (ee = n.type) != null ? ee : "text", tabIndex: 0, ref: l.inputRef, defaultValue: L.value, disabled: l.disabled.value === !0 ? !0 : void 0 };
969
+ return Me({ ourProps: R, theirProps: k, slot: D, attrs: n, slots: a, features: je.RenderStrategy | je.Static, name: "ComboboxInput" });
970
+ };
971
+ } }), yo = $({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, hold: { type: [Boolean], default: !1 } }, setup(e, { attrs: s, slots: n, expose: a }) {
972
+ let o = fe("ComboboxOptions"), l = `headlessui-combobox-options-${Ne()}`;
973
+ a({ el: o.optionsRef, $el: o.optionsRef }), ue(() => {
974
+ o.optionsPropsRef.value.static = e.static;
975
+ }), ue(() => {
976
+ o.optionsPropsRef.value.hold = e.hold;
977
+ });
978
+ let i = Un(), M = N(() => i !== null ? (i.value & Le.Open) === Le.Open : o.comboboxState.value === 0);
979
+ return Gn({ container: N(() => U(o.optionsRef)), enabled: N(() => o.comboboxState.value === 0), accept(r) {
980
+ return r.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : r.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
981
+ }, walk(r) {
982
+ r.setAttribute("role", "none");
983
+ } }), () => {
984
+ var r, d, u;
985
+ let y = { open: o.comboboxState.value === 0 }, b = { "aria-labelledby": (u = (r = U(o.labelRef)) == null ? void 0 : r.id) != null ? u : (d = U(o.buttonRef)) == null ? void 0 : d.id, id: l, ref: o.optionsRef, role: "listbox", "aria-multiselectable": o.mode.value === 1 ? !0 : void 0 }, h = xe(e, ["hold"]);
986
+ return Me({ ourProps: b, theirProps: h, slot: y, attrs: s, slots: n, features: je.RenderStrategy | je.Static, visible: M.value, name: "ComboboxOptions" });
987
+ };
988
+ } }), fo = $({ name: "ComboboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: !1 } }, setup(e, { slots: s, attrs: n, expose: a }) {
989
+ let o = fe("ComboboxOption"), l = `headlessui-combobox-option-${Ne()}`, i = O(null);
990
+ a({ el: i, $el: i });
991
+ let M = N(() => o.activeOptionIndex.value !== null ? o.options.value[o.activeOptionIndex.value].id === l : !1), r = N(() => ne(o.mode.value, { 0: () => o.compare(P(o.value.value), P(e.value)), 1: () => P(o.value.value).some((p) => o.compare(P(p), P(e.value))) })), d = N(() => ({ disabled: e.disabled, value: e.value, domRef: i }));
992
+ _e(() => o.registerOption(l, d)), at(() => o.unregisterOption(l)), ue(() => {
993
+ o.comboboxState.value === 0 && M.value && o.activationTrigger.value !== 0 && oe(() => {
994
+ var p, m;
995
+ return (m = (p = U(i)) == null ? void 0 : p.scrollIntoView) == null ? void 0 : m.call(p, { block: "nearest" });
996
+ });
997
+ });
998
+ function u(p) {
999
+ if (e.disabled)
1000
+ return p.preventDefault();
1001
+ o.selectOption(l), o.mode.value === 0 && o.closeCombobox(), lo() || requestAnimationFrame(() => {
1002
+ var m;
1003
+ return (m = U(o.inputRef)) == null ? void 0 : m.focus();
1004
+ });
1005
+ }
1006
+ function y() {
1007
+ if (e.disabled)
1008
+ return o.goToOption(G.Nothing);
1009
+ o.goToOption(G.Specific, l);
1010
+ }
1011
+ let b = oo();
1012
+ function h(p) {
1013
+ b.update(p);
1014
+ }
1015
+ function A(p) {
1016
+ b.wasMoved(p) && (e.disabled || M.value || o.goToOption(G.Specific, l, 0));
1017
+ }
1018
+ function L(p) {
1019
+ b.wasMoved(p) && (e.disabled || M.value && (o.optionsPropsRef.value.hold || o.goToOption(G.Nothing)));
1020
+ }
1021
+ return () => {
1022
+ let { disabled: p } = e, m = { active: M.value, selected: r.value, disabled: p }, g = { id: l, ref: i, role: "option", tabIndex: p === !0 ? void 0 : -1, "aria-disabled": p === !0 ? !0 : void 0, "aria-selected": r.value, disabled: void 0, onClick: u, onFocus: y, onPointerenter: h, onMouseenter: h, onPointermove: A, onMousemove: A, onPointerleave: L, onMouseleave: L };
1023
+ return Me({ ourProps: g, theirProps: e, slot: m, attrs: n, slots: s, name: "ComboboxOption" });
1024
+ };
1025
+ } });
1026
+ const vo = { class: "flex items-center shrink-0" }, go = /* @__PURE__ */ z("legend", null, null, -1), jo = [
1027
+ go
1028
+ ], Lo = { class: "flex items-center shrink-0" }, No = {
1029
+ key: 0,
1030
+ class: "details pt-1"
1031
+ }, bo = {
1032
+ key: 0,
1033
+ class: "text-rui-error text-caption"
1034
+ }, mo = {
1035
+ key: 1,
1036
+ class: "text-rui-text-secondary text-caption"
1037
+ }, To = {
1038
+ key: 2,
1039
+ class: "h-5"
1040
+ }, Do = /* @__PURE__ */ $({
1041
+ name: "RuiTextField",
1042
+ __name: "TextField",
1043
+ props: {
1044
+ modelValue: { default: "" },
1045
+ label: { default: "" },
1046
+ placeholder: { default: "" },
1047
+ disabled: { type: Boolean, default: !1 },
1048
+ variant: { default: "default" },
1049
+ color: { default: "grey" },
1050
+ dense: { type: Boolean, default: !1 },
1051
+ hint: { default: "" },
1052
+ as: { default: "input" },
1053
+ errorMessages: { default: () => [] },
1054
+ hideDetails: { type: Boolean, default: !1 },
1055
+ prependIcon: { default: "" },
1056
+ appendIcon: { default: "" }
1057
+ },
1058
+ emits: ["update:modelValue", "focus-input", "blur", "remove"],
1059
+ setup(e, { emit: s }) {
1060
+ const n = e;
1061
+ ze((g) => ({
1062
+ "7472fb32": t(h),
1063
+ "5914c95d": t(A),
1064
+ "1c99e6de": t(l)
1065
+ }));
1066
+ const { label: a } = se(n), o = (g) => {
1067
+ const j = g.target.value;
1068
+ s("update:modelValue", j);
1069
+ }, l = N(() => f(a) ? `' ${f(a)} '` : '"\\200B"'), i = O(), M = O(), { left: r, right: d } = ve(i), {
1070
+ left: u,
1071
+ right: y,
1072
+ width: b
1073
+ } = ve(M), h = N(
1074
+ () => `${f(u) - f(r)}px`
1075
+ ), A = N(
1076
+ () => `${f(d) - f(y)}px`
1077
+ ), L = Z(), p = de(), m = ye();
1078
+ return (g, j) => (c(), _("div", {
1079
+ class: v(t(p).class)
1080
+ }, [
1081
+ z("div", {
1082
+ ref_key: "wrapper",
1083
+ ref: i,
1084
+ class: v([
1085
+ t(L).wrapper,
1086
+ t(L)[g.color],
1087
+ t(L)[g.variant],
1088
+ {
1089
+ [t(L).dense]: g.dense,
1090
+ [t(L)["with-error"]]: g.errorMessages.length > 0,
1091
+ [t(L)["no-label"]]: !t(a)
1092
+ }
1093
+ ])
1094
+ }, [
1095
+ z("div", vo, [
1096
+ t(m).prepend ? (c(), _("div", {
1097
+ key: 0,
1098
+ class: v(t(L).prepend)
1099
+ }, [
1100
+ te(g.$slots, "prepend")
1101
+ ], 2)) : g.prependIcon ? (c(), _("div", {
1102
+ key: 1,
1103
+ class: v([t(L).icon, t(L).prepend])
1104
+ }, [
1105
+ Q(C, { name: g.prependIcon }, null, 8, ["name"])
1106
+ ], 2)) : E("", !0)
1107
+ ]),
1108
+ z("div", {
1109
+ ref_key: "innerWrapper",
1110
+ ref: M,
1111
+ class: "flex flex-1 overflow-hidden",
1112
+ onClick: j[3] || (j[3] = (V) => s("focus-input", V))
1113
+ }, [
1114
+ (c(), Y(he(g.as), le({
1115
+ value: g.modelValue,
1116
+ placeholder: g.placeholder || " ",
1117
+ class: t(L).input,
1118
+ disabled: g.disabled,
1119
+ dense: g.dense,
1120
+ variant: g.variant,
1121
+ "wrapper-width": t(b)
1122
+ }, t(be)(t(p), ["class"]), {
1123
+ onInput: j[0] || (j[0] = (V) => o(V)),
1124
+ onBlur: j[1] || (j[1] = (V) => s("blur", V)),
1125
+ onRemove: j[2] || (j[2] = (V) => s("remove", V))
1126
+ }), null, 16, ["value", "placeholder", "class", "disabled", "dense", "variant", "wrapper-width"])),
1127
+ z("label", {
1128
+ class: v(t(L).label)
1129
+ }, B(t(a)), 3),
1130
+ g.variant === "outlined" ? (c(), _("fieldset", {
1131
+ key: 0,
1132
+ class: v(t(L).fieldset)
1133
+ }, jo, 2)) : E("", !0)
1134
+ ], 512),
1135
+ z("div", Lo, [
1136
+ t(m).append ? (c(), _("div", {
1137
+ key: 0,
1138
+ class: v(t(L).append)
1139
+ }, [
1140
+ te(g.$slots, "append")
1141
+ ], 2)) : g.appendIcon ? (c(), _("div", {
1142
+ key: 1,
1143
+ class: v([t(L).icon, t(L).append])
1144
+ }, [
1145
+ Q(C, { name: g.appendIcon }, null, 8, ["name"])
1146
+ ], 2)) : E("", !0)
1147
+ ])
1148
+ ], 2),
1149
+ g.hideDetails ? E("", !0) : (c(), _("div", No, [
1150
+ g.errorMessages.length > 0 ? (c(), _("div", bo, B(g.errorMessages[0]), 1)) : g.hint ? (c(), _("div", mo, B(g.hint), 1)) : (c(), _("div", To))
1151
+ ]))
1152
+ ], 2));
1153
+ }
1154
+ }), Io = "_wrapper_mt8jw_316", zo = "_label_mt8jw_316", ho = "_icon_mt8jw_322", xo = "_filled_mt8jw_325", So = "_input_mt8jw_325", Ao = "_outlined_mt8jw_331", wo = "_fieldset_mt8jw_331", ko = "_prepend_mt8jw_380", Oo = "_append_mt8jw_383", Eo = "_primary_mt8jw_386", Co = "_secondary_mt8jw_395", $o = "_error_mt8jw_404", Yo = "_warning_mt8jw_413", Qo = "_info_mt8jw_422", Uo = "_success_mt8jw_431", Ro = "_dense_mt8jw_449", Po = {
1155
+ wrapper: Io,
1156
+ label: zo,
1157
+ icon: ho,
1158
+ filled: xo,
1159
+ input: So,
1160
+ outlined: Ao,
1161
+ fieldset: wo,
1162
+ prepend: ko,
1163
+ append: Oo,
1164
+ primary: Eo,
1165
+ secondary: Co,
1166
+ error: $o,
1167
+ warning: Yo,
1168
+ info: Qo,
1169
+ success: Uo,
1170
+ "with-error": "_with-error_mt8jw_440",
1171
+ dense: Ro,
1172
+ "no-label": "_no-label_mt8jw_494",
1173
+ "bg-tint": "_bg-tint_mt8jw_1",
1174
+ "bg-shade": "_bg-shade_mt8jw_1",
1175
+ "text-tint": "_text-tint_mt8jw_1",
1176
+ "text-shade": "_text-shade_mt8jw_1"
1177
+ }, Bo = {
1178
+ $style: Po
1179
+ }, et = /* @__PURE__ */ H(Do, [["__cssModules", Bo]]), Vo = ["disabled"], Fo = /* @__PURE__ */ $({
1180
+ name: "RuiChip",
1181
+ __name: "Chip",
1182
+ props: {
1183
+ label: {},
1184
+ dismissible: { type: Boolean, default: !1 },
1185
+ disabled: { type: Boolean, default: !1 },
1186
+ size: { default: "md" },
1187
+ variant: { default: "filled" },
1188
+ color: { default: "grey" }
1189
+ },
1190
+ emits: ["remove"],
1191
+ setup(e, { emit: s }) {
1192
+ const n = Z(), a = ye();
1193
+ return (o, l) => (c(), _("div", {
1194
+ class: v([
1195
+ t(n).chip,
1196
+ t(n)[o.color ?? ""],
1197
+ t(n)[o.size ?? ""],
1198
+ t(n)[o.variant ?? ""],
1199
+ { [t(n).disabled]: o.disabled }
1200
+ ]),
1201
+ role: "button",
1202
+ tabindex: "0"
1203
+ }, [
1204
+ t(a).prepend ? (c(), _("div", {
1205
+ key: 0,
1206
+ class: v(t(n).chip__prepend)
1207
+ }, [
1208
+ te(o.$slots, "prepend")
1209
+ ], 2)) : E("", !0),
1210
+ z("span", {
1211
+ class: v(t(n).chip__label)
1212
+ }, B(o.label), 3),
1213
+ o.dismissible ? (c(), _("button", {
1214
+ key: 1,
1215
+ class: v(t(n).chip__close),
1216
+ disabled: o.disabled,
1217
+ onClick: l[0] || (l[0] = Ue((i) => s("remove"), ["stop"]))
1218
+ }, [
1219
+ Q(C, {
1220
+ class: v(t(n).chip__close_icon),
1221
+ size: o.size === "sm" ? 16 : 24,
1222
+ name: "close-circle-line"
1223
+ }, null, 8, ["class", "size"])
1224
+ ], 10, Vo)) : E("", !0)
1225
+ ], 2));
1226
+ }
1227
+ }), Go = "_chip_tuzt7_315", Wo = "_grey_tuzt7_319", Zo = "_filled_tuzt7_322", Ho = "_outlined_tuzt7_325", qo = "_primary_tuzt7_328", Jo = "_secondary_tuzt7_334", Ko = "_error_tuzt7_340", Xo = "_warning_tuzt7_346", es = "_info_tuzt7_352", ts = "_success_tuzt7_358", ns = "_chip__prepend_tuzt7_364", os = "_chip__label_tuzt7_368", ss = "_chip__close_tuzt7_371", as = "_chip__close_icon_tuzt7_375", ls = "_md_tuzt7_378", is = "_sm_tuzt7_381", rs = "_sm__prepend_tuzt7_384", us = "_sm__label_tuzt7_387", cs = "_sm__close_tuzt7_390", ds = "_disabled_tuzt7_395", Ms = {
1228
+ chip: Go,
1229
+ grey: Wo,
1230
+ filled: Zo,
1231
+ outlined: Ho,
1232
+ primary: qo,
1233
+ secondary: Jo,
1234
+ error: Ko,
1235
+ warning: Xo,
1236
+ info: es,
1237
+ success: ts,
1238
+ chip__prepend: ns,
1239
+ chip__label: os,
1240
+ chip__close: ss,
1241
+ chip__close_icon: as,
1242
+ md: ls,
1243
+ sm: is,
1244
+ sm__prepend: rs,
1245
+ sm__label: us,
1246
+ sm__close: cs,
1247
+ disabled: ds,
1248
+ "bg-tint": "_bg-tint_tuzt7_1",
1249
+ "bg-shade": "_bg-shade_tuzt7_1",
1250
+ "text-tint": "_text-tint_tuzt7_1",
1251
+ "text-shade": "_text-shade_tuzt7_1"
1252
+ }, ps = {
1253
+ $style: Ms
1254
+ }, Ce = /* @__PURE__ */ H(Fo, [["__cssModules", ps]]), _s = /* @__PURE__ */ $({
1255
+ __name: "AutoCompleteSelection",
1256
+ props: {
1257
+ data: {},
1258
+ hasValue: { type: Boolean },
1259
+ wrapperWidth: {},
1260
+ textProp: { default: "text" },
1261
+ keyProp: { default: "id" },
1262
+ dense: { type: Boolean, default: !1 },
1263
+ itemDisabledProp: { default: "" },
1264
+ variant: {}
1265
+ },
1266
+ emits: ["remove"],
1267
+ setup(e, { emit: s }) {
1268
+ const n = e;
1269
+ ze((p) => ({
1270
+ "0f128096": t(u)
1271
+ }));
1272
+ const a = Z(), o = de(), { data: l, textProp: i, wrapperWidth: M } = se(n), r = O(), d = O(), u = O(120), y = O(0), b = N(() => Array.isArray(f(l))), h = N(() => {
1273
+ const p = f(l);
1274
+ if (!(Array.isArray(p) || !p))
1275
+ return p[f(i)];
1276
+ }), A = N(() => f(M) - f(u)), L = async () => {
1277
+ const p = f(l);
1278
+ if (!Array.isArray(p) || p.length === 0) {
1279
+ ae(y, 0);
1280
+ return;
1281
+ }
1282
+ const m = p.length - f(y);
1283
+ if (m <= 0) {
1284
+ ae(y, f(y) + m);
1285
+ return;
1286
+ }
1287
+ const g = f(ve(d).width);
1288
+ if (f(A) < g) {
1289
+ ae(y, 0), ae(u, f(M) - g);
1290
+ return;
1291
+ }
1292
+ for (let j = 0; j < m; j++)
1293
+ if (ae(y, f(y) + 1), await oe(), f(ve(r).width) > f(A)) {
1294
+ ae(y, f(y) - 1), await oe(), f(ve(r).width) > f(A) && ae(y, f(y) - 1);
1295
+ break;
1296
+ }
1297
+ };
1298
+ return _e(async () => {
1299
+ oe(() => {
1300
+ L();
1301
+ }).catch();
1302
+ }), pe([l, M], () => {
1303
+ L();
1304
+ }), (p, m) => {
1305
+ var g;
1306
+ return c(), _(X, null, [
1307
+ t(b) && ((g = t(l)) != null && g.length) ? (c(), _("div", {
1308
+ key: 0,
1309
+ ref_key: "innerWrapper",
1310
+ ref: r,
1311
+ class: v(t(a).wrapper)
1312
+ }, [
1313
+ z("div", {
1314
+ class: v(t(a).chips_wrapper)
1315
+ }, [
1316
+ z("div", {
1317
+ class: v([t(a).chips, t(a)[p.variant ?? ""]])
1318
+ }, [
1319
+ (c(!0), _(X, null, ce(t(l).slice(0, t(y)), (j) => (c(), Y(Ce, {
1320
+ key: j[p.keyProp],
1321
+ class: v(t(a).chip),
1322
+ disabled: !!p.itemDisabledProp && j[p.itemDisabledProp],
1323
+ label: j[t(i)] ?? "",
1324
+ size: p.dense ? "sm" : "md",
1325
+ dismissible: "",
1326
+ onRemove: (V) => s("remove", j)
1327
+ }, null, 8, ["class", "disabled", "label", "size", "onRemove"]))), 128)),
1328
+ t(l).length > t(y) ? (c(), _("div", {
1329
+ key: 0,
1330
+ ref_key: "more",
1331
+ ref: d,
1332
+ class: v(t(a).remaining)
1333
+ }, [
1334
+ Q(Ce, {
1335
+ class: v(t(a).chip),
1336
+ label: `+${t(l).length - t(y)}`,
1337
+ size: p.dense ? "sm" : "md",
1338
+ color: "secondary"
1339
+ }, null, 8, ["class", "label", "size"])
1340
+ ], 2)) : E("", !0)
1341
+ ], 2)
1342
+ ], 2)
1343
+ ], 2)) : E("", !0),
1344
+ Q(t(_o), le({
1345
+ class: [
1346
+ t(a).input,
1347
+ t(a)[p.variant ?? ""],
1348
+ { [t(a).multiple]: t(b), [t(a).has_value]: p.hasValue }
1349
+ ],
1350
+ "data-has-value": p.hasValue,
1351
+ "display-value": (j) => t(h)
1352
+ }, t(be)(t(o), ["value", "dense"])), null, 16, ["class", "data-has-value", "display-value"])
1353
+ ], 64);
1354
+ };
1355
+ }
1356
+ }), ys = "_wrapper_1mrdp_1", fs = "_chips_wrapper_1mrdp_4", vs = "_chips_1mrdp_4", gs = "_filled_1mrdp_13", js = "_outlined_1mrdp_16", Ls = "_input_1mrdp_20", Ns = "_multiple_1mrdp_27", bs = "_has_value_1mrdp_27", ms = {
1357
+ wrapper: ys,
1358
+ chips_wrapper: fs,
1359
+ chips: vs,
1360
+ default: "_default_1mrdp_10",
1361
+ filled: gs,
1362
+ outlined: js,
1363
+ input: Ls,
1364
+ multiple: Ns,
1365
+ has_value: bs
1366
+ }, Ts = {
1367
+ $style: ms
1368
+ }, Ds = /* @__PURE__ */ H(_s, [["__cssModules", Ts]]), Is = { class: "relative" }, zs = { class: "flex space-x-1 items-center" }, hs = ["disabled"], xs = { class: "block truncate" }, Ss = /* @__PURE__ */ $({
1369
+ name: "RuiAutoComplete",
1370
+ __name: "AutoComplete",
1371
+ props: {
1372
+ data: {},
1373
+ modelValue: {},
1374
+ nullable: { type: Boolean, default: !1 },
1375
+ disabled: { type: Boolean, default: !1 },
1376
+ searchQuery: { default: "" },
1377
+ searchProp: { default: "" },
1378
+ placeholder: { default: "" },
1379
+ label: { default: "" },
1380
+ keyProp: { default: "id" },
1381
+ textProp: { default: "text" },
1382
+ itemDisabledProp: { default: "disabled" },
1383
+ variant: { default: "default" },
1384
+ color: { default: "grey" },
1385
+ dense: { type: Boolean, default: !1 },
1386
+ hint: { default: "" },
1387
+ errorMessages: { default: () => [] }
1388
+ },
1389
+ emits: ["update:modelValue"],
1390
+ setup(e, { emit: s }) {
1391
+ const n = e, a = Z(), o = ye(), {
1392
+ data: l,
1393
+ modelValue: i,
1394
+ searchQuery: M,
1395
+ searchProp: r,
1396
+ textProp: d,
1397
+ keyProp: u,
1398
+ itemDisabledProp: y,
1399
+ hint: b,
1400
+ errorMessages: h
1401
+ } = se(n), A = O(f(M) ?? ""), L = O(), p = N(() => {
1402
+ var F;
1403
+ const T = (F = f(A)) == null ? void 0 : F.toLowerCase(), S = f(r), q = f(d);
1404
+ return T ? f(l).filter((re) => S ? re[q].toLowerCase().includes(T) || re[S].toLowerCase().includes(T) : re[q].toLowerCase().includes(T)) : f(l);
1405
+ }), m = N(() => Array.isArray(f(i))), g = N(() => {
1406
+ var S;
1407
+ const T = f(i);
1408
+ return Array.isArray(T) ? !!((S = f(T)) != null && S.length) : !!T;
1409
+ }), j = N(() => {
1410
+ var T;
1411
+ return !(f(b) || (T = f(h)) != null && T.length);
1412
+ }), V = (T) => {
1413
+ const S = f(i);
1414
+ (!(T && S) || T !== S) && s("update:modelValue", T);
1415
+ }, ee = (T) => {
1416
+ ae(A, T);
1417
+ }, D = () => {
1418
+ var T, S;
1419
+ (S = (T = f(L)) == null ? void 0 : T.el) == null || S.click();
1420
+ }, x = () => {
1421
+ s("update:modelValue", f(m) ? [] : null), ee("");
1422
+ }, w = (T) => {
1423
+ const S = f(i);
1424
+ if (!f(m) || !Array.isArray(S))
1425
+ return;
1426
+ const q = f(u);
1427
+ s(
1428
+ "update:modelValue",
1429
+ S.filter((F) => F[q] !== T[q])
1430
+ );
1431
+ };
1432
+ pe(m, (T) => {
1433
+ const S = f(i);
1434
+ T ? s("update:modelValue", f(g) ? [S] : []) : Array.isArray(S) ? s("update:modelValue", S[0] ?? null) : s("update:modelValue", null);
1435
+ });
1436
+ const { list: I, containerProps: k, wrapperProps: R, scrollTo: ie } = ut(
1437
+ p,
1438
+ {
1439
+ itemHeight: 40,
1440
+ overscan: 1
1441
+ }
1442
+ );
1443
+ pe(p, () => {
1444
+ ie(0);
1445
+ });
1446
+ const tt = ct(I, ({ data: T }) => T), nt = (T) => {
1447
+ if (!T && f(g)) {
1448
+ const S = f(i), q = f(u), F = Array.isArray(S) ? S[S.length - 1][q] : S[q];
1449
+ oe(() => {
1450
+ ie(f(p).findIndex((re) => re[q] === F));
1451
+ });
1452
+ }
1453
+ };
1454
+ return (T, S) => (c(), _("div", {
1455
+ class: v([t(m) ? t(a).multiple : t(a).single, t(a)[T.variant ?? ""]])
1456
+ }, [
1457
+ Q(t(Mo), {
1458
+ by: t(u),
1459
+ class: v([
1460
+ {
1461
+ [t(a).disabled]: T.disabled,
1462
+ [t(a).has_details]: !t(j)
1463
+ }
1464
+ ]),
1465
+ disabled: T.disabled,
1466
+ "model-value": t(i),
1467
+ multiple: t(m),
1468
+ nullable: T.nullable,
1469
+ "onUpdate:modelValue": S[4] || (S[4] = (q) => V(q))
1470
+ }, {
1471
+ default: K(({ open: q }) => [
1472
+ z("div", Is, [
1473
+ Q(et, {
1474
+ modelValue: t(A),
1475
+ "onUpdate:modelValue": S[1] || (S[1] = (F) => lt(A) ? A.value = F : null),
1476
+ as: Ds,
1477
+ color: T.color,
1478
+ data: t(i),
1479
+ dense: T.dense,
1480
+ disabled: T.disabled,
1481
+ "error-messages": t(h),
1482
+ "has-value": t(g),
1483
+ "hide-details": t(j),
1484
+ hint: t(b),
1485
+ "item-disabled-prop": t(y),
1486
+ "key-prop": t(u),
1487
+ label: T.label,
1488
+ placeholder: T.placeholder,
1489
+ "text-prop": t(d),
1490
+ variant: T.variant,
1491
+ onRemove: S[2] || (S[2] = (F) => w(F)),
1492
+ onFocusInput: (F) => !q && D()
1493
+ }, {
1494
+ append: K(() => [
1495
+ z("div", zs, [
1496
+ T.nullable && t(g) ? (c(), _("button", {
1497
+ key: 0,
1498
+ class: v(t(a).clear_button),
1499
+ disabled: T.disabled,
1500
+ tabindex: "-1",
1501
+ type: "button",
1502
+ onClick: S[0] || (S[0] = Ue((F) => x(), ["prevent", "stop"]))
1503
+ }, [
1504
+ Q(C, {
1505
+ class: v(t(a).clear_icon),
1506
+ name: "close-line"
1507
+ }, null, 8, ["class"])
1508
+ ], 10, hs)) : E("", !0),
1509
+ Q(t(po), {
1510
+ ref_key: "button",
1511
+ ref: L,
1512
+ class: v([{ [t(a).toggle_disabled]: T.disabled }]),
1513
+ disabled: T.disabled,
1514
+ onClick: (F) => nt(q)
1515
+ }, {
1516
+ default: K(() => [
1517
+ Q(C, {
1518
+ class: v([t(a).toggle_icon, { "rotate-180": q }]),
1519
+ name: "arrow-drop-down-fill"
1520
+ }, null, 8, ["class"])
1521
+ ]),
1522
+ _: 2
1523
+ }, 1032, ["class", "disabled", "onClick"])
1524
+ ])
1525
+ ]),
1526
+ _: 2
1527
+ }, 1032, ["modelValue", "color", "data", "dense", "disabled", "error-messages", "has-value", "hide-details", "hint", "item-disabled-prop", "key-prop", "label", "placeholder", "text-prop", "variant", "onFocusInput"]),
1528
+ Q(it, {
1529
+ "enter-active-class": "transition duration-100 ease-out",
1530
+ "enter-from-class": "transform scale-95 opacity-0",
1531
+ "enter-to-class": "transform scale-100 opacity-100",
1532
+ "leave-active-class": "transition duration-75 ease-out",
1533
+ "leave-from-class": "transform scale-100 opacity-100",
1534
+ "leave-to-class": "transform scale-95 opacity-0",
1535
+ onAfterLeave: S[3] || (S[3] = (F) => ee(""))
1536
+ }, {
1537
+ default: K(() => [
1538
+ Q(t(yo), {
1539
+ class: v(t(a).options)
1540
+ }, {
1541
+ default: K(() => [
1542
+ t(p).length === 0 && t(A) !== "" ? (c(), _("div", {
1543
+ key: 0,
1544
+ class: v(t(a).empty)
1545
+ }, " Nothing options found. ", 2)) : (c(), _("div", le({ key: 1 }, t(k), { class: "max-h-60" }), [
1546
+ z("div", De(Re(t(R))), [
1547
+ (c(!0), _(X, null, ce(t(tt), (F) => (c(), Y(t(fo), {
1548
+ key: F[t(u)],
1549
+ class: "h-10",
1550
+ disabled: !!t(y) && F[t(y)],
1551
+ value: F,
1552
+ as: "template"
1553
+ }, {
1554
+ default: K(({ selected: re, disabled: ot }) => [
1555
+ z("li", {
1556
+ class: v([
1557
+ t(a).option,
1558
+ {
1559
+ [t(a).option__disabled]: ot,
1560
+ [t(a).option__selected]: re,
1561
+ [t(a).option__prefixed]: !!t(o).prefix
1562
+ }
1563
+ ])
1564
+ }, [
1565
+ t(o).prefix ? (c(), _("span", {
1566
+ key: 0,
1567
+ class: v({ prefix: !!t(o).prefix })
1568
+ }, [
1569
+ te(T.$slots, "prefix", le({ class: "prefix" }, F))
1570
+ ], 2)) : E("", !0),
1571
+ z("span", xs, [
1572
+ t(o).default ? te(T.$slots, "default", De(le({ key: 0 }, F))) : (c(), _(X, { key: 1 }, [
1573
+ $e(B(F[t(d)]), 1)
1574
+ ], 64))
1575
+ ]),
1576
+ re ? (c(), _("span", {
1577
+ key: 1,
1578
+ class: v(t(a).option__selected_icon)
1579
+ }, [
1580
+ Q(C, {
1581
+ "aria-hidden": "true",
1582
+ class: "h-5 w-5",
1583
+ name: "check-line"
1584
+ })
1585
+ ], 2)) : E("", !0)
1586
+ ], 2)
1587
+ ]),
1588
+ _: 2
1589
+ }, 1032, ["disabled", "value"]))), 128))
1590
+ ], 16)
1591
+ ], 16))
1592
+ ]),
1593
+ _: 3
1594
+ }, 8, ["class"])
1595
+ ]),
1596
+ _: 3
1597
+ })
1598
+ ])
1599
+ ]),
1600
+ _: 3
1601
+ }, 8, ["by", "class", "disabled", "model-value", "multiple", "nullable"])
1602
+ ], 2));
1603
+ }
1604
+ }), As = "_toggle_icon_17co6_1", ws = "_clear_button_17co6_5", ks = "_clear_icon_17co6_8", Os = "_has_details_17co6_12", Es = "_options_17co6_12", Cs = "_multiple_17co6_16", $s = "_single_17co6_17", Ys = "_filled_17co6_22", Qs = "_outlined_17co6_23", Us = "_empty_17co6_30", Rs = "_option_17co6_12", Ps = "_option__selected_17co6_37", Bs = "_option__disabled_17co6_40", Vs = "_option__selected_icon_17co6_43", Fs = "_option__prefixed_17co6_49", Gs = {
1605
+ toggle_icon: As,
1606
+ clear_button: ws,
1607
+ clear_icon: ks,
1608
+ has_details: Os,
1609
+ options: Es,
1610
+ multiple: Cs,
1611
+ single: $s,
1612
+ default: "_default_17co6_21",
1613
+ filled: Ys,
1614
+ outlined: Qs,
1615
+ empty: Us,
1616
+ option: Rs,
1617
+ option__selected: Ps,
1618
+ option__disabled: Bs,
1619
+ option__selected_icon: Vs,
1620
+ option__prefixed: Fs
1621
+ }, Ws = {
1622
+ $style: Gs
1623
+ }, pi = /* @__PURE__ */ H(Ss, [["__cssModules", Ws]]), Zs = /* @__PURE__ */ $({
1624
+ name: "RuiButtonGroup",
1625
+ __name: "ButtonGroup",
1626
+ props: {
1627
+ vertical: { type: Boolean, default: !1 },
1628
+ color: { default: void 0 },
1629
+ variant: { default: "default" },
1630
+ size: { default: void 0 }
1631
+ },
1632
+ setup(e) {
1633
+ const s = ye(), n = N(() => {
1634
+ var o;
1635
+ return ((o = s.default) == null ? void 0 : o.call(s)) ?? [];
1636
+ }), a = Z();
1637
+ return (o, l) => (c(), _("div", null, [
1638
+ z("div", {
1639
+ class: v([
1640
+ t(a).wrapper,
1641
+ t(a)[o.color ?? ""],
1642
+ t(a)[o.variant],
1643
+ { [t(a).wrapper__vertical]: o.vertical }
1644
+ ])
1645
+ }, [
1646
+ (c(!0), _(X, null, ce(t(n), (i, M) => (c(), Y(he(i), {
1647
+ key: M,
1648
+ color: o.color,
1649
+ variant: o.variant,
1650
+ size: o.size,
1651
+ class: v(t(a).button)
1652
+ }, null, 8, ["color", "variant", "size", "class"]))), 128))
1653
+ ], 2)
1654
+ ]));
1655
+ }
1656
+ }), Hs = "_wrapper_j3xuo_315", qs = "_wrapper__vertical_j3xuo_319", Js = "_button_j3xuo_322", Ks = "_primary_j3xuo_328", Xs = "_outlined_j3xuo_331", ea = "_text_j3xuo_331", ta = "_secondary_j3xuo_337", na = "_error_j3xuo_346", oa = "_warning_j3xuo_355", sa = "_info_j3xuo_364", aa = "_success_j3xuo_373", la = {
1657
+ wrapper: Hs,
1658
+ wrapper__vertical: qs,
1659
+ button: Js,
1660
+ primary: Ks,
1661
+ outlined: Xs,
1662
+ text: ea,
1663
+ secondary: ta,
1664
+ error: na,
1665
+ warning: oa,
1666
+ info: sa,
1667
+ success: aa,
1668
+ "bg-tint": "_bg-tint_j3xuo_1",
1669
+ "bg-shade": "_bg-shade_j3xuo_1",
1670
+ "text-tint": "_text-tint_j3xuo_1",
1671
+ "text-shade": "_text-shade_j3xuo_1"
1672
+ }, ia = {
1673
+ $style: la
1674
+ }, _i = /* @__PURE__ */ H(Zs, [["__cssModules", ia]]), ra = ["checked", "disabled"], ua = {
1675
+ key: 0,
1676
+ class: "details"
1677
+ }, ca = {
1678
+ key: 0,
1679
+ class: "text-rui-error text-caption"
1680
+ }, da = {
1681
+ key: 1,
1682
+ class: "text-rui-text-secondary text-caption"
1683
+ }, Ma = {
1684
+ key: 2,
1685
+ class: "h-5"
1686
+ }, pa = /* @__PURE__ */ $({
1687
+ name: "RuiCheckbox",
1688
+ __name: "Checkbox",
1689
+ props: {
1690
+ modelValue: { type: Boolean, default: !1 },
1691
+ indeterminate: { type: Boolean, default: !1 },
1692
+ disabled: { type: Boolean, default: !1 },
1693
+ color: { default: void 0 },
1694
+ size: { default: void 0 },
1695
+ hint: { default: "" },
1696
+ errorMessages: { default: () => [] },
1697
+ hideDetails: { type: Boolean, default: !1 }
1698
+ },
1699
+ emits: ["update:modelValue", "update:indeterminate"],
1700
+ setup(e, { emit: s }) {
1701
+ const n = e, { size: a } = se(n), o = (r) => {
1702
+ const d = r.target.checked;
1703
+ d && s("update:indeterminate", !1), s("update:modelValue", d);
1704
+ }, l = N(() => {
1705
+ const r = f(a);
1706
+ return r === "lg" ? 28 : r === "sm" ? 20 : 24;
1707
+ }), i = Z(), M = de();
1708
+ return (r, d) => (c(), _("div", {
1709
+ class: v(t(M).class)
1710
+ }, [
1711
+ z("label", {
1712
+ class: v([
1713
+ t(i).wrapper,
1714
+ t(i)[t(a) ?? ""],
1715
+ {
1716
+ [t(i).disabled]: r.disabled
1717
+ }
1718
+ ])
1719
+ }, [
1720
+ z("input", le({
1721
+ checked: r.modelValue,
1722
+ type: "checkbox",
1723
+ class: t(i).input,
1724
+ disabled: r.disabled
1725
+ }, t(be)(t(M), ["class"]), {
1726
+ onInput: d[0] || (d[0] = (u) => o(u))
1727
+ }), null, 16, ra),
1728
+ z("div", {
1729
+ class: v([
1730
+ t(i).checkbox,
1731
+ t(i)[r.color ?? ""],
1732
+ t(i)[t(a) ?? ""],
1733
+ {
1734
+ [t(i).checked]: r.modelValue || r.indeterminate,
1735
+ [t(i).disabled]: r.disabled,
1736
+ [t(i)["with-error"]]: r.errorMessages.length > 0
1737
+ }
1738
+ ])
1739
+ }, [
1740
+ r.indeterminate ? (c(), Y(C, {
1741
+ key: 0,
1742
+ name: "checkbox-indeterminate-fill",
1743
+ size: t(l)
1744
+ }, null, 8, ["size"])) : r.modelValue ? (c(), Y(C, {
1745
+ key: 1,
1746
+ name: "checkbox-fill",
1747
+ size: t(l)
1748
+ }, null, 8, ["size"])) : (c(), Y(C, {
1749
+ key: 2,
1750
+ name: "checkbox-blank-line",
1751
+ size: t(l)
1752
+ }, null, 8, ["size"]))
1753
+ ], 2),
1754
+ z("div", {
1755
+ class: v([t(i).label, "text-body-1"])
1756
+ }, [
1757
+ te(r.$slots, "default")
1758
+ ], 2)
1759
+ ], 2),
1760
+ r.hideDetails ? E("", !0) : (c(), _("div", ua, [
1761
+ r.errorMessages.length > 0 ? (c(), _("div", ca, B(r.errorMessages[0]), 1)) : r.hint ? (c(), _("div", da, B(r.hint), 1)) : (c(), _("div", Ma))
1762
+ ]))
1763
+ ], 2));
1764
+ }
1765
+ }), _a = "_wrapper_1bkf8_1", ya = "_disabled_1bkf8_4", fa = "_checkbox_1bkf8_7", va = "_label_1bkf8_13", ga = "_input_1bkf8_16", ja = "_lg_1bkf8_39", La = "_sm_1bkf8_42", Na = "_primary_1bkf8_45", ba = "_checked_1bkf8_48", ma = "_secondary_1bkf8_51", Ta = "_error_1bkf8_57", Da = "_warning_1bkf8_63", Ia = "_info_1bkf8_69", za = "_success_1bkf8_75", ha = {
1766
+ wrapper: _a,
1767
+ disabled: ya,
1768
+ checkbox: fa,
1769
+ label: va,
1770
+ input: ga,
1771
+ "with-error": "_with-error_1bkf8_30",
1772
+ lg: ja,
1773
+ sm: La,
1774
+ primary: Na,
1775
+ checked: ba,
1776
+ secondary: ma,
1777
+ error: Ta,
1778
+ warning: Da,
1779
+ info: Ia,
1780
+ success: za
1781
+ }, xa = {
1782
+ $style: ha
1783
+ }, yi = /* @__PURE__ */ H(pa, [["__cssModules", xa]]), Sa = /* @__PURE__ */ $({
1784
+ __name: "StepperIcon",
1785
+ props: {
1786
+ state: { default: W.inactive },
1787
+ index: {}
1788
+ },
1789
+ setup(e) {
1790
+ const s = Z();
1791
+ return (n, a) => (c(), _("span", {
1792
+ class: v([t(s).indicator, t(s)[n.state]])
1793
+ }, [
1794
+ n.state === t(W).inactive || n.state === t(W).active ? (c(), _("span", {
1795
+ key: 0,
1796
+ class: v(t(s).text)
1797
+ }, B(n.index), 3)) : n.state === t(W).done ? (c(), Y(C, {
1798
+ key: 1,
1799
+ class: v(t(s).text),
1800
+ size: 20,
1801
+ name: "check-line"
1802
+ }, null, 8, ["class"])) : n.state === t(W).success ? (c(), Y(C, {
1803
+ key: 2,
1804
+ name: "checkbox-circle-fill"
1805
+ })) : n.state === t(W).error ? (c(), Y(C, {
1806
+ key: 3,
1807
+ name: "error-warning-fill"
1808
+ })) : n.state === t(W).warning ? (c(), Y(C, {
1809
+ key: 4,
1810
+ name: "alert-fill"
1811
+ })) : n.state === t(W).info ? (c(), Y(C, {
1812
+ key: 5,
1813
+ name: "information-fill"
1814
+ })) : E("", !0)
1815
+ ], 2));
1816
+ }
1817
+ }), Aa = "_indicator_vbhrs_1", wa = "_text_vbhrs_4", ka = "_inactive_vbhrs_7", Oa = "_active_vbhrs_10", Ea = "_done_vbhrs_10", Ca = {
1818
+ indicator: Aa,
1819
+ text: wa,
1820
+ inactive: ka,
1821
+ active: Oa,
1822
+ done: Ea
1823
+ }, $a = {
1824
+ $style: Ca
1825
+ }, Ya = /* @__PURE__ */ H(Sa, [["__cssModules", $a]]), Qa = /* @__PURE__ */ $({
1826
+ __name: "StepperCustomIcon",
1827
+ props: {
1828
+ state: { default: W.inactive },
1829
+ index: {}
1830
+ },
1831
+ setup(e) {
1832
+ const s = Z();
1833
+ return (n, a) => (c(), _("span", {
1834
+ class: v([t(s).indicator, t(s)[n.state]])
1835
+ }, [
1836
+ n.state === t(W).inactive ? (c(), _("span", {
1837
+ key: 0,
1838
+ class: v(t(s).text)
1839
+ }, B(n.index), 3)) : n.state === t(W).active ? (c(), Y(C, {
1840
+ key: 1,
1841
+ name: "checkbox-blank-circle-fill",
1842
+ size: 20
1843
+ })) : n.state === t(W).done ? (c(), Y(C, {
1844
+ key: 2,
1845
+ class: v(t(s).text),
1846
+ size: 20,
1847
+ name: "check-line"
1848
+ }, null, 8, ["class"])) : (c(), _("span", {
1849
+ key: 3,
1850
+ class: v(t(s).text)
1851
+ }, B(n.index), 3))
1852
+ ], 2));
1853
+ }
1854
+ }), Ua = "_indicator_1fggs_1", Ra = "_inactive_1fggs_4", Pa = "_text_1fggs_7", Ba = {
1855
+ indicator: Ua,
1856
+ inactive: Ra,
1857
+ text: Pa
1858
+ }, Va = {
1859
+ $style: Ba
1860
+ }, Fa = /* @__PURE__ */ H(Qa, [["__cssModules", Va]]), Ga = /* @__PURE__ */ $({
1861
+ name: "RuiStepper",
1862
+ __name: "Stepper",
1863
+ props: {
1864
+ step: { default: 0 },
1865
+ steps: {},
1866
+ iconTop: { type: Boolean, default: !1 },
1867
+ custom: { type: Boolean, default: !1 },
1868
+ titleClass: { default: "" },
1869
+ subtitleClass: { default: "" },
1870
+ orientation: { default: Mt.horizontal }
1871
+ },
1872
+ setup(e) {
1873
+ const s = e, n = Z(), { custom: a, steps: o, step: l } = se(s), i = N(() => {
1874
+ if (!f(a))
1875
+ return f(o);
1876
+ const M = f(l);
1877
+ return f(o).map((r, d) => {
1878
+ let u = W.inactive;
1879
+ return d + 1 === M && (u = W.active), d + 1 < M && (u = W.done), {
1880
+ ...r,
1881
+ state: u
1882
+ };
1883
+ });
1884
+ });
1885
+ return (M, r) => (c(), _("div", {
1886
+ class: v([
1887
+ t(n).stepper,
1888
+ t(n)[M.orientation ?? ""],
1889
+ { [t(n)["icon-top"]]: M.iconTop, [t(n).custom]: t(a) }
1890
+ ])
1891
+ }, [
1892
+ (c(!0), _(X, null, ce(t(i), ({ title: d, description: u, state: y }, b) => (c(), _(X, { key: b }, [
1893
+ b > 0 ? (c(), _("hr", {
1894
+ key: 0,
1895
+ class: v(t(n).divider)
1896
+ }, null, 2)) : E("", !0),
1897
+ z("div", {
1898
+ class: v([t(n).step, t(n)[y ?? t(W).inactive]])
1899
+ }, [
1900
+ te(M.$slots, "icon", De(Re({ state: y, index: b + 1 })), () => [
1901
+ t(a) ? (c(), Y(Fa, {
1902
+ key: 0,
1903
+ index: b + 1,
1904
+ state: y
1905
+ }, null, 8, ["index", "state"])) : (c(), Y(Ya, {
1906
+ key: 1,
1907
+ index: b + 1,
1908
+ state: y
1909
+ }, null, 8, ["index", "state"]))
1910
+ ]),
1911
+ d || u ? (c(), _("div", {
1912
+ key: 0,
1913
+ class: v(t(n).label)
1914
+ }, [
1915
+ d ? (c(), _("span", {
1916
+ key: 0,
1917
+ class: v([[t(n).title, { [M.titleClass]: t(a) }], "text-subtitle-2"])
1918
+ }, B(d), 3)) : E("", !0),
1919
+ u ? (c(), _("span", {
1920
+ key: 1,
1921
+ class: v([[t(n).subtitle, { [M.subtitleClass]: t(a) }], "text-caption"])
1922
+ }, B(u), 3)) : E("", !0)
1923
+ ], 2)) : E("", !0)
1924
+ ], 2)
1925
+ ], 64))), 128))
1926
+ ], 2));
1927
+ }
1928
+ }), Wa = "_stepper_1kq7h_1", Za = "_vertical_1kq7h_4", Ha = "_step_1kq7h_1", qa = "_divider_1kq7h_10", Ja = "_custom_1kq7h_13", Ka = "_indicator_1kq7h_22", Xa = "_label_1kq7h_25", el = "_inactive_1kq7h_28", tl = "_title_1kq7h_31", nl = "_subtitle_1kq7h_34", ol = "_active_1kq7h_37", sl = "_done_1kq7h_37", al = "_error_1kq7h_43", ll = "_warning_1kq7h_46", il = "_info_1kq7h_49", rl = "_success_1kq7h_52", ul = {
1929
+ stepper: Wa,
1930
+ vertical: Za,
1931
+ step: Ha,
1932
+ divider: qa,
1933
+ custom: Ja,
1934
+ "icon-top": "_icon-top_1kq7h_16",
1935
+ indicator: Ka,
1936
+ label: Xa,
1937
+ inactive: el,
1938
+ title: tl,
1939
+ subtitle: nl,
1940
+ active: ol,
1941
+ done: sl,
1942
+ error: al,
1943
+ warning: ll,
1944
+ info: il,
1945
+ success: rl
1946
+ }, cl = {
1947
+ $style: ul
1948
+ }, fi = /* @__PURE__ */ H(Ga, [["__cssModules", cl]]), dl = ["onClick"], Ml = { key: 0 }, pl = ["onClick"], _l = { key: 0 }, yl = /* @__PURE__ */ $({
1949
+ name: "RuiFooterStepper",
1950
+ __name: "FooterStepper",
1951
+ props: {
1952
+ pages: {},
1953
+ modelValue: { default: 1 },
1954
+ variant: { default: "numeric" },
1955
+ arrowButtons: { type: Boolean, default: !1 }
1956
+ },
1957
+ emits: ["update:modelValue"],
1958
+ setup(e, { emit: s }) {
1959
+ const n = e, a = Z(), { modelValue: o, pages: l } = se(n), i = (u) => {
1960
+ s("update:modelValue", f(o) + u);
1961
+ }, M = () => {
1962
+ f(o) && i(-1);
1963
+ }, r = () => {
1964
+ f(o) < f(l) && i(1);
1965
+ }, d = (u) => {
1966
+ i(u - f(o));
1967
+ };
1968
+ return (u, y) => (c(), _("div", {
1969
+ class: v([t(a)["footer-stepper"], t(a)[u.variant ?? ""]])
1970
+ }, [
1971
+ u.variant === "pill" ? (c(), _("div", {
1972
+ key: 0,
1973
+ class: v(t(a).pills)
1974
+ }, [
1975
+ (c(!0), _(X, null, ce(t(l), (b) => (c(), _("span", {
1976
+ key: b,
1977
+ class: v([t(a).pill, { [t(a).active]: t(o) === b }]),
1978
+ onClick: (h) => d(b)
1979
+ }, null, 10, dl))), 128))
1980
+ ], 2)) : (c(), _(X, { key: 1 }, [
1981
+ Q(ge, {
1982
+ class: v({ [t(a).arrow__button]: u.arrowButtons }),
1983
+ disabled: t(o) <= 1,
1984
+ icon: u.arrowButtons,
1985
+ variant: u.arrowButtons ? "outlined" : "text",
1986
+ color: "primary",
1987
+ onClick: y[0] || (y[0] = (b) => M())
1988
+ }, Ie({
1989
+ default: K(() => [
1990
+ u.arrowButtons ? (c(), Y(C, {
1991
+ key: 1,
1992
+ size: 24,
1993
+ name: "arrow-left-line"
1994
+ })) : (c(), _("span", Ml, "Back"))
1995
+ ]),
1996
+ _: 2
1997
+ }, [
1998
+ u.arrowButtons ? void 0 : {
1999
+ name: "prepend",
2000
+ fn: K(() => [
2001
+ Q(C, {
2002
+ size: 18,
2003
+ name: "arrow-left-s-line"
2004
+ })
2005
+ ]),
2006
+ key: "0"
2007
+ }
2008
+ ]), 1032, ["class", "disabled", "icon", "variant"]),
2009
+ u.variant === "numeric" ? (c(), _("span", {
2010
+ key: 0,
2011
+ class: v(t(a).numeric)
2012
+ }, B(t(o)) + "/" + B(t(l)), 3)) : u.variant === "bullet" ? (c(), _("div", {
2013
+ key: 1,
2014
+ class: v(t(a).bullets)
2015
+ }, [
2016
+ (c(!0), _(X, null, ce(t(l), (b) => (c(), _("span", {
2017
+ key: b,
2018
+ class: v([t(a).bullet, { [t(a).active]: t(o) === b }]),
2019
+ onClick: (h) => d(b)
2020
+ }, null, 10, pl))), 128))
2021
+ ], 2)) : u.variant === "progress" ? (c(), Y(Pe, {
2022
+ key: 2,
2023
+ class: v(t(a).progress),
2024
+ value: t(o) / t(l) * 100
2025
+ }, null, 8, ["class", "value"])) : E("", !0),
2026
+ Q(ge, {
2027
+ class: v({ [t(a).arrow__button]: u.arrowButtons }),
2028
+ disabled: t(o) >= t(l),
2029
+ icon: u.arrowButtons,
2030
+ variant: u.arrowButtons ? "outlined" : "text",
2031
+ color: "primary",
2032
+ onClick: y[1] || (y[1] = (b) => r())
2033
+ }, Ie({
2034
+ default: K(() => [
2035
+ u.arrowButtons ? (c(), Y(C, {
2036
+ key: 1,
2037
+ size: 24,
2038
+ name: "arrow-right-line"
2039
+ })) : (c(), _("span", _l, "Next"))
2040
+ ]),
2041
+ _: 2
2042
+ }, [
2043
+ u.arrowButtons ? void 0 : {
2044
+ name: "append",
2045
+ fn: K(() => [
2046
+ Q(C, {
2047
+ size: 18,
2048
+ name: "arrow-right-s-line"
2049
+ })
2050
+ ]),
2051
+ key: "0"
2052
+ }
2053
+ ]), 1032, ["class", "disabled", "icon", "variant"])
2054
+ ], 64))
2055
+ ], 2));
2056
+ }
2057
+ }), fl = "_numeric_1bbl9_4", vl = "_bullets_1bbl9_7", gl = "_pills_1bbl9_8", jl = "_bullet_1bbl9_7", Ll = "_pill_1bbl9_8", Nl = "_active_1bbl9_17", bl = "_progress_1bbl9_39", ml = "_arrow__button_1bbl9_42", Tl = {
2058
+ "footer-stepper": "_footer-stepper_1bbl9_1",
2059
+ numeric: fl,
2060
+ bullets: vl,
2061
+ pills: gl,
2062
+ bullet: jl,
2063
+ pill: Ll,
2064
+ active: Nl,
2065
+ progress: bl,
2066
+ arrow__button: ml
2067
+ }, Dl = {
2068
+ $style: Tl
2069
+ }, vi = /* @__PURE__ */ H(yl, [["__cssModules", Dl]]), Il = dt(() => ({ count: O(0) })), zl = (e = "") => {
2070
+ const { count: s } = Il(), n = f(s);
2071
+ return ae(s, n + 1), `${e}-${f(s)}`;
2072
+ }, hl = {
2073
+ key: 0,
2074
+ class: "details"
2075
+ }, xl = {
2076
+ key: 0,
2077
+ class: "text-rui-error text-caption"
2078
+ }, Sl = {
2079
+ key: 1,
2080
+ class: "text-rui-text-secondary text-caption"
2081
+ }, Al = {
2082
+ key: 2,
2083
+ class: "h-5"
2084
+ }, wl = /* @__PURE__ */ $({
2085
+ name: "RuiRadioGroup",
2086
+ __name: "RadioGroup",
2087
+ props: {
2088
+ modelValue: { default: "" },
2089
+ inline: { type: Boolean, default: !1 },
2090
+ hint: { default: "" },
2091
+ errorMessages: { default: () => [] },
2092
+ hideDetails: { type: Boolean, default: !1 }
2093
+ },
2094
+ emits: ["update:modelValue"],
2095
+ setup(e, { emit: s }) {
2096
+ const n = O("");
2097
+ _e(() => {
2098
+ ae(n, zl("radio-group"));
2099
+ });
2100
+ const a = ye(), o = N(() => {
2101
+ var i, M;
2102
+ return ((M = (i = a.default) == null ? void 0 : i.call(a)) == null ? void 0 : M[0].children) ?? [];
2103
+ }), l = Z();
2104
+ return (i, M) => (c(), _("div", null, [
2105
+ z("div", {
2106
+ class: v([t(l).wrapper, { [t(l).wrapper__inline]: i.inline }])
2107
+ }, [
2108
+ (c(!0), _(X, null, ce(t(o), (r, d) => (c(), Y(he(r), {
2109
+ key: d,
2110
+ "model-value": i.modelValue,
2111
+ "hide-details": "",
2112
+ name: t(n),
2113
+ "onUpdate:modelValue": M[0] || (M[0] = (u) => s("update:modelValue", u))
2114
+ }, null, 8, ["model-value", "name"]))), 128))
2115
+ ], 2),
2116
+ i.hideDetails ? E("", !0) : (c(), _("div", hl, [
2117
+ i.errorMessages.length > 0 ? (c(), _("div", xl, B(i.errorMessages[0]), 1)) : i.hint ? (c(), _("div", Sl, B(i.hint), 1)) : (c(), _("div", Al))
2118
+ ]))
2119
+ ]));
2120
+ }
2121
+ }), kl = "_wrapper__inline_1tfcu_1", Ol = {
2122
+ wrapper__inline: kl
2123
+ }, El = {
2124
+ $style: Ol
2125
+ }, gi = /* @__PURE__ */ H(wl, [["__cssModules", El]]), Cl = ["checked", "disabled", "value"], $l = {
2126
+ key: 0,
2127
+ class: "details"
2128
+ }, Yl = {
2129
+ key: 0,
2130
+ class: "text-rui-error text-caption"
2131
+ }, Ql = {
2132
+ key: 1,
2133
+ class: "text-rui-text-secondary text-caption"
2134
+ }, Ul = {
2135
+ key: 2,
2136
+ class: "h-5"
2137
+ }, Rl = /* @__PURE__ */ $({
2138
+ name: "RuiRadio",
2139
+ __name: "Radio",
2140
+ props: {
2141
+ value: {},
2142
+ modelValue: { default: "" },
2143
+ disabled: { type: Boolean, default: !1 },
2144
+ color: { default: void 0 },
2145
+ size: { default: void 0 },
2146
+ hint: { default: "" },
2147
+ errorMessages: { default: () => [] },
2148
+ hideDetails: { type: Boolean, default: !1 }
2149
+ },
2150
+ emits: ["update:modelValue"],
2151
+ setup(e, { emit: s }) {
2152
+ const n = e, { modelValue: a, size: o, value: l } = se(n), i = (y) => {
2153
+ y.target.checked && s("update:modelValue", f(l));
2154
+ }, M = N(() => {
2155
+ const y = f(o);
2156
+ return y === "lg" ? 28 : y === "sm" ? 20 : 24;
2157
+ }), r = N(() => f(a) === f(l)), d = Z(), u = de();
2158
+ return (y, b) => (c(), _("div", {
2159
+ class: v(t(u).class)
2160
+ }, [
2161
+ z("label", {
2162
+ class: v([
2163
+ t(d).wrapper,
2164
+ t(d)[t(o) ?? ""],
2165
+ {
2166
+ [t(d).disabled]: y.disabled
2167
+ }
2168
+ ])
2169
+ }, [
2170
+ z("input", le({
2171
+ checked: t(r),
2172
+ type: "radio",
2173
+ class: t(d).input,
2174
+ disabled: y.disabled
2175
+ }, t(be)(t(u), ["class"]), {
2176
+ value: t(l),
2177
+ onInput: b[0] || (b[0] = (h) => i(h))
2178
+ }), null, 16, Cl),
2179
+ z("div", {
2180
+ class: v([
2181
+ t(d).radio,
2182
+ t(d)[y.color ?? ""],
2183
+ t(d)[t(o) ?? ""],
2184
+ {
2185
+ [t(d).checked]: t(r),
2186
+ [t(d).disabled]: y.disabled,
2187
+ [t(d)["with-error"]]: y.errorMessages.length > 0
2188
+ }
2189
+ ])
2190
+ }, [
2191
+ t(r) ? (c(), Y(C, {
2192
+ key: 0,
2193
+ name: "radio-button-line",
2194
+ size: t(M)
2195
+ }, null, 8, ["size"])) : (c(), Y(C, {
2196
+ key: 1,
2197
+ name: "checkbox-blank-circle-line",
2198
+ size: t(M)
2199
+ }, null, 8, ["size"]))
2200
+ ], 2),
2201
+ z("div", {
2202
+ class: v([t(d).label, "text-body-1"])
2203
+ }, [
2204
+ te(y.$slots, "default")
2205
+ ], 2)
2206
+ ], 2),
2207
+ y.hideDetails ? E("", !0) : (c(), _("div", $l, [
2208
+ y.errorMessages.length > 0 ? (c(), _("div", Yl, B(y.errorMessages[0]), 1)) : y.hint ? (c(), _("div", Ql, B(y.hint), 1)) : (c(), _("div", Ul))
2209
+ ]))
2210
+ ], 2));
2211
+ }
2212
+ }), Pl = "_wrapper_1a51t_1", Bl = "_disabled_1a51t_4", Vl = "_radio_1a51t_7", Fl = "_label_1a51t_13", Gl = "_input_1a51t_16", Wl = "_lg_1a51t_39", Zl = "_sm_1a51t_42", Hl = "_primary_1a51t_45", ql = "_checked_1a51t_48", Jl = "_secondary_1a51t_51", Kl = "_error_1a51t_57", Xl = "_warning_1a51t_63", ei = "_info_1a51t_69", ti = "_success_1a51t_75", ni = {
2213
+ wrapper: Pl,
2214
+ disabled: Bl,
2215
+ radio: Vl,
2216
+ label: Fl,
2217
+ input: Gl,
2218
+ "with-error": "_with-error_1a51t_30",
2219
+ lg: Wl,
2220
+ sm: Zl,
2221
+ primary: Hl,
2222
+ checked: ql,
2223
+ secondary: Jl,
2224
+ error: Kl,
2225
+ warning: Xl,
2226
+ info: ei,
2227
+ success: ti
2228
+ }, oi = {
2229
+ $style: ni
2230
+ }, ji = /* @__PURE__ */ H(Rl, [["__cssModules", oi]]), si = { class: "flex items-center" }, Li = /* @__PURE__ */ $({
2231
+ name: "RuiRevealableTextField",
2232
+ __name: "RevealableTextField",
2233
+ setup(e) {
2234
+ const s = O(!0), n = de(), a = ye();
2235
+ return (o, l) => (c(), Y(et, le(t(n), {
2236
+ type: t(s) ? "password" : "text"
2237
+ }), Ie({
2238
+ append: K(() => [
2239
+ z("div", si, [
2240
+ Q(ge, {
2241
+ tabindex: "-1",
2242
+ variant: "text",
2243
+ type: "button",
2244
+ icon: "",
2245
+ class: "-mr-1 !p-2",
2246
+ onClick: l[0] || (l[0] = (i) => s.value = !t(s))
2247
+ }, {
2248
+ default: K(() => [
2249
+ Q(C, {
2250
+ class: "text-black/[.54] dark:text-white/[.56]",
2251
+ size: "20",
2252
+ name: t(s) ? "eye-off-line" : "eye-line"
2253
+ }, null, 8, ["name"])
2254
+ ]),
2255
+ _: 1
2256
+ }),
2257
+ te(o.$slots, "append")
2258
+ ])
2259
+ ]),
2260
+ _: 2
2261
+ }, [
2262
+ t(a).prepend ? {
2263
+ name: "prepend",
2264
+ fn: K(() => [
2265
+ te(o.$slots, "prep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jLjI3NC42NCAxLjk3OCAyLjg2MyAxLjgyNi01Ljc1Ni0uMDMtLjAzLS4yNS0uMjQ0LS4zOTYuMTUyem0tNy4xNTEtNy42NDRhMy4zNSAzLjM1IDAgMSAwIDAtNi43IDMuMzUgMy4zNSAwIDEgMCAwIDYuN3oiIGZpbGw9IiMwMDAiLz48cGF0aCBkPSJNNzIuODg5IDQwLjIwMWMuMDYxLjQyNi0uNDI2Ljg1My0xLjA2NS45NDRzLTEuMjQ4LS4xODMtMS4zMDgtLjU3OS40MjYtLjg1MyAxLjA2NS0uOTQ0IDEuMjE3LjE0MyAxLjMwOC41Nzl6bS45NDMgMy43MTVhMi4zOCAyLjM4IDAgMCAxLTEuNDkxLjgyMmMtLjA2MS0uMDYxLS4xNTItLjA2MS0uMjc0LS4wNjEtLjA3OS4wMDUtLjE1NS4wMzctLjIxMy4wOTEtLjY0OC4wMTQtMS4yODgtLjE0NC0xLjg1Ni0uNDU3YTIuMzggMi4zOCAwIDAgMCAxLjgyNi43MDFjLjA4Ny4wNjYuMTk1LjA5OS4zMDQuMDkxLjEyMi0uMDMuMjEzLS4wNjEuMjQzLS4xNTIuNzkxLS4xODMgMS40My0uNTg4IDEuNDYxLTEuMDQ1di4wMDl6IiBmaWxsPSIjZmZmIi8+PC9zdmc+Cg==", li = { class: "h-12 space-x-4 flex items-center" }, ii = /* @__PURE__ */ z("img", {
2272
+ class: "h-full",
2273
+ src: ai,
2274
+ alt: "Rotki"
2275
+ }, null, -1), ri = {
2276
+ key: 0,
2277
+ class: "text-h4 text-rui-light-primary"
2278
+ }, Ni = /* @__PURE__ */ $({
2279
+ name: "RuiLogo",
2280
+ __name: "Logo",
2281
+ props: {
2282
+ text: { type: Boolean, default: !1 }
2283
+ },
2284
+ setup(e) {
2285
+ return (s, n) => (c(), _("div", li, [
2286
+ ii,
2287
+ s.text ? (c(), _("div", ri, "rotki")) : E("", !0)
2288
+ ]));
2289
+ }
2290
+ });
2291
+ export {
2292
+ di as A,
2293
+ _i as B,
2294
+ yi as C,
2295
+ vi as F,
2296
+ ge as R,
2297
+ W as S,
2298
+ Ni as _,
2299
+ pi as a,
2300
+ Ce as b,
2301
+ C as c,
2302
+ Pe as d,
2303
+ ji as e,
2304
+ gi as f,
2305
+ Li as g,
2306
+ fi as h,
2307
+ et as i
2308
+ };