@pebble-software/bonsai 0.1.0 → 0.1.2

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 (45) hide show
  1. package/README.md +4 -0
  2. package/dist/ast.js +10 -0
  3. package/dist/ast.js.map +1 -0
  4. package/dist/chunks/builder.meta-WpXc5VBB.js +666 -0
  5. package/dist/chunks/builder.meta-WpXc5VBB.js.map +1 -0
  6. package/dist/chunks/{button-CSLrIvsS.js → button-jfJanilw.js} +46 -51
  7. package/dist/chunks/button-jfJanilw.js.map +1 -0
  8. package/dist/chunks/{create-renderer-1cky1uN9.js → create-renderer-DHneTPd-.js} +8 -8
  9. package/dist/chunks/{create-renderer-1cky1uN9.js.map → create-renderer-DHneTPd-.js.map} +1 -1
  10. package/dist/chunks/index-DzpRdatr.js +359 -0
  11. package/dist/chunks/index-DzpRdatr.js.map +1 -0
  12. package/dist/chunks/{render-shared-CIUUkLDn.js → render-shared-Ci28BpkI.js} +601 -931
  13. package/dist/chunks/render-shared-Ci28BpkI.js.map +1 -0
  14. package/dist/constants.d.ts +1 -0
  15. package/dist/constants.js +11 -0
  16. package/dist/constants.js.map +1 -0
  17. package/dist/core.js +3 -3
  18. package/dist/index.js +308 -955
  19. package/dist/index.js.map +1 -1
  20. package/dist/library/constants/src/components.d.ts +59 -0
  21. package/dist/library/constants/src/index.d.ts +2 -0
  22. package/dist/library/constants/src/webhook-events.d.ts +6 -0
  23. package/dist/library/schemas/src/bonsai.schema.d.ts +24 -0
  24. package/dist/library/schemas/src/builder.meta.d.ts +26 -0
  25. package/dist/presets/calendar.js +83 -74
  26. package/dist/presets/calendar.js.map +1 -1
  27. package/dist/presets/signature.js +9 -8
  28. package/dist/presets/signature.js.map +1 -1
  29. package/dist/schemas.d.ts +2 -0
  30. package/dist/schemas.js +13 -0
  31. package/dist/schemas.js.map +1 -0
  32. package/dist/styles/css/base.css +144 -0
  33. package/dist/styles/css/fonts.css +25 -0
  34. package/dist/styles/css/maplibre.css +29 -0
  35. package/dist/styles/css/overrides.css +7 -0
  36. package/dist/styles/css/tailwind.css +1 -0
  37. package/dist/styles/css/theme.css +197 -0
  38. package/dist/styles/css/tw-animate.css +1 -0
  39. package/dist/styles/css/utilities.css +44 -0
  40. package/dist/styles/presets.json +20 -0
  41. package/dist/styles/vendor/maplibre-gl.css +701 -0
  42. package/dist/styles/vendor/tw-animate.css +692 -0
  43. package/package.json +19 -3
  44. package/dist/chunks/button-CSLrIvsS.js.map +0 -1
  45. package/dist/chunks/render-shared-CIUUkLDn.js.map +0 -1
