@pebble-software/bonsai 0.0.7 → 0.1.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.
Files changed (90) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +367 -88
  3. package/dist/chunks/button-CSLrIvsS.js +166 -0
  4. package/dist/chunks/button-CSLrIvsS.js.map +1 -0
  5. package/dist/chunks/create-renderer-1cky1uN9.js +280 -0
  6. package/dist/chunks/create-renderer-1cky1uN9.js.map +1 -0
  7. package/dist/chunks/render-shared-CIUUkLDn.js +2319 -0
  8. package/dist/chunks/render-shared-CIUUkLDn.js.map +1 -0
  9. package/dist/components/core/bonsai.d.ts +5 -0
  10. package/dist/components/core/render-shared.d.ts +123 -0
  11. package/dist/components/core/render-tree-client.d.ts +4 -0
  12. package/dist/components/core/render-tree-server.d.ts +2 -0
  13. package/dist/components/ui/a.d.ts +3 -0
  14. package/dist/components/ui/accordion.d.ts +17 -0
  15. package/dist/components/ui/alert-dialog.d.ts +23 -0
  16. package/dist/components/ui/alert.d.ts +12 -0
  17. package/dist/components/ui/avatar.d.ts +21 -0
  18. package/dist/components/ui/badge.d.ts +10 -0
  19. package/dist/components/ui/breadcrumb.d.ts +10 -0
  20. package/dist/components/ui/button.d.ts +14 -0
  21. package/dist/components/ui/calendar.d.ts +9 -0
  22. package/dist/components/ui/card.d.ts +15 -0
  23. package/dist/components/ui/checkbox.d.ts +7 -0
  24. package/dist/components/ui/collapsible.d.ts +5 -0
  25. package/dist/components/ui/combobox.d.ts +31 -0
  26. package/dist/components/ui/command.d.ts +23 -0
  27. package/dist/components/ui/dialog.d.ts +23 -0
  28. package/dist/components/ui/drawer.d.ts +22 -0
  29. package/dist/components/ui/dropdown-menu.d.ts +29 -0
  30. package/dist/components/ui/form.d.ts +24 -0
  31. package/dist/components/ui/h.d.ts +10 -0
  32. package/dist/components/ui/input-group.d.ts +18 -0
  33. package/dist/components/ui/input-otp.d.ts +11 -0
  34. package/dist/components/ui/input.d.ts +3 -0
  35. package/dist/components/ui/label.d.ts +10 -0
  36. package/dist/components/ui/loader.d.ts +14 -0
  37. package/dist/components/ui/p.d.ts +11 -0
  38. package/dist/components/ui/popover.d.ts +9 -0
  39. package/dist/components/ui/progress.d.ts +31 -0
  40. package/dist/components/ui/scroll-area.d.ts +13 -0
  41. package/dist/components/ui/select.d.ts +17 -0
  42. package/dist/components/ui/separator.d.ts +8 -0
  43. package/dist/components/ui/sidebar.d.ts +70 -0
  44. package/dist/components/ui/signature-pad.d.ts +7 -0
  45. package/dist/components/ui/skeleton.d.ts +7 -0
  46. package/dist/components/ui/switch.d.ts +8 -0
  47. package/dist/components/ui/table.d.ts +14 -0
  48. package/dist/components/ui/tabs.d.ts +15 -0
  49. package/dist/components/ui/textarea.d.ts +5 -0
  50. package/dist/components/ui/toast.d.ts +46 -0
  51. package/dist/components/ui/tooltip.d.ts +15 -0
  52. package/dist/core.d.ts +12 -0
  53. package/dist/core.js +17 -0
  54. package/dist/core.js.map +1 -0
  55. package/dist/hooks/haptics.d.ts +8 -0
  56. package/dist/hooks/use-mobile.d.ts +1 -0
  57. package/dist/index.css +7 -0
  58. package/dist/index.d.ts +27 -338
  59. package/dist/index.js +1157 -4760
  60. package/dist/index.js.map +1 -0
  61. package/dist/lib/ast/cache.d.ts +8 -0
  62. package/dist/lib/ast/evaluator.d.ts +2 -0
  63. package/dist/lib/ast/helpers.d.ts +2 -0
  64. package/dist/lib/ast/index.d.ts +29 -0
  65. package/dist/lib/ast/setup.d.ts +2 -0
  66. package/dist/lib/ast/types.d.ts +1 -0
  67. package/dist/lib/ast/utils.d.ts +4 -0
  68. package/dist/lib/haptics.d.ts +8 -0
  69. package/dist/lib/registry/drift.d.ts +17 -0
  70. package/dist/lib/registry/identity.d.ts +24 -0
  71. package/dist/lib/registry/json-schema-to-zod.d.ts +32 -0
  72. package/dist/lib/registry/manifest-schema.d.ts +62 -0
  73. package/dist/lib/registry/manifest.d.ts +26 -0
  74. package/dist/lib/registry/merge-generated.d.ts +7 -0
  75. package/dist/lib/registry/pebble-registry.d.ts +1 -0
  76. package/dist/lib/registry/types.d.ts +29 -0
  77. package/dist/lib/registry/validate.d.ts +18 -0
  78. package/dist/lib/renderer/compile-template.d.ts +70 -0
  79. package/dist/lib/ui/registry.d.ts +19 -0
  80. package/dist/lib/utils.d.ts +3 -0
  81. package/dist/presets/calendar.js +373 -0
  82. package/dist/presets/calendar.js.map +1 -0
  83. package/dist/presets/signature.js +404 -0
  84. package/dist/presets/signature.js.map +1 -0
  85. package/dist/renderer/core-registry.d.ts +52 -0
  86. package/dist/renderer/create-renderer.d.ts +38 -0
  87. package/dist/renderer/presets/calendar.d.ts +5 -0
  88. package/dist/renderer/presets/signature.d.ts +6 -0
  89. package/dist/types.d.ts +1 -0
  90. package/package.json +47 -21
