@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.
- package/README.md +4 -0
- package/dist/ast.js +10 -0
- package/dist/ast.js.map +1 -0
- package/dist/chunks/builder.meta-WpXc5VBB.js +666 -0
- package/dist/chunks/builder.meta-WpXc5VBB.js.map +1 -0
- package/dist/chunks/{button-CSLrIvsS.js → button-jfJanilw.js} +46 -51
- package/dist/chunks/button-jfJanilw.js.map +1 -0
- package/dist/chunks/{create-renderer-1cky1uN9.js → create-renderer-DHneTPd-.js} +8 -8
- package/dist/chunks/{create-renderer-1cky1uN9.js.map → create-renderer-DHneTPd-.js.map} +1 -1
- package/dist/chunks/index-DzpRdatr.js +359 -0
- package/dist/chunks/index-DzpRdatr.js.map +1 -0
- package/dist/chunks/{render-shared-CIUUkLDn.js → render-shared-Ci28BpkI.js} +601 -931
- package/dist/chunks/render-shared-Ci28BpkI.js.map +1 -0
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +11 -0
- package/dist/constants.js.map +1 -0
- package/dist/core.js +3 -3
- package/dist/index.js +308 -955
- package/dist/index.js.map +1 -1
- package/dist/library/constants/src/components.d.ts +59 -0
- package/dist/library/constants/src/index.d.ts +2 -0
- package/dist/library/constants/src/webhook-events.d.ts +6 -0
- package/dist/library/schemas/src/bonsai.schema.d.ts +24 -0
- package/dist/library/schemas/src/builder.meta.d.ts +26 -0
- package/dist/presets/calendar.js +83 -74
- package/dist/presets/calendar.js.map +1 -1
- package/dist/presets/signature.js +9 -8
- package/dist/presets/signature.js.map +1 -1
- package/dist/schemas.d.ts +2 -0
- package/dist/schemas.js +13 -0
- package/dist/schemas.js.map +1 -0
- package/dist/styles/css/base.css +144 -0
- package/dist/styles/css/fonts.css +25 -0
- package/dist/styles/css/maplibre.css +29 -0
- package/dist/styles/css/overrides.css +7 -0
- package/dist/styles/css/tailwind.css +1 -0
- package/dist/styles/css/theme.css +197 -0
- package/dist/styles/css/tw-animate.css +1 -0
- package/dist/styles/css/utilities.css +44 -0
- package/dist/styles/presets.json +20 -0
- package/dist/styles/vendor/maplibre-gl.css +701 -0
- package/dist/styles/vendor/tw-animate.css +692 -0
- package/package.json +19 -3
- package/dist/chunks/button-CSLrIvsS.js.map +0 -1
- package/dist/chunks/render-shared-CIUUkLDn.js.map +0 -1
|
@@ -1,431 +1,101 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { createContext as
|
|
4
|
-
import {
|
|
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 {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
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
|
|
18
|
-
import { Switch as
|
|
19
|
-
import
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
|
359
|
-
const
|
|
360
|
-
const
|
|
361
|
-
return
|
|
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:
|
|
33
|
+
return { key: a, segments: t, numericNext: e };
|
|
364
34
|
}
|
|
365
|
-
function
|
|
366
|
-
const
|
|
367
|
-
let
|
|
368
|
-
if (
|
|
369
|
-
|
|
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,
|
|
372
|
-
const
|
|
373
|
-
|
|
374
|
-
}
|
|
375
|
-
const
|
|
376
|
-
as:
|
|
377
|
-
indexAlias:
|
|
378
|
-
keyExpr:
|
|
379
|
-
rawItemsPath:
|
|
380
|
-
} : null,
|
|
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:
|
|
53
|
+
isText: t,
|
|
384
54
|
type: p,
|
|
385
|
-
isEach:
|
|
386
|
-
isIf:
|
|
387
|
-
isImage:
|
|
388
|
-
dynamicKeys:
|
|
55
|
+
isEach: f,
|
|
56
|
+
isIf: w,
|
|
57
|
+
isImage: c === d.IMAGE,
|
|
58
|
+
dynamicKeys: x,
|
|
389
59
|
dynamicArgs: o,
|
|
390
|
-
argPaths:
|
|
60
|
+
argPaths: n,
|
|
391
61
|
expressions: r,
|
|
392
|
-
text:
|
|
62
|
+
text: u,
|
|
393
63
|
// Matches `isStaticLeaf`: control nodes always re-render, otherwise "no bindings of its own".
|
|
394
|
-
isStatic: !
|
|
395
|
-
each:
|
|
396
|
-
children:
|
|
64
|
+
isStatic: !f && !w && x.length === 0,
|
|
65
|
+
each: T,
|
|
66
|
+
children: t ? [] : (e?.children ?? []).map(I)
|
|
397
67
|
};
|
|
398
68
|
}
|
|
399
|
-
const
|
|
400
|
-
function
|
|
69
|
+
const Y = /* @__PURE__ */ new WeakMap(), J = new Ra(50);
|
|
70
|
+
function ve(a) {
|
|
401
71
|
if (typeof a == "string") {
|
|
402
|
-
const r =
|
|
72
|
+
const r = J.get(a);
|
|
403
73
|
if (r) return r;
|
|
404
74
|
const o = {
|
|
405
|
-
root:
|
|
75
|
+
root: I(a),
|
|
406
76
|
source: a
|
|
407
77
|
};
|
|
408
|
-
return
|
|
78
|
+
return J.set(a, o), o;
|
|
409
79
|
}
|
|
410
80
|
if (a == null || typeof a != "object")
|
|
411
|
-
return { root:
|
|
412
|
-
const
|
|
413
|
-
if (
|
|
414
|
-
const
|
|
415
|
-
root:
|
|
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
|
|
88
|
+
return Y.set(a, e), e;
|
|
419
89
|
}
|
|
420
|
-
function
|
|
90
|
+
function xe(a) {
|
|
421
91
|
return a;
|
|
422
92
|
}
|
|
423
|
-
function
|
|
93
|
+
function we(a) {
|
|
424
94
|
return a;
|
|
425
95
|
}
|
|
426
|
-
const
|
|
427
|
-
|
|
428
|
-
const
|
|
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
|
-
}),
|
|
443
|
-
({ className: a, variant:
|
|
444
|
-
|
|
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(
|
|
117
|
+
className: i(La({ variant: t }), a),
|
|
448
118
|
...r
|
|
449
119
|
}
|
|
450
120
|
)
|
|
451
121
|
);
|
|
452
|
-
|
|
453
|
-
const
|
|
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
|
-
}),
|
|
472
|
-
({ className: a, variant:
|
|
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:
|
|
476
|
-
className: i(
|
|
145
|
+
ref: n,
|
|
146
|
+
className: i($a({ variant: t, size: e }), a),
|
|
477
147
|
...o
|
|
478
148
|
}
|
|
479
149
|
)
|
|
480
150
|
);
|
|
481
|
-
|
|
482
|
-
const
|
|
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
|
|
176
|
+
function Da({
|
|
507
177
|
className: a,
|
|
508
|
-
variant:
|
|
509
|
-
raised:
|
|
178
|
+
variant: t = "default",
|
|
179
|
+
raised: e,
|
|
510
180
|
extrude: r,
|
|
511
181
|
...o
|
|
512
182
|
}) {
|
|
513
|
-
return /* @__PURE__ */
|
|
514
|
-
|
|
183
|
+
return /* @__PURE__ */ s(
|
|
184
|
+
P.Root,
|
|
515
185
|
{
|
|
516
186
|
"data-slot": "accordion",
|
|
517
|
-
"data-variant":
|
|
518
|
-
"data-raised":
|
|
187
|
+
"data-variant": t,
|
|
188
|
+
"data-raised": e ?? void 0,
|
|
519
189
|
"data-extrude": r ?? void 0,
|
|
520
190
|
className: i(
|
|
521
|
-
|
|
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
|
|
530
|
-
return /* @__PURE__ */
|
|
531
|
-
|
|
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
|
-
...
|
|
244
|
+
...t
|
|
575
245
|
}
|
|
576
246
|
);
|
|
577
247
|
}
|
|
578
|
-
function
|
|
248
|
+
function Ua({
|
|
579
249
|
className: a,
|
|
580
|
-
children:
|
|
581
|
-
disabled:
|
|
582
|
-
icon: r =
|
|
250
|
+
children: t,
|
|
251
|
+
disabled: e,
|
|
252
|
+
icon: r = Ca,
|
|
583
253
|
onClick: o,
|
|
584
|
-
...
|
|
254
|
+
...n
|
|
585
255
|
}) {
|
|
586
|
-
const { trigger: l } =
|
|
587
|
-
return /* @__PURE__ */
|
|
588
|
-
|
|
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: (
|
|
603
|
-
l(
|
|
272
|
+
onClick: (u) => {
|
|
273
|
+
l(za), o?.(u);
|
|
604
274
|
},
|
|
605
|
-
...
|
|
275
|
+
...n,
|
|
606
276
|
children: [
|
|
607
|
-
|
|
608
|
-
/* @__PURE__ */
|
|
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
|
|
292
|
+
function Ha({
|
|
623
293
|
className: a,
|
|
624
|
-
children:
|
|
625
|
-
...
|
|
294
|
+
children: t,
|
|
295
|
+
...e
|
|
626
296
|
}) {
|
|
627
|
-
return /* @__PURE__ */
|
|
628
|
-
|
|
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
|
-
...
|
|
634
|
-
children: /* @__PURE__ */
|
|
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:
|
|
311
|
+
children: t
|
|
642
312
|
}
|
|
643
313
|
)
|
|
644
314
|
}
|
|
645
315
|
);
|
|
646
316
|
}
|
|
647
|
-
const
|
|
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
|
|
345
|
+
function Ma({
|
|
676
346
|
className: a,
|
|
677
|
-
variant:
|
|
678
|
-
size:
|
|
347
|
+
variant: t = "default",
|
|
348
|
+
size: e = "default",
|
|
679
349
|
raised: r,
|
|
680
350
|
...o
|
|
681
351
|
}) {
|
|
682
|
-
return /* @__PURE__ */
|
|
352
|
+
return /* @__PURE__ */ s(
|
|
683
353
|
"div",
|
|
684
354
|
{
|
|
685
355
|
"data-slot": "alert",
|
|
686
356
|
role: "alert",
|
|
687
357
|
className: i(
|
|
688
|
-
|
|
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
|
|
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
|
|
394
|
+
function Ka({
|
|
725
395
|
className: a,
|
|
726
|
-
size:
|
|
727
|
-
rounded:
|
|
396
|
+
size: t = "md",
|
|
397
|
+
rounded: e = "full",
|
|
728
398
|
raised: r,
|
|
729
399
|
src: o,
|
|
730
|
-
alt:
|
|
400
|
+
alt: n,
|
|
731
401
|
fallback: l,
|
|
732
|
-
badge:
|
|
733
|
-
children:
|
|
402
|
+
badge: u,
|
|
403
|
+
children: c,
|
|
734
404
|
...p
|
|
735
405
|
}) {
|
|
736
|
-
return /* @__PURE__ */
|
|
737
|
-
|
|
406
|
+
return /* @__PURE__ */ s(
|
|
407
|
+
S.Root,
|
|
738
408
|
{
|
|
739
409
|
"data-slot": "avatar",
|
|
740
|
-
"data-size":
|
|
410
|
+
"data-size": t,
|
|
741
411
|
"data-raised": r,
|
|
742
|
-
"data-rounded":
|
|
412
|
+
"data-rounded": e,
|
|
743
413
|
className: i(
|
|
744
|
-
|
|
414
|
+
Wa({ size: t, rounded: e, raised: r }),
|
|
745
415
|
"group/avatar",
|
|
746
416
|
a
|
|
747
417
|
),
|
|
748
418
|
...p,
|
|
749
|
-
children:
|
|
750
|
-
o && /* @__PURE__ */
|
|
751
|
-
|
|
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:
|
|
432
|
+
alt: n
|
|
763
433
|
}
|
|
764
434
|
),
|
|
765
|
-
l != null && /* @__PURE__ */
|
|
766
|
-
|
|
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
|
-
|
|
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:
|
|
482
|
+
children: u
|
|
813
483
|
}
|
|
814
484
|
)
|
|
815
485
|
] })
|
|
816
486
|
}
|
|
817
487
|
);
|
|
818
488
|
}
|
|
819
|
-
const
|
|
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
|
|
524
|
+
function qa({
|
|
855
525
|
className: a,
|
|
856
|
-
variant:
|
|
857
|
-
size:
|
|
526
|
+
variant: t = "default",
|
|
527
|
+
size: e = "md",
|
|
858
528
|
raised: r,
|
|
859
529
|
extrude: o,
|
|
860
|
-
render:
|
|
530
|
+
render: n,
|
|
861
531
|
...l
|
|
862
532
|
}) {
|
|
863
|
-
return
|
|
533
|
+
return Aa({
|
|
864
534
|
defaultTagName: "span",
|
|
865
|
-
props:
|
|
535
|
+
props: Ta(
|
|
866
536
|
{
|
|
867
537
|
className: i(
|
|
868
|
-
|
|
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:
|
|
546
|
+
render: n,
|
|
877
547
|
state: {
|
|
878
548
|
slot: "badge",
|
|
879
|
-
variant:
|
|
549
|
+
variant: t
|
|
880
550
|
}
|
|
881
551
|
});
|
|
882
552
|
}
|
|
883
|
-
const
|
|
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
|
|
576
|
+
function Ja({
|
|
907
577
|
className: a,
|
|
908
|
-
size:
|
|
909
|
-
raised:
|
|
578
|
+
size: t = "md",
|
|
579
|
+
raised: e = "md",
|
|
910
580
|
...r
|
|
911
581
|
}) {
|
|
912
|
-
return /* @__PURE__ */
|
|
582
|
+
return /* @__PURE__ */ s(
|
|
913
583
|
"div",
|
|
914
584
|
{
|
|
915
585
|
"data-slot": "card",
|
|
916
|
-
"data-size":
|
|
917
|
-
className: i(
|
|
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
|
|
923
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
606
|
+
...t
|
|
937
607
|
}
|
|
938
608
|
);
|
|
939
609
|
}
|
|
940
|
-
function
|
|
941
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
627
|
+
...t
|
|
958
628
|
}
|
|
959
629
|
);
|
|
960
630
|
}
|
|
961
|
-
function
|
|
962
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
644
|
+
...t
|
|
975
645
|
}
|
|
976
646
|
);
|
|
977
647
|
}
|
|
978
|
-
function
|
|
979
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
657
|
+
...t
|
|
988
658
|
}
|
|
989
659
|
);
|
|
990
660
|
}
|
|
991
|
-
function
|
|
992
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
676
|
+
...t
|
|
1007
677
|
}
|
|
1008
678
|
);
|
|
1009
679
|
}
|
|
1010
|
-
function
|
|
1011
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
692
|
+
...t
|
|
1023
693
|
}
|
|
1024
694
|
);
|
|
1025
695
|
}
|
|
1026
|
-
function
|
|
1027
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
709
|
+
...t
|
|
1040
710
|
}
|
|
1041
711
|
);
|
|
1042
712
|
}
|
|
1043
|
-
const
|
|
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
|
|
730
|
+
function dt({
|
|
1061
731
|
className: a,
|
|
1062
|
-
size:
|
|
1063
|
-
onCheckedChange:
|
|
732
|
+
size: t,
|
|
733
|
+
onCheckedChange: e,
|
|
1064
734
|
...r
|
|
1065
735
|
}) {
|
|
1066
|
-
const { trigger: o } =
|
|
1067
|
-
return /* @__PURE__ */
|
|
1068
|
-
|
|
736
|
+
const { trigger: o } = L();
|
|
737
|
+
return /* @__PURE__ */ s(
|
|
738
|
+
K.Root,
|
|
1069
739
|
{
|
|
1070
740
|
"data-slot": "checkbox",
|
|
1071
|
-
"data-size":
|
|
741
|
+
"data-size": t,
|
|
1072
742
|
className: i(
|
|
1073
|
-
|
|
743
|
+
st({ size: t }),
|
|
1074
744
|
"peer group/checkbox",
|
|
1075
745
|
a
|
|
1076
746
|
),
|
|
1077
747
|
"aria-label": r["aria-label"] ?? "checkbox",
|
|
1078
|
-
onCheckedChange: (
|
|
1079
|
-
o(
|
|
748
|
+
onCheckedChange: (n, l) => {
|
|
749
|
+
o(ka), e?.(n, l);
|
|
1080
750
|
},
|
|
1081
751
|
...r,
|
|
1082
|
-
children: /* @__PURE__ */
|
|
1083
|
-
|
|
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__ */
|
|
1088
|
-
|
|
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
|
|
1107
|
-
return /* @__PURE__ */
|
|
1108
|
-
|
|
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
|
-
...
|
|
782
|
+
...t
|
|
1113
783
|
}
|
|
1114
784
|
);
|
|
1115
785
|
}
|
|
1116
|
-
function
|
|
786
|
+
function it({
|
|
1117
787
|
className: a,
|
|
1118
|
-
...
|
|
788
|
+
...t
|
|
1119
789
|
}) {
|
|
1120
|
-
return /* @__PURE__ */
|
|
1121
|
-
|
|
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
|
-
...
|
|
798
|
+
...t
|
|
1129
799
|
}
|
|
1130
800
|
);
|
|
1131
801
|
}
|
|
1132
|
-
function
|
|
802
|
+
function lt({
|
|
1133
803
|
className: a,
|
|
1134
|
-
children:
|
|
1135
|
-
...
|
|
804
|
+
children: t,
|
|
805
|
+
...e
|
|
1136
806
|
}) {
|
|
1137
|
-
return /* @__PURE__ */
|
|
1138
|
-
|
|
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
|
-
...
|
|
1144
|
-
children: /* @__PURE__ */
|
|
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:
|
|
823
|
+
children: t
|
|
1154
824
|
}
|
|
1155
825
|
)
|
|
1156
826
|
}
|
|
1157
827
|
);
|
|
1158
828
|
}
|
|
1159
|
-
function
|
|
1160
|
-
return /* @__PURE__ */
|
|
1161
|
-
|
|
829
|
+
function ca({ className: a, type: t, ...e }) {
|
|
830
|
+
return /* @__PURE__ */ s(
|
|
831
|
+
Oa,
|
|
1162
832
|
{
|
|
1163
|
-
type:
|
|
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
|
-
...
|
|
839
|
+
...e
|
|
1170
840
|
}
|
|
1171
841
|
);
|
|
1172
842
|
}
|
|
1173
|
-
function
|
|
843
|
+
function ut({
|
|
1174
844
|
className: a,
|
|
1175
|
-
containerClassName:
|
|
1176
|
-
...
|
|
845
|
+
containerClassName: t,
|
|
846
|
+
...e
|
|
1177
847
|
}) {
|
|
1178
|
-
return /* @__PURE__ */
|
|
1179
|
-
|
|
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
|
-
|
|
854
|
+
t
|
|
1185
855
|
),
|
|
1186
856
|
spellCheck: !1,
|
|
1187
857
|
className: i("disabled:cursor-not-allowed", a),
|
|
1188
|
-
...
|
|
858
|
+
...e
|
|
1189
859
|
}
|
|
1190
860
|
);
|
|
1191
861
|
}
|
|
1192
|
-
function
|
|
862
|
+
function pa({
|
|
1193
863
|
className: a,
|
|
1194
|
-
onInput:
|
|
1195
|
-
autosize:
|
|
864
|
+
onInput: t,
|
|
865
|
+
autosize: e = !1,
|
|
1196
866
|
...r
|
|
1197
867
|
}) {
|
|
1198
|
-
return /* @__PURE__ */
|
|
868
|
+
return /* @__PURE__ */ s(
|
|
1199
869
|
"textarea",
|
|
1200
870
|
{
|
|
1201
871
|
"data-slot": "textarea",
|
|
1202
|
-
onInput:
|
|
1203
|
-
if (
|
|
1204
|
-
const l =
|
|
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
|
|
1222
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
904
|
+
...t
|
|
1235
905
|
}
|
|
1236
906
|
);
|
|
1237
907
|
}
|
|
1238
|
-
const
|
|
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
|
|
924
|
+
function gt({
|
|
1255
925
|
className: a,
|
|
1256
|
-
align:
|
|
1257
|
-
...
|
|
926
|
+
align: t = "inline-start",
|
|
927
|
+
...e
|
|
1258
928
|
}) {
|
|
1259
|
-
return /* @__PURE__ */
|
|
929
|
+
return /* @__PURE__ */ s(
|
|
1260
930
|
"div",
|
|
1261
931
|
{
|
|
1262
932
|
role: "group",
|
|
1263
933
|
"data-slot": "input-group-addon",
|
|
1264
|
-
"data-align":
|
|
1265
|
-
className: i(
|
|
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
|
-
...
|
|
939
|
+
...e
|
|
1270
940
|
}
|
|
1271
941
|
);
|
|
1272
942
|
}
|
|
1273
|
-
const
|
|
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
|
|
956
|
+
function ht({
|
|
1287
957
|
className: a,
|
|
1288
|
-
type:
|
|
1289
|
-
variant:
|
|
958
|
+
type: t = "button",
|
|
959
|
+
variant: e = "outline",
|
|
1290
960
|
extrude: r = "xs",
|
|
1291
961
|
size: o,
|
|
1292
|
-
...
|
|
962
|
+
...n
|
|
1293
963
|
}) {
|
|
1294
|
-
return /* @__PURE__ */
|
|
1295
|
-
|
|
964
|
+
return /* @__PURE__ */ s(
|
|
965
|
+
na,
|
|
1296
966
|
{
|
|
1297
|
-
type:
|
|
967
|
+
type: t,
|
|
1298
968
|
"data-size": o,
|
|
1299
|
-
variant:
|
|
969
|
+
variant: e,
|
|
1300
970
|
extrude: r ?? null,
|
|
1301
|
-
"aria-label":
|
|
1302
|
-
className: i(
|
|
1303
|
-
...
|
|
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
|
|
1308
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
985
|
+
...t
|
|
1316
986
|
}
|
|
1317
987
|
);
|
|
1318
988
|
}
|
|
1319
|
-
function
|
|
989
|
+
function bt({
|
|
1320
990
|
className: a,
|
|
1321
|
-
...
|
|
991
|
+
...t
|
|
1322
992
|
}) {
|
|
1323
|
-
return /* @__PURE__ */
|
|
1324
|
-
|
|
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
|
-
...
|
|
1013
|
+
...t
|
|
1344
1014
|
}
|
|
1345
1015
|
);
|
|
1346
1016
|
}
|
|
1347
|
-
function
|
|
1017
|
+
function vt({
|
|
1348
1018
|
className: a,
|
|
1349
|
-
...
|
|
1019
|
+
...t
|
|
1350
1020
|
}) {
|
|
1351
|
-
return /* @__PURE__ */
|
|
1352
|
-
|
|
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
|
-
...
|
|
1039
|
+
...t
|
|
1370
1040
|
}
|
|
1371
1041
|
);
|
|
1372
1042
|
}
|
|
1373
|
-
const
|
|
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
|
|
1062
|
+
function wt({
|
|
1393
1063
|
size: a = "sm",
|
|
1394
|
-
variant:
|
|
1395
|
-
className:
|
|
1064
|
+
variant: t,
|
|
1065
|
+
className: e,
|
|
1396
1066
|
htmlFor: r,
|
|
1397
1067
|
...o
|
|
1398
1068
|
}) {
|
|
1399
|
-
return /* @__PURE__ */
|
|
1069
|
+
return /* @__PURE__ */ s(
|
|
1400
1070
|
"label",
|
|
1401
1071
|
{
|
|
1402
1072
|
"data-slot": "label",
|
|
1403
1073
|
htmlFor: r,
|
|
1404
|
-
className: i(
|
|
1074
|
+
className: i(xt({ size: a, variant: t }), e),
|
|
1405
1075
|
...o
|
|
1406
1076
|
}
|
|
1407
1077
|
);
|
|
1408
1078
|
}
|
|
1409
|
-
const
|
|
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
|
|
1106
|
+
function zt(a) {
|
|
1437
1107
|
const {
|
|
1438
|
-
size:
|
|
1439
|
-
raised:
|
|
1108
|
+
size: t = "md",
|
|
1109
|
+
raised: e = "default",
|
|
1440
1110
|
stacked: r = "default",
|
|
1441
1111
|
className: o,
|
|
1442
|
-
children:
|
|
1112
|
+
children: n,
|
|
1443
1113
|
...l
|
|
1444
1114
|
} = a;
|
|
1445
1115
|
if (a.mode === "multiple") {
|
|
1446
|
-
const
|
|
1447
|
-
return /* @__PURE__ */
|
|
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":
|
|
1452
|
-
"data-raised":
|
|
1121
|
+
"data-size": t,
|
|
1122
|
+
"data-raised": e,
|
|
1453
1123
|
"data-stacked": r,
|
|
1454
|
-
className: i(
|
|
1124
|
+
className: i(Q({ size: t, raised: e, stacked: r }), o),
|
|
1455
1125
|
...l,
|
|
1456
1126
|
children: [
|
|
1457
|
-
|
|
1458
|
-
/* @__PURE__ */
|
|
1459
|
-
|
|
1127
|
+
n,
|
|
1128
|
+
/* @__PURE__ */ s(
|
|
1129
|
+
Z,
|
|
1460
1130
|
{
|
|
1461
1131
|
style: {
|
|
1462
|
-
marginTop: `calc(var(--stack-translate, 0px) * ${
|
|
1463
|
-
transform: `translateX(calc(var(--stack-translate, 0px) * ${
|
|
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:
|
|
1467
|
-
|
|
1136
|
+
children: u.map((c, p) => /* @__PURE__ */ s(
|
|
1137
|
+
yt,
|
|
1468
1138
|
{
|
|
1469
1139
|
index: p,
|
|
1470
|
-
"data-value":
|
|
1471
|
-
...
|
|
1472
|
-
children: /* @__PURE__ */
|
|
1140
|
+
"data-value": c.value,
|
|
1141
|
+
...c,
|
|
1142
|
+
children: /* @__PURE__ */ s(
|
|
1473
1143
|
k.Value,
|
|
1474
1144
|
{
|
|
1475
1145
|
className: i(
|
|
1476
|
-
|
|
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__ */
|
|
1490
|
-
|
|
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:
|
|
1165
|
+
children: c.name
|
|
1496
1166
|
}
|
|
1497
1167
|
),
|
|
1498
|
-
|
|
1168
|
+
c.value.toLocaleString("default", {
|
|
1499
1169
|
minimumFractionDigits: 0,
|
|
1500
1170
|
maximumFractionDigits: 2
|
|
1501
1171
|
}),
|
|
1502
|
-
|
|
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__ */
|
|
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":
|
|
1522
|
-
"data-raised":
|
|
1191
|
+
"data-size": t,
|
|
1192
|
+
"data-raised": e,
|
|
1523
1193
|
"data-stacked": r,
|
|
1524
|
-
className: i(
|
|
1194
|
+
className: i(Q({ size: t, raised: e, stacked: r }), o),
|
|
1525
1195
|
children: [
|
|
1526
|
-
|
|
1527
|
-
/* @__PURE__ */
|
|
1196
|
+
n,
|
|
1197
|
+
/* @__PURE__ */ s(Z, { children: /* @__PURE__ */ s(kt, { "data-value": a.value }) })
|
|
1528
1198
|
]
|
|
1529
1199
|
}
|
|
1530
1200
|
);
|
|
1531
1201
|
}
|
|
1532
|
-
function
|
|
1533
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
1223
|
+
...t
|
|
1554
1224
|
}
|
|
1555
1225
|
);
|
|
1556
1226
|
}
|
|
1557
|
-
function
|
|
1227
|
+
function kt({
|
|
1558
1228
|
className: a,
|
|
1559
|
-
...
|
|
1229
|
+
...t
|
|
1560
1230
|
}) {
|
|
1561
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
1246
|
+
...t
|
|
1577
1247
|
}
|
|
1578
1248
|
);
|
|
1579
1249
|
}
|
|
1580
|
-
function
|
|
1250
|
+
function yt({
|
|
1581
1251
|
className: a,
|
|
1582
|
-
children:
|
|
1583
|
-
value:
|
|
1252
|
+
children: t,
|
|
1253
|
+
value: e,
|
|
1584
1254
|
index: r,
|
|
1585
1255
|
...o
|
|
1586
1256
|
}) {
|
|
1587
|
-
return /* @__PURE__ */
|
|
1257
|
+
return /* @__PURE__ */ s(
|
|
1588
1258
|
k.Indicator,
|
|
1589
1259
|
{
|
|
1590
1260
|
"data-slot": "progress-indicator-group",
|
|
1591
|
-
"data-value":
|
|
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: `${
|
|
1612
|
-
maxWidth: `${
|
|
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:
|
|
1285
|
+
children: t
|
|
1616
1286
|
}
|
|
1617
1287
|
);
|
|
1618
1288
|
}
|
|
1619
|
-
const
|
|
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
|
|
1306
|
+
function Ct({
|
|
1637
1307
|
className: a,
|
|
1638
|
-
orientation:
|
|
1639
|
-
stroke:
|
|
1308
|
+
orientation: t,
|
|
1309
|
+
stroke: e,
|
|
1640
1310
|
...r
|
|
1641
1311
|
}) {
|
|
1642
|
-
return /* @__PURE__ */
|
|
1643
|
-
|
|
1312
|
+
return /* @__PURE__ */ s(
|
|
1313
|
+
Ea,
|
|
1644
1314
|
{
|
|
1645
1315
|
"data-slot": "separator",
|
|
1646
|
-
orientation:
|
|
1647
|
-
className: i(
|
|
1316
|
+
orientation: t,
|
|
1317
|
+
className: i(Nt({ orientation: t, stroke: e }), a),
|
|
1648
1318
|
...r
|
|
1649
1319
|
}
|
|
1650
1320
|
);
|
|
1651
1321
|
}
|
|
1652
|
-
const
|
|
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
|
|
1336
|
+
function Tt({
|
|
1667
1337
|
variant: a = "default",
|
|
1668
|
-
animate:
|
|
1669
|
-
className:
|
|
1338
|
+
animate: t = !0,
|
|
1339
|
+
className: e,
|
|
1670
1340
|
...r
|
|
1671
1341
|
}) {
|
|
1672
|
-
return /* @__PURE__ */
|
|
1342
|
+
return /* @__PURE__ */ s(
|
|
1673
1343
|
"div",
|
|
1674
1344
|
{
|
|
1675
1345
|
"data-slot": "skeleton",
|
|
1676
|
-
className: i(
|
|
1346
|
+
className: i(Pt({ variant: a, animate: t }), e),
|
|
1677
1347
|
...r
|
|
1678
1348
|
}
|
|
1679
1349
|
);
|
|
1680
1350
|
}
|
|
1681
|
-
const
|
|
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
|
|
1374
|
+
function Ot({
|
|
1705
1375
|
className: a,
|
|
1706
|
-
size:
|
|
1707
|
-
rounded:
|
|
1376
|
+
size: t = "md",
|
|
1377
|
+
rounded: e = "full",
|
|
1708
1378
|
onCheckedChange: r,
|
|
1709
1379
|
...o
|
|
1710
1380
|
}) {
|
|
1711
|
-
const { trigger:
|
|
1712
|
-
return /* @__PURE__ */
|
|
1713
|
-
|
|
1381
|
+
const { trigger: n } = L();
|
|
1382
|
+
return /* @__PURE__ */ s(
|
|
1383
|
+
X.Root,
|
|
1714
1384
|
{
|
|
1715
1385
|
"data-slot": "switch",
|
|
1716
|
-
"data-size":
|
|
1717
|
-
"data-rounded":
|
|
1386
|
+
"data-size": t,
|
|
1387
|
+
"data-rounded": e,
|
|
1718
1388
|
className: i(
|
|
1719
|
-
|
|
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,
|
|
1725
|
-
|
|
1394
|
+
onCheckedChange: (l, u) => {
|
|
1395
|
+
n(ya), r?.(l, u);
|
|
1726
1396
|
},
|
|
1727
1397
|
...o,
|
|
1728
|
-
children: /* @__PURE__ */
|
|
1729
|
-
|
|
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
|
|
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
|
|
1433
|
+
function Et({
|
|
1764
1434
|
className: a,
|
|
1765
|
-
variant:
|
|
1766
|
-
...
|
|
1435
|
+
variant: t = "default",
|
|
1436
|
+
...e
|
|
1767
1437
|
}) {
|
|
1768
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
1443
|
+
children: /* @__PURE__ */ s(
|
|
1774
1444
|
"table",
|
|
1775
1445
|
{
|
|
1776
1446
|
"data-slot": "table",
|
|
1777
|
-
"data-variant":
|
|
1778
|
-
className: i(
|
|
1779
|
-
...
|
|
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
|
|
1786
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
1461
|
+
...t
|
|
1792
1462
|
}
|
|
1793
1463
|
);
|
|
1794
1464
|
}
|
|
1795
|
-
function
|
|
1796
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
1471
|
+
...t
|
|
1802
1472
|
}
|
|
1803
1473
|
);
|
|
1804
1474
|
}
|
|
1805
|
-
function
|
|
1806
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
1487
|
+
...t
|
|
1818
1488
|
}
|
|
1819
1489
|
);
|
|
1820
1490
|
}
|
|
1821
|
-
function
|
|
1822
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
1513
|
+
...t
|
|
1844
1514
|
}
|
|
1845
1515
|
);
|
|
1846
1516
|
}
|
|
1847
|
-
function
|
|
1848
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
1528
|
+
...t
|
|
1859
1529
|
}
|
|
1860
1530
|
);
|
|
1861
1531
|
}
|
|
1862
|
-
function
|
|
1863
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
1543
|
+
...t
|
|
1874
1544
|
}
|
|
1875
1545
|
);
|
|
1876
1546
|
}
|
|
1877
|
-
function
|
|
1547
|
+
function $t({
|
|
1878
1548
|
className: a,
|
|
1879
|
-
...
|
|
1549
|
+
...t
|
|
1880
1550
|
}) {
|
|
1881
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
1559
|
+
...t
|
|
1890
1560
|
}
|
|
1891
1561
|
);
|
|
1892
1562
|
}
|
|
1893
|
-
const
|
|
1894
|
-
function
|
|
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
|
|
1571
|
+
function Gt(a) {
|
|
1902
1572
|
if (a)
|
|
1903
1573
|
return typeof a == "object" && "default" in a ? Object.fromEntries(
|
|
1904
|
-
Object.entries(a).map(([
|
|
1905
|
-
|
|
1906
|
-
|
|
1574
|
+
Object.entries(a).map(([t, e]) => [
|
|
1575
|
+
t,
|
|
1576
|
+
aa(e)
|
|
1907
1577
|
])
|
|
1908
|
-
) :
|
|
1578
|
+
) : aa(a);
|
|
1909
1579
|
}
|
|
1910
|
-
function
|
|
1580
|
+
function Ut(a, { components: t = {}, controlledInputs: e = {} }) {
|
|
1911
1581
|
const r = { ...a.components };
|
|
1912
|
-
for (const o of /* @__PURE__ */ new Set([...Object.keys(
|
|
1913
|
-
const
|
|
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
|
|
1585
|
+
const u = Object.hasOwn(e, o) ? Gt(e[o]) : n?.controlled;
|
|
1916
1586
|
r[o] = {
|
|
1917
|
-
...
|
|
1587
|
+
...n,
|
|
1918
1588
|
component: l,
|
|
1919
|
-
controlled:
|
|
1920
|
-
capabilities:
|
|
1589
|
+
controlled: u,
|
|
1590
|
+
capabilities: n?.capabilities ?? (u ? Bt : Dt)
|
|
1921
1591
|
};
|
|
1922
1592
|
}
|
|
1923
1593
|
return { ...a, components: r };
|
|
1924
1594
|
}
|
|
1925
|
-
const
|
|
1926
|
-
[d.A]:
|
|
1927
|
-
[d.H]:
|
|
1928
|
-
[d.P]:
|
|
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]:
|
|
1936
|
-
[d.ACCORDION_ITEM]:
|
|
1937
|
-
[d.ACCORDION_TRIGGER]:
|
|
1938
|
-
[d.ACCORDION_CONTENT]:
|
|
1939
|
-
[d.ALERT]:
|
|
1940
|
-
[d.AVATAR]:
|
|
1941
|
-
[d.BADGE]:
|
|
1942
|
-
[d.BUTTON]:
|
|
1943
|
-
[d.CARD]:
|
|
1944
|
-
[d.CARD_HEADER]:
|
|
1945
|
-
[d.CARD_TITLE]:
|
|
1946
|
-
[d.CARD_DESCRIPTION]:
|
|
1947
|
-
[d.CARD_CONTENT]:
|
|
1948
|
-
[d.CARD_FOOTER]:
|
|
1949
|
-
[d.CARD_ACTION]:
|
|
1950
|
-
[d.CARD_ICON]:
|
|
1951
|
-
[d.CHECKBOX]:
|
|
1952
|
-
[d.COLLAPSIBLE]:
|
|
1953
|
-
[d.COLLAPSIBLE_TRIGGER]:
|
|
1954
|
-
[d.COLLAPSIBLE_CONTENT]:
|
|
1955
|
-
[d.OTP]:
|
|
1956
|
-
[d.INPUT]:
|
|
1957
|
-
[d.INPUT_GROUP]:
|
|
1958
|
-
[d.INPUT_GROUP_TEXT]:
|
|
1959
|
-
[d.INPUT_GROUP_ADDON]:
|
|
1960
|
-
[d.INPUT_GROUP_INPUT]:
|
|
1961
|
-
[d.INPUT_GROUP_BUTTON]:
|
|
1962
|
-
[d.INPUT_GROUP_TEXTAREA]:
|
|
1963
|
-
[d.LABEL]:
|
|
1964
|
-
[d.LOADER]:
|
|
1965
|
-
[d.PROGRESS]:
|
|
1966
|
-
[d.SWITCH]:
|
|
1967
|
-
[d.SEPARATOR]:
|
|
1968
|
-
[d.SKELETON]:
|
|
1969
|
-
[d.TABLE]:
|
|
1970
|
-
[d.TABLE_HEADER]:
|
|
1971
|
-
[d.TABLE_BODY]:
|
|
1972
|
-
[d.TABLE_FOOTER]:
|
|
1973
|
-
[d.TABLE_HEAD]:
|
|
1974
|
-
[d.TABLE_ROW]:
|
|
1975
|
-
[d.TABLE_CELL]:
|
|
1976
|
-
[d.TABLE_CAPTION]:
|
|
1977
|
-
[d.TEXTAREA]:
|
|
1978
|
-
},
|
|
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
|
-
},
|
|
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:
|
|
2047
|
-
),
|
|
2048
|
-
function
|
|
2049
|
-
return ga
|
|
1716
|
+
{ components: Ht, controlledInputs: Ft }
|
|
1717
|
+
), ga = sa(Mt);
|
|
1718
|
+
function Wt() {
|
|
1719
|
+
return da(ga);
|
|
2050
1720
|
}
|
|
2051
|
-
const
|
|
2052
|
-
function
|
|
2053
|
-
return
|
|
1721
|
+
const ma = sa("web");
|
|
1722
|
+
function ze() {
|
|
1723
|
+
return da(ma);
|
|
2054
1724
|
}
|
|
2055
|
-
function
|
|
1725
|
+
function ke({
|
|
2056
1726
|
registry: a,
|
|
2057
|
-
render:
|
|
2058
|
-
children:
|
|
1727
|
+
render: t = "web",
|
|
1728
|
+
children: e
|
|
2059
1729
|
}) {
|
|
2060
|
-
const r =
|
|
2061
|
-
return /* @__PURE__ */
|
|
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
|
|
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,
|
|
2079
|
-
function
|
|
2080
|
-
return
|
|
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[
|
|
2083
|
-
}, a) ??
|
|
1752
|
+
return o[C(n)];
|
|
1753
|
+
}, a) ?? e : a;
|
|
2084
1754
|
}
|
|
2085
|
-
function
|
|
2086
|
-
if (!
|
|
2087
|
-
Object.assign(a,
|
|
1755
|
+
function ye(a, t, e) {
|
|
1756
|
+
if (!t) {
|
|
1757
|
+
Object.assign(a, e);
|
|
2088
1758
|
return;
|
|
2089
1759
|
}
|
|
2090
|
-
const r =
|
|
1760
|
+
const r = B(t);
|
|
2091
1761
|
let o = a;
|
|
2092
|
-
for (let
|
|
2093
|
-
const l =
|
|
2094
|
-
o[l] ??= /^\d+$/.test(
|
|
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[
|
|
1766
|
+
o[C(r[r.length - 1])] = e;
|
|
2097
1767
|
}
|
|
2098
|
-
function
|
|
2099
|
-
const
|
|
2100
|
-
return
|
|
1768
|
+
function ha(a) {
|
|
1769
|
+
const t = a.match(/^[^.[]+/);
|
|
1770
|
+
return t ? t[0] : a;
|
|
2101
1771
|
}
|
|
2102
|
-
function
|
|
2103
|
-
return !!
|
|
1772
|
+
function ea(a, t) {
|
|
1773
|
+
return !!t && Object.hasOwn(t, ha(a));
|
|
2104
1774
|
}
|
|
2105
|
-
function
|
|
2106
|
-
if (!
|
|
2107
|
-
const
|
|
2108
|
-
return r == null ? a : r + a.slice(
|
|
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,
|
|
2111
|
-
function
|
|
2112
|
-
const
|
|
2113
|
-
for (const { key: r, segments: o, numericNext:
|
|
2114
|
-
const l =
|
|
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
|
-
|
|
1786
|
+
e[r] = l;
|
|
2117
1787
|
continue;
|
|
2118
1788
|
}
|
|
2119
|
-
let
|
|
2120
|
-
for (let
|
|
2121
|
-
const p = o[
|
|
2122
|
-
(!(p in
|
|
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
|
-
|
|
1794
|
+
u[o[o.length - 1]] = l;
|
|
2125
1795
|
}
|
|
2126
|
-
return
|
|
1796
|
+
return e;
|
|
2127
1797
|
}
|
|
2128
|
-
const
|
|
2129
|
-
if (!
|
|
2130
|
-
if (Object.hasOwn(a.components,
|
|
2131
|
-
return a.components[
|
|
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 "${
|
|
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
|
-
},
|
|
1807
|
+
}, fa = (a, t, e, r = {}) => {
|
|
2138
1808
|
const o = {
|
|
2139
|
-
key:
|
|
1809
|
+
key: e,
|
|
2140
1810
|
...a.source?.args,
|
|
2141
1811
|
...r
|
|
2142
1812
|
};
|
|
2143
|
-
for (const
|
|
2144
|
-
(a.dynamicArgs.has(
|
|
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
|
|
1817
|
+
function qt(a, t, e, r, o) {
|
|
2148
1818
|
return r[a.changeProp] ? {} : {
|
|
2149
|
-
[a.changeProp]: (
|
|
2150
|
-
[a.valueProp]:
|
|
1819
|
+
[a.changeProp]: (n) => o(t, a.extract(n)),
|
|
1820
|
+
[a.valueProp]: e
|
|
2151
1821
|
};
|
|
2152
1822
|
}
|
|
2153
|
-
const
|
|
1823
|
+
const Yt = () => {
|
|
2154
1824
|
};
|
|
2155
|
-
function
|
|
1825
|
+
function Jt({
|
|
2156
1826
|
node: a,
|
|
2157
|
-
dataSlice:
|
|
2158
|
-
elementKey:
|
|
1827
|
+
dataSlice: t,
|
|
1828
|
+
elementKey: e,
|
|
2159
1829
|
ElementType: r,
|
|
2160
1830
|
ctrlInput: o,
|
|
2161
|
-
keyPath:
|
|
1831
|
+
keyPath: n,
|
|
2162
1832
|
storeValue: l,
|
|
2163
|
-
updateData:
|
|
2164
|
-
children:
|
|
1833
|
+
updateData: u,
|
|
1834
|
+
children: c
|
|
2165
1835
|
}) {
|
|
2166
|
-
const p =
|
|
1836
|
+
const p = qt(
|
|
2167
1837
|
o,
|
|
2168
|
-
|
|
1838
|
+
n,
|
|
2169
1839
|
l,
|
|
2170
1840
|
a.source?.args ?? {},
|
|
2171
|
-
|
|
2172
|
-
),
|
|
2173
|
-
return
|
|
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
|
|
2176
|
-
if (!Object.hasOwn(a.components,
|
|
2177
|
-
const r = a.components[
|
|
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 =
|
|
2181
|
-
return (Object.hasOwn(
|
|
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
|
|
2187
|
-
return a === "pdf" ||
|
|
1856
|
+
function Ce(a, t) {
|
|
1857
|
+
return a === "pdf" || t === "div" ? "div" : "form";
|
|
2188
1858
|
}
|
|
2189
|
-
function
|
|
2190
|
-
if (Array.isArray(a)) return a.map((
|
|
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
|
|
2193
|
-
if (
|
|
2194
|
-
const
|
|
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
|
-
|
|
2197
|
-
return
|
|
1866
|
+
e[r] = oa(o);
|
|
1867
|
+
return e;
|
|
2198
1868
|
}
|
|
2199
1869
|
}
|
|
2200
1870
|
return a;
|
|
2201
1871
|
}
|
|
2202
|
-
function
|
|
2203
|
-
const
|
|
2204
|
-
if (!
|
|
2205
|
-
const p =
|
|
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(
|
|
1877
|
+
return z(c, p);
|
|
2208
1878
|
try {
|
|
2209
|
-
const
|
|
1879
|
+
const f = a.type;
|
|
2210
1880
|
if (a.isIf)
|
|
2211
|
-
return z(
|
|
2212
|
-
(v,
|
|
1881
|
+
return z(c.args.condition, p) ? /* @__PURE__ */ s(E, { children: a.children.map(
|
|
1882
|
+
(v, y) => u.renderChild(
|
|
2213
1883
|
v,
|
|
2214
|
-
|
|
2215
|
-
`${
|
|
1884
|
+
y,
|
|
1885
|
+
`${e}-${t}-if`,
|
|
2216
1886
|
r,
|
|
2217
|
-
O(v,
|
|
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:
|
|
2222
|
-
return /* @__PURE__ */
|
|
2223
|
-
const
|
|
2224
|
-
return /* @__PURE__ */
|
|
2225
|
-
(
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
O(
|
|
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(
|
|
1902
|
+
) }, String(H));
|
|
2233
1903
|
}) });
|
|
2234
1904
|
}
|
|
2235
|
-
const
|
|
1905
|
+
const w = Xt(n, f), T = O(a, t, e), x = Qt(n, f, c);
|
|
2236
1906
|
let h;
|
|
2237
|
-
if (
|
|
2238
|
-
const m = a.argPaths[
|
|
2239
|
-
if (m !== void 0 &&
|
|
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:
|
|
1912
|
+
storeValue: ta(r.valueScope, m),
|
|
2243
1913
|
readOnly: !0
|
|
2244
1914
|
};
|
|
2245
1915
|
else if (m !== void 0) {
|
|
2246
|
-
const v =
|
|
1916
|
+
const v = ra(m, r.scope);
|
|
2247
1917
|
h = {
|
|
2248
1918
|
keyPath: v,
|
|
2249
|
-
storeValue:
|
|
1919
|
+
storeValue: ta(o.data ?? o, v)
|
|
2250
1920
|
};
|
|
2251
|
-
} else a.dynamicArgs.has(
|
|
1921
|
+
} else a.dynamicArgs.has(x.valueProp) && (h = {
|
|
2252
1922
|
keyPath: "",
|
|
2253
|
-
storeValue: z(
|
|
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(
|
|
1928
|
+
const m = z(c.args?.src, p);
|
|
2259
1929
|
if (m === "" || m == null) return null;
|
|
2260
1930
|
}
|
|
2261
|
-
const
|
|
2262
|
-
(m, v) =>
|
|
1931
|
+
const _ = a.children.length > 0 ? a.children.map(
|
|
1932
|
+
(m, v) => u.renderChild(
|
|
2263
1933
|
m,
|
|
2264
1934
|
v,
|
|
2265
|
-
`${
|
|
1935
|
+
`${e}-${t}`,
|
|
2266
1936
|
r,
|
|
2267
|
-
O(a, v, `${
|
|
1937
|
+
O(a, v, `${e}-${t}`)
|
|
2268
1938
|
)
|
|
2269
|
-
) : void 0,
|
|
2270
|
-
if (h &&
|
|
2271
|
-
return /* @__PURE__ */
|
|
2272
|
-
|
|
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:
|
|
2277
|
-
ElementType:
|
|
2278
|
-
ctrlInput:
|
|
1946
|
+
elementKey: T,
|
|
1947
|
+
ElementType: w,
|
|
1948
|
+
ctrlInput: x,
|
|
2279
1949
|
keyPath: h.keyPath,
|
|
2280
1950
|
storeValue: h.storeValue,
|
|
2281
|
-
updateData: h.readOnly ?
|
|
2282
|
-
children:
|
|
1951
|
+
updateData: h.readOnly ? Yt : l,
|
|
1952
|
+
children: b
|
|
2283
1953
|
}
|
|
2284
1954
|
);
|
|
2285
|
-
const
|
|
2286
|
-
return
|
|
2287
|
-
} catch (
|
|
2288
|
-
return console.error(`Error at ${
|
|
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
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
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-
|
|
1989
|
+
//# sourceMappingURL=render-shared-Ci28BpkI.js.map
|