@stackable-labs/embeddables 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/hostComponents.d.ts +4 -2
- package/dist/react.js +878 -885
- package/dist/stackable-widget.external.js +37 -37
- package/dist/stackable-widget.js +45 -45
- package/package.json +1 -1
package/dist/react.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as M, jsx as c, Fragment as Re } from "react/jsx-runtime";
|
|
2
2
|
import * as m from "react";
|
|
3
|
-
import j, { createContext as
|
|
3
|
+
import j, { createContext as Ko, useState as B, useRef as le, useEffect as G, useContext as Zo, useMemo as zt, useCallback as Ae, createElement as _e, forwardRef as Tt } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
const ae = /* @__PURE__ */ new Map(),
|
|
5
|
+
const ae = /* @__PURE__ */ new Map(), Jo = async (e, t) => {
|
|
6
6
|
const o = ae.get(e.id);
|
|
7
7
|
if (o) return o;
|
|
8
8
|
const r = document.createElement("iframe");
|
|
@@ -47,10 +47,10 @@ const ae = /* @__PURE__ */ new Map(), Qo = async (e, t) => {
|
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
49
|
o.iframe.contentWindow.postMessage(t, "*");
|
|
50
|
-
}, fe = (e) => ae.get(e),
|
|
50
|
+
}, fe = (e) => ae.get(e), Qo = (e) => {
|
|
51
51
|
const t = ae.get(e);
|
|
52
52
|
t && (t.iframe.remove(), t.messageHandlers.clear(), ae.delete(e));
|
|
53
|
-
},
|
|
53
|
+
}, er = () => ae, tr = [
|
|
54
54
|
"ui-card",
|
|
55
55
|
"ui-card-content",
|
|
56
56
|
"ui-card-header",
|
|
@@ -74,18 +74,18 @@ const ae = /* @__PURE__ */ new Map(), Qo = async (e, t) => {
|
|
|
74
74
|
"ui-link",
|
|
75
75
|
"ui-menu",
|
|
76
76
|
"ui-menu-item"
|
|
77
|
-
],
|
|
77
|
+
], or = {
|
|
78
78
|
"context.read": "context:read",
|
|
79
79
|
"data.query": "data:query",
|
|
80
80
|
"actions.toast": "actions:toast",
|
|
81
81
|
"actions.invoke": "actions:invoke"
|
|
82
|
-
},
|
|
82
|
+
}, rr = (e) => {
|
|
83
83
|
const t = async (o) => {
|
|
84
84
|
const r = o.data;
|
|
85
85
|
if ((r == null ? void 0 : r.type) !== "capability-request") return;
|
|
86
86
|
const n = r;
|
|
87
87
|
let s = null;
|
|
88
|
-
for (const [l, d] of
|
|
88
|
+
for (const [l, d] of er())
|
|
89
89
|
if (o.source === d.iframe.contentWindow) {
|
|
90
90
|
s = l;
|
|
91
91
|
break;
|
|
@@ -96,7 +96,7 @@ const ae = /* @__PURE__ */ new Map(), Qo = async (e, t) => {
|
|
|
96
96
|
}
|
|
97
97
|
const a = fe(s);
|
|
98
98
|
if (!a) return;
|
|
99
|
-
const i =
|
|
99
|
+
const i = or[n.capability];
|
|
100
100
|
if (i && !a.manifest.permissions.includes(i)) {
|
|
101
101
|
const l = {
|
|
102
102
|
type: "capability-response",
|
|
@@ -145,47 +145,40 @@ const ae = /* @__PURE__ */ new Map(), Qo = async (e, t) => {
|
|
|
145
145
|
return window.addEventListener("message", t), () => {
|
|
146
146
|
window.removeEventListener("message", t);
|
|
147
147
|
};
|
|
148
|
-
}, Mt =
|
|
148
|
+
}, Mt = Ko({
|
|
149
149
|
extensions: [],
|
|
150
|
+
components: {},
|
|
150
151
|
ready: !1
|
|
151
|
-
}),
|
|
152
|
+
}), nr = ({
|
|
152
153
|
extensions: e,
|
|
153
154
|
capabilityHandlers: t,
|
|
154
|
-
|
|
155
|
+
components: o = {},
|
|
156
|
+
children: r
|
|
155
157
|
}) => {
|
|
156
|
-
const [
|
|
158
|
+
const [n, s] = B(!1), a = le(null), i = le(null);
|
|
157
159
|
return G(() => {
|
|
158
|
-
if (!
|
|
159
|
-
let
|
|
160
|
+
if (!a.current) return;
|
|
161
|
+
let l = !1;
|
|
160
162
|
return (async () => {
|
|
161
|
-
const
|
|
162
|
-
if (
|
|
163
|
+
const u = a.current;
|
|
164
|
+
if (u) {
|
|
163
165
|
console.log("[ExtensionProvider] Initializing with", e.length, "extensions");
|
|
164
|
-
for (const
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
for (const f of e)
|
|
167
|
+
f.enabled && !l && (console.log("[ExtensionProvider] Creating sandbox for", f.id, "bundleUrl:", f.bundleUrl), await Jo(f, u), console.log("[ExtensionProvider] Sandbox created for", f.id));
|
|
168
|
+
i.current = rr(t), l || (console.log("[ExtensionProvider] Ready"), s(!0));
|
|
167
169
|
}
|
|
168
170
|
})(), () => {
|
|
169
|
-
var
|
|
170
|
-
|
|
171
|
-
for (const
|
|
172
|
-
|
|
173
|
-
(
|
|
171
|
+
var u;
|
|
172
|
+
l = !0;
|
|
173
|
+
for (const f of e)
|
|
174
|
+
Qo(f.id);
|
|
175
|
+
(u = i.current) == null || u.call(i);
|
|
174
176
|
};
|
|
175
|
-
}, [e, t]), /* @__PURE__ */
|
|
176
|
-
/* @__PURE__ */ c("div", { ref:
|
|
177
|
-
|
|
177
|
+
}, [e, t]), /* @__PURE__ */ M(Mt.Provider, { value: { extensions: e, components: o, ready: n }, children: [
|
|
178
|
+
/* @__PURE__ */ c("div", { ref: a, style: { display: "none" } }),
|
|
179
|
+
r
|
|
178
180
|
] });
|
|
179
|
-
},
|
|
180
|
-
for (const [t, o] of Object.entries(e))
|
|
181
|
-
o && Lt.set(t, o);
|
|
182
|
-
}, lr = (e) => or.includes(e), cr = (e) => {
|
|
183
|
-
if (!lr(e)) {
|
|
184
|
-
console.warn(`[ExtensionHost] Unknown UI tag rejected: <${e}>`);
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
return Lt.get(e);
|
|
188
|
-
}, Se = ({
|
|
181
|
+
}, sr = () => Zo(Mt), ar = (e) => tr.includes(e), Se = ({
|
|
189
182
|
target: e,
|
|
190
183
|
context: t,
|
|
191
184
|
className: o,
|
|
@@ -193,113 +186,115 @@ const ae = /* @__PURE__ */ new Map(), Qo = async (e, t) => {
|
|
|
193
186
|
fallback: n = null,
|
|
194
187
|
render: s
|
|
195
188
|
}) => {
|
|
196
|
-
const { extensions: a,
|
|
189
|
+
const { extensions: a, components: i, ready: l } = sr(), [d, u] = B({}), f = le(""), p = zt(
|
|
197
190
|
() => a.filter((h) => h.enabled && h.manifest.targets.includes(e)),
|
|
198
191
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
199
192
|
[a.map((h) => h.id).join(","), e]
|
|
200
|
-
),
|
|
201
|
-
(h,
|
|
202
|
-
var
|
|
193
|
+
), b = Ae(
|
|
194
|
+
(h, y, R = 0) => {
|
|
195
|
+
var N, _, g;
|
|
203
196
|
if (h.type === "text")
|
|
204
197
|
return h.text || null;
|
|
205
198
|
if (!h.tag) return null;
|
|
206
199
|
if (h.tag === "__fragment")
|
|
207
|
-
return /* @__PURE__ */ c(j.Fragment, { children: (
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
200
|
+
return /* @__PURE__ */ c(j.Fragment, { children: (N = h.children) == null ? void 0 : N.map((k, T) => b(k, y, T)) }, R);
|
|
201
|
+
if (!ar(h.tag))
|
|
202
|
+
return console.warn(`[ExtensionHost] Unknown UI tag rejected: <${h.tag}>`), null;
|
|
203
|
+
const C = i[h.tag];
|
|
204
|
+
if (!C)
|
|
205
|
+
return h.tag.startsWith("ui-") ? (console.warn(`[ExtensionSlot] Unregistered UI tag: <${h.tag}>`), null) : /* @__PURE__ */ c(j.Fragment, { children: (_ = h.children) == null ? void 0 : _.map((k, T) => b(k, y, T)) }, R);
|
|
206
|
+
const A = { ...h.attrs };
|
|
212
207
|
if (h.actionId) {
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
const
|
|
216
|
-
|
|
217
|
-
{ type: "action-invoke", surfaceId: e, actionId:
|
|
208
|
+
const k = h.actionId;
|
|
209
|
+
A.onClick = () => {
|
|
210
|
+
const T = y;
|
|
211
|
+
T == null || T.postMessage(
|
|
212
|
+
{ type: "action-invoke", surfaceId: e, actionId: k },
|
|
218
213
|
"*"
|
|
219
214
|
);
|
|
220
215
|
};
|
|
221
216
|
}
|
|
222
|
-
if (
|
|
223
|
-
const
|
|
224
|
-
delete
|
|
225
|
-
const
|
|
226
|
-
|
|
227
|
-
{ type: "action-invoke", surfaceId: e, actionId:
|
|
217
|
+
if (A["data-onchange-id"]) {
|
|
218
|
+
const k = A["data-onchange-id"];
|
|
219
|
+
delete A["data-onchange-id"], A.onChange = (T) => {
|
|
220
|
+
const O = y;
|
|
221
|
+
O == null || O.postMessage(
|
|
222
|
+
{ type: "action-invoke", surfaceId: e, actionId: k, value: T.target.value },
|
|
228
223
|
"*"
|
|
229
224
|
);
|
|
230
225
|
};
|
|
231
226
|
}
|
|
232
|
-
const
|
|
233
|
-
return /* @__PURE__ */ _e(
|
|
227
|
+
const P = (g = h.children) == null ? void 0 : g.map((k, T) => b(k, y, T));
|
|
228
|
+
return /* @__PURE__ */ _e(C, { ...A, key: R }, P && P.length > 0 ? P : void 0);
|
|
234
229
|
},
|
|
235
|
-
[e]
|
|
230
|
+
[e, i]
|
|
236
231
|
);
|
|
237
232
|
if (G(() => {
|
|
238
|
-
const h =
|
|
239
|
-
if (
|
|
240
|
-
const
|
|
241
|
-
const
|
|
242
|
-
if (!(!
|
|
243
|
-
const
|
|
244
|
-
return
|
|
233
|
+
const h = p.map((R) => R.id).join(",");
|
|
234
|
+
if (f.current !== h && (f.current = h, u({})), !l || p.length === 0) return;
|
|
235
|
+
const y = (R) => {
|
|
236
|
+
const C = R.data;
|
|
237
|
+
if (!(!C || typeof C != "object" || !p.some((P) => {
|
|
238
|
+
const N = fe(P.id);
|
|
239
|
+
return N && R.source === N.iframe.contentWindow;
|
|
245
240
|
}))) {
|
|
246
|
-
if (
|
|
247
|
-
const
|
|
248
|
-
const
|
|
249
|
-
return
|
|
241
|
+
if (C.type === "surface-update" && C.surfaceId === e) {
|
|
242
|
+
const P = p.find((_) => {
|
|
243
|
+
const g = fe(_.id);
|
|
244
|
+
return g && R.source === g.iframe.contentWindow;
|
|
250
245
|
});
|
|
251
|
-
if (!
|
|
252
|
-
const
|
|
253
|
-
|
|
254
|
-
...
|
|
255
|
-
[
|
|
246
|
+
if (!P) return;
|
|
247
|
+
const N = b(C.tree, R.source ?? null);
|
|
248
|
+
u((_) => ({
|
|
249
|
+
..._,
|
|
250
|
+
[P.id]: N
|
|
256
251
|
}));
|
|
257
252
|
}
|
|
258
|
-
|
|
259
|
-
var
|
|
260
|
-
const
|
|
261
|
-
(
|
|
253
|
+
C.type === "surface-ready" && C.surfaceId === e && t && p.forEach((P) => {
|
|
254
|
+
var _;
|
|
255
|
+
const N = fe(P.id);
|
|
256
|
+
(_ = N == null ? void 0 : N.iframe.contentWindow) == null || _.postMessage(
|
|
262
257
|
{ type: "context-update", surfaceId: e, context: t },
|
|
263
258
|
"*"
|
|
264
259
|
);
|
|
265
260
|
});
|
|
266
261
|
}
|
|
267
262
|
};
|
|
268
|
-
return window.addEventListener("message",
|
|
269
|
-
var
|
|
270
|
-
const
|
|
271
|
-
(
|
|
263
|
+
return window.addEventListener("message", y), p.forEach((R) => {
|
|
264
|
+
var A;
|
|
265
|
+
const C = fe(R.id);
|
|
266
|
+
(A = C == null ? void 0 : C.iframe.contentWindow) == null || A.postMessage(
|
|
272
267
|
{ type: "surface-render", surfaceId: e, context: t },
|
|
273
268
|
"*"
|
|
274
269
|
);
|
|
275
270
|
}), () => {
|
|
276
|
-
window.removeEventListener("message",
|
|
271
|
+
window.removeEventListener("message", y);
|
|
277
272
|
};
|
|
278
|
-
}, [
|
|
273
|
+
}, [l, p, e, t, b]), !l)
|
|
279
274
|
return null;
|
|
280
|
-
if (
|
|
275
|
+
if (p.length === 0)
|
|
281
276
|
return n ? /* @__PURE__ */ c("div", { "data-extension-slot": e, title: e, className: o, children: n }) : null;
|
|
282
|
-
const
|
|
283
|
-
const
|
|
277
|
+
const S = p.map((h) => ({ id: h.id, children: d[h.id] })).filter((h) => !!h.children), x = S.length > 0 ? S.flatMap((h, y, R) => {
|
|
278
|
+
const C = s ? s({
|
|
284
279
|
extensionId: h.id,
|
|
285
280
|
children: h.children,
|
|
286
|
-
index:
|
|
287
|
-
total:
|
|
288
|
-
}) : /* @__PURE__ */ c(j.Fragment, { children: h.children }, h.id),
|
|
289
|
-
if (
|
|
290
|
-
return [
|
|
291
|
-
const
|
|
292
|
-
index:
|
|
293
|
-
total:
|
|
294
|
-
previousExtensionId:
|
|
281
|
+
index: y,
|
|
282
|
+
total: R.length
|
|
283
|
+
}) : /* @__PURE__ */ c(j.Fragment, { children: h.children }, h.id), A = /* @__PURE__ */ c(j.Fragment, { children: C }, `extension:${h.id}`);
|
|
284
|
+
if (y === 0 || !r)
|
|
285
|
+
return [A];
|
|
286
|
+
const P = R[y - 1], N = typeof r == "function" ? r({
|
|
287
|
+
index: y,
|
|
288
|
+
total: R.length,
|
|
289
|
+
previousExtensionId: P.id,
|
|
295
290
|
extensionId: h.id
|
|
296
291
|
}) : r;
|
|
297
292
|
return [
|
|
298
|
-
/* @__PURE__ */ c(j.Fragment, { children:
|
|
299
|
-
|
|
293
|
+
/* @__PURE__ */ c(j.Fragment, { children: N }, `separator:${P.id}:${h.id}:${y}`),
|
|
294
|
+
A
|
|
300
295
|
];
|
|
301
296
|
}) : n;
|
|
302
|
-
return /* @__PURE__ */ c("div", { "data-extension-slot": e, title: e, className: o, children:
|
|
297
|
+
return /* @__PURE__ */ c("div", { "data-extension-slot": e, title: e, className: o, children: x });
|
|
303
298
|
};
|
|
304
299
|
/**
|
|
305
300
|
* @license lucide-react v0.575.0 - ISC
|
|
@@ -307,21 +302,21 @@ const ae = /* @__PURE__ */ new Map(), Qo = async (e, t) => {
|
|
|
307
302
|
* This source code is licensed under the ISC license.
|
|
308
303
|
* See the LICENSE file in the root directory of this source tree.
|
|
309
304
|
*/
|
|
310
|
-
const
|
|
305
|
+
const Lt = (...e) => e.filter((t, o, r) => !!t && t.trim() !== "" && r.indexOf(t) === o).join(" ").trim();
|
|
311
306
|
/**
|
|
312
307
|
* @license lucide-react v0.575.0 - ISC
|
|
313
308
|
*
|
|
314
309
|
* This source code is licensed under the ISC license.
|
|
315
310
|
* See the LICENSE file in the root directory of this source tree.
|
|
316
311
|
*/
|
|
317
|
-
const
|
|
312
|
+
const ir = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
318
313
|
/**
|
|
319
314
|
* @license lucide-react v0.575.0 - ISC
|
|
320
315
|
*
|
|
321
316
|
* This source code is licensed under the ISC license.
|
|
322
317
|
* See the LICENSE file in the root directory of this source tree.
|
|
323
318
|
*/
|
|
324
|
-
const
|
|
319
|
+
const lr = (e) => e.replace(
|
|
325
320
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
326
321
|
(t, o, r) => r ? r.toUpperCase() : o.toLowerCase()
|
|
327
322
|
);
|
|
@@ -332,7 +327,7 @@ const ur = (e) => e.replace(
|
|
|
332
327
|
* See the LICENSE file in the root directory of this source tree.
|
|
333
328
|
*/
|
|
334
329
|
const pt = (e) => {
|
|
335
|
-
const t =
|
|
330
|
+
const t = lr(e);
|
|
336
331
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
337
332
|
};
|
|
338
333
|
/**
|
|
@@ -341,7 +336,7 @@ const pt = (e) => {
|
|
|
341
336
|
* This source code is licensed under the ISC license.
|
|
342
337
|
* See the LICENSE file in the root directory of this source tree.
|
|
343
338
|
*/
|
|
344
|
-
var
|
|
339
|
+
var cr = {
|
|
345
340
|
xmlns: "http://www.w3.org/2000/svg",
|
|
346
341
|
width: 24,
|
|
347
342
|
height: 24,
|
|
@@ -358,7 +353,7 @@ var fr = {
|
|
|
358
353
|
* This source code is licensed under the ISC license.
|
|
359
354
|
* See the LICENSE file in the root directory of this source tree.
|
|
360
355
|
*/
|
|
361
|
-
const
|
|
356
|
+
const dr = (e) => {
|
|
362
357
|
for (const t in e)
|
|
363
358
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
364
359
|
return !0;
|
|
@@ -370,7 +365,7 @@ const mr = (e) => {
|
|
|
370
365
|
* This source code is licensed under the ISC license.
|
|
371
366
|
* See the LICENSE file in the root directory of this source tree.
|
|
372
367
|
*/
|
|
373
|
-
const
|
|
368
|
+
const ur = Tt(
|
|
374
369
|
({
|
|
375
370
|
color: e = "currentColor",
|
|
376
371
|
size: t = 24,
|
|
@@ -384,13 +379,13 @@ const pr = Tt(
|
|
|
384
379
|
"svg",
|
|
385
380
|
{
|
|
386
381
|
ref: l,
|
|
387
|
-
...
|
|
382
|
+
...cr,
|
|
388
383
|
width: t,
|
|
389
384
|
height: t,
|
|
390
385
|
stroke: e,
|
|
391
386
|
strokeWidth: r ? Number(o) * 24 / Number(t) : o,
|
|
392
|
-
className:
|
|
393
|
-
...!s && !
|
|
387
|
+
className: Lt("lucide", n),
|
|
388
|
+
...!s && !dr(i) && { "aria-hidden": "true" },
|
|
394
389
|
...i
|
|
395
390
|
},
|
|
396
391
|
[
|
|
@@ -405,13 +400,13 @@ const pr = Tt(
|
|
|
405
400
|
* This source code is licensed under the ISC license.
|
|
406
401
|
* See the LICENSE file in the root directory of this source tree.
|
|
407
402
|
*/
|
|
408
|
-
const
|
|
403
|
+
const L = (e, t) => {
|
|
409
404
|
const o = Tt(
|
|
410
|
-
({ className: r, ...n }, s) => _e(
|
|
405
|
+
({ className: r, ...n }, s) => _e(ur, {
|
|
411
406
|
ref: s,
|
|
412
407
|
iconNode: t,
|
|
413
|
-
className:
|
|
414
|
-
`lucide-${
|
|
408
|
+
className: Lt(
|
|
409
|
+
`lucide-${ir(pt(e))}`,
|
|
415
410
|
`lucide-${e}`,
|
|
416
411
|
r
|
|
417
412
|
),
|
|
@@ -426,7 +421,7 @@ const M = (e, t) => {
|
|
|
426
421
|
* This source code is licensed under the ISC license.
|
|
427
422
|
* See the LICENSE file in the root directory of this source tree.
|
|
428
423
|
*/
|
|
429
|
-
const
|
|
424
|
+
const fr = [
|
|
430
425
|
[
|
|
431
426
|
"path",
|
|
432
427
|
{
|
|
@@ -435,24 +430,24 @@ const hr = [
|
|
|
435
430
|
}
|
|
436
431
|
],
|
|
437
432
|
["path", { d: "m12 15 5 6H7Z", key: "14qnn2" }]
|
|
438
|
-
],
|
|
433
|
+
], mr = L("airplay", fr);
|
|
439
434
|
/**
|
|
440
435
|
* @license lucide-react v0.575.0 - ISC
|
|
441
436
|
*
|
|
442
437
|
* This source code is licensed under the ISC license.
|
|
443
438
|
* See the LICENSE file in the root directory of this source tree.
|
|
444
439
|
*/
|
|
445
|
-
const
|
|
440
|
+
const pr = [
|
|
446
441
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
447
442
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
448
|
-
],
|
|
443
|
+
], hr = L("arrow-left", pr);
|
|
449
444
|
/**
|
|
450
445
|
* @license lucide-react v0.575.0 - ISC
|
|
451
446
|
*
|
|
452
447
|
* This source code is licensed under the ISC license.
|
|
453
448
|
* See the LICENSE file in the root directory of this source tree.
|
|
454
449
|
*/
|
|
455
|
-
const
|
|
450
|
+
const gr = [
|
|
456
451
|
["path", { d: "M12 7v14", key: "1akyts" }],
|
|
457
452
|
[
|
|
458
453
|
"path",
|
|
@@ -461,142 +456,142 @@ const wr = [
|
|
|
461
456
|
key: "ruj8y"
|
|
462
457
|
}
|
|
463
458
|
]
|
|
464
|
-
],
|
|
459
|
+
], br = L("book-open", gr);
|
|
465
460
|
/**
|
|
466
461
|
* @license lucide-react v0.575.0 - ISC
|
|
467
462
|
*
|
|
468
463
|
* This source code is licensed under the ISC license.
|
|
469
464
|
* See the LICENSE file in the root directory of this source tree.
|
|
470
465
|
*/
|
|
471
|
-
const
|
|
466
|
+
const vr = [
|
|
472
467
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
473
468
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
474
469
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
475
470
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
476
|
-
],
|
|
471
|
+
], wr = L("calendar", vr);
|
|
477
472
|
/**
|
|
478
473
|
* @license lucide-react v0.575.0 - ISC
|
|
479
474
|
*
|
|
480
475
|
* This source code is licensed under the ISC license.
|
|
481
476
|
* See the LICENSE file in the root directory of this source tree.
|
|
482
477
|
*/
|
|
483
|
-
const
|
|
478
|
+
const xr = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], yr = L("chevron-left", xr);
|
|
484
479
|
/**
|
|
485
480
|
* @license lucide-react v0.575.0 - ISC
|
|
486
481
|
*
|
|
487
482
|
* This source code is licensed under the ISC license.
|
|
488
483
|
* See the LICENSE file in the root directory of this source tree.
|
|
489
484
|
*/
|
|
490
|
-
const
|
|
485
|
+
const kr = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Ot = L("chevron-right", kr);
|
|
491
486
|
/**
|
|
492
487
|
* @license lucide-react v0.575.0 - ISC
|
|
493
488
|
*
|
|
494
489
|
* This source code is licensed under the ISC license.
|
|
495
490
|
* See the LICENSE file in the root directory of this source tree.
|
|
496
491
|
*/
|
|
497
|
-
const
|
|
492
|
+
const Sr = [
|
|
498
493
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
499
494
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
500
495
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
501
|
-
],
|
|
496
|
+
], Cr = L("circle-alert", Sr);
|
|
502
497
|
/**
|
|
503
498
|
* @license lucide-react v0.575.0 - ISC
|
|
504
499
|
*
|
|
505
500
|
* This source code is licensed under the ISC license.
|
|
506
501
|
* See the LICENSE file in the root directory of this source tree.
|
|
507
502
|
*/
|
|
508
|
-
const
|
|
503
|
+
const Nr = [
|
|
509
504
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
510
505
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
511
|
-
],
|
|
506
|
+
], Er = L("circle-check", Nr);
|
|
512
507
|
/**
|
|
513
508
|
* @license lucide-react v0.575.0 - ISC
|
|
514
509
|
*
|
|
515
510
|
* This source code is licensed under the ISC license.
|
|
516
511
|
* See the LICENSE file in the root directory of this source tree.
|
|
517
512
|
*/
|
|
518
|
-
const
|
|
513
|
+
const Ar = [
|
|
519
514
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
520
515
|
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
521
516
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
522
|
-
],
|
|
517
|
+
], Rr = L("circle-question-mark", Ar);
|
|
523
518
|
/**
|
|
524
519
|
* @license lucide-react v0.575.0 - ISC
|
|
525
520
|
*
|
|
526
521
|
* This source code is licensed under the ISC license.
|
|
527
522
|
* See the LICENSE file in the root directory of this source tree.
|
|
528
523
|
*/
|
|
529
|
-
const
|
|
524
|
+
const _r = [
|
|
530
525
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
531
526
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
532
527
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
533
|
-
],
|
|
528
|
+
], Ir = L("circle-x", _r);
|
|
534
529
|
/**
|
|
535
530
|
* @license lucide-react v0.575.0 - ISC
|
|
536
531
|
*
|
|
537
532
|
* This source code is licensed under the ISC license.
|
|
538
533
|
* See the LICENSE file in the root directory of this source tree.
|
|
539
534
|
*/
|
|
540
|
-
const
|
|
535
|
+
const Pr = [
|
|
541
536
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
542
537
|
["path", { d: "M12 6v6l4 2", key: "mmk7yg" }]
|
|
543
|
-
],
|
|
538
|
+
], zr = L("clock", Pr);
|
|
544
539
|
/**
|
|
545
540
|
* @license lucide-react v0.575.0 - ISC
|
|
546
541
|
*
|
|
547
542
|
* This source code is licensed under the ISC license.
|
|
548
543
|
* See the LICENSE file in the root directory of this source tree.
|
|
549
544
|
*/
|
|
550
|
-
const
|
|
545
|
+
const Tr = [
|
|
551
546
|
["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
|
|
552
547
|
["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
|
|
553
|
-
],
|
|
548
|
+
], Mr = L("credit-card", Tr);
|
|
554
549
|
/**
|
|
555
550
|
* @license lucide-react v0.575.0 - ISC
|
|
556
551
|
*
|
|
557
552
|
* This source code is licensed under the ISC license.
|
|
558
553
|
* See the LICENSE file in the root directory of this source tree.
|
|
559
554
|
*/
|
|
560
|
-
const
|
|
555
|
+
const Lr = [
|
|
561
556
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
562
557
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
563
558
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
564
|
-
],
|
|
559
|
+
], Or = L("external-link", Lr);
|
|
565
560
|
/**
|
|
566
561
|
* @license lucide-react v0.575.0 - ISC
|
|
567
562
|
*
|
|
568
563
|
* This source code is licensed under the ISC license.
|
|
569
564
|
* See the LICENSE file in the root directory of this source tree.
|
|
570
565
|
*/
|
|
571
|
-
const
|
|
566
|
+
const $r = [
|
|
572
567
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
573
568
|
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
574
569
|
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
575
|
-
],
|
|
570
|
+
], Fr = L("info", $r);
|
|
576
571
|
/**
|
|
577
572
|
* @license lucide-react v0.575.0 - ISC
|
|
578
573
|
*
|
|
579
574
|
* This source code is licensed under the ISC license.
|
|
580
575
|
* See the LICENSE file in the root directory of this source tree.
|
|
581
576
|
*/
|
|
582
|
-
const
|
|
577
|
+
const Dr = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], $t = L("loader-circle", Dr);
|
|
583
578
|
/**
|
|
584
579
|
* @license lucide-react v0.575.0 - ISC
|
|
585
580
|
*
|
|
586
581
|
* This source code is licensed under the ISC license.
|
|
587
582
|
* See the LICENSE file in the root directory of this source tree.
|
|
588
583
|
*/
|
|
589
|
-
const
|
|
584
|
+
const Hr = [
|
|
590
585
|
["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
|
|
591
586
|
["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
|
|
592
|
-
], Ye =
|
|
587
|
+
], Ye = L("mail", Hr);
|
|
593
588
|
/**
|
|
594
589
|
* @license lucide-react v0.575.0 - ISC
|
|
595
590
|
*
|
|
596
591
|
* This source code is licensed under the ISC license.
|
|
597
592
|
* See the LICENSE file in the root directory of this source tree.
|
|
598
593
|
*/
|
|
599
|
-
const
|
|
594
|
+
const Ur = [
|
|
600
595
|
[
|
|
601
596
|
"path",
|
|
602
597
|
{
|
|
@@ -605,14 +600,14 @@ const jr = [
|
|
|
605
600
|
}
|
|
606
601
|
],
|
|
607
602
|
["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
|
|
608
|
-
],
|
|
603
|
+
], Vr = L("map-pin", Ur);
|
|
609
604
|
/**
|
|
610
605
|
* @license lucide-react v0.575.0 - ISC
|
|
611
606
|
*
|
|
612
607
|
* This source code is licensed under the ISC license.
|
|
613
608
|
* See the LICENSE file in the root directory of this source tree.
|
|
614
609
|
*/
|
|
615
|
-
const
|
|
610
|
+
const Wr = [
|
|
616
611
|
[
|
|
617
612
|
"path",
|
|
618
613
|
{
|
|
@@ -620,14 +615,14 @@ const Gr = [
|
|
|
620
615
|
key: "1sd12s"
|
|
621
616
|
}
|
|
622
617
|
]
|
|
623
|
-
],
|
|
618
|
+
], jr = L("message-circle", Wr);
|
|
624
619
|
/**
|
|
625
620
|
* @license lucide-react v0.575.0 - ISC
|
|
626
621
|
*
|
|
627
622
|
* This source code is licensed under the ISC license.
|
|
628
623
|
* See the LICENSE file in the root directory of this source tree.
|
|
629
624
|
*/
|
|
630
|
-
const
|
|
625
|
+
const Br = [
|
|
631
626
|
[
|
|
632
627
|
"path",
|
|
633
628
|
{
|
|
@@ -635,14 +630,14 @@ const Yr = [
|
|
|
635
630
|
key: "18887p"
|
|
636
631
|
}
|
|
637
632
|
]
|
|
638
|
-
],
|
|
633
|
+
], Ft = L("message-square", Br);
|
|
639
634
|
/**
|
|
640
635
|
* @license lucide-react v0.575.0 - ISC
|
|
641
636
|
*
|
|
642
637
|
* This source code is licensed under the ISC license.
|
|
643
638
|
* See the LICENSE file in the root directory of this source tree.
|
|
644
639
|
*/
|
|
645
|
-
const
|
|
640
|
+
const Gr = [
|
|
646
641
|
[
|
|
647
642
|
"path",
|
|
648
643
|
{
|
|
@@ -653,14 +648,14 @@ const Xr = [
|
|
|
653
648
|
["path", { d: "M12 22V12", key: "d0xqtd" }],
|
|
654
649
|
["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
|
|
655
650
|
["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
|
|
656
|
-
],
|
|
651
|
+
], qr = L("package", Gr);
|
|
657
652
|
/**
|
|
658
653
|
* @license lucide-react v0.575.0 - ISC
|
|
659
654
|
*
|
|
660
655
|
* This source code is licensed under the ISC license.
|
|
661
656
|
* See the LICENSE file in the root directory of this source tree.
|
|
662
657
|
*/
|
|
663
|
-
const
|
|
658
|
+
const Yr = [
|
|
664
659
|
[
|
|
665
660
|
"path",
|
|
666
661
|
{
|
|
@@ -668,24 +663,24 @@ const Zr = [
|
|
|
668
663
|
key: "9njp5v"
|
|
669
664
|
}
|
|
670
665
|
]
|
|
671
|
-
],
|
|
666
|
+
], Xr = L("phone", Yr);
|
|
672
667
|
/**
|
|
673
668
|
* @license lucide-react v0.575.0 - ISC
|
|
674
669
|
*
|
|
675
670
|
* This source code is licensed under the ISC license.
|
|
676
671
|
* See the LICENSE file in the root directory of this source tree.
|
|
677
672
|
*/
|
|
678
|
-
const
|
|
673
|
+
const Kr = [
|
|
679
674
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
680
675
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
681
|
-
],
|
|
676
|
+
], Zr = L("search", Kr);
|
|
682
677
|
/**
|
|
683
678
|
* @license lucide-react v0.575.0 - ISC
|
|
684
679
|
*
|
|
685
680
|
* This source code is licensed under the ISC license.
|
|
686
681
|
* See the LICENSE file in the root directory of this source tree.
|
|
687
682
|
*/
|
|
688
|
-
const
|
|
683
|
+
const Jr = [
|
|
689
684
|
["path", { d: "M16 10a4 4 0 0 1-8 0", key: "1ltviw" }],
|
|
690
685
|
["path", { d: "M3.103 6.034h17.794", key: "awc11p" }],
|
|
691
686
|
[
|
|
@@ -695,14 +690,14 @@ const tn = [
|
|
|
695
690
|
key: "o988cm"
|
|
696
691
|
}
|
|
697
692
|
]
|
|
698
|
-
],
|
|
693
|
+
], Qr = L("shopping-bag", Jr);
|
|
699
694
|
/**
|
|
700
695
|
* @license lucide-react v0.575.0 - ISC
|
|
701
696
|
*
|
|
702
697
|
* This source code is licensed under the ISC license.
|
|
703
698
|
* See the LICENSE file in the root directory of this source tree.
|
|
704
699
|
*/
|
|
705
|
-
const
|
|
700
|
+
const en = [
|
|
706
701
|
[
|
|
707
702
|
"path",
|
|
708
703
|
{
|
|
@@ -713,14 +708,14 @@ const rn = [
|
|
|
713
708
|
["path", { d: "M20 2v4", key: "1rf3ol" }],
|
|
714
709
|
["path", { d: "M22 4h-4", key: "gwowj6" }],
|
|
715
710
|
["circle", { cx: "4", cy: "20", r: "2", key: "6kqj1y" }]
|
|
716
|
-
],
|
|
711
|
+
], tn = L("sparkles", en);
|
|
717
712
|
/**
|
|
718
713
|
* @license lucide-react v0.575.0 - ISC
|
|
719
714
|
*
|
|
720
715
|
* This source code is licensed under the ISC license.
|
|
721
716
|
* See the LICENSE file in the root directory of this source tree.
|
|
722
717
|
*/
|
|
723
|
-
const
|
|
718
|
+
const on = [
|
|
724
719
|
["path", { d: "M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2", key: "wrbu53" }],
|
|
725
720
|
["path", { d: "M15 18H9", key: "1lyqi6" }],
|
|
726
721
|
[
|
|
@@ -732,70 +727,70 @@ const sn = [
|
|
|
732
727
|
],
|
|
733
728
|
["circle", { cx: "17", cy: "18", r: "2", key: "332jqn" }],
|
|
734
729
|
["circle", { cx: "7", cy: "18", r: "2", key: "19iecd" }]
|
|
735
|
-
],
|
|
730
|
+
], rn = L("truck", on);
|
|
736
731
|
/**
|
|
737
732
|
* @license lucide-react v0.575.0 - ISC
|
|
738
733
|
*
|
|
739
734
|
* This source code is licensed under the ISC license.
|
|
740
735
|
* See the LICENSE file in the root directory of this source tree.
|
|
741
736
|
*/
|
|
742
|
-
const
|
|
737
|
+
const nn = [
|
|
743
738
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
744
739
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
745
|
-
],
|
|
746
|
-
function
|
|
740
|
+
], Dt = L("user", nn);
|
|
741
|
+
function Ht(e) {
|
|
747
742
|
var t, o, r = "";
|
|
748
743
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
749
744
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
750
745
|
var n = e.length;
|
|
751
|
-
for (t = 0; t < n; t++) e[t] && (o =
|
|
746
|
+
for (t = 0; t < n; t++) e[t] && (o = Ht(e[t])) && (r && (r += " "), r += o);
|
|
752
747
|
} else for (o in e) e[o] && (r && (r += " "), r += o);
|
|
753
748
|
return r;
|
|
754
749
|
}
|
|
755
|
-
function
|
|
756
|
-
for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t =
|
|
750
|
+
function Ut() {
|
|
751
|
+
for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t = Ht(e)) && (r && (r += " "), r += t);
|
|
757
752
|
return r;
|
|
758
753
|
}
|
|
759
|
-
const
|
|
754
|
+
const sn = (e, t) => {
|
|
760
755
|
const o = new Array(e.length + t.length);
|
|
761
756
|
for (let r = 0; r < e.length; r++)
|
|
762
757
|
o[r] = e[r];
|
|
763
758
|
for (let r = 0; r < t.length; r++)
|
|
764
759
|
o[e.length + r] = t[r];
|
|
765
760
|
return o;
|
|
766
|
-
},
|
|
761
|
+
}, an = (e, t) => ({
|
|
767
762
|
classGroupId: e,
|
|
768
763
|
validator: t
|
|
769
|
-
}),
|
|
764
|
+
}), Vt = (e = /* @__PURE__ */ new Map(), t = null, o) => ({
|
|
770
765
|
nextPart: e,
|
|
771
766
|
validators: t,
|
|
772
767
|
classGroupId: o
|
|
773
|
-
}), Ie = "-", ht = [],
|
|
774
|
-
const t =
|
|
768
|
+
}), Ie = "-", ht = [], ln = "arbitrary..", cn = (e) => {
|
|
769
|
+
const t = un(e), {
|
|
775
770
|
conflictingClassGroups: o,
|
|
776
771
|
conflictingClassGroupModifiers: r
|
|
777
772
|
} = e;
|
|
778
773
|
return {
|
|
779
774
|
getClassGroupId: (a) => {
|
|
780
775
|
if (a.startsWith("[") && a.endsWith("]"))
|
|
781
|
-
return
|
|
776
|
+
return dn(a);
|
|
782
777
|
const i = a.split(Ie), l = i[0] === "" && i.length > 1 ? 1 : 0;
|
|
783
|
-
return
|
|
778
|
+
return Wt(i, l, t);
|
|
784
779
|
},
|
|
785
780
|
getConflictingClassGroupIds: (a, i) => {
|
|
786
781
|
if (i) {
|
|
787
782
|
const l = r[a], d = o[a];
|
|
788
|
-
return l ? d ?
|
|
783
|
+
return l ? d ? sn(d, l) : l : d || ht;
|
|
789
784
|
}
|
|
790
785
|
return o[a] || ht;
|
|
791
786
|
}
|
|
792
787
|
};
|
|
793
|
-
},
|
|
788
|
+
}, Wt = (e, t, o) => {
|
|
794
789
|
if (e.length - t === 0)
|
|
795
790
|
return o.classGroupId;
|
|
796
791
|
const n = e[t], s = o.nextPart.get(n);
|
|
797
792
|
if (s) {
|
|
798
|
-
const d =
|
|
793
|
+
const d = Wt(e, t + 1, s);
|
|
799
794
|
if (d) return d;
|
|
800
795
|
}
|
|
801
796
|
const a = o.validators;
|
|
@@ -807,17 +802,17 @@ const cn = (e, t) => {
|
|
|
807
802
|
if (u.validator(i))
|
|
808
803
|
return u.classGroupId;
|
|
809
804
|
}
|
|
810
|
-
},
|
|
805
|
+
}, dn = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
811
806
|
const t = e.slice(1, -1), o = t.indexOf(":"), r = t.slice(0, o);
|
|
812
|
-
return r ?
|
|
813
|
-
})(),
|
|
807
|
+
return r ? ln + r : void 0;
|
|
808
|
+
})(), un = (e) => {
|
|
814
809
|
const {
|
|
815
810
|
theme: t,
|
|
816
811
|
classGroups: o
|
|
817
812
|
} = e;
|
|
818
|
-
return
|
|
819
|
-
},
|
|
820
|
-
const o =
|
|
813
|
+
return fn(o, t);
|
|
814
|
+
}, fn = (e, t) => {
|
|
815
|
+
const o = Vt();
|
|
821
816
|
for (const r in e) {
|
|
822
817
|
const n = e[r];
|
|
823
818
|
et(n, o, r, t);
|
|
@@ -827,43 +822,43 @@ const cn = (e, t) => {
|
|
|
827
822
|
const n = e.length;
|
|
828
823
|
for (let s = 0; s < n; s++) {
|
|
829
824
|
const a = e[s];
|
|
830
|
-
|
|
825
|
+
mn(a, t, o, r);
|
|
831
826
|
}
|
|
832
|
-
},
|
|
827
|
+
}, mn = (e, t, o, r) => {
|
|
833
828
|
if (typeof e == "string") {
|
|
834
|
-
|
|
829
|
+
pn(e, t, o);
|
|
835
830
|
return;
|
|
836
831
|
}
|
|
837
832
|
if (typeof e == "function") {
|
|
838
|
-
|
|
833
|
+
hn(e, t, o, r);
|
|
839
834
|
return;
|
|
840
835
|
}
|
|
841
|
-
|
|
842
|
-
},
|
|
843
|
-
const r = e === "" ? t :
|
|
836
|
+
gn(e, t, o, r);
|
|
837
|
+
}, pn = (e, t, o) => {
|
|
838
|
+
const r = e === "" ? t : jt(t, e);
|
|
844
839
|
r.classGroupId = o;
|
|
845
|
-
},
|
|
846
|
-
if (
|
|
840
|
+
}, hn = (e, t, o, r) => {
|
|
841
|
+
if (bn(e)) {
|
|
847
842
|
et(e(r), t, o, r);
|
|
848
843
|
return;
|
|
849
844
|
}
|
|
850
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
851
|
-
},
|
|
845
|
+
t.validators === null && (t.validators = []), t.validators.push(an(o, e));
|
|
846
|
+
}, gn = (e, t, o, r) => {
|
|
852
847
|
const n = Object.entries(e), s = n.length;
|
|
853
848
|
for (let a = 0; a < s; a++) {
|
|
854
849
|
const [i, l] = n[a];
|
|
855
|
-
et(l,
|
|
850
|
+
et(l, jt(t, i), o, r);
|
|
856
851
|
}
|
|
857
|
-
},
|
|
852
|
+
}, jt = (e, t) => {
|
|
858
853
|
let o = e;
|
|
859
854
|
const r = t.split(Ie), n = r.length;
|
|
860
855
|
for (let s = 0; s < n; s++) {
|
|
861
856
|
const a = r[s];
|
|
862
857
|
let i = o.nextPart.get(a);
|
|
863
|
-
i || (i =
|
|
858
|
+
i || (i = Vt(), o.nextPart.set(a, i)), o = i;
|
|
864
859
|
}
|
|
865
860
|
return o;
|
|
866
|
-
},
|
|
861
|
+
}, bn = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, vn = (e) => {
|
|
867
862
|
if (e < 1)
|
|
868
863
|
return {
|
|
869
864
|
get: () => {
|
|
@@ -887,13 +882,13 @@ const cn = (e, t) => {
|
|
|
887
882
|
s in o ? o[s] = a : n(s, a);
|
|
888
883
|
}
|
|
889
884
|
};
|
|
890
|
-
}, Xe = "!", gt = ":",
|
|
885
|
+
}, Xe = "!", gt = ":", wn = [], bt = (e, t, o, r, n) => ({
|
|
891
886
|
modifiers: e,
|
|
892
887
|
hasImportantModifier: t,
|
|
893
888
|
baseClassName: o,
|
|
894
889
|
maybePostfixModifierPosition: r,
|
|
895
890
|
isExternal: n
|
|
896
|
-
}),
|
|
891
|
+
}), xn = (e) => {
|
|
897
892
|
const {
|
|
898
893
|
prefix: t,
|
|
899
894
|
experimentalParseClassName: o
|
|
@@ -902,35 +897,35 @@ const cn = (e, t) => {
|
|
|
902
897
|
const s = [];
|
|
903
898
|
let a = 0, i = 0, l = 0, d;
|
|
904
899
|
const u = n.length;
|
|
905
|
-
for (let
|
|
906
|
-
const
|
|
900
|
+
for (let x = 0; x < u; x++) {
|
|
901
|
+
const h = n[x];
|
|
907
902
|
if (a === 0 && i === 0) {
|
|
908
|
-
if (
|
|
909
|
-
s.push(n.slice(l,
|
|
903
|
+
if (h === gt) {
|
|
904
|
+
s.push(n.slice(l, x)), l = x + 1;
|
|
910
905
|
continue;
|
|
911
906
|
}
|
|
912
|
-
if (
|
|
913
|
-
d =
|
|
907
|
+
if (h === "/") {
|
|
908
|
+
d = x;
|
|
914
909
|
continue;
|
|
915
910
|
}
|
|
916
911
|
}
|
|
917
|
-
|
|
912
|
+
h === "[" ? a++ : h === "]" ? a-- : h === "(" ? i++ : h === ")" && i--;
|
|
918
913
|
}
|
|
919
914
|
const f = s.length === 0 ? n : n.slice(l);
|
|
920
|
-
let p = f,
|
|
921
|
-
f.endsWith(Xe) ? (p = f.slice(0, -1),
|
|
915
|
+
let p = f, b = !1;
|
|
916
|
+
f.endsWith(Xe) ? (p = f.slice(0, -1), b = !0) : (
|
|
922
917
|
/**
|
|
923
918
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
924
919
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
925
920
|
*/
|
|
926
|
-
f.startsWith(Xe) && (p = f.slice(1),
|
|
921
|
+
f.startsWith(Xe) && (p = f.slice(1), b = !0)
|
|
927
922
|
);
|
|
928
923
|
const S = d && d > l ? d - l : void 0;
|
|
929
|
-
return bt(s,
|
|
924
|
+
return bt(s, b, p, S);
|
|
930
925
|
};
|
|
931
926
|
if (t) {
|
|
932
927
|
const n = t + gt, s = r;
|
|
933
|
-
r = (a) => a.startsWith(n) ? s(a.slice(n.length)) : bt(
|
|
928
|
+
r = (a) => a.startsWith(n) ? s(a.slice(n.length)) : bt(wn, !1, a, void 0, !0);
|
|
934
929
|
}
|
|
935
930
|
if (o) {
|
|
936
931
|
const n = r;
|
|
@@ -940,7 +935,7 @@ const cn = (e, t) => {
|
|
|
940
935
|
});
|
|
941
936
|
}
|
|
942
937
|
return r;
|
|
943
|
-
},
|
|
938
|
+
}, yn = (e) => {
|
|
944
939
|
const t = /* @__PURE__ */ new Map();
|
|
945
940
|
return e.orderSensitiveModifiers.forEach((o, r) => {
|
|
946
941
|
t.set(o, 1e6 + r);
|
|
@@ -953,34 +948,34 @@ const cn = (e, t) => {
|
|
|
953
948
|
}
|
|
954
949
|
return n.length > 0 && (n.sort(), r.push(...n)), r;
|
|
955
950
|
};
|
|
956
|
-
},
|
|
957
|
-
cache:
|
|
958
|
-
parseClassName:
|
|
959
|
-
sortModifiers:
|
|
960
|
-
...
|
|
961
|
-
}),
|
|
951
|
+
}, kn = (e) => ({
|
|
952
|
+
cache: vn(e.cacheSize),
|
|
953
|
+
parseClassName: xn(e),
|
|
954
|
+
sortModifiers: yn(e),
|
|
955
|
+
...cn(e)
|
|
956
|
+
}), Sn = /\s+/, Cn = (e, t) => {
|
|
962
957
|
const {
|
|
963
958
|
parseClassName: o,
|
|
964
959
|
getClassGroupId: r,
|
|
965
960
|
getConflictingClassGroupIds: n,
|
|
966
961
|
sortModifiers: s
|
|
967
|
-
} = t, a = [], i = e.trim().split(
|
|
962
|
+
} = t, a = [], i = e.trim().split(Sn);
|
|
968
963
|
let l = "";
|
|
969
964
|
for (let d = i.length - 1; d >= 0; d -= 1) {
|
|
970
965
|
const u = i[d], {
|
|
971
966
|
isExternal: f,
|
|
972
967
|
modifiers: p,
|
|
973
|
-
hasImportantModifier:
|
|
968
|
+
hasImportantModifier: b,
|
|
974
969
|
baseClassName: S,
|
|
975
|
-
maybePostfixModifierPosition:
|
|
970
|
+
maybePostfixModifierPosition: x
|
|
976
971
|
} = o(u);
|
|
977
972
|
if (f) {
|
|
978
973
|
l = u + (l.length > 0 ? " " + l : l);
|
|
979
974
|
continue;
|
|
980
975
|
}
|
|
981
|
-
let
|
|
976
|
+
let h = !!x, y = r(h ? S.substring(0, x) : S);
|
|
982
977
|
if (!y) {
|
|
983
|
-
if (!
|
|
978
|
+
if (!h) {
|
|
984
979
|
l = u + (l.length > 0 ? " " + l : l);
|
|
985
980
|
continue;
|
|
986
981
|
}
|
|
@@ -988,61 +983,61 @@ const cn = (e, t) => {
|
|
|
988
983
|
l = u + (l.length > 0 ? " " + l : l);
|
|
989
984
|
continue;
|
|
990
985
|
}
|
|
991
|
-
|
|
986
|
+
h = !1;
|
|
992
987
|
}
|
|
993
|
-
const R = p.length === 0 ? "" : p.length === 1 ? p[0] : s(p).join(":"),
|
|
988
|
+
const R = p.length === 0 ? "" : p.length === 1 ? p[0] : s(p).join(":"), C = b ? R + Xe : R, A = C + y;
|
|
994
989
|
if (a.indexOf(A) > -1)
|
|
995
990
|
continue;
|
|
996
991
|
a.push(A);
|
|
997
|
-
const P = n(y,
|
|
998
|
-
for (let
|
|
999
|
-
const _ = P[
|
|
1000
|
-
a.push(
|
|
992
|
+
const P = n(y, h);
|
|
993
|
+
for (let N = 0; N < P.length; ++N) {
|
|
994
|
+
const _ = P[N];
|
|
995
|
+
a.push(C + _);
|
|
1001
996
|
}
|
|
1002
997
|
l = u + (l.length > 0 ? " " + l : l);
|
|
1003
998
|
}
|
|
1004
999
|
return l;
|
|
1005
|
-
},
|
|
1000
|
+
}, Nn = (...e) => {
|
|
1006
1001
|
let t = 0, o, r, n = "";
|
|
1007
1002
|
for (; t < e.length; )
|
|
1008
|
-
(o = e[t++]) && (r =
|
|
1003
|
+
(o = e[t++]) && (r = Bt(o)) && (n && (n += " "), n += r);
|
|
1009
1004
|
return n;
|
|
1010
|
-
},
|
|
1005
|
+
}, Bt = (e) => {
|
|
1011
1006
|
if (typeof e == "string")
|
|
1012
1007
|
return e;
|
|
1013
1008
|
let t, o = "";
|
|
1014
1009
|
for (let r = 0; r < e.length; r++)
|
|
1015
|
-
e[r] && (t =
|
|
1010
|
+
e[r] && (t = Bt(e[r])) && (o && (o += " "), o += t);
|
|
1016
1011
|
return o;
|
|
1017
|
-
},
|
|
1012
|
+
}, En = (e, ...t) => {
|
|
1018
1013
|
let o, r, n, s;
|
|
1019
1014
|
const a = (l) => {
|
|
1020
1015
|
const d = t.reduce((u, f) => f(u), e());
|
|
1021
|
-
return o =
|
|
1016
|
+
return o = kn(d), r = o.cache.get, n = o.cache.set, s = i, i(l);
|
|
1022
1017
|
}, i = (l) => {
|
|
1023
1018
|
const d = r(l);
|
|
1024
1019
|
if (d)
|
|
1025
1020
|
return d;
|
|
1026
|
-
const u =
|
|
1021
|
+
const u = Cn(l, o);
|
|
1027
1022
|
return n(l, u), u;
|
|
1028
1023
|
};
|
|
1029
|
-
return s = a, (...l) => s(
|
|
1030
|
-
},
|
|
1031
|
-
const t = (o) => o[e] ||
|
|
1024
|
+
return s = a, (...l) => s(Nn(...l));
|
|
1025
|
+
}, An = [], F = (e) => {
|
|
1026
|
+
const t = (o) => o[e] || An;
|
|
1032
1027
|
return t.isThemeGetter = !0, t;
|
|
1033
|
-
},
|
|
1028
|
+
}, Gt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, qt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Rn = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, _n = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, In = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Pn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, zn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Tn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ee = (e) => Rn.test(e), I = (e) => !!e && !Number.isNaN(Number(e)), te = (e) => !!e && Number.isInteger(Number(e)), Ve = (e) => e.endsWith("%") && I(e.slice(0, -1)), Z = (e) => _n.test(e), Yt = () => !0, Mn = (e) => (
|
|
1034
1029
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1035
1030
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1036
1031
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1037
|
-
|
|
1038
|
-
), tt = () => !1,
|
|
1039
|
-
const r =
|
|
1032
|
+
In.test(e) && !Pn.test(e)
|
|
1033
|
+
), tt = () => !1, Ln = (e) => zn.test(e), On = (e) => Tn.test(e), $n = (e) => !v(e) && !w(e), Fn = (e) => re(e, Zt, tt), v = (e) => Gt.test(e), se = (e) => re(e, Jt, Mn), vt = (e) => re(e, Gn, I), Dn = (e) => re(e, eo, Yt), Hn = (e) => re(e, Qt, tt), wt = (e) => re(e, Xt, tt), Un = (e) => re(e, Kt, On), Ce = (e) => re(e, to, Ln), w = (e) => qt.test(e), ue = (e) => ie(e, Jt), Vn = (e) => ie(e, Qt), xt = (e) => ie(e, Xt), Wn = (e) => ie(e, Zt), jn = (e) => ie(e, Kt), Ne = (e) => ie(e, to, !0), Bn = (e) => ie(e, eo, !0), re = (e, t, o) => {
|
|
1034
|
+
const r = Gt.exec(e);
|
|
1040
1035
|
return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
|
|
1041
1036
|
}, ie = (e, t, o = !1) => {
|
|
1042
|
-
const r =
|
|
1037
|
+
const r = qt.exec(e);
|
|
1043
1038
|
return r ? r[1] ? t(r[1]) : o : !1;
|
|
1044
|
-
},
|
|
1045
|
-
const e =
|
|
1039
|
+
}, Xt = (e) => e === "position" || e === "percentage", Kt = (e) => e === "image" || e === "url", Zt = (e) => e === "length" || e === "size" || e === "bg-size", Jt = (e) => e === "length", Gn = (e) => e === "number", Qt = (e) => e === "family-name", eo = (e) => e === "number" || e === "weight", to = (e) => e === "shadow", qn = () => {
|
|
1040
|
+
const e = F("color"), t = F("font"), o = F("text"), r = F("font-weight"), n = F("tracking"), s = F("leading"), a = F("breakpoint"), i = F("container"), l = F("spacing"), d = F("radius"), u = F("shadow"), f = F("inset-shadow"), p = F("text-shadow"), b = F("drop-shadow"), S = F("blur"), x = F("perspective"), h = F("aspect"), y = F("ease"), R = F("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], A = () => [
|
|
1046
1041
|
"center",
|
|
1047
1042
|
"top",
|
|
1048
1043
|
"bottom",
|
|
@@ -1060,30 +1055,30 @@ const cn = (e, t) => {
|
|
|
1060
1055
|
"bottom-left",
|
|
1061
1056
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1062
1057
|
"left-bottom"
|
|
1063
|
-
], P = () => [...A(),
|
|
1064
|
-
span: ["full", te,
|
|
1065
|
-
}, te,
|
|
1066
|
-
position: [
|
|
1058
|
+
], P = () => [...A(), w, v], N = () => ["auto", "hidden", "clip", "visible", "scroll"], _ = () => ["auto", "contain", "none"], g = () => [w, v, l], k = () => [ee, "full", "auto", ...g()], T = () => [te, "none", "subgrid", w, v], O = () => ["auto", {
|
|
1059
|
+
span: ["full", te, w, v]
|
|
1060
|
+
}, te, w, v], K = () => [te, "auto", w, v], be = () => ["auto", "min", "max", "fr", w, v], ve = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], Q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], $ = () => ["auto", ...g()], ne = () => [ee, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...g()], $e = () => [ee, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...g()], Fe = () => [ee, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...g()], E = () => [e, w, v], ct = () => [...A(), xt, wt, {
|
|
1061
|
+
position: [w, v]
|
|
1067
1062
|
}], dt = () => ["no-repeat", {
|
|
1068
1063
|
repeat: ["", "x", "y", "space", "round"]
|
|
1069
|
-
}], ut = () => ["auto", "cover", "contain",
|
|
1070
|
-
size: [
|
|
1064
|
+
}], ut = () => ["auto", "cover", "contain", Wn, Fn, {
|
|
1065
|
+
size: [w, v]
|
|
1071
1066
|
}], De = () => [Ve, ue, se], U = () => [
|
|
1072
1067
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1073
1068
|
"",
|
|
1074
1069
|
"none",
|
|
1075
1070
|
"full",
|
|
1076
1071
|
d,
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
], V = () => ["", I, ue, se], we = () => ["solid", "dashed", "dotted", "double"], ft = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"],
|
|
1072
|
+
w,
|
|
1073
|
+
v
|
|
1074
|
+
], V = () => ["", I, ue, se], we = () => ["solid", "dashed", "dotted", "double"], ft = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], D = () => [I, Ve, xt, wt], mt = () => [
|
|
1080
1075
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1081
1076
|
"",
|
|
1082
1077
|
"none",
|
|
1083
1078
|
S,
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
], xe = () => ["none", I,
|
|
1079
|
+
w,
|
|
1080
|
+
v
|
|
1081
|
+
], xe = () => ["none", I, w, v], ye = () => ["none", I, w, v], He = () => [I, w, v], ke = () => [ee, "full", ...g()];
|
|
1087
1082
|
return {
|
|
1088
1083
|
cacheSize: 500,
|
|
1089
1084
|
theme: {
|
|
@@ -1091,11 +1086,11 @@ const cn = (e, t) => {
|
|
|
1091
1086
|
aspect: ["video"],
|
|
1092
1087
|
blur: [Z],
|
|
1093
1088
|
breakpoint: [Z],
|
|
1094
|
-
color: [
|
|
1089
|
+
color: [Yt],
|
|
1095
1090
|
container: [Z],
|
|
1096
1091
|
"drop-shadow": [Z],
|
|
1097
1092
|
ease: ["in", "out", "in-out"],
|
|
1098
|
-
font: [
|
|
1093
|
+
font: [$n],
|
|
1099
1094
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
1100
1095
|
"inset-shadow": [Z],
|
|
1101
1096
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -1116,7 +1111,7 @@ const cn = (e, t) => {
|
|
|
1116
1111
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
1117
1112
|
*/
|
|
1118
1113
|
aspect: [{
|
|
1119
|
-
aspect: ["auto", "square", ee,
|
|
1114
|
+
aspect: ["auto", "square", ee, v, w, h]
|
|
1120
1115
|
}],
|
|
1121
1116
|
/**
|
|
1122
1117
|
* Container
|
|
@@ -1129,21 +1124,21 @@ const cn = (e, t) => {
|
|
|
1129
1124
|
* @see https://tailwindcss.com/docs/columns
|
|
1130
1125
|
*/
|
|
1131
1126
|
columns: [{
|
|
1132
|
-
columns: [I,
|
|
1127
|
+
columns: [I, v, w, i]
|
|
1133
1128
|
}],
|
|
1134
1129
|
/**
|
|
1135
1130
|
* Break After
|
|
1136
1131
|
* @see https://tailwindcss.com/docs/break-after
|
|
1137
1132
|
*/
|
|
1138
1133
|
"break-after": [{
|
|
1139
|
-
"break-after":
|
|
1134
|
+
"break-after": C()
|
|
1140
1135
|
}],
|
|
1141
1136
|
/**
|
|
1142
1137
|
* Break Before
|
|
1143
1138
|
* @see https://tailwindcss.com/docs/break-before
|
|
1144
1139
|
*/
|
|
1145
1140
|
"break-before": [{
|
|
1146
|
-
"break-before":
|
|
1141
|
+
"break-before": C()
|
|
1147
1142
|
}],
|
|
1148
1143
|
/**
|
|
1149
1144
|
* Break Inside
|
|
@@ -1214,21 +1209,21 @@ const cn = (e, t) => {
|
|
|
1214
1209
|
* @see https://tailwindcss.com/docs/overflow
|
|
1215
1210
|
*/
|
|
1216
1211
|
overflow: [{
|
|
1217
|
-
overflow:
|
|
1212
|
+
overflow: N()
|
|
1218
1213
|
}],
|
|
1219
1214
|
/**
|
|
1220
1215
|
* Overflow X
|
|
1221
1216
|
* @see https://tailwindcss.com/docs/overflow
|
|
1222
1217
|
*/
|
|
1223
1218
|
"overflow-x": [{
|
|
1224
|
-
"overflow-x":
|
|
1219
|
+
"overflow-x": N()
|
|
1225
1220
|
}],
|
|
1226
1221
|
/**
|
|
1227
1222
|
* Overflow Y
|
|
1228
1223
|
* @see https://tailwindcss.com/docs/overflow
|
|
1229
1224
|
*/
|
|
1230
1225
|
"overflow-y": [{
|
|
1231
|
-
"overflow-y":
|
|
1226
|
+
"overflow-y": N()
|
|
1232
1227
|
}],
|
|
1233
1228
|
/**
|
|
1234
1229
|
* Overscroll Behavior
|
|
@@ -1355,7 +1350,7 @@ const cn = (e, t) => {
|
|
|
1355
1350
|
* @see https://tailwindcss.com/docs/z-index
|
|
1356
1351
|
*/
|
|
1357
1352
|
z: [{
|
|
1358
|
-
z: [te, "auto",
|
|
1353
|
+
z: [te, "auto", w, v]
|
|
1359
1354
|
}],
|
|
1360
1355
|
// ------------------------
|
|
1361
1356
|
// --- Flexbox and Grid ---
|
|
@@ -1386,42 +1381,42 @@ const cn = (e, t) => {
|
|
|
1386
1381
|
* @see https://tailwindcss.com/docs/flex
|
|
1387
1382
|
*/
|
|
1388
1383
|
flex: [{
|
|
1389
|
-
flex: [I, ee, "auto", "initial", "none",
|
|
1384
|
+
flex: [I, ee, "auto", "initial", "none", v]
|
|
1390
1385
|
}],
|
|
1391
1386
|
/**
|
|
1392
1387
|
* Flex Grow
|
|
1393
1388
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1394
1389
|
*/
|
|
1395
1390
|
grow: [{
|
|
1396
|
-
grow: ["", I,
|
|
1391
|
+
grow: ["", I, w, v]
|
|
1397
1392
|
}],
|
|
1398
1393
|
/**
|
|
1399
1394
|
* Flex Shrink
|
|
1400
1395
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1401
1396
|
*/
|
|
1402
1397
|
shrink: [{
|
|
1403
|
-
shrink: ["", I,
|
|
1398
|
+
shrink: ["", I, w, v]
|
|
1404
1399
|
}],
|
|
1405
1400
|
/**
|
|
1406
1401
|
* Order
|
|
1407
1402
|
* @see https://tailwindcss.com/docs/order
|
|
1408
1403
|
*/
|
|
1409
1404
|
order: [{
|
|
1410
|
-
order: [te, "first", "last", "none",
|
|
1405
|
+
order: [te, "first", "last", "none", w, v]
|
|
1411
1406
|
}],
|
|
1412
1407
|
/**
|
|
1413
1408
|
* Grid Template Columns
|
|
1414
1409
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
1415
1410
|
*/
|
|
1416
1411
|
"grid-cols": [{
|
|
1417
|
-
"grid-cols":
|
|
1412
|
+
"grid-cols": T()
|
|
1418
1413
|
}],
|
|
1419
1414
|
/**
|
|
1420
1415
|
* Grid Column Start / End
|
|
1421
1416
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1422
1417
|
*/
|
|
1423
1418
|
"col-start-end": [{
|
|
1424
|
-
col:
|
|
1419
|
+
col: O()
|
|
1425
1420
|
}],
|
|
1426
1421
|
/**
|
|
1427
1422
|
* Grid Column Start
|
|
@@ -1442,14 +1437,14 @@ const cn = (e, t) => {
|
|
|
1442
1437
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
1443
1438
|
*/
|
|
1444
1439
|
"grid-rows": [{
|
|
1445
|
-
"grid-rows":
|
|
1440
|
+
"grid-rows": T()
|
|
1446
1441
|
}],
|
|
1447
1442
|
/**
|
|
1448
1443
|
* Grid Row Start / End
|
|
1449
1444
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1450
1445
|
*/
|
|
1451
1446
|
"row-start-end": [{
|
|
1452
|
-
row:
|
|
1447
|
+
row: O()
|
|
1453
1448
|
}],
|
|
1454
1449
|
/**
|
|
1455
1450
|
* Grid Row Start
|
|
@@ -1657,77 +1652,77 @@ const cn = (e, t) => {
|
|
|
1657
1652
|
* @see https://tailwindcss.com/docs/margin
|
|
1658
1653
|
*/
|
|
1659
1654
|
m: [{
|
|
1660
|
-
m:
|
|
1655
|
+
m: $()
|
|
1661
1656
|
}],
|
|
1662
1657
|
/**
|
|
1663
1658
|
* Margin Inline
|
|
1664
1659
|
* @see https://tailwindcss.com/docs/margin
|
|
1665
1660
|
*/
|
|
1666
1661
|
mx: [{
|
|
1667
|
-
mx:
|
|
1662
|
+
mx: $()
|
|
1668
1663
|
}],
|
|
1669
1664
|
/**
|
|
1670
1665
|
* Margin Block
|
|
1671
1666
|
* @see https://tailwindcss.com/docs/margin
|
|
1672
1667
|
*/
|
|
1673
1668
|
my: [{
|
|
1674
|
-
my:
|
|
1669
|
+
my: $()
|
|
1675
1670
|
}],
|
|
1676
1671
|
/**
|
|
1677
1672
|
* Margin Inline Start
|
|
1678
1673
|
* @see https://tailwindcss.com/docs/margin
|
|
1679
1674
|
*/
|
|
1680
1675
|
ms: [{
|
|
1681
|
-
ms:
|
|
1676
|
+
ms: $()
|
|
1682
1677
|
}],
|
|
1683
1678
|
/**
|
|
1684
1679
|
* Margin Inline End
|
|
1685
1680
|
* @see https://tailwindcss.com/docs/margin
|
|
1686
1681
|
*/
|
|
1687
1682
|
me: [{
|
|
1688
|
-
me:
|
|
1683
|
+
me: $()
|
|
1689
1684
|
}],
|
|
1690
1685
|
/**
|
|
1691
1686
|
* Margin Block Start
|
|
1692
1687
|
* @see https://tailwindcss.com/docs/margin
|
|
1693
1688
|
*/
|
|
1694
1689
|
mbs: [{
|
|
1695
|
-
mbs:
|
|
1690
|
+
mbs: $()
|
|
1696
1691
|
}],
|
|
1697
1692
|
/**
|
|
1698
1693
|
* Margin Block End
|
|
1699
1694
|
* @see https://tailwindcss.com/docs/margin
|
|
1700
1695
|
*/
|
|
1701
1696
|
mbe: [{
|
|
1702
|
-
mbe:
|
|
1697
|
+
mbe: $()
|
|
1703
1698
|
}],
|
|
1704
1699
|
/**
|
|
1705
1700
|
* Margin Top
|
|
1706
1701
|
* @see https://tailwindcss.com/docs/margin
|
|
1707
1702
|
*/
|
|
1708
1703
|
mt: [{
|
|
1709
|
-
mt:
|
|
1704
|
+
mt: $()
|
|
1710
1705
|
}],
|
|
1711
1706
|
/**
|
|
1712
1707
|
* Margin Right
|
|
1713
1708
|
* @see https://tailwindcss.com/docs/margin
|
|
1714
1709
|
*/
|
|
1715
1710
|
mr: [{
|
|
1716
|
-
mr:
|
|
1711
|
+
mr: $()
|
|
1717
1712
|
}],
|
|
1718
1713
|
/**
|
|
1719
1714
|
* Margin Bottom
|
|
1720
1715
|
* @see https://tailwindcss.com/docs/margin
|
|
1721
1716
|
*/
|
|
1722
1717
|
mb: [{
|
|
1723
|
-
mb:
|
|
1718
|
+
mb: $()
|
|
1724
1719
|
}],
|
|
1725
1720
|
/**
|
|
1726
1721
|
* Margin Left
|
|
1727
1722
|
* @see https://tailwindcss.com/docs/margin
|
|
1728
1723
|
*/
|
|
1729
1724
|
ml: [{
|
|
1730
|
-
ml:
|
|
1725
|
+
ml: $()
|
|
1731
1726
|
}],
|
|
1732
1727
|
/**
|
|
1733
1728
|
* Space Between X
|
|
@@ -1889,28 +1884,28 @@ const cn = (e, t) => {
|
|
|
1889
1884
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1890
1885
|
*/
|
|
1891
1886
|
"font-weight": [{
|
|
1892
|
-
font: [r,
|
|
1887
|
+
font: [r, Bn, Dn]
|
|
1893
1888
|
}],
|
|
1894
1889
|
/**
|
|
1895
1890
|
* Font Stretch
|
|
1896
1891
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1897
1892
|
*/
|
|
1898
1893
|
"font-stretch": [{
|
|
1899
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Ve,
|
|
1894
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Ve, v]
|
|
1900
1895
|
}],
|
|
1901
1896
|
/**
|
|
1902
1897
|
* Font Family
|
|
1903
1898
|
* @see https://tailwindcss.com/docs/font-family
|
|
1904
1899
|
*/
|
|
1905
1900
|
"font-family": [{
|
|
1906
|
-
font: [
|
|
1901
|
+
font: [Vn, Hn, t]
|
|
1907
1902
|
}],
|
|
1908
1903
|
/**
|
|
1909
1904
|
* Font Feature Settings
|
|
1910
1905
|
* @see https://tailwindcss.com/docs/font-feature-settings
|
|
1911
1906
|
*/
|
|
1912
1907
|
"font-features": [{
|
|
1913
|
-
"font-features": [
|
|
1908
|
+
"font-features": [v]
|
|
1914
1909
|
}],
|
|
1915
1910
|
/**
|
|
1916
1911
|
* Font Variant Numeric
|
|
@@ -1947,14 +1942,14 @@ const cn = (e, t) => {
|
|
|
1947
1942
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1948
1943
|
*/
|
|
1949
1944
|
tracking: [{
|
|
1950
|
-
tracking: [n,
|
|
1945
|
+
tracking: [n, w, v]
|
|
1951
1946
|
}],
|
|
1952
1947
|
/**
|
|
1953
1948
|
* Line Clamp
|
|
1954
1949
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1955
1950
|
*/
|
|
1956
1951
|
"line-clamp": [{
|
|
1957
|
-
"line-clamp": [I, "none",
|
|
1952
|
+
"line-clamp": [I, "none", w, vt]
|
|
1958
1953
|
}],
|
|
1959
1954
|
/**
|
|
1960
1955
|
* Line Height
|
|
@@ -1972,7 +1967,7 @@ const cn = (e, t) => {
|
|
|
1972
1967
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1973
1968
|
*/
|
|
1974
1969
|
"list-image": [{
|
|
1975
|
-
"list-image": ["none",
|
|
1970
|
+
"list-image": ["none", w, v]
|
|
1976
1971
|
}],
|
|
1977
1972
|
/**
|
|
1978
1973
|
* List Style Position
|
|
@@ -1986,7 +1981,7 @@ const cn = (e, t) => {
|
|
|
1986
1981
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1987
1982
|
*/
|
|
1988
1983
|
"list-style-type": [{
|
|
1989
|
-
list: ["disc", "decimal", "none",
|
|
1984
|
+
list: ["disc", "decimal", "none", w, v]
|
|
1990
1985
|
}],
|
|
1991
1986
|
/**
|
|
1992
1987
|
* Text Alignment
|
|
@@ -2001,14 +1996,14 @@ const cn = (e, t) => {
|
|
|
2001
1996
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
2002
1997
|
*/
|
|
2003
1998
|
"placeholder-color": [{
|
|
2004
|
-
placeholder:
|
|
1999
|
+
placeholder: E()
|
|
2005
2000
|
}],
|
|
2006
2001
|
/**
|
|
2007
2002
|
* Text Color
|
|
2008
2003
|
* @see https://tailwindcss.com/docs/text-color
|
|
2009
2004
|
*/
|
|
2010
2005
|
"text-color": [{
|
|
2011
|
-
text:
|
|
2006
|
+
text: E()
|
|
2012
2007
|
}],
|
|
2013
2008
|
/**
|
|
2014
2009
|
* Text Decoration
|
|
@@ -2027,21 +2022,21 @@ const cn = (e, t) => {
|
|
|
2027
2022
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
2028
2023
|
*/
|
|
2029
2024
|
"text-decoration-thickness": [{
|
|
2030
|
-
decoration: [I, "from-font", "auto",
|
|
2025
|
+
decoration: [I, "from-font", "auto", w, se]
|
|
2031
2026
|
}],
|
|
2032
2027
|
/**
|
|
2033
2028
|
* Text Decoration Color
|
|
2034
2029
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
2035
2030
|
*/
|
|
2036
2031
|
"text-decoration-color": [{
|
|
2037
|
-
decoration:
|
|
2032
|
+
decoration: E()
|
|
2038
2033
|
}],
|
|
2039
2034
|
/**
|
|
2040
2035
|
* Text Underline Offset
|
|
2041
2036
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
2042
2037
|
*/
|
|
2043
2038
|
"underline-offset": [{
|
|
2044
|
-
"underline-offset": [I, "auto",
|
|
2039
|
+
"underline-offset": [I, "auto", w, v]
|
|
2045
2040
|
}],
|
|
2046
2041
|
/**
|
|
2047
2042
|
* Text Transform
|
|
@@ -2072,7 +2067,7 @@ const cn = (e, t) => {
|
|
|
2072
2067
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
2073
2068
|
*/
|
|
2074
2069
|
"vertical-align": [{
|
|
2075
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
2070
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", w, v]
|
|
2076
2071
|
}],
|
|
2077
2072
|
/**
|
|
2078
2073
|
* Whitespace
|
|
@@ -2107,7 +2102,7 @@ const cn = (e, t) => {
|
|
|
2107
2102
|
* @see https://tailwindcss.com/docs/content
|
|
2108
2103
|
*/
|
|
2109
2104
|
content: [{
|
|
2110
|
-
content: ["none",
|
|
2105
|
+
content: ["none", w, v]
|
|
2111
2106
|
}],
|
|
2112
2107
|
// -------------------
|
|
2113
2108
|
// --- Backgrounds ---
|
|
@@ -2162,17 +2157,17 @@ const cn = (e, t) => {
|
|
|
2162
2157
|
bg: ["none", {
|
|
2163
2158
|
linear: [{
|
|
2164
2159
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
2165
|
-
}, te,
|
|
2166
|
-
radial: ["",
|
|
2167
|
-
conic: [te,
|
|
2168
|
-
},
|
|
2160
|
+
}, te, w, v],
|
|
2161
|
+
radial: ["", w, v],
|
|
2162
|
+
conic: [te, w, v]
|
|
2163
|
+
}, jn, Un]
|
|
2169
2164
|
}],
|
|
2170
2165
|
/**
|
|
2171
2166
|
* Background Color
|
|
2172
2167
|
* @see https://tailwindcss.com/docs/background-color
|
|
2173
2168
|
*/
|
|
2174
2169
|
"bg-color": [{
|
|
2175
|
-
bg:
|
|
2170
|
+
bg: E()
|
|
2176
2171
|
}],
|
|
2177
2172
|
/**
|
|
2178
2173
|
* Gradient Color Stops From Position
|
|
@@ -2200,21 +2195,21 @@ const cn = (e, t) => {
|
|
|
2200
2195
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2201
2196
|
*/
|
|
2202
2197
|
"gradient-from": [{
|
|
2203
|
-
from:
|
|
2198
|
+
from: E()
|
|
2204
2199
|
}],
|
|
2205
2200
|
/**
|
|
2206
2201
|
* Gradient Color Stops Via
|
|
2207
2202
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2208
2203
|
*/
|
|
2209
2204
|
"gradient-via": [{
|
|
2210
|
-
via:
|
|
2205
|
+
via: E()
|
|
2211
2206
|
}],
|
|
2212
2207
|
/**
|
|
2213
2208
|
* Gradient Color Stops To
|
|
2214
2209
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2215
2210
|
*/
|
|
2216
2211
|
"gradient-to": [{
|
|
2217
|
-
to:
|
|
2212
|
+
to: E()
|
|
2218
2213
|
}],
|
|
2219
2214
|
// ---------------
|
|
2220
2215
|
// --- Borders ---
|
|
@@ -2444,84 +2439,84 @@ const cn = (e, t) => {
|
|
|
2444
2439
|
* @see https://tailwindcss.com/docs/border-color
|
|
2445
2440
|
*/
|
|
2446
2441
|
"border-color": [{
|
|
2447
|
-
border:
|
|
2442
|
+
border: E()
|
|
2448
2443
|
}],
|
|
2449
2444
|
/**
|
|
2450
2445
|
* Border Color Inline
|
|
2451
2446
|
* @see https://tailwindcss.com/docs/border-color
|
|
2452
2447
|
*/
|
|
2453
2448
|
"border-color-x": [{
|
|
2454
|
-
"border-x":
|
|
2449
|
+
"border-x": E()
|
|
2455
2450
|
}],
|
|
2456
2451
|
/**
|
|
2457
2452
|
* Border Color Block
|
|
2458
2453
|
* @see https://tailwindcss.com/docs/border-color
|
|
2459
2454
|
*/
|
|
2460
2455
|
"border-color-y": [{
|
|
2461
|
-
"border-y":
|
|
2456
|
+
"border-y": E()
|
|
2462
2457
|
}],
|
|
2463
2458
|
/**
|
|
2464
2459
|
* Border Color Inline Start
|
|
2465
2460
|
* @see https://tailwindcss.com/docs/border-color
|
|
2466
2461
|
*/
|
|
2467
2462
|
"border-color-s": [{
|
|
2468
|
-
"border-s":
|
|
2463
|
+
"border-s": E()
|
|
2469
2464
|
}],
|
|
2470
2465
|
/**
|
|
2471
2466
|
* Border Color Inline End
|
|
2472
2467
|
* @see https://tailwindcss.com/docs/border-color
|
|
2473
2468
|
*/
|
|
2474
2469
|
"border-color-e": [{
|
|
2475
|
-
"border-e":
|
|
2470
|
+
"border-e": E()
|
|
2476
2471
|
}],
|
|
2477
2472
|
/**
|
|
2478
2473
|
* Border Color Block Start
|
|
2479
2474
|
* @see https://tailwindcss.com/docs/border-color
|
|
2480
2475
|
*/
|
|
2481
2476
|
"border-color-bs": [{
|
|
2482
|
-
"border-bs":
|
|
2477
|
+
"border-bs": E()
|
|
2483
2478
|
}],
|
|
2484
2479
|
/**
|
|
2485
2480
|
* Border Color Block End
|
|
2486
2481
|
* @see https://tailwindcss.com/docs/border-color
|
|
2487
2482
|
*/
|
|
2488
2483
|
"border-color-be": [{
|
|
2489
|
-
"border-be":
|
|
2484
|
+
"border-be": E()
|
|
2490
2485
|
}],
|
|
2491
2486
|
/**
|
|
2492
2487
|
* Border Color Top
|
|
2493
2488
|
* @see https://tailwindcss.com/docs/border-color
|
|
2494
2489
|
*/
|
|
2495
2490
|
"border-color-t": [{
|
|
2496
|
-
"border-t":
|
|
2491
|
+
"border-t": E()
|
|
2497
2492
|
}],
|
|
2498
2493
|
/**
|
|
2499
2494
|
* Border Color Right
|
|
2500
2495
|
* @see https://tailwindcss.com/docs/border-color
|
|
2501
2496
|
*/
|
|
2502
2497
|
"border-color-r": [{
|
|
2503
|
-
"border-r":
|
|
2498
|
+
"border-r": E()
|
|
2504
2499
|
}],
|
|
2505
2500
|
/**
|
|
2506
2501
|
* Border Color Bottom
|
|
2507
2502
|
* @see https://tailwindcss.com/docs/border-color
|
|
2508
2503
|
*/
|
|
2509
2504
|
"border-color-b": [{
|
|
2510
|
-
"border-b":
|
|
2505
|
+
"border-b": E()
|
|
2511
2506
|
}],
|
|
2512
2507
|
/**
|
|
2513
2508
|
* Border Color Left
|
|
2514
2509
|
* @see https://tailwindcss.com/docs/border-color
|
|
2515
2510
|
*/
|
|
2516
2511
|
"border-color-l": [{
|
|
2517
|
-
"border-l":
|
|
2512
|
+
"border-l": E()
|
|
2518
2513
|
}],
|
|
2519
2514
|
/**
|
|
2520
2515
|
* Divide Color
|
|
2521
2516
|
* @see https://tailwindcss.com/docs/divide-color
|
|
2522
2517
|
*/
|
|
2523
2518
|
"divide-color": [{
|
|
2524
|
-
divide:
|
|
2519
|
+
divide: E()
|
|
2525
2520
|
}],
|
|
2526
2521
|
/**
|
|
2527
2522
|
* Outline Style
|
|
@@ -2535,7 +2530,7 @@ const cn = (e, t) => {
|
|
|
2535
2530
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2536
2531
|
*/
|
|
2537
2532
|
"outline-offset": [{
|
|
2538
|
-
"outline-offset": [I,
|
|
2533
|
+
"outline-offset": [I, w, v]
|
|
2539
2534
|
}],
|
|
2540
2535
|
/**
|
|
2541
2536
|
* Outline Width
|
|
@@ -2549,7 +2544,7 @@ const cn = (e, t) => {
|
|
|
2549
2544
|
* @see https://tailwindcss.com/docs/outline-color
|
|
2550
2545
|
*/
|
|
2551
2546
|
"outline-color": [{
|
|
2552
|
-
outline:
|
|
2547
|
+
outline: E()
|
|
2553
2548
|
}],
|
|
2554
2549
|
// ---------------
|
|
2555
2550
|
// --- Effects ---
|
|
@@ -2573,7 +2568,7 @@ const cn = (e, t) => {
|
|
|
2573
2568
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
2574
2569
|
*/
|
|
2575
2570
|
"shadow-color": [{
|
|
2576
|
-
shadow:
|
|
2571
|
+
shadow: E()
|
|
2577
2572
|
}],
|
|
2578
2573
|
/**
|
|
2579
2574
|
* Inset Box Shadow
|
|
@@ -2587,7 +2582,7 @@ const cn = (e, t) => {
|
|
|
2587
2582
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
2588
2583
|
*/
|
|
2589
2584
|
"inset-shadow-color": [{
|
|
2590
|
-
"inset-shadow":
|
|
2585
|
+
"inset-shadow": E()
|
|
2591
2586
|
}],
|
|
2592
2587
|
/**
|
|
2593
2588
|
* Ring Width
|
|
@@ -2608,7 +2603,7 @@ const cn = (e, t) => {
|
|
|
2608
2603
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
2609
2604
|
*/
|
|
2610
2605
|
"ring-color": [{
|
|
2611
|
-
ring:
|
|
2606
|
+
ring: E()
|
|
2612
2607
|
}],
|
|
2613
2608
|
/**
|
|
2614
2609
|
* Ring Offset Width
|
|
@@ -2626,7 +2621,7 @@ const cn = (e, t) => {
|
|
|
2626
2621
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2627
2622
|
*/
|
|
2628
2623
|
"ring-offset-color": [{
|
|
2629
|
-
"ring-offset":
|
|
2624
|
+
"ring-offset": E()
|
|
2630
2625
|
}],
|
|
2631
2626
|
/**
|
|
2632
2627
|
* Inset Ring Width
|
|
@@ -2640,7 +2635,7 @@ const cn = (e, t) => {
|
|
|
2640
2635
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
2641
2636
|
*/
|
|
2642
2637
|
"inset-ring-color": [{
|
|
2643
|
-
"inset-ring":
|
|
2638
|
+
"inset-ring": E()
|
|
2644
2639
|
}],
|
|
2645
2640
|
/**
|
|
2646
2641
|
* Text Shadow
|
|
@@ -2654,14 +2649,14 @@ const cn = (e, t) => {
|
|
|
2654
2649
|
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
2655
2650
|
*/
|
|
2656
2651
|
"text-shadow-color": [{
|
|
2657
|
-
"text-shadow":
|
|
2652
|
+
"text-shadow": E()
|
|
2658
2653
|
}],
|
|
2659
2654
|
/**
|
|
2660
2655
|
* Opacity
|
|
2661
2656
|
* @see https://tailwindcss.com/docs/opacity
|
|
2662
2657
|
*/
|
|
2663
2658
|
opacity: [{
|
|
2664
|
-
opacity: [I,
|
|
2659
|
+
opacity: [I, w, v]
|
|
2665
2660
|
}],
|
|
2666
2661
|
/**
|
|
2667
2662
|
* Mix Blend Mode
|
|
@@ -2699,103 +2694,103 @@ const cn = (e, t) => {
|
|
|
2699
2694
|
"mask-linear": [I]
|
|
2700
2695
|
}],
|
|
2701
2696
|
"mask-image-linear-from-pos": [{
|
|
2702
|
-
"mask-linear-from":
|
|
2697
|
+
"mask-linear-from": D()
|
|
2703
2698
|
}],
|
|
2704
2699
|
"mask-image-linear-to-pos": [{
|
|
2705
|
-
"mask-linear-to":
|
|
2700
|
+
"mask-linear-to": D()
|
|
2706
2701
|
}],
|
|
2707
2702
|
"mask-image-linear-from-color": [{
|
|
2708
|
-
"mask-linear-from":
|
|
2703
|
+
"mask-linear-from": E()
|
|
2709
2704
|
}],
|
|
2710
2705
|
"mask-image-linear-to-color": [{
|
|
2711
|
-
"mask-linear-to":
|
|
2706
|
+
"mask-linear-to": E()
|
|
2712
2707
|
}],
|
|
2713
2708
|
"mask-image-t-from-pos": [{
|
|
2714
|
-
"mask-t-from":
|
|
2709
|
+
"mask-t-from": D()
|
|
2715
2710
|
}],
|
|
2716
2711
|
"mask-image-t-to-pos": [{
|
|
2717
|
-
"mask-t-to":
|
|
2712
|
+
"mask-t-to": D()
|
|
2718
2713
|
}],
|
|
2719
2714
|
"mask-image-t-from-color": [{
|
|
2720
|
-
"mask-t-from":
|
|
2715
|
+
"mask-t-from": E()
|
|
2721
2716
|
}],
|
|
2722
2717
|
"mask-image-t-to-color": [{
|
|
2723
|
-
"mask-t-to":
|
|
2718
|
+
"mask-t-to": E()
|
|
2724
2719
|
}],
|
|
2725
2720
|
"mask-image-r-from-pos": [{
|
|
2726
|
-
"mask-r-from":
|
|
2721
|
+
"mask-r-from": D()
|
|
2727
2722
|
}],
|
|
2728
2723
|
"mask-image-r-to-pos": [{
|
|
2729
|
-
"mask-r-to":
|
|
2724
|
+
"mask-r-to": D()
|
|
2730
2725
|
}],
|
|
2731
2726
|
"mask-image-r-from-color": [{
|
|
2732
|
-
"mask-r-from":
|
|
2727
|
+
"mask-r-from": E()
|
|
2733
2728
|
}],
|
|
2734
2729
|
"mask-image-r-to-color": [{
|
|
2735
|
-
"mask-r-to":
|
|
2730
|
+
"mask-r-to": E()
|
|
2736
2731
|
}],
|
|
2737
2732
|
"mask-image-b-from-pos": [{
|
|
2738
|
-
"mask-b-from":
|
|
2733
|
+
"mask-b-from": D()
|
|
2739
2734
|
}],
|
|
2740
2735
|
"mask-image-b-to-pos": [{
|
|
2741
|
-
"mask-b-to":
|
|
2736
|
+
"mask-b-to": D()
|
|
2742
2737
|
}],
|
|
2743
2738
|
"mask-image-b-from-color": [{
|
|
2744
|
-
"mask-b-from":
|
|
2739
|
+
"mask-b-from": E()
|
|
2745
2740
|
}],
|
|
2746
2741
|
"mask-image-b-to-color": [{
|
|
2747
|
-
"mask-b-to":
|
|
2742
|
+
"mask-b-to": E()
|
|
2748
2743
|
}],
|
|
2749
2744
|
"mask-image-l-from-pos": [{
|
|
2750
|
-
"mask-l-from":
|
|
2745
|
+
"mask-l-from": D()
|
|
2751
2746
|
}],
|
|
2752
2747
|
"mask-image-l-to-pos": [{
|
|
2753
|
-
"mask-l-to":
|
|
2748
|
+
"mask-l-to": D()
|
|
2754
2749
|
}],
|
|
2755
2750
|
"mask-image-l-from-color": [{
|
|
2756
|
-
"mask-l-from":
|
|
2751
|
+
"mask-l-from": E()
|
|
2757
2752
|
}],
|
|
2758
2753
|
"mask-image-l-to-color": [{
|
|
2759
|
-
"mask-l-to":
|
|
2754
|
+
"mask-l-to": E()
|
|
2760
2755
|
}],
|
|
2761
2756
|
"mask-image-x-from-pos": [{
|
|
2762
|
-
"mask-x-from":
|
|
2757
|
+
"mask-x-from": D()
|
|
2763
2758
|
}],
|
|
2764
2759
|
"mask-image-x-to-pos": [{
|
|
2765
|
-
"mask-x-to":
|
|
2760
|
+
"mask-x-to": D()
|
|
2766
2761
|
}],
|
|
2767
2762
|
"mask-image-x-from-color": [{
|
|
2768
|
-
"mask-x-from":
|
|
2763
|
+
"mask-x-from": E()
|
|
2769
2764
|
}],
|
|
2770
2765
|
"mask-image-x-to-color": [{
|
|
2771
|
-
"mask-x-to":
|
|
2766
|
+
"mask-x-to": E()
|
|
2772
2767
|
}],
|
|
2773
2768
|
"mask-image-y-from-pos": [{
|
|
2774
|
-
"mask-y-from":
|
|
2769
|
+
"mask-y-from": D()
|
|
2775
2770
|
}],
|
|
2776
2771
|
"mask-image-y-to-pos": [{
|
|
2777
|
-
"mask-y-to":
|
|
2772
|
+
"mask-y-to": D()
|
|
2778
2773
|
}],
|
|
2779
2774
|
"mask-image-y-from-color": [{
|
|
2780
|
-
"mask-y-from":
|
|
2775
|
+
"mask-y-from": E()
|
|
2781
2776
|
}],
|
|
2782
2777
|
"mask-image-y-to-color": [{
|
|
2783
|
-
"mask-y-to":
|
|
2778
|
+
"mask-y-to": E()
|
|
2784
2779
|
}],
|
|
2785
2780
|
"mask-image-radial": [{
|
|
2786
|
-
"mask-radial": [
|
|
2781
|
+
"mask-radial": [w, v]
|
|
2787
2782
|
}],
|
|
2788
2783
|
"mask-image-radial-from-pos": [{
|
|
2789
|
-
"mask-radial-from":
|
|
2784
|
+
"mask-radial-from": D()
|
|
2790
2785
|
}],
|
|
2791
2786
|
"mask-image-radial-to-pos": [{
|
|
2792
|
-
"mask-radial-to":
|
|
2787
|
+
"mask-radial-to": D()
|
|
2793
2788
|
}],
|
|
2794
2789
|
"mask-image-radial-from-color": [{
|
|
2795
|
-
"mask-radial-from":
|
|
2790
|
+
"mask-radial-from": E()
|
|
2796
2791
|
}],
|
|
2797
2792
|
"mask-image-radial-to-color": [{
|
|
2798
|
-
"mask-radial-to":
|
|
2793
|
+
"mask-radial-to": E()
|
|
2799
2794
|
}],
|
|
2800
2795
|
"mask-image-radial-shape": [{
|
|
2801
2796
|
"mask-radial": ["circle", "ellipse"]
|
|
@@ -2813,16 +2808,16 @@ const cn = (e, t) => {
|
|
|
2813
2808
|
"mask-conic": [I]
|
|
2814
2809
|
}],
|
|
2815
2810
|
"mask-image-conic-from-pos": [{
|
|
2816
|
-
"mask-conic-from":
|
|
2811
|
+
"mask-conic-from": D()
|
|
2817
2812
|
}],
|
|
2818
2813
|
"mask-image-conic-to-pos": [{
|
|
2819
|
-
"mask-conic-to":
|
|
2814
|
+
"mask-conic-to": D()
|
|
2820
2815
|
}],
|
|
2821
2816
|
"mask-image-conic-from-color": [{
|
|
2822
|
-
"mask-conic-from":
|
|
2817
|
+
"mask-conic-from": E()
|
|
2823
2818
|
}],
|
|
2824
2819
|
"mask-image-conic-to-color": [{
|
|
2825
|
-
"mask-conic-to":
|
|
2820
|
+
"mask-conic-to": E()
|
|
2826
2821
|
}],
|
|
2827
2822
|
/**
|
|
2828
2823
|
* Mask Mode
|
|
@@ -2871,7 +2866,7 @@ const cn = (e, t) => {
|
|
|
2871
2866
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2872
2867
|
*/
|
|
2873
2868
|
"mask-image": [{
|
|
2874
|
-
mask: ["none",
|
|
2869
|
+
mask: ["none", w, v]
|
|
2875
2870
|
}],
|
|
2876
2871
|
// ---------------
|
|
2877
2872
|
// --- Filters ---
|
|
@@ -2885,8 +2880,8 @@ const cn = (e, t) => {
|
|
|
2885
2880
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2886
2881
|
"",
|
|
2887
2882
|
"none",
|
|
2888
|
-
|
|
2889
|
-
|
|
2883
|
+
w,
|
|
2884
|
+
v
|
|
2890
2885
|
]
|
|
2891
2886
|
}],
|
|
2892
2887
|
/**
|
|
@@ -2901,14 +2896,14 @@ const cn = (e, t) => {
|
|
|
2901
2896
|
* @see https://tailwindcss.com/docs/brightness
|
|
2902
2897
|
*/
|
|
2903
2898
|
brightness: [{
|
|
2904
|
-
brightness: [I,
|
|
2899
|
+
brightness: [I, w, v]
|
|
2905
2900
|
}],
|
|
2906
2901
|
/**
|
|
2907
2902
|
* Contrast
|
|
2908
2903
|
* @see https://tailwindcss.com/docs/contrast
|
|
2909
2904
|
*/
|
|
2910
2905
|
contrast: [{
|
|
2911
|
-
contrast: [I,
|
|
2906
|
+
contrast: [I, w, v]
|
|
2912
2907
|
}],
|
|
2913
2908
|
/**
|
|
2914
2909
|
* Drop Shadow
|
|
@@ -2919,7 +2914,7 @@ const cn = (e, t) => {
|
|
|
2919
2914
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2920
2915
|
"",
|
|
2921
2916
|
"none",
|
|
2922
|
-
|
|
2917
|
+
b,
|
|
2923
2918
|
Ne,
|
|
2924
2919
|
Ce
|
|
2925
2920
|
]
|
|
@@ -2929,42 +2924,42 @@ const cn = (e, t) => {
|
|
|
2929
2924
|
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
2930
2925
|
*/
|
|
2931
2926
|
"drop-shadow-color": [{
|
|
2932
|
-
"drop-shadow":
|
|
2927
|
+
"drop-shadow": E()
|
|
2933
2928
|
}],
|
|
2934
2929
|
/**
|
|
2935
2930
|
* Grayscale
|
|
2936
2931
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2937
2932
|
*/
|
|
2938
2933
|
grayscale: [{
|
|
2939
|
-
grayscale: ["", I,
|
|
2934
|
+
grayscale: ["", I, w, v]
|
|
2940
2935
|
}],
|
|
2941
2936
|
/**
|
|
2942
2937
|
* Hue Rotate
|
|
2943
2938
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2944
2939
|
*/
|
|
2945
2940
|
"hue-rotate": [{
|
|
2946
|
-
"hue-rotate": [I,
|
|
2941
|
+
"hue-rotate": [I, w, v]
|
|
2947
2942
|
}],
|
|
2948
2943
|
/**
|
|
2949
2944
|
* Invert
|
|
2950
2945
|
* @see https://tailwindcss.com/docs/invert
|
|
2951
2946
|
*/
|
|
2952
2947
|
invert: [{
|
|
2953
|
-
invert: ["", I,
|
|
2948
|
+
invert: ["", I, w, v]
|
|
2954
2949
|
}],
|
|
2955
2950
|
/**
|
|
2956
2951
|
* Saturate
|
|
2957
2952
|
* @see https://tailwindcss.com/docs/saturate
|
|
2958
2953
|
*/
|
|
2959
2954
|
saturate: [{
|
|
2960
|
-
saturate: [I,
|
|
2955
|
+
saturate: [I, w, v]
|
|
2961
2956
|
}],
|
|
2962
2957
|
/**
|
|
2963
2958
|
* Sepia
|
|
2964
2959
|
* @see https://tailwindcss.com/docs/sepia
|
|
2965
2960
|
*/
|
|
2966
2961
|
sepia: [{
|
|
2967
|
-
sepia: ["", I,
|
|
2962
|
+
sepia: ["", I, w, v]
|
|
2968
2963
|
}],
|
|
2969
2964
|
/**
|
|
2970
2965
|
* Backdrop Filter
|
|
@@ -2975,8 +2970,8 @@ const cn = (e, t) => {
|
|
|
2975
2970
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2976
2971
|
"",
|
|
2977
2972
|
"none",
|
|
2978
|
-
|
|
2979
|
-
|
|
2973
|
+
w,
|
|
2974
|
+
v
|
|
2980
2975
|
]
|
|
2981
2976
|
}],
|
|
2982
2977
|
/**
|
|
@@ -2991,56 +2986,56 @@ const cn = (e, t) => {
|
|
|
2991
2986
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2992
2987
|
*/
|
|
2993
2988
|
"backdrop-brightness": [{
|
|
2994
|
-
"backdrop-brightness": [I,
|
|
2989
|
+
"backdrop-brightness": [I, w, v]
|
|
2995
2990
|
}],
|
|
2996
2991
|
/**
|
|
2997
2992
|
* Backdrop Contrast
|
|
2998
2993
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2999
2994
|
*/
|
|
3000
2995
|
"backdrop-contrast": [{
|
|
3001
|
-
"backdrop-contrast": [I,
|
|
2996
|
+
"backdrop-contrast": [I, w, v]
|
|
3002
2997
|
}],
|
|
3003
2998
|
/**
|
|
3004
2999
|
* Backdrop Grayscale
|
|
3005
3000
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
3006
3001
|
*/
|
|
3007
3002
|
"backdrop-grayscale": [{
|
|
3008
|
-
"backdrop-grayscale": ["", I,
|
|
3003
|
+
"backdrop-grayscale": ["", I, w, v]
|
|
3009
3004
|
}],
|
|
3010
3005
|
/**
|
|
3011
3006
|
* Backdrop Hue Rotate
|
|
3012
3007
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
3013
3008
|
*/
|
|
3014
3009
|
"backdrop-hue-rotate": [{
|
|
3015
|
-
"backdrop-hue-rotate": [I,
|
|
3010
|
+
"backdrop-hue-rotate": [I, w, v]
|
|
3016
3011
|
}],
|
|
3017
3012
|
/**
|
|
3018
3013
|
* Backdrop Invert
|
|
3019
3014
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
3020
3015
|
*/
|
|
3021
3016
|
"backdrop-invert": [{
|
|
3022
|
-
"backdrop-invert": ["", I,
|
|
3017
|
+
"backdrop-invert": ["", I, w, v]
|
|
3023
3018
|
}],
|
|
3024
3019
|
/**
|
|
3025
3020
|
* Backdrop Opacity
|
|
3026
3021
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
3027
3022
|
*/
|
|
3028
3023
|
"backdrop-opacity": [{
|
|
3029
|
-
"backdrop-opacity": [I,
|
|
3024
|
+
"backdrop-opacity": [I, w, v]
|
|
3030
3025
|
}],
|
|
3031
3026
|
/**
|
|
3032
3027
|
* Backdrop Saturate
|
|
3033
3028
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
3034
3029
|
*/
|
|
3035
3030
|
"backdrop-saturate": [{
|
|
3036
|
-
"backdrop-saturate": [I,
|
|
3031
|
+
"backdrop-saturate": [I, w, v]
|
|
3037
3032
|
}],
|
|
3038
3033
|
/**
|
|
3039
3034
|
* Backdrop Sepia
|
|
3040
3035
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
3041
3036
|
*/
|
|
3042
3037
|
"backdrop-sepia": [{
|
|
3043
|
-
"backdrop-sepia": ["", I,
|
|
3038
|
+
"backdrop-sepia": ["", I, w, v]
|
|
3044
3039
|
}],
|
|
3045
3040
|
// --------------
|
|
3046
3041
|
// --- Tables ---
|
|
@@ -3095,7 +3090,7 @@ const cn = (e, t) => {
|
|
|
3095
3090
|
* @see https://tailwindcss.com/docs/transition-property
|
|
3096
3091
|
*/
|
|
3097
3092
|
transition: [{
|
|
3098
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
3093
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", w, v]
|
|
3099
3094
|
}],
|
|
3100
3095
|
/**
|
|
3101
3096
|
* Transition Behavior
|
|
@@ -3109,28 +3104,28 @@ const cn = (e, t) => {
|
|
|
3109
3104
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
3110
3105
|
*/
|
|
3111
3106
|
duration: [{
|
|
3112
|
-
duration: [I, "initial",
|
|
3107
|
+
duration: [I, "initial", w, v]
|
|
3113
3108
|
}],
|
|
3114
3109
|
/**
|
|
3115
3110
|
* Transition Timing Function
|
|
3116
3111
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
3117
3112
|
*/
|
|
3118
3113
|
ease: [{
|
|
3119
|
-
ease: ["linear", "initial", y,
|
|
3114
|
+
ease: ["linear", "initial", y, w, v]
|
|
3120
3115
|
}],
|
|
3121
3116
|
/**
|
|
3122
3117
|
* Transition Delay
|
|
3123
3118
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
3124
3119
|
*/
|
|
3125
3120
|
delay: [{
|
|
3126
|
-
delay: [I,
|
|
3121
|
+
delay: [I, w, v]
|
|
3127
3122
|
}],
|
|
3128
3123
|
/**
|
|
3129
3124
|
* Animation
|
|
3130
3125
|
* @see https://tailwindcss.com/docs/animation
|
|
3131
3126
|
*/
|
|
3132
3127
|
animate: [{
|
|
3133
|
-
animate: ["none", R,
|
|
3128
|
+
animate: ["none", R, w, v]
|
|
3134
3129
|
}],
|
|
3135
3130
|
// ------------------
|
|
3136
3131
|
// --- Transforms ---
|
|
@@ -3147,7 +3142,7 @@ const cn = (e, t) => {
|
|
|
3147
3142
|
* @see https://tailwindcss.com/docs/perspective
|
|
3148
3143
|
*/
|
|
3149
3144
|
perspective: [{
|
|
3150
|
-
perspective: [
|
|
3145
|
+
perspective: [x, w, v]
|
|
3151
3146
|
}],
|
|
3152
3147
|
/**
|
|
3153
3148
|
* Perspective Origin
|
|
@@ -3243,7 +3238,7 @@ const cn = (e, t) => {
|
|
|
3243
3238
|
* @see https://tailwindcss.com/docs/transform
|
|
3244
3239
|
*/
|
|
3245
3240
|
transform: [{
|
|
3246
|
-
transform: [
|
|
3241
|
+
transform: [w, v, "", "none", "gpu", "cpu"]
|
|
3247
3242
|
}],
|
|
3248
3243
|
/**
|
|
3249
3244
|
* Transform Origin
|
|
@@ -3300,7 +3295,7 @@ const cn = (e, t) => {
|
|
|
3300
3295
|
* @see https://tailwindcss.com/docs/accent-color
|
|
3301
3296
|
*/
|
|
3302
3297
|
accent: [{
|
|
3303
|
-
accent:
|
|
3298
|
+
accent: E()
|
|
3304
3299
|
}],
|
|
3305
3300
|
/**
|
|
3306
3301
|
* Appearance
|
|
@@ -3314,7 +3309,7 @@ const cn = (e, t) => {
|
|
|
3314
3309
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
3315
3310
|
*/
|
|
3316
3311
|
"caret-color": [{
|
|
3317
|
-
caret:
|
|
3312
|
+
caret: E()
|
|
3318
3313
|
}],
|
|
3319
3314
|
/**
|
|
3320
3315
|
* Color Scheme
|
|
@@ -3328,7 +3323,7 @@ const cn = (e, t) => {
|
|
|
3328
3323
|
* @see https://tailwindcss.com/docs/cursor
|
|
3329
3324
|
*/
|
|
3330
3325
|
cursor: [{
|
|
3331
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
3326
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", w, v]
|
|
3332
3327
|
}],
|
|
3333
3328
|
/**
|
|
3334
3329
|
* Field Sizing
|
|
@@ -3578,7 +3573,7 @@ const cn = (e, t) => {
|
|
|
3578
3573
|
* @see https://tailwindcss.com/docs/will-change
|
|
3579
3574
|
*/
|
|
3580
3575
|
"will-change": [{
|
|
3581
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
3576
|
+
"will-change": ["auto", "scroll", "contents", "transform", w, v]
|
|
3582
3577
|
}],
|
|
3583
3578
|
// -----------
|
|
3584
3579
|
// --- SVG ---
|
|
@@ -3588,7 +3583,7 @@ const cn = (e, t) => {
|
|
|
3588
3583
|
* @see https://tailwindcss.com/docs/fill
|
|
3589
3584
|
*/
|
|
3590
3585
|
fill: [{
|
|
3591
|
-
fill: ["none", ...
|
|
3586
|
+
fill: ["none", ...E()]
|
|
3592
3587
|
}],
|
|
3593
3588
|
/**
|
|
3594
3589
|
* Stroke Width
|
|
@@ -3602,7 +3597,7 @@ const cn = (e, t) => {
|
|
|
3602
3597
|
* @see https://tailwindcss.com/docs/stroke
|
|
3603
3598
|
*/
|
|
3604
3599
|
stroke: [{
|
|
3605
|
-
stroke: ["none", ...
|
|
3600
|
+
stroke: ["none", ...E()]
|
|
3606
3601
|
}],
|
|
3607
3602
|
// ---------------------
|
|
3608
3603
|
// --- Accessibility ---
|
|
@@ -3670,7 +3665,7 @@ const cn = (e, t) => {
|
|
|
3670
3665
|
},
|
|
3671
3666
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3672
3667
|
};
|
|
3673
|
-
},
|
|
3668
|
+
}, Yn = /* @__PURE__ */ En(qn), z = (...e) => Yn(Ut(e));
|
|
3674
3669
|
function me({ className: e, ...t }) {
|
|
3675
3670
|
return /* @__PURE__ */ c(
|
|
3676
3671
|
"div",
|
|
@@ -3684,7 +3679,7 @@ function me({ className: e, ...t }) {
|
|
|
3684
3679
|
}
|
|
3685
3680
|
);
|
|
3686
3681
|
}
|
|
3687
|
-
function
|
|
3682
|
+
function Xn({ className: e, ...t }) {
|
|
3688
3683
|
return /* @__PURE__ */ c(
|
|
3689
3684
|
"div",
|
|
3690
3685
|
{
|
|
@@ -3707,7 +3702,7 @@ function pe({ className: e, ...t }) {
|
|
|
3707
3702
|
}
|
|
3708
3703
|
);
|
|
3709
3704
|
}
|
|
3710
|
-
const yt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kt =
|
|
3705
|
+
const yt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kt = Ut, ot = (e, t) => (o) => {
|
|
3711
3706
|
var r;
|
|
3712
3707
|
if ((t == null ? void 0 : t.variants) == null) return kt(e, o == null ? void 0 : o.class, o == null ? void 0 : o.className);
|
|
3713
3708
|
const { variants: n, defaultVariants: s } = t, a = Object.keys(n).map((d) => {
|
|
@@ -3719,16 +3714,16 @@ const yt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, kt = Vt, o
|
|
|
3719
3714
|
let [f, p] = u;
|
|
3720
3715
|
return p === void 0 || (d[f] = p), d;
|
|
3721
3716
|
}, {}), l = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((d, u) => {
|
|
3722
|
-
let { class: f, className: p, ...
|
|
3723
|
-
return Object.entries(
|
|
3724
|
-
let [
|
|
3725
|
-
return Array.isArray(
|
|
3717
|
+
let { class: f, className: p, ...b } = u;
|
|
3718
|
+
return Object.entries(b).every((S) => {
|
|
3719
|
+
let [x, h] = S;
|
|
3720
|
+
return Array.isArray(h) ? h.includes({
|
|
3726
3721
|
...s,
|
|
3727
3722
|
...i
|
|
3728
|
-
}[
|
|
3723
|
+
}[x]) : {
|
|
3729
3724
|
...s,
|
|
3730
3725
|
...i
|
|
3731
|
-
}[
|
|
3726
|
+
}[x] === h;
|
|
3732
3727
|
}) ? [
|
|
3733
3728
|
...d,
|
|
3734
3729
|
f,
|
|
@@ -3742,7 +3737,7 @@ function St(e, t) {
|
|
|
3742
3737
|
return e(t);
|
|
3743
3738
|
e != null && (e.current = t);
|
|
3744
3739
|
}
|
|
3745
|
-
function
|
|
3740
|
+
function oo(...e) {
|
|
3746
3741
|
return (t) => {
|
|
3747
3742
|
let o = !1;
|
|
3748
3743
|
const r = e.map((n) => {
|
|
@@ -3759,12 +3754,12 @@ function ro(...e) {
|
|
|
3759
3754
|
};
|
|
3760
3755
|
}
|
|
3761
3756
|
function Y(...e) {
|
|
3762
|
-
return m.useCallback(
|
|
3757
|
+
return m.useCallback(oo(...e), e);
|
|
3763
3758
|
}
|
|
3764
3759
|
// @__NO_SIDE_EFFECTS__
|
|
3765
3760
|
function Pe(e) {
|
|
3766
|
-
const t = /* @__PURE__ */
|
|
3767
|
-
const { children: s, ...a } = r, i = m.Children.toArray(s), l = i.find(
|
|
3761
|
+
const t = /* @__PURE__ */ Kn(e), o = m.forwardRef((r, n) => {
|
|
3762
|
+
const { children: s, ...a } = r, i = m.Children.toArray(s), l = i.find(Jn);
|
|
3768
3763
|
if (l) {
|
|
3769
3764
|
const d = l.props.children, u = i.map((f) => f === l ? m.Children.count(d) > 1 ? m.Children.only(null) : m.isValidElement(d) ? d.props.children : null : f);
|
|
3770
3765
|
return /* @__PURE__ */ c(t, { ...a, ref: n, children: m.isValidElement(d) ? m.cloneElement(d, void 0, u) : null });
|
|
@@ -3773,24 +3768,24 @@ function Pe(e) {
|
|
|
3773
3768
|
});
|
|
3774
3769
|
return o.displayName = `${e}.Slot`, o;
|
|
3775
3770
|
}
|
|
3776
|
-
var
|
|
3771
|
+
var ro = /* @__PURE__ */ Pe("Slot");
|
|
3777
3772
|
// @__NO_SIDE_EFFECTS__
|
|
3778
|
-
function
|
|
3773
|
+
function Kn(e) {
|
|
3779
3774
|
const t = m.forwardRef((o, r) => {
|
|
3780
3775
|
const { children: n, ...s } = o;
|
|
3781
3776
|
if (m.isValidElement(n)) {
|
|
3782
|
-
const a =
|
|
3783
|
-
return n.type !== m.Fragment && (i.ref = r ?
|
|
3777
|
+
const a = es(n), i = Qn(s, n.props);
|
|
3778
|
+
return n.type !== m.Fragment && (i.ref = r ? oo(r, a) : a), m.cloneElement(n, i);
|
|
3784
3779
|
}
|
|
3785
3780
|
return m.Children.count(n) > 1 ? m.Children.only(null) : null;
|
|
3786
3781
|
});
|
|
3787
3782
|
return t.displayName = `${e}.SlotClone`, t;
|
|
3788
3783
|
}
|
|
3789
|
-
var
|
|
3790
|
-
function
|
|
3791
|
-
return m.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
3784
|
+
var Zn = Symbol("radix.slottable");
|
|
3785
|
+
function Jn(e) {
|
|
3786
|
+
return m.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Zn;
|
|
3792
3787
|
}
|
|
3793
|
-
function
|
|
3788
|
+
function Qn(e, t) {
|
|
3794
3789
|
const o = { ...t };
|
|
3795
3790
|
for (const r in t) {
|
|
3796
3791
|
const n = e[r], s = t[r];
|
|
@@ -3801,12 +3796,12 @@ function os(e, t) {
|
|
|
3801
3796
|
}
|
|
3802
3797
|
return { ...e, ...o };
|
|
3803
3798
|
}
|
|
3804
|
-
function
|
|
3799
|
+
function es(e) {
|
|
3805
3800
|
var r, n;
|
|
3806
3801
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
3807
3802
|
return o ? e.ref : (t = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
|
3808
3803
|
}
|
|
3809
|
-
var
|
|
3804
|
+
var ts = [
|
|
3810
3805
|
"a",
|
|
3811
3806
|
"button",
|
|
3812
3807
|
"div",
|
|
@@ -3824,7 +3819,7 @@ var ns = [
|
|
|
3824
3819
|
"span",
|
|
3825
3820
|
"svg",
|
|
3826
3821
|
"ul"
|
|
3827
|
-
], W =
|
|
3822
|
+
], W = ts.reduce((e, t) => {
|
|
3828
3823
|
const o = /* @__PURE__ */ Pe(`Primitive.${t}`), r = m.forwardRef((n, s) => {
|
|
3829
3824
|
const { asChild: a, ...i } = n, l = a ? o : t;
|
|
3830
3825
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c(l, { ...i, ref: s });
|
|
@@ -3838,13 +3833,13 @@ function he(e, t = []) {
|
|
|
3838
3833
|
o = [...o, a];
|
|
3839
3834
|
const d = (f) => {
|
|
3840
3835
|
var y;
|
|
3841
|
-
const { scope: p, children:
|
|
3842
|
-
return /* @__PURE__ */ c(
|
|
3836
|
+
const { scope: p, children: b, ...S } = f, x = ((y = p == null ? void 0 : p[e]) == null ? void 0 : y[l]) || i, h = m.useMemo(() => S, Object.values(S));
|
|
3837
|
+
return /* @__PURE__ */ c(x.Provider, { value: h, children: b });
|
|
3843
3838
|
};
|
|
3844
3839
|
d.displayName = s + "Provider";
|
|
3845
3840
|
function u(f, p) {
|
|
3846
|
-
var
|
|
3847
|
-
const
|
|
3841
|
+
var x;
|
|
3842
|
+
const b = ((x = p == null ? void 0 : p[e]) == null ? void 0 : x[l]) || i, S = m.useContext(b);
|
|
3848
3843
|
if (S) return S;
|
|
3849
3844
|
if (a !== void 0) return a;
|
|
3850
3845
|
throw new Error(`\`${f}\` must be used within \`${s}\``);
|
|
@@ -3861,9 +3856,9 @@ function he(e, t = []) {
|
|
|
3861
3856
|
);
|
|
3862
3857
|
};
|
|
3863
3858
|
};
|
|
3864
|
-
return n.scopeName = e, [r,
|
|
3859
|
+
return n.scopeName = e, [r, os(n, ...t)];
|
|
3865
3860
|
}
|
|
3866
|
-
function
|
|
3861
|
+
function os(...e) {
|
|
3867
3862
|
const t = e[0];
|
|
3868
3863
|
if (e.length === 1) return t;
|
|
3869
3864
|
const o = () => {
|
|
@@ -3881,62 +3876,62 @@ function ss(...e) {
|
|
|
3881
3876
|
};
|
|
3882
3877
|
return o.scopeName = t.scopeName, o;
|
|
3883
3878
|
}
|
|
3884
|
-
function
|
|
3879
|
+
function rs(e) {
|
|
3885
3880
|
const t = e + "CollectionProvider", [o, r] = he(t), [n, s] = o(
|
|
3886
3881
|
t,
|
|
3887
3882
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
3888
|
-
), a = (
|
|
3889
|
-
const { scope:
|
|
3890
|
-
return /* @__PURE__ */ c(n, { scope:
|
|
3883
|
+
), a = (x) => {
|
|
3884
|
+
const { scope: h, children: y } = x, R = j.useRef(null), C = j.useRef(/* @__PURE__ */ new Map()).current;
|
|
3885
|
+
return /* @__PURE__ */ c(n, { scope: h, itemMap: C, collectionRef: R, children: y });
|
|
3891
3886
|
};
|
|
3892
3887
|
a.displayName = t;
|
|
3893
3888
|
const i = e + "CollectionSlot", l = /* @__PURE__ */ Pe(i), d = j.forwardRef(
|
|
3894
|
-
(
|
|
3895
|
-
const { scope: y, children: R } =
|
|
3889
|
+
(x, h) => {
|
|
3890
|
+
const { scope: y, children: R } = x, C = s(i, y), A = Y(h, C.collectionRef);
|
|
3896
3891
|
return /* @__PURE__ */ c(l, { ref: A, children: R });
|
|
3897
3892
|
}
|
|
3898
3893
|
);
|
|
3899
3894
|
d.displayName = i;
|
|
3900
|
-
const u = e + "CollectionItemSlot", f = "data-radix-collection-item", p = /* @__PURE__ */ Pe(u),
|
|
3901
|
-
(
|
|
3902
|
-
const { scope: y, children: R, ...
|
|
3903
|
-
return j.useEffect(() => (
|
|
3895
|
+
const u = e + "CollectionItemSlot", f = "data-radix-collection-item", p = /* @__PURE__ */ Pe(u), b = j.forwardRef(
|
|
3896
|
+
(x, h) => {
|
|
3897
|
+
const { scope: y, children: R, ...C } = x, A = j.useRef(null), P = Y(h, A), N = s(u, y);
|
|
3898
|
+
return j.useEffect(() => (N.itemMap.set(A, { ref: A, ...C }), () => void N.itemMap.delete(A))), /* @__PURE__ */ c(p, { [f]: "", ref: P, children: R });
|
|
3904
3899
|
}
|
|
3905
3900
|
);
|
|
3906
|
-
|
|
3907
|
-
function S(
|
|
3908
|
-
const
|
|
3901
|
+
b.displayName = u;
|
|
3902
|
+
function S(x) {
|
|
3903
|
+
const h = s(e + "CollectionConsumer", x);
|
|
3909
3904
|
return j.useCallback(() => {
|
|
3910
|
-
const R =
|
|
3905
|
+
const R = h.collectionRef.current;
|
|
3911
3906
|
if (!R) return [];
|
|
3912
|
-
const
|
|
3913
|
-
return Array.from(
|
|
3914
|
-
(
|
|
3907
|
+
const C = Array.from(R.querySelectorAll(`[${f}]`));
|
|
3908
|
+
return Array.from(h.itemMap.values()).sort(
|
|
3909
|
+
(N, _) => C.indexOf(N.ref.current) - C.indexOf(_.ref.current)
|
|
3915
3910
|
);
|
|
3916
|
-
}, [
|
|
3911
|
+
}, [h.collectionRef, h.itemMap]);
|
|
3917
3912
|
}
|
|
3918
3913
|
return [
|
|
3919
|
-
{ Provider: a, Slot: d, ItemSlot:
|
|
3914
|
+
{ Provider: a, Slot: d, ItemSlot: b },
|
|
3920
3915
|
S,
|
|
3921
3916
|
r
|
|
3922
3917
|
];
|
|
3923
3918
|
}
|
|
3924
|
-
function
|
|
3919
|
+
function H(e, t, { checkForDefaultPrevented: o = !0 } = {}) {
|
|
3925
3920
|
return function(n) {
|
|
3926
3921
|
if (e == null || e(n), o === !1 || !n.defaultPrevented)
|
|
3927
3922
|
return t == null ? void 0 : t(n);
|
|
3928
3923
|
};
|
|
3929
3924
|
}
|
|
3930
3925
|
var oe = globalThis != null && globalThis.document ? m.useLayoutEffect : () => {
|
|
3931
|
-
},
|
|
3932
|
-
function
|
|
3926
|
+
}, ns = m[" useInsertionEffect ".trim().toString()] || oe;
|
|
3927
|
+
function no({
|
|
3933
3928
|
prop: e,
|
|
3934
3929
|
defaultProp: t,
|
|
3935
3930
|
onChange: o = () => {
|
|
3936
3931
|
},
|
|
3937
3932
|
caller: r
|
|
3938
3933
|
}) {
|
|
3939
|
-
const [n, s, a] =
|
|
3934
|
+
const [n, s, a] = ss({
|
|
3940
3935
|
defaultProp: t,
|
|
3941
3936
|
onChange: o
|
|
3942
3937
|
}), i = e !== void 0, l = i ? e : n;
|
|
@@ -3953,7 +3948,7 @@ function so({
|
|
|
3953
3948
|
(u) => {
|
|
3954
3949
|
var f;
|
|
3955
3950
|
if (i) {
|
|
3956
|
-
const p =
|
|
3951
|
+
const p = as(u) ? u(e) : u;
|
|
3957
3952
|
p !== e && ((f = a.current) == null || f.call(a, p));
|
|
3958
3953
|
} else
|
|
3959
3954
|
s(u);
|
|
@@ -3962,31 +3957,31 @@ function so({
|
|
|
3962
3957
|
);
|
|
3963
3958
|
return [l, d];
|
|
3964
3959
|
}
|
|
3965
|
-
function
|
|
3960
|
+
function ss({
|
|
3966
3961
|
defaultProp: e,
|
|
3967
3962
|
onChange: t
|
|
3968
3963
|
}) {
|
|
3969
3964
|
const [o, r] = m.useState(e), n = m.useRef(o), s = m.useRef(t);
|
|
3970
|
-
return
|
|
3965
|
+
return ns(() => {
|
|
3971
3966
|
s.current = t;
|
|
3972
3967
|
}, [t]), m.useEffect(() => {
|
|
3973
3968
|
var a;
|
|
3974
3969
|
n.current !== o && ((a = s.current) == null || a.call(s, o), n.current = o);
|
|
3975
3970
|
}, [o, n]), [o, r, s];
|
|
3976
3971
|
}
|
|
3977
|
-
function
|
|
3972
|
+
function as(e) {
|
|
3978
3973
|
return typeof e == "function";
|
|
3979
3974
|
}
|
|
3980
|
-
function
|
|
3975
|
+
function is(e, t) {
|
|
3981
3976
|
return m.useReducer((o, r) => t[o][r] ?? o, e);
|
|
3982
3977
|
}
|
|
3983
3978
|
var de = (e) => {
|
|
3984
|
-
const { present: t, children: o } = e, r =
|
|
3979
|
+
const { present: t, children: o } = e, r = ls(t), n = typeof o == "function" ? o({ present: r.isPresent }) : m.Children.only(o), s = Y(r.ref, cs(n));
|
|
3985
3980
|
return typeof o == "function" || r.isPresent ? m.cloneElement(n, { ref: s }) : null;
|
|
3986
3981
|
};
|
|
3987
3982
|
de.displayName = "Presence";
|
|
3988
|
-
function
|
|
3989
|
-
const [t, o] = m.useState(), r = m.useRef(null), n = m.useRef(e), s = m.useRef("none"), a = e ? "mounted" : "unmounted", [i, l] =
|
|
3983
|
+
function ls(e) {
|
|
3984
|
+
const [t, o] = m.useState(), r = m.useRef(null), n = m.useRef(e), s = m.useRef("none"), a = e ? "mounted" : "unmounted", [i, l] = is(a, {
|
|
3990
3985
|
mounted: {
|
|
3991
3986
|
UNMOUNT: "unmounted",
|
|
3992
3987
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -4005,22 +4000,22 @@ function us(e) {
|
|
|
4005
4000
|
}, [i]), oe(() => {
|
|
4006
4001
|
const d = r.current, u = n.current;
|
|
4007
4002
|
if (u !== e) {
|
|
4008
|
-
const p = s.current,
|
|
4009
|
-
e ? l("MOUNT") :
|
|
4003
|
+
const p = s.current, b = Ee(d);
|
|
4004
|
+
e ? l("MOUNT") : b === "none" || (d == null ? void 0 : d.display) === "none" ? l("UNMOUNT") : l(u && p !== b ? "ANIMATION_OUT" : "UNMOUNT"), n.current = e;
|
|
4010
4005
|
}
|
|
4011
4006
|
}, [e, l]), oe(() => {
|
|
4012
4007
|
if (t) {
|
|
4013
4008
|
let d;
|
|
4014
|
-
const u = t.ownerDocument.defaultView ?? window, f = (
|
|
4015
|
-
const
|
|
4016
|
-
if (
|
|
4017
|
-
const
|
|
4009
|
+
const u = t.ownerDocument.defaultView ?? window, f = (b) => {
|
|
4010
|
+
const x = Ee(r.current).includes(CSS.escape(b.animationName));
|
|
4011
|
+
if (b.target === t && x && (l("ANIMATION_END"), !n.current)) {
|
|
4012
|
+
const h = t.style.animationFillMode;
|
|
4018
4013
|
t.style.animationFillMode = "forwards", d = u.setTimeout(() => {
|
|
4019
|
-
t.style.animationFillMode === "forwards" && (t.style.animationFillMode =
|
|
4014
|
+
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = h);
|
|
4020
4015
|
});
|
|
4021
4016
|
}
|
|
4022
|
-
}, p = (
|
|
4023
|
-
|
|
4017
|
+
}, p = (b) => {
|
|
4018
|
+
b.target === t && (s.current = Ee(r.current));
|
|
4024
4019
|
};
|
|
4025
4020
|
return t.addEventListener("animationstart", p), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
|
|
4026
4021
|
u.clearTimeout(d), t.removeEventListener("animationstart", p), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
|
|
@@ -4037,22 +4032,22 @@ function us(e) {
|
|
|
4037
4032
|
function Ee(e) {
|
|
4038
4033
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
4039
4034
|
}
|
|
4040
|
-
function
|
|
4035
|
+
function cs(e) {
|
|
4041
4036
|
var r, n;
|
|
4042
4037
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
|
4043
4038
|
return o ? e.ref : (t = (n = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : n.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
|
4044
4039
|
}
|
|
4045
|
-
var
|
|
4046
|
-
}),
|
|
4047
|
-
function
|
|
4048
|
-
const [t, o] = m.useState(
|
|
4040
|
+
var ds = m[" useId ".trim().toString()] || (() => {
|
|
4041
|
+
}), us = 0;
|
|
4042
|
+
function so(e) {
|
|
4043
|
+
const [t, o] = m.useState(ds());
|
|
4049
4044
|
return oe(() => {
|
|
4050
|
-
o((r) => r ?? String(
|
|
4045
|
+
o((r) => r ?? String(us++));
|
|
4051
4046
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
4052
4047
|
}
|
|
4053
|
-
var
|
|
4048
|
+
var fs = m.createContext(void 0);
|
|
4054
4049
|
function rt(e) {
|
|
4055
|
-
const t = m.useContext(
|
|
4050
|
+
const t = m.useContext(fs);
|
|
4056
4051
|
return e || t || "ltr";
|
|
4057
4052
|
}
|
|
4058
4053
|
function J(e) {
|
|
@@ -4075,7 +4070,7 @@ var We = { exports: {} }, je = {};
|
|
|
4075
4070
|
* LICENSE file in the root directory of this source tree.
|
|
4076
4071
|
*/
|
|
4077
4072
|
var Ct;
|
|
4078
|
-
function
|
|
4073
|
+
function ms() {
|
|
4079
4074
|
if (Ct) return je;
|
|
4080
4075
|
Ct = 1;
|
|
4081
4076
|
var e = j;
|
|
@@ -4084,27 +4079,27 @@ function gs() {
|
|
|
4084
4079
|
}
|
|
4085
4080
|
var o = typeof Object.is == "function" ? Object.is : t, r = e.useState, n = e.useEffect, s = e.useLayoutEffect, a = e.useDebugValue;
|
|
4086
4081
|
function i(f, p) {
|
|
4087
|
-
var
|
|
4082
|
+
var b = p(), S = r({ inst: { value: b, getSnapshot: p } }), x = S[0].inst, h = S[1];
|
|
4088
4083
|
return s(
|
|
4089
4084
|
function() {
|
|
4090
|
-
|
|
4085
|
+
x.value = b, x.getSnapshot = p, l(x) && h({ inst: x });
|
|
4091
4086
|
},
|
|
4092
|
-
[f,
|
|
4087
|
+
[f, b, p]
|
|
4093
4088
|
), n(
|
|
4094
4089
|
function() {
|
|
4095
|
-
return l(
|
|
4096
|
-
l(
|
|
4090
|
+
return l(x) && h({ inst: x }), f(function() {
|
|
4091
|
+
l(x) && h({ inst: x });
|
|
4097
4092
|
});
|
|
4098
4093
|
},
|
|
4099
4094
|
[f]
|
|
4100
|
-
), a(
|
|
4095
|
+
), a(b), b;
|
|
4101
4096
|
}
|
|
4102
4097
|
function l(f) {
|
|
4103
4098
|
var p = f.getSnapshot;
|
|
4104
4099
|
f = f.value;
|
|
4105
4100
|
try {
|
|
4106
|
-
var
|
|
4107
|
-
return !o(f,
|
|
4101
|
+
var b = p();
|
|
4102
|
+
return !o(f, b);
|
|
4108
4103
|
} catch {
|
|
4109
4104
|
return !0;
|
|
4110
4105
|
}
|
|
@@ -4116,26 +4111,26 @@ function gs() {
|
|
|
4116
4111
|
return je.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : u, je;
|
|
4117
4112
|
}
|
|
4118
4113
|
var Nt;
|
|
4119
|
-
function
|
|
4120
|
-
return Nt || (Nt = 1, We.exports =
|
|
4114
|
+
function ps() {
|
|
4115
|
+
return Nt || (Nt = 1, We.exports = ms()), We.exports;
|
|
4121
4116
|
}
|
|
4122
|
-
var
|
|
4123
|
-
function
|
|
4124
|
-
return
|
|
4125
|
-
|
|
4117
|
+
var hs = ps();
|
|
4118
|
+
function gs() {
|
|
4119
|
+
return hs.useSyncExternalStore(
|
|
4120
|
+
bs,
|
|
4126
4121
|
() => !0,
|
|
4127
4122
|
() => !1
|
|
4128
4123
|
);
|
|
4129
4124
|
}
|
|
4130
|
-
function
|
|
4125
|
+
function bs() {
|
|
4131
4126
|
return () => {
|
|
4132
4127
|
};
|
|
4133
4128
|
}
|
|
4134
|
-
var nt = "Avatar", [
|
|
4129
|
+
var nt = "Avatar", [vs] = he(nt), [ws, ao] = vs(nt), io = m.forwardRef(
|
|
4135
4130
|
(e, t) => {
|
|
4136
4131
|
const { __scopeAvatar: o, ...r } = e, [n, s] = m.useState("idle");
|
|
4137
4132
|
return /* @__PURE__ */ c(
|
|
4138
|
-
|
|
4133
|
+
ws,
|
|
4139
4134
|
{
|
|
4140
4135
|
scope: o,
|
|
4141
4136
|
imageLoadingStatus: n,
|
|
@@ -4145,11 +4140,11 @@ var nt = "Avatar", [ys] = he(nt), [ks, io] = ys(nt), lo = m.forwardRef(
|
|
|
4145
4140
|
);
|
|
4146
4141
|
}
|
|
4147
4142
|
);
|
|
4148
|
-
|
|
4149
|
-
var
|
|
4143
|
+
io.displayName = nt;
|
|
4144
|
+
var lo = "AvatarImage", co = m.forwardRef(
|
|
4150
4145
|
(e, t) => {
|
|
4151
4146
|
const { __scopeAvatar: o, src: r, onLoadingStatusChange: n = () => {
|
|
4152
|
-
}, ...s } = e, a =
|
|
4147
|
+
}, ...s } = e, a = ao(lo, o), i = xs(r, s), l = J((d) => {
|
|
4153
4148
|
n(d), a.onImageLoadingStatusChange(d);
|
|
4154
4149
|
});
|
|
4155
4150
|
return oe(() => {
|
|
@@ -4157,10 +4152,10 @@ var co = "AvatarImage", uo = m.forwardRef(
|
|
|
4157
4152
|
}, [i, l]), i === "loaded" ? /* @__PURE__ */ c(W.img, { ...s, ref: t, src: r }) : null;
|
|
4158
4153
|
}
|
|
4159
4154
|
);
|
|
4160
|
-
|
|
4161
|
-
var
|
|
4155
|
+
co.displayName = lo;
|
|
4156
|
+
var uo = "AvatarFallback", fo = m.forwardRef(
|
|
4162
4157
|
(e, t) => {
|
|
4163
|
-
const { __scopeAvatar: o, delayMs: r, ...n } = e, s =
|
|
4158
|
+
const { __scopeAvatar: o, delayMs: r, ...n } = e, s = ao(uo, o), [a, i] = m.useState(r === void 0);
|
|
4164
4159
|
return m.useEffect(() => {
|
|
4165
4160
|
if (r !== void 0) {
|
|
4166
4161
|
const l = window.setTimeout(() => i(!0), r);
|
|
@@ -4169,12 +4164,12 @@ var fo = "AvatarFallback", mo = m.forwardRef(
|
|
|
4169
4164
|
}, [r]), a && s.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ c(W.span, { ...n, ref: t }) : null;
|
|
4170
4165
|
}
|
|
4171
4166
|
);
|
|
4172
|
-
|
|
4167
|
+
fo.displayName = uo;
|
|
4173
4168
|
function Et(e, t) {
|
|
4174
4169
|
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
4175
4170
|
}
|
|
4176
|
-
function
|
|
4177
|
-
const r =
|
|
4171
|
+
function xs(e, { referrerPolicy: t, crossOrigin: o }) {
|
|
4172
|
+
const r = gs(), n = m.useRef(null), s = r ? (n.current || (n.current = new window.Image()), n.current) : null, [a, i] = m.useState(
|
|
4178
4173
|
() => Et(s, e)
|
|
4179
4174
|
);
|
|
4180
4175
|
return oe(() => {
|
|
@@ -4190,14 +4185,14 @@ function Ss(e, { referrerPolicy: t, crossOrigin: o }) {
|
|
|
4190
4185
|
};
|
|
4191
4186
|
}, [s, o, t]), a;
|
|
4192
4187
|
}
|
|
4193
|
-
var
|
|
4188
|
+
var ys = io, ks = co, Ss = fo, Be = "rovingFocusGroup.onEntryFocus", Cs = { bubbles: !1, cancelable: !0 }, ge = "RovingFocusGroup", [Ke, mo, Ns] = rs(ge), [Es, po] = he(
|
|
4194
4189
|
ge,
|
|
4195
|
-
[
|
|
4196
|
-
), [
|
|
4197
|
-
(e, t) => /* @__PURE__ */ c(Ke.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ke.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(
|
|
4190
|
+
[Ns]
|
|
4191
|
+
), [As, Rs] = Es(ge), ho = m.forwardRef(
|
|
4192
|
+
(e, t) => /* @__PURE__ */ c(Ke.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(Ke.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c(_s, { ...e, ref: t }) }) })
|
|
4198
4193
|
);
|
|
4199
|
-
|
|
4200
|
-
var
|
|
4194
|
+
ho.displayName = ge;
|
|
4195
|
+
var _s = m.forwardRef((e, t) => {
|
|
4201
4196
|
const {
|
|
4202
4197
|
__scopeRovingFocusGroup: o,
|
|
4203
4198
|
orientation: r,
|
|
@@ -4209,27 +4204,27 @@ var zs = m.forwardRef((e, t) => {
|
|
|
4209
4204
|
onEntryFocus: d,
|
|
4210
4205
|
preventScrollOnEntryFocus: u = !1,
|
|
4211
4206
|
...f
|
|
4212
|
-
} = e, p = m.useRef(null),
|
|
4207
|
+
} = e, p = m.useRef(null), b = Y(t, p), S = rt(s), [x, h] = no({
|
|
4213
4208
|
prop: a,
|
|
4214
4209
|
defaultProp: i ?? null,
|
|
4215
4210
|
onChange: l,
|
|
4216
4211
|
caller: ge
|
|
4217
|
-
}), [y, R] = m.useState(!1),
|
|
4212
|
+
}), [y, R] = m.useState(!1), C = J(d), A = mo(o), P = m.useRef(!1), [N, _] = m.useState(0);
|
|
4218
4213
|
return m.useEffect(() => {
|
|
4219
4214
|
const g = p.current;
|
|
4220
4215
|
if (g)
|
|
4221
|
-
return g.addEventListener(Be,
|
|
4222
|
-
}, [
|
|
4223
|
-
|
|
4216
|
+
return g.addEventListener(Be, C), () => g.removeEventListener(Be, C);
|
|
4217
|
+
}, [C]), /* @__PURE__ */ c(
|
|
4218
|
+
As,
|
|
4224
4219
|
{
|
|
4225
4220
|
scope: o,
|
|
4226
4221
|
orientation: r,
|
|
4227
4222
|
dir: S,
|
|
4228
4223
|
loop: n,
|
|
4229
|
-
currentTabStopId:
|
|
4224
|
+
currentTabStopId: x,
|
|
4230
4225
|
onItemFocus: m.useCallback(
|
|
4231
|
-
(g) =>
|
|
4232
|
-
[
|
|
4226
|
+
(g) => h(g),
|
|
4227
|
+
[h]
|
|
4233
4228
|
),
|
|
4234
4229
|
onItemShiftTab: m.useCallback(() => R(!0), []),
|
|
4235
4230
|
onFocusableItemAdd: m.useCallback(
|
|
@@ -4243,33 +4238,33 @@ var zs = m.forwardRef((e, t) => {
|
|
|
4243
4238
|
children: /* @__PURE__ */ c(
|
|
4244
4239
|
W.div,
|
|
4245
4240
|
{
|
|
4246
|
-
tabIndex: y ||
|
|
4241
|
+
tabIndex: y || N === 0 ? -1 : 0,
|
|
4247
4242
|
"data-orientation": r,
|
|
4248
4243
|
...f,
|
|
4249
|
-
ref:
|
|
4244
|
+
ref: b,
|
|
4250
4245
|
style: { outline: "none", ...e.style },
|
|
4251
|
-
onMouseDown:
|
|
4246
|
+
onMouseDown: H(e.onMouseDown, () => {
|
|
4252
4247
|
P.current = !0;
|
|
4253
4248
|
}),
|
|
4254
|
-
onFocus:
|
|
4249
|
+
onFocus: H(e.onFocus, (g) => {
|
|
4255
4250
|
const k = !P.current;
|
|
4256
4251
|
if (g.target === g.currentTarget && k && !y) {
|
|
4257
|
-
const
|
|
4258
|
-
if (g.currentTarget.dispatchEvent(
|
|
4259
|
-
const
|
|
4252
|
+
const T = new CustomEvent(Be, Cs);
|
|
4253
|
+
if (g.currentTarget.dispatchEvent(T), !T.defaultPrevented) {
|
|
4254
|
+
const O = A().filter(($) => $.focusable), K = O.find(($) => $.active), be = O.find(($) => $.id === x), Q = [K, be, ...O].filter(
|
|
4260
4255
|
Boolean
|
|
4261
|
-
).map((
|
|
4262
|
-
|
|
4256
|
+
).map(($) => $.ref.current);
|
|
4257
|
+
vo(Q, u);
|
|
4263
4258
|
}
|
|
4264
4259
|
}
|
|
4265
4260
|
P.current = !1;
|
|
4266
4261
|
}),
|
|
4267
|
-
onBlur:
|
|
4262
|
+
onBlur: H(e.onBlur, () => R(!1))
|
|
4268
4263
|
}
|
|
4269
4264
|
)
|
|
4270
4265
|
}
|
|
4271
4266
|
);
|
|
4272
|
-
}),
|
|
4267
|
+
}), go = "RovingFocusGroupItem", bo = m.forwardRef(
|
|
4273
4268
|
(e, t) => {
|
|
4274
4269
|
const {
|
|
4275
4270
|
__scopeRovingFocusGroup: o,
|
|
@@ -4278,11 +4273,11 @@ var zs = m.forwardRef((e, t) => {
|
|
|
4278
4273
|
tabStopId: s,
|
|
4279
4274
|
children: a,
|
|
4280
4275
|
...i
|
|
4281
|
-
} = e, l =
|
|
4276
|
+
} = e, l = so(), d = s || l, u = Rs(go, o), f = u.currentTabStopId === d, p = mo(o), { onFocusableItemAdd: b, onFocusableItemRemove: S, currentTabStopId: x } = u;
|
|
4282
4277
|
return m.useEffect(() => {
|
|
4283
4278
|
if (r)
|
|
4284
|
-
return
|
|
4285
|
-
}, [r,
|
|
4279
|
+
return b(), () => S();
|
|
4280
|
+
}, [r, b, S]), /* @__PURE__ */ c(
|
|
4286
4281
|
Ke.ItemSlot,
|
|
4287
4282
|
{
|
|
4288
4283
|
scope: o,
|
|
@@ -4296,39 +4291,39 @@ var zs = m.forwardRef((e, t) => {
|
|
|
4296
4291
|
"data-orientation": u.orientation,
|
|
4297
4292
|
...i,
|
|
4298
4293
|
ref: t,
|
|
4299
|
-
onMouseDown:
|
|
4300
|
-
r ? u.onItemFocus(d) :
|
|
4294
|
+
onMouseDown: H(e.onMouseDown, (h) => {
|
|
4295
|
+
r ? u.onItemFocus(d) : h.preventDefault();
|
|
4301
4296
|
}),
|
|
4302
|
-
onFocus:
|
|
4303
|
-
onKeyDown:
|
|
4304
|
-
if (
|
|
4297
|
+
onFocus: H(e.onFocus, () => u.onItemFocus(d)),
|
|
4298
|
+
onKeyDown: H(e.onKeyDown, (h) => {
|
|
4299
|
+
if (h.key === "Tab" && h.shiftKey) {
|
|
4305
4300
|
u.onItemShiftTab();
|
|
4306
4301
|
return;
|
|
4307
4302
|
}
|
|
4308
|
-
if (
|
|
4309
|
-
const y =
|
|
4303
|
+
if (h.target !== h.currentTarget) return;
|
|
4304
|
+
const y = zs(h, u.orientation, u.dir);
|
|
4310
4305
|
if (y !== void 0) {
|
|
4311
|
-
if (
|
|
4312
|
-
|
|
4313
|
-
let
|
|
4314
|
-
if (y === "last")
|
|
4306
|
+
if (h.metaKey || h.ctrlKey || h.altKey || h.shiftKey) return;
|
|
4307
|
+
h.preventDefault();
|
|
4308
|
+
let C = p().filter((A) => A.focusable).map((A) => A.ref.current);
|
|
4309
|
+
if (y === "last") C.reverse();
|
|
4315
4310
|
else if (y === "prev" || y === "next") {
|
|
4316
|
-
y === "prev" &&
|
|
4317
|
-
const A =
|
|
4318
|
-
|
|
4311
|
+
y === "prev" && C.reverse();
|
|
4312
|
+
const A = C.indexOf(h.currentTarget);
|
|
4313
|
+
C = u.loop ? Ts(C, A + 1) : C.slice(A + 1);
|
|
4319
4314
|
}
|
|
4320
|
-
setTimeout(() =>
|
|
4315
|
+
setTimeout(() => vo(C));
|
|
4321
4316
|
}
|
|
4322
4317
|
}),
|
|
4323
|
-
children: typeof a == "function" ? a({ isCurrentTabStop: f, hasTabStop:
|
|
4318
|
+
children: typeof a == "function" ? a({ isCurrentTabStop: f, hasTabStop: x != null }) : a
|
|
4324
4319
|
}
|
|
4325
4320
|
)
|
|
4326
4321
|
}
|
|
4327
4322
|
);
|
|
4328
4323
|
}
|
|
4329
4324
|
);
|
|
4330
|
-
|
|
4331
|
-
var
|
|
4325
|
+
bo.displayName = go;
|
|
4326
|
+
var Is = {
|
|
4332
4327
|
ArrowLeft: "prev",
|
|
4333
4328
|
ArrowUp: "prev",
|
|
4334
4329
|
ArrowRight: "next",
|
|
@@ -4338,30 +4333,30 @@ var Ts = {
|
|
|
4338
4333
|
PageDown: "last",
|
|
4339
4334
|
End: "last"
|
|
4340
4335
|
};
|
|
4341
|
-
function
|
|
4336
|
+
function Ps(e, t) {
|
|
4342
4337
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
4343
4338
|
}
|
|
4344
|
-
function
|
|
4345
|
-
const r =
|
|
4339
|
+
function zs(e, t, o) {
|
|
4340
|
+
const r = Ps(e.key, o);
|
|
4346
4341
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
4347
|
-
return
|
|
4342
|
+
return Is[r];
|
|
4348
4343
|
}
|
|
4349
|
-
function
|
|
4344
|
+
function vo(e, t = !1) {
|
|
4350
4345
|
const o = document.activeElement;
|
|
4351
4346
|
for (const r of e)
|
|
4352
4347
|
if (r === o || (r.focus({ preventScroll: t }), document.activeElement !== o)) return;
|
|
4353
4348
|
}
|
|
4354
|
-
function
|
|
4349
|
+
function Ts(e, t) {
|
|
4355
4350
|
return e.map((o, r) => e[(t + r) % e.length]);
|
|
4356
4351
|
}
|
|
4357
|
-
var
|
|
4358
|
-
function
|
|
4352
|
+
var Ms = ho, Ls = bo;
|
|
4353
|
+
function Os(e, [t, o]) {
|
|
4359
4354
|
return Math.min(o, Math.max(t, e));
|
|
4360
4355
|
}
|
|
4361
|
-
function
|
|
4356
|
+
function $s(e, t) {
|
|
4362
4357
|
return m.useReducer((o, r) => t[o][r] ?? o, e);
|
|
4363
4358
|
}
|
|
4364
|
-
var st = "ScrollArea", [
|
|
4359
|
+
var st = "ScrollArea", [wo] = he(st), [Fs, q] = wo(st), xo = m.forwardRef(
|
|
4365
4360
|
(e, t) => {
|
|
4366
4361
|
const {
|
|
4367
4362
|
__scopeScrollArea: o,
|
|
@@ -4369,25 +4364,25 @@ var st = "ScrollArea", [xo] = he(st), [Us, q] = xo(st), yo = m.forwardRef(
|
|
|
4369
4364
|
dir: n,
|
|
4370
4365
|
scrollHideDelay: s = 600,
|
|
4371
4366
|
...a
|
|
4372
|
-
} = e, [i, l] = m.useState(null), [d, u] = m.useState(null), [f, p] = m.useState(null), [
|
|
4367
|
+
} = e, [i, l] = m.useState(null), [d, u] = m.useState(null), [f, p] = m.useState(null), [b, S] = m.useState(null), [x, h] = m.useState(null), [y, R] = m.useState(0), [C, A] = m.useState(0), [P, N] = m.useState(!1), [_, g] = m.useState(!1), k = Y(t, (O) => l(O)), T = rt(n);
|
|
4373
4368
|
return /* @__PURE__ */ c(
|
|
4374
|
-
|
|
4369
|
+
Fs,
|
|
4375
4370
|
{
|
|
4376
4371
|
scope: o,
|
|
4377
4372
|
type: r,
|
|
4378
|
-
dir:
|
|
4373
|
+
dir: T,
|
|
4379
4374
|
scrollHideDelay: s,
|
|
4380
4375
|
scrollArea: i,
|
|
4381
4376
|
viewport: d,
|
|
4382
4377
|
onViewportChange: u,
|
|
4383
4378
|
content: f,
|
|
4384
4379
|
onContentChange: p,
|
|
4385
|
-
scrollbarX:
|
|
4380
|
+
scrollbarX: b,
|
|
4386
4381
|
onScrollbarXChange: S,
|
|
4387
4382
|
scrollbarXEnabled: P,
|
|
4388
|
-
onScrollbarXEnabledChange:
|
|
4389
|
-
scrollbarY:
|
|
4390
|
-
onScrollbarYChange:
|
|
4383
|
+
onScrollbarXEnabledChange: N,
|
|
4384
|
+
scrollbarY: x,
|
|
4385
|
+
onScrollbarYChange: h,
|
|
4391
4386
|
scrollbarYEnabled: _,
|
|
4392
4387
|
onScrollbarYEnabledChange: g,
|
|
4393
4388
|
onCornerWidthChange: R,
|
|
@@ -4395,14 +4390,14 @@ var st = "ScrollArea", [xo] = he(st), [Us, q] = xo(st), yo = m.forwardRef(
|
|
|
4395
4390
|
children: /* @__PURE__ */ c(
|
|
4396
4391
|
W.div,
|
|
4397
4392
|
{
|
|
4398
|
-
dir:
|
|
4393
|
+
dir: T,
|
|
4399
4394
|
...a,
|
|
4400
4395
|
ref: k,
|
|
4401
4396
|
style: {
|
|
4402
4397
|
position: "relative",
|
|
4403
4398
|
// Pass corner sizes as CSS vars to reduce re-renders of context consumers
|
|
4404
4399
|
"--radix-scroll-area-corner-width": y + "px",
|
|
4405
|
-
"--radix-scroll-area-corner-height":
|
|
4400
|
+
"--radix-scroll-area-corner-height": C + "px",
|
|
4406
4401
|
...e.style
|
|
4407
4402
|
}
|
|
4408
4403
|
}
|
|
@@ -4411,11 +4406,11 @@ var st = "ScrollArea", [xo] = he(st), [Us, q] = xo(st), yo = m.forwardRef(
|
|
|
4411
4406
|
);
|
|
4412
4407
|
}
|
|
4413
4408
|
);
|
|
4414
|
-
|
|
4415
|
-
var
|
|
4409
|
+
xo.displayName = st;
|
|
4410
|
+
var yo = "ScrollAreaViewport", ko = m.forwardRef(
|
|
4416
4411
|
(e, t) => {
|
|
4417
|
-
const { __scopeScrollArea: o, children: r, nonce: n, ...s } = e, a = q(
|
|
4418
|
-
return /* @__PURE__ */
|
|
4412
|
+
const { __scopeScrollArea: o, children: r, nonce: n, ...s } = e, a = q(yo, o), i = m.useRef(null), l = Y(t, i, a.onViewportChange);
|
|
4413
|
+
return /* @__PURE__ */ M(Re, { children: [
|
|
4419
4414
|
/* @__PURE__ */ c(
|
|
4420
4415
|
"style",
|
|
4421
4416
|
{
|
|
@@ -4453,17 +4448,17 @@ var ko = "ScrollAreaViewport", So = m.forwardRef(
|
|
|
4453
4448
|
] });
|
|
4454
4449
|
}
|
|
4455
4450
|
);
|
|
4456
|
-
|
|
4457
|
-
var X = "ScrollAreaScrollbar",
|
|
4451
|
+
ko.displayName = yo;
|
|
4452
|
+
var X = "ScrollAreaScrollbar", So = m.forwardRef(
|
|
4458
4453
|
(e, t) => {
|
|
4459
4454
|
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: a } = n, i = e.orientation === "horizontal";
|
|
4460
4455
|
return m.useEffect(() => (i ? s(!0) : a(!0), () => {
|
|
4461
4456
|
i ? s(!1) : a(!1);
|
|
4462
|
-
}), [i, s, a]), n.type === "hover" ? /* @__PURE__ */ c(
|
|
4457
|
+
}), [i, s, a]), n.type === "hover" ? /* @__PURE__ */ c(Ds, { ...r, ref: t, forceMount: o }) : n.type === "scroll" ? /* @__PURE__ */ c(Hs, { ...r, ref: t, forceMount: o }) : n.type === "auto" ? /* @__PURE__ */ c(Co, { ...r, ref: t, forceMount: o }) : n.type === "always" ? /* @__PURE__ */ c(at, { ...r, ref: t }) : null;
|
|
4463
4458
|
}
|
|
4464
4459
|
);
|
|
4465
|
-
|
|
4466
|
-
var
|
|
4460
|
+
So.displayName = X;
|
|
4461
|
+
var Ds = m.forwardRef((e, t) => {
|
|
4467
4462
|
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), [s, a] = m.useState(!1);
|
|
4468
4463
|
return m.useEffect(() => {
|
|
4469
4464
|
const i = n.scrollArea;
|
|
@@ -4479,15 +4474,15 @@ var Vs = m.forwardRef((e, t) => {
|
|
|
4479
4474
|
};
|
|
4480
4475
|
}
|
|
4481
4476
|
}, [n.scrollArea, n.scrollHideDelay]), /* @__PURE__ */ c(de, { present: o || s, children: /* @__PURE__ */ c(
|
|
4482
|
-
|
|
4477
|
+
Co,
|
|
4483
4478
|
{
|
|
4484
4479
|
"data-state": s ? "visible" : "hidden",
|
|
4485
4480
|
...r,
|
|
4486
4481
|
ref: t
|
|
4487
4482
|
}
|
|
4488
4483
|
) });
|
|
4489
|
-
}),
|
|
4490
|
-
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), s = e.orientation === "horizontal", a = Le(() => l("SCROLL_END"), 100), [i, l] =
|
|
4484
|
+
}), Hs = m.forwardRef((e, t) => {
|
|
4485
|
+
const { forceMount: o, ...r } = e, n = q(X, e.__scopeScrollArea), s = e.orientation === "horizontal", a = Le(() => l("SCROLL_END"), 100), [i, l] = $s("hidden", {
|
|
4491
4486
|
hidden: {
|
|
4492
4487
|
SCROLL: "scrolling"
|
|
4493
4488
|
},
|
|
@@ -4515,8 +4510,8 @@ var Vs = m.forwardRef((e, t) => {
|
|
|
4515
4510
|
if (d) {
|
|
4516
4511
|
let f = d[u];
|
|
4517
4512
|
const p = () => {
|
|
4518
|
-
const
|
|
4519
|
-
f !==
|
|
4513
|
+
const b = d[u];
|
|
4514
|
+
f !== b && (l("SCROLL"), a()), f = b;
|
|
4520
4515
|
};
|
|
4521
4516
|
return d.addEventListener("scroll", p), () => d.removeEventListener("scroll", p);
|
|
4522
4517
|
}
|
|
@@ -4526,11 +4521,11 @@ var Vs = m.forwardRef((e, t) => {
|
|
|
4526
4521
|
"data-state": i === "hidden" ? "hidden" : "visible",
|
|
4527
4522
|
...r,
|
|
4528
4523
|
ref: t,
|
|
4529
|
-
onPointerEnter:
|
|
4530
|
-
onPointerLeave:
|
|
4524
|
+
onPointerEnter: H(e.onPointerEnter, () => l("POINTER_ENTER")),
|
|
4525
|
+
onPointerLeave: H(e.onPointerLeave, () => l("POINTER_LEAVE"))
|
|
4531
4526
|
}
|
|
4532
4527
|
) });
|
|
4533
|
-
}),
|
|
4528
|
+
}), Co = m.forwardRef((e, t) => {
|
|
4534
4529
|
const o = q(X, e.__scopeScrollArea), { forceMount: r, ...n } = e, [s, a] = m.useState(!1), i = e.orientation === "horizontal", l = Le(() => {
|
|
4535
4530
|
if (o.viewport) {
|
|
4536
4531
|
const d = o.viewport.offsetWidth < o.viewport.scrollWidth, u = o.viewport.offsetHeight < o.viewport.scrollHeight;
|
|
@@ -4550,7 +4545,7 @@ var Vs = m.forwardRef((e, t) => {
|
|
|
4550
4545
|
content: 0,
|
|
4551
4546
|
viewport: 0,
|
|
4552
4547
|
scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
|
|
4553
|
-
}), d =
|
|
4548
|
+
}), d = _o(i.viewport, i.content), u = {
|
|
4554
4549
|
...r,
|
|
4555
4550
|
sizes: i,
|
|
4556
4551
|
onSizesChange: l,
|
|
@@ -4559,18 +4554,18 @@ var Vs = m.forwardRef((e, t) => {
|
|
|
4559
4554
|
onThumbPointerUp: () => a.current = 0,
|
|
4560
4555
|
onThumbPointerDown: (p) => a.current = p
|
|
4561
4556
|
};
|
|
4562
|
-
function f(p,
|
|
4563
|
-
return
|
|
4557
|
+
function f(p, b) {
|
|
4558
|
+
return Gs(p, a.current, i, b);
|
|
4564
4559
|
}
|
|
4565
4560
|
return o === "horizontal" ? /* @__PURE__ */ c(
|
|
4566
|
-
|
|
4561
|
+
Us,
|
|
4567
4562
|
{
|
|
4568
4563
|
...u,
|
|
4569
4564
|
ref: t,
|
|
4570
4565
|
onThumbPositionChange: () => {
|
|
4571
4566
|
if (n.viewport && s.current) {
|
|
4572
|
-
const p = n.viewport.scrollLeft,
|
|
4573
|
-
s.current.style.transform = `translate3d(${
|
|
4567
|
+
const p = n.viewport.scrollLeft, b = At(p, i, n.dir);
|
|
4568
|
+
s.current.style.transform = `translate3d(${b}px, 0, 0)`;
|
|
4574
4569
|
}
|
|
4575
4570
|
},
|
|
4576
4571
|
onWheelScroll: (p) => {
|
|
@@ -4581,14 +4576,14 @@ var Vs = m.forwardRef((e, t) => {
|
|
|
4581
4576
|
}
|
|
4582
4577
|
}
|
|
4583
4578
|
) : o === "vertical" ? /* @__PURE__ */ c(
|
|
4584
|
-
|
|
4579
|
+
Vs,
|
|
4585
4580
|
{
|
|
4586
4581
|
...u,
|
|
4587
4582
|
ref: t,
|
|
4588
4583
|
onThumbPositionChange: () => {
|
|
4589
4584
|
if (n.viewport && s.current) {
|
|
4590
|
-
const p = n.viewport.scrollTop,
|
|
4591
|
-
s.current.style.transform = `translate3d(0, ${
|
|
4585
|
+
const p = n.viewport.scrollTop, b = At(p, i);
|
|
4586
|
+
s.current.style.transform = `translate3d(0, ${b}px, 0)`;
|
|
4592
4587
|
}
|
|
4593
4588
|
},
|
|
4594
4589
|
onWheelScroll: (p) => {
|
|
@@ -4599,12 +4594,12 @@ var Vs = m.forwardRef((e, t) => {
|
|
|
4599
4594
|
}
|
|
4600
4595
|
}
|
|
4601
4596
|
) : null;
|
|
4602
|
-
}),
|
|
4597
|
+
}), Us = m.forwardRef((e, t) => {
|
|
4603
4598
|
const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] = m.useState(), l = m.useRef(null), d = Y(t, l, s.onScrollbarXChange);
|
|
4604
4599
|
return m.useEffect(() => {
|
|
4605
4600
|
l.current && i(getComputedStyle(l.current));
|
|
4606
4601
|
}, [l]), /* @__PURE__ */ c(
|
|
4607
|
-
|
|
4602
|
+
Eo,
|
|
4608
4603
|
{
|
|
4609
4604
|
"data-orientation": "horizontal",
|
|
4610
4605
|
...n,
|
|
@@ -4622,7 +4617,7 @@ var Vs = m.forwardRef((e, t) => {
|
|
|
4622
4617
|
onWheelScroll: (u, f) => {
|
|
4623
4618
|
if (s.viewport) {
|
|
4624
4619
|
const p = s.viewport.scrollLeft + u.deltaX;
|
|
4625
|
-
e.onWheelScroll(p),
|
|
4620
|
+
e.onWheelScroll(p), Po(p, f) && u.preventDefault();
|
|
4626
4621
|
}
|
|
4627
4622
|
},
|
|
4628
4623
|
onResize: () => {
|
|
@@ -4638,12 +4633,12 @@ var Vs = m.forwardRef((e, t) => {
|
|
|
4638
4633
|
}
|
|
4639
4634
|
}
|
|
4640
4635
|
);
|
|
4641
|
-
}),
|
|
4636
|
+
}), Vs = m.forwardRef((e, t) => {
|
|
4642
4637
|
const { sizes: o, onSizesChange: r, ...n } = e, s = q(X, e.__scopeScrollArea), [a, i] = m.useState(), l = m.useRef(null), d = Y(t, l, s.onScrollbarYChange);
|
|
4643
4638
|
return m.useEffect(() => {
|
|
4644
4639
|
l.current && i(getComputedStyle(l.current));
|
|
4645
4640
|
}, [l]), /* @__PURE__ */ c(
|
|
4646
|
-
|
|
4641
|
+
Eo,
|
|
4647
4642
|
{
|
|
4648
4643
|
"data-orientation": "vertical",
|
|
4649
4644
|
...n,
|
|
@@ -4662,7 +4657,7 @@ var Vs = m.forwardRef((e, t) => {
|
|
|
4662
4657
|
onWheelScroll: (u, f) => {
|
|
4663
4658
|
if (s.viewport) {
|
|
4664
4659
|
const p = s.viewport.scrollTop + u.deltaY;
|
|
4665
|
-
e.onWheelScroll(p),
|
|
4660
|
+
e.onWheelScroll(p), Po(p, f) && u.preventDefault();
|
|
4666
4661
|
}
|
|
4667
4662
|
},
|
|
4668
4663
|
onResize: () => {
|
|
@@ -4678,7 +4673,7 @@ var Vs = m.forwardRef((e, t) => {
|
|
|
4678
4673
|
}
|
|
4679
4674
|
}
|
|
4680
4675
|
);
|
|
4681
|
-
}), [
|
|
4676
|
+
}), [Ws, No] = wo(X), Eo = m.forwardRef((e, t) => {
|
|
4682
4677
|
const {
|
|
4683
4678
|
__scopeScrollArea: o,
|
|
4684
4679
|
sizes: r,
|
|
@@ -4691,55 +4686,55 @@ var Vs = m.forwardRef((e, t) => {
|
|
|
4691
4686
|
onWheelScroll: u,
|
|
4692
4687
|
onResize: f,
|
|
4693
4688
|
...p
|
|
4694
|
-
} = e,
|
|
4689
|
+
} = e, b = q(X, o), [S, x] = m.useState(null), h = Y(t, (k) => x(k)), y = m.useRef(null), R = m.useRef(""), C = b.viewport, A = r.content - r.viewport, P = J(u), N = J(l), _ = Le(f, 10);
|
|
4695
4690
|
function g(k) {
|
|
4696
4691
|
if (y.current) {
|
|
4697
|
-
const
|
|
4698
|
-
d({ x:
|
|
4692
|
+
const T = k.clientX - y.current.left, O = k.clientY - y.current.top;
|
|
4693
|
+
d({ x: T, y: O });
|
|
4699
4694
|
}
|
|
4700
4695
|
}
|
|
4701
4696
|
return m.useEffect(() => {
|
|
4702
|
-
const k = (
|
|
4703
|
-
const
|
|
4704
|
-
(S == null ? void 0 : S.contains(
|
|
4697
|
+
const k = (T) => {
|
|
4698
|
+
const O = T.target;
|
|
4699
|
+
(S == null ? void 0 : S.contains(O)) && P(T, A);
|
|
4705
4700
|
};
|
|
4706
4701
|
return document.addEventListener("wheel", k, { passive: !1 }), () => document.removeEventListener("wheel", k, { passive: !1 });
|
|
4707
|
-
}, [
|
|
4708
|
-
|
|
4702
|
+
}, [C, S, A, P]), m.useEffect(N, [r, N]), ce(S, _), ce(b.content, _), /* @__PURE__ */ c(
|
|
4703
|
+
Ws,
|
|
4709
4704
|
{
|
|
4710
4705
|
scope: o,
|
|
4711
4706
|
scrollbar: S,
|
|
4712
4707
|
hasThumb: n,
|
|
4713
4708
|
onThumbChange: J(s),
|
|
4714
4709
|
onThumbPointerUp: J(a),
|
|
4715
|
-
onThumbPositionChange:
|
|
4710
|
+
onThumbPositionChange: N,
|
|
4716
4711
|
onThumbPointerDown: J(i),
|
|
4717
4712
|
children: /* @__PURE__ */ c(
|
|
4718
4713
|
W.div,
|
|
4719
4714
|
{
|
|
4720
4715
|
...p,
|
|
4721
|
-
ref:
|
|
4716
|
+
ref: h,
|
|
4722
4717
|
style: { position: "absolute", ...p.style },
|
|
4723
|
-
onPointerDown:
|
|
4724
|
-
k.button === 0 && (k.target.setPointerCapture(k.pointerId), y.current = S.getBoundingClientRect(), R.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none",
|
|
4718
|
+
onPointerDown: H(e.onPointerDown, (k) => {
|
|
4719
|
+
k.button === 0 && (k.target.setPointerCapture(k.pointerId), y.current = S.getBoundingClientRect(), R.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", b.viewport && (b.viewport.style.scrollBehavior = "auto"), g(k));
|
|
4725
4720
|
}),
|
|
4726
|
-
onPointerMove:
|
|
4727
|
-
onPointerUp:
|
|
4728
|
-
const
|
|
4729
|
-
|
|
4721
|
+
onPointerMove: H(e.onPointerMove, g),
|
|
4722
|
+
onPointerUp: H(e.onPointerUp, (k) => {
|
|
4723
|
+
const T = k.target;
|
|
4724
|
+
T.hasPointerCapture(k.pointerId) && T.releasePointerCapture(k.pointerId), document.body.style.webkitUserSelect = R.current, b.viewport && (b.viewport.style.scrollBehavior = ""), y.current = null;
|
|
4730
4725
|
})
|
|
4731
4726
|
}
|
|
4732
4727
|
)
|
|
4733
4728
|
}
|
|
4734
4729
|
);
|
|
4735
|
-
}), ze = "ScrollAreaThumb",
|
|
4730
|
+
}), ze = "ScrollAreaThumb", Ao = m.forwardRef(
|
|
4736
4731
|
(e, t) => {
|
|
4737
|
-
const { forceMount: o, ...r } = e, n =
|
|
4738
|
-
return /* @__PURE__ */ c(de, { present: o || n.hasThumb, children: /* @__PURE__ */ c(
|
|
4732
|
+
const { forceMount: o, ...r } = e, n = No(ze, e.__scopeScrollArea);
|
|
4733
|
+
return /* @__PURE__ */ c(de, { present: o || n.hasThumb, children: /* @__PURE__ */ c(js, { ref: t, ...r }) });
|
|
4739
4734
|
}
|
|
4740
|
-
),
|
|
4735
|
+
), js = m.forwardRef(
|
|
4741
4736
|
(e, t) => {
|
|
4742
|
-
const { __scopeScrollArea: o, style: r, ...n } = e, s = q(ze, o), a =
|
|
4737
|
+
const { __scopeScrollArea: o, style: r, ...n } = e, s = q(ze, o), a = No(ze, o), { onThumbPositionChange: i } = a, l = Y(
|
|
4743
4738
|
t,
|
|
4744
4739
|
(f) => a.onThumbChange(f)
|
|
4745
4740
|
), d = m.useRef(void 0), u = Le(() => {
|
|
@@ -4750,8 +4745,8 @@ var Vs = m.forwardRef((e, t) => {
|
|
|
4750
4745
|
if (f) {
|
|
4751
4746
|
const p = () => {
|
|
4752
4747
|
if (u(), !d.current) {
|
|
4753
|
-
const
|
|
4754
|
-
d.current =
|
|
4748
|
+
const b = qs(f, i);
|
|
4749
|
+
d.current = b, i();
|
|
4755
4750
|
}
|
|
4756
4751
|
};
|
|
4757
4752
|
return i(), f.addEventListener("scroll", p), () => f.removeEventListener("scroll", p);
|
|
@@ -4767,24 +4762,24 @@ var Vs = m.forwardRef((e, t) => {
|
|
|
4767
4762
|
height: "var(--radix-scroll-area-thumb-height)",
|
|
4768
4763
|
...r
|
|
4769
4764
|
},
|
|
4770
|
-
onPointerDownCapture:
|
|
4771
|
-
const
|
|
4772
|
-
a.onThumbPointerDown({ x: S, y:
|
|
4765
|
+
onPointerDownCapture: H(e.onPointerDownCapture, (f) => {
|
|
4766
|
+
const b = f.target.getBoundingClientRect(), S = f.clientX - b.left, x = f.clientY - b.top;
|
|
4767
|
+
a.onThumbPointerDown({ x: S, y: x });
|
|
4773
4768
|
}),
|
|
4774
|
-
onPointerUp:
|
|
4769
|
+
onPointerUp: H(e.onPointerUp, a.onThumbPointerUp)
|
|
4775
4770
|
}
|
|
4776
4771
|
);
|
|
4777
4772
|
}
|
|
4778
4773
|
);
|
|
4779
|
-
|
|
4780
|
-
var it = "ScrollAreaCorner",
|
|
4774
|
+
Ao.displayName = ze;
|
|
4775
|
+
var it = "ScrollAreaCorner", Ro = m.forwardRef(
|
|
4781
4776
|
(e, t) => {
|
|
4782
4777
|
const o = q(it, e.__scopeScrollArea), r = !!(o.scrollbarX && o.scrollbarY);
|
|
4783
|
-
return o.type !== "scroll" && r ? /* @__PURE__ */ c(
|
|
4778
|
+
return o.type !== "scroll" && r ? /* @__PURE__ */ c(Bs, { ...e, ref: t }) : null;
|
|
4784
4779
|
}
|
|
4785
4780
|
);
|
|
4786
|
-
|
|
4787
|
-
var
|
|
4781
|
+
Ro.displayName = it;
|
|
4782
|
+
var Bs = m.forwardRef((e, t) => {
|
|
4788
4783
|
const { __scopeScrollArea: o, ...r } = e, n = q(it, o), [s, a] = m.useState(0), [i, l] = m.useState(0), d = !!(s && i);
|
|
4789
4784
|
return ce(n.scrollbarX, () => {
|
|
4790
4785
|
var f;
|
|
@@ -4814,33 +4809,33 @@ var Ys = m.forwardRef((e, t) => {
|
|
|
4814
4809
|
function Te(e) {
|
|
4815
4810
|
return e ? parseInt(e, 10) : 0;
|
|
4816
4811
|
}
|
|
4817
|
-
function
|
|
4812
|
+
function _o(e, t) {
|
|
4818
4813
|
const o = e / t;
|
|
4819
4814
|
return isNaN(o) ? 0 : o;
|
|
4820
4815
|
}
|
|
4821
4816
|
function Me(e) {
|
|
4822
|
-
const t =
|
|
4817
|
+
const t = _o(e.viewport, e.content), o = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - o) * t;
|
|
4823
4818
|
return Math.max(r, 18);
|
|
4824
4819
|
}
|
|
4825
|
-
function
|
|
4820
|
+
function Gs(e, t, o, r = "ltr") {
|
|
4826
4821
|
const n = Me(o), s = n / 2, a = t || s, i = n - a, l = o.scrollbar.paddingStart + a, d = o.scrollbar.size - o.scrollbar.paddingEnd - i, u = o.content - o.viewport, f = r === "ltr" ? [0, u] : [u * -1, 0];
|
|
4827
|
-
return
|
|
4822
|
+
return Io([l, d], f)(e);
|
|
4828
4823
|
}
|
|
4829
4824
|
function At(e, t, o = "ltr") {
|
|
4830
|
-
const r = Me(t), n = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - n, a = t.content - t.viewport, i = s - r, l = o === "ltr" ? [0, a] : [a * -1, 0], d =
|
|
4831
|
-
return
|
|
4825
|
+
const r = Me(t), n = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - n, a = t.content - t.viewport, i = s - r, l = o === "ltr" ? [0, a] : [a * -1, 0], d = Os(e, l);
|
|
4826
|
+
return Io([0, a], [0, i])(d);
|
|
4832
4827
|
}
|
|
4833
|
-
function
|
|
4828
|
+
function Io(e, t) {
|
|
4834
4829
|
return (o) => {
|
|
4835
4830
|
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
4836
4831
|
const r = (t[1] - t[0]) / (e[1] - e[0]);
|
|
4837
4832
|
return t[0] + r * (o - e[0]);
|
|
4838
4833
|
};
|
|
4839
4834
|
}
|
|
4840
|
-
function
|
|
4835
|
+
function Po(e, t) {
|
|
4841
4836
|
return e > 0 && e < t;
|
|
4842
4837
|
}
|
|
4843
|
-
var
|
|
4838
|
+
var qs = (e, t = () => {
|
|
4844
4839
|
}) => {
|
|
4845
4840
|
let o = { left: e.scrollLeft, top: e.scrollTop }, r = 0;
|
|
4846
4841
|
return (function n() {
|
|
@@ -4868,8 +4863,8 @@ function ce(e, t) {
|
|
|
4868
4863
|
}
|
|
4869
4864
|
}, [e, o]);
|
|
4870
4865
|
}
|
|
4871
|
-
var
|
|
4872
|
-
const { decorative: o, orientation: r = Rt, ...n } = e, s =
|
|
4866
|
+
var Ys = xo, Xs = ko, Ks = Ro, Zs = "Separator", Rt = "horizontal", Js = ["horizontal", "vertical"], zo = m.forwardRef((e, t) => {
|
|
4867
|
+
const { decorative: o, orientation: r = Rt, ...n } = e, s = Qs(r) ? r : Rt, i = o ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
|
|
4873
4868
|
return /* @__PURE__ */ c(
|
|
4874
4869
|
W.div,
|
|
4875
4870
|
{
|
|
@@ -4880,13 +4875,13 @@ var Zs = yo, Js = So, Qs = _o, ea = "Separator", Rt = "horizontal", ta = ["horiz
|
|
|
4880
4875
|
}
|
|
4881
4876
|
);
|
|
4882
4877
|
});
|
|
4883
|
-
|
|
4884
|
-
function
|
|
4885
|
-
return
|
|
4878
|
+
zo.displayName = Zs;
|
|
4879
|
+
function Qs(e) {
|
|
4880
|
+
return Js.includes(e);
|
|
4886
4881
|
}
|
|
4887
|
-
var
|
|
4888
|
-
|
|
4889
|
-
]),
|
|
4882
|
+
var ea = zo, Oe = "Tabs", [ta] = he(Oe, [
|
|
4883
|
+
po
|
|
4884
|
+
]), To = po(), [oa, lt] = ta(Oe), Mo = m.forwardRef(
|
|
4890
4885
|
(e, t) => {
|
|
4891
4886
|
const {
|
|
4892
4887
|
__scopeTabs: o,
|
|
@@ -4897,17 +4892,17 @@ var ra = To, Oe = "Tabs", [na] = he(Oe, [
|
|
|
4897
4892
|
dir: i,
|
|
4898
4893
|
activationMode: l = "automatic",
|
|
4899
4894
|
...d
|
|
4900
|
-
} = e, u = rt(i), [f, p] =
|
|
4895
|
+
} = e, u = rt(i), [f, p] = no({
|
|
4901
4896
|
prop: r,
|
|
4902
4897
|
onChange: n,
|
|
4903
4898
|
defaultProp: s ?? "",
|
|
4904
4899
|
caller: Oe
|
|
4905
4900
|
});
|
|
4906
4901
|
return /* @__PURE__ */ c(
|
|
4907
|
-
|
|
4902
|
+
oa,
|
|
4908
4903
|
{
|
|
4909
4904
|
scope: o,
|
|
4910
|
-
baseId:
|
|
4905
|
+
baseId: so(),
|
|
4911
4906
|
value: f,
|
|
4912
4907
|
onValueChange: p,
|
|
4913
4908
|
orientation: a,
|
|
@@ -4926,12 +4921,12 @@ var ra = To, Oe = "Tabs", [na] = he(Oe, [
|
|
|
4926
4921
|
);
|
|
4927
4922
|
}
|
|
4928
4923
|
);
|
|
4929
|
-
|
|
4930
|
-
var
|
|
4924
|
+
Mo.displayName = Oe;
|
|
4925
|
+
var Lo = "TabsList", Oo = m.forwardRef(
|
|
4931
4926
|
(e, t) => {
|
|
4932
|
-
const { __scopeTabs: o, loop: r = !0, ...n } = e, s = lt(
|
|
4927
|
+
const { __scopeTabs: o, loop: r = !0, ...n } = e, s = lt(Lo, o), a = To(o);
|
|
4933
4928
|
return /* @__PURE__ */ c(
|
|
4934
|
-
|
|
4929
|
+
Ms,
|
|
4935
4930
|
{
|
|
4936
4931
|
asChild: !0,
|
|
4937
4932
|
...a,
|
|
@@ -4951,12 +4946,12 @@ var Oo = "TabsList", $o = m.forwardRef(
|
|
|
4951
4946
|
);
|
|
4952
4947
|
}
|
|
4953
4948
|
);
|
|
4954
|
-
|
|
4955
|
-
var
|
|
4949
|
+
Oo.displayName = Lo;
|
|
4950
|
+
var $o = "TabsTrigger", Fo = m.forwardRef(
|
|
4956
4951
|
(e, t) => {
|
|
4957
|
-
const { __scopeTabs: o, value: r, disabled: n = !1, ...s } = e, a = lt(
|
|
4952
|
+
const { __scopeTabs: o, value: r, disabled: n = !1, ...s } = e, a = lt($o, o), i = To(o), l = Uo(a.baseId, r), d = Vo(a.baseId, r), u = r === a.value;
|
|
4958
4953
|
return /* @__PURE__ */ c(
|
|
4959
|
-
|
|
4954
|
+
Ls,
|
|
4960
4955
|
{
|
|
4961
4956
|
asChild: !0,
|
|
4962
4957
|
...i,
|
|
@@ -4975,13 +4970,13 @@ var Fo = "TabsTrigger", Do = m.forwardRef(
|
|
|
4975
4970
|
id: l,
|
|
4976
4971
|
...s,
|
|
4977
4972
|
ref: t,
|
|
4978
|
-
onMouseDown:
|
|
4973
|
+
onMouseDown: H(e.onMouseDown, (f) => {
|
|
4979
4974
|
!n && f.button === 0 && f.ctrlKey === !1 ? a.onValueChange(r) : f.preventDefault();
|
|
4980
4975
|
}),
|
|
4981
|
-
onKeyDown:
|
|
4976
|
+
onKeyDown: H(e.onKeyDown, (f) => {
|
|
4982
4977
|
[" ", "Enter"].includes(f.key) && a.onValueChange(r);
|
|
4983
4978
|
}),
|
|
4984
|
-
onFocus:
|
|
4979
|
+
onFocus: H(e.onFocus, () => {
|
|
4985
4980
|
const f = a.activationMode !== "manual";
|
|
4986
4981
|
!u && !n && f && a.onValueChange(r);
|
|
4987
4982
|
})
|
|
@@ -4991,10 +4986,10 @@ var Fo = "TabsTrigger", Do = m.forwardRef(
|
|
|
4991
4986
|
);
|
|
4992
4987
|
}
|
|
4993
4988
|
);
|
|
4994
|
-
|
|
4995
|
-
var
|
|
4989
|
+
Fo.displayName = $o;
|
|
4990
|
+
var Do = "TabsContent", Ho = m.forwardRef(
|
|
4996
4991
|
(e, t) => {
|
|
4997
|
-
const { __scopeTabs: o, value: r, forceMount: n, children: s, ...a } = e, i = lt(
|
|
4992
|
+
const { __scopeTabs: o, value: r, forceMount: n, children: s, ...a } = e, i = lt(Do, o), l = Uo(i.baseId, r), d = Vo(i.baseId, r), u = r === i.value, f = m.useRef(u);
|
|
4998
4993
|
return m.useEffect(() => {
|
|
4999
4994
|
const p = requestAnimationFrame(() => f.current = !1);
|
|
5000
4995
|
return () => cancelAnimationFrame(p);
|
|
@@ -5019,15 +5014,15 @@ var Ho = "TabsContent", Uo = m.forwardRef(
|
|
|
5019
5014
|
) });
|
|
5020
5015
|
}
|
|
5021
5016
|
);
|
|
5022
|
-
|
|
5023
|
-
function
|
|
5017
|
+
Ho.displayName = Do;
|
|
5018
|
+
function Uo(e, t) {
|
|
5024
5019
|
return `${e}-trigger-${t}`;
|
|
5025
5020
|
}
|
|
5026
|
-
function
|
|
5021
|
+
function Vo(e, t) {
|
|
5027
5022
|
return `${e}-content-${t}`;
|
|
5028
5023
|
}
|
|
5029
|
-
var
|
|
5030
|
-
const
|
|
5024
|
+
var ra = Mo, na = Oo, sa = Fo, aa = Ho;
|
|
5025
|
+
const ia = ot(
|
|
5031
5026
|
'inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*="size-"])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive',
|
|
5032
5027
|
{
|
|
5033
5028
|
variants: {
|
|
@@ -5056,7 +5051,7 @@ const da = ot(
|
|
|
5056
5051
|
}
|
|
5057
5052
|
}
|
|
5058
5053
|
);
|
|
5059
|
-
function
|
|
5054
|
+
function Wo({
|
|
5060
5055
|
className: e,
|
|
5061
5056
|
variant: t = "default",
|
|
5062
5057
|
size: o = "default",
|
|
@@ -5064,17 +5059,17 @@ function jo({
|
|
|
5064
5059
|
...n
|
|
5065
5060
|
}) {
|
|
5066
5061
|
return /* @__PURE__ */ c(
|
|
5067
|
-
r ?
|
|
5062
|
+
r ? ro : "button",
|
|
5068
5063
|
{
|
|
5069
5064
|
"data-slot": "button",
|
|
5070
5065
|
"data-variant": t,
|
|
5071
5066
|
"data-size": o,
|
|
5072
|
-
className: z(
|
|
5067
|
+
className: z(ia({ variant: t, size: o, className: e })),
|
|
5073
5068
|
...n
|
|
5074
5069
|
}
|
|
5075
5070
|
);
|
|
5076
5071
|
}
|
|
5077
|
-
const
|
|
5072
|
+
const la = ot(
|
|
5078
5073
|
"inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
5079
5074
|
{
|
|
5080
5075
|
variants: {
|
|
@@ -5092,23 +5087,23 @@ const ua = ot(
|
|
|
5092
5087
|
}
|
|
5093
5088
|
}
|
|
5094
5089
|
);
|
|
5095
|
-
function
|
|
5090
|
+
function ca({
|
|
5096
5091
|
className: e,
|
|
5097
5092
|
variant: t = "default",
|
|
5098
5093
|
asChild: o = !1,
|
|
5099
5094
|
...r
|
|
5100
5095
|
}) {
|
|
5101
5096
|
return /* @__PURE__ */ c(
|
|
5102
|
-
o ?
|
|
5097
|
+
o ? ro : "span",
|
|
5103
5098
|
{
|
|
5104
5099
|
"data-slot": "badge",
|
|
5105
5100
|
"data-variant": t,
|
|
5106
|
-
className: z(
|
|
5101
|
+
className: z(la({ variant: t }), e),
|
|
5107
5102
|
...r
|
|
5108
5103
|
}
|
|
5109
5104
|
);
|
|
5110
5105
|
}
|
|
5111
|
-
function
|
|
5106
|
+
function da({ className: e, type: t, ...o }) {
|
|
5112
5107
|
return /* @__PURE__ */ c(
|
|
5113
5108
|
"input",
|
|
5114
5109
|
{
|
|
@@ -5124,14 +5119,14 @@ function ma({ className: e, type: t, ...o }) {
|
|
|
5124
5119
|
}
|
|
5125
5120
|
);
|
|
5126
5121
|
}
|
|
5127
|
-
function
|
|
5122
|
+
function ua({
|
|
5128
5123
|
className: e,
|
|
5129
5124
|
orientation: t = "horizontal",
|
|
5130
5125
|
decorative: o = !0,
|
|
5131
5126
|
...r
|
|
5132
5127
|
}) {
|
|
5133
5128
|
return /* @__PURE__ */ c(
|
|
5134
|
-
|
|
5129
|
+
ea,
|
|
5135
5130
|
{
|
|
5136
5131
|
"data-slot": "separator",
|
|
5137
5132
|
decorative: o,
|
|
@@ -5144,13 +5139,13 @@ function pa({
|
|
|
5144
5139
|
}
|
|
5145
5140
|
);
|
|
5146
5141
|
}
|
|
5147
|
-
function
|
|
5142
|
+
function fa({
|
|
5148
5143
|
className: e,
|
|
5149
5144
|
orientation: t = "horizontal",
|
|
5150
5145
|
...o
|
|
5151
5146
|
}) {
|
|
5152
5147
|
return /* @__PURE__ */ c(
|
|
5153
|
-
|
|
5148
|
+
ra,
|
|
5154
5149
|
{
|
|
5155
5150
|
"data-slot": "tabs",
|
|
5156
5151
|
"data-orientation": t,
|
|
@@ -5163,7 +5158,7 @@ function ha({
|
|
|
5163
5158
|
}
|
|
5164
5159
|
);
|
|
5165
5160
|
}
|
|
5166
|
-
const
|
|
5161
|
+
const ma = ot(
|
|
5167
5162
|
"rounded-lg p-[3px] group-data-[orientation=horizontal]/tabs:h-9 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",
|
|
5168
5163
|
{
|
|
5169
5164
|
variants: {
|
|
@@ -5177,27 +5172,27 @@ const ga = ot(
|
|
|
5177
5172
|
}
|
|
5178
5173
|
}
|
|
5179
5174
|
);
|
|
5180
|
-
function
|
|
5175
|
+
function pa({
|
|
5181
5176
|
className: e,
|
|
5182
5177
|
variant: t = "default",
|
|
5183
5178
|
...o
|
|
5184
5179
|
}) {
|
|
5185
5180
|
return /* @__PURE__ */ c(
|
|
5186
|
-
|
|
5181
|
+
na,
|
|
5187
5182
|
{
|
|
5188
5183
|
"data-slot": "tabs-list",
|
|
5189
5184
|
"data-variant": t,
|
|
5190
|
-
className: z(
|
|
5185
|
+
className: z(ma({ variant: t }), e),
|
|
5191
5186
|
...o
|
|
5192
5187
|
}
|
|
5193
5188
|
);
|
|
5194
5189
|
}
|
|
5195
|
-
function
|
|
5190
|
+
function ha({
|
|
5196
5191
|
className: e,
|
|
5197
5192
|
...t
|
|
5198
5193
|
}) {
|
|
5199
5194
|
return /* @__PURE__ */ c(
|
|
5200
|
-
|
|
5195
|
+
sa,
|
|
5201
5196
|
{
|
|
5202
5197
|
"data-slot": "tabs-trigger",
|
|
5203
5198
|
className: z(
|
|
@@ -5211,12 +5206,12 @@ function va({
|
|
|
5211
5206
|
}
|
|
5212
5207
|
);
|
|
5213
5208
|
}
|
|
5214
|
-
function
|
|
5209
|
+
function ga({
|
|
5215
5210
|
className: e,
|
|
5216
5211
|
...t
|
|
5217
5212
|
}) {
|
|
5218
5213
|
return /* @__PURE__ */ c(
|
|
5219
|
-
|
|
5214
|
+
aa,
|
|
5220
5215
|
{
|
|
5221
5216
|
"data-slot": "tabs-content",
|
|
5222
5217
|
className: z("flex-1 outline-none", e),
|
|
@@ -5224,13 +5219,13 @@ function wa({
|
|
|
5224
5219
|
}
|
|
5225
5220
|
);
|
|
5226
5221
|
}
|
|
5227
|
-
function
|
|
5222
|
+
function ba({
|
|
5228
5223
|
className: e,
|
|
5229
5224
|
orientation: t = "vertical",
|
|
5230
5225
|
...o
|
|
5231
5226
|
}) {
|
|
5232
5227
|
return /* @__PURE__ */ c(
|
|
5233
|
-
|
|
5228
|
+
So,
|
|
5234
5229
|
{
|
|
5235
5230
|
"data-slot": "scroll-area-scrollbar",
|
|
5236
5231
|
orientation: t,
|
|
@@ -5242,7 +5237,7 @@ function xa({
|
|
|
5242
5237
|
),
|
|
5243
5238
|
...o,
|
|
5244
5239
|
children: /* @__PURE__ */ c(
|
|
5245
|
-
|
|
5240
|
+
Ao,
|
|
5246
5241
|
{
|
|
5247
5242
|
"data-slot": "scroll-area-thumb",
|
|
5248
5243
|
className: "bg-border relative flex-1 rounded-full"
|
|
@@ -5251,28 +5246,28 @@ function xa({
|
|
|
5251
5246
|
}
|
|
5252
5247
|
);
|
|
5253
5248
|
}
|
|
5254
|
-
function
|
|
5249
|
+
function va({
|
|
5255
5250
|
className: e,
|
|
5256
5251
|
children: t,
|
|
5257
5252
|
...o
|
|
5258
5253
|
}) {
|
|
5259
|
-
return /* @__PURE__ */
|
|
5260
|
-
|
|
5254
|
+
return /* @__PURE__ */ M(
|
|
5255
|
+
Ys,
|
|
5261
5256
|
{
|
|
5262
5257
|
"data-slot": "scroll-area",
|
|
5263
5258
|
className: z("relative", e),
|
|
5264
5259
|
...o,
|
|
5265
5260
|
children: [
|
|
5266
5261
|
/* @__PURE__ */ c(
|
|
5267
|
-
|
|
5262
|
+
Xs,
|
|
5268
5263
|
{
|
|
5269
5264
|
"data-slot": "scroll-area-viewport",
|
|
5270
5265
|
className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
|
|
5271
5266
|
children: t
|
|
5272
5267
|
}
|
|
5273
5268
|
),
|
|
5274
|
-
/* @__PURE__ */ c(
|
|
5275
|
-
/* @__PURE__ */ c(
|
|
5269
|
+
/* @__PURE__ */ c(ba, {}),
|
|
5270
|
+
/* @__PURE__ */ c(Ks, {})
|
|
5276
5271
|
]
|
|
5277
5272
|
}
|
|
5278
5273
|
);
|
|
@@ -5283,7 +5278,7 @@ function Ze({
|
|
|
5283
5278
|
...o
|
|
5284
5279
|
}) {
|
|
5285
5280
|
return /* @__PURE__ */ c(
|
|
5286
|
-
|
|
5281
|
+
ys,
|
|
5287
5282
|
{
|
|
5288
5283
|
"data-slot": "avatar",
|
|
5289
5284
|
"data-size": t,
|
|
@@ -5300,7 +5295,7 @@ function Je({
|
|
|
5300
5295
|
...t
|
|
5301
5296
|
}) {
|
|
5302
5297
|
return /* @__PURE__ */ c(
|
|
5303
|
-
|
|
5298
|
+
ks,
|
|
5304
5299
|
{
|
|
5305
5300
|
"data-slot": "avatar-image",
|
|
5306
5301
|
className: z("aspect-square size-full", e),
|
|
@@ -5313,7 +5308,7 @@ function Qe({
|
|
|
5313
5308
|
...t
|
|
5314
5309
|
}) {
|
|
5315
5310
|
return /* @__PURE__ */ c(
|
|
5316
|
-
|
|
5311
|
+
Ss,
|
|
5317
5312
|
{
|
|
5318
5313
|
"data-slot": "avatar-fallback",
|
|
5319
5314
|
className: z(
|
|
@@ -5324,32 +5319,32 @@ function Qe({
|
|
|
5324
5319
|
}
|
|
5325
5320
|
);
|
|
5326
5321
|
}
|
|
5327
|
-
const
|
|
5328
|
-
"arrow-left":
|
|
5329
|
-
calendar:
|
|
5330
|
-
"check-circle-2":
|
|
5331
|
-
"chevron-left":
|
|
5332
|
-
"chevron-right":
|
|
5333
|
-
clock:
|
|
5334
|
-
"credit-card":
|
|
5335
|
-
"external-link":
|
|
5336
|
-
"help-circle":
|
|
5337
|
-
info:
|
|
5338
|
-
"loader-2":
|
|
5322
|
+
const jo = {
|
|
5323
|
+
"arrow-left": hr,
|
|
5324
|
+
calendar: wr,
|
|
5325
|
+
"check-circle-2": Er,
|
|
5326
|
+
"chevron-left": yr,
|
|
5327
|
+
"chevron-right": Ot,
|
|
5328
|
+
clock: zr,
|
|
5329
|
+
"credit-card": Mr,
|
|
5330
|
+
"external-link": Or,
|
|
5331
|
+
"help-circle": Rr,
|
|
5332
|
+
info: Fr,
|
|
5333
|
+
"loader-2": $t,
|
|
5339
5334
|
mail: Ye,
|
|
5340
|
-
"map-pin":
|
|
5341
|
-
"message-circle":
|
|
5342
|
-
"message-square":
|
|
5343
|
-
package:
|
|
5344
|
-
phone:
|
|
5345
|
-
search:
|
|
5346
|
-
"shopping-bag":
|
|
5347
|
-
sparkles:
|
|
5348
|
-
truck:
|
|
5349
|
-
user:
|
|
5350
|
-
"x-circle":
|
|
5351
|
-
"alert-circle":
|
|
5352
|
-
"book-open":
|
|
5335
|
+
"map-pin": Vr,
|
|
5336
|
+
"message-circle": jr,
|
|
5337
|
+
"message-square": Ft,
|
|
5338
|
+
package: qr,
|
|
5339
|
+
phone: Xr,
|
|
5340
|
+
search: Zr,
|
|
5341
|
+
"shopping-bag": Qr,
|
|
5342
|
+
sparkles: tn,
|
|
5343
|
+
truck: rn,
|
|
5344
|
+
user: Dt,
|
|
5345
|
+
"x-circle": Ir,
|
|
5346
|
+
"alert-circle": Cr,
|
|
5347
|
+
"book-open": br
|
|
5353
5348
|
}, _t = {
|
|
5354
5349
|
0: "gap-0",
|
|
5355
5350
|
1: "gap-1",
|
|
@@ -5361,15 +5356,15 @@ const Bo = {
|
|
|
5361
5356
|
8: "gap-8",
|
|
5362
5357
|
10: "gap-10",
|
|
5363
5358
|
12: "gap-12"
|
|
5364
|
-
},
|
|
5359
|
+
}, Bo = (e) => typeof e == "number" ? _t[String(e)] ?? "gap-2" : typeof e == "string" ? _t[e.trim()] ?? "gap-2" : "gap-2", wa = ({ children: e, className: t, onClick: o }) => /* @__PURE__ */ c(
|
|
5365
5360
|
me,
|
|
5366
5361
|
{
|
|
5367
5362
|
className: t,
|
|
5368
5363
|
onClick: o,
|
|
5369
5364
|
children: e
|
|
5370
5365
|
}
|
|
5371
|
-
),
|
|
5372
|
-
|
|
5366
|
+
), xa = ({ children: e, className: t }) => /* @__PURE__ */ c(pe, { className: t, children: e }), ya = ({ children: e, className: t }) => /* @__PURE__ */ c(Xn, { className: t, children: e }), ka = ({ children: e, className: t, onClick: o, variant: r, size: n, disabled: s, title: a }) => /* @__PURE__ */ c(
|
|
5367
|
+
Wo,
|
|
5373
5368
|
{
|
|
5374
5369
|
className: t,
|
|
5375
5370
|
variant: r,
|
|
@@ -5379,30 +5374,30 @@ const Bo = {
|
|
|
5379
5374
|
title: a,
|
|
5380
5375
|
children: e
|
|
5381
5376
|
}
|
|
5382
|
-
),
|
|
5383
|
-
|
|
5377
|
+
), Sa = ({ children: e, className: t, variant: o }) => /* @__PURE__ */ c(
|
|
5378
|
+
ca,
|
|
5384
5379
|
{
|
|
5385
5380
|
className: t,
|
|
5386
5381
|
variant: o,
|
|
5387
5382
|
children: e
|
|
5388
5383
|
}
|
|
5389
|
-
),
|
|
5390
|
-
|
|
5384
|
+
), Ca = ({ className: e, onChange: t, ...o }) => /* @__PURE__ */ c(
|
|
5385
|
+
da,
|
|
5391
5386
|
{
|
|
5392
5387
|
className: e,
|
|
5393
5388
|
onChange: t,
|
|
5394
5389
|
...o
|
|
5395
5390
|
}
|
|
5396
|
-
),
|
|
5391
|
+
), Na = ({ className: e }) => /* @__PURE__ */ c(ua, { className: e }), Ea = ({ children: e, className: t }) => /* @__PURE__ */ c(fa, { className: t, children: e }), Aa = ({ children: e, className: t }) => /* @__PURE__ */ c(pa, { className: t, children: e }), Ra = ({ children: e, className: t }) => /* @__PURE__ */ c(ha, { className: t, value: "", children: e }), _a = ({ children: e, className: t }) => /* @__PURE__ */ c(ga, { className: t, value: "", children: e }), Ia = ({ children: e, className: t }) => /* @__PURE__ */ c(va, { className: t, children: e }), Pa = ({ children: e, className: t }) => /* @__PURE__ */ c(Ze, { className: t, children: e }), za = ({ src: e, alt: t, className: o }) => /* @__PURE__ */ c(Je, { src: e, alt: t, className: o }), Ta = ({ children: e, className: t }) => /* @__PURE__ */ c(Qe, { className: t, children: e }), Ma = ({ children: e, className: t }) => /* @__PURE__ */ c("p", { className: z("text-sm", t), children: e }), La = ({ children: e, className: t, level: o }) => {
|
|
5397
5392
|
const r = `h${o || "2"}`;
|
|
5398
5393
|
return /* @__PURE__ */ c(r, { className: z("font-semibold tracking-tight", t), children: e });
|
|
5399
|
-
},
|
|
5400
|
-
const n = o === "row" ? "flex-row" : "flex-col", s =
|
|
5394
|
+
}, Oa = ({ children: e, className: t, direction: o, gap: r }) => {
|
|
5395
|
+
const n = o === "row" ? "flex-row" : "flex-col", s = Bo(r);
|
|
5401
5396
|
return /* @__PURE__ */ c("div", { className: z("flex", n, s, t), children: e });
|
|
5402
|
-
},
|
|
5403
|
-
const r =
|
|
5397
|
+
}, $a = ({ children: e, className: t, gap: o }) => {
|
|
5398
|
+
const r = Bo(o);
|
|
5404
5399
|
return /* @__PURE__ */ c("div", { className: z("flex flex-row items-center", r, t), children: e });
|
|
5405
|
-
},
|
|
5400
|
+
}, Fa = ({ children: e, className: t, href: o, target: r, rel: n }) => /* @__PURE__ */ c(
|
|
5406
5401
|
"a",
|
|
5407
5402
|
{
|
|
5408
5403
|
href: o,
|
|
@@ -5411,12 +5406,12 @@ const Bo = {
|
|
|
5411
5406
|
className: t,
|
|
5412
5407
|
children: e
|
|
5413
5408
|
}
|
|
5414
|
-
),
|
|
5409
|
+
), Da = ({ title: e, children: t, className: o }) => /* @__PURE__ */ M(me, { className: z("overflow-hidden p-0 gap-0 shadow-sm", o), children: [
|
|
5415
5410
|
e ? /* @__PURE__ */ c(pe, { className: "px-6 py-3", children: /* @__PURE__ */ c("h3", { className: "text-xs font-semibold tracking-wider text-muted-foreground", children: String(e) }) }) : null,
|
|
5416
5411
|
/* @__PURE__ */ c("div", { className: "flex flex-col gap-0 divide-y divide-border", children: t })
|
|
5417
|
-
] }),
|
|
5418
|
-
const s = e, a = "size-5", i = s ?
|
|
5419
|
-
return /* @__PURE__ */
|
|
5412
|
+
] }), Ha = ({ icon: e, label: t, description: o, onClick: r, className: n }) => {
|
|
5413
|
+
const s = e, a = "size-5", i = s ? jo[s] : null;
|
|
5414
|
+
return /* @__PURE__ */ M(
|
|
5420
5415
|
"button",
|
|
5421
5416
|
{
|
|
5422
5417
|
type: "button",
|
|
@@ -5424,44 +5419,42 @@ const Bo = {
|
|
|
5424
5419
|
onClick: r,
|
|
5425
5420
|
children: [
|
|
5426
5421
|
i && /* @__PURE__ */ c(i, { className: `${a} shrink-0 text-muted-foreground` }),
|
|
5427
|
-
/* @__PURE__ */
|
|
5422
|
+
/* @__PURE__ */ M("div", { className: "flex flex-col gap-0 flex-1 min-w-0 items-start", children: [
|
|
5428
5423
|
t ? /* @__PURE__ */ c("p", { className: "font-medium text-sm text-foreground", children: String(t) }) : null,
|
|
5429
5424
|
o ? /* @__PURE__ */ c("p", { className: "mt-0.5 text-xs text-muted-foreground", children: String(o) }) : null
|
|
5430
5425
|
] }),
|
|
5431
|
-
/* @__PURE__ */ c(
|
|
5426
|
+
/* @__PURE__ */ c(Ot, { className: "mr-1 size-4 shrink-0 text-muted-foreground" })
|
|
5432
5427
|
]
|
|
5433
5428
|
}
|
|
5434
5429
|
);
|
|
5435
|
-
},
|
|
5436
|
-
const n = { sm: "size-3", md: "size-5", lg: "size-6" }[t] ?? "size-4", s = e, a =
|
|
5430
|
+
}, Ua = ({ name: e, size: t, className: o }) => {
|
|
5431
|
+
const n = { sm: "size-3", md: "size-5", lg: "size-6" }[t] ?? "size-4", s = e, a = jo[s], i = s === "sparkles" ? "sparkle-icon" : "";
|
|
5437
5432
|
return a ? /* @__PURE__ */ c(a, { className: z(n, i, o) }) : /* @__PURE__ */ c("span", { className: z("inline-block", n, i, o), "data-icon": s });
|
|
5438
|
-
},
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
});
|
|
5464
|
-
}, It = "/api/ecommerce", qo = async (e, t) => {
|
|
5433
|
+
}, Va = () => ({
|
|
5434
|
+
"ui-card": wa,
|
|
5435
|
+
"ui-card-content": xa,
|
|
5436
|
+
"ui-card-header": ya,
|
|
5437
|
+
"ui-button": ka,
|
|
5438
|
+
"ui-text": Ma,
|
|
5439
|
+
"ui-heading": La,
|
|
5440
|
+
"ui-badge": Sa,
|
|
5441
|
+
"ui-input": Ca,
|
|
5442
|
+
"ui-stack": Oa,
|
|
5443
|
+
"ui-inline": $a,
|
|
5444
|
+
"ui-separator": Na,
|
|
5445
|
+
"ui-tabs": Ea,
|
|
5446
|
+
"ui-tabs-list": Aa,
|
|
5447
|
+
"ui-tabs-trigger": Ra,
|
|
5448
|
+
"ui-tabs-content": _a,
|
|
5449
|
+
"ui-scroll-area": Ia,
|
|
5450
|
+
"ui-avatar": Pa,
|
|
5451
|
+
"ui-avatar-image": za,
|
|
5452
|
+
"ui-avatar-fallback": Ta,
|
|
5453
|
+
"ui-icon": Ua,
|
|
5454
|
+
"ui-link": Fa,
|
|
5455
|
+
"ui-menu-item": Ha,
|
|
5456
|
+
"ui-menu": Da
|
|
5457
|
+
}), It = "/api/ecommerce", Go = async (e, t) => {
|
|
5465
5458
|
const o = t ? `${t.replace(/\/$/, "")}${It}` : It, r = await fetch(o, {
|
|
5466
5459
|
method: "POST",
|
|
5467
5460
|
headers: { "Content-Type": "application/json" },
|
|
@@ -5470,7 +5463,7 @@ const Bo = {
|
|
|
5470
5463
|
if (!r.ok)
|
|
5471
5464
|
throw new Error(n.error || "API request failed");
|
|
5472
5465
|
return n.data;
|
|
5473
|
-
},
|
|
5466
|
+
}, Wa = (e, t) => e ? `${e.replace(/\/$/, "")}${t}` : t, ti = ({
|
|
5474
5467
|
instanceId: e,
|
|
5475
5468
|
apiBase: t,
|
|
5476
5469
|
hostBase: o,
|
|
@@ -5481,10 +5474,10 @@ const Bo = {
|
|
|
5481
5474
|
}) => {
|
|
5482
5475
|
const [i, l] = B([]), [d, u] = B(!1);
|
|
5483
5476
|
G(() => {
|
|
5484
|
-
|
|
5485
|
-
const
|
|
5477
|
+
(async () => {
|
|
5478
|
+
const b = e;
|
|
5486
5479
|
try {
|
|
5487
|
-
if (!
|
|
5480
|
+
if (!b) {
|
|
5488
5481
|
console.warn("[ExtensionSetup] No instanceId provided; loading no extensions"), l([]), u(!0);
|
|
5489
5482
|
return;
|
|
5490
5483
|
}
|
|
@@ -5492,13 +5485,13 @@ const Bo = {
|
|
|
5492
5485
|
console.warn("[ExtensionSetup] apiBase and appId are required to load extensions"), l([]), u(!0);
|
|
5493
5486
|
return;
|
|
5494
5487
|
}
|
|
5495
|
-
const S = await fetch(
|
|
5488
|
+
const S = await fetch(Wa(t, `/instances/${r}/${b}`));
|
|
5496
5489
|
if (!S.ok) {
|
|
5497
|
-
console.warn(`[ExtensionSetup] Instance not found or failed to load: ${
|
|
5490
|
+
console.warn(`[ExtensionSetup] Instance not found or failed to load: ${b}`), l([]), u(!0);
|
|
5498
5491
|
return;
|
|
5499
5492
|
}
|
|
5500
|
-
const
|
|
5501
|
-
l(
|
|
5493
|
+
const x = await S.json();
|
|
5494
|
+
l(x);
|
|
5502
5495
|
} catch (S) {
|
|
5503
5496
|
console.error("Failed to load extensions:", S);
|
|
5504
5497
|
} finally {
|
|
@@ -5511,12 +5504,12 @@ const Bo = {
|
|
|
5511
5504
|
"data.query": async (p) => (
|
|
5512
5505
|
// TODO: verify payload
|
|
5513
5506
|
// TODO: encryption???
|
|
5514
|
-
|
|
5507
|
+
Go(p, o)
|
|
5515
5508
|
),
|
|
5516
5509
|
"actions.toast": async (p) => {
|
|
5517
5510
|
if (console.log(`[Toast] ${p.type || "info"}: ${p.message}`), typeof window < "u") {
|
|
5518
|
-
const
|
|
5519
|
-
window.dispatchEvent(
|
|
5511
|
+
const b = new CustomEvent("ext-toast", { detail: p });
|
|
5512
|
+
window.dispatchEvent(b);
|
|
5520
5513
|
}
|
|
5521
5514
|
},
|
|
5522
5515
|
"actions.invoke": async (p) => {
|
|
@@ -5531,27 +5524,27 @@ const Bo = {
|
|
|
5531
5524
|
}),
|
|
5532
5525
|
[o, s, a]
|
|
5533
5526
|
);
|
|
5534
|
-
return d ? /* @__PURE__ */ c(
|
|
5535
|
-
},
|
|
5536
|
-
|
|
5527
|
+
return d ? /* @__PURE__ */ c(nr, { extensions: i, capabilityHandlers: f, components: Va(), children: n }) : null;
|
|
5528
|
+
}, ja = { dark: "dark", light: "widget-theme-light" }, qo = ({ children: e, theme: t = "inherit" }) => /* @__PURE__ */ c("div", { "data-id": "widget-body", className: ja[t], children: /* @__PURE__ */ c("div", { className: "h-[700px] w-[900px] overflow-hidden rounded-md ring ring-zinc-200 dark:ring-zinc-300", children: /* @__PURE__ */ c("div", { className: "flex h-full w-full flex-col overflow-hidden rounded-md bg-muted dark:bg-background text-foreground", children: e }) }) }), Yo = ({ onClick: e, icon: t = mr }) => /* @__PURE__ */ c("div", { className: "fixed bottom-8 right-8 z-50", children: /* @__PURE__ */ c(
|
|
5529
|
+
Wo,
|
|
5537
5530
|
{
|
|
5538
5531
|
className: "h-12 w-12 rounded-full",
|
|
5539
5532
|
size: "icon",
|
|
5540
5533
|
onClick: e,
|
|
5541
5534
|
children: /* @__PURE__ */ c(t, { className: "h-6 w-6" })
|
|
5542
5535
|
}
|
|
5543
|
-
) }),
|
|
5536
|
+
) }), oi = ({ children: e, icon: t, theme: o }) => {
|
|
5544
5537
|
const [r, n] = B(!1);
|
|
5545
|
-
return /* @__PURE__ */
|
|
5546
|
-
/* @__PURE__ */ c(
|
|
5538
|
+
return /* @__PURE__ */ M(Re, { children: [
|
|
5539
|
+
/* @__PURE__ */ c(Yo, { onClick: () => {
|
|
5547
5540
|
n(!r);
|
|
5548
5541
|
}, icon: t }),
|
|
5549
|
-
r && /* @__PURE__ */ c("div", { "data-id": "widget-container", className: "overflow-hidden fixed bottom-24 right-8 z-1000 rounded-md shadow-xl", children: /* @__PURE__ */ c(
|
|
5542
|
+
r && /* @__PURE__ */ c("div", { "data-id": "widget-container", className: "overflow-hidden fixed bottom-24 right-8 z-1000 rounded-md shadow-xl", children: /* @__PURE__ */ c(qo, { theme: o, children: e }) })
|
|
5550
5543
|
] });
|
|
5551
|
-
},
|
|
5552
|
-
Body:
|
|
5553
|
-
Launcher:
|
|
5554
|
-
},
|
|
5544
|
+
}, ri = {
|
|
5545
|
+
Body: qo,
|
|
5546
|
+
Launcher: Yo
|
|
5547
|
+
}, Ba = ({ href: e, children: t }) => /* @__PURE__ */ c(
|
|
5555
5548
|
"a",
|
|
5556
5549
|
{
|
|
5557
5550
|
href: e,
|
|
@@ -5560,7 +5553,7 @@ const Bo = {
|
|
|
5560
5553
|
className: "text-zinc-500 opacity-80 transition-colors hover:text-zinc-900 hover:opacity-100",
|
|
5561
5554
|
children: t
|
|
5562
5555
|
}
|
|
5563
|
-
),
|
|
5556
|
+
), Ga = (e, t) => {
|
|
5564
5557
|
const [o, r] = B(null), [n, s] = B(!1), [a, i] = B(null);
|
|
5565
5558
|
return G(() => {
|
|
5566
5559
|
if (!e) {
|
|
@@ -5570,7 +5563,7 @@ const Bo = {
|
|
|
5570
5563
|
(async () => {
|
|
5571
5564
|
s(!0), i(null);
|
|
5572
5565
|
try {
|
|
5573
|
-
const d = await
|
|
5566
|
+
const d = await Go({
|
|
5574
5567
|
action: "getCustomer",
|
|
5575
5568
|
customerId: e
|
|
5576
5569
|
}, t);
|
|
@@ -5582,16 +5575,16 @@ const Bo = {
|
|
|
5582
5575
|
}
|
|
5583
5576
|
})();
|
|
5584
5577
|
}, [e, t]), { customer: o, loading: n, error: a };
|
|
5585
|
-
},
|
|
5578
|
+
}, qa = ({ customerId: e, customerEmail: t, hostBase: o, children: r }) => {
|
|
5586
5579
|
var l, d;
|
|
5587
|
-
const { customer: n, loading: s, error: a } =
|
|
5580
|
+
const { customer: n, loading: s, error: a } = Ga(e, o);
|
|
5588
5581
|
if (s)
|
|
5589
|
-
return /* @__PURE__ */ c(me, { className: "border-none shadow-none bg-transparent", children: /* @__PURE__ */ c(pe, { className: "flex items-center justify-center p-6", children: /* @__PURE__ */ c(
|
|
5582
|
+
return /* @__PURE__ */ c(me, { className: "border-none shadow-none bg-transparent", children: /* @__PURE__ */ c(pe, { className: "flex items-center justify-center p-6", children: /* @__PURE__ */ c($t, { className: "h-6 w-6 animate-spin text-muted-foreground" }) }) });
|
|
5590
5583
|
if (a || !n) {
|
|
5591
5584
|
const u = t ? t.split("@")[0] : e ? `Customer ${e.slice(-4)}` : "Customer", f = u.split(/[\s._-]+/).map((p) => p[0]).join("").slice(0, 2).toUpperCase();
|
|
5592
|
-
return /* @__PURE__ */ c(me, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */
|
|
5593
|
-
/* @__PURE__ */
|
|
5594
|
-
/* @__PURE__ */
|
|
5585
|
+
return /* @__PURE__ */ c(me, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ M(pe, { className: "p-4 pb-0 pt-2", children: [
|
|
5586
|
+
/* @__PURE__ */ M("div", { className: "flex flex-col items-center", children: [
|
|
5587
|
+
/* @__PURE__ */ M(Ze, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
|
|
5595
5588
|
/* @__PURE__ */ c(
|
|
5596
5589
|
Je,
|
|
5597
5590
|
{
|
|
@@ -5601,12 +5594,12 @@ const Bo = {
|
|
|
5601
5594
|
),
|
|
5602
5595
|
/* @__PURE__ */ c(Qe, { className: "text-lg", children: f })
|
|
5603
5596
|
] }),
|
|
5604
|
-
/* @__PURE__ */
|
|
5605
|
-
/* @__PURE__ */
|
|
5597
|
+
/* @__PURE__ */ M("div", { className: "text-center w-full space-y-1", children: [
|
|
5598
|
+
/* @__PURE__ */ M("div", { children: [
|
|
5606
5599
|
/* @__PURE__ */ c("p", { className: "text-xs text-foreground/70 font-medium tracking-wide", children: "Welcome," }),
|
|
5607
5600
|
/* @__PURE__ */ c("h2", { className: "text-lg font-bold text-foreground leading-tight", children: u })
|
|
5608
5601
|
] }),
|
|
5609
|
-
t && /* @__PURE__ */ c("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */
|
|
5602
|
+
t && /* @__PURE__ */ c("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */ M("div", { className: "flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75", children: [
|
|
5610
5603
|
/* @__PURE__ */ c(Ye, { className: "h-3 w-3", "aria-hidden": "true" }),
|
|
5611
5604
|
/* @__PURE__ */ c("span", { className: "truncate max-w-[200px]", children: t })
|
|
5612
5605
|
] }) }),
|
|
@@ -5617,8 +5610,8 @@ const Bo = {
|
|
|
5617
5610
|
] }) });
|
|
5618
5611
|
}
|
|
5619
5612
|
const i = `${((l = n.first_name) == null ? void 0 : l[0]) || ""}${((d = n.last_name) == null ? void 0 : d[0]) || ""}`;
|
|
5620
|
-
return /* @__PURE__ */ c(me, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ c(pe, { className: "p-4 pb-0 pt-2", children: /* @__PURE__ */
|
|
5621
|
-
/* @__PURE__ */
|
|
5613
|
+
return /* @__PURE__ */ c(me, { className: "border-none px-0 py-0 mb-4 shadow-none bg-transparent", children: /* @__PURE__ */ c(pe, { className: "p-4 pb-0 pt-2", children: /* @__PURE__ */ M("div", { className: "flex flex-col items-center", children: [
|
|
5614
|
+
/* @__PURE__ */ M(Ze, { className: "h-16 w-16 mb-2 ring-2 ring-background shadow-sm", children: [
|
|
5622
5615
|
/* @__PURE__ */ c(
|
|
5623
5616
|
Je,
|
|
5624
5617
|
{
|
|
@@ -5628,19 +5621,19 @@ const Bo = {
|
|
|
5628
5621
|
),
|
|
5629
5622
|
/* @__PURE__ */ c(Qe, { className: "text-lg", children: i })
|
|
5630
5623
|
] }),
|
|
5631
|
-
/* @__PURE__ */
|
|
5632
|
-
/* @__PURE__ */
|
|
5624
|
+
/* @__PURE__ */ M("div", { className: "text-center w-full space-y-1", children: [
|
|
5625
|
+
/* @__PURE__ */ M("div", { children: [
|
|
5633
5626
|
/* @__PURE__ */ c("p", { className: "text-xs text-foreground/70 font-medium tracking-wide", children: "Welcome," }),
|
|
5634
5627
|
/* @__PURE__ */ c("h2", { className: "text-lg font-bold text-foreground leading-tight", children: n.name })
|
|
5635
5628
|
] }),
|
|
5636
|
-
/* @__PURE__ */ c("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */
|
|
5629
|
+
/* @__PURE__ */ c("div", { className: "pt-2 flex flex-col items-center gap-1", children: /* @__PURE__ */ M("div", { className: "flex items-center justify-center gap-1.5 text-xs font-semibold text-foreground/75", children: [
|
|
5637
5630
|
/* @__PURE__ */ c(Ye, { className: "h-3 w-3", "aria-hidden": "true" }),
|
|
5638
5631
|
/* @__PURE__ */ c("span", { className: "truncate max-w-[200px]", children: n.email })
|
|
5639
5632
|
] }) }),
|
|
5640
5633
|
/* @__PURE__ */ c("div", { className: "py-1 rounded-lg flex justify-center gap-1", children: r })
|
|
5641
5634
|
] })
|
|
5642
5635
|
] }) }) });
|
|
5643
|
-
},
|
|
5636
|
+
}, Xo = (e, t) => {
|
|
5644
5637
|
G(() => {
|
|
5645
5638
|
const o = t.current;
|
|
5646
5639
|
if (!o) return;
|
|
@@ -5654,9 +5647,9 @@ const Bo = {
|
|
|
5654
5647
|
n.disconnect(), r == null || r.remove();
|
|
5655
5648
|
};
|
|
5656
5649
|
}, [e, t]);
|
|
5657
|
-
},
|
|
5650
|
+
}, Ya = ({ customization: e }) => {
|
|
5658
5651
|
const t = le(null);
|
|
5659
|
-
return
|
|
5652
|
+
return Xo("widget_conversations", t), G(() => {
|
|
5660
5653
|
!window.zE || !t.current || e && window.zE("messenger:set", "customization", {
|
|
5661
5654
|
conversationList: e
|
|
5662
5655
|
});
|
|
@@ -5667,9 +5660,9 @@ const Bo = {
|
|
|
5667
5660
|
className: "h-full overflow-hidden"
|
|
5668
5661
|
}
|
|
5669
5662
|
);
|
|
5670
|
-
},
|
|
5663
|
+
}, Xa = ({ customization: e }) => {
|
|
5671
5664
|
const t = le(null);
|
|
5672
|
-
return
|
|
5665
|
+
return Xo("widget_messages", t), G(() => {
|
|
5673
5666
|
!window.zE || !t.current || e && window.zE("messenger:set", "customization", {
|
|
5674
5667
|
messageLog: e
|
|
5675
5668
|
});
|
|
@@ -5680,7 +5673,7 @@ const Bo = {
|
|
|
5680
5673
|
className: "h-full overflow-hidden"
|
|
5681
5674
|
}
|
|
5682
5675
|
);
|
|
5683
|
-
}, Ge = 25, qe = 75,
|
|
5676
|
+
}, Ge = 25, qe = 75, ni = ({
|
|
5684
5677
|
header: e,
|
|
5685
5678
|
buttons: t,
|
|
5686
5679
|
hostBase: o,
|
|
@@ -5691,7 +5684,7 @@ const Bo = {
|
|
|
5691
5684
|
const a = Math.max(
|
|
5692
5685
|
Ge,
|
|
5693
5686
|
Math.min(qe, s)
|
|
5694
|
-
), [i, l] = B("account"), [d, u] = B(a), [f, p] = B(!1), [
|
|
5687
|
+
), [i, l] = B("account"), [d, u] = B(a), [f, p] = B(!1), [b, S] = B(!1), [x, h] = B(!1), y = le(null), R = Ae(() => !window.zE || !document.getElementById("widget_conversations") || !document.getElementById("widget_messages") ? !1 : (window.zE("messenger", "render", {
|
|
5695
5688
|
mode: "embedded",
|
|
5696
5689
|
conversationList: { targetElement: "#widget_conversations" },
|
|
5697
5690
|
messageLog: { targetElement: "#widget_messages" }
|
|
@@ -5705,76 +5698,76 @@ const Bo = {
|
|
|
5705
5698
|
S(!0);
|
|
5706
5699
|
return;
|
|
5707
5700
|
}
|
|
5708
|
-
const
|
|
5709
|
-
R() && (S(!0), clearInterval(
|
|
5701
|
+
const N = setInterval(() => {
|
|
5702
|
+
R() && (S(!0), clearInterval(N));
|
|
5710
5703
|
}, 100), _ = setTimeout(() => {
|
|
5711
|
-
clearInterval(
|
|
5704
|
+
clearInterval(N), console.warn("Zendesk widget failed to load after 10 seconds");
|
|
5712
5705
|
}, 1e4);
|
|
5713
5706
|
return () => {
|
|
5714
|
-
clearInterval(
|
|
5707
|
+
clearInterval(N), clearTimeout(_);
|
|
5715
5708
|
};
|
|
5716
5709
|
}, [R]);
|
|
5717
|
-
const
|
|
5718
|
-
const { detail: _ } =
|
|
5710
|
+
const C = Ae((N) => {
|
|
5711
|
+
const { detail: _ } = N;
|
|
5719
5712
|
if (!window.zE || !_.payload || (_ == null ? void 0 : _.action) !== "newConversation") return !1;
|
|
5720
5713
|
window.zE("messenger:ui", "newConversation", _.payload);
|
|
5721
5714
|
}, []);
|
|
5722
|
-
G(() => (window.addEventListener("ext-new-conversation",
|
|
5723
|
-
window.removeEventListener("ext-new-conversation",
|
|
5724
|
-
}), [
|
|
5725
|
-
if (!
|
|
5726
|
-
const
|
|
5715
|
+
G(() => (window.addEventListener("ext-new-conversation", C), () => {
|
|
5716
|
+
window.removeEventListener("ext-new-conversation", C);
|
|
5717
|
+
}), [C]), G(() => {
|
|
5718
|
+
if (!x) return;
|
|
5719
|
+
const N = (g) => {
|
|
5727
5720
|
if (!y.current) return;
|
|
5728
5721
|
const k = y.current.getBoundingClientRect();
|
|
5729
5722
|
if ((f ? k.width : k.height) === 0) return;
|
|
5730
|
-
const
|
|
5723
|
+
const O = f ? (g.clientX - k.left) / k.width * 100 : (g.clientY - k.top) / k.height * 100, K = Math.max(
|
|
5731
5724
|
Ge,
|
|
5732
|
-
Math.min(qe,
|
|
5725
|
+
Math.min(qe, O)
|
|
5733
5726
|
);
|
|
5734
5727
|
u(K);
|
|
5735
5728
|
}, _ = () => {
|
|
5736
|
-
|
|
5729
|
+
h(!1), document.body.style.cursor = "", document.body.style.userSelect = "";
|
|
5737
5730
|
};
|
|
5738
|
-
return document.body.style.cursor = f ? "col-resize" : "row-resize", document.body.style.userSelect = "none", window.addEventListener("mousemove",
|
|
5739
|
-
window.removeEventListener("mousemove",
|
|
5731
|
+
return document.body.style.cursor = f ? "col-resize" : "row-resize", document.body.style.userSelect = "none", window.addEventListener("mousemove", N), window.addEventListener("mouseup", _), window.addEventListener("blur", _), () => {
|
|
5732
|
+
window.removeEventListener("mousemove", N), window.removeEventListener("mouseup", _), window.removeEventListener("blur", _), document.body.style.cursor = "", document.body.style.userSelect = "";
|
|
5740
5733
|
};
|
|
5741
|
-
}, [
|
|
5734
|
+
}, [x, f]), G(() => {
|
|
5742
5735
|
if (!y.current) return;
|
|
5743
|
-
const
|
|
5744
|
-
const k = getComputedStyle(
|
|
5736
|
+
const N = y.current, _ = () => {
|
|
5737
|
+
const k = getComputedStyle(N).flexDirection === "row";
|
|
5745
5738
|
p(k);
|
|
5746
5739
|
};
|
|
5747
5740
|
_();
|
|
5748
5741
|
const g = new ResizeObserver(_);
|
|
5749
|
-
return g.observe(
|
|
5742
|
+
return g.observe(N), () => {
|
|
5750
5743
|
g.disconnect();
|
|
5751
5744
|
};
|
|
5752
5745
|
}, []);
|
|
5753
|
-
const A = Ae((
|
|
5754
|
-
if (
|
|
5746
|
+
const A = Ae((N) => {
|
|
5747
|
+
if (N.detail === 2) {
|
|
5755
5748
|
u(a);
|
|
5756
5749
|
return;
|
|
5757
5750
|
}
|
|
5758
|
-
|
|
5751
|
+
N.preventDefault(), h(!0);
|
|
5759
5752
|
}, [a]), P = { customerId: r, customerEmail: n };
|
|
5760
|
-
return /* @__PURE__ */
|
|
5753
|
+
return /* @__PURE__ */ M("div", { "data-component": "zendesk-wrapper", className: "flex-1 flex flex-col z-10 overflow-hidden", style: { containerType: "inline-size" }, children: [
|
|
5761
5754
|
/* @__PURE__ */ c("style", {
|
|
5762
5755
|
// eslint-disable-next-line @stylistic/quotes
|
|
5763
5756
|
children: '@container (min-width: 42rem) { [data-component="zendesk-wrapper"] > [data-id="panel-layout"] { flex-direction: row; } }'
|
|
5764
5757
|
}),
|
|
5765
|
-
/* @__PURE__ */
|
|
5766
|
-
/* @__PURE__ */
|
|
5758
|
+
/* @__PURE__ */ M("div", { ref: y, "data-id": "panel-layout", className: "relative flex-1 overflow-hidden flex flex-col", children: [
|
|
5759
|
+
/* @__PURE__ */ M(
|
|
5767
5760
|
"div",
|
|
5768
5761
|
{
|
|
5769
5762
|
"data-id": "primary-panel",
|
|
5770
5763
|
className: "min-h-0 min-w-0 flex-none overflow-hidden flex flex-col",
|
|
5771
5764
|
style: { flexBasis: `${d}%` },
|
|
5772
5765
|
children: [
|
|
5773
|
-
/* @__PURE__ */
|
|
5766
|
+
/* @__PURE__ */ M("div", { className: "flex items-center justify-between px-4 py-3", children: [
|
|
5774
5767
|
/* @__PURE__ */ c("h2", { className: "font-semibold text-sm text-foreground", children: i === "account" ? "My Account" : "My Conversations" }),
|
|
5775
|
-
/* @__PURE__ */
|
|
5768
|
+
/* @__PURE__ */ M("div", { className: "flex items-center gap-1", children: [
|
|
5776
5769
|
e && /* @__PURE__ */ c("div", { className: "flex mr-1 gap-1", children: e }),
|
|
5777
|
-
/* @__PURE__ */
|
|
5770
|
+
/* @__PURE__ */ M("div", { className: "flex rounded-lg bg-muted p-1", children: [
|
|
5778
5771
|
t,
|
|
5779
5772
|
/* @__PURE__ */ c(
|
|
5780
5773
|
"button",
|
|
@@ -5786,7 +5779,7 @@ const Bo = {
|
|
|
5786
5779
|
i === "account" ? "border-border bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
5787
5780
|
),
|
|
5788
5781
|
title: "My Account",
|
|
5789
|
-
children: /* @__PURE__ */ c(
|
|
5782
|
+
children: /* @__PURE__ */ c(Dt, { className: "h-4 w-4" })
|
|
5790
5783
|
}
|
|
5791
5784
|
),
|
|
5792
5785
|
/* @__PURE__ */ c(
|
|
@@ -5799,15 +5792,15 @@ const Bo = {
|
|
|
5799
5792
|
i === "conversations" ? "border-border bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
5800
5793
|
),
|
|
5801
5794
|
title: "Conversations",
|
|
5802
|
-
children: /* @__PURE__ */ c(
|
|
5795
|
+
children: /* @__PURE__ */ c(Ft, { className: "h-4 w-4" })
|
|
5803
5796
|
}
|
|
5804
5797
|
)
|
|
5805
5798
|
] })
|
|
5806
5799
|
] })
|
|
5807
5800
|
] }),
|
|
5808
|
-
/* @__PURE__ */
|
|
5809
|
-
/* @__PURE__ */
|
|
5810
|
-
/* @__PURE__ */ c(
|
|
5801
|
+
/* @__PURE__ */ M("div", { className: "flex-1 overflow-y-auto p-4 relative", children: [
|
|
5802
|
+
/* @__PURE__ */ M("div", { className: z("flex flex-col gap-2", i === "conversations" && "hidden"), children: [
|
|
5803
|
+
/* @__PURE__ */ c(qa, { customerId: r, customerEmail: n, hostBase: o, children: /* @__PURE__ */ c(
|
|
5811
5804
|
Se,
|
|
5812
5805
|
{
|
|
5813
5806
|
target: "slot.header",
|
|
@@ -5827,29 +5820,29 @@ const Bo = {
|
|
|
5827
5820
|
/* @__PURE__ */ c("div", { className: z(
|
|
5828
5821
|
"h-full rounded-xl border border-zinc-200 bg-white p-2 shadow-sm dark:border-zinc-300",
|
|
5829
5822
|
i === "account" && "hidden"
|
|
5830
|
-
), children: /* @__PURE__ */ c(
|
|
5823
|
+
), children: /* @__PURE__ */ c(Ya, {}) })
|
|
5831
5824
|
] })
|
|
5832
5825
|
]
|
|
5833
5826
|
}
|
|
5834
5827
|
),
|
|
5835
|
-
/* @__PURE__ */
|
|
5828
|
+
/* @__PURE__ */ M(
|
|
5836
5829
|
"div",
|
|
5837
5830
|
{
|
|
5838
5831
|
"data-id": "secondary-panel",
|
|
5839
5832
|
className: "min-h-0 min-w-0 flex-none flex flex-col bg-white",
|
|
5840
5833
|
style: { flexBasis: `${100 - d}%` },
|
|
5841
5834
|
children: [
|
|
5842
|
-
/* @__PURE__ */ c("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ c(
|
|
5843
|
-
/* @__PURE__ */
|
|
5835
|
+
/* @__PURE__ */ c("div", { className: "flex-1 overflow-hidden", children: /* @__PURE__ */ c(Xa, {}) }),
|
|
5836
|
+
/* @__PURE__ */ M("div", { className: "flex flex-wrap items-center justify-end gap-1 py-1 mr-4 text-xs text-zinc-500", children: [
|
|
5844
5837
|
/* @__PURE__ */ c(
|
|
5845
5838
|
Se,
|
|
5846
5839
|
{
|
|
5847
5840
|
target: "slot.footer",
|
|
5848
5841
|
context: P,
|
|
5849
5842
|
className: "flex items-center gap-1",
|
|
5850
|
-
fallback: /* @__PURE__ */
|
|
5843
|
+
fallback: /* @__PURE__ */ M(Re, { children: [
|
|
5851
5844
|
/* @__PURE__ */ c("div", { children: "powered by" }),
|
|
5852
|
-
/* @__PURE__ */ c(
|
|
5845
|
+
/* @__PURE__ */ c(Ba, { href: "https://zendesk.com", children: "Zendesk" })
|
|
5853
5846
|
] })
|
|
5854
5847
|
}
|
|
5855
5848
|
),
|
|
@@ -5860,9 +5853,9 @@ const Bo = {
|
|
|
5860
5853
|
context: P,
|
|
5861
5854
|
className: "flex items-center gap-1",
|
|
5862
5855
|
separator: /* @__PURE__ */ c("span", { className: "text-zinc-300", children: "/" }),
|
|
5863
|
-
render: ({ children:
|
|
5856
|
+
render: ({ children: N, index: _ }) => /* @__PURE__ */ M(Re, { children: [
|
|
5864
5857
|
_ === 0 && /* @__PURE__ */ c("span", { className: "text-zinc-300", children: "+" }),
|
|
5865
|
-
|
|
5858
|
+
N
|
|
5866
5859
|
] })
|
|
5867
5860
|
}
|
|
5868
5861
|
)
|
|
@@ -5891,25 +5884,25 @@ const Bo = {
|
|
|
5891
5884
|
className: z(
|
|
5892
5885
|
"rounded-full bg-foreground/35 dark:bg-white shadow-[0_0_0_1px_rgba(255,255,255,0.16),0_0_0_1px_rgba(0,0,0,0.22)] transition-all",
|
|
5893
5886
|
f ? "h-20 w-0.5" : "h-0.5 w-20",
|
|
5894
|
-
|
|
5887
|
+
x ? "bg-foreground/70 dark:bg-white opacity-100" : "opacity-70 group-hover/resize:bg-foreground/55 dark:group-hover/resize:bg-white group-hover/resize:opacity-100"
|
|
5895
5888
|
)
|
|
5896
5889
|
}
|
|
5897
5890
|
)
|
|
5898
5891
|
}
|
|
5899
5892
|
),
|
|
5900
|
-
|
|
5893
|
+
x && /* @__PURE__ */ c(
|
|
5901
5894
|
"div",
|
|
5902
5895
|
{
|
|
5903
5896
|
className: z("absolute inset-0 z-40", f ? "cursor-col-resize" : "cursor-row-resize"),
|
|
5904
|
-
onMouseUp: () =>
|
|
5897
|
+
onMouseUp: () => h(!1)
|
|
5905
5898
|
}
|
|
5906
5899
|
)
|
|
5907
5900
|
] })
|
|
5908
5901
|
] });
|
|
5909
|
-
},
|
|
5902
|
+
}, Ka = "ze-snippet", Pt = (e) => `https://static.zdassets.com/ekr/snippet.js?key=${encodeURIComponent(e)}`, Za = (e, t = {}) => {
|
|
5910
5903
|
if (typeof window > "u" || typeof document > "u" || !e)
|
|
5911
5904
|
return Promise.resolve();
|
|
5912
|
-
const { autorender: o = !1, scriptId: r =
|
|
5905
|
+
const { autorender: o = !1, scriptId: r = Ka } = t;
|
|
5913
5906
|
window.zEMessenger = { autorender: o };
|
|
5914
5907
|
const n = document.getElementById(r);
|
|
5915
5908
|
if (n) {
|
|
@@ -5921,16 +5914,16 @@ const Bo = {
|
|
|
5921
5914
|
const i = document.createElement("script");
|
|
5922
5915
|
i.id = r, i.src = Pt(e), i.async = !0, i.onload = () => s(), i.onerror = () => a(new Error("Failed to load Zendesk snippet")), document.head.appendChild(i);
|
|
5923
5916
|
});
|
|
5924
|
-
},
|
|
5925
|
-
e.snippetKey &&
|
|
5917
|
+
}, si = ({ config: e }) => (G(() => {
|
|
5918
|
+
e.snippetKey && Za(e.snippetKey, { autorender: e.autorender }).catch((t) => {
|
|
5926
5919
|
console.error("Failed to initialize Zendesk snippet:", t);
|
|
5927
5920
|
});
|
|
5928
5921
|
}, [e.autorender, e.snippetKey]), null);
|
|
5929
5922
|
export {
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5923
|
+
ti as ExtensionSetup,
|
|
5924
|
+
ri as Widget,
|
|
5925
|
+
oi as WidgetComponent,
|
|
5926
|
+
ni as ZendeskMessenger,
|
|
5927
|
+
si as ZendeskScript,
|
|
5928
|
+
Za as loadZendeskSnippet
|
|
5936
5929
|
};
|