@@ -0,0 +1,2319 @@
1
+ import { jsx as n, jsxs as T, Fragment as _ } from "react/jsx-runtime";
2
+ import * as L from "react";
3
+ import { createContext as pa, useContext as ga, Fragment as Ia, createElement as j } from "react";
4
+ import { C as d, c as i, a as Oa, d as Ra, B as ma, e as Sa, L as _a } from "./button-CSLrIvsS.js";
5
+ import { cva as g } from "class-variance-authority";
6
+ import { Accordion as A } from "@base-ui/react/accordion";
7
+ import { IconChevronDown as ja, IconCheck as $a } from "@tabler/icons-react";
8
+ import { useWebHaptics as U } from "web-haptics/react";
9
+ import { Avatar as V } from "@base-ui/react/avatar";
10
+ import { mergeProps as Da } from "@base-ui/react/merge-props";
11
+ import { useRender as Va } from "@base-ui/react/use-render";
12
+ import { Checkbox as J } from "@base-ui/react/checkbox";
13
+ import { Collapsible as B } from "@base-ui/react/collapsible";
14
+ import { Input as La } from "@base-ui/react/input";
15
+ import { OTPInput as Ua } from "input-otp";
16
+ import { Progress as k } from "@base-ui/react/progress";
17
+ import { Separator as Ba } from "@base-ui/react/separator";
18
+ import { Switch as Z } from "@base-ui/react/switch";
19
+ import fa from "jsep";
20
+ import Ma from "@jsep-plugin/arrow";
21
+ class ha {
22
+ cache = /* @__PURE__ */ new Map();
23
+ maxSize;
24
+ constructor(e) {
25
+ this.maxSize = e;
26
+ }
27
+ get(e) {
28
+ const t = this.cache.get(e);
29
+ return t !== void 0 && (this.cache.delete(e), this.cache.set(e, t)), t;
30
+ }
31
+ set(e, t) {
32
+ if (this.cache.delete(e), this.cache.set(e, t), this.cache.size > this.maxSize) {
33
+ const { value: r, done: o } = this.cache.keys().next();
34
+ o || this.cache.delete(r);
35
+ }
36
+ }
37
+ clear() {
38
+ this.cache.clear();
39
+ }
40
+ }
41
+ fa.plugins.register(Ma);
42
+ const Ha = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
43
+ function Q(a, e) {
44
+ if (a != null && !(typeof e == "string" && Ha.has(e)) && Object.prototype.hasOwnProperty.call(a, e))
45
+ return a[e];
46
+ }
47
+ function M(a) {
48
+ if (a.type === "Identifier") return a.name;
49
+ if (a.type === "MemberExpression") {
50
+ const e = M(a.object);
51
+ if (e == null) return null;
52
+ const t = a.property;
53
+ return a.computed ? t.type !== "Literal" ? null : `${e}[${JSON.stringify(t.value)}]` : t.type !== "Identifier" ? null : `${e}.${t.name}`;
54
+ }
55
+ return null;
56
+ }
57
+ function Ga(a) {
58
+ const e = a.match(/^[^.[]+/);
59
+ return e ? e[0] : a;
60
+ }
61
+ function Fa(a) {
62
+ const e = /* @__PURE__ */ new Set();
63
+ function t(r, o) {
64
+ if (r)
65
+ switch (r.type) {
66
+ case "Identifier": {
67
+ const s = r.name;
68
+ o.has(s) || e.add(s);
69
+ return;
70
+ }
71
+ case "MemberExpression": {
72
+ const s = M(r);
73
+ if (s != null) {
74
+ o.has(Ga(s)) || e.add(s);
75
+ return;
76
+ }
77
+ t(r.object, o), t(r.property, o);
78
+ return;
79
+ }
80
+ case "UnaryExpression":
81
+ t(r.argument, o);
82
+ return;
83
+ case "BinaryExpression":
84
+ t(r.left, o), t(r.right, o);
85
+ return;
86
+ case "ConditionalExpression":
87
+ t(r.test, o), t(r.consequent, o), t(r.alternate, o);
88
+ return;
89
+ case "ArrayExpression":
90
+ r.elements.forEach((s) => t(s, o));
91
+ return;
92
+ case "CallExpression": {
93
+ const s = r.callee;
94
+ s.type === "MemberExpression" && t(s.object, o), r.arguments.forEach((l) => {
95
+ if (l.type === "ArrowFunctionExpression") {
96
+ const c = new Set(o);
97
+ l.params?.forEach((u) => {
98
+ u.type === "Identifier" && c.add(u.name);
99
+ }), t(l.body, c);
100
+ } else
101
+ t(l, o);
102
+ });
103
+ return;
104
+ }
105
+ case "Compound":
106
+ r.body.forEach((s) => t(s, o));
107
+ return;
108
+ default:
109
+ return;
110
+ }
111
+ }
112
+ return t(a, /* @__PURE__ */ new Set()), Array.from(e);
113
+ }
114
+ const N = (a, e = 2) => String(a).padStart(e, "0");
115
+ function Ya(a) {
116
+ const e = a instanceof Date ? a : new Date(a);
117
+ return Number.isNaN(e.getTime()) ? null : e;
118
+ }
119
+ function R(a) {
120
+ const e = typeof a == "number" ? a : parseFloat(a);
121
+ return Number.isNaN(e) ? 0 : e;
122
+ }
123
+ function aa(a) {
124
+ return a.flat(1 / 0).map(R);
125
+ }
126
+ const Wa = {
127
+ // Uses UTC getters so SSR and client render the same calendar date regardless of local timezone.
128
+ formatDate(a, e = "YYYY-MM-DD") {
129
+ const t = Ya(a);
130
+ if (!t) return "";
131
+ if (e === "short" || e === "medium" || e === "long" || e === "full")
132
+ return new Intl.DateTimeFormat("en-US", { dateStyle: e, timeZone: "UTC" }).format(t);
133
+ const r = {
134
+ YYYY: String(t.getUTCFullYear()),
135
+ MM: N(t.getUTCMonth() + 1),
136
+ DD: N(t.getUTCDate()),
137
+ HH: N(t.getUTCHours()),
138
+ mm: N(t.getUTCMinutes()),
139
+ ss: N(t.getUTCSeconds())
140
+ };
141
+ return e.replace(/YYYY|MM|DD|HH|mm|ss/g, (o) => r[o]);
142
+ },
143
+ formatCurrency(a, e = "USD", t = "en-US") {
144
+ const r = R(a);
145
+ return new Intl.NumberFormat(t, { style: "currency", currency: e }).format(r);
146
+ },
147
+ upper(a) {
148
+ return String(a ?? "").toUpperCase();
149
+ },
150
+ lower(a) {
151
+ return String(a ?? "").toLowerCase();
152
+ },
153
+ trim(a) {
154
+ return String(a ?? "").trim();
155
+ },
156
+ concat(...a) {
157
+ return a.map((e) => e ?? "").join("");
158
+ },
159
+ join(a, e = ", ") {
160
+ return Array.isArray(a) ? a.join(e) : "";
161
+ },
162
+ default(a, e) {
163
+ return a == null || a === "" ? e : a;
164
+ },
165
+ length(a) {
166
+ return typeof a == "string" || Array.isArray(a) ? a.length : 0;
167
+ },
168
+ count(a) {
169
+ return Array.isArray(a) ? a.length : 0;
170
+ },
171
+ sum(a) {
172
+ return Array.isArray(a) ? a.reduce((e, t) => e + R(t), 0) : 0;
173
+ },
174
+ min(...a) {
175
+ const e = aa(a);
176
+ return e.length ? Math.min(...e) : void 0;
177
+ },
178
+ max(...a) {
179
+ const e = aa(a);
180
+ return e.length ? Math.max(...e) : void 0;
181
+ },
182
+ round(a, e = 0) {
183
+ const t = 10 ** e;
184
+ return Math.round(R(a) * t) / t;
185
+ }
186
+ }, Ka = /* @__PURE__ */ new Set(["map", "filter", "some", "every", "find"]);
187
+ function Xa(a, e, t) {
188
+ const r = { ...t };
189
+ return (a.params ?? []).forEach((o, s) => {
190
+ o.type === "Identifier" && (r[o.name] = e[s]);
191
+ }), f(a.body, r);
192
+ }
193
+ function f(a, e) {
194
+ switch (a.type) {
195
+ case "Literal":
196
+ return a.value;
197
+ case "Identifier":
198
+ return Q(e, a.name);
199
+ case "MemberExpression": {
200
+ const t = f(a.object, e), r = a.property, o = a.computed ? f(r, e) : r.name;
201
+ return Q(t, o);
202
+ }
203
+ case "UnaryExpression": {
204
+ const t = f(a.argument, e);
205
+ switch (a.operator) {
206
+ case "!":
207
+ return !t;
208
+ case "-":
209
+ return -t;
210
+ case "+":
211
+ return +t;
212
+ case "~":
213
+ return ~t;
214
+ default:
215
+ throw new Error(`Unknown unary operator: ${a.operator}`);
216
+ }
217
+ }
218
+ case "BinaryExpression": {
219
+ const t = a.operator;
220
+ if (t === "&&" || t === "||" || t === "??") {
221
+ const s = f(a.left, e);
222
+ return (t === "&&" ? !s : t === "||" ? !!s : s != null) ? s : f(a.right, e);
223
+ }
224
+ const r = f(a.left, e), o = f(a.right, e);
225
+ switch (t) {
226
+ case "===":
227
+ return r === o;
228
+ case "!==":
229
+ return r !== o;
230
+ case "==":
231
+ return r == o;
232
+ case "!=":
233
+ return r != o;
234
+ case "<":
235
+ return r < o;
236
+ case ">":
237
+ return r > o;
238
+ case "<=":
239
+ return r <= o;
240
+ case ">=":
241
+ return r >= o;
242
+ case "+":
243
+ return r + o;
244
+ case "-":
245
+ return r - o;
246
+ case "*":
247
+ return r * o;
248
+ case "/":
249
+ return r / o;
250
+ case "%":
251
+ return r % o;
252
+ case "**":
253
+ return r ** o;
254
+ case "&":
255
+ return r & o;
256
+ case "|":
257
+ return r | o;
258
+ case "^":
259
+ return r ^ o;
260
+ case "<<":
261
+ return r << o;
262
+ case ">>":
263
+ return r >> o;
264
+ case ">>>":
265
+ return r >>> o;
266
+ default:
267
+ throw new Error(`Unknown binary operator: ${t}`);
268
+ }
269
+ }
270
+ case "ConditionalExpression": {
271
+ const t = f(a.test, e);
272
+ return f(t ? a.consequent : a.alternate, e);
273
+ }
274
+ case "ArrayExpression":
275
+ return a.elements.map(
276
+ (t) => t ? f(t, e) : void 0
277
+ );
278
+ case "CallExpression": {
279
+ const t = a.callee, r = a.arguments;
280
+ if (t.type === "MemberExpression") {
281
+ if (t.computed || t.property.type !== "Identifier")
282
+ throw new Error(
283
+ "Method calls must use a fixed dot-notation method name"
284
+ );
285
+ const s = t.property.name;
286
+ if (!Ka.has(s))
287
+ throw new Error(`Unknown array method: ${s}`);
288
+ const l = f(t.object, e);
289
+ if (!Array.isArray(l))
290
+ throw new Error(`.${s}() can only be called on an array`);
291
+ const [c] = r;
292
+ if (r.length !== 1 || c.type !== "ArrowFunctionExpression")
293
+ throw new Error(
294
+ `.${s}() requires a single arrow-function argument`
295
+ );
296
+ return l[s](
297
+ (u, p) => Xa(c, [u, p], e)
298
+ );
299
+ }
300
+ if (t.type !== "Identifier")
301
+ throw new Error(
302
+ "Function calls are only allowed via a bare helper name"
303
+ );
304
+ const o = Wa[t.name];
305
+ if (typeof o != "function")
306
+ throw new Error(`Unknown helper: ${t.name}`);
307
+ return o(...r.map((s) => f(s, e)));
308
+ }
309
+ default:
310
+ throw new Error(`Unsupported expression type: ${a.type}`);
311
+ }
312
+ }
313
+ const ea = new ha(250);
314
+ function ba(a) {
315
+ let e = ea.get(a);
316
+ return e || (e = fa(a), ea.set(a, e), e);
317
+ }
318
+ function qa(a, e) {
319
+ if (!a || typeof a != "string" || !a.startsWith("{{") || !a.endsWith("}}"))
320
+ return a;
321
+ const t = a.slice(2, -2).trim();
322
+ if (t)
323
+ try {
324
+ return f(ba(t), e);
325
+ } catch (r) {
326
+ console.error(`Error parsing expression "${a}":`, r);
327
+ return;
328
+ }
329
+ }
330
+ function Ja(a) {
331
+ return typeof a == "string" && a.startsWith("{{") && a.endsWith("}}");
332
+ }
333
+ function ta(a) {
334
+ if (!Ja(a)) return null;
335
+ const e = a.slice(2, -2).trim();
336
+ if (!e)
337
+ return { source: a, content: e, ast: null, error: null, variables: [] };
338
+ try {
339
+ const t = ba(e);
340
+ return {
341
+ source: a,
342
+ content: e,
343
+ ast: t,
344
+ error: null,
345
+ variables: Fa(t)
346
+ };
347
+ } catch (t) {
348
+ return { source: a, content: e, ast: null, error: t, variables: [] };
349
+ }
350
+ }
351
+ const Za = /[^.[\]]+|\[(?:[^\[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/g;
352
+ function H(a) {
353
+ return a.match(Za) || [];
354
+ }
355
+ function E(a) {
356
+ return a.startsWith("[") && a.endsWith("]") ? a.slice(1, -1).replace(/^["']|["']$/g, "") : a;
357
+ }
358
+ function Qa(a) {
359
+ const e = H(a).map(E), t = e.map((r, o) => {
360
+ const s = e[o + 1];
361
+ return s !== void 0 && /^\d+$/.test(s);
362
+ });
363
+ return { key: a, segments: e, numericNext: t };
364
+ }
365
+ function S(a) {
366
+ const e = typeof a == "string", t = a, r = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ Object.create(null), l = /* @__PURE__ */ new Set();
367
+ let c = null;
368
+ if (e)
369
+ c = ta(a), c?.variables.forEach((h) => l.add(h));
370
+ else
371
+ for (const [h, $] of Object.entries(t?.args ?? {})) {
372
+ const x = ta($);
373
+ x && (r[h] = x, o.add(h), x.ast && M(x.ast) != null && (s[h] = x.content), x.variables.forEach((I) => l.add(I)));
374
+ }
375
+ const u = e ? void 0 : t?.type, p = u || "div", b = u === d.EACH, y = u === d.IF, P = b ? {
376
+ as: t.args?.as,
377
+ indexAlias: t.args?.index,
378
+ keyExpr: t.args?.key,
379
+ rawItemsPath: s.items ?? ""
380
+ } : null, w = Array.from(l, Qa);
381
+ return {
382
+ source: a,
383
+ isText: e,
384
+ type: p,
385
+ isEach: b,
386
+ isIf: y,
387
+ isImage: u === d.IMAGE,
388
+ dynamicKeys: w,
389
+ dynamicArgs: o,
390
+ argPaths: s,
391
+ expressions: r,
392
+ text: c,
393
+ // Matches `isStaticLeaf`: control nodes always re-render, otherwise "no bindings of its own".
394
+ isStatic: !b && !y && w.length === 0,
395
+ each: P,
396
+ children: e ? [] : (t?.children ?? []).map(S)
397
+ };
398
+ }
399
+ const ra = /* @__PURE__ */ new WeakMap(), oa = new ha(50);
400
+ function jt(a) {
401
+ if (typeof a == "string") {
402
+ const r = oa.get(a);
403
+ if (r) return r;
404
+ const o = {
405
+ root: S(a),
406
+ source: a
407
+ };
408
+ return oa.set(a, o), o;
409
+ }
410
+ if (a == null || typeof a != "object")
411
+ return { root: S(a), source: a };
412
+ const e = ra.get(a);
413
+ if (e) return e;
414
+ const t = {
415
+ root: S(a),
416
+ source: a
417
+ };
418
+ return ra.set(a, t), t;
419
+ }
420
+ function $t(a) {
421
+ return a;
422
+ }
423
+ function Dt(a) {
424
+ return a;
425
+ }
426
+ const xa = L.forwardRef(({ ...a }, e) => /* @__PURE__ */ n("a", { ref: e, ...a }));
427
+ xa.displayName = "A";
428
+ const ae = g("font-heading font-semibold scroll-m-20", {
429
+ variants: {
430
+ variant: {
431
+ h1: "text-6xl font-semibold tracking-tight",
432
+ h2: "text-4xl font-semibold tracking-tight first:mt-0",
433
+ h3: "text-2xl font-semibold tracking-tight",
434
+ h4: "text-xl font-semibold tracking-tight",
435
+ h5: "text-lg font-semibold tracking-tight",
436
+ h6: "text-base font-semibold tracking-tight"
437
+ }
438
+ },
439
+ defaultVariants: {
440
+ variant: "h3"
441
+ }
442
+ }), va = L.forwardRef(
443
+ ({ className: a, variant: e, as: t, ...r }, o) => /* @__PURE__ */ n(
444
+ t || e || "h3",
445
+ {
446
+ ref: o,
447
+ className: i(ae({ variant: e }), a),
448
+ ...r
449
+ }
450
+ )
451
+ );
452
+ va.displayName = "H";
453
+ const ee = g("text-base", {
454
+ variants: {
455
+ variant: {
456
+ default: "",
457
+ muted: "text-muted"
458
+ },
459
+ size: {
460
+ xs: "text-xs font-light leading-snug",
461
+ sm: "text-sm font-light leading-snug",
462
+ md: "text-base",
463
+ lg: "text-lg font-semibold",
464
+ xl: "text-xl font-bold"
465
+ }
466
+ },
467
+ defaultVariants: {
468
+ variant: "default",
469
+ size: "md"
470
+ }
471
+ }), wa = L.forwardRef(
472
+ ({ className: a, variant: e, size: t, as: r = "p", ...o }, s) => /* @__PURE__ */ n(
473
+ r,
474
+ {
475
+ ref: s,
476
+ className: i(ee({ variant: e, size: t }), a),
477
+ ...o
478
+ }
479
+ )
480
+ );
481
+ wa.displayName = "P";
482
+ const te = g("flex w-full flex-col", {
483
+ variants: {
484
+ variant: {
485
+ default: "",
486
+ contained: "",
487
+ separated: "gap-4"
488
+ },
489
+ raised: {
490
+ xs: "",
491
+ sm: "",
492
+ md: "",
493
+ lg: ""
494
+ },
495
+ extrude: {
496
+ xs: "",
497
+ sm: "",
498
+ md: "",
499
+ lg: ""
500
+ }
501
+ },
502
+ defaultVariants: {
503
+ variant: "default"
504
+ }
505
+ });
506
+ function re({
507
+ className: a,
508
+ variant: e = "default",
509
+ raised: t,
510
+ extrude: r,
511
+ ...o
512
+ }) {
513
+ return /* @__PURE__ */ n(
514
+ A.Root,
515
+ {
516
+ "data-slot": "accordion",
517
+ "data-variant": e,
518
+ "data-raised": t ?? void 0,
519
+ "data-extrude": r ?? void 0,
520
+ className: i(
521
+ te({ variant: e, raised: t, extrude: r }),
522
+ "group/accordion",
523
+ a
524
+ ),
525
+ ...o
526
+ }
527
+ );
528
+ }
529
+ function oe({ className: a, ...e }) {
530
+ return /* @__PURE__ */ n(
531
+ A.Item,
532
+ {
533
+ "data-slot": "accordion-item",
534
+ className: i(
535
+ "group/accordion-item",
536
+ "data-closed:z-1 data-open:z-2 transition-[box-shadow,translate] linear duration-200",
537
+ "group-data-[variant=default]/accordion:bg-surface",
538
+ "group-data-[variant=default]/accordion:first:rounded-t-base",
539
+ "group-data-[variant=default]/accordion:last:rounded-b-base",
540
+ "group-data-[variant=default]/accordion:border-b",
541
+ "group-data-[variant=default]/accordion:last:border-b-transparent",
542
+ "group-data-[variant=contained]/accordion:bg-surface",
543
+ "group-data-[variant=contained]/accordion:first:rounded-t-base",
544
+ "group-data-[variant=contained]/accordion:last:rounded-b-base",
545
+ "group-data-[variant=contained]/accordion:border-2",
546
+ "group-data-[variant=contained]/accordion:border-border",
547
+ "group-data-[variant=contained]/accordion:not-last:data-closed:-mb-1",
548
+ "group-data-[variant=separated]/accordion:bg-surface",
549
+ "group-data-[variant=separated]/accordion:border-2",
550
+ "group-data-[variant=separated]/accordion:border-border",
551
+ "group-data-[variant=separated]/accordion:rounded-base",
552
+ "group-data-[variant=separated]/accordion:data-closed:not-last:mb-0",
553
+ "group-data-raised/accordion:data-open:z-1",
554
+ "group-data-raised/accordion:border",
555
+ "group-data-raised/accordion:border-border",
556
+ "group-data-raised/accordion:not-last:data-closed:-mb-1",
557
+ "group-data-[raised=xs]/accordion:shadow-xs group-data-[raised=xs]/accordion:-translate-0.5",
558
+ "group-data-[raised=sm]/accordion:shadow-sm group-data-[raised=sm]/accordion:-translate-0.75",
559
+ "group-data-[raised=md]/accordion:shadow-md group-data-[raised=md]/accordion:-translate-1",
560
+ "group-data-[raised=lg]/accordion:shadow-lg group-data-[raised=lg]/accordion:-translate-1.25",
561
+ "group-data-extrude/accordion:data-open:z-1",
562
+ "group-data-extrude/accordion:border",
563
+ "group-data-extrude/accordion:data-open:border-border",
564
+ "group-data-extrude/accordion:not-last:data-open:-mb-1",
565
+ "group-data-extrude/accordion:border-t-transparent",
566
+ "group-data-extrude/accordion:border-l-transparent",
567
+ "group-data-extrude/accordion:border-r-transparent",
568
+ "group-data-[extrude=xs]/accordion:data-open:shadow-xs group-data-[extrude=xs]/accordion:data-open:-translate-0.5",
569
+ "group-data-[extrude=sm]/accordion:data-open:shadow-sm group-data-[extrude=sm]/accordion:data-open:-translate-0.75",
570
+ "group-data-[extrude=md]/accordion:data-open:shadow-md group-data-[extrude=md]/accordion:data-open:-translate-1",
571
+ "group-data-[extrude=lg]/accordion:data-open:shadow-lg group-data-[extrude=lg]/accordion:data-open:-translate-1.25",
572
+ a
573
+ ),
574
+ ...e
575
+ }
576
+ );
577
+ }
578
+ function se({
579
+ className: a,
580
+ children: e,
581
+ disabled: t,
582
+ icon: r = ja,
583
+ onClick: o,
584
+ ...s
585
+ }) {
586
+ const { trigger: l } = U();
587
+ return /* @__PURE__ */ n(A.Header, { className: "flex", children: /* @__PURE__ */ T(
588
+ A.Trigger,
589
+ {
590
+ "data-slot": "accordion-trigger",
591
+ className: i(
592
+ "neo-base neo-accordion-focus pt-3 text-left text-base font-medium cursor-pointer shrink-0 group/accordion-trigger relative flex flex-1 items-center justify-between border border-transparent transition-[opacity,border], data-disabled:pointer-events-none data-disabled:opacity-50",
593
+ "p-4",
594
+ "hover:underline",
595
+ "group-first/accordion-item:rounded-t-base",
596
+ "group-last/accordion-item:group-data-closed/accordion-item:rounded-b-base",
597
+ "group-data-open/accordion-item:group-has-data-[slot=accordion-content]/accordion-item:pb-2",
598
+ "group-data-open/accordion-item:group-has-data-[slot=accordion-content]/accordion-item:mb-2",
599
+ "group-data-[variant=separated]/accordion:pt-4",
600
+ a
601
+ ),
602
+ onClick: (c) => {
603
+ l(Oa), o?.(c);
604
+ },
605
+ ...s,
606
+ children: [
607
+ e,
608
+ /* @__PURE__ */ n(
609
+ r,
610
+ {
611
+ "data-slot": "accordion-trigger-icon",
612
+ className: i(
613
+ "group-aria-expanded/accordion-trigger:-rotate-180 transition-[rotate] duration-300",
614
+ "text-muted ml-auto size-4 pointer-events-none"
615
+ )
616
+ }
617
+ )
618
+ ]
619
+ }
620
+ ) });
621
+ }
622
+ function ne({
623
+ className: a,
624
+ children: e,
625
+ ...t
626
+ }) {
627
+ return /* @__PURE__ */ n(
628
+ A.Panel,
629
+ {
630
+ "data-slot": "accordion-content",
631
+ keepMounted: !0,
632
+ className: "overflow-hidden text-sm transition-[height] duration-300 ease-out data-ending-style:h-0 data-starting-style:h-0 h-(--accordion-panel-height)",
633
+ ...t,
634
+ children: /* @__PURE__ */ n(
635
+ "div",
636
+ {
637
+ className: i(
638
+ "pt-0 px-4 pb-4 data-ending-style:h-0 data-starting-style:h-0 [&_p:not(:last-child)]:mb-4",
639
+ a
640
+ ),
641
+ children: e
642
+ }
643
+ )
644
+ }
645
+ );
646
+ }
647
+ const de = g(
648
+ "relative grid px-4 py-3 gap-0.5 rounded-base border text-left text-sm *:[svg]:row-span-2 *:[svg]:translate-y-1 *:[svg]:text-current has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-24 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5",
649
+ {
650
+ variants: {
651
+ variant: {
652
+ default: "bg-surface text-card-foreground",
653
+ success: "bg-main-secondary text-card-foreground",
654
+ warning: "text-foreground bg-accent-yellow-secondary",
655
+ destructive: "text-foreground bg-accent-red-secondary border-border *:[svg]:text-current"
656
+ },
657
+ size: {
658
+ default: "w-full",
659
+ sm: "w-sm",
660
+ lg: "w-full"
661
+ },
662
+ raised: {
663
+ xs: "shadow-xs -translate-0.5",
664
+ sm: "shadow-sm -translate-0.75",
665
+ md: "shadow-md -translate-1",
666
+ lg: "shadow-lg -translate-1.25",
667
+ xl: "shadow-xl -translate-1.5"
668
+ }
669
+ },
670
+ defaultVariants: {
671
+ variant: "default"
672
+ }
673
+ }
674
+ );
675
+ function ie({
676
+ className: a,
677
+ variant: e = "default",
678
+ size: t = "default",
679
+ raised: r,
680
+ ...o
681
+ }) {
682
+ return /* @__PURE__ */ n(
683
+ "div",
684
+ {
685
+ "data-slot": "alert",
686
+ role: "alert",
687
+ className: i(
688
+ de({ variant: e, raised: r, size: t }),
689
+ "group/alert",
690
+ a
691
+ ),
692
+ ...o
693
+ }
694
+ );
695
+ }
696
+ const le = g("relative flex shrink-0 select-none", {
697
+ variants: {
698
+ size: {
699
+ full: "size-full",
700
+ sm: "size-8",
701
+ md: "size-10",
702
+ lg: "size-12",
703
+ xl: "size-14"
704
+ },
705
+ raised: {
706
+ xs: "shadow-xs -translate-0.5 ring-0",
707
+ sm: "shadow-sm -translate-0.75 ring-0",
708
+ md: "shadow-md -translate-1 ring-0",
709
+ lg: "shadow-lg -translate-1.25 ring-0"
710
+ },
711
+ rounded: {
712
+ none: "",
713
+ sm: "rounded-sm",
714
+ md: "rounded-md",
715
+ lg: "rounded-lg",
716
+ full: "rounded-full"
717
+ }
718
+ },
719
+ defaultVariants: {
720
+ size: "md",
721
+ rounded: "full"
722
+ }
723
+ });
724
+ function ce({
725
+ className: a,
726
+ size: e = "md",
727
+ rounded: t = "full",
728
+ raised: r,
729
+ src: o,
730
+ alt: s,
731
+ fallback: l,
732
+ badge: c,
733
+ children: u,
734
+ ...p
735
+ }) {
736
+ return /* @__PURE__ */ n(
737
+ V.Root,
738
+ {
739
+ "data-slot": "avatar",
740
+ "data-size": e,
741
+ "data-raised": r,
742
+ "data-rounded": t,
743
+ className: i(
744
+ le({ size: e, rounded: t, raised: r }),
745
+ "group/avatar",
746
+ a
747
+ ),
748
+ ...p,
749
+ children: u ?? /* @__PURE__ */ T(_, { children: [
750
+ o && /* @__PURE__ */ n(
751
+ V.Image,
752
+ {
753
+ "data-slot": "avatar-image",
754
+ className: i(
755
+ "aspect-square size-full object-cover border",
756
+ "group-data-[rounded=sm]/avatar:rounded-sm",
757
+ "group-data-[rounded=md]/avatar:rounded-md",
758
+ "group-data-[rounded=lg]/avatar:rounded-lg",
759
+ "group-data-[rounded=full]/avatar:rounded-full"
760
+ ),
761
+ src: o,
762
+ alt: s
763
+ }
764
+ ),
765
+ l != null && /* @__PURE__ */ n(
766
+ V.Fallback,
767
+ {
768
+ "data-slot": "avatar-fallback",
769
+ className: i(
770
+ "text-foreground bg-surface flex size-full items-center justify-center border text-sm ",
771
+ "group-data-[size=sm]/avatar:text-xs",
772
+ "group-data-[rounded=sm]/avatar:rounded-sm",
773
+ "group-data-[rounded=md]/avatar:rounded-md",
774
+ "group-data-[rounded=lg]/avatar:rounded-lg",
775
+ "group-data-[rounded=full]/avatar:rounded-full"
776
+ ),
777
+ delay: 150,
778
+ children: l
779
+ }
780
+ ),
781
+ c != null && /* @__PURE__ */ n(
782
+ "span",
783
+ {
784
+ "data-slot": "avatar-badge",
785
+ className: i(
786
+ "overflow-hidden text-primary-foreground ring-surface absolute right-1 bottom-1 z-10 inline-flex items-center justify-center bg-main select-none border-1",
787
+ "group-data-[size=sm]/avatar:size-3",
788
+ "group-data-[size=sm]/avatar:[&>svg]:hidden",
789
+ "group-data-[size=sm]/avatar:translate-0.75",
790
+ "group-data-[size=md]/avatar:size-4",
791
+ "group-data-[size=md]/avatar:[&>svg]:size-3",
792
+ "group-data-[size=md]/avatar:translate-1.5",
793
+ "group-data-[size=lg]/avatar:size-5",
794
+ "group-data-[size=lg]/avatar:[&>svg]:size-4",
795
+ "group-data-[size=lg]/avatar:translate-1.5",
796
+ "group-data-[size=xl]/avatar:size-6",
797
+ "group-data-[size=xl]/avatar:[&>svg]:size-5",
798
+ "group-data-[size=xl]/avatar:translate-1.5",
799
+ "group-data-[size=full]/avatar:size-4",
800
+ "group-data-[size=full]/avatar:[&>svg]:size-3",
801
+ "group-data-[size=full]/avatar:translate-1.5",
802
+ "group-data-[raised=xs]/avatar:shadow-xs",
803
+ "group-data-[raised=sm]/avatar:shadow-sm",
804
+ "group-data-[raised=md]/avatar:shadow-md",
805
+ "group-data-[raised=lg]/avatar:shadow-lg",
806
+ "group-data-[rounded=sm]/avatar:rounded-sm",
807
+ "group-data-[rounded=md]/avatar:rounded-md",
808
+ "group-data-[rounded=lg]/avatar:rounded-lg",
809
+ "group-data-[rounded=full]/avatar:rounded-full",
810
+ "group-data-[rounded=full]/avatar:translate-0"
811
+ ),
812
+ children: c
813
+ }
814
+ )
815
+ ] })
816
+ }
817
+ );
818
+ }
819
+ const ue = g(
820
+ "gap-1 px-2 py-0.5 [button]:cursor-pointer rounded-full border text-xs font-medium transition-[color,box-shadow,translate] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none aria-invalid:border-accent-red duration-200 overflow-hidden",
821
+ {
822
+ variants: {
823
+ variant: {
824
+ default: "bg-main text-foreground",
825
+ secondary: "bg-main-secondary text-foreground",
826
+ destructive: "bg-accent-red text-foreground",
827
+ outline: "border-border text-foreground",
828
+ ghost: "text-muted hover:bg-foreground/20 border-transparent"
829
+ },
830
+ size: {
831
+ sm: "h-5 text-xs [&>svg]:size-3",
832
+ md: "text-sm [&>svg]:size-4",
833
+ lg: "text-base [&>svg]:size-5"
834
+ },
835
+ raised: {
836
+ xs: "shadow-xs -translate-px",
837
+ sm: "shadow-sm -translate-0.5",
838
+ md: "shadow-md -translate-0.75",
839
+ lg: "shadow-lg -translate-1"
840
+ },
841
+ extrude: {
842
+ xs: "hover:shadow-xs hover:-translate-px focus-visible:shadow-xs focus-visible:-translate-px active:shadow-none active:translate-0 disabled:shadow-none disabled:translate-0",
843
+ sm: "hover:shadow-sm hover:-translate-0.5 focus-visible:shadow-sm focus-visible:-translate-0.5 active:shadow-none active:translate-0 disabled:shadow-none disabled:translate-0",
844
+ md: "hover:shadow-md hover:-translate-0.75 focus-visible:shadow-md focus-visible:-translate-0.75 active:shadow-none active:translate-0 disabled:shadow-none disabled:translate-0",
845
+ lg: "hover:shadow-lg hover:-translate-1 focus-visible:shadow-lg focus-visible:-translate-1 active:shadow-none active:translate-0 disabled:shadow-none disabled:translate-0"
846
+ }
847
+ },
848
+ defaultVariants: {
849
+ variant: "default",
850
+ size: "md"
851
+ }
852
+ }
853
+ );
854
+ function pe({
855
+ className: a,
856
+ variant: e = "default",
857
+ size: t = "md",
858
+ raised: r,
859
+ extrude: o,
860
+ render: s,
861
+ ...l
862
+ }) {
863
+ return Va({
864
+ defaultTagName: "span",
865
+ props: Da(
866
+ {
867
+ className: i(
868
+ ue({ size: t, variant: e, raised: r, extrude: o }),
869
+ "group/badge",
870
+ a
871
+ ),
872
+ tabIndex: l.tabIndex
873
+ },
874
+ l
875
+ ),
876
+ render: s,
877
+ state: {
878
+ slot: "badge",
879
+ variant: e
880
+ }
881
+ });
882
+ }
883
+ const ge = g(
884
+ "bg-surface border text-foreground overflow-hidden rounded-base text-sm flex flex-col",
885
+ {
886
+ variants: {
887
+ size: {
888
+ sm: "gap-3 py-3 md:gap-4 md:py-4",
889
+ md: "gap-4 py-4 md:gap-6 md:py-6"
890
+ },
891
+ raised: {
892
+ none: "shadow-none",
893
+ xs: "shadow-xs -translate-0.5",
894
+ sm: "shadow-sm -translate-0.75",
895
+ md: "shadow-md -translate-1",
896
+ lg: "shadow-lg -translate-1.25",
897
+ xl: "shadow-xl -translate-1.5"
898
+ }
899
+ },
900
+ defaultVariants: {
901
+ size: "md",
902
+ raised: "md"
903
+ }
904
+ }
905
+ );
906
+ function me({
907
+ className: a,
908
+ size: e = "md",
909
+ raised: t = "md",
910
+ ...r
911
+ }) {
912
+ return /* @__PURE__ */ n(
913
+ "div",
914
+ {
915
+ "data-slot": "card",
916
+ "data-size": e,
917
+ className: i(ge({ raised: t, size: e }), "group/card", a),
918
+ ...r
919
+ }
920
+ );
921
+ }
922
+ function fe({ className: a, ...e }) {
923
+ return /* @__PURE__ */ n(
924
+ "div",
925
+ {
926
+ "data-slot": "card-header",
927
+ className: i(
928
+ "has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",
929
+ "gap-1 group/card-header @container/card-header grid auto-rows-min items-start",
930
+ "group-data-[size=sm]/card:px-3 group-data-[size=sm]/card:[.border-b]:pb-3",
931
+ "group-data-[size=md]/card:px-4 group-data-[size=md]/card:[.border-b]:pb-4",
932
+ "md:group-data-[size=sm]/card:px-4 md:group-data-[size=sm]/card:[.border-b]:pb-4",
933
+ "md:group-data-[size=md]/card:px-6 md:group-data-[size=md]/card:[.border-b]:pb-6",
934
+ a
935
+ ),
936
+ ...e
937
+ }
938
+ );
939
+ }
940
+ function he({ className: a, ...e }) {
941
+ return /* @__PURE__ */ n(
942
+ "div",
943
+ {
944
+ "data-slot": "card-title",
945
+ className: i(
946
+ "col-start-1 row-start-1 font-heading leading-normal font-medium mt-0.5 self-center",
947
+ "group-has-data-[slot=card-description]/card-header:leading-tight",
948
+ "group-has-data-[slot=card-description]/card-header:mt-0",
949
+ "group-data-[size=sm]/card:text-base",
950
+ "group-data-[size=md]/card:text-lg",
951
+ "group-has-data-[slot=card-icon]/card-header:group-data-[size=sm]/card:pl-9",
952
+ "group-has-data-[slot=card-icon]/card-header:group-data-[size=md]/card:pl-12",
953
+ "group-has-data-[slot=card-icon]/card-header:group-has-data-[slot=card-description]/card-header:group-data-[size=sm]/card:pl-13",
954
+ "group-has-data-[slot=card-icon]/card-header:group-has-data-[slot=card-description]/card-header:group-data-[size=md]/card:pl-14",
955
+ a
956
+ ),
957
+ ...e
958
+ }
959
+ );
960
+ }
961
+ function be({ className: a, ...e }) {
962
+ return /* @__PURE__ */ n(
963
+ "div",
964
+ {
965
+ "data-slot": "card-description",
966
+ className: i(
967
+ "text-muted col-start-1 row-start-2",
968
+ "group-data-[size=sm]/card:text-xs",
969
+ "group-data-[size=md]/card:text-sm",
970
+ "group-has-data-[slot=card-icon]/card-header:group-data-[size=sm]/card:pl-13",
971
+ "group-has-data-[slot=card-icon]/card-header:group-data-[size=md]/card:pl-14",
972
+ a
973
+ ),
974
+ ...e
975
+ }
976
+ );
977
+ }
978
+ function xe({ className: a, ...e }) {
979
+ return /* @__PURE__ */ n(
980
+ "div",
981
+ {
982
+ "data-slot": "card-action",
983
+ className: i(
984
+ "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
985
+ a
986
+ ),
987
+ ...e
988
+ }
989
+ );
990
+ }
991
+ function ve({ className: a, ...e }) {
992
+ return /* @__PURE__ */ n(
993
+ "div",
994
+ {
995
+ "data-slot": "card-icon",
996
+ className: i(
997
+ "bg-main col-span-1 row-span-2 col-start-1 row-start-1 rounded-sm border-2 flex items-center justify-center self-start",
998
+ "group-data-[size=sm]/card:p-0.75",
999
+ "group-data-[size=md]/card:p-1",
1000
+ "group-data-[size=sm]/card:size-7",
1001
+ "group-data-[size=md]/card:size-8",
1002
+ "group-has-data-[slot=card-description]/card-header:group-data-[size=sm]/card:size-10",
1003
+ "group-has-data-[slot=card-description]/card-header:group-data-[size=md]/card:size-11",
1004
+ a
1005
+ ),
1006
+ ...e
1007
+ }
1008
+ );
1009
+ }
1010
+ function we({ className: a, ...e }) {
1011
+ return /* @__PURE__ */ n(
1012
+ "div",
1013
+ {
1014
+ "data-slot": "card-content",
1015
+ className: i(
1016
+ "group-data-[size=sm]/card:px-3",
1017
+ "group-data-[size=md]/card:px-4",
1018
+ "md:group-data-[size=sm]/card:px-4",
1019
+ "md:group-data-[size=md]/card:px-6",
1020
+ a
1021
+ ),
1022
+ ...e
1023
+ }
1024
+ );
1025
+ }
1026
+ function ye({ className: a, ...e }) {
1027
+ return /* @__PURE__ */ n(
1028
+ "div",
1029
+ {
1030
+ "data-slot": "card-footer",
1031
+ className: i(
1032
+ "flex items-center justify-end",
1033
+ "group-data-[size=sm]/card:px-3 group-data-[size=sm]/card:[.border-t]:pt-3",
1034
+ "group-data-[size=md]/card:px-4 group-data-[size=md]/card:[.border-t]:pt-4",
1035
+ "md:group-data-[size=sm]/card:px-4 md:group-data-[size=sm]/card:[.border-t]:pt-4",
1036
+ "md:group-data-[size=md]/card:px-6 md:group-data-[size=md]/card:[.border-t]:pt-6",
1037
+ a
1038
+ ),
1039
+ ...e
1040
+ }
1041
+ );
1042
+ }
1043
+ const ze = g(
1044
+ "neo-base neo-checkbox-focus flex size-5 cursor-pointer items-center justify-center rounded-md border relative shrink-0 transition-[color,opacity,box-shadow,translate] data-checked:bg-main aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled:opacity-50 aria-invalid:bg-accent-red-secondary",
1045
+ {
1046
+ variants: {
1047
+ size: {
1048
+ xs: "size-4.5",
1049
+ sm: "size-5",
1050
+ md: "size-5.5",
1051
+ lg: "size-6",
1052
+ xl: "size-6.5"
1053
+ }
1054
+ },
1055
+ defaultVariants: {
1056
+ size: "md"
1057
+ }
1058
+ }
1059
+ );
1060
+ function ke({
1061
+ className: a,
1062
+ size: e,
1063
+ onCheckedChange: t,
1064
+ ...r
1065
+ }) {
1066
+ const { trigger: o } = U();
1067
+ return /* @__PURE__ */ n(
1068
+ J.Root,
1069
+ {
1070
+ "data-slot": "checkbox",
1071
+ "data-size": e,
1072
+ className: i(
1073
+ ze({ size: e }),
1074
+ "peer group/checkbox",
1075
+ a
1076
+ ),
1077
+ "aria-label": r["aria-label"] ?? "checkbox",
1078
+ onCheckedChange: (s, l) => {
1079
+ o(Ra), t?.(s, l);
1080
+ },
1081
+ ...r,
1082
+ children: /* @__PURE__ */ n(
1083
+ J.Indicator,
1084
+ {
1085
+ "data-slot": "checkbox-indicator",
1086
+ className: "grid place-content-center text-current",
1087
+ children: /* @__PURE__ */ n(
1088
+ $a,
1089
+ {
1090
+ stroke: 3.5,
1091
+ className: i(
1092
+ "size-4",
1093
+ "group-data-[size=xs]/checkbox:size-3",
1094
+ "group-data-[size=sm]/checkbox:size-3.5",
1095
+ "group-data-[size=md]/checkbox:size-4",
1096
+ "group-data-[size=lg]/checkbox:size-4.5",
1097
+ "group-data-[size=xl]/checkbox:size-5"
1098
+ )
1099
+ }
1100
+ )
1101
+ }
1102
+ )
1103
+ }
1104
+ );
1105
+ }
1106
+ function Ce({ className: a, ...e }) {
1107
+ return /* @__PURE__ */ n(
1108
+ B.Root,
1109
+ {
1110
+ className: i("group/collapsible", a),
1111
+ "data-slot": "collapsible",
1112
+ ...e
1113
+ }
1114
+ );
1115
+ }
1116
+ function Ne({
1117
+ className: a,
1118
+ ...e
1119
+ }) {
1120
+ return /* @__PURE__ */ n(
1121
+ B.Trigger,
1122
+ {
1123
+ className: i(
1124
+ "group-data-open/collapsible:[&_svg]:-scale-y-100",
1125
+ a
1126
+ ),
1127
+ "data-slot": "collapsible-trigger",
1128
+ ...e
1129
+ }
1130
+ );
1131
+ }
1132
+ function Te({
1133
+ className: a,
1134
+ children: e,
1135
+ ...t
1136
+ }) {
1137
+ return /* @__PURE__ */ n(
1138
+ B.Panel,
1139
+ {
1140
+ className: i("group overflow-hidden", a),
1141
+ "data-slot": "collapsible-content",
1142
+ keepMounted: !0,
1143
+ ...t,
1144
+ children: /* @__PURE__ */ n(
1145
+ "div",
1146
+ {
1147
+ "data-slot": "collapsible-content-container",
1148
+ className: i(
1149
+ "transition-[opacity,translate] duration-300",
1150
+ "group-data-starting-style:-translate-y-20 group-data-starting-style:opacity-0",
1151
+ "group-data-ending-style:-translate-y-20 group-data-ending-style:opacity-0"
1152
+ ),
1153
+ children: e
1154
+ }
1155
+ )
1156
+ }
1157
+ );
1158
+ }
1159
+ function ya({ className: a, type: e, ...t }) {
1160
+ return /* @__PURE__ */ n(
1161
+ La,
1162
+ {
1163
+ type: e,
1164
+ "data-slot": "input",
1165
+ className: i(
1166
+ "neo-base neo-input-focus transition-[translate,box-shadow] h-10 w-full min-w-0 placeholder:text-subtle rounded-base border px-2.5 py-1 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 bg-surface",
1167
+ a
1168
+ ),
1169
+ ...t
1170
+ }
1171
+ );
1172
+ }
1173
+ function Ee({
1174
+ className: a,
1175
+ containerClassName: e,
1176
+ ...t
1177
+ }) {
1178
+ return /* @__PURE__ */ n(
1179
+ Ua,
1180
+ {
1181
+ "data-slot": "input-otp",
1182
+ containerClassName: i(
1183
+ "cn-input-otp flex items-center has-disabled:opacity-50",
1184
+ e
1185
+ ),
1186
+ spellCheck: !1,
1187
+ className: i("disabled:cursor-not-allowed", a),
1188
+ ...t
1189
+ }
1190
+ );
1191
+ }
1192
+ function za({
1193
+ className: a,
1194
+ onInput: e,
1195
+ autosize: t = !1,
1196
+ ...r
1197
+ }) {
1198
+ return /* @__PURE__ */ n(
1199
+ "textarea",
1200
+ {
1201
+ "data-slot": "textarea",
1202
+ onInput: e || ((s) => {
1203
+ if (t) {
1204
+ const l = s.currentTarget;
1205
+ l.style.height = "auto", l.style.height = l.scrollHeight + "px";
1206
+ }
1207
+ }),
1208
+ className: i(
1209
+ "neo-base neo-input-focus",
1210
+ "flex field-sizing-content transition-all",
1211
+ "h-10 min-h-16 w-full min-w-0",
1212
+ "placeholder:text-subtle",
1213
+ "rounded-base border px-2.5 py-2",
1214
+ "disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
1215
+ a
1216
+ ),
1217
+ ...r
1218
+ }
1219
+ );
1220
+ }
1221
+ function Ae({ className: a, ...e }) {
1222
+ return /* @__PURE__ */ n(
1223
+ "div",
1224
+ {
1225
+ "data-slot": "input-group",
1226
+ role: "group",
1227
+ className: i(
1228
+ "group/input-group",
1229
+ "relative flex w-full min-w-0 items-center border-border h-10 rounded-base border shadow-none has-[>textarea]:h-auto",
1230
+ "has-[>[data-align=block-end]]:p-1 has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:h-auto",
1231
+ "has-[>[data-align=block-start]]:p-1 has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:h-auto",
1232
+ a
1233
+ ),
1234
+ ...e
1235
+ }
1236
+ );
1237
+ }
1238
+ const Pe = g(
1239
+ "text-muted h-full gap-2 p-2 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 flex cursor-text items-center justify-center select-none",
1240
+ {
1241
+ variants: {
1242
+ align: {
1243
+ "inline-start": "mr-0.5 has-[>button]:mr-0 has-[>kbd]:mr-0 has-[>button]:-ml-0.75 has-[>kbd]:-ml-0.75 order-first",
1244
+ "inline-end": "ml-0.5 has-[>button]:ml-0 has-[>kbd]:ml-0 has-[>button]:-mr-0.75 has-[>kbd]:-mr-0.75 order-last",
1245
+ "block-start": "mb-1 [.border-b]:pb-3 order-first w-full justify-start",
1246
+ "block-end": "mt-1 [.border-t]:pt-3 order-last w-full justify-start"
1247
+ }
1248
+ },
1249
+ defaultVariants: {
1250
+ align: "inline-start"
1251
+ }
1252
+ }
1253
+ );
1254
+ function Ie({
1255
+ className: a,
1256
+ align: e = "inline-start",
1257
+ ...t
1258
+ }) {
1259
+ return /* @__PURE__ */ n(
1260
+ "div",
1261
+ {
1262
+ role: "group",
1263
+ "data-slot": "input-group-addon",
1264
+ "data-align": e,
1265
+ className: i(Pe({ align: e }), a),
1266
+ onClick: (r) => {
1267
+ r.target.closest("button") || r.currentTarget.parentElement?.querySelector("input")?.focus();
1268
+ },
1269
+ ...t
1270
+ }
1271
+ );
1272
+ }
1273
+ const Oe = g("gap-2 text-sm flex items-center", {
1274
+ variants: {
1275
+ size: {
1276
+ xs: "h-7 gap-1 rounded-sm px-1.5 py-0.5",
1277
+ sm: "",
1278
+ "icon-xs": "size-6 rounded-sm p-0 has-[>svg]:p-0",
1279
+ "icon-sm": "size-10 p-0 has-[>svg]:p-0"
1280
+ }
1281
+ },
1282
+ defaultVariants: {
1283
+ size: "xs"
1284
+ }
1285
+ });
1286
+ function Re({
1287
+ className: a,
1288
+ type: e = "button",
1289
+ variant: t = "outline",
1290
+ extrude: r = "xs",
1291
+ size: o,
1292
+ ...s
1293
+ }) {
1294
+ return /* @__PURE__ */ n(
1295
+ ma,
1296
+ {
1297
+ type: e,
1298
+ "data-size": o,
1299
+ variant: t,
1300
+ extrude: r ?? null,
1301
+ "aria-label": s["aria-label"] ?? "input-button",
1302
+ className: i(Oe({ size: o }), a),
1303
+ ...s
1304
+ }
1305
+ );
1306
+ }
1307
+ function Se({ className: a, ...e }) {
1308
+ return /* @__PURE__ */ n(
1309
+ "span",
1310
+ {
1311
+ className: i(
1312
+ "text-subtle gap-2 font-base flex items-center [&_svg]:pointer-events-none",
1313
+ a
1314
+ ),
1315
+ ...e
1316
+ }
1317
+ );
1318
+ }
1319
+ function _e({
1320
+ className: a,
1321
+ ...e
1322
+ }) {
1323
+ return /* @__PURE__ */ n(
1324
+ ya,
1325
+ {
1326
+ "data-slot": "input-group-control",
1327
+ className: i(
1328
+ "h-10 hover:border-border focus:border-border flex-1 bg-surface -m-0.5",
1329
+ "group-has-[>[data-align=block-start]]/input-group:m-0",
1330
+ "group-has-[>[data-align=block-end]]/input-group:m-0",
1331
+ "group-has-[>[data-align=inline-start]]/input-group:pl-1.5",
1332
+ "group-has-[>[data-align=inline-end]]/input-group:pr-1.5",
1333
+ "group-has-[>[data-align=block-start]]/input-group:rounded-base",
1334
+ "group-has-[>[data-align=block-end]]/input-group:rounded-base",
1335
+ "group-has-[>[data-align=inline-start]]/input-group:rounded-l-none",
1336
+ "group-has-[>[data-align=inline-start]]/input-group:hover:rounded-l-sm",
1337
+ "group-has-[>[data-align=inline-start]]/input-group:focus:rounded-l-sm",
1338
+ "group-has-[>[data-align=inline-end]]/input-group:rounded-r-none",
1339
+ "group-has-[>[data-align=inline-end]]/input-group:hover:rounded-r-sm",
1340
+ "group-has-[>[data-align=inline-end]]/input-group:focus:rounded-r-sm",
1341
+ a
1342
+ ),
1343
+ ...e
1344
+ }
1345
+ );
1346
+ }
1347
+ function je({
1348
+ className: a,
1349
+ ...e
1350
+ }) {
1351
+ return /* @__PURE__ */ n(
1352
+ za,
1353
+ {
1354
+ "data-slot": "input-group-control",
1355
+ className: i(
1356
+ "h-auto hover:border-border focus:border-border flex-1 bg-surface",
1357
+ "group-has-[>[data-align=block-start]]/input-group:m-0",
1358
+ "group-has-[>[data-align=block-end]]/input-group:m-0",
1359
+ "group-has-[>[data-align=block-start]]/input-group:rounded-base",
1360
+ "group-has-[>[data-align=block-end]]/input-group:rounded-base",
1361
+ "group-has-[>[data-align=inline-start]]/input-group:rounded-l-none",
1362
+ "group-has-[>[data-align=inline-start]]/input-group:hover:rounded-l-base",
1363
+ "group-has-[>[data-align=inline-start]]/input-group:focus:rounded-l-base",
1364
+ "group-has-[>[data-align=inline-end]]/input-group:rounded-r-none",
1365
+ "group-has-[>[data-align=inline-end]]/input-group:hover:rounded-r-base",
1366
+ "group-has-[>[data-align=inline-end]]/input-group:focus:rounded-r-base",
1367
+ a
1368
+ ),
1369
+ ...e
1370
+ }
1371
+ );
1372
+ }
1373
+ const $e = g(
1374
+ "gap-2 leading-none group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed",
1375
+ {
1376
+ variants: {
1377
+ variant: {
1378
+ default: "",
1379
+ underline: "hover:underline hover:underline-offset-3 hover:decoration-2",
1380
+ destructive: "font-bold! text-accent-red"
1381
+ },
1382
+ size: {
1383
+ xs: "text-xs font-normal",
1384
+ sm: "text-sm font-medium",
1385
+ md: "text-base font-medium",
1386
+ lg: "text-lg font-semibold",
1387
+ xl: "text-xl font-semibold"
1388
+ }
1389
+ }
1390
+ }
1391
+ );
1392
+ function De({
1393
+ size: a = "sm",
1394
+ variant: e,
1395
+ className: t,
1396
+ htmlFor: r,
1397
+ ...o
1398
+ }) {
1399
+ return /* @__PURE__ */ n(
1400
+ "label",
1401
+ {
1402
+ "data-slot": "label",
1403
+ htmlFor: r,
1404
+ className: i($e({ size: a, variant: e }), t),
1405
+ ...o
1406
+ }
1407
+ );
1408
+ }
1409
+ const sa = g("group/progress flex flex-wrap", {
1410
+ variants: {
1411
+ size: {
1412
+ xs: "gap-1",
1413
+ sm: "gap-1",
1414
+ md: "gap-1",
1415
+ lg: "gap-2",
1416
+ xl: "gap-2"
1417
+ },
1418
+ raised: {
1419
+ default: "",
1420
+ xs: "*:-translate-0.5",
1421
+ sm: "*:-translate-0.75",
1422
+ md: "*:-translate-1",
1423
+ lg: "*:-translate-[4.75px]",
1424
+ xl: "*:-translate-[5.5px]"
1425
+ },
1426
+ stacked: {
1427
+ default: "[--stack-translate:--spacing(0)]",
1428
+ xs: "[--stack-translate:--spacing(0.5)] **:data-[value=100]:rounded-xl **:data-[value=100]:scale-x-101",
1429
+ sm: "[--stack-translate:3px] **:data-[value=100]:rounded-xl **:data-[value=100]:scale-x-101",
1430
+ md: "[--stack-translate:--spacing(1)] **:data-[value=100]:rounded-xl **:data-[value=100]:scale-x-101",
1431
+ lg: "[--stack-translate:4.75px] **:data-[value=100]:rounded-xl **:data-[value=100]:scale-x-101",
1432
+ xl: "[--stack-translate:5.5px] **:data-[value=100]:rounded-xl **:data-[value=100]:scale-x-101"
1433
+ }
1434
+ }
1435
+ });
1436
+ function Ve(a) {
1437
+ const {
1438
+ size: e = "md",
1439
+ raised: t = "default",
1440
+ stacked: r = "default",
1441
+ className: o,
1442
+ children: s,
1443
+ ...l
1444
+ } = a;
1445
+ if (a.mode === "multiple") {
1446
+ const c = [...a.value].sort((u, p) => p.value - u.value);
1447
+ return /* @__PURE__ */ T(
1448
+ k.Root,
1449
+ {
1450
+ "data-slot": "progress",
1451
+ "data-size": e,
1452
+ "data-raised": t,
1453
+ "data-stacked": r,
1454
+ className: i(sa({ size: e, raised: t, stacked: r }), o),
1455
+ ...l,
1456
+ children: [
1457
+ s,
1458
+ /* @__PURE__ */ n(
1459
+ na,
1460
+ {
1461
+ style: {
1462
+ marginTop: `calc(var(--stack-translate, 0px) * ${c.length - 1})`,
1463
+ transform: `translateX(calc(var(--stack-translate, 0px) * ${c.length - 1}))`
1464
+ },
1465
+ className: "grid grid-cols-1 *:row-start-1 *:col-start-1 *:row-end-1 *:col-end-1 items-end *:self-start",
1466
+ children: c.map((u, p) => /* @__PURE__ */ n(
1467
+ Ue,
1468
+ {
1469
+ index: p,
1470
+ "data-value": u.value,
1471
+ ...u,
1472
+ children: /* @__PURE__ */ n(
1473
+ k.Value,
1474
+ {
1475
+ className: i(
1476
+ u.value < 5 ? "pr-0.5" : "",
1477
+ "text-muted leading-none font-heading tabular-nums h-full flex flex-row items-end justify-end gap-1 ml-auto my-auto",
1478
+ "group-data-[size=xs]/progress:hidden",
1479
+ "group-data-[size=sm]/progress:hidden",
1480
+ "group-data-[size=md]/progress:text-[11px]",
1481
+ "group-data-[size=lg]/progress:text-xs",
1482
+ "group-data-[size=xl]/progress:text-xs",
1483
+ "group-data-[size=md]/progress:pb-px group-data-[size=md]/progress:pr-1.25",
1484
+ "group-data-[size=lg]/progress:pb-1 group-data-[size=lg]/progress:pr-1.5 group-data-[size=lg]/progress:translate-y-px",
1485
+ "group-data-[size=xl]/progress:pb-1.75 group-data-[size=xl]/progress:pr-1.75 group-data-[size=xl]/progress:translate-y-0.5",
1486
+ "group-data-[stacked=default]/progress:translate-y-0 group-data-[stacked=default]/progress:items-center"
1487
+ ),
1488
+ "data-slot": "progress-indicator-group-value",
1489
+ children: () => /* @__PURE__ */ T(_, { children: [
1490
+ u.name && /* @__PURE__ */ n(
1491
+ "span",
1492
+ {
1493
+ className: "font-semibold line-clamp-1 opacity-0 -translate-y-10 transition-[opacity,translate] duration-200 hover:ease-in ease-out",
1494
+ "data-slot": "progress-name",
1495
+ children: u.name
1496
+ }
1497
+ ),
1498
+ u.value.toLocaleString("default", {
1499
+ minimumFractionDigits: 0,
1500
+ maximumFractionDigits: 2
1501
+ }),
1502
+ u.value < 5 ? "" : "%"
1503
+ ] })
1504
+ }
1505
+ )
1506
+ },
1507
+ p
1508
+ ))
1509
+ }
1510
+ )
1511
+ ]
1512
+ }
1513
+ );
1514
+ }
1515
+ return /* @__PURE__ */ T(
1516
+ k.Root,
1517
+ {
1518
+ ...l,
1519
+ value: a.value,
1520
+ "data-slot": "progress",
1521
+ "data-size": e,
1522
+ "data-raised": t,
1523
+ "data-stacked": r,
1524
+ className: i(sa({ size: e, raised: t, stacked: r }), o),
1525
+ children: [
1526
+ s,
1527
+ /* @__PURE__ */ n(na, { children: /* @__PURE__ */ n(Le, { "data-value": a.value }) })
1528
+ ]
1529
+ }
1530
+ );
1531
+ }
1532
+ function na({ className: a, ...e }) {
1533
+ return /* @__PURE__ */ n(
1534
+ k.Track,
1535
+ {
1536
+ className: i(
1537
+ "bg-surface border-2 rounded-full relative flex w-full items-center",
1538
+ "group-data-[raised=xs]/progress:shadow-xs",
1539
+ "group-data-[raised=sm]/progress:shadow-sm",
1540
+ "group-data-[raised=md]/progress:shadow-md",
1541
+ "group-data-[raised=lg]/progress:shadow-lg",
1542
+ "group-data-[raised=xl]/progress:shadow-xl",
1543
+ "group-data-[size=xs]/progress:h-3",
1544
+ "group-data-[size=sm]/progress:h-4",
1545
+ "group-data-[size=md]/progress:h-5",
1546
+ "group-data-[size=lg]/progress:h-6",
1547
+ "group-data-[size=xl]/progress:h-7",
1548
+ "group-data-[stacked=default]/progress:overflow-hidden",
1549
+ "overflow-visible",
1550
+ a
1551
+ ),
1552
+ "data-slot": "progress-track",
1553
+ ...e
1554
+ }
1555
+ );
1556
+ }
1557
+ function Le({
1558
+ className: a,
1559
+ ...e
1560
+ }) {
1561
+ return /* @__PURE__ */ n(
1562
+ k.Indicator,
1563
+ {
1564
+ "data-slot": "progress-indicator",
1565
+ className: i(
1566
+ "bg-main h-full transition-all overflow-hidden border-2 rounded-l-xl",
1567
+ "group-data-[stacked=default]/progress:rounded-l-none",
1568
+ "group-data-[stacked=default]/progress:border-0",
1569
+ "group-data-[stacked=xs]/progress:shadow-xs group-data-[stacked=xs]/progress:-translate-0.5",
1570
+ "group-data-[stacked=sm]/progress:shadow-sm group-data-[stacked=sm]/progress:-translate-0.75",
1571
+ "group-data-[stacked=md]/progress:shadow-md group-data-[stacked=md]/progress:-translate-1",
1572
+ "group-data-[stacked=lg]/progress:shadow-lg group-data-[stacked=lg]/progress:-translate-[4.75px]",
1573
+ "group-data-[stacked=xl]/progress:shadow-xl group-data-[stacked=xl]/progress:-translate-[5.5px]",
1574
+ a
1575
+ ),
1576
+ ...e
1577
+ }
1578
+ );
1579
+ }
1580
+ function Ue({
1581
+ className: a,
1582
+ children: e,
1583
+ value: t,
1584
+ index: r,
1585
+ ...o
1586
+ }) {
1587
+ return /* @__PURE__ */ n(
1588
+ k.Indicator,
1589
+ {
1590
+ "data-slot": "progress-indicator-group",
1591
+ "data-value": t,
1592
+ "data-group": !0,
1593
+ className: i(
1594
+ "group/progress-indicator-group bg-main overflow-hidden transition-height duration-200 ease-in hover:ease-out border-2 rounded-l-xl",
1595
+ "group-data-[size=xs]/progress:h-2.5 group-data-[size=xs]/progress:hover:h-2.5 group-data-[stacked=default]/progress:group-data-[size=xs]/progress:hover:h-2.5",
1596
+ "group-data-[size=sm]/progress:h-3.5 group-data-[size=sm]/progress:hover:h-3.5 group-data-[stacked=default]/progress:group-data-[size=sm]/progress:hover:h-3.5",
1597
+ "group-data-[size=md]/progress:h-4.5 group-data-[size=md]/progress:hover:h-7.75 group-data-[stacked=default]/progress:group-data-[size=md]/progress:hover:h-4.5",
1598
+ "group-data-[size=lg]/progress:h-5.5 group-data-[size=lg]/progress:hover:h-9.75 group-data-[stacked=default]/progress:group-data-[size=lg]/progress:hover:h-5.5",
1599
+ "group-data-[size=xl]/progress:h-6.5 group-data-[size=xl]/progress:hover:h-11.25 group-data-[stacked=default]/progress:group-data-[size=xl]/progress:hover:h-6.5",
1600
+ "group-data-[stacked=default]/progress:rounded-none group-data-[stacked=default]/progress:border-0 group-data-[stacked=default]/progress:rounded-l-none",
1601
+ "group-data-[stacked=xs]/progress:shadow-xs group-data-[stacked=xs]/progress:-translate-0.5",
1602
+ "group-data-[stacked=sm]/progress:shadow-sm group-data-[stacked=sm]/progress:-translate-0.75",
1603
+ "group-data-[stacked=md]/progress:shadow-md group-data-[stacked=md]/progress:-translate-1",
1604
+ "group-data-[stacked=lg]/progress:shadow-lg group-data-[stacked=lg]/progress:-translate-[4.75px]",
1605
+ "group-data-[stacked=xl]/progress:shadow-xl group-data-[stacked=xl]/progress:-translate-[5.5px]",
1606
+ "hover:**:data-[slot=progress-value]:flex-wrap hover:**:text-foreground hover:**:**:data-[slot=progress-name]:opacity-100 hover:**:data-[slot=progress-name]:translate-0",
1607
+ a
1608
+ ),
1609
+ ...o,
1610
+ style: {
1611
+ minWidth: `${t}%`,
1612
+ maxWidth: `${t}%`,
1613
+ transform: `translateX(calc(var(--stack-translate, 0px) * -${r})) translateY(calc(var(--stack-translate, 0px) * -${r}))`
1614
+ },
1615
+ children: e
1616
+ }
1617
+ );
1618
+ }
1619
+ const Be = g("bg-border shrink-0", {
1620
+ variants: {
1621
+ stroke: {
1622
+ thin: "border-0.5",
1623
+ regular: "border-1",
1624
+ thick: "border-2"
1625
+ },
1626
+ orientation: {
1627
+ horizontal: "h-px w-full",
1628
+ vertical: "w-px self-stretch"
1629
+ }
1630
+ },
1631
+ defaultVariants: {
1632
+ stroke: "regular",
1633
+ orientation: "horizontal"
1634
+ }
1635
+ });
1636
+ function Me({
1637
+ className: a,
1638
+ orientation: e,
1639
+ stroke: t,
1640
+ ...r
1641
+ }) {
1642
+ return /* @__PURE__ */ n(
1643
+ Ba,
1644
+ {
1645
+ "data-slot": "separator",
1646
+ orientation: e,
1647
+ className: i(Be({ orientation: e, stroke: t }), a),
1648
+ ...r
1649
+ }
1650
+ );
1651
+ }
1652
+ const He = g("bg-foreground/30 rounded-base", {
1653
+ variants: {
1654
+ variant: {
1655
+ circle: "aspect-square w-auto rounded-full",
1656
+ square: "aspect-square w-auto",
1657
+ default: "grow",
1658
+ text: "aspect-[1/19] w-auto rounded-full max-h-10"
1659
+ },
1660
+ animate: {
1661
+ true: "animate-pulse",
1662
+ false: ""
1663
+ }
1664
+ }
1665
+ });
1666
+ function Ge({
1667
+ variant: a = "default",
1668
+ animate: e = !0,
1669
+ className: t,
1670
+ ...r
1671
+ }) {
1672
+ return /* @__PURE__ */ n(
1673
+ "div",
1674
+ {
1675
+ "data-slot": "skeleton",
1676
+ className: i(He({ variant: a, animate: e }), t),
1677
+ ...r
1678
+ }
1679
+ );
1680
+ }
1681
+ const Fe = g(
1682
+ "neo-base neo-switch-focus relative cursor-pointer inline-flex items-center data-checked:bg-main data-unchecked:bg-surface shrink-0 border-2 border-border transition-[translate,box-shadow,color] aria-disabled:cursor-not-allowed aria-disabled:opacity-50",
1683
+ {
1684
+ variants: {
1685
+ size: {
1686
+ sm: "h-5 w-10",
1687
+ md: "h-6 w-12",
1688
+ lg: "h-7 w-14"
1689
+ },
1690
+ rounded: {
1691
+ none: "rounded-none",
1692
+ sm: "rounded-sm",
1693
+ md: "rounded-md",
1694
+ lg: "rounded-lg",
1695
+ full: "rounded-[999px]"
1696
+ }
1697
+ },
1698
+ defaultVariants: {
1699
+ size: "md",
1700
+ rounded: "full"
1701
+ }
1702
+ }
1703
+ );
1704
+ function Ye({
1705
+ className: a,
1706
+ size: e = "md",
1707
+ rounded: t = "full",
1708
+ onCheckedChange: r,
1709
+ ...o
1710
+ }) {
1711
+ const { trigger: s } = U();
1712
+ return /* @__PURE__ */ n(
1713
+ Z.Root,
1714
+ {
1715
+ "data-slot": "switch",
1716
+ "data-size": e,
1717
+ "data-rounded": t,
1718
+ className: i(
1719
+ Fe({ size: e, rounded: t }),
1720
+ "peer group/switch",
1721
+ a
1722
+ ),
1723
+ "aria-label": o["aria-label"] ?? "switch",
1724
+ onCheckedChange: (l, c) => {
1725
+ s(Sa), r?.(l, c);
1726
+ },
1727
+ ...o,
1728
+ children: /* @__PURE__ */ n(
1729
+ Z.Thumb,
1730
+ {
1731
+ "data-slot": "switch-thumb",
1732
+ className: i(
1733
+ "bg-surface border-2 border-border pointer-events-none block transition-[translate] duration-300",
1734
+ "group-data-checked/switch:ml-px group-data-unchecked/switch:-ml-px",
1735
+ "group-data-[rounded=full]/switch:group-data-checked/switch:ml-0 group-data-[rounded=full]/switch:group-data-unchecked/switch:ml-0",
1736
+ "group-data-unchecked/switch:translate-x-1",
1737
+ "group-data-[size=sm]/switch:size-3",
1738
+ "group-data-[size=md]/switch:size-4",
1739
+ "group-data-[size=lg]/switch:size-5",
1740
+ "group-data-[size=sm]/switch:group-data-checked/switch:translate-x-5",
1741
+ "group-data-[size=md]/switch:group-data-checked/switch:translate-x-6",
1742
+ "group-data-[size=lg]/switch:group-data-checked/switch:translate-x-7",
1743
+ "group-data-[rounded=none]/switch:rounded-none",
1744
+ "group-data-[rounded=sm]/switch:rounded-sm",
1745
+ "group-data-[rounded=md]/switch:rounded-md",
1746
+ "group-data-[rounded=lg]/switch:rounded-lg",
1747
+ "group-data-[rounded=full]/switch:rounded-full"
1748
+ )
1749
+ }
1750
+ )
1751
+ }
1752
+ );
1753
+ }
1754
+ const We = g("w-full caption-bottom text-sm", {
1755
+ variants: {
1756
+ variant: {
1757
+ default: "",
1758
+ filled: "",
1759
+ lines: ""
1760
+ }
1761
+ }
1762
+ });
1763
+ function Ke({
1764
+ className: a,
1765
+ variant: e = "default",
1766
+ ...t
1767
+ }) {
1768
+ return /* @__PURE__ */ n(
1769
+ "div",
1770
+ {
1771
+ "data-slot": "table-container",
1772
+ className: "relative w-full overflow-x-auto",
1773
+ children: /* @__PURE__ */ n(
1774
+ "table",
1775
+ {
1776
+ "data-slot": "table",
1777
+ "data-variant": e,
1778
+ className: i(We({ variant: e }), "group/table", a),
1779
+ ...t
1780
+ }
1781
+ )
1782
+ }
1783
+ );
1784
+ }
1785
+ function Xe({ className: a, ...e }) {
1786
+ return /* @__PURE__ */ n(
1787
+ "thead",
1788
+ {
1789
+ "data-slot": "table-header",
1790
+ className: i("[&_tr]:border-b font-heading", a),
1791
+ ...e
1792
+ }
1793
+ );
1794
+ }
1795
+ function qe({ className: a, ...e }) {
1796
+ return /* @__PURE__ */ n(
1797
+ "tbody",
1798
+ {
1799
+ "data-slot": "table-body",
1800
+ className: i("[&_tr:last-child]:border-0", a),
1801
+ ...e
1802
+ }
1803
+ );
1804
+ }
1805
+ function Je({ className: a, ...e }) {
1806
+ return /* @__PURE__ */ n(
1807
+ "tfoot",
1808
+ {
1809
+ "data-slot": "table-footer",
1810
+ className: i(
1811
+ "*:bg-transparent border-t font-medium font-heading [&>tr]:last:border-b-0",
1812
+ "group-data-[variant=default]/table:bg-surface",
1813
+ "group-data-[variant=filled]/table:bg-main-secondary",
1814
+ "group-data-[variant=lines]/table:bg-surface",
1815
+ a
1816
+ ),
1817
+ ...e
1818
+ }
1819
+ );
1820
+ }
1821
+ function Ze({ className: a, ...e }) {
1822
+ return /* @__PURE__ */ n(
1823
+ "tr",
1824
+ {
1825
+ "data-slot": "table-row",
1826
+ className: i(
1827
+ "border-b transition-colors duration-300 ease",
1828
+ "group-data-[variant=default]/table:bg-surface",
1829
+ "group-data-[variant=default]/table:hover:even:bg-main",
1830
+ "group-data-[variant=default]/table:hover:odd:bg-main-secondary",
1831
+ "group-data-[variant=default]/table:data-[state=selected]:bg-subtle",
1832
+ "group-data-[variant=filled]/table:bg-main",
1833
+ "group-data-[variant=filled]/table:hover:odd:bg-surface",
1834
+ "group-data-[variant=filled]/table:hover:even:bg-main-secondary",
1835
+ "group-data-[variant=filled]/table:data-[state=selected]:bg-foreground/25",
1836
+ "group-data-[variant=filled]/table:last:border-b-2",
1837
+ "group-data-[variant=lines]/table:bg-surface",
1838
+ "group-data-[variant=lines]/table:hover:even:bg-main",
1839
+ "group-data-[variant=lines]/table:hover:odd:bg-main-secondary",
1840
+ "group-data-[variant=lines]/table:data-[state=selected]:bg-main/50",
1841
+ a
1842
+ ),
1843
+ ...e
1844
+ }
1845
+ );
1846
+ }
1847
+ function Qe({ className: a, ...e }) {
1848
+ return /* @__PURE__ */ n(
1849
+ "th",
1850
+ {
1851
+ "data-slot": "table-head",
1852
+ className: i(
1853
+ "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0",
1854
+ "group-data-[variant=filled]/table:border-r-2 group-data-[variant=filled]/table:border-t-2 group-data-[variant=filled]/table:first:border-l-2",
1855
+ "group-data-[variant=lines]/table:not-last:border-r-2",
1856
+ a
1857
+ ),
1858
+ ...e
1859
+ }
1860
+ );
1861
+ }
1862
+ function at({ className: a, ...e }) {
1863
+ return /* @__PURE__ */ n(
1864
+ "td",
1865
+ {
1866
+ "data-slot": "table-cell",
1867
+ className: i(
1868
+ "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",
1869
+ "group-data-[variant=filled]/table:first:border-l-2 group-data-[variant=filled]/table:border-r-2",
1870
+ "group-data-[variant=lines]/table:not-last:border-r-2",
1871
+ a
1872
+ ),
1873
+ ...e
1874
+ }
1875
+ );
1876
+ }
1877
+ function et({
1878
+ className: a,
1879
+ ...e
1880
+ }) {
1881
+ return /* @__PURE__ */ n(
1882
+ "caption",
1883
+ {
1884
+ "data-slot": "table-caption",
1885
+ className: i(
1886
+ "text-muted hover:text-foreground mt-4 text-sm font-heading",
1887
+ a
1888
+ ),
1889
+ ...e
1890
+ }
1891
+ );
1892
+ }
1893
+ const tt = ["bindings", "formField", "ssr", "pdf"], rt = ["children", "bindings", "ssr", "pdf"];
1894
+ function da(a) {
1895
+ return {
1896
+ valueProp: a.valueProp,
1897
+ changeProp: a.changeProp,
1898
+ extract: a.extractor
1899
+ };
1900
+ }
1901
+ function ot(a) {
1902
+ if (a)
1903
+ return typeof a == "object" && "default" in a ? Object.fromEntries(
1904
+ Object.entries(a).map(([e, t]) => [
1905
+ e,
1906
+ da(t)
1907
+ ])
1908
+ ) : da(a);
1909
+ }
1910
+ function st(a, { components: e = {}, controlledInputs: t = {} }) {
1911
+ const r = { ...a.components };
1912
+ for (const o of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) {
1913
+ const s = Object.hasOwn(r, o) ? r[o] : void 0, l = Object.hasOwn(e, o) ? e[o] : s?.component;
1914
+ if (l === void 0) continue;
1915
+ const c = Object.hasOwn(t, o) ? ot(t[o]) : s?.controlled;
1916
+ r[o] = {
1917
+ ...s,
1918
+ component: l,
1919
+ controlled: c,
1920
+ capabilities: s?.capabilities ?? (c ? tt : rt)
1921
+ };
1922
+ }
1923
+ return { ...a, components: r };
1924
+ }
1925
+ const nt = {
1926
+ [d.A]: xa,
1927
+ [d.H]: va,
1928
+ [d.P]: wa,
1929
+ [d.OL]: "ol",
1930
+ [d.UL]: "ul",
1931
+ [d.LI]: "li",
1932
+ [d.DIV]: "div",
1933
+ [d.SPAN]: "span",
1934
+ [d.IMAGE]: "img",
1935
+ [d.ACCORDION]: re,
1936
+ [d.ACCORDION_ITEM]: oe,
1937
+ [d.ACCORDION_TRIGGER]: se,
1938
+ [d.ACCORDION_CONTENT]: ne,
1939
+ [d.ALERT]: ie,
1940
+ [d.AVATAR]: ce,
1941
+ [d.BADGE]: pe,
1942
+ [d.BUTTON]: ma,
1943
+ [d.CARD]: me,
1944
+ [d.CARD_HEADER]: fe,
1945
+ [d.CARD_TITLE]: he,
1946
+ [d.CARD_DESCRIPTION]: be,
1947
+ [d.CARD_CONTENT]: we,
1948
+ [d.CARD_FOOTER]: ye,
1949
+ [d.CARD_ACTION]: xe,
1950
+ [d.CARD_ICON]: ve,
1951
+ [d.CHECKBOX]: ke,
1952
+ [d.COLLAPSIBLE]: Ce,
1953
+ [d.COLLAPSIBLE_TRIGGER]: Ne,
1954
+ [d.COLLAPSIBLE_CONTENT]: Te,
1955
+ [d.OTP]: Ee,
1956
+ [d.INPUT]: ya,
1957
+ [d.INPUT_GROUP]: Ae,
1958
+ [d.INPUT_GROUP_TEXT]: Se,
1959
+ [d.INPUT_GROUP_ADDON]: Ie,
1960
+ [d.INPUT_GROUP_INPUT]: _e,
1961
+ [d.INPUT_GROUP_BUTTON]: Re,
1962
+ [d.INPUT_GROUP_TEXTAREA]: je,
1963
+ [d.LABEL]: De,
1964
+ [d.LOADER]: _a,
1965
+ [d.PROGRESS]: Ve,
1966
+ [d.SWITCH]: Ye,
1967
+ [d.SEPARATOR]: Me,
1968
+ [d.SKELETON]: Ge,
1969
+ [d.TABLE]: Ke,
1970
+ [d.TABLE_HEADER]: Xe,
1971
+ [d.TABLE_BODY]: qe,
1972
+ [d.TABLE_FOOTER]: Je,
1973
+ [d.TABLE_HEAD]: Qe,
1974
+ [d.TABLE_ROW]: Ze,
1975
+ [d.TABLE_CELL]: at,
1976
+ [d.TABLE_CAPTION]: et,
1977
+ [d.TEXTAREA]: za
1978
+ }, dt = {
1979
+ [d.INPUT]: {
1980
+ text: {
1981
+ valueProp: "value",
1982
+ changeProp: "onChange",
1983
+ extractor: (a) => a.target.value
1984
+ },
1985
+ email: {
1986
+ valueProp: "value",
1987
+ changeProp: "onChange",
1988
+ extractor: (a) => a.target.value
1989
+ },
1990
+ password: {
1991
+ valueProp: "value",
1992
+ changeProp: "onChange",
1993
+ extractor: (a) => a.target.value
1994
+ },
1995
+ number: {
1996
+ valueProp: "value",
1997
+ changeProp: "onChange",
1998
+ // valueAsNumber is NaN (never nullish) for an empty or partial entry; keep the raw string then.
1999
+ extractor: (a) => Number.isNaN(a.target.valueAsNumber) ? a.target.value : a.target.valueAsNumber
2000
+ },
2001
+ default: {
2002
+ valueProp: "value",
2003
+ changeProp: "onChange",
2004
+ extractor: (a) => a.target.value
2005
+ }
2006
+ },
2007
+ // input-otp calls onChange with the new string, not an event.
2008
+ [d.OTP]: {
2009
+ valueProp: "value",
2010
+ changeProp: "onChange",
2011
+ extractor: (a) => a
2012
+ },
2013
+ [d.CHECKBOX]: {
2014
+ valueProp: "checked",
2015
+ changeProp: "onCheckedChange",
2016
+ extractor: (a) => a
2017
+ },
2018
+ [d.TEXTAREA]: {
2019
+ valueProp: "value",
2020
+ changeProp: "onChange",
2021
+ extractor: (a) => a.target.value
2022
+ },
2023
+ [d.INPUT_GROUP_INPUT]: {
2024
+ valueProp: "value",
2025
+ changeProp: "onChange",
2026
+ extractor: (a) => a.target.value
2027
+ },
2028
+ [d.INPUT_GROUP_TEXTAREA]: {
2029
+ valueProp: "value",
2030
+ changeProp: "onChange",
2031
+ extractor: (a) => a.target.value
2032
+ },
2033
+ [d.SWITCH]: {
2034
+ valueProp: "checked",
2035
+ changeProp: "onCheckedChange",
2036
+ extractor: (a) => a
2037
+ }
2038
+ }, it = st(
2039
+ {
2040
+ id: "pebble-ui",
2041
+ version: "1.0.0",
2042
+ namespace: "pebble",
2043
+ fallback: "div",
2044
+ components: {}
2045
+ },
2046
+ { components: nt, controlledInputs: dt }
2047
+ ), ka = pa(it);
2048
+ function lt() {
2049
+ return ga(ka);
2050
+ }
2051
+ const Ca = pa("web");
2052
+ function Vt() {
2053
+ return ga(Ca);
2054
+ }
2055
+ function Lt({
2056
+ registry: a,
2057
+ render: e = "web",
2058
+ children: t
2059
+ }) {
2060
+ const r = lt();
2061
+ return /* @__PURE__ */ n(ka.Provider, { value: a ?? r, children: /* @__PURE__ */ n(Ca.Provider, { value: e, children: t }) });
2062
+ }
2063
+ const ct = /* @__PURE__ */ new Set([
2064
+ "area",
2065
+ "base",
2066
+ "br",
2067
+ "col",
2068
+ "embed",
2069
+ "hr",
2070
+ "img",
2071
+ "input",
2072
+ "link",
2073
+ "meta",
2074
+ "param",
2075
+ "source",
2076
+ "track",
2077
+ "wbr"
2078
+ ]), O = (a, e, t) => `${a.type}-${t}-${e}`;
2079
+ function ia(a, e, t = void 0) {
2080
+ return e ? H(e).reduce((o, s) => {
2081
+ if (o != null)
2082
+ return o[E(s)];
2083
+ }, a) ?? t : a;
2084
+ }
2085
+ function Ut(a, e, t) {
2086
+ if (!e) {
2087
+ Object.assign(a, t);
2088
+ return;
2089
+ }
2090
+ const r = H(e);
2091
+ let o = a;
2092
+ for (let s = 0; s < r.length - 1; s++) {
2093
+ const l = E(r[s]), c = E(r[s + 1]);
2094
+ o[l] ??= /^\d+$/.test(c) ? [] : {}, o = o[l];
2095
+ }
2096
+ o[E(r[r.length - 1])] = t;
2097
+ }
2098
+ function Na(a) {
2099
+ const e = a.match(/^[^.[]+/);
2100
+ return e ? e[0] : a;
2101
+ }
2102
+ function la(a, e) {
2103
+ return !!e && Object.hasOwn(e, Na(a));
2104
+ }
2105
+ function ca(a, e) {
2106
+ if (!e) return a;
2107
+ const t = Na(a), r = e[t];
2108
+ return r == null ? a : r + a.slice(t.length);
2109
+ }
2110
+ const z = (a, e) => qa(a, e);
2111
+ function Bt(a, e) {
2112
+ const t = {};
2113
+ for (const { key: r, segments: o, numericNext: s } of a) {
2114
+ const l = e(r);
2115
+ if (o.length === 1) {
2116
+ t[r] = l;
2117
+ continue;
2118
+ }
2119
+ let c = t;
2120
+ for (let u = 0; u < o.length - 1; u++) {
2121
+ const p = o[u];
2122
+ (!(p in c) || typeof c[p] != "object" || c[p] === null) && (c[p] = s[u] ? [] : {}), c = c[p];
2123
+ }
2124
+ c[o[o.length - 1]] = l;
2125
+ }
2126
+ return t;
2127
+ }
2128
+ const ut = (a, e) => {
2129
+ if (!e) return "div";
2130
+ if (Object.hasOwn(a.components, e))
2131
+ return a.components[e].component;
2132
+ if (a.fallback === "error")
2133
+ throw new Error(
2134
+ `Bonsai: unknown component type "${e}" in registry "${a.id}"@"${a.version}"`
2135
+ );
2136
+ return a.fallback && a.fallback !== "div" ? a.fallback : "div";
2137
+ }, Ta = (a, e, t, r = {}) => {
2138
+ const o = {
2139
+ key: t,
2140
+ ...a.source?.args,
2141
+ ...r
2142
+ };
2143
+ for (const s of Object.keys(o))
2144
+ (a.dynamicArgs.has(s) || Object.hasOwn(r, s)) && (o[s] = z(o[s], e));
2145
+ return o;
2146
+ };
2147
+ function pt(a, e, t, r, o) {
2148
+ return r[a.changeProp] ? {} : {
2149
+ [a.changeProp]: (s) => o(e, a.extract(s)),
2150
+ [a.valueProp]: t
2151
+ };
2152
+ }
2153
+ const gt = () => {
2154
+ };
2155
+ function mt({
2156
+ node: a,
2157
+ dataSlice: e,
2158
+ elementKey: t,
2159
+ ElementType: r,
2160
+ ctrlInput: o,
2161
+ keyPath: s,
2162
+ storeValue: l,
2163
+ updateData: c,
2164
+ children: u
2165
+ }) {
2166
+ const p = pt(
2167
+ o,
2168
+ s,
2169
+ l,
2170
+ a.source?.args ?? {},
2171
+ c
2172
+ ), b = Ta(a, e, t, p);
2173
+ return u !== void 0 ? j(r, b, u) : j(r, b);
2174
+ }
2175
+ function ft(a, e, t) {
2176
+ if (!Object.hasOwn(a.components, e)) return;
2177
+ const r = a.components[e].controlled;
2178
+ if (r) {
2179
+ if (typeof r == "object" && "default" in r) {
2180
+ const o = t?.args?.type || "default", s = r;
2181
+ return (Object.hasOwn(s, o) ? s[o] : void 0) || s.default;
2182
+ }
2183
+ return r;
2184
+ }
2185
+ }
2186
+ function Mt(a, e) {
2187
+ return a === "pdf" || e === "div" ? "div" : "form";
2188
+ }
2189
+ function ua(a) {
2190
+ if (Array.isArray(a)) return a.map((e) => ua(e));
2191
+ if (a !== null && typeof a == "object") {
2192
+ const e = Object.getPrototypeOf(a);
2193
+ if (e === Object.prototype || e === null) {
2194
+ const t = {};
2195
+ for (const [r, o] of Object.entries(a))
2196
+ t[r] = ua(o);
2197
+ return t;
2198
+ }
2199
+ }
2200
+ return a;
2201
+ }
2202
+ function Ht(a, e, t, r, o, s, l, c) {
2203
+ const u = a.source;
2204
+ if (!u) return null;
2205
+ const p = c.dataSlice(a, r, o);
2206
+ if (a.isText)
2207
+ return z(u, p);
2208
+ try {
2209
+ const b = a.type;
2210
+ if (a.isIf)
2211
+ return z(u.args.condition, p) ? /* @__PURE__ */ n(_, { children: a.children.map(
2212
+ (v, C) => c.renderChild(
2213
+ v,
2214
+ C,
2215
+ `${t}-${e}-if`,
2216
+ r,
2217
+ O(v, C, `${t}-${e}-if`)
2218
+ )
2219
+ ) }) : null;
2220
+ if (a.isEach) {
2221
+ const m = a.each, { as: v, keyExpr: C, rawItemsPath: D } = m, G = z(u.args.items, p), Ea = Array.isArray(G) ? G : [], Aa = D && !la(D, r.valueScope) ? ca(D, r.scope) : "";
2222
+ return /* @__PURE__ */ n(_, { children: Ea.map((F, Y) => {
2223
+ const Pa = c.rowCtx(r, o, F, Y, m, Aa), W = C ? z(C, { ...p, [v]: F }) : Y, K = `${t}-${e}-each-${W}`;
2224
+ return /* @__PURE__ */ n(Ia, { children: a.children.map(
2225
+ (X, q) => c.renderChild(
2226
+ X,
2227
+ q,
2228
+ K,
2229
+ Pa,
2230
+ O(X, q, K)
2231
+ )
2232
+ ) }, String(W));
2233
+ }) });
2234
+ }
2235
+ const y = ut(s, b), P = O(a, e, t), w = ft(s, b, u);
2236
+ let h;
2237
+ if (w) {
2238
+ const m = a.argPaths[w.valueProp];
2239
+ if (m !== void 0 && la(m, r.valueScope))
2240
+ h = {
2241
+ keyPath: m,
2242
+ storeValue: ia(r.valueScope, m),
2243
+ readOnly: !0
2244
+ };
2245
+ else if (m !== void 0) {
2246
+ const v = ca(m, r.scope);
2247
+ h = {
2248
+ keyPath: v,
2249
+ storeValue: ia(o.data ?? o, v)
2250
+ };
2251
+ } else a.dynamicArgs.has(w.valueProp) && (h = {
2252
+ keyPath: "",
2253
+ storeValue: z(u.args[w.valueProp], p),
2254
+ readOnly: !0
2255
+ });
2256
+ }
2257
+ if (a.isImage) {
2258
+ const m = z(u.args?.src, p);
2259
+ if (m === "" || m == null) return null;
2260
+ }
2261
+ const $ = a.children.length > 0 ? a.children.map(
2262
+ (m, v) => c.renderChild(
2263
+ m,
2264
+ v,
2265
+ `${t}-${e}`,
2266
+ r,
2267
+ O(a, v, `${t}-${e}`)
2268
+ )
2269
+ ) : void 0, x = typeof y == "string" && ct.has(y) ? void 0 : $;
2270
+ if (h && w)
2271
+ return /* @__PURE__ */ n(
2272
+ mt,
2273
+ {
2274
+ node: a,
2275
+ dataSlice: p,
2276
+ elementKey: P,
2277
+ ElementType: y,
2278
+ ctrlInput: w,
2279
+ keyPath: h.keyPath,
2280
+ storeValue: h.storeValue,
2281
+ updateData: h.readOnly ? gt : l,
2282
+ children: x
2283
+ }
2284
+ );
2285
+ const I = Ta(a, p, P);
2286
+ return x !== void 0 ? j(y, I, x) : j(y, I);
2287
+ } catch (b) {
2288
+ return console.error(`Error at ${t}-${e}:`, b), null;
2289
+ }
2290
+ }
2291
+ export {
2292
+ Lt as B,
2293
+ Ae as I,
2294
+ ct as V,
2295
+ dt as a,
2296
+ it as b,
2297
+ nt as c,
2298
+ Dt as d,
2299
+ $t as e,
2300
+ st as f,
2301
+ jt as g,
2302
+ lt as h,
2303
+ Ht as i,
2304
+ Bt as j,
2305
+ ia as k,
2306
+ ua as l,
2307
+ ut as m,
2308
+ O as n,
2309
+ Na as o,
2310
+ Ta as p,
2311
+ ca as q,
2312
+ Mt as r,
2313
+ Ut as s,
2314
+ ka as t,
2315
+ Vt as u,
2316
+ Ie as v,
2317
+ _e as w
2318
+ };
2319
+ //# sourceMappingURL=render-shared-CIUUkLDn.js.map