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