@sentinel-core/sentinel 1.0.4 → 1.0.5
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/sentinel.es.js +764 -942
- package/dist/sentinel.umd.js +15 -20
- package/dist/src/ui/widgets/SentinelDialog.d.ts +1 -2
- package/package.json +4 -4
package/dist/sentinel.es.js
CHANGED
|
@@ -1,192 +1,14 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import t, { createContext as n, useContext as r, useState as i } from "react";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
9
|
-
}), l = /* @__PURE__ */ s(((e) => {
|
|
10
|
-
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
11
|
-
function r(e, n, r) {
|
|
12
|
-
var i = null;
|
|
13
|
-
if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
|
|
14
|
-
else r = n;
|
|
15
|
-
return n = r.ref, {
|
|
16
|
-
$$typeof: t,
|
|
17
|
-
type: e,
|
|
18
|
-
key: i,
|
|
19
|
-
ref: n === void 0 ? null : n,
|
|
20
|
-
props: r
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
e.Fragment = n, e.jsx = r, e.jsxs = r;
|
|
24
|
-
})), u = /* @__PURE__ */ s(((e) => {
|
|
25
|
-
process.env.NODE_ENV !== "production" && (function() {
|
|
26
|
-
function t(e) {
|
|
27
|
-
if (e == null) return null;
|
|
28
|
-
if (typeof e == "function") return e.$$typeof === O ? null : e.displayName || e.name || null;
|
|
29
|
-
if (typeof e == "string") return e;
|
|
30
|
-
switch (e) {
|
|
31
|
-
case v: return "Fragment";
|
|
32
|
-
case b: return "Profiler";
|
|
33
|
-
case y: return "StrictMode";
|
|
34
|
-
case w: return "Suspense";
|
|
35
|
-
case T: return "SuspenseList";
|
|
36
|
-
case ee: return "Activity";
|
|
37
|
-
}
|
|
38
|
-
if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
|
|
39
|
-
case _: return "Portal";
|
|
40
|
-
case S: return e.displayName || "Context";
|
|
41
|
-
case x: return (e._context.displayName || "Context") + ".Consumer";
|
|
42
|
-
case C:
|
|
43
|
-
var n = e.render;
|
|
44
|
-
return e = e.displayName, e ||= (e = n.displayName || n.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
45
|
-
case E: return n = e.displayName || null, n === null ? t(e.type) || "Memo" : n;
|
|
46
|
-
case D:
|
|
47
|
-
n = e._payload, e = e._init;
|
|
48
|
-
try {
|
|
49
|
-
return t(e(n));
|
|
50
|
-
} catch {}
|
|
51
|
-
}
|
|
52
|
-
return null;
|
|
53
|
-
}
|
|
54
|
-
function n(e) {
|
|
55
|
-
return "" + e;
|
|
56
|
-
}
|
|
57
|
-
function r(e) {
|
|
58
|
-
try {
|
|
59
|
-
n(e);
|
|
60
|
-
var t = !1;
|
|
61
|
-
} catch {
|
|
62
|
-
t = !0;
|
|
63
|
-
}
|
|
64
|
-
if (t) {
|
|
65
|
-
t = console;
|
|
66
|
-
var r = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
67
|
-
return r.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), n(e);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
function i(e) {
|
|
71
|
-
if (e === v) return "<>";
|
|
72
|
-
if (typeof e == "object" && e && e.$$typeof === D) return "<...>";
|
|
73
|
-
try {
|
|
74
|
-
var n = t(e);
|
|
75
|
-
return n ? "<" + n + ">" : "<...>";
|
|
76
|
-
} catch {
|
|
77
|
-
return "<...>";
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
function a() {
|
|
81
|
-
var e = k.A;
|
|
82
|
-
return e === null ? null : e.getOwner();
|
|
83
|
-
}
|
|
84
|
-
function o() {
|
|
85
|
-
return Error("react-stack-top-frame");
|
|
86
|
-
}
|
|
87
|
-
function s(e) {
|
|
88
|
-
if (A.call(e, "key")) {
|
|
89
|
-
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
90
|
-
if (t && t.isReactWarning) return !1;
|
|
91
|
-
}
|
|
92
|
-
return e.key !== void 0;
|
|
93
|
-
}
|
|
94
|
-
function l(e, t) {
|
|
95
|
-
function n() {
|
|
96
|
-
te || (te = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
|
|
97
|
-
}
|
|
98
|
-
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
99
|
-
get: n,
|
|
100
|
-
configurable: !0
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
function u() {
|
|
104
|
-
var e = t(this.type);
|
|
105
|
-
return ne[e] || (ne[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
|
|
106
|
-
}
|
|
107
|
-
function d(e, t, n, r, i, a) {
|
|
108
|
-
var o = n.ref;
|
|
109
|
-
return e = {
|
|
110
|
-
$$typeof: g,
|
|
111
|
-
type: e,
|
|
112
|
-
key: t,
|
|
113
|
-
props: n,
|
|
114
|
-
_owner: r
|
|
115
|
-
}, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
|
|
116
|
-
enumerable: !1,
|
|
117
|
-
value: null
|
|
118
|
-
}) : Object.defineProperty(e, "ref", {
|
|
119
|
-
enumerable: !1,
|
|
120
|
-
get: u
|
|
121
|
-
}), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
122
|
-
configurable: !1,
|
|
123
|
-
enumerable: !1,
|
|
124
|
-
writable: !0,
|
|
125
|
-
value: 0
|
|
126
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
127
|
-
configurable: !1,
|
|
128
|
-
enumerable: !1,
|
|
129
|
-
writable: !0,
|
|
130
|
-
value: null
|
|
131
|
-
}), Object.defineProperty(e, "_debugStack", {
|
|
132
|
-
configurable: !1,
|
|
133
|
-
enumerable: !1,
|
|
134
|
-
writable: !0,
|
|
135
|
-
value: i
|
|
136
|
-
}), Object.defineProperty(e, "_debugTask", {
|
|
137
|
-
configurable: !1,
|
|
138
|
-
enumerable: !1,
|
|
139
|
-
writable: !0,
|
|
140
|
-
value: a
|
|
141
|
-
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
142
|
-
}
|
|
143
|
-
function f(e, n, i, o, c, u) {
|
|
144
|
-
var f = n.children;
|
|
145
|
-
if (f !== void 0) if (o) if (j(f)) {
|
|
146
|
-
for (o = 0; o < f.length; o++) p(f[o]);
|
|
147
|
-
Object.freeze && Object.freeze(f);
|
|
148
|
-
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
149
|
-
else p(f);
|
|
150
|
-
if (A.call(n, "key")) {
|
|
151
|
-
f = t(e);
|
|
152
|
-
var m = Object.keys(n).filter(function(e) {
|
|
153
|
-
return e !== "key";
|
|
154
|
-
});
|
|
155
|
-
o = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", re[f + o] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", o, f, m, f), re[f + o] = !0);
|
|
156
|
-
}
|
|
157
|
-
if (f = null, i !== void 0 && (r(i), f = "" + i), s(n) && (r(n.key), f = "" + n.key), "key" in n) for (var h in i = {}, n) h !== "key" && (i[h] = n[h]);
|
|
158
|
-
else i = n;
|
|
159
|
-
return f && l(i, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), d(e, f, i, a(), c, u);
|
|
160
|
-
}
|
|
161
|
-
function p(e) {
|
|
162
|
-
m(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === D && (e._payload.status === "fulfilled" ? m(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
163
|
-
}
|
|
164
|
-
function m(e) {
|
|
165
|
-
return typeof e == "object" && !!e && e.$$typeof === g;
|
|
166
|
-
}
|
|
167
|
-
var h = c("react"), g = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), S = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), ee = Symbol.for("react.activity"), O = Symbol.for("react.client.reference"), k = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, A = Object.prototype.hasOwnProperty, j = Array.isArray, M = console.createTask ? console.createTask : function() {
|
|
168
|
-
return null;
|
|
169
|
-
};
|
|
170
|
-
h = { react_stack_bottom_frame: function(e) {
|
|
171
|
-
return e();
|
|
172
|
-
} };
|
|
173
|
-
var te, ne = {}, N = h.react_stack_bottom_frame.bind(h, o)(), P = M(i(o)), re = {};
|
|
174
|
-
e.Fragment = v, e.jsx = function(e, t, n) {
|
|
175
|
-
var r = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
176
|
-
return f(e, t, n, !1, r ? Error("react-stack-top-frame") : N, r ? M(i(e)) : P);
|
|
177
|
-
}, e.jsxs = function(e, t, n) {
|
|
178
|
-
var r = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
179
|
-
return f(e, t, n, !0, r ? Error("react-stack-top-frame") : N, r ? M(i(e)) : P);
|
|
180
|
-
};
|
|
181
|
-
})();
|
|
182
|
-
})), d = (/* @__PURE__ */ s(((e, t) => {
|
|
183
|
-
process.env.NODE_ENV === "production" ? t.exports = l() : t.exports = u();
|
|
184
|
-
})))();
|
|
185
|
-
function f(t, n) {
|
|
3
|
+
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
4
|
+
import * as c from "react-dom";
|
|
5
|
+
import l from "react-dom";
|
|
6
|
+
//#region ../../node_modules/@huin-core/react-context/dist/index.mjs
|
|
7
|
+
function u(t, n) {
|
|
186
8
|
let r = e.createContext(n);
|
|
187
9
|
function i(t) {
|
|
188
10
|
let { children: n, ...i } = t, a = e.useMemo(() => i, Object.values(i));
|
|
189
|
-
return /* @__PURE__ */ (
|
|
11
|
+
return /* @__PURE__ */ o(r.Provider, {
|
|
190
12
|
value: a,
|
|
191
13
|
children: n
|
|
192
14
|
});
|
|
@@ -199,25 +21,25 @@ function f(t, n) {
|
|
|
199
21
|
}
|
|
200
22
|
return i.displayName = t + "Provider", [i, a];
|
|
201
23
|
}
|
|
202
|
-
function
|
|
24
|
+
function d(t, n = []) {
|
|
203
25
|
let r = [];
|
|
204
26
|
function i(n, i) {
|
|
205
|
-
let a = e.createContext(i),
|
|
27
|
+
let a = e.createContext(i), s = r.length;
|
|
206
28
|
r = [...r, i];
|
|
207
|
-
function
|
|
208
|
-
let { scope: r, children: i, ...
|
|
209
|
-
return /* @__PURE__ */ (
|
|
210
|
-
value:
|
|
29
|
+
function c(n) {
|
|
30
|
+
let { scope: r, children: i, ...c } = n, l = r?.[t][s] || a, u = e.useMemo(() => c, Object.values(c));
|
|
31
|
+
return /* @__PURE__ */ o(l.Provider, {
|
|
32
|
+
value: u,
|
|
211
33
|
children: i
|
|
212
34
|
});
|
|
213
35
|
}
|
|
214
|
-
function
|
|
215
|
-
let c =
|
|
36
|
+
function l(r, o) {
|
|
37
|
+
let c = o?.[t][s] || a, l = e.useContext(c);
|
|
216
38
|
if (l) return l;
|
|
217
39
|
if (i !== void 0) return i;
|
|
218
40
|
throw Error(`\`${r}\` must be used within \`${n}\``);
|
|
219
41
|
}
|
|
220
|
-
return
|
|
42
|
+
return c.displayName = n + "Provider", [c, l];
|
|
221
43
|
}
|
|
222
44
|
let a = () => {
|
|
223
45
|
let n = r.map((t) => e.createContext(t));
|
|
@@ -229,9 +51,9 @@ function p(t, n = []) {
|
|
|
229
51
|
} }), [r, i]);
|
|
230
52
|
};
|
|
231
53
|
};
|
|
232
|
-
return a.scopeName = t, [i,
|
|
54
|
+
return a.scopeName = t, [i, f(a, ...n)];
|
|
233
55
|
}
|
|
234
|
-
function
|
|
56
|
+
function f(...t) {
|
|
235
57
|
let n = t[0];
|
|
236
58
|
if (t.length === 1) return n;
|
|
237
59
|
let r = () => {
|
|
@@ -254,58 +76,58 @@ function m(...t) {
|
|
|
254
76
|
}
|
|
255
77
|
//#endregion
|
|
256
78
|
//#region ../../node_modules/@huin-core/primitive/dist/index.mjs
|
|
257
|
-
function
|
|
79
|
+
function p(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
258
80
|
return function(r) {
|
|
259
81
|
if (e?.(r), n === !1 || !r.defaultPrevented) return t?.(r);
|
|
260
82
|
};
|
|
261
83
|
}
|
|
262
84
|
//#endregion
|
|
263
85
|
//#region ../../node_modules/@huin-core/react-compose-refs/dist/index.mjs
|
|
264
|
-
function
|
|
86
|
+
function m(e, t) {
|
|
265
87
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
266
88
|
}
|
|
267
|
-
function
|
|
268
|
-
return (t) => e.forEach((e) =>
|
|
89
|
+
function h(...e) {
|
|
90
|
+
return (t) => e.forEach((e) => m(e, t));
|
|
269
91
|
}
|
|
270
|
-
function
|
|
271
|
-
return e.useCallback(
|
|
92
|
+
function g(...t) {
|
|
93
|
+
return e.useCallback(h(...t), t);
|
|
272
94
|
}
|
|
273
95
|
//#endregion
|
|
274
96
|
//#region ../../node_modules/@huin-core/react-slot/dist/index.mjs
|
|
275
|
-
var
|
|
276
|
-
let { children: r, ...i } = t, a = e.Children.toArray(r),
|
|
277
|
-
if (
|
|
278
|
-
let t =
|
|
279
|
-
return /* @__PURE__ */ (
|
|
97
|
+
var _ = e.forwardRef((t, n) => {
|
|
98
|
+
let { children: r, ...i } = t, a = e.Children.toArray(r), s = a.find(b);
|
|
99
|
+
if (s) {
|
|
100
|
+
let t = s.props.children, r = a.map((n) => n === s ? e.Children.count(t) > 1 ? e.Children.only(null) : e.isValidElement(t) ? t.props.children : null : n);
|
|
101
|
+
return /* @__PURE__ */ o(v, {
|
|
280
102
|
...i,
|
|
281
103
|
ref: n,
|
|
282
104
|
children: e.isValidElement(t) ? e.cloneElement(t, void 0, r) : null
|
|
283
105
|
});
|
|
284
106
|
}
|
|
285
|
-
return /* @__PURE__ */ (
|
|
107
|
+
return /* @__PURE__ */ o(v, {
|
|
286
108
|
...i,
|
|
287
109
|
ref: n,
|
|
288
110
|
children: r
|
|
289
111
|
});
|
|
290
112
|
});
|
|
291
|
-
|
|
292
|
-
var
|
|
113
|
+
_.displayName = "Slot";
|
|
114
|
+
var v = e.forwardRef((t, n) => {
|
|
293
115
|
let { children: r, ...i } = t;
|
|
294
116
|
if (e.isValidElement(r)) {
|
|
295
|
-
let t =
|
|
117
|
+
let t = S(r);
|
|
296
118
|
return e.cloneElement(r, {
|
|
297
|
-
...
|
|
298
|
-
ref: n ?
|
|
119
|
+
...x(i, r.props),
|
|
120
|
+
ref: n ? h(n, t) : t
|
|
299
121
|
});
|
|
300
122
|
}
|
|
301
123
|
return e.Children.count(r) > 1 ? e.Children.only(null) : null;
|
|
302
124
|
});
|
|
303
|
-
|
|
304
|
-
var
|
|
305
|
-
function
|
|
306
|
-
return e.isValidElement(t) && t.type ===
|
|
125
|
+
v.displayName = "SlotClone";
|
|
126
|
+
var y = ({ children: e }) => /* @__PURE__ */ o(a, { children: e });
|
|
127
|
+
function b(t) {
|
|
128
|
+
return e.isValidElement(t) && t.type === y;
|
|
307
129
|
}
|
|
308
|
-
function
|
|
130
|
+
function x(e, t) {
|
|
309
131
|
let n = { ...t };
|
|
310
132
|
for (let r in t) {
|
|
311
133
|
let i = e[r], a = t[r];
|
|
@@ -321,59 +143,59 @@ function C(e, t) {
|
|
|
321
143
|
...n
|
|
322
144
|
};
|
|
323
145
|
}
|
|
324
|
-
function
|
|
146
|
+
function S(e) {
|
|
325
147
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
326
148
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
327
149
|
}
|
|
328
150
|
//#endregion
|
|
329
151
|
//#region ../../node_modules/@huin-core/react-collection/dist/index.mjs
|
|
330
|
-
function
|
|
331
|
-
let n = e + "CollectionProvider", [r, i] =
|
|
152
|
+
function C(e) {
|
|
153
|
+
let n = e + "CollectionProvider", [r, i] = d(n), [a, s] = r(n, {
|
|
332
154
|
collectionRef: { current: null },
|
|
333
155
|
itemMap: /* @__PURE__ */ new Map()
|
|
334
|
-
}),
|
|
335
|
-
let { scope: n, children: r } = e, i = t.useRef(null),
|
|
336
|
-
return /* @__PURE__ */ (
|
|
156
|
+
}), c = (e) => {
|
|
157
|
+
let { scope: n, children: r } = e, i = t.useRef(null), s = t.useRef(/* @__PURE__ */ new Map()).current;
|
|
158
|
+
return /* @__PURE__ */ o(a, {
|
|
337
159
|
scope: n,
|
|
338
|
-
itemMap:
|
|
160
|
+
itemMap: s,
|
|
339
161
|
collectionRef: i,
|
|
340
162
|
children: r
|
|
341
163
|
});
|
|
342
164
|
};
|
|
343
|
-
|
|
344
|
-
let
|
|
165
|
+
c.displayName = n;
|
|
166
|
+
let l = e + "CollectionSlot", u = t.forwardRef((e, t) => {
|
|
345
167
|
let { scope: n, children: r } = e;
|
|
346
|
-
return /* @__PURE__ */ (
|
|
347
|
-
ref:
|
|
168
|
+
return /* @__PURE__ */ o(_, {
|
|
169
|
+
ref: g(t, s(l, n).collectionRef),
|
|
348
170
|
children: r
|
|
349
171
|
});
|
|
350
172
|
});
|
|
351
|
-
|
|
352
|
-
let
|
|
353
|
-
let { scope: r, children: i, ...a } = e,
|
|
354
|
-
return t.useEffect(() => (
|
|
355
|
-
ref: s,
|
|
356
|
-
...a
|
|
357
|
-
}), () => void l.itemMap.delete(s))), /* @__PURE__ */ (0, d.jsx)(y, {
|
|
358
|
-
[f]: "",
|
|
173
|
+
u.displayName = l;
|
|
174
|
+
let f = e + "CollectionItemSlot", p = "data-huin-core-collection-item", m = t.forwardRef((e, n) => {
|
|
175
|
+
let { scope: r, children: i, ...a } = e, c = t.useRef(null), l = g(n, c), u = s(f, r);
|
|
176
|
+
return t.useEffect(() => (u.itemMap.set(c, {
|
|
359
177
|
ref: c,
|
|
178
|
+
...a
|
|
179
|
+
}), () => void u.itemMap.delete(c))), /* @__PURE__ */ o(_, {
|
|
180
|
+
[p]: "",
|
|
181
|
+
ref: l,
|
|
360
182
|
children: i
|
|
361
183
|
});
|
|
362
184
|
});
|
|
363
|
-
m.displayName =
|
|
185
|
+
m.displayName = f;
|
|
364
186
|
function h(n) {
|
|
365
|
-
let r =
|
|
187
|
+
let r = s(e + "CollectionConsumer", n);
|
|
366
188
|
return t.useCallback(() => {
|
|
367
189
|
let e = r.collectionRef.current;
|
|
368
190
|
if (!e) return [];
|
|
369
|
-
let t = Array.from(e.querySelectorAll(`[${
|
|
191
|
+
let t = Array.from(e.querySelectorAll(`[${p}]`));
|
|
370
192
|
return Array.from(r.itemMap.values()).sort((e, n) => t.indexOf(e.ref.current) - t.indexOf(n.ref.current));
|
|
371
193
|
}, [r.collectionRef, r.itemMap]);
|
|
372
194
|
}
|
|
373
195
|
return [
|
|
374
196
|
{
|
|
375
|
-
Provider:
|
|
376
|
-
Slot:
|
|
197
|
+
Provider: c,
|
|
198
|
+
Slot: u,
|
|
377
199
|
ItemSlot: m
|
|
378
200
|
},
|
|
379
201
|
h,
|
|
@@ -382,16 +204,16 @@ function T(e) {
|
|
|
382
204
|
}
|
|
383
205
|
//#endregion
|
|
384
206
|
//#region ../../node_modules/@huin-core/react-use-layout-effect/dist/index.mjs
|
|
385
|
-
var
|
|
386
|
-
function
|
|
387
|
-
let [n, r] = e.useState(
|
|
388
|
-
return
|
|
389
|
-
t || r((e) => e ?? String(
|
|
207
|
+
var w = globalThis?.document ? e.useLayoutEffect : () => {}, T = e.useId || (() => void 0), E = 0;
|
|
208
|
+
function D(t) {
|
|
209
|
+
let [n, r] = e.useState(T());
|
|
210
|
+
return w(() => {
|
|
211
|
+
t || r((e) => e ?? String(E++));
|
|
390
212
|
}, [t]), t || (n ? `huin-${n}` : "");
|
|
391
213
|
}
|
|
392
214
|
//#endregion
|
|
393
215
|
//#region ../../node_modules/@huin-core/react-primitive/dist/index.mjs
|
|
394
|
-
var
|
|
216
|
+
var O = [
|
|
395
217
|
"a",
|
|
396
218
|
"button",
|
|
397
219
|
"div",
|
|
@@ -411,8 +233,8 @@ var k = [
|
|
|
411
233
|
"ul"
|
|
412
234
|
].reduce((t, n) => {
|
|
413
235
|
let r = e.forwardRef((e, t) => {
|
|
414
|
-
let { asChild: r, ...i } = e, a = r ?
|
|
415
|
-
return typeof window < "u" && (window[Symbol.for("huin-core")] = !0), /* @__PURE__ */ (
|
|
236
|
+
let { asChild: r, ...i } = e, a = r ? _ : n;
|
|
237
|
+
return typeof window < "u" && (window[Symbol.for("huin-core")] = !0), /* @__PURE__ */ o(a, {
|
|
416
238
|
...i,
|
|
417
239
|
ref: t
|
|
418
240
|
});
|
|
@@ -422,12 +244,12 @@ var k = [
|
|
|
422
244
|
[n]: r
|
|
423
245
|
};
|
|
424
246
|
}, {});
|
|
425
|
-
function
|
|
426
|
-
e &&
|
|
247
|
+
function ee(e, t) {
|
|
248
|
+
e && c.flushSync(() => e.dispatchEvent(t));
|
|
427
249
|
}
|
|
428
250
|
//#endregion
|
|
429
251
|
//#region ../../node_modules/@huin-core/react-use-callback-ref/dist/index.mjs
|
|
430
|
-
function
|
|
252
|
+
function k(t) {
|
|
431
253
|
let n = e.useRef(t);
|
|
432
254
|
return e.useEffect(() => {
|
|
433
255
|
n.current = t;
|
|
@@ -435,11 +257,11 @@ function j(t) {
|
|
|
435
257
|
}
|
|
436
258
|
//#endregion
|
|
437
259
|
//#region ../../node_modules/@huin-core/react-use-controllable-state/dist/index.mjs
|
|
438
|
-
function
|
|
439
|
-
let [i, a] =
|
|
260
|
+
function A({ prop: t, defaultProp: n, onChange: r = () => {} }) {
|
|
261
|
+
let [i, a] = j({
|
|
440
262
|
defaultProp: n,
|
|
441
263
|
onChange: r
|
|
442
|
-
}), o = t !== void 0, s = o ? t : i, c =
|
|
264
|
+
}), o = t !== void 0, s = o ? t : i, c = k(r);
|
|
443
265
|
return [s, e.useCallback((e) => {
|
|
444
266
|
if (o) {
|
|
445
267
|
let n = typeof e == "function" ? e(t) : e;
|
|
@@ -452,8 +274,8 @@ function M({ prop: t, defaultProp: n, onChange: r = () => {} }) {
|
|
|
452
274
|
c
|
|
453
275
|
])];
|
|
454
276
|
}
|
|
455
|
-
function
|
|
456
|
-
let r = e.useState(t), [i] = r, a = e.useRef(i), o =
|
|
277
|
+
function j({ defaultProp: t, onChange: n }) {
|
|
278
|
+
let r = e.useState(t), [i] = r, a = e.useRef(i), o = k(n);
|
|
457
279
|
return e.useEffect(() => {
|
|
458
280
|
a.current !== i && (o(i), a.current = i);
|
|
459
281
|
}, [
|
|
@@ -464,65 +286,65 @@ function te({ defaultProp: t, onChange: n }) {
|
|
|
464
286
|
}
|
|
465
287
|
//#endregion
|
|
466
288
|
//#region ../../node_modules/@huin-core/react-direction/dist/index.mjs
|
|
467
|
-
var
|
|
468
|
-
function
|
|
469
|
-
let n = e.useContext(
|
|
289
|
+
var M = e.createContext(void 0);
|
|
290
|
+
function te(t) {
|
|
291
|
+
let n = e.useContext(M);
|
|
470
292
|
return t || n || "ltr";
|
|
471
293
|
}
|
|
472
294
|
//#endregion
|
|
473
295
|
//#region ../../node_modules/@huin-core/react-roving-focus/dist/index.mjs
|
|
474
|
-
var
|
|
296
|
+
var N = "rovingFocusGroup.onEntryFocus", P = {
|
|
475
297
|
bubbles: !1,
|
|
476
298
|
cancelable: !0
|
|
477
|
-
}, F = "RovingFocusGroup", [
|
|
299
|
+
}, F = "RovingFocusGroup", [ne, re, ie] = C(F), [I, L] = d(F, [ie]), [ae, oe] = I(F), R = e.forwardRef((e, t) => /* @__PURE__ */ o(ne.Provider, {
|
|
478
300
|
scope: e.__scopeRovingFocusGroup,
|
|
479
|
-
children: /* @__PURE__ */ (
|
|
301
|
+
children: /* @__PURE__ */ o(ne.Slot, {
|
|
480
302
|
scope: e.__scopeRovingFocusGroup,
|
|
481
|
-
children: /* @__PURE__ */ (
|
|
303
|
+
children: /* @__PURE__ */ o(se, {
|
|
482
304
|
...e,
|
|
483
305
|
ref: t
|
|
484
306
|
})
|
|
485
307
|
})
|
|
486
308
|
}));
|
|
487
|
-
|
|
488
|
-
var
|
|
489
|
-
let { __scopeRovingFocusGroup: r, orientation: i, loop: a = !1, dir:
|
|
490
|
-
prop:
|
|
491
|
-
defaultProp:
|
|
492
|
-
onChange:
|
|
493
|
-
}), [x, S] = e.useState(!1), C =
|
|
309
|
+
R.displayName = F;
|
|
310
|
+
var se = e.forwardRef((t, n) => {
|
|
311
|
+
let { __scopeRovingFocusGroup: r, orientation: i, loop: a = !1, dir: s, currentTabStopId: c, defaultCurrentTabStopId: l, onCurrentTabStopIdChange: u, onEntryFocus: d, preventScrollOnEntryFocus: f = !1, ...m } = t, h = e.useRef(null), _ = g(n, h), v = te(s), [y = null, b] = A({
|
|
312
|
+
prop: c,
|
|
313
|
+
defaultProp: l,
|
|
314
|
+
onChange: u
|
|
315
|
+
}), [x, S] = e.useState(!1), C = k(d), w = re(r), T = e.useRef(!1), [E, D] = e.useState(0);
|
|
494
316
|
return e.useEffect(() => {
|
|
495
|
-
let e =
|
|
496
|
-
if (e) return e.addEventListener(
|
|
497
|
-
}, [C]), /* @__PURE__ */ (
|
|
317
|
+
let e = h.current;
|
|
318
|
+
if (e) return e.addEventListener(N, C), () => e.removeEventListener(N, C);
|
|
319
|
+
}, [C]), /* @__PURE__ */ o(ae, {
|
|
498
320
|
scope: r,
|
|
499
321
|
orientation: i,
|
|
500
|
-
dir:
|
|
322
|
+
dir: v,
|
|
501
323
|
loop: a,
|
|
502
324
|
currentTabStopId: y,
|
|
503
325
|
onItemFocus: e.useCallback((e) => b(e), [b]),
|
|
504
326
|
onItemShiftTab: e.useCallback(() => S(!0), []),
|
|
505
327
|
onFocusableItemAdd: e.useCallback(() => D((e) => e + 1), []),
|
|
506
328
|
onFocusableItemRemove: e.useCallback(() => D((e) => e - 1), []),
|
|
507
|
-
children: /* @__PURE__ */ (
|
|
329
|
+
children: /* @__PURE__ */ o(O.div, {
|
|
508
330
|
tabIndex: x || E === 0 ? -1 : 0,
|
|
509
331
|
"data-orientation": i,
|
|
510
|
-
...
|
|
511
|
-
ref:
|
|
332
|
+
...m,
|
|
333
|
+
ref: _,
|
|
512
334
|
style: {
|
|
513
335
|
outline: "none",
|
|
514
336
|
...t.style
|
|
515
337
|
},
|
|
516
|
-
onMouseDown:
|
|
338
|
+
onMouseDown: p(t.onMouseDown, () => {
|
|
517
339
|
T.current = !0;
|
|
518
340
|
}),
|
|
519
|
-
onFocus:
|
|
341
|
+
onFocus: p(t.onFocus, (e) => {
|
|
520
342
|
let t = !T.current;
|
|
521
343
|
if (e.target === e.currentTarget && t && !x) {
|
|
522
|
-
let t = new CustomEvent(
|
|
344
|
+
let t = new CustomEvent(N, P);
|
|
523
345
|
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
524
346
|
let e = w().filter((e) => e.focusable);
|
|
525
|
-
|
|
347
|
+
pe([
|
|
526
348
|
e.find((e) => e.active),
|
|
527
349
|
e.find((e) => e.id === y),
|
|
528
350
|
...e
|
|
@@ -531,56 +353,56 @@ var le = e.forwardRef((t, n) => {
|
|
|
531
353
|
}
|
|
532
354
|
T.current = !1;
|
|
533
355
|
}),
|
|
534
|
-
onBlur:
|
|
356
|
+
onBlur: p(t.onBlur, () => S(!1))
|
|
535
357
|
})
|
|
536
358
|
});
|
|
537
|
-
}),
|
|
538
|
-
let { __scopeRovingFocusGroup: r, focusable: i = !0, active: a = !1, tabStopId:
|
|
359
|
+
}), ce = "RovingFocusGroupItem", le = e.forwardRef((t, n) => {
|
|
360
|
+
let { __scopeRovingFocusGroup: r, focusable: i = !0, active: a = !1, tabStopId: s, ...c } = t, l = D(), u = s || l, d = oe(ce, r), f = d.currentTabStopId === u, m = re(r), { onFocusableItemAdd: h, onFocusableItemRemove: g } = d;
|
|
539
361
|
return e.useEffect(() => {
|
|
540
|
-
if (i) return
|
|
362
|
+
if (i) return h(), () => g();
|
|
541
363
|
}, [
|
|
542
364
|
i,
|
|
543
|
-
|
|
365
|
+
h,
|
|
544
366
|
g
|
|
545
|
-
]), /* @__PURE__ */ (
|
|
367
|
+
]), /* @__PURE__ */ o(ne.ItemSlot, {
|
|
546
368
|
scope: r,
|
|
547
|
-
id:
|
|
369
|
+
id: u,
|
|
548
370
|
focusable: i,
|
|
549
371
|
active: a,
|
|
550
|
-
children: /* @__PURE__ */ (
|
|
372
|
+
children: /* @__PURE__ */ o(O.span, {
|
|
551
373
|
tabIndex: f ? 0 : -1,
|
|
552
|
-
"data-orientation":
|
|
553
|
-
...
|
|
374
|
+
"data-orientation": d.orientation,
|
|
375
|
+
...c,
|
|
554
376
|
ref: n,
|
|
555
|
-
onMouseDown:
|
|
556
|
-
i ?
|
|
377
|
+
onMouseDown: p(t.onMouseDown, (e) => {
|
|
378
|
+
i ? d.onItemFocus(u) : e.preventDefault();
|
|
557
379
|
}),
|
|
558
|
-
onFocus:
|
|
559
|
-
onKeyDown:
|
|
380
|
+
onFocus: p(t.onFocus, () => d.onItemFocus(u)),
|
|
381
|
+
onKeyDown: p(t.onKeyDown, (e) => {
|
|
560
382
|
if (e.key === "Tab" && e.shiftKey) {
|
|
561
|
-
|
|
383
|
+
d.onItemShiftTab();
|
|
562
384
|
return;
|
|
563
385
|
}
|
|
564
386
|
if (e.target !== e.currentTarget) return;
|
|
565
|
-
let t =
|
|
387
|
+
let t = fe(e, d.orientation, d.dir);
|
|
566
388
|
if (t !== void 0) {
|
|
567
389
|
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
568
390
|
e.preventDefault();
|
|
569
|
-
let n =
|
|
391
|
+
let n = m().filter((e) => e.focusable).map((e) => e.ref.current);
|
|
570
392
|
if (t === "last") n.reverse();
|
|
571
393
|
else if (t === "prev" || t === "next") {
|
|
572
394
|
t === "prev" && n.reverse();
|
|
573
395
|
let r = n.indexOf(e.currentTarget);
|
|
574
|
-
n =
|
|
396
|
+
n = d.loop ? me(n, r + 1) : n.slice(r + 1);
|
|
575
397
|
}
|
|
576
|
-
setTimeout(() =>
|
|
398
|
+
setTimeout(() => pe(n));
|
|
577
399
|
}
|
|
578
400
|
})
|
|
579
401
|
})
|
|
580
402
|
});
|
|
581
403
|
});
|
|
582
|
-
|
|
583
|
-
var
|
|
404
|
+
le.displayName = ce;
|
|
405
|
+
var ue = {
|
|
584
406
|
ArrowLeft: "prev",
|
|
585
407
|
ArrowUp: "prev",
|
|
586
408
|
ArrowRight: "next",
|
|
@@ -590,33 +412,33 @@ var fe = {
|
|
|
590
412
|
PageDown: "last",
|
|
591
413
|
End: "last"
|
|
592
414
|
};
|
|
593
|
-
function
|
|
415
|
+
function de(e, t) {
|
|
594
416
|
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
595
417
|
}
|
|
596
|
-
function
|
|
597
|
-
let r =
|
|
598
|
-
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return
|
|
418
|
+
function fe(e, t, n) {
|
|
419
|
+
let r = de(e.key, n);
|
|
420
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return ue[r];
|
|
599
421
|
}
|
|
600
|
-
function
|
|
422
|
+
function pe(e, t = !1) {
|
|
601
423
|
let n = document.activeElement;
|
|
602
424
|
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
603
425
|
}
|
|
604
|
-
function
|
|
426
|
+
function me(e, t) {
|
|
605
427
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
606
428
|
}
|
|
607
|
-
var
|
|
429
|
+
var he = R, ge = le;
|
|
608
430
|
//#endregion
|
|
609
431
|
//#region ../../node_modules/@huin-core/react-presence/dist/index.mjs
|
|
610
|
-
function
|
|
432
|
+
function _e(t, n) {
|
|
611
433
|
return e.useReducer((e, t) => n[e][t] ?? e, t);
|
|
612
434
|
}
|
|
613
|
-
var
|
|
614
|
-
let { present: n, children: r } = t, i =
|
|
435
|
+
var ve = (t) => {
|
|
436
|
+
let { present: n, children: r } = t, i = ye(n), a = typeof r == "function" ? r({ present: i.isPresent }) : e.Children.only(r), o = g(i.ref, xe(a));
|
|
615
437
|
return typeof r == "function" || i.isPresent ? e.cloneElement(a, { ref: o }) : null;
|
|
616
438
|
};
|
|
617
|
-
|
|
618
|
-
function
|
|
619
|
-
let [n, r] = e.useState(), i = e.useRef({}),
|
|
439
|
+
ve.displayName = "Presence";
|
|
440
|
+
function ye(t) {
|
|
441
|
+
let [n, r] = e.useState(), i = e.useRef({}), a = e.useRef(t), o = e.useRef("none"), [s, l] = _e(t ? "mounted" : "unmounted", {
|
|
620
442
|
mounted: {
|
|
621
443
|
UNMOUNT: "unmounted",
|
|
622
444
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -628,74 +450,74 @@ function xe(t) {
|
|
|
628
450
|
unmounted: { MOUNT: "mounted" }
|
|
629
451
|
});
|
|
630
452
|
return e.useEffect(() => {
|
|
631
|
-
let e =
|
|
632
|
-
|
|
633
|
-
}, [
|
|
634
|
-
let e = i.current, n =
|
|
453
|
+
let e = be(i.current);
|
|
454
|
+
o.current = s === "mounted" ? e : "none";
|
|
455
|
+
}, [s]), w(() => {
|
|
456
|
+
let e = i.current, n = a.current;
|
|
635
457
|
if (n !== t) {
|
|
636
|
-
let r =
|
|
637
|
-
t ? l("MOUNT") : i === "none" || e?.display === "none" ? l("UNMOUNT") : l(n && r !== i ? "ANIMATION_OUT" : "UNMOUNT"),
|
|
458
|
+
let r = o.current, i = be(e);
|
|
459
|
+
t ? l("MOUNT") : i === "none" || e?.display === "none" ? l("UNMOUNT") : l(n && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), a.current = t;
|
|
638
460
|
}
|
|
639
|
-
}, [t, l]),
|
|
461
|
+
}, [t, l]), w(() => {
|
|
640
462
|
if (n) {
|
|
641
463
|
let e = (e) => {
|
|
642
|
-
let t =
|
|
643
|
-
e.target === n && t &&
|
|
464
|
+
let t = be(i.current).includes(e.animationName);
|
|
465
|
+
e.target === n && t && c.flushSync(() => l("ANIMATION_END"));
|
|
644
466
|
}, t = (e) => {
|
|
645
|
-
e.target === n && (
|
|
467
|
+
e.target === n && (o.current = be(i.current));
|
|
646
468
|
};
|
|
647
469
|
return n.addEventListener("animationstart", t), n.addEventListener("animationcancel", e), n.addEventListener("animationend", e), () => {
|
|
648
470
|
n.removeEventListener("animationstart", t), n.removeEventListener("animationcancel", e), n.removeEventListener("animationend", e);
|
|
649
471
|
};
|
|
650
472
|
} else l("ANIMATION_END");
|
|
651
473
|
}, [n, l]), {
|
|
652
|
-
isPresent: ["mounted", "unmountSuspended"].includes(
|
|
474
|
+
isPresent: ["mounted", "unmountSuspended"].includes(s),
|
|
653
475
|
ref: e.useCallback((e) => {
|
|
654
476
|
e && (i.current = getComputedStyle(e)), r(e);
|
|
655
477
|
}, [])
|
|
656
478
|
};
|
|
657
479
|
}
|
|
658
|
-
function
|
|
480
|
+
function be(e) {
|
|
659
481
|
return e?.animationName || "none";
|
|
660
482
|
}
|
|
661
|
-
function
|
|
483
|
+
function xe(e) {
|
|
662
484
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
663
485
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
664
486
|
}
|
|
665
487
|
//#endregion
|
|
666
488
|
//#region ../../node_modules/@huin-core/react-tabs/dist/index.mjs
|
|
667
|
-
var
|
|
668
|
-
let { __scopeTabs: n, value: r, onValueChange: i, defaultValue: a, orientation:
|
|
489
|
+
var Se = "Tabs", [Ce, we] = d(Se, [L]), [Te, Ee] = Ce(Se), De = e.forwardRef((e, t) => {
|
|
490
|
+
let { __scopeTabs: n, value: r, onValueChange: i, defaultValue: a, orientation: s = "horizontal", dir: c, activationMode: l = "automatic", ...u } = e, d = te(c), [f, p] = A({
|
|
669
491
|
prop: r,
|
|
670
492
|
onChange: i,
|
|
671
493
|
defaultProp: a
|
|
672
494
|
});
|
|
673
|
-
return /* @__PURE__ */ (
|
|
495
|
+
return /* @__PURE__ */ o(Te, {
|
|
674
496
|
scope: n,
|
|
675
|
-
baseId:
|
|
497
|
+
baseId: D(),
|
|
676
498
|
value: f,
|
|
677
499
|
onValueChange: p,
|
|
678
|
-
orientation:
|
|
679
|
-
dir:
|
|
680
|
-
activationMode:
|
|
681
|
-
children: /* @__PURE__ */ (
|
|
682
|
-
dir:
|
|
683
|
-
"data-orientation":
|
|
684
|
-
...
|
|
500
|
+
orientation: s,
|
|
501
|
+
dir: d,
|
|
502
|
+
activationMode: l,
|
|
503
|
+
children: /* @__PURE__ */ o(O.div, {
|
|
504
|
+
dir: d,
|
|
505
|
+
"data-orientation": s,
|
|
506
|
+
...u,
|
|
685
507
|
ref: t
|
|
686
508
|
})
|
|
687
509
|
});
|
|
688
510
|
});
|
|
689
|
-
|
|
690
|
-
var
|
|
691
|
-
let { __scopeTabs: n, loop: r = !0, ...i } = e, a = Oe
|
|
692
|
-
return /* @__PURE__ */ (
|
|
511
|
+
De.displayName = Se;
|
|
512
|
+
var Oe = "TabsList", ke = L(), Ae = t.forwardRef((e, t) => {
|
|
513
|
+
let { __scopeTabs: n, loop: r = !0, ...i } = e, a = Ee(Oe, n);
|
|
514
|
+
return /* @__PURE__ */ o(he, {
|
|
693
515
|
asChild: !0,
|
|
694
|
-
...
|
|
516
|
+
...ke(n),
|
|
695
517
|
orientation: a.orientation,
|
|
696
518
|
dir: a.dir,
|
|
697
519
|
loop: r,
|
|
698
|
-
children: /* @__PURE__ */ (
|
|
520
|
+
children: /* @__PURE__ */ o(O.div, {
|
|
699
521
|
role: "tablist",
|
|
700
522
|
"aria-orientation": a.orientation,
|
|
701
523
|
...i,
|
|
@@ -703,182 +525,182 @@ var Ae = "TabsList", je = oe(), Me = t.forwardRef((e, t) => {
|
|
|
703
525
|
})
|
|
704
526
|
});
|
|
705
527
|
});
|
|
706
|
-
|
|
707
|
-
var
|
|
708
|
-
let { __scopeTabs: r, value: i, forceMount: a, children:
|
|
528
|
+
Ae.displayName = Oe;
|
|
529
|
+
var je = "TabsContent", Me = t.forwardRef((e, n) => {
|
|
530
|
+
let { __scopeTabs: r, value: i, forceMount: a, children: s, ...c } = e, l = Ee(je, r), u = Ne(l.baseId, i), d = Pe(l.baseId, i), f = i === l.value, p = t.useRef(f);
|
|
709
531
|
return t.useEffect(() => {
|
|
710
532
|
let e = requestAnimationFrame(() => p.current = !1);
|
|
711
533
|
return () => cancelAnimationFrame(e);
|
|
712
|
-
}, []), /* @__PURE__ */ (
|
|
534
|
+
}, []), /* @__PURE__ */ o(ve, {
|
|
713
535
|
present: a || f,
|
|
714
|
-
children: ({ present: t }) => /* @__PURE__ */ (
|
|
536
|
+
children: ({ present: t }) => /* @__PURE__ */ o(O.div, {
|
|
715
537
|
"data-state": f ? "active" : "inactive",
|
|
716
|
-
"data-orientation":
|
|
538
|
+
"data-orientation": l.orientation,
|
|
717
539
|
role: "tabpanel",
|
|
718
|
-
"aria-labelledby":
|
|
540
|
+
"aria-labelledby": u,
|
|
719
541
|
hidden: !t,
|
|
720
|
-
id:
|
|
542
|
+
id: d,
|
|
721
543
|
tabIndex: 0,
|
|
722
|
-
...
|
|
544
|
+
...c,
|
|
723
545
|
ref: n,
|
|
724
546
|
style: {
|
|
725
547
|
...e.style,
|
|
726
548
|
animationDuration: p.current ? "0s" : void 0
|
|
727
549
|
},
|
|
728
|
-
children: t &&
|
|
550
|
+
children: t && s
|
|
729
551
|
})
|
|
730
552
|
});
|
|
731
553
|
});
|
|
732
|
-
|
|
733
|
-
function
|
|
554
|
+
Me.displayName = je;
|
|
555
|
+
function Ne(e, t) {
|
|
734
556
|
return `${e}-trigger-${t}`;
|
|
735
557
|
}
|
|
736
|
-
function
|
|
558
|
+
function Pe(e, t) {
|
|
737
559
|
return `${e}-content-${t}`;
|
|
738
560
|
}
|
|
739
|
-
var
|
|
740
|
-
let { __scopeTabs: n, value: r, disabled: i = !1, ...a } = e,
|
|
741
|
-
return /* @__PURE__ */ (
|
|
561
|
+
var Fe = "TabsTrigger", Ie = t.forwardRef((e, t) => {
|
|
562
|
+
let { __scopeTabs: n, value: r, disabled: i = !1, ...a } = e, s = Ee(Fe, n), c = ke(n), l = Ne(s.baseId, r), u = Pe(s.baseId, r), d = r === s.value;
|
|
563
|
+
return /* @__PURE__ */ o(ge, {
|
|
742
564
|
asChild: !0,
|
|
743
|
-
...
|
|
565
|
+
...c,
|
|
744
566
|
focusable: !i,
|
|
745
|
-
active:
|
|
746
|
-
children: /* @__PURE__ */ (
|
|
567
|
+
active: d,
|
|
568
|
+
children: /* @__PURE__ */ o(O.button, {
|
|
747
569
|
type: "button",
|
|
748
570
|
role: "tab",
|
|
749
|
-
"aria-selected":
|
|
750
|
-
"aria-controls":
|
|
751
|
-
"data-state":
|
|
571
|
+
"aria-selected": d,
|
|
572
|
+
"aria-controls": u,
|
|
573
|
+
"data-state": d ? "active" : "inactive",
|
|
752
574
|
"data-disabled": i ? "" : void 0,
|
|
753
575
|
disabled: i,
|
|
754
|
-
id:
|
|
576
|
+
id: l,
|
|
755
577
|
...a,
|
|
756
578
|
ref: t,
|
|
757
|
-
onMouseDown:
|
|
758
|
-
!i && e.button === 0 && e.ctrlKey === !1 ?
|
|
579
|
+
onMouseDown: p(e.onMouseDown, (e) => {
|
|
580
|
+
!i && e.button === 0 && e.ctrlKey === !1 ? s.onValueChange(r) : e.preventDefault();
|
|
759
581
|
}),
|
|
760
|
-
onKeyDown:
|
|
761
|
-
[" ", "Enter"].includes(e.key) &&
|
|
582
|
+
onKeyDown: p(e.onKeyDown, (e) => {
|
|
583
|
+
[" ", "Enter"].includes(e.key) && s.onValueChange(r);
|
|
762
584
|
}),
|
|
763
|
-
onFocus:
|
|
764
|
-
let e =
|
|
765
|
-
!
|
|
585
|
+
onFocus: p(e.onFocus, () => {
|
|
586
|
+
let e = s.activationMode !== "manual";
|
|
587
|
+
!d && !i && e && s.onValueChange(r);
|
|
766
588
|
})
|
|
767
589
|
})
|
|
768
590
|
});
|
|
769
591
|
});
|
|
770
|
-
|
|
592
|
+
Ie.displayName = Fe;
|
|
771
593
|
//#endregion
|
|
772
594
|
//#region ../../node_modules/clsx/dist/clsx.mjs
|
|
773
|
-
function
|
|
595
|
+
function Le(e) {
|
|
774
596
|
var t, n, r = "";
|
|
775
597
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
776
598
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
777
599
|
var i = e.length;
|
|
778
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
600
|
+
for (t = 0; t < i; t++) e[t] && (n = Le(e[t])) && (r && (r += " "), r += n);
|
|
779
601
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
780
602
|
return r;
|
|
781
603
|
}
|
|
782
|
-
function
|
|
783
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
604
|
+
function Re() {
|
|
605
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Le(e)) && (r && (r += " "), r += t);
|
|
784
606
|
return r;
|
|
785
607
|
}
|
|
786
608
|
//#endregion
|
|
787
609
|
//#region ../../node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
788
|
-
var
|
|
610
|
+
var ze = (e, t) => {
|
|
789
611
|
let n = Array(e.length + t.length);
|
|
790
612
|
for (let t = 0; t < e.length; t++) n[t] = e[t];
|
|
791
613
|
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
|
|
792
614
|
return n;
|
|
793
|
-
},
|
|
615
|
+
}, Be = (e, t) => ({
|
|
794
616
|
classGroupId: e,
|
|
795
617
|
validator: t
|
|
796
|
-
}),
|
|
618
|
+
}), Ve = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
797
619
|
nextPart: e,
|
|
798
620
|
validators: t,
|
|
799
621
|
classGroupId: n
|
|
800
|
-
}),
|
|
801
|
-
let t =
|
|
622
|
+
}), He = "-", Ue = [], We = "arbitrary..", Ge = (e) => {
|
|
623
|
+
let t = Je(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
|
|
802
624
|
return {
|
|
803
625
|
getClassGroupId: (e) => {
|
|
804
|
-
if (e.startsWith("[") && e.endsWith("]")) return
|
|
805
|
-
let n = e.split(
|
|
806
|
-
return
|
|
626
|
+
if (e.startsWith("[") && e.endsWith("]")) return qe(e);
|
|
627
|
+
let n = e.split(He);
|
|
628
|
+
return Ke(n, +(n[0] === "" && n.length > 1), t);
|
|
807
629
|
},
|
|
808
630
|
getConflictingClassGroupIds: (e, t) => {
|
|
809
631
|
if (t) {
|
|
810
632
|
let t = r[e], i = n[e];
|
|
811
|
-
return t ? i ?
|
|
633
|
+
return t ? i ? ze(i, t) : t : i || Ue;
|
|
812
634
|
}
|
|
813
|
-
return n[e] ||
|
|
635
|
+
return n[e] || Ue;
|
|
814
636
|
}
|
|
815
637
|
};
|
|
816
|
-
},
|
|
638
|
+
}, Ke = (e, t, n) => {
|
|
817
639
|
if (e.length - t === 0) return n.classGroupId;
|
|
818
640
|
let r = e[t], i = n.nextPart.get(r);
|
|
819
641
|
if (i) {
|
|
820
|
-
let n =
|
|
642
|
+
let n = Ke(e, t + 1, i);
|
|
821
643
|
if (n) return n;
|
|
822
644
|
}
|
|
823
645
|
let a = n.validators;
|
|
824
646
|
if (a === null) return;
|
|
825
|
-
let o = t === 0 ? e.join(
|
|
647
|
+
let o = t === 0 ? e.join(He) : e.slice(t).join(He), s = a.length;
|
|
826
648
|
for (let e = 0; e < s; e++) {
|
|
827
649
|
let t = a[e];
|
|
828
650
|
if (t.validator(o)) return t.classGroupId;
|
|
829
651
|
}
|
|
830
|
-
},
|
|
652
|
+
}, qe = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
831
653
|
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
|
|
832
|
-
return r ?
|
|
833
|
-
})(),
|
|
654
|
+
return r ? We + r : void 0;
|
|
655
|
+
})(), Je = (e) => {
|
|
834
656
|
let { theme: t, classGroups: n } = e;
|
|
835
|
-
return
|
|
836
|
-
},
|
|
837
|
-
let n =
|
|
657
|
+
return Ye(n, t);
|
|
658
|
+
}, Ye = (e, t) => {
|
|
659
|
+
let n = Ve();
|
|
838
660
|
for (let r in e) {
|
|
839
661
|
let i = e[r];
|
|
840
|
-
|
|
662
|
+
Xe(i, n, r, t);
|
|
841
663
|
}
|
|
842
664
|
return n;
|
|
843
|
-
},
|
|
665
|
+
}, Xe = (e, t, n, r) => {
|
|
844
666
|
let i = e.length;
|
|
845
667
|
for (let a = 0; a < i; a++) {
|
|
846
668
|
let i = e[a];
|
|
847
|
-
|
|
669
|
+
Ze(i, t, n, r);
|
|
848
670
|
}
|
|
849
|
-
},
|
|
671
|
+
}, Ze = (e, t, n, r) => {
|
|
850
672
|
if (typeof e == "string") {
|
|
851
|
-
|
|
673
|
+
Qe(e, t, n);
|
|
852
674
|
return;
|
|
853
675
|
}
|
|
854
676
|
if (typeof e == "function") {
|
|
855
|
-
|
|
677
|
+
$e(e, t, n, r);
|
|
856
678
|
return;
|
|
857
679
|
}
|
|
858
|
-
|
|
859
|
-
},
|
|
860
|
-
let r = e === "" ? t :
|
|
680
|
+
et(e, t, n, r);
|
|
681
|
+
}, Qe = (e, t, n) => {
|
|
682
|
+
let r = e === "" ? t : tt(t, e);
|
|
861
683
|
r.classGroupId = n;
|
|
862
|
-
},
|
|
863
|
-
if (
|
|
864
|
-
|
|
684
|
+
}, $e = (e, t, n, r) => {
|
|
685
|
+
if (nt(e)) {
|
|
686
|
+
Xe(e(r), t, n, r);
|
|
865
687
|
return;
|
|
866
688
|
}
|
|
867
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
868
|
-
},
|
|
689
|
+
t.validators === null && (t.validators = []), t.validators.push(Be(n, e));
|
|
690
|
+
}, et = (e, t, n, r) => {
|
|
869
691
|
let i = Object.entries(e), a = i.length;
|
|
870
692
|
for (let e = 0; e < a; e++) {
|
|
871
693
|
let [a, o] = i[e];
|
|
872
|
-
|
|
694
|
+
Xe(o, tt(t, a), n, r);
|
|
873
695
|
}
|
|
874
|
-
},
|
|
875
|
-
let n = e, r = t.split(
|
|
696
|
+
}, tt = (e, t) => {
|
|
697
|
+
let n = e, r = t.split(He), i = r.length;
|
|
876
698
|
for (let e = 0; e < i; e++) {
|
|
877
699
|
let t = r[e], i = n.nextPart.get(t);
|
|
878
|
-
i || (i =
|
|
700
|
+
i || (i = Ve(), n.nextPart.set(t, i)), n = i;
|
|
879
701
|
}
|
|
880
702
|
return n;
|
|
881
|
-
},
|
|
703
|
+
}, nt = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, rt = (e) => {
|
|
882
704
|
if (e < 1) return {
|
|
883
705
|
get: () => void 0,
|
|
884
706
|
set: () => {}
|
|
@@ -896,19 +718,19 @@ var Ve = (e, t) => {
|
|
|
896
718
|
e in n ? n[e] = t : i(e, t);
|
|
897
719
|
}
|
|
898
720
|
};
|
|
899
|
-
},
|
|
721
|
+
}, it = "!", at = ":", ot = [], st = (e, t, n, r, i) => ({
|
|
900
722
|
modifiers: e,
|
|
901
723
|
hasImportantModifier: t,
|
|
902
724
|
baseClassName: n,
|
|
903
725
|
maybePostfixModifierPosition: r,
|
|
904
726
|
isExternal: i
|
|
905
|
-
}),
|
|
727
|
+
}), ct = (e) => {
|
|
906
728
|
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
|
|
907
729
|
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
|
|
908
730
|
for (let s = 0; s < o; s++) {
|
|
909
731
|
let o = e[s];
|
|
910
732
|
if (n === 0 && r === 0) {
|
|
911
|
-
if (o ===
|
|
733
|
+
if (o === at) {
|
|
912
734
|
t.push(e.slice(i, s)), i = s + 1;
|
|
913
735
|
continue;
|
|
914
736
|
}
|
|
@@ -920,13 +742,13 @@ var Ve = (e, t) => {
|
|
|
920
742
|
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
|
|
921
743
|
}
|
|
922
744
|
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
|
|
923
|
-
s.endsWith(
|
|
745
|
+
s.endsWith(it) ? (c = s.slice(0, -1), l = !0) : s.startsWith(it) && (c = s.slice(1), l = !0);
|
|
924
746
|
let u = a && a > i ? a - i : void 0;
|
|
925
|
-
return
|
|
747
|
+
return st(t, l, c, u);
|
|
926
748
|
};
|
|
927
749
|
if (t) {
|
|
928
|
-
let e = t +
|
|
929
|
-
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) :
|
|
750
|
+
let e = t + at, n = r;
|
|
751
|
+
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : st(ot, !1, t, void 0, !0);
|
|
930
752
|
}
|
|
931
753
|
if (n) {
|
|
932
754
|
let e = r;
|
|
@@ -936,7 +758,7 @@ var Ve = (e, t) => {
|
|
|
936
758
|
});
|
|
937
759
|
}
|
|
938
760
|
return r;
|
|
939
|
-
},
|
|
761
|
+
}, lt = (e) => {
|
|
940
762
|
let t = /* @__PURE__ */ new Map();
|
|
941
763
|
return e.orderSensitiveModifiers.forEach((e, n) => {
|
|
942
764
|
t.set(e, 1e6 + n);
|
|
@@ -948,18 +770,18 @@ var Ve = (e, t) => {
|
|
|
948
770
|
}
|
|
949
771
|
return r.length > 0 && (r.sort(), n.push(...r)), n;
|
|
950
772
|
};
|
|
951
|
-
},
|
|
952
|
-
cache:
|
|
953
|
-
parseClassName:
|
|
954
|
-
sortModifiers:
|
|
955
|
-
postfixLookupClassGroupIds:
|
|
956
|
-
...
|
|
957
|
-
}),
|
|
773
|
+
}, ut = (e) => ({
|
|
774
|
+
cache: rt(e.cacheSize),
|
|
775
|
+
parseClassName: ct(e),
|
|
776
|
+
sortModifiers: lt(e),
|
|
777
|
+
postfixLookupClassGroupIds: dt(e),
|
|
778
|
+
...Ge(e)
|
|
779
|
+
}), dt = (e) => {
|
|
958
780
|
let t = Object.create(null), n = e.postfixLookupClassGroups;
|
|
959
781
|
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
|
|
960
782
|
return t;
|
|
961
|
-
},
|
|
962
|
-
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(
|
|
783
|
+
}, ft = /\s+/, pt = (e, t) => {
|
|
784
|
+
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(ft), l = "";
|
|
963
785
|
for (let e = c.length - 1; e >= 0; --e) {
|
|
964
786
|
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
|
|
965
787
|
if (u) {
|
|
@@ -983,7 +805,7 @@ var Ve = (e, t) => {
|
|
|
983
805
|
}
|
|
984
806
|
h = !1;
|
|
985
807
|
}
|
|
986
|
-
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ +
|
|
808
|
+
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + it : _, y = v + g;
|
|
987
809
|
if (s.indexOf(y) > -1) continue;
|
|
988
810
|
s.push(y);
|
|
989
811
|
let b = i(g, h);
|
|
@@ -994,33 +816,33 @@ var Ve = (e, t) => {
|
|
|
994
816
|
l = t + (l.length > 0 ? " " + l : l);
|
|
995
817
|
}
|
|
996
818
|
return l;
|
|
997
|
-
},
|
|
819
|
+
}, mt = (...e) => {
|
|
998
820
|
let t = 0, n, r, i = "";
|
|
999
|
-
for (; t < e.length;) (n = e[t++]) && (r =
|
|
821
|
+
for (; t < e.length;) (n = e[t++]) && (r = ht(n)) && (i && (i += " "), i += r);
|
|
1000
822
|
return i;
|
|
1001
|
-
},
|
|
823
|
+
}, ht = (e) => {
|
|
1002
824
|
if (typeof e == "string") return e;
|
|
1003
825
|
let t, n = "";
|
|
1004
|
-
for (let r = 0; r < e.length; r++) e[r] && (t =
|
|
826
|
+
for (let r = 0; r < e.length; r++) e[r] && (t = ht(e[r])) && (n && (n += " "), n += t);
|
|
1005
827
|
return n;
|
|
1006
|
-
},
|
|
1007
|
-
let n, r, i, a, o = (o) => (n =
|
|
828
|
+
}, gt = (e, ...t) => {
|
|
829
|
+
let n, r, i, a, o = (o) => (n = ut(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
|
|
1008
830
|
let t = r(e);
|
|
1009
831
|
if (t) return t;
|
|
1010
|
-
let a =
|
|
832
|
+
let a = pt(e, n);
|
|
1011
833
|
return i(e, a), a;
|
|
1012
834
|
};
|
|
1013
|
-
return a = o, (...e) => a(
|
|
1014
|
-
},
|
|
1015
|
-
let t = (t) => t[e] ||
|
|
835
|
+
return a = o, (...e) => a(mt(...e));
|
|
836
|
+
}, _t = [], z = (e) => {
|
|
837
|
+
let t = (t) => t[e] || _t;
|
|
1016
838
|
return t.isThemeGetter = !0, t;
|
|
1017
|
-
},
|
|
1018
|
-
let r =
|
|
839
|
+
}, vt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, yt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, bt = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, xt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, St = /\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$/, Ct = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, wt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Tt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, B = (e) => bt.test(e), V = (e) => !!e && !Number.isNaN(Number(e)), H = (e) => !!e && Number.isInteger(Number(e)), Et = (e) => e.endsWith("%") && V(e.slice(0, -1)), U = (e) => xt.test(e), Dt = () => !0, Ot = (e) => St.test(e) && !Ct.test(e), kt = () => !1, At = (e) => wt.test(e), jt = (e) => Tt.test(e), Mt = (e) => !W(e) && !K(e), Nt = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Pt = (e) => q(e, Xt, kt), W = (e) => vt.test(e), G = (e) => q(e, Zt, Ot), Ft = (e) => q(e, Qt, V), It = (e) => q(e, en, Dt), Lt = (e) => q(e, $t, kt), Rt = (e) => q(e, Jt, kt), zt = (e) => q(e, Yt, jt), Bt = (e) => q(e, tn, At), K = (e) => yt.test(e), Vt = (e) => J(e, Zt), Ht = (e) => J(e, $t), Ut = (e) => J(e, Jt), Wt = (e) => J(e, Xt), Gt = (e) => J(e, Yt), Kt = (e) => J(e, tn, !0), qt = (e) => J(e, en, !0), q = (e, t, n) => {
|
|
840
|
+
let r = vt.exec(e);
|
|
1019
841
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
1020
842
|
}, J = (e, t, n = !1) => {
|
|
1021
|
-
let r =
|
|
843
|
+
let r = yt.exec(e);
|
|
1022
844
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
1023
|
-
},
|
|
845
|
+
}, Jt = (e) => e === "position" || e === "percentage", Yt = (e) => e === "image" || e === "url", Xt = (e) => e === "length" || e === "size" || e === "bg-size", Zt = (e) => e === "length", Qt = (e) => e === "number", $t = (e) => e === "family-name", en = (e) => e === "number" || e === "weight", tn = (e) => e === "shadow", nn = /*#__PURE__*/ gt(() => {
|
|
1024
846
|
let e = z("color"), t = z("font"), n = z("text"), r = z("font-weight"), i = z("tracking"), a = z("leading"), o = z("breakpoint"), s = z("container"), c = z("spacing"), l = z("radius"), u = z("shadow"), d = z("inset-shadow"), f = z("text-shadow"), p = z("drop-shadow"), m = z("blur"), h = z("perspective"), g = z("aspect"), _ = z("ease"), v = z("animate"), y = () => [
|
|
1025
847
|
"auto",
|
|
1026
848
|
"avoid",
|
|
@@ -1084,12 +906,12 @@ var Ve = (e, t) => {
|
|
|
1084
906
|
H,
|
|
1085
907
|
K,
|
|
1086
908
|
W
|
|
1087
|
-
],
|
|
909
|
+
], O = () => [
|
|
1088
910
|
H,
|
|
1089
911
|
"auto",
|
|
1090
912
|
K,
|
|
1091
913
|
W
|
|
1092
|
-
],
|
|
914
|
+
], ee = () => [
|
|
1093
915
|
"auto",
|
|
1094
916
|
"min",
|
|
1095
917
|
"max",
|
|
@@ -1139,7 +961,7 @@ var Ve = (e, t) => {
|
|
|
1139
961
|
"max",
|
|
1140
962
|
"fit",
|
|
1141
963
|
...w()
|
|
1142
|
-
],
|
|
964
|
+
], N = () => [
|
|
1143
965
|
B,
|
|
1144
966
|
"screen",
|
|
1145
967
|
"full",
|
|
@@ -1151,31 +973,31 @@ var Ve = (e, t) => {
|
|
|
1151
973
|
"max",
|
|
1152
974
|
"fit",
|
|
1153
975
|
...w()
|
|
1154
|
-
],
|
|
976
|
+
], P = () => [
|
|
1155
977
|
e,
|
|
1156
978
|
K,
|
|
1157
979
|
W
|
|
1158
|
-
],
|
|
980
|
+
], F = () => [
|
|
1159
981
|
...b(),
|
|
1160
|
-
|
|
1161
|
-
|
|
982
|
+
Ut,
|
|
983
|
+
Rt,
|
|
1162
984
|
{ position: [K, W] }
|
|
1163
|
-
],
|
|
985
|
+
], ne = () => ["no-repeat", { repeat: [
|
|
1164
986
|
"",
|
|
1165
987
|
"x",
|
|
1166
988
|
"y",
|
|
1167
989
|
"space",
|
|
1168
990
|
"round"
|
|
1169
|
-
] }],
|
|
991
|
+
] }], re = () => [
|
|
1170
992
|
"auto",
|
|
1171
993
|
"cover",
|
|
1172
994
|
"contain",
|
|
1173
|
-
|
|
1174
|
-
|
|
995
|
+
Wt,
|
|
996
|
+
Pt,
|
|
1175
997
|
{ size: [K, W] }
|
|
1176
998
|
], ie = () => [
|
|
1177
|
-
|
|
1178
|
-
|
|
999
|
+
Et,
|
|
1000
|
+
Vt,
|
|
1179
1001
|
G
|
|
1180
1002
|
], I = () => [
|
|
1181
1003
|
"",
|
|
@@ -1187,7 +1009,7 @@ var Ve = (e, t) => {
|
|
|
1187
1009
|
], L = () => [
|
|
1188
1010
|
"",
|
|
1189
1011
|
V,
|
|
1190
|
-
|
|
1012
|
+
Vt,
|
|
1191
1013
|
G
|
|
1192
1014
|
], ae = () => [
|
|
1193
1015
|
"solid",
|
|
@@ -1213,9 +1035,9 @@ var Ve = (e, t) => {
|
|
|
1213
1035
|
"luminosity"
|
|
1214
1036
|
], R = () => [
|
|
1215
1037
|
V,
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1038
|
+
Et,
|
|
1039
|
+
Ut,
|
|
1040
|
+
Rt
|
|
1219
1041
|
], se = () => [
|
|
1220
1042
|
"",
|
|
1221
1043
|
"none",
|
|
@@ -1253,7 +1075,7 @@ var Ve = (e, t) => {
|
|
|
1253
1075
|
aspect: ["video"],
|
|
1254
1076
|
blur: [U],
|
|
1255
1077
|
breakpoint: [U],
|
|
1256
|
-
color: [
|
|
1078
|
+
color: [Dt],
|
|
1257
1079
|
container: [U],
|
|
1258
1080
|
"drop-shadow": [U],
|
|
1259
1081
|
ease: [
|
|
@@ -1261,7 +1083,7 @@ var Ve = (e, t) => {
|
|
|
1261
1083
|
"out",
|
|
1262
1084
|
"in-out"
|
|
1263
1085
|
],
|
|
1264
|
-
font: [
|
|
1086
|
+
font: [Mt],
|
|
1265
1087
|
"font-weight": [
|
|
1266
1088
|
"thin",
|
|
1267
1089
|
"extralight",
|
|
@@ -1321,7 +1143,7 @@ var Ve = (e, t) => {
|
|
|
1321
1143
|
K,
|
|
1322
1144
|
W
|
|
1323
1145
|
] }],
|
|
1324
|
-
"container-named": [
|
|
1146
|
+
"container-named": [Nt],
|
|
1325
1147
|
columns: [{ columns: [
|
|
1326
1148
|
V,
|
|
1327
1149
|
W,
|
|
@@ -1475,12 +1297,12 @@ var Ve = (e, t) => {
|
|
|
1475
1297
|
] }],
|
|
1476
1298
|
"grid-cols": [{ "grid-cols": E() }],
|
|
1477
1299
|
"col-start-end": [{ col: D() }],
|
|
1478
|
-
"col-start": [{ "col-start":
|
|
1479
|
-
"col-end": [{ "col-end":
|
|
1300
|
+
"col-start": [{ "col-start": O() }],
|
|
1301
|
+
"col-end": [{ "col-end": O() }],
|
|
1480
1302
|
"grid-rows": [{ "grid-rows": E() }],
|
|
1481
1303
|
"row-start-end": [{ row: D() }],
|
|
1482
|
-
"row-start": [{ "row-start":
|
|
1483
|
-
"row-end": [{ "row-end":
|
|
1304
|
+
"row-start": [{ "row-start": O() }],
|
|
1305
|
+
"row-end": [{ "row-end": O() }],
|
|
1484
1306
|
"grid-flow": [{ "grid-flow": [
|
|
1485
1307
|
"row",
|
|
1486
1308
|
"col",
|
|
@@ -1488,8 +1310,8 @@ var Ve = (e, t) => {
|
|
|
1488
1310
|
"row-dense",
|
|
1489
1311
|
"col-dense"
|
|
1490
1312
|
] }],
|
|
1491
|
-
"auto-cols": [{ "auto-cols":
|
|
1492
|
-
"auto-rows": [{ "auto-rows":
|
|
1313
|
+
"auto-cols": [{ "auto-cols": ee() }],
|
|
1314
|
+
"auto-rows": [{ "auto-rows": ee() }],
|
|
1493
1315
|
gap: [{ gap: w() }],
|
|
1494
1316
|
"gap-x": [{ "gap-x": w() }],
|
|
1495
1317
|
"gap-y": [{ "gap-y": w() }],
|
|
@@ -1536,9 +1358,9 @@ var Ve = (e, t) => {
|
|
|
1536
1358
|
"inline-size": [{ inline: ["auto", ...te()] }],
|
|
1537
1359
|
"min-inline-size": [{ "min-inline": ["auto", ...te()] }],
|
|
1538
1360
|
"max-inline-size": [{ "max-inline": ["none", ...te()] }],
|
|
1539
|
-
"block-size": [{ block: ["auto", ...
|
|
1540
|
-
"min-block-size": [{ "min-block": ["auto", ...
|
|
1541
|
-
"max-block-size": [{ "max-block": ["none", ...
|
|
1361
|
+
"block-size": [{ block: ["auto", ...N()] }],
|
|
1362
|
+
"min-block-size": [{ "min-block": ["auto", ...N()] }],
|
|
1363
|
+
"max-block-size": [{ "max-block": ["none", ...N()] }],
|
|
1542
1364
|
w: [{ w: [
|
|
1543
1365
|
s,
|
|
1544
1366
|
"screen",
|
|
@@ -1577,15 +1399,15 @@ var Ve = (e, t) => {
|
|
|
1577
1399
|
"font-size": [{ text: [
|
|
1578
1400
|
"base",
|
|
1579
1401
|
n,
|
|
1580
|
-
|
|
1402
|
+
Vt,
|
|
1581
1403
|
G
|
|
1582
1404
|
] }],
|
|
1583
1405
|
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
1584
1406
|
"font-style": ["italic", "not-italic"],
|
|
1585
1407
|
"font-weight": [{ font: [
|
|
1586
1408
|
r,
|
|
1587
|
-
|
|
1588
|
-
|
|
1409
|
+
qt,
|
|
1410
|
+
It
|
|
1589
1411
|
] }],
|
|
1590
1412
|
"font-stretch": [{ "font-stretch": [
|
|
1591
1413
|
"ultra-condensed",
|
|
@@ -1597,12 +1419,12 @@ var Ve = (e, t) => {
|
|
|
1597
1419
|
"expanded",
|
|
1598
1420
|
"extra-expanded",
|
|
1599
1421
|
"ultra-expanded",
|
|
1600
|
-
|
|
1422
|
+
Et,
|
|
1601
1423
|
W
|
|
1602
1424
|
] }],
|
|
1603
1425
|
"font-family": [{ font: [
|
|
1604
|
-
|
|
1605
|
-
|
|
1426
|
+
Ht,
|
|
1427
|
+
Lt,
|
|
1606
1428
|
t
|
|
1607
1429
|
] }],
|
|
1608
1430
|
"font-features": [{ "font-features": [W] }],
|
|
@@ -1621,7 +1443,7 @@ var Ve = (e, t) => {
|
|
|
1621
1443
|
V,
|
|
1622
1444
|
"none",
|
|
1623
1445
|
K,
|
|
1624
|
-
|
|
1446
|
+
Ft
|
|
1625
1447
|
] }],
|
|
1626
1448
|
leading: [{ leading: [a, ...w()] }],
|
|
1627
1449
|
"list-image": [{ "list-image": [
|
|
@@ -1645,8 +1467,8 @@ var Ve = (e, t) => {
|
|
|
1645
1467
|
"start",
|
|
1646
1468
|
"end"
|
|
1647
1469
|
] }],
|
|
1648
|
-
"placeholder-color": [{ placeholder:
|
|
1649
|
-
"text-color": [{ text:
|
|
1470
|
+
"placeholder-color": [{ placeholder: P() }],
|
|
1471
|
+
"text-color": [{ text: P() }],
|
|
1650
1472
|
"text-decoration": [
|
|
1651
1473
|
"underline",
|
|
1652
1474
|
"overline",
|
|
@@ -1661,7 +1483,7 @@ var Ve = (e, t) => {
|
|
|
1661
1483
|
K,
|
|
1662
1484
|
G
|
|
1663
1485
|
] }],
|
|
1664
|
-
"text-decoration-color": [{ decoration:
|
|
1486
|
+
"text-decoration-color": [{ decoration: P() }],
|
|
1665
1487
|
"underline-offset": [{ "underline-offset": [
|
|
1666
1488
|
V,
|
|
1667
1489
|
"auto",
|
|
@@ -1748,9 +1570,9 @@ var Ve = (e, t) => {
|
|
|
1748
1570
|
"padding",
|
|
1749
1571
|
"content"
|
|
1750
1572
|
] }],
|
|
1751
|
-
"bg-position": [{ bg:
|
|
1752
|
-
"bg-repeat": [{ bg:
|
|
1753
|
-
"bg-size": [{ bg:
|
|
1573
|
+
"bg-position": [{ bg: F() }],
|
|
1574
|
+
"bg-repeat": [{ bg: ne() }],
|
|
1575
|
+
"bg-size": [{ bg: re() }],
|
|
1754
1576
|
"bg-image": [{ bg: [
|
|
1755
1577
|
"none",
|
|
1756
1578
|
{
|
|
@@ -1780,16 +1602,16 @@ var Ve = (e, t) => {
|
|
|
1780
1602
|
W
|
|
1781
1603
|
]
|
|
1782
1604
|
},
|
|
1783
|
-
|
|
1784
|
-
|
|
1605
|
+
Gt,
|
|
1606
|
+
zt
|
|
1785
1607
|
] }],
|
|
1786
|
-
"bg-color": [{ bg:
|
|
1608
|
+
"bg-color": [{ bg: P() }],
|
|
1787
1609
|
"gradient-from-pos": [{ from: ie() }],
|
|
1788
1610
|
"gradient-via-pos": [{ via: ie() }],
|
|
1789
1611
|
"gradient-to-pos": [{ to: ie() }],
|
|
1790
|
-
"gradient-from": [{ from:
|
|
1791
|
-
"gradient-via": [{ via:
|
|
1792
|
-
"gradient-to": [{ to:
|
|
1612
|
+
"gradient-from": [{ from: P() }],
|
|
1613
|
+
"gradient-via": [{ via: P() }],
|
|
1614
|
+
"gradient-to": [{ to: P() }],
|
|
1793
1615
|
rounded: [{ rounded: I() }],
|
|
1794
1616
|
"rounded-s": [{ "rounded-s": I() }],
|
|
1795
1617
|
"rounded-e": [{ "rounded-e": I() }],
|
|
@@ -1830,18 +1652,18 @@ var Ve = (e, t) => {
|
|
|
1830
1652
|
"hidden",
|
|
1831
1653
|
"none"
|
|
1832
1654
|
] }],
|
|
1833
|
-
"border-color": [{ border:
|
|
1834
|
-
"border-color-x": [{ "border-x":
|
|
1835
|
-
"border-color-y": [{ "border-y":
|
|
1836
|
-
"border-color-s": [{ "border-s":
|
|
1837
|
-
"border-color-e": [{ "border-e":
|
|
1838
|
-
"border-color-bs": [{ "border-bs":
|
|
1839
|
-
"border-color-be": [{ "border-be":
|
|
1840
|
-
"border-color-t": [{ "border-t":
|
|
1841
|
-
"border-color-r": [{ "border-r":
|
|
1842
|
-
"border-color-b": [{ "border-b":
|
|
1843
|
-
"border-color-l": [{ "border-l":
|
|
1844
|
-
"divide-color": [{ divide:
|
|
1655
|
+
"border-color": [{ border: P() }],
|
|
1656
|
+
"border-color-x": [{ "border-x": P() }],
|
|
1657
|
+
"border-color-y": [{ "border-y": P() }],
|
|
1658
|
+
"border-color-s": [{ "border-s": P() }],
|
|
1659
|
+
"border-color-e": [{ "border-e": P() }],
|
|
1660
|
+
"border-color-bs": [{ "border-bs": P() }],
|
|
1661
|
+
"border-color-be": [{ "border-be": P() }],
|
|
1662
|
+
"border-color-t": [{ "border-t": P() }],
|
|
1663
|
+
"border-color-r": [{ "border-r": P() }],
|
|
1664
|
+
"border-color-b": [{ "border-b": P() }],
|
|
1665
|
+
"border-color-l": [{ "border-l": P() }],
|
|
1666
|
+
"divide-color": [{ divide: P() }],
|
|
1845
1667
|
"outline-style": [{ outline: [
|
|
1846
1668
|
...ae(),
|
|
1847
1669
|
"none",
|
|
@@ -1855,39 +1677,39 @@ var Ve = (e, t) => {
|
|
|
1855
1677
|
"outline-w": [{ outline: [
|
|
1856
1678
|
"",
|
|
1857
1679
|
V,
|
|
1858
|
-
|
|
1680
|
+
Vt,
|
|
1859
1681
|
G
|
|
1860
1682
|
] }],
|
|
1861
|
-
"outline-color": [{ outline:
|
|
1683
|
+
"outline-color": [{ outline: P() }],
|
|
1862
1684
|
shadow: [{ shadow: [
|
|
1863
1685
|
"",
|
|
1864
1686
|
"none",
|
|
1865
1687
|
u,
|
|
1866
|
-
|
|
1867
|
-
|
|
1688
|
+
Kt,
|
|
1689
|
+
Bt
|
|
1868
1690
|
] }],
|
|
1869
|
-
"shadow-color": [{ shadow:
|
|
1691
|
+
"shadow-color": [{ shadow: P() }],
|
|
1870
1692
|
"inset-shadow": [{ "inset-shadow": [
|
|
1871
1693
|
"none",
|
|
1872
1694
|
d,
|
|
1873
|
-
|
|
1874
|
-
|
|
1695
|
+
Kt,
|
|
1696
|
+
Bt
|
|
1875
1697
|
] }],
|
|
1876
|
-
"inset-shadow-color": [{ "inset-shadow":
|
|
1698
|
+
"inset-shadow-color": [{ "inset-shadow": P() }],
|
|
1877
1699
|
"ring-w": [{ ring: L() }],
|
|
1878
1700
|
"ring-w-inset": ["ring-inset"],
|
|
1879
|
-
"ring-color": [{ ring:
|
|
1701
|
+
"ring-color": [{ ring: P() }],
|
|
1880
1702
|
"ring-offset-w": [{ "ring-offset": [V, G] }],
|
|
1881
|
-
"ring-offset-color": [{ "ring-offset":
|
|
1703
|
+
"ring-offset-color": [{ "ring-offset": P() }],
|
|
1882
1704
|
"inset-ring-w": [{ "inset-ring": L() }],
|
|
1883
|
-
"inset-ring-color": [{ "inset-ring":
|
|
1705
|
+
"inset-ring-color": [{ "inset-ring": P() }],
|
|
1884
1706
|
"text-shadow": [{ "text-shadow": [
|
|
1885
1707
|
"none",
|
|
1886
1708
|
f,
|
|
1887
|
-
|
|
1888
|
-
|
|
1709
|
+
Kt,
|
|
1710
|
+
Bt
|
|
1889
1711
|
] }],
|
|
1890
|
-
"text-shadow-color": [{ "text-shadow":
|
|
1712
|
+
"text-shadow-color": [{ "text-shadow": P() }],
|
|
1891
1713
|
opacity: [{ opacity: [
|
|
1892
1714
|
V,
|
|
1893
1715
|
K,
|
|
@@ -1916,37 +1738,37 @@ var Ve = (e, t) => {
|
|
|
1916
1738
|
"mask-image-linear-pos": [{ "mask-linear": [V] }],
|
|
1917
1739
|
"mask-image-linear-from-pos": [{ "mask-linear-from": R() }],
|
|
1918
1740
|
"mask-image-linear-to-pos": [{ "mask-linear-to": R() }],
|
|
1919
|
-
"mask-image-linear-from-color": [{ "mask-linear-from":
|
|
1920
|
-
"mask-image-linear-to-color": [{ "mask-linear-to":
|
|
1741
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": P() }],
|
|
1742
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": P() }],
|
|
1921
1743
|
"mask-image-t-from-pos": [{ "mask-t-from": R() }],
|
|
1922
1744
|
"mask-image-t-to-pos": [{ "mask-t-to": R() }],
|
|
1923
|
-
"mask-image-t-from-color": [{ "mask-t-from":
|
|
1924
|
-
"mask-image-t-to-color": [{ "mask-t-to":
|
|
1745
|
+
"mask-image-t-from-color": [{ "mask-t-from": P() }],
|
|
1746
|
+
"mask-image-t-to-color": [{ "mask-t-to": P() }],
|
|
1925
1747
|
"mask-image-r-from-pos": [{ "mask-r-from": R() }],
|
|
1926
1748
|
"mask-image-r-to-pos": [{ "mask-r-to": R() }],
|
|
1927
|
-
"mask-image-r-from-color": [{ "mask-r-from":
|
|
1928
|
-
"mask-image-r-to-color": [{ "mask-r-to":
|
|
1749
|
+
"mask-image-r-from-color": [{ "mask-r-from": P() }],
|
|
1750
|
+
"mask-image-r-to-color": [{ "mask-r-to": P() }],
|
|
1929
1751
|
"mask-image-b-from-pos": [{ "mask-b-from": R() }],
|
|
1930
1752
|
"mask-image-b-to-pos": [{ "mask-b-to": R() }],
|
|
1931
|
-
"mask-image-b-from-color": [{ "mask-b-from":
|
|
1932
|
-
"mask-image-b-to-color": [{ "mask-b-to":
|
|
1753
|
+
"mask-image-b-from-color": [{ "mask-b-from": P() }],
|
|
1754
|
+
"mask-image-b-to-color": [{ "mask-b-to": P() }],
|
|
1933
1755
|
"mask-image-l-from-pos": [{ "mask-l-from": R() }],
|
|
1934
1756
|
"mask-image-l-to-pos": [{ "mask-l-to": R() }],
|
|
1935
|
-
"mask-image-l-from-color": [{ "mask-l-from":
|
|
1936
|
-
"mask-image-l-to-color": [{ "mask-l-to":
|
|
1757
|
+
"mask-image-l-from-color": [{ "mask-l-from": P() }],
|
|
1758
|
+
"mask-image-l-to-color": [{ "mask-l-to": P() }],
|
|
1937
1759
|
"mask-image-x-from-pos": [{ "mask-x-from": R() }],
|
|
1938
1760
|
"mask-image-x-to-pos": [{ "mask-x-to": R() }],
|
|
1939
|
-
"mask-image-x-from-color": [{ "mask-x-from":
|
|
1940
|
-
"mask-image-x-to-color": [{ "mask-x-to":
|
|
1761
|
+
"mask-image-x-from-color": [{ "mask-x-from": P() }],
|
|
1762
|
+
"mask-image-x-to-color": [{ "mask-x-to": P() }],
|
|
1941
1763
|
"mask-image-y-from-pos": [{ "mask-y-from": R() }],
|
|
1942
1764
|
"mask-image-y-to-pos": [{ "mask-y-to": R() }],
|
|
1943
|
-
"mask-image-y-from-color": [{ "mask-y-from":
|
|
1944
|
-
"mask-image-y-to-color": [{ "mask-y-to":
|
|
1765
|
+
"mask-image-y-from-color": [{ "mask-y-from": P() }],
|
|
1766
|
+
"mask-image-y-to-color": [{ "mask-y-to": P() }],
|
|
1945
1767
|
"mask-image-radial": [{ "mask-radial": [K, W] }],
|
|
1946
1768
|
"mask-image-radial-from-pos": [{ "mask-radial-from": R() }],
|
|
1947
1769
|
"mask-image-radial-to-pos": [{ "mask-radial-to": R() }],
|
|
1948
|
-
"mask-image-radial-from-color": [{ "mask-radial-from":
|
|
1949
|
-
"mask-image-radial-to-color": [{ "mask-radial-to":
|
|
1770
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": P() }],
|
|
1771
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": P() }],
|
|
1950
1772
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
1951
1773
|
"mask-image-radial-size": [{ "mask-radial": [{
|
|
1952
1774
|
closest: ["side", "corner"],
|
|
@@ -1956,8 +1778,8 @@ var Ve = (e, t) => {
|
|
|
1956
1778
|
"mask-image-conic-pos": [{ "mask-conic": [V] }],
|
|
1957
1779
|
"mask-image-conic-from-pos": [{ "mask-conic-from": R() }],
|
|
1958
1780
|
"mask-image-conic-to-pos": [{ "mask-conic-to": R() }],
|
|
1959
|
-
"mask-image-conic-from-color": [{ "mask-conic-from":
|
|
1960
|
-
"mask-image-conic-to-color": [{ "mask-conic-to":
|
|
1781
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": P() }],
|
|
1782
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": P() }],
|
|
1961
1783
|
"mask-mode": [{ mask: [
|
|
1962
1784
|
"alpha",
|
|
1963
1785
|
"luminance",
|
|
@@ -1971,9 +1793,9 @@ var Ve = (e, t) => {
|
|
|
1971
1793
|
"stroke",
|
|
1972
1794
|
"view"
|
|
1973
1795
|
] }],
|
|
1974
|
-
"mask-position": [{ mask:
|
|
1975
|
-
"mask-repeat": [{ mask:
|
|
1976
|
-
"mask-size": [{ mask:
|
|
1796
|
+
"mask-position": [{ mask: F() }],
|
|
1797
|
+
"mask-repeat": [{ mask: ne() }],
|
|
1798
|
+
"mask-size": [{ mask: re() }],
|
|
1977
1799
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
1978
1800
|
"mask-image": [{ mask: [
|
|
1979
1801
|
"none",
|
|
@@ -2001,10 +1823,10 @@ var Ve = (e, t) => {
|
|
|
2001
1823
|
"",
|
|
2002
1824
|
"none",
|
|
2003
1825
|
p,
|
|
2004
|
-
|
|
2005
|
-
|
|
1826
|
+
Kt,
|
|
1827
|
+
Bt
|
|
2006
1828
|
] }],
|
|
2007
|
-
"drop-shadow-color": [{ "drop-shadow":
|
|
1829
|
+
"drop-shadow-color": [{ "drop-shadow": P() }],
|
|
2008
1830
|
grayscale: [{ grayscale: [
|
|
2009
1831
|
"",
|
|
2010
1832
|
V,
|
|
@@ -2164,9 +1986,9 @@ var Ve = (e, t) => {
|
|
|
2164
1986
|
K,
|
|
2165
1987
|
W
|
|
2166
1988
|
] }],
|
|
2167
|
-
accent: [{ accent:
|
|
1989
|
+
accent: [{ accent: P() }],
|
|
2168
1990
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
2169
|
-
"caret-color": [{ caret:
|
|
1991
|
+
"caret-color": [{ caret: P() }],
|
|
2170
1992
|
"color-scheme": [{ scheme: [
|
|
2171
1993
|
"normal",
|
|
2172
1994
|
"dark",
|
|
@@ -2224,8 +2046,8 @@ var Ve = (e, t) => {
|
|
|
2224
2046
|
"x"
|
|
2225
2047
|
] }],
|
|
2226
2048
|
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
|
|
2227
|
-
"scrollbar-thumb-color": [{ "scrollbar-thumb":
|
|
2228
|
-
"scrollbar-track-color": [{ "scrollbar-track":
|
|
2049
|
+
"scrollbar-thumb-color": [{ "scrollbar-thumb": P() }],
|
|
2050
|
+
"scrollbar-track-color": [{ "scrollbar-track": P() }],
|
|
2229
2051
|
"scrollbar-gutter": [{ "scrollbar-gutter": [
|
|
2230
2052
|
"auto",
|
|
2231
2053
|
"stable",
|
|
@@ -2302,14 +2124,14 @@ var Ve = (e, t) => {
|
|
|
2302
2124
|
K,
|
|
2303
2125
|
W
|
|
2304
2126
|
] }],
|
|
2305
|
-
fill: [{ fill: ["none", ...
|
|
2127
|
+
fill: [{ fill: ["none", ...P()] }],
|
|
2306
2128
|
"stroke-w": [{ stroke: [
|
|
2307
2129
|
V,
|
|
2308
|
-
|
|
2130
|
+
Vt,
|
|
2309
2131
|
G,
|
|
2310
|
-
|
|
2132
|
+
Ft
|
|
2311
2133
|
] }],
|
|
2312
|
-
stroke: [{ stroke: ["none", ...
|
|
2134
|
+
stroke: [{ stroke: ["none", ...P()] }],
|
|
2313
2135
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
2314
2136
|
},
|
|
2315
2137
|
conflictingClassGroups: {
|
|
@@ -2499,40 +2321,40 @@ var Ve = (e, t) => {
|
|
|
2499
2321
|
//#endregion
|
|
2500
2322
|
//#region src/utils/cn.ts
|
|
2501
2323
|
function Y(...e) {
|
|
2502
|
-
return
|
|
2324
|
+
return nn(Re(e));
|
|
2503
2325
|
}
|
|
2504
2326
|
//#endregion
|
|
2505
2327
|
//#region src/ui/components/Tabs.tsx
|
|
2506
|
-
var
|
|
2328
|
+
var rn = De, an = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Ae, {
|
|
2507
2329
|
ref: r,
|
|
2508
2330
|
className: Y("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", t),
|
|
2509
2331
|
...n
|
|
2510
2332
|
}));
|
|
2511
|
-
|
|
2512
|
-
var
|
|
2333
|
+
an.displayName = Ae.displayName;
|
|
2334
|
+
var on = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Ie, {
|
|
2513
2335
|
ref: r,
|
|
2514
2336
|
className: Y("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-xs", t),
|
|
2515
2337
|
...n
|
|
2516
2338
|
}));
|
|
2517
|
-
|
|
2518
|
-
var
|
|
2339
|
+
on.displayName = Ie.displayName;
|
|
2340
|
+
var sn = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Me, {
|
|
2519
2341
|
ref: r,
|
|
2520
2342
|
className: Y("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", t),
|
|
2521
2343
|
...n
|
|
2522
2344
|
}));
|
|
2523
|
-
|
|
2345
|
+
sn.displayName = Me.displayName;
|
|
2524
2346
|
//#endregion
|
|
2525
2347
|
//#region ../../node_modules/@huin-core/react-portal/dist/index.mjs
|
|
2526
|
-
var
|
|
2348
|
+
var cn = "Portal", ln = e.forwardRef((t, n) => {
|
|
2527
2349
|
let { container: r, ...i } = t, [a, s] = e.useState(!1);
|
|
2528
|
-
|
|
2350
|
+
w(() => s(!0), []);
|
|
2529
2351
|
let c = r || a && globalThis?.document?.body;
|
|
2530
|
-
return c ?
|
|
2352
|
+
return c ? l.createPortal(/* @__PURE__ */ o(O.div, {
|
|
2531
2353
|
...i,
|
|
2532
2354
|
ref: n
|
|
2533
2355
|
}), c) : null;
|
|
2534
2356
|
});
|
|
2535
|
-
|
|
2357
|
+
ln.displayName = cn;
|
|
2536
2358
|
//#endregion
|
|
2537
2359
|
//#region ../../node_modules/tslib/tslib.es6.mjs
|
|
2538
2360
|
var X = function() {
|
|
@@ -2541,27 +2363,27 @@ var X = function() {
|
|
|
2541
2363
|
return e;
|
|
2542
2364
|
}, X.apply(this, arguments);
|
|
2543
2365
|
};
|
|
2544
|
-
function
|
|
2366
|
+
function un(e, t) {
|
|
2545
2367
|
var n = {};
|
|
2546
2368
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2547
2369
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
2548
2370
|
return n;
|
|
2549
2371
|
}
|
|
2550
|
-
function
|
|
2372
|
+
function dn(e, t, n) {
|
|
2551
2373
|
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
2552
2374
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
2553
2375
|
}
|
|
2554
2376
|
//#endregion
|
|
2555
2377
|
//#region ../../node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
2556
|
-
var
|
|
2378
|
+
var fn = "right-scroll-bar-position", pn = "width-before-scroll-bar", mn = "with-scroll-bars-hidden", hn = "--removed-body-scroll-bar-size";
|
|
2557
2379
|
//#endregion
|
|
2558
2380
|
//#region ../../node_modules/use-callback-ref/dist/es2015/assignRef.js
|
|
2559
|
-
function
|
|
2381
|
+
function gn(e, t) {
|
|
2560
2382
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2561
2383
|
}
|
|
2562
2384
|
//#endregion
|
|
2563
2385
|
//#region ../../node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
2564
|
-
function
|
|
2386
|
+
function _n(e, t) {
|
|
2565
2387
|
var n = i(function() {
|
|
2566
2388
|
return {
|
|
2567
2389
|
value: e,
|
|
@@ -2581,33 +2403,33 @@ function yn(e, t) {
|
|
|
2581
2403
|
}
|
|
2582
2404
|
//#endregion
|
|
2583
2405
|
//#region ../../node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
2584
|
-
var
|
|
2585
|
-
function
|
|
2586
|
-
var n =
|
|
2406
|
+
var vn = typeof window < "u" ? e.useLayoutEffect : e.useEffect, yn = /* @__PURE__ */ new WeakMap();
|
|
2407
|
+
function bn(e, t) {
|
|
2408
|
+
var n = _n(t || null, function(t) {
|
|
2587
2409
|
return e.forEach(function(e) {
|
|
2588
|
-
return
|
|
2410
|
+
return gn(e, t);
|
|
2589
2411
|
});
|
|
2590
2412
|
});
|
|
2591
|
-
return
|
|
2592
|
-
var t =
|
|
2413
|
+
return vn(function() {
|
|
2414
|
+
var t = yn.get(n);
|
|
2593
2415
|
if (t) {
|
|
2594
2416
|
var r = new Set(t), i = new Set(e), a = n.current;
|
|
2595
2417
|
r.forEach(function(e) {
|
|
2596
|
-
i.has(e) ||
|
|
2418
|
+
i.has(e) || gn(e, null);
|
|
2597
2419
|
}), i.forEach(function(e) {
|
|
2598
|
-
r.has(e) ||
|
|
2420
|
+
r.has(e) || gn(e, a);
|
|
2599
2421
|
});
|
|
2600
2422
|
}
|
|
2601
|
-
|
|
2423
|
+
yn.set(n, e);
|
|
2602
2424
|
}, [e]), n;
|
|
2603
2425
|
}
|
|
2604
2426
|
//#endregion
|
|
2605
2427
|
//#region ../../node_modules/use-sidecar/dist/es2015/medium.js
|
|
2606
|
-
function
|
|
2428
|
+
function xn(e) {
|
|
2607
2429
|
return e;
|
|
2608
2430
|
}
|
|
2609
|
-
function
|
|
2610
|
-
t === void 0 && (t =
|
|
2431
|
+
function Sn(e, t) {
|
|
2432
|
+
t === void 0 && (t = xn);
|
|
2611
2433
|
var n = [], r = !1;
|
|
2612
2434
|
return {
|
|
2613
2435
|
read: function() {
|
|
@@ -2660,9 +2482,9 @@ function wn(e, t) {
|
|
|
2660
2482
|
}
|
|
2661
2483
|
};
|
|
2662
2484
|
}
|
|
2663
|
-
function
|
|
2485
|
+
function Cn(e) {
|
|
2664
2486
|
e === void 0 && (e = {});
|
|
2665
|
-
var t =
|
|
2487
|
+
var t = Sn(null);
|
|
2666
2488
|
return t.options = X({
|
|
2667
2489
|
async: !0,
|
|
2668
2490
|
ssr: !1
|
|
@@ -2670,25 +2492,25 @@ function Tn(e) {
|
|
|
2670
2492
|
}
|
|
2671
2493
|
//#endregion
|
|
2672
2494
|
//#region ../../node_modules/use-sidecar/dist/es2015/exports.js
|
|
2673
|
-
var
|
|
2674
|
-
var n = t.sideCar, r =
|
|
2495
|
+
var wn = function(t) {
|
|
2496
|
+
var n = t.sideCar, r = un(t, ["sideCar"]);
|
|
2675
2497
|
if (!n) throw Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
2676
2498
|
var i = n.read();
|
|
2677
2499
|
if (!i) throw Error("Sidecar medium not found");
|
|
2678
2500
|
return e.createElement(i, X({}, r));
|
|
2679
2501
|
};
|
|
2680
|
-
|
|
2681
|
-
function
|
|
2682
|
-
return e.useMedium(t),
|
|
2502
|
+
wn.isSideCarExport = !0;
|
|
2503
|
+
function Tn(e, t) {
|
|
2504
|
+
return e.useMedium(t), wn;
|
|
2683
2505
|
}
|
|
2684
2506
|
//#endregion
|
|
2685
2507
|
//#region ../../node_modules/@huin-core/react-dialog/node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
2686
|
-
var
|
|
2508
|
+
var En = Cn(), Dn = function() {}, On = e.forwardRef(function(t, n) {
|
|
2687
2509
|
var r = e.useRef(null), i = e.useState({
|
|
2688
|
-
onScrollCapture:
|
|
2689
|
-
onWheelCapture:
|
|
2690
|
-
onTouchMoveCapture:
|
|
2691
|
-
}), a = i[0], o = i[1], s = t.forwardProps, c = t.children, l = t.className, u = t.removeScrollBar, d = t.enabled, f = t.shards, p = t.sideCar, m = t.noIsolation, h = t.inert, g = t.allowPinchZoom, _ = t.as, v = _ === void 0 ? "div" : _, y = t.gapMode, b =
|
|
2510
|
+
onScrollCapture: Dn,
|
|
2511
|
+
onWheelCapture: Dn,
|
|
2512
|
+
onTouchMoveCapture: Dn
|
|
2513
|
+
}), a = i[0], o = i[1], s = t.forwardProps, c = t.children, l = t.className, u = t.removeScrollBar, d = t.enabled, f = t.shards, p = t.sideCar, m = t.noIsolation, h = t.inert, g = t.allowPinchZoom, _ = t.as, v = _ === void 0 ? "div" : _, y = t.gapMode, b = un(t, [
|
|
2692
2514
|
"forwardProps",
|
|
2693
2515
|
"children",
|
|
2694
2516
|
"className",
|
|
@@ -2701,9 +2523,9 @@ var On = Tn(), kn = function() {}, An = e.forwardRef(function(t, n) {
|
|
|
2701
2523
|
"allowPinchZoom",
|
|
2702
2524
|
"as",
|
|
2703
2525
|
"gapMode"
|
|
2704
|
-
]), x = p, S =
|
|
2526
|
+
]), x = p, S = bn([r, n]), C = X(X({}, b), a);
|
|
2705
2527
|
return e.createElement(e.Fragment, null, d && e.createElement(x, {
|
|
2706
|
-
sideCar:
|
|
2528
|
+
sideCar: En,
|
|
2707
2529
|
removeScrollBar: u,
|
|
2708
2530
|
shards: f,
|
|
2709
2531
|
noIsolation: m,
|
|
@@ -2717,47 +2539,47 @@ var On = Tn(), kn = function() {}, An = e.forwardRef(function(t, n) {
|
|
|
2717
2539
|
ref: S
|
|
2718
2540
|
}), c));
|
|
2719
2541
|
});
|
|
2720
|
-
|
|
2542
|
+
On.defaultProps = {
|
|
2721
2543
|
enabled: !0,
|
|
2722
2544
|
removeScrollBar: !0,
|
|
2723
2545
|
inert: !1
|
|
2724
|
-
},
|
|
2725
|
-
fullWidth:
|
|
2726
|
-
zeroRight:
|
|
2546
|
+
}, On.classNames = {
|
|
2547
|
+
fullWidth: pn,
|
|
2548
|
+
zeroRight: fn
|
|
2727
2549
|
};
|
|
2728
2550
|
//#endregion
|
|
2729
2551
|
//#region ../../node_modules/get-nonce/dist/es2015/index.js
|
|
2730
|
-
var
|
|
2731
|
-
if (
|
|
2552
|
+
var kn, An = function() {
|
|
2553
|
+
if (kn) return kn;
|
|
2732
2554
|
if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
|
|
2733
2555
|
};
|
|
2734
2556
|
//#endregion
|
|
2735
2557
|
//#region ../../node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
2736
|
-
function
|
|
2558
|
+
function jn() {
|
|
2737
2559
|
if (!document) return null;
|
|
2738
2560
|
var e = document.createElement("style");
|
|
2739
2561
|
e.type = "text/css";
|
|
2740
|
-
var t =
|
|
2562
|
+
var t = An();
|
|
2741
2563
|
return t && e.setAttribute("nonce", t), e;
|
|
2742
2564
|
}
|
|
2743
|
-
function
|
|
2565
|
+
function Mn(e, t) {
|
|
2744
2566
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
2745
2567
|
}
|
|
2746
|
-
function
|
|
2568
|
+
function Nn(e) {
|
|
2747
2569
|
(document.head || document.getElementsByTagName("head")[0]).appendChild(e);
|
|
2748
2570
|
}
|
|
2749
|
-
var
|
|
2571
|
+
var Pn = function() {
|
|
2750
2572
|
var e = 0, t = null;
|
|
2751
2573
|
return {
|
|
2752
2574
|
add: function(n) {
|
|
2753
|
-
e == 0 && (t =
|
|
2575
|
+
e == 0 && (t = jn()) && (Mn(t, n), Nn(t)), e++;
|
|
2754
2576
|
},
|
|
2755
2577
|
remove: function() {
|
|
2756
2578
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
2757
2579
|
}
|
|
2758
2580
|
};
|
|
2759
|
-
},
|
|
2760
|
-
var t =
|
|
2581
|
+
}, Fn = function() {
|
|
2582
|
+
var t = Pn();
|
|
2761
2583
|
return function(n, r) {
|
|
2762
2584
|
e.useEffect(function() {
|
|
2763
2585
|
return t.add(n), function() {
|
|
@@ -2765,43 +2587,43 @@ var In = function() {
|
|
|
2765
2587
|
};
|
|
2766
2588
|
}, [n && r]);
|
|
2767
2589
|
};
|
|
2768
|
-
},
|
|
2769
|
-
var e =
|
|
2590
|
+
}, In = function() {
|
|
2591
|
+
var e = Fn();
|
|
2770
2592
|
return function(t) {
|
|
2771
2593
|
var n = t.styles, r = t.dynamic;
|
|
2772
2594
|
return e(n, r), null;
|
|
2773
2595
|
};
|
|
2774
|
-
},
|
|
2596
|
+
}, Ln = {
|
|
2775
2597
|
left: 0,
|
|
2776
2598
|
top: 0,
|
|
2777
2599
|
right: 0,
|
|
2778
2600
|
gap: 0
|
|
2779
|
-
},
|
|
2601
|
+
}, Rn = function(e) {
|
|
2780
2602
|
return parseInt(e || "", 10) || 0;
|
|
2781
|
-
},
|
|
2603
|
+
}, zn = function(e) {
|
|
2782
2604
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
2783
2605
|
return [
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2606
|
+
Rn(n),
|
|
2607
|
+
Rn(r),
|
|
2608
|
+
Rn(i)
|
|
2787
2609
|
];
|
|
2788
|
-
},
|
|
2789
|
-
if (e === void 0 && (e = "margin"), typeof window > "u") return
|
|
2790
|
-
var t =
|
|
2610
|
+
}, Bn = function(e) {
|
|
2611
|
+
if (e === void 0 && (e = "margin"), typeof window > "u") return Ln;
|
|
2612
|
+
var t = zn(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
2791
2613
|
return {
|
|
2792
2614
|
left: t[0],
|
|
2793
2615
|
top: t[1],
|
|
2794
2616
|
right: t[2],
|
|
2795
2617
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
2796
2618
|
};
|
|
2797
|
-
},
|
|
2619
|
+
}, Vn = In(), Hn = "data-scroll-locked", Un = function(e, t, n, r) {
|
|
2798
2620
|
var i = e.left, a = e.top, o = e.right, s = e.gap;
|
|
2799
2621
|
return n === void 0 && (n = "margin"), `
|
|
2800
|
-
.${
|
|
2622
|
+
.${mn} {
|
|
2801
2623
|
overflow: hidden ${r};
|
|
2802
2624
|
padding-right: ${s}px ${r};
|
|
2803
2625
|
}
|
|
2804
|
-
body[${
|
|
2626
|
+
body[${Hn}] {
|
|
2805
2627
|
overflow: hidden ${r};
|
|
2806
2628
|
overscroll-behavior: contain;
|
|
2807
2629
|
${[
|
|
@@ -2818,118 +2640,118 @@ var In = function() {
|
|
|
2818
2640
|
].filter(Boolean).join("")}
|
|
2819
2641
|
}
|
|
2820
2642
|
|
|
2821
|
-
.${
|
|
2643
|
+
.${fn} {
|
|
2822
2644
|
right: ${s}px ${r};
|
|
2823
2645
|
}
|
|
2824
2646
|
|
|
2825
|
-
.${
|
|
2647
|
+
.${pn} {
|
|
2826
2648
|
margin-right: ${s}px ${r};
|
|
2827
2649
|
}
|
|
2828
2650
|
|
|
2829
|
-
.${
|
|
2651
|
+
.${fn} .${fn} {
|
|
2830
2652
|
right: 0 ${r};
|
|
2831
2653
|
}
|
|
2832
2654
|
|
|
2833
|
-
.${
|
|
2655
|
+
.${pn} .${pn} {
|
|
2834
2656
|
margin-right: 0 ${r};
|
|
2835
2657
|
}
|
|
2836
2658
|
|
|
2837
|
-
body[${
|
|
2838
|
-
${
|
|
2659
|
+
body[${Hn}] {
|
|
2660
|
+
${hn}: ${s}px;
|
|
2839
2661
|
}
|
|
2840
2662
|
`;
|
|
2841
|
-
},
|
|
2663
|
+
}, Wn = function() {
|
|
2842
2664
|
var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
|
|
2843
2665
|
return isFinite(e) ? e : 0;
|
|
2844
|
-
},
|
|
2666
|
+
}, Gn = function() {
|
|
2845
2667
|
e.useEffect(function() {
|
|
2846
|
-
return document.body.setAttribute(
|
|
2847
|
-
var e =
|
|
2848
|
-
e <= 0 ? document.body.removeAttribute(
|
|
2668
|
+
return document.body.setAttribute(Hn, (Wn() + 1).toString()), function() {
|
|
2669
|
+
var e = Wn() - 1;
|
|
2670
|
+
e <= 0 ? document.body.removeAttribute(Hn) : document.body.setAttribute(Hn, e.toString());
|
|
2849
2671
|
};
|
|
2850
2672
|
}, []);
|
|
2851
|
-
},
|
|
2673
|
+
}, Kn = function(t) {
|
|
2852
2674
|
var n = t.noRelative, r = t.noImportant, i = t.gapMode, a = i === void 0 ? "margin" : i;
|
|
2853
|
-
|
|
2675
|
+
Gn();
|
|
2854
2676
|
var o = e.useMemo(function() {
|
|
2855
|
-
return
|
|
2677
|
+
return Bn(a);
|
|
2856
2678
|
}, [a]);
|
|
2857
|
-
return e.createElement(
|
|
2858
|
-
},
|
|
2679
|
+
return e.createElement(Vn, { styles: Un(o, !n, a, r ? "" : "!important") });
|
|
2680
|
+
}, qn = !1;
|
|
2859
2681
|
if (typeof window < "u") try {
|
|
2860
|
-
var
|
|
2861
|
-
return
|
|
2682
|
+
var Jn = Object.defineProperty({}, "passive", { get: function() {
|
|
2683
|
+
return qn = !0, !0;
|
|
2862
2684
|
} });
|
|
2863
|
-
window.addEventListener("test",
|
|
2685
|
+
window.addEventListener("test", Jn, Jn), window.removeEventListener("test", Jn, Jn);
|
|
2864
2686
|
} catch {
|
|
2865
|
-
|
|
2687
|
+
qn = !1;
|
|
2866
2688
|
}
|
|
2867
|
-
var
|
|
2689
|
+
var Yn = qn ? { passive: !1 } : !1, Xn = function(e) {
|
|
2868
2690
|
return e.tagName === "TEXTAREA";
|
|
2869
|
-
},
|
|
2691
|
+
}, Zn = function(e, t) {
|
|
2870
2692
|
var n = window.getComputedStyle(e);
|
|
2871
|
-
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !
|
|
2872
|
-
},
|
|
2873
|
-
return
|
|
2874
|
-
},
|
|
2875
|
-
return
|
|
2876
|
-
},
|
|
2693
|
+
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !Xn(e) && n[t] === "visible");
|
|
2694
|
+
}, Qn = function(e) {
|
|
2695
|
+
return Zn(e, "overflowY");
|
|
2696
|
+
}, $n = function(e) {
|
|
2697
|
+
return Zn(e, "overflowX");
|
|
2698
|
+
}, er = function(e, t) {
|
|
2877
2699
|
var n = t.ownerDocument, r = t;
|
|
2878
2700
|
do {
|
|
2879
|
-
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host),
|
|
2880
|
-
var i =
|
|
2701
|
+
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), rr(e, r)) {
|
|
2702
|
+
var i = ir(e, r);
|
|
2881
2703
|
if (i[1] > i[2]) return !0;
|
|
2882
2704
|
}
|
|
2883
2705
|
r = r.parentNode;
|
|
2884
2706
|
} while (r && r !== n.body);
|
|
2885
2707
|
return !1;
|
|
2886
|
-
},
|
|
2708
|
+
}, tr = function(e) {
|
|
2887
2709
|
return [
|
|
2888
2710
|
e.scrollTop,
|
|
2889
2711
|
e.scrollHeight,
|
|
2890
2712
|
e.clientHeight
|
|
2891
2713
|
];
|
|
2892
|
-
},
|
|
2714
|
+
}, nr = function(e) {
|
|
2893
2715
|
return [
|
|
2894
2716
|
e.scrollLeft,
|
|
2895
2717
|
e.scrollWidth,
|
|
2896
2718
|
e.clientWidth
|
|
2897
2719
|
];
|
|
2720
|
+
}, rr = function(e, t) {
|
|
2721
|
+
return e === "v" ? Qn(t) : $n(t);
|
|
2722
|
+
}, ir = function(e, t) {
|
|
2723
|
+
return e === "v" ? tr(t) : nr(t);
|
|
2898
2724
|
}, ar = function(e, t) {
|
|
2899
|
-
return e === "v" ? er(t) : tr(t);
|
|
2900
|
-
}, or = function(e, t) {
|
|
2901
|
-
return e === "v" ? rr(t) : ir(t);
|
|
2902
|
-
}, sr = function(e, t) {
|
|
2903
2725
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
2904
|
-
},
|
|
2905
|
-
var a =
|
|
2726
|
+
}, or = function(e, t, n, r, i) {
|
|
2727
|
+
var a = ar(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
|
|
2906
2728
|
do {
|
|
2907
|
-
var p =
|
|
2908
|
-
(m || h) &&
|
|
2729
|
+
var p = ir(e, s), m = p[0], h = p[1] - p[2] - a * m;
|
|
2730
|
+
(m || h) && rr(e, s) && (d += h, f += m), s = s instanceof ShadowRoot ? s.host : s.parentNode;
|
|
2909
2731
|
} while (!c && s !== document.body || c && (t.contains(s) || t === s));
|
|
2910
2732
|
return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
|
|
2911
|
-
},
|
|
2733
|
+
}, sr = function(e) {
|
|
2912
2734
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
2913
|
-
},
|
|
2735
|
+
}, cr = function(e) {
|
|
2914
2736
|
return [e.deltaX, e.deltaY];
|
|
2915
|
-
},
|
|
2737
|
+
}, lr = function(e) {
|
|
2916
2738
|
return e && "current" in e ? e.current : e;
|
|
2917
|
-
},
|
|
2739
|
+
}, ur = function(e, t) {
|
|
2918
2740
|
return e[0] === t[0] && e[1] === t[1];
|
|
2919
|
-
},
|
|
2741
|
+
}, dr = function(e) {
|
|
2920
2742
|
return `
|
|
2921
2743
|
.block-interactivity-${e} {pointer-events: none;}
|
|
2922
2744
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
2923
2745
|
`;
|
|
2924
|
-
},
|
|
2925
|
-
function
|
|
2926
|
-
var n = e.useRef([]), r = e.useRef([0, 0]), i = e.useRef(), a = e.useState(
|
|
2746
|
+
}, fr = 0, pr = [];
|
|
2747
|
+
function mr(t) {
|
|
2748
|
+
var n = e.useRef([]), r = e.useRef([0, 0]), i = e.useRef(), a = e.useState(fr++)[0], o = e.useState(In)[0], s = e.useRef(t);
|
|
2927
2749
|
e.useEffect(function() {
|
|
2928
2750
|
s.current = t;
|
|
2929
2751
|
}, [t]), e.useEffect(function() {
|
|
2930
2752
|
if (t.inert) {
|
|
2931
2753
|
document.body.classList.add(`block-interactivity-${a}`);
|
|
2932
|
-
var e =
|
|
2754
|
+
var e = dn([t.lockRef.current], (t.shards || []).map(lr), !0).filter(Boolean);
|
|
2933
2755
|
return e.forEach(function(e) {
|
|
2934
2756
|
return e.classList.add(`allow-interactivity-${a}`);
|
|
2935
2757
|
}), function() {
|
|
@@ -2945,26 +2767,26 @@ function gr(t) {
|
|
|
2945
2767
|
]);
|
|
2946
2768
|
var c = e.useCallback(function(e, t) {
|
|
2947
2769
|
if ("touches" in e && e.touches.length === 2) return !s.current.allowPinchZoom;
|
|
2948
|
-
var n =
|
|
2770
|
+
var n = sr(e), a = r.current, o = "deltaX" in e ? e.deltaX : a[0] - n[0], c = "deltaY" in e ? e.deltaY : a[1] - n[1], l, u = e.target, d = Math.abs(o) > Math.abs(c) ? "h" : "v";
|
|
2949
2771
|
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
2950
|
-
var f =
|
|
2772
|
+
var f = er(d, u);
|
|
2951
2773
|
if (!f) return !0;
|
|
2952
|
-
if (f ? l = d : (l = d === "v" ? "h" : "v", f =
|
|
2774
|
+
if (f ? l = d : (l = d === "v" ? "h" : "v", f = er(d, u)), !f) return !1;
|
|
2953
2775
|
if (!i.current && "changedTouches" in e && (o || c) && (i.current = l), !l) return !0;
|
|
2954
2776
|
var p = i.current || l;
|
|
2955
|
-
return
|
|
2777
|
+
return or(p, t, e, p === "h" ? o : c, !0);
|
|
2956
2778
|
}, []), l = e.useCallback(function(e) {
|
|
2957
2779
|
var t = e;
|
|
2958
|
-
if (!(!
|
|
2959
|
-
var r = "deltaY" in t ?
|
|
2960
|
-
return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) &&
|
|
2780
|
+
if (!(!pr.length || pr[pr.length - 1] !== o)) {
|
|
2781
|
+
var r = "deltaY" in t ? cr(t) : sr(t), i = n.current.filter(function(e) {
|
|
2782
|
+
return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) && ur(e.delta, r);
|
|
2961
2783
|
})[0];
|
|
2962
2784
|
if (i && i.should) {
|
|
2963
2785
|
t.cancelable && t.preventDefault();
|
|
2964
2786
|
return;
|
|
2965
2787
|
}
|
|
2966
2788
|
if (!i) {
|
|
2967
|
-
var a = (s.current.shards || []).map(
|
|
2789
|
+
var a = (s.current.shards || []).map(lr).filter(Boolean).filter(function(e) {
|
|
2968
2790
|
return e.contains(t.target);
|
|
2969
2791
|
});
|
|
2970
2792
|
(a.length > 0 ? c(t, a[0]) : !s.current.noIsolation) && t.cancelable && t.preventDefault();
|
|
@@ -2976,7 +2798,7 @@ function gr(t) {
|
|
|
2976
2798
|
delta: t,
|
|
2977
2799
|
target: r,
|
|
2978
2800
|
should: i,
|
|
2979
|
-
shadowParent:
|
|
2801
|
+
shadowParent: hr(r)
|
|
2980
2802
|
};
|
|
2981
2803
|
n.current.push(a), setTimeout(function() {
|
|
2982
2804
|
n.current = n.current.filter(function(e) {
|
|
@@ -2984,57 +2806,57 @@ function gr(t) {
|
|
|
2984
2806
|
});
|
|
2985
2807
|
}, 1);
|
|
2986
2808
|
}, []), d = e.useCallback(function(e) {
|
|
2987
|
-
r.current =
|
|
2809
|
+
r.current = sr(e), i.current = void 0;
|
|
2988
2810
|
}, []), f = e.useCallback(function(e) {
|
|
2989
|
-
u(e.type,
|
|
2811
|
+
u(e.type, cr(e), e.target, c(e, t.lockRef.current));
|
|
2990
2812
|
}, []), p = e.useCallback(function(e) {
|
|
2991
|
-
u(e.type,
|
|
2813
|
+
u(e.type, sr(e), e.target, c(e, t.lockRef.current));
|
|
2992
2814
|
}, []);
|
|
2993
2815
|
e.useEffect(function() {
|
|
2994
|
-
return
|
|
2816
|
+
return pr.push(o), t.setCallbacks({
|
|
2995
2817
|
onScrollCapture: f,
|
|
2996
2818
|
onWheelCapture: f,
|
|
2997
2819
|
onTouchMoveCapture: p
|
|
2998
|
-
}), document.addEventListener("wheel", l,
|
|
2999
|
-
|
|
2820
|
+
}), document.addEventListener("wheel", l, Yn), document.addEventListener("touchmove", l, Yn), document.addEventListener("touchstart", d, Yn), function() {
|
|
2821
|
+
pr = pr.filter(function(e) {
|
|
3000
2822
|
return e !== o;
|
|
3001
|
-
}), document.removeEventListener("wheel", l,
|
|
2823
|
+
}), document.removeEventListener("wheel", l, Yn), document.removeEventListener("touchmove", l, Yn), document.removeEventListener("touchstart", d, Yn);
|
|
3002
2824
|
};
|
|
3003
2825
|
}, []);
|
|
3004
2826
|
var m = t.removeScrollBar, h = t.inert;
|
|
3005
|
-
return e.createElement(e.Fragment, null, h ? e.createElement(o, { styles:
|
|
2827
|
+
return e.createElement(e.Fragment, null, h ? e.createElement(o, { styles: dr(a) }) : null, m ? e.createElement(Kn, { gapMode: t.gapMode }) : null);
|
|
3006
2828
|
}
|
|
3007
|
-
function
|
|
2829
|
+
function hr(e) {
|
|
3008
2830
|
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
3009
2831
|
return t;
|
|
3010
2832
|
}
|
|
3011
2833
|
//#endregion
|
|
3012
2834
|
//#region ../../node_modules/@huin-core/react-dialog/node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
3013
|
-
var
|
|
3014
|
-
return e.createElement(
|
|
2835
|
+
var gr = Tn(En, mr), _r = e.forwardRef(function(t, n) {
|
|
2836
|
+
return e.createElement(On, X({}, t, {
|
|
3015
2837
|
ref: n,
|
|
3016
|
-
sideCar:
|
|
2838
|
+
sideCar: gr
|
|
3017
2839
|
}));
|
|
3018
2840
|
});
|
|
3019
|
-
|
|
2841
|
+
_r.classNames = On.classNames;
|
|
3020
2842
|
//#endregion
|
|
3021
2843
|
//#region ../../node_modules/aria-hidden/dist/es2015/index.js
|
|
3022
|
-
var
|
|
2844
|
+
var vr = function(e) {
|
|
3023
2845
|
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
3024
|
-
},
|
|
3025
|
-
return e && (e.host ||
|
|
3026
|
-
},
|
|
2846
|
+
}, yr = /* @__PURE__ */ new WeakMap(), br = /* @__PURE__ */ new WeakMap(), xr = {}, Sr = 0, Cr = function(e) {
|
|
2847
|
+
return e && (e.host || Cr(e.parentNode));
|
|
2848
|
+
}, wr = function(e, t) {
|
|
3027
2849
|
return t.map(function(t) {
|
|
3028
2850
|
if (e.contains(t)) return t;
|
|
3029
|
-
var n =
|
|
2851
|
+
var n = Cr(t);
|
|
3030
2852
|
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
3031
2853
|
}).filter(function(e) {
|
|
3032
2854
|
return !!e;
|
|
3033
2855
|
});
|
|
3034
|
-
},
|
|
3035
|
-
var i =
|
|
3036
|
-
|
|
3037
|
-
var a =
|
|
2856
|
+
}, Tr = function(e, t, n, r) {
|
|
2857
|
+
var i = wr(t, Array.isArray(e) ? e : [e]);
|
|
2858
|
+
xr[n] || (xr[n] = /* @__PURE__ */ new WeakMap());
|
|
2859
|
+
var a = xr[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
|
|
3038
2860
|
!e || s.has(e) || (s.add(e), l(e.parentNode));
|
|
3039
2861
|
};
|
|
3040
2862
|
i.forEach(l);
|
|
@@ -3042,30 +2864,30 @@ var br = function(e) {
|
|
|
3042
2864
|
!e || c.has(e) || Array.prototype.forEach.call(e.children, function(e) {
|
|
3043
2865
|
if (s.has(e)) u(e);
|
|
3044
2866
|
else try {
|
|
3045
|
-
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (
|
|
3046
|
-
|
|
2867
|
+
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (yr.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
|
|
2868
|
+
yr.set(e, c), a.set(e, l), o.push(e), c === 1 && i && br.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
|
|
3047
2869
|
} catch (t) {
|
|
3048
2870
|
console.error("aria-hidden: cannot operate on ", e, t);
|
|
3049
2871
|
}
|
|
3050
2872
|
});
|
|
3051
2873
|
};
|
|
3052
|
-
return u(t), s.clear(),
|
|
2874
|
+
return u(t), s.clear(), Sr++, function() {
|
|
3053
2875
|
o.forEach(function(e) {
|
|
3054
|
-
var t =
|
|
3055
|
-
|
|
3056
|
-
}),
|
|
2876
|
+
var t = yr.get(e) - 1, i = a.get(e) - 1;
|
|
2877
|
+
yr.set(e, t), a.set(e, i), t || (br.has(e) || e.removeAttribute(r), br.delete(e)), i || e.removeAttribute(n);
|
|
2878
|
+
}), Sr--, Sr || (yr = /* @__PURE__ */ new WeakMap(), yr = /* @__PURE__ */ new WeakMap(), br = /* @__PURE__ */ new WeakMap(), xr = {});
|
|
3057
2879
|
};
|
|
3058
|
-
},
|
|
2880
|
+
}, Er = function(e, t, n) {
|
|
3059
2881
|
n === void 0 && (n = "data-aria-hidden");
|
|
3060
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), i = t ||
|
|
3061
|
-
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))),
|
|
2882
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), i = t || vr(e);
|
|
2883
|
+
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), Tr(r, i, n, "aria-hidden")) : function() {
|
|
3062
2884
|
return null;
|
|
3063
2885
|
};
|
|
3064
2886
|
};
|
|
3065
2887
|
//#endregion
|
|
3066
2888
|
//#region ../../node_modules/@huin-core/react-use-escape-keydown/dist/index.mjs
|
|
3067
|
-
function
|
|
3068
|
-
let r =
|
|
2889
|
+
function Dr(t, n = globalThis?.document) {
|
|
2890
|
+
let r = k(t);
|
|
3069
2891
|
e.useEffect(() => {
|
|
3070
2892
|
let e = (e) => {
|
|
3071
2893
|
e.key === "Escape" && r(e);
|
|
@@ -3075,67 +2897,67 @@ function kr(t, n = globalThis?.document) {
|
|
|
3075
2897
|
}
|
|
3076
2898
|
//#endregion
|
|
3077
2899
|
//#region ../../node_modules/@huin-core/react-dismissable-layer/dist/index.mjs
|
|
3078
|
-
var
|
|
2900
|
+
var Or = "DismissableLayer", kr = "dismissableLayer.update", Ar = "dismissableLayer.pointerDownOutside", jr = "dismissableLayer.focusOutside", Mr, Nr = e.createContext({
|
|
3079
2901
|
layers: /* @__PURE__ */ new Set(),
|
|
3080
2902
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
3081
2903
|
branches: /* @__PURE__ */ new Set()
|
|
3082
|
-
}),
|
|
3083
|
-
let { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside:
|
|
3084
|
-
let t = e.target, n = [...
|
|
3085
|
-
!w || n || (a?.(e),
|
|
3086
|
-
},
|
|
2904
|
+
}), Pr = e.forwardRef((t, n) => {
|
|
2905
|
+
let { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: s, onInteractOutside: c, onDismiss: l, ...u } = t, d = e.useContext(Nr), [f, m] = e.useState(null), h = f?.ownerDocument ?? globalThis?.document, [, _] = e.useState({}), v = g(n, (e) => m(e)), y = Array.from(d.layers), [b] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), x = y.indexOf(b), S = f ? y.indexOf(f) : -1, C = d.layersWithOutsidePointerEventsDisabled.size > 0, w = S >= x, T = Lr((e) => {
|
|
2906
|
+
let t = e.target, n = [...d.branches].some((e) => e.contains(t));
|
|
2907
|
+
!w || n || (a?.(e), c?.(e), e.defaultPrevented || l?.());
|
|
2908
|
+
}, h), E = Rr((e) => {
|
|
3087
2909
|
let t = e.target;
|
|
3088
|
-
[...
|
|
3089
|
-
},
|
|
3090
|
-
return
|
|
3091
|
-
S ===
|
|
3092
|
-
},
|
|
3093
|
-
if (f) return r && (
|
|
3094
|
-
r &&
|
|
2910
|
+
[...d.branches].some((e) => e.contains(t)) || (s?.(e), c?.(e), e.defaultPrevented || l?.());
|
|
2911
|
+
}, h);
|
|
2912
|
+
return Dr((e) => {
|
|
2913
|
+
S === d.layers.size - 1 && (i?.(e), !e.defaultPrevented && l && (e.preventDefault(), l()));
|
|
2914
|
+
}, h), e.useEffect(() => {
|
|
2915
|
+
if (f) return r && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Mr = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(f)), d.layers.add(f), zr(), () => {
|
|
2916
|
+
r && d.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = Mr);
|
|
3095
2917
|
};
|
|
3096
2918
|
}, [
|
|
3097
2919
|
f,
|
|
3098
|
-
|
|
2920
|
+
h,
|
|
3099
2921
|
r,
|
|
3100
|
-
|
|
2922
|
+
d
|
|
3101
2923
|
]), e.useEffect(() => () => {
|
|
3102
|
-
f && (
|
|
3103
|
-
}, [f,
|
|
3104
|
-
let e = () =>
|
|
3105
|
-
return document.addEventListener(
|
|
3106
|
-
}, []), /* @__PURE__ */ (
|
|
3107
|
-
...
|
|
3108
|
-
ref:
|
|
2924
|
+
f && (d.layers.delete(f), d.layersWithOutsidePointerEventsDisabled.delete(f), zr());
|
|
2925
|
+
}, [f, d]), e.useEffect(() => {
|
|
2926
|
+
let e = () => _({});
|
|
2927
|
+
return document.addEventListener(kr, e), () => document.removeEventListener(kr, e);
|
|
2928
|
+
}, []), /* @__PURE__ */ o(O.div, {
|
|
2929
|
+
...u,
|
|
2930
|
+
ref: v,
|
|
3109
2931
|
style: {
|
|
3110
2932
|
pointerEvents: C ? w ? "auto" : "none" : void 0,
|
|
3111
2933
|
...t.style
|
|
3112
2934
|
},
|
|
3113
|
-
onFocusCapture:
|
|
3114
|
-
onBlurCapture:
|
|
3115
|
-
onPointerDownCapture:
|
|
2935
|
+
onFocusCapture: p(t.onFocusCapture, E.onFocusCapture),
|
|
2936
|
+
onBlurCapture: p(t.onBlurCapture, E.onBlurCapture),
|
|
2937
|
+
onPointerDownCapture: p(t.onPointerDownCapture, T.onPointerDownCapture)
|
|
3116
2938
|
});
|
|
3117
2939
|
});
|
|
3118
|
-
|
|
3119
|
-
var
|
|
3120
|
-
let r = e.useContext(
|
|
2940
|
+
Pr.displayName = Or;
|
|
2941
|
+
var Fr = "DismissableLayerBranch", Ir = e.forwardRef((t, n) => {
|
|
2942
|
+
let r = e.useContext(Nr), i = e.useRef(null), a = g(n, i);
|
|
3121
2943
|
return e.useEffect(() => {
|
|
3122
2944
|
let e = i.current;
|
|
3123
2945
|
if (e) return r.branches.add(e), () => {
|
|
3124
2946
|
r.branches.delete(e);
|
|
3125
2947
|
};
|
|
3126
|
-
}, [r.branches]), /* @__PURE__ */ (
|
|
2948
|
+
}, [r.branches]), /* @__PURE__ */ o(O.div, {
|
|
3127
2949
|
...t,
|
|
3128
2950
|
ref: a
|
|
3129
2951
|
});
|
|
3130
2952
|
});
|
|
3131
|
-
|
|
3132
|
-
function
|
|
3133
|
-
let r =
|
|
2953
|
+
Ir.displayName = Fr;
|
|
2954
|
+
function Lr(t, n = globalThis?.document) {
|
|
2955
|
+
let r = k(t), i = e.useRef(!1), a = e.useRef(() => {});
|
|
3134
2956
|
return e.useEffect(() => {
|
|
3135
2957
|
let e = (e) => {
|
|
3136
2958
|
if (e.target && !i.current) {
|
|
3137
2959
|
let t = function() {
|
|
3138
|
-
|
|
2960
|
+
Br(Ar, r, i, { discrete: !0 });
|
|
3139
2961
|
}, i = { originalEvent: e };
|
|
3140
2962
|
e.pointerType === "touch" ? (n.removeEventListener("click", a.current), a.current = t, n.addEventListener("click", a.current, { once: !0 })) : t();
|
|
3141
2963
|
} else n.removeEventListener("click", a.current);
|
|
@@ -3148,11 +2970,11 @@ function zr(t, n = globalThis?.document) {
|
|
|
3148
2970
|
};
|
|
3149
2971
|
}, [n, r]), { onPointerDownCapture: () => i.current = !0 };
|
|
3150
2972
|
}
|
|
3151
|
-
function
|
|
3152
|
-
let r =
|
|
2973
|
+
function Rr(t, n = globalThis?.document) {
|
|
2974
|
+
let r = k(t), i = e.useRef(!1);
|
|
3153
2975
|
return e.useEffect(() => {
|
|
3154
2976
|
let e = (e) => {
|
|
3155
|
-
e.target && !i.current &&
|
|
2977
|
+
e.target && !i.current && Br(jr, r, { originalEvent: e }, { discrete: !1 });
|
|
3156
2978
|
};
|
|
3157
2979
|
return n.addEventListener("focusin", e), () => n.removeEventListener("focusin", e);
|
|
3158
2980
|
}, [n, r]), {
|
|
@@ -3160,25 +2982,25 @@ function Br(t, n = globalThis?.document) {
|
|
|
3160
2982
|
onBlurCapture: () => i.current = !1
|
|
3161
2983
|
};
|
|
3162
2984
|
}
|
|
3163
|
-
function
|
|
3164
|
-
let e = new CustomEvent(
|
|
2985
|
+
function zr() {
|
|
2986
|
+
let e = new CustomEvent(kr);
|
|
3165
2987
|
document.dispatchEvent(e);
|
|
3166
2988
|
}
|
|
3167
|
-
function
|
|
2989
|
+
function Br(e, t, n, { discrete: r }) {
|
|
3168
2990
|
let i = n.originalEvent.target, a = new CustomEvent(e, {
|
|
3169
2991
|
bubbles: !1,
|
|
3170
2992
|
cancelable: !0,
|
|
3171
2993
|
detail: n
|
|
3172
2994
|
});
|
|
3173
|
-
t && i.addEventListener(e, t, { once: !0 }), r ?
|
|
2995
|
+
t && i.addEventListener(e, t, { once: !0 }), r ? ee(i, a) : i.dispatchEvent(a);
|
|
3174
2996
|
}
|
|
3175
2997
|
//#endregion
|
|
3176
2998
|
//#region ../../node_modules/@huin-core/react-focus-scope/dist/index.mjs
|
|
3177
|
-
var
|
|
2999
|
+
var Vr = "focusScope.autoFocusOnMount", Hr = "focusScope.autoFocusOnUnmount", Ur = {
|
|
3178
3000
|
bubbles: !1,
|
|
3179
3001
|
cancelable: !0
|
|
3180
|
-
},
|
|
3181
|
-
let { loop: r = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus:
|
|
3002
|
+
}, Wr = "FocusScope", Gr = e.forwardRef((t, n) => {
|
|
3003
|
+
let { loop: r = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: s, ...c } = t, [l, u] = e.useState(null), d = k(a), f = k(s), p = e.useRef(null), m = g(n, (e) => u(e)), h = e.useRef({
|
|
3182
3004
|
paused: !1,
|
|
3183
3005
|
pause() {
|
|
3184
3006
|
this.paused = !0;
|
|
@@ -3190,19 +3012,19 @@ var Ur = "focusScope.autoFocusOnMount", Wr = "focusScope.autoFocusOnUnmount", Gr
|
|
|
3190
3012
|
e.useEffect(() => {
|
|
3191
3013
|
if (i) {
|
|
3192
3014
|
let e = function(e) {
|
|
3193
|
-
if (h.paused || !
|
|
3015
|
+
if (h.paused || !l) return;
|
|
3194
3016
|
let t = e.target;
|
|
3195
|
-
|
|
3017
|
+
l.contains(t) ? p.current = t : Z(p.current, { select: !0 });
|
|
3196
3018
|
}, t = function(e) {
|
|
3197
|
-
if (h.paused || !
|
|
3019
|
+
if (h.paused || !l) return;
|
|
3198
3020
|
let t = e.relatedTarget;
|
|
3199
|
-
t !== null && (
|
|
3021
|
+
t !== null && (l.contains(t) || Z(p.current, { select: !0 }));
|
|
3200
3022
|
}, n = function(e) {
|
|
3201
|
-
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && Z(
|
|
3023
|
+
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && Z(l);
|
|
3202
3024
|
};
|
|
3203
3025
|
document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
3204
3026
|
let r = new MutationObserver(n);
|
|
3205
|
-
return
|
|
3027
|
+
return l && r.observe(l, {
|
|
3206
3028
|
childList: !0,
|
|
3207
3029
|
subtree: !0
|
|
3208
3030
|
}), () => {
|
|
@@ -3211,34 +3033,34 @@ var Ur = "focusScope.autoFocusOnMount", Wr = "focusScope.autoFocusOnUnmount", Gr
|
|
|
3211
3033
|
}
|
|
3212
3034
|
}, [
|
|
3213
3035
|
i,
|
|
3214
|
-
|
|
3036
|
+
l,
|
|
3215
3037
|
h.paused
|
|
3216
3038
|
]), e.useEffect(() => {
|
|
3217
|
-
if (
|
|
3218
|
-
|
|
3039
|
+
if (l) {
|
|
3040
|
+
Qr.add(h);
|
|
3219
3041
|
let e = document.activeElement;
|
|
3220
|
-
if (!
|
|
3221
|
-
let t = new CustomEvent(
|
|
3222
|
-
|
|
3042
|
+
if (!l.contains(e)) {
|
|
3043
|
+
let t = new CustomEvent(Vr, Ur);
|
|
3044
|
+
l.addEventListener(Vr, d), l.dispatchEvent(t), t.defaultPrevented || (Kr(ti(Jr(l)), { select: !0 }), document.activeElement === e && Z(l));
|
|
3223
3045
|
}
|
|
3224
3046
|
return () => {
|
|
3225
|
-
|
|
3226
|
-
let t = new CustomEvent(
|
|
3227
|
-
|
|
3047
|
+
l.removeEventListener(Vr, d), setTimeout(() => {
|
|
3048
|
+
let t = new CustomEvent(Hr, Ur);
|
|
3049
|
+
l.addEventListener(Hr, f), l.dispatchEvent(t), t.defaultPrevented || Z(e ?? document.body, { select: !0 }), l.removeEventListener(Hr, f), Qr.remove(h);
|
|
3228
3050
|
}, 0);
|
|
3229
3051
|
};
|
|
3230
3052
|
}
|
|
3231
3053
|
}, [
|
|
3232
|
-
|
|
3233
|
-
|
|
3054
|
+
l,
|
|
3055
|
+
d,
|
|
3234
3056
|
f,
|
|
3235
3057
|
h
|
|
3236
3058
|
]);
|
|
3237
|
-
let
|
|
3059
|
+
let _ = e.useCallback((e) => {
|
|
3238
3060
|
if (!r && !i || h.paused) return;
|
|
3239
3061
|
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, n = document.activeElement;
|
|
3240
3062
|
if (t && n) {
|
|
3241
|
-
let t = e.currentTarget, [i, a] =
|
|
3063
|
+
let t = e.currentTarget, [i, a] = qr(t);
|
|
3242
3064
|
i && a ? !e.shiftKey && n === a ? (e.preventDefault(), r && Z(i, { select: !0 })) : e.shiftKey && n === i && (e.preventDefault(), r && Z(a, { select: !0 })) : n === t && e.preventDefault();
|
|
3243
3065
|
}
|
|
3244
3066
|
}, [
|
|
@@ -3246,23 +3068,23 @@ var Ur = "focusScope.autoFocusOnMount", Wr = "focusScope.autoFocusOnUnmount", Gr
|
|
|
3246
3068
|
i,
|
|
3247
3069
|
h.paused
|
|
3248
3070
|
]);
|
|
3249
|
-
return /* @__PURE__ */ (
|
|
3071
|
+
return /* @__PURE__ */ o(O.div, {
|
|
3250
3072
|
tabIndex: -1,
|
|
3251
|
-
...
|
|
3073
|
+
...c,
|
|
3252
3074
|
ref: m,
|
|
3253
|
-
onKeyDown:
|
|
3075
|
+
onKeyDown: _
|
|
3254
3076
|
});
|
|
3255
3077
|
});
|
|
3256
|
-
|
|
3257
|
-
function
|
|
3078
|
+
Gr.displayName = Wr;
|
|
3079
|
+
function Kr(e, { select: t = !1 } = {}) {
|
|
3258
3080
|
let n = document.activeElement;
|
|
3259
3081
|
for (let r of e) if (Z(r, { select: t }), document.activeElement !== n) return;
|
|
3260
3082
|
}
|
|
3261
|
-
function
|
|
3262
|
-
let t =
|
|
3263
|
-
return [
|
|
3083
|
+
function qr(e) {
|
|
3084
|
+
let t = Jr(e);
|
|
3085
|
+
return [Yr(t, e), Yr(t.reverse(), e)];
|
|
3264
3086
|
}
|
|
3265
|
-
function
|
|
3087
|
+
function Jr(e) {
|
|
3266
3088
|
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
3267
3089
|
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
3268
3090
|
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
@@ -3270,10 +3092,10 @@ function Xr(e) {
|
|
|
3270
3092
|
for (; n.nextNode();) t.push(n.currentNode);
|
|
3271
3093
|
return t;
|
|
3272
3094
|
}
|
|
3273
|
-
function
|
|
3274
|
-
for (let n of e) if (!
|
|
3095
|
+
function Yr(e, t) {
|
|
3096
|
+
for (let n of e) if (!Xr(n, { upTo: t })) return n;
|
|
3275
3097
|
}
|
|
3276
|
-
function
|
|
3098
|
+
function Xr(e, { upTo: t }) {
|
|
3277
3099
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
3278
3100
|
for (; e;) {
|
|
3279
3101
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -3282,98 +3104,98 @@ function Qr(e, { upTo: t }) {
|
|
|
3282
3104
|
}
|
|
3283
3105
|
return !1;
|
|
3284
3106
|
}
|
|
3285
|
-
function
|
|
3107
|
+
function Zr(e) {
|
|
3286
3108
|
return e instanceof HTMLInputElement && "select" in e;
|
|
3287
3109
|
}
|
|
3288
3110
|
function Z(e, { select: t = !1 } = {}) {
|
|
3289
3111
|
if (e && e.focus) {
|
|
3290
3112
|
let n = document.activeElement;
|
|
3291
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
3113
|
+
e.focus({ preventScroll: !0 }), e !== n && Zr(e) && t && e.select();
|
|
3292
3114
|
}
|
|
3293
3115
|
}
|
|
3294
|
-
var
|
|
3295
|
-
function
|
|
3116
|
+
var Qr = $r();
|
|
3117
|
+
function $r() {
|
|
3296
3118
|
let e = [];
|
|
3297
3119
|
return {
|
|
3298
3120
|
add(t) {
|
|
3299
3121
|
let n = e[0];
|
|
3300
|
-
t !== n && n?.pause(), e =
|
|
3122
|
+
t !== n && n?.pause(), e = ei(e, t), e.unshift(t);
|
|
3301
3123
|
},
|
|
3302
3124
|
remove(t) {
|
|
3303
|
-
e =
|
|
3125
|
+
e = ei(e, t), e[0]?.resume();
|
|
3304
3126
|
}
|
|
3305
3127
|
};
|
|
3306
3128
|
}
|
|
3307
|
-
function
|
|
3129
|
+
function ei(e, t) {
|
|
3308
3130
|
let n = [...e], r = n.indexOf(t);
|
|
3309
3131
|
return r !== -1 && n.splice(r, 1), n;
|
|
3310
3132
|
}
|
|
3311
|
-
function
|
|
3133
|
+
function ti(e) {
|
|
3312
3134
|
return e.filter((e) => e.tagName !== "A");
|
|
3313
3135
|
}
|
|
3314
3136
|
//#endregion
|
|
3315
3137
|
//#region ../../node_modules/@huin-core/react-focus-guards/dist/index.mjs
|
|
3316
|
-
var
|
|
3317
|
-
function
|
|
3138
|
+
var ni = 0;
|
|
3139
|
+
function ri() {
|
|
3318
3140
|
e.useEffect(() => {
|
|
3319
3141
|
let e = document.querySelectorAll("[data-huin-core-focus-guard]");
|
|
3320
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
3321
|
-
|
|
3142
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? ii()), document.body.insertAdjacentElement("beforeend", e[1] ?? ii()), ni++, () => {
|
|
3143
|
+
ni === 1 && document.querySelectorAll("[data-huin-core-focus-guard]").forEach((e) => e.remove()), ni--;
|
|
3322
3144
|
};
|
|
3323
3145
|
}, []);
|
|
3324
3146
|
}
|
|
3325
|
-
function
|
|
3147
|
+
function ii() {
|
|
3326
3148
|
let e = document.createElement("span");
|
|
3327
3149
|
return e.setAttribute("data-huin-core-focus-guard", ""), e.tabIndex = 0, e.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none", e;
|
|
3328
3150
|
}
|
|
3329
3151
|
//#endregion
|
|
3330
3152
|
//#region ../../node_modules/@huin-core/react-dialog/dist/index.mjs
|
|
3331
|
-
var
|
|
3332
|
-
let { __scopeDialog: n, children: r, open: i, defaultOpen: a, onOpenChange:
|
|
3153
|
+
var ai = "Dialog", [oi, si] = d(ai), [ci, Q] = oi(ai), li = (t) => {
|
|
3154
|
+
let { __scopeDialog: n, children: r, open: i, defaultOpen: a, onOpenChange: s, modal: c = !0 } = t, l = e.useRef(null), u = e.useRef(null), [d = !1, f] = A({
|
|
3333
3155
|
prop: i,
|
|
3334
3156
|
defaultProp: a,
|
|
3335
|
-
onChange:
|
|
3157
|
+
onChange: s
|
|
3336
3158
|
});
|
|
3337
|
-
return /* @__PURE__ */ (
|
|
3159
|
+
return /* @__PURE__ */ o(ci, {
|
|
3338
3160
|
scope: n,
|
|
3339
|
-
triggerRef:
|
|
3340
|
-
contentRef:
|
|
3341
|
-
contentId:
|
|
3342
|
-
titleId:
|
|
3343
|
-
descriptionId:
|
|
3344
|
-
open:
|
|
3161
|
+
triggerRef: l,
|
|
3162
|
+
contentRef: u,
|
|
3163
|
+
contentId: D(),
|
|
3164
|
+
titleId: D(),
|
|
3165
|
+
descriptionId: D(),
|
|
3166
|
+
open: d,
|
|
3345
3167
|
onOpenChange: f,
|
|
3346
3168
|
onOpenToggle: e.useCallback(() => f((e) => !e), [f]),
|
|
3347
|
-
modal:
|
|
3169
|
+
modal: c,
|
|
3348
3170
|
children: r
|
|
3349
3171
|
});
|
|
3350
3172
|
};
|
|
3351
|
-
|
|
3352
|
-
function
|
|
3173
|
+
li.displayName = ai;
|
|
3174
|
+
function ui(e) {
|
|
3353
3175
|
return e ? "open" : "closed";
|
|
3354
3176
|
}
|
|
3355
|
-
var
|
|
3356
|
-
let { __scopeDialog: n, ...r } = e, i = Q(
|
|
3357
|
-
return /* @__PURE__ */ (
|
|
3177
|
+
var di = li, fi = "DialogTrigger", pi = t.forwardRef((e, t) => {
|
|
3178
|
+
let { __scopeDialog: n, ...r } = e, i = Q(fi, n), a = g(t, i.triggerRef);
|
|
3179
|
+
return /* @__PURE__ */ o(O.button, {
|
|
3358
3180
|
type: "button",
|
|
3359
3181
|
"aria-haspopup": "dialog",
|
|
3360
3182
|
"aria-expanded": i.open,
|
|
3361
3183
|
"aria-controls": i.contentId,
|
|
3362
|
-
"data-state":
|
|
3184
|
+
"data-state": ui(i.open),
|
|
3363
3185
|
...r,
|
|
3364
3186
|
ref: a,
|
|
3365
|
-
onClick:
|
|
3187
|
+
onClick: p(e.onClick, i.onOpenToggle)
|
|
3366
3188
|
});
|
|
3367
3189
|
});
|
|
3368
|
-
|
|
3369
|
-
var
|
|
3370
|
-
let { __scopeDialog: n, forceMount: r, children: i, container: a } = e,
|
|
3371
|
-
return /* @__PURE__ */ (
|
|
3190
|
+
pi.displayName = fi;
|
|
3191
|
+
var mi = "DialogPortal", [hi] = d(ai), [gi, _i] = hi(mi, { forceMount: void 0 }), vi = (e) => {
|
|
3192
|
+
let { __scopeDialog: n, forceMount: r, children: i, container: a } = e, s = Q(mi, n);
|
|
3193
|
+
return /* @__PURE__ */ o(gi, {
|
|
3372
3194
|
scope: n,
|
|
3373
3195
|
forceMount: r,
|
|
3374
|
-
children: t.Children.map(i, (e) => /* @__PURE__ */ (
|
|
3375
|
-
present: r ||
|
|
3376
|
-
children: /* @__PURE__ */ (
|
|
3196
|
+
children: t.Children.map(i, (e) => /* @__PURE__ */ o(ve, {
|
|
3197
|
+
present: r || s.open,
|
|
3198
|
+
children: /* @__PURE__ */ o(ln, {
|
|
3377
3199
|
asChild: !0,
|
|
3378
3200
|
container: a,
|
|
3379
3201
|
children: e
|
|
@@ -3381,26 +3203,26 @@ var gi = "DialogPortal", [_i] = p(si), [vi, yi] = _i(gi, { forceMount: void 0 })
|
|
|
3381
3203
|
}))
|
|
3382
3204
|
});
|
|
3383
3205
|
};
|
|
3384
|
-
|
|
3385
|
-
var
|
|
3386
|
-
let n = yi
|
|
3387
|
-
return a.modal ? /* @__PURE__ */ (
|
|
3206
|
+
vi.displayName = mi;
|
|
3207
|
+
var yi = "DialogOverlay", bi = t.forwardRef((e, t) => {
|
|
3208
|
+
let n = _i(yi, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = Q(yi, e.__scopeDialog);
|
|
3209
|
+
return a.modal ? /* @__PURE__ */ o(ve, {
|
|
3388
3210
|
present: r || a.open,
|
|
3389
|
-
children: /* @__PURE__ */ (
|
|
3211
|
+
children: /* @__PURE__ */ o(xi, {
|
|
3390
3212
|
...i,
|
|
3391
3213
|
ref: t
|
|
3392
3214
|
})
|
|
3393
3215
|
}) : null;
|
|
3394
3216
|
});
|
|
3395
|
-
|
|
3396
|
-
var
|
|
3397
|
-
let { __scopeDialog: n, ...r } = e, i = Q(
|
|
3398
|
-
return /* @__PURE__ */ (
|
|
3399
|
-
as:
|
|
3217
|
+
bi.displayName = yi;
|
|
3218
|
+
var xi = t.forwardRef((e, t) => {
|
|
3219
|
+
let { __scopeDialog: n, ...r } = e, i = Q(yi, n);
|
|
3220
|
+
return /* @__PURE__ */ o(_r, {
|
|
3221
|
+
as: _,
|
|
3400
3222
|
allowPinchZoom: !0,
|
|
3401
3223
|
shards: [i.contentRef],
|
|
3402
|
-
children: /* @__PURE__ */ (
|
|
3403
|
-
"data-state":
|
|
3224
|
+
children: /* @__PURE__ */ o(O.div, {
|
|
3225
|
+
"data-state": ui(i.open),
|
|
3404
3226
|
...r,
|
|
3405
3227
|
ref: t,
|
|
3406
3228
|
style: {
|
|
@@ -3409,51 +3231,51 @@ var Ci = t.forwardRef((e, t) => {
|
|
|
3409
3231
|
}
|
|
3410
3232
|
})
|
|
3411
3233
|
});
|
|
3412
|
-
}),
|
|
3413
|
-
let { __scopeDialog: n, ...r } = e, i = Q(
|
|
3414
|
-
return /* @__PURE__ */ (
|
|
3234
|
+
}), Si = "DialogTitle", Ci = t.forwardRef((e, t) => {
|
|
3235
|
+
let { __scopeDialog: n, ...r } = e, i = Q(Si, n);
|
|
3236
|
+
return /* @__PURE__ */ o(O.h2, {
|
|
3415
3237
|
id: i.titleId,
|
|
3416
3238
|
...r,
|
|
3417
3239
|
ref: t
|
|
3418
3240
|
});
|
|
3419
3241
|
});
|
|
3420
|
-
|
|
3421
|
-
var $ = "DialogContent",
|
|
3422
|
-
let n =
|
|
3423
|
-
return /* @__PURE__ */ (
|
|
3242
|
+
Ci.displayName = Si;
|
|
3243
|
+
var $ = "DialogContent", wi = t.forwardRef((e, t) => {
|
|
3244
|
+
let n = _i($, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = Q($, e.__scopeDialog);
|
|
3245
|
+
return /* @__PURE__ */ o(ve, {
|
|
3424
3246
|
present: r || a.open,
|
|
3425
|
-
children: a.modal ? /* @__PURE__ */ (
|
|
3247
|
+
children: a.modal ? /* @__PURE__ */ o(Ti, {
|
|
3426
3248
|
...i,
|
|
3427
3249
|
ref: t
|
|
3428
|
-
}) : /* @__PURE__ */ (
|
|
3250
|
+
}) : /* @__PURE__ */ o(Ei, {
|
|
3429
3251
|
...i,
|
|
3430
3252
|
ref: t
|
|
3431
3253
|
})
|
|
3432
3254
|
});
|
|
3433
3255
|
});
|
|
3434
|
-
|
|
3435
|
-
var
|
|
3436
|
-
let r = Q($, e.__scopeDialog), i = t.useRef(null), a =
|
|
3256
|
+
wi.displayName = $;
|
|
3257
|
+
var Ti = t.forwardRef((e, n) => {
|
|
3258
|
+
let r = Q($, e.__scopeDialog), i = t.useRef(null), a = g(n, r.contentRef, i);
|
|
3437
3259
|
return t.useEffect(() => {
|
|
3438
3260
|
let e = i.current;
|
|
3439
|
-
if (e) return
|
|
3440
|
-
}, []), /* @__PURE__ */ (
|
|
3261
|
+
if (e) return Er(e);
|
|
3262
|
+
}, []), /* @__PURE__ */ o(Di, {
|
|
3441
3263
|
...e,
|
|
3442
3264
|
ref: a,
|
|
3443
3265
|
trapFocus: r.open,
|
|
3444
3266
|
disableOutsidePointerEvents: !0,
|
|
3445
|
-
onCloseAutoFocus:
|
|
3267
|
+
onCloseAutoFocus: p(e.onCloseAutoFocus, (e) => {
|
|
3446
3268
|
e.preventDefault(), r.triggerRef.current?.focus();
|
|
3447
3269
|
}),
|
|
3448
|
-
onPointerDownOutside:
|
|
3270
|
+
onPointerDownOutside: p(e.onPointerDownOutside, (e) => {
|
|
3449
3271
|
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
3450
3272
|
(t.button === 2 || n) && e.preventDefault();
|
|
3451
3273
|
}),
|
|
3452
|
-
onFocusOutside:
|
|
3274
|
+
onFocusOutside: p(e.onFocusOutside, (e) => e.preventDefault())
|
|
3453
3275
|
});
|
|
3454
|
-
}),
|
|
3276
|
+
}), Ei = t.forwardRef((e, n) => {
|
|
3455
3277
|
let r = Q($, e.__scopeDialog), i = t.useRef(!1), a = t.useRef(!1);
|
|
3456
|
-
return /* @__PURE__ */ (
|
|
3278
|
+
return /* @__PURE__ */ o(Di, {
|
|
3457
3279
|
...e,
|
|
3458
3280
|
ref: n,
|
|
3459
3281
|
trapFocus: !1,
|
|
@@ -3467,34 +3289,34 @@ var Di = t.forwardRef((e, n) => {
|
|
|
3467
3289
|
r.triggerRef.current?.contains(n) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && a.current && t.preventDefault();
|
|
3468
3290
|
}
|
|
3469
3291
|
});
|
|
3470
|
-
}),
|
|
3471
|
-
let { __scopeDialog: r, trapFocus: i, onOpenAutoFocus:
|
|
3472
|
-
return
|
|
3292
|
+
}), Di = t.forwardRef((e, n) => {
|
|
3293
|
+
let { __scopeDialog: r, trapFocus: i, onOpenAutoFocus: c, onCloseAutoFocus: l, ...u } = e, d = Q($, r), f = t.useRef(null), p = g(n, f);
|
|
3294
|
+
return ri(), /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o(Gr, {
|
|
3473
3295
|
asChild: !0,
|
|
3474
3296
|
loop: !0,
|
|
3475
3297
|
trapped: i,
|
|
3476
|
-
onMountAutoFocus:
|
|
3477
|
-
onUnmountAutoFocus:
|
|
3478
|
-
children: /* @__PURE__ */ (
|
|
3298
|
+
onMountAutoFocus: c,
|
|
3299
|
+
onUnmountAutoFocus: l,
|
|
3300
|
+
children: /* @__PURE__ */ o(Pr, {
|
|
3479
3301
|
role: "dialog",
|
|
3480
|
-
id:
|
|
3481
|
-
"aria-describedby":
|
|
3482
|
-
"aria-labelledby":
|
|
3483
|
-
"data-state":
|
|
3484
|
-
...
|
|
3485
|
-
ref:
|
|
3486
|
-
onDismiss: () =>
|
|
3302
|
+
id: d.contentId,
|
|
3303
|
+
"aria-describedby": d.descriptionId,
|
|
3304
|
+
"aria-labelledby": d.titleId,
|
|
3305
|
+
"data-state": ui(d.open),
|
|
3306
|
+
...u,
|
|
3307
|
+
ref: p,
|
|
3308
|
+
onDismiss: () => d.onOpenChange(!1)
|
|
3487
3309
|
})
|
|
3488
|
-
}), /* @__PURE__ */ (
|
|
3489
|
-
contentRef:
|
|
3490
|
-
descriptionId:
|
|
3310
|
+
}), /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o(ji, { titleId: d.titleId }), /* @__PURE__ */ o(Ni, {
|
|
3311
|
+
contentRef: f,
|
|
3312
|
+
descriptionId: d.descriptionId
|
|
3491
3313
|
})] })] });
|
|
3492
|
-
}),
|
|
3314
|
+
}), Oi = "DialogTitleWarning", [ki, Ai] = u(Oi, {
|
|
3493
3315
|
contentName: $,
|
|
3494
|
-
titleName:
|
|
3316
|
+
titleName: Si,
|
|
3495
3317
|
docsSlug: "dialog"
|
|
3496
|
-
}),
|
|
3497
|
-
let n =
|
|
3318
|
+
}), ji = ({ titleId: e }) => {
|
|
3319
|
+
let n = Ai(Oi), r = `\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
|
|
3498
3320
|
|
|
3499
3321
|
If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
3500
3322
|
|
|
@@ -3502,8 +3324,8 @@ For more information, see https://huinhub.com/primitives/docs/components/${n.doc
|
|
|
3502
3324
|
return t.useEffect(() => {
|
|
3503
3325
|
e && (document.getElementById(e) || console.error(r));
|
|
3504
3326
|
}, [r, e]), null;
|
|
3505
|
-
},
|
|
3506
|
-
let r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Mi
|
|
3327
|
+
}, Mi = "DialogDescriptionWarning", Ni = ({ contentRef: e, descriptionId: n }) => {
|
|
3328
|
+
let r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ai(Mi).contentName}}.`;
|
|
3507
3329
|
return t.useEffect(() => {
|
|
3508
3330
|
let t = e.current?.getAttribute("aria-describedby");
|
|
3509
3331
|
n && t && (document.getElementById(n) || console.warn(r));
|
|
@@ -3512,39 +3334,39 @@ For more information, see https://huinhub.com/primitives/docs/components/${n.doc
|
|
|
3512
3334
|
e,
|
|
3513
3335
|
n
|
|
3514
3336
|
]), null;
|
|
3515
|
-
},
|
|
3516
|
-
let { __scopeDialog: n, className: r, ...i } = e, a = Q(
|
|
3517
|
-
return /* @__PURE__ */ (
|
|
3337
|
+
}, Pi = "DialogDescription", Fi = t.forwardRef((e, t) => {
|
|
3338
|
+
let { __scopeDialog: n, className: r, ...i } = e, a = Q(Pi, n);
|
|
3339
|
+
return /* @__PURE__ */ o(O.p, {
|
|
3518
3340
|
id: a.descriptionId,
|
|
3519
3341
|
...i,
|
|
3520
3342
|
ref: t
|
|
3521
3343
|
});
|
|
3522
3344
|
});
|
|
3523
|
-
|
|
3524
|
-
var
|
|
3525
|
-
let { __scopeDialog: n, ...r } = e, i = Q(
|
|
3526
|
-
return /* @__PURE__ */ (
|
|
3345
|
+
Fi.displayName = Pi;
|
|
3346
|
+
var Ii = "DialogClose", Li = t.forwardRef((e, t) => {
|
|
3347
|
+
let { __scopeDialog: n, ...r } = e, i = Q(Ii, n);
|
|
3348
|
+
return /* @__PURE__ */ o(O.button, {
|
|
3527
3349
|
type: "button",
|
|
3528
3350
|
...r,
|
|
3529
3351
|
ref: t,
|
|
3530
|
-
onClick:
|
|
3352
|
+
onClick: p(e.onClick, () => i.onOpenChange(!1))
|
|
3531
3353
|
});
|
|
3532
3354
|
});
|
|
3533
|
-
|
|
3355
|
+
Li.displayName = Ii;
|
|
3534
3356
|
//#endregion
|
|
3535
3357
|
//#region ../../node_modules/class-variance-authority/dist/index.mjs
|
|
3536
|
-
var
|
|
3537
|
-
if (t?.variants == null) return
|
|
3358
|
+
var Ri = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zi = Re, Bi = (e, t) => (n) => {
|
|
3359
|
+
if (t?.variants == null) return zi(e, n?.class, n?.className);
|
|
3538
3360
|
let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
|
|
3539
3361
|
let t = n?.[e], a = i?.[e];
|
|
3540
3362
|
if (t === null) return null;
|
|
3541
|
-
let o =
|
|
3363
|
+
let o = Ri(t) || Ri(a);
|
|
3542
3364
|
return r[e][o];
|
|
3543
3365
|
}), o = n && Object.entries(n).reduce((e, t) => {
|
|
3544
3366
|
let [n, r] = t;
|
|
3545
3367
|
return r === void 0 || (e[n] = r), e;
|
|
3546
3368
|
}, {});
|
|
3547
|
-
return
|
|
3369
|
+
return zi(e, a, t?.compoundVariants?.reduce((e, t) => {
|
|
3548
3370
|
let { class: n, className: r, ...a } = t;
|
|
3549
3371
|
return Object.entries(a).every((e) => {
|
|
3550
3372
|
let [t, n] = e;
|
|
@@ -3561,7 +3383,7 @@ var Bi = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Vi = Be, Hi
|
|
|
3561
3383
|
r
|
|
3562
3384
|
] : e;
|
|
3563
3385
|
}, []), n?.class, n?.className);
|
|
3564
|
-
},
|
|
3386
|
+
}, Vi = Bi("inline-flex items-center cursor-pointer justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
|
|
3565
3387
|
variants: {
|
|
3566
3388
|
variant: {
|
|
3567
3389
|
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
@@ -3582,11 +3404,11 @@ var Bi = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Vi = Be, Hi
|
|
|
3582
3404
|
variant: "default",
|
|
3583
3405
|
size: "default"
|
|
3584
3406
|
}
|
|
3585
|
-
}),
|
|
3586
|
-
let s = t ?
|
|
3407
|
+
}), Hi = e.forwardRef(({ asChild: t = !1, variant: n, size: r, className: i, ...a }, o) => {
|
|
3408
|
+
let s = t ? _ : O.button;
|
|
3587
3409
|
return /* @__PURE__ */ e.createElement(s, {
|
|
3588
3410
|
ref: o,
|
|
3589
|
-
className: Y(
|
|
3411
|
+
className: Y(Vi({
|
|
3590
3412
|
variant: n,
|
|
3591
3413
|
size: r,
|
|
3592
3414
|
className: i
|
|
@@ -3594,10 +3416,10 @@ var Bi = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Vi = Be, Hi
|
|
|
3594
3416
|
...a
|
|
3595
3417
|
});
|
|
3596
3418
|
});
|
|
3597
|
-
|
|
3419
|
+
Hi.displayName = "Button";
|
|
3598
3420
|
//#endregion
|
|
3599
3421
|
//#region src/ui/components/Dialog.tsx
|
|
3600
|
-
var
|
|
3422
|
+
var Ui = Bi("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500", {
|
|
3601
3423
|
variants: { variant: {
|
|
3602
3424
|
center: "left-[50%] top-[50%] grid w-full h-full max-w-5/6 max-h-5/6 translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 sm:rounded-lg",
|
|
3603
3425
|
top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
@@ -3606,20 +3428,20 @@ var Gi = Hi("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out
|
|
|
3606
3428
|
right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
|
|
3607
3429
|
} },
|
|
3608
3430
|
defaultVariants: { variant: "center" }
|
|
3609
|
-
}),
|
|
3431
|
+
}), Wi = di, Gi = vi, Ki = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(bi, {
|
|
3610
3432
|
ref: r,
|
|
3611
3433
|
className: Y("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", t),
|
|
3612
3434
|
...n
|
|
3613
3435
|
}));
|
|
3614
|
-
|
|
3615
|
-
var
|
|
3436
|
+
Ki.displayName = bi.displayName;
|
|
3437
|
+
var qi = e.forwardRef(({ className: t, variant: n, children: r, ...i }, a) => /* @__PURE__ */ e.createElement(Gi, null, /* @__PURE__ */ e.createElement(Ki, null), /* @__PURE__ */ e.createElement(wi, {
|
|
3616
3438
|
ref: a,
|
|
3617
|
-
className: Y(
|
|
3439
|
+
className: Y(Ui({
|
|
3618
3440
|
variant: n,
|
|
3619
3441
|
className: t
|
|
3620
3442
|
})),
|
|
3621
3443
|
...i
|
|
3622
|
-
}, r, /* @__PURE__ */ e.createElement(
|
|
3444
|
+
}, r, /* @__PURE__ */ e.createElement(Li, { className: "absolute right-2 top-2 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground" }, /* @__PURE__ */ e.createElement(Hi, {
|
|
3623
3445
|
variant: "ghost",
|
|
3624
3446
|
size: "icon"
|
|
3625
3447
|
}, /* @__PURE__ */ e.createElement("svg", {
|
|
@@ -3632,32 +3454,32 @@ var Yi = e.forwardRef(({ className: t, variant: n, children: r, ...i }, a) => /*
|
|
|
3632
3454
|
strokeLinecap: "round",
|
|
3633
3455
|
strokeLinejoin: "round"
|
|
3634
3456
|
}, /* @__PURE__ */ e.createElement("path", { d: "M18 6 6 18" }), /* @__PURE__ */ e.createElement("path", { d: "m6 6 12 12" }))), /* @__PURE__ */ e.createElement("span", { className: "sr-only" }, "Close")))));
|
|
3635
|
-
|
|
3636
|
-
var
|
|
3457
|
+
qi.displayName = wi.displayName;
|
|
3458
|
+
var Ji = ({ className: t, ...n }) => /* @__PURE__ */ e.createElement("div", {
|
|
3637
3459
|
className: Y("flex flex-col space-y-1.5 text-center sm:text-left", t),
|
|
3638
3460
|
...n
|
|
3639
3461
|
});
|
|
3640
|
-
|
|
3641
|
-
var
|
|
3462
|
+
Ji.displayName = "DialogHeader";
|
|
3463
|
+
var Yi = ({ className: t, ...n }) => /* @__PURE__ */ e.createElement("div", {
|
|
3642
3464
|
className: Y("flex flex-col-reverse h-fit sm:flex-row sm:justify-end sm:space-x-2 mt-auto", t),
|
|
3643
3465
|
...n
|
|
3644
3466
|
});
|
|
3645
|
-
|
|
3646
|
-
var
|
|
3467
|
+
Yi.displayName = "DialogFooter";
|
|
3468
|
+
var Xi = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Ci, {
|
|
3647
3469
|
ref: r,
|
|
3648
3470
|
className: Y("text-lg font-semibold leading-none tracking-tight", t),
|
|
3649
3471
|
...n
|
|
3650
3472
|
}));
|
|
3651
|
-
|
|
3652
|
-
var
|
|
3473
|
+
Xi.displayName = Ci.displayName;
|
|
3474
|
+
var Zi = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Fi, {
|
|
3653
3475
|
ref: r,
|
|
3654
3476
|
className: Y("text-sm text-muted-foreground", t),
|
|
3655
3477
|
...n
|
|
3656
3478
|
}));
|
|
3657
|
-
|
|
3479
|
+
Zi.displayName = Fi.displayName;
|
|
3658
3480
|
//#endregion
|
|
3659
3481
|
//#region src/ui/widgets/MarkdownViewer.tsx
|
|
3660
|
-
var
|
|
3482
|
+
var Qi = (e) => {
|
|
3661
3483
|
let n = [], r = /(\*\*[^*]+\*\*|\*[^*]+\*|`[^`]+`|\[[^\]]+\]\([^)]+\))/g, i = 0, a;
|
|
3662
3484
|
for (; (a = r.exec(e)) !== null;) {
|
|
3663
3485
|
a.index > i && n.push(e.slice(i, a.index));
|
|
@@ -3677,19 +3499,19 @@ var ea = (e) => {
|
|
|
3677
3499
|
i = a.index + r.length;
|
|
3678
3500
|
}
|
|
3679
3501
|
return i < e.length && n.push(e.slice(i)), n;
|
|
3680
|
-
},
|
|
3502
|
+
}, $i = ({ code: e }) => /* @__PURE__ */ t.createElement("div", { className: "bg-[#0f172a] text-gray-200 rounded-xl overflow-hidden my-4 border border-gray-800" }, /* @__PURE__ */ t.createElement("div", { className: "flex items-center justify-between px-3 py-2 bg-[#111827] text-xs text-gray-400" }, /* @__PURE__ */ t.createElement("span", null, "code"), /* @__PURE__ */ t.createElement("span", null, "copy")), /* @__PURE__ */ t.createElement("pre", { className: "p-4 text-sm overflow-x-auto" }, /* @__PURE__ */ t.createElement("code", null, e))), ea = ({ rows: e }) => /* @__PURE__ */ t.createElement("div", { className: "overflow-x-auto my-4" }, /* @__PURE__ */ t.createElement("table", { className: "w-full border border-gray-700 text-sm" }, /* @__PURE__ */ t.createElement("tbody", null, e.map((e, n) => /* @__PURE__ */ t.createElement("tr", {
|
|
3681
3503
|
key: n,
|
|
3682
3504
|
className: "border-b border-gray-800"
|
|
3683
3505
|
}, e.map((e, n) => /* @__PURE__ */ t.createElement("td", {
|
|
3684
3506
|
key: n,
|
|
3685
3507
|
className: "px-3 py-2"
|
|
3686
|
-
},
|
|
3508
|
+
}, Qi(e)))))))), ta = ({ items: e }) => /* @__PURE__ */ t.createElement("ul", { className: "list-disc ml-6 my-2 space-y-1" }, e.map((e, n) => /* @__PURE__ */ t.createElement("li", { key: n }, Qi(e)))), na = ({ content: e, className: n = "" }) => {
|
|
3687
3509
|
let r = e.split("\n"), i = [], a = [], o = !1, s = [], c = [], l = () => {
|
|
3688
|
-
s.length && (i.push(/* @__PURE__ */ t.createElement(
|
|
3510
|
+
s.length && (i.push(/* @__PURE__ */ t.createElement(ta, { items: s })), s = []);
|
|
3689
3511
|
}, u = () => {
|
|
3690
|
-
c.length && (i.push(/* @__PURE__ */ t.createElement(
|
|
3512
|
+
c.length && (i.push(/* @__PURE__ */ t.createElement(ea, { rows: c })), c = []);
|
|
3691
3513
|
}, d = () => {
|
|
3692
|
-
a.length && (i.push(/* @__PURE__ */ t.createElement(
|
|
3514
|
+
a.length && (i.push(/* @__PURE__ */ t.createElement($i, { code: a.join("\n") })), a = []);
|
|
3693
3515
|
};
|
|
3694
3516
|
for (let e of r) {
|
|
3695
3517
|
let n = e.trim();
|
|
@@ -3711,37 +3533,37 @@ var ea = (e) => {
|
|
|
3711
3533
|
continue;
|
|
3712
3534
|
} else l();
|
|
3713
3535
|
if (n.startsWith("# ")) {
|
|
3714
|
-
i.push(/* @__PURE__ */ t.createElement("h1", { className: "text-3xl font-bold my-4" },
|
|
3536
|
+
i.push(/* @__PURE__ */ t.createElement("h1", { className: "text-3xl font-bold my-4" }, Qi(n.slice(2))));
|
|
3715
3537
|
continue;
|
|
3716
3538
|
}
|
|
3717
3539
|
if (n.startsWith("## ")) {
|
|
3718
|
-
i.push(/* @__PURE__ */ t.createElement("h2", { className: "text-2xl font-semibold my-3" },
|
|
3540
|
+
i.push(/* @__PURE__ */ t.createElement("h2", { className: "text-2xl font-semibold my-3" }, Qi(n.slice(3))));
|
|
3719
3541
|
continue;
|
|
3720
3542
|
}
|
|
3721
3543
|
if (n.startsWith("### ")) {
|
|
3722
|
-
i.push(/* @__PURE__ */ t.createElement("h3", { className: "text-xl font-medium my-2" },
|
|
3544
|
+
i.push(/* @__PURE__ */ t.createElement("h3", { className: "text-xl font-medium my-2" }, Qi(n.slice(4))));
|
|
3723
3545
|
continue;
|
|
3724
3546
|
}
|
|
3725
3547
|
if (!n) {
|
|
3726
3548
|
i.push(/* @__PURE__ */ t.createElement("div", { className: "h-3" }));
|
|
3727
3549
|
continue;
|
|
3728
3550
|
}
|
|
3729
|
-
i.push(/* @__PURE__ */ t.createElement("p", { className: "text-sm leading-7" },
|
|
3551
|
+
i.push(/* @__PURE__ */ t.createElement("p", { className: "text-sm leading-7" }, Qi(n)));
|
|
3730
3552
|
}
|
|
3731
3553
|
return l(), u(), d(), /* @__PURE__ */ t.createElement("div", { className: `markdown-body ${n}` }, i);
|
|
3732
|
-
},
|
|
3733
|
-
let { openDialogId: e, closeDialog: n, dialogMeta: r } =
|
|
3734
|
-
return /* @__PURE__ */ t.createElement(
|
|
3554
|
+
}, ra = () => {
|
|
3555
|
+
let { openDialogId: e, closeDialog: n, dialogMeta: r } = sa();
|
|
3556
|
+
return /* @__PURE__ */ t.createElement(Wi, {
|
|
3735
3557
|
open: e !== null,
|
|
3736
3558
|
onOpenChange: (e) => !e && n()
|
|
3737
|
-
}, /* @__PURE__ */ t.createElement(
|
|
3559
|
+
}, /* @__PURE__ */ t.createElement(rn, {
|
|
3738
3560
|
className: "mt-1",
|
|
3739
3561
|
defaultValue: "md"
|
|
3740
|
-
}, /* @__PURE__ */ t.createElement(
|
|
3741
|
-
},
|
|
3562
|
+
}, /* @__PURE__ */ t.createElement(qi, { className: "h-fit overflow-y-auto" }, /* @__PURE__ */ t.createElement(Ji, null, /* @__PURE__ */ t.createElement(Xi, null, "Sentinel"), /* @__PURE__ */ t.createElement(Zi, null, /* @__PURE__ */ t.createElement(an, { className: "grid w-full grid-cols-4" }, /* @__PURE__ */ t.createElement(on, { value: "md" }, ".md"), /* @__PURE__ */ t.createElement(on, { value: "props-tracker" }, "Props Tracker"), /* @__PURE__ */ t.createElement(on, { value: "api-layer" }, "API Layer"), /* @__PURE__ */ t.createElement(on, { value: "event-tracker" }, "Event Tracker")))), /* @__PURE__ */ t.createElement(sn, { value: "md" }, /* @__PURE__ */ t.createElement(na, { content: r?.md || "" })), /* @__PURE__ */ t.createElement(sn, { value: "props-tracker" }, r.componentProps && /* @__PURE__ */ t.createElement("pre", { className: "bg-primary text-primary-foreground p-4 rounded-md overflow-x-auto h-full" }, /* @__PURE__ */ t.createElement("code", { className: "text-wrap block whitespace-pre text-sm" }, JSON.stringify(r.componentProps, null, 2)))), /* @__PURE__ */ t.createElement(sn, { value: "api-layer" }), /* @__PURE__ */ t.createElement(sn, { value: "event-tracker" }), /* @__PURE__ */ t.createElement(Yi, null))));
|
|
3563
|
+
}, ia = ({ children: e, active: n = !0 }) => {
|
|
3742
3564
|
if (!n) return /* @__PURE__ */ t.createElement(t.Fragment, null, e);
|
|
3743
|
-
let { activeRect: r } =
|
|
3744
|
-
return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
|
|
3565
|
+
let { activeRect: r } = sa(), i = r ? r.left + r.width / 2 : 0, a = r ? r.top + r.height / 2 : 0;
|
|
3566
|
+
return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(ln, null, r && /* @__PURE__ */ t.createElement("div", {
|
|
3745
3567
|
className: "pointer-events-none fixed inset-0 z-50 transition-all duration-500 ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
3746
3568
|
style: {
|
|
3747
3569
|
background: `
|
|
@@ -3757,9 +3579,9 @@ var ea = (e) => {
|
|
|
3757
3579
|
WebkitBackdropFilter: "blur(8px) saturate(140%) contrast(105%)"
|
|
3758
3580
|
}
|
|
3759
3581
|
}), e));
|
|
3760
|
-
},
|
|
3582
|
+
}, aa = n(void 0), oa = ({ children: e }) => {
|
|
3761
3583
|
let [n, r] = i(null), [a, o] = i(null), [s, c] = i(null), [l, u] = i({});
|
|
3762
|
-
return /* @__PURE__ */ t.createElement(
|
|
3584
|
+
return /* @__PURE__ */ t.createElement(aa.Provider, { value: {
|
|
3763
3585
|
activeId: n,
|
|
3764
3586
|
activeRect: a,
|
|
3765
3587
|
openDialogId: s,
|
|
@@ -3780,13 +3602,13 @@ var ea = (e) => {
|
|
|
3780
3602
|
closeDialog: () => {
|
|
3781
3603
|
c(null), u({});
|
|
3782
3604
|
}
|
|
3783
|
-
} }, e, /* @__PURE__ */ t.createElement(
|
|
3784
|
-
},
|
|
3785
|
-
let e = r(
|
|
3605
|
+
} }, e, /* @__PURE__ */ t.createElement(ia, null, /* @__PURE__ */ t.createElement(ra, null)));
|
|
3606
|
+
}, sa = () => {
|
|
3607
|
+
let e = r(aa);
|
|
3786
3608
|
if (!e) throw Error("useSentinel must be used within a SentinelProvider");
|
|
3787
3609
|
return e;
|
|
3788
|
-
},
|
|
3789
|
-
let a =
|
|
3610
|
+
}, ca = ({ children: e, dialogTitle: n, dialogMd: r, componentProps: i }) => {
|
|
3611
|
+
let a = D(), { activeId: o, registerHover: s, unregisterHover: c, openDialog: l } = sa(), u = o === a;
|
|
3790
3612
|
return /* @__PURE__ */ t.createElement("div", {
|
|
3791
3613
|
onMouseMove: (e) => {
|
|
3792
3614
|
e.stopPropagation(), s(a, e.currentTarget.getBoundingClientRect());
|
|
@@ -3809,4 +3631,4 @@ var ea = (e) => {
|
|
|
3809
3631
|
}, e));
|
|
3810
3632
|
};
|
|
3811
3633
|
//#endregion
|
|
3812
|
-
export {
|
|
3634
|
+
export { ca as Sentinel, oa as SentinelProvider, sa as useSentinel };
|