@@ -1,431 +1,101 @@
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";
1
+ import { jsx as s, jsxs as N, Fragment as E } from "react/jsx-runtime";
2
+ import * as j from "react";
3
+ import { createContext as sa, useContext as da, Fragment as wa, createElement as R } from "react";
4
+ import { COMPONENT as d } from "../constants.js";
5
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";
6
+ import { c as i, a as za, d as ka, B as na, e as ya, L as Na } from "./button-jfJanilw.js";
7
+ import { Accordion as P } from "@base-ui/react/accordion";
8
+ import { IconChevronDown as Ca, IconCheck as Pa } from "@tabler/icons-react";
9
+ import { useWebHaptics as L } from "web-haptics/react";
10
+ import { Avatar as S } from "@base-ui/react/avatar";
11
+ import { mergeProps as Ta } from "@base-ui/react/merge-props";
12
+ import { useRender as Aa } from "@base-ui/react/use-render";
13
+ import { Checkbox as K } from "@base-ui/react/checkbox";
14
+ import { Collapsible as $ } from "@base-ui/react/collapsible";
15
+ import { Input as Oa } from "@base-ui/react/input";
16
+ import { OTPInput as Ia } from "input-otp";
16
17
  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) {
18
+ import { Separator as Ea } from "@base-ui/react/separator";
19
+ import { Switch as X } from "@base-ui/react/switch";
20
+ import { L as Ra, c as q, s as _a, p as Va } from "./index-DzpRdatr.js";
21
+ const Sa = /[^.[\]]+|\[(?:[^\[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/g;
22
+ function B(a) {
23
+ return a.match(Sa) || [];
24
+ }
25
+ function C(a) {
356
26
  return a.startsWith("[") && a.endsWith("]") ? a.slice(1, -1).replace(/^["']|["']$/g, "") : a;
357
27
  }
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);
28
+ function ja(a) {
29
+ const t = B(a).map(C), e = t.map((r, o) => {
30
+ const n = t[o + 1];
31
+ return n !== void 0 && /^\d+$/.test(n);
362
32
  });
363
- return { key: a, segments: e, numericNext: t };
33
+ return { key: a, segments: t, numericNext: e };
364
34
  }
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));
35
+ function I(a) {
36
+ const t = typeof a == "string", e = a, r = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ Object.create(null), l = /* @__PURE__ */ new Set();
37
+ let u = null;
38
+ if (t)
39
+ u = q(a), u?.variables.forEach((h) => l.add(h));
370
40
  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);
41
+ for (const [h, _] of Object.entries(e?.args ?? {})) {
42
+ const b = q(_);
43
+ b && (r[h] = b, o.add(h), b.ast && _a(b.ast) != null && (n[h] = b.content), b.variables.forEach((A) => l.add(A)));
44
+ }
45
+ const c = t ? void 0 : e?.type, p = c || "div", f = c === d.EACH, w = c === d.IF, T = f ? {
46
+ as: e.args?.as,
47
+ indexAlias: e.args?.index,
48
+ keyExpr: e.args?.key,
49
+ rawItemsPath: n.items ?? ""
50
+ } : null, x = Array.from(l, ja);
381
51
  return {
382
52
  source: a,
383
- isText: e,
53
+ isText: t,
384
54
  type: p,
385
- isEach: b,
386
- isIf: y,
387
- isImage: u === d.IMAGE,
388
- dynamicKeys: w,
55
+ isEach: f,
56
+ isIf: w,
57
+ isImage: c === d.IMAGE,
58
+ dynamicKeys: x,
389
59
  dynamicArgs: o,
390
- argPaths: s,
60
+ argPaths: n,
391
61
  expressions: r,
392
- text: c,
62
+ text: u,
393
63
  // 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)
64
+ isStatic: !f && !w && x.length === 0,
65
+ each: T,
66
+ children: t ? [] : (e?.children ?? []).map(I)
397
67
  };
398
68
  }
399
- const ra = /* @__PURE__ */ new WeakMap(), oa = new ha(50);
400
- function jt(a) {
69
+ const Y = /* @__PURE__ */ new WeakMap(), J = new Ra(50);
70
+ function ve(a) {
401
71
  if (typeof a == "string") {
402
- const r = oa.get(a);
72
+ const r = J.get(a);
403
73
  if (r) return r;
404
74
  const o = {
405
- root: S(a),
75
+ root: I(a),
406
76
  source: a
407
77
  };
408
- return oa.set(a, o), o;
78
+ return J.set(a, o), o;
409
79
  }
410
80
  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),
81
+ return { root: I(a), source: a };
82
+ const t = Y.get(a);
83
+ if (t) return t;
84
+ const e = {
85
+ root: I(a),
416
86
  source: a
417
87
  };
418
- return ra.set(a, t), t;
88
+ return Y.set(a, e), e;
419
89
  }
420
- function $t(a) {
90
+ function xe(a) {
421
91
  return a;
422
92
  }
423
- function Dt(a) {
93
+ function we(a) {
424
94
  return a;
425
95
  }
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", {
96
+ const ia = j.forwardRef(({ ...a }, t) => /* @__PURE__ */ s("a", { ref: t, ...a }));
97
+ ia.displayName = "A";
98
+ const La = g("font-heading font-semibold scroll-m-20", {
429
99
  variants: {
430
100
  variant: {
431
101
  h1: "text-6xl font-semibold tracking-tight",
@@ -439,18 +109,18 @@ const ae = g("font-heading font-semibold scroll-m-20", {
439
109
  defaultVariants: {
440
110
  variant: "h3"
441
111
  }
442
- }), va = L.forwardRef(
443
- ({ className: a, variant: e, as: t, ...r }, o) => /* @__PURE__ */ n(
444
- t || e || "h3",
112
+ }), la = j.forwardRef(
113
+ ({ className: a, variant: t, as: e, ...r }, o) => /* @__PURE__ */ s(
114
+ e || t || "h3",
445
115
  {
446
116
  ref: o,
447
- className: i(ae({ variant: e }), a),
117
+ className: i(La({ variant: t }), a),
448
118
  ...r
449
119
  }
450
120
  )
451
121
  );
452
- va.displayName = "H";
453
- const ee = g("text-base", {
122
+ la.displayName = "H";
123
+ const $a = g("text-base", {
454
124
  variants: {
455
125
  variant: {
456
126
  default: "",
@@ -468,18 +138,18 @@ const ee = g("text-base", {
468
138
  variant: "default",
469
139
  size: "md"
470
140
  }
471
- }), wa = L.forwardRef(
472
- ({ className: a, variant: e, size: t, as: r = "p", ...o }, s) => /* @__PURE__ */ n(
141
+ }), ua = j.forwardRef(
142
+ ({ className: a, variant: t, size: e, as: r = "p", ...o }, n) => /* @__PURE__ */ s(
473
143
  r,
474
144
  {
475
- ref: s,
476
- className: i(ee({ variant: e, size: t }), a),
145
+ ref: n,
146
+ className: i($a({ variant: t, size: e }), a),
477
147
  ...o
478
148
  }
479
149
  )
480
150
  );
481
- wa.displayName = "P";
482
- const te = g("flex w-full flex-col", {
151
+ ua.displayName = "P";
152
+ const Ba = g("flex w-full flex-col", {
483
153
  variants: {
484
154
  variant: {
485
155
  default: "",
@@ -503,22 +173,22 @@ const te = g("flex w-full flex-col", {
503
173
  variant: "default"
504
174
  }
505
175
  });
506
- function re({
176
+ function Da({
507
177
  className: a,
508
- variant: e = "default",
509
- raised: t,
178
+ variant: t = "default",
179
+ raised: e,
510
180
  extrude: r,
511
181
  ...o
512
182
  }) {
513
- return /* @__PURE__ */ n(
514
- A.Root,
183
+ return /* @__PURE__ */ s(
184
+ P.Root,
515
185
  {
516
186
  "data-slot": "accordion",
517
- "data-variant": e,
518
- "data-raised": t ?? void 0,
187
+ "data-variant": t,
188
+ "data-raised": e ?? void 0,
519
189
  "data-extrude": r ?? void 0,
520
190
  className: i(
521
- te({ variant: e, raised: t, extrude: r }),
191
+ Ba({ variant: t, raised: e, extrude: r }),
522
192
  "group/accordion",
523
193
  a
524
194
  ),
@@ -526,9 +196,9 @@ function re({
526
196
  }
527
197
  );
528
198
  }
529
- function oe({ className: a, ...e }) {
530
- return /* @__PURE__ */ n(
531
- A.Item,
199
+ function Ga({ className: a, ...t }) {
200
+ return /* @__PURE__ */ s(
201
+ P.Item,
532
202
  {
533
203
  "data-slot": "accordion-item",
534
204
  className: i(
@@ -571,21 +241,21 @@ function oe({ className: a, ...e }) {
571
241
  "group-data-[extrude=lg]/accordion:data-open:shadow-lg group-data-[extrude=lg]/accordion:data-open:-translate-1.25",
572
242
  a
573
243
  ),
574
- ...e
244
+ ...t
575
245
  }
576
246
  );
577
247
  }
578
- function se({
248
+ function Ua({
579
249
  className: a,
580
- children: e,
581
- disabled: t,
582
- icon: r = ja,
250
+ children: t,
251
+ disabled: e,
252
+ icon: r = Ca,
583
253
  onClick: o,
584
- ...s
254
+ ...n
585
255
  }) {
586
- const { trigger: l } = U();
587
- return /* @__PURE__ */ n(A.Header, { className: "flex", children: /* @__PURE__ */ T(
588
- A.Trigger,
256
+ const { trigger: l } = L();
257
+ return /* @__PURE__ */ s(P.Header, { className: "flex", children: /* @__PURE__ */ N(
258
+ P.Trigger,
589
259
  {
590
260
  "data-slot": "accordion-trigger",
591
261
  className: i(
@@ -599,13 +269,13 @@ function se({
599
269
  "group-data-[variant=separated]/accordion:pt-4",
600
270
  a
601
271
  ),
602
- onClick: (c) => {
603
- l(Oa), o?.(c);
272
+ onClick: (u) => {
273
+ l(za), o?.(u);
604
274
  },
605
- ...s,
275
+ ...n,
606
276
  children: [
607
- e,
608
- /* @__PURE__ */ n(
277
+ t,
278
+ /* @__PURE__ */ s(
609
279
  r,
610
280
  {
611
281
  "data-slot": "accordion-trigger-icon",
@@ -619,32 +289,32 @@ function se({
619
289
  }
620
290
  ) });
621
291
  }
622
- function ne({
292
+ function Ha({
623
293
  className: a,
624
- children: e,
625
- ...t
294
+ children: t,
295
+ ...e
626
296
  }) {
627
- return /* @__PURE__ */ n(
628
- A.Panel,
297
+ return /* @__PURE__ */ s(
298
+ P.Panel,
629
299
  {
630
300
  "data-slot": "accordion-content",
631
301
  keepMounted: !0,
632
302
  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(
303
+ ...e,
304
+ children: /* @__PURE__ */ s(
635
305
  "div",
636
306
  {
637
307
  className: i(
638
308
  "pt-0 px-4 pb-4 data-ending-style:h-0 data-starting-style:h-0 [&_p:not(:last-child)]:mb-4",
639
309
  a
640
310
  ),
641
- children: e
311
+ children: t
642
312
  }
643
313
  )
644
314
  }
645
315
  );
646
316
  }
647
- const de = g(
317
+ const Fa = g(
648
318
  "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
319
  {
650
320
  variants: {
@@ -672,20 +342,20 @@ const de = g(
672
342
  }
673
343
  }
674
344
  );
675
- function ie({
345
+ function Ma({
676
346
  className: a,
677
- variant: e = "default",
678
- size: t = "default",
347
+ variant: t = "default",
348
+ size: e = "default",
679
349
  raised: r,
680
350
  ...o
681
351
  }) {
682
- return /* @__PURE__ */ n(
352
+ return /* @__PURE__ */ s(
683
353
  "div",
684
354
  {
685
355
  "data-slot": "alert",
686
356
  role: "alert",
687
357
  className: i(
688
- de({ variant: e, raised: r, size: t }),
358
+ Fa({ variant: t, raised: r, size: e }),
689
359
  "group/alert",
690
360
  a
691
361
  ),
@@ -693,7 +363,7 @@ function ie({
693
363
  }
694
364
  );
695
365
  }
696
- const le = g("relative flex shrink-0 select-none", {
366
+ const Wa = g("relative flex shrink-0 select-none", {
697
367
  variants: {
698
368
  size: {
699
369
  full: "size-full",
@@ -721,34 +391,34 @@ const le = g("relative flex shrink-0 select-none", {
721
391
  rounded: "full"
722
392
  }
723
393
  });
724
- function ce({
394
+ function Ka({
725
395
  className: a,
726
- size: e = "md",
727
- rounded: t = "full",
396
+ size: t = "md",
397
+ rounded: e = "full",
728
398
  raised: r,
729
399
  src: o,
730
- alt: s,
400
+ alt: n,
731
401
  fallback: l,
732
- badge: c,
733
- children: u,
402
+ badge: u,
403
+ children: c,
734
404
  ...p
735
405
  }) {
736
- return /* @__PURE__ */ n(
737
- V.Root,
406
+ return /* @__PURE__ */ s(
407
+ S.Root,
738
408
  {
739
409
  "data-slot": "avatar",
740
- "data-size": e,
410
+ "data-size": t,
741
411
  "data-raised": r,
742
- "data-rounded": t,
412
+ "data-rounded": e,
743
413
  className: i(
744
- le({ size: e, rounded: t, raised: r }),
414
+ Wa({ size: t, rounded: e, raised: r }),
745
415
  "group/avatar",
746
416
  a
747
417
  ),
748
418
  ...p,
749
- children: u ?? /* @__PURE__ */ T(_, { children: [
750
- o && /* @__PURE__ */ n(
751
- V.Image,
419
+ children: c ?? /* @__PURE__ */ N(E, { children: [
420
+ o && /* @__PURE__ */ s(
421
+ S.Image,
752
422
  {
753
423
  "data-slot": "avatar-image",
754
424
  className: i(
@@ -759,11 +429,11 @@ function ce({
759
429
  "group-data-[rounded=full]/avatar:rounded-full"
760
430
  ),
761
431
  src: o,
762
- alt: s
432
+ alt: n
763
433
  }
764
434
  ),
765
- l != null && /* @__PURE__ */ n(
766
- V.Fallback,
435
+ l != null && /* @__PURE__ */ s(
436
+ S.Fallback,
767
437
  {
768
438
  "data-slot": "avatar-fallback",
769
439
  className: i(
@@ -778,7 +448,7 @@ function ce({
778
448
  children: l
779
449
  }
780
450
  ),
781
- c != null && /* @__PURE__ */ n(
451
+ u != null && /* @__PURE__ */ s(
782
452
  "span",
783
453
  {
784
454
  "data-slot": "avatar-badge",
@@ -809,14 +479,14 @@ function ce({
809
479
  "group-data-[rounded=full]/avatar:rounded-full",
810
480
  "group-data-[rounded=full]/avatar:translate-0"
811
481
  ),
812
- children: c
482
+ children: u
813
483
  }
814
484
  )
815
485
  ] })
816
486
  }
817
487
  );
818
488
  }
819
- const ue = g(
489
+ const Xa = g(
820
490
  "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
491
  {
822
492
  variants: {
@@ -851,21 +521,21 @@ const ue = g(
851
521
  }
852
522
  }
853
523
  );
854
- function pe({
524
+ function qa({
855
525
  className: a,
856
- variant: e = "default",
857
- size: t = "md",
526
+ variant: t = "default",
527
+ size: e = "md",
858
528
  raised: r,
859
529
  extrude: o,
860
- render: s,
530
+ render: n,
861
531
  ...l
862
532
  }) {
863
- return Va({
533
+ return Aa({
864
534
  defaultTagName: "span",
865
- props: Da(
535
+ props: Ta(
866
536
  {
867
537
  className: i(
868
- ue({ size: t, variant: e, raised: r, extrude: o }),
538
+ Xa({ size: e, variant: t, raised: r, extrude: o }),
869
539
  "group/badge",
870
540
  a
871
541
  ),
@@ -873,14 +543,14 @@ function pe({
873
543
  },
874
544
  l
875
545
  ),
876
- render: s,
546
+ render: n,
877
547
  state: {
878
548
  slot: "badge",
879
- variant: e
549
+ variant: t
880
550
  }
881
551
  });
882
552
  }
883
- const ge = g(
553
+ const Ya = g(
884
554
  "bg-surface border text-foreground overflow-hidden rounded-base text-sm flex flex-col",
885
555
  {
886
556
  variants: {
@@ -903,24 +573,24 @@ const ge = g(
903
573
  }
904
574
  }
905
575
  );
906
- function me({
576
+ function Ja({
907
577
  className: a,
908
- size: e = "md",
909
- raised: t = "md",
578
+ size: t = "md",
579
+ raised: e = "md",
910
580
  ...r
911
581
  }) {
912
- return /* @__PURE__ */ n(
582
+ return /* @__PURE__ */ s(
913
583
  "div",
914
584
  {
915
585
  "data-slot": "card",
916
- "data-size": e,
917
- className: i(ge({ raised: t, size: e }), "group/card", a),
586
+ "data-size": t,
587
+ className: i(Ya({ raised: e, size: t }), "group/card", a),
918
588
  ...r
919
589
  }
920
590
  );
921
591
  }
922
- function fe({ className: a, ...e }) {
923
- return /* @__PURE__ */ n(
592
+ function Qa({ className: a, ...t }) {
593
+ return /* @__PURE__ */ s(
924
594
  "div",
925
595
  {
926
596
  "data-slot": "card-header",
@@ -933,12 +603,12 @@ function fe({ className: a, ...e }) {
933
603
  "md:group-data-[size=md]/card:px-6 md:group-data-[size=md]/card:[.border-b]:pb-6",
934
604
  a
935
605
  ),
936
- ...e
606
+ ...t
937
607
  }
938
608
  );
939
609
  }
940
- function he({ className: a, ...e }) {
941
- return /* @__PURE__ */ n(
610
+ function Za({ className: a, ...t }) {
611
+ return /* @__PURE__ */ s(
942
612
  "div",
943
613
  {
944
614
  "data-slot": "card-title",
@@ -954,12 +624,12 @@ function he({ className: a, ...e }) {
954
624
  "group-has-data-[slot=card-icon]/card-header:group-has-data-[slot=card-description]/card-header:group-data-[size=md]/card:pl-14",
955
625
  a
956
626
  ),
957
- ...e
627
+ ...t
958
628
  }
959
629
  );
960
630
  }
961
- function be({ className: a, ...e }) {
962
- return /* @__PURE__ */ n(
631
+ function at({ className: a, ...t }) {
632
+ return /* @__PURE__ */ s(
963
633
  "div",
964
634
  {
965
635
  "data-slot": "card-description",
@@ -971,12 +641,12 @@ function be({ className: a, ...e }) {
971
641
  "group-has-data-[slot=card-icon]/card-header:group-data-[size=md]/card:pl-14",
972
642
  a
973
643
  ),
974
- ...e
644
+ ...t
975
645
  }
976
646
  );
977
647
  }
978
- function xe({ className: a, ...e }) {
979
- return /* @__PURE__ */ n(
648
+ function tt({ className: a, ...t }) {
649
+ return /* @__PURE__ */ s(
980
650
  "div",
981
651
  {
982
652
  "data-slot": "card-action",
@@ -984,12 +654,12 @@ function xe({ className: a, ...e }) {
984
654
  "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
985
655
  a
986
656
  ),
987
- ...e
657
+ ...t
988
658
  }
989
659
  );
990
660
  }
991
- function ve({ className: a, ...e }) {
992
- return /* @__PURE__ */ n(
661
+ function et({ className: a, ...t }) {
662
+ return /* @__PURE__ */ s(
993
663
  "div",
994
664
  {
995
665
  "data-slot": "card-icon",
@@ -1003,12 +673,12 @@ function ve({ className: a, ...e }) {
1003
673
  "group-has-data-[slot=card-description]/card-header:group-data-[size=md]/card:size-11",
1004
674
  a
1005
675
  ),
1006
- ...e
676
+ ...t
1007
677
  }
1008
678
  );
1009
679
  }
1010
- function we({ className: a, ...e }) {
1011
- return /* @__PURE__ */ n(
680
+ function rt({ className: a, ...t }) {
681
+ return /* @__PURE__ */ s(
1012
682
  "div",
1013
683
  {
1014
684
  "data-slot": "card-content",
@@ -1019,12 +689,12 @@ function we({ className: a, ...e }) {
1019
689
  "md:group-data-[size=md]/card:px-6",
1020
690
  a
1021
691
  ),
1022
- ...e
692
+ ...t
1023
693
  }
1024
694
  );
1025
695
  }
1026
- function ye({ className: a, ...e }) {
1027
- return /* @__PURE__ */ n(
696
+ function ot({ className: a, ...t }) {
697
+ return /* @__PURE__ */ s(
1028
698
  "div",
1029
699
  {
1030
700
  "data-slot": "card-footer",
@@ -1036,11 +706,11 @@ function ye({ className: a, ...e }) {
1036
706
  "md:group-data-[size=md]/card:px-6 md:group-data-[size=md]/card:[.border-t]:pt-6",
1037
707
  a
1038
708
  ),
1039
- ...e
709
+ ...t
1040
710
  }
1041
711
  );
1042
712
  }
1043
- const ze = g(
713
+ const st = g(
1044
714
  "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
715
  {
1046
716
  variants: {
@@ -1057,35 +727,35 @@ const ze = g(
1057
727
  }
1058
728
  }
1059
729
  );
1060
- function ke({
730
+ function dt({
1061
731
  className: a,
1062
- size: e,
1063
- onCheckedChange: t,
732
+ size: t,
733
+ onCheckedChange: e,
1064
734
  ...r
1065
735
  }) {
1066
- const { trigger: o } = U();
1067
- return /* @__PURE__ */ n(
1068
- J.Root,
736
+ const { trigger: o } = L();
737
+ return /* @__PURE__ */ s(
738
+ K.Root,
1069
739
  {
1070
740
  "data-slot": "checkbox",
1071
- "data-size": e,
741
+ "data-size": t,
1072
742
  className: i(
1073
- ze({ size: e }),
743
+ st({ size: t }),
1074
744
  "peer group/checkbox",
1075
745
  a
1076
746
  ),
1077
747
  "aria-label": r["aria-label"] ?? "checkbox",
1078
- onCheckedChange: (s, l) => {
1079
- o(Ra), t?.(s, l);
748
+ onCheckedChange: (n, l) => {
749
+ o(ka), e?.(n, l);
1080
750
  },
1081
751
  ...r,
1082
- children: /* @__PURE__ */ n(
1083
- J.Indicator,
752
+ children: /* @__PURE__ */ s(
753
+ K.Indicator,
1084
754
  {
1085
755
  "data-slot": "checkbox-indicator",
1086
756
  className: "grid place-content-center text-current",
1087
- children: /* @__PURE__ */ n(
1088
- $a,
757
+ children: /* @__PURE__ */ s(
758
+ Pa,
1089
759
  {
1090
760
  stroke: 3.5,
1091
761
  className: i(
@@ -1103,45 +773,45 @@ function ke({
1103
773
  }
1104
774
  );
1105
775
  }
1106
- function Ce({ className: a, ...e }) {
1107
- return /* @__PURE__ */ n(
1108
- B.Root,
776
+ function nt({ className: a, ...t }) {
777
+ return /* @__PURE__ */ s(
778
+ $.Root,
1109
779
  {
1110
780
  className: i("group/collapsible", a),
1111
781
  "data-slot": "collapsible",
1112
- ...e
782
+ ...t
1113
783
  }
1114
784
  );
1115
785
  }
1116
- function Ne({
786
+ function it({
1117
787
  className: a,
1118
- ...e
788
+ ...t
1119
789
  }) {
1120
- return /* @__PURE__ */ n(
1121
- B.Trigger,
790
+ return /* @__PURE__ */ s(
791
+ $.Trigger,
1122
792
  {
1123
793
  className: i(
1124
794
  "group-data-open/collapsible:[&_svg]:-scale-y-100",
1125
795
  a
1126
796
  ),
1127
797
  "data-slot": "collapsible-trigger",
1128
- ...e
798
+ ...t
1129
799
  }
1130
800
  );
1131
801
  }
1132
- function Te({
802
+ function lt({
1133
803
  className: a,
1134
- children: e,
1135
- ...t
804
+ children: t,
805
+ ...e
1136
806
  }) {
1137
- return /* @__PURE__ */ n(
1138
- B.Panel,
807
+ return /* @__PURE__ */ s(
808
+ $.Panel,
1139
809
  {
1140
810
  className: i("group overflow-hidden", a),
1141
811
  "data-slot": "collapsible-content",
1142
812
  keepMounted: !0,
1143
- ...t,
1144
- children: /* @__PURE__ */ n(
813
+ ...e,
814
+ children: /* @__PURE__ */ s(
1145
815
  "div",
1146
816
  {
1147
817
  "data-slot": "collapsible-content-container",
@@ -1150,58 +820,58 @@ function Te({
1150
820
  "group-data-starting-style:-translate-y-20 group-data-starting-style:opacity-0",
1151
821
  "group-data-ending-style:-translate-y-20 group-data-ending-style:opacity-0"
1152
822
  ),
1153
- children: e
823
+ children: t
1154
824
  }
1155
825
  )
1156
826
  }
1157
827
  );
1158
828
  }
1159
- function ya({ className: a, type: e, ...t }) {
1160
- return /* @__PURE__ */ n(
1161
- La,
829
+ function ca({ className: a, type: t, ...e }) {
830
+ return /* @__PURE__ */ s(
831
+ Oa,
1162
832
  {
1163
- type: e,
833
+ type: t,
1164
834
  "data-slot": "input",
1165
835
  className: i(
1166
836
  "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
837
  a
1168
838
  ),
1169
- ...t
839
+ ...e
1170
840
  }
1171
841
  );
1172
842
  }
1173
- function Ee({
843
+ function ut({
1174
844
  className: a,
1175
- containerClassName: e,
1176
- ...t
845
+ containerClassName: t,
846
+ ...e
1177
847
  }) {
1178
- return /* @__PURE__ */ n(
1179
- Ua,
848
+ return /* @__PURE__ */ s(
849
+ Ia,
1180
850
  {
1181
851
  "data-slot": "input-otp",
1182
852
  containerClassName: i(
1183
853
  "cn-input-otp flex items-center has-disabled:opacity-50",
1184
- e
854
+ t
1185
855
  ),
1186
856
  spellCheck: !1,
1187
857
  className: i("disabled:cursor-not-allowed", a),
1188
- ...t
858
+ ...e
1189
859
  }
1190
860
  );
1191
861
  }
1192
- function za({
862
+ function pa({
1193
863
  className: a,
1194
- onInput: e,
1195
- autosize: t = !1,
864
+ onInput: t,
865
+ autosize: e = !1,
1196
866
  ...r
1197
867
  }) {
1198
- return /* @__PURE__ */ n(
868
+ return /* @__PURE__ */ s(
1199
869
  "textarea",
1200
870
  {
1201
871
  "data-slot": "textarea",
1202
- onInput: e || ((s) => {
1203
- if (t) {
1204
- const l = s.currentTarget;
872
+ onInput: t || ((n) => {
873
+ if (e) {
874
+ const l = n.currentTarget;
1205
875
  l.style.height = "auto", l.style.height = l.scrollHeight + "px";
1206
876
  }
1207
877
  }),
@@ -1218,8 +888,8 @@ function za({
1218
888
  }
1219
889
  );
1220
890
  }
1221
- function Ae({ className: a, ...e }) {
1222
- return /* @__PURE__ */ n(
891
+ function ct({ className: a, ...t }) {
892
+ return /* @__PURE__ */ s(
1223
893
  "div",
1224
894
  {
1225
895
  "data-slot": "input-group",
@@ -1231,11 +901,11 @@ function Ae({ className: a, ...e }) {
1231
901
  "has-[>[data-align=block-start]]:p-1 has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:h-auto",
1232
902
  a
1233
903
  ),
1234
- ...e
904
+ ...t
1235
905
  }
1236
906
  );
1237
907
  }
1238
- const Pe = g(
908
+ const pt = g(
1239
909
  "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
910
  {
1241
911
  variants: {
@@ -1251,26 +921,26 @@ const Pe = g(
1251
921
  }
1252
922
  }
1253
923
  );
1254
- function Ie({
924
+ function gt({
1255
925
  className: a,
1256
- align: e = "inline-start",
1257
- ...t
926
+ align: t = "inline-start",
927
+ ...e
1258
928
  }) {
1259
- return /* @__PURE__ */ n(
929
+ return /* @__PURE__ */ s(
1260
930
  "div",
1261
931
  {
1262
932
  role: "group",
1263
933
  "data-slot": "input-group-addon",
1264
- "data-align": e,
1265
- className: i(Pe({ align: e }), a),
934
+ "data-align": t,
935
+ className: i(pt({ align: t }), a),
1266
936
  onClick: (r) => {
1267
937
  r.target.closest("button") || r.currentTarget.parentElement?.querySelector("input")?.focus();
1268
938
  },
1269
- ...t
939
+ ...e
1270
940
  }
1271
941
  );
1272
942
  }
1273
- const Oe = g("gap-2 text-sm flex items-center", {
943
+ const mt = g("gap-2 text-sm flex items-center", {
1274
944
  variants: {
1275
945
  size: {
1276
946
  xs: "h-7 gap-1 rounded-sm px-1.5 py-0.5",
@@ -1283,45 +953,45 @@ const Oe = g("gap-2 text-sm flex items-center", {
1283
953
  size: "xs"
1284
954
  }
1285
955
  });
1286
- function Re({
956
+ function ht({
1287
957
  className: a,
1288
- type: e = "button",
1289
- variant: t = "outline",
958
+ type: t = "button",
959
+ variant: e = "outline",
1290
960
  extrude: r = "xs",
1291
961
  size: o,
1292
- ...s
962
+ ...n
1293
963
  }) {
1294
- return /* @__PURE__ */ n(
1295
- ma,
964
+ return /* @__PURE__ */ s(
965
+ na,
1296
966
  {
1297
- type: e,
967
+ type: t,
1298
968
  "data-size": o,
1299
- variant: t,
969
+ variant: e,
1300
970
  extrude: r ?? null,
1301
- "aria-label": s["aria-label"] ?? "input-button",
1302
- className: i(Oe({ size: o }), a),
1303
- ...s
971
+ "aria-label": n["aria-label"] ?? "input-button",
972
+ className: i(mt({ size: o }), a),
973
+ ...n
1304
974
  }
1305
975
  );
1306
976
  }
1307
- function Se({ className: a, ...e }) {
1308
- return /* @__PURE__ */ n(
977
+ function ft({ className: a, ...t }) {
978
+ return /* @__PURE__ */ s(
1309
979
  "span",
1310
980
  {
1311
981
  className: i(
1312
982
  "text-subtle gap-2 font-base flex items-center [&_svg]:pointer-events-none",
1313
983
  a
1314
984
  ),
1315
- ...e
985
+ ...t
1316
986
  }
1317
987
  );
1318
988
  }
1319
- function _e({
989
+ function bt({
1320
990
  className: a,
1321
- ...e
991
+ ...t
1322
992
  }) {
1323
- return /* @__PURE__ */ n(
1324
- ya,
993
+ return /* @__PURE__ */ s(
994
+ ca,
1325
995
  {
1326
996
  "data-slot": "input-group-control",
1327
997
  className: i(
@@ -1340,16 +1010,16 @@ function _e({
1340
1010
  "group-has-[>[data-align=inline-end]]/input-group:focus:rounded-r-sm",
1341
1011
  a
1342
1012
  ),
1343
- ...e
1013
+ ...t
1344
1014
  }
1345
1015
  );
1346
1016
  }
1347
- function je({
1017
+ function vt({
1348
1018
  className: a,
1349
- ...e
1019
+ ...t
1350
1020
  }) {
1351
- return /* @__PURE__ */ n(
1352
- za,
1021
+ return /* @__PURE__ */ s(
1022
+ pa,
1353
1023
  {
1354
1024
  "data-slot": "input-group-control",
1355
1025
  className: i(
@@ -1366,11 +1036,11 @@ function je({
1366
1036
  "group-has-[>[data-align=inline-end]]/input-group:focus:rounded-r-base",
1367
1037
  a
1368
1038
  ),
1369
- ...e
1039
+ ...t
1370
1040
  }
1371
1041
  );
1372
1042
  }
1373
- const $e = g(
1043
+ const xt = g(
1374
1044
  "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
1045
  {
1376
1046
  variants: {
@@ -1389,24 +1059,24 @@ const $e = g(
1389
1059
  }
1390
1060
  }
1391
1061
  );
1392
- function De({
1062
+ function wt({
1393
1063
  size: a = "sm",
1394
- variant: e,
1395
- className: t,
1064
+ variant: t,
1065
+ className: e,
1396
1066
  htmlFor: r,
1397
1067
  ...o
1398
1068
  }) {
1399
- return /* @__PURE__ */ n(
1069
+ return /* @__PURE__ */ s(
1400
1070
  "label",
1401
1071
  {
1402
1072
  "data-slot": "label",
1403
1073
  htmlFor: r,
1404
- className: i($e({ size: a, variant: e }), t),
1074
+ className: i(xt({ size: a, variant: t }), e),
1405
1075
  ...o
1406
1076
  }
1407
1077
  );
1408
1078
  }
1409
- const sa = g("group/progress flex flex-wrap", {
1079
+ const Q = g("group/progress flex flex-wrap", {
1410
1080
  variants: {
1411
1081
  size: {
1412
1082
  xs: "gap-1",
@@ -1433,47 +1103,47 @@ const sa = g("group/progress flex flex-wrap", {
1433
1103
  }
1434
1104
  }
1435
1105
  });
1436
- function Ve(a) {
1106
+ function zt(a) {
1437
1107
  const {
1438
- size: e = "md",
1439
- raised: t = "default",
1108
+ size: t = "md",
1109
+ raised: e = "default",
1440
1110
  stacked: r = "default",
1441
1111
  className: o,
1442
- children: s,
1112
+ children: n,
1443
1113
  ...l
1444
1114
  } = a;
1445
1115
  if (a.mode === "multiple") {
1446
- const c = [...a.value].sort((u, p) => p.value - u.value);
1447
- return /* @__PURE__ */ T(
1116
+ const u = [...a.value].sort((c, p) => p.value - c.value);
1117
+ return /* @__PURE__ */ N(
1448
1118
  k.Root,
1449
1119
  {
1450
1120
  "data-slot": "progress",
1451
- "data-size": e,
1452
- "data-raised": t,
1121
+ "data-size": t,
1122
+ "data-raised": e,
1453
1123
  "data-stacked": r,
1454
- className: i(sa({ size: e, raised: t, stacked: r }), o),
1124
+ className: i(Q({ size: t, raised: e, stacked: r }), o),
1455
1125
  ...l,
1456
1126
  children: [
1457
- s,
1458
- /* @__PURE__ */ n(
1459
- na,
1127
+ n,
1128
+ /* @__PURE__ */ s(
1129
+ Z,
1460
1130
  {
1461
1131
  style: {
1462
- marginTop: `calc(var(--stack-translate, 0px) * ${c.length - 1})`,
1463
- transform: `translateX(calc(var(--stack-translate, 0px) * ${c.length - 1}))`
1132
+ marginTop: `calc(var(--stack-translate, 0px) * ${u.length - 1})`,
1133
+ transform: `translateX(calc(var(--stack-translate, 0px) * ${u.length - 1}))`
1464
1134
  },
1465
1135
  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,
1136
+ children: u.map((c, p) => /* @__PURE__ */ s(
1137
+ yt,
1468
1138
  {
1469
1139
  index: p,
1470
- "data-value": u.value,
1471
- ...u,
1472
- children: /* @__PURE__ */ n(
1140
+ "data-value": c.value,
1141
+ ...c,
1142
+ children: /* @__PURE__ */ s(
1473
1143
  k.Value,
1474
1144
  {
1475
1145
  className: i(
1476
- u.value < 5 ? "pr-0.5" : "",
1146
+ c.value < 5 ? "pr-0.5" : "",
1477
1147
  "text-muted leading-none font-heading tabular-nums h-full flex flex-row items-end justify-end gap-1 ml-auto my-auto",
1478
1148
  "group-data-[size=xs]/progress:hidden",
1479
1149
  "group-data-[size=sm]/progress:hidden",
@@ -1486,20 +1156,20 @@ function Ve(a) {
1486
1156
  "group-data-[stacked=default]/progress:translate-y-0 group-data-[stacked=default]/progress:items-center"
1487
1157
  ),
1488
1158
  "data-slot": "progress-indicator-group-value",
1489
- children: () => /* @__PURE__ */ T(_, { children: [
1490
- u.name && /* @__PURE__ */ n(
1159
+ children: () => /* @__PURE__ */ N(E, { children: [
1160
+ c.name && /* @__PURE__ */ s(
1491
1161
  "span",
1492
1162
  {
1493
1163
  className: "font-semibold line-clamp-1 opacity-0 -translate-y-10 transition-[opacity,translate] duration-200 hover:ease-in ease-out",
1494
1164
  "data-slot": "progress-name",
1495
- children: u.name
1165
+ children: c.name
1496
1166
  }
1497
1167
  ),
1498
- u.value.toLocaleString("default", {
1168
+ c.value.toLocaleString("default", {
1499
1169
  minimumFractionDigits: 0,
1500
1170
  maximumFractionDigits: 2
1501
1171
  }),
1502
- u.value < 5 ? "" : "%"
1172
+ c.value < 5 ? "" : "%"
1503
1173
  ] })
1504
1174
  }
1505
1175
  )
@@ -1512,25 +1182,25 @@ function Ve(a) {
1512
1182
  }
1513
1183
  );
1514
1184
  }
1515
- return /* @__PURE__ */ T(
1185
+ return /* @__PURE__ */ N(
1516
1186
  k.Root,
1517
1187
  {
1518
1188
  ...l,
1519
1189
  value: a.value,
1520
1190
  "data-slot": "progress",
1521
- "data-size": e,
1522
- "data-raised": t,
1191
+ "data-size": t,
1192
+ "data-raised": e,
1523
1193
  "data-stacked": r,
1524
- className: i(sa({ size: e, raised: t, stacked: r }), o),
1194
+ className: i(Q({ size: t, raised: e, stacked: r }), o),
1525
1195
  children: [
1526
- s,
1527
- /* @__PURE__ */ n(na, { children: /* @__PURE__ */ n(Le, { "data-value": a.value }) })
1196
+ n,
1197
+ /* @__PURE__ */ s(Z, { children: /* @__PURE__ */ s(kt, { "data-value": a.value }) })
1528
1198
  ]
1529
1199
  }
1530
1200
  );
1531
1201
  }
1532
- function na({ className: a, ...e }) {
1533
- return /* @__PURE__ */ n(
1202
+ function Z({ className: a, ...t }) {
1203
+ return /* @__PURE__ */ s(
1534
1204
  k.Track,
1535
1205
  {
1536
1206
  className: i(
@@ -1550,15 +1220,15 @@ function na({ className: a, ...e }) {
1550
1220
  a
1551
1221
  ),
1552
1222
  "data-slot": "progress-track",
1553
- ...e
1223
+ ...t
1554
1224
  }
1555
1225
  );
1556
1226
  }
1557
- function Le({
1227
+ function kt({
1558
1228
  className: a,
1559
- ...e
1229
+ ...t
1560
1230
  }) {
1561
- return /* @__PURE__ */ n(
1231
+ return /* @__PURE__ */ s(
1562
1232
  k.Indicator,
1563
1233
  {
1564
1234
  "data-slot": "progress-indicator",
@@ -1573,22 +1243,22 @@ function Le({
1573
1243
  "group-data-[stacked=xl]/progress:shadow-xl group-data-[stacked=xl]/progress:-translate-[5.5px]",
1574
1244
  a
1575
1245
  ),
1576
- ...e
1246
+ ...t
1577
1247
  }
1578
1248
  );
1579
1249
  }
1580
- function Ue({
1250
+ function yt({
1581
1251
  className: a,
1582
- children: e,
1583
- value: t,
1252
+ children: t,
1253
+ value: e,
1584
1254
  index: r,
1585
1255
  ...o
1586
1256
  }) {
1587
- return /* @__PURE__ */ n(
1257
+ return /* @__PURE__ */ s(
1588
1258
  k.Indicator,
1589
1259
  {
1590
1260
  "data-slot": "progress-indicator-group",
1591
- "data-value": t,
1261
+ "data-value": e,
1592
1262
  "data-group": !0,
1593
1263
  className: i(
1594
1264
  "group/progress-indicator-group bg-main overflow-hidden transition-height duration-200 ease-in hover:ease-out border-2 rounded-l-xl",
@@ -1608,15 +1278,15 @@ function Ue({
1608
1278
  ),
1609
1279
  ...o,
1610
1280
  style: {
1611
- minWidth: `${t}%`,
1612
- maxWidth: `${t}%`,
1281
+ minWidth: `${e}%`,
1282
+ maxWidth: `${e}%`,
1613
1283
  transform: `translateX(calc(var(--stack-translate, 0px) * -${r})) translateY(calc(var(--stack-translate, 0px) * -${r}))`
1614
1284
  },
1615
- children: e
1285
+ children: t
1616
1286
  }
1617
1287
  );
1618
1288
  }
1619
- const Be = g("bg-border shrink-0", {
1289
+ const Nt = g("bg-border shrink-0", {
1620
1290
  variants: {
1621
1291
  stroke: {
1622
1292
  thin: "border-0.5",
@@ -1633,23 +1303,23 @@ const Be = g("bg-border shrink-0", {
1633
1303
  orientation: "horizontal"
1634
1304
  }
1635
1305
  });
1636
- function Me({
1306
+ function Ct({
1637
1307
  className: a,
1638
- orientation: e,
1639
- stroke: t,
1308
+ orientation: t,
1309
+ stroke: e,
1640
1310
  ...r
1641
1311
  }) {
1642
- return /* @__PURE__ */ n(
1643
- Ba,
1312
+ return /* @__PURE__ */ s(
1313
+ Ea,
1644
1314
  {
1645
1315
  "data-slot": "separator",
1646
- orientation: e,
1647
- className: i(Be({ orientation: e, stroke: t }), a),
1316
+ orientation: t,
1317
+ className: i(Nt({ orientation: t, stroke: e }), a),
1648
1318
  ...r
1649
1319
  }
1650
1320
  );
1651
1321
  }
1652
- const He = g("bg-foreground/30 rounded-base", {
1322
+ const Pt = g("bg-foreground/30 rounded-base", {
1653
1323
  variants: {
1654
1324
  variant: {
1655
1325
  circle: "aspect-square w-auto rounded-full",
@@ -1663,22 +1333,22 @@ const He = g("bg-foreground/30 rounded-base", {
1663
1333
  }
1664
1334
  }
1665
1335
  });
1666
- function Ge({
1336
+ function Tt({
1667
1337
  variant: a = "default",
1668
- animate: e = !0,
1669
- className: t,
1338
+ animate: t = !0,
1339
+ className: e,
1670
1340
  ...r
1671
1341
  }) {
1672
- return /* @__PURE__ */ n(
1342
+ return /* @__PURE__ */ s(
1673
1343
  "div",
1674
1344
  {
1675
1345
  "data-slot": "skeleton",
1676
- className: i(He({ variant: a, animate: e }), t),
1346
+ className: i(Pt({ variant: a, animate: t }), e),
1677
1347
  ...r
1678
1348
  }
1679
1349
  );
1680
1350
  }
1681
- const Fe = g(
1351
+ const At = g(
1682
1352
  "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
1353
  {
1684
1354
  variants: {
@@ -1701,32 +1371,32 @@ const Fe = g(
1701
1371
  }
1702
1372
  }
1703
1373
  );
1704
- function Ye({
1374
+ function Ot({
1705
1375
  className: a,
1706
- size: e = "md",
1707
- rounded: t = "full",
1376
+ size: t = "md",
1377
+ rounded: e = "full",
1708
1378
  onCheckedChange: r,
1709
1379
  ...o
1710
1380
  }) {
1711
- const { trigger: s } = U();
1712
- return /* @__PURE__ */ n(
1713
- Z.Root,
1381
+ const { trigger: n } = L();
1382
+ return /* @__PURE__ */ s(
1383
+ X.Root,
1714
1384
  {
1715
1385
  "data-slot": "switch",
1716
- "data-size": e,
1717
- "data-rounded": t,
1386
+ "data-size": t,
1387
+ "data-rounded": e,
1718
1388
  className: i(
1719
- Fe({ size: e, rounded: t }),
1389
+ At({ size: t, rounded: e }),
1720
1390
  "peer group/switch",
1721
1391
  a
1722
1392
  ),
1723
1393
  "aria-label": o["aria-label"] ?? "switch",
1724
- onCheckedChange: (l, c) => {
1725
- s(Sa), r?.(l, c);
1394
+ onCheckedChange: (l, u) => {
1395
+ n(ya), r?.(l, u);
1726
1396
  },
1727
1397
  ...o,
1728
- children: /* @__PURE__ */ n(
1729
- Z.Thumb,
1398
+ children: /* @__PURE__ */ s(
1399
+ X.Thumb,
1730
1400
  {
1731
1401
  "data-slot": "switch-thumb",
1732
1402
  className: i(
@@ -1751,7 +1421,7 @@ function Ye({
1751
1421
  }
1752
1422
  );
1753
1423
  }
1754
- const We = g("w-full caption-bottom text-sm", {
1424
+ const It = g("w-full caption-bottom text-sm", {
1755
1425
  variants: {
1756
1426
  variant: {
1757
1427
  default: "",
@@ -1760,50 +1430,50 @@ const We = g("w-full caption-bottom text-sm", {
1760
1430
  }
1761
1431
  }
1762
1432
  });
1763
- function Ke({
1433
+ function Et({
1764
1434
  className: a,
1765
- variant: e = "default",
1766
- ...t
1435
+ variant: t = "default",
1436
+ ...e
1767
1437
  }) {
1768
- return /* @__PURE__ */ n(
1438
+ return /* @__PURE__ */ s(
1769
1439
  "div",
1770
1440
  {
1771
1441
  "data-slot": "table-container",
1772
1442
  className: "relative w-full overflow-x-auto",
1773
- children: /* @__PURE__ */ n(
1443
+ children: /* @__PURE__ */ s(
1774
1444
  "table",
1775
1445
  {
1776
1446
  "data-slot": "table",
1777
- "data-variant": e,
1778
- className: i(We({ variant: e }), "group/table", a),
1779
- ...t
1447
+ "data-variant": t,
1448
+ className: i(It({ variant: t }), "group/table", a),
1449
+ ...e
1780
1450
  }
1781
1451
  )
1782
1452
  }
1783
1453
  );
1784
1454
  }
1785
- function Xe({ className: a, ...e }) {
1786
- return /* @__PURE__ */ n(
1455
+ function Rt({ className: a, ...t }) {
1456
+ return /* @__PURE__ */ s(
1787
1457
  "thead",
1788
1458
  {
1789
1459
  "data-slot": "table-header",
1790
1460
  className: i("[&_tr]:border-b font-heading", a),
1791
- ...e
1461
+ ...t
1792
1462
  }
1793
1463
  );
1794
1464
  }
1795
- function qe({ className: a, ...e }) {
1796
- return /* @__PURE__ */ n(
1465
+ function _t({ className: a, ...t }) {
1466
+ return /* @__PURE__ */ s(
1797
1467
  "tbody",
1798
1468
  {
1799
1469
  "data-slot": "table-body",
1800
1470
  className: i("[&_tr:last-child]:border-0", a),
1801
- ...e
1471
+ ...t
1802
1472
  }
1803
1473
  );
1804
1474
  }
1805
- function Je({ className: a, ...e }) {
1806
- return /* @__PURE__ */ n(
1475
+ function Vt({ className: a, ...t }) {
1476
+ return /* @__PURE__ */ s(
1807
1477
  "tfoot",
1808
1478
  {
1809
1479
  "data-slot": "table-footer",
@@ -1814,12 +1484,12 @@ function Je({ className: a, ...e }) {
1814
1484
  "group-data-[variant=lines]/table:bg-surface",
1815
1485
  a
1816
1486
  ),
1817
- ...e
1487
+ ...t
1818
1488
  }
1819
1489
  );
1820
1490
  }
1821
- function Ze({ className: a, ...e }) {
1822
- return /* @__PURE__ */ n(
1491
+ function St({ className: a, ...t }) {
1492
+ return /* @__PURE__ */ s(
1823
1493
  "tr",
1824
1494
  {
1825
1495
  "data-slot": "table-row",
@@ -1840,12 +1510,12 @@ function Ze({ className: a, ...e }) {
1840
1510
  "group-data-[variant=lines]/table:data-[state=selected]:bg-main/50",
1841
1511
  a
1842
1512
  ),
1843
- ...e
1513
+ ...t
1844
1514
  }
1845
1515
  );
1846
1516
  }
1847
- function Qe({ className: a, ...e }) {
1848
- return /* @__PURE__ */ n(
1517
+ function jt({ className: a, ...t }) {
1518
+ return /* @__PURE__ */ s(
1849
1519
  "th",
1850
1520
  {
1851
1521
  "data-slot": "table-head",
@@ -1855,12 +1525,12 @@ function Qe({ className: a, ...e }) {
1855
1525
  "group-data-[variant=lines]/table:not-last:border-r-2",
1856
1526
  a
1857
1527
  ),
1858
- ...e
1528
+ ...t
1859
1529
  }
1860
1530
  );
1861
1531
  }
1862
- function at({ className: a, ...e }) {
1863
- return /* @__PURE__ */ n(
1532
+ function Lt({ className: a, ...t }) {
1533
+ return /* @__PURE__ */ s(
1864
1534
  "td",
1865
1535
  {
1866
1536
  "data-slot": "table-cell",
@@ -1870,15 +1540,15 @@ function at({ className: a, ...e }) {
1870
1540
  "group-data-[variant=lines]/table:not-last:border-r-2",
1871
1541
  a
1872
1542
  ),
1873
- ...e
1543
+ ...t
1874
1544
  }
1875
1545
  );
1876
1546
  }
1877
- function et({
1547
+ function $t({
1878
1548
  className: a,
1879
- ...e
1549
+ ...t
1880
1550
  }) {
1881
- return /* @__PURE__ */ n(
1551
+ return /* @__PURE__ */ s(
1882
1552
  "caption",
1883
1553
  {
1884
1554
  "data-slot": "table-caption",
@@ -1886,96 +1556,96 @@ function et({
1886
1556
  "text-muted hover:text-foreground mt-4 text-sm font-heading",
1887
1557
  a
1888
1558
  ),
1889
- ...e
1559
+ ...t
1890
1560
  }
1891
1561
  );
1892
1562
  }
1893
- const tt = ["bindings", "formField", "ssr", "pdf"], rt = ["children", "bindings", "ssr", "pdf"];
1894
- function da(a) {
1563
+ const Bt = ["bindings", "formField", "ssr", "pdf"], Dt = ["children", "bindings", "ssr", "pdf"];
1564
+ function aa(a) {
1895
1565
  return {
1896
1566
  valueProp: a.valueProp,
1897
1567
  changeProp: a.changeProp,
1898
1568
  extract: a.extractor
1899
1569
  };
1900
1570
  }
1901
- function ot(a) {
1571
+ function Gt(a) {
1902
1572
  if (a)
1903
1573
  return typeof a == "object" && "default" in a ? Object.fromEntries(
1904
- Object.entries(a).map(([e, t]) => [
1905
- e,
1906
- da(t)
1574
+ Object.entries(a).map(([t, e]) => [
1575
+ t,
1576
+ aa(e)
1907
1577
  ])
1908
- ) : da(a);
1578
+ ) : aa(a);
1909
1579
  }
1910
- function st(a, { components: e = {}, controlledInputs: t = {} }) {
1580
+ function Ut(a, { components: t = {}, controlledInputs: e = {} }) {
1911
1581
  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;
1582
+ for (const o of /* @__PURE__ */ new Set([...Object.keys(t), ...Object.keys(e)])) {
1583
+ const n = Object.hasOwn(r, o) ? r[o] : void 0, l = Object.hasOwn(t, o) ? t[o] : n?.component;
1914
1584
  if (l === void 0) continue;
1915
- const c = Object.hasOwn(t, o) ? ot(t[o]) : s?.controlled;
1585
+ const u = Object.hasOwn(e, o) ? Gt(e[o]) : n?.controlled;
1916
1586
  r[o] = {
1917
- ...s,
1587
+ ...n,
1918
1588
  component: l,
1919
- controlled: c,
1920
- capabilities: s?.capabilities ?? (c ? tt : rt)
1589
+ controlled: u,
1590
+ capabilities: n?.capabilities ?? (u ? Bt : Dt)
1921
1591
  };
1922
1592
  }
1923
1593
  return { ...a, components: r };
1924
1594
  }
1925
- const nt = {
1926
- [d.A]: xa,
1927
- [d.H]: va,
1928
- [d.P]: wa,
1595
+ const Ht = {
1596
+ [d.A]: ia,
1597
+ [d.H]: la,
1598
+ [d.P]: ua,
1929
1599
  [d.OL]: "ol",
1930
1600
  [d.UL]: "ul",
1931
1601
  [d.LI]: "li",
1932
1602
  [d.DIV]: "div",
1933
1603
  [d.SPAN]: "span",
1934
1604
  [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 = {
1605
+ [d.ACCORDION]: Da,
1606
+ [d.ACCORDION_ITEM]: Ga,
1607
+ [d.ACCORDION_TRIGGER]: Ua,
1608
+ [d.ACCORDION_CONTENT]: Ha,
1609
+ [d.ALERT]: Ma,
1610
+ [d.AVATAR]: Ka,
1611
+ [d.BADGE]: qa,
1612
+ [d.BUTTON]: na,
1613
+ [d.CARD]: Ja,
1614
+ [d.CARD_HEADER]: Qa,
1615
+ [d.CARD_TITLE]: Za,
1616
+ [d.CARD_DESCRIPTION]: at,
1617
+ [d.CARD_CONTENT]: rt,
1618
+ [d.CARD_FOOTER]: ot,
1619
+ [d.CARD_ACTION]: tt,
1620
+ [d.CARD_ICON]: et,
1621
+ [d.CHECKBOX]: dt,
1622
+ [d.COLLAPSIBLE]: nt,
1623
+ [d.COLLAPSIBLE_TRIGGER]: it,
1624
+ [d.COLLAPSIBLE_CONTENT]: lt,
1625
+ [d.OTP]: ut,
1626
+ [d.INPUT]: ca,
1627
+ [d.INPUT_GROUP]: ct,
1628
+ [d.INPUT_GROUP_TEXT]: ft,
1629
+ [d.INPUT_GROUP_ADDON]: gt,
1630
+ [d.INPUT_GROUP_INPUT]: bt,
1631
+ [d.INPUT_GROUP_BUTTON]: ht,
1632
+ [d.INPUT_GROUP_TEXTAREA]: vt,
1633
+ [d.LABEL]: wt,
1634
+ [d.LOADER]: Na,
1635
+ [d.PROGRESS]: zt,
1636
+ [d.SWITCH]: Ot,
1637
+ [d.SEPARATOR]: Ct,
1638
+ [d.SKELETON]: Tt,
1639
+ [d.TABLE]: Et,
1640
+ [d.TABLE_HEADER]: Rt,
1641
+ [d.TABLE_BODY]: _t,
1642
+ [d.TABLE_FOOTER]: Vt,
1643
+ [d.TABLE_HEAD]: jt,
1644
+ [d.TABLE_ROW]: St,
1645
+ [d.TABLE_CELL]: Lt,
1646
+ [d.TABLE_CAPTION]: $t,
1647
+ [d.TEXTAREA]: pa
1648
+ }, Ft = {
1979
1649
  [d.INPUT]: {
1980
1650
  text: {
1981
1651
  valueProp: "value",
@@ -2035,7 +1705,7 @@ const nt = {
2035
1705
  changeProp: "onCheckedChange",
2036
1706
  extractor: (a) => a
2037
1707
  }
2038
- }, it = st(
1708
+ }, Mt = Ut(
2039
1709
  {
2040
1710
  id: "pebble-ui",
2041
1711
  version: "1.0.0",
@@ -2043,24 +1713,24 @@ const nt = {
2043
1713
  fallback: "div",
2044
1714
  components: {}
2045
1715
  },
2046
- { components: nt, controlledInputs: dt }
2047
- ), ka = pa(it);
2048
- function lt() {
2049
- return ga(ka);
1716
+ { components: Ht, controlledInputs: Ft }
1717
+ ), ga = sa(Mt);
1718
+ function Wt() {
1719
+ return da(ga);
2050
1720
  }
2051
- const Ca = pa("web");
2052
- function Vt() {
2053
- return ga(Ca);
1721
+ const ma = sa("web");
1722
+ function ze() {
1723
+ return da(ma);
2054
1724
  }
2055
- function Lt({
1725
+ function ke({
2056
1726
  registry: a,
2057
- render: e = "web",
2058
- children: t
1727
+ render: t = "web",
1728
+ children: e
2059
1729
  }) {
2060
- const r = lt();
2061
- return /* @__PURE__ */ n(ka.Provider, { value: a ?? r, children: /* @__PURE__ */ n(Ca.Provider, { value: e, children: t }) });
1730
+ const r = Wt();
1731
+ return /* @__PURE__ */ s(ga.Provider, { value: a ?? r, children: /* @__PURE__ */ s(ma.Provider, { value: t, children: e }) });
2062
1732
  }
2063
- const ct = /* @__PURE__ */ new Set([
1733
+ const Kt = /* @__PURE__ */ new Set([
2064
1734
  "area",
2065
1735
  "base",
2066
1736
  "br",
@@ -2075,245 +1745,245 @@ const ct = /* @__PURE__ */ new Set([
2075
1745
  "source",
2076
1746
  "track",
2077
1747
  "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) => {
1748
+ ]), O = (a, t, e) => `${a.type}-${e}-${t}`;
1749
+ function ta(a, t, e = void 0) {
1750
+ return t ? B(t).reduce((o, n) => {
2081
1751
  if (o != null)
2082
- return o[E(s)];
2083
- }, a) ?? t : a;
1752
+ return o[C(n)];
1753
+ }, a) ?? e : a;
2084
1754
  }
2085
- function Ut(a, e, t) {
2086
- if (!e) {
2087
- Object.assign(a, t);
1755
+ function ye(a, t, e) {
1756
+ if (!t) {
1757
+ Object.assign(a, e);
2088
1758
  return;
2089
1759
  }
2090
- const r = H(e);
1760
+ const r = B(t);
2091
1761
  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];
1762
+ for (let n = 0; n < r.length - 1; n++) {
1763
+ const l = C(r[n]), u = C(r[n + 1]);
1764
+ o[l] ??= /^\d+$/.test(u) ? [] : {}, o = o[l];
2095
1765
  }
2096
- o[E(r[r.length - 1])] = t;
1766
+ o[C(r[r.length - 1])] = e;
2097
1767
  }
2098
- function Na(a) {
2099
- const e = a.match(/^[^.[]+/);
2100
- return e ? e[0] : a;
1768
+ function ha(a) {
1769
+ const t = a.match(/^[^.[]+/);
1770
+ return t ? t[0] : a;
2101
1771
  }
2102
- function la(a, e) {
2103
- return !!e && Object.hasOwn(e, Na(a));
1772
+ function ea(a, t) {
1773
+ return !!t && Object.hasOwn(t, ha(a));
2104
1774
  }
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);
1775
+ function ra(a, t) {
1776
+ if (!t) return a;
1777
+ const e = ha(a), r = t[e];
1778
+ return r == null ? a : r + a.slice(e.length);
2109
1779
  }
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);
1780
+ const z = (a, t) => Va(a, t);
1781
+ function Ne(a, t) {
1782
+ const e = {};
1783
+ for (const { key: r, segments: o, numericNext: n } of a) {
1784
+ const l = t(r);
2115
1785
  if (o.length === 1) {
2116
- t[r] = l;
1786
+ e[r] = l;
2117
1787
  continue;
2118
1788
  }
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];
1789
+ let u = e;
1790
+ for (let c = 0; c < o.length - 1; c++) {
1791
+ const p = o[c];
1792
+ (!(p in u) || typeof u[p] != "object" || u[p] === null) && (u[p] = n[c] ? [] : {}), u = u[p];
2123
1793
  }
2124
- c[o[o.length - 1]] = l;
1794
+ u[o[o.length - 1]] = l;
2125
1795
  }
2126
- return t;
1796
+ return e;
2127
1797
  }
2128
- const ut = (a, e) => {
2129
- if (!e) return "div";
2130
- if (Object.hasOwn(a.components, e))
2131
- return a.components[e].component;
1798
+ const Xt = (a, t) => {
1799
+ if (!t) return "div";
1800
+ if (Object.hasOwn(a.components, t))
1801
+ return a.components[t].component;
2132
1802
  if (a.fallback === "error")
2133
1803
  throw new Error(
2134
- `Bonsai: unknown component type "${e}" in registry "${a.id}"@"${a.version}"`
1804
+ `Bonsai: unknown component type "${t}" in registry "${a.id}"@"${a.version}"`
2135
1805
  );
2136
1806
  return a.fallback && a.fallback !== "div" ? a.fallback : "div";
2137
- }, Ta = (a, e, t, r = {}) => {
1807
+ }, fa = (a, t, e, r = {}) => {
2138
1808
  const o = {
2139
- key: t,
1809
+ key: e,
2140
1810
  ...a.source?.args,
2141
1811
  ...r
2142
1812
  };
2143
- for (const s of Object.keys(o))
2144
- (a.dynamicArgs.has(s) || Object.hasOwn(r, s)) && (o[s] = z(o[s], e));
1813
+ for (const n of Object.keys(o))
1814
+ (a.dynamicArgs.has(n) || Object.hasOwn(r, n)) && (o[n] = z(o[n], t));
2145
1815
  return o;
2146
1816
  };
2147
- function pt(a, e, t, r, o) {
1817
+ function qt(a, t, e, r, o) {
2148
1818
  return r[a.changeProp] ? {} : {
2149
- [a.changeProp]: (s) => o(e, a.extract(s)),
2150
- [a.valueProp]: t
1819
+ [a.changeProp]: (n) => o(t, a.extract(n)),
1820
+ [a.valueProp]: e
2151
1821
  };
2152
1822
  }
2153
- const gt = () => {
1823
+ const Yt = () => {
2154
1824
  };
2155
- function mt({
1825
+ function Jt({
2156
1826
  node: a,
2157
- dataSlice: e,
2158
- elementKey: t,
1827
+ dataSlice: t,
1828
+ elementKey: e,
2159
1829
  ElementType: r,
2160
1830
  ctrlInput: o,
2161
- keyPath: s,
1831
+ keyPath: n,
2162
1832
  storeValue: l,
2163
- updateData: c,
2164
- children: u
1833
+ updateData: u,
1834
+ children: c
2165
1835
  }) {
2166
- const p = pt(
1836
+ const p = qt(
2167
1837
  o,
2168
- s,
1838
+ n,
2169
1839
  l,
2170
1840
  a.source?.args ?? {},
2171
- c
2172
- ), b = Ta(a, e, t, p);
2173
- return u !== void 0 ? j(r, b, u) : j(r, b);
1841
+ u
1842
+ ), f = fa(a, t, e, p);
1843
+ return c !== void 0 ? R(r, f, c) : R(r, f);
2174
1844
  }
2175
- function ft(a, e, t) {
2176
- if (!Object.hasOwn(a.components, e)) return;
2177
- const r = a.components[e].controlled;
1845
+ function Qt(a, t, e) {
1846
+ if (!Object.hasOwn(a.components, t)) return;
1847
+ const r = a.components[t].controlled;
2178
1848
  if (r) {
2179
1849
  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;
1850
+ const o = e?.args?.type || "default", n = r;
1851
+ return (Object.hasOwn(n, o) ? n[o] : void 0) || n.default;
2182
1852
  }
2183
1853
  return r;
2184
1854
  }
2185
1855
  }
2186
- function Mt(a, e) {
2187
- return a === "pdf" || e === "div" ? "div" : "form";
1856
+ function Ce(a, t) {
1857
+ return a === "pdf" || t === "div" ? "div" : "form";
2188
1858
  }
2189
- function ua(a) {
2190
- if (Array.isArray(a)) return a.map((e) => ua(e));
1859
+ function oa(a) {
1860
+ if (Array.isArray(a)) return a.map((t) => oa(t));
2191
1861
  if (a !== null && typeof a == "object") {
2192
- const e = Object.getPrototypeOf(a);
2193
- if (e === Object.prototype || e === null) {
2194
- const t = {};
1862
+ const t = Object.getPrototypeOf(a);
1863
+ if (t === Object.prototype || t === null) {
1864
+ const e = {};
2195
1865
  for (const [r, o] of Object.entries(a))
2196
- t[r] = ua(o);
2197
- return t;
1866
+ e[r] = oa(o);
1867
+ return e;
2198
1868
  }
2199
1869
  }
2200
1870
  return a;
2201
1871
  }
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);
1872
+ function Pe(a, t, e, r, o, n, l, u) {
1873
+ const c = a.source;
1874
+ if (!c) return null;
1875
+ const p = u.dataSlice(a, r, o);
2206
1876
  if (a.isText)
2207
- return z(u, p);
1877
+ return z(c, p);
2208
1878
  try {
2209
- const b = a.type;
1879
+ const f = a.type;
2210
1880
  if (a.isIf)
2211
- return z(u.args.condition, p) ? /* @__PURE__ */ n(_, { children: a.children.map(
2212
- (v, C) => c.renderChild(
1881
+ return z(c.args.condition, p) ? /* @__PURE__ */ s(E, { children: a.children.map(
1882
+ (v, y) => u.renderChild(
2213
1883
  v,
2214
- C,
2215
- `${t}-${e}-if`,
1884
+ y,
1885
+ `${e}-${t}-if`,
2216
1886
  r,
2217
- O(v, C, `${t}-${e}-if`)
1887
+ O(v, y, `${e}-${t}-if`)
2218
1888
  )
2219
1889
  ) }) : null;
2220
1890
  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)
1891
+ const m = a.each, { as: v, keyExpr: y, rawItemsPath: V } = m, D = z(c.args.items, p), ba = Array.isArray(D) ? D : [], va = V && !ea(V, r.valueScope) ? ra(V, r.scope) : "";
1892
+ return /* @__PURE__ */ s(E, { children: ba.map((G, U) => {
1893
+ const xa = u.rowCtx(r, o, G, U, m, va), H = y ? z(y, { ...p, [v]: G }) : U, F = `${e}-${t}-each-${H}`;
1894
+ return /* @__PURE__ */ s(wa, { children: a.children.map(
1895
+ (M, W) => u.renderChild(
1896
+ M,
1897
+ W,
1898
+ F,
1899
+ xa,
1900
+ O(M, W, F)
2231
1901
  )
2232
- ) }, String(W));
1902
+ ) }, String(H));
2233
1903
  }) });
2234
1904
  }
2235
- const y = ut(s, b), P = O(a, e, t), w = ft(s, b, u);
1905
+ const w = Xt(n, f), T = O(a, t, e), x = Qt(n, f, c);
2236
1906
  let h;
2237
- if (w) {
2238
- const m = a.argPaths[w.valueProp];
2239
- if (m !== void 0 && la(m, r.valueScope))
1907
+ if (x) {
1908
+ const m = a.argPaths[x.valueProp];
1909
+ if (m !== void 0 && ea(m, r.valueScope))
2240
1910
  h = {
2241
1911
  keyPath: m,
2242
- storeValue: ia(r.valueScope, m),
1912
+ storeValue: ta(r.valueScope, m),
2243
1913
  readOnly: !0
2244
1914
  };
2245
1915
  else if (m !== void 0) {
2246
- const v = ca(m, r.scope);
1916
+ const v = ra(m, r.scope);
2247
1917
  h = {
2248
1918
  keyPath: v,
2249
- storeValue: ia(o.data ?? o, v)
1919
+ storeValue: ta(o.data ?? o, v)
2250
1920
  };
2251
- } else a.dynamicArgs.has(w.valueProp) && (h = {
1921
+ } else a.dynamicArgs.has(x.valueProp) && (h = {
2252
1922
  keyPath: "",
2253
- storeValue: z(u.args[w.valueProp], p),
1923
+ storeValue: z(c.args[x.valueProp], p),
2254
1924
  readOnly: !0
2255
1925
  });
2256
1926
  }
2257
1927
  if (a.isImage) {
2258
- const m = z(u.args?.src, p);
1928
+ const m = z(c.args?.src, p);
2259
1929
  if (m === "" || m == null) return null;
2260
1930
  }
2261
- const $ = a.children.length > 0 ? a.children.map(
2262
- (m, v) => c.renderChild(
1931
+ const _ = a.children.length > 0 ? a.children.map(
1932
+ (m, v) => u.renderChild(
2263
1933
  m,
2264
1934
  v,
2265
- `${t}-${e}`,
1935
+ `${e}-${t}`,
2266
1936
  r,
2267
- O(a, v, `${t}-${e}`)
1937
+ O(a, v, `${e}-${t}`)
2268
1938
  )
2269
- ) : void 0, x = typeof y == "string" && ct.has(y) ? void 0 : $;
2270
- if (h && w)
2271
- return /* @__PURE__ */ n(
2272
- mt,
1939
+ ) : void 0, b = typeof w == "string" && Kt.has(w) ? void 0 : _;
1940
+ if (h && x)
1941
+ return /* @__PURE__ */ s(
1942
+ Jt,
2273
1943
  {
2274
1944
  node: a,
2275
1945
  dataSlice: p,
2276
- elementKey: P,
2277
- ElementType: y,
2278
- ctrlInput: w,
1946
+ elementKey: T,
1947
+ ElementType: w,
1948
+ ctrlInput: x,
2279
1949
  keyPath: h.keyPath,
2280
1950
  storeValue: h.storeValue,
2281
- updateData: h.readOnly ? gt : l,
2282
- children: x
1951
+ updateData: h.readOnly ? Yt : l,
1952
+ children: b
2283
1953
  }
2284
1954
  );
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;
1955
+ const A = fa(a, p, T);
1956
+ return b !== void 0 ? R(w, A, b) : R(w, A);
1957
+ } catch (f) {
1958
+ return console.error(`Error at ${e}-${t}:`, f), null;
2289
1959
  }
2290
1960
  }
2291
1961
  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
1962
+ ke as B,
1963
+ ct as I,
1964
+ Kt as V,
1965
+ Ft as a,
1966
+ Mt as b,
1967
+ Ht as c,
1968
+ we as d,
1969
+ xe as e,
1970
+ Ut as f,
1971
+ gt as g,
1972
+ bt as h,
1973
+ ve as i,
1974
+ Wt as j,
1975
+ Pe as k,
1976
+ Ne as l,
1977
+ ta as m,
1978
+ oa as n,
1979
+ Xt as o,
1980
+ O as p,
1981
+ fa as q,
1982
+ Ce as r,
1983
+ ye as s,
1984
+ ha as t,
1985
+ ze as u,
1986
+ ra as v,
1987
+ ga as w
2318
1988
  };
2319
- //# sourceMappingURL=render-shared-CIUUkLDn.js.map
1989
+ //# sourceMappingURL=render-shared-Ci28BpkI.js.map